1 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
3 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
4 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
5 if a size or alignment is specified. Do not take into account
6 alignment promotions for the computation of the object's size.
7 <type>: Call maybe_pad_type only if a size or alignment is specified.
8 (maybe_pad_type): Really reuse the RM_Size of the original type if
10 * trans.c (Attribute_to_gnu): Fix a couple of nits.
11 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
12 statements. Use the padded view of the type when copying between
13 padded objects of the same underlying type.
15 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17 * vms_data.ads: Fix typo in constant.
18 * gen-soccon.c: Fix typo in error string.
19 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
21 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
22 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
23 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
24 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
25 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
26 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
27 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
28 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
29 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
30 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
31 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
32 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
33 sinfo.ads: Fix typos in comments.
35 2008-04-14 Robert Dewar <dewar@adacore.com>
37 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
38 to every non-object and change error message.
40 2008-04-14 Robert Dewar <dewar@adacore.com>
42 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
43 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
46 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
49 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
50 apply pragma Linker_Section on type.
52 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
55 * sem_prag.adb (Error_Pragma_Ref): New.
56 (Process_Convention): Specialized message for non-local
57 subprogram renaming. Detect the problem in homonyms as well.
59 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
62 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
63 * sem_ch12.adb (Instantiate_Object): Use it.
64 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
65 storage pool denotes a variable as per RM 13.11(15).
67 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
69 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
70 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
72 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
75 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
76 line endings even on non-Unix platforms.
78 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
81 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
84 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
87 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
90 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
92 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
93 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
94 snames.ads, sprint.adb, stand.ads, stringt.ads,
95 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
96 switch.ads, sysdep.c, table.adb, table.ads,
97 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
98 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
99 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
100 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
101 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
102 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
105 * sem_ch10.adb, sem_ch10.ads,
106 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
107 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
108 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
109 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
110 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
111 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
112 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
113 sem_warn.ads: Fix comment typos.
115 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
116 s-soflin.ads, s-stalib.ads, s-stausa.adb,
117 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
118 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
119 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
120 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
121 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
122 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
123 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
124 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
125 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
126 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
127 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
128 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
129 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
130 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
131 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
132 sem_cat.adb, sem_cat.ads: Fix comment typos.
134 2008-04-12 Joel Sherrill <joel@oarcorp.com>
137 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
139 2008-04-12 Arnaud Charlet <charlet@adacore.com>
141 * s-linux-hppa.ads: Fix syntax errors.
143 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
145 * gnat_ugn.texi: Fix typos.
146 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
147 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
148 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
149 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
150 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
151 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
152 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
153 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
154 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
155 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
156 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
157 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
158 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
159 s-osinte-darwin.ads, s-osinte-freebsd.ads,
160 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
161 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
162 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
163 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
164 s-parame-hpux.ads, s-parame-vms-alpha.ads,
165 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
166 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
167 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
168 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
169 s-rident.ads: Fix comment typos.
171 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
174 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
175 environment if generic instance is a top-level one.
177 2008-04-09 Doug Rupp <rupp@adacore.com>
179 * decl.c (validate_size): Set minimum size for fat pointers same as
180 access types. Code clean ups.
182 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
183 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
185 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
187 * s-crtl.ads (malloc32) New function, alias for malloc
188 (realloc32) New function, alias for realloc
190 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
192 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
193 allocator size is 32 and default pointer size is 64.
194 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
195 lhs type if smaller, whatever the modes.
197 * gigi.h (malloc32_decl): New macro definition
199 * utils.c (init_gigi_decls): New malloc32_decl
200 Various code clean ups.
202 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
203 Task_Address vice System.Address.
205 * s-taspri-vms.ads: Import System.Aux_DEC
206 (Task_Address): New subtype of System.Aux_DEC.Short_Address
207 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
209 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
210 Task_Address vice System.Address.
212 * s-inmaop-vms.adb: Import System.Task_Primitives
213 (To_Address): Unchecked convert to Task_Address vice System.Address
215 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
217 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
218 (To_Address) Unchecked convert to Task_Address vice System.Address
220 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
222 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
224 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
226 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
227 (fdesc_type_node): Define.
228 (null_fdesc_node): Likewise.
229 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
230 uses descriptors for vtables and the type comes from a dispatch table,
231 return the descriptor type.
232 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
233 uses descriptors for vtables and the type comes from a dispatch table,
234 build a descriptor in the static case and copy the existing one in the
236 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
237 the type is a pointer-to-subprogram coming from a dispatch table,
238 return the null descriptor.
239 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
240 vtables, the source type is the descriptor type and the target type
241 is a pointer type, first build the pointer.
242 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
243 build the descriptor type and the null descriptor.
245 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
247 * decl.c (prepend_attributes): Fix typo.
248 * trans.c (Pragma_to_gnu): Likewise.
249 * utils.c (gnat_genericize): Likewise.
251 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
252 Richard Kenner <kenner@adacore.com>
254 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
255 * decl.c (gnat_to_gnu_entity): Adjust for above change.
256 <E_Record_Type>: Try to get a better form of the component for
257 packing, even if it has an integral mode.
258 <E_Record_Subtype>: Likewise.
259 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
260 exception suppressing the final conversion between record types.
262 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
264 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
265 alignment for space, promote the alignment of non-scalar variables with
266 no size and alignment.
267 * gigi.h (gnat_types_compatible_p): Declare.
268 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
269 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
270 * utils.c (gnat_types_compatible_p) : New predicate.
271 (convert): Use it throughout to test for cases where a mere view
272 conversion is sufficient.
273 * utils2.c (build_binary_op): Minor tweaks.
274 (build_unary_op): Likewise.
276 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
278 * decl.c (adjust_packed): Expand comment.
280 2008-04-08 Arnaud Charlet <charlet@adacore.com>
282 * s-tasuti.ads: Use Task_Address instead of System.Address.
284 * makeutl.adb (Path_Or_File_Name): New function
286 * nlists.ads, itypes.ads: Update comments.
288 * s-crtl.ads (malloc32, realloc32): New functions.
290 * s-auxdec.ads (Short_Address_Size): New constant.
292 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
294 * s-ststop.ads, s-ststop.adb: New file.
296 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
299 2008-04-08 Pascal Obry <obry@adacore.com>
301 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
302 (Stop_Bits_Number): New type.
303 (Parity_Check): Likewise.
304 (Set): Add parameter to set the number of stop bits and
305 the parity. Parameter timeout is now a duration instead
308 * g-sercom-linux.adb:
309 Implement the stop bits and parity support for GNU/Linux.
310 Fix handling of timeout, it must be given in tenth of seconds.
312 * g-sercom-mingw.adb:
313 Implement the stop bits and parity support for Windows.
314 Use new s-win32.ads unit instead of declaring Win32 services
315 directly into this body.
316 Update handling of timeout as now a duration.
318 * s-win32.ads, s-winext.ads: New files.
320 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
321 Arnaud Charlet <charlet@adacore.com>
323 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
325 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
326 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
328 * s-osinte-lynxos-3.ads,
329 (Alternate_Stack): Remove when not needed. Simplify declaration
331 (Alternate_Stack_Size): New constant.
333 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
334 'Unrestricted_Access.
336 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
337 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
338 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
339 s-osinte-solaris.ads, s-osinte-vms.ads
340 (SA_ONSTACK): New constant.
341 (stack_t): New record type.
342 (sigaltstack): New imported function.
343 (Alternate_Stack): New imported variable.
344 (Alternate_Stack_Size): New constant.
346 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
348 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
349 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
350 s-taspri-vms.ads (Task_Address): New subtype of System.Address
351 (Task_Address_Size): New constant size of System.Address
352 (Alternate_Stack_Size): New constant.
354 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
355 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
356 Establish the alternate stack if the platform makes use of n alternate
357 signal stack for stack overflows.
358 (Create_Task): Take into account the alternate stack in the stack size.
359 (Initialize): Save the address of the alternate stack into the ATCB for
360 the environment task.
361 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
363 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
365 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
367 * s-intman-posix.adb:
368 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
369 alternate signal stack for stack overflows.
371 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
372 x86-64, adjust the saved value of the stack pointer if the signal was
373 raised by a stack checking probe.
374 (HP-UX section): Use global __gnat_alternate_stack as signal handler
375 stack and only for SIGSEGV.
376 (Linux section): Likewise on x86 and x86-64.
378 (__gnat_map_signal): Now static.
379 (__gnat_error_handler): Not static any more.
380 (__gnat_adjust_context_for_raise): New function. Signal context
381 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
382 propagation circuitry.
383 (__gnat_error_handler): Second argument of a sigaction handler is a
384 pointer, not an int, and is unused.
385 Adjust signal context before mapping to exception.
386 Install signal handlers for LynxOS case.
388 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
389 (Task_Id): Set size to Task_Address_Size
390 (To_Task_id): Unchecked convert from Task_Address vice System.Address
391 (To_Address): Unchecked convert to Task_Address vice System.Address
393 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
394 address into the ATCB if the platform makes use of an alternate signal
395 stack for stack overflows.
396 (Free_Task): Add call to Finalize_Attributes_Link.
397 Add argument Relative_Deadline to pass the value specified for
398 the task. This is not yet used for any target.
400 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
401 the value specified for the task.
403 2008-04-08 Arnaud Charlet <charlet@adacore.com>
405 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
406 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
407 s-vxwext-rtp.adb): New files.
409 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
410 Minor updates to accomodate changes above.
412 2008-04-08 Pascal Obry <obry@adacore.com>
414 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
415 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
416 Use new s-win32.ads unit instead of declaration
417 from s-osinte-mingw.ads.
419 * s-osinte-mingw.ads:
420 Move all non tasking based interface to s-win32.ads.
422 * s-osprim-mingw.adb:
423 Remove duplicated declarations and use s-win32.ads
426 2008-04-08 Vincent Celier <celier@adacore.com>
427 Arnaud Charlet <charlet@adacore.com>
429 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
430 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
431 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
432 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
433 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
435 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
436 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
437 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
438 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
439 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
440 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
441 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
442 mlib-tgt-specific-mingw.adb: New names.
445 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
447 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
448 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
449 Minor updates for VMS
453 2008-04-08 Thomas Quinot <quinot@adacore.com>
455 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
456 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
457 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
458 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
459 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
460 ASCII.NUL throughout.
462 2008-04-08 Arnaud Charlet <charlet@adacore.com>
463 Matthew Heaney <heaney@adacore.com>
465 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
468 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
469 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
470 to convention for non-RM specs.
471 Add descriptive header, and documented each operation
472 document each operation
474 2008-04-08 Robert Dewar <dewar@adacore.com>
475 Bob Duff <duff@adacore.com>
476 Gary Dismukes <dismukes@adacore.com>
477 Ed Schonberg <schonberg@adacore.com>
479 * alloc.ads: Add entries for Obsolescent_Warnings table
481 * einfo.ads, einfo.adb: Minor reformatting.
482 (Is_Discriminal): New subprogram.
483 (Is_Prival): New subprogram.
484 (Is_Protected_Component): New subprogram.
485 (Is_Protected_Private): Removed.
486 (Object_Ref, Set_Object_Ref): Removed.
487 (Prival, Set_Prival): Change assertion.
488 (Privals_Chain, Set_Privals_Chain): Removed.
489 (Prival_Link, Set_Prival_Link): New subprogram.
490 (Protected_Operation, Set_Protected_Operation): Removed.
491 (Protection_Object, Set_Protection_Object): New subprogram.
492 (Write_Field17_Name): Remove case for Object_Ref.
493 (Write_Field20_Name): Add case for Prival_Link.
494 (Write_Field22_Name): Remove case for Protected_Operation,
496 Add case for Protection_Object.
497 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
499 (Overlays_Constant): New flag
500 (Is_Constant_Object): New predicate
501 (Is_Standard_Character_Type): New predicate
502 (Optimize_Alignment_Space): New flag
503 (Optimize_Alignment_Time): New flag
504 (Has_Postconditions): New flag
505 (Obsolescent_Warrning): Field removed
506 (Spec_PPC_List): New field
507 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
508 subprograms to get and set the relative deadline associated to a task.
510 * exp_attr.adb (May_Be_External_Call): Account for the case where the
511 Access attribute is part of a named parameter association.
512 (Expand_Access_To_Protected_Op): Test for the attribute occurring
513 within an init proc and use that directly as the scope rather than
514 traversing up to the protected operation's enclosing scope. Only apply
515 assertion on Is_Open_Scopes in the case the scope traversal is done.
516 For the init proc case use the address of the first formal (_init) as
517 the protected object reference.
518 Implement Invalid_Value attribute
519 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
520 contents of the dispatch table there is no need to duplicate the
521 itypes associated with record types (i.e. the implicit full view
523 Implement Enum_Val attribute
524 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
525 within _Postconditions procedure
526 (Expand_N_Attribute_Reference, case Result): Implement new attribute
528 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
529 a return statement calls a function that is not available in
530 configurable runtime.
531 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
532 (Expand_Non_Function_Return): Generate call to _Postconditions proc
533 (Expand_Simple_Function_Return): Ditto
535 * frontend.adb: Add call to Sem_Aux.Initialize
537 * sem_aux.ads, sem_aux.adb: New file.
539 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
540 Add new Pragma_Relative_Deadline.
541 Add support for pragmas Check and Check_Policy
543 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
544 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
545 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
546 missing check because they are not allowed in CPP tagged types.
547 Add Sure parameter to Note_Possible_Modification calls
548 Add implementation of Invalid_Value attribute
549 Implement new attribute Has_Tagged_Values
550 Implement Enum_Val attribute
551 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
552 generated attributes.
553 (Analyze_Attribute, case Result): If prefix of the attribute is
554 overloaded, it always resolves to the enclosing function.
555 (Analyze_Attribute, case Result): Properly deal with analysis when
556 Postconditions are not active.
557 (Resolve_Attribute, case Result): Properly deal with appearence during
559 Add processing for attribute Result
561 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
563 (Analyze_Subprogram_Body): Install private_with_clauses when the body
565 (Check_Inline_Pragma): recognize an inline pragma that appears within
566 the subprogram body to which it applies.
567 (Analyze_Function_Return): Check that type of the expression of a return
568 statement in a function with a class-wide result is not declared at a
569 deeper level than the function.
570 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
571 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
572 user- defined operators.
573 (Install_Formals): Moved to spec to allow use from Sem_Prag for
574 analysis of precondition/postcondition pragmas.
575 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
576 Last_Formal, along with lots of comments on what this is about
577 (Analyze_Subprogram_Body): Fix case where we move entities from the
578 spec to the body when there are no body entities (now possible with
579 precondition and postcondition pragmas).
580 (Process_PPCs): New procedure
581 (Analyze_Subprogram_Body): Add call to Process_PPCs
583 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
585 (Pop_Scope): Restore Check_Policy_List on scope exit
586 (Push_Scope): Save Check_Policy_List on scope entry
587 Change name In_Default_Expression => In_Spec_Expression
588 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
589 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
590 (Analyze_Object_Renaming): Allow 'Reference as object
591 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
592 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
593 of restriction identifier.
594 Add Sure parameter to Note_Possible_Modication calls
596 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
597 Don't check for primitive operations when calling Rep_Item_Too_Late.
598 (Process_Import_Or_Interface): Do not place flag on formal
600 (Analyze_Pragma, case Export): If the entity is a deferred constant,
601 propagate information to full view, which is the one elaborated by the
603 (Make_Inline): the pragma is effective if it applies to an internally
604 generated subprogram declaration for a body that carries the pragma.
605 (Analyze_Pragma, case Optimize_Alignment): Set new flag
606 Optimize_Alignment_Local.
607 (Analyze_PPC_In_Decl_Part): New procedure
608 (Get_Pragma_Arg): Moved to outer level
609 (Check_Precondition_Postcondition): Change to allow new visibility
610 rules for package spec
611 (Analyze_Pragma, case Check_Policy): Change placement rules to be
612 same as pragma Suppress/Unsuppress.
613 Change name In_Default_Expression => In_Spec_Expression
614 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
615 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
616 (Check_Precondition_Postcondition): Do proper visibility preanalysis
617 for the case of these pragmas appearing in the spec.
618 (Check_Enabled): New function
619 (Initialize): New procedure
620 (Tree_Read): New procedure
621 (Tree_Write): New procedure
622 (Check_Precondition_Postcondition): New procedure
623 Implement pragmas Check and Check_Policy
624 Merge Assert processing with Check
626 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
627 New warning flag -gnatw.e
629 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
630 returning whether a task (or main procedure) has a pragma
632 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
633 (or main procedure) has a pragma Relative_Deadline.
634 Add Next_Pragma field to N_Pragma node
635 (PPC_Enabled): New flag
636 (Next_Pragma): Now used for Pre/Postcondition processing
638 * snames.h, snames.ads, snames.adb: New standard name
640 Add entry for 'Invalid_Value attribute
641 Add entry for new attribute Has_Tagged_Values
642 Add entry for Enum_Val attribute
643 Add new standard names Aggregate, Configuration and Library.
646 Add Pragma_Precondition
647 Add Pragma_Postcondition
649 New standard name Archive_Builder_Append_Option
650 (Preset_Names): Add _relative_deadline and relative_deadline definitions
651 There was also a missing non_preemptive_within_priorities.
652 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
654 Add support for pragmas Check and Check_Policy
656 * tree_gen.adb: Call Sem_Aux.Tree_Write
658 * tree_in.adb: Call Sem_Aux.Tree_Read
660 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
663 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
666 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
667 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
669 (Expand_Pragma_Check): New procedure
671 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
674 * sinfo.adb (PPC_Enabled): New flag
676 2008-04-08 Robert Dewar <dewar@adacore.com>
677 Gary Dismukes <dismukes@adacore.com>
678 Javier Miranda <miranda@adacore.com>
679 Ed Schonberg <schonberg@adacore.com>
681 * fe.h: Remove global Optimize_Alignment flag, no longer used
683 * layout.adb: Test Optimize_Alignment flags rather than global switch
685 * lib.ads, lib.adb: New OA_Setting field in library record
687 * lib-load.adb: New OA_Setting field in library record
689 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
690 units mentioned in limited_with_ clauses in the ali file, with an
692 New Ox fields in U line
694 * opt.adb: New flag Optimize_Alignment_Local
695 (Check_Policy_List[_Config]): New flags
697 * opt.ads (Invalid_Value_Used): New flag
698 New switch Optimize_Alignment_Local
699 (Warn_On_Parameter_Order): New flag
700 (Check_Policy_List[_Config]): New flags
702 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
703 limited_with clauses.
704 New data structures for Optimize_Alignment
706 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
708 (Check_Consistent_Optimize_Alignment): Rework for new structure
709 (Check_Consistent_Restrictions): Fix incorrect error message
711 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
712 created class-wide type (to the Parent field of the specific type).
713 (Install_Siblings): Handle properly private_with_clauses on subprogram
714 bodies and on generic units.
715 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
716 illegal limited_with_clause that names a non-existent package.
717 (Check_Body_Required): Determine whether a unit named a limited_with
719 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
720 Capture Optimize_Alignment settings to set new OA_Setting field in
722 (Build_Limited_Views): Include task and protected type declarations.
724 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
725 case of a possible constant redeclaration where the current object is
726 an entry index constant.
727 (Analyze_Object_Declaration): Generate an error in case of CPP
728 class-wide object initialization.
729 (Analyze_Object_Declaration): Add extra information on warnings for
730 declaration of unconstrained objects.
731 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
732 conflicts with the setting of Stored_Constraint in the case where the
733 access type entity has already been created as an E_Incomplete_Type due
734 to a limited with clause.
735 Use new Is_Standard_Character_Type predicate
736 (Analyze_Object_Declaration): Apply access_constant check only after
737 expression has been resolved, given that it may be overloaded with
738 several access types.
739 (Constant_Redeclaration): Additional legality checks for deferred
740 constant declarations tha involve anonymous access types and/or null
741 exclusion indicators.
742 (Analyze_Type_Declaration): Set Optimize_Alignment flags
743 (Analyze_Subtype_Declaration): Ditto
744 (Analyze_Object_Declaration): Ditto
745 (Analyze_Object_Declaration): Don't count tasks in generics
746 Change name In_Default_Expression => In_Spec_Expression
747 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
748 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
749 (Process_Discriminants): Additional check for illegal use of default
750 expressions in access discriminant specifications in a type that is not
752 (Check_Abstract_Overriding): If an inherited function dispaches on an
753 access result, it must be overridden, even if the type is a null
755 (Derive_Subprogram): The formals of the derived subprogram have the
756 names and defaults of the parent subprogram, even if the type is
757 obtained from the actual subprogram.
758 (Derive_Subprogram): In the presence of interfaces, a formal of an
759 inherited operation has the derived type not only if it descends from
760 the type of the formal of the parent operation, but also if it
761 implements it. This is relevant for the renamings created for the
762 primitive operations of the actual for a formal derived type.
763 (Is_Progenitor): New predicate, to determine whether the type of a
764 formal in the parent operation must be replaced by the derived type.
766 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
767 predicate recursive to handle components that have a user-defined
768 Initialize procedure. Handle controlled derived types whose ancestor
769 has a user-defined Initialize procedured.
770 (Note_Possible_Modification): Add Sure parameter, generate warning if
771 sure modification of constant
772 Use new Is_Standard_Character_Type predicate
773 (Find_Parameter_Type): when determining whether a protected operation
774 implements an interface operation, retrieve the type of the formal from
775 the entity when the formal is an access parameter or an
776 anonymous-access-to-subprogram.
777 Move Copy_Parameter_List to sem_util, for use when building stubbed
779 (Has_Access_Values): Tagged types now return False
780 (Within_HSS_Or_If): New procedure
781 (Set_Optimize_Alignment_Flags): New procedure
782 Change name In_Default_Expression => In_Spec_Expression
783 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
784 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
786 2008-04-08 Tristan Gingold <gingold@adacore.com>
788 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
790 2008-04-08 Tristan Gingold <gingold@adacore.com>
794 * cuintp.c: Fix 16 bits issue for AVR.
795 On AVR, integer is 16 bits, so it can't be used to do math with
797 So use long_integer instead.
799 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
801 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
802 System.OS_Primitives.
803 Change type of various constants, parameters and local variables from
804 Time to representation type OS_Time.
805 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
806 Remove the declaration of constant Mili_F from several routines. New
807 body for internal package Conversions_Operations.
808 (Time_Of): Add default parameters for several formals.
810 * a-caldel.adb: Minor reformatting
812 * a-calend.ads, a-calend.adb: New body for internal package
813 Conversions_Operations.
814 (Time_Of): Add default parameters for several formals.
816 * Makefile.rtl: Add a-ststop
817 Add Ada.Calendar.Conversions to the list of runtime files.
820 * a-calcon.adb, a-calcon.ads: New files.
822 2008-04-08 Jose Ruiz <ruiz@adacore.com>
823 Tristan Gingold <gingold@adacore.com>
825 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
826 (Install_Restricted_Handlers): New procedure
827 which is a simplified version of Install_Handlers that does not store
828 previously installed.
830 * s-interr-vxworks.adb: Fix ACATS cxc3001
831 On VxWorks interrupts can't be detached.
832 (Install_Restricted_Handlers): New procedure.
834 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
837 2008-04-08 Olivier Hainque <hainque@adacore.com>
839 * s-intman-vxworks.ads, s-intman-vxworks.adb
840 (Map_And_Raise_Exception): Remove. Was an import of only part of the
841 required services already implemented elsewhere.
842 (Notify_Exception): Delete body, import __gnat_error_handler instead.
843 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
844 argument passed to the handler, which we need for ZCX propagation
847 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
849 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
851 * g-timsta.adb, g-timsta.ads: New files.
853 2008-04-08 Robert Dewar <dewar@adacore.com>
855 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
856 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
857 (Raise_Exception_Always): Fix documentation accordingly
859 2008-04-08 Robert Dewar <dewar@adacore.com>
861 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
864 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
867 2008-04-08 Javier Miranda <miranda@adacore.com>
868 Robert Dewar <dewar@adacore.com>
869 Ed Schonberg <schonberg@adacore.com>
871 * a-tags.adb (Register_Interface_Offset): New subprogram.
872 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
873 (To_Predef_Prims_Table_Ptr): Removed.
875 (To_Acc_Size): Removed.
876 (Parent_Size): Modified to the call the subprogram returning the size of
877 the parent by means of the new TSD component Size_Func.
879 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
880 (DT_Offset_To_Top_Offset): New constant value that is used to generate
881 code referencing the Offset_To_Top component of the dispatch table's
883 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
884 use of 'address to initialize dispatch table slots.
885 (Size_Func): New component of the TSD. Used by the run-time to call the
886 size primitive of the tagged type.
888 * checks.adb (Apply_Access_Check): Avoid check when accessing the
889 Offset_To_Top component of a dispatch table.
890 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
891 deferred constant declaration. do not add a null expression, to prevent
892 spurious errors when full declaration is analyzed.
893 (Apply_Discriminant_Check): If both discriminant constraints share a
894 node which is not static but has no side effects, do not generate a
895 check for that discriminant.
896 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
897 subexpr, since the prefix of an attribute is a name.
899 * checks.ads: Fix nit in comment.
901 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
902 and body of predefined primitives in case of CPP tagged type
904 (Freeze_Type): Deal properly with no storage pool case
905 (Make_Predefined_Primitive_Specs): Generate specification of abstract
906 primitive Deep_Adjust if a nonlimited interface is derived from a
908 (Build_Dcheck_Functions): Create discriminant-checking functions only
909 for variants that have some component(s).
910 (Build_Slice_Assignment): In expanded code for slice assignment, handle
911 properly the case where the slice bounds extend to the last value of the
912 underlying representation.
913 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
914 (Is_Variable_Size_Record): An array component has a static size if
915 index bounds are enumeration literals.
917 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
918 an external tag has been specified for the type.
919 (Building_Static_DT): Add missing support for private types.
920 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
921 to the entity associated with the parent of Typ. This is done to
922 avoid wrong access when the parent is a private type.
923 (Expand_Interface_Conversion): Improve error message when the
924 configurable runtime has no support for dynamic interface conversion.
925 (Expand_Interface_Thunk): Add missing support to interface types in
926 configurable runtime.
927 (Expand_Dispatching_Call): remove obsolete code.
928 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
929 ensure that all subtypes and aggregates associated with dispatch
930 tables have the attribute Is_Dispatch_Table_Entity set to true.
931 (Register_Primitive): Rename one variable to improve code reading.
932 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
933 of the pointer to the 'size primitive in the TSD.
935 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
936 (RE_Offset_To_Top_Ptr): New entity.
937 (RE_Register_Interface_Offset): New entity.
938 (RE_Set_Dynamic_Offset_To_Top): New entity.
939 (RE_Set_Offset_To_Top): Removed entity.
940 (RE_Prim_Ptr): New entity
941 (RE_Size_Func): New entity
942 (RE_Size_Ptr): New entity
943 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
944 (Ada_Dispatching_Child): Define this new subrange.
945 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
946 RE_Time_Span, and RE_Time_Span_Zero).
947 (RE_Unit_Table): Add new required run-time calls
949 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
952 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
953 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
954 initializes the Offset_To_Top component of a dispatch table.
955 (Build_Predef_Prims): Removed.
956 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
958 (Build_Set_Size_Function): New subprogram.
960 * exp_ch13.adb: Do not generate storage variable for storage_size zero
961 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
963 2008-04-08 Robert Dewar <dewar@adacore.com>
965 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
966 computing Fore when Exp > 0
968 2008-04-08 Robert Dewar <dewar@adacore.com>
970 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
972 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
973 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
975 * fmap.adb: Remove Big_String declarations (now in Types)
976 (No_Mapping_File): New Boolean global variable
977 (Initialize): When mapping file cannot be read, set No_Mapping_File to
979 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
980 tables were empty before adding entries, open the mapping file
981 with Truncate = True, instead of delete/re-create.
983 * fname-sf.adb: Remove Big_String declarations (now in Types)
985 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
986 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
989 * table.ads: Add for Table_Ptr'Storage_Size use 0
991 * types.ads: Add Big_String declarations
992 Add Size_Clause of zero for big pointer types
994 2008-04-08 Vincent Celier <celier@adacore.com>
996 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
997 (Usage): Add line for switch --subdirs=
998 Add new switch -eL, to follow symbolic links when processing project
1001 * gnatcmd.adb: Process switches -eL and --subdirs=
1002 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
1003 Program_Name to get proper tool names when AAMP_On_Target is set.
1004 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
1005 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
1006 Osint.Program_Name).
1008 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
1009 (Usage): Add lines for switches -eL and --subdirs=
1011 * makeusg.adb: Add line for switch --subdirs=
1014 (Source_Data): New Boolean component Compiled, defaulted to True
1015 (Empty_File_Name: New global variable in private part, initialized in
1016 procedure Initialize.
1017 (Subdirs_Option): New constant string
1018 (Subdirs): New String_Ptr global variable
1019 (Language_Config): New component Include_Compatible_Languages
1020 (Project_Qualifier): New type for project qualifiers
1021 (Project_Data): New component Qualifier
1022 (Project_Configuration): New component Archive_Builder_Append_Option
1024 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
1025 another imported project indicate the name of this imported project.
1026 (Check_File): When a unit is in two project files, indicate the project
1027 names and the paths of the source files for each project.
1028 (Add_Source): Set Compiled to False if compiler driver is empty. Only
1029 set object, dependency and switches file names if Compiled is True.
1030 (Process_Compiler): Allow the empty string for value of attribute Driver
1031 (Get_Directories): When Subdirs is not null and Object_Dir is not
1032 specified, locate and create if necessary the actual object dir.
1033 (Locate_Directory): When Subdirs is not empty and Create is not the
1034 empty string, locate and create if necessary the actual directory
1035 as a subdirectory of directory Name.
1036 (Check_Library_Attributes.Check_Library): Allow a project where the only
1037 "sources" are header files of file based languages to be imported by
1038 library projects, in multi-language mode (gprbuild).
1039 (Check_Library_Attributes.Check_Library): In multi-language mode
1040 (gprbuild), allow a library project to import a project with no
1041 sources, even when this is not declared explicitly.
1042 (Check_If_Externally_Built): A virtual project extending an externally
1043 built project is also externally built.
1044 (Check_Library_Attributes): For a virtual project extending a library
1045 project, inherit the library directory.
1046 (Process_Project_Level_Array_Attributes): Process new attribute
1047 Inherit_Source_Path.
1048 For projects with specified qualifiers "standard", "library" or
1049 "abstract", check that the project conforms to the qualifier.
1050 (Process_Project_Level_Simple_Attributes): Process new attribute
1051 Archive_Builder_Append_Option.
1053 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
1054 (Normalize_Compiler_Switches): Only keep compiler switches that are
1055 passed to gnat1 by the gcc driver and that are stored in the ALI file
1057 Do not take into account switc -save-temps
1059 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
1060 gprmake is called with -eL.
1061 (Scan_Arg): Recognize switch -eL
1062 (Usage): Add line for switch -eL
1064 * prj.adb (Initialize): Initialize Empty_File_Name
1065 (Project_Empty): New component Qualifier
1067 * prj-attr.ads, prj-attr.adb: New project level attribute
1068 Inherit_Source_Path.
1069 New project level attribute Archive_Builder_Append_Option
1071 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
1073 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
1074 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
1075 upward compatibility.
1077 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
1078 each Trying ..." on different lines.
1079 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
1080 is "configuration" when not in configuration. Fail when in configuration
1081 when a specified qualifier is other than "configuration".
1083 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
1084 full associative array together.
1085 (Recursive_Process): Put the project qualifier in the project data
1087 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
1088 (Set_Project_Qualifier_Of): New procedure
1090 2008-04-08 Robert Dewar <dewar@adacore.com>
1092 * errout.ads: Update comments for new handling of info: messages
1094 * erroutc.adb (Matches): New procedure
1095 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
1096 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
1097 info messages as well as style messages.
1099 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
1101 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
1103 (Check_A_Call): Special "info: " warnings now have ? in the text
1104 (Elab_Warning): Use info message in static case
1106 2008-04-08 Ed Schonberg <schonberg@adacore.com>
1108 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
1109 whether an array aggregate with static bounds and scalar components
1110 should be expanded into a static constant.
1112 2008-04-08 Gary Dismukes <dismukes@adacore.com>
1113 Ed Schonberg <schonberg@adacore.com>
1114 Robert Dewar <dewar@adacore.com>
1116 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
1117 Has_Stream_Attribute_ Definition when checking for available stream
1118 attributes on parameters of a limited type in Ada 2005. Necessary for
1119 proper recognition of visible stream attribute clauses.
1120 (Has_Stream_Attribute_Definition): If the type is derived from a
1121 private type, then use the derived type's underlying type for checking
1122 whether it has stream attributes.
1123 (Validate_Object_Declaration): The check for a user-defined Initialize
1124 procedure applies also to types with controlled components or a
1125 controlled ancestor.
1126 Reject an object declaration in a preelaborated unit if the type is a
1127 controlled type with an overriding Initialize procedure.
1128 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
1129 checking when the parent of a dereference is a selected component and
1130 the name has not been analyzed.
1132 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
1133 prefixes that are invalid explicit dereferences of remote
1134 access-to-class-wide values, first checking whether the selected
1135 component is a prefixed form of call to a tagged operation.
1136 (Analyze_Call): Remove code that issues an error for limited function
1137 calls in illegal contexts, as we now support all of the contexts that
1138 were forbidden here.
1139 Allow a function call that returns a task.and appears as the
1140 prefix of a selected component.
1141 (Analyze_Reference): Give error message if we try to make a 'Reference
1142 for an object that is atomic/aliased without its type having the
1143 corresponding attribute.
1144 (Analyze_Call): Remove condition checking for attributes to allow
1145 calls to functions with inherently limited results as prefixes of
1146 attributes. Remove related comment about Class attributes.
1147 (Analyze_Selected_Component): If the prefix is a remote type, check
1148 whether this is a prefixed call before reporting an error.
1149 (Complete_Object_Operation): If the controlling formal is an access to
1150 variable reject an actual that is a constant or an access to one.
1151 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
1152 primitive operations from base type.
1154 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
1156 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
1157 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
1158 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
1159 (Expand_N_Slice): Test for prefix that is a build-in-place function call
1160 and call Make_Build_In_Place_Call_In_Anonymous_Context.
1161 (Analyze_Call): Remove code that issues an error for limited function
1162 calls in illegal contexts, as we now support all of the contexts that
1163 were forbidden here.
1164 New calling sequence for Get_Simple_Init_Val
1165 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
1166 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
1168 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
1169 Ed Schonberg <schonberg@adacore.com>
1170 Robert Dewar <dewar@adacore.com>
1172 * exp_ch2.adb: Minor reformatting.
1173 (Expand_Entry_Index_Parameter): Set the type of the identifier.
1174 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
1175 (Expand_Protected_Component): New routine.
1176 (Expand_Protected_Private): Removed.
1177 Add Sure parameter to Note_Possible_Modification calls
1179 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
1180 generated subprogram declaration must inherit the overriding indicator
1181 from the instantiation node.
1182 (Validate_Access_Type_Instance): If the designated type of the actual is
1183 a limited view, use the available view in all cases, not only if the
1184 type is an incomplete type.
1185 (Instantiate_Object): Actual is illegal if the formal is null-excluding
1186 and the actual subtype does not exclude null.
1187 (Process_Default): Handle properly abstract formal subprograms.
1188 (Check_Formal_Package_Instance): Handle properly defaulted formal
1189 subprograms in a partially parameterized formal package.
1190 Add Sure parameter to Note_Possible_Modification calls
1191 (Validate_Derived_Type_Instance): if the formal is non-limited, the
1192 actual cannot be limited.
1193 (Collect_Previous_Instances): Generate instance bodies for subprograms
1196 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
1198 Add Sure parameter to Note_Possible_Modification calls
1199 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
1200 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
1201 constant overlaid by variable and issue warning.
1202 Use new Is_Standard_Character_Type predicate
1203 (Analyze_Record_Representation_Clause): Check that the specified
1204 Last_Bit is not less than First_Bit - 1.
1205 (Analyze_Attribute_Definition_Clause, case Address): Check for
1206 self-referential address clause
1208 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
1209 detection mechanism when the lhs is a prival.
1210 (Analyze_Assignment): Call Check_Unprotected_Access to detect
1211 assignment of a pointer to protected data, to an object declared
1212 outside of the protected object.
1213 (Analyze_Loop_Statement): Check for unreachable code after loop
1214 Add Sure parameter to Note_Possible_Modication calls
1215 Protect analysis from previous syntax error such as a scope mismatch
1217 (Analyze_Assignment_Statement): The assignment is illegal if the
1218 left-hand is an interface.
1220 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
1221 violation of restriction No_Implicit_Conditionals
1222 Add Sure parameter to Note_Possible_Modication calls
1223 Use new Is_Standard_Character_Type predicate
1224 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
1225 call as operator. Fixes problems (e.g. validity checking) which
1226 come from the result looking as though it does not come from source).
1227 (Resolve_Call): Check case of name in named parameter if style checks
1229 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
1230 from the checking that such calls should not occur from an entry body.
1231 (Resolve_Call): If the return type of an Inline_Always function
1232 requires the secondary stack, create a transient scope for the call
1233 if the body of the function is not available for inlining.
1234 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
1235 that are actuals for in-out formals.
1236 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
1237 primitive operations from base type.
1238 (Analyze_Selected_Component): If the context is a call to a protected
1239 operation the parent may be an indexed component prior to expansion.
1240 (Resolve_Actuals): If an actual is of a protected subtype, use its
1241 base type to determine whether a conversion to the corresponding record
1243 (Resolve_Short_Circuit): Handle pragma Check
1245 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
1246 Use new Is_Standard_Character_Type predicate
1247 (Eval_Relational_Op): Catch more cases of string comparison
1249 2008-04-08 Robert Dewar <dewar@adacore.com>
1250 Gary Dismukes <dismukes@adacore.com>
1252 * s-rident.ads: Add No_Default_Initialization restriction
1255 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
1256 (Set_TSS): Handle No_Default_Initialization case
1258 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
1259 No_Default_Initialization
1260 (Expand_N_Subprogram_Body): Remove redundant initialization of out
1261 parameters when Normalize_Scalars is active.
1262 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
1263 Fix casing error in formal parameter name in call
1264 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
1265 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
1266 dispatching call on VM targets.
1268 2008-04-08 Gary Dismukes <dismukes@adacore.com>
1269 Thomas Quinot <quinot@adacore.com>
1271 * exp_ch7.adb (Find_Final_List): Change the test for generating a
1272 selected component from an access type's Associated_Final_Chain to
1273 check for the presence of that field, rather than assuming it exists
1274 for all named access types.
1275 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
1276 procedure to call at the end of the generated cleanup procedure.
1277 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
1278 and an At_End_Proc already exists in the handled sequence of statements
1279 for which cleanup actions are being expanded, the original cleanup
1280 action must be preserved.
1282 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
1283 Ed Schonberg <schonberg@adacore.com>
1284 Robert Dewar <dewar@adacore.com>
1285 Gary Dismukes <dismukes@adacore.com>
1287 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
1288 Build_Unprotected_Subprogram_Body): Generate debug info for
1289 declarations related to the handling of private data in task and
1291 (Debug_Private_Data_Declarations): New subprogram.
1292 (Install_Private_Data_Declarations): Remove all debug info flagging.
1293 This is now done by Debug_Private_Data_Declarations at the correct
1295 (Build_Simple_Entry_Call): If the task name is a function call, expand
1296 the prefix into an object declaration, and make the surrounding block a
1298 (Build_Master_Entity): An internal block is a master if it wraps a call.
1299 Code reformatting, update comments. Code clean up.
1300 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
1301 (Replicate_Entry_Formals): If the formal is an access parameter or
1302 anonymous access to subprogram, copy the original tree to create new
1303 entities for the formals of the subprogram.
1304 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
1305 for tasks to store the value passed using pragma Relative_Deadline.
1306 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
1307 run-time call to create a task.
1308 (Build_Wrapper_Spec): If the controlling argument of the interface
1309 operation is an access parameter with a non-null indicator, use the
1310 non-null indicator on the wrapper.
1312 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
1313 present, which it may not be in the case where the type entity is an
1314 incomplete view brought in by a limited with.
1315 (Analyze_Task_Type): Only retrieve the full view when present, which it
1316 may not be in the case where the type entity is an incomplete view brought
1317 in by a limited with.
1318 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
1319 private components of a protected type, to prevent the generation of freeze
1320 nodes for which there is no proper scope of elaboration.
1322 * exp_util.ads, exp_util.adb
1323 (Remove_Side_Effects): If the expression is a function call that returns a
1324 task, expand into a declaration to invoke the build_in_place machinery.
1325 (Find_Protection_Object): New routine.
1326 (Remove_Side_Effects): Also make a copy of the value
1327 for attributes whose result is of an elementary type.
1328 (Silly_Boolean_Array_Not_Test): New procedure
1329 (Silly_Boolean_Array_Xor_Test): New procedure
1330 (Is_Volatile_Reference): New function
1331 (Remove_Side_Effects): Use Is_Volatile_Reference
1332 (Possible_Bit_Aligned_Component): Handle slice case properly
1334 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
1335 case test to Exp_Util
1336 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
1338 2008-04-08 Thomas Quinot <quinot@adacore.com>
1340 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
1342 (Add_RACW_Features): When processing an RACW in another unit than the
1343 main unit, set Body_Decls to No_List to indicate that the bodies of
1344 the type's TSS must not be generated.
1345 (GARLIC_Support.Add_RACW_Read_Attribute,
1346 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
1347 Body_Decls is No_List.
1348 (PolyORB_Support.Add_RACW_Read_Attribute,
1349 PolyORB_Support.Add_RACW_Write_Attribute,
1350 PolyORB_Support.Add_RACW_From_Any,
1351 PolyORB_Support.Add_RACW_To_Any,
1352 PolyORB_Support.Add_RACW_TypeCode): Same.
1353 (Transmit_As_Unconstrained): New function.
1354 (Build_Ordered_Parameters_List): Use the above to order parameters.
1355 (GARLIC_Support.Build_General_Calling_Stubs):
1356 Use the above to determine which parameters to unmarshall using 'Input
1357 at the point where their temporary is declared (as opposed to later on
1359 (PolyORB_Support.Build_General_Calling_Stubs):
1360 Use the above to determine which parameters to unmarshall using From_Any
1361 at the point where their temporary is declared (as opposed to later on
1362 with an assignment).
1364 2008-04-08 Ed Schonberg <schonberg@adacore.com>
1366 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
1367 an Input function for an access type, do not perform default
1368 initialization on the local variable that receives the value, to
1369 prevent spurious warnings when the type is null-excluding.
1371 2008-04-08 Robert Dewar <dewar@adacore.com>
1372 Ed Schonberg <schonberg@adacore.com>
1374 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
1376 (Size_Known): Generic formal scalar types have known at compile
1377 time size, so remove check.
1378 Fix casing error in formal parameter name in call
1379 (Freeze_Subprogram): If the subprogram is a user-defined operator,
1380 recheck its overriding indication.
1382 2008-04-08 Vincent Celier <celier@adacore.com>
1384 * gnat1drv.adb: Send all messages indicating an error to standard error
1386 2008-04-08 Robert Dewar <dewar@adacore.com>
1388 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
1389 (List_Applicable_Restrictions): Do not list existing restrictions
1391 2008-04-08 Thomas Quinot <quinot@adacore.com>
1393 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
1394 add a pointer to generic sockets literature
1395 do not mention that the given example is "typical" usage.
1396 Remove obsolete comment about multicast not being supported on Windows.
1397 (Connect_Socket): Make Server mode IN rather than IN OUT
1398 since this formal is never modified.
1400 2008-04-08 Robert Dewar <dewar@adacore.com>
1402 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
1403 the declaration for some different entity.
1404 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
1405 list is precent (following the parent subtype indication), display
1406 appropriate "and" keyword.
1408 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
1409 Remove unnecessary calls to Init_Size_Align and Init_Esize.
1410 Add notes on use of Parent field of an Itype
1412 2008-04-08 Ed Schonberg <schonberg@adacore.com>
1413 Robert Dewar <dewar@adacore.com>
1414 Gary Dismukes <dismukes@adacore.com>
1416 * lib-xref.adb (Is_On_LHS): Remove dead code
1417 (Output_Overriden_Op): If the overridden operation is itself inherited,
1418 list the ancestor operation, which is the one whose body or absstract
1419 specification is actually being overridden. For source navigation
1422 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
1423 operation is primitive for the type.
1424 (Declare_Inherited_Private_Subprograms): If the new operation overrides
1425 an inherited private subprogram, set properly the Overridden_Operation
1426 attribute, for better cross-reference information.
1427 (Analyze_Package_Specification): Do late analysis of spec PPCs
1428 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
1429 properly the full view and underlying full views of a private type in a
1430 child unit, whose full view is derived from a private type in a parent
1431 unit, and whose own full view becomes visible in the child body.
1433 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
1434 primitive operation after the type has been frozen, add an explicit
1435 reference to the type and the operation, because other primitive
1436 references have been emitted already.
1437 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
1438 dispatching call on VM targets.
1440 2008-04-08 Vincent Celier <celier@adacore.com>
1441 Thomas Quinot <quinot@adacore.com>
1443 * make.adb: (Gnatmake_Called): Remove, no longer necessary
1444 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
1445 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
1446 (Insert_Project_Sources): Take into account index in multi-unit source
1448 After building a library project, delete all temporary files.
1449 (Initialize): Reset current output after parsing project file.
1450 (Collect_Arguments_And_Compile): Never insert in the queue the sources
1451 of library projects that are externally built.
1452 Put file name in error and inform messages if -df is used
1453 (Display): If invoked with -d7, do not display path names, but only
1456 * makeutl.ads (Path_Or_File_Name): New function
1457 (Path_Or_File_Name): New function
1459 2008-04-08 Arnaud Charlet <charlet@adacore.com>
1461 * Make-lang.in: Disable warnings during first stage of bootstrap
1463 Update dependencies.
1465 2008-04-08 Vincent Celier <celier@adacore.com>
1467 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
1468 case to decide if ALI object file is included in library.
1469 (Build_Library): Never attempt to build a library if the project is
1472 2008-04-08 Thomas Quinot <quinot@adacore.com>
1474 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
1475 (No_List) is defined to return Empty.
1477 2008-04-08 Jose Ruiz <ruiz@adacore.com>
1479 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
1482 (Read_Default_Search_Dirs): Do not consider spaces as path separators
1483 because spaces may be part of legal paths.
1485 2008-04-08 Robert Dewar <dewar@adacore.com>
1487 * par-ch11.adb (P_Exception_Handler): Check indentation level for
1490 2008-04-08 Ed Schonberg <schonberg@adacore.com>
1492 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
1493 in a type declaration, if this is not an interface declaration or
1494 private type extension.
1496 2008-04-08 Vincent Celier <celier@adacore.com>
1498 * prj-util.adb (Executable_Of): New String parameter Language. When
1499 Ada_Main is False and Language is not empty, attempt to remove the body
1500 suffix or the spec suffix of the language to get the base of the
1501 executable file name.
1502 (Put): New Boolean parameter Lower_Case, defauilted to False. When
1503 Lower_Case is True, put the value in lower case in the name list.
1504 (Executable_Of): If there is no executable suffix in the configuration,
1505 then do not modify Executable_Extension_On_Target.
1507 * prj-util.ads (Executable_Of): New String parameter Language,
1508 defaulted to the empty string.
1509 (Put): New Boolean parameter Lower_Case, defauilted to False
1511 2008-04-08 Robert Dewar <dewar@adacore.com>
1513 * scng.adb (Scan_Identifier): Handle case of identifier starting with
1514 wide character using UTF-8 encoding.
1516 2008-04-08 Javier Miranda <miranda@adacore.com>
1518 * sem.adb (Analyze): Consider case in which we analyze an empty node
1519 that was generated by a call to a runtime function that is not
1520 available under the configurable runtime.
1522 * sem.ads (Inside_Freezing_Actions): New flag.
1523 (Save_Check_Policy_List): New field in scope stack entry
1525 2008-04-08 Ed Schonberg <schonberg@adacore.com>
1526 Robert Dewar <dewar@adacore.com>
1528 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
1529 the ancestor part of an extension aggregate for a limited type.
1530 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
1531 enumeration index bounds.
1532 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
1533 when array is too short.
1534 (Check_Expr_OK_In_Limited_Aggregate): Move function
1535 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
1537 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
1538 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
1539 component associations.
1540 (Check_Non_Limited_Type): Moved to outer level and renamed.
1541 (Resolve_Record_Aggregate): In an extension aggregate, an association
1542 with a box initialization can only designate a component of the
1543 extension, not a component inherited from the given ancestor
1545 * sem_case.adb: Use new Is_Standard_Character_Type predicate
1547 2008-04-08 Robert Dewar <dewar@adacore.com>
1549 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
1551 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
1552 Properly handle case where Aft > Scale and input number is less than
1555 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
1557 * s-stoele.ads, s-soflin.ads: Move the location of
1558 Dummy_Communication_Block from System.Storage_Elements to
1561 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
1562 emulate Communication_Block in certain scenarios.
1564 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
1566 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
1568 Add new subtype S_WWC, unchecked conversion routines From_WWC and
1570 (I_WWC, O_WWC): New routines for input and output of
1571 Wide_Wide_Character.
1573 2008-04-08 Robert Dewar <dewar@adacore.com>
1575 * stringt.adb (Write_String_Table_Entry): Handle wide characters
1578 2008-04-08 Robert Dewar <dewar@adacore.com>
1580 * styleg.adb (Check_Comment): Allow special char after -- in
1581 non-end-of-line case
1583 2008-04-08 Robert Dewar <dewar@adacore.com>
1585 * stylesw.adb: Implement -gnaty + - y options
1586 (Set_GNAT_Style_Check_Options): Includ I in style check string
1588 * stylesw.ads: Add comments for new style switch options
1590 2008-04-08 Sergey Rybin <rybin@adacore.com>
1592 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
1593 to the set of the GNAT components needed by ASIS.
1595 2008-04-08 Bob Duff <duff@adacore.com>
1597 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
1599 2008-04-08 Tristan Gingold <gingold@adacore.com>
1601 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
1602 Improve error message generation.
1604 2008-04-08 Vincent Celier <celier@adacore.com>
1606 * a-direct.adb (Start_Search): Check for Name_Error before checking for
1607 Use_Error, as specified in the RM. Check if directory is open and raise
1608 Use_Error if it is not.
1610 2008-04-08 Vincent Celier <celier@adacore.com>
1611 Robert Dewar <dewar@adacore.com>
1613 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
1614 AAMP_On_Target is set.
1616 * vms_data.ads: Add NOxxx to style check switch list
1617 Add entry COMPONENTS for -gnatVe
1618 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
1620 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
1621 Add qualifiers for gnatmetric coupling options
1622 Add note that -gnata enables all checks
1623 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
1624 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
1625 New warning flag -gnatw.e
1627 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
1628 Add entry for -gnatyN (forgotten before)
1629 Line for new warning switch -gnatw.p
1630 New warning flag -gnatw.e
1632 * gnat_ugn.texi: Add documentation fpr project file switch -aP
1633 Document -gnaty - + y
1634 Replace occurences of "package specification" with "package spec"
1635 Define preprocessing symbols in documentation of gnatprep
1636 Clarify reason for distinguishing overflow checking
1637 Add documentation for project-aware tool switches -eL and --subdirs=
1638 Complete list of configuration pragmas
1639 Specify that, even when gnatmake switch -x is used, mains on the command
1640 line need to be sources of project files.
1641 Editing of gnatcheck/gnatmetric doc.
1642 Add documentation for -gnatw.p/-gnatw.P
1643 Add missing documentation for -fno-inline-functions.
1644 Add documentation for -gnatw.e
1646 * gnat_rm.texi: Add documentation for No_Default_Initialization
1647 Replace occurences of "package specification" with "package spec"
1648 Document use of * in Warnings Off string
1649 Update documentation of alignment/component clauses.
1650 Add documentation for Invalid_Value
1651 Document new consistency rule for Optimize_Alignment
1652 Add documentation for Precondition and Postcondition pragmas
1653 Add documentation for Check and Check_Policy pragmas
1654 Document new Enum_Val attribute
1655 Remove requirement for static string in pragma Assert
1656 Add documentation on GNAT.Time_Stamp
1658 * ug_words: add entry for -gnatVe
1659 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
1660 Add entry for -gnatw.e
1662 * debug.adb: Add missing documentation for d.a flag
1663 Document new -gnatd.a switch.
1664 Add documentation for new gnatmake debug switch -df
1666 2008-04-08 Thomas Quinot <quinot@adacore.com>
1668 * gen-soccon.c: Bump year in copyright notices.
1670 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
1672 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
1674 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
1677 2008-04-08 Robert Dewar <dewar@adacore.com>
1678 Bob Duff <duff@adacore.com>
1680 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
1681 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
1683 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
1685 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
1687 * g-trasym.ads: Minor comment improvements
1689 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
1691 * a-sequio.ads, a-direio.ads: improve message for tagged type
1693 * a-strunb.ads: Minor reformatting
1695 * a-tifiio.adb: Minor reformatting
1697 * atree.adb (Fix_Parents): Use clearer names for formals
1698 Cleanup and simplify code
1699 Use named notation in calls
1701 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
1704 * uintp.adb: Used named notation for some confusing calls
1706 * bindusg.adb: Minor change in one line of output
1708 * cstand.adb: Minor reformatting of src representation of Standard
1710 * a-assert.ads: Add comment.
1712 * g-decstr.adb: Fix bad indentation
1714 * expander.ads, expander.adb: Code clean up.
1716 * sem_dist.ads: Minor comment improvement
1718 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
1719 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
1721 * i-cstrin.adb: Fix casing error in formal parameter name in call
1723 2008-04-08 Ed Schonberg <schonberg@adacore.com>
1725 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
1726 mentioned in limited_with_clauses to do create semantic dependencies
1727 even though they appear in the ali file.
1729 2008-04-08 Emmanuel Briot <briot@adacore.com>
1731 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
1733 (Get_Configuration): New subprogram.
1735 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
1736 These optional parameters help preserve the casing of the project's name
1737 when pretty-printing.
1739 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
1740 Arnaud Charlet <charlet@adacore.com>
1742 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
1743 then use __gnat_set_exit_status to report the returned status code.
1745 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
1746 messages on .NET, since some constructs of the language are not
1749 * gnatlink.adb (Gnatlink): In case the command line is too long for the
1750 .NET linker, gnatlink now concatenate all .il files and pass this to
1753 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
1754 Xavier Grave <grave@ipno.in2p3.fr>
1756 * Makefile.in: Add make ifeq define for mips/mipsel support.
1757 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
1758 system-linux-mips.ads: New files.
1760 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
1762 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
1763 detect systems using GNU libc.
1769 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
1771 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
1772 constant constant for sysconf call.
1773 (bit_field): New packed boolean type used by cpu_set_t.
1774 (cpu_set_t): New type corresponding to the C type with
1775 the same name. Note that on the Ada side we use a bit
1776 field array for the affinity mask. There is not need
1777 for the C macro for setting individual bit.
1778 (pthread_setaffinity_np): New imported routine.
1779 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
1782 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
1784 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
1786 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
1788 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
1789 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
1790 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
1791 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
1792 Return by Depressed Stack Pointer.
1794 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
1796 * decl.c (is_variable_size): Do not unconditionally return false
1797 on non-strict alignment platforms.
1799 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
1801 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
1802 used to process all the variants of the specified type.
1803 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
1804 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
1805 (rest_of_type_decl_compilation): Likewise.
1806 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
1808 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
1810 * gigi.h (insert_block): Kill.
1811 * utils.c (insert_block): Kill.
1813 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
1815 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
1816 type has self-referential size, get the size from the initializing
1817 expression directly if it is also a constant whose nominal type
1818 has self-referential size.
1820 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1823 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
1826 * env.c: Always include crt_externs.h if __APPLE__ is defined.
1827 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
1829 2008-04-01 Andreas Jaeger <aj@suse.de>
1831 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
1834 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1836 * g-table.adb, g-tasloc.adb, g-traceb.ads,
1837 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
1838 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
1839 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
1840 gnatlink.adb, gnatmem.adb, gprep.adb,
1841 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
1842 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
1843 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
1844 lib-xref.ads, lib.adb, link.c, live.ads,
1845 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
1846 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
1847 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
1848 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
1849 namet.adb, namet.h, nlists.adb, nlists.ads,
1850 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
1851 osint-c.ads, osint.adb, osint.ads, output.ads,
1852 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
1853 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
1854 par-endh.adb, par-labl.adb, par-prag.adb,
1855 par-sync.adb, par-tchk.adb, par-util.adb,
1856 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
1857 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
1858 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
1859 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
1861 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
1863 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
1864 size if it has overflowed.
1866 2008-03-31 Olivier Hainque <hainque@adacore.com>
1867 Eric Botcazou <ebotcazou@adacore.com>
1869 * utils2.c (find_common_type): Document assumption on t1/t2 vs
1870 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
1872 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1874 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
1875 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
1876 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
1877 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
1878 exp_tss.ads, exp_util.adb, exp_util.ads,
1879 exp_vfpt.adb, freeze.adb, freeze.ads,
1880 frontend.adb, g-alleve.adb, g-altcon.adb,
1881 g-altive.ads, g-alveop.ads, g-alvevi.ads,
1882 g-arrspl.adb, g-busorg.ads, g-calend.adb,
1883 g-calend.ads, g-casuti.ads, g-cgideb.adb,
1884 g-comlin.adb, g-comlin.ads, g-curexc.ads,
1885 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
1886 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
1887 g-dyntab.adb, g-encstr.ads, g-excact.ads,
1888 g-except.ads, g-expect.ads, g-heasor.adb,
1889 g-hesora.adb, g-hesorg.adb, g-htable.ads,
1890 g-locfil.ads, g-md5.adb, g-md5.ads,
1891 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
1892 g-pehage.adb, g-pehage.ads, g-regexp.adb,
1893 g-regexp.ads, g-regpat.adb, g-regpat.ads,
1894 g-soccon-aix.ads, g-soccon-darwin.ads,
1895 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
1896 g-soccon-hpux.ads, g-soccon-irix.ads,
1897 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
1898 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
1899 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
1900 g-soccon-solaris.ads, g-soccon-tru64.ads,
1901 g-soccon-vms.ads, g-soccon-vxworks.ads,
1902 g-soccon.ads, g-socket.adb, g-socket.ads,
1903 g-socthi-mingw.adb, g-socthi-vms.adb,
1904 g-socthi-vxworks.adb, g-soliop-mingw.ads,
1905 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
1906 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
1909 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
1911 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
1912 if the procedure is imported.
1914 2008-03-26 Arnaud Charlet <charlet@adacore.com>
1916 * adaint.c: Fix warnings.
1918 2008-03-26 Arnaud Charlet <charlet@adacore.com>
1920 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
1922 2008-03-26 Arnaud Charlet <charlet@adacore.com>
1924 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
1925 Fix problem of status check for null file
1927 2008-03-26 Arnaud Charlet <charlet@adacore.com>
1929 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
1930 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
1931 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
1932 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
1933 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
1936 2008-03-26 Thomas Quinot <quinot@adacore.com>
1939 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
1940 Get_Socket_Option): Add support for Receive_Packet_Info.
1942 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
1943 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
1944 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
1945 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
1946 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
1947 new constants SO_REUSEPORT and IP_PKTINFO
1949 2008-03-26 Robert Dewar <dewar@adacore.com>
1951 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
1952 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
1953 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
1954 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
1955 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
1956 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
1957 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
1958 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
1959 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
1960 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
1961 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
1962 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
1963 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
1964 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
1965 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
1966 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
1967 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
1968 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
1969 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
1970 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
1971 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
1972 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
1973 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
1974 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
1975 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
1976 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
1977 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
1978 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
1979 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
1980 s-tasloc.adb: Minor reformatting.
1982 Remove "used for" sections from comments.
1984 2008-03-26 Robert Dewar <dewar@adacore.com>
1986 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
1987 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
1988 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
1989 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
1990 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
1991 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
1992 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
1993 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
1994 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
1995 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
1996 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
1997 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
1998 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
1999 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
2000 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
2001 double spaced if it fits on one line and otherwise single spaced.
2003 2008-03-26 Arnaud Charlet <charlet@adacore.com>
2005 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
2006 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
2007 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
2008 or task info if the thread could not be created.
2010 2008-03-26 Arnaud Charlet <charlet@adacore.com>
2012 * gnatvsn.ads (Library_Version): Bump to 4.4.
2013 (Current_Year): Bump to 2008.
2015 2008-03-26 Robert Dewar <dewar@adacore.com>
2017 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
2019 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
2021 * debug.adb: Add debug flags d.r and d.v
2022 Add debug flag .T (Optimize_Alignment (Time))
2023 Add debug flag .S (Optimize_Alignment (Space))
2025 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
2026 depending on setting of relevant debug flags.
2027 Replace use of Warnings_Off by Has_Warnings_Off
2028 (Freeze_Entity): In circuit for warning on suspicious convention
2029 actuals, do not give warning if subprogram has same entity as formal
2030 type, or if subprogram does not come from source.
2031 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
2032 if Optimize_Alignment set to Space.
2034 * frontend.adb: Add call to Sem_Warn.Initialize
2035 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
2036 Reset Optimize_Alignment mode from debug switches .S and .T
2038 * layout.adb (Layout_Composite_Object): Rewritten for
2039 Optimize_Aligment pragma.
2041 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
2044 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
2046 * par-prag.adb (N_Pragma): Chars field removed, use Chars
2047 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
2048 this change. Add entry for pragma Optimize_Alignment
2050 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
2051 (Pragma_Identifier (..
2052 instead, adjustments throughout to accomodate this change.
2053 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
2054 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
2055 Add implementation of pragma Optimize_Alignment
2057 2008-03-26 Vincent Celier <celier@adacore.com>
2059 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
2060 Improve memory usage to avoid use of stack.
2062 2008-03-26 Robert Dewar <dewar@adacore.com>
2064 * a-teioed.ads: Correct value of Default_Fill
2066 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
2068 2008-03-26 Robert Dewar <dewar@adacore.com>
2070 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
2071 with Current_Output (introduce Self).
2073 2008-03-26 Robert Dewar <dewar@adacore.com>
2075 * checks.adb (Ensure_Valid): Capture valid status if possible
2078 2008-03-26 Robert Dewar <dewar@adacore.com>
2080 * stand.ads: Deal with reordering of package standard declarations
2082 * cstand.adb: Put package Standard declarations in proper order
2084 2008-03-26 Robert Dewar <dewar@adacore.com>
2086 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
2087 (Pragma_Identifier (.. instead.
2088 (OK_To_Reorder_Components): New flag
2089 (Has_Entries): Code cleanup.
2090 (Warnings_Off_Used): New flag
2091 (Warnings_Off_Used_Unmodified): New flag
2092 (Warnings_Off_Used_Unreferenced): New flag
2093 (Has_Warnings_Off): New function
2094 (Has_Unmodified): New function
2095 (Has_Unreferenced): New function
2096 (Is_Trivial_Subprogram): New flag
2097 (Is_Static_Dispatch_Table_Entity): New attribute.
2098 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
2099 (more consistent with other similar names)
2100 (Access_Subprogram_Type): New classification function
2102 2008-03-26 Robert Dewar <dewar@adacore.com>
2104 * errout.ads: Document new !! insertion sequence
2106 * errout.adb (N_Pragma): Chars field removed, use Chars
2107 (Pragma_Identifier (.. instead.
2108 Replace use of Warnings_Off by Has_Warnings_Off
2109 (Error_Msg_Internal): Don't delete warning ending in !!
2111 2008-03-26 Robert Dewar <dewar@adacore.com>
2113 * par.adb (Check_No_Right_Paren): Removed no longer used
2115 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
2116 (Pragma_Identifier (.. instead.
2118 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
2120 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
2121 par-ch4.adb: Minor improvements in error recovery and messages.
2123 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
2126 * par-ch9.adb: Minor improvements in error recovery and messages
2127 (P_Protected): Better error recovery for "protected type x;"
2129 * par-util.adb: Minor improvements in error recovery and messages
2130 (Check_No_Right_Paren): Removed no longer used
2132 2008-03-26 Ed Schonberg <schonberg@adacore.com>
2134 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
2135 that the prefix of an attribute is the type of the aggregate being
2138 2008-03-26 Javier Miranda <miranda@adacore.com>
2139 Robert Dewar <dewar@adacore.com>
2141 * exp_attr.adb (N_Pragma): Chars field removed.
2142 (Expand_N_Attribute_Reference): If the designated type associated with
2143 attribute 'Unrestricted_Access is a subprogram entity then replace it
2144 by an E_Subprogram_Type itype.
2145 Implement attribute Old
2147 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
2149 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
2151 New_Internal_Entity by call to Create_Itype to centralize calls
2152 building itypes, ad propagate the convention of the designated
2153 subprogram. In addition, disable the machinery cleaning constant
2154 indications from all entities in current scope when 'Unrestricted_Access
2155 corresponds with a node initializing a dispatch table slot.
2156 (Analyze_Attribute): Parameterless attributes returning a string or a
2157 type will not be called with improper arguments, so we can remove junk
2158 code that was dealing with this case.
2159 Implement attribute Old
2161 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
2162 Add entry for pragma Optimize_Alignment
2163 New standard names Sync and Synchronize
2165 2008-03-26 Robert Dewar <dewar@adacore.com>
2166 Arnaud Charlet <charlet@adacore.com>
2168 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
2170 (No_Exception_Propagation_Active): New function.
2171 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
2172 Update comments, and review all uses of No_Exception_Propagation, which
2173 are now correct and in sync with what gigi expects.
2175 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
2177 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
2178 Update comments, and review all uses of No_Exception_Propagation, which
2179 are now correct and in sync with what gigi expects.
2181 2008-03-26 Ed Schonberg <schonberg@adacore.com>
2183 * sem_ch3.adb (Access_Definition): If the access type is the return
2184 result of a protected function, create an itype reference for it
2185 because usage will be in an inner scope from the point of declaration.
2186 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
2187 OK_To_Reorder_Components.
2188 (Make_Index): If an overloaded range includes a universal integer
2189 interpretation, resolve to Standard.Integer.
2190 (Analyze_Subtype_Indication): Copy Convention to subtype
2191 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
2192 limited an synchronized progenitors in type declaration and private
2193 extension declarations.
2195 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
2196 protected subprogram body, determine proper scope from subprogram
2199 2008-03-26 Robert Dewar <dewar@adacore.com>
2201 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
2204 2008-03-26 Gary Dismukes <dismukes@adacore.com>
2206 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
2207 of a heap allocator for a limited unconstrained function return when
2208 resstriction No_Allocators is active.
2209 (Analyze_Allocator): The restriction No_Allocators is now only checked
2210 on allocators that have Comes_From_Source set, as per RM-H.4(7).
2212 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
2213 of a heap allocator for a limited unconstrained function return when
2214 resstriction No_Allocators is active.
2215 (Analyze_Allocator): The restriction No_Allocators is now only checked
2216 on allocators that have Comes_From_Source set, as per RM-H.4(7).
2217 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
2218 operands are fixed-point types, the universal_fixed predefined operation
2219 is used, regardless of whether the operand type (s) have a primitive
2220 operation of the same name.
2222 2008-03-26 Javier Miranda <miranda@adacore.com>
2224 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
2225 Is_Static_Dispatch_Table
2226 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
2227 to Exchange_Declarations to exchange the private and full-view. Bug
2228 found working in this issue.
2229 (Expand_Dispatching_Call): Propagate the convention of the subprogram
2230 to the subprogram pointer type.
2231 (Make_Secondary_DT): Replace generation of Prim'Address by
2232 Address (Prim'Unrestricted_Access)
2233 (Make_DT): Replace generation of Prim'Address by
2234 Address (Prim'Unrestricted_Access)
2235 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
2236 simple call form for single entry.
2237 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
2238 tables of predefined primitives).
2239 (Make_Secondary_DT): Add support to handle access to dispatch tables of
2240 predefined primitives.
2241 (Make_Tags): Add entities to Access_Dispatch_Table associated with
2242 access to dispatch tables containing predefined primitives.
2244 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
2245 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
2247 (Register_Predefined_DT_Entry): Updated to handle the new contents
2248 of attribute Access_Disp_Table (pointers to dispatch tables containing
2249 predefined primitives).
2251 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
2253 (Find_Interface_ADT): Updated to skip the new contents of attribute
2254 Access_Dispatch_Table (pointers to dispatch tables containing predefined
2257 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
2259 (Set_Convention): Use new function Is_Access_Subprogram_Type
2260 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
2261 Access_Dispatch_Table (pointers to dispatch tables containing predefined
2264 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
2265 expanded code avoiding calls to Build_Predef_Prims.
2266 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
2267 call to Build_Get_Predefined_Prim_Op_Address.
2269 2008-03-26 Javier Miranda <miranda@adacore.com>
2271 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
2272 subprogram Corresponding_Runtime_Package to know the runtime package
2273 that will provide support to a given protected type.
2275 * exp_ch9.adb (Add_Private_Declarations,
2276 Build_Protected_Subprogram_Call,
2277 Build_Protected_Entry, Build_Simple_Entry_Call,
2278 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
2279 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
2280 cleanup using the new centralized subprogram Corresponding_Runtime
2281 Package to know the runtime package that provides support to
2282 a given protected type.
2284 2008-03-26 Ed Schonberg <schonberg@adacore.com>
2286 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
2287 assignment is within the initialization procedure for a packed array,
2288 and Initialize_Scalars is enabled, compile right-hand side with checks
2289 off, because the value is purposely out of range.
2291 2008-03-26 Vincent Celier <celier@adacore.com>
2293 * gnatcmd.adb: Add processing for GNAT SYNC
2295 * vms_conv.ads: (Command_Type): Add command Sync
2297 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
2299 * vms_data.ads: Add entries for -gnatw.w
2300 Add qualifier for gnatstub --header-file option
2301 Add switches for GNAT SYNC
2303 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
2304 (Add_Package_Name): New procedure
2305 (Package_Name_List): New function
2306 (Initialize): Add known package names to the list
2307 (Register_New_Package): Add the new package name to the list
2309 2008-03-26 Robert Dewar <dewar@adacore.com>
2311 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
2312 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
2313 Raise_Exception by "raise with" construct.
2315 2008-03-26 Pascal Obry <obry@adacore.com>
2317 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
2318 supported platforms.
2320 * Makefile.rtl: Add g-sercom.o.
2322 * impunit.adb: Add g-sercom.adb.
2324 * s-crtl.ads (open): New routine.
2328 * s-osinte-mingw.ads (BYTE): New type.
2330 (OVERLAPPED): Likewise.
2331 (GENERIC_READ): New constant.
2332 (GENERIC_WRITE): Likewise.
2333 (OPEN_EXISTING): Likewise.
2334 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
2336 (CreateFile): New routine.
2337 (WriteFile): Likewise.
2338 (ReadFile): Likewise.
2339 (CloseHandle): Move next to the other file oriented routines.
2341 * g-sercom.ads: New unit.
2343 * g-sercom.adb: Default implementation, calls to this unit will raise
2344 a program error exception.
2346 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
2347 GNU/Linux implementations.
2349 2008-03-26 Robert Dewar <dewar@adacore.com>
2351 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
2353 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
2354 unchecked conversion for different conventions only for subprogram
2357 2008-03-26 Vincent Celier <celier@adacore.com>
2359 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
2360 to check if the specified object file is correct.
2362 2008-03-26 Thomas Quinot <quinot@adacore.com>
2364 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
2365 Comes_From_Source to exclude primitives from being checked. We want to
2366 exclude predefined primitives only, so use the appropriate specific
2367 predicate. Also, flag a formal parameter of an anonymous
2368 access-to-subprogram type as illegal for a primitive operation of a
2369 remote access to class-wide type.
2371 2008-03-26 Vincent Celier <celier@adacore.com>
2373 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
2374 known, check if it may be a missspelling of a known package name. In
2375 not verbose, not mode, issue warnings only if the package name is a
2376 possible misspelling.
2377 In verbose mode, always issue a warning for a not known package name,
2378 plus a warning if the name is a misspelling of a known package name.
2380 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
2381 limited withs or limited withs are parse during one call.
2382 (Parse_Single_Project): Post parse context clause in two passes: non
2383 limited withs before current project and limited withs after current
2386 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
2387 project with the name With_Name, even if it is only extended indirectly.
2388 (Recursive_Process): Process projects in order: first single withs, then
2389 current project, then limited withs.
2391 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
2392 project with the name With_Name, even if it is only extended indirectly.
2394 2008-03-26 Robert Dewar <dewar@adacore.com>
2396 * scn.adb (Initialize_Scanner): Format messages belong on standard error
2398 2008-03-26 Ed Schonberg <schonberg@adacore.com>
2400 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
2401 a generic subprogram that is imported, do not attempt to compile
2404 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
2405 imported, do not generate a raise_program_error for the non-existent
2407 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
2408 perform minimal name resolution on the generic to avoid spurious
2410 (Find_Actual_Type): the designated type of the actual in a child unit
2411 may be declared in a parent unit without being an actual.
2413 2008-03-26 Robert Dewar <dewar@adacore.com>
2415 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
2416 * sinfo.ads, sinfo.adb (From_At_End): New flag
2418 2008-03-26 Ed Schonberg <schonberg@adacore.com>
2420 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
2421 operations that have an interface parameter.
2422 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
2423 Don't treat No_Return call as raise.
2425 * sem_disp.adb (Check_Dispatching_Operations): apply check for
2426 non-primitive interface primitives to access parameters, not to all
2427 parameters of an access type.
2429 2008-03-26 Ed Schonberg <schonberg@adacore.com>
2431 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
2432 declarations of a parent unit are made visible when compiling a child
2433 instance, the parent is not a hidden open scope, even though it may
2434 contain other pending instance.
2436 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
2437 hidden open scope for some child instance, it does affect the
2438 visibility status of other stach entries.
2439 (Analyze_Object_Renaming): Check that a class-wide object cannot be
2440 renamed as an object of a specific type.
2442 2008-03-26 Robert Dewar <dewar@adacore.com>
2444 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
2445 recursion and raise SE directly.
2446 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
2447 set for formal type for IN mode parameter.
2449 2008-03-26 Robert Dewar <dewar@adacore.com>
2451 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
2452 (Initialize): New procedure
2453 (Output_Warnings_Off_Warnings): New procedure
2454 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
2455 (Output_Non_Modifed_In_Out_Warnings): Ditto
2456 (Warn_On_Unreferenced_Entity): Ditto
2458 2008-03-26 Vincent Celier <celier@adacore.com>
2460 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
2463 2008-03-26 Matthew Heaney <heaney@adacore.com>
2465 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
2466 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
2467 Marked with clauses as private, and controlled operations as overriding
2469 2008-03-26 Robert Dewar <dewar@adacore.com>
2471 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
2473 2008-03-26 Robert Dewar <dewar@adacore.com>
2475 * back_end.adb, back_end.ads: Minor reformatting
2477 * bindgen.adb: Minor clarification of comments
2479 * fname.ads: Minor comment fixes
2481 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
2482 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
2484 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
2485 xsnames.adb: Remove warnings off pragma no longer needed
2487 * a-catizo.ads, a-calari.ads, a-calfor.adb,
2488 a-calfor.ads: Fix header.
2490 2008-03-26 Tristan Gingold <gingold@adacore.com>
2492 * init.c: Do not adjust pc for HPARITH on alpha/vms.
2494 2008-03-26 Robert Dewar <dewar@adacore.com>
2496 * lib-xref.adb: (OK_To_Set_Reference): New function
2497 (Generate_Reference): Don't set referenced from occurrence in Warnings,
2498 Unmodified, or Unreferenced pragma
2500 2008-03-26 Robert Dewar <dewar@adacore.com>
2502 * alloc.ads: Add entries for Warnings_Off_Pragmas table
2504 2008-03-26 GNAT Script <nobody@adacore.com>
2506 * Make-lang.in: Makefile automatically updated
2508 2008-03-26 Robert Dewar <dewar@adacore.com>
2510 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
2511 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
2512 removed, use Chars (Pragma_Identifier (.. instead, adjustments
2513 throughout to accomodate this change.
2515 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
2517 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
2518 Einfo.Set_Needs_Debug_Info)
2520 2008-03-26 Robert Dewar <dewar@adacore.com>
2522 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
2523 Add description for the new gnatstub option '--header-file'
2524 clarification of -gnatwz/-gnatwZ
2525 Add a "Irix-Specific Considerations" section to document the need to
2526 set LD_LIBRARY_PATH when using the default shared runtime library.
2527 Added documentation for both gcov and gprof.
2529 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
2530 messages that are not suppressed when clients are compiled.
2531 Add documentation of s-pooglo s-pooloc
2532 Document the new GNAT.Serial_Communications API.
2533 Add documentation for 'Old attribute
2534 Add description of pragma Optimize_Alignment
2536 * ug_words: Add entries for -gnatw.w -gnatw.W
2538 * usage.adb: Add line for -gnatw.w (warn on warnings off)
2540 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
2543 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
2545 * decl.c (maybe_pad_type): Avoid padding an integral type when
2546 bumping its alignment is sufficient.
2548 2008-03-25 Arnaud Charlet <charlet@adacore.com>
2550 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
2551 Fix wrong formatting (lines too long)
2553 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2555 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
2556 a-calend-vms.adb, a-calend.adb, a-calend.ads,
2557 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
2558 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
2559 a-cohama.ads, a-comlin.ads, a-coorse.adb,
2560 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
2561 a-except-2005.ads, a-except.adb, a-except.ads,
2562 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
2563 a-exextr.adb, a-filico.ads, a-finali.ads,
2564 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
2565 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
2566 a-sequio.ads, a-strbou.ads, a-strfix.adb,
2567 checks.adb, exp_ch3.adb, exp_ch4.adb,
2568 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
2569 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
2570 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
2571 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
2572 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
2574 2008-03-24 Robert Dewar <dewar@adacore.com>
2576 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
2577 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
2578 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
2579 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
2580 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
2581 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
2582 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
2583 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
2584 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
2585 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
2586 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
2587 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
2588 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
2589 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
2590 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
2591 double spaced if it fits on one line and otherwise single spaced.
2593 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2595 PR documentation/15479
2596 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
2597 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
2598 (doc/gnat_ugn.info): Renamed from ...
2599 (doc/gnat_ugn_unw.info): ... this.
2600 (doc/gnat_ugn.dvi): Renamed from ...
2601 (doc/gnat_ugn_unw.dvi): ... this.
2602 (doc/gnat_ugn.pdf): Renamed from ...
2603 (doc/gnat_ugn_unw.pdf): ... this.
2604 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
2606 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
2607 unconditionally to gnat_ugn.info. Fix cross references to the
2608 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
2609 and GNU make manuals to be proper texinfo links.
2610 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
2612 2008-03-21 Olivier Hainque <hainque@adacore.com>
2614 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
2615 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
2617 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
2619 * trans.c (addressable_p): Add notes on addressability issues.
2621 2008-03-21 Olivier Hainque <hainque@adacore.com>
2622 Ed Schonberg <schonberg@adacore.com>
2624 * trans.c (addressable_p): Accept COND_EXPR when both arms
2626 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
2627 (call_to_gnu): Do not use name reference in the error message
2628 for a misaligned by_reference_parameter. The actual may be a
2631 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
2633 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
2635 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2637 * gnat_rm.texi (Implementation Defined Characteristics)
2638 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
2640 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
2641 (Switches for gnatchop, Installing a library): Likewise.
2643 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
2645 * trans.c (emit_range_check): Do not emit the check if the base type
2646 of the expression is the type against which its range must be checked.
2648 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2650 * decl.c (maybe_pad_type): Use value_factor_p.
2652 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2654 * lang.opt (nostdlib): Move around.
2655 * misc.c (gnat_handle_option): Fix formatting.
2656 (gnat_dwarf_name): Move around.
2657 * trans.c (Case_Statement_to_gnu): Fix formatting.
2658 (gnat_to_gnu): Likewise.
2659 * utils.c (aggregate_type_contains_array_p): Likewise.
2660 (create_subprog_decl): Likewise.
2662 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2664 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
2665 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
2667 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2669 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
2670 BIGGEST_ALIGNMENT when capping the alignment of records with
2671 strict alignment and size clause.
2673 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2675 * lang-specs.h: Pass -gnatwa if -Wall is passed.
2676 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
2677 and -Wuninitialized.
2678 (gnat_post_options): Clear warn_unused_parameter.
2680 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2682 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
2683 aligned bit-fields, bumping the alignment of the record type if deemed
2685 (value_factor_p): Return false instead of 0.
2687 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2689 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
2690 for scalar types with small alignment.
2692 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
2694 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
2695 from that of the front-end's end label.
2696 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
2697 from that of the loop label.
2699 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
2701 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
2702 comment for the packed array type case.
2703 * utils.c (build_template): Use a loop to strip padding or
2704 containing records for justified modular types.
2706 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
2708 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
2709 large alignments specified for types.
2710 (validate_alignment): Minor cleanup.
2712 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
2714 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
2715 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
2716 the component for packing, if possible, as well as if a component
2717 size clause is specified.
2718 <E_Record_Subtype>: For an array type used to implement a packed
2719 array, get the component type from the original array type.
2720 Try to get a smaller form of the component for packing, if possible,
2721 as well as if a component size clause is specified.
2722 (round_up_to_align): New function.
2723 (make_packable_type): Add in_record parameter.
2724 For a padding record, preserve the size. If not in_record and the
2725 size is too large for an integral mode, attempt to shrink the size
2726 by lowering the alignment.
2727 Ditch the padding bits of the last component.
2728 Compute sizes and mode manually, and propagate the RM size.
2729 Return a BLKmode record type if its size has shrunk.
2730 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
2731 Use Original_Array_Type to retrieve the type in case of an error.
2732 Adjust call to make_packable_type.
2733 (gnat_to_gnu_field): Likewise.
2734 (concat_id_with_name): Minor tweak.
2735 * trans.c (larger_record_type_p): New predicate.
2736 (call_to_gnu): Compute the nominal type of the object only if the
2737 parameter is by-reference. Do the conversion actual type -> nominal
2738 type if the nominal type is a larger record.
2739 (gnat_to_gnu): Do not require integral modes on the source type to
2740 avoid the conversion for types with identical names.
2741 (addressable_p): Add gnu_type parameter. If it is specified, do not
2742 return true if the expression is not addressable in gnu_type.
2743 Adjust recursive calls.
2744 * utils.c (finish_record_type): Remove dead code.
2746 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
2749 * decl.c (maybe_pad_type): Avoid padding an integral type when
2750 bumping its alignment is sufficient.
2752 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2754 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
2755 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
2757 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
2758 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
2759 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
2760 code output strings.
2761 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
2762 system-vms_64.ads: Fix typos in ada source code comments.
2763 * sinfo-cn.adb: Remove incomplete sentence.
2765 PR documentation/15479
2766 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
2768 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
2771 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
2773 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
2776 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
2777 that underlying type is present.
2779 2008-02-26 Tom Tromey <tromey@redhat.com>
2781 * misc.c (internal_error_function): Remove test of
2782 USE_MAPPED_LOCATION.
2783 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
2784 (Sloc_to_locus): Remove old location code.
2786 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2788 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
2789 `i.e.' by adding comma or `@:' as appropriate.
2790 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
2791 plain characters `C', use `@samp{C}'.
2792 * gnat_ugn.texi (File Naming Rules, About gnatkr)
2793 (Krunching Method): Likewise.
2795 * gnat_ugn.texi (Conventions): List environment variables and
2796 metasyntactic variables.
2797 (Compiling Programs): Fix notation of metasyntactic variables.
2798 Add @file where appropriate. Use @file for file extensions,
2800 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
2801 instead of @file, @env instead of @code.
2803 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2805 PR documentation/15479
2806 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
2807 and `...' with `@dots{}' or `@enddots{}'.
2809 PR documentation/15479
2810 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
2811 use @command instead of @code, @option instead of @samp or @code,
2812 @code instead of @var, @samp instead of @file.
2814 PR documentation/15479
2815 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
2816 in Makefile rules, by using `&&' rather than `;'.
2818 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2820 PR documentation/15479
2821 * gnat_ugn.texi: In non-code, avoid space before colon.
2822 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
2823 (Examples of gnatxref Usage): Use @command{vi} instead of
2825 (Character Set Control): Do not use @code for UTF-8.
2826 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
2828 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
2830 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
2832 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
2835 * env.c: Add __rtems__ to if defined.
2836 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
2837 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
2838 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
2839 pragma Convention as required.
2840 * gsocket.h: Make compile in and out of RTS.
2841 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
2842 Use g-soccon-rtems.ads.
2843 * g-soccon-rtems.ads, system-rtems.ads: New files.
2845 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2848 * Make-lang.in (gnat1): Add $(GMPLIBS).
2850 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
2852 * decl.c (components_to_record): Improve comment.
2854 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
2856 * decl.c (components_to_record): Do not reuse the empty union type
2857 if there is a representation clause on the record.
2858 * trans.c (addressable_p): Return true for INTEGER_CST.
2860 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
2862 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
2863 in pointer arithmetics.
2864 * utils2.c (build_allocator): Likewise.
2866 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
2868 * utils.c (build_function_stub): Properly build the call expression.
2870 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
2872 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
2873 before converting the expression to the type of the object.
2874 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
2875 Stabilize constructors for special wrapping types.
2877 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
2879 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
2880 when necessary. Merge some conditional statements. Update comments.
2881 Rename unchecked_convert_p local variable to suppress_type_conversion.
2882 Do not suppress conversions in the In case.
2883 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
2884 into account on non strict-alignment platforms.
2886 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
2888 * utils.c (aggregate_type_contains_array_p): New predicate.
2889 (create_field_decl): In a packed record, force byte alignment
2890 for fields without specified position that contain an array.
2892 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
2894 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
2896 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
2899 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
2901 (bit_field): New packed boolean type used by cpu_set_t.
2902 (cpu_set_t): New type corresponding to the C type with
2903 the same name. Note that on the Ada side we use a bit
2904 field array for the affinity mask. There is not need
2905 for the C macro for setting individual bit.
2906 (pthread_setaffinity_np): New imported routine.
2908 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
2911 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
2912 on OpenBSD as is done on other BSD systems.
2915 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
2916 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
2920 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
2924 * init.c (__gnat_error_handler, __gnat_install_handler,
2925 __gnat_init_float): Define for OpenBSD.
2927 * initialize.c (__gnat_initialize): Define for OpenBSD.
2929 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
2932 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
2933 instead of mktemp() or tmpnam() on NetBSD.
2935 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
2937 * trans.c (call_to_gnu): Make the temporary for non-addressable
2938 In parameters passed by reference.
2939 (addressable_p): Return true for STRING_CST and CALL_EXPR.
2941 2007-12-19 Robert Dewar <dewar@adacore.com>
2943 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
2944 Add pragma Warnings (Off) for unassigned IN OUT arguments
2946 * sem_warn.adb (Output_Reference): Suppress messages for internal names
2947 (Check_References): Extensive changes to tune up warnings
2948 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
2949 (Has_Pragma_Unmodifed_Check_Spec): New function
2950 (Check_References): Implement pragma Unmodified
2951 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
2953 * par-prag.adb: Dummy entry for pragma Unmodified
2955 * sem_prag.adb: Implement pragma Unmodified
2957 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
2958 (Proc_Next_Component_Or_Discriminant): Fix typo.
2961 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
2963 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
2964 because the former already takes care of discarding the result.
2965 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
2968 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
2970 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
2972 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
2973 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
2974 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
2975 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
2976 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
2977 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
2978 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
2979 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
2980 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
2981 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
2982 (Dynamic_Trampolines_Used): Delete.
2984 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
2985 Turn on stack probing mechanism on LynxOS.
2987 2007-12-19 Bob Duff <duff@adacore.com>
2989 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
2990 the resulting tail recursion by hand. This prevents running out of
2991 memory on deeply nested concatenations, since Field2 is where the left
2992 operand of concatenations is stored.
2993 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
2994 clarify that it can only return OK or Abandon.
2996 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
2997 operand by iteration, in order to avoid running out of memory on
2998 deeply-nested concatenations. Use the Parent pointer to get back up the
3000 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
3001 Resolve_Op_Concat_Rest): New procedures split out of
3002 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
3005 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
3006 Traverse_Func, because the former already takes care of discarding the
3009 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
3010 because the former already takes care of discarding the result.
3011 (Remove_Warning_Messages): Use appropriate subtype for Status and
3014 2007-12-19 Ed Schonberg <schonberg@adacore.com>
3016 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
3017 discriminants forces expansion of the aggregate into assignments.
3018 (Init_Record_Controller): If the type of the aggregate is untagged and
3019 is not inherently limited, the record controller is not limited either.
3021 2007-12-19 Robert Dewar <dewar@adacore.com>
3023 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
3024 handling compile time known size of record or array (case of front end
3025 layout active, e.g. in GNAAMP).
3027 2007-12-19 Javier Miranda <miranda@adacore.com>
3029 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
3030 that forces the construction of static dispatch tables in case of
3033 2007-12-19 Robert Dewar <dewar@adacore.com>
3035 * exp_ch9.adb (Null_Statements): Moved to library level
3036 (Trivial_Accept_OK): New function
3037 (Expand_Accept_Declaration): Use Trivial_Accept_OK
3038 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
3040 2007-12-19 Robert Dewar <dewar@adacore.com>
3042 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
3043 in complex case where array is Volatile.
3045 2007-12-19 Ed Schonberg <schonberg@adacore.com>
3047 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
3048 properly the Ada2005 rules concerning when the current instance of a
3049 record type is aliased.
3051 2007-12-19 Ed Schonberg <schonberg@adacore.com>
3053 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
3055 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
3057 (P_Variant_Part): Cleaner patch for parenthesized discriminant
3059 2007-12-19 Vincent Celier <celier@adacore.com>
3061 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
3062 package is not known
3064 * prj-attr.ads (Unknown_Package): New constant
3065 Do not crash when an unknown package is in several projects
3067 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
3070 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
3071 existing package Language_Processing.
3073 2007-12-19 Ed Schonberg <schonberg@adacore.com>
3074 Gary Dismukes <dismukes@adacore.com>
3075 Samuel Tardieu <sam@rfc1149.net>
3077 PR ada/15803, ada/15805
3078 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
3079 illegal access subtypes when there is a constrained partial view.
3080 (Check_For_Premature_Usage): New procedure inside
3081 Access_Subprogram_Declaration for checking that an access-to-subprogram
3082 type doesn't reference its own name within any formal parameters or
3083 result type (including within nested anonymous access types).
3084 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
3085 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
3086 context is an access_to_variable, the expression cannot be an
3089 2007-12-19 Bob Duff <duff@adacore.com>
3091 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
3092 (Analyze_Concatenation): Use iteration instead of recursion in order
3093 to avoid running out of stack space for deeply nested concatenations.
3095 2007-12-19 Ed Schonberg <schonberg@adacore.com>
3096 Gary Dismukes <dismukes@adacore.com>
3098 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
3099 whose renamed entity is a subprogram that requires overriding.
3100 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
3101 issuing an error for premature usage and issue a message that says
3102 'type' rather than 'object'.
3104 2007-12-19 Gary Dismukes <dismukes@adacore.com>
3107 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
3108 presence of a statically tagged operand (Present (Static_Tag)) with
3109 test for Indeterm_Ancestor_Call when determining whether to propagate
3110 the static tag to tag-indeterminate operands (which forces dispatching
3112 (Check_Controlling_Formals): Ada2005, access parameters can have
3114 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
3115 not insert subprogram in list of primitive operations if already there.
3117 2007-12-19 Tristan Gingold <gingold@adacore.com>
3119 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
3122 2007-12-19 Thomas Quinot <quinot@adacore.com>
3124 Part of PR ada/33688
3125 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
3126 datagram info on Linux.
3128 2007-12-19 Vincent Celier <celier@adacore.com>
3130 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
3131 that the source path name is always found in the dependencies.
3133 2007-12-19 Robert Dewar <dewar@adacore.com>
3135 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
3136 Fix name of Wide_Wide_Latin_1/9 file names
3137 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
3138 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
3139 Add missing documentation for Ada.Command_Line.Response_File
3140 Update list of warning letters for Warnings pragma
3141 Add documentation for pragma Unmodified
3143 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
3145 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
3147 2007-12-17 Arnaud Charlet <charlet@adacore.com>
3149 * s-vxwork-alpha.ads: Removed, no longer used.
3151 2007-12-15 Jakub Jelinek <jakub@redhat.com>
3153 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
3155 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
3158 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
3159 mlib-tgt-specific.adb.
3161 2007-12-13 Bob Duff <duff@adacore.com>
3163 * trans.c (Attribute_to_gnu): Check for violations of the
3164 No_Implicit_Dynamic_Code restriction. This checking used to be done in
3165 the front end, but is moved here so we can make it more accurate.
3167 2007-12-13 Pascal Obry <obry@adacore.com>
3169 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
3170 version is provided for older GNU/Linux distribution not
3171 supporting thread affinity sets.
3173 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
3175 (bit_field): New packed boolean type used by cpu_set_t.
3176 (cpu_set_t): New type corresponding to the C type with
3177 the same name. Note that on the Ada side we use a bit
3178 field array for the affinity mask. There is not need
3179 for the C macro for setting individual bit.
3180 (pthread_setaffinity_np): New imported routine.
3182 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
3184 (Create_Task): Set the processor affinity mask if information
3187 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
3189 2007-12-13 Robert Dewar <dewar@adacore.com>
3191 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
3192 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
3193 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
3194 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
3195 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
3196 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
3197 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
3198 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
3199 for subprogram pointers.
3201 * g-ctrl_c.adb: New file.
3203 * g-ctrl_c.ads (Install_Handler): New body.
3205 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
3206 instead of obsolete function Is_Always_Inlined.
3207 (Freeze_Entity): check for tagged type in imported C subprogram
3208 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
3209 (Freeze_Entity): check for convention Ada subprogram pointer in
3210 imported C subprogram.
3211 (Freeze_Fixed_Point_Type): In the case of a base type where the low
3212 bound would be chopped off and go from negative to zero, force
3213 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
3214 bound) so that the size computation for the base type will take
3215 negative values into account.
3217 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
3218 Bob Duff <duff@adacore.com>
3219 Tristan Gingold <gingold@adacore.com>
3221 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
3222 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
3223 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
3224 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
3225 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
3226 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
3227 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
3228 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
3229 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
3230 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
3231 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
3232 (Always_Compatible_Rep): New flag to control trampolines globally.
3233 (Dynamic_Trampolines_Used): New flag for implementing the
3234 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
3235 and not yet set correctly for some targets).
3237 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
3238 Simply indirectly call s-stchop when a task is created.
3241 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
3242 appears as an argument (entries A) in an ALI file.
3244 * fe.h (Stack_Check_Limits): Declare new target parameter.
3245 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
3247 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
3248 This variable is declared in C to be sure not subject to elaboration
3250 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
3253 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
3254 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
3256 * s-stchop.ads: Add comments.
3258 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
3259 limit method of stack checking.
3261 * s-stchop-limit.ads: New file.
3263 2007-12-13 Robert Dewar <dewar@adacore.com>
3265 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
3266 a-cihama.adb, g-awk.adb,
3267 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
3270 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
3272 * sem.adb: Update handling of assigned value/unreferenced warnings
3274 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
3276 * lib-xref.ads: Improve documentation for k xref type
3279 Update handling of assigned value/unreferenced warnings
3280 (Generate_Reference): Warning for reference to entity for which a
3281 pragma Unreferenced has been given should be unconditional.
3282 If the entity is a discriminal, mark the original
3283 discriminant as referenced.
3285 * sem_warn.ads, sem_warn.adb
3286 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
3287 no entities referenced in package
3288 (Check_One_Unit): Don't give message about no entities referenced in
3289 a package if a pragma Unreferenced has appeared.
3290 Handle new warning flag -gnatw.a/-gnatw.A
3291 Update handling of assigned value/unreferenced warnings
3293 * atree.h: Add flags up to Flag247
3294 (Flag231): New macro.
3296 2007-12-13 Jose Ruiz <ruiz@adacore.com>
3298 * adaint.h: (__gnat_plist_init): Not defined for RTX.
3300 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
3303 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
3304 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
3305 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
3306 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
3309 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
3311 * sysdep.c (winflush_function for RTX): Procedure that does nothing
3312 since we only have problems with Windows 95/98, which are not
3314 (__gnat_ttyname): Return the empty string on Nucleus, just as
3317 2007-12-13 Robert Dewar <dewar@adacore.com>
3319 * a-textio.adb, a-textio.ads:
3320 Extensive changes to private part for wide character encoding
3322 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
3323 (Look_Ahead): Fix mishandling of encoded sequences
3324 Move declaration of Wch_Con to private part (should not be visible)
3326 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
3327 UTF-8. Probably this is never used, but if it is, brackets is
3330 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
3331 setting wide character encoding for no main program case and when
3332 encoding is specified using -W?
3333 Initialize stack limit of environment task if stack limit method of
3334 stack checking is enabled.
3335 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
3336 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
3337 (Get_Main_Unit_Name): New function.
3338 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
3339 (Gen_Output_File): Set Bind_Main_Program to True for .NET
3341 * bindusg.adb: Add line for -Wx switch
3343 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
3345 Add new useful constant WC_Longest_Sequences
3347 * switch-b.adb: Clean up handling of -Wx switch
3348 For -gnatWx, set Wide_Character_Encoding_Method_Specified
3350 * switch-c.adb: -gnatg activates warning on assertion errors
3351 For -gnatWx, set Wide_Character_Encoding_Method_Specified
3353 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
3355 2007-12-13 Robert Dewar <dewar@adacore.com>
3356 Ed Schonberg <schonberg@adacore.com>
3358 * a-ngcoty.adb: New pragma Fast_Math
3360 * opt.adb: New pragma Fast_Math
3363 Add Implemented_By_Entry to the list of pragmas which do not require any
3365 (Favor_Top_Level): New pragma.
3366 New pragma Fast_Math
3368 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
3369 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
3370 Expand_Allocator_Expression): Take into account VM_Target
3371 (Expand_Attribute, case 'Identity): Handle properly the case where
3372 the prefix is a task interface.
3373 New pragma Fast_Math
3375 * par.adb (Next_Token_Is): New function
3376 (P_Pragma): Add Skipping parameter
3377 (U_Left_Paren): New procedure
3378 (U_Right_Paren): New procedure
3379 New pragma Fast_Math
3381 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
3383 New pragma Fast_Math
3385 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
3386 Implemented_By_Entry.
3387 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
3388 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
3389 items, since it can apply to more than one overloadable entity. Set
3390 new flag Has_Pragma_Inline_Always for Inline_Always case.
3391 (Analyze_Pragma, case Complex_Representation): Improve error message.
3392 (Analyze_Pragma, case Assert): When assertions are disabled build the
3393 rewritten code with Sloc of expression rather than pragma, so new
3394 warning about failing is not deleted.
3395 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
3396 protected types and update error message to reflect that. Test whether
3397 the protected type is allowed for the pragma (an error is issued if the
3398 type has any entries, or components that do not have preelaborable
3400 New pragma Fast_Math
3401 (Analyze_Pragma, case No_Return): Handle generic instance
3403 * snames.h, snames.ads, snames.adb:
3404 Add new predefined name for interface primitive _Disp_Requeue.
3405 New pragma Fast_Math
3407 * a-tags.ads, a-tags.adb: New calling sequence for
3408 String_To_Wide_[Wide_]String
3409 (Secondary_Tag): New subprogram.
3411 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
3413 New calling sequence for String_To_Wide_[Wide_]String
3414 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
3415 the use of the secondary stack for image routines.
3417 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
3418 calling sequence for String_To_Wide_[Wide_]String
3420 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
3422 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
3423 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3425 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
3426 (P_Formal_Part): Use Skipping parameter in P_Pragma call
3427 to improve error recovery
3429 * par-util.adb (Next_Token_Is): New function
3430 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
3432 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
3433 semicolon if missing
3434 (P_Pragma): Implement new Skipping parameter
3435 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3436 Fix location of flag for unrecognized pragma message
3438 * par-tchk.adb (U_Left_Paren): New procedure
3439 (U_Right_Paren): New procedure
3441 2007-12-13 Geert Bosch <bosch@adacore.com>
3444 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
3445 the second or later Scaled_Divide would omit leading zeroes,
3446 resulting in too few digits produced and a Layout_Error as result.
3447 (Put): Initialize Pos.
3449 2007-12-13 Robert Dewar <dewar@adacore.com>
3451 atree.ads, atree.adb (Flag231..Flag247): New functions
3452 (Set_Flag231..Set_Flag247): New procedures
3453 (Basic_Set_Convention): Rename Set_Convention to be
3454 Basic_Set_Convention
3455 (Nkind_In): New functions
3456 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3458 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
3460 of obsolete function Is_Always_Inlined
3461 (Register_Predefined_DT_Entry): Initialize slots of the second
3462 secondary dispatch table.
3463 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3464 (Expand_N_Function_Call): Remove special provision for stack checking.
3466 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
3467 Include _Disp_Requeue in the list of predefined operations.
3468 (Find_Interface_ADT): Modified to fulfill the new specification.
3469 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3471 * par-ch4.adb, nlists.ads, nlists.adb:
3472 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3474 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
3475 Fix location of flag for unrecognized pragma message
3477 * sem_ch7.adb: Use Nkind_In
3479 2007-12-13 Vincent Celier <celier@adacore.com>
3482 Indicate what flags are used by the Project Manager, gprbuild and
3484 (Opt.Follow_Links_For_Dirs): New flag
3485 (Warn_On_Assertion_Failure): New flag
3486 (Wide_Character_Encoding_Method_Specified): New flag
3487 (Suppress_All_Inlining): New switch set by -fno-inline
3488 (Real_VMS_Target): New flag
3489 New pragma Fast_Math
3491 2007-12-13 Robert Dewar <dewar@adacore.com>
3493 * back_end.adb: Recognize -fno-inline
3495 2007-12-13 Robert Dewar <dewar@adacore.com>
3497 * checks.adb: Fix optimization problem with short-circuited form
3499 2007-12-13 Bob Duff <duff@adacore.com>
3501 * clean.adb (Usage): Add line for -aP
3502 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
3503 with a parameter "procedure Usage", instead of passing a pointer to a
3504 procedure. This is to eliminate trampolines (since the Usage procedure
3505 is often nested in a main procedure, and it would be inconvenient to
3508 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
3509 to be generic, with a parameter "procedure Callback (...)", instead of
3510 passing a pointer to a procedure. This is to eliminate trampolines
3511 (since the Callback procedure is usually nested).
3513 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
3514 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
3515 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
3517 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
3518 Use the generic Heap_Sort_G instead of Heap_Sort_A.
3520 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
3522 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
3523 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
3524 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
3525 (Renamed_In_Spec): New flag
3526 (Has_Pragma_Inline_Always): New flag
3527 Add missing doc for pragma Obsolescent_Warning
3528 Add missing doc for 17 additional unused flags (230-247)
3529 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
3530 Alphabetize with clauses.
3531 Separate Is_Thunk and Has_Thunks flags
3532 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
3533 (Related_Interface): Renamed to Related_Type.
3534 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
3535 (Set_Is_Flag): Restrict the assertion.
3537 2007-12-13 Vincent Celier <celier@adacore.com>
3539 * errout.adb (Output_Source_Line): Do not keep a trailing space after
3540 the source line number if the source line is empty.
3542 2007-12-13 Geert Bosch <bosch@adacore.com>
3544 * eval_fat.adb (Decompose_Int): Handle argument of zero.
3545 (Compose): Remove special casing of zero.
3546 (Exponent): Likewise.
3547 (Fraction): Likewise.
3548 (Machine): Likewise.
3549 (Decompose): Update comment.
3551 2007-12-13 Ed Schonberg <schonberg@adacore.com>
3553 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
3554 limited ancestor part, initialize controllers of enclosing record
3555 before expanding ancestor aggregate.
3556 (Gen_Assign): If a component of the aggregate is box-initialized, add
3557 code to call Initialize if the component is controlled, and explicit
3558 assignment of null if the component is an access type.
3560 Handle properly aggregates for limited types that appear in object
3561 declarations when the aggregate contains controlled values such as
3563 When expanding limited aggregates into individual components, do not
3564 call Adjust on controlled components that are limited.
3566 2007-12-13 Ed Schonberg <schonberg@adacore.com>
3568 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
3570 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
3572 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
3573 predefined primitive _Disp_Requeue.
3574 (Make_Predefined_Primitive_Specs): Create the spec for predefined
3575 primitive _Disp_Requeue.
3576 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
3577 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
3578 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
3579 an interface type. In case of limited interfaces we now declare all the
3580 predefined primitives associated with synchronized interfaces as
3582 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
3584 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
3585 tagged type is an interface type and there is no user-defined equality
3587 Add also bodies of predefined primitives associated with synchronized
3589 (Freeze_Record_Type): Do not build bodies of predefined primitives of
3590 interface types because they are now defined abstract.
3591 Add missing documentation.
3592 (Expand_Record_Controller): Update occurrence of Related_Interface
3594 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
3595 (Expand_N_Object_Declaration): Take into account VM_Target when handling
3596 class wide interface object declaration.
3597 (Expand_Previous_Access_Type): Do not create a duplicate master entity
3598 if the access type already has one.
3599 (Expand_N_Object_Declaration): Defend against attempt to validity check
3600 generic types. Noticed for -gnatVcf specified with previous errors.
3602 2007-12-13 Arnaud Charlet <charlet@adacore.com>
3604 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
3605 Expand_Allocator_Expression): Take into account VM_Target
3607 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
3608 secondary stack when VM_Target /= No_VM
3610 2007-12-13 Javier Miranda <miranda@adacore.com>
3611 Ed Schonberg <schonberg@adacore.com>
3613 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
3614 Is_Complation_Unit by Is_Library_Level_Entity in the code
3615 that decides if the static dispatch tables need to be built.
3616 (Wrap_Transient_Declaration): Do not generate a finalization call if
3617 this is a renaming declaration and the renamed object is a component
3618 of a controlled type.
3620 2007-12-13 Gary Dismukes <dismukes@adacore.com>
3622 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
3623 In the case where the renamed subprogram is a dereference, call
3624 Force_Evaluation on the prefix.
3626 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
3627 Ed Schonberg <schonberg@adacore.com>
3629 * exp_ch9.adb (Expand_N_Asynchronous_Select,
3630 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
3631 comment reformatting.
3632 (Set_Privals): Inherit aliased flag from formal. From code reading.
3633 (Build_Simple_Entry_Call): Out parameters of an access type are passed
3634 by copy and initialized from the actual. This includes entry parameters.
3635 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
3636 and Ada 2005 models of requeue.
3637 (Null_Statements): Still connsider do-end block null if it contains
3638 Unreferenced and Warnings pragmas.
3639 (Expand_N_Accept_Statement): Do not optimize away null do end if
3640 dispatching policy is other than defaulted.
3641 (Expand_N_Timed_Entry_Call): When the triggering statement is a
3642 dispatching call, manually analyze the delay statement.
3643 (Find_Parameter_Type): Move subprogram to Sem_Util.
3645 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
3646 Javier Miranda <miranda@adacore.com>
3648 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
3649 _Disp_Requeue occupies dispatch table slot number 15. Move
3650 _Disp_Timed_Select to slot 16.
3651 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
3652 generate the spec and body of _Disp_Reqeueue.
3653 (Make_DT): Build and initialize the second dispatch table.
3654 Handle initialization of RC_Offset when the parent
3655 is a private type with variable size components.
3656 (Make_Secondary_DT): Complete documentation. Add support to
3657 initialize the second dispatch table.
3658 (Make_Tags): Generate the tag of the second dispatch table.
3659 (Register_Primitive): Add support to register primitives in the
3660 second dispatch table.
3662 2007-12-13 Pascal Obry <obry@adacore.com>
3664 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
3665 Windows. This signal is used by gnatmake to kill child processes for
3668 2007-12-13 Javier Miranda <miranda@adacore.com>
3670 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
3671 support for generic dispatching constructor calls in which we need to
3672 locate the tag of a secondary dispatch table associated with an
3673 interface type to properly dispatch the call.
3674 (Expand_N_Attribute_Reference [case Address],
3675 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
3676 handling of VM targets.
3678 2007-12-13 Robert Dewar <dewar@adacore.com>
3679 Ed Schonberg <schonberg@adacore.com>
3681 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
3684 * ug_words: Add entries for -gnatw.a -gnatw.A
3686 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
3687 literal is a subtype with non-static constraints, use the base type of
3688 the context as the base of the string subtype, to prevent type
3690 (Resolve_Actuals): If the actual is an entity name, generate a
3691 reference before the actual is resolved and expanded, to prevent
3692 spurious warnings on formals of enclosing protected operations.
3693 (Analyze_Overloaded_Selected_Component): If type of prefix if
3694 class-wide, use visible components of base type.
3695 (Resolve_Selected_Component): Ditto.
3696 (Resolve_Short_Circuit): Detect case of pragma Assert argument
3697 evaluating to False, and issue warning message.
3699 * usage.adb: Add lines for -gnatw.a and -gnatw.A
3701 2007-12-13 Emmanuel Briot <briot@adacore.com>
3703 * g-calend.ads (No_Time): New constant, to represent an uninitialized
3706 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
3708 (Month_Name_To_Number): New subprogram
3710 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
3711 letter to upper-case.
3713 2007-12-13 Robert Dewar <dewar@adacore.com>
3714 Ed Schonberg <schonberg@adacore.com>
3716 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
3718 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
3719 context is a limited view, use non-limited view when available. If the
3720 non-limited view is an unconstrained array, this enforces consistency
3721 requirements in 3.10.2 (27).
3722 (Layout_Type): For an access type whose designated type is a limited
3723 view, examine its declaration to determine if it is an unconstrained
3724 array, and size the access type accordingly.
3725 (Layout_Type): Do not force 32-bits for convention c subprogram
3726 pointers in -gnatdm mode, only if real vms target.
3728 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
3729 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
3730 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
3731 violations of the No_Implicit_Dynamic_Code restriction.
3732 (Resolve_Attribute, case 'Access): If designated type of context is a
3733 limited view, use non-limited view when available. If the non-limited
3734 view is an unconstrained array, this enforces consistency requirements
3736 (Layout_Type): For an access type whose designated type is a limited
3737 view, examine its declaration to determine if it is an unconstrained
3738 array, and size the access type accordingly.
3740 2007-12-13 Vincent Celier <celier@adacore.com>
3742 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
3743 object directory of main project does not exist.
3744 On VMS, correctly set then environment variable for the source
3747 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
3749 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
3750 set to True this procedure will create the value of type REG_EXPAND_SZ.
3751 It was only possible to create REG_SZ values before.
3753 2007-12-13 Robert Dewar <dewar@adacore.com>
3755 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
3756 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
3757 namet-sp.adb, namet-sp.ads: New files.
3759 * g-speche.adb: Use generic routine in g-spchge
3761 * s-wchcnv.ads, s-wchcnv.adb:
3762 Minor code cleanup (make formal type consistent with spec)
3764 * namet.adb: Update comments.
3766 * par-endh.adb (Evaluate_End_Entry): Use new
3767 Namet.Sp.Is_Bad_Spelling_Of function
3769 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
3771 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
3772 ancestor is an access type initialized with a box, set its type
3773 explicitly, for use in subsequent expansion.
3774 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
3777 2007-12-13 Robert Dewar <dewar@adacore.com>
3779 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
3782 2007-12-13 Robert Dewar <dewar@adacore.com>
3784 * inline.adb (Back_End_Cannot_Inline): Use new flag
3785 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
3787 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
3788 Has_Pragma_Inline_Always instead.
3789 of obsolete function Is_Always_Inlined
3790 (Build_Body_To_Inline): Same change
3791 (Cannot_Inline): Same change
3792 Do not give warning on exception raise in No_Return function
3794 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
3795 component has two inconsistent component clauses in the same record
3796 representation clause, favor the message that complains about
3797 duplication rather than inconsistency.
3799 (Record_Representation_Clause): Do not warn on missing component
3800 clauses for inherited components of a type extension.
3801 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
3802 an overloadable item if it is a pragma that can apply to multiple
3803 overloadable entities (e.g. Inline) because a pragma cannot be on
3804 more than one chain at a time.
3805 (Validate_Unchecked_Conversion): Add code to warn on unchecked
3806 conversion where one of the operands is Ada.Calendar.Time.
3807 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
3808 For now, ignore Component_Size clause on VM targets, as done for
3811 2007-12-13 Emmanuel Briot <briot@adacore.com>
3812 Vincent Celier <celier@adacore.com>
3814 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
3816 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
3818 (Hash): Move instantiation of System.HTable.Hash from spec to body
3819 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
3820 systems, since we do not need to recompute the Name_Id for the canonical
3822 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
3823 as a parameter. This parameter is in fact always "ada" in all calls, and
3824 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
3825 while loading a project with 40000 files
3827 * prj-attr.adb: Fix name of attribute Dependency_Driver
3828 Change the kind of indexing for attribute Root
3830 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
3831 variables already declared, in case constructions.
3833 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
3834 Current_Object_Path_File to No_Path.
3836 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
3837 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
3839 * prj-makr.adb: new parameter Current_Dir
3841 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
3842 Ada sources when language is not Ada.
3843 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
3844 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
3845 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
3846 (Locate_Directory): Always resolve links when computing Canonical_Path
3847 (Look_For_Sources): Make sure that Name_Buffer contains the file name
3848 in Source_Files before checking for the presence of a directory
3850 Optimize calls to Name_Find when on case sensitive systems.
3851 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
3853 (Prj.Nmsc.Check): new parameter Current_Dir
3854 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
3855 cannot be empty and the spec suffix cannot be the same as the body or
3857 (Get_Unit): When a file name can be of several unit kinds (spec, body or
3858 subunit), always consider the longest suffix.
3859 (Check_Configuration): Do not issue an error if there is no compiler
3860 for a language. Just issue a warning and ignore the sources for the
3862 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
3864 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
3865 (Unit_Exceptions): New hash table
3866 (Check_Naming_Schemes): Check if a file that could be a unit because of
3867 the naming scheme is not in fact a source because there is an exception
3869 (Look_For_Sources): Put the unit exceptions in hash table
3871 (Get_Unit_Exceptions): Give initial value No_Source to local variable
3872 Other_Part to avoid exception when code is compiled with validity
3874 (Get_Sources_From_File): Check that there is no directory information
3876 (Look_For_Sources): Check that there is no directory information in the
3877 list of file names in Source_Files.
3878 (Look_For_Sources): In multi-language mode, do not allow exception file
3879 names that are excluded.
3880 (Excluded_Sources_Htable): New hash table
3881 (Search_Directories.Check_File): New procedure to simplify
3883 (Search_Directories): Do not consider excluded sources
3884 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
3886 (Get_Exceptions): Set component Lang_Kind of Source_Data
3887 (Get_Unit_Exceptions): Ditto
3888 (Search_Directories): Ditto
3890 * prj-pars.adb: new parameter Current_Dir
3892 * prj-part.ads, prj-part.adb:
3893 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
3894 (Opt.Follow_Links_For_Dirs): New flag
3895 (Project_Path_Name_Of): Cache information returned by this routine as
3896 Locate_Regular_File is a costly routine. The code to output a log
3897 information and the effective call to Locate_Regular_File is now
3898 factorized into a routine (code clean-up).
3899 (Parse, Parse_Single_Project): new parameter Current_Dir
3900 When main project file cannot be found, indicate in the error
3901 message the project path that was used to do the search.
3903 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
3904 (Prj.Proc.Process*): new parameter Current_Dir
3906 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
3908 2007-12-13 Bob Duff <duff@adacore.com>
3910 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
3911 procedure to be called from the back end to check the
3912 No_Implicit_Dynamic_Code restriction.
3914 2007-12-13 Arnaud Charlet <charlet@adacore.com>
3916 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
3917 Fixes another case where RTE_Available_Call was ignored instead of being
3921 * rtsfind.ads: Add new entries.
3923 2007-12-13 Robert Dewar <dewar@adacore.com>
3925 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
3926 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
3928 * scn.adb: Implement BOM recognition
3930 2007-12-13 Thomas Quinot <quinot@adacore.com>
3931 Ed Schonberg <schonberg@adacore.com>
3933 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
3934 subprogram body that acts as its own spec may not have a non-private
3935 WITH clause on a private sibling.
3936 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
3937 child unit is a renaming, create an implicit with_clause on that
3938 parent, and not on the unit it renames, to prevent visibility errors
3939 in the current unit.
3941 2007-12-13 Ed Schonberg <schonberg@adacore.com>
3943 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
3944 renaming declaration, use the Slocs of the formal parameters from the
3945 declaration of the formal subprogram when creating the formal parameter
3946 entities in the renaming declaration.
3947 (Analyze_Formal_Type_Declaration): Change the placement of the error
3948 message concerning illegal known discriminants. It is now posted on the
3949 type rather than on the first discriminant. This change ensures early
3951 (Freeze_Subprogram_Body): If the generic subprogram is nested within
3952 the package body that contains the instance, do not generate an
3953 out-of-place freeze node for the enclosing package.
3954 (Collect_Previous_Instantiations): Ignore internal instantiations
3955 generated for formal packages.
3956 (Validate_Derived_Type_Instance): Add a check that when a formal
3957 derived type is Known_To_Have_Preelab_Init then the actual type must
3958 have preelaborable initialization, and issue an error when this
3959 condition is violated.
3961 2007-12-13 Robert Dewar <dewar@adacore.com>
3963 * s-imenne.adb, s-imenne.ads: New files.
3965 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
3966 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
3967 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
3968 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
3969 s-imgwch.ads: New calling sequence for Image routines to avoid sec
3972 2007-12-13 Javier Miranda <miranda@adacore.com>
3973 Ed Schonberg <schonberg@adacore.com>
3975 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
3976 generation of spurious error if parent is an interface type; caused
3977 because predefined primitive bodies will be generated later by
3979 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
3981 (Derive_Subprograms): Handle derivations of predefined primitives
3982 after all the user-defined primitives to ensure that they are
3983 found in proper order in instantiations.
3984 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
3985 of Related_Interface to Related_Type.
3986 (Record_Type_Declaration): Minor reordering of calls to decorate the
3987 Tag component because the entity must have set its Ekind attribute
3988 before setting its Is_Tag attribute.
3989 (Analyze_Subtype_Declaration): In the case of subtypes with
3990 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
3992 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
3993 Ed Schonberg <schonberg@adacore.com>
3995 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
3996 statement to the list of contexts where a selected component with a
3997 concurrent tagged type prefix should yield a primitive operation.
3998 (Find_Primitive_Operation): Handle case of class-wide types.
3999 (Analyze_Overloaded_Selected_Component): If type of prefix is
4000 class-wide, use visible components of base type.
4001 (Resolve_Selected_Component): Ditto.
4002 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
4003 formal of a generic subprogram. find candidate interpretations by
4004 scanning the list of generic formal declarations.:
4005 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
4006 type from a limited_with_clause, and the full view is available, use it
4007 for subsequent semantic checks.
4008 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
4009 (Find_Primitive_Operation): New function.
4010 (Analyze_Overloaded_Selected_Component): insert explicit dereference
4011 only once if several interpretations of the prefix yield an access type.
4012 (Try_Object_Operation): Code and comment cleanup.
4013 (Analyze_Selected_Component): Reorder local variables. Minot comment and
4014 code reformatting. When the type of the prefix is tagged concurrent, a
4015 correct interpretation might be available in the primitive and
4016 class-wide operations of the type.
4018 2007-12-13 Robert Dewar <dewar@adacore.com>
4019 Ed Schonberg <schonberg@adacore.com>
4021 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
4022 renaming entry as subprogram using rename-as-body if subprogram spec
4024 (Use_One_Type): The clause is legal on an access type whose designated
4025 type has a limited view.
4026 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
4027 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
4028 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
4029 operation denoted by a selected component.
4030 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
4031 it can be an expression, possibly overloaded, that returns a task or
4034 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
4035 Gary Dismukes <dismukes@adacore.com>
4037 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
4038 requeue statement is dispatching. Do not emit an error when the name is
4039 not an entry and the context is a dispatching select. Add code to
4040 perform subtype conformance between the formals of the current entry
4041 and those of the target interface primitive.
4042 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
4043 Timed_Entry_Call): Analyze the triggering statement as the first step of
4044 the processing. If this is a dispatching select, postpone the analysis
4045 of all select statements until the Expander transforms the select. This
4046 approach avoids generating duplicate identifiers after the Expander has
4047 replicated some of the select statements. In case the Expander is
4048 disabled, perform regular analysis.
4049 (Check_Triggering_Statement): New routine.
4050 (Analyze_Requeue): Exclude any interpretations that are not entries when
4051 checking overloaded names in a requeue. Also test type conformance for
4052 matching interpretations rather than requiring subtype conformance at
4053 that point to conform with the RM's resolution rule for requeues.
4055 2007-12-13 Ed Schonberg <schonberg@adacore.com>
4057 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
4058 inherited operation is a defaulted tag-indeterminate call, and there is
4059 a statically tagged actual, use the static tag as a controlling actual
4060 for the defaulted actual.
4062 2007-12-13 Geert Bosch <bosch@adacore.com>
4064 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
4065 context, so do not call Check_Non_Static_Context.
4067 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
4069 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
4070 whether formal E is an entity which may have parameters.
4072 2007-12-13 Bob Duff <duff@adacore.com>
4073 Javier Miranda <miranda@adacore.com>
4074 Robert Dewar <dewar@adacore.com>
4076 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
4077 (Set_Convention): New procedure to set the Convention flag, and in
4078 addition make sure the Favor_Top_Level flag is kept in sync (all
4079 foreign-language conventions require Favor_Top_Level = True).
4080 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
4082 (Collect_Interfaces_Info): Minor update to handle the two secondary
4083 dispatch tables. Update occurrence of Related_Interface to Related_Type.
4084 (Generate_Parent_Ref): Add parameter to specify entity to check
4085 (Is_Preelaborable_Expression): Allow the name of a discriminant to
4086 initialize a component of a type with preelaborable initialization.
4087 This includes the case of a discriminal used in such a context.
4088 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
4089 latest Ada 2005 rules about renaming and 'Access of
4090 discriminant-dependent components.
4091 (Check_Nested_Access): Add handling when there are no enclosing
4092 subprograms (e.g. case of a package body).
4093 (Find_Parameter_Type): Factor routine from several other compiler files.
4094 Remove routine from Find_Overridden_Synchronized_Primitive.
4096 2007-12-13 Thomas Quinot <quinot@adacore.com>
4098 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
4099 an invalid access to an uninitialized slot in the
4100 Source_File_Index_Table.
4102 2007-12-13 Thomas Quinot <quinot@adacore.com>
4104 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
4106 2007-12-13 Bob Duff <duff@adacore.com>
4108 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
4109 access-to-subprogram types in this package.
4111 2007-12-13 Olivier Hainque <hainque@adacore.com>
4113 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
4114 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
4115 Stack_Overlay_Address and document that we are using an internal
4117 (Byte_Size, Unsigned_32_Size): Remove, now useless.
4118 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
4119 consistently throughout the various implementation pieces.
4121 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
4122 overlay we are using to fill the stack area with patterns.
4123 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
4124 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
4125 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
4127 2007-12-13 Robert Dewar <dewar@adacore.com>
4129 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
4131 2007-12-13 Arnaud Charlet <charlet@adacore.com>
4134 (Create_Task): Take into account tasks created by foreign threads.
4135 Code clean up: use constants instead of hard coded values.
4137 2007-12-13 Robert Dewar <dewar@adacore.com>
4139 * styleg.adb (Check_Comment): More liberal rules for comment placement
4141 2007-12-13 Olivier Hainque <hainque@adacore.com>
4143 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
4144 of Procedure Value instead of Frame Pointer as the invocation
4145 identifier associated with the instruction pointer in each traceback
4148 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
4149 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
4150 Pointer as the invocation identifier passed to tbk$symbolize.
4152 * s-traent-vms.ads, s-traent-vms.adb
4153 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
4154 Procedure Value instead of Frame Pointer as the invocation identifier
4155 passed to tbk$symbolize.
4157 2007-12-13 Robert Dewar <dewar@adacore.com>
4159 * tbuild.ads, tbuild.adb:
4160 Fix location of flag for unrecognized pragma message
4162 2007-12-13 Robert Dewar <dewar@adacore.com>
4164 * treepr.ads, treepr.adb: (pl): implement use of positive value
4167 2007-12-13 Robert Dewar <dewar@adacore.com>
4169 * xeinfo.adb: Remove warnings
4170 * xnmake.adb: Remove warnings
4171 * xsinfo.adb: Remove warnings
4172 * xtreeprs.adb: Remove warnings
4173 * xsnames.adb: Remove warnings
4175 * a-ngcoar.adb: Fix typo.
4176 * s-interr.adb: Minor reformatting
4177 * env.c: Minor reformatting.
4178 * g-bytswa.adb: Minor reformatting.
4179 * g-rannum.ads: Minor documentation improvements
4180 * s-tasinf-mingw.adb: Minor header fix
4181 * a-clrefi.adb: Minor reformatting
4182 * g-sttsne.ads: Minor documentation improvement
4183 * g-sttsne-locking.ads: Minor documentation improvement
4184 * g-soliop-solaris.ads: Minor documentation improvement
4185 * g-soliop-mingw.ads: Minor documentation improvement
4186 * g-soliop.ads: Minor documentation improvement
4187 * exp_aggr.ads: Minor reformatting
4188 * debug.adb: Add documentation for the gprbuild debug flags
4189 * exp_ch2.adb: Use Nkind_In to simplify code throughout
4190 * exp_pakd.adb: Minor reformatting
4192 * g-altive.ads, g-alleve.adb: Remove assertions.
4193 Add comment about minor differences between targets regarding
4194 floating-point operations.
4196 * g-thread.adb: Remove pragma unreferenced.
4197 * lib.ads: Minor reformatting
4198 * par-ch9.adb: Minor reformatting of error messages
4199 * sem_case.adb: Minor reformatting
4200 * s-fileio.adb: Minor reformattinng
4201 * s-vmexta.ads: Minor typo
4203 Take into account 'Success' value as per new GNAT warning.
4205 2007-12-13 Vincent Celier <celier@adacore.com>
4207 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
4210 2007-12-13 Robert Dewar <dewar@adacore.com>
4211 Bob Duff <duff@adacore.com>
4213 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
4214 Document that suffixes may be terminations of each others
4215 Add doc for -gnatw.a and -gnatw.A
4216 Document gnatbind -Wx switch
4217 Document BOM recognition
4218 Document pragma Implemented_By_Entry.
4221 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
4222 Add doc for pragma Unreferenced suppressing no entities referenced msg
4223 Add documentation of GNAT.Directory_Operations.Iteration
4224 Add documentation of GNAT.Random_Numbers
4225 Add documentation for pragma Shared.
4226 Correct documentation for Bit_Order
4227 Add documentation for the Pool_Address attribute.
4228 Fix and improve documentation of pragma machine_attribute.
4229 New pragma Fast_Math
4230 Document BOM recognition
4232 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
4233 Add /Wide_Character_Encoding for binder
4234 Add qualifier for the new gnatpp option --no-separate-loop-then
4236 2007-12-13 Matthew Heaney <heaney@adacore.com>
4238 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
4239 which generic formal operations are called for each operation.
4241 2007-12-13 Olivier Hainque <hainque@adacore.com>
4243 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
4244 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
4246 2007-12-13 Emmanuel Briot <briot@adacore.com>
4248 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
4249 Reference_Dir unless we actually need it.
4251 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
4252 Tristan Gingold <gingold@adacore.com>
4254 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
4257 a-calend-vms.adb: Remove pragma warning off and add pragma
4260 2007-12-13 Robert Dewar <dewar@adacore.com>
4262 * impunit.adb: Add entries for missing units
4264 * Makefile.rtl: Add new run-time units.
4266 * Make-lang.in: Update dependencies.
4268 2007-12-13 Bob Duff <duff@adacore.com>
4270 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
4271 types, set Can_Use_Internal_Rep appropriately, based on
4272 Always_Compatible_Rep_On_Target.
4274 2007-12-13 Gary Dismukes <dismukes@adacore.com>
4275 Arnaud Charlet <charlet@adacore.com>
4277 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
4278 it to the front end and setting the aamp_target environment variable
4279 to the switch's argument to ensure that gnaampbind and gnaamplink will
4280 take the specified library into account.
4281 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
4282 target, since the CIL compiler supports an "object" file (.il files).
4284 2007-12-13 Vincent Celier <celier@adacore.com>
4286 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
4287 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
4289 2007-12-13 Geert Bosch <bosch@adacore.com>
4291 * s-parame-vxworks.adb:
4292 Update comments to reflect usage of this package by Nucleus.
4294 2007-12-13 Arnaud Charlet <charlet@adacore.com>
4296 * i-vxwork.ads: Kill new warning on Convention C, since changing the
4297 spec would break code.
4299 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
4301 * system-vxworks-alpha.ads: Removed.
4303 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
4305 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
4307 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
4310 * sem_ch3.adb (Designates_T): New function.
4311 (Mentions_T): Factor reusable part of the logic into Designates_T.
4312 Consider non-access parameters and access and non-access result.
4313 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
4314 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
4316 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
4318 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
4321 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
4322 the new implementation of target-specific calls.
4324 2007-12-07 Olivier Hainque <hainque@adacore.com>
4326 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
4327 the designated full view, only follow a second level Full_View link
4328 for Non_Limited_Views of from_limited_with references.
4330 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
4333 * sem_ch6.adb (Process_Formals): Prevent an access type formal
4334 to be initialized with an access to constant object.
4336 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
4337 when an access to constant is used to initialize an access
4341 * a-direct.adb (Compose): Containing_Directory can be an empty string.
4343 2007-12-07 Olivier Hainque <hainque@adacore.com>
4346 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
4347 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
4348 this is from an alignment clause on the GNAT entity.
4349 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
4350 to distinguish the case where we set it from the type's alignment.
4351 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
4352 whether this alignment was set from an explicit alignment clause.
4354 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
4356 * decl.c (make_packable_type): Revert last change.
4357 (gnat_to_gnu_field): Avoid setting size and position multiple times.
4358 * utils.c (finish_record_type): Retrieve the real name of the type.
4360 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
4362 * trans.c (lvalue_required_p): Take base node directly instead
4363 of its parent. Rename second parameter to 'gnu_type'.
4364 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
4365 <N_Slice>: Likewise.
4366 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
4367 Adjust calls to lvalue_required_p.
4369 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
4372 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
4373 parameters of an entry call.
4375 2007-12-03 Robert Dewar <dewar@adacore.com>
4376 Samuel Tardieu <sam@rfc1149.net>
4379 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
4380 of variables declared in a library-level package.
4382 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
4384 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
4385 of Empty_String'Unchecked_Access.
4387 * Makefile.in: Add support for sh4-linux.
4389 * system-linux-sh4.ads: New file.
4391 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
4394 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
4395 and its argument must not be free()ed.
4397 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
4399 * decl.c (make_packable_type): Retrieve the real name of the type.
4400 (maybe_pad_type): Simplify similar code.
4402 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
4405 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
4406 than an identifier is used after "case" in a variant_part.
4409 * par-ch4.adb (Is_Parameterless_Attribute): New map.
4410 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
4411 attribute name or not depending on the new map.
4413 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
4414 returning a string or a type will not be called with improper
4417 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
4419 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
4422 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
4423 Signal an error when attribute argument is a fixed-point value of
4427 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
4428 a derived ordinary fixed point type.
4430 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
4431 RM_Size when a Small clause is found.
4433 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
4436 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
4437 Pass 'false' for the new allocate_struct_function parameter.
4438 * utils.c (build_function_stub): Likewise.
4440 2007-11-25 Richard Guenther <rguenther@suse.de>
4442 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
4443 (gnat_poplevel): Likewise.
4445 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
4447 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
4448 strict alignment, no alignment clause and a known static size, cap
4449 the type alignment to the greatest power of 2 factor of the size.
4450 (gnat_to_gnu_field): If the field has a component clause, is aliased
4451 or of a type with strict alignment, require that its size be equal to
4453 (validate_size): Use the type size as the minimum size for a type with
4456 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
4458 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
4459 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
4460 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
4461 Use 'Access instead of 'Unchecked_Access in second and third
4462 arguments of pthread_sigmask.
4464 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
4466 * decl.c (ceil_alignment): New function.
4467 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
4468 (make_packable_type): Likewise.
4470 2007-11-22 Olivier Hainque <hainque@adacore.com>
4472 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
4473 to fit in 80 columns.
4475 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
4477 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
4478 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
4480 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
4483 * misc.c (gnat_adjust_rli): Delete.
4484 (gnat_init): Do not initialize the translation code here.
4485 Do not call set_lang_adjust_rli.
4486 * trans.c (init_code_table): Make static.
4487 (gnat_init_stmt_group): Delete.
4488 (gigi): Initialize the translation code entirely here.
4489 Emit debug info for the common types here instead of...
4490 * utils.c (gnat_init_decl_processing): ...here.
4491 * gigi.h (init_code_table): Delete.
4492 (gnat_init_stmt_group): Likewise.
4494 2007-11-16 Olivier Hainque <hainque@adacore.com>
4496 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
4497 retrieving an allocator return value from a super-aligned address from
4499 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
4500 expect a super-aligned address for a fat or thin pointer.
4502 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
4504 * trans.c (call_to_gnu): Always set the source location on the call
4505 expression. If the function returns-by-target, also set it on the
4508 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
4510 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
4511 sections of non-supported Interix target.
4513 * s-osinte-interix.ads: Removed.
4515 * i-cstrin.ads (chars_ptr): Make it a C convention type.
4517 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
4519 * a-tasatt.adb: Add a comment at the beginning of the package
4520 explaining why in general 'Unchecked_Access must be used instead
4523 * sem_prag.adb (Process_Convention): Move the test for the
4524 entity on which the Convention pragma applies down to also
4525 forbid pragma Convention on enumeration literals reached
4528 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
4530 * a-tasatt.adb: Revert previous change for this file as it will
4531 generate an error when this package is instantiated from a
4534 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
4536 * a-tasatt.adb: Type Wrapper should be declared in comment instead
4537 of already declared type Node_Access.
4538 Use 'Access instead of 'Unchecked_Access when applicable. Local
4539 lifetime is the one of the package.
4540 (Set_Value): W is allocated on the heap.
4542 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
4544 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
4546 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
4549 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
4551 (elaboration code): Timer_Queue lifetime is the one of the
4554 * tracebak.c (i386 alternative): Remove useless comparaison
4555 which is always false; LOWEST_ADDRESS is 0 and is never greater
4556 than an unsigned integer.
4558 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
4559 embedded check for "Ada_Version >= Ada_05".
4561 2007-11-07 Olivier Hainque <hainque@adacore.com>
4563 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
4564 craft and expand comment.
4566 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
4568 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
4570 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
4572 * misc.c (gnat_handle_option): Replace call to abort with
4573 call to gcc_unreachable.
4574 (gnat_init): Likewise.
4575 (gnat_expand_expr): Likewise.
4576 (fp_prec_to_size): Likewise.
4577 (fp_size_to_prec): Likewise.
4579 2007-10-23 Richard Guenther <rguenther@suse.de>
4582 * tracebak.c: #undef abort after including system.h.
4584 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
4586 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
4587 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
4589 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
4591 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
4593 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
4594 Set the protection status of the guard page based on the value of On.
4596 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
4598 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
4599 (Exit_Task): Pass False to Hide_Yellow_Zone.
4601 2007-10-15 Robert Dewar <dewar@adacore.com>
4603 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
4604 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
4605 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
4606 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
4607 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
4608 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
4609 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
4610 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
4611 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
4612 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
4613 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
4614 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
4615 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
4616 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
4617 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
4618 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
4620 Add Unreferenced and Warnings (Off) pragmas for cases of
4621 variables modified calls where they are IN OUT or OUT parameters and
4622 the resulting values are not subsequently referenced. In a few cases,
4623 we also remove redundant code found by the new warnings.
4625 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
4626 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
4627 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
4628 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
4629 warning controlled by -gnatw.o that warns on cases of out parameter
4630 values being ignored.
4632 2007-10-15 Geert Bosch <bosch@adacore.com>
4634 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
4636 * expect.c: Initial port to arm-mentor-nucleus.
4637 Use kill for __gnat_kill() on VMS.
4639 2007-10-15 Emmanuel Briot <briot@adacore.com>
4641 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
4643 (Xref_Record): Change type for Line, since in the case of a reference to
4644 a predefined entity (as happens for array index types), the line is set
4646 Add support for parsing multiple array index types info, or
4647 multiple inherited interfaces info. This information cannot be stored
4648 in Xref_Entity_Record, which only supports a single instance of Tref_*,
4649 and is therefore stored in the list of references instead. It has a
4650 special treatement later on in tools that use this information.
4652 2007-10-15 Tristan Gingold <gingold@adacore.com>
4654 * debug.adb: Document use of -gnatd.a and -gnatd.I
4656 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
4658 2007-10-15 Javier Miranda <miranda@adacore.com>
4660 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
4661 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
4662 care of access to class-wide interface types plus removal of bizarre
4663 conversion of tagged object to access type (reported by Gary
4664 Dismukes). After this patch there is no need to perform any
4665 additional management on these nodes in Expand_Interface_Actuals.
4667 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
4668 that handles use of 'Access and 'Unchecked_Access applied to
4669 actuals covering interface types. Such code is now
4670 centralized in Expand_N_Attribute_Reference.
4672 2007-10-15 Ed Schonberg <schonberg@adacore.com>
4674 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
4675 of tagged types whose ultimate ancestor is a CPP type.
4676 (Freeze_Array_Type): For a packed array type, generate an initialization
4677 procedure if the type is public, to handle properly a client that
4678 specifies Normalize_Scalars.
4680 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
4682 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
4683 inside a generic body, retrieve the full view of the entry family
4684 discrete subtype if available.
4686 2007-10-15 Thomas Quinot <quinot@adacore.com>
4688 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
4689 attempt to generate stubs for hidden primitive operations.
4691 2007-10-15 Vincent Celier <celier@adacore.com>
4693 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
4694 returning None, used when there is no platform specific body for
4697 2007-10-15 Bob Duff <duff@adacore.com>
4699 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
4700 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
4701 the generic Heap_Sort_G, in order to avoid trampolines.
4703 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
4704 Jose Ruiz <ruiz@adacore.com>
4706 * vx_stack_info.c: New file.
4708 * i-forbla-unimplemented.ads: New file.
4710 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
4711 for unsupported configurations; use it on VMS targets instead of the
4713 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
4714 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
4715 used by VxWorks targets to have access to task-specific data and be
4716 able to extract the stack boundaries for stack checking.
4717 Use system-vms-ia64.ads on ivms.
4719 * Make-lang.in: Update dependencies.
4721 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
4724 2007-10-15 Vincent Celier <celier@adacore.com>
4726 * snames.adb, snames.ads: Add new standard name runtime_library_dir
4728 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
4730 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
4732 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
4733 the source is unknown.
4735 * prj-ext.adb: Spelling error fix
4737 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
4738 95 reserved word in its name.
4739 (Process_Project_Level_Array_Attributes): Process new attribute
4740 Runtime_Library_Dir.
4742 * prj-part.adb (Parse_Single_Project): Do not check the name of the
4743 config project against the user project names.
4745 * prj-proc.adb (Expression): In multi-language mode, indexes that do
4746 not include a dot are always case insensitive.
4747 (Process_Declarative_Items): Ditto
4748 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
4751 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
4752 True, compare both indexes in lower case.
4754 2007-10-15 Robert Dewar <dewar@adacore.com>
4756 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
4758 2007-10-15 Gary Dismukes <dismukes@adacore.com>
4760 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
4761 association for an access component, add an association with null as
4762 the expression. Remove testing for array subtypes and the setting in
4763 that case of Ctyp to the array component type, which prevented proper
4764 inclusion of an association for null-initialized arrays. Collapse
4765 condition that tests for array subtypes into just a test of
4766 Is_Partially_Initialized_Type (which already covers arrays anyway).
4768 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
4770 * sem_ch12.adb: Minor code reformatting.
4771 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
4772 find the parent package which may have been hidden by local
4775 2007-10-15 Gary Dismukes <dismukes@adacore.com>
4777 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
4778 flag of derived concurrent types, taking into account the flag setting
4779 on the parent subtype and any new set of discriminants.
4781 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
4783 * sem_ch4.adb: Minor code and comment reformatting.
4784 (Analyze_Allocator): When the designated type of an unconstrained
4785 allocator is a record with unknown discriminants or an array with
4786 unknown range bounds, emit a detailed error message depending on the
4787 compilation mode and whether the designated type is limited.
4789 2007-10-15 Tristan Gingold <gingold@adacore.com>
4791 * system-vms-ia64.ads: New file.
4793 * system-vms_64.ads: Minor comment fix.
4795 2007-10-15 Ed Schonberg <schonberg@adacore.com>
4797 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
4798 body generated for a function with a controlling result that is a null
4799 extension, discard the generated body in favor of the current explicit
4802 2007-10-15 Ed Schonberg <schonberg@adacore.com>
4804 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
4805 examining its original form, to handle properly operator calls that
4806 have been rewritten.
4808 2007-10-15 Olivier Hainque <hainque@adacore.com>
4810 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
4811 instead of a procedure value in each traceback entry.
4813 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
4814 instead of procedure value to TBK$SYMBOLIZE.
4816 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
4818 (TB_Entry_For): Account for the PV/FP renaming.
4820 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
4822 (Null_TB_Entry): Account for change of component name.
4823 (PV_For): Rename as FP_For.
4825 2007-10-15 Tristan Gingold <gingold@adacore.com>
4827 * trans.c (gnat_to_gnu): Remove the padding structure more often.
4828 This optimize assignment to over-aligned record.
4830 2007-10-15 Emmanuel Briot <briot@adacore.com>
4832 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
4835 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
4836 type, for dispatching calls.
4838 2007-10-15 Vincent Celier <celier@adacore.com>
4839 Robert Dewar <dewar@adacore.com>
4841 * gnat_ugn.texi: Add documentation for switches --version and --help
4842 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
4843 gnatxref, gnatfind, gnatls, and gnatclean.
4845 Mention attribute Excluded_Source_Dirs
4846 Replace obsolescent attribute Locally_Removed_Files with attribute
4847 Excluded_Source_Files.
4848 Improve documentation of -u (gnatbind)
4849 Document how to do reliable stack checking for the environmental task
4852 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
4853 Document attribute Excluded_Source_Files and indicate that attribute
4854 Locally_Removed_Files is obsolescent.
4856 2007-10-15 Thomas Quinot <quinot@adacore.com>
4858 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
4861 Update documentation to note that OpenVMS 8.3 or later must be used
4862 to generate g-soccon-vms.ads.
4864 * atree.adb: Add ??? comment
4866 * exp_util.adb: Minor reformatting.
4867 Add ??? comment in Kill_Dead_Code.
4869 2007-10-15 Robert Dewar <dewar@adacore.com>
4871 * errout.ads: Comment clarification
4873 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
4874 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
4876 * lib.ads: Comment update
4878 * init.c: Minor reformatting.
4880 * sem_attr.adb: Minor formatting
4882 * osint-b.ads: Minor reformatting
4884 * sem_ch9.adb: Implement -gnatd.I switch
4886 * g-comlin.adb: (Start): Fix handling of empty command line.
4888 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
4889 even when -rules follows the -cargs section.
4891 2007-10-08 Ollie Wild <aaw@google.com>
4893 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
4895 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
4897 (gnat_eh_runtime_type): Removed.
4898 (gnat_return_tree): New function.
4900 2007-10-08 Ben Elliston <bje@au.ibm.com>
4904 2007-08-31 Ben Elliston <bje@au.ibm.com>
4906 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
4907 when compiling for powerpc64-*-linux.
4908 * system-linux-ppc64.ads: New file.
4910 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
4912 Mapped location support
4913 * back_end.adb (Call_Back_End): Pass information about source
4914 files instead of units to gigi.
4915 * gigi.h (struct File_Info_Type): New.
4916 (gigi): Rename and change type of number_units parameter, change
4917 type of file_info_ptr parameter.
4918 * trans.c (number_files): New global variable.
4919 (gigi): Rename and change type of number_units parameter, change
4920 type of file_info_ptr parameter.
4921 If mapped location support is enabled, create the isomorphic mapping
4922 between source files and line maps.
4923 (Sloc_to_locus): If mapped location support is enabled, translate
4924 source location into mapped location.
4925 (annotate_with_node): Rename into set_expr_location_from_node.
4926 Call set_expr_location instead of annotate_with_locus.
4927 (Pragma_to_gnu): Adjust for above change.
4928 (Loop_Statement_to_gnu): Likewise.
4929 (call_to_gnu): Likewise.
4930 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
4931 (gnat_to_gnu): Likewise.
4932 (add_stmt_with_node): Likewise.
4933 (add_cleanup): Likewise.
4934 * utils.c (gnat_init_decl_processing): Do not set input_line.
4936 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
4938 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
4939 (Applicable_Use): Emit a warning when a package tries to use itself.
4940 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
4941 is already in use or the package where it is declared is in use or is
4942 declared in the current package.
4943 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
4945 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
4946 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
4947 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
4949 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
4951 * a-calend-vms.adb, a-calend.adb:
4952 Add a section on leap seconds control along with two entities used to
4953 enable and disable leap seconds support. The array Leap_Second_Times is
4954 now constant and contains hard time values pre-generated. Remove
4955 all elaboration code used to populate the table of leap seconds.
4958 Add entity Leap_Seconds_Support to the list of global run-time variables
4959 along with a comment on its usage and values.
4960 (Gen_Adainit_Ada): Add code to generate the declaration and import of
4961 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
4962 or one (enabled) depending on the presence of binder switch "-y".
4963 (Gen_Adainit_C): Add code to generate the declaration of external int
4964 __gl_leap_seconds_support. Set is value to zero (disabled) or one
4965 (enabled) depending on the presence of binder switch "-y".
4967 * init.c: Add __gl_leap_seconds_support to the list of global values
4968 computed by the binder.
4970 2007-09-26 Jerome Guitton <guitton@adacore.com>
4972 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
4973 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
4974 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
4975 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
4977 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
4979 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
4980 function which can be called by the debugger to interrupt the tasks of
4981 an Ada application asynchronously, as needed on VxWorks.
4982 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
4984 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
4985 renamed from Stop_All_Tasks. Update comments.
4986 (Stop_All_tasks): New function declaration.
4988 2007-09-26 Olivier Hainque <hainque@adacore.com>
4990 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
4991 #include <utime.h> and #define GCC_RESOURCE_H before
4992 #include <sys/wait.h>.
4993 Add more protections in __gnat_translate_vms.
4995 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
4996 #include <sys/wait.h>.
4998 2007-09-26 Thomas Quinot <quinot@adacore.com>
4999 Sergey Rybin <rybin@adacore.com>
5001 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
5003 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
5006 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
5008 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
5011 * sem_dist.ads: Minor comment fix
5013 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
5015 2007-09-26 Javier Miranda <miranda@adacore.com>
5016 Eric Botcazou <ebotcazou@adacore.com>
5019 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
5020 indirection added to the HT_Link component of the TSD. This is required
5021 to statically allocate the TSD.
5024 Minor reordering of the declarations in the private part. Required to
5025 add a level of indirection to the contents of the TSD component HT_Link.
5026 This is required to statically allocate the TSD.
5028 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
5029 Is_Statically_Allocated set from constant objects.
5030 Do not make exported constants created by the compiler volatile.
5031 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
5034 * trans.c (Identifier_to_gnu): For constants, unshare initializers
5035 before returning them.
5037 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
5038 public part of the package.
5039 (Make_DT): Move HT_Link component out of the TSD record. For this
5040 purpose Make_DT now declares a separate object that stores the
5041 HT_Link value, and initializes the TSD component with the address
5042 of this new object. The addition of this level of indirection is
5043 required to statically allocate the TSD because the TSD cannot
5044 have variable components.
5045 (Expand_Interface_Conversion): Improve the expanded code.
5046 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
5048 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
5049 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
5050 if we are building static dispatch tables then we must not generate
5051 extra code to register the primitive because the dispatch table will
5052 be built at the end of the library package; otherwise we notify that
5053 we cannot build the static dispatch table.
5055 2007-09-26 Robert Dewar <dewar@adacore.com>
5057 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
5060 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
5061 (Analyze_Record_Representation_Clause): Suppress junk warning for
5062 missing component clause.
5063 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
5064 tests for controlled type overlay to composites with controlled
5066 (Analyze_Record_Representation_Clause): Add reference for component name
5068 2007-09-26 Javier Miranda <miranda@adacore.com>
5069 Gary Dismukes <dismukes@adacore.com>
5071 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
5072 for thunks associated with interface types.
5074 * einfo.ads: Improve documentatation of Is_Internal
5075 (Is_Thunk): New attribute applicable to subprograms. True for thunks
5076 associated with interface types.
5077 Extensive comment fixes regarding flags that appear in all entities. The
5078 documentation is now consistent for all such flags (there were a number
5079 of errors in the documentation in this regard).
5081 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
5083 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
5084 of these procedures are passed a function call that already has
5085 build-in-place actuals (testing new flag
5086 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
5087 the case where processing continues.
5088 (Expand_Call): If the call is generated from a thunk body then we
5089 propagate the extra actuals associated with the accessibility
5090 level of the access type actuals.
5092 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
5093 of each extra formal of a protected operation to reference the
5094 corresponding extra formal of the subprogram denoted by the
5095 operation's Protected_Body_Subprogram.
5097 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
5098 N_Function_Call nodes.
5100 2007-09-26 Robert Dewar <dewar@adacore.com>
5102 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
5104 * debug.adb: Add d.s flag.
5106 2007-09-26 Gary Dismukes <dismukes@adacore.com>
5108 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
5109 debug variable so that it won't be initialized when pragma
5110 Initialize_Scalars is in effect.
5112 2007-09-26 Gary Dismukes <dismukes@adacore.com>
5114 * freeze.adb (Freeze_Entity): Remove check for preelaborable
5115 initialization of a full view. This is moved to
5116 Analyze_Package_Specification.
5118 * sem_ch7.adb (Analyze_Package_Specification): Add check for
5119 preelaborable initialization of a full view in entity loop.
5120 (Uninstall_Declarations): If entity is a use-visible compilation unit,
5121 its child units are use-visible only if they are visible child units.
5123 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
5124 whether an expression can be used within a type declaration that
5125 requires preelaborable init.
5126 (Check_Components): Replace inline code that does partial checking for
5127 preelaborable default expressions with call to
5128 Is_Preelaborable_Expression.
5129 (Has_Preelaborable_Initialization): In the case of a generic actual
5130 subtype, (that is, Is_Generic_Actual is True), return the result of
5131 applying Has_Preelaborable_Initialization to the generic actual's base
5134 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
5136 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
5137 call to Jan_1_Day _Of_Week to optimize its performance.
5138 (Is_Leap): Move the routine to the scope of Week_In_Year.
5139 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
5140 weekday on which January 1 falls of Year - 1 and Year + 1. This function
5141 avoids calling Time_Of and Split, thus making it more efficent.
5142 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
5144 * g-calend.ads (Week_In_Year): Change comment to reflect new
5147 2007-09-26 Emmanuel Briot <briot@adacore.com>
5149 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
5150 Command_Line): New types
5151 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
5152 support for defining how switches can be grouped on a command line (as
5153 is the case for -gnatw... for GNAT), and how simple switches can be
5154 used as aliases for more complex switches (-gnatwa is same as
5156 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
5157 (Start, Current_*): New subprograms
5158 Added support for parsing an array of strings in addition to the real
5160 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
5161 be moved from the body to the private part of the spec.
5162 (*): All subprograms now have an extra parameter with default value to
5163 specify which parser should be used. For backward compatibility, it
5164 defaults to parsing the command line of the application. They were also
5165 modified to properly handle cases where each of the argument does not
5166 start at index 1 (which is always true for Ada.Command_Line, but not
5167 when processing any Argument_List).
5168 (Free): New subprogram
5169 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
5170 Argument): New subprograms
5171 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
5172 special characters like ':', '=',... are now handled in a single place,
5173 which makes the code more extensible eventually.
5174 (Getopt, Full_Switch): When the switch was returned as part of the
5175 special character '*', make sure it is prepended by the switch character
5176 ('-' in general), so that the application knows whether "foo" or "-foo"
5177 was specified on the command line.
5179 2007-09-26 Florian Villoing <villoing@adacore.com>
5181 * g-dirope.adb (Remove_Dir): In case we are removing directories
5182 recursively, make sure that if an exception is raised during the
5183 processing, the current working directory is reset to its initial
5184 value before propagating the exception.
5186 2007-09-26 Vincent Celier <celier@adacore.com>
5188 * gnatbind.adb: If there are several ALI files specified and there is
5189 a main program to bind, the first ALI is expected to contain the main
5190 subprogram and the names of the binder generated files will be derived
5191 from the first ALI file name.
5192 (Gnatbind): Fix insertion character in invocation of Error_Msg
5194 2007-09-26 Vincent Celier <celier@adacore.com>
5196 * gnatcmd.adb (Check_Files): Do not include sources that have been
5197 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
5199 2007-09-26 Ed Schonberg <schonberg@adacore.com>
5201 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
5202 information about each of its index types, following the type
5203 reference for its component type.
5205 2007-09-26 Vincent Celier <celier@adacore.com>
5207 * make.adb: (Kill): New procedure (__gnat_kill imported)
5208 (Running_Compile, Outstanding_Compiles): Global variables that
5209 were previously local to procedure Compile_Sources.
5210 (Sigint_Intercepted): Send signal SIGINT to all outstanding
5211 compilation processes.
5213 (Gnatmake): If project files are used, create the mapping of all the
5214 sources, so that the correct paths will be found.
5216 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
5218 2007-09-26 Vincent Celier <celier@adacore.com>
5220 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
5222 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
5223 Replace components Compiler_Min_Options and Binder_Min_Options with
5224 Compiler_Required_Switches and Binder_Required_Switches in record
5226 Remove components Default_Language and Config in Project_Tree_Data,
5229 * prj-attr.adb: New attributes Required_Switches (<language>) in
5230 packages Compiler and Binder.
5232 * prj-nmsc.adb: Major rewrite of the processing of configuration
5233 attributes for gprbuild. No impact on GNAT tools.
5235 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
5236 process configuration attributes: this is done in Prj.Nmsc.Check.
5237 (Recursive_Process): Make a full copy of packages inherited from project
5238 being extended, instead of a shallow copy.
5239 (Process_Project_Tree_Phase_1): New procedure
5240 (Process_Project_Tree_Phase_1): New procedure
5241 (Process): Implementation now uses the two new procedures
5243 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
5244 from the project config, not the tree config that no longer exists.
5246 2007-09-26 Vincent Celier <celier@adacore.com>
5248 * Make-lang.in: Update dependencies..
5250 2007-09-26 Vincent Celier <celier@adacore.com>
5252 * osint.adb, osint.ads: Minor reformatting
5254 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
5256 2007-09-26 Gary Dismukes <dismukes@adacore.com>
5258 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
5259 message to cite use of <> in aggregate component associations rather
5260 than wrongly indicating use of limited aggregates.
5262 2007-09-26 Robert Dewar <dewar@adacore.com>
5264 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
5267 2007-09-26 Ed Schonberg <schonberg@adacore.com>
5269 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
5270 ancestor of the derived type, the operations are inherited from the
5271 primary dispatch table of the parent.
5272 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
5273 when the context is an explicit type conversion.
5275 2007-09-26 Ed Schonberg <schonberg@adacore.com>
5277 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
5278 rule for qualified expressions properly, to detect improper conversions
5279 and resolve some cases of overloading.
5281 2007-09-26 Ed Schonberg <schonberg@adacore.com>
5283 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
5284 proper kind of reference to the primitive operation, for better source
5286 (Valid_Conversion): A tagged conversion is legal if both operands are
5289 2007-09-26 Robert Dewar <dewar@adacore.com>
5291 * sem_warn.adb (Check_References): Catch more cases of unreferenced
5294 2007-09-26 Vincent Celier <celier@adacore.com>
5296 * snames.adb, snames.ads: Change Include_Option to Include_Switches
5298 2007-09-26 Robert Dewar <dewar@adacore.com>
5300 * s-wchstw.adb: provide messages for run time unit exceptions
5302 * a-witeio.adb: Minor reformatting
5304 * exp_ch13.adb: Minor reformatting
5306 2007-09-26 Sergey Rybin <rybin@adacore.com>
5308 * vms_data.ads: Revise gnatmetric qualifiers.
5309 Add qualified for the new gnatbind option '-y'
5311 * gnat_ugn.texi: Revise the gnatmetric section.
5312 Add entry for new gnatbind option '-y'.
5314 * gnat_rm.texi: Minor spelling correction.
5315 Document restriction on overlaying controlled types
5317 2007-09-26 Vincent Celier <celier@adacore.com>
5319 * makegpr.adb (Link_Executables): Do not fail when the root project has
5320 no sources, but is an extending project.
5322 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
5324 * trans.c: Fix misplaced #define.
5326 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
5328 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
5329 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
5331 2007-09-21 Olivier Hainque <hainque@adacore.com>
5333 * utils.c (type_for_nonaliased_component_p): Return false for
5334 all AGGREGATE_TYPEs.
5336 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
5338 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
5339 object covered by 13.3(19) volatile.
5341 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
5345 * utils.c (unchecked_convert): Use a subtype as the intermediate type
5346 in the special VIEW_CONVERT_EXPR case.
5348 2007-09-12 Robert Dewar <dewar@adacore.com>
5350 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
5352 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
5353 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
5354 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
5355 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
5356 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
5357 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
5358 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
5359 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
5360 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
5361 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
5362 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
5363 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
5364 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
5365 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
5366 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
5367 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
5368 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
5369 pragma Compiler_Unit and adds it to relevant library units.
5371 2007-09-12 Ed Schonberg <schonberg@adacore.com>
5373 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
5374 a box need not correspond to any component.
5376 2007-09-12 Robert Dewar <dewar@adacore.com>
5378 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
5379 the tasking version of the Ada run time when foreign threads are
5380 present and there are no explicit Ada tasks or tasking constructs.
5382 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
5384 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
5386 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
5387 the usage of switch -y.
5389 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
5390 when switch -y is present.
5392 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
5393 leap seconds in Ada.Calendar and its children.
5395 2007-09-12 Jose Ruiz <ruiz@adacore.com>
5397 * a-extiti.ads (Timer): The discriminant is a "not null access
5398 constant" in the Reference Manual.
5399 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
5401 2007-09-12 Robert Dewar <dewar@adacore.com>
5403 * a-swuwha.adb: Remove junk RM header
5405 2007-09-12 Vincent Celier <celier@adacore.com>
5407 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
5410 * g-bytswa.ads: Minor reformatting
5412 2007-09-12 Thomas Quinot <quinot@adacore.com>
5414 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
5415 Add new constant Thread_Blocking_IO, always True by default, set False
5416 on a per-runtime basis.
5417 (Need_Netdb_Buffer): New constant.
5419 2007-09-12 Arnaud Charlet <charlet@adacore.com>
5421 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
5422 Added renames for corresponding functions in System.Partition_Interface.
5424 2007-09-12 Doug Rupp <rupp@adacore.com>
5426 * Makefile.in: Remove VMS specific System.CRTL packages which are no
5429 * s-crtl-vms64.ads: Removed.
5431 2007-09-12 Olivier Hainque <hainque@adacore.com>
5433 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
5434 with discriminant constraints, generalize the code for BIT_FIELDs
5435 to PACKED fields of constant size and propagate DECL_PACKED.
5437 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
5439 * decl.c (array_type_has_nonaliased_component): New predicate.
5440 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
5441 set the TYPE_NONALIASED_COMPONENT flag on the type.
5442 <E_Array_Subtype>: Likewise.
5443 * gigi.h (type_for_nonaliased_component_p): Declare.
5444 * utils.c (type_for_nonaliased_component_p): New predicate.
5445 (create_field_decl): Invoke the above predicate to set the
5446 DECL_NONADDRESSABLE_P flag on the field.
5448 2007-09-11 Javier Miranda <miranda@adacore.com>
5450 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
5451 in library level record type entities if we are generating statically
5452 allocated dispatch tables.
5454 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
5455 importing/exporting the _tag declaration by new code
5456 importing/exporting the dispatch table wrapper. This change allows us
5457 to statically allocate of the TSD.
5458 (Make_DT.Export_DT): New procedure.
5459 (Build_Static_DT): New function.
5460 (Has_DT): New function.
5462 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
5463 True_Constant and Current_Value. Required to statically
5464 allocate the dispatch tables.
5465 (Check_Allocator): Make function iterative instead of recursive.
5466 Also return inner allocator node, when present, so that we do not have
5467 to look for that node again in the caller.
5469 2007-09-11 Jan Hubicka <jh@suse.cz>
5471 * misc.c (gnat_expand_body): Kill.
5472 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
5474 2007-09-10 Robert Dewar <dewar@adacore.com>
5476 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
5477 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
5478 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
5479 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
5480 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
5481 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
5482 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
5483 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
5484 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
5485 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
5486 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
5487 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
5488 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
5489 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
5490 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
5491 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
5492 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
5493 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
5494 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
5495 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
5496 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
5497 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
5498 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
5499 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
5500 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
5501 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
5502 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
5503 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
5504 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
5505 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
5506 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
5507 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
5508 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
5509 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
5510 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
5511 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
5512 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
5513 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
5514 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
5515 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
5516 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
5517 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
5518 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
5519 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
5520 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
5521 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
5522 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
5523 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
5524 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
5525 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
5526 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
5527 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
5528 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
5529 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
5530 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
5531 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
5532 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
5533 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
5534 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
5535 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
5536 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
5537 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
5538 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
5539 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
5540 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
5541 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
5542 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
5543 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
5544 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
5545 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
5546 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
5547 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
5548 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
5549 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
5550 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
5551 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
5552 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
5553 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
5554 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
5555 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
5556 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
5557 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
5558 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
5560 2007-09-10 Emmanuel Briot <briot@adacore.com>
5562 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
5565 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
5567 * adaint.c (__gnat_translate_vms): new function.
5569 2007-09-10 Gary Dismukes <dismukes@adacore.com>
5570 Thomas Quinot <quinot@adacore.com>
5572 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
5573 create an abstract subprogram in the case of 'Input. For 'Output we now
5574 create a real spec/body when the type is abstract, since it can
5575 potentially be called.
5576 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
5577 body for 'Output when the type is abstract (only the creation of the
5578 body for 'Input is excluded when the type is abstract).
5579 (Stream_Operation_OK): Add an additional condition in the return
5580 statement, so that False will be returned for TTS_Stream_Input if the
5581 associated tagged type is an abstract extension. Add comments for
5583 (Expand_N_Object_Declaration): For the case of a shared passive
5584 variable, insert init proc call only after the shared variable
5585 procedures have been processed, because the IP call needs to undergo
5586 shared passive variable reference expansion, which requires these
5587 procedures to be available (and elaborated).
5589 2007-09-10 Vincent Celier <celier@adacore.com>
5591 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
5592 parameter Runtime_Project.
5594 2007-09-10 Ed Schonberg <schonberg@adacore.com>
5596 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
5597 given a box association, the type of the component is discriminated,
5598 and the value of the discriminant is the discriminant of the enclosing
5599 type, retrieve its value from the aggregate itself, where it must have
5602 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
5603 to remove other spurious ambiguities on arithmetic operations involving
5604 literals and addresses, on systems where Address is a visible integer
5605 type, when the operator is called in functional notation.
5606 (Try_Primitive_Operation): Within an instance, a call in prefixed form
5607 is legal when the types match, even if the operation is currently
5610 2007-09-10 Ed Schonberg <schonberg@adacore.com>
5612 * sem_ch12.adb (Build_Local_Package): A formal package with no
5613 associations is legal if all formals have defaults. It is not
5614 equivalent to a formal declared with a box.
5616 2007-09-10 Sergey Rybin <rybin@adacore.com>
5618 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
5620 2007-09-10 Sergey Rybin <rybin@adacore.com>
5622 * gnat_ugn.texi: Add description of the new '-lratio' option
5623 Update 7.3.1 section about availability of the feature.
5625 2007-09-10 Thomas Quinot <quinot@adacore.com>
5627 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
5630 2007-09-10 Olivier Hainque <hainque@adacore.com>
5632 * Makefile.in: (mips-irix section): Activate build of libgmem.
5634 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
5636 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
5639 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
5641 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
5642 a debug renaming declaration specially.
5644 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
5646 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
5647 which a constant renaming is treated as a normal object declaration.
5648 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
5649 the N_Indexed_Component case.
5650 <N_Indexed_Component>: Fall through to above case.
5651 <N_Object_Renaming_Declaration>: Return true for all composite types.
5653 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
5655 * decl.c (make_packable_type): If the new type has been given BLKmode,
5656 try again to get an integral mode for it.
5658 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
5660 Re-apply accidentally reverted change:
5662 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
5664 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
5665 get_action_description_for): Replace _Unwind_Word with _uleb128_t
5666 and _Unwind_SWord with _sleb128_t.
5668 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
5670 * trans.c (convert_with_check): Update call to real_2expN.
5672 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
5674 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
5675 * utils.c (end_subprog_body): Likewise.
5677 2007-09-03 Nick Clifton <nickc@redhat.com>
5679 * Make-lang.in: Change copyright header to refer to version 3 of
5680 the GNU General Public License and to point readers at the
5681 COPYING3 file and the FSF's license web page.
5682 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
5683 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
5684 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
5685 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
5688 2007-08-31 Vincent Celier <celier@adacore.com>
5692 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
5693 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
5694 (Check_Version_And_Help): New procedure in package Switch to process
5695 switches --version and --help.
5696 Use Check_Version_And_Help in GNAT tools
5699 (Compile_Sources): Make sure that sources that are "excluded" are not
5701 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
5702 project file is used.
5703 (Version_Switch): Remove, moved to Switch
5704 (Help_Switch): Remove, moved to Switch
5705 (Display_Version): Remove, moved to Switch
5707 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
5708 package Switch to process switches --version and --help.
5709 (Display_Version): New procedure
5711 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
5713 2007-08-31 Javier Miranda <miranda@adacore.com>
5715 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
5718 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
5720 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
5721 (Mark_Non_Null): If the node for which we just generated an access check
5722 is a reference to an *in* parameter and the reference appears in the
5723 declarative part of a subprogram body, mark the node as known non null.
5725 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
5727 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
5728 structure of E_Exception to reflect the new flag.
5729 (Is_Raised, Set_Is_Raised): New inlined routines.
5730 Update the usage of available flag to reflect the addition of Is_Raised.
5731 (Is_Raised, Set_Is_Raised): Bodies of new routines.
5732 (Write_Entity_Flags): Write the status of flag Is_Raised.
5733 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
5734 spurious ambiguities when integer literals appear in the context of an
5735 address type that is a visible integer type.
5737 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
5738 exceptions never being raised.
5739 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
5742 2007-08-31 Javier Miranda <miranda@adacore.com>
5744 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
5745 statement when compiling under restriction No_Exceptions_Proparation.
5747 2007-08-31 Ed Schonberg <schonberg@adacore.com>
5749 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
5750 initialization aggregate for the type, generate itype references for
5751 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
5753 2007-08-31 Gary Dismukes <dismukes@adacore.com>
5755 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
5756 library-level package renaming, pass the declaration associated with
5757 the renaming's special debug variable to Qualify_Entity_Names to ensure
5758 that its encoded name is properly qualified.
5760 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
5761 occurring in the list of entities to qualify, and do not attempt to
5762 traverse an entity list in that case. Variables associated with
5763 ` library-level package renamings can now occur in the table.
5765 * exp_dbug.ads: Revise documentation of the encoding for renaming
5768 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5770 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
5771 access type points to an unconstrained array.
5773 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
5775 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
5778 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
5779 simple redundant qualifications. The check is performed whenever the
5780 expression is a non-overloaded identifier.
5781 (Resolve_Type_Conversion): Enchance the redundant type conversion check
5782 to include loop parameters.
5783 (Valid_Conversion): Avoid generation of spurious error message.
5785 2007-08-31 Bob Duff <duff@adacore.com>
5787 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
5788 concatenations of string literals into a single literal, in order to
5789 avoid very deep recursion in the front end, which was causing stack
5792 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
5793 string, and the right operand is a string literal (the case of "" &
5794 "..."), optimize by avoiding copying the right operand -- just use the
5795 value of the right operand directly.
5797 * stringt.adb (Store_String_Chars): Optimize by growing the
5798 String_Chars table all at once, rather than appending characters one by
5800 (Write_String_Table_Entry): If the string to be printed is very long,
5801 just print the first few characters, followed by the length. Otherwise,
5802 doing "pn(n)" in the debugger can take an extremely long time.
5804 * sem_prag.adb (Process_Interface_Name): Replace loop doing
5805 Store_String_Char with Store_String_Chars.
5807 2007-08-31 Vincent Celier <celier@adacore.com>
5809 * prj-attr.adb: Add new attribute Excluded_Source_Files
5811 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
5812 Locally_Removed_Files.
5814 * snames.ads, snames.adb: New standard name Excluded_Source_Files
5816 2007-08-31 Ed Schonberg <schonberg@adacore.com>
5818 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
5819 clauses of subunits, ignore limited_with_clauses that are illegal and
5820 have not been fully analyzed.
5822 2007-08-31 Ed Schonberg <schonberg@adacore.com>
5824 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
5825 flag, for effiency. It is called when analyzing arithmetic operators
5826 and also for actuals in calls that are universal_integers. The flag is
5827 set for the predefined type address, and for any type or subtype
5830 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
5831 Universal_Integer, when the formal is a descendent of address and the
5832 call appears in user code.
5833 (Analyze_Selected_Component): if the prefix is a private extension, the
5834 tag component is visible.
5836 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
5839 2007-08-31 Robert Dewar <dewar@adacore.com>
5841 * s-fileio.adb (Open): Normalize file name to lower case in non-case
5842 sensitive file name systems to avoid unexpected mismatch in Vista.
5844 2007-08-31 Vincent Celier <celier@adacore.com>
5846 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
5848 2007-08-31 Vincent Celier <celier@adacore.com>
5850 * symbols-vms.adb (Initialize): Read symbol files with continuation
5852 (Finalize): If symbol is long, split the line
5854 2007-08-31 Vincent Celier <celier@adacore.com>
5856 * fmap.ads: Minor comment updates
5858 2007-08-31 GNAT Script <nobody@adacore.com>
5860 * Make-lang.in: Makefile automatically updated
5862 2007-08-31 Bob Duff <duff@adacore.com>
5864 * sinfo.ads: Minor comment fix.
5866 2007-08-31 Thomas Quinot <quinot@adacore.com>
5868 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
5869 with implementation.
5870 Documentation cleanup only.
5872 2007-08-31 Sergey Rybin <rybin@adacore.com>
5874 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
5875 gnatpp '--separate-stmt-name' option.
5876 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
5879 * gnat_ugn.texi: Add description for the new gnatpp
5880 '--separate-stmt-name' and '--use-on-new-line' options.
5882 2007-08-31 Ben Elliston <bje@au.ibm.com>
5884 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
5885 when compiling for powerpc64-*-linux.
5886 * system-linux-ppc64.ads: New file.
5888 2007-08-22 Krister Walfridsson <cato@df.lth.se>
5890 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
5893 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5895 * misc.c (gnat_type_max_size): Constify.
5897 2007-08-16 Gary Dismukes <dismukes@adacore.com>
5899 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
5900 associated with Standard_Debug_Renaming_Type, to be used as the type of
5901 the special variables whose names provide debugger encodings for
5902 renaming declarations.
5904 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
5905 (Set_Debug_Renaming_Link): Change to set Node25.
5906 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
5907 (Write_Field25_Name): Add case for E_Variable to output
5908 "Debug_Renaming_Link".
5909 (Write_Field23_Name): Correct the output string for "Limited_View".
5911 * exp_dbug.adb: Add with and use of Tbuild.
5912 (Debug_Renaming_Declaration): Replace creation of an enumeration type
5913 and literal with creation of a variable of type
5914 Standard_Debug_Renaming_Type whose name encodes both the renamed object
5915 and the entity of the renaming declaration.
5916 (Qualify_Entity_Name): Add the delayed qualification of the entity name
5917 part of the name of a variable that has a Debug_Renaming_Link.
5919 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
5920 special type to be associated with variables that provide debugger
5921 encodings for renaming declarations.
5923 2007-08-16 Gary Dismukes <dismukes@adacore.com>
5924 Ed Schonberg <schonberg@adacore.com>
5925 Javier Miranda <miranda@adacore.com>
5927 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
5928 ancestor part given by an aggregate to test for an unchecked conversion,
5929 since this can occur in some cases when the ancestor part is a function
5930 call, and we don't want to fall into the recursive call to this
5931 procedure in that case.
5933 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
5934 stream attributes on limited types to account for user-specified
5935 attributes as well as whether Input (resp. Output) becomes available
5936 due to Read (resp. Write) being available for the type. Change Boolean
5937 variable to the more accurate name
5938 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
5939 double-"not" predicate at beginning of return statement to more
5940 understandable form.
5942 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
5943 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
5944 in a block statement and use that as the first statement of the
5945 expanded return rather than incorrectly using the handled sequence as
5946 the first statement.
5948 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
5949 operation, generate an explicit freeze node for it rather than
5950 generating extra formals, to ensure that gigi has the proper order of
5951 elaboration for anonymous subtypes in the signature of the subprograms.
5952 (Build_In_Place_Formal): Move assertion to beginning of loop.
5953 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
5954 applied to a function call (occurs for some cases of 'Input).
5955 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
5956 applied to a function call (occurs for some cases of 'Input).
5958 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
5959 2005, generate an extended return statement enclosing the result object
5962 * freeze.adb (Freeze_Record_Type): Extend the current management of
5963 components that are access type with an allocator as default value: add
5964 missing support to the use of qualified expressions of the
5965 allocator (which also cause freezing of the designated type!)
5966 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
5967 dispatching operation, since extra formals may be needed by calls to
5968 build-in-place functions (such as stream 'Input).
5970 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
5971 formals for 'Constrained and accessibility level in the case of a
5972 predefined dispatching operation.
5974 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
5975 point, no need to find the parent node.
5977 2007-08-16 Javier Miranda <miranda@adacore.com>
5979 * exp_attr.adb (Attribute_Priority): Add missing support for entries
5982 2007-08-16 Javier Miranda <miranda@adacore.com>
5984 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
5985 is not really required and can introduce regression with the debugger.
5986 The original problem is fixed with the patch written for checks.adb.
5988 2007-08-16 Thomas Quinot <quinot@adacore.com>
5990 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
5991 Range_Check on Allocated_Table.
5993 2007-08-16 Vincent Celier <celier@adacore.com>
5995 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
5996 Including_Non_Switch set to False.
5997 (Gnatmake): For the compiler, call Test_If_Relative_Path with
5998 Including_Non_Switch set to False.
6000 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
6001 parameter Including_Non_Switch, defaulted to True. When
6002 Including_Non_Switch is False, options that are not switches and
6003 appear as relative path are not converted to absolute paths.
6005 2007-08-16 Nicolas Roche <roche@adacore.com>
6007 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
6010 * Make-lang.in: Update dependencies
6012 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
6014 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
6015 currently inspected is a selected component, retrieve the entity of
6017 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
6018 from the immediate ancestor of Main_Unit_Entity.
6019 (Install_Limited_Withed_Unit): Do not install the limited view of
6020 package P if P is reachable through an ancestor chain from package C
6021 and C also has a with clause for P in its body.
6022 (Has_Limited_With_Clause): New routine.
6023 (Has_With_Clause): New routine.
6025 2007-08-16 Ed Schonberg <schonberg@adacore.com>
6027 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
6028 generic for an enclosing instance is a global reference, even though
6029 its scope is the enclosing instance.
6031 2007-08-16 Gary Dismukes <dismukes@adacore.com>
6032 Javier Miranda <miranda@adacore.com>
6034 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
6035 initialize a limited object.
6036 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
6038 Make sure Has_Complex_Representation is inherited by derived type.
6040 2007-08-16 Robert Dewar <dewar@adacore.com>
6042 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
6045 2007-08-16 Ed Schonberg <schonberg@adacore.com>
6047 * sem_disp.adb (Check_Dispatching_Operation): If the operation
6048 implements an operation inherited from a progenitor interface, verify
6049 that they are subtype-conformant.
6051 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
6052 Bob Duff <duff@adacore.com>
6053 Nicolas Setton <setton@adacore.com>
6055 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
6056 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
6057 the statement which is being resolved comes from a predefined library
6058 unit, all non-predefined library interpretations are skipped.
6059 (Resolve_Op_Concat): If string concatenation was folded in the parser,
6060 but the "&" is user defined, give an error, because the folding would
6063 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
6064 the parser has folded a long sequence of concatenations of string
6067 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
6068 and "JMP_BUF" variables as artificial.
6069 (N_String_Literal): Do not use alloca for very long string literals. Use
6070 xmalloc/free instead. Otherwise the stack might overflow.
6072 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
6075 2007-08-16 Vincent Celier <celier@adacore.com>
6077 * vms_conv.adb (Process_Argument): Ensure that project related options
6078 are not put in the -cargs section when using GNAT COMPILE.
6080 2007-08-16 Robert Dewar <dewar@adacore.com>
6082 * gnat_ugn.texi: Add note on preprocessing (output file not written)
6084 2007-08-16 Thomas Quinot <quinot@adacore.com>
6086 * a-tags.adb: Minor reformatting.
6088 2007-08-16 Bob Duff <duff@adacore.com>
6090 * sem_type.ads, sem_ch4.adb: Minor reformatting.
6092 2007-08-14 Thomas Quinot <quinot@adacore.com>
6094 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
6095 s-osinte-interix.ads, system-interix.ads: Removed.
6097 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
6099 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
6100 calls to Check_Within_Time_Bounds.
6101 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
6102 (Difference): Account for possible rounding of the resulting difference
6104 2007-08-14 Robert Dewar <dewar@adacore.com>
6106 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
6107 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
6108 s-osinte-solaris.adb, s-osinte-solaris.ads,
6109 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
6111 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
6112 switch -gnatyS. Enable -gnatyS in GNAT style check mode
6114 2007-08-14 Robert Dewar <dewar@adacore.com>
6115 Ed Schonberg <schonberg@adacore.com>
6117 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
6118 Suppress unmodified in-out parameter warning in some cases
6119 This patch is a also fairly significant change to the way suppressible
6122 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
6123 needed for access to concurrent record types generated by the expander.
6124 (Generate_Range_Check): When generating a temporary to capture the
6125 value of a conversion that requires a range check, set the type of the
6126 temporary before rewriting the node, so that the type is always
6127 properly placed for back-end use.
6128 (Apply_Float_Conversion_Check): Handle case where the conversion is
6130 (Get_Discriminal): Code reformatting. Climb the scope stack looking
6131 for a protected type in order to examine its discriminants.
6133 2007-08-14 Robert Dewar <dewar@adacore.com>
6134 Gary Dismukes <dismukes@adacore.com>
6135 Ed Schonberg <schonberg@adacore.com>
6136 Thomas Quinot <quinot@adacore.com>
6138 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
6139 a-stwisu.adb, a-strsup.adb: Fix warnings for range
6140 tests optimized out.
6142 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
6143 (Get_Allocator_Final_List): For the case of an anonymous access type
6144 that has a specified Associated_Final_Chain, do not go up to the
6146 (Expand_N_Type_Conversion): Test for the case of renamings of access
6147 parameters when deciding whether to apply a run-time accessibility
6149 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
6150 aggregate code before allocator, and ahead of declaration for
6151 temporary, to prevent access before elaboration when the allocator is
6152 an actual for an access parameter.
6153 (Expand_N_Type_Conversion): On an access type conversion involving an
6154 access parameter, do not apply an accessibility check when the
6155 operand's original node was an attribute other than 'Access. We now
6156 create access conversions for the expansion of 'Unchecked_Access and
6157 'Unrestricted_Access in certain cases and clearly accessibility should
6158 not be checked for those.
6160 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
6161 includes a type conversion of a packed component that has been expanded,
6162 recover the original expression for the object, and use this expression
6163 in the post-call assignment statement, so that the assignment is made
6164 to the object and not to a back-end temporary.
6165 (Freeze_Subprogram): In case of primitives of tagged types not defined
6166 at the library level force generation of code to register the primitive
6167 in the dispatch table. In addition some code reorganization has been
6168 done to leave the implementation clear.
6169 (Expand_Call): When expanding an inherited implicit conversion,
6170 preserve the type of the inherited function after the intrinsic
6171 operation has been expanded.
6173 * exp_ch2.ads, exp_ch2.adb
6174 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
6175 of an entry formal appearing in an assignment statement does not assign
6177 (Expand_Current_Value): Instead of calling a routine to determine
6178 whether the prefix of an attribute reference should be optimized or
6179 not, prevent the optimization of such prefixes all together.
6181 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
6182 component whose prefix is known to be of an access type is an implicit
6183 dereference and does not assign to the prefix.
6185 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6186 Robert Dewar <dewar@adacore.com>
6188 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
6189 itype is visited, make an entry into table to link associated node and
6191 Add comments and correct harmless error in Build_NCT_Hash_Tables
6192 (Array_Aggr_Subtype): Associate each itype created for an index type to
6193 the corresponding range construct, and not to the aggregate itself. to
6194 maintain a one-to-one correspondence between itype and its associated
6195 node, to prevent errors when complex expression is copied.
6196 Fix mishandling of multiple levels of parens
6198 * sem_aggr.adb: Create a limited view of an incomplete type, to make
6199 treatment of limited views uniform for all visible declarations in a
6200 limited_withed package.
6201 (New_Copy_Tree): If hash table is being used and itype is visited,
6202 make an entry into table to link associated node and new itype.
6203 (Resolve_Record_Aggregate): Do not add an others box association for a
6204 discriminated record component that has only discriminants, when there
6205 is a box association for the component itself.
6207 * par-ch4.adb: Fix mishandling of multiple levels of parens
6209 2007-08-14 Robert Dewar <dewar@adacore.com>
6211 * comperr.adb: Fix problem with suppressing warning messages from gigi
6213 * erroutc.ads, erroutc.adb, errout.ads,
6214 errout.adb (Write_Eol): Remove trailing spaces before writing the line
6215 (Write_Eol_Keep_Blanks): New procedure to write a line, including
6216 possible trailing spaces.
6217 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
6218 Fix problem with suppressing warning messages from back end
6219 Improve handling of deleted warnings
6222 Fix problem with suppressing warning messages from back end
6223 Handle setting of Static_Dispatch_Tables flag.
6226 Fix problem with suppressing warning messages from back end
6228 * exp_intr.adb: Improve handling of deleted warnings
6230 2007-08-14 Robert Dewar <dewar@adacore.com>
6232 * debug.adb: Improve -gnatdI to cover all cases of serialization
6233 Add documentation of dZ, d.t
6235 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
6237 (Sprint_Node_Actual): Generate new output associated with implicit
6238 importation and implicit exportation of object declarations.
6240 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6241 Robert Dewar <dewar@adacore.com>
6242 Javier Miranda <miranda@adacore.com>
6243 Gary Dismukes <dismukes@adacore.com>
6245 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
6246 to make treatment of limited views uniform for all visible declarations
6247 in a limited_withed package.
6248 Improve warnings for in out parameters
6249 (Set_Related_Interaface/Related_Interface): Allow the use of this
6250 attribute with constants.
6251 (Write_Field26_Name): Handle attribute Related_Interface in constants.
6252 Warn on duplicate pragma Preelaborable_Initialialization
6254 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
6255 generation of a freezing node to ensure proper management of null
6256 excluding access types in the backend.
6257 (Create_Extra_Formals): Test base type of the formal when checking for
6258 the need to add an extra accessibility-level formal. Pass the entity E
6259 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
6260 originally being done in a couple of cases), to ensure that the
6261 Extra_Formals list gets set on the entity E when the first entity is
6263 (Conforming_Types): Add missing calls to Base_Type to the code that
6264 handles anonymous access types. This is required to handle the
6265 general case because Process_Formals builds internal subtype entities
6266 to handle null-excluding access types.
6267 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
6268 functions that need it, even when not marked Requires_Overriding.
6269 Improve warnings for in out parameters
6270 (Analyze_Function_Return): Warn for disallowed null return
6271 Warn on return from procedure with unset out parameter
6272 Ensure consistent use of # in error messages
6273 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
6274 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
6275 the implicit conversion of the expression done for anonymous access
6276 types. This is required to generate the code of the null excluding
6277 check (if required).
6279 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
6280 A formal parameter is never publicly referenceable outside of its body.
6281 (Check_References): For an unreferenced formal parameter in an accept
6282 statement, use the same warning circuitry as for subprogram formal
6284 (Warn_On_Unreferenced_Entity): New subprogram, taken from
6285 Output_Unreferenced_Messages, containing the part of that routine that
6286 is now reused for entry formals as described above.
6287 (Goto_Spec_Entity): New function
6288 (Check_References): Do not give IN OUT warning for dispatching operation
6289 Improve warnings for in out parameters
6290 (Test_Ref): Check that the entity is not undefinite before calling
6291 Scope_Within, in order to avoid infinite loops.
6292 Warn on return from procedure with unset out parameter
6293 Improved warnings for unused variables
6295 2007-08-14 Robert Dewar <dewar@adacore.com>
6296 Javier Miranda <miranda@adacore.com>
6297 Gary Dismukes <dismukes@adacore.com>
6299 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
6300 (Expand_N_Attribute_Reference): Further unify the handling of the
6301 three forms of access attributes, using common code now for all three
6302 cases. Add a test for the case of applying an access attribute to
6303 an explicit dereference when the context is an access-to-interface
6304 type. In that case we need to apply the conversion to the prefix
6305 of the explicit dereference rather than the prefix of the attribute.
6306 (Attribute_Version, UET_Address): Set entity as internal to ensure
6307 proper dg output of implicit importation.
6308 (Expand_Access_To_Type): Removed.
6309 (Expand_N_Attribute_Reference): Merge the code from the three cases
6310 of access attributes, since the processing is largely identical for
6311 these cases. The substantive fix here is to process the case of a
6312 type name prefix (current instance case) before handling the case
6313 of interface prefixes.
6315 2007-08-14 Thomas Quinot <quinot@adacore.com>
6316 Ed Schonberg <schonberg@adacore.com>
6317 Javier Miranda <miranda@adacore.com>
6318 Robert Dewar <dewar@adacore.com>
6320 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
6321 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
6322 type that is an anonymous access to controlled object, establish
6323 an associated finalization chain to avoid corrupting the global
6324 finalization list when a dynamically allocated object designated
6325 by such a component is deallocated.
6326 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
6327 functions that need it, even when not marked Requires_Overriding.
6328 (Initialize_Tag): Replace call to has_discriminants by call to
6329 Is_Variable_Size_Record in the circuitry that handles the
6330 initialization of secondary tags.
6331 (Is_Variable_Size_Record): New implementation.
6332 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
6333 Suppress_Initialization pragma for a derived type.
6334 (Is_Variable_Size_Record): New subprogram.
6335 (Build_Offset_To_Top_Functions): New implementation that simplifies the
6336 initial version of this routine and also fixes problems causing
6337 incomplete initialization of the table of interfaces.
6338 (Build_Init_Procedure): Improve the generation of code to initialize the
6339 the tag components of secondary dispatch tables.
6340 (Init_Secondary_Tags): New implementation that simplifies the previous
6341 version of this routine.
6342 (Make_DT): Add parameter to indicate when type has been frozen by an
6343 object declaration, for diagnostic purposes.
6344 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
6345 diagnose attemps to freeze a subprogram when some untagged type of its
6346 profile is a private type whose full view has not been analyzed yet.
6347 (Freeze_Array_Type): Generate init proc for packed array if either
6348 Initialize or Normalize_Scalars is set.
6349 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
6350 constructing the new profile, copy the null_exclusion indicator for each
6351 parameter, to ensure full conformance of the new body with the spec.
6353 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
6354 Create wrappers for constructor functions that need it, even when not
6355 marked Requires_Overriding.
6356 (Covers): Handle properly designated types of anonymous access types,
6357 whose non-limited views are themselves incomplete types.
6358 (Add_Entry): Use an entity to store the abstract operation which hides
6360 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
6361 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
6362 initialization aggregate.
6363 (Function_Interp_May_Be_Hidden): Rename to
6364 Function_Interp_Has_Abstract_Op.
6365 (Has_Compatible_Type): Remove machinery that skips interpretations if
6366 they are labeled as potentially hidden by an abstract operator.
6367 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
6368 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
6369 (Write_Overloads): Output the abstract operator if present.
6370 (Add_Entry): Before inserting a new entry into the interpretation table
6371 for a node, determine whether the entry will be disabled by an abstract
6373 (Binary_Op_Interp_May_Be_Hidden): New routine.
6374 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
6376 (Function_Interp_May_Be_Hidden): New routine.
6377 (Has_Compatible_Type): Do not consider interpretations hidden by
6378 abstract operators when trying to determine whether two types are
6380 (Has_Hidden_Interp): New routine.
6381 (Set_May_Be_Hidden_Interp): New routine.
6382 (Write_Overloads): Write the status of flag May_Be_Hidden.
6384 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6385 Javier Miranda <miranda@adacore.com>
6387 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
6388 types declared in the declarative part of a nested package body or in
6389 the proper body of a stub.
6390 (Set_All_DT_Position): Add missing check to avoid wrong assignation
6391 of the same dispatch table slot to renamed primitives.
6392 (Make_Select_Specific_Data_Table): Handle private types.
6393 (Tagged_Kind): Handle private types.
6394 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
6395 output of implicit importation and exportation.
6396 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
6397 first formal of the thunk is always associated with the controlling
6398 type. In addition perform the following code cleanup: remove formal
6399 Thunk_Alias which is no longer required, cleanup evaluation of the
6400 the controlling type, and update the documentation.
6401 Replace occurrence of Default_Prim_Op_Count by
6402 Max_Predef_Prims. Addition of compile-time check to verify
6403 that the value of Max_Predef_Prims is correct.
6404 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
6405 (Make_DT): Add parameter to indicate when type has been frozen by an
6406 object declaration, for diagnostic purposes.
6407 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
6408 construction of statically allocated dispatch tables.
6409 (Make_DT): In case of library-level tagged types export the declaration
6410 of the primary tag. Remove generation of tags (now done by Make_Tags).
6411 Additional modifications to handle non-static generation of dispatch
6412 tables. Take care of building tables for asynchronous interface types
6413 (Make_Tags): New subprogram that generates the entities associated with
6414 the primary and secondary tags of Typ and fills the contents of Access_
6415 Disp_Table. In case of library-level tagged types imports the forward
6416 declaration of the primary tag that will be declared later by Make_DT.
6417 (Expand_Interface_Conversion): In case of access types to interfaces
6418 replace an itype declaration by an explicit type declaration to avoid
6419 problems associated with the scope of such itype in transient blocks.
6421 2007-08-14 Robert Dewar <dewar@adacore.com>
6422 Ed Schonberg <schonberg@adacore.com>
6423 Javier Miranda <miranda@adacore.com>
6425 * exp_util.ads, exp_util.adb:
6426 This patch replaces a number of occurrences of explicit tests for N_Null
6427 with calls to Known_Null. This improves tracking of null values, since
6428 Known_Null also catches null constants, and variables currently known to
6429 be null, so we get better tracking.
6430 (Ensure_Defined): create an itype reference only in the scope of the
6432 (Side_Effect_Free): A selected component of an access type that
6433 denotes a component with a rep clause must be treated as not
6434 side-effect free, because if it is part of a linked structure its
6435 value may be affected by a renaming.
6436 (Expand_Subtype_From_Expr): For limited objects initialized with build
6437 in place function calls, do nothing; otherwise we prematurely introduce
6438 an N_Reference node in the expression initializing the object, which
6439 breaks the circuitry that detects and adds the additional arguments to
6440 the called function. Bug found working in the new patch for statically
6441 allocated dispatch tables.
6442 (Is_Library_Level_Tagged_Type): New subprogram.
6443 (Remove_Side_Effects): If the expression of an elementary type is an
6444 operator treat as a function call.
6445 (Make_Literal_Range): If the index type of the array is not integer, use
6446 attributes properly to compute the constraint on the resulting aggregate
6449 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
6450 class-wide type whose base type is an incomplete private type, leave
6451 class-wide type unfrozen so that freeze nodes can be generated
6452 properly at a later point.
6453 (Freeze_Entity, array case): Handle case of pragma Pack and component
6454 size attributre clause for same array.
6456 2007-08-14 Vincent Celier <celier@adacore.com>
6458 * prj.ads, prj.adb: Update Project Manager to new attribute names for
6460 Allow all valid declarations in configuration project files
6461 (Reset): Initialize all tables and hash tables in the project tree data
6462 Major update of the Project Manager and of the project aware tools,
6463 including gprmake, so that the same sources in the GNAT repository
6464 can be used by gprbuild.
6465 (Slash_Id): Change type to be Path_Name_Type
6466 (Slash): Return a Path_Name_Type instead of a File_Name_Type
6468 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
6470 Update Project Manager to new attribute names for ghprbuild
6471 Allow all valid declarations in configuration project files
6472 Major update of the Project Manager and of the project aware tools,
6473 including gprmake, so that the same sources in the GNAT repository
6474 can be used by gprbuild.
6477 Major update of the Project Manager and of the project aware tools,
6478 including gprmake, so that the same sources in the GNAT repository
6479 can be used by gprbuild.
6481 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
6482 insensitive flag for attributes with optional index.
6483 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
6484 array attribute, put the index in lower case.
6485 Update Project Manager to new attribute names for ghprbuild
6486 Allow all valid declarations in configuration project files
6487 Major update of the Project Manager and of the project aware tools,
6488 including gprmake, so that the same sources in the GNAT repository
6489 can be used by gprbuild.
6491 * prj-env.ads, prj-env.adb:
6492 Major update of the Project Manager and of the project aware tools,
6493 including gprmake, so that the same sources in the GNAT repository
6494 can be used by gprbuild.
6495 (Get_Reference): Change type of parameter Path to Path_Name_Type
6497 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
6498 removing '-' from the path to start with the first character of the
6500 Major update of the Project Manager and of the project aware tools,
6501 including gprmake, so that the same sources in the GNAT repository
6502 can be used by gprbuild.
6503 Major update of the Project Manager and of the project aware tools,
6504 including gprmake, so that the same sources in the GNAT repository
6505 can be used by gprbuild.
6507 * prj-nmsc.ads, prj-nmsc.adb:
6508 Update Project Manager to new attribute names for ghprbuild
6509 Allow all valid declarations in configuration project files
6510 (Search_Directories): Detect subunits that are specified with an
6511 attribute Body in package Naming. Do not replace a source/unit in the
6512 same project when the order of the source dirs are known. Detect
6513 duplicate sources/units in the same project when the order of the
6514 source dirs are not known.
6515 (Check_Ada_Name): Allow all identifiers that are not reserved words
6517 Major update of the Project Manager and of the project aware tools,
6518 including gprmake, so that the same sources in the GNAT repository
6519 can be used by gprbuild.
6520 (Look_For_Sources): If the list of sources is empty, set the object
6521 directory of non extending project to nil.
6522 Change type of path name variables to be Path_Name_Type
6523 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
6524 otherwise creating missing directories will fail.
6526 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
6527 prj-part.ads, prj-part.adb:
6528 Major update of the Project Manager and of the project aware tools,
6529 including gprmake, so that the same sources in the GNAT repository
6530 can be used by gprbuild.
6532 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
6533 insensitive flag for attributes with optional index.
6534 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
6535 array attribute, put the index in lower case.
6536 (Parse_Variable_Reference): Allow the current project name to be used in
6537 the prefix of an attribute reference.
6539 * prj-util.ads, prj-util.adb
6540 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
6541 defaulted to False. When True, always check against indexes in lower
6544 * snames.ads, snames.h, snames.adb:
6545 Update Project Manager to new attribute names for gprbuild
6546 Allow all valid declarations in configuration project files
6548 2007-08-14 Robert Dewar <dewar@adacore.com>
6549 Ed Schonberg <schonberg@adacore.com>
6551 * opt.ads: Warning for non-local exception propagation now off by
6553 New switch -gnatI to disable representation clauses
6554 Implement new pragma Implicit_Packing
6557 Warning for non-local exception propagation now off by default
6558 Add warning for unchecked conversion of pointers wi different
6560 New switch -gnatI to disable representation clauses
6562 * usage.adb: new switch -gnatyS
6564 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
6565 note that aggregates of anonymous array types are not flagged.
6566 -gnatwc now includes membership tests optimized away
6567 -gnatw.x warnings are now off by default
6568 Added conditional compilation Appendix
6569 Add documentation of -gnatI
6570 Add documentation for new -gnatyS style check
6571 Update documentation about SAL and auto-init on Windows.
6574 Add documentation for pragma Check_Name and 'Enabled attribute
6575 Document that Eliminate on dispatching operation is ignored
6576 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
6577 Document pragma Main
6578 Document pragma Implicit_Packing
6580 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
6581 different conventions
6582 New switch -gnatI to disable representation clauses
6584 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
6585 recognized, report the invalid characters including "-gnat" instead of
6586 just the first character in the switch.
6587 New switch -gnatI to disable representation clauses
6588 Set Warn_On_Object_Renames_Function true for -gnatg
6590 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
6591 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
6592 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
6593 to switch -aP (add directory to project search dir).
6595 * par-prag.adb: Implement new pragma Implicit_Packing
6597 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
6598 type as having a non-standard representation, to force expansion on
6599 conversion to related types.
6600 (Analyze_Pragma): Warn on misspelled pragma
6601 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
6602 Ensure consistent use of # in error messages
6603 Implement pragma Implicit_Packing
6605 2007-08-14 Olivier Hainque <hainque@adacore.com>
6606 Eric Botcazou <ebotcazou@adacore.com>
6608 * targtyps.c (get_target_maximum_default_alignment): New function.
6610 that the compiler might choose by default for a type or object.
6611 (get_target_default_allocator_alignment): New function. Alignment known
6612 to be honored by the target default allocator.
6613 (get_target_maximum_allowed_alignment): New function. Maximum alignment
6614 we might accept for any type or object on the target.
6615 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
6617 * gigi.h (get_target_maximum_default_alignment): Declare new function.
6618 (get_target_default_allocator_alignment): Likewise.
6619 (get_target_maximum_allowed_alignment): Likewise.
6622 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
6623 result of a function call, first try to use a stabilized reference for
6624 a constant renaming too.
6625 (validate_alignment): Use target_maximum_allowed_alignment instead of
6626 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
6627 (gnat_to_gnu_entity): Use common nodes directly.
6628 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
6629 alignment and size for the object.
6630 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
6631 and N_Procedure_Call_Statement.
6632 (takes_address): Rename to lvalue_required_p, add third parameter
6633 'aliased' and adjust recursive calls.
6634 <N_Indexed_Component>: Update 'aliased' from the array type.
6635 <N_Selected_Component>: New case.
6636 <N_Object_Renaming_Declaration>: New Likewise.
6637 (Identifier_to_gnu): Adjust for above changes.
6638 (maybe_stabilize_reference) <CONST_DECL>: New case.
6640 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
6641 between type variants.
6642 (build_simple_component_ref): Likewise.
6643 (build_call_alloc_dealloc): Use target_default_allocator_alignment
6644 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
6645 aligning type circuitry for allocations from the default storage pool.
6646 (build_allocator): Likewise.
6647 (build_simple_component_ref): Manually fold the reference for a
6648 constructor if the record type contains a template.
6650 * utils.c (value_zerop): Delete.
6651 (gnat_init_decl_processing): Emit debug info for common types.
6652 (rest_of_record_type_compilation): If a union contains a field
6653 with a non-constant qualifier, treat it as variable-sized.
6654 (finish_record_type): Give the stub TYPE_DECL a name.
6655 (rest_of_record_type_compilation): Likewise.
6656 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
6657 types are equivalent array types.
6658 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
6659 even if the type is not passed by reference.
6660 (static_ctors, static_dtors): Delete.
6661 (end_subprog_body): Do not record constructors and destructors.
6662 (build_global_cdtor): Delete.
6663 (gnat_write_global_declarations): Do not call build_global_cdtor.
6665 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
6666 -fRTS=rtp is specified.
6667 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
6670 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
6671 of the personality function with SJLJ exceptions.
6673 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
6674 the name of the personality function with SJLJ exceptions.
6676 2007-08-14 Robert Dewar <dewar@adacore.com>
6677 Ed Schonberg <schonberg@adacore.com>
6679 * par.ads, par.adb: Improve handling of extra right parens.
6680 (Par): Remove flag From_Limited_With_Clause.
6682 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
6683 Improve handling of extra right parens.
6685 2007-08-14 Robert Dewar <dewar@adacore.com>
6687 * par-tchk.adb (TF_Semicolon): Improve error recovery
6689 2007-08-14 Robert Dewar <dewar@adacore.com>
6690 Ed Schonberg <schonberg@adacore.com>
6692 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
6693 enumeration type, mark all literals as referenced.
6694 (Eval_Attribute, case 'Image): If the argument is an enumeration
6695 literal and names are available, constant-fold but mark nevertheless as
6697 Clean up function names.
6698 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
6700 (Requires_Simple_Name_Prefix): Removed.
6702 2007-08-14 Robert Dewar <dewar@adacore.com>
6703 Ed Schonberg <schonberg@adacore.com>
6705 * sem_ch11.adb: Improved warnings for unused variables
6707 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
6708 is a synchronized interface, the derived type is limited.
6709 (Analyze_Object_Declaration): Mark the potential coextensions in the
6710 definition and expression of an object declaration node.
6711 (Build_Derived_Type): For the completion of a private type declaration
6712 with a derived type declaration, chain the parent type's representation
6713 items to the last representation item of the derived type (not the
6714 first one) if they are not present already.
6715 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
6716 object declaration of forward references to tags.
6717 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
6718 subprogram types can appear as access discriminants of synchronized
6720 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
6721 given in prefixed form as a selected component.
6722 (Process_Discriminants): If not all discriminants have defaults, place
6723 error message on a default that is present.
6724 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
6725 extend a synchronized tagged type.
6726 Improved warnings for unused variables
6727 (Is_Visible_Component): Fix a visibility hole on a component inherited
6728 by a private extension when parent is itself declared as a private
6729 extension, and the derivation is in a child unit.
6730 (Find_Hidden_Interface): Move spec from the package body.
6732 2007-08-14 Robert Dewar <dewar@adacore.com>
6733 Ed Schonberg <schonberg@adacore.com>
6735 * sem_ch5.adb: Improve warnings on redundant assignments
6737 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
6739 (Is_Synchronized_Tagged_Type): New subprogram that returns true
6740 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
6741 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
6742 is set to False. Improves handling of Known_[Not_]Null.
6743 (Wrong_Type): Special case address arithmetic attempt
6744 (Collect_Abstract_Interfaces): Add new formal to allow collecting
6745 abstract interfaces just using the partial view of private types.
6746 (Has_Abstract_Interfaces): Add new formal to allow checking types
6747 covering interfaces using the partial view of private types.
6748 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
6749 component still needs to be defined in this case, but is never
6750 initialized as VMs are using other dispatching mechanisms.
6751 (Abstract_Interface_List): For a protected type, use base type to get
6753 Improve warnings on redundant assignments
6754 (Is_Variable): Handle properly an implicit dereference of a prefixed
6756 (Build_Actual_Subtype): If this is an actual subtype for an
6757 unconstrained formal parameter, use the sloc of the body for the new
6758 declaration, to prevent anomalises in the debugger.
6760 2007-08-14 Robert Dewar <dewar@adacore.com>
6762 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
6763 dispatching operation
6765 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6766 Gary Dismukes <dismukes@adacore.com>
6769 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
6770 expanded aggregate code before allocator, and ahead of declaration for
6771 temporary, to prevent access before elaboration when the allocator is
6772 an actual for an access parameter.
6773 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
6774 the TSD and the table of interfaces.
6775 (Convert_To_Assignments): Augment the test for delaying aggregate
6776 expansion for limited return statements to include the case of extended
6777 returns, to prevent creation of an unwanted transient scope.
6778 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
6779 (Expand_Array_Aggregate): Handle aggregates associated with
6780 statically allocated dispatch tables.
6781 (Expand_Record_Aggregate): Handle aggregates associated with
6782 statically allocated dispatch tables.
6783 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
6784 of anonymous access type.
6786 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6788 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
6789 is a variable that renames a slice, use the variable itself in the
6790 expannsion when the renamed expression itself may be modified between
6791 the declaration of the renaming and the array assignment.
6793 2007-08-14 Jerome Guitton <guitton@adacore.com>
6795 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
6796 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
6797 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
6798 New functions; dummy implementations.
6800 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
6801 functions, used to implement the multi-tasks mode routines on VxWorks.
6803 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
6805 binding to the VxWorks routines which have changed between VxWorks 5
6807 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
6808 which are not callable from a RTP.
6810 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
6811 implemented for the multi-tasks mode on VxWorks 5 and 6.
6813 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
6815 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
6818 2007-08-14 Vincent Celier <celier@adacore.com>
6820 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
6821 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
6822 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
6823 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
6824 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
6825 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
6826 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
6828 (Major_Id_Name): New function.
6829 mlib-tgt.ads/mlib.tgt.adb:
6830 (Library_Major_Minor_Id_Supported): New function, default returns True
6831 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
6832 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
6833 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
6834 Implementation of Library_Major_Minor_Id_Supported returns False
6836 (Clean_Library_Directory): If major/minor ids are supported, clean all
6838 Major update of the Project Manager and of the project aware tools,
6839 including gprmake, so that the same sources in the GNAT repository
6840 can be used by gprbuild.
6842 2007-08-14 Olivier Hainque <hainque@adacore.com>
6844 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
6845 (GCC_ZCX_Support): Switch to True.
6847 * s-intman-solaris.adb (Notify_Exception): Call
6848 Adjust_Context_For_Raise before raising, as expected for signal
6849 handlers in general.
6851 * s-intman-posix.adb (Notify_Exception): Remove declaration of
6852 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
6853 to other implementation bodies.
6855 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
6856 be visible by multiple implementation bodies.
6858 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
6859 only for conditions coming from hardware.
6860 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
6861 adjustments to signal context prior to exception raise from signal
6863 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
6865 Solaris section: (__gnat_adjust_context_for_raise): New function.
6866 Implementation of the machine context adjustments to perform prior to
6867 raise from a signal handler. Version for both sparc and x86.
6868 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
6869 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
6870 prior to raising as expected for any handler, before possible nested
6871 faults to make sure all the contexts in a chain have been adjusted by
6872 the time we propagate.
6874 2007-08-14 Pascal Obry <obry@adacore.com>
6876 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
6877 (SYSTEM_INFO): New record.
6878 (SetThreadIdealProcessor): New imported routine needed for supporting
6879 task_info pragma on Windows.
6881 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
6882 info can be applied to the current host.
6883 (Create_Task): Set the ideal processor if information is present.
6885 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
6886 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
6888 2007-08-14 Olivier Hainque <hainque@adacore.com>
6890 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
6891 stack size and initial stack pointer value for a given task.
6892 (Enter_Task): Get the stack attributes of the task we are entering and
6893 let the stack checking engine know about them.
6895 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
6896 Let the stack-checking engine know about the initial sp value and stack
6897 size associated with the current task.
6898 (Set_Stack_Info): If a stack base has been notified for the current
6899 task, honor it. Fallback to the previous less accurate method otherwise.
6901 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
6903 2007-08-14 Ed Schonberg <schonberg@adacore.com>
6905 * sem_ch10.adb: Create a limited view of an incomplete type, to make
6906 treatment of limited views uniform for all visible declarations in a
6907 limited_withed package.
6908 Set flag indicating that a subprogram body for a child unit has a
6910 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
6911 separate declaration, remove the unit name from visibility after
6912 compilation, so that environment is clean for subsequent compilations.
6913 (Install_Limited_Context_Clauses): Do not install a
6914 limited_private_with_clause unless the current unit is a body or a
6916 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
6917 in the same fashion.
6918 (Install_Limited_Withed_Unit): Do not install a limited with clause if
6919 it applies to the declaration of the current package body.
6920 (Remove_Private_With_Clauses): If there is a regular with_clause for
6921 the unit, delete Private_With_Clause from context, to prevent improper
6922 hiding when processing subsequent nested packages and instantiations.
6924 2007-08-14 Jose Ruiz <ruiz@adacore.com>
6926 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
6927 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
6928 representing absolute path names.
6929 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
6931 * cstreams.c (__gnat_full_name for VxWorks): Use
6932 __gnat_is_absolute_path to detect whether we need to add the current
6933 directory to normalize the path.
6935 2007-08-14 Javier Miranda <miranda@adacore.com>
6938 a-tags.adb (Displace): Associate a message with the raised CE
6940 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
6941 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
6942 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
6944 (Default_Prim_Op_Count): Removed.
6945 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
6946 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
6947 Remove pragma Inline_Always.
6949 * rtsfind.ads (Default_Prim_Op_Count): Removed
6950 (Max_Predef_Prims): New entity
6951 (RE_Expanded_Name): Removed
6952 (RE_HT_Link): Removed
6953 (RE_Iface_Tag): Remmoved
6954 (RE_Ifaces_Table): Removed
6955 (RE_Interfaces_Array): Removed
6956 (RE_Interface_Data_Element): Removed
6957 (RE_Nb_Ifaces): Removed
6958 (RE_RC_Offset): Removed
6959 (RE_Static_Offset_To_Top): Removed
6961 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
6963 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
6964 Prim_Op_Count by Max_Predef_Prims.
6966 2007-08-14 Thomas Quinot <quinot@adacore.com>
6967 Vincent Celier <celier@adacore.com>
6969 * binde.adb (Elab_All_Links): Remove unnecessary call to
6970 Generic_Separately_Compiled (if a unit satisfies this predicate, there
6971 won't be an associated Afile).
6972 (Elab_All_Links): Fail if a referenced unit cannot be found
6975 Fix comments in bindgen regarding consistency checks done in Bcheck:
6976 the checks are made across units within a partition, not across several
6978 Fix generation of C binder file for VxWorks.
6980 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
6981 Generic_May_Lack_ALI, more descriptive of the current use of the
6982 predicate, and update documentation.
6984 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
6985 reorganization and documentation update for the case of predefined
6986 library generics (for which we do not reference an Afile).
6988 2007-08-14 Robert Dewar <dewar@adacore.com>
6990 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
6991 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
6992 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
6993 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
6994 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
6995 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
6996 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
6997 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
6998 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
6999 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
7000 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
7001 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
7002 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
7003 g-altcon.adb: Minor reformatting
7005 ada-tree.h: Delete empty line.
7007 ali.ads: Minor reformatting
7008 Clarification of comments.
7009 Minor spelling correction
7011 * exp_dbug.adb: Add Warnings Off to suppress new warning
7013 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
7016 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
7019 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
7021 * a-textio.ads: Reorder the standard input/output/error declarations
7024 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
7026 * par-ch2.adb: Recognize RM specially in errout
7027 Change 'R'M to RM in all error messages
7029 * scng.adb: Recognize RM specially in errout
7031 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
7032 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
7034 * s-direio.adb: Add missing routine header box.
7036 * sem_attr.ads: Add ??? comments
7038 * sem_eval.adb: Recognize RM specially in errout
7039 Change 'R'M to RM in all error messages
7041 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
7043 * s-tasinf.ads: Fix minor comment typo.
7045 * a-cihama.adb: Minor comment addition
7047 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
7050 * s-tasinf-tru64.ads: Fix minor comment typo.
7052 * itypes.ads: Comment update.
7054 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
7057 * argv.c: Added protection against null gnat_argv and gnat_envp.
7059 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
7060 warning message when Tolerate_Consistency_Errors is True.
7062 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
7063 Any_Id, as this subprogram is only applicable to *type* entities (it
7064 sets RM_Size). Instead initialize just Esize and Alignment.
7066 2007-08-14 Bob Duff <duff@adacore.com>
7068 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
7069 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
7070 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
7071 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
7072 a-coorse.ads (Next): Applied pragma Inline.
7073 Make all Containers packages Remote_Types (unless they are already
7075 (Previous): applied pragma Inline
7076 (Elements_Type): is now a record instead of an array
7078 2007-08-14 Thomas Quinot <quinot@adacore.com>
7080 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
7082 (Set_Item): When the new item is an element of the currently allocated
7083 table passed by reference, save a copy on the stack if we're going
7084 to reallocate. Also, in Table.Set_Item, make sure we test the proper
7085 variable to determine whether to call Set_Last.
7087 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
7088 symbols-vms.adb, symbols-processing-vms-alpha.adb,
7089 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
7090 some occurrences of the pattern
7092 T.Table (T.Last) := Value;
7093 with a cleaner call to
7096 2007-08-14 Ed Schonberg <schonberg@adacore.com>
7097 Gary Dismukes <dismukes@adacore.com>
7098 Thomas Quinot <quinot@adacore.com>
7100 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
7101 derived type with interface progenitors use the analyzed formal as the
7102 parent of the actual, to create renamings for all the inherited
7103 operations in Derive_Subprograms.
7104 (Collect_Previous_Instances): new procedure within of
7105 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
7106 unit being loaded, to ensure that the generation of global symbols is
7107 consistent in different compilation modes.
7108 (Is_Tagged_Ancestor): New function testing the ancestor relation that
7109 takes progenitor types into account.
7110 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
7111 traversing over the primitives of the formal and actual types to locate
7112 any abstract subprograms of the actual type that correspond to a
7113 nonabstract subprogram of the formal type's ancestor type(s), and issue
7114 an error if such is found.
7115 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
7116 Instantiate_Package_Body, Instantiate_Subprogram_Body):
7117 Remove bogus guard around calls to Inherit_Context.
7118 (Reset_Entity): If the entity is the selector of a selected component
7119 that denotes a named number, propagate constant-folding to the generic
7120 template only if the named number is global to the generic unit.
7121 (Set_Instance_Env): Only reset the compilation switches when compiling
7122 a predefined or internal unit.
7124 2007-08-14 Ed Schonberg <schonberg@adacore.com>
7126 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
7127 parameter to determine whether operation applies to the prefix.
7128 (Complete_Object_Operation): If actual has an access type and
7129 controlling formal is not an in_parameter, reject the actual if it is
7130 an access_to_constant type.
7131 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
7132 type, the candidate operations are found in the scope of declaration of
7133 the type, because the type has no primitive subprograms.
7134 (Analyze_Selected_Component): If prefix is class-wide, and root type is
7135 a private extension, only examine visible components before trying to
7136 analyze as a prefixed call.
7137 Change Entity_List to Type_To_Use, for better readability.
7138 (Has_Fixed_Op): Use base type when checking whether the type of an
7139 operator has a user-defined multiplication/division
7140 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
7141 user-defined operators are available for fixed-point types.
7143 2007-08-14 Thomas Quinot <quinot@adacore.com>
7144 Ed Schonberg <schonberg@adacore.com>
7146 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
7147 formal At_Any_Place indicating, when True, that we want to test for
7148 availability of the stream attribute at any place (as opposed to the
7149 current visibility context only).
7150 (Missing_Read_Write_Attributes): A stream attribute is missing for the
7151 purpose of enforcing E.2.2(8) only if it is not available at any place.
7152 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
7153 when checking the legality of an extension aggregate in a preelaborable
7154 package. Treat the literal null as a valid default expression in a
7155 component declaration for a type with preelaborable initialization.
7156 A limited interface is a legal progenitor for the designated type of a
7157 remote access to class-wide type.
7159 2007-08-14 Thomas Quinot <quinot@adacore.com>
7160 Ed Schonberg <schonberg@adacore.com>
7162 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
7163 reference): Use correct entity as denoted entity for the selector of
7165 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
7166 setting the Referenced_As_LHS flag for entities that are implicitly
7168 (Find_Type): If the type is an internally generated incomplete type,
7169 mark the full view as referenced, to prevent spurious warnings.
7170 (Find_Selected_Component, Has_Components): Handle properly non-limited
7171 views that are themselves incomplete types.
7172 Handle interfaces visible through limited-with clauses.
7173 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
7174 subprogram generic actual for which we have generated a renaming.
7175 Warn when the renaming introduces a homonym of
7176 the renamed entity, and the renamed entity is directly visible.
7178 2007-08-14 Ed Schonberg <schonberg@adacore.com>
7179 Hristian Kirtchev <kirtchev@adacore.com>
7181 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
7182 appear in the subtree to the current allocator if it is not a static
7184 (Resolve_Allocator): Perform cleanup if resolution has determined that
7185 the allocator is not a coextension.
7186 (Resolve): Skip an interpretation hidden by an abstract operator only
7187 when the type of the interpretation matches that of the context.
7188 (Resolve): When looping through all possible interpretations of a node,
7189 do not consider those that are hidden by abstract operators.
7190 (Resolve_Actuals): When verifying that an access to class-wide object
7191 is an actual for a controlling formal, ignore anonymous access to
7192 subprograms whose return type is an access to class_wide type.
7193 (Resolve_Slice): If the prefix of the slice is a selected component
7194 whose type depends on discriminants, build its actual subtype before
7195 applying range checks on the bounds of the slice.
7196 (Valid_Conversion): In an instance or inlined body, compare root types,
7197 to prevent anomalies between private and public views.
7198 (Resolve): Improve error message for ambiguous fixed multiplication
7199 expressions that involve universal_fixed multiplying operations.
7201 2007-08-14 Javier Miranda <miranda@adacore.com>
7202 Hristian Kirtchev <kirtchev@adacore.com>
7204 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
7205 location to allow the correct generation of errors in case of
7206 restrictions applied to the expanded code.
7207 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
7208 function if the condition does not reference them.
7209 (Expand_Entry_Body_Declarations): Mark the index constant as having a
7212 2007-08-14 Thomas Quinot <quinot@adacore.com>
7213 Pablo Oliveira <oliveira@adacore.com>
7215 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
7216 typecode parameters for a union (in a variant record), remove
7217 extraneous layer of Any wrapping for member label.
7218 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
7219 elabration statements, register the package with the name server
7220 at the beginning, not at the end, of the elaboration statements so
7221 that they can create remote access to subprogram values that designate
7222 remote subprograms from the package.
7224 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
7226 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
7227 values to compute the number of seconds since the Unix Epoc in order to
7228 account for Daylight Savings Time. Perform special processing for dates
7229 that are earlier than the Unix Epoc to obtain a negative number.
7231 2007-08-14 Emmanuel Briot <briot@adacore.com>
7233 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
7236 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
7238 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
7239 binder-generated file is not in Ada.
7240 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
7241 recorded in the ALI file.
7242 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
7244 2007-08-14 Vincent Celier <celier@adacore.com>
7246 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
7247 (Output_Source): Do nothing if parameter is No_Sdep_Id
7249 * make.adb (Gnatmake): Do not rebuild an archive simply because a
7250 shared library it imports has a later time stamp.
7251 (Check): Resolve the symbolic links in the path name of the object
7253 Check that the ALI file is in the correct object directory
7254 Check if a file name does not correspond to the mapping of units
7256 (Display_Version): New procedure
7257 (Initialize): Process switches --version and --help
7258 Use type Path_Name_Type for path name
7260 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
7262 * impunit.adb: Re-organize System.Random_Numbers and
7263 GNAT.Random_Numbers and add to builds.
7265 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
7267 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
7269 * a-assert.ads, a-assert.adb: New files.
7271 2007-08-14 Gary Dismukes <dismukes@adacore.com>
7273 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
7274 if AAMP_On_Target is True, then the size of the type encompasses two
7275 addresses (a static link and a subprogram address), except in the case
7276 of library-level access types.
7278 2007-08-14 Vincent Celier <celier@adacore.com>
7280 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
7282 (Write_Eol_Keep_Blanks): New procedure to write a line, including
7283 possible trailing spaces.
7284 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
7286 2007-08-14 Javier Miranda <miranda@adacore.com>
7288 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
7289 null-excluding access types.
7291 2007-08-14 Javier Miranda <miranda@adacore.com>
7293 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
7294 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
7295 of private types add missing check on matching interfaces in the
7296 partial and full declarations.
7297 (Analyze_Protected_Type): Code cleanup.
7298 (Analyze_Task_Type): Code cleanup.
7300 2007-08-14 Javier Miranda <miranda@adacore.com>
7302 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
7303 generated interface thunk.
7305 2007-08-14 Ed Schonberg <schonberg@adacore.com>
7307 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
7308 obsolescent warning on application of 'Class to an incomplete type.
7310 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
7311 prevent obsolescent warning on application of 'Class to an incomplete
7314 2007-08-14 Pascal Obry <obry@adacore.com>
7316 * s-fileio.adb (Is_Open): Add check for usability of the underlying
7319 2007-08-14 Cyrille Comar <comar@adacore.com>
7321 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
7322 since it is potentially used in cases implying double finalization of
7325 2007-08-14 Jose Ruiz <ruiz@adacore.com>
7327 * s-tasini.adb (Get_Stack_Info): Move this function to
7328 System.Soft_Links.Tasking because it is common to the full and the
7329 restricted run times.
7330 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
7331 in SSL.Tasking.Init_Tasking_Soft_Links.
7333 * s-solita.adb (Get_Stack_Info): Function moved from
7334 System.Tasking.Initialization because it is common to the full and the
7335 restricted run times.
7336 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
7338 2007-08-14 Arnaud Charlet <charlet@adacore.com>
7340 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
7341 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
7342 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
7345 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
7348 2007-08-14 Gary Dismukes <dismukes@adacore.com>
7350 * s-veboop.adb (SU): New named number initialized to
7351 System.Storage_Unit.
7352 (True_Val): The initialization expression is revised to use SU (=
7353 Storage_Unit) rather than assuming 8 for the component size of an
7354 unpacked Boolean array.
7356 2007-08-14 Tristan Gingold <gingold@adacore.com>
7358 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
7360 * tb-ivms.c: New file.
7362 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
7364 2007-08-14 Geert Bosch <bosch@adacore.com>
7366 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
7367 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
7368 Add required linker pragmas for automatically linking with the gnalasup
7369 linear algebra support library, and the systems math library.
7370 Rename cdot to cdotu and zdot to zdotu.
7371 Update header comment to describe purpose of package.
7373 2007-08-14 Thomas Quinot <quinot@adacore.com>
7375 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
7376 an explicitly specified Associated_Final_Chain, use that list.
7377 (Expand_N_Package_Body): Build dispatch tables of library level tagged
7379 (Expand_N_Package_Declaration): Build dispatch tables of library level
7380 tagged types. Minor code cleanup.
7382 2007-08-14 Vincent Celier <celier@adacore.com>
7384 * gnatchop.adb (Terminate_Program): Remove exception and use
7385 Types.Terminate_Program instead.
7387 * osint.ads, osint.adb (Current_Exit_Status): New global variable
7388 (Find_Program_Name): Added protection against empty name.
7389 (OS_Exit_Through_Exception): New procedure
7391 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
7392 (OS_Exit_Default): New procedure that contains the previous
7393 implementation of procedure OS_Exit.
7394 (Final_Value): Remove obsolete Interix stuff.
7396 2007-08-14 Thomas Quinot <quinot@adacore.com>
7398 * g-socket.ads: Reorganize example code so that it also works on
7401 2007-08-14 Tristan Gingold <gingold@adacore.com>
7403 * g-trasym.ads: AIX now supports symbolic backtraces.
7405 2007-08-14 Ed Schonberg <schonberg@adacore.com>
7407 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
7408 units being loaded to detect circularities. A circularity may be
7409 present even if the current chain of pending units to load starts from
7410 a limited_with_clause.
7412 * lib-load.ads: Change profile of Load_Unit to use a with_clause
7413 rather than a boolean flag, in order to detect circularities in
7416 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
7417 than propagating the From_Limited_With flag, in order to handle
7418 properly circularities involving with_clauses.
7420 2007-08-14 Nicolas Setton <setton@adacore.com>
7422 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
7425 2007-08-14 Arnaud Charlet <charlet@adacore.com>
7427 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
7428 to build for libgnala.
7429 libgnat: Add rules to build libgnala.a
7430 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
7431 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
7432 Add s-osinte-vxworks-kernel.adb to the target pairs of the
7433 kernel run-time lib for VxWorks 6, which would provide a different
7434 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
7435 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
7436 running ZCX by default.
7437 Add g-sttsne-locking to LynxOS version.
7438 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
7439 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
7441 * system-darwin-x86.ads: New file.
7443 * Make-lang.in: Delete files before copying onto them, so if they are
7444 read-only, the copy won't fail.
7447 2007-08-14 Pascal Obry <obry@adacore.com>
7449 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
7452 2007-08-14 Vincent Celier <celier@adacore.com>
7454 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
7455 (Gcc): Initialize Gcc_Name at the first call
7457 2007-08-14 Ed Schonberg <schonberg@adacore.com>
7459 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
7460 with_clauses of the enclosing unit when analyzing the package
7461 specification of a nested instance.
7463 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
7465 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
7466 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
7467 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
7468 layout of N_Allocator.
7470 2007-08-14 Thomas Quinot <quinot@adacore.com>
7472 * rtsfind.adb (Check_RPC): Add PCS version check.
7474 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
7475 (Gnat_Free_Software): New function.
7477 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
7478 the PCS_Version value from s-parint, used to check that it is consistent
7479 with what exp_dist expects.
7481 * s-parint.ads (PCS_Version): New entity for checking consistency
7482 between exp_dist and PCS.
7484 * gen-soccon.c: (SO_REUSEPORT): New constant.
7486 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
7488 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
7489 variable Sub_Second to Duration in order to accomodate a larger range
7490 of arithmetic operations.
7492 2007-08-14 Bob Duff <duff@adacore.com>
7494 * g-sttsne-locking.ads: Move comments from spec to body.
7495 * g-sttsne-locking.adb: Move comments from spec to body.
7496 * g-sttsne-vxworks.ads: Removed.
7497 * g-sttsne-vxworks.adb: Removed.
7499 2007-08-11 Ian Lance Taylor <iant@google.com>
7501 * misc.c (gnat_get_alias_set): Change return type to
7504 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7506 * decl.c, utils2.c: Fix whitespace in last change.
7508 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7510 * decl.c (compare_field_bitpos): Constify.
7511 * utils2.c (compare_elmt_bitpos): Likewise.
7513 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
7515 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
7516 anonymous access type.
7517 (pthread_sigmask): Now take an access sigset_t.
7519 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
7521 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
7523 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
7525 PR tree-optimization/25737
7526 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
7528 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
7530 * trans.c (Attribute_to_gnu): When subtracting an
7531 offset from a pointer, use POINTER_PLUS_EXPR with
7532 NEGATE_EXPR instead of MINUS_EXPR.
7533 (gnat_to_gnu): Likewise.
7534 * utils.c (convert): When converting between
7535 thin pointers, use POINTER_PLUS_EXPR and sizetype
7537 * utils2.c (known_alignment): POINTER_PLUS_EXPR
7538 have the same semantics as PLUS_EXPR for alignment.
7539 (build_binary_op): Add support for the semantics of
7540 POINTER_PLUS_EXPR's operands.
7541 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
7543 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
7545 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
7546 of get_signed_or_unsigned_type.
7547 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
7549 2007-06-11 Bob Duff <duff@adacore.com>
7550 Thomas Quinot <quinot@adacore.com>
7552 * g-stsifd-sockets.adb (Create): Work around strange behavior of
7553 'bind' on windows that causes 'connect' to fail intermittently, by
7554 retrying the 'bind'.
7555 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
7557 2007-06-10 Duncan Sands <baldrick@free.fr>
7559 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
7560 than to void, for the fields when making a new fat pointer type.
7561 (gnat_substitute_in_type): Now substitute_in_type.
7562 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
7563 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
7564 * utils.c (update_pointer_to): Update fat pointers by updating the
7565 dummy node pointers used for the fields.
7567 2007-06-06 Thomas Quinot <quinot@adacore.com>
7568 Bob Duff <duff@adacore.com>
7570 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
7571 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
7572 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
7573 constant Thread_Blocking_IO, always True by default, set False
7574 on a per-runtime basis.
7575 (Need_Netdb_Buffer): New constant.
7577 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
7578 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
7581 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
7582 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
7583 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
7584 child package Task_Safe_NetDB
7585 (Host_Error_Messages): Add stub body.
7586 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
7588 * g-soccon-mingw.ads: Add Windows-specific constants.
7589 (Need_Netdb_Buffer): New constant.
7590 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
7591 wrapper and import inet_addr(3) from the standard sockets library
7593 (In_Addr): Add alignment clause.
7594 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
7596 2007-06-06 Robert Dewar <dewar@adacore.com>
7598 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7599 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
7600 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
7601 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
7602 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
7603 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
7604 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
7605 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
7606 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
7607 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
7608 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
7609 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
7610 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
7611 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
7612 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
7613 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
7614 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
7615 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
7616 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
7617 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
7618 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
7619 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
7620 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
7621 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
7622 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
7623 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
7624 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
7625 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
7626 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
7627 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
7628 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
7629 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
7630 Unchecked_* by Ada.Unchecked_*
7632 2007-06-06 Robert Dewar <dewar@adacore.com>
7634 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
7635 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
7636 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
7637 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
7638 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
7639 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
7641 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
7642 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
7643 s-tasloc.adb, s-tasloc.ads: New files.
7645 2007-06-06 Bob Duff <duff@adacore.com>
7648 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
7649 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
7650 (Send_Signal, Close): Raise Invalid_Process if the process id is
7652 (Pattern_Matcher_Access): Is now a general access type to be able to
7655 2007-06-06 Thomas Quinot <quinot@adacore.com>
7656 Arnaud Charlet <charlet@adacore.com>
7658 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
7659 (SIGEMT is now used instead of SIGTERM on AIX).
7661 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
7662 (Time_Slice_Supported): Set to True.
7663 Use SIGEMT instead of SIGTERM as SIGADAABORT.
7665 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
7667 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
7668 (Time, Time)): Use To_Relative_Time rather than manual calculation to
7669 express the bounds of Duration as Time. Raise Time_Error when the
7670 result is greater or equal to the higher bound of Duration (on the
7672 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
7674 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
7676 ("-" (Time, Time)): Reorder code.
7677 (All_Leap_Seconds): Removed.
7678 (Arithmetic_Operations.Add): Remove sign related kludge.
7679 (Arithmetic_Operations.Difference): Control the leaps seconds processing
7680 with flag Leap_Support.
7681 (Arithmetic_Operations.Subtract): Remove sign related kludge.
7682 (Check_Within_Time_Bounds): New procedure.
7683 (Clock): Control the leap seconds processing with flag Leap_Support.
7684 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
7685 (Formatting_Operations.Split): Control the leap seconds processing with
7687 (Formatting_Operations.Time_Of): Control the leaps seconds processing
7688 with flag Leap_Support. Adjust the year, month and day (if applicable)
7689 when the value of day seconds designates a new day.
7690 (Split): Use parameter associations for better readability. Integrate
7692 (Time_Of): Use parameter associations for better readability. Integrate
7695 * a-calfor.adb (Split): Use parameter associations for better
7696 readability. Integrate flag Is_Ada_05.
7697 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
7698 better readability. Integrate flag Is_Ada_05.
7700 2007-06-06 Arnaud Charlet <charlet@adacore.com>
7702 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
7703 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
7704 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
7705 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
7706 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
7707 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
7708 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
7709 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
7710 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
7711 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
7712 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
7713 time when entering this routine to detect a backward clock setting
7714 (manual setting or DST adjustment), to avoid waiting for a longer delay
7716 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
7717 Remove handling of deferred priority change, and replace by setting the
7718 task priority directly, as required by AI-188.
7720 (Max_Task_Image_Length): New constant.
7721 Replace Warnings (Off) by Unreferenced pragma, cleaner.
7722 (Dynamic_Priority_Support): Removed, no longer needed.
7723 (Poll_Base_Priority_Change): Ditto.
7724 (Set_Ceiling): Add this procedure to change the ceiling priority
7725 associated to a lock. This is a dummy implementation because dynamic
7726 priority ceilings are not supported by the underlying system.
7728 * a-dynpri.adb (Set_Priority): Take into account case where Target is
7729 accepting a RV with its priority boosted.
7730 Remove handling of deferred priority change, and replace by setting the
7731 task priority directly, as required by AI-188.
7733 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
7735 Remove handling of deferred priority change, and replace by setting the
7736 task priority directly, as required by AI-188.
7737 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
7740 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
7741 (Poll_Base_Priority_Change): Removed.
7742 Code clean up: use SSL.Current_Target_Exception.
7744 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
7745 to run as this is a potentially dispatching point.
7746 (Call_Synchronous): Use Local_Defer_Abort.
7747 (Callable): Relax assertion.
7748 (Selective_Wait): Relax assertion in case abort is not allowed.
7749 Remove handling of deferred priority change, and replace by setting the
7750 task priority directly, as required by AI-188.
7752 * s-tasuti.adb (Make_Passive): Adjust assertions.
7753 Remove handling of deferred priority change, and replace by setting the
7754 task priority directly, as required by AI-188.
7756 2007-06-06 Arnaud Charlet <charlet@adacore.com>
7758 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7759 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7760 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
7761 system-vxworks-mips.ads, system-vxworks-alpha.ads,
7762 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
7763 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
7764 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
7765 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
7766 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
7767 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
7768 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
7769 This patch changes the largest non-binary modulus from 2**31-1 to
7771 (Compiler_System_Version): Removed, no longer used.
7772 Clean up system files by removing flags only used on a single target.
7773 Also remove obsolete flags, only used during bootstrap from system.ads
7774 (Address): Add a pragma Preelaborable_Initialization.
7776 * system-aix.ads: Ditto.
7777 (GCC_ZCX_Support): Set to true.
7778 Update priority range on AIX and map Ada priorities to target
7779 priorities appropriately for different scheduling policies.
7781 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
7783 2007-06-06 Vincent Celier <celier@adacore.com>
7785 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
7786 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
7788 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
7789 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
7790 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
7791 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
7792 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
7793 MLib.Tgt, containing the default versions of the exported subprograms.
7794 For each platform, create a specific version of the body of new child
7795 package MLib.Tgt.Specific that contains only the body of subprograms
7796 that are different from the default.
7797 (Archive_Builder_Append_Options): New function.
7799 2007-06-06 Matthew Gingell <gingell@adacore.com>
7801 * s-osinte-aix.adb: Map Ada priorities to target priorities
7802 appropriately for different scheduling policies.
7804 2007-06-06 Arnaud Charlet <charlet@adacore.com>
7806 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
7808 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
7809 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
7811 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
7813 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
7814 Noop on VMS, added for interface commonality.
7816 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
7817 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7818 Olivier Hainque <hainque@adacore.com>
7820 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
7821 renamed expression of a full renaming at toplevel.
7822 (gnat_to_gnu_entity, case object): If not defining, do not look inside
7823 the values the constant is initialized to if it is an N_Allocator.
7824 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
7825 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
7826 (make_aligning_type): Accept an extra ROOM argument for storage to be
7827 made available before the aligned field, and an extra BASE_ALIGN
7828 argument for callers to pass the alignment guaranteed to be honored for
7829 the whole aligning object. Avoid call to finish_record_type, which only
7830 interferes with the sizes we want to set.
7831 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
7832 make_aligning_type for super-aligned objects on stack.
7833 (components_to_record): Pass the adjusted size of the type when creating
7834 fields in the qualified union for the variant part.
7835 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
7836 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
7838 (maybe_pad_type): Set TYPE_USER_ALIGN.
7839 (make_aligning_type): Likewise.
7840 ALIGN argument is unsigned int.
7841 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
7842 (gnat_to_gnu_param): Likewise, for parameters.
7843 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
7844 if it is constant and stems from a function call.
7845 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
7846 of the record is specified. Adjust accordingly.
7847 (adjust_packed): New static function.
7848 (gnat_to_gnu_field): Use it to adjust the packedness setting.
7849 (components_to_record): Likewise.
7850 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
7851 side-effects if the object is deemed constant.
7852 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
7853 type instead of merely finalizing it. Tidy.
7854 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
7855 <E_Access_Type>: Likewise.
7856 (defer_debug_incomplete_list): Rename to defer_finalize_list.
7857 (defer_debug_level): Delete.
7858 (gnat_to_gnu_entity) <debug_deferred>: Likewise
7859 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
7861 <E_Record_Type>: Do not explicitly defer finalizing the type.
7862 Adjust for write_record_type_debug_info renaming.
7863 <E_Subprogram_Type>: Likewise.
7864 Finalize deferred types right after deferred incomplete types are
7866 (rest_of_type_decl_compilation): New global function.
7867 (components_to_record): Rename defer_debug parameter to do_not_finalize.
7868 (components_to_record): Propagate the packedness to the fields of the
7869 qualified union type if there is a variant part.
7870 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
7871 instead of inline code to adjust the XUT field offsets.
7872 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
7873 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
7874 and write the debug info if the type derives from a discriminated one.
7875 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
7876 <E_Array_Subtype>: Likewise.
7877 <E_String_Literal_Subtype>: Likewise.
7878 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
7879 an alignment clause.
7880 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
7881 before giving warning.
7882 (prepend_one_attribute_to): New function, helper to prepend an attribute
7883 to an attribute list.
7884 (gnat_to_gnu_entity) <E_Procedure>: Use it.
7885 (prepend_attributes): Likewise.
7886 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
7887 <E_Array_Type>: Declare the padding type for the element type, if any.
7888 <E_Array_Subtype>: Likewise.
7889 (defer_limited_with): New variable.
7890 (Gigi_Equivalent_Type): New function.
7891 (gnat_to_gnu_entity): Use it at start and use result throughout.
7892 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
7893 Gigi_Equivalent_Type, support Limited_With, allow two levels of
7894 indirection, precompute if unconstrained array to simplify logic, and
7895 use defer_limited_with to defer elaboration of some types from limited
7897 (finalize_from_with_types): New function.
7899 2007-06-06 Gary Dismukes <dismukes@adacore.com>
7900 Eric Botcazou <ebotcazou@adacore.com>
7901 Tristan Gingold <gingold@adacore.com>
7902 Olivier Hainque <hainque@adacore.com>
7904 * trans.c (Identifier_to_gnu): Change test for deferred constant by
7905 adding guard that the entity is an E_Constant before testing presence
7906 of Full_view (and remove unnecessary test that entity is not a type).
7907 For a CONST_DECL used by reference, manually retrieve
7908 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
7909 (struct language_function): Move from utils.c to here.
7910 (struct parm_attr): New structure.
7911 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
7912 (f_parm_attr_cache): New macro.
7913 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
7914 expressions for the 'First, 'Last and 'Length attributes of the
7915 unconstrained array IN parameters.
7916 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
7917 Allocate the information structure for the function earlier, as well
7918 as the language-specific part.
7919 If the parameter attributes cache has been populated, evaluate the
7920 cached expressions on entry.
7921 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
7922 N_Procedure_Call_Statement and N_Indexed_Component.
7923 (Pragma_to_gnu): Translate inspection_point to an asm statement
7924 containaing a comment and a reference to the object (either its address
7925 for BLKmode or its value).
7926 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
7927 to go to DECL_INITIAL. Together with the size constraint relaxation
7928 in create_var_decl, enlarges the set of situations in which an
7929 identifier may be used as an initializer without implying elaboration
7931 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
7932 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
7934 (maybe_stabilize_reference): Remove lvalues_only parameter.
7935 (gnat_stabilize_reference): Adjust for above change.
7936 (gnat_to_gnu): Do not set location information on the result
7937 if it is a reference.
7938 (add_cleanup): Add gnat_node parameter and set the location of the
7940 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
7941 (Exception_Handler_to_gnu_zcx): Likewise.
7942 (gigi): Remove the cgraph node if the elaboration procedure is empty.
7943 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
7944 the former right after the latter.
7945 (start_stmt_group): Make global.
7946 (end_stmt_group): Likewise.
7947 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
7949 (gnu_program_error_label_stack): Likewise.
7950 (gigi): Initialize them.
7951 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
7952 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
7954 (push_exception_label_stack): New function.
7955 (takes_address): New function.
7957 * utils.c (struct language_function): Move to trans.c from here.
7958 (unchecked_convert): Do not wrap up integer constants in
7960 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
7961 the latter for aggregate types, unexpected by later passes, and relax an
7962 arbitrary size constraint on the former.
7963 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
7964 to compare the sizes.
7965 (convert_vms_descriptor): When converting to a fat pointer type, be
7966 prepared for a S descriptor at runtime in spite of a SB specification.
7967 (shift_unc_components_for_thin_pointers): New function.
7968 (write_record_type_debug_info): For variable-sized fields, cap the
7969 alignment of the pointer to the computed alignment.
7970 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
7971 If REP_LEVEL is 2, do not compute the sizes.
7972 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
7973 (build_unc_object_type): Likewise.
7974 (declare_debug_type): New function.
7976 * ada-tree.def: USE_STMT: removed (not emitted anymore).
7978 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
7979 no statement is expandable anymore.
7980 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
7981 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
7982 when the user requested it explicitely.
7983 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
7985 (get_alias_set): Return alias set 0 for a type if
7986 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
7988 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
7989 (DECL_FUNCTION_STUB): New accessor macro.
7990 (SET_DECL_FUNCTION_STUB): New setter macro.
7992 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
7994 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
7997 2007-06-06 Jose Ruiz <ruiz@adacore.com>
7999 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
8000 Rename to Abort_Task_Interrupt to be able to keep the same interface
8001 as the rest of the targets.
8003 * s-osinte-vxworks.ads s-osinte-vxworks.adb
8004 (To_VxWorks_Priority): Remove explicit "in" mode indicator
8006 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
8009 2007-06-06 Robert Dewar <dewar@adacore.com>
8011 * a-chahan.ads: Remove obsolescent pragmas
8013 * a-chlat1.ads: Minor reformatting
8015 2007-06-06 Robert Dewar <dewar@adacore.com>
8017 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
8020 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
8023 * errout.ads (Finalize): Changed interface
8024 (Output_Messages): New procedure
8025 (Compilation_Errors): New Interface
8027 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
8028 Finalize/Output_Messages interface for Errout
8029 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
8032 2007-06-06 Thomas Quinot <quinot@adacore.com>
8033 Olivier Hainque <hainque@adacore.com>
8034 Robert Dewar <dewar@adacore.com>
8036 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
8038 (Raise_Current_Excep): Call Debug_Raise_Exception just before
8039 propagation starts, to let debuggers know about the event in a reliable
8041 (Local_Raise): Moved to System.Exceptions
8042 More convenient to have this as a separate unit
8044 * s-except.adb, s-except.ads: New files.
8046 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
8047 Debug_Unhandled_Exception in System.Exceptions where it belongs
8048 together with a couple of other debug helpers.
8049 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
8050 the former Unhandled_Exception.
8052 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
8053 (Warn_No_Exception_Propagation): New procedure
8054 (Warn_If_No_Propagation): Rewritten for new warning generation
8055 (Expand_Exception_Handlers): New warning generation
8056 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
8057 (Add_Exception_Label): Use Special_Exception_Package_Used for test
8058 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
8059 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
8060 even if restriction is set (makes life easier in Check_Returns)
8061 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
8062 checking exception identities.
8063 (Expand_Local_Exception_Handlers): Do not optimize when all others case
8064 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
8065 block for handler (used by Check_Returns)
8066 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
8067 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
8068 remove all exception handlers when optimizing local raise statements.
8069 (Find_Local_Handler): Use Get_Renamed_Entity
8070 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
8071 marked analyzed after expanding exception handlers, do not generate
8072 redundant cleanup actions, because they have been constructed already.
8074 2007-06-06 Thomas Quinot <quinot@adacore.com>
8076 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
8077 presence of this categorization pragma is mandated by the language.
8078 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
8081 2007-06-06 Vincent Celier <celier@adacore.com>
8082 Robert Dewar <dewar@adacore.com>
8084 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
8085 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
8086 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
8087 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
8088 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
8089 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
8090 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
8091 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
8092 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
8093 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
8094 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
8096 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
8097 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
8098 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
8099 Use variables of types File_Name_Type and Unit_Name_Type in error
8101 (Get_Name): Add parameter Ignore_Special, and set it reading file name
8102 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
8104 Define flags Flag217-Flag230 with associated subprograms
8105 (Flag_Word5): New record type.
8106 (Flag_Word5_Ptr): New access type.
8107 (To_Flag_Word5): New unchecked conversion.
8108 (To_Flag_Word5_Ptr): Likewise.
8109 (Flag216): New function.
8110 (Set_Flag216): New procedure.
8112 2007-06-06 Arnaud Charlet <charlet@adacore.com>
8114 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
8117 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
8119 2007-06-06 Javier Miranda <miranda@adacore.com>
8121 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
8123 (Object_Specific_Data_Array): This is now internal to the package.
8124 (Object_Specific_Data): This is now internal to the package.
8125 (Select_Specific_Data_Element): This is now internal to the package.
8126 (Select_Specific_Data_Array): This is now internal to the package.
8127 (Select_Specific_Data): This is now internal to the package.
8128 (Offset_To_Top_Function_Ptr): This is now public.
8129 (To_Offset_To_Top_Function_Ptr): Removed.
8130 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
8131 local to subprogram Offset_To_Top.
8132 (Predefined_DT): Removed.
8133 (Typeinfo_Ptr): Removed.
8134 (OSD): This function is now internal to this package.
8135 (SSD): This function is now internal to this package.
8136 (DT): New function that displaces the pointer to the table of primitives
8137 to get access to the enclosing wrapper record.
8138 (IW_Membership): Code cleanup.
8139 (Offset_To_Top): Code cleanup.
8140 (Predefined_DT): Removed.
8141 (Register_Interface_Tag): Removed.
8142 (Set_Interface_Table): Removed.
8143 (Set_Offset_Index): Removed.
8144 (Set_Offset_To_Top): Code cleanup.
8146 (Set_Signature): Removed.
8148 (Set_Tagged_Kind): Removed.
8149 (Typeinfo_Ptr): Removed.
8151 (Displace): Add missing check on null actual.
8153 * exp_disp.ads, exp_disp.adb
8154 (Select_Expansion_Utilities): Removed.
8155 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
8156 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
8157 the interface requires a new parameter.
8158 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
8159 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
8160 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
8161 Done to remove package Select_Expansion_Utilities.
8162 (Make_DT): New implementation for statically allocated dispatch tables.
8163 (Make_Secondary_DT): Moved to the scope of Make_DT.
8164 (Register_Primitive): Code cleanup plus incoporate the use of the new
8165 function DT_Address_Attribute.
8166 (Expand_Interface_Thunk): The profile of this subprogram has been
8167 changed to return the Thunk_Id and the corresponding code.
8168 (Fill_DT_Entry): Removed. Its functionality is now provided by
8169 subprogram Register_Primitive.
8170 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
8171 subprogram Register_Primitive.
8172 (Register_Primitive): New subprogram that incorporates the previous
8173 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
8174 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
8175 was only required to call Make_DT_Access_Action, which is now removed.
8176 (Ada_Actions): Removed
8177 (Action_Is_Proc): Removed
8178 (Action_Nb_Arg): Removed
8179 Replace all the calls to Make_DT_Access_Action by direct calls to
8180 Make_Procedure_Call_Statement or Make_Function_Call.
8181 (Set_DTC_Entity_Value): New subprogram.
8182 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
8183 (Expand_Interface_Thunk): Add missing support for primitives that are
8184 functions with a controlling result (case in which there is no need
8185 to generate the thunk).
8187 * exp_atag.ads, exp_atag.adb
8188 (Build_DT): New subprogram that displaces the pointer to reference the
8189 base of the wrapper record.
8190 (Build_Typeinfo_Offset): Removed.
8191 (RTE_Tag_Node): Removed.
8192 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
8193 (Build_Get_RC_Offset): Removed.
8194 (Build_Inherit_Predefined_Prims): Removed.
8195 (Build_Inherit_TSD: Removed.
8196 (Build_New_TSD): Removed.
8197 (Build_Set_External_Tag): Removed.
8198 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
8199 (Build_Set_Prim_Op_Address): Add documentation.
8200 (Build_Set_TSD): Removed.
8202 * rtsfind.ads, rtsfind.adb
8203 (Load_Fail): If load fails and we are not in configurable run-time
8204 mode, then raise Unrecoverable_Error.
8205 (Text_IO_Kludge): Generate an error message if a run-time library is
8206 not available in a given run-time (ie. zfp run-time).
8207 (RTE_Record_Component): Add code to check that the component we search
8208 for is not found in two records in the given run-time package.
8209 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
8210 (RE_DT_Predef_Prims_Offset): New entity
8211 (RE_Static_Offset_To_Top): New entity
8212 (RE_HT_Link): New entity.
8213 (System_Address_Image): Addition of this run-time package.
8214 (RE_Address_Image): New entity.
8215 (RE_Abstract_Interface): Removed.
8216 (RE_Default_Prim_Op_Count): Removed.
8217 (RE_DT_Entry_Size): Removed.
8218 (RE_DT_Min_Prologue_Size): Removed.
8219 (RE_DT_Prologue_Size): Removed.
8220 (RE_Ifaces_Table_Ptr): Removed.
8221 (RE_Interface_Data_Ptr): Removed.
8222 (RE_Type_Specific_Data): Removed.
8223 (RE_Primary_DT): Removed.
8224 (RE_Register_Interface_Tag): Removed.
8225 (RE_Set_Offset_Index): Removed.
8226 (RE_Set_OSD): Removed.
8227 (RE_Set_SSD): Removed.
8228 (RE_Set_Signature): Removed.
8229 (RE_Set_Tagged_Kind): Removed.
8230 (RE_Address_Array): New entity.
8231 (RE_DT): New entity.
8232 (RE_Iface_Tag): New entity.
8233 (RE_Interfaces_Table): New entity.
8234 (RE_No_Dispatch_Table): New entity.
8235 (RE_NDT_Prims_Ptr): New entity.
8236 (RE_NDT_TSD): New entity.
8237 (RE_Num_Prims): New entity.
8238 (RE_Offset_To_Top_Function_Ptr): New entity.
8239 (RE_OSD_Table): New entity.
8240 (RE_OSD_Num_Prims): New entity.
8241 (RE_Predef_Prims): New entity
8242 (RE_Predef_Prims_Table_Ptr): New entity.
8243 (RE_Primary_DT): New entity.
8244 (RE_Signature): New entity.
8245 (RE_SSD): New entity.
8246 (RE_TSD): New entity.
8247 (RE_Type_Specific_Data): New entity.
8248 (RE_Tag_Kind): New entity.
8250 2007-06-06 Thomas Quinot <quinot@adacore.com>
8252 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
8253 C imported variable.
8254 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
8257 2007-06-06 Robert Dewar <dewar@adacore.com>
8259 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
8262 2007-06-06 Vincent Celier <celier@adacore.com>
8264 * a-tifiio.adb (Put, internal): For negative numbers, check that there
8265 is room for at least one digit and the minus sign.
8266 (Put.Put_Character): Never put a character outside of the range of
8269 2007-06-06 Olivier Hainque <hainque@adacore.com>
8270 Eric Botcazou <ebotcazou@adacore.com>
8272 * utils2.c (build_allocator): Provide the extra arguments to
8273 make_aligning_type for super-aligned objects allocated from the default
8274 pool. Leave enough room for a pointer before the aligning field, and
8275 store the system's allocator return value there.
8276 (build_call_alloc_dealloc): When releasing a super-aligned object,
8277 retrieve the system's allocator return value from where build_allocator
8278 has stored it, just ahead of the adjusted address we are passed.
8279 (build_call_raise): Handle properly the generation of line numbers when
8280 the node is marked No_Location.
8281 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
8282 by using DECL_UID on ties.
8283 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
8285 (build_call_raise): Handle converting exception into goto; support new
8287 (build_component_ref): Add new arg to build_call_raise.
8289 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
8291 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
8292 "." in the case of nnn.xxx when nnn terminates with an underscore.
8293 Parse the remaining "#" or ":" in the case of nnn#.xxx#
8295 2007-06-06 Robert Dewar <dewar@adacore.com>
8297 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
8299 2007-06-06 Arnaud Charlet <charlet@adacore.com>
8300 Vincent Celier <celier@adacore.com>
8301 Robert Dewar <dewar@adacore.com>
8303 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
8305 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
8306 ((destructor)) for adafinal, even when switch -a is used.
8307 Do not issue pragma Linker_Destructor for adafinal when switch -a is
8309 (Gen_Object_Files_Options): Add formatting of Linker Options, when
8310 Output_Linker_Option_List is set. Suppress this formatting when
8311 Zero_Formatting is set.
8312 Add case for CLI_Target.
8313 (System_Restrictions_Used): New flag, used to avoid generating with of
8314 System_Restrictions and initialization of the data unless there is
8315 some use of System.Restrictions in the partition.
8316 (Check_System_Restrictions_Used): New procedure
8318 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
8319 since we only with this unit in the binder file if it is used elsewhere
8322 2007-06-06 Vincent Celier <celier@adacore.com>
8324 * bindusg.adb: Add line for @<response file>
8325 Add lines for new switches -R and -Z
8327 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
8328 hierarchy in the list of files of the closure when -R is used
8329 (Gnatbind): Accept arguments starting with '@' to indicate response
8330 files and take the arguments from the response files.
8331 If List_Closure is set, display the referenced files
8333 2007-06-06 Javier Miranda <miranda@adacore.com>
8334 Robert Dewar <dewar@adacore.com>
8335 Ed Schonberg <schonberg@adacore.com>
8337 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
8338 which the address-clause is applied to in-mode actuals (allowed by
8340 (Apply_Discriminant_Check): Do not generate a check if the type is
8341 constrained by a current instance.
8342 (Activate_Division_Check): New procedure
8343 (Activate_Overflow_Check): New procedure
8344 (Activate_Range_Check): New procedure
8345 Call these new Activate procedures instead of setting flags directly
8346 (Apply_Array_Size_Check): Removed, no longer needed.
8347 Code clean up: remove obsolete code related to GCC 2.
8348 (Get_E_Length): Protect against bomb in case scope is standard
8349 (Selected_Range_Checks): If the node to be checked is a conversion to
8350 an unconstrained array type, and the expression is a slice, use the
8351 bounds of the slice to construct the required constraint checks.
8352 Improve NOT NULL error messages
8353 (Apply_Constraint_Check): If the context is a null-excluding access
8354 type, diagnose properly the literal null.
8356 2007-06-06 Pascal Obry <obry@adacore.com>
8358 * clean.adb (Clean_Archive): Use untouched casing for the archive name
8359 and the corresponding .deps file.
8360 (Clean_Interface_Copy_Directory): Use untouched casing for the library
8361 src directory. Minor code-clean-up. Use untouched casing for files
8362 read into the library src dir.
8363 (Clean_Library_Directory): Idem.
8364 (Parse_Cmd_Line): Accept new switch -aP
8366 2007-06-06 Javier Miranda <miranda@adacore.com>
8367 Ed Schonberg <schonberg@adacore.com>
8368 Robert Dewar <dewar@adacore.com>
8369 Eric Botcazou <ebotcazou@adacore.com>
8370 Arnaud Charlet <charlet@adacore.com>
8372 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
8373 applicable to types that have the With_Type flag set. Returns the
8374 non-limited view of the type, if available, otherwise the type itself.
8375 For class-wide types, there is no direct link in the tree, so we have
8376 to retrieve the class-wide type of the non-limited view of the Etype.
8377 New attributes Static_Initialization and Static_Elaboration_Desired.
8378 Remove the pragma Thread_Body, and the associated flag
8379 Is_Thread_Body in entities, and all related code.
8380 (Suppress_Value_Tracking_On_Call): New flag
8381 E_Exception has Esize and Alignment fields
8382 (Universal_Aliasing): New function.
8383 (Set_Universal_Aliasing): New procedure.
8384 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
8385 (Check_Nested_Access): New procedure.
8386 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
8387 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
8388 (Related_Interface): New attribute. Present in dispatch table pointer
8389 components of records. Set to point to the entity of the corresponding
8391 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
8392 (Original_Access_Type): Remove, not needed.
8393 (Root_Type): Handle properly subtypes of class-wide-types.
8396 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
8397 class-wide types visible through limited-with clauses.
8398 (Try_Primitive_Operation): When examining all primitive operations of a
8399 tagged type, do not consider subprograms labeled as hidden unless they
8400 belong to a private generic type with a tagged parent.
8401 (Try_Object_Operation): Extensive rewriting, to handle properly various
8402 overloading cases, when several ancestors may have class-wide operations
8403 that are possible candidates, and when the overloaded functions return
8404 array types and have defaulted parameters so that the call may be
8405 interpreted as an indexing.
8406 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
8407 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
8408 successive actuals before analyzing the call itself.
8409 (Try_Primitive_Operation): A primitive operation is compatible with the
8410 prefix if the prefix has a synchronized type and the type of the formal
8411 is its corresponding record, as can be the case when the primitive
8412 operation is declared outside of the body of the type.
8413 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
8414 perform homonym traversal, looking for class-wide operation matches
8415 (formerly done in statements of Try_Class_Wide_Operation). Matches on
8416 access parameters are now restricted to anonymous access types.
8417 (Mark_Allocator): An allocator with a discriminant association parent is
8419 (Try_One_Prefix_Interpretation): If the type of the object is
8420 incomplete, as can be happen when it is a limited view obtained through
8421 a limited_with_clause, the selected component is not part of a prefixed
8423 (Complete_Object_Operation): Diagnose properly an object that is not
8424 aliased when the corresponding controlling formal is an access
8426 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
8427 ambiguous calls in prefixed notation, where two primitives differ only
8428 in that the controlling argument of one is an access parameter.
8430 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
8431 whether a function that returns an unconstrained type can be inlined.
8432 (Process_Formals): Diagnose properly the illegal use of an incomplete
8433 type in the profile of an access_to_subprogram declaration.
8434 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
8435 operations are attached to the corresponding record.
8436 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
8437 When processing a primitive of a concurrent type which implements an
8438 interface change the type of all controlling formals to that of the
8439 corresponding record type.
8440 (Check_Synchronized_Overriding): Relax the conditional logic when trying
8441 to determine the tagged type to which a primitive belongs.
8442 (Check_Conventions): Capture condition to ignore a primitive operation
8443 (which is shared between the loop in Check_Conventions and the one in
8444 Check_Convention) in a new local function Skip_Check.
8445 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
8446 confusion with Check_Conventions' own Prim_Op local variable.
8447 (Create_Extra_Formals): Test for a tagged result type rather than a
8448 controlling result when determining whether to add a BIP_Alloc_Form
8449 formal and a BIP_Final_List formal to the function.
8450 (Check_Conformance); For parameters that are anonymous access types,
8451 subtype conformance requires that the not null and the constant
8452 indicators must match
8453 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
8454 to retrieve the appropriate type when processing a concurrent type
8455 declared within a generic. Minor comment reformatting. Change invocation
8456 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
8458 (Analyze_Subprogram_Body): If the return type of a function is an
8459 anonymous access to the limited view of a class-wide type, and the
8460 non-limited view of the type is available, update the type of the
8461 function so that code can be generated.
8462 (Process_Formals): In case of access-subtype itype whose designated
8463 type is also an itype (situation that happens now with access to
8464 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
8465 attribute to avoid backend problems.
8466 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
8467 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
8468 anonymous types' designated types are same before testing
8469 Subtypes_Statically_Match.
8470 (Create_Extra_Formals): Test for a named access parameter that is a
8471 controlling formal as an additional condition for adding an
8472 accessibility level formal. This can occur in the subp type created for
8473 dispatching calls in Expand_Dispatching_Call, and allows calling
8474 Create_Extra_Formals from that procedure rather than special-casing the
8475 extra formals there.
8476 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
8477 when the function has a controlling result.
8478 (Check_Returns): Add much more knowledge of the optimization of local
8479 raise statements to gotos, to retain proper warnings in this case.
8480 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
8481 nodes when looking for last statement.
8483 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
8484 class-wide types visible through limited with clauses.
8485 (Add_One_Interp): If the operands are anonymous access types, the
8486 predefined operator on universal_access is immediately visibles
8487 (Find_Unique_Type): Handle anonymous access to subprogram types just as
8488 other anonymous access types.
8489 (Disambiguate): Take into account CIL convention.
8490 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
8492 2007-06-06 Robert Dewar <dewar@adacore.com>
8494 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
8495 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
8496 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
8497 Fix lower bound of tables.
8500 * nlists.adb: Ditto.
8501 (Prev_Node, Next_Node): Change index type to Int so that it properly
8502 covers the range First_Node_Id - 1 up.
8504 2007-06-06 Javier Miranda <miranda@adacore.com>
8505 Ed Schonberg <schonberg@adacore.com>
8506 Bob Duff <duff@adacore.com>
8507 Hristian Kirtchev <kirtchev@adacore.com>
8509 * exp_aggr.ads, exp_aggr.adb:
8510 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
8511 in extension aggregates.
8512 (Flatten): Other conditions being met, an aggregate is static if the
8513 low bound given by component associations is different from the low
8514 bound of the base index type.
8515 (Packed_Array_Aggregate_Handled): If the component type is itself a
8516 packed array or record, the front-end must expand into assignments.
8517 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
8518 Init_Pr, instead of Ancestor_Is_Expression.
8519 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
8520 coextension chain root, either generate a list controller or use the
8521 already existing one.
8522 (Static_Array_Aggregate): New procedure to construct a positional
8523 aggregate that can be handled by the backend, when all bounds and
8524 components are compile-time known constants.
8525 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
8526 types covering interface types into assignments.
8527 (Replace_Type): move to Build_Record_Aggr_Code.
8528 (Expand_Record_Aggr_Code): if the target of the aggregate is an
8529 interface type, convert to the definite type of the aggregate itself,
8530 so that needed components are visible.
8531 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
8532 components and the context is an extended return statement do not
8533 create a transient block for it, to prevent premature finalization
8534 before the return is executed.
8535 (Gen_Assign): Do not generate a call to deep adjust routine if the
8536 component type is itself an array of controlled (sub)-components
8537 initialized with an inner aggregate.
8538 (Component_Check): New name for Static_Check. This name is now more
8539 appropriate, and documentation is added which was missing.
8540 (Component_Check): Add test for bit aligned component value
8541 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
8542 Tagged_Comps, name is more appropriate given added function below.
8543 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
8545 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
8546 Javier Miranda <miranda@adacore.com>
8547 Robert Dewar <dewar@adacore.com>
8549 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
8550 Terminated: Add unchecked type conversion from System.Address to
8551 System.Tasking.Task_Id when calling the predefined primitive
8553 Disable new Ada 05 accessibility check for JVM.NET targets, which
8554 cannot be implemented in a practical way.
8555 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
8556 the sources always references the tag of the actual object. Therefore,
8557 if 'Tag is applied in the sources to class-wide interface objects we
8558 generate code that displaces "this" to reference the base of the object.
8559 (Expand_N_Attribute_Reference, case Size): Return specified size if
8561 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
8562 has code that displaces the pointer of the object to manage interface
8563 types. However this code must not be executed when the prefix is a
8564 subprogram. This bug caused the wrong expansion of the internally
8565 generated assignment that fills the dispatch table when the primitive
8566 is a function returning a class-wide interface type.
8567 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
8568 Set_Attribute_Name for Name_Unaligned_Valid.
8570 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8571 Gary Dismukes <dismukes@adacore.com>
8573 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
8574 If the initialization is the equivalent aggregate of the initialization
8575 procedure of the type, do not remove it.
8576 (Expand_N_Attribute_Definition_Clause): Exclude access variables
8577 initialized to null from having their expression reset to empty and
8578 note this exception in the comment.
8580 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
8581 Robert Dewar <dewar@adacore.com>
8582 Ed Schonberg <schonberg@adacore.com>
8583 Gary Dismukes <dismukes@adacore.com>
8585 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
8586 Add "with" and "use" clauses for Sem_Attr.
8587 (Expand_Current_Value): Do not replace occurences of attribute
8588 references where the prefix must be a simple name.
8590 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
8591 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
8592 Attribute_Requires_Simple_Name_Prefix.
8593 (Name_Modifies_Prefix): Body of new function.
8594 (Requires_Simple_Name_Prefix): Body of new function.
8595 (Resolve_Attribute, case Access): Improve error message for case of
8596 mismatched conventions.
8597 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
8599 (Analyze_Attribute, case 'Access): If the type of the prefix is a
8600 constrained subtype for a nominal unconstrained type, use its base type
8601 to check for conformance with the context.
8602 (Resolve_Attribute): Remove test of the access type being associated
8603 with a return statement from condition for performing accessibility
8604 checks on access attributes, since this case is now captured by
8605 Is_Local_Anonymous_Access.
8606 (Analyze_Access_Attribute): Set Address_Taken on entity
8607 (Analyze_Attribute, case Address): Set Address_Taken on entity
8608 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
8609 validating an access attribute whose prefix is a current instance.
8610 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
8611 applied to dispatching operations, if freezing is required then we set
8612 the attribute Has_Delayed_Freeze in the prefix's entity.
8613 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
8614 current scope if access of local subprogram taken
8615 (Analyze_Access_Attribute): Check legality of self-reference even if the
8616 expression comes from source, as when a single component association in
8617 an aggregate has a box association.
8618 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
8619 the prefix if it is a protected operation and the attribute is
8620 Unrestricted_Access.
8621 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
8622 reference to the base type of the context, to force a constraint check
8623 when the context is an access subtype with an explicit constraint.
8624 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
8625 node is rewritten as an interface conversion. leave unanalyzed after
8626 resolution, to ensure that type checking against the context will take
8629 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8630 Javier Miranda <miranda@adacore.com>
8631 Robert Dewar <dewar@adacore.com>
8633 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
8634 wrapper when the full view of the controlling type of an inherited
8635 function that dispatches on result implements interfaces.
8636 (Expand_N_Object_Declaration): In cases where the type of the
8637 declaration is anonymous access, create finalization list for it.
8638 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
8639 if the object has no explicit initialization, to match description of
8640 functionality of pragam Persistent_BSS.
8641 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
8642 new function to build static aggregates, to replace initialization call
8643 when static initialization is desired.
8644 (Freeze_Type): Generate a list controller for an access type whenever
8645 its designated type has controlled anonymous access discriminants.
8646 (Build_Equivalent_Aggregate): New procedure to compute a static
8647 aggregate to be used as default initialization for composite types,
8648 instead of a generating a call to the initialization procedure for the
8650 (Build_Initialization_Call): When available, replace a call to the
8651 initialization procedure with a copy of the equivalent static aggregate
8653 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
8654 declarations for objects of a class-wide interface type, rather than
8655 just identifiers, to prevent visibility problems.
8656 (Expand_N_Object_Declaration): When expanding the declaration for an
8657 object of a class-wide interface type, preserve the homonym chain of
8658 the original entity before exchanging it with that of the generated
8659 renaming declaration.
8660 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
8661 active, because there is no way to handle the exception.
8662 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
8663 to do a minimum decoration of the Access_Disp_Table list.
8664 (Expand_Record_Controller): Avoid the addition of the controller between
8665 the component containing the tag of a secondary dispatch table and its
8666 adjacent component that stores the offset to the base of the object.
8667 This latter component is only generated when the parent type has
8668 discriminants ---documented in Add_Interface_Tag_Components).
8669 (Apply_Array_Size_Check): Removed, no longer needed.
8670 (Expand_N_Full_Type_Declaration): If the type has anonymous access
8671 components, create a Master_Entity for it only if it contains tasks.
8672 (Build_Init_Procedure): Suppress the tag assignment compiling under
8674 (Freeze_Record_Type): Remove code associated with creation of dispatch
8676 (Init_Secondary_Tags): Update type of actuals when generating calls to
8677 Ada.Tags.Set_Offset_To_Top
8678 (Stream_Operation_OK): Disable use of streams compiling under no
8680 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
8681 if Has_Init_Expression set.
8682 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
8683 Register_Primitive, which provides the same functionality.
8684 (Requires_Init_Proc): Return false in case of interface types.
8685 (Add_Secondary_Tables): Use the new attribute Related_Interface to
8687 (Predefined_Primitive_Freeze): Do not assume that an internal entity
8688 is always associated with a predefined primitive because the internal
8689 entities associated with interface types are not predefined primitives.
8690 Therefore, the call to Is_Internal is replaced by a call to the
8691 function Is_Predefined_Dispatching_Operation.
8692 (Make_Eq_If): When generating the list of comparisons for the
8693 components of a given variant, omit the controller component that is
8694 present if the variant has controlled components.
8696 2007-06-06 Javier Miranda <miranda@adacore.com>
8697 Hristian Kirtchev <kirtchev@adacore.com>
8698 Bob Duff <duff@adacore.com>
8700 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
8701 handle the creation of finalization lists and calls for nested
8702 coextensions when the root of the chains is part of a return statement.
8703 (Inside_A_Return_Statement): New function inside Complete_Coextension_
8705 (Expand_Record_Equality): Skip components that are interface types.
8706 (Displace_Allocator_Pointer): Add missing support for interface subtypes
8707 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
8708 with Rewrite_Coextension. Change the condition for detecting coextension
8710 (Is_Local_Access_Discriminant): Removed.
8711 (Rewrite_Coextension): New routine which rewrites a static coextension
8712 as a temporary and uses its unrestricted access in the construction of
8714 (Complete_Coextension_Finalization): New routine. Generate finalization
8715 attachment calls to all delayed coextensions.
8716 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
8717 the allocator is not a coextension itself and has delayed coextensions.
8718 If the current allocator is controlled, but also a coextension, delay
8719 the generation of the finalization attachment call.
8720 Rename local variable "Node" to "Nod" in order to avoid confusion with
8722 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
8723 limited types that are not inherently limited. Such an allocator is
8724 illegal, but is generated by the expander for a return statement, to
8725 copy the result onto the secondary stack. This is the only case where a
8726 limited object can be copied. Generate code to displace the pointer
8727 to the object if the qualified expression is a class-wide interface
8728 object. Such displacement was missing and hence the copy of the object
8730 (Apply_Accessibility_Check): Handle allocated objects initialized in
8732 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
8733 and Expand_Allocator_Expression. Allocating class-wide interface objects
8734 this routine displaces the pointer to the allocated object to reference
8735 the component referencing the corresponding secondary dispatch table.
8736 Expand_Allocator_Expression): Add missing support to allocate class-wide
8737 interface objects initialized with a qualified expression.
8738 (Get_Allocator_Final_List): Test for an anonymous access type that is a
8739 function result type, and use the finalization list associated with the
8740 function scope in that case (such an anonymous type should not be
8741 treated like an access parameter's type).
8743 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8744 Gary Dismukes <dismukes@adacore.com>
8745 Javier Miranda <miranda@adacore.com>
8747 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
8748 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
8749 required exception handler.
8750 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
8751 properly the case of a function whose return type is a limited
8752 class-wide interface type. Modify the code of the accessibility
8753 check to handle class-wide interface objects. In this case we need to
8754 displace "this" to reference the primary dispatch table to get access
8755 to the TSD of the object (to evaluate its accessibility level).
8756 (Expand_N_Extended_Return_Statement): Test for a tagged result type
8757 rather than a controlling result as one of the conditions for
8758 generating tests of the implicit BIP_Alloc_Form formal. The
8759 initialization assignment is also handled according to whether the
8760 result is tagged instead of controlling.
8761 In the case where the init assignment is inserted in the "then" part of
8762 the allocation conditional, rewrite the target to be a dereference of
8763 the implicit BIP_Object_Access formal.
8764 If the returned value is unconstrained and created on the secondary
8765 stack, mark the enclosing block and function so that the secondary
8766 stack is not reclaimed on return.
8767 Treat returns from functions with controlling results similarly to
8768 returns from functions with unconstrained result subtypes.
8769 If the object returned is unconstrained, and an allocator must be
8770 created for it, analyze the allocator once the block for the extended
8771 return is installed, to ensure that finalizable components
8772 of the expression use the proper finalization list. Guard the call to
8773 Move_Final_List with a check that there is something to finalize.
8774 (Make_Tag_Ctrl_Assignment): Use "old" handling
8775 of controlled type assignment for virtual machines, since new code uses
8776 unsupported features (such as direct access to bytes in memory).
8778 2007-06-06 Gary Dismukes <dismukes@adacore.com>
8779 Ed Schonberg <schonberg@adacore.com>
8781 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
8782 accessibility actual, check for the case of an aliased object that has
8783 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
8784 we fall into processing for the attribute rather than the name of the
8786 (Expand_Inline_Call): If an actual is a literal, and the corresponding
8787 formal has its address taken in the body, create a temporary to capture
8788 value. If the return type is a limited interface, do not treat the
8789 return value as Controlled.
8790 (Is_In_Place_Function): If the return type is a limited interface,
8791 treat as returning in place. The actual returned object may not always
8792 be limited, but the caller has to assume that it is returned in place.
8793 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
8794 context of an allocator, use the correct finalization chain (that is,
8795 the chain belonging to the access type, rather than the chain belonging
8796 to the current scope).
8797 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
8798 result type rather than a controlling result as a precondition for
8799 adding an allocation form actual to a build-in-place call.
8800 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
8801 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
8802 primitive in the dispatch tables. This work is now done by Make_DT when
8804 (Register_Predefined_DT_Entry): Removed.
8805 (Add_Return): If end label is not present, use sloc of last statement
8806 for generated return statement in procedure, for better gdb behavior
8808 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
8809 object address nodes to ensure proper processing by routines like
8811 (Expand_Call): Fix generation of validity check for parameter
8812 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
8813 the allocation form parameter if the result subtype is constrained,
8814 except when the function has a controlling result.
8815 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
8816 rather than Is_Controlled and Has_Controlled_Component, since we want to
8817 include class-wide result types in this treatment. Also test for a
8818 controlling result, since that also requires passing a finalization
8820 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
8821 even when the result subtype is constrained, to handle calls involving
8822 controlling results.
8823 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
8824 is now called even when the result subtype is constrained, to handle
8825 calls involving controlling results.
8826 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
8827 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
8828 now performs the test).
8829 (Make_Build_In_Place_Call_In_Object_Declaration):
8830 Add_Alloc_Form_Actual_* is now called even when the result subtype is
8831 constrained, to handle calls involving controlling results.
8832 (Add_Return): Accomodate rewritten pattern from local raise to goto
8833 transformation, so that we still recognize an transfer statement
8834 and do the right thing here in that case.
8835 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
8836 and end of subprogram code.
8837 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
8838 support for primitives that are functions (without formals) with a
8840 (Inherited_From_Formal): If the actual subtype has not generic parent
8841 type, it is not an actual for a formal derived type, and there is no
8842 operation to inherit from the formal.
8844 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8845 Thomas Quinot <quinot@adacore.com>
8847 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
8848 inserted cleanup code appropriately for GDB use.
8849 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
8850 exception handler for Deep_Adjust or Deep_Finalize.
8851 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
8852 Raise_From_Controlled_Operation is available, use a call to that
8853 subprogram instead of a plain "raise Program_Error" node to raise
8854 Program_Error if an exception is propagated from an Adjust or Finalize
8856 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
8857 appears in the optional statement list of a triggering alternative, the
8858 scope actions can be inserted directly there, and not in the list that
8859 includes the asynchronous select itself.
8861 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8862 Robert Dewar <dewar@adacore.com>
8863 Hristian Kirtchev <kirtchev@adacore.com>
8865 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
8866 generated exception handler appropriately when debugging generated code.
8867 Deal properly with No_Exception_Propagation restriction mode.
8868 (Expand_N_Abort_Statement): Add an unchecked type conversion from
8869 System.Address to System.Tasking.Task_Id when processing the result of
8870 the predefined primitive _disp_get_task_id.
8871 (Expand_N_Asynchronous_Select): Clarify comment.
8872 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
8873 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
8874 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
8875 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
8876 privals and for generated call to Complete_Entry_Body, for better gdb
8878 (Copy_Result_Type): Utility to construct a parameter and result profile
8879 for protected functions whose return type is an anonymous access to
8881 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
8883 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
8884 point when the local-raise-to-goto transformation has taken place.
8886 2007-06-06 Javier Miranda <miranda@adacore.com>
8887 Nicolas Setton <setton@adacore.com>
8889 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
8890 functionality when the backend is generating code.
8891 Otherwise any serious error
8892 reported by the backend calling the frontend routine Error_Msg
8893 changes the Compilation_Mode to Check_Semantics, disables the
8894 functionality of this routine and causes the generation of
8895 spureous additional errors.
8897 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
8898 debugging information now generated by the compiler for fat-pointer
8900 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
8902 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
8904 2007-06-06 Thomas Quinot <quinot@adacore.com>
8906 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
8907 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
8908 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
8909 For a remote call to a function with a classwide return type, apply an
8910 E.4(18) check to the returned value.
8911 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
8912 stream attributes of the designated type of an RACW, as they are not
8913 dispatching primitive operations.
8915 2007-06-06 Geert Bosch <bosch@adacore.com>
8917 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
8919 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
8921 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
8922 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
8924 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
8926 2007-06-06 Javier Miranda <miranda@adacore.com>
8928 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
8929 attribute compiling package Ada.Tags under No_Run_Time_Mode.
8931 2007-06-06 Javier Miranda <miranda@adacore.com>
8933 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
8934 deallocation of class-wide interface objects.
8935 (Expand_Dispatching_Constructor_Call): Take into account that if the
8936 result of the dispatching constructor is an interface type, the
8937 function returns a class-wide interface type; otherwise the returned
8938 object would be actual. The frontend previously accepted returning
8939 interface types because Expand_Interface_Actuals silently performed
8940 the management of the returned type "as if" it were a class-wide
8942 (Expand_Dispatching_Constructor_Call): Replace call to
8943 Make_DT_Access_Action by direct call to Make_Function_Call.
8945 2007-06-06 Robert Dewar <dewar@adacore.com>
8946 Ed Schonberg <schonberg@adacore.com>
8948 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
8949 compute masking constant, since we now set Esize properly to the
8951 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
8952 to match the alignment.
8953 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
8954 packed arrays of 8 bits or less.
8956 * freeze.adb (Freeze_Entity): When freezing the formals of a
8957 subprogram, freeze the designated type of a parameter of an access type
8958 only if it is an access parameter.
8959 Increase size of C convention enumeration object
8960 (Freeze_Entity, array type case): Make sure Esize value is properly
8961 adjusted for the alignment if it is known.
8962 (Freeze_Entity, array type case): When checking bit packed arrays for
8963 the size being incorrect, check RM_Size, not Esize.
8964 (Freeze_Record_Type): Check for bad discriminated record convention
8965 (In_Exp_Body): Return true if the body is generated for a subprogram
8966 renaming, either an attribute renaming or a renaming as body.
8967 (Check_Itype): If the designated type of an anonymous access component
8968 is a non-protected subprogram type, indicate that it is frozen, to
8969 prevent out-of-scope freeze node at some subsequent call.
8970 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
8971 only if the subprogram is neither imported nor exported, as well as the
8972 NCA descriptor class if the subprogram is exported.
8974 2007-06-06 Ed Schonberg <schonberg@adacore.com>
8975 Arnaud Charlet <charlet@adacore.com>
8976 Robert Dewar <dewar@adacore.com>
8977 Gary Dismukes <dismukes@adacore.com>
8979 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
8980 default initialization on an imported object, when there is no
8981 initialization call generated for it.
8982 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
8985 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
8986 Static_Elaboration_Desired.
8987 Remove pragma Thread_Body.
8988 Implement a new pragma No_Body
8989 Removes the Explicit_Overriding pragma
8990 Remove Optional_Overriding pragma
8991 (Prag): Deal with Universal_Aliasing.
8992 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
8993 Pragma_CIL_Constructor): New names.
8995 * sem_cat.adb (Validate_Object_Declaration): An initialization that
8996 uses the equivalent aggregate of a type must be treated as an implicit
8998 (Get_Categorization): Check a unit for pragma Preelaborate only if it
8999 has none of the other categories.
9000 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
9001 to apply Import to an object renaming declaration.
9003 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
9004 from a C++ class should be declared as limited and that it will be
9005 considererd limited.
9006 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
9007 should be declared as limited and that it will be considererd limited.
9008 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
9009 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
9010 (Analyze_Pragma): Deal with Universal_Aliasing.
9011 (Sig_Flags): Likewise.
9012 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
9013 (Overflow_Checks_Unsuppressed): New flag.
9014 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
9015 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
9016 case of JVM or .NET targets, and compiling user code.
9017 Add debugging convenience routine rv
9019 2007-06-06 Robert Dewar <dewar@adacore.com>
9021 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
9023 (Build_Elementary_Input_Call): For floating-point use right type in the
9024 absence of strange size or stream size clauses.
9025 (Build_Elementary_Write_Call): Same fix
9026 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
9027 set to value that does not match base type size.
9029 2007-06-06 Ed Schonberg <schonberg@adacore.com>
9031 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
9032 object of a limited type can be initialized with a call to a function
9033 that returns in place. If the limited type has unknown discriminants,
9034 and the underlying type is a constrained composite type, build an actual
9035 subtype from the function call, as is done for private types.
9036 (Side_Effect_Free): An expression that is the renaming of an object or
9037 whose prefix is the renaming of a object, is not side-effect free
9038 because it may be assigned through the renaming and its value must be
9039 captured in a temporary.
9040 (Has_Controlled_Coextensions): New routine.
9041 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
9042 as is done for other limited types.
9043 (Non_Limited_Designated_Type): new predicate.
9044 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
9046 Remove all handling of with_type clauses.
9048 * par-ch10.adb: Remove all handling of with_type clauses.
9050 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
9051 checksum if the main source could not be parsed.
9052 (Loat_Unit): When processing a child unit, determine properly whether
9053 the parent unit is a renaming when the parent is itself a child unit.
9054 Remove handling of with_type clauses.
9056 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
9057 (Set_Is_Static_Coextension): New procedure.
9058 (Has_Local_Raise): New function
9059 (Set_Has_Local_Raise): New procedure
9060 (Renaming_Exception): New field
9061 (Has_Init_Expression): New flag
9062 (Delay_Finalize_Attach): Remove because flag is obsolete.
9063 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
9064 Remove all handling of with_type clauses.
9065 (Exception_Junk): Can now be set in N_Block_Statement
9067 2007-06-06 Vincent Celier <celier@adacore.com>
9068 Robert Dewar <dewar@adacore.com>
9070 * frontend.adb (Frontend): Return immediately if the main source could
9071 not be parsed, because of preprocessing errors.
9073 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
9074 (Gnat1drv): Exit with errors if the main source could not be parsed,
9075 because of preprocessing errors.
9076 (Check_Rep_Info): New procedure
9078 2007-06-06 Robert Dewar <dewar@adacore.com>
9080 * g-hesorg.ads, g-heasor.ads,
9081 g-busorg.ads, g-bubsor.ads: Update documentation
9082 GNAT.Heap/Bubble_Sort_G is now pure
9084 2007-06-06 Robert Dewar <dewar@adacore.com>
9086 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
9088 2007-06-06 Robert Dewar <dewar@adacore.com>
9089 Ed Schonberg <schonberg@adacore.com>
9091 * g-comlin.ads, g-comlin.adb:
9092 Add new warning for renaming of function return objects
9094 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
9095 (Tree_Read): Use size of object instead of type'object_size, since the
9096 latter is incorrect for packed array types.
9097 (Tree_Write): Same fix
9099 * opt.ads: Add new warning for renaming of function return objects
9100 (Generating_Code): New boolean variable used to indicate that the
9101 frontend as finished its work and has called the backend to process
9102 the tree and generate the object file.
9103 (GCC_Version): Is now private
9104 (Static_Dispatch_Tables): New constant declaration.
9105 (Overflow_Checks_Unsuppressed): New flag.
9106 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
9107 (List_Closure): New flag for gnatbind (-R)
9108 Zero_Formatting: New flag for gnatbind (-Z)
9109 (Special_Exception_Package_Used): New flag.
9110 (Warn_On_Unrepped_Components): New flag.
9112 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
9113 unit is a compilation unit, rather than relying on its scope, so that
9114 Standard can be renamed.
9115 (Analyze_Object_Renaming): Add new warning for renaming of function
9117 Also reject attempt to rename function return object in Ada 83 mode.
9118 (Attribute_Renaming): In case of tagged types, add the body of the
9119 generated function to the freezing actions of the type.
9120 (Find_Type): A protected type is visible right after the reserved word
9121 "is" is encountered in its type declaration. Set the entity and type
9122 rather than emitting an error message.
9123 (New_Scope): Properly propagate Discard_Names to inner scopes
9124 (Check_Nested_Access): New procedure.
9125 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
9126 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
9128 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
9129 Add new warning for renaming of function return objects
9130 (Check_References): Suppress warnings for objects whose type or
9131 base type has Warnings suppressed.
9132 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
9133 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
9135 2007-06-06 Vincent Celier <celier@adacore.com>
9136 Emmanuel Briot <briot@adacore.com>
9137 Olivier Hainque <hainque@adacore.com>
9139 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
9140 absolute value of Header.Block_Size when displaying the freed physical
9142 (Allocate): Compute Storage_Address using Integer_Address, not
9143 Storage_Offset, because the range of Storage_Offset may not be large
9145 (Configure): New parameter Low_Level_Traces
9146 (Allocate, Deallocation, Free_Physically): Added low-level traces
9147 (Configure): new parameter Errors_To_Stdout.
9148 (Output_File): new subprogram
9149 (Deallocate, Dereference): Send error messages to the proper stream
9150 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
9151 documented. Previous code would send it to the current output file
9152 defined in GNAT.IO, which might not be stdout
9153 (Is_Valid): Adjust comment to mention that a positive reply means that
9154 Header_Of may be used to retrieve the allocation header associated with
9155 the subprogram Storage address argument. Return False early if this
9156 address argument is misaligned.
9158 2007-06-06 Vincent Celier <celier@adacore.com>
9160 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
9162 (ASIS_Main): New global variable
9163 (Get_Closure): New procedure
9164 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
9165 check, metric or pretty. Call Get_Closure in this case.
9166 (Check_Files): For GNAT LIST, check all sources of all projects when
9167 All_Projects is True.
9168 (GNATCmd): Accept -U for GNAT LIST
9170 2007-06-06 Vincent Celier <celier@adacore.com>
9172 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
9174 Correct error message when invocation of the linker fails
9175 Add explicit size clause for the C imported variables
9176 Object_List_File_Supported and Using_GNU_Linker to emphasize that
9177 we expect char size.
9178 Read target parameters earlier, since this is needed to set
9179 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
9182 2007-06-06 Vincent Celier <celier@adacore.com>
9185 Add 3 spaces before the default project directory when displaying
9186 the project search path.
9187 Add new command line switch '-l' to display license information.
9189 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
9191 * gmem.c: Add support for timestamps on memory operations.
9193 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
9194 operations (not used currently, just foundation for future
9195 enhancements). Add possibility to perform full dump of gmem.out file.
9196 (Print_Back_Traces): Declare accesses to root arrays constants since
9197 they aren't modified.
9198 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
9200 2007-06-06 Vincent Celier <celier@adacore.com>
9202 * gnatsym.adb: Update Copyright notice
9203 (Parse_Cmd_Line): Accept new switch -D
9204 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
9207 * prj.ads (Policy): New policy Direct
9208 (Yes_No_Unknown): New enumeration type
9209 (Project_Data): New component Libgnarl_Needed
9211 * prj-nmsc.adb (Check_For_Source): When recording a source file make
9212 use the untouched pathname casing.
9213 (Get_Directories): Ensure that the Display_Exec_Directory is using the
9214 proper casing on non case-sensitive platforms like Windows.
9215 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
9216 on all platforms, as it is not possible to know which one is allowed
9217 before processing the project files.
9218 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
9219 specified when symbol policy is Direct. Check that when there is a
9220 symbol file defined (either by default or with attribute
9221 Library_Symbol_File) it is not the same as the reference symbol file.
9222 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
9223 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
9225 (Record_Ada_Source): Record a source that has been locally removed in an
9228 * symbols.ads (Policy): New policy Direct
9230 * symbols-vms.adb (Initialize): Take new policy Direct in case
9233 2007-06-06 Vincent Celier <celier@adacore.com>
9235 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
9236 Correct obvious bug (return Dir; instead of return Directory;).
9237 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
9239 2007-06-06 Thomas Quinot <quinot@adacore.com>
9241 * g-pehage.adb (Produce): Open output files in Binary mode, so that
9242 they have UNIX line endings (LF only) even on Windows, and thus pass
9243 all GNAT style checks.
9245 2007-06-06 Emmanuel Briot <briot@adacore.com>
9247 * g-regpat.adb (Quote): Fix improper quoting of '.'
9249 2007-06-06 Thomas Quinot <quinot@adacore.com>
9251 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
9252 default, set False on a per-runtime basis.
9253 (Need_Netdb_Buffer): New constant.
9255 * g-socket.ads, g-socket.adb: Import new package
9256 GNAT.Sockets.Thin.Task_Safe_NetDB.
9257 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
9258 binding to obtain proper message.
9259 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
9260 Replace various occurrences of Arry (Arry'First)'Address with the
9261 equivalent Arry'Address (GNAT always follows implementation advice from
9263 (Get_Host_By_Address, Get_Host_By_Name,
9264 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
9265 instead, rely on platform-specific task safe netdb operations provided
9268 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
9269 parameter Process_Blocking_IO.
9270 (Host_Error_Messages): Add stub body.
9271 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9272 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
9273 Safe_Getservbyport): Move functions into new child package
9275 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
9276 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
9277 (In_Addr): Add alignment clause.
9279 2007-06-06 Robert Dewar <dewar@adacore.com>
9281 * g-trasym.ads, g-traceb.ads: Update list of supported targets
9282 Add note about symbolic traceback
9284 2007-06-06 Pascal Obry <obry@adacore.com>
9286 * hostparm.ads (Normalized_CWD): Use the host directory separator
9287 instead of the hardcoded forward slash which is not the proper
9288 character on Windows for example.
9291 2007-06-06 Vincent Celier <celier@adacore.com>
9292 Arnaud Charlet <charlet@adacore.com>
9294 * a-clrefi.adb, a-clrefi.ads: New files
9296 * impunit.adb: Add s-os_lib in the list of user visible units.
9297 (Non_Imp_File_Names_95): Add a-clrefi to this list
9298 Remove obsolete run-time entries.
9299 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
9300 "a-exetim" -- Ada.Execution_Time
9301 "a-extiti" -- Ada.Execution_Time.Timers
9303 * mlib-prj.ads, mlib-prj.adb
9304 (Build_Library): Use untouched object dir and library dir. At the
9305 same time makes sure that the checks are done using the canonical
9306 form. Removes hard-coded directory separator and use the proper host
9308 (Process_Project): Do not look in object directory to check if libgnarl
9309 is needed for a library, if there is no object directory.
9310 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
9312 (Build_Library): When invoking gnatbind, use a response file if the
9313 total size of the arguments is too large.
9315 * Makefile.rtl: (g-sttsne): New object file.
9316 Add entry for a-clrefi, s-utf_32, System.Exceptions
9318 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
9319 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
9320 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
9321 Change g-string to s-string, g-os_lib to s-os_lib
9322 Change all g-utf_32 references to s-utf_32
9324 2007-06-06 Tristan Gingold <gingold@adacore.com>
9325 Olivier Hainque <hainque@adacore.com>
9327 * init.c: Do not adjust IP of an imported VMS exception of ia64.
9328 LIB$STOP is called to raise an exception and the IP of the exception
9329 is the instruction right after the call.
9330 (__gnat_adjust_context_for_raise, AIX): Implement.
9331 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
9332 adjust_context_for_raise before Raise_From_Signal_Hanler.
9333 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
9334 siginfo is passed to the handler, necessary to let the zcx propagation
9335 engine unwind past it.
9337 2007-06-06 Olivier Hainque <hainque@adacore.com>
9339 * initialize.c (__gnat_initialize for vxworks): Update documentation
9340 on the ZCX support, using different sets of crtstuff objects than with
9343 2007-06-06 Robert Dewar <dewar@adacore.com>
9345 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
9347 (Layout_Type): Fix recomputation of size from alignment.
9349 2007-06-06 Ed Schonberg <schonberg@adacore.com>
9350 Javier Miranda <miranda@adacore.com>
9352 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
9353 association in an instance.
9354 (Copy_Generic_Node): If the node is a string literal, no need to copy
9356 (Is_Generic_Formal): For a formal subprogram, the declaration is the
9357 grandparent of the entity.
9358 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
9359 to simplify handling of formal interfaces that derive from other formal
9361 (Instantiate_Subprogram_Body): The defining unit name of the body of
9362 the instance should be a defining identifier.
9363 (Install_Formal_Packages): make global to the package, for use in
9364 instantiations of child units.
9365 (Analyze_Package_Instantiation): Do not attempt to set information on an
9366 enclosing master of an entry when expansion is disabled.
9367 (Instantiate_Type): If the actual is a tagged synchronized type and the
9368 generic ancestor is an interface, create a generic actual for the
9369 corresponding record.
9370 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
9371 declaration, to ensure that the interface list is processed correctly.
9372 (Inline_Instance_Body): If enclosing scope is an instance body, remove
9373 its entities from visibiility as well.
9374 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
9375 given with a named association, analyze the expression only, not the
9376 discriminant association itself.
9377 (Reset_Entity): If the analysis of a selected component is transformed
9378 into an expanded name in the prefix of a call with parameters, do not
9379 transform the original node into an expanded name, to prevent visibility
9380 errors in the case of nested generics.
9381 (Check_Private_View): For an array type, check whether the index types
9382 may need exchanging.
9384 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9385 Vincent Celier <celier@adacore.com>
9387 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
9388 since both are separated.
9389 Add support for imported CIL packages.
9390 Add further special handling of "value_type" for CIL.
9391 Add special handling of pragma Import for CIL.
9393 * make.ads, make.adb: When switch -eS is used, direct all outputs to
9394 standard output instead of standard error, except errors.
9395 (Absolute_Path): Use untouched casing for the parent directory.
9396 (Add_Library_Search_Dir): Use the untouched directory name.
9397 (Add_Source_Search_Dir): Idem.
9398 (Change_To_Object_Directory): Update output to use proper casing.
9399 (Create_Binder_Mapping_File): Use the untouched filename to set
9401 (Gnatmake): Use untouched library and executable directory names.
9402 (Insert_Project_Sources): Use untouched filename for spec and body.
9403 (Is_In_Object_Directory): Use untouched object directory.
9404 (Mark_Directory): Idem.
9405 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
9406 contains the non-canonical filename in all cases.
9407 (Change_To_Object_Directory): In verbose mode, display the name of the
9408 object directory we're changing to.
9409 (Compile_Sources): Make sure, when a project file is used, to compile
9410 the body of the unit, when there is one, even when only the spec is
9411 recorded in an ALI file.
9412 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
9414 (Report_Compilation_Failed): New procedure
9415 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
9416 procedures moved from the spec to the body.
9417 (Extract_Failure): Removed, not used
9418 Replace explicit raises of exception Bind_Failed and Link_Failed with
9419 calls to Make_Failed with the proper message.
9420 Replace explicit raises of exception Compilation_Failed with calls to
9421 procedure Report_Compilation_Failed.
9422 (Initialize): Create mapping files unconditionally when using project
9425 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
9426 Pragma_CIL_Constructor): New names.
9428 * targparm.ads, targparm.adb
9429 (Compiler_System_Version): Removed, no longer used.
9430 (Get_Target_Parameters): Relax checks on system.ads validity. Add
9431 handling of two new system flags: JVM and CLI.
9433 2007-06-06 Jose Ruiz <ruiz@adacore.com>
9434 Arnaud Charlet <charlet@adacore.com>
9436 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
9437 time, use the default s-interr body that provides interrupt support
9439 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
9440 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
9441 g-soccon.ads, and s-taprop.adb for the marte run time.
9442 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
9443 timers are supported on marte.
9444 (EH_MECHANISM for marte): Do not use ZCX.
9445 (THREADSLIB for marte): Use -lmarte.
9446 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
9447 Add mlib-tgt-specific.o to gnatmake objects
9448 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
9450 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
9451 6, either kernel or rtp, use a specialized version of s-osinte.ads.
9453 2007-06-06 Pascal Obry <obry@adacore.com>
9455 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
9457 2007-06-06 Vincent Celier <celier@adacore.com>
9459 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
9460 separator, use instead the proper host directory separator.
9461 (Copy_ALI_Files): Make sure that an already existing ALI file in the
9462 ALI copy dir is writable, before doing the copy.
9464 * mlib-utl.ads, mlib-utl.adb:
9465 (Gcc): If length of command line is too long, put the list of object
9466 files in a response file, if this is supported by the platform.
9467 (Ar): If invocation of the archive builder is allowed to be done in
9468 chunks and building it in one shot would go above an OS dependent
9469 limit on the number of characters on the command line, build the archive
9472 2007-06-06 Vincent Celier <celier@adacore.com>
9474 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
9475 of specified object file is not equal to base name of source.
9477 2007-06-06 Javier Miranda <miranda@adacore.com>
9478 Hristian Kirtchev <kirtchev@adacore.com>
9479 Ed Schonberg <schonberg@adacore.com>
9481 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
9482 the full type declaration.
9483 (Analyze_Component_Declaration): Add local variable E to capture the
9484 initialization expression of the declaration. Replace the occurences of
9485 Expression (N) with E.
9486 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
9487 limited interface object with a function call.
9488 (Array_Type_Declaration): If the declaration lacks subtype marks for
9489 indices, create a simple index list to prevent cascaded errors.
9490 (Is_Null_Extension): Ignore internal components created for secondary
9491 tags when checking whether a record extension is a null extension.
9492 (Check_Abstract_Interfaces): Add missing support for interface subtypes
9493 and generic formals.
9494 (Derived_Type_Declaration): Add missing support for interface subtypes
9495 and generic formals.
9496 (Analyze_Object_Declaration): If an initialization expression is
9497 present, traverse its subtree and mark all allocators as static
9499 (Add_Interface_Tag_Component): When looking for components that may be
9500 secondary tags, ignore pragmas that can appear within a record
9502 (Check_Abstract_Overriding): an inherited function that dispatches on
9503 result does not need to be overriden if the controlling type is a null
9505 (Mentions_T): Handle properly a 'class attribute in an anonymous access
9506 component declaration, when the prefix is an expanded name.
9507 (Inherit_Component): If the derivation is for a private extension,
9508 inherited components remain visible and their ekind should not be set
9510 (Find_Type_Of_Object): In the case of an access definition, always set
9511 Is_Local_Anonymous_Access. We were previously not marking the anonymous
9512 access type of a return object as a local anonymous type.
9513 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
9514 range with character literal bounds.
9515 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
9516 (Access_Subprogram_Declaration): Indicate that the type declaration
9517 depends on an incomplete type only if the incomplete type is declared
9519 (Analyze_Subtype_Declaration): Handle properly subtypes of
9520 synchronized types that are tagged, and that may appear as generic
9522 (Access_Subprogram_Declaration): An anonymous access to subprogram can
9523 appear as an access discriminant in a private type declaration.
9524 (Add_Interface_Tag_Components): Complete decoration of the component
9525 containing the tag of a secondary dispatch table and the component
9526 containing the offset to the base of the object (this latter component
9527 is only generated when the parent type has discriminants --as documented
9529 (Inherit_Components): Use the new decoration of the tag components to
9530 improve the condition that avoids inheriting the components associated
9531 with secondary tags of the parent.
9532 (Build_Discriminanted_Subtype): Indicate to the backend that the
9533 size of record types associated with dispatch tables is known at
9535 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
9536 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
9537 to include task, protected, and synchronized interfaces as limited
9539 (Process_Discriminants): Remove the setting of
9540 Is_Local_Anonymous_Access on the type of (anonymous) access
9541 discriminants of nonlimited types.
9542 (Analyze_Interface_Type_Declaration): Complete the decoration of the
9543 class-wide entity it is is already present. This situation occurs if
9544 the limited-view has been previously built.
9545 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
9547 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
9550 2007-06-06 Ed Schonberg <schonberg@adacore.com>
9552 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
9553 of the type that specify the position of interface tags when the type
9554 inherits discriminated array components from the parent type.
9555 If a component is initialized with a box, check for the presence of a
9556 default expression in its declaration before using its default
9557 initialization procedure.
9558 (Resolve_Record_Aggregate): If a component is box-initialized, and the
9559 component type has a discriminants, create a partial aggregate for it
9560 by copying the discriminants of the component subtype.
9561 Reject attempt to initialize a discriminant with a box.
9562 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
9563 associated with dispatch tables is known at compile time.
9564 (Get_Value): If an association in a record aggregate has a box
9565 association, and the corresponding record component has a default
9566 expression, always copy the default expression, even when the
9567 association has a single choice, in order to create a proper
9568 association for the expanded aggregate.
9570 2007-06-06 Ed Schonberg <schonberg@adacore.com>
9571 Robert Dewar <dewar@adacore.com>
9573 * par-ch12.adb (P_Generic_Associations): The source position of an
9574 Others association is that of the others keyword, not that of the token
9575 that follows the box.
9576 (P_Formal_Type_Definition): Handle formal access types that carry a
9579 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
9580 multiple identifier are present, save Scan_State before scanning the
9581 colon, to ensure that separate trees are constructed for each
9583 (P_Identifier_Declarations): For object declaration, set new flag
9584 Has_Init_Expression if initialization expression present.
9585 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
9586 Improve NOT NULL error messages
9588 2007-06-06 Robert Dewar <dewar@adacore.com>
9590 * par-ch4.adb: (P_Name): Recover from literal used as name
9592 2007-06-06 Vincent Celier <celier@adacore.com>
9594 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
9596 In the "not" case, recursive call with Complemented set to True.
9597 Do not allow "or" or "and" operators when Complemented is True.
9599 2007-06-06 Vincent Celier <celier@adacore.com>
9601 * prj.adb (Project_Empty): Gives default value for new component
9604 * prj-attr.ads: Minor reformatting
9606 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
9607 directory using the untouched casing.
9608 (For_All_Source_Dirs): Idem.
9610 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
9611 directories specified with switches -aP.
9612 (Add_Search_Project_Directory): New procedure
9613 (Initialize_Project_Path): Put the directories in table
9614 Search_Directories in the project search path.
9615 (Initialize_Project_Path): For VMS, transform into canonical form the
9618 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9620 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
9621 true if configurable run-time or No_Run_Time is set.
9622 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
9623 processing an unit which is not the one being compiled.
9625 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9627 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
9628 Replace UC by Ada.UC
9630 * s-bitops.adb: Get rid of System.Pure_Exceptions.
9631 Replace UC by Ada.UC
9633 2007-06-06 Robert Dewar <dewar@adacore.com>
9635 * scng.adb: (Check_End_Of_Line): Deal with very long lines
9637 2007-06-06 Robert Dewar <dewar@adacore.com>
9639 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
9640 Remove no longer used nodes.
9642 2007-06-06 Javier Miranda <miranda@adacore.com>
9643 Ed Schonberg <schonberg@adacore.com>
9644 Robert Dewar <dewar@adacore.com>
9646 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
9647 on obsolescent withed unit in case of limited-withed units.
9648 (Analyze_Compilation_Unit): Add guard to code that removed an
9649 instantiation from visibility, to prevent compiler aborts when
9650 instantiation is abandoned early on.
9651 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
9652 current unit being analyzed, and Distinguish local incomplete types
9653 from limited views of types declared elsewhere.
9654 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
9655 to state that the class-wide entity is shared by the limited-view
9657 (Analyze_With_Clause): Improve placement of flag for case of
9659 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
9660 manner similar to GNAT.Current_Exception. This is a violation of
9661 restriction (No_Exception_Propagation), and also inhibits the
9662 optimization of local raise to goto.
9663 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
9664 and if so set Most_Recent_Exception_Used flag in Opt, and also check
9665 for violation of restriction No_Exception_Propagation.
9667 2007-06-06 Javier Miranda <miranda@adacore.com>
9668 Hristian Kirtchev <kirtchev@adacore.com>
9669 Gary Dismukes <dismukes@adacore.com>
9671 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
9672 use of entity Exception_Occurrence if it is not available in the
9675 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
9676 concurrent types are declared within an Ada 2005 generic, build their
9677 corresponding record types since they are needed for overriding-related
9679 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
9680 protected type does not implement a task interface or a nonlimited
9682 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
9683 type does not implement a protected interface or a nonlimited interface.
9684 (Single_Task_Declaration, Single_Protected_Declaration): use original
9685 entity for variable declaration, to ensure that debugging information
9686 is correcty generated.
9687 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
9688 routines if the expander is not active.
9689 (Analyze_Task_Body): Mark all handlers to stop optimization of local
9690 raise, since special things happen for task exception handlers.
9692 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
9693 concurrent types declared within a generic.
9694 (Check_Dispatching_Operation): Do not emit warning about late interface
9695 operations in the context of an instance.
9696 (Check_Dispatching_Call): Remove restriction against calling a
9697 dispatching operation with a limited controlling result.
9698 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
9699 Register_Interface_DT_Entry by calls to Register_Primitive.
9700 (Check_Dispatching_Formals): Handle properly a function with a
9701 controlling access result.
9703 2007-06-06 Robert Dewar <dewar@adacore.com>
9704 Arnaud Charlet <charlet@adacore.com>
9706 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
9707 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
9708 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
9709 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
9710 message when using a VM, since this attribute is not supported.
9711 (Analyze_Record_Representation_Clause): Give unrepped component warnings
9713 * usage.adb: Add new warning for renaming of function return objects
9714 Indicate that -gnatwp and -gnatwP concern front-end inlining
9715 Add line for -gnatyg
9716 Add usage information for -gnatw.c/C
9718 2007-06-06 Robert Dewar <dewar@adacore.com>
9719 Ed Schonberg <schonberg@adacore.com>
9722 (Find_Var): Do not consider function call in test for infinite loop
9723 warning if warnings set off for function entity.
9724 (One_Bound): Do not create a temporary for a loop bound if it is a
9726 (Analyze_Assignment): Traverse the right hand side of an assignment and
9727 mark all allocators as static coextensions.
9728 (Analyze_Assignment): Exempt assignments involving a dispatching call
9729 to a function with a controlling access result from the check requiring
9730 the target to be class-wide.
9732 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
9733 Ed Schonberg <schonberg@adacore.com>
9734 Robert Dewar <dewar@adacore.com>
9735 Javier Miranda <miranda@adacore.com>
9737 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
9738 chain of coextensions when an allocator serves as the root of such a
9740 (Propagate_Coextensions): Remove the test for the root being an
9742 (Resolve_Allocator): Add condition to ensure that all future decoration
9743 occurs on an allocator node. Add processing and cleanup for static
9745 (Valid_Conversion): If the operand type is the limited view of a
9746 class-wide type, use the non-limited view is available to determine
9747 legality of operation.
9748 (Ambiguous_Character): move to spec, for use elsewhere.
9749 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
9750 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
9752 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
9753 Do_Division_Check flag explicitly.
9754 (Resolve_Actuals): If the actual is of a synchronized type, and the
9755 formal is of the corresponding record type, this is a call to a
9756 primitive operation of the type, that is declared outside of the type;
9757 the actual must be unchecked-converted to the type of the actual
9758 (Resolve_Call): Kill all current values for any subprogram call if
9759 flag Suppress_Value_Tracking_On_Call is set.
9760 (Resolve_Type_Conversion): Generate error message the the operand
9761 or target of interface conversions come from a limited view.
9762 (Check_Infinite_Recursion): Ignore generated calls
9763 (Check_Allocator_Discrim_Accessibility): New procedure for checking
9764 that an expression that constrains an access discriminant in an
9765 allocator does not denote an object with a deeper level than the
9766 allocator's access type.
9767 (Resolve_Allocator): In the case of an allocator initialized by an
9768 aggregate of a discriminated type, check that associations for any
9769 access discriminants satisfy accessibility requirements by calling
9770 Check_Allocator_Discrim_Accessibility.
9771 (Resolve_Equality_Op): Handle comparisons of anonymous access to
9772 subprogram types in the same fashion as other anonymous access types.
9773 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
9774 message that is not a continuation message.
9775 (Resolve_Type_Conversion): Add missing support for conversion to
9777 (Resolve_Actuals): Introduce a transient scope around the call if an
9778 actual is a call to a function returning a limited type, because the
9779 resulting value must be finalized after the call.
9780 (Resolve_Actuals): If the call was given in prefix notations, check
9781 whether an implicit 'Access reference or implicit dereference must be
9782 added to make the actual conform to the controlling formal.
9784 2007-06-06 Robert Dewar <dewar@adacore.com>
9785 Javier Miranda <miranda@adacore.com>
9787 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
9788 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
9789 overriding of an inherited private subprogram now there is no need to
9790 inherit its dispatching slot and reduce the size of the dispatch table.
9791 Set_All_DT_Position now ensures that the same slot is now assigned to
9792 both entities. This is required to statically build the dispatch table.
9793 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
9794 of calling Set_All_DT_Position to re-evaluate the position of the
9795 entries in the dispatch table. Such reevaluation is not desired if
9796 the tagged type is already frozen.
9798 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
9799 Gary Dismukes <dismukes@adacore.com>
9800 Robert Dewar <dewar@adacore.com>
9801 Javier Miranda <miranda@adacore.com>
9803 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
9804 reference acts as an lvalue when the attribute name modifies the prefix
9805 (Is_Coextension_Root): New routine.
9806 (Mark_Static_Coextensions): New routine.
9807 (Type_Access_Level): Revise code for checking the level of the
9808 anonymous access type of a return object.
9809 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
9810 (Matches_Prefixed_View_Profile): Remove the no longer necessary
9811 retrieval of the corresponding controlling record type.
9812 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
9813 concurrent types declared within a generic as well as class wide types.
9814 Emit a mode incompatibility error whenever a protected entry or routine
9815 override an interface routine whose first parameter is not of mode
9816 "out", "in out" or access to variable.
9817 (Overrides_Synchronized_Primitive): Rename to
9818 Find_Overridden_Synchronized_Primitive.
9819 (Collect_Interface_Components): New subprogram that collects all the
9820 components of a tagged record containing tags of secondary dispatch
9822 (Add_Global_Declaration): New procedure
9823 (Abstract_Interface_List): Handle properly the case of a subtype of a
9825 (Type_Access_Level): In the case of a type whose parent scope is a
9826 return statement, call Type_Access_Level recursively on the enclosing
9827 function's result type to determine the level of the return object's
9829 (Build_Elaboration_Entity): Build name of elaboration entity from the
9830 scope chain of the entity, rather than the unit name of the file name.
9831 (Check_Nested_Access): New procedure.
9832 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
9833 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
9834 (Get_Renamed_Entity): Utility routine for performing common operation
9835 of chasing the Renamed_Entity field of an entity.
9837 2007-06-06 Robert Dewar <dewar@adacore.com>
9839 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
9841 (Check_A_Call): Add check for entry call which was causing blowup
9843 2007-06-06 Olivier Hainque <hainque@adacore.com>
9845 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
9846 special code on ia64-vms to handle major incompatibilities between the
9847 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
9848 this routine with a very different set of arguments and expectations on
9851 2007-06-06 Thomas Quinot <quinot@adacore.com>
9853 * socket.c (__gnat_close_signalling_fd): New function.
9854 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
9855 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
9856 New supporting functions for task safe Netdb operations.
9858 2007-06-06 Thomas Quinot <quinot@adacore.com>
9859 Olivier Hainque <hainque@adacore.com>
9861 * a-except-2005.ads, a-except-2005.adb
9862 (Raise_From_Controlled_Operation): New procedure in
9863 (private part of) Ada.Exceptions (standard runtime version). Used to
9864 provide informational exception message when Program_Error is raised as
9865 a result of an Adjust or Finalize operation propagating an exception.
9866 (Rmsg_28): Fix description for E.4(18) check.
9867 (Raise_Current_Excep): Call Debug_Raise_Exception just before
9868 propagation starts, to let debuggers know about the event in a reliable
9870 Take the address of E and dereference to make sure it is homed on stack
9871 and prevent the stores from being deleted, necessary for proper
9872 debugger behavior on "break exception" hits.
9873 (Local_Raise): Moved to System.Exceptions
9875 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
9876 exception message from the current occurrence and raise Program_Error
9877 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
9879 2007-06-06 Jose Ruiz <ruiz@adacore.com>
9880 Arnaud Charlet <charlet@adacore.com>
9882 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
9885 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
9886 priority associated to a lock.
9888 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
9889 assertion to take into account case of no abort restriction.
9890 (Initialize_Protection_Entries): Add initialization for the field
9891 New_Ceiling associated to the protected object.
9892 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
9895 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
9896 since this function needs to be set consistently with Update_Exception.
9898 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
9899 since this function needs to be set consistently with Update_Exception.
9901 * s-taskin.ads: Update comments on
9902 Interrupt_Server_Blocked_On_Event_Flag.
9903 (Unbind_Handler): Fix handling of server_task wakeup
9904 (Server_Task): Set self's state so that Unbind_Handler can take
9905 appropriate actions.
9906 (Common_ATCB): Now use a constant from System.Parameters to determine
9907 the max size of the Task_Image field.
9909 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
9910 Initialize_Analyzer function.
9911 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
9912 take into account case of no abort restriction.
9913 ([Vulnerable_]Complete_Master): Modify assertion.
9915 * s-tataat.adb (Finalize): Use the nestable versions of
9916 Defer/Undefer_Abort.
9918 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
9920 * s-tpobop.ads: Update comments.
9922 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
9923 of locking the object manually, to avoid inconsistencies between
9924 Lock/Unlock_Entry assertions.
9926 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
9928 application and System.Parameters.No_Abort is True.
9929 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
9930 (Unbind_Handler): Fix handling of server_task wakeup
9931 (Server_Task): Set self's state so that Unbind_Handler can take
9932 appropriate actions.
9934 2007-06-06 Thomas Quinot <quinot@adacore.com>
9936 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
9937 declarations instead of an explicit null body, for conciseness.
9939 2007-06-06 Robert Dewar <dewar@adacore.com>
9941 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
9942 illegal aggregate and the type is still Any_Composite.
9943 (Subtypes_Statically_Match): Fix problem of empty discriminant list
9945 2007-06-06 Ed Schonberg <schonberg@adacore.com>
9947 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
9948 to prevent subsequent expansion.
9950 2007-06-06 Robert Dewar <dewar@adacore.com>
9952 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
9954 2007-06-06 Ed Schonberg <schonberg@adacore.com>
9955 Robert Dewar <dewar@adacore.com>
9957 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
9959 (Write_Itype): Handle case of string literal subtype, which
9960 comes up in this context.
9961 (Update_Itype): when debugging expanded code, update sloc of itypes
9962 associated with defining_identifiers and ranges, for gdb use.
9963 (Sprint_Node_Actual): Add static keyword to object or exception
9964 declaration output if Is_Statically_Allocated is True.
9965 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
9966 or task body, so that the tree carries the proper Sloc information for
9968 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
9970 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9972 * s-secsta.adb (Chunk): Ensure this object has a static size known at
9973 compile time, to avoid dynamic memory allocation
9974 (Elaboration code): Only use dynamic memory allocation when needed.
9976 2007-06-06 Quentin Ochem <ochem@adacore.com>
9978 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
9980 (Stack_Analyzer): Added field "Overflow_Guard"
9981 (Task_Result): Added field "Overflow_Guard".
9982 (Index_Str): New constant.
9983 (Task_Name_Str): New constant.
9984 (Actual_Size_Str): New constant.
9985 (Pattern_Array_Element_Size): New constant.
9986 (Get_Usage_Range): New subprogram.
9987 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
9988 Now align the output.
9990 (Initialize): Added value for Overflow_Guard.
9991 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
9992 Update the value of the overflow guard according to the actual
9993 beginning of the pattern array.
9994 (Initialize_Analyzer): Added parameter Overflow_Guard.
9995 Take this parameter into accound when computing the max size.
9996 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
9997 (Report_Result): Removed extra useless procedure.
9998 Updated call to Output_Result.
9999 Moved full computation of the Task_Result here.
10001 2007-06-06 Thomas Quinot <quinot@adacore.com>
10003 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
10004 Thread_Blocking_IO, always True by default, set False on a per-runtime
10006 Add Windows-specific constants
10007 Add new constant Need_Netdb_Buffer.
10008 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
10009 not, whether to use getXXXbyYYY_r.
10011 * gsocket.h: Add new constant Need_Netdb_Buffer.
10012 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
10013 not, whether to use getXXXbyYYY_r.
10015 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
10017 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
10018 than their first call.
10019 Add type Dummy_Communication_Block used in the generation of the pre-
10020 defined dispatching primitive _disp_asynchronous_select.
10021 (Storage_Element): Put Pragma Universal_Aliasing on it.
10023 2007-06-06 Vincent Celier <celier@adacore.com>
10025 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
10028 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
10029 letter if it is not followed by a '/' or a '\'.
10030 (Windows): New Boolean function
10032 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
10034 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
10036 (Containing_Directory): Raise Use_Error when the directory is a root
10038 (Extension): When returning the result, use a conversion to Result_Type,
10039 not a qualification.
10041 2007-06-06 Robert Dewar <dewar@adacore.com>
10043 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
10044 (Set_Style_Check_Options): Recognize new -gnatyg style switch
10046 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
10047 Warn_On_Non_Local_Exception to False, to turn off warnings for
10048 No_Exception_Propagation in ZFP runtime.
10049 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
10051 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
10053 2007-06-06 Vincent Celier <celier@adacore.com>
10055 * switch-b.adb (Scan_Binder_Switches): Add processing for new
10058 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
10059 (Scan_Make_Switches): Recognize new switch -aP
10061 2007-06-06 Matthew Gingell <gingell@adacore.com>
10062 Jose Ruiz <ruiz@adacore.com>
10064 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
10065 VxWorks task descriptor in the Ada run time, call a C subprogram
10066 (__gnat_get_stack_info) that extracts the required information.
10068 * sysdep.c: Back out temporary lynxos workaround.
10069 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
10070 time the stack information associated to the currently executing task.
10071 Only VxWorks systems require this function.
10073 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
10075 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
10076 add the stack bias if the offset is computed from a frame address.
10077 (__gnat_backtrace): Adjust for above change.
10079 2007-06-06 Thomas Quinot <quinot@adacore.com>
10081 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
10082 PE_Non_Transportable_Actual.
10083 (By_Descriptor_Last): New constant.
10084 (By_Copy_Return): Likewise.
10086 2007-06-06 Vincent Celier <celier@adacore.com>
10088 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
10091 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
10092 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
10093 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
10094 Add missing comment for /OPTIMIZE=SPACE
10095 Add entry for OPTIMIZE=SPACE
10096 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
10097 Add documentation for new qualifiers corresponding to -gnatw.c/.C
10099 2007-06-06 Vincent Celier <celier@adacore.com>
10100 Robert Dewar <dewar@adacore.com>
10102 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
10105 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
10106 Document gnatbind switch -a
10107 (case Constructions): Document that variables declarations are allowed
10108 for previously declared variables.
10109 Fix external lib project example
10110 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
10111 Indicate that "#if not X or Y then" is not allowed in input files to
10113 Document gnatw.x and gnatw.X warning flags
10114 Mention -Winline switch to activate warnings when back-end inlining is
10116 Add gnatcheck rule descriptions
10117 Describe how to use the GNAT driver to call a tool on a closure.
10118 Describe how to run project-wide checks or metrics.
10119 Document gnatbind's -R option
10120 Updated to account for Ada 2005 support
10122 * gnat_rm.texi (Case Construction): Allow variable declarations for
10123 previously declared variables.
10124 (Representation Clauses and Pragmas): Lift restriction on alignment
10125 clauses for record types.
10126 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
10127 Document No_Exception_Propagation restriction
10128 Document No_Body pragma
10129 Updated to account for Ada 2005 support; corrected some typos
10130 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
10132 * gnat-style.texi: Make it clear that we never use mode IN for
10133 procedures or functions
10135 * ug_words: Add entries for -gnatw.x and -gnatw.X
10136 Add entries for -gnatw.c/.C
10138 2007-06-06 Pascal Obry <obry@adacore.com>
10139 Vincent Celier <celier@adacore.com>
10141 * makegpr.adb (Add_Archive_Path): Use untouched object and library
10142 dirs and library name.
10143 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
10145 (Build_Library): Idem.
10146 (Compile_Individual_Sources): Idem.
10147 (Compile_Link_With_Gnatmake): Idem.
10148 (Compile_Sources): Idem.
10149 (Get_Imported_Directories): Idem.
10150 (Link_Executables): Idem. Same change for the executable dir.
10151 (Check_Compilation_Needed): C_Source_Path new variable containing
10152 the canonical form of Source_Path to check against the source names
10153 in the dependency file.
10154 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
10155 verbose mode, display the name of the object directory we're changing
10157 (Saved_Switches): New name of table X_Switches
10158 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
10159 (Usage): New line for switch -aP
10160 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
10161 testing if a directory should be added to the search path.
10163 2007-06-06 Javier Miranda <miranda@adacore.com>
10165 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
10166 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
10167 declaration after freezing point of all its associated tagged types;
10168 otherwise such types are frozen too early.
10170 2007-06-06 Robert Dewar <dewar@adacore.com>
10172 * a-reatim.adb: Documentation addition
10174 * g-cgideb.adb: Minor code reorganization
10176 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
10177 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
10178 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
10180 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
10181 function. Change name New_Scope to Push_Scope
10182 (Get_Debug_Flag_K): Remove unused obsolete function.
10184 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
10187 * makeusg.adb: Update Copyright notice
10188 Add line for switch -aP
10190 * makeusg.adb: Fix wording of some usage messages
10192 * s-assert.adb (Raise_Assert_Failure): Add call to
10193 Debug_Raise_Assert_Failure.
10195 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
10196 (2, Standard'Alignment) for compatibility with AAMP (where alignment
10197 is restricted to 1).
10199 * s-wchjis.adb: Remove use of System.Pure_Exceptions
10201 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
10202 node location to No_Location when we're not debugging the expanded
10205 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
10207 * misc.c (enumerate_modes): Consider log2_b to always be one.
10209 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
10211 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
10213 2007-05-02 Pascal Obry <obry@adacore.com>
10215 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
10216 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
10217 encoding support of Stream_IO.
10218 (Write_Unit): Idem.
10220 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
10221 filename and corresponding encoding to match the OS requirement.
10222 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
10223 routine will fail on specific devices like CON: AUX: ...
10225 PR ada/29856: Add missing braces
10227 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
10230 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
10232 2007-04-21 Jan Hubicka <jh@suse.cz>
10234 * misc.c (gnat_expand_body): Don't call target for destructors,
10235 avoid redundant check on syntax errors.
10237 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
10239 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
10240 instead of checking GIMPLE_STMT_P in chain_next.
10242 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
10245 * system-linux-alpha.ads: Disable constant condition warning for the
10246 Default_Bit_Order variable.
10247 * system-linux-s390.ads: Likewise.
10248 * system-linux-s390x.ads: Likewise.
10249 * system-linux-sparc.ads: Likewise.
10251 2007-04-06 Javier Miranda <miranda@adacore.com>
10252 Matt Heaney <heaney@adacore.com>
10253 Robert Dewar <dewar@adacore.com>
10255 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
10256 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
10257 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
10258 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
10259 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
10260 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
10261 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
10262 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
10263 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
10264 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
10265 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
10266 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
10267 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
10268 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
10269 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
10270 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
10271 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
10272 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
10273 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
10274 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
10275 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
10276 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
10277 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
10278 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
10279 s-taprop-tru64.adb, s-taprop-irix.adb,
10280 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
10281 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
10282 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
10283 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
10284 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
10285 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
10286 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
10287 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
10288 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
10289 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
10290 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
10291 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
10292 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
10293 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
10294 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
10295 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
10296 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
10297 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
10298 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
10299 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
10301 Update documentation.
10304 2007-04-06 Robert Dewar <dewar@adacore.com>
10306 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
10307 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
10308 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
10309 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
10310 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
10311 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
10312 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
10313 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
10314 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
10315 system-hpux-ia64.ads, targparm.adb,
10316 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
10318 * system.ads: Move Functions_Return_By_DSP to obsolete section,
10319 kept for bootstrap purposes only.
10321 2007-04-06 Arnaud Charlet <charlet@adacore.com>
10323 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
10324 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
10325 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
10326 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
10328 2007-04-06 Robert Dewar <dewar@adacore.com>
10330 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
10331 (Local_Raise): New dummy procedure called when a raise is converted
10332 to a local goto. Used for debugger to detect that the exception
10335 * debug.adb: Document new d.g flag (expand local raise statements to
10336 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
10338 * exp_sel.adb: Use Make_Implicit_Exception_Handler
10340 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
10341 suppress warnings for unused handlers.
10342 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
10343 warnings for raise statements not handled locally.
10344 (Get_RT_Exception_Entity): New function
10345 (Get_Local_Call_Entity): New function
10346 (Find_Local_Handler): New function
10347 (Warn_If_No_Propagation): New procedure
10348 (Expand_At_End_Handler): Call Make_Implicit_Handler
10349 (Expand_Exception_Handlers): Major additions to deal with local handlers
10350 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
10351 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
10354 * exp_ch11.ads (Get_RT_Exception_Entity): New function
10355 (Get_Local_Call_Entity): New function
10357 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
10358 of restrictions that the binder will never suggest adding.
10360 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
10363 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
10364 be with'ed in the presence of pragma Restriction
10365 (No_Exception_Propagation).
10367 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
10369 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
10370 parameter, then the handler is not a suitable target for a local raise,
10371 and this is a violation of restriction No_Exception_Propagation.
10372 (Analyze_Handled_Statements): Analyze choice parameters in exception
10373 handlers before analyzing statement sequence (needed for proper
10374 detection of local raise statements).
10375 (Analyze_Raise_Statement): Reraise statement is a violation of the
10376 No_Exception_Propagation restriction.
10378 * s-rident.ads: Add new restriction No_Exception_Propagation
10380 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
10381 function, like Make_Exception_Handler but sets Local_Raise_Statements
10383 (Add_Unique_Serial_Number): Deal with case where this is called during
10384 processing of configuration pragmas.
10386 2007-04-06 Thomas Quinot <quinot@adacore.com>
10387 Pat Rogers <rogers@adacore.com>
10388 Pascal Obry <obry@adacore.com>
10390 * g-stsifd-sockets.adb: New file.
10392 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
10393 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
10394 g-socthi-vms.adb: Move signalling
10395 fd management to a nested package, so that they can conveniently be
10396 moved to a subunit that is shared across Windows, VMS, and VxWorks
10397 (Ada implementation) or completed with imported bodies from socket.c
10399 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
10401 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
10402 the signalling file descriptor.
10403 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
10404 signalling file descriptor.
10405 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
10406 instead of creating a pair of sockets for signalling here.
10408 * g-socthi.adb: Ditto.
10409 Set the runtime process to ignore SIGPIPEs on platforms that support
10410 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
10412 * g-socthi-mingw.adb: Ditto.
10413 (WS_Version): Use Windows 2.2.
10414 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
10416 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
10417 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
10419 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
10420 added GNAT byte swapping facility
10421 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
10423 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
10425 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
10427 (__gnat_create_signalling_fds): New subprogram.
10428 Set the runtime process to ignore SIGPIPEs on platforms that support
10429 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
10431 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
10432 Vincent Celier <celier@adacore.com>
10434 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
10435 New version of Ada.Calendar which supports the new upper bound of Ada
10436 time (2399-12-31 86_399.999999999).
10437 The following modifications have been made to the package:
10438 - New representation of time as count of nanoseconds since the start of
10439 Ada time (1901-1-1 0.0).
10440 - Target independent Split and Time_Of routines which service both
10441 Ada 95 and Ada 2005 code.
10442 - Target independent interface to the Ada 2005 children of Calendar.
10443 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
10444 - Handling of non-leap centenial years.
10445 - Updated clock function.
10446 - Updated arithmetic and comparison operators.
10448 * a-caldel.adb (To_Duration): Add call to target independent routine in
10449 Ada.Calendar to handle the conversion of time to duration.
10451 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
10453 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
10455 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
10456 targets do not have a natural time zone, GMT is used as a default.
10457 (__gnat_get_task_options): New.
10459 * a-direct.adb (Modification_Time): Add with and use clauses for
10460 Ada.Calendar and Ada.
10461 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
10462 since it is no longer needed.
10463 (Duration_To_Time): Removed.
10464 (OS_Time_To_Long_Integer): Removed.
10465 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
10466 Formatting Time_Of routines which automatically handle time zones,
10467 buffer periods and leap seconds.
10469 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
10470 target independent routines in Ada.Calendar.
10472 * a-calfor.ads, a-calfor.adb:
10473 Code cleanup and addition of validity checks in various routines.
10474 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
10477 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
10478 independent routine in Ada.Calendar.
10480 2007-04-06 Olivier Hainque <hainque@adacore.com>
10483 (convert_addresses): Adjust prototype and dummy definition to expect an
10484 extra file_name argument.
10486 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
10487 filling the now expected file_name argument with the appropriate
10489 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
10490 (tracebk): Array of void * instead of char *, corresponding to what
10491 convert_addresses expects.
10492 (exename): New static global, to hold the executable file name to be
10493 used in all convert_addresses invocations.
10494 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
10496 (__gnat_gmem_a2l_initialize): Resolve exename.
10497 (__gnat_convert_addresses): Use exename as the convert_addresses
10498 file_name argument.
10500 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
10501 "convert_addresses", now expecting a filename argument. Import the
10502 necessary entities to compute the filename to use and pass it to
10505 2007-04-06 Matt Gingell <gingell@adacore.com>
10507 * system-aix.ads: Back out previous change.
10508 (Functions_Return_By_DSP): Removed
10510 2007-04-06 Pascal Obry <obry@adacore.com>
10512 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
10513 or the monotonic used by Ada.Real_Time) to compute the sleep duration
10516 2007-04-06 Jose Ruiz <ruiz@adacore.com>
10518 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
10519 function. Its value changes in different VxWorks versions, and it is
10520 now handled by the function __gnat_get_task_options.
10522 * s-taprop-vxworks.adb (Create_Task): Call the function
10523 __gnat_get_task_options to get the required options for creating a task.
10525 2007-04-06 Pascal Obry <obry@adacore.com>
10526 Thomas Quinot <quinot@adacore.com>
10528 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
10529 dealing with filename.
10530 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
10531 filename from a standard string to a wide-string depending on the
10533 (__gnat_freopen): Idem.
10534 (__gnat_current_time): New function (wrapper for time(3) standard C
10537 * g-os_lib.ads (Current_Time): New function. Returns the current
10538 system time as an OS_Time value.
10540 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
10541 (Monotonic_Clock): Same.
10543 2007-04-06 Quentin Ochem <ochem@adacore.com>
10545 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
10547 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
10549 2007-04-06 Jose Ruiz <ruiz@adacore.com>
10551 * a-retide.adb: Add elaboration code to ensure that the tasking run
10552 time is initialized when using delay operations even when no task is
10555 2007-04-06 Javier Miranda <miranda@adacore.com>
10557 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
10558 component Num_Prim_Ops.
10559 (Set_Num_Prim_Ops): Removed.
10560 Remove all the assertions because all the routines of this
10561 package are inline always.
10562 (Get_Offset_Index): Add support to primary dispatch tables.
10563 Move the documentation about the dispatch table to a-tags.ads
10564 (Set_External_Tag): Removed
10565 (Inherit_TSD): Removed.
10566 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
10567 moved to a-tags.ads
10568 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
10569 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
10570 of the TSD field "Table" because this field has been renamed to
10572 (Inherit_CPP_DT): Removed.
10573 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
10574 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
10575 declarations have been moved to a-tags.ads
10576 (Check_Size): Removed.
10577 (Expanded_Name): Updated to get access to the new field of TSD
10578 containing the address of the expanded name.
10579 (Get_Access_Level/Set_Access_Level): Removed.
10580 (Get_Predefined_Prim_Op_Address): Removed.
10581 (Set_Predefined_Prim_Op_Address): Removed.
10582 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
10583 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
10584 (Set_Expanded_Name): Removed.
10585 (Inherit_DT): Removed.
10586 (Inherit_CPP_DT): Removed.
10587 (Set_RC_Offset): Removed.
10588 (Set_TSD): Removed.
10589 (Base_Address): New function that displaces "this" to point to the base
10590 of the object (that is, to point to the primary tag of the object).
10592 2007-04-06 Ed Schonberg <schonberg@adacore.com>
10593 Javier Miranda <miranda@adacore.com>
10595 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
10596 anonymous access component, do not create a master_id if type already
10597 has one, as may happen if the type is a subcomponent of a packed array
10599 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
10600 Initialize_Tag): Remove code associated with the old CPP pragmas.
10601 CPP_Virtual and CPP_Vtable are no longer supported.
10602 (Build_Offset_To_Top_Internal): Add support for concurrent record types
10603 (Build_Offset_To_Top_Functions): Add support for concurrent record types
10604 (Freeze_Record_Type): Remove call to
10605 Init_Predefined_Interface_Primitives.
10606 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
10607 code required to initialize the tags of the secondary dispatch tables.
10608 This leaves the algoritm more clear.
10609 (Init_Secondary_Tags): Add support for concurrent record types
10610 (Make_Predefined_Primitive_Specs): Code cleanup.
10611 (Predefined_Primitive_Bodies): Code cleanup.
10612 (Build_Master_Renaming): New local subprogram.
10613 (Expand_N_Full_Type_Declaration): Build the master_id associated with
10614 anonymous access to task type components.
10615 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
10616 subtype indication are resolved during analysis, and must not be done
10618 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
10620 2007-04-06 Geert Bosch <bosch@adacore.com>
10621 Ed Schonberg <schonberg@adacore.com>
10622 Javier Miranda <miranda@adacore.com>
10623 Bob Duff <duff@adacore.com>
10625 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
10626 for conversion of a Float_Type'Truncation to integer.
10628 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
10629 check if a node is an attribute that can be handled directly by the
10631 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
10632 attributes that can be handled directly by the back end.
10633 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
10634 use new predicate Is_Access_Protected_Subprogram_Type.
10635 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
10636 and Unchecked_Union if it is generated as part of the default Output
10637 procedure for a type with default discriminants.
10638 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
10639 if we are compiling under restriction No_Dispatching_Calls.
10640 (Constrained): Use Underlying_Type, in case the type is private without
10641 discriminants, but the full type has discriminants.
10642 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
10643 call to Build_Get_Access_Level.
10644 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
10645 interface objects requires a call to the run-time subprogram that
10646 returns the base address of the object.
10647 (Valid_Conversion): Improve error message on illegal attempt to store
10648 an anonymous access to subprogram value into a record component.
10650 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
10652 (Simplify_Type_Conversion): New procedure that performs simplification
10653 of Int_Type (Float_Type'Truncation (X)).
10654 (Resolve_Type_Conversion): Call above procedure after resolving operand
10655 and before performing checks. This replaces the existing ineffective
10657 (Set_String_Literal_Subtype): When creating the internal static lower
10658 bound subtype for a string literal, use a newly created copy of the
10659 subtree representing the lower bound.
10660 (Resolve_Call): Exclude build-in-place function calls from transient
10661 scope treatment. Update comments to describe this exception.
10662 (Resolve_Equality_Op): In case of dispatching call check violation of
10663 restriction No_Dispatching_Calls.
10664 (Resolve_Call): If the call returns an array, the context imposes the
10665 component type of the array, and the function has one non-defaulted
10666 parameter, rewrite the call as the indexing of a call with a single
10667 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
10669 (Resolve_Actuals): If an actual is an allocator for an access parameter,
10670 the master of the created object is the innermost enclosing statement.
10671 (Remove_Conversions): For a binary operator, check if type of second
10672 formal is numeric, to check if an abstract interpretation is present
10673 in the case of exponentiation as well.
10675 2007-04-06 Ed Schonberg <schonberg@adacore.com>
10676 Bob Duff <duff@adacore.com>
10678 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
10679 copying a parameter list in a call, set properly the First_Named_Formal
10680 and Next_Named_Formal fields in the new list and in the enclosing call.
10681 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
10682 names, to ease typing in the debugger. Improve comments.
10683 (Watch_Node): New variable, intended to be set in the debugger.
10684 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
10685 called when the watched node is created.
10686 (New_Node_Debugging_Output): Combined version of local procedures
10687 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
10688 with a parameter so that conditional breakpoints like "if Node = 12345"
10690 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
10691 Add Elist1 function
10693 2007-04-06 Thomas Quinot <quinot@adacore.com>
10694 Ed Schonberg <schonberg@adacore.com>
10695 Gary Dismukes <dismukes@adacore.com>
10697 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
10698 required for a conversion between two access-to-unconstrained-array
10700 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
10701 to discriminant constraints on discriminant objects. This rule must
10702 apply as well to discriminants of protected types in private components.
10703 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
10704 object of a null-excluding access type then don't require the
10705 the object declaration to have an expression and don't emit a
10708 2007-04-06 Arnaud Charlet <charlet@adacore.com>
10709 Eric Botcazou <botcazou@adacore.com>
10711 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
10714 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
10715 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
10718 * fe.h (Compiler_Abort): Add third parameter.
10720 * misc.c (internal_error_function): Build third argument from current
10721 input location and pass it to Compiler_Abort.
10723 2007-04-06 Gary Dismukes <dismukes@adacore.com>
10725 * cstand.adb (Create_Standard): When the target's storage unit size is
10726 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
10729 2007-04-06 Nicolas Roche <roche@adacore.com>
10731 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
10732 absolute path can have the following form: device:/a/b. In this case
10733 '/' should be inserted between the path and the filename.
10735 2007-04-06 Olivier Hainque <hainque@adacore.com>
10736 Eric Botcazou <botcazou@adacore.com>
10738 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
10739 VAR_DECL to a CONST_DECL we make for a public constant when we know the
10740 corresponding definition has created the so made visible variable.
10741 Handle anonymous access to protected subprogram.
10742 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
10743 object with an address clause volatile. Re-enable original fix.
10744 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
10746 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
10747 associated with either the Equivalent or Root type, instead of the
10749 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
10750 subtree for every field of a global record type.
10751 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
10752 discriminants, invoke again variable_size on its newly computed sizes.
10754 2007-04-06 Robert Dewar <dewar@adacore.com>
10755 Thomas Quinot <quinot@adacore.com>
10756 Ed Schonberg <schonberg@adacore.com>
10757 Bob Duff <duff@adacore.com>
10759 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
10760 (Next_Component_Or_Discriminant): New function and procedure
10761 (First_Index, First_Literal, Master_Id,
10762 Set_First_Index, Set_First_Literal, Set_Master_Id):
10763 Add missing Ekind assertions.
10764 (Is_Access_Protected_Subprogram_Type): New predicate.
10765 (Has_RACW): New entity flag, set on package entities to indicate that
10766 the package contains the declaration of a remote accecss-to-classwide
10768 (E_Return_Statement): This node type has the Finalization_Chain_Entity
10769 attribute, in case the result type has controlled parts.
10770 (Requires_Overriding): Add this new flag, because "requires
10771 overriding" is subtly different from "is abstract" (see AI-228).
10772 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
10773 Is_Abstract_Type. Make sure these are called only when appropriate.
10774 (Has_Pragma_Unreferenced_Objects): New flag
10776 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
10777 class-wide, the tag of the right-hand side must be an exact match, not
10778 an ancestor of that of the object on left-hand side.
10779 (Move_Activation_Chain): New procedure to create the call to
10780 System.Tasking.Stages.Move_Activation_Chain.
10781 (Expand_N_Extended_Return_Statement): Generate code to call
10782 System.Finalization_Implementation.Move_Final_List at the end of a
10783 return statement if the function's result type has controlled parts.
10784 Move asserts to Build_In_Place_Formal.
10785 (Move_Final_List): New function to create the call statement.
10786 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
10787 tagged type, replace generation of call to the run-time subprogram
10788 CW_Membership by call to Build_CW_Membership.
10789 (Expand_N_Return_Statement): Replace generation of call to the run-time
10790 subprogram Get_Access_Level by call to Build_Get_Access_Level.
10791 (Expand_N_Simple_Function_Return): Replace generation of call to the
10792 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
10794 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
10795 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
10796 access to protected operations.
10797 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
10798 master and chain actual parameters to a build-in-place function call
10800 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
10802 (Make_Build_In_Place_Call_In_Allocator,
10803 Make_Build_In_Place_Call_In_Anonymous_Context,
10804 Make_Build_In_Place_Call_In_Assignment,
10805 Make_Build_In_Place_Call_In_Object_Declaration): Call
10806 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
10807 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
10808 stubbed procedure with a null body, replace the call with a null
10809 statement without using the full inlining machinery, for efficiency
10810 and to avoid invalid values in source file table entries.
10812 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
10813 renamings of calls to build-in-place functions.
10815 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
10816 provides the functionality of RTE_Available to record components.
10817 (RTU_Entity): The function Entity has been renamed to RTU_Entity
10818 to avoid undesired overloading.
10819 (Entity): New subprogram that returns the entity for the referened
10820 unit. If this unit has not been loaded, it returns Empty.
10821 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
10822 Remove no longer used entities.
10823 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
10824 (RE_Type_Specific_Data): New entity.
10825 (RE_Move_Any_Value): New entity.
10826 (RE_TA_A, RE_Get_Any_Type): New entities.
10827 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
10828 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
10829 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
10830 (Entity): New subprogram that returns the entity for the referened
10831 unit. If this unit has not been loaded, it returns Empty.
10832 (RTE): Addition of a new formal that extends the search to the scopes
10833 of the record types found in the chain of the package.
10835 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
10836 "abstract subprograms must be visible" message, whether or not the type
10837 is an interface; that is, remove the special case for interface types.
10838 (Analyze_Function_Return): Remove error message "return of task objects
10839 is not yet implemented" because this is now implemented.
10840 (Create_Extra_Formals): Add the extra master and activation chain
10841 formals in case the result type has tasks.
10842 Remove error message "return of limited controlled objects is not yet
10844 (Create_Extra_Formals): Add the extra caller's finalization list formal
10845 in case the result type has controlled parts.
10846 (Process_Formals): In case of access formal types there is no need
10847 to continue with the analysis of the formals if we already notified
10849 (Check_Overriding_Indicator): Add code to check overriding of predefined
10851 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
10852 flags for formals that do not require them,.
10853 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
10854 hidden entity is use visible or directly visible.
10855 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
10856 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
10857 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
10858 New_Overloaded_Entity): Split Is_Abstract flag into
10859 Is_Abstract_Subprogram and Is_Abstract_Type.
10861 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
10862 a return statement's finalization list to the caller's list, used for
10863 build-in-place functions with result type with controlled parts.
10864 Remove no longer used entities.
10866 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
10867 longer needed, because the full type is now limited, and therefore a
10868 pass-by-reference type.
10869 (Foreign_Task_Level): New constant.
10871 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
10872 move tasks from the activation chain belonging to a return statement to
10873 the one passed in by the caller, and update the master to the one
10874 passed in by the caller.
10875 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
10876 of unactivated tasks, so we don't kill the ones that are being returned
10877 by a build-in-place function.
10878 (Create_Task): Ignore AI-280 for foreign threads.
10880 2007-04-06 Ed Schonberg <schonberg@adacore.com>
10881 Robert Dewar <dewar@adacore.com>
10882 Bob Duff <duff@adacore.com>
10883 Gary Dismukes <dismukes@adacore.com>
10885 * errout.adb (Unwind_Internal_Type): Use predicate
10886 Is_Access__Protected_Subprogram_Type.
10888 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
10889 (Freeze_Entity, packed array case): Do not override explicitly set
10890 alignment and size clauses.
10891 (Freeze_Entity): An entity declared in an outer scope can be frozen if
10892 the enclosing subprogram is a child unit body that acts as a spec.
10893 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
10894 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
10895 Remove all code for DSP option
10897 * layout.adb (Layout_Record_Type): Use First/
10898 Next_Component_Or_Discriminant
10899 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
10900 to handle properly the anonymous access case.
10902 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
10903 for all access attributes, because overload resolution should work the
10904 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
10905 causes the error message for the ambiguous "X'Access = Y'Access" and
10906 "X'Unrestricted_Access = Y'Access" and so forth to match.
10907 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
10908 now that anonymous access to protected operations have their own kind.
10909 (Resolve_Attribute): In case of dispatching call check the violation of
10910 restriction No_Dispatching_Calls.
10911 (Check_Array_Type): Check new -gnatyA array index style option
10913 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
10914 attempt to derive from a synchronized tagged type.
10915 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
10916 type, inherit the class-wide type already created, because it may
10917 already have been used in a self-referential anonymous access component.
10918 (Mentions_T): Recognize self-referential anonymous access components
10919 that use (a subtype of) the class-wide type of the enclosing type.
10920 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
10921 Derived_Type for Prev formal on call to
10922 Check_Anonymous_Access_Components rather than Empty.
10923 (Make_Incomplete_Type_Declaration): Add test for case where the type has
10924 a record extension in deciding whether to create a class-wide type,
10925 rather than just checking Tagged_Present.
10926 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
10927 to stand-alone object declarations as well as component declarations.
10928 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
10929 prevent accidental overwriting when enclosing package appears in
10930 a limited_with_clause.
10931 (Array_Type_Declaration): If the component type is an anonymous access,
10932 the associated_node for the itype is the type declaration itself.
10933 (Add_Interface_Tag_Components): Modified to support concurrent
10934 types with abstract interfaces.
10935 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
10936 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
10937 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
10938 to complete the decoration of synchronized interface types. Add also
10939 a call to Check_Abstract_Interfaces to verify the ARM rules.
10940 (Derive_Interface_Subprograms): Modified to support concurrent types
10941 with abstract interfaces.
10942 (Analyze_Subtype_Indication): Resolve the range with the given subtype
10943 mark, rather than delaying the full resolution depending on context.
10944 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
10945 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
10946 Array_Type_Declaration,Build_Derived_Record_Type,
10947 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
10948 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
10949 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
10950 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
10951 called only when appropriate.
10952 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
10954 (Analyze_Subtype_Declaration): For an access subtype declaration, create
10955 an itype reference for the anonymous designated subtype, to prevent
10956 scope anonmalies in gigi.
10957 (Build_Itype_Reference): New utility, to simplify construction of such
10960 2007-04-06 Vincent Celier <celier@adacore.com>
10962 * errutil.adb (Initialize): Initialize warnings table, if all warnings
10963 are suppressed, supply an initial dummy entry covering all possible
10966 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
10967 and start with only one, such as "-RTS=none".
10968 (Collect_Arguments): Do not check for sources outside of projects.
10969 Do not collect arguments if project is externally built.
10970 (Compile_Sources): Do nothing, not even check if the source is up to
10971 date, if its project is externally built.
10972 (Compile): When compiling a predefined source, add -gnatpg
10973 as the second switch, after -c.
10974 (Compile_Sources): Allow compilation of Annex J renames without -a
10975 (Is_In_Object_Directory): Check if the ALI file is in the object
10976 even if there is no project extension.
10977 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
10978 gnatbind if the ALI file effectively exists.
10979 (Initialize): Add the directory where gnatmake is invoked in front of
10980 the path if it is invoked from a bin directory, even without directory
10981 information, so that the correct GNAT tools will be used when spawned
10982 without directory information.
10984 * makeusg.adb: Change switch -S to -eS
10985 Add lines for new switches -we, -wn and -ws
10986 Add line for new switch -p
10988 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
10989 Treat_As_Error and there are warnings.
10991 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
10992 -gnatww Change gnatmake switch -S to -eS
10993 (Scan_Make_Switches): Code reorganisation. Process separately multi
10994 character switches and single character switches.
10995 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
10996 False when switch is not recognized by gnatmake.
10997 (Scan_Make_Switches): Set Setup_Projects True when -p or
10998 --create-missing-dirs is specified.
11000 * fname.adb (Is_Predefined_File_Name): Return True for annex J
11001 renamings Calendar, Machine_Code, Unchecked_Conversion and
11002 Unchecked_Deallocation only when Renamings_Included is True.
11004 * par.adb: Allow library units Calendar, Machine_Code,
11005 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
11006 when -gnatg is not specified.
11007 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
11008 there is no need to generate always a record_definition_node in case
11009 of synchronized interface types.
11010 (SIS_Entry_Active): Initialize global variable to False
11011 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
11012 indicate cases where AI-447 says "not null" is legal.
11014 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
11016 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
11017 files with with several lines starting with the object fileb name.
11018 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
11020 (Initialize): Add the directory where gprmake is invoked in front of the
11021 path, if it is invoked from a bin directory or with directory
11022 information, so that the correct GNAT tools will be used when invoked
11024 (Check_Compilation_Needed): Process correctly backslashes on Windows.
11026 * vms_data.ads: Update switches/qualifiers
11028 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11029 Thomas Quinot <quinot@adacore.com>
11032 If the array component is a discriminated record, the array aggregate
11033 is non-static even if the component is given by an aggregate with
11035 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
11036 (Convert_Aggr_In_Allocator): If the allocator is for an access
11037 discriminant and the type is controlled. do not place on a finalization
11038 list at this point. The proper list will be determined from the
11040 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
11041 initialize record controller if needed, before the components, to ensure
11042 that they are properly finalized.
11043 (Build_Record_Aggr_Code): For the case of an array component that has a
11044 corresponding array aggregate in the record aggregate, perform sliding
11047 2007-04-06 Javier Miranda <miranda@adacore.com>
11048 Gary Dismukes <dismukes@adacore.com>
11049 Ed Schonberg <schonberg@adacore.com>
11051 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
11052 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
11054 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
11055 accessibility on class-wide allocators if the allocator occurs at the
11056 same scope level as the allocator's type. The check is guaranteed to
11057 succeed in that case, even when the expression originates from a
11058 parameter of the containing subprogram.
11059 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
11060 under No_Dispatching_Calls restriction. During the semantic analysis
11061 we already notified such violation.
11062 (Tagged_Membership): Constant folding. There is no need to check
11063 the tag at run-time if the type of the right operand is non
11064 class-wide abstract.
11065 Replace call to Is_Ancestor by call to Is_Parent
11066 to support concurrent types with interface types.
11067 (Expand_N_Allocator): Add an assertion associated with the generation
11069 (Expand_N_Slice): Do not enable range check to nodes associated
11070 with the frontend expansion of the dispatch table.
11071 (Is_Local_Access_Discriminant): Subsidiary function to
11072 Expand_N_Allocator.
11073 (Tagged_Membership): Replace generation of call to the run-time
11074 subprogram CW_Membership by call to Build_CW_Membership.
11075 (Expand_Allocator_Expression): Replace generation of call to the
11076 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
11078 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
11079 initialize most the TSD components by means of an aggregate.
11080 Modify the declaration of the object containing the TSD
11081 because we now expand code that has a higher level of abstraction.
11082 The TSD has a discriminant containing the Inheritance Depth Level,
11083 value that is used in the membership test but also to fix the size
11084 of the table of ancestors.
11085 (Expand_Interface_Conversion): Insert function body at the closest place
11086 to the conversion expression, to prevent access-before-elaboration
11087 errors in the backend.
11088 Code improved to reduce the size of the dispatch table if
11089 compiling under restriction No_Dispatching_Calls plus code cleanup.
11090 Code reorganization plus removal of calls to Set_Num_Prim_Ops
11091 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
11092 (Expand_Dispatching_Call): Minor code reorganization plus addition of
11093 code to return immediately if compiling under No_Dispatching_Calls
11095 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
11096 CPP_Virtual and CPP_Vtable are no longer supported.
11097 (Expand_Interface_Conversion): Add missing support for interface type
11099 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
11100 Is_Parent to support concurrent types with interfaces.
11101 (Init_Predefined_Interface_Primitives): Removed.
11102 (Make_Secondary_DT): Modified to support concurrent record types.
11103 (Set_All_DT_Position): Modified to support concurrent record types.
11104 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
11105 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
11106 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
11107 with CW_Membership.
11108 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
11109 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
11110 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
11111 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
11112 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
11113 (Expand_Dispatching_Call): Replace generation of call to the run-time
11114 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
11115 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
11117 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
11118 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
11119 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
11120 Build_Set_Prim_Op_Address.
11121 (Get_Remotely_Callable): Subprogram removed.
11122 (Init_Predefined_Interface_Primitives): Replace generation of call to
11123 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
11126 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
11127 First (Parameter_Associations ()) with the call to First_Actual that
11128 returns an actual parameter expression for both named and positional
11131 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
11132 check violation of restriction No_Dispatching_Calls.
11133 (Check_Controlling_Type): A formal of a tagged incomplete type is a
11134 controlling argument.
11136 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
11137 First/Next_Component_Or_Discriminant
11138 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
11139 (Find_Implemented_Interface): Removed. All the calls to this subprogram
11140 specify Any_Limited_Interface, and this functionality is already
11141 provided by the function Has_Abstract_Interfaces.
11142 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
11143 support concurrent types implementing interfaces.
11144 (Find_Implemented_Interface): Removed. All the calls to this subprogram
11145 specify kind Any_Limited_Interface, and this functionality is already
11146 provided by the function Has_Abstract_Interfaces.
11147 (Remove_Side_Effects): replace Controlled_Type by
11148 CW_Or_Controlled_Type whenever the issue is related to
11149 using or not the secondary stack.
11151 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
11152 P_Interface_Type_Definition to fulfill the new interface (the formal
11153 Is_Synchronized is no longer required).
11155 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
11156 Update dependencies.
11158 * exp_atag.ads, exp_atag.adb: New file
11160 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11161 Bob Duff <duff@adacore.com>
11162 Cyrille Comar <comar@adacore.com>
11164 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
11165 anonymous, use finalization list of enclosing dynamic scope.
11166 (Expand_N_Package_Declaration): For a library package declaration
11167 without a corresponding body, generate RACW subprogram bodies in the
11168 spec (just as we do for the task activation call).
11169 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
11170 Is_Abstract_Type. Make sure these are called only when appropriate.
11171 Remove all code for DSP option
11172 (CW_Or_Controlled_Type): new subprogram.
11174 2007-04-06 Eric Botcazou <botcazou@adacore.com>
11175 Ed Schonberg <schonberg@adacore.com>
11176 Gary Dismukes <dismukes@adacore.com>
11178 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
11179 parameter. If it is set to true, return a result capped according to
11180 the global upper bound for the index of an entry family.
11181 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
11182 (Build_Find_Body_Index): Adjust for above change.
11183 (Entry_Index_Expression): Likewise.
11184 (Is_Potentially_Large_Family): New function extracted from...
11185 (Collect_Entry_Families): ...here. Call it to detect whether the family
11186 is potentially large.
11187 (Build_Entry_Count_Expression): If the family is potentially large, call
11188 Family_Size with 'Cap' set to true.
11189 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
11190 a protected version of an operation declared in the private part of
11191 a protected object, because they may be invoked through a callback.
11192 (Set_Privals): If the type of a private component is an anonymous access
11193 type, do not create a new itype for each protected body.
11194 If the body of a protected operation creates
11195 controlled types (including allocators for class-widetypes), the
11196 body of the corresponding protected subprogram must include a
11198 (Build_Activation_Chain_Entity): Build the chain entity for extended
11200 (Type_Conformant_Parameters): Use common predicate Conforming_Types
11201 to determine whether operation overrides an inherited primitive.
11202 (Build_Wrapper_Spec): Add code to examine the parents while looking
11203 for a possible overriding candidate.
11204 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
11205 hold an actual parameter value since its initialization is separated
11206 from the the declaration. Prevents errors on null-excluding access
11209 2007-04-06 Thomas Quinot <quinot@adacore.com>
11210 Pablo Oliveira <oliveira@adacore.com>
11212 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
11213 Do an Unchecked_Conversion to handle the passage from the Underlying
11214 Type to the Base Type when calling Build_To_Any_Call and
11215 Build_From_Any_Call.
11216 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
11217 E_Constant, depending upon Variable formal.
11218 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
11219 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
11220 parameter that requires an extra constrained parameter, declare
11221 temporary for actual as a variable, not a constant.
11222 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
11223 the unit being compiled is the one that contains the stub type.
11224 Change primitive operation name for the RACW associated with a RAS
11225 from Call to _Call so it cannot clash with any legal identifier.
11226 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
11228 (Append_RACW_Bodies): New subprogram.
11229 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
11230 Add_Receiving_Stubs_To_Declarations functions.
11231 When expanding a package body, this list correspond to the
11232 statements in the HSS at the end of the pacakge.
11233 When expanding a package spec, this list correspond to the
11235 (Add_Receiving_Stubs_To_Declarations): Append the function
11236 registering the receiving stubs at the end of the 'Stmts' list.
11237 (RCI_Package_Locator): Pass the new Version generic formal when
11238 instantiating a RCI_Locator package.
11239 (Build_From_Any_Function): To compute the High bound for an
11240 unconstrained array actual, we add the Low bound with the length.
11241 Thus we must convert the low bound and the length to an appropriate
11242 type before doing the sum.
11243 (Build_Subprogram_Receiving_Stubs, PolyORB):
11244 * Retrieve the extra formals parameters at the
11245 end of the parameter stream.
11246 * Use Move_Any_Value to write back out parameters
11247 after executing the request as it is more efficient
11248 than Copy_Any_Value.
11249 * Build the any containing Extra Formals with the
11250 appropriate typecode.
11251 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
11252 empty Component_List.
11253 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
11254 the tree the declaration for an object that serves as actual parameter
11255 in server-side stubs.
11256 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
11257 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
11258 Use Build_Actual_Object_Declaration to prepare the actuals.
11259 (Add_Parameter_To_NVList): Set the parameter mode to In for
11260 Extra Constrained Parameters.
11261 (Build_General_Calling_Stubs): Set the parameter type to boolean for
11262 Extra Constrained parameters.
11263 (Build_To_Any_Function, Build_From_Any_Function,
11264 Built_TypeCode_Function): When Typ is implicit, call the correct
11265 function with the first not implicit parent type.
11266 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
11267 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
11268 typecode from the Etype. Therefore we retrieve the correct typecode
11269 with a call to Get_Any_Type.
11270 (Copy_Specification): Do controlling formal type substitution based on
11271 Is_Controlling_Formal flag, instead of caller-provided object type.
11272 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
11273 a RACW primitive operation, we might get a subprogram declaration for an
11274 ancestor of the RACW designated type (not for the designated type
11275 itself), in the case where this operation is inherited. In this case we
11276 have no easy means of determining the original tagged type for which
11277 the primitive was declared, so instead we now rely on
11278 Copy_Specification to use the Is_Controlling_Formal flag to determine
11279 which formals require type substitution.
11281 2007-04-06 Robert Dewar <dewar@adacore.com>
11282 Ed Schonberg <schonberg@adacore.com>
11284 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
11285 GNAT.Current_Exception are not allowed if pragma Restrictions
11286 (No_Exception_Propagation) is set and in any case make the associated
11287 handler unsuitable as a target for a local raise statement.
11288 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
11289 run-time subprogram CW_Membership by call to Build_CW_Membership.
11290 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
11291 by a function call, a temporary must be created before expanding the
11292 Constructor_Call itself, to prevent out-of-order elaboration in the
11293 back-end when stack checking is enabled..
11295 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11297 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
11298 result are the bounds of the left operand, not the right.
11300 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11303 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
11304 discriminant defaults.
11305 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
11306 (Make_Component_List_Attributes): Ditto.
11308 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11309 Bob Duff <duff@adacore.com>
11311 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
11312 an association with a box as providing a value even though the
11313 initialization procedure for the type is not available.
11314 (Resolve_Record_Aggregate): Check that a choice of an association with a
11315 box corresponds to a component of the type.
11316 (Resolve_Record_Aggregate): Split Is_Abstract flag into
11317 Is_Abstract_Subprogram and Is_Abstract_Type.
11319 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
11322 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
11323 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
11324 called only when appropriate.
11326 2007-04-06 Olivier Hainque <hainque@adacore.com>
11328 * g-alleve.ads (Low Level Vector type definitions): Map each to the
11329 associated vector view instead of all to the unsigned char view.
11331 * g-altcon.adb (Generic_Conversions): New internal generic package,
11332 offering facilities for all the Vector/View conversion routines
11333 implemented by this unit.
11334 (To_View/To_Vector - all versions): Reimplemented in a systematic
11335 manner, using the internal Generic_Conversions facilities.
11337 2007-04-06 Pascal Obry <obry@adacore.com>
11339 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
11341 (Create): Free the source string before storing the new one.
11343 2007-04-06 Vincent Celier <celier@adacore.com>
11345 * g-debpoo.adb (Validity): New package with a complete new
11346 implementation of subprograms Is_Valid and Set_Valid.
11347 (Is_Valid): Move to local package Validity
11348 (Set_Valid): Move to local package Validity
11350 2007-04-06 Arnaud Charlet <charlet@adacore.com>
11351 Pablo Oliveira <oliveira@adacore.com>
11353 * g-expect.adb (Get_Command_Output): When expanding the output buffer
11354 we must ensure that there is enough place for the new data we are going
11357 2007-04-06 Thomas Quinot <quinot@adacore.com>
11359 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
11362 2007-04-06 Jose Ruiz <ruiz@adacore.com>
11363 Vincent Celier <celier@adacore.com>
11365 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
11366 (Stack_String): Add this String that contains the name of the Stack
11367 package in the project file.
11368 (Packages_To_Check_By_Stack): Add this list that contains the packages
11369 to be checked by gnatstack, which are the naming and the stack packages.
11370 (Check_Files): If no .ci files were specified for gnatstack we add all
11371 the .ci files belonging to the projects, including binder generated
11373 (Non_VMS_Usage): Document that gnatstack accept project file switches.
11374 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
11375 Add gnatstack to the list of commands that use project file related
11376 switches, and get the single attribute Switches from the stack package
11377 in a project file when calling gnatstack. Parse the -U flag for
11378 processing files belonging to all projects in the project tree.
11379 Remove all processing for command Setup
11381 * prj-attr.adb: Add new package Stack with single attribute Switches
11383 * vms_conv.ads (Command_Type): Add command Stack.
11384 Move to body declarations that are only used in the body: types Item_Id,
11385 Translation_Type, Item_Ptr, Item and its subtypes.
11387 * vms_conv.adb: (Initialize): Add data for new command Stack.
11388 Add declarations moved from the spec: types Item_Id, Translation_Type,
11389 Item_Ptr, Item and its subtypes.
11390 (Cargs_Buffer): New table
11391 (Cargs): New Boolean global variable
11392 (Process_Buffer): New procedure to create arguments
11393 (Place): Put character in table Buffer or Cargs_Buffer depending on the
11395 (Process_Argument): Set Cargs when processing qualifiers for GNAT
11397 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
11398 empty, for table Cargs_Buffer.
11399 (Initialize): Remove component Setup in Command_List
11401 2007-04-06 Vincent Celier <celier@adacore.com>
11403 * gprep.adb (Process_Files.Process_One_File): Use full file name when
11404 issuing pragma Source_Reference.
11406 2007-04-06 Emmanuel Briot <briot@adacore.com>
11408 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
11409 [[:xdigit:]] character class.
11410 Also raise an exception when an invalid character class is used.
11412 2007-04-06 Pascal Obry <obry@adacore.com>
11414 * i-cstrea.ads: (fopen): Add encoding parameter.
11416 Change reference from a-sysdep.c to sysdep.c in comment.
11417 Update copyright notice.
11418 This set of patch add support for the encoding form parameter.
11420 * mingw32.h (S2WSU): New macro to convert from a string to a
11421 wide-string using the UTF-8 encoding. The S2WS macro supports now only
11422 standard 8bits encoding.
11423 (WS2SU): As above but converting from wide-sring to string.
11424 This is needed as it is necessary to have access to both versions in the
11425 runtime for the form parameter encoding support.
11426 This set of patch add support for the encoding form parameter.
11427 (S2WS): Improve implementation to handle cases where the filename is not
11428 UTF-8 encoded. In this case we default to using the current code page
11429 for the conversion.
11431 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
11432 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
11433 the constants defined in adaint.h.
11434 (fopen): Add encoding parameter.
11437 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
11438 encoding. This is needed for the Reset routine (freopen low level-call).
11440 * s-fileio.adb (Open): Decode encoding form parameter and set the
11441 corresponding encoding value into AFCB structure.
11442 (Reset): Pass the encoding value to freopen.
11443 (Close): Move the call to Lock_Task to the beginning of the procedure.
11445 2007-04-06 Geert Bosch <bosch@adacore.com>
11446 Robert Dewar <dewar@adacore.com>
11448 * i-fortra.ads: Add Double_Complex type.
11450 * impunit.adb: (Is_Known_Unit): New function
11451 Add Gnat.Byte_Swapping
11453 Add new Ada 2005 units
11454 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
11455 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
11456 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
11457 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
11459 * impunit.ads (Is_Known_Unit): New function
11461 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
11462 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
11463 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
11464 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
11465 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
11466 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
11469 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
11471 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
11473 2007-04-06 Eric Botcazou <botcazou@adacore.com>
11474 Arnaud Charlet <charlet@adacore.com>
11476 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
11477 __gnat_adjust_context_for_raise.
11478 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
11479 implementation of floating point operations as native x86 targets.
11480 So the FPU should be initialized in the same way using finit. Fix
11481 floating point operations accuracy issues.
11482 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
11483 member in struct sigaction, so as to avoid warning for incompatible
11486 2007-04-06 Serguei Rybin <rybin@adacore.com>
11488 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
11489 switches from previously loaded tree
11491 2007-04-06 Thomas Quinot <quinot@adacore.com>
11493 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
11494 cases where a given dependency has a body or not.
11495 (Write_With_File_Names): New subprogram, common code for the two cases
11498 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11499 Javier Miranda <miranda@adacore.com>
11501 * lib-xref.ads, lib-xref.adb:
11502 Modify the loop that collects type references, to include interface
11503 types that the type implements. List each of these interfaces when
11504 building the entry for the type.
11505 (Generate_Definition): Initialize component Def and Typ of new entry
11506 in table Xrefs, to avoid to have these components unitialized.
11507 (Output_References): Split Is_Abstract flag into
11508 Is_Abstract_Subprogram and Is_Abstract_Type.
11509 (Generate_Reference): Add barrier to do not generate the warning
11510 associated with Ada 2005 entities with entities generated by the
11513 2007-04-06 Robert Dewar <dewar@adacore.com>
11514 Arnaud Charlet <charlet@adacore.com>
11515 Vincent Celier <celier@adacore.com>
11517 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
11518 Update 'Exception Handling Control' chapter which was outdated.
11519 Minor fix to documentation of -gnatwq
11520 Remove section "Adapting the Run Time to a New C++ Compiler" because
11521 it is now obsolete.
11522 Add passage on need of -nostart-files in some non-ada-main cases.
11523 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
11524 Update documentation about Interfacing with C++
11525 Add documentation for new gnatmake switch -p
11526 Add missing protocol part in URLs.
11528 Document pragma Compile_Time_Error
11529 Add documentation for Object_Size indicating that stand alone
11530 objects can have a larger size in some cases.
11531 Add node for GNAT.Byte_Swapping, GNAT.SHA1
11532 Update reference to the Ravenscar profile.
11533 Document pragma Unreferenced_Objects
11535 * gnat-style.texi: Fix typo
11537 2007-04-06 Vincent Celier <celier@adacore.com>
11539 * mlib.adb (Building_Library): Only output "building a library..." in
11542 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
11543 files in verbose mode.
11545 * mlib-utl.adb (Ar): Only output the first object files when not in
11547 (Gcc): Do not display all the object files if not in verbose mode, only
11550 2007-04-06 Robert Dewar <dewar@adacore.com>
11552 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
11553 it no longer destroys the contents of Name_Buffer or Name_Len and
11554 non-standard and invalid names are handled better.
11555 (Get_Decoded_Name_String): Improve performance by using
11556 Name_Has_No_Encodings flag in the name table.
11557 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
11558 Used for debugging printouts.
11560 2007-04-06 Robert Dewar <dewar@adacore.com>
11561 Javier Miranda <miranda@adacore.com>
11562 Bob Duff <duff@adacore.com>
11564 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
11565 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
11566 there is no need to generate always a record_definition_node in case
11567 of synchronized interface types.
11568 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
11569 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
11570 illegal in Ada 95, in cases where it is legal. Change the warnings to
11571 errors in other cases. Don't give the error unless the "not null"
11572 parses properly. Correct the source position at which the error occurs.
11573 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
11574 P_Null_Exclusion, to suppress "not null" warnings.
11575 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
11576 associated goto statements.
11578 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
11581 * scans.ads (Type_Token_Location): New flag
11583 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
11584 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
11585 P_Null_Exclusion, to suppress "not null" warnings.
11587 2007-04-06 Robert Dewar <dewar@adacore.com>
11588 Javier Miranda <miranda@adacore.com>
11589 Bob Duff <duff@adacore.com>
11590 Vincent Celier <celier@adacore.com>
11592 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
11593 (Extensions_Allowed): No longer sets Ada_Version
11594 Entry for pragma Unreferenced_Objects
11596 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
11597 system.tasking if pragma priority used in a procedure
11598 (Analyze_Pragma, case Warning): Handle dot warning switches
11599 (Process_Compile_Time_Warning_Or_Error): New procedure
11600 (Analyze_Pragma): Add processing for Compile_Time_Error
11601 Add support for extra arguments External_Name and Link_Name.
11602 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
11603 (Process_Import_Or_Interface): Add support for the use of pragma Import
11605 (Extensions_Allowed): No longer affects Ada_Version
11606 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
11607 Is_Abstract_Type. Make sure these are called only when appropriate.
11608 Add processing for pragma Unreferenced_Objects
11610 * snames.h, snames.ads, snames.adb: Add entry for pragma
11612 Add new standard name Minimum_Binder_Options for new gprmake
11613 Add new standard names for gprmake: Archive_Suffix,
11614 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
11615 Library_Support, Library_Version_Options,
11616 Shared_Library_Minimum_Options,
11617 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
11618 Change Name_Call to Name_uCall so that it cannot clash with a legal
11620 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
11621 Append C_Plus_Plus to convention identifiers as synonym for CPP
11622 Add new standard names Stack and Builder_Switches
11623 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
11624 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
11625 Run_Path_Option, Toolchain_Version.
11626 Entry for pragma Unreferenced_Objects
11628 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
11629 switches, without repetition of "eD". Make sure that last character of
11630 -gnatep= switch is not taken as -gnat switch character.
11631 Complete rewrite of circuit for handling saving compilation options
11632 Occasioned by need to support dot switchs for -gnatw, but cleans up
11634 -gnatX does not affect Ada_Version
11635 Include -gnatyA in -gnatg style switches
11637 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
11638 warnings on return objects.
11639 (Warn_On_Useless_Assignment): Exclude warnings on return objects
11640 (Set_Dot_Warning_Switch): New procedure
11641 (Check_References): Add missing case of test for
11642 Has_Pragma_Unreferenced_Objects
11643 (Output_Unreferenced_Messages): Implement effect of new pragma
11644 Unreferenced_Objects, remove special casing of limited controlled
11647 2007-04-06 Vincent Celier <celier@adacore.com>
11649 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
11650 the default project path, initially done during elaboration of the
11652 If the prefix returned by Sdefault is null, get the prefix from a call
11653 to Executable_Prefix_Path.
11654 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
11657 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
11658 canonical directory name to open the directory from which files are
11660 (Record_Other_Sources): Idem.
11661 (Locate_Directory): Add the possibility to create automatically missing
11662 directories when Setup_Projects is True.
11663 Call Locate_Directory so that the directory will be created when
11664 Setup_Projects is True, for object dir, library dir, library ALI dir,
11665 library source copy dir and exec dir.
11667 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
11670 2007-04-06 Robert Dewar <dewar@adacore.com>
11672 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
11673 Use First/Next_Component_Or_Discriminant
11674 (Analyze_Record_Representation_Clause):
11675 Use First/Next_Component_Or_Discriminant
11676 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
11677 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
11678 definition if type is unconstrained.
11679 (Adjust_Record_For_Reverse_Bit_Order): New procedure
11680 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
11681 Is_Abstract_Subprogram and Is_Abstract_Type.
11682 (Adjust_Record_For_Reverse_Bit_Order): New procedure
11684 * repinfo.adb (List_Record_Info): Use First/
11685 Next_Component_Or_Discriminant.
11687 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
11690 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
11691 Include -gnatyA in default switches
11693 * opt.ads: (Warn_On_Non_Local_Exception): New flag
11694 (Warn_On_Reverse_Bit_Order): New flag
11695 (Extensions_Allowed): Update the documentation.
11696 (Warn_On_Questionable_Missing_Parens): Now on by default
11698 * usage.adb: Add documentation of -gnatw.x/X switches
11699 Document new -gnatyA style switch
11700 -gnatq warnings are on by default
11702 2007-04-06 Ed Falis <falis@adacore.com>
11704 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
11705 full word is no longer compared twice.
11707 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11709 * sem_ch10.adb (Install_Limited_Context_Clauses.
11710 Expand_Limited_With_Clause): Use a new copy of selector name in the
11711 call to Make_With_Clause. This fixes the tree structure for ASIS
11712 purposes. Nothing is changed in the compiler behaviour.
11713 (Process_Body_Clauses): Handle properly use clauses whose prefix is
11714 a package renaming.
11715 (Install_Limited_With_Clauses): Do not install non-limited view when it
11716 is still incomplete.
11718 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11719 Gary Dismukes <dismukes@adacore.com>
11721 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
11722 when capturing size information, instead of base type, which for a
11723 formal array type will be the unconstrained type.
11724 (Analyze_Formal_Object_Declaration): Add check for illegal default
11725 expressions for a formal in object of a limited type.
11726 (Instantiate_Object): Ditto.
11727 (Check_Formal_Package_Instance): Skip entities that are formal objects,
11728 because they were defaulted in the formal package and no check applies
11730 (Check_Formal_Package_Instance): Extend conformance check to other
11731 discrete types beyond Integer.
11732 (Process_Default): Copy directly the unmatched formal. A generic copy
11733 has already been performed in Analyze_Formal_Package.
11734 (Analyze_Associations): If a formal subprogram has no match, check for
11735 partial parametrization before looking for a default, to prevent
11737 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
11738 not set the instantiation environment before analyzing the actuals.
11739 Fixes regression on 8515-003 with implementation of AI-133.
11740 Set_Instance_Env checks whether the generic unit is a predefined
11741 unit, in which case the instance must be analyzed with the latest Ada
11742 mode. This setting must take place after analysis of the actuals,
11743 because the actuals must be analyzed and frozen in the Ada mode extant
11744 outside of the current instantiation.
11745 (Save_Env, Restore_Env): Preserve and restore the configuration
11746 parameters so that predefined units can be compiled in the proper Ada
11748 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
11749 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
11750 and Is_Abstract_Type.
11751 (Analyze_Formal_Package): For better error recovery, Add exception
11752 handler to catch Instantion_Error, which can be raised in
11753 Analyze_Associations
11755 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11756 Bob Duff <duff@adacore.com>
11757 Gary Dismukes <dismukes@adacore.com>
11759 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
11760 prefix type is a discriminated subtype of the type of the formal.
11761 (Analyze_Allocator): Collect all coextensions regardless of the context.
11762 Whether they can be allocated statically is determined in exp_ch4.
11763 (Analyze_Selected_Component): If the prefix is a limited view and the
11764 non-limited view is available, use the non-limited one.
11765 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
11766 therefore illegal), suggest a qualified expression rather than a type
11767 conversion, because a type conversion would be illegal in this context.
11768 (Anayze_Allocator): Trace recursively all nested allocators so that all
11769 coextensions are on the corresponding list for the root. Do no mark
11770 coextensions if the root allocator is within a declaration for a stack-
11771 allocated object, because the access discriminants will be allocated on
11773 (Analyze_Call): Remove restriction on calls to limited functions for the
11774 cases of generic actuals for formal objects, defaults for formal objects
11775 and defaults for record components.
11776 (Analyze_Allocator): Before analysis, chain coextensions on the proper
11777 element list. Their expansion is delayed until the enclosing allocator
11778 is processed and its finalization list constructed.
11779 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
11780 for an operation with the given name among the primitive operations of
11781 the corresponding record type.
11782 (Analyze_Selected_Component): If the prefix is a task type that
11783 implements an interface, and there is no entry with the given name,
11784 check whether there is another primitive operation (e.g. a function)
11786 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
11787 properly the indexing of a function call written in prefix form, where
11788 the function returns an array type, and all parameters of the function
11789 except the first have defaults.
11790 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
11791 the original operands, rather than relocating them, for efficiency and
11792 to work properly when an operand is overloaded.
11793 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
11794 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
11795 (Analyze_Selected_Component): If the prefix is a private extension, only
11796 scan the visible components, not those of the full view.
11797 (Try_Primitive_Operation): If the operation is a procedure, collect all
11798 possible interpretations, as for a function, because in the presence of
11799 classwide parameters several primitive operations of the type can match
11800 the given arguments.
11802 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11803 Robert Dewar <dewar@adacore.com>
11805 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
11806 tag-indeterminate call to an abstract function, when the left-hand side
11808 (Analyze_Loop_Statement): Improve detection of infinite loops
11810 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11811 Thomas Quinot <quinot@adacore.com>
11813 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
11814 out of Analyze_Package_Declaration, because processing must be applied
11815 to package bodies as well, for deferred constants completed by pragmas.
11816 (Analyze_Package_Declaration): When the package declaration being
11817 analyzed does not require an explicit body, call Check_Completion.
11818 (May_Need_Implicit_Body): An implicit body is required when a package
11819 spec contains the declaration of a remote access-to-classwide type.
11820 (Analyze_Package_Body): If the package contains RACWs, append the
11821 pending subprogram bodies generated by exp_dist at the end of the body.
11822 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
11823 Is_Abstract_Subprogram and Is_Abstract_Type.
11824 (Preserve_Full_Attributes): The full entity list is not an attribute
11825 that must be preserved from full to partial view.
11827 * sem_dist.adb (Add_RAS_Dereference_TSS):
11828 Change primitive name to _Call so it cannot clash with any legal
11829 identifier, and be special-cased in Check_Completion.
11830 Mark the full view of the designated type for the RACW associated with
11831 a RAS as Comes_From_Source to get proper view switching when installing
11832 private declarations.
11833 Provite a placeholder nested package body along with the nested spec
11834 to have a place for Append_RACW_Bodies to generate the calling stubs
11835 and stream attributes.
11837 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11838 Robert Dewar <dewar@adacore.com>
11840 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
11841 that is a limited view, check the non-limited view if available.
11842 (Undefined): Refine error message for missing with of Text_IO
11843 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
11844 to distinguish real missing with cases.
11845 Fix format of all missing with messages
11846 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
11847 renaming as body when renamed entity is abstract.
11849 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11850 Javier Miranda <miranda@adacore.com>
11852 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
11853 predicate recursive, to handle complex expressions on literals whose
11854 spurious ambiguity comes from the abstract interpretation of some
11856 (Interface_Present_In_Ancestor): Add support to concurrent record
11858 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
11859 Is_Abstract_Subprogram and Is_Abstract_Type.
11861 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11862 Javier Miranda <miranda@adacore.com>
11864 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
11865 dereference of a local object R created as a reference to another
11866 object O, use the access level of O.
11867 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
11868 rather than local Same_Formal_Type, to check whether protected operation
11869 overrides an inherited one.
11870 (Same_Formal_Type): New predicate, used when matching signatures of
11871 overriding synchronized operations, to handle the case when a formal
11872 has a type that is a generic actual.
11873 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
11874 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
11875 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
11876 syntactic ambiguities involving indexing of function calls that return
11878 (Abstract_Interface_List): New subprogram that returns the list of
11879 abstract interfaces associated with a concurrent type or a
11880 concurrent record type.
11881 (Interface_Present_In_Parent): New subprogram used to check if a
11882 given type or some of its parents implement a given interface.
11883 (Collect_Abstract_Interfaces): Add support for concurrent types
11884 with interface types.
11885 (Has_Abstract_Interfaces): Add support for concurrent types with
11887 (Is_Parent): New subprogram that determines whether E1 is a parent
11888 of E2. For a concurrent type its parent is the first element of its
11889 list of interface types; for other types this function provides the
11890 same result than Is_Ancestor.
11891 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
11892 (Collect_Synchronized_Interfaces): Removed because the subprogram
11893 Collect_Abstract_Interfaces provides this functionality.
11894 (Collect_Abstract_Interfaces): Minor update to give support to
11895 concurrent types and thus avoid undesired code duplication.
11896 (Get_Subprogram_Entity): Handle entry calls.
11897 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
11899 (Enter_Name): Do not give -gnatwh hiding warning for record component
11900 entities, they never result in hiding.
11902 2007-04-06 Ed Schonberg <schonberg@adacore.com>
11903 Robert Dewar <dewar@adacore.com>
11905 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
11906 to chain nested components that are allocators for access discriminants
11907 of the enclosing object.
11908 Add N_Push and N_Pop nodes
11909 New field Exception_Label added
11910 (Local_Raise_Statements): New field in N_Exception_Handler_Node
11911 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
11912 (Is_Coextension): New flag for allocators, to mark allocators that
11913 correspond to access discriminants of dynamically allocated objects.
11914 (N_Block_Statement): Document the fact that the corresponding entity
11915 can be an E_Return_Statement.
11916 (Is_Coextension): New flag for allocators.
11917 Remove all code for DSP option
11919 * sprint.ads, sprint.adb: Display basic information for class_wide
11920 subtypes. Add handling of N_Push and N_Pop nodes
11922 2007-04-06 Arnaud Charlet <charlet@adacore.com>
11924 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
11925 before propagating exception.
11927 2007-04-06 Olivier Hainque <hainque@adacore.com>
11929 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
11930 an address always within the call instruction from a return address.
11932 2007-04-06 Olivier Hainque <hainque@adacore.com>
11933 Eric Botcazou <botcazou@adacore.com>
11935 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
11936 expression with a COMPOUND_EXPR including the call instead of emitting
11937 the call directly here.
11938 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
11939 high bound is constant and the slice is empty. Tidy.
11940 (tree_transform, case N_Op_Not): Handle properly the case where the
11941 operation applies to a private type whose full view is a modular type.
11942 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
11943 Address_Clause, use the associated Expression as the GNAT tree
11944 representing the choice value to ensure the corresponding GCC tree is
11945 of the proper kind.
11946 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
11947 instead of just the operands, as the base GCC stabilize_reference does.
11948 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
11949 requested; otherwise fail.
11950 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
11952 2007-04-06 Thomas Quinot <quinot@adacore.com>
11954 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
11955 implementation of UI_Div.
11956 (UI_Div): Reimplement as a call to UI_Div_Rem.
11957 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
11958 remainder, avoiding the cost of a multiplication and a subtraction.
11959 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
11960 provides both quotient and remainder in a single computation.
11961 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
11962 functions for uint.
11963 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
11964 is undefined if the given n is not inversible.
11966 2007-04-06 Olivier Hainque <hainque@adacore.com>
11968 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
11969 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
11972 2007-04-06 Eric Botcazou <botcazou@adacore.com>
11973 Olivier Hainque <hainque@adacore.com>
11975 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
11976 when updating the contents of the old pointer to an unconstrained array.
11977 (end_subprog_body): Set error_gnat_node to Empty.
11978 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
11979 (unchecked_convert): For subtype to base type conversions, require that
11980 the source be a subtype if it is an integer type.
11981 (builtin_decls): New global, vector of available builtin functions.
11982 (gnat_pushdecl): Add global builtin function declaration nodes to the
11983 builtin_decls list.
11984 (gnat_install_builtins): Adjust comments.
11985 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
11986 calling gnat_pushdecl, so that it knows when it handed a builtin
11987 function declaration node.
11988 (builtin_decl_for): Search the builtin_decls list.
11990 2007-04-06 Eric Botcazou <botcazou@adacore.com>
11992 * s-stchop-vxworks.adb:
11993 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
11995 2007-04-06 Robert Dewar <dewar@adacore.com>
11996 Arnaud Charlet <charlet@adacore.com>
11998 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
12000 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
12002 Add mention of -Sev (set initialize_scalars option from environment
12003 variable at run time) in gnatbind usage message.
12005 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
12007 * fname-uf.ads: Minor comment fix
12009 * osint.ads: Change pragma Elaborate to Elaborate_All
12011 * par-load.adb: Add documentation.
12013 * sem_cat.ads, sem_cat.adb: Minor code reorganization
12015 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
12017 * s-secsta.ads: Extra comments
12019 * s-soflin.ads: Minor comment fixes
12021 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
12023 * s-wchcon.ads: Minor comment addition
12025 * treepr.adb: Minor change in message
12026 (Print_Name,Print_Node): Make these debug printouts more robust: print
12027 "no such..." instead of crashing on bad input.
12029 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
12031 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
12032 instead of gnat_signed_or_unsigned_type.
12033 * utils.c (gnat_signed_or_unsigned_type): Remove.
12034 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
12035 * gigi.h (gnat_signed_or_unsigned_type): Remove
12037 2007-03-09 Roger Sayle <roger@eyesopen.com>
12039 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
12040 fold with the result of buildN.
12041 * decl.c (gnat_to_gnu_entity): Likewise.
12042 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
12043 * utils.c (finish_record_type, merge_sizes, max_size, convert):
12045 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
12046 nonbinary_modular_operation, build_binary_op, build_unary_op,
12047 build_cond_expr): Likewise.
12049 * utils.c (convert): Use fold_build1 when casting values to void.
12050 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
12051 fold_convert instead of convert when appropriate.
12053 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
12055 * Make-lang.in: Add install-pdf target as copied from
12056 automake v1.10 rules.
12058 2007-02-28 Andreas Schwab <schwab@suse.de>
12060 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
12061 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
12062 (doc/gnat-style.info): Likewise.
12064 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
12066 * gnat-style.texi: Standardize title page.
12067 * gnat_rm.texi: Likewise.
12068 * gnat_ugn.texi: Likewise.
12070 2007-02-25 Mark Mitchell <mark@codesourcery.com>
12072 * decl.c (annotate_value): Adjust for refactoring of tree_map
12075 2007-02-24 Mark Mitchell <mark@codesourcery.com>
12077 * decl.c (annotate_value): Adjust for refactoring of tree_map
12080 2007-02-21 Ed Schonberg <schonberg@adacore.com>
12083 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
12084 untagged derived type, add hidden components to keep discriminant
12085 layout consistent, when a given discriminant of the derived type
12086 constraints several discriminants of the parent type.
12088 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
12089 Sandra Loosemore <sandra@codesourcery.com>
12091 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
12092 build the call expression.
12093 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
12094 * utils.c (max_size) <tcc_exceptional>: Delete.
12095 <tcc_vl_exp>: New case.
12096 <tcc_expression>: Delete CALL_EXPR subcase.
12097 (build_global_cdtor): Use build_call_nary instead of build3.
12098 * utils2.c (build_call_1_expr): Likewise.
12099 (build_call_2_expr): Likewise.
12100 (build_call_0_expr): Likewise.
12101 (build_call_alloc_dealloc): Likewise.
12103 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
12105 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
12106 get_action_description_for): Replace _Unwind_Word with _uleb128_t
12107 and _Unwind_SWord with _sleb128_t.
12109 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
12111 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
12112 * decl.c: Include gt-ada-decl.h.
12113 (annotate_value_cache): New.
12114 (annotate_value): Use it instead of TREE_COMPLEXITY.
12116 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
12118 * misc.c, utils2.c: Fix comment typos.
12120 2007-01-24 Roger Sayle <roger@eyesopen.com>
12122 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
12123 TREE_CONSTANT_OVERFLOW.
12124 (allocatable_size_p, annotate_value): Likewise.
12125 * trans.c (gnat_to_gnu): Likewise.
12126 * utils.c (unchecked_convert): Likewise.
12127 * utils2.c (build_simple_component_ref): Likewise.
12129 2007-01-23 Richard Guenther <rguenther@suse.de>
12132 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
12133 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
12134 (gnatboot3): Likewise.
12135 (GNATBIND): Do not define.
12136 * Makefile.in (GNATBIND): Do not define.
12138 2007-01-08 Richard Guenther <rguenther@suse.de>
12140 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
12141 * trans.c (gnat_to_gnu): Likewise.
12143 2006-12-07 Geoffrey Keating <geoffk@apple.com>
12145 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
12146 * adaint.c: Likewise.
12148 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
12150 Merge from gimple-tuples-branch:
12151 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
12153 * ada-tree.h (lang_tree_node): Handle gimple tuples.
12154 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
12155 GIMPLE_MODIFY_STMT.
12157 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
12159 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
12160 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
12163 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
12166 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
12167 if the initializer takes into account the padding.
12169 2006-11-11 Richard Guenther <rguenther@suse.de>
12171 * trans.c (maybe_stabilize_reference): Remove handling of
12172 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
12174 2006-11-05 Arnaud Charlet <charlet@adacore.com>
12177 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
12178 (To_Target_Priority): New function.
12180 2006-10-31 Robert Dewar <dewar@adacore.com>
12182 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
12183 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
12184 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
12185 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
12186 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
12187 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
12188 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
12189 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
12190 a-szbzha.adb: Minor reformatting. Fix header.
12192 * a-numaux-x86.adb: Add parentheses for use of unary minus
12193 * a-ngcefu.adb: Supply missing parentheses for unary minus
12194 * a-ngcoty.adb: Add parens for use of unary minus
12195 * a-ngelfu.adb: Add missing parens for unary minus
12196 * a-tifiio.adb: Add parentheses for uses of unary minus
12198 2006-10-31 Robert Dewar <dewar@adacore.com>
12199 Bob Duff <duff@adacore.com>
12200 Ed Schonberg <schonberg@adacore.com>
12202 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
12203 with multiplying operator.
12204 (Expected_Type_Is_Any_Real): New function to determine from the Parent
12205 pointer whether the context expects "any real type".
12206 (Resolve_Arithmetic_Op): Do not give an error on calls to the
12207 universal_fixed "*" and "/" operators when they are used in a context
12208 that expects any real type. Also set the type of the node to
12209 Universal_Real in this case, because downstream processing requires it
12210 (mainly static expression evaluation).
12211 Reword some continuation messages
12212 Add some \\ sequences to continuation messages
12213 (Resolve_Call): Refine infinite recursion case. The test has been
12214 sharpened to eliminate some false positives.
12215 Check for Current_Task usage now includes entry barrier, and is now a
12216 warning, not an error.
12217 (Resolve): If the call is ambiguous, indicate whether an interpretation
12218 is an inherited operation.
12219 (Check_Aggr): When resolving aggregates, skip associations with a box,
12220 which are priori correct, and will be replaced by an actual default
12221 expression in the course of expansion.
12222 (Resolve_Type_Conversion): Add missing support for conversion from
12223 a class-wide interface to a tagged type. Minor code cleanup.
12224 (Valid_Tagged_Converion): Add support for abstact interface type
12226 (Resolve_Selected_Component): Call Generate_Reference here rather than
12227 during analysis, and use May_Be_Lvalue to distinguish read/write.
12228 (Valid_Array_Conversion): New procedure, abstracted from
12229 Valid_Conversion, to incorporate accessibility checks for arrays of
12230 anonymous access types.
12231 (Valid_Conversion): For a conversion to a numeric type occurring in an
12232 instance or inlined body, no need to check that the operand type is
12233 numeric, since this has been checked during analysis of the template.
12234 Remove legacy test for scope name Unchecked_Conversion.
12236 * sem_res.ads: Minor reformatting
12238 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
12239 (PE_Current_Task_In_Entry_Body): New exception code
12240 (SE_Restriction_Violation): Removed, not used
12242 * a-except.ads: Update comments.
12244 * types.h, types.ads: Add definition for Validity_Check
12245 (PE_Current_Task_In_Entry_Body): New exception code
12246 (SE_Restriction_Violation): Removed, not used
12248 2006-10-31 Thomas Quinot <quinot@adacore.com>
12250 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
12253 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
12254 Jose Ruiz <ruiz@adacore.com>
12256 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
12257 part of Ada.Calendar: all subprogram raise Unimplemented.
12258 (Split_W_Offset): Temp function body, raising Unimplemented
12260 * a-calend.ads, a-calend-vms.ads:
12261 Add imported variable Invalid_TZ_Offset used to designate targets unable
12262 to support time zones.
12263 (Unimplemented): Temporary function raised by the body of new
12265 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
12266 unit provides handling of leap seconds and is used by the new Ada 2005
12267 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
12268 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
12269 version returns an extra value which is the offset to UTC.
12271 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
12272 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
12273 (Split_W_Offset): New function body.
12274 (Time_Of): When a date is close to UNIX epoch, compute the time for
12275 that date plus one day (that amount is later substracted after
12276 executing mktime) so there are no problems with time zone adjustments.
12278 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
12280 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
12281 a-catizo.ads, a-catizo.adb: New files.
12283 * impunit.adb: Add new Ada 2005 entries
12285 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
12286 Rename all occurences of "__gnat_localtime_r" to
12287 "__gnat_localtime_tzoff".
12288 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
12289 zone data and calculate the GMT offset.
12290 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
12291 Use the field "tm_gmtoff" to extract the GMT offset.
12292 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
12293 the external variable "timezone" to calculate the GMT offset.
12295 2006-10-31 Arnaud Charlet <charlet@adacore.com>
12296 Jose Ruiz <ruiz@adacore.com>
12298 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
12299 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
12300 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
12301 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
12302 System.Any_Priority to a POSIX priority on the target.
12304 * system-linux-ia64.ads:
12305 Extend range of Priority types on Linux to use the whole range made
12306 available by the system.
12308 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
12309 function maps from System.Any_Priority to a POSIX priority on the
12311 (PTHREAD_PRIO_PROTECT): Set real value.
12312 (PTHREAD_PRIO_INHERIT): Now a function.
12313 (SIGCPUFAIL): New signal.
12314 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
12315 are documented as reserved by the OS.
12317 * system-aix.ads: Use the full range of priorities provided by the
12320 * s-taprop-posix.adb: Call new function To_Target_Priority.
12321 (Set_Priority): Take into account Task_Dispatching_Policy and
12322 Priority_Specific_Dispatching pragmas when determining if Round Robin
12323 must be used for scheduling the task.
12325 * system-linux-x86_64.ads, system-linux-x86.ads,
12326 system-linux-ppc.ads: Extend range of Priority types on Linux to use
12327 the whole range made available by the system.
12329 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
12330 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
12331 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
12332 when deallocating the TCB in order to avoid potential references to
12334 (Set_Priority): Take into account Task_Dispatching_Policy and
12335 Priority_Specific_Dispatching pragmas when determining if Round Robin
12336 or FIFO within priorities must be used for scheduling the task.
12338 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
12339 the Thread field (to be used internally by the run-time system) and the
12340 kernel-level task id in the LWP field (to be used by the debugger).
12341 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
12342 instance, and propagate the current task options to the spawned task.
12343 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
12344 (Initialize): Set Round Robin dispatching when the corresponding pragma
12347 2006-10-31 Robert Dewar <dewar@adacore.com>
12349 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
12350 system-linux-hppa.ads, system-hpux-ia64.ads,
12351 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
12352 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
12353 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
12354 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
12355 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
12356 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
12357 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
12358 Default_Bit_Order) to kill constant condition warnings for references
12361 2006-10-31 Vincent Celier <celier@adacore.com>
12362 Eric Botcazou <ebotcazou@adacore.com>
12364 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
12365 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
12366 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
12367 Ext_To, when building the library file name
12369 * mlib-tgt-vxworks.adb: ditto.
12370 (Get_Target_Suffix): Add support for x86 targets.
12372 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
12374 * mlib-tgt-darwin.adb:
12375 Use Append_To, instead of Ext_To, when building the library file name
12376 (Flat_Namespace): New global variable.
12377 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
12378 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
12379 (Link_Shared_Libgcc): Delete.
12380 (Build_Dynamic_Library): Adjust for above changes.
12382 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
12384 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
12386 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
12387 (Initialize): Add type conversions required by above change.
12389 2006-10-31 Jose Ruiz <ruiz@adacore.com>
12391 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
12392 (getpid): New body for this function that uses the underlying taskIdSelf
12393 function for VxWorks 5 and VxWorks 6 in kernel mode.
12394 (unsigned_int): New type, modular to allow logical bit operations.
12395 (taskOptionsGet): New imported function.
12397 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
12398 field to be compliant with the type used by the corresponding operating
12401 2006-10-31 Pascal Obry <obry@adacore.com>
12402 Eric Botcazou <ebotcazou@adacore.com>
12403 Vincent Celier <celier@adacore.com>
12405 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
12406 ASCII version of the registry API. This is needed as the GNAT runtime
12407 is now UNICODE by default.
12409 (get_gcc_version): Do not hardcode the return value.
12410 (__gnat_file_time_name): On Windows properly set the default returned
12411 value to -1 which corresponds to Invalid_Time.
12412 (__gnat_fopen): New routine. A simple wrapper on all plateforms
12413 except on Windows where it does conversion for unicode support.
12414 (__gnat_freopen): Idem.
12415 (__gnat_locate_exec_on_path): If environment variable PATH does not
12416 exist, return a NULL pointer
12418 * adaint.h: (__gnat_fopen): Declare.
12419 (__gnat_freopen): Likewise.
12421 * mingw32.h (_tfreopen): Define this macro here for older MingW
12423 Activate the unicode support on platforms using a MingW runtime
12424 version 3.9 or newer.
12426 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
12427 This is needed for proper unicode support on Windows.
12430 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
12431 Nicolas Setton <setton@adacore.com>
12432 Olivier Hainque <hainque@adacore.com>
12433 Gary Dismukes <dismukes@adacore.com>
12435 * gigi.h: (tree_code_for_record_type): Declare.
12436 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
12437 (get_global_renaming_pointers): Rename to
12438 invalidate_global_renaming_pointers.
12439 (static_ctors): Delete.
12440 (static_dtors): Likewise.
12441 (gnat_write_global_declarations): Declare.
12442 (create_var_decl): Adjust descriptive comment to indicate that the
12443 subprogram may return a CONST_DECL node.
12444 (create_true_var_decl): Declare new function, similar to
12445 create_var_decl but forcing the creation of a VAR_DECL node.
12446 (get_global_renaming_pointers): Declare.
12447 (add_global_renaming_pointer): Likewise.
12449 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
12451 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
12452 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
12454 (gnat_to_gnu_entity): Remove From_With_Type from computation for
12456 <E_Access_Type>: Use the Non_Limited_View as the full view of the
12457 designated type if the pointer comes from a limited_with clause. Make
12458 incomplete designated type if it is in the main unit and has a freeze
12460 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
12461 Underlying_Full_View similarly. Return earlier if the full view already
12462 has an associated tree.
12463 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
12464 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
12465 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
12466 reference type built for objects with an address clause.
12467 Use create_true_var_decl with const_flag set for
12468 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
12470 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
12471 for Character and Wide_Character types. This info is read by the
12472 dwarf-2 writer, and is needed to be able to use the command "ptype
12473 character" in the debugger.
12474 (gnat_to_gnu_entity): When generating a type representing
12475 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
12476 so that debug writers can distinguish it from ordinary integers.
12477 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
12478 addition to TREE_READONLY to assert the constantness of variables for
12479 elaboration purposes.
12480 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
12481 parameters to call new Einfo function First_Formal_With_Extras.
12482 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
12483 protected type with its corresponding discriminant, to obtain a usable
12485 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
12486 for a multiple elaboration of the "equivalent" type.
12487 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
12488 into record_global_renaming_pointer.
12489 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
12490 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
12491 <E_Array_Subtype>: Likewise.
12492 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
12493 incomplete subtypes and incomplete subtypes of incomplete types visible
12494 through a limited with clause.
12495 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
12496 the base index type for the maximum size of the array only if they are
12498 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
12499 expression into a SAVE_EXPR if stabilization failed.
12501 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
12502 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
12503 by lower level compilation passes.
12504 (gnat_genericize): New function, lowering a function body to GENERIC.
12505 Turn the type of RESULT_DECL into a real reference type if the decl
12506 has been marked DECL_BY_REFERENCE, and adjust references to the latter
12508 (gnat_genericize_r): New function. Tree walking callback for
12510 (convert_from_reference, is_byref_result): New functions. Helpers for
12512 (create_type_decl): Call gnat_pushdecl before calling
12513 rest_of_decl_compilation, to make sure that field TYPE_NAME of
12514 type_decl is properly set before calling the debug information writers.
12515 (write_record_type_debug_info): The heuristics which compute the
12516 alignment of a field in a variant record might not be accurate. Add a
12517 safety test to make sure no alignment is set to a smaller value than
12518 the alignment of the field type.
12519 (make_dummy_type): Use the Non_Limited_View as the underlying type if
12520 the type comes from a limited_with clause. Do not loop on the full view.
12521 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
12522 (dummy_node_table): New global variable, moved from decl.c.
12523 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
12524 (save_gnu_tree): Use above macros.
12525 (get_gnu_tree): Likewise.
12526 (present_gnu_tree): Likewise.
12527 (init_dummy_type): New function, moved from decl.c. Use above macros.
12528 (make_dummy_type): Likewise.
12529 (tree_code_for_record_type): New function extracted from make_dummy_type
12530 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
12531 (static_ctors): Change it to a vector, make static.
12532 (static_dtors): Likewise.
12533 (end_subprog_body): Adjust for above change.
12534 (build_global_cdtor): Moved from trans.c.
12535 (gnat_write_global_declarations): Emit global constructor and
12536 destructor, and call cgraph_optimize before emitting debug info for
12537 global declarations.
12538 (global_decls): New global variable.
12539 (gnat_pushdecl): Store the global declarations in global_decls, for
12541 (gnat_write_global_declarations): Emit debug information for global
12543 (create_var_decl_1): Former create_var_decl, with an extra argument to
12544 state whether the creation of a CONST_DECL is allowed.
12545 (create_var_decl): Behavior unchanged. Now a wrapper around
12546 create_var_decl_1 allowing CONST_DECL creation.
12547 (create_true_var_decl): New function, similar to create_var_decl but
12548 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
12549 (create_field_decl): Do not always mark the field as addressable
12550 if its type is an aggregate.
12551 (global_renaming_pointers): New static variable.
12552 (add_global_renaming_pointer): New function.
12553 (get_global_renaming_pointers): Likewise.
12555 * misc.c (gnat_dwarf_name): New function.
12556 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
12557 (gnat_post_options): Add comment about structural alias analysis.
12558 (gnat_parse_file): Do not call cgraph_optimize here.
12559 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
12561 * trans.c (process_freeze_entity): Don't abort if we already have a
12562 non dummy GCC tree for a Concurrent_Record_Type, as it might
12563 legitimately have been elaborated while processing the associated
12564 Concurrent_Type prior to this explicit freeze node.
12565 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
12566 exception handler volatile if it is of variable size.
12567 (process_type): Remove bypass for types coming from a limited_with
12569 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
12570 actual, convert the corresponding gnu_actual to the real destination
12571 type when necessary.
12572 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
12573 originally TREE_READONLY but whose elaboration cannot be performed
12575 Part of fix for F504-021.
12576 (tree_transform, subprogram cases): Change loops on formal parameters to
12577 call new Einfo function First_Formal_With_Extras.
12578 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
12579 stemming from type conversion for the lhs.
12580 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
12581 number of bits per unit for components of records.
12582 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
12583 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
12584 with At_End_Proc after the SJLJ EH cleanup.
12585 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
12587 (elaborate_all_entities): Do not retest type_annotate_only.
12588 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
12589 result type of an abstract subprogram, which may be an itype associated
12590 with an anonymous access result (related to AI-318-02).
12591 (build_global_cdtor): Move to utils.c.
12592 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
12593 this choice is not a null tree nor an integer constant.
12594 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
12595 on the body of elaboration routines instead of mark_unvisited.
12596 (add_stmt): Do not mark the tree.
12597 (add_decl_expr): Tweak comment.
12598 (mark_unvisited): Delete.
12599 (unshare_save_expr): New static function.
12600 (call_to_gnu): Issue an error when making a temporary around a
12601 procedure call because of non-addressable actual parameter if the
12602 type of the formal is by_reference.
12603 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
12604 after building the elaboration routine.
12606 2006-10-31 Bob Duff <duff@adacore.com>
12608 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
12609 as finalization-started, so we can raise Program_Error on 'new'.
12611 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
12612 collection has already started.
12614 * s-finimp.ads (Collection_Finalization_Started): Added new special
12615 flag value for indicating that a collection's finalization has started.
12617 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
12618 create a task whose master has already waited for dependent tasks.
12620 2006-10-31 Robert Dewar <dewar@adacore.com>
12622 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
12624 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
12625 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
12626 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
12627 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
12628 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
12629 a-except-2005.ads: Add pragma Preelaborable_Warning
12631 2006-10-31 Robert Dewar <dewar@adacore.com>
12632 Jose Ruiz <ruiz@adacore.com>
12634 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
12636 * ali.adb (Get_Name): Properly handle scanning of wide character names
12637 encoded with brackets notation.
12638 (Known_ALI_Lines): Add S lines to this list.
12639 (Scan_ALI): Acquire S (priority specific dispatching) lines.
12640 New flag Elaborate_All_Desirable in unit table
12642 * ali.ads (Priority_Specific_Dispatching): Add this range of
12643 identifiers to be used for Priority_Specific_Dispatching table entries.
12644 (ALIs_Record): Add First_Specific_Dispatching and
12645 Last_Specific_Dispatching that point to the first and last entries
12646 respectively in the priority specific dispatching table for this unit.
12647 (Specific_Dispatching): Add this table for storing each S (priority
12648 specific dispatching) line encountered in the input ALI file.
12649 New flag Elaborate_All_Desirable in unit table
12651 * bcheck.adb: (Check_Configuration_Consistency): Add call to
12652 Check_Consistent_Dispatching_Policy.
12653 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
12654 verifying that the use of Priority_Specific_Dispatching,
12655 Task_Dispatching_Policy, and Locking_Policy is consistent across the
12658 * bindgen.adb: (Public_Version_Warning): function removed.
12659 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
12660 required information from ALI files in order to initialize the table
12661 containing the specific dispatching policy.
12662 (Gen_Adainit_Ada): Generate the variables required for priority specific
12663 dispatching entries (__gl_priority_specific_dispatching and
12664 __gl_num_specific_dispatching).
12665 (Gen_Adainit_C): Generate the variables required for priority specific
12666 dispatching entries (__gl_priority_specific_dispatching and
12667 __gl_num_specific_dispatching).
12668 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
12670 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
12671 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
12673 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
12674 a call to gnat_set_globals.
12675 Generate a string containing settings from
12676 Priority_Specific_Dispatching pragma entries.
12677 (Gen_Object_Files_Options): Do not include the runtime libraries when
12678 pragma No_Run_Time is specified.
12680 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
12681 consistency with s-intman-posix.adb.
12682 (__gnat_error_handler, case FreeBSD): Account for the fact that the
12683 handler is installed with SA_SIGINFO.
12684 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
12685 FreeBSD ZCX support, copied from Linux version.
12686 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
12687 sigfillset, and sigemptyset so the routines defined by MaRTE.
12688 (__gl_priority_specific_dispatching): Add this variable that stores the
12689 string containing priority specific dispatching policies in the
12691 (__gl_num_specific_dispatching): Add this variable that indicates the
12692 highest priority for which a priority specific dispatching pragma
12694 (__gnat_get_specific_dispatching): Add this routine that returns the
12695 priority specific dispatching policy, as set by a
12696 Priority_Specific_Dispatching pragma appearing anywhere in the current
12697 partition. The input argument is the priority number, and the result
12698 is the upper case first character of the policy name.
12699 (__gnat_set_globals): Now a dummy function.
12700 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
12701 mechargs instead of sigargs, as the latter can be retrieved from the
12702 former and sigargs is not what we want on ia64.
12703 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
12705 (__gnat_adjust_context_for_raise, ia64-vms): New function.
12706 (tasking_error): Remove unused symbol.
12707 (_abort_signal): Move this symbol to the IRIX specific part since this
12708 is the only target that uses this definition.
12709 (Check_Abort_Status): Move this symbol to the IRIX specific part since
12710 this is the only target that uses this definition.
12711 (Lock_Task): Remove unused symbol.
12712 (Unlock_Task): Remove unused symbol.
12714 * lib-writ.adb (Write_ALI): Output new S lines for
12715 Priority_Specific_Dispatching pragmas.
12716 Implement new flag BD for elaborate body desirable
12718 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
12719 (Specific_Dispatching): Add this table for storing the entries
12720 corresponding to Priority_Specific_Dispatching pragmas.
12721 Document new BD flag for elaborate body desirable
12723 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
12726 2006-10-31 Javier Miranda <miranda@adacore.com>
12728 * a-tags.ads, a-tags.adb:
12729 (Predefined_DT): New function that improves readability of the code.
12730 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
12731 Inherit_DT): Use the new function Predefined_DT to improve code
12733 (Register_Interface_Tag): Update assertion.
12734 (Set_Interface_Table): Update assertion.
12735 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
12736 determining progenitor interfaces in Tags.
12737 (Inherit_CPP_DT): New subprogram.
12739 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
12740 analysis of the thunk code.
12741 (Expand_Interface_Conversion): Handle run-time conversion of
12742 access to class wide types.
12743 (Expand_Dispatching_Call): When generating the profile for the
12744 subprogram itype for a dispatching operation, properly terminate the
12745 formal parameters chaind list (set the Next_Entity of the last formal
12747 (Collect_All_Interfaces): Removed. This routine has been moved to
12748 sem_util and renamed as Collect_All_Abstract_Interfaces.
12749 (Set_All_DT_Position): Hidden entities associated with abstract
12750 interface primitives are not taken into account in the check for
12751 3.9.3(10); this check is done with the aliased entity.
12752 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
12753 interfacing with CPP by default.
12754 (Expand_Interface_Conversion): Add missing support for static conversion
12755 from an interface to a tagged type.
12756 (Collect_All_Interfaces): Add new out formal containing the list of
12757 abstract interface types to cleanup the subprogram Make_DT.
12758 (Make_DT): Update the code to generate the table of interfaces in case
12759 of abstract interface types.
12760 (Is_Predefined_Dispatching_Alias): New function that returns true if
12761 a primitive is not a predefined dispatching primitive but it is an
12762 alias of a predefined dispatching primitive.
12763 (Make_DT): If the ancestor of the type is a CPP_Class and we are
12764 compiling under full ABI compatibility mode we avoid the generation of
12765 calls to run-time services that fill the dispatch tables because under
12766 this mode we currently inherit the dispatch tables in the IP subprogram.
12767 (Write_DT): Emit an "is null" indication for a null procedure primitive.
12768 (Expand_Interface_Conversion): Use an address as the type of the formal
12769 of the internally built function that handles the case in which the
12770 target type is an access type.
12772 2006-10-31 Robert Dewar <dewar@adacore.com>
12774 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
12776 2006-10-31 Robert Dewar <dewar@adacore.com>
12778 * bindusg.ads, bindusg.adb:
12779 Change to package and rename procedure as Display, which
12780 now ensures that it only outputs usage information once.
12782 2006-10-31 Jose Ruiz <ruiz@adacore.com>
12784 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
12787 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
12790 2006-10-31 Robert Dewar <dewar@adacore.com>
12791 Ed Schonberg <schonberg@adacore.com>
12793 * treepr.adb: Use new subtype N_Membership_Test
12795 * checks.ads, checks.adb: Add definition for Validity_Check
12796 (Range_Or_Validity_Checks_Suppressed): New function
12797 (Ensure_Valid): Test Validity_Check suppressed
12798 (Insert_Valid_Check): Test Validity_Check suppressed
12799 (Insert_Valid_Check): Preserve Do_Range_Check flag
12800 (Validity_Check_Range): New procedure
12801 (Expr_Known_Valid): Result of membership test is always valid
12802 (Selected_Range_Checks): Range checks cannot be applied to discriminants
12803 by themselves. Disabling those checks must also be done for task types,
12804 where discriminants may be used for the bounds of entry families.
12805 (Apply_Address_Clause_Check): Remove side-effects if address expression
12806 is non-static and is not the name of a declared constant.
12807 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
12808 Code cleanup and new error messages.
12809 (Enable_Range_Check): Test for some cases of suppressed checks
12810 (Generate_Index_Checks): Suppress index checks if index checks are
12811 suppressed for array object or array type.
12812 (Apply_Selected_Length_Checks): Give warning for compile-time detected
12813 length check failure, even if checks are off.
12814 (Ensure_Valid): Do not generate a check on an indexed component whose
12815 prefix is a packed boolean array.
12816 * checks.adb: (Alignment_Checks_Suppressed): New function
12817 (Apply_Address_Clause_Check): New procedure, this is a completely
12818 rewritten replacement for Apply_Alignment_Check
12819 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
12820 we request a discriminal value only in case of discriminants.
12821 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
12822 assignments where the target subtype is unconstrained and the target
12823 object is a parameter or dereference (other aliased cases are known
12824 to be unconstrained).
12826 2006-10-31 Robert Dewar <dewar@adacore.com>
12828 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
12829 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
12830 vms_conv.adb: Fix bad table increment values (much too small)
12832 * table.adb (Realloc): Make sure we get at least some new elements
12833 Defends against silly small values for table increment
12835 2006-10-31 Robert Dewar <dewar@adacore.com>
12836 Ed Schonberg <schonberg@adacore.com>
12837 Bob Duff <duff@adacore.com>
12839 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
12840 entities. Move other fields around to make this possible
12841 (Is_Derived_Type): Add missing call to Is_Type.
12842 (Extra_Formals): New function for subprograms, entries, subprogram
12844 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
12845 (First_Formal_With_Extras): New function for subprogs, entries, subp
12847 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
12848 Add node information for E_Return_Statement.
12849 (Elaborate_Body_Desirable): New flag
12850 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
12851 to be Is_Inherently_Limited_Type, because return-by-reference has
12852 no meaning in Ada 2005.
12853 (E_Return_Statement): New entity kind.
12854 (Return_Applies_To): Field of E_Return_Statement.
12855 (Is_Return_Object): New flag in object entities.
12856 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
12857 (Must_Have_Preelab_Init): New flag
12858 (Known_To_Have_Preelab_Init): New flag
12859 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
12860 (Is_Visible_Formal): New flag on entities in formal packages.
12861 (Low_Bound_Known): New flag
12862 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
12864 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
12865 output when Id is an incomplete subtype.
12867 2006-10-31 Robert Dewar <dewar@adacore.com>
12869 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
12870 Avoid abbreviation Creat
12871 (Finalize): List all sources in extended mail source if -gnatl
12873 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
12874 (Finalize): Implement new -gnatl=xxx switch to output listing to file
12875 (Set_Specific_Warning_On): New procedure
12876 (Set_Specific_Warning_Off): New procedure
12877 Add implementation of new insertion \\
12878 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
12879 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
12881 (Error_Msg_Internal): Make sure that we set Last_Killed to
12882 True when a message from another package is suppressed.
12883 Implement insertion character ~ (insert string)
12884 (First_Node): Minor adjustments to get better placement.
12887 Implement new -gnatl=xxx switch to output listing to file
12890 Implement new -gnatl=xxx switch to output listing to file
12892 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
12893 (Commands_To_Stdout): New flag
12894 Implement new -gnatl=xxx switch to output listing to file
12895 New switch Dump_Source_Text
12896 (Warn_On_Deleted_Code): New warning flag for -gnatwt
12897 Define Error_Msg_Line_Length
12898 (Warn_On_Assumed_Low_Bound): New switch
12900 * osint.ads, osint.adb
12901 (Normalize_Directory_Name): Fix bug.
12902 Implement new -gnatl=xxx switch to output listing to file
12903 (Concat): Removed, replaced by real concatenation
12904 Make use of concatenation now allowed in compiler
12905 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
12906 we find the 'lib' or 'bin' directory even when the tool has been
12907 invoked with a relative path.
12908 (Executable_Name): New function taking string parameters.
12910 * osint-c.ads, osint-c.adb:
12911 Implement new -gnatl=xxx switch to output listing to file
12913 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
12916 Implement new -gnatl=xxx switch to output listing to file
12917 Recognize new -gnatL switch
12918 (no longer keep in old warning about old style usage)
12919 Use concatenation to simplify code
12920 Recognize -gnatjnn switch
12921 (Scan_Front_End_Switches): Clean up handling of -gnatW
12922 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
12924 2006-10-31 Robert Dewar <dewar@adacore.com>
12926 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
12927 (Set_Specific_Warning_Off): New procedure
12928 (Warning_Specifically_Suppressed): New function
12929 (Validate_Specific_Warnings): New procedure
12930 (Output_Msg_Text): Complete rewrite to support -gnatjnn
12932 * err_vars.ads: Implement insertion character ~ (insert string)
12934 2006-10-31 Bob Duff <duff@adacore.com>
12935 Ed Schonberg <schonberg@adacore.com>
12937 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
12938 the parent part is a build-in-place function call, generate assignments.
12939 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
12940 are build-in-place function calls.
12941 (Replace_Self_Reference): New subsidiary of
12942 Make_OK_Assignment_Statement, to replace an access attribute that is a
12943 self-reference into an access to the appropriate component of the
12944 target object. Generalizes previous mechanism to handle self-references
12945 nested at any level.
12946 (Is_Self_Referential_Init): Remove, not needed.
12947 (Is_Self_Referential_Init): New predicate to simplify handling of self
12948 referential components in record aggregates.
12949 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
12950 check for presence of entity before checking for self-reference.
12951 (Has_Default_Init_Comps): Return True if a component association is a
12952 self-reference to the enclosing type, which can only come from a
12953 default initialization.
12954 (Make_OK_Assignment_Statement): If the expression is of the form
12955 Typ'Acc, where Acc is an access attribute, the expression comes from a
12956 default initialized self-referential component.
12957 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
12958 that has been derived from several abstract interfaces we must also
12959 initialize the tags of the secondary dispatch tables.
12961 2006-10-31 Ed Schonberg <schonberg@adacore.com>
12962 Thomas Quinot <quinot@adacore.com>
12963 Javier Miranda <miranda@adacore.com>
12964 Robert Dewar <dewar@adacore.com>
12967 (Expand_Access_To_Protected_Op): If the context indicates that an access
12968 to a local operation may be transfered outside of the object, create an
12969 access to the wrapper operation that must be used in an external call.
12970 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
12971 target, pass the Valid attribute applied to a floating-point prefix on
12972 to the back end without expansion.
12973 (Storage_Size): Use the new run-time function Storage_Size to retrieve
12974 the allocated storage when it is specified by a per-object expression.
12975 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
12976 Nothing to do here, the attribute has been rewritten during semantic
12978 (Expand_Attribute_Reference): Handle expansion of the new Priority
12980 (Find_Fat_Info): Handle case of universal real
12981 (Expand_Access_To_Protected_Op): Fix use of access to protected
12982 subprogram from inside the body of a protected entry.
12983 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
12984 'Access and 'Unrestricted_Access, to transform the attribute reference
12985 into a fat pointer.
12986 (Is_Constrained_Aliased_View): New predicate to help determine whether a
12987 subcomponent's enclosing variable is aliased with a constrained subtype.
12988 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
12989 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
12990 an aliased prefix must be known to be constrained in order to use True
12991 for the attribute value, and now it's possible for some aliased views
12992 to be unconstrained.
12994 2006-10-31 Robert Dewar <dewar@adacore.com>
12996 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
12997 (Expand_Entity_Reference): Correct error of not handling subprogram
12998 formals in current_value processing.
13000 2006-10-31 Javier Miranda <miranda@adacore.com>
13001 Robert Dewar <dewar@adacore.com>
13002 Ed Schonberg <schonberg@adacore.com>
13003 Gary Dismukes <dismukes@adacore.com>
13005 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
13006 register in the final list objects containing class-wide interfaces;
13007 otherwise we incorrectly register the tag of the interface in the final
13009 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
13010 generate the wrapper if the parent primitive is abstract. This is
13011 required to report the correct error message.
13012 (Expand_N_Subtype_Indication): Do validity checks on range
13013 (Clean_Task_Names): If an initialization procedure includes a call to
13014 initialize a task (sub)component, indicate that the procedure will use
13015 the secondary stack.
13016 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
13017 compatibility for interfacing with CPP by default.
13018 (Expand_N_Object_Declaration): Only build an Adjust call when the
13019 object's type is a nonlimited controlled type.
13020 * exp_ch3.adb: Add with and use of Exp_Ch6.
13021 (Expand_N_Object_Declaration): Check for object initialization that is a
13022 call to build-in-place function and apply Make_Build_In_Place_Call_In_
13023 Object_Declaration to the call.
13024 (Freeze_Type): When the designated type of an RACW was not frozen at the
13025 point where the RACW was declared, validate the primitive operations
13026 with respect to E.2.2(14) when it finally is frozen.
13027 (Build_Initialization_Call,Expand_Record_Controller): Rename
13028 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
13029 return-by-reference has no meaning in Ada 2005.
13030 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
13031 to register tag of the immediate ancestor interfaces in the
13032 run-time structure.
13033 (Init_Secondary_Tags): Moved to the specification to allow the
13034 initialization of extension aggregates with abstract interfaces.
13035 (Build_Master_Renaming): Make public, for use by function declarations
13036 whose return type is an anonymous access type.
13037 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
13038 Insert_List_Before_And_Analyze after the generation of the specs
13039 associated with null procedures.
13040 (Expand_Tagged_Root): Update documentation in its specification.
13041 (Init_Secondary_Tags): Update documentation.
13042 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
13043 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
13044 then generate code to inherit the contents of the dispatch table
13045 directly from the ancestor.
13046 (Expand_Record_Controller): Insert controller component after tags of
13047 implemented interfaces.
13048 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
13049 create null procedure overridings when null procedures are inherited
13051 (Make_Null_Procedure_Specs): New procedure to generate null procedure
13052 declarations for overriding null primitives inherited from interfaces.
13053 (Is_Null_Interface_Procedure): New function in
13054 Make_Null_Procedure_Specs.
13055 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
13056 immediate ancestor of a tagged type is an abstract interface type we
13057 must generate the specification of the predefined primitives associated
13058 with controlled types (because the dispatch table of the ancestor is
13059 null and hence these entries cannot be inherited). This is required to
13060 elaborate well the dispatch table.
13062 2006-10-31 Javier Miranda <miranda@adacore.com>
13063 Ed Schonberg <schonberg@adacore.com>
13064 Bob Duff <duff@adacore.com>
13065 Gary Dismukes <dismukes@adacore.com>
13066 Robert Dewar <dewar@adacore.com>
13068 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
13070 (Expand_N_In): Do validity checks on range
13071 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
13072 (Expand_N_Allocator): For "new T", if the object is constrained by
13073 discriminant defaults, allocate the right amount of memory, rather than
13074 the maximum for type T.
13075 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
13076 when the allocator is initialized by a build-in-place call, since the
13077 allocator is already rewritten as a reference to the function result,
13078 and this prevents an unwanted duplication of the function call.
13079 Add with and use of Exp_Ch6.
13080 (Expand_Allocator_Expresssion): Check for an allocator whose expression
13081 is a call to build-in-place function and apply
13082 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
13083 untagged designated types).
13084 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
13085 optimization if source or target is biased.
13086 (Expand_N_Allocator): Add comments for case of an allocator within a
13087 function that returns an anonymous access type designating tasks.
13088 (Expand_N_Allocator): apply discriminant checks for access
13089 discriminants of anonymous access types (AI-402, AI-416)
13091 2006-10-31 Bob Duff <duff@adacore.com>
13092 Robert Dewar <dewar@adacore.com>
13093 Gary Dismukes <dismukes@adacore.com>
13094 Ed Schonberg <schonberg@adacore.com>
13096 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
13098 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
13099 (Expand_N_Assignment_Statement): Call
13100 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
13101 build-in-place function call. Currently, this can happen only for
13102 assignments that come from aggregates.
13103 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
13104 in order to alleviate the upward compatibility introduced by AI-318.
13105 (Expand_N_Extended_Return_Statement): Add support for handling the
13106 return object as a build-in-place result.
13107 (Expand_Non_Function_Return): Implement simple return statements nested
13108 within an extended return.
13109 (Enable_New_Return_Processing): Turn on the new processing of return
13111 (Expand_Non_Function_Return): For a return within an extended return,
13112 don't raise Program_Error, because Sem_Ch6 now gives a warning.
13113 (Expand_N_Extended_Return_Statement): Implement AI-318
13114 (Expand_Simple_Function_Return): Ditto.
13115 (Expand_N_If_Statement): Handle new -gnatwt warning
13116 (Expand_N_Case_Statement): Handle new -gnatwt warning
13117 (Expand_N_Assignment): Handle assignment to the Priority attribute of
13118 a protected object.
13119 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
13120 validity checking of assignments to elementary record components.
13121 (Expand_N_Return_Statement): return Class Wide types on the secondary
13122 stack independantly of their controlled status since with HIE runtimes,
13123 class wide types are not potentially controlled anymore.
13125 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
13128 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
13129 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
13130 it expects a block, procedure, or task. The return statement will get
13131 turned into a block, and Expand_Cleanup_Actions will happen then.
13133 2006-10-31 Robert Dewar <dewar@adacore.com>
13134 Ed Schonberg <schonberg@adacore.com>
13135 Bob Duff <duff@adacore.com>
13136 Gary Dismukes <dismukes@adacore.com>
13138 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
13140 (Expand_Inlined_Call): Tagged types are by-reference types, and
13141 therefore should be replaced by a renaming declaration in the expanded
13142 body, as is done for limited types.
13143 (Expand_Call): If this is a call to a function with dispatching access
13144 result, propagate tag from context.
13145 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
13147 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
13148 build-in-place when the right-hand side of an assignment is a
13149 build-in-place function call.
13150 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
13151 of the explicit dereference of the allocator to the result subtype of
13152 the build-in-place function. This is needed to satisfy type checking
13153 in cases where the caller's return object is created by an allocator for
13154 a class-wide access type and the type named in the allocator is a
13156 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
13157 conversion of the reference to the declared object to the result subtype
13158 of the build-in-place function. This is needed to satisfy type checking
13159 in cases where the declared object has a class-wide type. Also, in the
13160 class-wide case, change the type of the object entity to the specific
13161 result subtype of the function, to avoid passing a class-wide object
13162 without explicit initialization to the back end.
13163 (Register_Interface_DT_Entry): Moved outside the body of
13164 Freeze_Subprogram because this routine is now public; it is called from
13165 Check_Dispatching_Overriding to handle late overriding of abstract
13166 interface primitives.
13167 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
13168 adding an implicit access actual on a call to a build-in-place function.
13169 (Expand_Actuals): Test for an actual parameter that is a call to a
13170 build-in-place function and apply
13171 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
13172 (Is_Build_In_Place_Function): New function to determine whether an
13173 entity is a function whose calls should be handled as build-in-place.
13174 (Is_Build_In_Place_Function_Call): New function to determine whether an
13175 expression is a function call that should handled as build-in-place.
13176 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
13177 calls to build-in-place functions as the initialization of an allocator.
13178 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
13179 handling calls to build-in-place functions in contexts that do not
13180 involve init of a separate object (for example, actuals of subprogram
13182 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
13183 handling calls to build-in-place functions as the initialization of an
13184 object declaration.
13185 (Detect_Infinite_Recursion): Add explicit parameter Process to
13186 instantiation of Traverse_Body to avoid unreferenced warning.
13187 (Check_Overriding_Inherited_Interfaces): Removed.
13188 (Register_Interface_DT_Entry): Code cleanup.
13189 (Register_Predefined_DT_Entry): Code cleanup.
13190 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
13191 inlined statements if within a transient scope.
13192 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
13193 formal parameters with occurrences of actuals in inlined body, establish
13194 visibility on the proper view of the actual's subtype for the body's
13196 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
13197 compatibility mode and we have an imported CPP subprogram because
13198 for now we assume that imported CPP primitives correspond with
13199 objects whose constructor is in the CPP side (and therefore we
13200 don't need to generate code to register them in the dispatch table).
13201 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
13202 aligned selected component.
13203 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
13204 the actual of an in-mode parameter is a type conversion.
13205 (Expand_Actuals): If the call does not come from source and the actual
13206 is potentially misaligned, let gigi handle it rather than rejecting the
13207 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
13208 Class Wide types as returning by reference independantly of their
13209 controlled status since with HIE runtimes class wide types are not
13210 potentially controlled anymore.
13212 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13214 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
13215 references that are private components of the protected object.
13216 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
13217 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
13218 instantiation to deal with warnings.
13219 (Initialize_Protection): If expression for priority is non-static, use
13220 System_Priority as its expected type, in case the expression has not
13223 2006-10-31 Robert Dewar <dewar@adacore.com>
13225 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
13226 initialization of Homonym_Len.
13227 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
13228 names from fully qualified name. Fixes problem of duplicate
13229 external names differing only in the presence of such a block name.
13231 2006-10-31 Thomas Quinot <quinot@adacore.com>
13232 Pablo Oliveira <oliveira@adacore.com>
13234 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
13235 subprogram Ids, even if they are not yet assigned.
13236 (Build_Subprogram_Id): It is now this function that will take care of
13237 calling Assign_Subprogram_Ids if necessary.
13238 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
13239 should be done only once they are assigned.
13240 (Build_From_Any_Function, case of tagged types): Add missing call to
13242 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
13243 type for an RACW type.
13244 (Add_RACW_Features): When processing an RACW declaration for which the
13245 designated type is already frozen, enforce E.2.2(14) rules immediately.
13246 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
13247 special reordering of controlling formals.
13249 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
13250 associated stub type for an RACW type.
13252 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13254 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
13255 fixed-point operations in an integer context, i.e. as operands of a
13256 conversion to an integer type, indicate that result must be rounded.
13258 2006-10-31 Robert Dewar <dewar@adacore.com>
13260 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
13261 cases, pass the encoding method, since it is now required by the run
13264 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
13265 assumption that Str'First = 1.
13266 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
13267 it on to the Value_Wide_Wide_Character call.
13268 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
13269 properly handles a string of the form quote-encoded_wide_char-quote.
13271 * s-wchcnv.adb: Minor reformatting
13273 2006-10-31 Javier Miranda <miranda@adacore.com>
13275 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
13276 run-time membership test to ensure that the constructed object
13277 implements the target abstract interface.
13279 2006-10-31 Robert Dewar <dewar@adacore.com>
13281 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
13282 Machine_Attribute pragma internally to implement the user pragma.
13283 Add processing for pragma Interface so that it is now completely
13284 equivalent to pragma Import.
13286 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
13287 so that it can be applied to all entities, including record components
13288 and enumeration literals.
13289 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
13290 priority ranges are correct, verify compatibility against task
13291 dispatching and locking policies, and if everything is correct an entry
13292 is added to the table containing priority specific dispatching entries
13293 for this compilation unit.
13294 (Delay_Config_Pragma_Analyze): Delay processing
13295 Priority_Specific_Dispatching pragmas because when processing the
13296 pragma we need to access run-time data, such as the range of
13297 System.Any_Priority.
13298 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
13299 Allow pragma Unreferenced as a context item
13300 Add pragma Preelaborable_Initialization
13301 (Analyze_Pragma, case Interface): Interface is extended so that it is
13302 now syntactically and semantically equivalent to Import.
13303 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
13304 insertion characters.
13305 Add handling for Pragma_Wide_Character_Encoding
13306 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
13307 never supercedes a real restriction, and that a real restriction
13308 always supercedes a warning.
13309 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
13312 2006-10-31 Bob Duff <duff@adacore.com>
13313 Ed Schonberg <schonberg@adacore.com>
13314 Robert Dewar <dewar@adacore.com>
13316 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
13317 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
13318 Is_Inherently_Limited_Type, because return-by-reference has no meaning
13320 (Find_Node_To_Be_Wrapped): Use new method of determining the result
13321 type of the function containing a return statement, because the
13322 Return_Type field was removed. We now use the Return_Applies_To field.
13324 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
13325 (Build_Task_Image_Decl): If procedure is not called from an
13326 initialization procedure, indicate that function that builds task name
13327 uses the sec. stack. Otherwise the enclosing initialization procedure
13328 will carry the indication.
13329 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
13330 N_Object_Declaration instead.
13331 (Kill_Dead_Code): New interface to implement -gnatwt warning for
13332 conditional dead code killed, and change implementation accordingly.
13333 (Insert_Actions): Add N_Return_Object_Declaration case.
13334 Correct comment to mention N_Extension_Aggregate node.
13335 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
13336 attempts to save information for global variables which cannot be
13338 (Get_Current_Value_Condition): Handle conditions the other way round
13339 (constant on left). Also handle right operand of AND and AND THEN
13340 (Set_Current_Value_Condition): Corresponding changes
13341 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
13342 (Get_Current_Value_Condition): Handle simple boolean operands
13343 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
13344 (Get_Current_Value_Condition): If the variable reference is within an
13345 if-statement, does not appear in the list of then_statments, and does
13346 not come from source, treat it as being at unknown location.
13347 (Get_Current_Value_Condition): Enhance to allow while statements to be
13348 processed as well as if statements.
13349 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
13351 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
13352 of loop. This is safe now that we fixed Kill_Current_Values.
13353 (OK_To_Do_Constant_Replacement): Check whether current scope is
13354 Standard, before examining outer scopes.
13356 2006-10-31 Vincent Celier <celier@adacore.com>
13358 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
13359 When True, apply VMS treatment to children of packages A, G, I and S.
13362 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
13364 2006-10-31 Robert Dewar <dewar@adacore.com>
13365 Ed Schonberg <schonberg@adacore.com>
13367 * freeze.adb: Add handling of Last_Assignment field
13368 (Warn_Overlay): Supply missing continuation marks in error msgs
13369 (Freeze_Entity): Add check for Preelaborable_Initialization
13371 * g-comlin.adb: Add Warnings (Off) to prevent new warning
13373 * g-expect.adb: Add Warnings (Off) to prevent new warning
13375 * lib-xref.adb: Add handling of Last_Assignment field
13376 (Generate_Reference): Centralize handling of pragma Obsolescent here
13377 (Generate_Reference): Accept an implicit reference generated for a
13378 default in an instance.
13379 (Generate_Reference): Accept a reference for a node that is not in the
13380 main unit, if it is the generic body corresponding to an subprogram
13383 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
13385 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
13387 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
13389 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
13390 use clauses, to avoid messages on packages used to qualify, and also
13391 to avoid messages from obsolescent units.
13392 (Warn_On_Useless_Assignments): Don't generate messages for imported
13393 and exported variables.
13394 (Warn_On_Useless_Assignments): New procedure
13395 (Output_Obsolescent_Entity_Warnings): New procedure
13396 (Check_Code_Statement): New procedure
13398 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
13399 Change name Is_Ada_2005 to Is_Ada_2005_Only
13400 (Last_Assignment): New field for useless assignment warning
13402 2006-10-31 Olivier Hainque <hainque@adacore.com>
13404 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
13405 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
13407 2006-10-31 Bob Duff <duff@adacore.com>
13408 Robert Dewar <dewar@adacore.com>
13409 Ed Schonberg <schonberg@adacore.com>
13411 * g-awk.adb (Default_Session, Current_Session): Compile this file in
13412 Ada 95 mode, because it violates the new rules for AI-318.
13414 * g-awk.ads: Use overloaded subprograms in every case where we used to
13415 have a default of Current_Session. This makes the code closer to be
13416 correct for both Ada 95 and 2005.
13418 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
13419 code, relying on the fact that the compiler generates a warning
13420 instead of an error in -gnatg mode.
13422 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
13423 E_Return_Statement entity kind.
13424 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
13426 * par.adb (P_Interface_Type_Definition): Addition of one formal to
13427 report an error if the reserved word abstract has been previously found.
13428 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
13430 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
13431 parenthesized range attribute usage
13432 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
13434 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
13435 in the syntax for extended_return_statement. This is not in the latest
13436 RM, but the ARG is expected to issue an AI allowing this.
13437 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
13438 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
13439 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
13440 P_Return_Statement): Parse the new syntax for extended_return_statement.
13442 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
13443 Output_End_Missing): Add error-recovery code for the new
13444 extended_return_statement syntax; that is, the new E_Return entry on
13447 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
13448 limited to nonlimited, because otherwise we violate the new Ada 2005
13449 rules about returning limited types in function Create_AST_Handler in
13452 * sem.adb (Analyze): Add cases for new node kinds
13453 N_Extended_Return_Statement and N_Return_Object_Declaration.
13455 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
13456 type is in the same category as type of context before applying check,
13457 to prevent anomalies in instantiations.
13458 (Resolve_Aggregate): Remove test for limited components in aggregates.
13459 It's unnecessary in Ada 95, because if it has limited components, then
13460 it must be limited. It's wrong in Ada 2005, because limited aggregates
13462 (Resolve_Record_Aggregate): Move check for limited types later, because
13463 OK_For_Limited_Init requires its argument to have been resolved.
13464 (Get_Value): When copying the component default expression for a
13465 defaulted association in an aggregate, use the sloc of the aggregate
13466 and not that of the original expression, to prevent spurious
13467 elaboration errors, when the expression includes function calls.
13468 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
13469 were missing. We also didn't handle qualified expressions. Now also
13470 allow function calls. Use new common routine OK_For_Limited_Init.
13471 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
13472 with space can upper case letter).
13474 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
13475 Has_Static_Discriminants flag
13476 (Record_Type_Declaration): Diagnose an attempt to declare an interface
13477 type with discriminants.
13478 (Process_Range_Expr_In_Decl): Do validity checks on range
13479 (Build_Discriminant_Constraints): Use updated form of
13480 Denotes_Discriminant.
13481 (Process_Subtype): If the subtype is a private subtype whose full view
13482 is a concurrent subtype, introduce an itype reference to prevent scope
13484 (Build_Derived_Record_Type, Collect_Interface_Primitives,
13485 Record_Type_Declaration): The functionality of the subprograms
13486 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
13487 is now performed by a single routine.
13488 (Build_Derived_Record_Type): If the type definition includes an explicit
13489 indication of limitedness, then the type must be marked as limited here
13490 to ensure that any access discriminants will not be treated as having
13491 a local anonymous access type.
13492 (Check_Abstract_Overriding): Issue a detailed error message when an
13493 abstract subprogram was not overridden due to incorrect mode of its
13495 (Analyze_Private_Extension_Declaration): Add support for the analysis of
13496 synchronized private extension declarations. Verify that the ancestor is
13497 a limited or synchronized interface or in the generic case, the ancestor
13498 is a tagged limited type or synchronized interface and all progenitors
13499 are either limited or synchronized interfaces.
13500 Derived_Type_Declaration): Check for presence of private extension when
13501 dealing with synchronized formal derived types.
13502 Process_Full_View): Enchance the check done on the usage of "limited" by
13503 testing whether the private view is synchronized.
13504 Verify that a synchronized private view is completed by a protected or
13506 (OK_For_Limited_Init_In_05): New function.
13507 (Analyze_Object_Declaration): Move check for limited types later,
13508 because OK_For_Limited_Init requires its argument to have been resolved.
13509 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
13510 in order to alleviate the upward compatibility introduced by AI-318.
13511 (Constrain_Corresponding_Record): If the constraint is for a component
13512 subtype, mark the itype as frozen, to avoid out-of-scope references to
13513 discriminants in the back-end.
13514 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
13515 this subprogram against wrong sources.
13516 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
13517 discriminant of limited type completed with a protected type, when the
13518 discriminant is used to constrain a private component of the type, and
13519 expansion is disabled.
13520 (Find_Type_Of_Object): Do not treat a return subtype that is an
13521 anonymous subtype as a local_anonymous_type, because its accessibility
13522 level is the return type of the enclosing function.
13523 (Check_Initialization): In -gnatg mode, turn the error "cannot
13524 initialize entities of limited type" into a warning.
13525 (OK_For_Limited_Init): Return true for generated nodes, since it
13526 sometimes violates the legality rules.
13527 (Make_Incomplete_Declaration): If the type for which an incomplete
13528 declaration is created happens to be the currently visible entity,
13529 preserve the homonym chain when removing it from visibility.
13530 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
13531 inherited subprograms.
13532 (Access_Definition): If this is an access to function that is the return
13533 type of an access_to_function definition, context is a type declaration
13534 and the scope of the anonymous type is the current one.
13535 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
13536 incomplete subtype to the set of private dependents of the original
13538 (Constrain_Discriminated_Type): Emit an error message whenever an
13539 incomplete subtype is being constrained.
13540 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
13541 corresponding subtype of the full view of the original incomplete type.
13542 (Check_Incomplete): Properly detect invalid usage of incomplete types
13545 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
13547 * g-catiio.ads, g-catiio.adb (Value): New function.
13548 Given an input String, try and parse a valid Time value.
13550 2006-10-31 Vincent Celier <celier@adacore.com>
13552 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
13553 Integer_Address arithmetic, as in Set_Valid.
13555 2006-10-31 Arnaud Charlet <charlet@adacore.com>
13556 Robert Dewar <dewar@adacore.com>
13558 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
13559 handling executable extension manually and duplicating code.
13561 * make.adb: Implement new -S switch
13562 (Gnatmake): Use new function Osint.Executable_Name instead
13563 of handling executable extension manually.
13565 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
13566 is specified, the executable name ends with this suffix.
13567 Take advantage of Osint.Executable_Name instead of duplicating code.
13569 * switch-m.adb: Recognize new gnatmake -S switch
13571 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
13573 (Get_Target_Parameters): Set Executable_Extension_On_Target if
13576 * makeusg.adb: Add line for gnatmake -S switch
13578 2006-10-31 Vincent Celier <celier@adacore.com>
13580 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
13581 call it with -static-libgcc, as there are some platforms, such as
13582 Darwin, where one of these two switches is compulsory to link.
13584 2006-10-31 Vincent Celier <celier@adacore.com>
13586 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
13587 instead of ADA_PROJECT_PATH, for the project path.
13588 (Gnatls): When displaying the project path directories, use host dir
13591 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
13592 names in the project path, as absolute paths may correspond to
13593 multi-valued VMS logical names.
13595 2006-10-31 Vincent Celier <celier@adacore.com>
13597 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
13598 absolute path name.
13599 (Locate_Regular_File): Ditto
13600 (Change_Dir): Remove, no longer used
13601 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
13602 on Windows. Get it calling Get_Current_Dir.
13603 (OpenVMS): Remove imported boolean, no longer needed.
13604 (Normalize_Pathname)[VMS]: Do not resolve directory names.
13605 (Pid_To_Integer): New function to convert a Process_Id to Integer
13607 2006-10-31 Thomas Quinot <quinot@adacore.com>
13609 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
13610 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
13612 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
13615 2006-10-31 Robert Dewar <dewar@adacore.com>
13617 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
13618 initial letter o as a zero.
13620 2006-10-31 Robert Dewar <dewar@adacore.com>
13622 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
13624 2006-10-31 Robert Dewar <dewar@adacore.com>
13626 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
13628 (Layout_Variant_Record): Retrieve the discriminants from the entity
13629 rather than from the type definition, because in the case of a full
13630 type for a private type we need to take the discriminants from the
13632 (Layout_Component_List): When applying the Max operator to variants with
13633 a nonstatic size, check whether either operand is static and scale that
13634 operand from bits to storage units before applying Max.
13635 (Layout_Type): In VMS, if a C-convention access type has no explicit
13636 size clause (and does not inherit one in the case of a derived type),
13637 then the size is reset to 32 from 64.
13639 2006-10-31 Vincent Celier <celier@adacore.com>
13641 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
13642 its file has already been loaded, according to the unit being loaded,
13643 not to the current value of Multiple_Unit_Index.
13645 2006-10-31 Thomas Quinot <quinot@adacore.com>
13646 Eric Botcazou <ebotcazou@adacore.com>
13647 Arnaud Charlet <charlet@adacore.com>
13649 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
13650 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
13652 (a-except.o): Pass it to the compiler.
13653 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
13654 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
13655 a-calend-mingw.adb version.
13657 * Makefile.rtl: Added s-dsaser.
13658 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
13659 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
13660 Ada.Dispatching.Round_Robin.
13661 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
13663 * Make-lang.in: Remove all references to gt-ada-decl.h.
13664 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
13666 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
13667 Update dependencies.
13669 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
13671 2006-10-31 Vincent Celier <celier@adacore.com>
13673 * mlib-utl.adb (Initialized): Remove, no longer used
13674 (Initialize): Remove, no longer used
13675 (Ar): If Ar_Exec is null, get the location of the archive builder and,
13676 if there is one, the archive indexer. Fail if the archive builder cannot
13678 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
13681 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13683 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
13684 Process_Body_Clauses): If the context of a body includes a use clause
13685 for P.Q then a with_clause for P in the same body is not redundant,
13686 even if the spec also has a with_clause on P.
13687 Add missing continuation mark to error msg
13688 (Build_Limited_Views): A limited view of a type is tagged if its
13689 declaration includes a record extension.
13690 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
13691 node, even if the subunit has errors. This avoids malfunction by
13692 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
13693 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
13694 generation of obsolescent messages for with statements (cannot do
13695 this too early, or we cannot implement avoiding the messages in the
13696 case of obsolescent units withing obsolescent units).
13697 (Install_Siblings): If the with_clause is on a remote descendant of
13698 an ancestor of the current compilation unit, find whether there is
13699 a sibling child unit that is immediately visible.
13700 (Remove_Private_With_Clauses): New procedure, invoked after completing
13701 the analysis of the private part of a nested package, to remove from
13702 visibility the private with_clauses of the enclosing package
13704 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
13705 now centralized in Generate_Reference.
13706 (Install_Limited_Context_Clauses): Remove superfluous error
13707 message associated with unlimited view visible through use
13708 and renamings. In addition, at the point in which the error
13709 is reported, we add the backslash to the text of the error
13710 to ensure that it is reported as a single error message.
13711 Use new // insertion for some continuation messages
13712 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
13713 to create implicit with_clause for parent unit mentioned in original
13714 limited_with_clause.
13715 (Install_Limited_With_Unit): Set entity of parent identifiers if the
13716 unit is a child unit. For ASIS queries.
13717 (Analyze_Subunit): If the subunit appears within a child unit, make all
13718 ancestor child units directly visible again.
13720 2006-10-31 Robert Dewar <dewar@adacore.com>
13722 * par-ch10.adb (P_Context_Clause): Minor error message fix
13724 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
13725 Javier Miranda <miranda@adacore.com>
13727 * par-ch12.adb: Grammar update and cleanup.
13728 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
13729 support for synchronized derived type definitions.
13730 Add the new actual Abstract_Present to every call to
13731 P_Interface_Type_Definition.
13732 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
13733 a formal object declaration with an access definition or a subtype mark
13734 with a null exclusion.
13735 (P_Generic_Association): Handle association with box, and others_choice
13736 with box, to support Ada 2005 partially parametrized formal packages.
13738 2006-10-31 Robert Dewar <dewar@adacore.com>
13739 Javier Miranda <miranda@adacore.com>
13741 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
13742 (P_Type_Declaration): Remove barrier against the reserved word "limited"
13743 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
13744 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
13745 private extensions.
13746 (P_Type_Declaration): Add the new actual Abstract_Present to every call
13747 to P_Interface_Type_Definition.
13748 (P_Interface_Type_Definition): Addition of one formal to report an error
13749 if the reserved word abstract has been previously found.
13750 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
13751 object renaming declaration with an access definition or subtype mark
13752 with a possible null exclusion.
13754 * par-ch9.adb: Minor error msg fix
13756 * par-load.adb: Add missing continuation mark to error msg
13758 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
13760 2006-10-31 Vincent Celier <celier@adacore.com>
13762 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
13763 unknown attribute in unknown package or in package that does not need
13765 (Parse_Package_Declaration): Do not issue warning for unknown package in
13768 2006-10-31 Vincent Celier <celier@adacore.com>
13770 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
13771 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
13774 2006-10-31 Vincent Celier <celier@adacore.com>
13776 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
13777 on VMS, change "__" to '.' before checking the name.
13778 (Record_Ada_Source): Always add the source file name in the list of
13779 of sources, even if it is not the first time, as it is for another
13781 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
13782 dot, instead of replacing only the first '_'.
13784 * prj-part.adb (Parse): Convert project file path to canonical form
13786 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
13787 extended, the project id of the project extending it is recorded in its
13788 data, even when it has already been processed as an imported project.
13790 2006-10-31 Robert Dewar <dewar@adacore.com>
13792 * repinfo.adb (List_Entities): Don't list entities from renaming
13795 2006-10-31 Arnaud Charlet <charlet@adacore.com>
13796 Robert Dewar <dewar@adacore.com>
13798 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
13799 only a restriction warning is active for the given restriction. This is
13800 desirable because we do not want to modify code in the case where only
13802 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
13803 causes overriding of real restrictions.
13804 Take advantage of new No_Restrictions constant.
13806 * raise.h: (__gnat_set_globals): Change profile.
13808 2006-10-31 Arnaud Charlet <charlet@adacore.com>
13810 * rtsfind.adb: Remove s-polint from comment as it exists no more.
13813 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
13814 Move all the entities in obsolete package System.PolyORB_Interface to
13815 System.Partition_Interface.
13816 (RE_Storage_Size): New function in System.Tasking.
13817 (RE_Get_Ceiling): New entity.
13818 (RE_Set_Ceiling): New entity.
13819 (RO_PE_Get_Ceiling): New entity.
13820 (RO_RE_Set_Ceiling): New entity.
13821 (Inherit_CPP_DT): New entity
13823 2006-10-31 Robert Dewar <dewar@adacore.com>
13825 * scng.adb (Scan, case of numeric literal): Better msg for identifier
13826 starting with a digit.
13828 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13829 Thomas Quinot <quinot@adacore.com>
13830 Javier Miranda <miranda@adacore.com>
13831 Gary Dismukes <dismukes@adacore.com>
13833 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
13834 properly an attempt to apply Unchecked_Access to a protected operation.
13835 (OK_Self_Reference): New subprogram to check the legality of an access
13836 attribute whose prefix is the type of an enclosing aggregate.
13837 Generalizes previous mechanism to handle attribute references nested
13838 arbitrarily deep within the aggregate.
13839 (Analyze_Access_Attribute): An access attribute whose prefix is a type
13840 can appear in an aggregate if this is a default-initialized aggregate
13841 for a self-referential type.
13842 (Resolve_Attribute, case Access): Ditto.
13843 Add support for new implementation defined attribute Stub_Type.
13844 (Eval_Attribute, case Attribute_Stub_Type): New case.
13845 (Analyze_Attribute, case Attribute_Stub_Type): New case.
13846 (Stream_Attribute_Available): Implement using new subprogram from
13847 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
13848 Has_Specified_Stream_Attribute flag.
13849 Disallow Storage_Size and Storage_Pool for access to subprogram
13850 (Resolve_Attribute, case 'Access et al): Take into account anonymous
13851 access types of return subtypes in extended return statements. Remove
13852 accessibility checks on anonymous access types when Unchecked_Access is
13854 (Analyze_Attribute): Add support for the use of 'Class to convert
13855 a class-wide interface to a tagged type.
13856 Add support for the attribute Priority.
13857 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
13858 whether the designated type is discriminated with a constrained partial
13859 view and require static matching in that case.
13860 Add local variable Des_Btyp. The Designated_Type
13861 of an access to incomplete subtype is either its non-limited view if
13862 coming from a limited with or its etype if regular incomplete subtype.
13864 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
13865 Fix predicate to identify and allow cases of (expander-generated)
13866 references to tag of designated object of a RACW.
13867 (Validate_Static_Object_Name): In Ada 2005, a formal object is
13868 non-static, and therefore cannot appear as a primary in a preelaborable
13870 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
13871 Has_Read_Write_Attributes.
13872 (Has_Read_Write_Attributes): Reimplement in termes of
13873 Has_Stream_Attribute_Definition.
13874 (Missing_Read_Write_Attributes): When checking component types in a
13875 record, unconditionally call Missing_Read_Write_Attributes recursively
13876 (remove guard checking for Is_Record_Type / Is_Access_Type).
13878 2006-10-31 Robert Dewar <dewar@adacore.com>
13880 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
13881 useless assignments here and conditionalize it on absence of exception
13883 (Analyze_Exception_Handlers): Small code reorganization of error
13884 detection code, for new handling of formal packages.
13886 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13887 Hristian Kirtchev <kirtchev@adacore.com>
13889 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
13890 that has been constant-folded, preserve information of original tree,
13892 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
13893 generated private extension declaration if the formal derived type is
13894 synchronized. Carry synchronized present over to the generated private
13896 (Validate_Derived_Type_Instance): Ensure that the actual of a
13897 synchronized formal derived type is a synchronized tagged type.
13898 (Instantiate_Formal_Package): When creating the instantiation used to
13899 validate the actual package of a formal declared without a box, check
13900 whether the formal itself depends on a prior actual.
13901 (Instantiate_Formal_Subprogram): Create new entities for the defining
13902 identifiers of the formals in the renaming declaration, for ASIS use.
13903 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
13904 a renaming declaration or a subtype declaration for an actual in an
13905 instance, capture location information of declaration in generic, for
13907 (Instantiate_Formal_Package): Add comments on needed additional tests.
13908 AI-317 (partial parametrization) is fully implemented.
13909 (Validate_Private_Type_Instance): Add check for actual which
13910 must have preelaborable initialization
13911 Use new // insertion for some continuation messages
13912 (Analyze_Formal_Object_Declaration): Change usage of Expression to
13913 Default_Expression. Add type retrieval when the declaration has an
13914 access definition. Update premature usage of incomplete type check.
13915 (Check_Access_Definition): New subsidiary routine. Check whether the
13916 current compilation version is Ada 05 and the supplied node has an
13918 (Instantiate object): Alphabetize local variables. Handle the creation
13919 of new renaming declarations with respect to the kind of definition
13920 used - either an access definition or a subtype mark. Guard against
13921 unnecessary error message in the context of anonymous access types after
13922 they have been resolved. Add check for required null exclusion in a
13923 formal object declaration.
13924 (Switch_View): A private subtype of a non-private type needs to be
13925 switched (the base type can have been switched without its private
13926 dependents because of the last branch of Check_Private_View.
13927 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
13929 (Instantiate_Type): Emit an error message whenever a class-wide type of
13930 a tagged incomplete type is used as a generic actual.
13931 (Find_Actual_Type): Extend routine to handle a component type in a child
13932 unit that is imported from a formal package in a parent.
13933 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
13934 agree on constrainedness, rather than checking against ultimate ancestor
13935 (Instantiate_Subprogram_Body): Create a cross-reference link to the
13936 generic body, for navigation purposes.
13938 2006-10-31 Robert Dewar <dewar@adacore.com>
13939 Thomas Quinot <quinot@adacore.com>
13941 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
13943 (New_Stream_Subprogram): When processing an attribute definition clause
13944 for a stream-oriented subprogram, record an entity node occurring at
13945 the point of clause to use for checking the visibility of the clause,
13946 as defined by 8.3(23) as amended by AI-195.
13947 (New_Stream_Subprogram): New procedure, factoring behaviour from both
13948 New_Stream_Function and New_Stream_Procedure.
13949 (New_Stream_Function, New_Stream_Procedure): Removed.
13950 (Analyze_Attribute_Definition_Clause, case Address): Check new
13951 Alignment_Check check
13953 2006-10-31 Ed Schonberg <schonberg@adacore.com>
13954 Javier Miranda <miranda@adacore.com>
13955 Robert Dewar <dewar@adacore.com>
13957 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
13958 generate the same errors compiling under -gnatc.
13959 (Try_Object_Operation): If no candidate interpretation succeeds, but
13960 there is at least one primitive operation with the right name, report
13961 error in call rather than on a malformed selected component.
13962 (Analyze_Selected_Component): If the prefix is an incomplete type from
13963 a limited view, and the full view is available, use the full view to
13964 determine whether this is a prefixed call to a primitive operation.
13965 (Operator_Check): Verify that a candidate interpretation is a binary
13966 operation before checking the type of its second formal.
13967 (Analyze_Call): Add additional warnings for function call contexts not
13969 (Analyze_Allocator): Move the check for "initialization not allowed for
13970 limited types" after analyzing the expression. This is necessary,
13971 because OK_For_Limited_Init looks at the structure of the expression.
13972 Before analysis, we don't necessarily know what sort of expression it
13973 is. For example, we don't know whether F(X) is a function call or an
13974 indexed component; the former is legal in Ada 2005; the latter is not.
13975 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
13976 were missing. We also didn't handle qualified expressions. Now also
13977 allow function calls. Use new common routine OK_For_Limited_Init.
13978 (Analyze_Type_Conversion): Do not perform some legality checks in an
13979 instance, because the error message will be redundant or spurious.
13980 (Analyze_Overloaded_Selected_Component): Do not do style check when
13981 setting an entity, since we do not know it is the right entity yet.
13982 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
13983 (Analyze_Overloaded_Selected_Component): Same change
13984 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
13985 since regular incomplete subtypes are transformed into corresponding
13986 subtypes of their full views.
13987 (Complete_Object_Operation): Treat name of transformed subprogram call
13988 as coming from source, for browsing purposes.
13989 (Try_Primitive_Operation): If formal is an access parameter, compare
13990 with base type of object to determine whether it is a primitive
13992 (Operator_Check): If no interpretation of the operator matches, check
13993 whether a use clause on any candidate might make the operation legal.
13994 (Try_Class_Wide_Operation): Check whether the first parameter is an
13995 access type whose designated type is class-wide.
13997 2006-10-31 Robert Dewar <dewar@adacore.com>
13998 Ed Schonberg <schonberg@adacore.com>
13999 Gary Dismukes <dismukes@adacore.com>
14001 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
14002 warn on infinite loops.
14003 Add \\ to some continuation messages
14004 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
14005 (Process_Bounds): If the bounds are integer literals that result from
14006 constant-folding, and they carry a user-defined type, preserve that type
14007 rather than treating this as an integer range.
14008 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
14009 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
14010 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
14011 left hand side of assignment.
14012 (Analyze_Assignment): Add suport to manage assigments to the attribute
14013 priority of a protected object.
14014 (Check_Possible_Current_Value_Condition): Allow fully qualified names
14015 not just identifiers.
14016 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
14017 or AND THEN for possible tracking.
14018 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
14019 case of while loops so we can track values in the loop body.
14021 2006-10-31 Ed Schonberg <schonberg@adacore.com>
14022 Hristian Kirtchev <kirtchev@adacore.com>
14023 Bob Duff <duff@adacore.com>
14025 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
14026 procedure cannot be a protected operation (it is a basic_declaration,
14027 not a subprogram_declaration).
14028 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
14029 Subp. Add logic for entry processing.
14030 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
14031 Determine whether an entry or subprogram of a protected or task type
14032 override an inherited primitive of an implemented interface.
14033 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
14034 Update the actual used in calls to Check_Overriding_Indicator.
14035 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
14036 generate the proper reference to the parent unit, for cross-reference.
14037 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
14039 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
14040 (Add_Extra_Formal): Revise procedure to allow passing in associated
14041 entity, scope, and name suffix, and handle setting of the new
14042 Extra_Formals field.
14043 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
14044 pass new parameters. Add support for adding the new extra access formal
14045 for functions whose calls are treated as build-in-place.
14046 (Analyze_A_Return_Statement): Correct casing in error message.
14047 Move Pop_Scope to after Analyze_Function_Return, because an extended
14048 return statement really is a full-fledged scope. Otherwise, visibility
14049 doesn't work right. Correct use of "\" for continuation messages.
14050 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
14051 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
14052 the node doesn't get properly marked as analyzed.
14053 (Analyze_Subprogram_Body): If subprogram is a function that returns
14054 an anonymous access type that denotes a task, build a Master Entity
14056 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
14057 proper usage of null exclusion in a result definition.
14058 (Process_Formals): Code cleanup and new error message.
14059 (Process_Formals): Detect incorrect application of null exclusion to
14061 (Conforming_Types): Handle conformance between [sub]types and itypes
14062 generated for entities that have null exclusions applied to them.
14063 (Maybe_Primitive_Operation): Add an additional type retrieval when the
14064 base type is an access subtype. This case arrises with null exclusions.
14065 (New_Overloaded_Entity): Do not remove the overriden entity from the
14066 homonym chain if it corresponds with an abstract interface primitive.
14067 (Process_Formals): Replace membership test agains Incomplete_Kind with a
14068 call to the synthesized predicate Is_Incomplete_Type.
14069 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
14071 (Analyze_Subprogram_Declaration): Check that abstract interface
14072 primitives are abstract or null.
14073 (Analyze_Subprogram_Specification): Remove previous check for abstract
14074 interfaces because it was not complete.
14075 (Has_Interface_Formals): Removed.
14077 2006-10-31 Ed Schonberg <schonberg@adacore.com>
14078 Javier Miranda <miranda@adacore.com>
14080 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
14081 of Analyze_Package_Body, to create Itype references for anonymous
14082 access types created in the package declaration, whose designated types
14083 may have only a limited view.
14084 (Analyze_Package_Specification): For the private part of a nested
14085 package, install private_with_clauses of enclosing compilation unit if
14086 we are in its visible part.
14087 (Declare_Inherited_Private_Subprograms): Complete barrier
14088 to ensure that the primitive operation has an alias to some parent
14089 primitive. This is now required because, after the changes done for the
14090 implementation of abstract interfaces, the contents of the list of
14091 primitives has entities whose alias attribute references entities of
14092 such list of primitives.
14093 (Analyze_Package_Specification): Simplify code that handles parent units
14094 of instances and formal packages.
14095 (Uninstall_Declarations): Check the convention consistency among
14096 primitive overriding operations of a tagged record type.
14098 2006-10-31 Robert Dewar <dewar@adacore.com>
14099 Hristian Kirtchev <kirtchev@adacore.com>
14100 Javier Miranda <miranda@adacore.com>
14101 Ed Schonberg <schonberg@adacore.com>
14103 * sem_ch8.adb: Minor error msg rewording
14104 (Undefined): When checking for misspellings, invert arguments (to get
14105 expected and found set right)
14106 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
14107 (Analyze_Generic_Renaming): Same fix
14108 (Use_One_Package): Do not take into account the internal entities of
14109 abstract interfaces during the analysis of entities that are marked
14110 as potentially use-visible.
14111 (Find_Type): Handle the case of an attribute reference for
14112 implementation defined attribute Stub_Type (simply let the analysis of
14113 the attribute reference rewrite it).
14114 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
14115 type that appears in a Use_Type clause.
14116 (Analyze_Object_Renaming): Add support for renaming of the Priority
14118 (Find_Type): In Ada 2005, a task type can be used within its own body,
14119 when it appears in an access definition.
14120 (Analyze_Object_Renaming): Remove warning on null_exclusion.
14121 (Analyze_Object_Renaming): Introduce checks for required null exclusion
14122 in a formal object declaration or in a subtype declaration.
14123 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
14124 (Check_Null_Exclusion): New local routine to
14125 Analyze_Subprogram_Renaming. Check whether the formals and return
14126 profile of a renamed subprogram have required null exclusions when
14127 their counterparts of the renaming already impose them.
14128 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
14129 Determine whether an entity is inside a generic scope.
14130 (In_Open_Scope): First pass of documentation update.
14131 (Find_Expanded_Name): Add support for shadow entities associated with
14132 limited withed packages. This is required to handle nested packages.
14133 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
14134 that makes a renaming of a limited withed package illegal.
14136 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
14137 Ed Schonberg <schonberg@adacore.com>
14139 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
14140 Check_Overriding_Indicator.
14141 (Analyze_Task_Definition): Ditto.
14142 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
14143 (Check_Overriding_Indicator): To find overridden interface operation,
14144 examine only homonyms that have an explicit subprogram declaration, not
14145 inherited operations created by an unrelated type derivation.
14146 (Check_Overriding_Indicator): When checking for the presence of "null"
14147 in a procedure, ensure that the queried node is a procedure
14149 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
14150 type when the formal is an access to variable.
14151 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
14152 (Analyze_Task_Type): Same addition
14153 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
14154 provide navigation capabilities for entries.
14156 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
14157 Ed Schonberg <schonberg@adacore.com>
14158 Javier Miranda <miranda@adacore.com>
14159 Gary Dismukes <dismukes@adacore.com>
14161 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
14162 inherited from an interface ancestor by another interface in the
14163 context of an instance as 'late'.
14164 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
14165 of a call to a function that dispatches on access result.
14166 (Check_Dispatching_Operation): In case of late overriding of a primitive
14167 that covers abstract interface subprograms we register it in all the
14168 secondary dispatch tables associated with abstract interfaces.
14169 (Check_Dispatching_Call): Add check that a dispatching call is not made
14170 to a function with a controlling result of a limited type. This is a
14171 current implementation restriction.
14172 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
14173 (Check_Dispatching_Operation): Do no emit a warning if the controlling
14174 argument is an interface type that is a generic formal.
14175 (Is_Interface_Subprogram): Removed.
14176 (Check_Dispatching_Operation): If the subprogram is not a dispatching
14177 operation, check the formals to handle the case in which it is
14178 associated with an abstract interface type.
14180 2006-10-31 Robert Dewar <dewar@adacore.com>
14181 Ed Schonberg <schonberg@adacore.com>
14183 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
14184 Add new calls to this procedure during traversal
14185 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
14186 another unit if expansion is disabled.
14188 2006-10-31 Robert Dewar <dewar@adacore.com>
14190 * sem_eval.adb (Compile_Time_Compare): Make use of information from
14191 Current_Value in the conditional case, to evaluate additional
14192 comparisons at compile time.
14194 2006-10-31 Ed Schonberg <schonberg@adacore.com>
14195 Hristian Kirtchev <kirtchev@adacore.com>
14196 Javier Miranda <miranda@adacore.com>
14198 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
14199 subprogram type to provide better diagnostics in case of ambiguity.
14200 (Covers): Handle coverage of formal and actual anonymous access types in
14201 the context of generic instantiation.
14202 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
14203 abstract interface types; this is required to handle concurrent types
14204 with discriminants and abstract interface types.
14205 (Covers): Include type coverage of both regular incomplete subtypes and
14206 incomplete subtypes of incomplete type visibles through a limited with
14209 2006-10-31 Robert Dewar <dewar@adacore.com>
14210 Hristian Kirtchev <kirtchev@adacore.com>
14211 Ed Schonberg <schonberg@adacore.com>
14213 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
14214 messages for entities in packages which are not used.
14215 (Collect_Synchronized_Interfaces): New procedure.
14216 (Overrides_Synchronized_Primitive): New function.
14217 (Denotes_Discriminant): Extend predicate to apply to task types.
14218 Add missing continuation marks in error msgs
14219 (Unqualify): New function for removing zero or more levels of
14220 qualification from an expression. There are numerous places where this
14221 ought to be used, but we currently only deal properly with zero or one
14223 (In_Instance); The analysis of the actuals in the instantiation of a
14224 child unit is not within an instantiation, even though the parent
14225 instance is on the scope stack.
14226 (Safe_To_Capture_Value): Exclude the case of variables that are
14228 (Check_Obsolescent): Removed
14229 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
14230 is an aliased view, even when rewritten as a reference to the target
14231 object in an assignment.
14232 (Get_Subprogram_Entity): New function
14233 (Known_To_Be_Assigned): New function
14234 (Type_Access_Level): Compute properly the access level of a return
14235 subtype that is an anonymous access type.
14236 (Explain_Limited_Type): Correct use of "\" for continuation messages.
14237 (Is_Transfer): The new extended_return_statement causes a transfer of
14239 (Has_Preelaborable_Initialization): New function
14240 (Has_Null_Exclusion): New function. Given a node N, determine whether it
14241 has a null exclusion depending on its Nkind.
14242 Change Is_Lvalue to May_Be_Lvalue
14243 (May_Be_Lvalue): Extensive additional code to deal with subprogram
14244 arguments (IN parameters are not Lvalues, IN OUT parameters are).
14245 (Safe_To_Capture_Value): Extend functionality so it can be used for
14246 the current value condition case.
14247 (Has_Compatible_Alignment): New function
14248 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
14249 objects to handle the Ada 2005 case, where aliasedness no longer implies
14250 that the object is constrained. In particular, for dereferenced names,
14251 the designated object must be assumed to be unconstrained.
14252 (Kill_Current_Values): Properly deal with the case where we encounter
14253 a loop in the scope chain.
14254 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
14256 (Compile_Time_Constraint_Error): Improve error message in error case
14258 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
14259 associated with entities of abstract interface primitives.
14260 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
14262 2006-10-31 Robert Dewar <dewar@adacore.com>
14264 * s-osinte-tru64.adb:
14265 Mark Asm statements Volatile to prevent warnings (seems a
14266 reasonable change anyway)
14269 * s-mastop-irix.adb: Add Volatile to Asm statements
14270 Suppresses warning, and seems appropriate in any case
14272 * s-osinte-vms.adb: Add Volatile to Asm statement
14274 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
14276 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
14278 Add call to Check_Code_Statement
14280 2006-10-31 Robert Dewar <dewar@adacore.com>
14281 Ed Schonberg <schonberg@adacore.com>
14282 Bob Duff <duff@adacore.com>
14284 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
14285 Synchronized_Present): Add Formal_Derived_Type_Definition and
14286 Private_Extension_Declaration to the list of assertions.
14287 (Is_Entry_Barrier_Function): New flag
14288 (Has_Self_Reference): New flag on aggregates, to indicate that they
14289 contain a reference to the enclosing type, inserted through a default
14291 (Next_Rep_Item): Move from Node4 to Node5.
14292 (Entity): Add this field for N_Attribute_Definition_Clause.
14293 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
14294 (N_Return_Object_Declaration): Remove this node kind. We now use
14295 N_Object_Declaration instead.
14296 (Actual_Designated_Subtype): Move to a different place to make room in
14297 N_Extended_Return_Statement.
14298 (Procedure_To_Call): Move to a different place to make room in
14299 N_Extended_Return_Statement.
14300 (Return_Type): Removed this field to make room in return statements
14302 (Return_Statement_Entity): New field in return statements, in part to
14303 replace Return_Type, and in part to support the fact that return
14304 statements are now pushed on the scope stack during semantic analysis.
14305 (Return_Object_Declarations): New field to support extended return
14307 (N_Extended_Return_Statement): New node for extended_return_statement
14309 (N_Return_Object_Declaration): New node for part of
14310 extended_return_statement nonterminal. Needed because all the necessary
14311 fields won't fit in N_Extended_Return_Statement.
14312 Generic_associations now carry the Box_Present flag, to indicate a
14313 default for an actual in a partially parametrized formal package.
14315 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
14316 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
14317 and for the new predefined dispatching policies: EDF_Across_Priorities,
14318 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
14319 Introduce new name Stub_Type for implementation defined attribute.
14320 Add pragma Preelaborable_Initialization
14321 Add entry for Priority attribute.
14322 Add Pragma_Wide_Character_Encoding
14323 (Get_Convention_Name): Given a convention id, this function returns the
14324 corresponding name id from the names table.
14326 2006-10-31 Ed Schonberg <schonberg@adacore.com>
14327 Robert Dewar <dewar@adacore.com>
14328 Bob Duff <duff@adacore.com>
14330 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
14331 print null exclusion twice in the case of an access definition,
14332 Implement new -gnatL switch
14333 Remove N_Return_Object_Declaration. We now use
14334 N_Object_Declaration instead. Implement the case for
14335 N_Extended_Return_Statement. Alphabetize the cases.
14336 Add cases for new nodes N_Extended_Return_Statement and
14337 N_Return_Object_Declaration. The code is not yet written.
14338 Update the output for N_Formal_Object_Declaration
14339 and N_Object_Renaming_Declaration.
14340 (Write_Itype): Account for the case of a modular integer subtype whose
14341 base type is private.
14343 2006-10-31 Arnaud Charlet <charlet@adacore.com>
14345 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
14346 Remove elaboration code, now done in the binder.
14348 * s-rident.ads: Make this unit Preelaborate.
14349 (No_Restrictions): New constant used to clean up code and follow
14350 preelaborate constraints.
14353 Add System.Restrictions dependence, referenced directly from the
14354 binder generated file.
14356 2006-10-31 Gary Dismukes <dismukes@adacore.com>
14358 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
14359 True when AAMP extended floating-point is in use (48-bit). Change type
14360 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
14361 the two byte array types on AFloat. Change type of IV_Ilf overlay
14362 variable from Byte8 to ByteLF. Add appropriate initializations of
14363 floating-point overlays for AAMP cases.
14365 2006-10-31 Javier Miranda <miranda@adacore.com>
14367 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
14368 (Get_Ceiling): New subprogram that returns
14369 the ceiling priority of the protected object.
14370 (Set_Ceiling): New subprogram that sets the new ceiling priority of
14371 the protected object.
14373 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
14375 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
14377 2006-10-31 Jose Ruiz <ruiz@adacore.com>
14379 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
14380 requeuing to the same protected object to give higher priority tasks
14381 the opportunity to execute.
14383 2006-10-31 Robert Dewar <dewar@adacore.com>
14385 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
14386 add more precise check for the character sequence that follows '[' to
14387 avoid possible confusion in case if '[' is the last character of a
14389 (Scan_Wide): Always allow brackets encoding
14391 2006-10-31 Olivier Hainque <hainque@adacore.com>
14393 * s-stchop.ads: make this unit preelaborate. This is desirable in
14394 general and made mandatory by the use of this unit by s-taprop which
14395 is itself preelaborate.
14397 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
14398 Td_Events component.
14400 2006-10-31 Vincent Celier <celier@adacore.com>
14402 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
14405 2006-10-31 Vincent Celier <celier@adacore.com>
14407 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
14409 2006-10-31 Vincent Celier <celier@adacore.com>
14411 * makegpr.adb (Check_Compilation_Needed): Take into account path names
14413 (Check_Compilation_Needed): When checking a C or C++ source, do not
14414 resolve symbolic links.
14415 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
14416 When not in verbose mode and Ellipse is True, display "..." for the
14417 first argument with Display set to False.
14418 (Build_Global_Archive): Always set Display True for the first object
14419 file. Call Display_Command with Ellipse set to True.
14421 2006-10-31 Matt Heaney <heaney@adacore.com>
14423 * a-crbtgo.ads: Commented each subprogram
14425 * a-crbtgo.adb: Added reference to book from which algorithms were
14428 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
14429 indicate which child.
14430 (Generic_Conditional_Insert): changed parameter name from "Success" to
14432 (Generic_Unconditional_Insert_With_Hint): improved algorithm
14434 * a-coorse.adb (Replace_Element): changed parameter name in call to
14435 conditional insert operation.
14437 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
14439 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
14442 * a-ciorse.adb (Replace_Element): changed parameter name in call to
14443 conditional insert operation.
14445 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
14448 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
14449 instead of mode inout.
14451 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
14453 (Generic_Read): preserve existing buckets array if possible
14454 (Generic_Write): don't send buckets array length anymore
14456 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
14457 instead of mode inout.
14459 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
14460 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
14462 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
14463 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
14464 (Replace_Element): local operation is now an instantiation
14466 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
14467 check current length.
14468 (Generic_Replace_Element): new operation
14470 2006-10-31 Doug Rupp <rupp@adacore.com>
14472 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
14473 Call TBK$SYMBOLIZE without omitting parameters.
14475 2006-10-31 Vincent Celier <celier@adacore.com>
14477 * symbols-processing-vms-ia64.adb,
14478 symbols-processing-vms-alpha.adb (Process): Do not include symbols
14479 that come from generic instantiations in bodies.
14481 2006-10-31 Pat Rogers <rogers@adacore.com>
14483 * a-rttiev.ads, a-rttiev.adb:
14484 This is a significant redesign primarily for the sake of automatic
14485 timer task termination but also to fix a design flaw.
14486 Therefore we are now using an RTS lock, instead of a protected
14487 object, to provide mutual exclusion to the queue of pending events
14488 and the type Timing_Event is no longer a protected type.
14490 2006-10-31 Robert Dewar <dewar@adacore.com>
14491 Cyrille Comar <comar@adacore.com>
14492 Ben Brosgol <brosgol@adacore.com>
14494 * debug.adb: Update flags documentation
14496 * gnat_ugn.texi: Add documentation for new -gnatwq switch
14497 Clean up documentation for several other warning switches
14498 Clarify how task stack size can be specified with various
14499 versions of Windows.
14500 Add note that -gnatVo includes ranges including loops
14501 Add documentation for -gnatL switch
14502 Add note on elaboration warning for initializing variables
14503 Add documentation for new -gnatwt warning switch
14504 Document new form of pragma Warnings (On|Off, string)
14505 Add comment on use of pragma Warnings to control warnings
14506 Add documentation for -gnatjnn switch
14507 Modify section on interfacing with C for VMS 64-bit.
14508 Add doc for -gnatVe/E
14509 Add documentation of new warning flags -gnatww/-gnatwW
14510 Add warnings about address clause overlays to list of warnings
14511 (Exception Handling Control): Document that the option --RTS must be
14512 used consistently for gcc and gnatbind.
14513 Clarify that inlining is not always possible
14514 Update documentation on pragma Unchecked_Union.
14517 Add documentation for new extended version of pragma Obsolescent
14518 Add documentation for implementation defined attribute 'Stub_Type.
14519 Add note on use of Volatile in asm statements
14520 Add documentation on use of pragma Unreferenced in context clause
14521 Document new form of pragma Warnings (On|Off, pattern)
14522 Document pragma Wide_Character_Encoding
14523 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
14524 enforced if code generation is active.
14525 Add section on pragma Suppress to document GNAT specific check
14527 Clarify difference between No_Dispatching_Calls & No_Dispatch.
14528 Add documentation for pragma Restrictions (No_Elaboration_Code)
14531 Add comments on layout of subprogram local variables in the
14532 presence of nested subprograms.
14534 * ug_words: Resync.
14536 * elists.ads: Minor reformatting
14537 Node returns Node_Or_Entity_Id (doc change only)
14539 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
14541 * g-arrspl.ads (Create): Update comments.
14543 * sem.ads: Add details on the handling of the scope stack.
14545 * usage.adb: Update documentation.
14547 * validsw.ads, validsw.adb:
14548 Add definition of Validity_Check_Components and implement -gnatVe/E
14550 * vms_data.ads: Add missing VMS qualifiers.
14552 * s-addope.ads: Add documentation on overflow and divide by zero
14554 2006-10-31 Robert Dewar <dewar@adacore.com>
14555 Thomas Quinot <quinot@adacore.com>
14556 Arnaud Charlet <charlet@adacore.com>
14558 * fmap.adb: Put routines in alpha order
14560 * g-boumai.ads: Remove redundant 'in' keywords
14562 * g-cgi.adb: Minor reformatting
14564 * g-cgi.ads: Remove redundant 'in' keywords
14566 * get_targ.adb: Put routines in alpha order
14568 * prj-attr.ads: Minor reformatting
14570 * s-atacco.ads: Minor reformatting
14572 * scn.adb: Put routines in alpha order
14574 * sinput-l.adb: Minor comment fix
14576 * sinput-p.adb: Minor comment fix
14578 * s-maccod.ads: Minor reformatting
14580 * s-memory.adb: Minor reformatting
14582 * s-htable.adb: Fix typo in comment.
14584 * s-secsta.adb: Minor comment update.
14586 * s-soflin.adb: Minor reformatting
14589 Add comment about odd qualification in Storage_Offset declaration
14592 Remove unnecessary 'in' keywords for formal parameters.
14594 * treeprs.adt: Minor reformatting
14596 * urealp.adb: Put routines in alpha order
14598 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
14601 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
14603 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
14605 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
14606 workaround as on other platforms.
14608 * g-eacodu-vms.adb: Remove redundant 'in' keywords
14609 * g-expect-vms.adb: Remove redundant 'in' keywords
14611 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
14612 clear error message if the list-of-files file cannot be opened.
14614 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
14615 equality operator is always visible.
14617 * lang.opt: Woverlength-strings: New option.
14620 Update copyright, since nmake.ads and nmake.adb have changed.
14622 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
14623 (Binder_Output_Time_Stamps_Set): removed.
14624 (Old_Binder_Output_Time_Stamp): idem.
14625 (New_Binder_Output_Time_Stamp): idem.
14626 (Recording_Time_From_Last_Bind): idem.
14627 (Recording_Time_From_Last_Bind): Make constant.
14629 * output.ads, output.adb (Write_Str): Allow LF characters
14630 (Write_Spaces): New procedure
14632 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
14634 * inline.adb: Minor reformatting
14636 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
14638 * s-mastop-vms.adb: Remove redundant 'in' keywords
14640 * s-osprim-vms.adb: Remove redundant 'in' keywords
14642 * s-trafor-default.adb: Remove redundant 'in' keywords
14644 * 9drpc.adb: Remove redundant 'in' keywords
14646 * s-osinte-mingw.ads: Minor reformatting
14648 * s-inmaop-posix.adb: Minor reformatting
14650 * a-direio.ads: Remove quotes from Compile_Time_Warning message
14652 * a-exexda.adb: Minor code reorganization
14654 * a-filico.adb: Minor reformatting
14656 * a-finali.adb: Minor reformatting
14658 * a-nudira.ads: Remove quote from Compile_Time_Warning message
14660 * a-numeri.ads: Minor reformatting
14662 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
14664 * exp_pakd.ads: Fix obsolete comment
14666 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
14667 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
14668 Probably not a bug, but certainly neater and more efficient.
14670 * a-tienio.adb: Minor reformatting
14672 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
14673 Avoid assuming low bound of string is 1.
14675 * gnatbind.adb: Change Bindusg to package and rename procedure as
14676 Display, which now ensures that it only outputs usage information once.
14677 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
14679 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
14682 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
14684 (Match): Add pragma Assert to ensure that Matches'First is zero
14686 * g-regpat.ads (Match): Document that Matches lower bound must be zero
14688 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
14689 documented preconditions (also kills warnings about bad indexes).
14691 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
14693 (Build_Import_Library): Ditto;
14695 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
14697 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
14699 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
14700 lower bound of choice table is 1.
14702 * sem_case.ads (Analyze_Choices): Document that lower bound of
14705 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
14708 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
14709 and add appropriate Assert pragma to suppress warnings.
14711 * atree.h, atree.ads, atree.adb
14712 Change Elist24 to Elist25
14713 Add definitions of Field28 and Node28
14714 (Traverse_Field): Use new syntactic parent table in sinfo.
14716 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
14718 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
14720 * exp_tss.adb: Put routines in alpha order
14722 * fe.h: Remove redundant declarations.
14724 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
14726 * utils.c (builtin_function): Rename to gnat_builtin_function.
14727 Move common code to add_builtin_function.
14728 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
14729 gnat_builtin_function.
14730 * gigi.h (builtin_function): Rename to gnat_builtin_function.
14731 Change the signature.
14733 2006-10-16 Brooks Moses <bmoses@stanford.edu>
14735 * Makefile.in: Add TEXI2PDF definition.
14736 * Make-lang.in: Add "ada.pdf" target.
14738 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
14740 * decl.c, utils.c: Fix comment typos.
14741 * utils.c: Fix a typo.
14743 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
14745 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
14746 on "pure" Ada subprograms if SJLJ exceptions are used.
14747 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
14748 on the declaration node of JMPBUF_SAVE.
14749 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
14750 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
14751 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
14753 2006-08-20 Laurent Guerby <laurent@guerby.net>
14756 g-socket.adb (Bind_Socket): Call Set_Address.
14758 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
14761 * decl.c (same_discriminant_p): New static function.
14762 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
14763 subtype and we have discriminants, fix up the COMPONENT_REFs
14764 for the discriminants to make them reference the corresponding
14765 fields of the parent subtype after it has been built.
14767 2006-09-15 Roger Sayle <roger@eyesopen.com>
14770 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
14771 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
14773 2006-09-13 Olivier Hainque <hainque@adacore.com>
14776 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
14777 of a SAVE_EXPR, just make the operand addressable/not-readonly and
14778 let the common gimplifier code make and propagate a temporary copy.
14779 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
14780 out/in-out actuals and defer setting the addressable/readonly bits
14783 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
14786 * decl.c (components_to_record): Defer emitting debug info for the
14787 record type associated with the variant until after we are sure to
14790 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
14793 * gigi.h (gnat_internal_attribute_table): Declare.
14794 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
14795 * utils.c (gnat_internal_attribute_table): New global variable.
14796 (builtin_function): Always call decl_attributes on the builtin.
14797 (handle_const_attribute): New static function.
14798 (handle_nothrow_attribute): Likewise.
14800 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
14802 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
14804 2006-06-23 Olivier Hainque <hainque@adacore.com>
14806 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
14807 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
14809 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
14810 Eric Botcazou <ebotcazou@adacore.com>
14813 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
14814 check-gnat into check-acats.
14816 2006-06-17 Karl Berry <karl@gnu.org>
14818 * gnat-style.texi (@dircategory): Use "Software development"
14819 instead of "Programming", following the Free Software Directory.
14821 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14824 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
14826 2006-06-06 Laurent Guerby <laurent@guerby.net>
14829 mlib-utl.adb: Use Program_Name.
14831 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
14833 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
14834 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
14835 trans.c, utils.c: Fix comment typos. Follow spelling
14837 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
14840 2006-05-19 Nicolas Setton <setton@adacore.com>
14842 * misc.c (gnat_dwarf_name): New function.
14843 (LANG_HOOKS_DWARF_NAME): Define to it.
14845 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
14847 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
14848 (ada/misc.o): Likewise.
14849 (ada/utils.o): Likewise.
14851 2006-04-08 Aurelien Jarno <aurel32@debian.org>
14853 * Makefile.in: Add Ada support for GNU/kFreeBSD.
14854 * s-osinte-kfreebsd-gnu.ads: New file.
14856 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
14858 * Make-lang.in: Rename docdir to gcc_docdir.
14860 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
14862 * gigi.h (get_ada_base_type): Delete.
14863 * utils2.c (get_ada_base_type): Likewise.
14864 * trans.c (convert_with_check): Operate in the real base type.
14866 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14868 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
14870 2006-03-02 Richard Sandiford <richard@codesourcery.com>
14872 * utils.c (create_var_decl): Use have_global_bss_p when deciding
14873 whether to make the decl common.
14875 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
14877 * Make-lang.in (Ada): Remove.
14878 (.PHONY): Remove Ada
14880 2006-02-17 Ed Schonberg <schonberg@adacore.com>
14882 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
14883 aggregate, check the interpretations of the other operand to find one
14884 that may be a boolean array.
14886 (Analyze_Selected_Component): Fix flow-of-control typo in case where
14887 the prefix is a private extension.
14889 2006-02-17 Eric Botcazou <botcazou@adacore.com>
14892 * utils2.c (find_common_type): If both input types are BLKmode and
14893 have the same constant size, keep using the first one.
14895 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
14897 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
14899 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
14901 2006-02-17 Jose Ruiz <ruiz@adacore.com>
14903 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
14904 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
14905 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
14906 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
14907 Abort_Defer/Undefer pairs to avoid the possibility of a task being
14908 aborted while owning a lock.
14910 2006-02-17 Javier Miranda <miranda@adacore.com>
14911 Robert Dewar <dewar@adacore.com>
14913 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
14914 through an access to class-wide interface we force the displacement of
14915 the pointer to the allocated object to reference the corresponding
14916 secondary dispatch table.
14917 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
14918 if Long_Shifts are supported on the target, even if 64 bit divides
14919 are not supported (configurable run time mode).
14920 (Expand_N_Type_Conversion): Do validity check if validity checks on
14921 operands are enabled.
14922 (Expand_N_Qualified_Expression): Do validity check if validity checks
14923 on operands are enabled.
14925 2006-02-17 Ed Schonberg <schonberg@adacore.com>
14927 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
14928 must be materialized when the renamed expression is an explicit
14931 2006-02-17 Ed Schonberg <schonberg@adacore.com>
14933 * freeze.adb (Statically_Discriminated_Components): Return false if
14934 the bounds of the type of the discriminant are not static expressions.
14936 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
14937 the bounds of the discriminant type are not static.
14939 2006-02-17 Robert Dewar <dewar@adacore.com>
14941 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
14942 then we close To if it is valid.
14944 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
14946 * init.c (facility_resignal_table): new array
14947 (__gnat_default_resignal_p): enhance default predicate to resignal if
14948 VMS condition has one of the predefined facility codes.
14950 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
14952 * Makefile.in: Use VMS64 specialized versions of several units in
14953 Interfaces.C hierarchy to be compatible with HP C default size choices.
14954 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
14956 2006-02-17 Ed Schonberg <schonberg@adacore.com>
14958 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
14959 instantiation, the corresponding entity is the related_instance of the
14960 wrapper package created for the instance.
14962 2006-02-17 Ed Schonberg <schonberg@adacore.com>
14964 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
14965 the current instance is nested within another instance in a child unit.
14967 2006-02-17 Javier Miranda <miranda@adacore.com>
14968 Ed Schonberg <schonberg@adacore.com>
14970 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
14971 type we cannot inherit the primitive operations; we inherit the
14972 Corresponding_Record_Type (which has the list of primitive operations).
14973 (Check_Anonymous_Access_Types): When creating anonymous access types for
14974 access components, use Rewrite in order to preserve the tree structure,
14976 (Analyze_Object_Declaration): For limited types with access
14977 discriminants with defaults initialized by an aggregate, obtain
14978 subtype from aggregate as for other mutable types.
14979 (Derived_Type_Declaration): If the derived type is a limited interface,
14980 set the corresponding flag (Is_Limited_Record is not sufficient).
14982 2006-02-17 Ed Schonberg <schonberg@adacore.com>
14984 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
14985 to inline a function that returns an unconstrained type, the return
14986 expression must be the first variable declared in the body of the
14989 2006-02-17 Javier Miranda <miranda@adacore.com>
14991 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
14992 abstract interface type, the static analysis is not enough to know if
14993 the interface is implemented or not by the source tagged type. Hence
14994 we must pass the work to the expander to generate the required code to
14995 evaluate the conversion at run-time.
14996 (Resolve_Equality_Op): Do not apply previous
14997 transformation if expansion is disasbled, to prevent anomalies when
14998 locating global references in a generic unit.
15000 2006-02-17 Vincent Celier <celier@adacore.com>
15002 * snames.ads, snames.adb: New standard names for new project attributes:
15003 archive_builder, archive_indexer, compiler_pic_option,
15004 config_body_file_name, config_body_file_name_pattern,
15005 config_file_switches, config_file_unique, config_spec_file_name,
15006 config_spec_file_name_pattern, default_builder_switches,
15007 default_global_compiler_switches, default_language,
15008 dependency_file_kind, global_compiler_switches, include_path,
15009 include_path_file, language_kind, linker_executable_option,
15010 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
15011 roots, runtime_project.
15013 2006-02-17 Matthew Heaney <heaney@adacore.com>
15015 * a-convec.ads, a-convec.adb:
15016 (operator "&"): handle potential overflow for large index types
15017 (Insert): removed Contraint_Error when using large index types
15018 (Insert_Space): removed Constraint_Error for large index types
15019 (Length): moved constraint check from Length to Insert
15021 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
15022 as not null access.
15023 Explicit raise statements now include an exception message.
15024 (operator "&"): handle potential overflow for large index types
15025 (Insert): removed Contraint_Error when using large index types
15026 (Insert_Space): removed Constraint_Error for large index types
15027 (Length): moved constraint check from Length to Insert
15029 2006-02-17 Robert Dewar <dewar@adacore.com>
15031 * s-wchcnv.adb: Document handling of [ on output (we do not change
15032 this to ["5B"] and the new comments say why not.
15035 Add note for -gnatVo that this now includes the cases of type
15036 conversions and qualified expressions.
15037 Add comments on handling of brackets encoding for Text_IO
15039 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
15040 Thomas Quinot <quinot@adacore.com>
15041 Robert Dewar <dewar@adacore.com>
15042 Javier Miranda <miranda@adacore.com>
15044 * expander.adb: Fix typo in comment
15046 * exp_pakd.adb: Fix typo
15047 Minor comment reformatting.
15049 * g-dyntab.adb: Minor reformatting
15051 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
15052 aliased subprograms to look for the abstract interface subprogram.
15054 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
15056 * env.c (__gnat_setenv): Use size_t.
15057 (__gnat_unsetenv): Likewise.
15058 (__gnat_clearenv): Likewise.
15060 2006-02-16 Arnaud Charlet <charlet@adacore.com>
15062 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
15064 2006-02-13 Arnaud Charlet <charlet@adacore.com>
15066 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
15067 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
15068 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
15069 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
15070 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
15071 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
15072 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
15073 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
15074 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
15077 2006-02-13 Jose Ruiz <ruiz@adacore.com>
15079 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
15080 protection against race conditions is not needed.
15081 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
15083 (Set_Specific_Handler): Add mutual exclusive access to the specific
15085 (Specific_Handler): Add mutual exclusive access for retrieving the
15088 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
15091 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
15092 Fall_Back_Handler and Specific_Handler.
15094 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
15095 termination handlers.
15096 Set two different owerflow depending on the maximal stack size.
15098 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
15099 protection against race conditions is not needed when executing the
15100 task termination handler.
15102 2006-02-13 Robert Dewar <dewar@adacore.com>
15104 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
15105 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
15106 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
15107 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
15108 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
15109 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
15110 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
15111 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
15112 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
15113 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
15114 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
15115 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
15116 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
15117 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
15118 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
15119 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
15120 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
15121 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
15122 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
15123 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
15124 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
15125 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
15126 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
15127 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
15128 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
15129 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
15130 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
15131 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
15132 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
15133 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
15134 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
15135 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
15136 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
15137 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
15140 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
15142 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
15143 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
15144 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
15145 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
15146 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
15147 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
15148 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
15149 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
15150 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
15152 2006-02-13 Arnaud Charlet <charlet@adacore.com>
15154 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
15155 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
15156 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
15157 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
15158 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
15159 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
15160 replaced by anonymous access type.
15161 (pthread_sigmask): Now take an access sigset_t
15163 * s-osinte-hpux.ads: Ditto.
15164 (pthread_mutex_t, pthread_cond_t): Update definitions to support
15165 properly 32 and 64 bit ABIs.
15167 2006-02-13 Pascal Obry <obry@adacore.com>
15169 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
15170 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
15171 s-taprop-linux.adb, s-taprop-solaris.adb,
15172 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
15173 adjustement is already done when calling this routine.
15175 2006-02-13 Pascal Obry <obry@adacore.com>
15177 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
15178 table to take advantage of the 16 priority levels available on Windows
15179 2000 and XP. On NT4 there are only 7 priority levels, this is properly
15180 supported by this new mapping.
15182 2006-02-13 Nicolas Setton <setton@adacore.com>
15184 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
15185 (get_encoding): New subprogram. Extracts the encodings from an encoded
15188 2006-02-13 Pascal Obry <obry@adacore.com>
15189 Nicolas Roche <roche@adacore.com>
15190 Arnaud Charlet <charlet@adacore.com>
15192 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
15194 (__gnat_try_lock): Add unicode support by using a specific section on
15196 (__gnat_get_current_dir): Idem.
15197 (__gnat_open_read): Idem.
15198 (__gnat_open_rw): Idem.
15199 (__gnat_open_create): Idem.
15200 (__gnat_create_output_file): Idem.
15201 (__gnat_open_append): Idem.
15202 (__gnat_open_new): Idem.
15203 (__gnat_file_time_name): Idem.
15204 (__gnat_set_file_time_name): Idem.
15205 (__gnat_stat): Idem.
15206 (win32_no_block_spawn): Idem.
15207 (__gnat_locate_exec_on_path): Idem.
15208 (__gnat_opendir): New routine.
15209 (__gnat_closedir): Idem.
15210 (__gnat_readdir): Add new parameter length (pointer to int). Update
15211 implementation to use it and add specific Win32 code for Unicode
15213 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
15214 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
15215 (convert_addresses): Do not define this dummy routine on VMS.
15217 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
15218 runtime Unicode support will be activated.
15219 (S2WS): String to Wide-String conversion. This version just copy a
15220 string in non Unicode version.
15221 (WS2S): Wide-String to String conversion. This version just copy a
15222 string in non Unicode version.
15224 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
15225 (Open): Now import __gnat_opendir from adaint.c.
15226 (Read): Change the implementation to support unicode characters. It is
15227 not possible to use strlen() on Windows as this version supports only
15228 standard ASCII characters. So the length of the directory entry is now
15229 returned from the imported __gnat_readdir routine.
15230 Update copyright notice.
15232 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
15233 (opendir): Moved to adaint.c.
15235 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
15236 (Get_Directory): Fix wrong indexing.
15237 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
15238 __gnat_getenv from env.c
15239 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
15242 * env.h, env.c: New file.
15244 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
15245 adaint.c by __gnat_getenv from env.c
15247 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
15248 adaint.c by __gnat_getenv from env.c
15250 * Make-lang.in: Add env.o in the list of C object needed by gnat1
15252 Update dependencies.
15254 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15255 Olivier Hainque <hainque@adacore.com>
15256 Eric Botcazou <ebotcazou@adacore.com>
15258 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
15260 * gigi.h (value_factor_p): Add prototype and description, now public.
15262 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
15263 promotion for field with rep clause if the associated size was proven
15265 Expand comments describing attempts to use a packable type.
15266 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
15267 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
15268 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
15269 necessary since these are not different types and pointers may
15270 actually designate any subtype in this hierarchy.
15271 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
15272 discriminants but put them into record only if not Unchecked_Union;
15273 pass flag to components_to_record showing Unchecked_Union.
15274 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
15275 components before variants; don't set TYPE_UNCHECKED_UNION_P.
15276 (components_to_record): New argument UNCHECKED_UNION.
15277 Remove special case code for Unchecked_Union and instead use main code
15278 with small changes.
15281 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
15282 variable with the expression being built, only its inner field.
15284 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
15285 emit_sequence_entry_statements.
15286 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
15287 (establish_gnat_vms_condition_handler): Move before
15288 Subprogram_Body_to_gnu.
15289 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
15290 for a subprogram if it has a foreign convention or is exported.
15291 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
15292 substituted for a CONST_DECL.
15293 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
15294 Etype to assoc_to_constructor.
15295 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
15296 discriminants of Unchecked_Union.
15297 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
15298 don't need cluttering preprocessor directives.
15299 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
15300 condition handler as current in the compiled function.
15301 (body_with_handlers_p): New function. Tell whether a given sequence of
15302 statements node is attached to a package or subprogram body and involves
15303 exception handlers possibly nested within inner block statements.
15304 (emit_sequence_entry_statements): New function, to emit special
15305 statements on entry of sequences when necessary. Establish GNAT
15306 condition handler in the proper cases for VMS.
15307 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
15308 emit_sequence_entry_statements.
15310 * utils2.c (find_common_type): If both input types are BLKmode and
15311 have a constant size, use the smaller one.
15312 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
15315 * utils.c (value_factor_p): Make public, to allow uses from other gigi
15317 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
15318 (convert, case UNION_TYPE): Remove special treatment for unchecked
15322 (update_pointer_to): Update variants of pointer types to unconstrained
15323 arrays by attaching the list of fields of the main variant.
15325 2006-02-13 Arnaud Charlet <charlet@adacore.com>
15326 Robert Dewar <dewar@adacore.com>
15328 * a-exexpr.adb, a-exexpr-gcc.adb
15329 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
15330 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
15331 Remove code unused for exception propagation for the compiler itself
15332 from a-except.adb and update to still share separate packages.
15334 * a-except.ads, a-except.adb: Ditto.
15335 Add comments that this version is now used only by the compiler and
15336 other basic tools. The full version that includes the Ada 2005 stuff
15337 is in separate files a-except-2005.ads/adb. The reason is that we do
15338 not want to cause bootstrap problems with compilers not recognizing
15340 Add exception reason code PE_Implicit_Return
15341 Add new exception reason code (Null Exception_Id)
15343 * a-except-2005.adb, a-except-2005.ads: New files.
15345 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
15347 * s-wchcon.adb: New file.
15349 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
15350 (traceback.o deps): Likewise.
15351 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
15352 Activate build of GMEM instrumentation library on VMS targets.
15353 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
15354 Use a-except-2005.ads/adb for all run-time library builds unless
15355 specified otherwise.
15356 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
15357 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
15358 Use s-parame.adb on all native platforms.
15359 Use s-parame-vxworks.adb on all vxworks platforms.
15360 Add env.c env.h in LIBGNAT_SRCS
15361 Add env.o in LIBGNAT_OBJS
15362 (GNATMAKE_OBJS): Remove ctrl_c.o object.
15363 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
15364 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
15365 supports VxWorks 6 RTPs.
15366 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
15367 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
15369 * types.h, types.ads (Terminate_Program): New exception
15370 Add comment on modifying multiple versions of a-except.adb when the
15371 table of exception reasons is modified.
15372 Add exception reason code PE_Implicit_Return
15373 Add new exception reason code (Null Exception_Id)
15375 * clean.adb (Initialize): Get the target parameters before checking
15376 if target is OpenVMS. Move the OpenVMS specific code here from package
15377 body elaboration code.
15379 2006-02-13 Thomas Quinot <quinot@adacore.com>
15380 Vincent Celier <celier@adacore.com>
15381 Robert Dewar <dewar@adacore.com>
15383 * ali-util.adb (Get_File_Checksum): Update to account for change in
15384 profile of Initialize_Scanner.
15386 * gprep.adb (Gnatprep): Update to account for change in profile of
15387 Initialize_Scanner.
15388 (Process_One_File): Same.
15390 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
15391 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
15392 that behaviour using the new Unit information recorded in the source
15393 files table, rather than going through all units every time.
15394 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
15395 (Get_Source_Unit): Same.
15397 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
15398 change in profile of Initialize_Scanner.
15399 (Prepare_To_Preprocess): Same.
15401 * lib.ads: Fix typo in comment (templace -> template).
15403 * prj-part.adb (Parse_Single_Project): Update to account for change in
15404 profile of Initialize_Scanner.
15406 * scn.adb (Initialize_Scanner): Account for change in profile of
15407 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
15408 Also record the association of the given Source_File_Index to the
15409 corresponding Unit_Number_Type.
15411 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
15413 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
15414 Remove Unit formal for generic scanner: this formal
15415 is only relevant to Scn (the scanner instance used to parse Ada source
15416 files), not to other instances. Update comment accordingly.
15417 (Scan): Use new function Snames.Is_Keyword_Name.
15419 * sinfo-cn.adb: Fix typo in comment.
15421 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
15424 * sinput.ads (Source_File_Record): New component Unit, used to capture
15425 the unit identifier (if any) associated to a source file.
15427 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
15428 Unit in Source_File_Record.
15430 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
15431 in profile of Initialize_Scanner.
15433 * scans.adb (Initialize_Ada_Keywords): New procedure
15435 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
15436 Ada keywords in the Namet table, without the need to call
15437 Initialize_Scanner.
15439 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
15440 (Is_Keyword_Name): New function
15442 * snames.ads: Add subtype Configuration_Pragma_Names
15443 Add pragma Ada_2005 (synonym for Ada_05)
15444 (Is_Keyword_Name): New function
15446 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
15448 2006-02-13 Arnaud Charlet <charlet@adacore.com>
15450 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
15453 * a-stwima.adb (To_Set): Add extra check when N = 0.
15455 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
15457 2006-02-13 Arnaud Charlet <charlet@adacore.com>
15459 * s-parame-mingw.adb, s-parame-linux.adb,
15460 s-parame-solaris.adb: Removed, replaced by s-parame.adb
15462 * s-parame-vxworks.ads: Fix typo.
15464 * s-parame-vxworks.adb: New file.
15466 * s-parame.adb: Version now used by all native platforms.
15467 (Default_Stack_Size): Use 2 megs for default stack size and use
15468 __gl_default_stack_size when available.
15469 (Minimum_Stack_Size): Use 12K.
15471 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
15472 (Create_Task): Refine implementation taking advantage of the XP stack
15473 size support. On XP, we now create the thread using the flag
15474 STACK_SIZE_PARAM_IS_A_RESERVATION.
15476 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
15478 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
15479 XP and 0 on older Windows versions.
15481 * interfac-vms.ads: Removed, no longer used.
15483 2006-02-13 Matthew Heaney <heaney@adacore.com>
15485 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
15486 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
15487 a-cohase.adb: All explicit raise statements now include an exception
15490 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
15491 (Update_Element_Preserving_Key): renamed op to just Update_Element.
15492 Explicit raise statements now include an exception message
15494 * a-cihase.ads, a-cohase.ads: Removed comment.
15496 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
15497 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
15498 a-szbzha.adb, a-szfzha.ads: New files.
15500 2006-02-13 Matthew Heaney <heaney@adacore.com>
15502 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
15505 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
15507 * lang.opt: Wvariadic-macros: New option.
15508 Wold-style-definition: Likewise.
15509 Wmissing-format-attribute: Likewise.
15511 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
15512 -Wold-style-definition and -Wmissing-format-attribute.
15514 2006-02-13 Robert Dewar <dewar@adacore.com>
15516 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
15518 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
15520 2006-02-13 Nicolas Roche <roche@adacore.com>
15522 * a-envvar.adb, a-envvar.ads: New files.
15524 2006-02-13 Douglas Rupp <rupp@adacore.com>
15526 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
15528 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
15530 2006-02-13 Pat Rogers <rogers@adacore.com>
15532 * a-rttiev.adb, a-rttiev.ads: New files.
15534 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
15536 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
15537 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
15539 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
15541 2006-02-13 Robert Dewar <dewar@adacore.com>
15543 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
15544 sem_case.adb: Minor code reorganization (not Present should be No)
15546 2006-02-13 Geert Bosch <bosch@adacore.com>
15547 Gary Dismukes <dismukes@adacore.com>
15549 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
15550 0, since the lower bound of the actual string may be greater than one.
15553 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
15554 layout is requested.
15556 2006-02-13 Vincent Celier <celier@adacore.com>
15558 * back_end.adb (Scan_Compiler_Arguments): Check if
15559 Search_Directory_Present is True and, if it is, add the argument in
15560 the source search directory path.
15562 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
15563 Search_Directory_Present to True.
15565 2006-02-13 Joel Brobecker <brobecke@adacore.com>
15567 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
15568 volatile, to tell the compiler to preserve this variable at any level
15570 (Gen_Versions_Ada): Temporarily work around codegen bug.
15572 2006-02-13 Vincent Celier <celier@adacore.com>
15574 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
15575 gcc to link with option -shared-libgcc.
15576 (Gnatlink): Remove duplicate switches -shared-libgcc
15578 2006-02-13 Robert Dewar <dewar@adacore.com>
15580 * gnatvsn.ads (Current_Year): New constant, used to easily update
15581 copyright on all GNAT tools.
15583 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
15586 2006-02-13 Robert Dewar <dewar@adacore.com>
15588 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
15589 after hyphen (small aesthetic change useful for a range of numbers
15591 Suppress range checks for a couple of assignments which otherwise
15592 cause validity checks with validity checking turned on.
15594 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
15595 Improvement in error message for object.
15596 (Rep_Item_Too_Late): Remove '!' in warning message.
15598 2006-02-13 Robert Dewar <dewar@adacore.com>
15599 Eric Botcazou <ebotcazou@adacore.com>
15601 * err_vars.ads: Suppress range checks for a couple of assignments
15602 which otherwise cause validity checks with validity checking turned on.
15605 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
15606 Make message unconditional if it is a warning.
15607 (Error_Msg_NEL): Always output warning messages.
15608 Suppress range checks for a couple of assignments which otherwise
15609 cause validity checks with validity checking turned on.
15611 * errout.ads (Message Insertion Characters): Document that '!' is
15612 implied by '?' in error messages.
15614 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
15615 (Gnat1drv): Use a goto to end of main subprogram instead of
15616 Exit_Program (E_Success) so that finalization can occur normally.
15618 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
15620 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
15623 2006-02-13 Vincent Celier <celier@adacore.com>
15625 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
15626 Unchecked_Conversion functions.
15627 (Modification_Time): Use direct conversion of OS_Time to Calendar time
15628 when OpenVMS returns False.
15630 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
15631 a-dirval.adb (OpenVMS): New Boolean function
15633 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15634 Thomas Quinot <quinot@adacore.com>
15636 * checks.adb (Build_Discriminant_Checks): If the expression being
15637 checks is an aggregate retrieve the values of its discriminants to
15638 generate the check, rather than creating a temporary and a reference
15640 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
15641 (Install_Null_Excluding_Check): Ditto
15642 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
15643 not for the renamed object, so that the actual itype is attached in the
15646 2006-02-13 Robert Dewar <dewar@adacore.com>
15647 Vincent Celier <celier@adacore.com>
15649 * debug.adb: Eliminate numeric switches for binder/gnatmake
15651 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
15652 switches for the compiler.
15653 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
15654 (Scan_Make_Switches): When failing with an illegal switch, output an
15655 error message with the full switch.
15656 Eliminate numeric switches for binder/gnatmake
15658 * switch.ads, switch.adb (Bad_Switch): New procedure
15660 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
15661 Remove 0-9 as debug flag character possibilities
15662 -d is now controlling the primary stack size when its value is a
15663 positive. Also add checks against invalid values, and support for kb,
15664 mb. Ditto for -D switch.
15666 2006-02-13 Robert Dewar <dewar@adacore.com>
15667 Serguei Rybin <rybin@adacore.com>
15669 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
15670 save/restore routines.
15671 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
15672 were not always properly handled previously.
15673 Since we are changing the tree format anyway, also get rid of the
15674 junk obsolete Immediate_Errors flag.
15675 (Tree_Read): Change the way of reading Tree_Version_String - now we
15676 read the version string from the tree even if its length is not the
15677 same as the length of the version string computed from Gnatvsn.
15678 (Search_Directory_Present): New Boolean flag for the compiler.
15679 Define Tree_Version_String as a dynamic string.
15680 (Default_Stack_Size): new variable, used to handle switch -d.
15683 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
15684 only for main unit.
15685 Add pragma Ada_2005 (synonym for Ada_05)
15686 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
15687 were not always properly handled previously.
15689 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
15690 explicit Ada_95 to Ada_2005.
15692 2006-02-13 Javier Miranda <miranda@adacore.com>
15693 Robert Dewar <dewar@adacore.com>
15694 Ed Schonberg <schonberg@adacore.com>
15696 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
15697 against errors in the source program: a private types for which the
15698 corresponding full type declaration is missing and pragma CPP_Virtual
15700 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
15701 (Is_Known_Null): New flag
15702 (Has_Pragma_Pure): New flag
15703 (No_Return): Present in all entities, set only for procedures
15704 (Is_Limited_Type): A type whose ancestor is an interface is limited if
15705 explicitly declared limited.
15706 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
15707 entities. Only used for component marked Is_Tag. If present it stores
15708 the Offset_To_Top function used to provide this value in tagged types
15709 whose ancestor has discriminants.
15711 * exp_ch2.adb: Update status of new Is_Known_Null flag
15713 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
15715 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
15716 the categorization sense if Is_Pure was set by pragma Pure_Function.
15718 2006-02-13 Quentin Ochem <ochem@adacore.com>
15719 Olivier Hainque <hainque@adacore.com>
15721 * bindusg.adb: Updated documentation for -d and -D switches.
15723 * raise.h (__gnat_set_globals): added new parameter for
15724 Default_Stack_Size.
15726 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
15727 (__gnat_handle_vms_condition): Adjust context before raise.
15728 (__gnat_install_handler): Restore the global vector setup for GCC
15729 versions before 3.4, as the frame based circtuitry is not available
15731 (__gnat_set_globals): added a parameter default_stack_size
15732 (__gl_default_stack_size): new variable.
15734 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15736 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
15737 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
15738 does not exist in the Ada RM.
15739 (Compatible_Int_Bounds): Determine whether two integer range bounds
15740 are of equal length and have the same start and end values.
15741 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
15742 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
15743 aggregate when it is part of an object declaration.
15744 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
15745 constrains discriminants of its parent, add explicitly the discriminant
15746 constraints of the ancestor by retrieving them from the
15747 stored_constraint of the parent.
15749 2006-02-13 Robert Dewar <dewar@adacore.com>
15751 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
15752 attribute Mechanism_Code is applied to renamed subprogram, modify
15753 prefix to point to base subprogram.
15754 Max/Min attributes now violate Restriction No_Implicit_Conditionals
15756 * sinfo.ads: Document that Mechanism_Code cannot be applied to
15757 renamed subprograms so that the front-end must replace the prefix
15760 2006-02-13 Javier Miranda <miranda@adacore.com>
15761 Gary Dismukes <dismukes@adacore.com>
15763 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
15764 availability of RE_Interface_Tag.
15765 (Build_Initialization_Call): Fix wrong access to the discriminant value.
15766 (Freeze_Record_Type): Do not generate the tables associated with
15767 timed and conditional dispatching calls through synchronized
15768 interfaces if compiling under No_Dispatching_Calls restriction.
15769 When compiling for Ada 2005, for a nonabstract
15770 type with a null extension, call Make_Controlling_Function_Wrappers
15771 and insert the wrapper function declarations and bodies (the latter
15772 being appended as freeze actions).
15773 (Predefined_Primitive_Bodies): Do not generate the bodies of the
15774 predefined primitives associated with timed and conditional
15775 dispatching calls through synchronized interfaces if we are
15776 compiling under No_Dispatching_Calls.
15777 (Build_Init_Procedure): Use RTE_Available to check if a run-time
15778 service is available before generating a call.
15779 (Make_Controlling_Function_Wrappers): New procedure.
15780 (Expand_N_Full_Type_Declaration): Create a class-wide master for
15781 access-to-limited-interfaces because they can be used to reference
15782 tasks that implement such limited interface.
15783 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
15784 procedure spec and body of the Offset_To_Top function that is generated
15785 when the parent of a type with discriminants has secondary dispatch
15787 (Init_Secondary_Tags): Handle the case in which the parent of the type
15788 containing secondary dispatch tables has discriminants to generate the
15789 correct arguments to call Set_Offset_To_Top.
15790 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
15792 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
15793 Add Wide_[Wide_]Expanded_Name.
15794 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
15795 the same functionality of Get_Prim_Op_Address but applied to predefined
15796 primitive operations because the pointers to the predefined primitives
15797 are now saved in a separate table.
15798 (Parent_Size): Modified to get access to the separate table of primitive
15799 operations or the parent type.
15800 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
15801 functionality of Set_Prim_Op_Address but applied to predefined primitive
15803 (Set_Signature): New subprogram used to store the signature of a DT.
15804 (Displace): If the Offset_To_Top value is not static then call the
15805 function generated by the expander to get such value; otherwise use
15806 the value stored in the table of interfaces.
15807 (Offset_To_Top): The type of the actual has been changed to Address to
15808 give the correct support to tagged types with discriminants. In this
15809 case this value is stored just immediately after the tag field.
15810 (Set_Offset_To_Top): Two new formals have been added to indicate if the
15811 offset_to_top value is static and hence pass this value to the run-time
15812 to store it in the table of interfaces, or else if this value is dynamic
15813 and then pass to the run-time the address of a function that is
15814 generated by the expander to provide this value for each object of the
15817 * rtsfind.ads (Default_Prin_Op_Count): Removed.
15818 (Default_Prim_Op_Count): New entity
15819 (Get_Predefined_Prim_Op_Address): New entity
15820 (Set_Predefined_Prim_Op_Address): New entity
15821 (RE_Set_Signature): New entity
15823 2006-02-13 Thomas Quinot <quinot@adacore.com>
15824 Ed Schonberg <schonberg@adacore.com>
15826 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
15827 Make_Adjust_Call done for a newly-allocated object.
15829 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
15830 in a subprogram are wrapped in a cleanup block, indicate that the
15831 subprogram contains an inner block with an exception handler.
15832 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
15833 Adjust call is for a newly-allocated object. In that case we must not
15834 assume that the finalization list chain pointers are correct (since they
15835 come from a bit-for-bit copy of the original object's pointers) so if
15836 the attach level would otherwise be zero (no change), we set it to 4
15837 instead to cause the pointers to be reset to null.
15839 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
15840 reset chain pointers to null.
15842 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15844 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
15845 string, and the context requires a loop for the assignment (e.g.
15846 because the left-hand side is packed), generate a unique name for the
15847 temporary that holds the string, to prevent spurious name clashes.
15849 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15850 Javier Miranda <miranda@adacore.com>
15851 Robert Dewar <dewar@adacore.com>
15852 Gary Dismukes <dismukes@adacore.com>
15854 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
15855 return unconstrained arrays.
15857 (Expand_Call): An indirect call through an access parameter of a
15858 protected operation is not a protected call.
15859 Add circuit to raise CE in Ada 2005 mode following call
15860 to Raise_Exception.
15861 (Register_DT_Entry): Do nothing if
15862 the run-time does not give support to abstract interfaces.
15863 (Freeze_Subprogram): In case of dispatching operations, do not generate
15864 code to register the operation in the dispatch table if the source
15865 is compiled with No_Dispatching_Calls.
15866 (Register_Predefined_DT_Entry): Generate code that calls the new
15867 run-time subprogram Set_Predefined_Prim_Op_Address instead of
15868 Set_Prim_Op_Address.
15870 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
15871 on array assignments if the right-hand side is a function call that has
15872 been inlined. Check is performed on the assignment in the block.
15873 (Process_Bounds): If bounds and range are overloaded, apply preference
15874 rule for root operations to disambiguate, and diagnose true ambiguity.
15875 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
15876 a tag-indeterminate right-hand side even when Expander_Active is True.
15877 Needed to ensure that dispatching calls to T'Input are allowed and
15878 get the tag of the target class-wide object.
15880 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
15881 an inherited primitive operation that already overrides several
15882 abstract interface primitives. For transitivity, the new entity must
15883 also override all the abstract interface primitives covered by the
15884 inherited overriden primitive.
15885 Emit warning if new entity differs from homograph in same scope only in
15886 that one has an access parameter and the other one has a parameter of
15887 a general access type with the same designated type, at the same
15888 position in the signature.
15889 (Make_Inequality_Operator): Use source locations of parameters and
15890 subtype marks from corresponding equality operator when creating the
15891 tree structure for the implicit declaration of "/=". This does not
15892 change anything in behaviour except that the decoration of the
15893 components of the subtree created for "/=" allows ASIS to get the
15894 string images of the corresponding identifiers.
15895 (Analyze_Return_Statement): Remove '!' in warning message.
15896 (Check_Statement_Sequence): Likewise.
15897 (Analyze_Subprogram_Body): For an access parameter whose designated type
15898 is an incomplete type imported through a limited_with clause, use the
15899 type of the corresponding formal in the body.
15900 (Check_Returns): Implicit return in No_Return procedure now raises
15901 Program_Error with a compile time warning, instead of beging illegal.
15902 (Has_Single_Return): Function returning unconstrained type cannot be
15903 inlined if expression in unique return statement is not an identifier.
15904 (Build_Body_To_Inline): It is possible to inline a function call that
15905 returns an unconstrained type if all return statements in the function
15906 return the same local variable. Subsidiary procedure Has_Single_Return
15907 verifies that the body conforms to this restriction.
15909 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
15910 same type, and one of them is of an anonymous access type, convert
15911 the other operand to it, so that this is a valid binary operation for
15913 (Resolve_Type_Conversion): Handle subtypes of protected types and
15914 task types when accessing to the corresponding record type.
15915 (Resolve_Allocator): Add '\' in 2-line warning message.
15916 Remove '!' in warning message.
15917 (Resolve_Call): Add '\' in 2-line warning message.
15918 (Valid_Conversion): Likewise.
15919 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
15920 resulting type may be an access type with an implicit dereference.
15921 Obtain the proper component from the designated type.
15922 (Make_Call_Into_Operator): Handle properly a call to predefined equality
15923 given by an expanded name with prefix Standard, when the operands are
15924 of an anonymous access type.
15925 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
15926 Explicit_Dereference and Resolve_Selected_Component, to verify that the
15927 prefix of the expression is not of an incomplete type. Allows full
15928 diagnoses of all semantic errors.
15929 (Resolve_Actuals): If the actual is an allocator whose directly
15930 designated type is a class-wide interface we build an anonymous
15931 access type to use it as the type of the allocator. Later, when
15932 the subprogram call is expanded, if the interface has a secondary
15933 dispatch table the expander will add a type conversion to force
15934 the displacement of the pointer.
15935 (Resolve_Call): If a function that returns an unconstrained type is
15936 marked Inlined_Always and inlined, the call will be inlined and does
15937 not require the creation of a transient scope.
15938 (Check_Direct_Boolean_Op): Removed
15939 (Resolve_Comparison_Op): Remove call to above
15940 (Resolve_Equality_Op): Remove call to above
15941 (Resolve_Logical_Op): Inline above, since this is only call.
15942 (Valid_Conversion): Handle properly conversions between arrays of
15943 convertible anonymous access types.
15946 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
15947 the literal in an unchecked conversion, because GCC 4.x needs a static
15948 value for a string bound.
15950 2006-02-13 Ed Schonberg <schonberg@adacore.com>
15951 Hristian Kirtchev <kirtchev@adacore.com>
15953 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
15954 components of the corresponding record, take into account component
15955 definitions that are access definitions.
15956 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
15957 procedure is not considered a dispatching call and will be expanded
15960 2006-02-13 Javier Miranda <miranda@adacore.com>
15962 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
15963 controlling argument of the dispatching call is an abstract interface
15964 class-wide type then we use it directly.
15965 Check No_Dispatching_Calls restriction.
15966 (Default_Prim_Op_Position): Remove the code that looks for the last
15967 entity in the list of aliased subprograms. This code was wrong in
15969 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
15970 when the source is compiled with the No_Dispatching_Calls restriction.
15971 (Init_Predefined_Interface_Primitives): No need to inherit primitives
15972 if we are compiling with restriction No_Dispatching_Calls.
15973 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
15974 subprograms if we are compiling under No_Dispatching_Calls restriction.
15975 (Make_DT): Generate a dispatch table with a single dummy entry if
15976 we are compiling with the No_Dispatching_Calls restriction. In
15977 addition, in this case we don't generate code that calls to the
15978 following run-time subprograms: Set_Type_Kind, Inherit_DT.
15979 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
15980 of this subprogram if compiling with the No_Dispatching_Calls
15982 (Expand_Type_Conversion): Instead of using the actual parameter,
15983 the argument passed as parameter to the conversion function was
15984 erroneously referenced by the expander.
15985 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
15986 Set_Predefined_Primitive_Op_Address and Set_Signature.
15987 (Expand_Dispatching_Call): Generate call to
15988 Get_Predefined_Prim_Op_Address for predefined primitives.
15989 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
15990 predefined primitives.
15991 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
15992 primitives we reserve one dummy entry to ensure that the tag does not
15993 point to some memory that is associated with some other object. In
15994 addition, remove all the old code that generated the assignments
15995 associated with the signature of the dispatch table and replace them
15996 by a call to the new subprogram Set_Signature.
15997 (Set_All_DT_Position): Change the algorithm because now we have a
15998 separate dispatch table associated with predefined primitive operations.
15999 (Expand_Interface_Conversion): In case of non-static offset_to_top
16000 add explicit dereference to get access to the object after the call
16001 to displace the pointer to the object.
16002 (Expand_Interface_Thunk): Modify the generation of the actual used
16003 in the calls to the run-time function Offset_To_Top to fulfil its
16005 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
16007 2006-02-13 Ed Schonberg <schonberg@adacore.com>
16009 * exp_dist.adb (Copy_Specification): For access parameters, copy
16010 Null_Exclusion flag, which will have been set for stream subprograms
16013 2006-02-13 Pascal Obry <obry@adacore.com>
16015 * expect.c (__gnat_expect_portable_execvp): New implementation. The
16016 previous implementation was using the C runtime spawnve routine but
16017 the corresponding wait was using directly the Win32 API. This was
16018 causing some times a lock when waiting for an event using
16019 WaitForSingleObject in __gnat_waitpid. This new implementation uses
16020 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
16021 API fixes this problem.
16023 2006-02-13 Robert Dewar <dewar@adacore.com>
16025 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
16028 2006-02-13 Thomas Quinot <quinot@adacore.com>
16030 * exp_pakd.ads: Fix typos in comments.
16032 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
16033 array reference that is an explicit dereference, mark the converted
16034 (packed) array reference as analyzed to prevent a forthcoming
16035 reanalysis from resetting its type to the original (non-packed) array
16038 2006-02-13 Ed Schonberg <schonberg@adacore.com>
16039 Javier Miranda <miranda@adacore.com>
16040 Eric Botcazou <ebotcazou@adacore.com>
16042 * exp_util.ads, exp_util.adb (Find_Prim_Op,
16043 Is_Predefined_Primitive_Operation): When
16044 searching for the predefined equality operator, verify that operands
16045 have the same type.
16046 (Is_Predefined_Dispatching_Operation): Remove the code that looks
16047 for the last entity in the list of aliased subprograms. This code
16048 was wrong in case of renamings.
16049 (Set_Renamed_Subprogram): New procedure
16050 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
16051 Exp_Type constant computed when entering this subprogram.
16052 (Known_Null): New function
16053 (OK_To_Do_Constant_Replacement): New function
16054 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
16055 (Side_Effect_Free): An attribute reference 'Input is not free of
16056 side effect, unlike other attributes that are functions. (from code
16058 (Remove_Side_Effects): Expressions that involve packed arrays or records
16059 are copied at the point of reference, and therefore must be marked as
16060 renamings of objects.
16061 (Is_Predefined_Dispatching_Operation): Return false if the operation is
16062 not a dispatching operation.
16065 (Remove_Side_Effects): Lift enclosing type conversion nodes for
16066 elementary types in all cases.
16068 2006-02-13 Javier Miranda <miranda@adacore.com>
16070 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
16071 task types when accessing to the corresponding record type.
16072 Remove '!' in warning message.
16074 2006-02-13 Olivier Hainque <hainque@adacore.com>
16076 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
16077 to avoid useless and space inefficient overalignments on targets where
16078 Max_Alignment is larger than 16.
16080 2006-02-13 Pascal Obry <obry@adacore.com>
16082 * g-catiio.adb (Sec_Number): New type used to compute the number of
16083 seconds since 1-1-1970.
16084 (Image) [Natural]: The parameter was an Integer, as we can't deal with
16085 negative numbers (years, months...) it is better to have a Natural here.
16087 (Image) [Number]: Change parameter from Long_Integer to Number.
16088 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
16089 overflow for dates past year 2038.
16091 2006-02-13 Matthew Heaney <heaney@adacore.com>
16093 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
16096 2006-02-13 Arnaud Charlet <charlet@adacore.com>
16098 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
16100 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
16101 finalization can occur normally.
16103 2006-02-13 Vincent Celier <celier@adacore.com>
16105 * gnatcmd.adb (Rules_Switches): New table
16106 (Add_To_Rules_Switches): New procedure
16107 (GNATCmd): For command CHECK, put all options following "-rules" in the
16108 Rules_Switches table. Append these -rules switches after the -cargs
16111 2006-02-13 Robert Dewar <dewar@adacore.com>
16113 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
16114 These two cases were generating incorrect output, and if this unit
16115 was built with checks on, generated a discriminant mismatch constraint
16118 2006-02-13 Ed Schonberg <schonberg@adacore.com>
16119 Robert Dewar <dewar@adacore.com>
16121 * lib-xref.adb (Get_Type_Reference): For a private type whose full
16122 view is an array type, indicate the component type as well, for
16123 navigation purposes.
16124 (Generate_Reference): Don't consider array ref on LHS to be a case
16125 of violating pragma Unreferenced.
16126 Do not give Ada 2005 warning except on real reference.
16128 2006-02-13 Vincent Celier <celier@adacore.com>
16130 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
16131 main source, add switch -mdebug-main=_ada_ so that the executable can
16132 be debugged by the standard VMS debugger.
16133 (Gnatmake): Set No_Main_Subprogram to True when there is no main
16134 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
16135 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
16136 of the last source, as the binding and linking phases are never
16138 Set all executable obsolete when rebuilding a library.
16140 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
16143 2006-02-13 Javier Miranda <miranda@adacore.com>
16146 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
16147 code to improve the error message reported when the program has
16148 declarations of abstract interface types and it is not compiled with
16149 the -gnat05 switch.
16150 (P_Access_Definition): Reorganize the code to improve the error
16151 message reported when the new Ada 2005 syntax for anonymous
16152 access types is used and the program is not compiled with the
16155 2006-02-13 Robert Dewar <dewar@adacore.com>
16157 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
16158 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
16161 2006-02-13 Javier Miranda <miranda@adacore.com>
16163 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
16164 against source containing syntax errors.
16166 2006-02-13 Vincent Celier <celier@adacore.com>
16168 * prj.adb (Reset): Initialize the first element of table Namings with
16169 the standard naming data.
16171 2006-02-13 Vincent Celier <celier@adacore.com>
16173 * prj.ads (Error_Warning): New enumeration type
16175 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
16176 unknown, use the location of the project to report the error.
16177 (When_No_Sources): New global variable
16178 (Report_No_Ada_Sources): New procedure
16179 (Check): New parameter When_No_Sources. Set value of global variable
16181 (Find_Sources): Call Report_No_Ada_Sources when appropriate
16182 (Get_Sources_From_File): Ditto
16183 (Warn_If_Not_Sources): Better warning messages indicating the unit name
16186 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
16187 Call Prj.Proc.Process with parameter When_No_Sources.
16189 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
16190 Call Recursive_Check with parameter When_No_Sources.
16191 (Recursive_Check): New parameter When_No_Sources. Call itself and
16192 Prj.Nmsc.Check with parameter When_No_Sources.
16193 (Process): New parameter When_No_Sources. Call Check with parameter
16195 (Copy_Package_Declarations): New procedure to copy renamed parameters
16196 and setting the location of the declared attributes to the location
16197 of the renamed package.
16198 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
16201 2006-02-13 Vincent Celier <celier@adacore.com>
16203 * prj-makr.adb (Make): Preserve the comments from the original project
16205 When removing nodes (attributes Source_Dirs, Source_Files,
16206 Source_List_File and package Naming), save the comments and attach the
16207 saved comments to the newly created nodes.
16208 Do not add a with clause for the naming package if one already exists.
16210 2006-02-13 Javier Miranda <miranda@adacore.com>
16211 Gary Dismukes <dismukes@adacore.com>
16212 Robert Dewar <dewar@adacore.com>
16214 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
16216 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
16217 aliased entities to look for the overriden abstract interface
16219 (Is_Interface_Subprogram): Complete documentation.
16220 (Check_Dispatching_Operation): Do not generate code to register the
16221 operation in the dispatch table if the source is compiled with
16222 restriction No_Dispatching_Calls.
16223 (Override_Dispatching_Operation): Check for illegal attempt to override
16224 No_Return procedure with procedure that is not No_Return
16225 (Check_Dispatching_Call): Suppress the check for an abstract operation
16226 when the original node of an actual is a tag-indeterminate attribute
16227 call, since the attribute, which must be 'Input, can never be abstract.
16228 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
16229 call to the Input attribute (even when rewritten).
16230 (Propagate_Tag): Augment comment to indicate the possibility of a call
16231 to an Input attribute.
16233 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
16234 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
16236 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
16237 No_Wide_Characters is no longer partition-wide
16238 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
16241 2006-02-13 Douglas Rupp <rupp@adacore.com>
16243 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
16245 2006-02-13 Javier Miranda <miranda@adacore.com>
16247 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
16248 handles default-initialized components to keep separate the management
16249 of this feature but also avoid the unrequired resolution and
16250 expansion of components that do not have partially initialized
16252 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
16253 (Check_Bounds): Likewise.
16254 (Check_Length): Likewise.
16256 2006-02-13 Javier Miranda <miranda@adacore.com>
16257 Ed Schonberg <schonberg@adacore.com>
16259 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
16260 abstract interface type call analyze_and_resolve to expand the type
16261 conversion into the corresponding displacement of the
16262 reference to the base of the object.
16263 (Eval_Attribute, case Width): For systems where IEEE extended precision
16264 is supported, the maximum exponent occupies 4 decimal digits.
16265 (Accessibility_Message): Add '\' in 2-line warning message.
16266 (Resolve_Attribute): Likewise.
16267 (case Attribute_Access): Significantly revise checks
16268 for illegal access-to-subprogram Access attributes to properly enforce
16269 the rules of 3.10.2(32/2).
16270 Diagnose use of current instance with an illegal attribute.
16272 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
16274 (Enclosing_Generic_Unit): New function to return a node's innermost
16275 enclosing generic declaration node.
16276 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
16277 (Type_Access_Level): The accessibility level of anonymous acccess types
16278 associated with discriminants is that of the current instance of the
16279 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
16280 (Compile_Time_Constraint_Error): Handle case of conditional expression.
16281 (Kill_Current_Values_For_Entity): New function
16282 (Enter_Name): Change formal type to Entity_Id
16284 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
16285 Ed Schonberg <schonberg@adacore.com>
16286 Gary Dismukes <dismukes@adacore.com>
16288 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
16289 Analyze_Compilation_Unit.
16290 Detect and warn on redundant with clauses detected in a package spec
16291 and/or body when -gnatwr is used.
16292 (Analyze_Context): Analyze config pragmas before other items
16293 (Install_Context_Items): Don't analyze config pragmas here
16294 (Install_Limited_Withed_Unit): Set limited entity of package in
16295 with_clause so that cross-reference information or warning messages on
16296 unused packages can be properly generated
16297 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
16298 has Error_Posted set. Prevent infinite loops in illegal programs.
16299 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
16300 to the point of the error test requiring the current unit to be private.
16301 This ensures that private with clauses are not exempted from the basic
16302 checking for being a descendant of the same library unit parent as a
16303 withed private descendant unit.
16304 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
16305 handle private with clauses properly, as well as to account for cases
16306 where the withed unit is a public descendant of a private ancestor
16307 (in which case the current unit must be a descendant of the private
16308 ancestor's parent). The spec comments were updated accordingly. Also,
16309 the old error message in this subprogram was replaced with error
16310 messages that mirror the errors tested and reported by
16311 Check_Private_Child_Unit.
16312 Parameter and variable names improved for readability.
16313 (Install_Limited_Context_Clauses): Remove test for a withed unit being
16314 private as the precondition for calling
16315 Check_Private_Limited_Withed_Unit since that subprogram has been
16316 revised to test public units as well as private units.
16318 2006-02-13 Thomas Quinot <quinot@adacore.com>
16319 Robert Dewar <dewar@adacore.com>
16320 Ed Schonberg <schonberg@adacore.com>
16321 Javier Miranda <miranda@adacore.com>
16323 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
16324 that Scope_Stack.First = 1.
16325 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
16326 were not always properly handled previously.
16327 (Formal_Entity): Complete rewrite, to handle properly some complex case
16328 with multiple levels of parametrization by formal packages.
16329 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
16330 to the corresponding derived type declaration for proper semantics.
16332 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
16333 (Check_Component): Enforce restriction on components of
16334 unchecked_unions: a component in a variant cannot contain tasks or
16336 (Unchecked_Union): Allow nested variants and multiple discriminants, to
16338 Add pragma Ada_2005 (synonym for Ada_05)
16339 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
16340 were not always properly handled previously.
16341 Document that pragma Propagate_Exceptions has no effect
16342 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
16343 (Set_Convention_From_Pragma): Check that if a convention is
16344 specified for a dispatching operation, then it must be
16345 consistent with the existing convention for the operation.
16346 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
16347 longer required to specify an vtable-ptr component in the record. For
16348 compatibility reasons we leave the support for the previous definition.
16349 (Analyze_Pragma, case No_Return): Allow multiple arguments
16351 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
16352 non-overrideen inherited operation with a controlling result as
16353 illegal only its implicit declaration comes from the derived type
16354 declaration of its result's type.
16355 (Check_Possible_Deferred_Completion): Relocate the object definition
16356 node of the subtype indication of a deferred constant completion rather
16357 than directly analyzing it. The analysis of the generated subtype will
16358 correctly decorate the GNAT tree.
16359 (Record_Type_Declaration): Check whether this is a declaration for a
16360 limited derived record before analyzing components.
16361 (Analyze_Component_Declaration): Diagnose record types not explicitly
16362 declared limited when a component has a limited type.
16363 (Build_Derived_Record_Type): Code reorganization to check if some of
16364 the inherited subprograms of a tagged type cover interface primitives.
16365 This check was missing in case of a full-type associated with a private
16367 (Constant_Redeclaration): Check that the subtypes of the partial and the
16368 full view of a constrained deferred constant statically match.
16369 (Mentions_T): A reference to the current type in an anonymous access
16370 component declaration must be an entity name.
16371 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
16372 class_wide type to refer to full type, not to the incomplete one.
16373 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
16374 available. Required to give support to the certified run-time.
16375 (Analyze_Component_Declaration): In case of anonymous access components
16376 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
16377 (Process_Discriminants): For an access discriminant, use the
16378 discriminant specification as the associated_node_for_itype, to
16379 simplify accessibility checks.
16381 2006-02-13 Ed Schonberg <schonberg@adacore.com>
16382 Javier Miranda <miranda@adacore.com>
16384 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
16385 abstract interpretations on an operator, remove interpretations that
16386 yield Address or a type derived from it, if one of the operands is an
16388 (Try_Object_Operation.Try_Primitive_Operation,
16389 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
16390 location when creating the new reference to a primitive or class-wide
16391 operation as a part of rewriting a subprogram call.
16392 (Try_Primitive_Operations): If context requires a function, collect all
16393 interpretations after the first match, because there may be primitive
16394 operations of the same type with the same profile and different return
16395 types. From code reading.
16396 (Try_Primitive_Operation): Use the node kind to choose the proper
16397 operation when a function and a procedure have the same parameter
16399 (Complete_Object_Operation): If formal is an access parameter and prefix
16400 is an object, rewrite as an Access reference, to match signature of
16401 primitive operation.
16402 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
16403 by an expanded name with prefix Standard, when the operands are of an
16404 anonymous access type.
16405 (Remove_Abstract_Operations): If the operation is abstract because it is
16406 inherited by a user-defined type derived from Address, remove it as
16407 well from the set of candidate interpretations of an overloaded node.
16408 (Analyze_Membership_Op): Membership test not applicable to cpp-class
16411 2006-02-13 Bob Duff <duff@adacore.com>
16413 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
16414 redundant use clauses.
16415 In particular, if the scope of two use clauses overlaps, but one is not
16416 entirely included in the other, we should not warn. This can happen
16417 with nested packages.
16418 (Analyze_Subprogram_Renaming): Protect the compiler against previously
16419 reported errors. The bug was reported when the compiler was built
16420 with assertions enabled.
16421 (Find_Type): If the node is a 'Class reference and the prefix is a
16422 synchronized type without a corresponding record, return the type
16425 2006-02-13 Javier Miranda <miranda@adacore.com>
16427 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
16428 if this is the full-declaration associated with a private declaration
16429 that implement interfaces, then the private type declaration must be
16431 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
16432 as aliased. The use of the 'access attribute is not available for such
16433 object (for this purpose the object should be explicitly marked as
16434 aliased, but being an anonymous type this is not possible).
16436 2006-02-13 Ed Schonberg <schonberg@adacore.com>
16437 Robert Dewar <dewar@adacore.com>
16439 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
16440 compilation unit is an elaboration scope.
16441 (Add_Task_Proc): Add '\' in 2-line warning message.
16442 (Activate_All_Desirable): Deal with case of unit with'ed by parent
16444 2006-02-13 Ed Schonberg <schonberg@adacore.com>
16445 Javier Miranda <miranda@adacore.com>
16447 * sem_type.adb (Write_Overloads): Improve display of candidate
16449 (Add_One_Interp): Do not add to the list of interpretations aliased
16450 entities corresponding with an abstract interface type that is an
16451 immediate ancestor of a tagged type; otherwise we have a dummy
16452 conflict between this entity and the aliased entity.
16453 (Disambiguate): The predefined equality on universal_access is not
16454 usable if there is a user-defined equality with the proper signature,
16455 declared in the same declarative part as the designated type.
16456 (Find_Unique_Type): The universal_access equality operator defined under
16457 AI-230 does not cover pool specific access types.
16458 (Covers): If one of the types is a generic actual subtype, check whether
16459 it matches the partial view of the other type.
16461 2006-02-13 Thomas Quinot <quinot@adacore.com>
16463 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
16464 line. This is necessary to allow In_Extended_Main_Unit to provide
16465 correct results for itypes while writing out expanded source.
16466 (Close_File): No need to update the source_index_table here since it's
16467 now done for each line.
16469 2006-02-13 Ed Schonberg <schonberg@adacore.com>
16470 Robert Dewar <dewar@adacore.com>
16472 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
16473 preserve the source unit where the itype is declared, and prevent a
16475 (Note_Implicit_Run_Time_Call): New procedure
16476 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
16479 * sprint.ads: Document use of $ for implicit run time routine call
16481 2006-02-13 Quentin Ochem <ochem@adacore.com>
16483 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
16486 2006-02-13 Bob Duff <duff@adacore.com>
16488 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
16489 Scan_Unsigned, so we do not scan leading blanks and sign twice.
16490 Integer'Value("- 5") and Integer'Value("-+5") now correctly
16491 raise Constraint_Error.
16493 * s-vallli.adb (Scan_Long_Long_Integer): Call
16494 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
16495 do not scan leading blanks and sign twice.
16496 Integer'Value("- 5") and Integer'Value("-+5") now correctly
16497 raise Constraint_Error.
16499 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
16500 Scan_Long_Long_Unsigned): Split out most of the processing from
16501 Scan_Long_Long_Unsigned out into
16502 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
16503 This prevents scanning leading blanks and sign twice.
16504 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
16507 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
16508 out most of the processing from Scan_Unsigned out into
16509 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
16510 This prevents scanning leading blanks and sign twice.
16512 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
16513 use with Modular'Value attribute.
16514 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
16517 2006-02-13 Robert Dewar <dewar@adacore.com>
16519 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
16521 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
16523 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
16524 (PPC VxWorks): Likewise.
16525 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
16526 (forced_callee): Make non-inlinable and non-pure.
16527 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
16529 2006-02-13 Arnaud Charlet <charlet@adacore.com>
16530 Ben Brosgol <brosgol@adacore.com>
16531 Robert Dewar <dewar@adacore.com>
16533 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
16535 Document that gnatbind -M option is for cross environments only.
16536 Added description of using gnatmem to trace gnat rtl allocs and deallocs
16537 Add note on use of $ to label implicit run time calls
16538 Add documentation for -gnatyI (check mode IN)
16539 Updated chapter on compatibility with HP Ada
16540 VMS-oriented edits.
16541 Ran spell and corrected errors
16542 Add documentation for gnatbind -d and rework documentation of -D
16544 Add subprogram/data elimination section.
16545 Minor editing of annex A.
16546 Add section for gnatcheck.
16547 Add documentation for restriction No_Dispatching_Calls
16548 Add documentation for pragma Ada_2005
16549 Remove mention of obsolete pragma Propagate_Exceptions
16550 Document that pragma Unreferenced can appear after DO in ACCEPT
16551 Clarify Pure_Function for library level units
16552 Mention Max/Min in connection with No_Implicit_Conditionals
16553 No_Wide_Characters restriction is no longer partition-wide
16554 Add a nice example for Universal_Literal_String attribute
16555 Document that pragma No_Return can take multiple arguments
16557 * ug_words: Added entry for gnatcheck
16559 * g-ctrl_c.ads (Install_Handler): Enhance comments
16561 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
16563 * g-trasym.ads: Add documentation on how to do off line symbolic
16564 traceback computation.
16566 * s-fatgen.adb: Add comments for Unaligned_Valid
16568 * stand.ads: Fix typo in comment
16570 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16572 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
16574 2006-02-06 Roger Sayle <roger@eyesopen.com>
16576 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
16578 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16581 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
16582 implementation that calls __main.
16584 2006-01-25 Peter O'Gorman <peter@pogma.com>
16587 * Makefile.in (GCC_LINK): Remove quotes.
16588 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
16591 (powerpc-darwin): Pass -shared-libgcc when building shared library.
16593 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16596 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
16598 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16600 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
16602 2005-12-12 Arnaud Charlet <charlet@adacore.com>
16604 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
16607 2005-12-12 Arnaud Charlet <charlet@adacore.com>
16609 * Make-lang.in: Update dependencies
16611 2005-12-12 Arnaud Charlet <charlet@adacore.com>
16613 * Make-lang.in: Add rule for ada/exp_sel.o
16615 2005-12-12 Arnaud Charlet <charlet@adacore.com>
16617 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
16619 2005-12-09 Arnaud Charlet <charlet@adacore.com>
16621 * gnatvsn.ads (Library_Version): Bump to version 4.2
16622 (ASIS_Version_Number): Bumped.
16624 2005-12-09 Doug Rupp <rupp@adacore.com>
16626 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
16627 Ada bind file prefix on VMS from b$ to b__.
16628 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
16631 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
16632 Targparm.OpenVMS_On_Target.
16633 (Object_Suffix): Initialize with target object suffix.
16634 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
16636 * butil.adb: Change some Hostparm.OpenVMS checks to
16637 Targparm.OpenVMS_On_Target.
16639 * clean.adb: Change some Hostparm.OpenVMS checks to
16640 Targparm.OpenVMS_On_Target.
16641 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
16642 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
16643 Ada bind file prefix on VMS from b$ to b__.
16645 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
16646 --GCC so that Get_Target_Parameters can find system.ads.
16647 (Gnatlink): Call Get_Target_Parameters in mainline.
16648 Initialize standard packages for Targparm.
16649 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
16650 (Process_Args): Also Check for object files with target object
16652 (Make_Binder_File_Names): Create with target object extension.
16653 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
16656 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
16657 Targparm.OpenVMS_On_Target.
16658 ({declaration},Build_Library,Check_Library): Change Ada bind file
16659 prefix on VMS from b$ to b__.
16661 * osint-b.adb: Change some Hostparm.OpenVMS checks to
16662 Targparm.OpenVMS_On_Target.
16663 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
16666 * targext.c: New file.
16668 * Makefile.in: add support for vxworks653 builds
16669 (../../vxaddr2line): gnatlink with targext.o.
16670 (TOOLS_LIBS): Move targext.o to precede libgnat.
16671 (init.o, initialize.o): Minor clean up in dependencies.
16672 (GNATLINK_OBJS): Add targparm.o, snames.o
16673 Add rules fo building targext.o and linking it explicitly with all
16675 Also add targext.o to gnatlib.
16677 * Make-lang.in: Add rules for building targext.o and linking it in
16678 with gnat1 and gnatbind.
16679 Add entry for exp_sel.o.
16681 * osint.adb Change some Hostparm.OpenVMS checks to
16682 Targparm.OpenVMS_On_Target.
16683 (Object_File_Name): Use target object suffix.
16685 * osint.ads (Object_Suffix): Remove, no longer used.
16686 (Target_Object_Suffix): Initialize with target object suffix.
16688 * rident.ads: Add special exception to license.
16690 * targparm.adb (Get_Target_Parameters): Set the value of
16691 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
16693 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
16695 * targparm.ads: Add special exception to license.
16697 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
16699 (Copy_File): Make sure from file is closed if error on to file
16700 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
16702 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
16703 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
16705 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
16706 target object suffix.
16708 2005-12-09 Jose Ruiz <ruiz@adacore.com>
16709 Quentin Ochem <ochem@adacore.com>
16710 Florian Villoing <villoing@adacore.com>
16712 * a-taster.ads, a-taster.adb: New files.
16714 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
16715 link to the version that does nothing. This way the task termination
16716 routine is not executed twice for the environment task when finishing
16717 because of an unhandled exception.
16719 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
16720 handler because of an unhandled exception.
16722 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
16723 System.Tasking.Utilities instead of that in System.Tasking.Stages.
16725 * s-finimp.adb (initialization code): Modify the soft link for the
16726 finalization of the global list instead of Adafinal.
16728 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
16729 non-tasking version of the soft link for task termination. We do
16730 nothing since if we are using the non-tasking version it
16731 means that the task termination functionality is not used.
16732 (Null_Finalize_Global_List): Add this null version for the procedure
16733 in charge of finalizing the global list for controlled objects.
16734 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
16735 instead for handling run-time termination in a more flexible way.
16736 (Adafinal_NT): This new procedure will take care of finalizing the
16737 global list for controlled objects if needed, but no tasking
16740 * s-tarest.adb (Task_Lock): Do not try to lock again the
16741 Global_Task_Lock if we already own it. Otherwise, we get blocked in
16742 some run-time operations.
16743 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
16744 until all nested locks have been released.
16745 (Task_Wrapper): Call the fall-back task termination handler. It
16746 applies to all tasks but the environment task.
16747 (Finalize_Global_Tasks): Add the call for the task termination
16748 procedure for the environment task.
16749 (Task_Wrapper): suppress warnings around declaration of
16750 Secondary_Stack_Address.
16752 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
16753 moved to the Common_ATCB record.
16754 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
16755 Common_ATCB record.
16756 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
16757 Common_ATCB record.
16759 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
16760 Fall_Back_Handler, and Specific_Handler.
16762 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
16763 defined in Ada.Task_Termination, to avoid circular dependencies.
16764 (Termination_Handler): Redefine this type here, alredy defined in
16765 Ada.Task_Termination, for avoiding circular dependencies.
16766 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
16767 for storing task termination handlers. In addition,
16768 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
16769 Common_ATCB because it is used by both the regular and the restricted
16771 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
16772 Common_ATCB because it is used by both the regular and the restricted
16774 (Common_ATCB): Added a dynamic task analyzer field.
16776 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
16777 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
16778 (Task_Wrapper): Call the task termination handler. It applies to all
16779 tasks but the environment task.
16780 (Finalize_Global_Tasks): Call the task termination procedure for the
16781 environment task. The call to Finalize_Global_List is now performed
16782 using the soft links mechanism.
16783 (Task_Wrapper): added dynamic stack analysis.
16785 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
16786 potentially blocking operations has been moved from
16787 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
16788 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
16789 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
16790 this run-time check.
16792 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
16793 of task termination procedure.
16794 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
16795 link for the task termination procedure.
16797 * bindusg.adb: (Bindusg): Added documentation for -u option.
16799 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
16800 (Get_Main_C): Add handling of dynamic stack analysis.
16801 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
16803 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
16804 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
16805 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
16807 * opt.ads: Added flags used by dynamic stack measurement.
16808 (Max_Line_Length): Remove (not used anymore)
16810 * s-io.ads, s-io.adb (Standard_Error): new subprogram
16811 (Standart_Output): new subprogram
16812 (Set_Output): new subprogram
16813 (Put): now uses the value of Current_Out to know if the output has to be
16814 send to stderr or stdout.
16816 * s-stausa.ads: Complete implementation.
16818 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
16820 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
16821 list of Ada 05 files.
16822 (GNAT Library Units): Add AltiVec files.
16824 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
16825 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
16826 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
16828 2005-12-09 Nicolas Setton <setton@adacore.com>
16830 * adaint.c (__gnat_locate_regular_file): Return immediately if
16831 file_name is empty.
16833 2005-12-09 Javier Miranda <miranda@adacore.com>
16834 Hristian Kirtchev <kirtchev@adacore.com>
16836 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
16837 to the specification because the frontend generates code that uses this
16839 (Set_Interface_Table): Add missing assertion.
16840 Update documentation describing the run-time structure.
16841 (Displace): New subprogram that displaces the pointer to the object
16842 to reference one of its secondary dispatch tables.
16843 (IW_Membership): Modified to use the new table of interfaces.
16844 (Inherit_TSD): Modified to use the new table of interfaces.
16845 (Register_Interface_Tag): Use the additional formal to fill the
16846 contents of the new table of interfaces.
16847 (Set_Interface_Table): New subprogram that stores in the TSD the
16848 pointer to the table of interfaces.
16849 (Set_Offset_To_Top): Use the additional formal to save copy of
16850 the offset value in the table of interfaces.
16851 Update structure of GNAT Primary and Secondary dispatch table diagram.
16852 Add comment section on GNAT dispatch table prologue.
16853 (Offset_To_Signature): Update the constant value of the Signature field.
16854 (Dispatch_Table): Update comment on hidden fields in the prologue.
16855 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
16856 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
16857 the type of formal parameter T to Tag, introduce additional assertions.
16858 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
16860 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
16862 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
16863 in all the calls to Expand_Interface_Thunk. Instead of referencing the
16864 record component containing the tag of the secondary dispatch table we
16865 have to use the Offset_To_Top run-time function to get this information;
16866 otherwise if the pointer to the base of the object has been displace
16867 we get a wrong value if we use the 'position attribute.
16869 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
16870 all the calls to Expand_Interface_Thunk.
16871 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
16872 interfaces; hence the call to Set_Interface_Table was clearly wrong.
16873 (Collect_All_Interfaces): Modify the internal subprogram Collect to
16874 ensure that the interfaces implemented by the ancestors are placed
16875 at the header of the generated list.
16876 (Expand_Interface_Conversion): Handle the case in which the displacement
16877 associated with the interface conversion is not statically known. In
16878 this case we generate a call to the new run-time subprogram Displace.
16879 (Make_DT): Generate and fill the new table of interfaces.
16880 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
16881 Get_Tagged_Kind and Set_Tagged_Kind.
16882 (Tagged_Kind): New function that determines the tagged kind of a type
16883 with respect to limitedness and concurrency and returns a reference to
16885 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
16886 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
16887 primary dispatch table for a type.
16888 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
16889 secondary dispatch table respectively of a tagged type.
16891 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
16892 (Expand_Interface_Conversion): New subprogram to indicate if the
16893 displacement of the type conversion is statically known.
16894 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
16896 * rtsfind.ads (RE_Offset_To_Top): New entity
16897 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
16898 accessible to users.
16899 (Re_Displace): New entity
16900 (RE_Interface_Data): New entity
16901 (RE_Set_Interface_Data): New_Entity
16902 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
16903 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
16904 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
16905 RE_TK_Tagged, RE_TK_Task.
16907 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
16908 Init_Secondary_Tags_Internal to allow its use with interface types and
16909 also to generate the code for the new additional actual required
16910 by Set_Offset_To_Top.
16911 (Build_Init_Statements): In case of components associated with abstract
16912 interface types there is no need to generate a call to its IP.
16913 (Freeze_Record_Type): Generate Select Specific Data tables only for
16915 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
16916 the bodies and specifications of the predefined primitive operations
16917 dealing with dispatching selects and abort, 'Callable, 'Terminated only
16918 for concurrent types.
16920 * exp_sel.ads, exp_sel.adb: New files.
16922 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
16923 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
16924 properly protected objects and attach handler in the case of the
16925 restricted profile.
16926 Move embeded package Select_Expansion_Utilities into a separate external
16928 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
16929 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
16930 (Build_K, Build_S_Assignment): New subprograms, part of the select
16931 expansion utilities.
16932 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
16933 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
16934 where the trigger is a dispatching procedure of a limited tagged type.
16936 2005-12-09 Olivier Hainque <hainque@adacore.com>
16938 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
16939 pointer initialization values. Make a SAVE_EXPR instead. Add comments
16940 about the use and expansion of SAVE_EXPRs in the various possible
16941 renaming handling cases.
16942 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
16943 abusing DECL_FCONTEXT.
16945 2005-12-09 Matthew Heaney <heaney@adacore.com>
16947 * a-convec.adb (Merge): Added assertions to check whether vector params
16950 * a-coinve.adb (Merge): Added assertions to check whether vector params
16953 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
16955 (Cursor'Read): raises PE
16957 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
16958 to its default value.
16960 * a-cihama.adb: Manually check whether cursor's key and elem are
16963 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
16964 (Merge): Assert that target and source lists are in order
16965 (Swap): Declare non-const temporaries, to pass to Splice
16967 * a-cdlili.ads: (Splice): Changed param name and param mode
16969 * a-cdlili.adb: (Splice): Changed param name and param mode
16970 (Merge): Assert that target and source lists are in order
16971 (Swap): Declare non-const temporaries, to pass to Splice
16973 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
16974 (Write): declare Stream param as not null
16976 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
16977 an exception message.
16979 2005-12-09 Thomas Quinot <quinot@adacore.com>
16980 Robert Dewar <dewar@adacore.com>
16982 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
16983 which is the absolute maximum length we can support.
16985 * frontend.adb: For the processing of configuration pragma files,
16986 remove references to Opt.Max_Line_Length, which is not checked anymore.
16988 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
16991 * scn.adb, scng.adb:
16992 Always check line length against the absolute supported maximum,
16993 Hostparm.Max_Line_Length.
16995 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
16996 value for the maximum line length is Max_Line_Length (not
16997 Column_Number'Last).
16998 Minor error msg update
16999 (Set_Style_Check_Options): New interface returning error msg
17000 Minor code reorganization (processing for 'M' was out of alpha order)
17002 * switch-c.adb: New interface for Set_Style_Check_Options
17004 * stylesw.ads (Set_Style_Check_Options): New interface returning error
17007 2005-12-09 Javier Miranda <miranda@adacore.com>
17009 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
17010 with IP subprogram were only supported if there were limited types.
17012 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
17013 records with IP subprogram were only supported if there were limited
17016 2005-12-09 Olivier Hainque <hainque@adacore.com>
17017 Eric Botcazou <ebotcazou@adacore.com>
17019 * trans.c (tree_transform, emit_check): Adjust calls to
17020 build_call_raise, passing the now expected GNAT_NODE argument.
17022 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
17023 source line information than what the current global locus indicates
17026 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
17027 field has overflowed.
17028 (build_call_raise): Add a GNAT_NODE argument to convey better source
17029 line information than what the current global locus indicates when
17031 (build_component_ref): Adjust call to build_call_raise.
17033 2005-12-09 Pascal Obry <obry@adacore.com>
17035 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
17036 the iterator is quitting iteration on parent directory.
17038 2005-12-09 Javier Miranda <miranda@adacore.com>
17040 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
17041 and the assignment to a class-wide object, before the assignment we
17042 generate a run-time check to ensure that the tag of the Target is
17043 covered by the tag of the source.
17045 2005-12-09 Robert Dewar <dewar@adacore.com>
17047 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
17048 parameter in call to Image_Wide_Character.
17050 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
17051 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
17052 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
17053 annoying FFFE/FFFF inconsistency.
17055 2005-12-09 Robert Dewar <dewar@adacore.com>
17056 Javier Miranda <miranda@adacore.com>
17057 Ed Schonberg <schonberg@adacore.com>
17059 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
17060 of type conversion.
17061 (Find_Interface): New subprogram that given a tagged type and one of its
17062 component associated with the secondary table of an abstract interface
17063 type, return the entity associated with such abstract interface type.
17064 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
17065 base type to create anonymous subtype, because entity may be a locally
17066 declared subtype or generic actual.
17067 (Find_Interface): New subprogram that given a tagged type and one of its
17068 component associated with the secondary table of an abstract interface
17069 type, return the entity associated with such abstract interface type.
17071 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
17072 conversion cannot be handled at compile time. In this case we pass this
17073 information to the expander to generate the appropriate code.
17075 2005-12-09 Robert Dewar <dewar@adacore.com>
17076 Ed Schonberg <schonberg@adacore.com>
17077 Gary Dismukes <dismukes@adacore.com>
17078 Javier Miranda <miranda@adacore.com>
17079 Hristian Kirtchev <kirtchev@adacore.com>
17081 * einfo.adb (Itype_Printed): New flag
17082 (Is_Limited_Type): Derived types do not inherit limitedness from
17083 interface progenitors.
17084 (Is_Return_By_Reference_Type): Predicate does not apply to limited
17087 * einfo.ads (Itype_Printed): New flag
17088 Move Is_Wrapper_Package to proper section
17089 Add missing Inline for Is_Volatile
17091 * output.ads, output.adb (Write_Erase_Char): New procedure
17092 (Save/Restore_Output_Buffer): New procedures
17093 (Save/Restore_Output_Buffer): New procedures
17095 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
17096 Add missing support for anonymous access type
17097 (Write_Id): Insert calls to Write_Itype
17098 (Write_Itype): New procedure to output itypes
17100 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
17101 use of "limited" in declaration.
17103 * sinfo.ads, sinfo.adb:
17104 Formal derived types can carry an explicit "limited" indication.
17106 * sem_ch3.adb: Add with and use of Targparm.
17107 (Create_Component): If Frontend_Layout_On_Target is True and the
17108 copied component does not have a known static Esize, then reset
17109 the size and positional fields of the new component.
17110 (Analyze_Component_Declaration): A limited component is
17111 legal within a protected type that implements an interface.
17112 (Collect_Interfaces): Do not add to the list the interfaces that
17113 are implemented by the ancestors.
17114 (Derived_Type_Declaration): If the parent of the full-view is an
17115 interface perform a transformation of the tree to ensure that it has
17116 the same parent than the partial-view. This simplifies the job of the
17117 expander in order to generate the correct object layout, and it is
17118 needed because the list of interfaces of the full-view can be given in
17120 (Process_Full_View): The parent of the full-view does not need to be
17121 a descendant of the parent of the partial view if both parents are
17123 (Analyze_Private_Extension_Declaration): If declaration has an explicit
17124 "limited" the parent must be a limited type.
17125 (Build_Derived_Record_Type): A derived type that is explicitly limited
17126 must have limited ancestor and progenitors.
17127 (Build_Derived_Type): Ditto.
17128 (Process_Full_View): Verify that explicit uses of "limited" in partial
17129 and full declarations are consistent.
17130 (Find_Ancestor_Interface): Remove function.
17131 (Collect_Implemented_Interfaces): New procedure used to gather all
17132 implemented interfaces by a type.
17133 (Contain_Interface): New function used to check whether an interface is
17135 (Find_Hidden_Interface): New function used to determine whether two
17136 lists of interfaces constitute a set equality. If not, the first
17137 differing interface is returned.
17138 (Process_Full_View): Improve the check for the "no hidden interface"
17139 rule as defined by AI-396.
17141 2005-12-09 Robert Dewar <dewar@adacore.com>
17143 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
17144 types, not on record subtypes.
17145 (Freeze_Entity): Code cleanup. Add barrier to the loop
17146 that generates the references for primitive operations. This allows to
17147 remove an unnecessary exception handler.
17148 Code reformatting and comment clean ups.
17150 2005-12-09 Vincent Celier <celier@adacore.com>
17152 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
17153 If GNAT CHECK is called with a project file, but with no
17154 source on the command line, call gnatcheck with all the compilable
17155 sources of the project.
17156 Take into account the new command Check, for gnatcheck. Treat as for
17157 other ASIS tools: take into account project, specific package Check and
17159 For ASIS tools, add the switches in package Compiler for
17160 the invocation of the compiler.
17162 * prj-attr.adb: Add package Check and its attributes
17164 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
17166 * vms_conv.adb (Initialize): Change Params of command Check to
17168 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
17169 Add data for new command Check
17171 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
17173 Add qualifiers for Check command options
17174 (Command_Type): New command Check
17176 2005-12-09 Thomas Quinot <quinot@adacore.com>
17178 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
17179 command line switch overruns the output buffer.
17181 2005-12-09 Robert Dewar <dewar@adacore.com>
17183 * sem_prag.adb: Processing for new pragma Complete_Representation
17184 (Analyze_Pragma, case Debug): Implement two argument form.
17186 * par-prag.adb: Entry for new pragma Complete_Representation
17187 (Prag, case Debug): Recognize two argument form of pragma Debug
17188 New interface for Set_Style_Check_Options.
17190 * sem_ch13.adb: Implement new pragma Complete_Representation.
17192 * snames.adb, snames.ads, snames.h: Entry for new pragma
17193 Complete_Representation.
17195 2005-12-09 Gary Dismukes <dismukes@adacore.com>
17197 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
17198 available user-specified stream attributes on limited parameters to
17199 also test the type directly rather than only its underlying type (for
17200 Ada 95) and, in the case of Ada 2005, to check that the user-specified
17201 attributes are visible at the point of the subprogram declaration.
17202 For Ada 2005, the error message is modified to indicate that the
17203 type's stream attributes must be visible (again, only for -gnat05).
17205 2005-12-09 Ed Schonberg <schonberg@adacore.com>
17207 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
17208 anonymous access types.
17210 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
17211 matching of anonymous access types and anonymous access to subprogram
17212 types. 'R'M 4.9.1 (2/2).
17214 2005-12-09 Ed Schonberg <schonberg@adacore.com>
17216 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
17217 rule prematurely when operands are universal, remaining ambiguities
17218 will be removed during resolution.
17221 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
17222 that are Ada 2005 functions.
17223 (Has_Abstract_Interpretation): Subsidiary to
17224 Remove_Conversions, to remove ambiguities caused by abstract operations
17225 on numeric types when operands are universal.
17227 2005-12-09 Robert Dewar <dewar@adacore.com>
17229 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
17230 for case where spec is categorized.
17232 2005-12-09 Javier Miranda <miranda@adacore.com>
17234 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
17235 types use the corresponding record type. This was not needed before
17236 the implementation of Ada 2005 synchronized types because
17237 concurrent types were never tagged types in Ada 95.
17239 2005-12-09 Ed Schonberg <schonberg@adacore.com>
17241 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
17242 first subtype of the type of the expression to verify that it is a
17245 2005-12-09 Robert Dewar <dewar@adacore.com>
17247 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
17250 2005-12-09 Quentin Ochem <ochem@adacore.com>
17251 Robert Dewar <dewar@adacore.com>
17252 Ed Falis <falis@adacore.com>
17253 Florian Villoing <villoing@adacore.com>
17254 Thomas Quinot <quinot@adacore.com>
17255 Arnaud Charlet <charlet@adacore.com>
17257 * gnat_ugn.texi: Created section "Stack Related Tools"
17258 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
17259 "Stack Related Tools"
17260 Added subsection "Static Stack Usage Analysis"
17261 Added subsection "Dynamic Stack Usage Analysis"
17262 Include documentation of itypes in sprint listing (-gnatG)
17263 Documented gnatbind -D switch (default sec stack size for fixed sec
17265 Added Interrupt_State and Persistent_BSS to list of configuration
17267 Add missing doc for maximum value of nnn in -gnatyMnnn
17269 * gnat_rm.texi: Document the AltiVec binding.
17270 Add documentation for pragma Complete_Representation
17271 Shortened an overly long line (> 79 chars)
17272 Clarify documentation of unchecked conversion in implementation
17274 Document two argument form of pragma Debug
17276 * types.ads (Column_Number): Update documentation.
17278 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
17279 library level Finalize_Storage_Only objects (these are not attached to
17280 any finalization list).
17282 * system-mingw.ads: (Underlying_Priorities): Update comment.
17284 2005-12-09 Robert Dewar <dewar@adacore.com>
17286 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
17287 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
17288 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
17289 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
17290 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
17291 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
17292 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
17293 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
17296 2005-12-09 Robert Dewar <dewar@adacore.com>
17298 * s-vaflop-vms-alpha.adb: (Ne_F): New function
17299 (Ne_G): New function
17301 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
17302 for tag assignment.
17303 (Rewrite_Comparison): Handle case where operation is not a comparison
17304 and ignore, and also handle type conversion case.
17306 2005-12-09 Thomas Quinot <quinot@adacore.com>
17308 * exp_aggr.ads: Fix typo in comment.
17309 ???-mark Convert_Aggr_In_Assignment as needing documentation.
17311 2005-12-09 Gary Dismukes <dismukes@adacore.com>
17313 * layout.adb: Replace various uses of byte by storage unit throughout.
17314 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
17315 static size, convert to storage units before returning, to conform to
17318 2005-12-09 Matthew Gingell <gingell@adacore.com>
17320 * g-exctra.ads: Fix typo in comment.
17322 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17324 * utils.c: Minor reformatting.
17326 2005-12-09 Robert Dewar <dewar@adacore.com>
17329 Further comment fixes to make the status of the default file clear
17331 * s-bitops.adb: Clarify comment for Bits_Array
17333 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
17335 * Make-lang.in (ada.install-normal): Remove.
17337 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
17339 * Make-lang.in: Remove all dependencies on s-gtype.
17341 2005-12-05 Richard Guenther <rguenther@suse.de>
17343 * utils.c (convert): Use fold_convert where appropriate.
17345 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
17347 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
17350 2005-12-02 Richard Guenther <rguenther@suse.de>
17352 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
17354 2005-12-01 Roger Sayle <roger@eyesopen.com>
17356 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
17359 2005-11-23 Laurent Guerby <laurent@guerby.net>
17361 * mlib-prj.adb (Build_Library): Initialize Delete.
17363 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
17365 * socket.c: Add extern int h_errno for rtems since networking header
17366 files are not available at this point in a tool bootstrap. Newlib
17367 only has basic C library header files.
17369 2005-11-19 Richard Guenther <rguenther@suse.de>
17370 Roger Sayle <roger@eyesopen.com>
17373 * misc.c (internal_error_function): Don't use vsprintf to format
17374 the error message text, instead use pp_format_text and the new
17375 pretty printer APIs. This allows handling of %qs, %w, etc.
17377 2005-11-18 Laurent Guerby <laurent@guerby.net>
17380 * Makefile.in: Use s-auxdec-empty for RTEMS.
17382 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17385 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
17386 a temporary if taking the address of something that is neither
17387 reference, declaration, or constant, since the gimplifier
17388 can't handle that case.
17390 2005-11-17 Laurent Guerby <laurent@guerby.net>
17393 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
17395 2005-11-16 Richard Guenther <rguenther@suse.de>
17397 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
17399 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
17402 * raise-gcc.c: Add missing stdarg.h include.
17404 2005-11-16 Richard Guenther <rguenther@suse.de>
17406 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
17407 (ada/misc.o): Likewise.
17409 2005-11-14 Thomas Quinot <quinot@adacore.com>
17411 * g-soccon.ads: Minor reformatting. Update comments.
17413 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
17414 gain visibility on the declaration of struct timeval.
17416 * g-soccon-freebsd.ads,
17417 g-soccon-darwin.ads,
17418 g-soccon-tru64.ads,
17422 g-soccon-solaris.ads,
17424 g-soccon-mingw.ads,
17425 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
17427 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
17428 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
17429 g-soccon-linux-x86.ads: New files.
17431 * g-socthi-mingw.adb:
17432 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
17434 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
17435 (time_t, suseconds_t): New types constructed to match the tv_sec
17436 and tv_usec fields of C struct timeval.
17437 (Timeval): Construct structure in terms of the new types.
17438 (Host_Errno): New function (imported from socket.c), returns last hosts
17441 * g-socthi-vxworks.adb: Add error handling circuitry.
17443 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
17444 components of struct timeval.
17445 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
17446 (Check_Selector): In error conditions, clear internal socket sets to
17447 avoid a memory leak.
17448 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
17449 Send_Timeout, Receive_Timeout.
17451 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
17452 the tv_sec and tv_usec fields of C struct timeval.
17453 (Timeval): Construct structure in terms of the new types.
17454 (Host_Errno): New function (imported from socket.c), returns last hosts
17457 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
17458 hosts database last error code.
17460 * gen-soccon.c: Complete value expansion should not be performed on
17461 TARGET, as it has the form of a math expression, and some components
17462 may be platform-defined macros.
17463 For VxWorks, generate the OK and ERROR values.
17464 New constants giving the sizes of the components of C struct timeval.
17466 2005-11-14 Robert Dewar <dewar@adacore.com>
17467 Ed Schonberg <schonberg@adacore.com>
17470 * types.ads: Include All_Checks in Suppress_Array
17472 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
17473 not(a=b), since we no longer do this rewriting, and hence it is not
17475 (Elaboration_Checks_Suppressed): Add special casing to
17476 deal with different cases of static and dynamic elaboration checks (all
17477 checks does not count in the first case, but does in the second).
17478 (Expr_Known_Valid): Do not assume that the result of any arbitrary
17479 function call is valid, since this is not the case.
17480 (Ensure_Valid): Do not apply validity check to a real literal
17481 in a universal or fixed context
17483 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
17484 elementary types using the operator in standard. It is cleaner not to
17485 modify the programmers intent, especially in the case of floating-point.
17486 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
17487 it did not matter because we always rewrote a/=b to not(a=b).
17488 (Expand_Allocator_Expression): For an allocator expression whose nominal
17489 subtype is an unconstrained packed type, convert the expression to its
17490 actual constrained subtype.
17491 Implement warning for <= or >= where < or > not possible
17492 Fix to Vax_Float tests (too early in many routines, causing premature
17493 Vax_Float expansions.
17495 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
17496 to be used with packages and generic packages as well as with
17498 (Suppress): Set All_Checks, but not Elaboration_Check, for case
17499 of pragma Suppress (All_Checks)
17500 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
17501 a string literal for precise control over warnings.
17502 Avoid raise of pragma in case of unrecognized pragma and just return
17505 * sem_prag.ads: Minor reformatting
17507 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
17508 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
17509 Switch. Do not handle any exception.
17510 Include -gnatwx as part of -gnatg (warn on redundant parens)
17511 Allow optional = after -gnatm
17512 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
17513 longer sets Elaboration_Checks.
17514 Code to set warning mode moved to Sem_Warn
17515 so that it can be shared by pragma processing.
17517 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
17520 * s-taprop-solaris.adb:
17521 Change some <= to =, to avoid new warning
17523 * a-exexda.adb, prj-proc.adb:
17524 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
17525 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
17527 2005-11-14 Robert Dewar <dewar@adacore.com>
17529 * exp_vfpt.adb: Handle /= case
17530 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
17531 so that we do not get duplicate scaling for fixed point conversions.
17533 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
17535 2005-11-14 Matthew Gingell <gingell@adacore.com>
17537 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
17538 Increase default priority on Lynx from 15 to 17, and meet the Ada
17539 requirement that Default_Priority be ((Priority'First +
17540 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
17542 2005-11-14 Vincent Celier <celier@adacore.com>
17544 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
17545 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
17546 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
17547 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
17548 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
17549 mlib-tgt-lynxos.adb (DLL_Prefix): New function
17551 2005-11-14 Doug Rupp <rupp@adacore.com>
17553 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
17556 2005-11-14 Arnaud Charlet <charlet@adacore.com>
17558 * s-traces-default.adb, s-trafor-default.ads,
17559 s-tratas-default.adb: Fix compilation errors.
17561 2005-11-14 Jose Ruiz <ruiz@adacore.com>
17563 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
17564 raising the exception so the memory used is freed.
17566 2005-11-14 Arnaud Charlet <charlet@adacore.com>
17568 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
17569 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
17570 (convert_address): Update comments and list of platforms using this.
17572 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
17575 2005-11-14 Pascal Obry <obry@adacore.com>
17576 Vincent Celier <celier@adacore.com>
17578 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
17581 * memroot.adb: Remove redundant with/use clause on
17582 System.Storage_Elements.
17584 2005-11-14 Arnaud Charlet <charlet@adacore.com>
17586 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
17587 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
17588 related code to a-exexpr.adb
17589 (Save_Occurrence_And_Private): Move GCC EH related code to
17591 (Raise_Current_Excep): Add new variable Id with pragma
17592 volatile, to ensure that the variable lives on stack.
17594 * a-exexpr-gcc.adb, raise-gcc.c: New file.
17596 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
17598 Move GCC EH related code to a-exexpr-gcc.adb
17600 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
17602 Split the Linux version of g-soccon into separate variants for 32 and 64
17604 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
17605 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
17606 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
17607 of host variable $(RANLIB_FLAGS).
17608 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
17609 Code clean up: remove unused/obsolete targets.
17610 (EH_MECHANISM): New variable introduced to differenciate between the
17611 two EH mechanisms statically.
17612 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
17613 (LIBGNAT_OBJS): Add raise-gcc.o
17614 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
17615 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
17616 supports VxWorks 6 RTPs.
17617 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
17618 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
17620 * raise.c: Move all GCC EH-related routines to raise-gcc.c
17622 2005-11-14 Jose Ruiz <ruiz@adacore.com>
17624 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
17625 deferral level, when abort is not allowed, to a later stage (the
17627 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
17628 it will not get changed by the generated code. It was previously done
17631 2005-11-14 Thomas Quinot <quinot@adacore.com>
17632 Olivier Hainque <hainque@adacore.com>
17633 Eric Botcazou <ebotcazou@adacore.com>
17636 Factor common code to build a storage type for an unconstrained object
17637 from a fat or thin pointer type and a constrained object type.
17638 (annotate_value): Handle BIT_AND_EXPR.
17639 (annotate_rep): Don't restrict the back annotation of inherited
17640 components to the type_annotate_only case.
17641 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
17642 we are not defining the type.
17643 <E_Record_Type>: Likewise.
17644 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
17645 to get advantage of the new maybe_stabilize_reference interface, to
17646 ensure that what we reference is indeed stabilized instead of relying
17647 on assumptions on what the stabilizer does.
17648 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
17649 type imported through a limited_with clause, use its non-limited view.
17650 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
17652 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
17653 of #if sections + explicit comparisons of convention identifiers.
17654 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
17655 before early-returning for certain types when code generation is
17657 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
17658 nullification of gnu_expr we do for objects with address clause and
17659 that we are not defining.
17660 (elaborate_expression_1): Do not create constants when creating
17661 variables needed by the debug info: the dwarf2 writer considers that
17662 CONST_DECLs is used only to represent enumeration constants, and emits
17664 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
17665 object with an address clause into an indirect reference, drop the
17666 initializing expression.
17668 (STACK_CHECK_BUILTIN): Delete.
17669 (STACK_CHECK_PROBE_INTERVAL): Likewise.
17670 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
17671 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
17672 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
17673 corresponding to the renamed object as ignored for debugging purposes.
17675 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
17676 related): For a prefix that is a dereference of a fat or thin pointer,
17677 if there is an actual subtype provided by the front-end, use that
17678 subtype to build an actual type with bounds template.
17679 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
17680 is provided by the front-end, use that subtype to compute the size of
17681 the deallocated object.
17682 (gnat_to_gnu): When adding a statement into an elaboration procedure,
17683 check for a potential violation of a No_Elaboration_Code restriction.
17684 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
17685 with extra arguments to control whether to recurse through non-values
17686 and to let the caller know if the stabilization has succeeded.
17687 (gnat_stabilize_reference): Now a simple wrapper around
17688 maybe_stabilize, for common uses without restriction on lvalues and
17689 without need to check for the success indication.
17690 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
17691 pass false instead of 0 as the FORCE argument which is a bool.
17692 (Identifier_to_gnu): Remove checks ensuring that an renamed object
17693 attached to a renaming pointer has been properly stabilized, as no such
17694 object is attached otherwise.
17695 (call_to_gnu): Invoke create_var_decl to create the temporary when the
17696 function uses the "target pointer" return mechanism.
17697 Reinstate conversion of the actual to the type of the formal
17698 parameter before any other specific treatment based on the passing
17699 mechanism. This turns out to be necessary in order for PLACEHOLDER
17700 substitution to work properly when the latter type is unconstrained.
17702 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
17704 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
17705 with extra arguments to control whether to recurse through non-values
17706 and to let the caller know if the stabilization has succeeded.
17708 * utils2.c (gnat_build_constructor): Only sort the fields for possible
17709 static output of record constructor if all the components are constant.
17710 (gnat_build_constructor): For a record type, sort the list of field
17711 initializers in increasing bit position order.
17712 Factor common code to build a storage type for an unconstrained object
17713 from a fat or thin pointer type and a constrained object type.
17714 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
17715 types variants, and process special cases of VIEW_CONVERT expressions
17716 as their NOP_EXPR counterpart to ensure we get to the
17717 CORRESPONDING_VARs associated with CONST_DECls.
17718 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
17719 on the right-hand side.
17721 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
17723 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
17724 are converting back to its original type.
17725 (convert) <JM input>: Fallthrough regular conversion code instead of
17726 extracting the object if converting to a type variant.
17727 (create_var_decl): When a variable has an initializer requiring code
17728 generation and we are at the top level, check for a potential violation
17729 of a No_Elaboration_Code restriction.
17730 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
17731 SIZE and SIZE_UNIT which we need for later back-annotations.
17732 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
17733 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
17734 is an unchecked union.
17735 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
17736 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
17737 main variant, just replace the VIEW_CONVERT_EXPR.
17738 <UNION_TYPE>: Revert 2005-03-02 change.
17740 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
17742 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
17744 2005-11-14 Matthew Heaney <heaney@adacore.com>
17746 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
17747 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
17748 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
17749 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
17750 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
17751 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
17752 Compiles against the spec for ordered maps described in sections
17753 A.18.6 of the most recent (August 2005) AI-302 draft.
17755 2005-11-14 Olivier Hainque <hainque@adacore.com>
17757 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
17758 to ensure bias adjustments take place when need be and to prevent
17759 occurrences of intermediate overflows.
17761 2005-11-14 Matthew Gingell <gingell@adacore.com>
17762 Olivier Hainque <hainque@adacore.com>
17764 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
17767 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
17768 tracebacks on ia64 HP-UX and provide explanatory comment.
17769 Enable backtraces on ia64 GNU/Linux.
17770 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
17771 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
17773 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
17774 Javier Miranda <miranda@adacore.com>
17776 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
17777 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
17778 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
17779 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
17781 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
17782 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
17785 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
17786 subprogram that generates the external name associated with a
17787 secondary dispatch table.
17788 (Get_Secondary_DT_External_Name): New subprogram that generates the
17789 external name associated with a secondary dispatch table.
17791 2005-11-14 Emmanuel Briot <briot@adacore.com>
17793 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
17794 line in the ALI file to include both an instantiation reference, and a
17797 2005-11-14 Vincent Celier <celier@adacore.com>
17799 * clean.adb (Check_Project): Look for Ada code in extending project,
17800 even if Ada is not specified as a language.
17801 Use new function DLL_Prefix for DLL_Name
17802 (Clean_Interface_Copy_Directory): New procedure
17803 (Clean_Library_Directory): New procedure
17804 (Clean_Directory): Remove procedure, no longer used
17805 (Clean_Project): Do not delete any file in an externally built project
17807 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
17808 directory of an extending project, even when there are no Ada source
17810 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
17811 (Set_Ada_Paths.Add.Recursive_Add): Ditto
17813 * mlib-prj.adb (Check_Library): For all library projects, get the
17814 library file timestamp.
17815 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
17816 (Build_Library): Use new function DLL_Prefix for the DLL_Name
17817 (Clean): Remove procedure, no longer used
17818 (Ultimate_Extension_Of): New function
17819 (Build_Library): When cleaning the library directory, only remove an
17820 existing library file and any ALI file of a source of the project.
17821 When cleaning the interface copy directory, remove any source that
17822 could be a source of the project.
17824 * prj.ads, prj.adb (Project_Empty): Add values of new components
17825 Library_TS and All_Imported_Projects.
17826 (Project_Empty): Add values for new components of Project_Data:
17827 Library_ALI_Dir and Display_Library_ALI_Dir
17829 * prj-attr.adb: New project level attribute name Library_ALI_Dir
17831 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
17832 attribute Library_ALI_Dir.
17833 (Check_Library_Attributes): The library directory cannot be the same as
17834 any source directory of the project tree.
17835 (Check_Stand_Alone_Library): The interface copy directory cannot be
17836 the same as any source directory of the project tree.
17838 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
17839 all temporary files.
17841 2005-11-14 Robert Dewar <dewar@adacore.com>
17842 Ed Schonberg <schonberg@adacore.com>
17844 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
17845 (Check_Elab_Call): A call within a protected body is never an
17846 elaboration call, and does not require checking.
17847 (Same_Elaboration_Scope): Take into account protected types for both
17849 (Activate_Elaborate_All_Desirable): New procedure
17851 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
17854 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
17855 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
17857 * lib-writ.ads, lib-writ.adb:
17858 Implement new AD/ED for Elaborate_All/Elaborate desirable
17859 Use new Elaborate_All_Desirable flag in N_With_Clause node
17861 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
17862 N_Free_Statement nodes.
17863 Define new class N_Subprogram_Instantiation
17864 Add Elaborate_Desirable flag to N_With_Clause node
17865 Add N_Delay_Statement (covering two kinds of delay)
17867 * debug.adb: Introduce d.f flag for compiler
17868 Add -da switch for binder
17870 2005-11-14 Ed Schonberg <schonberg@adacore.com>
17871 Cyrille Comar <comar@adacore.com>
17873 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
17874 for task component, in the case of a limited aggregate. The enclosed
17875 object declaration will create it earlier. Otherwise, in the case of a
17876 nested aggregate, the object may appear in the wrong scope.
17877 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
17878 (Gen_Assign): If the component being assigned is an array type and the
17879 expression is itself an aggregate, wrap the assignment in a block to
17880 force finalization actions on the temporary created for each row of the
17882 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
17883 structures are initialized after all discriminants are set so that
17884 they can be accessed even when their offset is dynamic.
17886 2005-11-14 Robert Dewar <dewar@adacore.com>
17887 Hristian Kirtchev <kirtchev@adacore.com>
17889 * sem_attr.adb: Implement Machine_Rounding attribute
17890 (Analyze_Access_Attribute): The access attribute may appear within an
17891 aggregate that has been expanded into a loop.
17892 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
17893 'Terminated whenever the prefix is of a task interface class-wide type.
17894 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
17895 the prefix is of a task interface class-wide type.
17897 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
17900 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
17901 Remove pragma Inline for [Unaligned_]Valid.
17902 Add comments that Valid routines do not work for Vax_Float
17904 * exp_attr.adb: Implement Machine_Rounding attribute
17906 * snames.h: Add entry for Machine_Rounding attribute
17908 2005-11-14 Javier Miranda <miranda@adacore.com>
17909 Robert Dewar <dewar@adacore.com>
17910 Hristian Kirtchev <kirtchev@adacore.com>
17912 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
17913 and related): For a prefix that is an explicit dereference of an
17914 access to unconstrained packed array type, annotate the dereference
17915 with an actual subtype so GIGI can make a correct size computation.
17916 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
17917 'Unrestricted_Access, if the designated type is an interface we
17918 add a type conversion to force the displacement of the pointer
17919 to the secondary dispatch table.
17920 Use Universal_Real instead of Long_Long_Float when we need a high
17921 precision float type for the generated code (prevents gratuitous
17922 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
17923 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
17924 'Terminated for task interface class-wide objects. Generate a call to
17925 the predefined dispatching routine used to retrieve the _task_id from
17926 a task corresponding record.
17927 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
17929 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
17930 (Check_Dispatching_Operation): Protect the frontend againts
17931 previously detected errors.
17933 * Makefile.rtl: Add new instantiations of system.fat_gen
17935 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
17936 Change name of instantiated package for better consistency
17937 with newly added system.fat_gen instantiations.
17939 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
17940 s-fvagfl.ads: New files.
17942 2005-11-14 Cyrille Comar <comar@adacore.com>
17943 Thomas Quinot <quinot@adacore.com>
17945 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
17946 assignment of a value of a tagged type that has been rewritten to a
17947 block statement, it is known by construction that no checks are
17948 necessary for the statements within the block: analyze it with checks
17950 (Expand_N_If_Statement): When killing a dead then-branch in an
17951 if-statement that has elsif_parts, recompute the Current_Value node
17952 for any entity whose value is known from the condition of the first
17954 (Expand_N_Return_Statement): When returning a mutable record, convert
17955 the return value into its actual subtype in order to help the backend
17956 to return the actual size instead of the maximum. This is another
17957 aftermath of not returning mutable records on the sec-stack anymore.
17959 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
17960 handling of error msg for suspicious reverse range iteration.
17961 (Check_Possible_Current_Value_Condition): Move declaration from body to
17962 spec, to allow this subprogram to be called from exp_ch5.
17964 2005-11-14 Thomas Quinot <quinot@adacore.com>
17966 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
17967 generate a set of nested array aggregates instead of a single flat
17968 aggregate for multi-dimensional arrays.
17970 2005-11-14 Pascal Obry <obry@adacore.com>
17972 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
17973 by spawnve is a process handle, no need to convert. Add a parameter
17974 close to control wether the process handle must be closed.
17975 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
17976 a process handle, not need to convert.
17977 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
17979 * g-expect.adb: (Kill): Document the new close parameter.
17980 (Close): Do not release the process handle in the kill there as
17981 waitpid() is using it.
17982 (Send_Signal): Release the process handle.
17984 2005-11-14 Robert Dewar <dewar@adacore.com>
17986 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
17987 need a high precision float type for the generated code (prevents
17988 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
17991 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
17992 need a high precision float type for the generated code (prevents
17993 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
17995 (Expand_Width_Attribute): In configurable run-time, the attribute is not
17996 allowed on non-static enumeration subtypes. Force a load error to emit
17997 the correct diagnostic.
17999 2005-11-14 Thomas Quinot <quinot@adacore.com>
18000 Robert Dewar <dewar@adacore.com>
18001 Ed Schonberg <schonberg@adacore.com>
18003 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
18004 subtype to compute the size of the designated object at run-time,
18005 create such a subtype and store it in the Actual_Designated_Subtype
18006 attribute of the N_Free_Statement.
18007 Generate itype for classwide designated object in both cases of
18008 user-specified storage pool: specific and class-wide, not only in the
18010 Raise CE when trying to set a not null access type object to null.
18011 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
18012 an explicit loop, because freeze nodes make its position variable.
18014 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
18017 2005-11-14 Javier Miranda <miranda@adacore.com>
18019 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
18020 Build_Stream_Procedure): Add the null-excluding attribute to the first
18022 This has no semantic meaning under Ada95 mode but it is a
18023 requirement under Ada05 mode.
18025 * par-ch3.adb (P_Access_Definition): Addition of warning message if
18026 the null exclusion is used under Ada95 mode
18027 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
18028 (P_Access_Definition): Remove assertion that forbids the use of
18029 the null-exclusion feature in Ada95.
18031 2005-11-14 Robert Dewar <dewar@adacore.com>
18033 * impunit.adb: Exclude container helper units not intended for use by
18036 2005-11-14 Ed Schonberg <schonberg@adacore.com>
18038 * freeze.adb (Freeze_Entity): For an access formal that is an access
18039 to subprogram, freeze the anonymous subprogram type at the same time,
18040 to prevent later freezing in the wrong scope, such as the enclosing
18042 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
18043 subprogram whenever available.
18045 2005-11-14 Arnaud Charlet <charlet@adacore.com>
18048 * gnatvsn.ads (Library_Version): Bump to 4.1
18050 2005-11-14 Robert Dewar <dewar@adacore.com>
18052 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
18053 Storage_Offset to avoid wrap around causing invalid results.
18055 2005-11-14 Pascal Obry <obry@adacore.com>
18057 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
18059 (Scan_Bind_Arg): Fail with an error message if -M option is used
18060 on a native compiler.
18062 2005-11-14 Robert Dewar <dewar@adacore.com>
18063 Vincent Celier <celier@adacore.com>
18065 * gprep.adb: Implement -C switch to scan comments
18067 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
18069 * scans.ads: Comment updates (including new use of Tok_Comment in
18072 * opt.ads: Add documentation for flags that are used by gprmake,
18073 currently and in the next version of gprmake.
18074 (Verbosity_Level): New variable
18075 Add Replace_In_Comments switch
18077 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
18079 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
18081 2005-11-14 Arnaud Charlet <charlet@adacore.com>
18083 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
18084 message, friendlier.
18086 2005-11-14 Robert Dewar <dewar@adacore.com>
18088 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
18090 2005-11-14 Doug Rupp <rupp@adacore.com>
18092 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
18094 2005-11-14 Robert Dewar <dewar@adacore.com>
18096 * interfac.ads: Change declarations of IEEE float types so that we no
18097 longer need a separate version of this package for VMS.
18099 2005-11-14 Ed Schonberg <schonberg@adacore.com>
18101 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
18102 internal entity created for the declaration of a child subprogram body
18103 with no spec as coming from source, to generate proper cross-reference
18106 2005-11-14 Vincent Celier <celier@adacore.com>
18108 * make.adb (Compile_Sources): Change verbose message to minimum
18109 verbosity level High for "is in an Ada library", "is a read-only
18110 library" and "is an internal library",
18111 (Create_Binder_Mapping_File): Path name of ALI file for library project
18112 must include the library directory, not the object directory.
18113 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
18114 for new switches -vl, -vm and -vh.
18115 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
18116 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
18117 (Compile_Sources): Do not attempt to compile if an ALI file is missing
18118 in a project that is externally built.
18119 (Compute_All_Imported_Projects): New procedure
18120 (Gnatmake): Check if importing libraries should be regenerated because
18121 at least an imported library is more recent.
18122 (Initialize): For each project compute the list of the projects it
18123 imports directly or indirectly.
18124 (Add_Library_Search_Dir): New procedure, used in place of
18125 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
18126 put in the search paths.
18127 (Add_Source_Search_Dir): New procedure, used in place of
18128 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
18129 put in the search paths.
18130 (Mark_Directory): Resolve the absolute path the directory before marking
18133 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
18134 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
18135 Switch. Do not handle any exception.
18136 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
18137 so that the switch is recognized as valid.
18138 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
18140 2005-11-14 GNAT Script <nobody@adacore.com>
18142 * Make-lang.in: Makefile automatically updated
18144 2005-11-14 Pascal Obry <obry@adacore.com>
18146 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
18148 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
18149 In both cases the last argument was dropped.
18151 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
18153 * namet.h: (Column_Numbe): New type.
18154 (Get_Column_Number): Define to sinput__get_column_number.
18155 (Instantiation): Define to sinput__instantiation.
18156 (Get_Column_Number): Declare.
18157 (Instantiation): Likewise.
18159 2005-11-14 Robert Dewar <dewar@adacore.com>
18161 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
18162 syntax, which could cause compiler hangs.
18164 2005-11-14 Vincent Celier <celier@adacore.com>
18166 * prj-ext.adb: Take into account new environment variable
18167 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
18169 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
18170 normalize its path name, making it absolute and resolving symbolic
18171 links, and replace the original if resolved path is different.
18173 2005-11-14 Vincent Celier <celier@adacore.com>
18175 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
18176 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
18178 2005-11-14 Emmanuel Briot <briot@adacore.com>
18180 * prj-pp.adb (Print): Do not output the with statement if the
18181 associated name is empty, which happens for virtual extending projects.
18182 (Print): Preserve the "extends all" attribute when printing the project.
18184 * prj-tree.ads (String_Value_Of): Add comment about returned value for
18185 a virtual extending project.
18187 2005-11-14 Ed Schonberg <schonberg@adacore.com>
18189 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
18190 rhs of an assignment even if the type is unconstrained, when the
18191 context is non-expanding.
18192 In an inlined body, if the context type is private,
18193 resolve with its full view, which must be a composite type.
18195 2005-11-14 Robert Dewar <dewar@adacore.com>
18196 Ed Schonberg <schonberg@adacore.com>
18198 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
18199 Do not give obsolescent warning on with of subprogram (since we
18201 (Analyze_With_Clause): Add test for obsolescent package
18202 (Install_Context_Clauses): If the unit is the body of a child unit, do
18203 not install twice the private declarations of the parents, to prevent
18204 circular lists of Use_Clauses in a parent.
18205 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
18206 compiling body of child unit.
18207 Use new class N_Subprogram_Instantiation
18208 (Expand_With_Clause): If this is a private with_clause for a child unit,
18209 appearing in the context of a package declaration, then the implicit
18210 with_clauses generated for parent units are private as well.
18211 (License_Check): Do not generate message if with'ed unit is internal
18213 2005-11-14 Gary Dismukes <dismukes@adacore.com>
18214 Ed Schonberg <schonberg@adacore.com>
18215 Thomas Quinot <quinot@adacore.com>
18217 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
18218 names are internal, because they will not have a corresponding partner
18219 in the actual package.
18220 (Analyze_Formal_Package): Move the setting of the formal package spec's
18221 Generic_Parent field so that it occurs prior to analyzing the package,
18222 to allow proper operation of Install_Parent_Private_Declarations.
18223 (Analyze_Package_Instantiation): Set the instantiated package entity's
18224 Package_Instantiation field.
18225 (Get_Package_Instantiation_Node): Move declaration to package spec.
18226 Retrieve the N_Package_Instantiation node when the Package_Instantiation
18228 (Check_Generic_Child_Unit): Within an inlined call, the only possible
18229 instantiation is Unchecked_Conversion, for which no parents are needed.
18230 (Inline_Instance_Body): Deinstall and record the use_clauses for all
18231 parent scopes of a scope being removed prior to inlining an instance
18233 (Analyze_Package_Instantiation): Do not perform front-end inlining when
18234 the current context is itself an instance within a non-instance child
18235 unit, to prevent scope stack errors.
18236 (Save_References): If the node is an aggregate that is an actual in a
18237 call, rewrite as a qualified expression to preserve some type
18238 information, to resolve possible ambiguities in the instance.
18239 (Instance_Parent_Unit): New global variable to record the ultimate
18240 parent unit associated with a generic child unit instance (associated
18241 with the existing Parent_Unit_Visible flag).
18242 (type Instance_Env): New component Instance_Parent_Unit for stacking
18243 parents recorded in the global Instance_Parent_Unit.
18244 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
18246 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
18247 it's not a top-level unit, and only do this if Instance_Parent_Unit is
18248 not already set. Replace test of Is_Child_Unit with test of parent's
18249 scope against package Standard. Add comments and a ??? comment.
18250 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
18251 on a child instance parent to test that the parent equals
18252 Instance_Parent rather than simply checking that the unit is not a
18254 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
18255 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
18256 a formal interface are ancestors of the corresponding actual.
18257 (Validate_Formal_Interface_Type): Additional legality checks.
18258 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
18259 interface types with ancestors.
18260 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
18261 to diagnose attempts to use generic within its own declaration.
18263 2005-11-14 Ed Schonberg <schonberg@adacore.com>
18264 Javier Miranda <miranda@adacore.com>
18266 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
18268 (Build_Private_Derived_Type): The entity of the created full view of the
18269 derived type does not come from source. If after installing the private
18270 declarations of the parent scope the parent is still private, use its
18271 full view to construct the full declaration of the derived type.
18272 (Build_Derived_Record_Type): Relax the condition that controls the
18273 execution of the check that verifies that the partial view and
18274 the full view agree in the set of implemented interfaces. In
18275 addition, this test now only takes into account the progenitors.
18276 (Derive_Interface_Subprograms): No need to derive subprograms
18277 of ancestors that are interfaces.
18278 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
18280 Change name Is_Package to Is_Package_Or_Generic_Package
18281 (Complete_Subprograms_Derivation): Handle the case in which the full
18282 view is a transitive derivation of the ancestor of the partial view.
18283 (Process_Full_View): Rename local subprogram Find_Interface_In_
18284 Descendant to Find_Ancestor_Interface to leave the code more clear.
18285 Remove wrong code that avoids the generation of an error message
18286 when the immediate ancestor of the partial view is an interface.
18287 In addition some minor reorganization of the code has been done to
18288 leave it more clear.
18289 (Analyze_Type_Declaration): If type has previous incomplete tagged
18290 partial view, inherit properly its primitive operations.
18291 (Collect_Interfaces): Make public, for analysis of formal
18293 (Analyze_Interface_Declaration): New procedure for use for regular and
18294 formal interface declarations.
18295 (Build_Derived_Record_Type): Add support for private types to the code
18296 that checks if a tagged type implements abstract interfaces.
18297 (Check_Aliased_Component_Type): The test applies in the spec of an
18299 (Access_Type_Declaration): Clean up declaration of malformed type
18300 declared as an access to its own classwide type, to prevent cascaded
18302 (Collect_Interfaces): For private extensions and for derived task types
18303 and derived protected types, the parent may be an interface that must
18304 be included in the interface list.
18305 (Access_Definition): If the designated type is an interface that may
18306 contain tasks, create Master_Id for it before analyzing the expression
18307 of the declaration, which may be an allocator.
18308 (Record_Type_Declaration): Set properly the interface kind, for use
18309 in allocators, the creation of master id's for task interfaces, etc.
18311 2005-11-14 Javier Miranda <miranda@adacore.com>
18312 Ed Schonberg <schonberg@adacore.com>
18314 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
18315 omitted in case of stream attribute subprograms.
18316 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
18317 appear immediately after a subprogram body, when there is no previous
18318 subprogram declaration.
18319 Change name Is_Package to Is_Package_Or_Generic_Package
18320 (Process_Formals): A non null qualifier on a non null named access
18321 type is not an error, and is a warning only if Redundant_Constructs
18324 2005-11-14 Gary Dismukes <dismukes@adacore.com>
18325 Ed Schonberg <schonberg@adacore.com>
18327 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
18328 nested within Analyze_Package_Specification to install the private
18329 declarations and use clauses within each of the parent units of a
18330 package instance of a generic child package.
18331 (Analyze_Package_Specification): When entering a private part of a
18332 package associated with a generic instance or formal package, the
18333 private declarations of the parent must be installed (by calling new
18334 procedure Install_Parent_Private_Declarations).
18335 Change name Is_Package to Is_Package_Or_Generic_Package
18336 (Preserve_Full_Attributes): For a synchronized type, the corresponding
18337 record is absent in a generic context, which does not indicate a
18340 2005-11-14 Ed Schonberg <schonberg@adacore.com>
18342 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
18343 not try to rewrite a renamed stream attribute, because the operations
18344 on the type may not have been generated.
18345 Handle properly a renaming_as_body generated for a stream operation
18346 whose default is abstract because the object type itself is abstract.
18347 (Find_Type): If the type is incomplete and appears as the prefix of a
18348 'Class reference, it is tagged, and its list of primitive operations
18349 must be initialized properly.
18350 (Chain_Use_Clauses): When chaining the use clauses that appear in the
18351 private declaration of a parent unit, prior to compiling the private
18352 part of a child unit, find on the scope stack the proper parent entity
18353 on which to link the use clause.
18354 (Note_Redundant_Use): Emit a warning when a redundant use clause is
18356 (Analyze_Object_Renaming): An attribute reference is not a legal object
18357 if it is not a function call.
18359 2005-11-14 Robert Dewar <dewar@adacore.com>
18360 Ed Schonberg <schonberg@adacore.com>
18362 * sem_eval.adb: Implement d.f flag
18363 (Subtype_Statically_Match): A generic actual type has unknown
18364 discriminants when the corresponding actual has a similar partial view.
18365 If the routine is called to validate the signature of an inherited
18366 operation in a child instance, the generic actual matches the full view,
18368 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
18369 Ed Schonberg <schonberg@adacore.com>
18370 Robert Dewar <dewar@adacore.com>
18371 Thomas Quinot <quinot@adacore.com>
18373 * sem_res.adb (Resolve_Call): Provide a better error message whenever
18374 a procedure call is used as a select statement trigger and is not an
18375 entry renaming or a primitive of a limited interface.
18376 (Valid_Conversion): If the operand has a single interpretation do not
18377 remove address operations.
18378 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
18379 statement to inhibit warning.
18380 (Resolve_Unary_Op): Do not produce a warning when
18381 processing an expression of the form -(A mod B)
18382 Use Universal_Real instead of Long_Long_Float when we need a high
18383 precision float type for the generated code (prevents gratuitous
18384 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
18385 (Resolve_Concatenation_Arg): Improve error message when argument is an
18386 ambiguous call to a function that returns an array.
18387 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
18388 there is an implicit operator in the given scope if we are within an
18389 instance: legality check has been performed on the generic.
18390 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
18391 after resolving operand, to avoid false warnings on overloaded calls.
18393 2005-11-14 Ed Schonberg <schonberg@adacore.com>
18394 Javier Miranda <miranda@adacore.com>
18397 * sem_type.adb (Covers): In an inlined body, a composite type matches
18398 a private type whose full view is a composite type.
18399 (Interface_Present_In_Ancestor): Protect the frontend against
18400 previously detected errors to ensure that its compilation
18401 with assertions enabled gives the same output that its
18402 compilation without assertions.
18403 (Interface_Present_In_Ancestor): Add support for private types.
18404 Change name In_Actual to In_Generic_Actual (clean up)
18405 (Disambiguate): New predicate In_Actual, to recognize expressions that
18406 appear in the renaming declaration generated for generic actuals, and
18407 which must be resolved in the outer context.
18409 2005-11-14 Robert Dewar <dewar@adacore.com>
18410 Thomas Quinot <quinot@adacore.com>
18411 Hristian Kirtchev <kirtchev@adacore.com>
18412 Ed Schonberg <schonberg@adacore.com>
18414 * sem_util.ads, sem_util.adb: Change name Is_Package to
18415 Is_Package_Or_Generic_Package.
18416 (Check_Obsolescent): New procedure.
18417 (Set_Is_Public): Remove obsolete junk test.
18418 (Set_Public_Status): Do not set Is_Public on an object whose declaration
18419 occurs within a handled_sequence_of_statemets.
18420 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
18421 for a parameterless procedure.
18422 (Enter_Name): Recognize renaming declarations created for private
18423 component of a protected type within protected operations, so that
18424 the source name of the component can be used in the debugger.
18426 2005-11-14 Ed Schonberg <schonberg@adacore.com>
18427 Robert Dewar <dewar@adacore.com>
18429 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
18430 of a generic subprogram are not visible outside the body.
18431 (Set_Warning_Switch): New procedure (code to set warning mode moved
18432 here from Switch.C so that it can be shared by pragma processing.
18433 (Check_References): Special case warning for non-modified non-imported
18435 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
18436 form with a string literal argument
18438 2005-11-14 Javier Miranda <miranda@adacore.com>
18440 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
18442 (Write): Addition of "not null" to the anonymous access.
18443 (Read): Addition of "not null" to the anonymous access.
18444 (Write): Addition of "not null" to the anonymous access.
18446 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
18447 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
18448 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
18449 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
18450 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
18451 "not null" to the anonymous access.
18453 2005-11-14 Robert Dewar <dewar@adacore.com>
18455 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
18458 2005-11-14 Vincent Celier <celier@adacore.com>
18460 * switch.adb (Bad_Switch): New procedure
18461 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
18462 message when in error.
18464 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
18465 Too_Many_Output_Files): Remove declarations, no longer used.
18466 (Scan_Nat): New parameter Switch
18468 (Bad_Switch): New procedure
18470 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
18471 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
18472 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
18473 to Osint.Fail. Do not handle any exception.
18475 2005-11-14 Vincent Celier <celier@adacore.com>
18477 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
18478 designates a non existent directory.
18480 2005-11-14 Robert Dewar <dewar@adacore.com>
18482 * xgnatugn.adb: Replace invalid membership test by 'Valid
18484 2005-11-14 Vincent Celier <celier@adacore.com>
18486 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
18487 there is no object directory.
18489 2005-11-14 Robert Dewar <dewar@adacore.com>
18491 * usage.adb: Minor adjustment to output format, use nn instead of nnn
18492 (so that -gnateInnn does not run into next column)
18494 2005-11-14 Ed Falis <falis@adacore.com>
18496 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
18499 2005-11-14 Cyrille Comar <comar@adacore.com>
18501 * s-chepoo.ads: Add comments on Dereference.
18502 Remove unnecessary inherited abstract primitives.
18505 2005-11-14 Robert Dewar <dewar@adacore.com>
18507 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
18508 node parameter, not needed, since it is available as Declaration_Node.
18510 2005-11-14 Geert Bosch <bosch@adacore.com>
18512 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
18513 grammatically correct.
18515 2005-11-14 Vincent Celier <celier@adacore.com>
18517 * s-fileio.ads: Correct spelling error in comment
18519 2005-11-14 Cyrille Comar <comar@adacore.com>
18520 Robert Dewar <dewar@adacore.com>
18521 Vincent Celier <celier@adacore.com>
18522 Ben Brosgol <brosgol@adacore.com>
18523 Jose Ruiz <ruiz@adacore.com>
18524 Pascal Obry <obry@adacore.com>
18527 Document that -fstack-check is needed for strict compliance with the
18528 Ada 95 Reference Manual.
18529 Correct reference to VAX systems to meet HP guidelines
18530 Add documentation for new gnatmake switches -vl, -vm and -vh
18531 Replace DEC Ada by HP Ada
18532 Replace DIGITAL by HP
18533 Remove empty section on tools in compatibility section
18534 Clarify the Windows convention semantics.
18535 Document the Win32 calling convention.
18536 The Stdcall, Win32 and DLL convention are synonyms.
18537 Add a note in -gnatR description about zero size record components
18538 Note on new >= and <= warnings for -gnatwc
18539 Document that equal sign after -gnatm is optional.
18540 Note that strip is working fine on DLL built with a Library
18541 Project. The restriction apply only to DLL built with gnatdll.
18542 Update section about the way to debug a DLL.
18543 Update information about the DLL convention.
18544 Document -C switch for gnatprep
18545 Document new attribute Library_ALI_Dir
18546 Update elaboration doc to include implicit Elaborate pragmas now
18547 generated for subprogram instantiations.
18548 Document limitation on executable names that include spaces for --GCC,
18549 --GNATBIND, and --GNATLINK switches.
18550 Document that -w causes -gnatws to be added at start of gcc switches
18552 * gnat_rm.texi: Document that -mieee is needed for generating infinite
18553 and NaN values in case of overflow on machines that are not fully
18554 compliant with the IEEE floating-point standard.
18555 Create a section describing the set of compiler options needed for
18556 strict compliance with the Ada 95 Reference Manual.
18557 Add documentation for pragma Obsolescent applied to a package
18558 Clarify potential issues of mixed language programs related to the
18559 I/O buffering enabling in the elaboration of the GNAT runtime.
18560 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
18561 This documentation only patch adds extra documentsion for pragma
18562 Restrictions (No_Elaboration_Code), explaining why it is not possible
18563 to document this restriction in terms of allowed source constructs.
18564 Document string literal form of pragma Warnings
18565 Document new attribute Library_ALI_Dir
18566 Add documentation on stable attributes in project files that was missing
18568 * gnat-style.texi: Indicate that paragraphs within a single comment
18569 should be separated by empty comment lines
18571 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
18574 * bindusg.adb: Minor cleanup, put -m before -M for consistency
18576 2005-11-14 Robert Dewar <dewar@adacore.com>
18578 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
18579 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
18580 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
18581 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
18582 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
18583 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
18584 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
18585 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
18586 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
18587 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
18588 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
18589 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
18590 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
18591 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
18592 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
18593 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
18594 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
18595 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
18596 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
18597 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
18598 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
18599 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
18600 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
18601 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
18602 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
18603 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
18604 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
18605 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
18606 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
18607 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
18608 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
18609 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
18610 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
18611 system-interix.ads, system-solaris-sparc.ads,
18612 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
18613 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
18614 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
18615 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
18616 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
18617 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
18618 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
18619 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
18620 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
18621 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
18622 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
18623 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
18624 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
18625 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
18626 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
18627 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
18628 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
18629 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
18630 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
18631 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
18632 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
18633 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
18634 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
18635 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
18636 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
18637 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
18638 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
18639 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
18640 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
18641 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
18642 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
18643 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
18644 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
18645 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
18646 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
18647 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
18648 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
18649 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
18650 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
18651 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
18652 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
18653 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
18654 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
18655 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
18656 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
18657 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
18658 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
18659 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
18660 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
18661 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
18662 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
18663 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
18664 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
18665 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
18666 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
18667 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
18668 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
18669 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
18670 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
18671 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
18672 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
18673 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
18674 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
18675 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
18676 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
18677 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
18678 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
18679 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
18680 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
18681 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
18682 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
18683 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
18684 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
18685 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
18686 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
18687 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
18688 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
18689 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
18690 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
18691 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
18692 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
18693 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
18694 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
18695 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
18696 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
18697 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
18698 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
18699 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
18700 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
18701 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
18702 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
18703 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
18704 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
18705 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
18706 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
18707 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
18708 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
18709 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
18710 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
18711 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
18712 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
18713 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
18714 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
18715 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
18716 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
18717 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
18718 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
18719 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
18720 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
18721 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
18722 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
18723 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
18724 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
18725 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
18726 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
18727 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
18728 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
18729 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
18730 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
18731 a-numaux-darwin.ads, a-numaux-darwin.adb,
18732 a-swuwha.ads, a-stunha.ads: Minor reformatting
18734 2005-11-14 Robert Dewar <dewar@adacore.com>
18737 * osint-m.adb: Add pragma Elaborate_All for Osint
18739 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
18742 * trans.c (call_to_gnu): Restore statement lost in translation.
18744 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
18746 * init.c: Use the Linux-specific section for the IA-64/Linux target.
18747 (__gnat_adjust_context_for_raise): Add conditional code so that the
18748 IA-64 is also supported.
18750 2005-11-03 James E Wilson <wilson@specifix.com>
18753 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
18754 TREE_OVERFLOW check.
18756 2005-09-21 Olivier Hainque <hainque@adacore.com>
18759 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
18760 as we create them to store a size in bits.
18762 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
18770 * utils2.c (build_return_expr): New helper function.
18771 * gigi.h (build_return_expr): Declare it.
18772 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
18773 of manually building the RETURN_EXPR tree.
18774 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
18775 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
18776 build_binary_op for the "target pointer" case. Use build_return_expr
18777 instead of manually building the RETURN_EXPR tree.
18779 2005-09-16 Laurent Guerby <laurent@guerby.net>
18782 * s-tpinop.ads: Make this unit Preelaborate.
18784 2005-09-16 Andreas Jaeger <aj@suse.de>
18786 * socket.c: Add string.h for memcpy.
18788 2005-09-05 Arnaud Charlet <charlet@adacore.com>
18790 * dec-io.ads, dec-io.adb: Removed, no longer used.
18792 2005-09-01 Arnaud Charlet <charlet@adacore.com>
18794 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
18796 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
18797 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
18798 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
18799 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
18800 dependent units are Preelaborate.
18801 (Initialize): Call Interrupt_Managemeent.Initialize and
18802 OS_Primitives.Initialize to ensure proper initialization of this unit.
18803 Remove use of System.Soft_Links
18804 Make this unit Preelaborate.
18806 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
18807 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
18808 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
18809 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
18810 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
18811 s-tratas.ads, s-tasinf.ads: Minor reformatting.
18812 Add pragma Preelaborate, since these packages are suitable for this
18816 * s-traent-vms.ads, s-intman-dummy.adb,
18817 s-taprop-dummy.adb: Make this unit Preelaborate.
18819 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
18820 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
18821 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
18822 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
18823 s-intman-solaris.adb, s-intman-irix-athread.adb,
18824 s-intman-irix.adb: Mark this unit Preelaborate.
18825 (Initialize): New procedure.
18828 * s-taspri-linux.ads: Removed.
18830 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
18831 as done by other implementations (e.g. posix).
18833 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
18834 responsible for deferring abort.
18835 Mark this unit Preelaborate.
18837 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
18838 proper initialization of the tasking run-time.
18840 * s-tasdeb.ads: Mark this unit Preelaborate.
18841 (Known_Tasks): Add explicit default value to avoid elaboration code.
18843 * s-inmaop-vms.adb (Elaboration code): Add call to
18844 Interrupt_Management.Initialize since the elaboration code depends on
18845 proper initialization of this package.
18847 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
18848 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
18849 s-osprim-posix.adb: Make this unit Preelaborate.
18851 * a-calend.adb: Add call to OS_Primitives.Initialize
18853 * a-elchha.adb: Update use of Except.Id.Full_Name.
18854 Minor reformatting.
18855 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
18857 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
18858 Move with clauses outside Warnings Off now that dependent units are
18860 Use raise xxx with "..."; Ada 2005 form.
18862 * a-taside.ads, a-taside.adb:
18863 Remove some dependencies, to make it easier to make this unit truly
18865 Rewrite some code to be conformant with Preelaborate rules.
18867 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
18868 marked Preelaborate in the future.
18870 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
18871 these units Preelaborate.
18873 * s-exctab.adb: Update use of Except.Id.Full_Name.
18875 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
18876 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
18877 Set_Exc_Stack_Addr): Removed, no longer used.
18878 Remove reference to *Machine_State_Addr*, no longer needed.
18880 * s-stalib.ads: Mark this unit as Preelaborate[_05].
18881 (Exception_Data): Full_Name is now a System.Address so that this unit
18882 can be made Preelaborate.
18883 Clean up/simplify code thanks to Full_Name being a System.Address.
18884 Remove obsolete pragma Suppress (All_Checks), no longer needed.
18886 * s-taskin.ads, s-taskin.adb:
18887 Move with clauses outside Warnings Off now that dependent units are
18889 Make this unit Preelaborate.
18890 (Initialize): New proceduure, replace elaboration code and makes the
18891 set up of the tasking run-time cleaner.
18892 (Detect_Blocking): Now a function instead of a deferred boolean, to
18893 obey Preelaborate rules.
18895 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
18896 soft links, no longer used.
18898 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
18899 packages are suitable for this categorization.
18901 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
18902 since we compile run-time sources in Ada 2005 mode.
18903 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
18904 avoid having s-taprop*.adb depend on s-soflin and to avoid code
18906 Remove reference to *Machine_State_Addr*, no longer needed.
18908 2005-09-01 Arnaud Charlet <charlet@adacore.com>
18910 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
18911 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
18912 Remove reference to System.Exceptions.
18914 * s-mastop-x86.adb: Removed, no longer used.
18916 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
18918 * a-excach.adb: Minor reformatting.
18920 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
18921 instead fix new warnings that were hidden by this change.
18922 (AAA, ZZZ): Removed, replaced by...
18923 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
18924 are used instead of constants, to help make Ada.Exception truly
18926 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
18927 Raise_Storage_Error): File is now a System.Address, to simplify code.
18928 (Elab code): Removed, no longer used.
18929 (Null_Occurrence): Remove Warnings Off and make this construct
18931 Remove code related to front-end zero cost exception handling, since
18932 it is no longer used.
18933 Remove -gnatL/-gnatZ switches.
18935 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
18936 Update use of Except.Msg.
18938 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
18939 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
18940 to front-end zero cost exception handling, since it is no longer used.
18941 Remove -gnatL/-gnatZ switches.
18943 * lib-writ.ads: Minor reformatting
18946 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
18948 * Make-lang.in: Remove references to s-except.ads
18950 * s-except.ads: Removed, no longer used.
18952 * s-mastop.ads, s-mastop.adb:
18953 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
18954 Remove reference to System.Exceptions.
18956 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
18957 switch-b.adb: Remove code related to front-end zero cost exception
18958 handling, since it is no longer used.
18959 Remove -gnatL/-gnatZ switches.
18961 2005-09-01 Robert Dewar <dewar@adacore.com>
18962 Gary Dismukes <dismukes@adacore.com>
18963 Javier Miranda <miranda@adacore.com>
18965 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
18966 type by valid test and generate warning.
18967 (Tagged_Membership): Generate call to the run-time
18968 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
18969 Change formal name Subtype_Mark to Result_Definition in several calls to
18970 Make_Function_Specification.
18971 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
18972 check for proper accessibility of the operand of a class-wide allocator.
18973 The check can be left out if checks are suppressed or if the expression
18974 has a specific tagged type whose level is known to be safe.
18976 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
18977 generates the run-time check associated with null-excluding entities.
18978 (Expand_N_Return_Statement): Add tests to determine if the accessibility
18979 check on the level of the return expression of a class-wide function
18980 can be elided. The check usually isn't needed if the expression has a
18981 specific type (unless it's a conversion or a formal parameter). Also
18982 add a test for whether accessibility checks are suppressed. Augment
18983 the comments to describe the conditions for performing the check.
18985 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
18986 Javier Miranda <miranda@adacore.com>
18987 Gary Dismukes <dismukes@adacore.com>
18988 Ed Schonberg <schonberg@adacore.com>
18990 * a-tags.adb (IW_Membership): Give support to
18991 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
18992 subprogram has been extended to look for the tag in the ancestors tag
18994 Update the structure of the GNAT Dispatch Table to reflect the
18995 additional two tables used in dispatching selects.
18996 Introduce appropriate array types and record components in
18997 Type_Specific_Data to reflect the two tables.
18998 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
18999 the TSD of a tag, indexed by position.
19000 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
19001 operation kind in the TSD of a tag, indexed by position.
19003 * a-tags.ads: Introduce an enumeration type to capture different
19004 primitive operation kinds. Define a constant reflecting the number of
19005 predefined primitive operations.
19006 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
19007 of an entry wrapper.
19008 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
19009 callable entity of a primitive operation.
19011 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
19012 primitive operations used in dispatching selects for limited
19013 interfaces, limited tagged, task and protected types what implement a
19015 (Freeze_Type): Generate the bodies of the primitive operations used in
19016 dispatching selects for limited tagged, task and protected types that
19017 implement a limited interface. Generate statements to populate the two
19018 auxiliary tables used for dispatching in select statements.
19019 (Freeze_Record_Type): Add call to initialize the dispatch table entries
19020 associated with predefined interface primitive operations.
19021 (Build_Dcheck_Function): Change Set_Subtype_Mark to
19022 Set_Result_Definition.
19023 (Build_Variant_Record_Equality): Change Subtype_Mark to
19025 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
19026 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
19027 (Build_Assignment): Simplify the code that adds the run-time-check.
19028 (Expand_N_Object_Declaration): Code cleanup.
19030 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
19031 entries when there is a protected type that implements a limited
19034 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
19035 common routines used in expansion of dispatching selects.
19036 (Add_Private_Declarations): Select the appropriate protection type when
19037 there is a protected type that implements a limited interface.
19038 (Build_Parameter_Block): Generate a wrapped parameter block.
19039 (Build_Protected_Subprogram_Body): Select the appropriate type for
19040 locking entries when there is a protected type that implements a
19042 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
19043 classified as entry wrappers.
19044 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
19045 asynchronous selects.
19046 (Expand_N_Conditional_Entry_Call): Add support for expansion of
19047 dispatching conditional selects.
19048 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
19049 protection when there is a protected type that implements limited
19051 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
19053 (Extract_Dispatching_Call): Extract the entity of the name of a
19054 dispatching call, the object parameter, actual parameters and
19055 corresponding formals.
19056 (Make_Initialize_Protection): Correct logic of protection initialization
19057 when there is a protected type that implements a limited interface.
19058 (Parameter_Block_Pack): Populate a wrapped parameter block with the
19059 values of actual parameters.
19060 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
19061 block and assign them to the original actual parameters.
19063 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
19064 (Build_Protected_Sub_Specification): Change the type and name of the
19065 last formal to account for the increased variety of protection modes.
19067 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
19068 entities. Used to save the value of the Is_Hidden attribute when the
19069 limited-view is installed.
19070 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
19071 the attribute of procedures classified as entry wrappers.
19072 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
19073 entity of a primitive wrapper.
19074 (Write_Entity_Flags): Output the name and value of the
19075 Is_Primitive_Wrapper attribute.
19076 (Write_Field27_Name): Output the name and entity of the field Wrapped_
19078 (Underlying_Type): If we have an incomplete entity that comes from
19079 the limited view then we return the Underlying_Type of its non-limited
19080 view if it is already available.
19081 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
19082 including operators.
19083 (Write_Field26_Name): Add entry for Overridden_Operation
19084 (Overridden_Operation): New attribute of functions and procedures.
19086 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
19087 predefined position in the dispatch table for the primitive operations
19088 used in dispatching selects.
19089 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
19090 predefined primitive operations and replace it with
19091 Default_Prim_Op_Count.
19092 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
19093 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
19094 the names of the generated primitive operations used in dispatching
19096 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
19097 case of abstract interface types. They will be inherit by the objects
19098 implementing the interface.
19099 (Make_DT): There is no need to inherit the dispatch table of the
19100 ancestor interface for the elaboration of abstract interface types.
19101 The dispatch table will be inherited by the object implementing the
19103 (Copy_Secondary_DTs): Add documentation.
19104 (Validate_Position): Improve this static check in case of
19105 aliased subprograms because aliased subprograms must have
19107 (Init_Predefined_Interface_Primitives): New subprogram that initializes
19108 the entries associated with predefined primitives of all the secondary
19110 (Build_Anonymous_Access_Type): Removed.
19111 (Expand_Interface_Actuals): With the previous cleanup there is no need
19112 to build an anonymous access type. This allows further cleanup in the
19113 code generated by the expander.
19114 (Expand_Interface_Conversion): If the actual is an access type then
19115 build an internal function to handle the displacement. If the actual
19116 is null this function returns null because no displacement is
19117 required; otherwise performs a type conversion that will be
19118 expanded in the code that returns the value of the displaced actual.
19119 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
19120 conversions that have no effect in the generated code because no
19121 displacement is required. Code cleanup; use local variables to
19122 avoid repeated calls to the subprogram directly_designated_type().
19124 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
19125 Classify the primitive operations used in dispatching selects as
19127 (Implements_Limited_Interface): Determine whether some type either
19128 directly implements a limited interface or extends a type that
19129 implements a limited interface.
19130 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
19131 (Expand_Subtype_From_Expr): Do not build actual subtype if the
19132 expression is limited.
19133 (Find_Interface_Tag): Add code to handle class-wide types and
19134 entities from the limited-view.
19136 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
19137 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
19138 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
19139 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
19142 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
19143 of procedure name or prefix that appears as a trigger in a triggering
19146 * uintp.ads: Introduce constants Uint_11 and Uint_13.
19148 2005-09-01 Arnaud Charlet <charlet@adacore.com>
19150 * s-tataat.adb, a-tasatt.adb:
19151 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
19153 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
19154 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
19155 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
19158 2005-09-01 Arnaud Charlet <charlet@adacore.com>
19159 Jose Ruiz <ruiz@adacore.com>
19161 * s-taprop-vxworks.adb:
19162 Move with clauses outside Warnings Off now that dependent units are
19164 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
19165 initialization of this unit.
19166 (Specific): Add new procedures Initialize and Delete so that this
19167 package can be used for VxWorks 5.x and 6.x
19168 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
19169 differences between VxWorks 5.x and 6.x
19170 Minor reformatting.
19171 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
19173 Use only Preelaborate-compatible constructs.
19175 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
19176 Primitives.Operations.
19177 (Delete, Initialize): New procedures.
19179 * s-osinte-vxworks.adb: Body used to handle differences between
19180 VxWorks 5.x and 6.x
19181 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
19183 * s-osinte-vxworks.ads: Minor reformatting.
19184 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
19185 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
19187 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
19188 between Vxworks 5 and 6.
19189 (taskLock, taskUnlock): Removeed, no longer used.
19191 * adaint.c: The wait.h header is not located in the sys directory on
19192 VxWorks when using RTPs.
19193 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
19195 (__gnat_dup): dup is available on Vxworks when using RTPs.
19196 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
19198 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
19200 * expect.c: The wait.h header is not located in the sys directory on
19201 VxWorks when using RTPs.
19203 2005-09-01 Thomas Quinot <quinot@adacore.com>
19205 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
19207 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
19209 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
19210 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
19211 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
19212 g-soccon-freebsd.ads: Add new constants:
19214 SO_RCVTIMEO/SO_SNDTIMEO
19218 Move all target-specific file inclusions and macro definitions to
19219 gsocket.h, in order to ensure that any C code in socket.c will see a
19220 set of constants that is consistent with the contents of g-soccon.ads.
19222 * gsocket.h: Code imported from gen-soccon.c:
19223 Move all target-specific file inclusions and macro definitions to
19224 gsocket.h, in order to ensure that any C code in socket.c will see a set
19225 of constants that is consistent with the contents of g-soccon.ads.
19226 This change also makes gen-soccon self-contained (removing dependencies
19227 upon GCC internal headers).
19229 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
19231 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
19233 * socket.c: Minor reformatting.
19235 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19236 Thomas Quinot <quinot@adacore.com>
19238 * fname-sf.adb, mlib-tgt.ads,
19239 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
19240 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
19241 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
19242 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
19243 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
19244 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
19245 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
19246 makegpr.adb: Remove redundant use_clauses.
19248 2005-09-01 Arnaud Charlet <charlet@adacore.com>
19250 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
19251 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
19252 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
19253 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
19254 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
19255 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
19256 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
19257 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
19258 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
19259 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
19260 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
19261 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
19262 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
19263 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
19264 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
19265 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
19266 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
19267 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
19268 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
19269 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
19270 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
19271 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
19272 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
19273 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
19274 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
19275 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
19276 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
19277 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
19278 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
19279 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
19280 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
19281 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
19282 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
19283 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
19284 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
19285 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
19286 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
19287 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
19288 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
19289 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
19290 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
19291 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
19292 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
19293 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
19294 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
19295 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
19296 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
19297 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
19298 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
19299 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
19300 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
19301 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
19302 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
19303 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
19304 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
19305 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
19306 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
19307 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
19308 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
19309 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
19310 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
19311 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
19312 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
19313 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
19314 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
19315 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
19316 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
19317 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
19318 and always use the no parameter form for consistency.
19320 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
19322 2005-09-01 Robert Dewar <dewar@adacore.com>
19324 * binde.adb: Minor reformatting
19325 (Find_Elab_Order): Output warning if -p used with static elab order
19327 2005-09-01 Robert Dewar <dewar@adacore.com>
19329 * checks.adb (Check_Needed): New procedure, deals with removing checks
19330 based on analysis of short-circuited forms. Also generates warnings for
19331 improper use of non-short-circuited forms.
19334 2005-09-01 Robert Dewar <dewar@adacore.com>
19336 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
19339 2005-09-01 Robert Dewar <dewar@adacore.com>
19341 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
19343 Implement new insertion char < (conditional warning)
19344 * errutil.adb, erroutc.adb: Implement new insertion char <
19345 (conditional warning).
19346 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
19347 (Error_Msg_Warn): New variable for < insertion char.
19348 * prj-nmsc.adb: Implement new errout insertion char < (conditional
19350 (Check_For_Source): Change value of Source_Id only after the current
19351 source has been dealt with.
19353 2005-09-01 Robert Dewar <dewar@adacore.com>
19354 Doug Rupp <rupp@adacore.com>
19356 * exp_attr.adb: Handle vax fpt for 'Valid attribute
19357 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
19358 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
19359 (Valid_D, Valid_F, Valid_G): New functions
19361 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19362 Hristian Kirtchev <kirtchev@adacore.com>
19363 Javier Miranda <miranda@adacore.com>
19365 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
19366 from object notation, the original node is unanalyzed and carries no
19367 semantic information, so that accessiblity checks must be performed on
19368 the type of the actual itself.
19369 (Expand_N_Subprogram_Declaration): Change last actual parameter for
19370 compatibility with Build_Protected_Sub_Specification.
19371 (Check_Overriding_Inherited_Interfaces): Add suport to handle
19372 overloaded primitives.
19373 (Register_Interface_DT_Entry): Use the new name of the formal
19374 the the calls to Expand_Interface_Thunk
19376 * exp_dbug.ads: Augment comments on encoding of protected types to
19377 include the generation of dispatching subprograms when the type
19378 implements at least one interface.
19380 * lib.ads: Extend information in Load_Stack to include whether a given
19381 load comes from a Limited_With_Clause.
19383 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
19384 whether a potential circularity is harmless, because it includes units
19385 loaded through a limited_with clause. Extends previous treatment which
19386 did not handle properly arbitrary combinations of limited and
19387 non-limited clauses.
19389 2005-09-01 Nicolas Setton <setton@adacore.com>
19391 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
19392 to be encoded as typ___XBLU_lowerbound__upperbound instead of
19393 typ___XB_lowerbound__upperbound.
19395 2005-09-01 Thomas Quinot <quinot@adacore.com>
19397 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
19398 dummy access formal for RACW/RAS TypeCode TSS.
19399 (Build_TypeCode_Call): Do not generate dummy null access actual for
19400 calls to the TypeCode TSS.
19402 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19404 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
19405 fully qualified name, to distinguish instances with the same local name.
19407 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
19410 2005-09-01 Robert Dewar <dewar@adacore.com>
19412 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
19415 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
19417 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
19418 (Free): New deallocation procedure for filter elements
19419 (Close): Deallocate any existing filter for the concerned connection
19421 2005-09-01 Laurent Pautet <pautet@adacore.com>
19423 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
19424 position set is provided, we compute one in order to reduce the maximum
19425 length of the keys. This computation first selects a character
19426 position between 1 and the minimum length of the keys in order to
19427 avoid reducing one of the keys to an empty string.
19428 (Initialize, Compute): When the ratio V to K is too low, the algorithm
19429 does not converge. The initialization procedure now comes with a
19430 maximum number of iterations such that when exceeded, an exception is
19431 raised in Compute. The user can initialize this ratio to another value
19433 Reformating and updated headers.
19435 2005-09-01 Javier Miranda <miranda@adacore.com>
19437 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
19438 that given an entity T creates and returns an Itype that duplicates the
19439 contents of T. The returned Itype has the null-exclusion
19440 attribute set to True, and its Etype attribute references T
19441 to keep the association between the two entities.
19442 Update copyright notice
19444 * sem_aggr.adb (Check_Can_Never_Be_Null,
19445 Aggregate_Constraint_Checks, Resolve_Aggregate,
19446 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
19448 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
19450 2005-09-01 Gary Dismukes <dismukes@adacore.com>
19451 Robert Dewar <dewar@adacore.com>
19452 Hristian Kirtchev <kirtchev@adacore.com>
19454 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
19457 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
19459 Call Set_Result_Definition instead of Set_Subtype_Mark.
19460 (P_Subprogram_Specification): Add parsing of anonymous access result
19461 plus null exclusions. Call Set_Result_Definition instead of
19464 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
19465 (P_Access_Type_Definition): Add parsing for an anonymous access result
19466 subtype, plus parsing for null exclusions. Call Set_Result_Definition
19467 instead of Set_Subtype_Mark.
19469 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
19470 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
19471 (Result_Definition): New function for N_Function_Specifications.
19472 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
19473 N_Function_Specification.
19474 (Set_Null_Exclusion_Present): Allow this flag for
19475 N_Function_Specification.
19476 (Set_Result_Definition): New procedure for N_Function_Specifications.
19477 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
19478 and N_Function_Specification.
19480 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
19481 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
19482 Add support for LIMITED NEW for Ada 2005 AI-419
19483 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
19484 syntax for anonymous access results.
19485 Replace Subtype_Mark field by Result_Definition in
19486 N_Function_Specification and N_Access_Definition specs.
19487 Add Null_Exclusion_Present to spec of N_Function_Specification.
19488 (Result_Definition): New function for N_Function_Specification and
19489 N_Access_Function_Definition.
19490 (Set_Result_Definition): New procedure for N_Function_Specification and
19491 N_Access_Function_Definition.
19493 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
19494 Result_Definition for cases of N_Access_Function_Definition and
19495 N_Function_Specification.
19496 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
19498 2005-09-01 Vincent Celier <celier@adacore.com>
19500 * lib-writ.adb: Update Copyright notice
19501 (Write_With_Lines): On platforms where file names are case-insensitive,
19502 record the file names in lower case.
19503 (Write_ALI): For D lines, on platforms where file names are
19504 case-insensitive, record the file names in lower case.
19506 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19507 Emmanuel Briot <briot@adacore.com>
19509 * lib-xref.adb (Output_Overridden_Op): Display information on
19510 overridden operation.
19512 * lib-xref.ads: Add documentation on overridden operations.
19514 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
19517 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
19518 overriding entity information.
19520 2005-09-01 Vincent Celier <celier@adacore.com>
19522 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
19523 including those that are inherited.
19525 2005-09-01 Robert Dewar <dewar@adacore.com>
19527 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
19529 * par-prag.adb: Implement new pragma Debug_Policy
19531 * sem_prag.adb Implement new pragma Debug_Policy
19532 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
19533 Component_Size attribute specification. Give warning for ignored pragma
19536 * snames.h, snames.ads, snames.adb: Introduce entries in
19537 Preset_Names for Name_Disp_Asynchronous_Select,
19538 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
19539 Name_Disp_Timed_Select.
19540 New pragma Debug_Policy
19542 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
19544 Switch -gnata also sets Debug_Pragmas_Enabled
19546 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
19547 handle an explicit -gnata when compiling predefined files.
19549 2005-09-01 Vincent Celier <celier@adacore.com>
19551 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
19552 directories of projects that have no Ada sources.
19554 2005-09-01 Robert Dewar <dewar@adacore.com>
19556 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
19557 (makes a difference for wide characters)
19559 * widechar.adb, widechar.ads:
19560 Add Wide_Char_Byte_Count feature to count chars vs bytes
19562 2005-09-01 Thomas Quinot <quinot@adacore.com>
19563 Ed Schonberg <schonberg@adacore.com>
19564 Robert Dewar <dewar@adacore.com>
19566 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
19567 'Address attribute reference with an overloaded prefix, use the
19568 location of the prefix (not the location of the attribute reference) as
19569 the error location.
19570 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
19571 a function renaming thereof, is a valid prefix for 'Size (where it is
19572 intepreted as a function call).
19573 (Statically_Denotes_Entity): New predicate to determine whether the
19574 prefix of an array attribute can be considered static.
19577 (Eval_Attr): Fix failure to evaluate Component_Size for
19578 unconstrained arrays (resulted in wrong value in packed case, since
19579 back end cannot handle this case)
19581 2005-09-01 Robert Dewar <dewar@adacore.com>
19583 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
19584 error msgs for most common cases.
19585 Use new errout insertion char < (conditional warning)
19587 2005-09-01 Javier Miranda <miranda@adacore.com>
19588 Ed Schonberg <schonberg@adacore.com>
19590 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
19591 become local to the whole package.
19592 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
19593 the package was already analyzed the new algorithm "replaces" the
19594 real entities by the shadow ones. This is required to ensure that
19595 the order of these entities in the homonym chains does not change;
19596 otherwise we can have undefined references at linking time because
19597 in case of conflicts the external name of the entities will have
19598 a suffix that depends on the order of the entities in the chain.
19599 (Remove_Limited_With_Clause): Complementary code that completes the
19600 new algorithm and replaces the shadow entities by the real ones.
19601 (Install_Limited_Withed_Unit): When unchaining entities before the
19602 installation of the shadow entities, only regular entities of the
19603 public part must be taken into account. This is required to
19604 keep this routine in synch with the work done by Remove_Limited_
19606 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
19607 even if unit is analyzed, because the analysis of the unit is
19608 idempotent in any case, and the limited view of the unit may have to
19609 be installed for proper visibility.
19610 (Expand_Limited_With_Clause): Even if the unit in the implicit
19611 with_clause has been analyzed already, a limited view of the package
19612 must be built for the current context, if it does not exist yet.
19614 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19615 Javier Miranda <miranda@adacore.com>
19616 Gary Dismukes <dismukes@adacore.com>
19618 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
19619 defining entity for the instance body, make a new defining identifier
19620 rather than copying the entity of the spec, to prevent accidental
19621 sharing of the entity list.
19622 (Check_Private_View): When exchanging views of private types, build the
19623 list of exchanged views as a stack, to ensure that on exit the exchanges
19624 are undone in the proper order.
19625 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
19626 Restore the compilation environment in case of instantiation_error.
19627 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
19628 for an anonymous access result.
19629 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
19630 (Formal_Entity): Handle properly the case of a formal package that
19631 denotes a generic package renaming.
19633 2005-09-01 Thomas Quinot <quinot@adacore.com>
19635 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
19636 clause if the array aggregate is surrounded by parentheses.
19638 2005-09-01 Cyrille Comar <comar@adacore.com>
19639 Gary Dismukes <dismukes@adacore.com>
19640 Ed Schonberg <schonberg@adacore.com>
19641 Javier Miranda <miranda@adacore.com>
19643 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
19645 to check if a type is Constrained in cases related to code generation
19646 (rather than semantic checking) since otherwise we do not generate
19647 similar code for mutable private types depending if their
19648 discriminants are visible or not.
19649 (Check_Abstract_Overriding): Do not complain about failure to override
19650 the primitive operations used in dispatching selects since they will
19651 always be overriden at the freeze point of the type.
19652 (Access_Definition): Separate out handling for resetting the scope
19653 of an anonymous access function result type. Retrieve the scope
19654 of the associated function rather than using Current_Scope, which
19655 does not have a consistent value (depends on whether we're in the
19656 middle of analyzing formal parameters). Add ??? comment about
19657 finding a cleaner way to handle the special cases of scope setting.
19658 (Process_Incomplete_Dependents): A protected operation is never a
19659 dispatching operation (only its wrapper may be).
19660 (Build_Derived_Record_Type): In case of tagged private types that
19661 implement interfaces add derivation of predefined primitive
19663 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
19664 by two parameters that are used in case of derivation from abstract
19665 interface types: No_Predefined_Prims is used to avoid the derivation
19666 of predefined primitives from the interface, and Predefined
19667 Prims_Only is used to complete the derivation predefined primitives
19668 in case of private tagged types implementing interfaces.
19669 Fix typo in comments
19670 (Find_Interface_In_Descendant): Protect the frontend against
19671 wrong code with large circularity chains.
19672 (Is_Private_Overriding): Add support for entities overriding interface
19673 subprograms. The test failed because Entities associated with overriden
19674 interface subprograms are always marked as hidden (and used to build
19675 the secondary dispatch table); in this case the overriden entity is
19676 available through the field abstract_interface_alias (cf. override_
19677 dispatching_operation)
19678 (Access_Definition): Set the scope of the type to Current_Scope for the
19679 case of a function with an anonymous access result type.
19680 (Access_Subprogram_Declaration): Handle creation of the type entity for
19681 an access-to-function type with an anonymous access result.
19682 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
19683 in handling for N_Access_Function_Definition.
19684 (Analyze_Subtype_Declaration): Modify the text of error message.
19685 (Derived_Type_Declaration): Modify the text of error message.
19686 (Process_Subtype): Modify the text of error message plus cleanup
19687 of one redundant error message.
19688 (Analyze_Component_Declaration): Code cleanup.
19689 (Analyze_Object_Declaration): Code cleanup.
19690 (Analyze_Subtype_Declaration): Propagate the null-exclusion
19691 attribute in case of access types. Code cleanup.
19692 (Array_Type_Declaration): Code cleanup.
19693 (Process_Discriminants): Create the new null-excluding itype
19694 if required. Code cleanup.
19695 (Process_Subtype): Create the new null-excluding itype if
19696 required. Code cleanup.
19697 (Build_Derived_Record_Type): Code cleanup to avoid calling
19698 twice the subprogram derive_subprograms in case of private
19699 types that implement interfaces. In this particular case the
19700 subprogram Complete_Subprograms_Derivation already does the
19701 job associated with the second call.
19703 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
19704 conversion to the full view when generating an operation for a
19705 discriminant whose type may currently be private.
19707 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19708 Javier Miranda <miranda@adacore.com>
19710 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
19711 V (Obj.F), the rewriting does not involve the indexed component, but
19712 only the selected component itself.
19713 Do not apply the transformation if the analyzed node is an actual of a
19714 call to another subprogram.
19715 (Complete_Object_Operation): Retain the entity of the
19716 dispatching operation in the selector of the rewritten node. The
19717 entity will be used in the expansion of dispatching selects.
19718 (Analyze_One_Call): Improve location of the error message associated
19720 (Analyze_Selected_Component): No need to resolve prefix when it is a
19721 function call, resolution is done when parent node is resolved, as
19723 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
19724 when attempting to resolve a call transformed from its object notation.
19725 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
19726 of the argument list for each interpretation of the operation.
19727 (Try_Object_Operation): The designated type of an access parameter may
19728 be an incomplete type obtained through a limited_with clause, in which
19729 case the primitive operations of the type are retrieved from its full
19731 (Analyze_Call): If this is an indirect call, and the return type of the
19732 access_to_subprogram is incomplete, use its full view if available.
19734 2005-09-01 Javier Miranda <miranda@adacore.com>
19735 Gary Dismukes <dismukes@adacore.com>
19737 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
19738 access types the null-exclusion and access-to-constant attributes must
19740 (Analyze_Return_Statement): When the result type is an anonymous access
19741 type, apply a conversion of the return expression to the access type
19742 to ensure that appropriate accessibility checks are performed.
19743 (Analyze_Return_Type): For the case of an anonymous access result type,
19744 generate the Itype and set Is_Local_Anonymous_Access on the type.
19745 Add ??? placeholder for check to disallow returning a limited object
19746 in Ada 2005 unless it's an aggregate or a result of a function call.
19747 Change calls from Subtype_Mark to Result_Definition.
19748 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
19749 Result_Definition in call to Make_Function_Specification.
19750 (Build_Body_To_Inline): Change Set_Subtype_Mark to
19751 Set_Result_Definition.
19752 (Make_Inequality_Operator): Change formal Subtype_Mark to
19753 Result_Definition in call to Make_Function_Specification.
19754 (Process_Formals): Create the new null-excluding itype if required.
19755 (New_Overloaded_Entity): For an entity overriding an interface primitive
19756 check if the entity also covers other abstract subprograms in the same
19757 scope. This is required to handle the general case, that is, overriding
19758 other interface primitives and overriding abstract subprograms inherited
19759 from some abstract ancestor type.
19760 (New_Overloaded_Entity): For an overriding entity that comes from
19761 source, note the operation that it overrides.
19762 (Check_Conformance, Type_Conformant): Addition of one new formal
19763 to skip controlling formals in the analysis. This is used to
19764 handle overloading of abstract interfaces.
19765 (Base_Types_Match): Add missing case for types imported from
19766 limited-with clauses
19767 (New_Overloaded_Entity): Add barrier to protect the use of
19768 the "alias" attribute.
19770 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19772 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
19773 verify that the procedure and the entry are mode conformant.
19774 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
19775 as a different operator, which is often a cut-and-paste error.
19777 2005-09-01 Javier Miranda <miranda@adacore.com>
19778 Ed Schonberg <schonberg@adacore.com>
19780 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
19781 used in controlling parameters exclude null because it is necessary to
19782 read the tag to dispatch, and null has no tag.
19783 (Override_Dispatching_Operation): If the previous operation is inherited
19784 from an interface, it becomes hidden and does not participate in later
19787 2005-09-01 Javier Miranda <miranda@adacore.com>
19788 Ed Schonberg <schonberg@adacore.com>
19789 Gary Dismukes <dismukes@adacore.com>
19791 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
19792 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
19793 the expander will generate the corresponding run-time check to evaluate
19795 (Resolve_Call): Check for legal type of procedure name or prefix that
19796 appears as a trigger in a triggering alternative.
19797 (Valid_Conversion): If expression is ambiguous and the context involves
19798 an extension of System, remove System.Address interpretations.
19799 (Resolve_Qualified_Expression): Reject the case of a specific-type
19800 qualification applied to a class-wide argument. Enhance comment
19801 to explain checking of Original_Node.
19802 (Resolve_Type_Conversion): The location of the error message was not
19803 general enough to handle the general case and hence it has been removed.
19804 In addition, this patch improves the text of the message.
19805 (Resolve_Type_Conversion): Add missing support for access to interface
19807 (Resolve_Type_Conversion): If the target is a class-wide interface type,
19808 do not expand if the expression is the actual in a call, because proper
19809 expansion will take place when the call itself is expanded.
19810 (Resolve_Allocator): If the context is an unchecked conversion, the
19811 allocator inherits its storage pool, if any, from the target type of
19814 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19815 Javier Miranda <miranda@adacore.com>
19817 * sem_type.adb (Add_One_Interp): If a candidate operation is an
19818 inherited interface operation that has an implementation, use the
19819 implementation to avoid spurious ambiguities.
19820 (Interface_Present_In_Ancestor): In case of concurrent types we can't
19821 use the Corresponding_Record_Typ attribute to look for the interface
19822 because it is set by the expander (and hence it is not always
19823 available). For this reason we traverse the list of interfaces
19824 (available in the parent of the concurrent type).
19825 (Interface_Present_In_Ancestor): Handle entities from the limited view
19827 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19829 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
19830 from the list of required components.
19831 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
19832 primitive procedure of a limited interface with a controlling first
19834 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
19836 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
19837 capture if it is generated in the second operand of a short-circuit
19839 Do not capture values for variables with address clauses.
19840 (Is_Object_Reference): Treat a function call as an object reference only
19841 if its type is not Standard_Void_Type.
19843 2005-09-01 Ed Schonberg <schonberg@adacore.com>
19845 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
19846 to a variable that is statically known to be constant.
19848 2005-09-01 Geert Bosch <bosch@adacore.com>
19849 Robert Dewar <dewar@adacore.com>
19851 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
19852 (VAXGF_Safe_First): Idem.
19854 2005-09-01 Robert Dewar <dewar@adacore.com>
19855 Arnaud Charlet <charlet@adacore.com>
19857 * g-dirope.ads: Minor reformatting
19858 Document that bounds of result of Base_Name match the input index
19860 Add documentation on environment variable syntax for Expand_Path
19862 * gnat_ugn.texi: Update documentation to include mention of -m switches
19863 Document new treatment of wide characters in max line length
19865 Remove -gnatL/-gnatZ switches, no longer used.
19866 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
19869 * gnat_rm.texi: Add doc for two argument form of pragma
19870 Float_Representation.
19871 Add documentation for pragma No_Strict_Aliasing
19872 Add note that explicit component clause overrides pragma Pack.
19873 Add documentation of pragma Debug_Policy
19875 2005-09-01 Matthew Heaney <heaney@adacore.com>
19877 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
19878 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
19879 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
19880 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
19881 draft (Draft 13, August 2005) of Ada Amendment 1.
19883 2005-09-01 Arnaud Charlet <charlet@adacore.com>
19885 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
19886 Note that the platform-specific version of g-soccon.ads for VMS is now
19887 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
19888 really is a package spec).
19889 Replace s-taspri-linux.ads by s-taspri-posix.ads
19890 Remove references to s-mastop-x86.adb
19892 * system-vxworks-xscale.ads: Removed, no longer used.
19893 * s-vxwork-xscale.ads: Removed, no longer used.
19895 2005-09-01 Robert Dewar <dewar@adacore.com>
19897 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
19898 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
19899 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
19900 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
19901 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
19902 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
19903 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
19904 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
19905 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
19906 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
19907 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
19908 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
19909 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
19910 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
19911 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
19912 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
19913 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
19914 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
19915 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
19916 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
19917 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
19919 2005-08-29 Arnaud Charlet <charlet@adacore.com>
19923 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
19925 2005-08-29 Arnaud Charlet <charlet@adacore.com>
19926 Doug Rupp <rupp@adacore.com>
19928 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
19930 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
19931 this code in the GNAT run-time.
19933 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
19936 * init.c (__gnat_error_handler [many]): Mark "msg" as const
19937 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
19939 (__gnat_inside_elab_final_code): Moved here from
19940 Standard_Library and only defined for the compiler.
19941 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
19942 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
19943 using RTPs because directly vectored Interrupt routines are not
19944 supported on this configuration.
19945 (getpid): Do not redefine this function on VxWorks when using RTPs
19946 because this primitive is well supported by the RTP libraries.
19947 (copy_msg): Correct the code that checks for buffer overflow.
19948 Discovered during code reading.
19950 2005-08-29 Olivier Hainque <hainque@adacore.com>
19952 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
19953 a library level mutable variable with an initializer, tell
19954 build_allocator to ignore the initializer's size. It may not be large
19955 enough for all the values that might be assigned to the variable later
19958 2005-08-29 Arnaud Charlet <charlet@adacore.com>
19959 Eric Botcazou <ebotcazou@adacore.com>
19961 * trans.c: Protect < in error msg with quote
19962 Replace GCC_ZCX by Back_End_Exceptions.
19963 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
19964 has been sufficiently aligned in the record.
19966 2005-08-15 James E. Wilson <wilson@specifix.com>
19968 * system-linux-alpha.ads: Change ia64 to alpha.
19970 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
19972 * decl.c, utils.c: Fix comment typos.
19974 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
19976 * decl.c, init.c, initialize.c: Fix comment typos.
19978 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
19980 Make CONSTRUCTOR use VEC to store initializers.
19981 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
19983 * trans.c (extract_values): Likewise.
19984 * utils.c (convert, remove_conversions): Likewise.
19985 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
19986 gnat_build_constructor): Likewise.
19988 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
19990 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
19992 (compare_field_bitpos): Likewise.
19994 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
19996 * utils.c (create_var_decl): Only set DECL_COMMON on
19997 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
19998 VAR_OR_FUNCTION_DECL_P.
20000 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
20002 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
20005 2005-07-07 Pascal Obry <obry@adacore.com>
20007 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
20008 returned type on Windows.
20010 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
20013 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
20014 exception in this case.
20015 Simplify the code as "Image (Image'Range)" = "Image".
20017 2005-07-07 Vincent Celier <celier@adacore.com>
20019 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
20020 the destructor/constructor attributes for <lib>final/<lib>init.
20022 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
20024 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
20026 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
20027 type if the parameter is not passed by copy but reference by default.
20029 2005-07-07 Javier Miranda <miranda@adacore.com>
20031 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
20032 Reimplementation of the support for abstract interface types in order
20033 to leave the code more clear and easy to maintain.
20035 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
20036 abstract interface types in order to leave the code clearer and easier
20039 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
20040 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
20041 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
20042 appropriate entry of the secondary dispatch table.
20043 (Make_DT): Add code to inherit the secondary dispatch tables of
20046 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
20047 implementing both functionalities by means of a common routine, each
20048 routine has its own code.
20050 2005-07-07 Javier Miranda <miranda@adacore.com>
20052 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
20054 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
20057 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
20060 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
20061 use of tag incomplete types.
20063 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
20064 give support to tagged incomplete types.
20066 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
20067 expression is a discriminant reference and its type is private, as can
20068 happen within a stream operation for a mutable record, use the full
20069 view of the type to resolve the case alternatives.
20070 (Analyze_Assignment): Check wrong dereference of incomplete types.
20072 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
20075 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
20078 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
20079 N_Incomplete_Type_Declaration nodes.
20081 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
20082 Tag_Present to give support to tagged incomplete types:
20084 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
20087 2005-07-07 Olivier Hainque <hainque@adacore.com>
20090 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
20091 definitions for the Unwind wrappers in the compiler case.
20093 2005-07-07 Ed Schonberg <schonberg@adacore.com>
20094 Javier Miranda <miranda@adacore.com>
20096 * par-load.adb (Load): If a child unit is loaded through a limited_with
20097 clause, each parent must be loaded as a limited unit as well.
20099 * sem_ch10.adb (Previous_Withed_Unit): Better name for
20100 Check_Withed_Unit. Return true if there is a previous with_clause for
20101 this unit, whether limited or not.
20102 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
20104 (Is_Visible_Through_Renamings): New local subprogram of install_limited
20105 _withed_unit that checks if some package installed through normal with
20106 clauses has a renaming declaration of package whose limited-view is
20107 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
20108 of the current Draft document for Ada 2005.
20109 (Analyze_Context): Complete the list of compilation units that
20110 are allowed to contain limited-with clauses. It also contains
20111 checks that were previously done by Install_Limited_Context_Clauses.
20112 This makes the code more clear and easy to maintain.
20113 (Expand_Limited_With_Clause) It is now a local subprogram of
20114 Install_Limited_Context_Clauses, and contains the code that adds
20115 the implicit limited-with clauses for parents of child units.
20116 This functionality was prevously done by Analyze_Context.
20118 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
20121 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
20122 been erroneously named in a limited-with clause of its own context.
20123 In this case the error has been previously notified by Analyze_Context.
20125 2005-07-07 Ed Schonberg <schonberg@adacore.com>
20127 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
20128 generic package that contains local declarations with the same name.
20129 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
20131 2005-07-07 Bernard Banner <banner@adacore.com>
20133 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
20134 ia64 platform only on platforms that you the GCC unwind library
20135 rather than the system unwind library.
20137 2005-07-07 Thomas Quinot <quinot@adacore.com>
20139 * expect.c: Minor reformatting
20141 2005-07-07 Sergey Rybin <rybin@adacore.com>
20143 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
20146 * gnat_ugn.texi: Add description for new gnatpp option
20149 2005-07-04 Thomas Quinot <quinot@adacore.com>
20151 * g-expect-vms.adb, g-expect.ads, g-expect.adb
20152 (Get_Command_Output): New subprogram to launch a process and get its
20153 standard output as a string.
20155 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
20156 Olivier Hainque <hainque@adacore.com>
20158 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
20159 fetch a code-range descriptor associated with the machine state. On
20160 failure set the machine state's PC to 0; on success, pass the
20161 descriptor to exc_virtual_unwind.
20163 * init.c (Tru64 section): New function __gnat_set_code_loc.
20165 2005-07-04 Vincent Celier <celier@adacore.com>
20167 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20168 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
20169 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
20170 Remove all auto-initialization code, as this is now done through the
20171 constructor mechanism.
20173 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
20174 __gnat_sals_init_using_constructors): New functions.
20176 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
20177 Linker_Constructor and Linker_Destructor when switch -a is used.
20179 * bindusg.adb: Add line for new switch -a
20181 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
20182 (Gnatbind): When switch -a is used, check if it is allowed
20184 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
20186 2005-07-04 Joel Brobecker <brobecker@adacore.com>
20188 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
20189 This prevents us from hitting a limitation during the debug info
20190 generation when using stabs.
20191 (Prims_Ptr): Likewise.
20193 2005-07-04 Gary Dismukes <dismukes@adacore.com>
20194 Ed Schonberg <schonberg@adacore.com>
20195 Javier Miranda <miranda@adacore.com>
20197 * checks.adb (Null_Exclusion_Static_Checks): In the case of
20198 N_Object_Declaration, only perform the checks if the Object_Definition
20199 is not an Access_Definition.
20201 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
20202 where the parent of an the access definition is an N_Object_Declaration
20203 when determining the Associated_Node_For_Itype and scope of an
20204 anonymous access-to-subprogram type.
20206 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
20207 Corresponding_Spec on the body created for a null procedure. Add ???
20208 comment. Remove New_Copy_Tree call on body argument to
20209 Set_Body_To_Inline.
20211 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
20212 discriminants, use the type of the actual as well, because the
20213 discriminants may be read by the called subprogram.
20215 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
20216 access type we do not need to handle non-limited views.
20217 (Build_Derived_Record_Type): Additional check to check that in case of
20218 private types, interfaces are only allowed in private extensions.
20220 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
20222 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
20223 <Pragma_Linker_Destructor>: Likewise.
20225 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
20226 Pragma_Linker_Destructor.
20228 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
20229 ATTR_LINK_DESTRUCTOR.
20230 (static_ctors, static_dtors): New variables.
20232 * misc.c (gnat_expand_body): Output current function as constructor
20233 and destructor if requested.
20235 * par-prag.adb: Add processing for pragma Linker_Constructor and
20238 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
20239 extracted from Check_Interrupt_Or_Attach_Handler.
20240 (Check_Interrupt_Or_Attach_Handler): Invoke it.
20241 Implement pragma Linker_Constructor and Linker_Destructor with the
20242 help of Find_Unique_Parameterless_Procedure.
20243 Replace Name_Alias with Name_Target for pragma Linker_Alias.
20245 * snames.h, snames.ads, snames.adb:
20246 Add Name_Linker_Constructor and Name_Linker_Destructor.
20247 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
20248 * snames.adb: Remove Name_Alias.
20250 * trans.c: Include cgraph.h.
20251 (build_global_cdtor): New function.
20252 (Compilation_Unit_to_gnu): Build global constructor and destructor if
20254 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
20256 (addressable_p) <COMPONENT_REF>: Unconditionally test
20257 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
20259 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
20260 variable if it is external.
20262 (static_ctors, static_dtors): New global variables.
20263 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
20264 <ATTR_LINK_DESTRUCTOR>: Likewise.
20265 (end_subprog_body): Chain function as constructor and destructor
20268 * exp_util.adb (Force_Evaluation): Unconditionally invoke
20269 Remove_Side_Effects with Variable_Ref set to true.
20270 (Remove_Side_Effects): Handle scalar types first. Use a renaming
20271 for non-scalar types even if Variable_Ref is true and for class-wide
20274 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20276 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
20277 to prevent spurious warnings.
20279 2005-07-04 Thomas Quinot <quinot@adacore.com>
20281 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
20282 Itypes. Itypes are really unexpected there.
20283 (Build_TypeCode_Function): Generalise special processing for Itypes to
20284 handle the case of numeric implicit base types as well as enumerated
20287 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20289 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
20290 controlled, indicate the expected type of the dereference that is
20291 created for the call to Deep_Finalize, to prevent spurious errors when
20292 the designated type is private and completed with a derivation from
20293 another private type.
20295 2005-07-04 Vincent Celier <celier@adacore.com>
20297 * make.adb (Change_To_Object_Directory): When unable to change the
20298 current dir to the object directory, output the full path of the
20301 2005-07-04 Matthew Gingell <gingell@adacore.com>
20303 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
20305 * indepsw-linux.adb: Replace by...
20307 * indepsw-gnu.adb: ...this new file
20309 2005-07-04 Vincent Celier <celier@adacore.com>
20311 * mlib-prj.adb (Auto_Initialize): New constant String
20312 (SALs_Use_Constructors): New Boolean function
20313 (Build_Library): Call gnatbind with Auto_Initialize switch when
20314 SALs_Use_Constructors returns True.
20316 * mlib-tgt.ads: Minor reformatting
20318 * mlib-utl.ads: Minor reformatting
20320 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
20322 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20324 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
20325 single protected declarations can have an interface list.
20326 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
20327 with seriously malformed entry declarations, and lead to compilation
20328 abandoned messages.
20330 2005-07-04 Javier Miranda <miranda@adacore.com>
20332 * par-load.adb: Load the context items in two rounds.
20334 2005-07-04 Robert Dewar <dewar@adacore.com>
20336 * scng.adb: Do not consider Mod used as an attribute to be a keyword
20338 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20339 Javier Miranda <miranda@adacore.com>
20341 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
20342 type extension needs a limited view.
20343 Remove previous restriction on private types available through the
20344 limited-view (only tagged private types were previously allowed).
20345 (Install_Withed_Unit): In the code that implements the
20346 legality rule given in AI-377, exclude a child unit with the name
20347 Standard, because it is a homonym of the Standard environment package.
20349 2005-07-04 Thomas Quinot <quinot@adacore.com>
20351 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
20352 overloaded function call, carry interpretations from the original tree
20355 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20357 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
20358 types check whether some designated type is a limited view, and use
20359 the non-limited view if available.
20361 2005-07-04 Gary Dismukes <dismukes@adacore.com>
20363 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
20364 constraint of full view of a private view T1 if present, when T2 is a
20365 discriminated full view.
20367 2005-07-04 Thomas Quinot <quinot@adacore.com>
20369 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
20370 actual that is a view conversion of a bit packed array reference.
20372 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20374 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
20375 present before checking whether an interface type covers a synchronized
20378 2005-07-04 Ed Schonberg <schonberg@adacore.com>
20380 * sem_util.adb (Is_Object_Reference): An indexed or selected component
20381 whose prefix is an implicit dereference is an object reference. Removes
20382 spurious errors when compiling with -gnatc.
20384 2005-07-04 Robert Dewar <dewar@adacore.com>
20387 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
20389 2005-07-04 Matthew Gingell <gingell@adacore.com>
20391 * tracebak.c: Enable tracebacks on ia64 platforms
20393 2005-07-04 Vincent Celier <celier@adacore.com>
20395 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
20396 the GNAT BIND command, as gnatbind accepts multiples ALI files with
20397 the -L or -n switches.
20399 2005-07-04 Vincent Celier <celier@adacore.com>
20401 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
20402 correctly computed and the main project data is not modified while
20404 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
20405 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
20406 c++linker as this does not work on some platforms.
20408 2005-07-04 Matthew Heaney <heaney@adacore.com>
20410 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
20412 * a-coinve.adb: Perform constraint checks explicitly.
20414 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20415 Thomas Quinot <quinot@adacore.com>
20417 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
20418 new target gen-soccon.
20420 2005-07-04 Robert Dewar <dewar@adacore.com>
20422 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
20424 2005-07-04 Thomas Quinot <quinot@adacore.com>
20426 * g-socket.ads (Check_Selector): Minor rewording of comment.
20428 2005-07-04 Vincent Celier <celier@adacore.com>
20430 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
20432 2005-07-04 Thomas Quinot <quinot@adacore.com>
20434 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
20436 2005-07-04 Sergey Rybin <rybin@adacore.com>
20438 * gnat_ugn.texi: Add description of --eol gnatpp option
20440 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
20441 Thomas Quinot <quinot@adacore.com>
20443 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
20444 if the user wants all calls of a subprogram to be flagged,
20445 independently of whether they are made from within the same unit or
20447 Mention restriction for pragma Linker_Alias on some platforms.
20448 Document pragma Linker_Constructor and Linker_Destructor.
20449 Rewrite documentation of Weak_External, Linker_Section and
20450 Linker_Alias pragmas.
20452 2005-07-04 Arnaud Charlet <charlet@adacore.com>
20454 * s-stausa.ads, s-stausa.adb: New files.
20456 2005-06-30 Kelley Cook
20458 * all files: Update FSF address in copyright headers.
20459 * gen-soccon.co (main): Output new FSF address in generated files.
20461 2005-06-28 Paul Brook <paul@codesourcery.com>
20463 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
20465 2005-06-14 Olivier Hainque <hainque@adacore.com>
20466 Eric Botcazou <ebotcazou@adacore.com>
20468 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
20469 exc_unwind, now that we are generating proper .debug_frame output for
20472 * tracebak.c: Remove the mips-irix section, as we are now using the
20473 s-mastop based unwinder again.
20474 Under SPARC/Solaris, take into account the stack bias to compute the
20475 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
20478 2005-06-14 Doug Rupp <rupp@adacore.com>
20480 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
20482 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
20484 2005-06-14 Pascal Obry <obry@adacore.com>
20486 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
20487 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
20488 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
20491 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
20492 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
20493 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
20494 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
20495 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
20496 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
20497 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
20498 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
20499 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
20500 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
20501 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
20502 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
20503 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
20504 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
20505 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
20506 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
20507 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
20508 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
20509 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
20510 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
20511 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
20512 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
20513 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
20514 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
20515 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
20516 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
20517 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
20518 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
20519 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
20520 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
20521 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
20522 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
20523 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
20524 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
20525 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
20526 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
20527 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
20528 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
20529 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
20530 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
20531 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
20532 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
20533 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
20534 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
20535 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
20536 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
20537 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
20538 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
20539 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
20540 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
20541 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
20542 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
20543 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
20544 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
20545 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
20546 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
20547 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
20548 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
20549 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
20550 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
20551 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
20552 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
20553 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
20554 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
20555 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
20556 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
20557 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
20558 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
20559 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
20560 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
20561 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
20562 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
20563 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
20564 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
20565 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
20566 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
20567 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
20568 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
20569 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
20570 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
20571 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
20572 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
20573 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
20574 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
20575 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
20576 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
20577 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
20578 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
20579 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
20580 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
20581 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
20582 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
20583 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
20584 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
20585 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
20586 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
20587 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
20588 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
20589 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
20590 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
20591 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
20592 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
20593 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
20594 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
20595 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
20596 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
20597 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
20598 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
20599 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
20600 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
20601 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
20602 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
20603 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
20604 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
20605 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
20606 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
20607 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
20608 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
20609 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
20610 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
20611 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
20612 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
20613 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
20614 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
20615 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
20616 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
20617 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
20618 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
20619 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
20620 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
20621 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
20622 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
20623 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
20625 2005-06-14 Jose Ruiz <ruiz@adacore.com>
20626 Arnaud Charlet <charlet@adacore.com>
20628 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
20629 longer protected objects. They have been replaced by lower-level
20630 suspension objects made up by a mutex and a condition variable (or
20631 their equivalent given a particular OS) plus some internal data to
20632 reflect the state of the suspension object.
20633 (Initialize, Finalize): Add this initialization procedure for
20634 Suspension_Object, which is a controlled type.
20635 (Finalize): Add the finalization procedure for Suspension_Object,
20636 which is a controlled type.
20638 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
20639 Ada.Synchronous_Task_Control because there is no longer a need for a
20640 VxWorks specific version of this package. Target dependencies
20641 has been moved to System.Task_Primitives.Operations.
20643 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
20645 (InitializeCriticalSection, EnterCriticalSection,
20646 LeaveCriticalSection, DeleteCriticalSection): Replace the type
20647 pCriticalSection by an anonymous access type so that we avoid problems
20648 of accessibility to local objects.
20650 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
20651 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
20652 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
20653 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
20654 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
20655 set the environment task mask here.
20656 (Current_State): Add this function that returns the state of the
20658 (Set_False): Add this procedure that sets the state of the suspension
20660 (Set_True): Add this procedure that sets the state of the suspension
20661 object to True, releasing the task that was suspended, if any.
20662 (Suspend_Until_True): Add this procedure that blocks the calling task
20663 until the state of the object is True. Program_Error is raised if
20664 another task is already waiting on that suspension object.
20665 (Initialize): Add this procedure for initializing the suspension
20666 object. It initializes the mutex and the condition variable which are
20667 used for synchronization and queuing, and it sets the internal state
20669 (Finalize): Add this procedure for finalizing the suspension object,
20670 destroying the mutex and the condition variable.
20672 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
20673 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
20674 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
20675 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
20676 which provides a low-level abstraction (using operating system
20677 primitives) for Ada.Synchronous_Task_Control.
20678 This object is made up by a mutex (for ensuring mutual exclusion), a
20679 condition variable (for queuing threads until the condition is
20680 signaled), a Boolean (State) indicating whether the object is open,
20681 and a Boolean (Waiting) reflecting whether there is a task already
20682 suspended on this object.
20684 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
20685 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
20686 s-intman-vms.ads, s-intman-mingw.adb,
20687 (Initialize_Interrupts): Removed, no longer used.
20689 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
20690 (Setup_Interrupt_Mask): New procedure.
20692 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
20694 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
20696 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
20697 this is no longer done in the body of s-taprop
20698 (Server_Task): Explicitely test for Pending_Action in case
20699 System.Parameters.No_Abort is True.
20701 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
20702 is no longer done in the body of s-taprop
20704 2005-06-14 Robert Dewar <dewar@adacore.com>
20706 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
20707 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
20708 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
20709 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
20710 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
20711 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
20712 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
20713 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
20714 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
20715 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
20716 system-linux-hppa.ads, system-vms_64.ads,
20717 system-vxworks-alpha.ads: Minor comment update for
20718 AI-362 (unit is Pure).
20720 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
20721 Add pragma Pure_05 for AI-362
20722 Make remaining conversion functions obsolescent in Ada 95
20724 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
20725 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
20726 Add entries for a-wichun and a-zchuni
20727 Add a-widcha a-zchara for AI-395
20728 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
20730 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
20731 Add entries for a-wichun.o and a-zchuni.o
20732 Entries for a-widcha.o and a-zchara.o
20733 Add entry for a-chacon.o
20735 * a-ztenau.adb: Add with of Ada.Characters.Conversions
20737 * a-chacon.ads, a-chacon.adb: New files.
20739 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
20740 categorization violations.
20742 * a-strmap.ads: Add pragma Pure_05 for AI-362
20743 * a-strmap.ads: Add note on implicit categorization for AI-362
20745 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
20747 * par-prag.adb: Dummy entry for pragma Persistent_BSS
20748 Set Ada_Version_Explicit, for implementation of AI-362
20749 Add processing for pragma Pure_05 and Preelaborate_05
20750 Add entry for Assertion_Policy pragma
20752 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
20753 when needed for proper processing of categorization stuff
20756 For several cases, make errors in preealborate units warnings,
20757 instead of errors, if GNAT_Mode is set. For AI-362.
20759 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
20760 preelaborate unit is now warning if in GNAT mode
20762 * s-stoele.ads: Document AI-362 for pragma preelaborate
20764 2005-06-14 Doug Rupp <rupp@adacore.com>
20766 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
20767 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
20768 Default_Exception_Msg_Max_Length: new parameter.
20770 * a-except.ads: (Exception_Msg_Max_Length): Set to
20771 System.Parameters.Default_Exception_Msg_Max_Length
20772 Add pragma Preelaborate_05 for AI-362
20773 Add warnings off to allow categorization violations for AI-362
20775 2005-06-14 Vincent Celier <celier@adacore.com>
20777 * gnatsym.adb: Adapt to modification of package Symbols: procedure
20778 Process is now in package Processing.
20780 * symbols.ads, symbols.adb:
20781 (Processing): New package, containing procedure Process
20783 * symbols-vms-alpha.adb:
20784 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
20786 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
20787 symbols-processing-vms-ia64.adb: New files.
20789 2005-06-14 Pascal Obry <obry@adacore.com>
20791 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
20792 implementation. This new version generates the proper DllMain routine
20793 to initialize the SAL. The DllMain is generated in Ada and compiled
20794 before being added as option to the library build command.
20796 2005-06-14 Doug Rupp <rupp@adacore.com>
20797 Pascal Obry <obry@adacore.com>
20799 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
20800 call to decc$translate_vms.
20801 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
20802 need to remove those quotes before catenating the filename.
20803 (__gnat_locate_exec_on_path): improvements to the Win32 section:
20804 * avoid allocating the memory twice for better efficiency;
20805 * allocate 32K buffer for environment expansion as suggested by MSDN;
20806 * prepend ".;" to the path so that current directory is searched too.
20808 2005-06-14 Robert Dewar <dewar@adacore.com>
20810 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
20811 instead of raising CE (AI-241)
20812 Add warnings off to allow categorization violations for AI-362
20814 2005-06-14 Robert Dewar <dewar@adacore.com>
20816 * ali-util.adb, gnatbind.adb: Remove references to
20817 Force_RM_Elaboration_Order.
20819 * switch-b.adb: Remove recognition of -f switch
20821 2005-06-14 Pascal Obry <obry@adacore.com>
20823 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
20824 implementation which is slightly more efficient.
20826 2005-06-14 Gary Dismukes <dismukes@adacore.com>
20827 Javier Miranda <miranda@adacore.com>
20828 Ed Schonberg <schonberg@adacore.com>
20829 Hristian Kirtchev <kirtchev@adacore.com>
20831 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
20832 allocator's designated type is a class-wide type, and compiling for
20833 Ada 2005, emit a run-time check that the accessibility level of the
20834 type given in the allocator's expression is not deeper than the level
20835 of the allocator's access type.
20837 (Tagged_Membership): Modified to gives support to abstract interface
20840 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
20842 (Descendant_Tag): New predefined function
20843 (Is_Descendant_At_Same_Level): New predefined function
20844 (Get_Access_Level): New private function
20845 (Set_Access_Level): New private procedure
20846 (IW_Membership): New function. Given the tag of an object and the tag
20847 associated with an interface, evaluate if the object implements the
20849 (Register_Interface_Tag): New procedure used to initialize the table of
20850 interfaces used by the IW_Membership function.
20851 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
20852 of the dispatch table.
20853 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
20854 table of interfaces of the parent.
20855 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
20856 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
20857 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
20858 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
20859 Ada 2005 semantics for the new predefined function.
20861 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
20862 call to Descendant_Tag rather than Internal_Tag.
20863 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
20864 the accessibility level of the attribute's Item parameter is not deeper
20865 than the level of the attribute's prefix type. Tag_Error is raised if
20866 the check fails. The check is only emitted for Ada_05.
20867 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
20868 requested stream attribute, use it.
20869 (Expand_N_Attribute_Reference): If the designated type is an interface
20870 then rewrite the referenced object as a conversion to force the
20871 displacement of the pointer to the secondary dispatch table.
20872 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
20873 is a dereference of an object with a constrained partial view.
20875 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
20876 type is a class-wide type, emit a run-time check that the accessibility
20877 level of the returned object is not deeper than the level of the
20878 function's master (only when compiling for Ada 2005).
20880 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
20881 Action_Nb_Arg): Add entries for new Get_Access_Level and
20882 Set_Access_Level routines in these tables.
20883 (Make_DT): Generate a call to set the accessibility level of the
20884 tagged type in its TSD.
20885 (Make_DT): Code cleanup. The functionality of generating all the
20886 secondary dispatch tables has been moved to freeze_record_type.
20887 (Make_Abstract_Interface_DT): Minor code cleanup.
20888 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
20889 this subprogram implements a new algorithm that provides the
20890 same functionality and it is more clear in case of primitives
20891 associated with abstract interfaces.
20892 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
20893 clean up, the functionality of this subprogram is now provided
20894 by Set_All_DT_Position.
20895 (Write_DT): New subprogram: a debugging procedure designed to be called
20896 within gdb to display the dispatch tables associated with a tagged
20898 (Collect_All_Interfaces): New subprogram that collects the whole list
20899 of interfaces that are directly or indirectly implemented by a tagged
20901 (Default_Prim_Op_Position): New subprogram that returns the fixed
20902 position in the dispatch table of the default primitive operations.
20903 (Expand_Interface_Actuals): New subprogram to generate code that
20904 displaces all the actuals corresponding to class-wide interfaces to
20905 reference the interface tag of the actual object.
20906 (Expand_Interface_Conversion): New subprogram. Reference the base of
20907 the object to give access to the interface tag associated with the
20908 secondary dispatch table.
20909 (Expand_Interface_Thunk): New subprogram that generates the code of the
20910 thunk. This is required for compatibility with the C+ ABI.
20911 (Make_Abstract_Interface_DT): New subprogram that generate the
20912 declarations for the secondary dispatch tables associated with an
20913 abstract interface.
20914 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
20915 attribute for each primitive operation covering interface subprograms
20916 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
20917 These subprograms were upgraded to give support to abstract interfaces
20919 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
20920 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
20921 RE_Set_Access_Level.
20922 (RE_Unit_Table): Add entries for new Ada.Tags operations.
20923 Add support to call the followig new run-time subprograms:
20924 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
20926 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
20927 match its full declaration when both have an access definition with
20928 statically matching designated subtypes.
20929 (Analyze_Component_Declaration): Delete commented out code that was
20930 incorrectly setting the scope of an anonymous access component's type.
20931 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
20932 an access discriminant when the containing type is nonlimited.
20933 (Make_Incomplete_Type_Declaration): Create an incomplete type
20934 declaration for a record type that includes self-referential access
20936 (Check_Anonymous_Access_Types): Before full analysis of a record type
20937 declaration, create anonymous access types for each self-referential
20939 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
20940 an access component in this context is a Local_Anonymous_Access, for
20941 proper accessibility checks.
20942 (Access_Definition): Set properly the scope of the anonymous access type
20943 created for a stand-alone access object.
20944 (Find_Type_Of_Object): An object declaration may be given with an access
20946 (Complete_Subprograms_Derivation): New subprogram used to complete
20947 type derivation of private tagged types implementing interfaces.
20948 In this case some interface primitives may have been overriden
20949 with the partial-view and, instead of re-calculating them, they
20950 are included in the list of primitive operations of the full-view.
20951 (Build_Derived_Record_Type): Modified to give support to private
20952 types implemening interfaces.
20953 (Access_Definition): Reject ALL on anonymous access types.
20954 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
20955 type derivation to occur at a deeper accessibility level than the
20957 For the case of derivation within a generic body however, disallow the
20958 derivation if the derived type has an ancestor that is a formal type
20959 declared in the formal part of an enclosing generic.
20960 (Analyze_Object_Declaration): For protected objects, remove the check
20961 that they cannot contain interrupt handlers if not declared at library
20963 (Add_Interface_Tag_Components): New subprogram to add the tag components
20964 corresponding to all the abstract interface types implemented by a
20965 record type or a derived record type.
20966 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
20967 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
20968 Process_Full_View, Record_Type_Declaration): Modified to give
20969 support to abstract interface types
20970 (Collect_Interfaces): New subprogram that collects the list of
20971 interfaces that are not already implemented by the ancestors
20972 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
20973 when partial view has no discriminants and full view has defaults.
20974 (Constrain_Access): Reject a constraint on a general access type
20975 if the discriminants of the designated type have defaults.
20976 (Access_Subprogram_Declaration): Associate the Itype node with the inner
20977 full-type declaration or subprogram spec. This is required to handle
20978 nested anonymous declarations.
20979 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
20980 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
20981 Process_Full_View, Record_Type_Declaration): Modified to give
20982 support to abstract interface types
20983 (Derive_Subprograms): Addition of a new formal to indicate if
20984 we are in the case of an abstact-interface derivation
20985 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
20986 to the specification because it is requied to analyze all the
20987 identifiers found in a list of interfaces
20989 * debug.adb: Complete documentation of flag "-gnatdZ"
20991 * exp_ch3.adb: Implement config version of persistent_bss pragma
20992 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
20993 testing for TSS presence to properly enforce visibility rules.
20994 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
20995 Make_Abstract_Interfaces_DT to generate the secondary tables
20996 associated with abstract interfaces.
20997 (Build_Init_Procedure): Modified to initialize all the tags
20999 (Component_Needs_Simple_Initialization): Similar to other tags,
21000 interface tags do not need initialization.
21001 (Freeze_Record_Type): Modified to give support to abstract interface
21003 (Expand_N_Object_Declaration): Do not generate an initialization for
21004 a scalar temporary marked as internal.
21006 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
21007 in-out parameter that is a component in an initialization procedure,
21008 whose constraint might depend on discriminants, and that may be
21009 misaligned because of packing or representation clauses.
21010 (Is_Legal_Copy): New predicate to determine whether a possibly
21011 misaligned in-out actual can actually be passed by copy/return. This
21012 is an error in case the type is by_reference, and a warning if this is
21013 the consequence of a DEC import pragma on the subprogram.
21014 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
21016 (Expand_Inlined_Call): Mark temporary generated for the return value as
21017 internal, so that no useless scalar normalization is generated for it.
21018 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
21019 null procedure can always be inlined.
21020 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
21021 procedure, generate an explicit empty body for it.
21023 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
21024 Given a type implementing an interface, returns the corresponding
21025 access_disp_table value.
21026 (Find_Interface_Tag): New subprogram. Given a type implementing an
21027 interface, returns the record component containing the tag of the
21029 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
21030 previous ones that return the corresponding tag and access_disp_table
21032 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
21033 is a predefined primitive operation.
21034 (Expand_Subtype_From_Expr): If the expression is a selected component
21035 within an initialization procedure, compute its actual subtype, because
21036 the component may depend on the discriminants of the enclosing record.
21038 * i-cpp.ads, i-cpp.adb:
21039 This package has been left available for compatibility with previous
21040 versions of the frontend. As part of the new layout this is now a
21041 dummy package that uses declarations available at a-tags.ads
21043 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
21044 "constant access" and "aliased [constant] access" when not compiling
21046 Suppress Ada 2005 keyword warning if -gnatwY used
21047 (P_Identifier_Declarations): Add support for object declarations with
21048 access definitions.
21049 (Private_Extension_Declaration): Complete the documentation
21050 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
21051 attribute in case of private extension declaration
21052 (P_Type_Declaration): Mark as "abstract" the type declarations
21053 corresponding with protected, synchronized and task interfaces
21054 (P_Declarative_Items): "not" and "overriding" are overriding indicators
21055 for a subprogram or instance declaration.
21057 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
21058 instantiation that is a dispatching operation has controlling access
21059 parameters that are null excluding.
21060 Save and restore Ada_Version_Explicit, for implementation of AI-362
21061 (Validate_Derived_Type_Instance): Add check for abstract interface
21063 (Analyze_Formal_Package): Establish Instantiation source for the copy of
21064 the generic that is created to represent the formal package.
21065 (Analyze_Package_Instantiation): Instantiate body immediately if the
21066 package is a predefined unit that contains inlined subprograms, and
21067 we are compiling for a Configurable_Run_Time.
21068 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
21069 If the program has a null default, generate an empty body for it.
21071 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
21072 error message condition, null procedures are correctly detected now.
21073 (New_Overloaded_Entity): Bypass trivial overriding indicator check
21074 for subprograms in the context of protected types. Instead, the
21075 indicator is examined in Sem_Ch9 while analysing the subprogram
21077 (Check_Overriding_Indicator): Check consistency of overriding indicator
21078 on subprogram stubs as well.
21079 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
21081 (Analize_Subprogram_Specification): When analyzing a subprogram in which
21082 the type of the first formal is a concurrent type, replace this type
21083 by the corresponding record type.
21084 (Analyze_Subprogram_Body): Undo the previous work.
21085 (Analyze_Procedure_Call): If the call has the form Object.Op, the
21086 analysis of the prefix ends up analyzing the call itself, after which
21088 (Has_Interface_Formals): New subprogram subsidiary to analyze
21089 subprogram_specification that returns true if some non
21090 class-wide interface subprogram is found
21091 (New_Overloaded_Entity): Modified to give support to abstract
21093 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
21094 access to subprograms must be recursive.
21095 (Is_Unchecked_Conversion): Improve the test that recognizes
21096 instantiations of Unchecked_Conversion, and allows them in bodies that
21097 are to be inlined by the front-end. When the body comes from an
21098 instantiation, a reference to Unchecked_Conversion will be an
21099 Expanded_Name, even though the body has not been analyzed yet.
21100 Replace Is_Overriding and Not_Overriding in subprogram_indication with
21101 Must_Override and Must_Not_Override, to better express intent of AI.
21102 (Analyze_Subprogram_Body): If an overriding indicator is given, check
21103 that it is consistent with the overrinding status of the subprogram
21105 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
21107 If the subprogram is a null procedure, indicate that it does not need
21110 * sem_disp.adb (Check_Controlling_Type): Give support to entities
21111 available through limited-with clauses.
21112 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
21113 allowed as the last primitive of a tagged type if it has no previous
21115 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
21116 to give support to abstract interface types
21118 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
21119 in the case where the target type is an anonymous access type of an
21120 object or component (that is, when Is_Local_Anonymous_Access is true).
21121 Prevent the special checks for conversions of access discriminants in
21122 the case where the discriminant belongs to a nonlimited type, since
21123 such discriminants have their accessibility level defined in the same
21124 way as a normal component of an anonymous access type.
21125 (Resolve_Allocator): When an allocator's designated type is a class-wide
21126 type, check that the accessibility level of type given in the
21127 allocator's expression or subtype indication is not statically deeper
21128 than the level of the allocator's access type.
21129 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
21130 name in a discriminant constraint of a record component.
21131 (Resolve_Explicit_Dereference): Do not check whether the type is
21132 incomplete when the dereference is a use of an access discriminant in
21133 an initialization procedure.
21134 (Resolve_Type_Conversion): Handle conversions to abstract interface
21136 (Valid_Tagged_Conversion): The conversion of a tagged type to an
21137 abstract interface type is always valid.
21138 (Valid_Conversion): Modified to give support to abstract interface types
21139 (Resolve_Actuals): Enable full error reporting on view conversions
21140 between unrelated by_reference array types.
21141 The rule for view conversions of arrays with aliased components is
21142 weakened in Ada 2005.
21143 Call to obsolescent subprogram is now considered to be a violation of
21144 pragma Restrictions (No_Obsolescent_Features).
21145 (Check_Direct_Boolean_Operator): If the boolean operation has been
21146 constant-folded, there is nothing to check.
21147 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
21148 check on possible violation of restriction No_Direct_Boolean_Operators
21149 until after expansion of operands, to prevent spurious errors when
21150 operation is constant-folded.
21152 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
21153 Has_Compatible_Type): Modified to give support to abstract interface
21155 (Interface_Present_In_Ancestor): New function to theck if some ancestor
21156 of a given type implements a given interface
21158 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
21159 prefix is a parameterless function that returns an access_to_procedure.
21160 (Transform_Object_Operation): Handle properly function calls of the
21161 form Obj.Op (X), which prior to analysis appear as indexed components.
21162 (Analyze_One_Call): Complete the error notification to help new Ada
21164 (Analyze_Allocator): For an allocator without an initial value, where
21165 the designated type has a constrained partial view, a discriminant
21166 constraint is illegal.
21168 2005-06-14 Robert Dewar <dewar@adacore.com>
21170 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
21171 do with treatment of Set_Col when positioned at end of line character.
21173 2005-06-14 Robert Dewar <dewar@adacore.com>
21175 * atree.adb: (Elist*): Protect against uninitialized field
21177 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21179 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
21180 for an attribute reference that returns an access type.
21181 (Apply_Discriminant_Check): No need for check if (designated) type has
21182 constrained partial view.
21184 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
21185 both bound checks, rather than a conjunction.
21186 (Insert_Valid_Check): If the expression is an actual that is an indexed
21187 component of a bit-packed array, force expansion of the packed element
21188 reference, because it is specifically inhibited elsewhere.
21190 2005-06-14 Vincent Celier <celier@adacore.com>
21192 * clean.adb (Clean_Project): Correctly delete executable specified as
21193 absolute path names.
21195 * make.adb (Gnatmake): Allow relative executable path names with
21196 directory information even when project files are used.
21197 (Change_To_Object_Directory): Fail gracefully when unable to change
21198 current working directory to object directory of a project.
21199 (Gnatmake): Remove exception handler that could no longer be exercized
21200 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
21201 may be deallocated by Normalize_Arguments.
21202 (Collect_Arguments): Eliminate empty arguments
21204 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
21205 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
21206 (Check_Project): Return False when Project is No_Project. Return True
21207 when All_Projects is True.
21208 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
21209 All_Projects to True.
21212 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21213 Javier Miranda <miranda@adacore.com>
21214 Thomas Quinot <quinot@adacore.com>
21215 Robert Dewar <dewar@adacore.com>
21216 Hristian Kirtchev <kirtchev@adacore.com>
21217 Gary Dismukes <dismukes@adacore.com>
21219 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
21220 anonymous access types, to indicate that the accessibility level of
21221 the type is determined by that of the enclosing declaration.
21222 (Has_Persistent_BSS): New flag
21223 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
21224 of this attribute with functions.
21225 (Is_Primitive_Wrapper): Remove the barrier.
21226 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
21227 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
21229 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
21230 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
21232 (Is_Pure_Unit_Access_Type): New flag
21233 (Abstract_Interfaces): Complete the assertion to cover all usages.
21234 (Set_Is_Interface): Complete the assertion to cover all usages.
21235 (Is_Primitive_Wrapper): New attribute.
21236 (Is_Obsolescent): Now applies to all entities (though it is only set
21237 for subprograms currently)
21238 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
21239 which solves various problems concerning access subtypes.
21240 (Has_Persistent_BSS): New flag
21241 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
21242 Remove these subprograms because this attribute is currently
21245 Has_Specified_Stream_Input (Flag190)
21246 Has_Specified_Stream_Output (Flag191)
21247 Has_Specified_Stream_Read (Flag192)
21248 Has_Specified_Stream_Write (Flag193)
21249 Present in all type and subtype entities. Set for a given view if the
21250 corresponding stream-oriented attribute has been defined by an
21251 attribute definition clause. When such a clause occurs, a TSS is set
21252 on the underlying full view; the flags are used to track visibility of
21253 the attribute definition clause for partial or incomplete views.
21254 (Is_Pure_Unit_Access_Type): New flag
21255 Clarify use of Is_Internal.
21256 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
21257 internally generated to wrap the invocation of tasks and protected
21258 types that implement interfaces.
21259 (Implementation_Base_Type): Documentation correction
21260 (Is_Obsolescent): Now applies to all entities (though it is only set
21261 for subprograms currently)
21262 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
21263 which solves various problems concerning access subtypes.
21265 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
21266 for examined parameters. Identify unequal parameter list lengths as
21267 non-conformant parameters.
21268 (Overriding_Possible): Do not check for "All" qualifier in declaration
21269 of controlling access parameter, following prescription of AI-404.
21270 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
21271 that build the procedure body that wraps an entry invocation
21272 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
21273 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
21274 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
21275 give support to abstract interface types
21277 * freeze.adb (Freeze_Entity): Issue error message if
21278 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
21279 type has no storage pool (Ada 2005) AI-366.
21280 Also modified to give support to abstract interface types
21281 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
21282 Inline_Always pragma.
21284 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
21285 now begin an entry declaration.
21286 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
21287 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
21288 a subprogram declaration preceded by an overriding indicator.
21289 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
21290 declarations or subprogram declarations preceded by reserved words
21291 "not" or "overriding".
21292 (P_Entry_Declaration): Update comment. Parse and check overriding
21293 indicator, set semantic flags of entry declarations.
21294 (P_Task): New error message in case of private applied
21295 to a task type declaration.
21296 (P_Protected): New error message in case of private applied
21297 to a task type declaration.
21299 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
21300 in which the full view of a type implementing an interface is a
21302 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
21303 Declare_Inherited_Private_Subprograms): If an explicit operation
21304 overrides an operation that is inherited in the private part, mark the
21305 explicit one as overriding, to enable overriding indicator checks.
21306 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
21307 full view to partial view, to simplify handling in back-end.
21309 * sprint.adb: Print interface lists where needed: derived types,
21310 protected types, task types.
21311 output "is null" for null procedures. Part of implementation of
21313 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
21314 relaxation of rules for access types in pure, shared passive partitions.
21316 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
21317 first read discriminants into temporary objects, performing checks on
21318 the read values, then possibly performing discriminant checks on the
21319 actual (if it is constrained), and only finally reading the components
21320 into a constrained temporary object.
21321 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
21322 case of reading discriminants of a mutable record type to recognize
21323 the new form of the code generated by
21324 Build_Mutable_Record_Read_Procedure.
21326 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
21327 of a simple call to Make_TSS_Name.
21328 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
21329 buffer, in order for Is_TSS to work correctly on local TSS names.
21331 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
21332 Is_Local_Anonymous_Access to check legaliy of attributes in the
21333 context of access components and stand-alone access objects.
21334 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
21335 treated as available for a limited private type if there is an
21336 attribute_definition_clause that applies to its full view, but not in
21337 other cases where the attribute is available for the full view
21338 (specifically, the sole fact that the full view is non-limited does not
21339 make the attribute available for the partial view).
21340 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
21341 non-overloaded intrinsic subprogram.
21342 (Check_Stream_Attribute): Reject an attribute reference for an
21343 unavailable stream attribute even if the prefix is not a limited type
21344 (case of a 'Input attribute reference for an abstract, non-classwide
21346 (Stream_Attribute_Available): New function to determine whether a stream
21347 attribute is available at a place.
21348 (Check_Attribute): Use Stream_Attribute_Available instead of just
21349 testing for TSS presence on the implementation base type.
21350 (Analyze_Attribute): Modified to give support to task interfaces.
21351 (Analyze_Access_Attribute): Add error check for use of an Access (or
21352 Unrestricted_Access) attribute with a subprogram marked as
21354 (Analyze_Attribute, case Attribute_Address): Add error check for use of
21355 an Address attribute with a subprogram marked as Inline_Always.
21356 Update Eval_Attribute to handle new value of Width from AI-395
21358 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
21359 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
21360 Factor common code across the stream-oriented attribute circcuits into
21361 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
21362 processing is functionally identical to the previous duplicated one,
21363 except that an expression that denotes an abstract subprogram will now
21364 be rejected, as mandated by AI-195 item 5.
21366 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
21367 Is_Local_Anonymous_Access to apply accessibility checks to access
21368 components and stand-alone access objects.
21369 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
21371 (Is_Potentially_Persistent_Type): New function
21372 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
21373 a heap-object whose type has a constrained partial view, the object is
21374 unconstrained and the component may depend on a discriminant, making its
21377 * sinfo.ads, sinfo.adb
21378 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
21379 (Must_Override): Flag applicable to N_Entry_Declaration.
21380 Indicate that interface_list can appear in single task and single
21381 protected declarations.
21382 Replace Is_Overriding and Not_Overriding with Must_Override and
21383 Must_Not_Override, to better express intent of AI.
21384 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
21385 of an overriding indicator in a subprogram or instance.
21386 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
21387 Add the overriding indicator [[not] overriding] construct to the
21388 following grammar productions:
21390 GENERIC_INSTANTIATION
21391 SUBPROGRAM_SPECIFICATION
21393 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
21394 can start with an overriding indicator.
21396 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
21397 flags accordingly on subrogram specifications or instances.
21400 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
21401 overriding_indicator, if present, is consistent with status of spec.
21402 Improve error message for null-excluding checks on controlling access
21404 (Check_In_Previous_With_Clause): Protect the frontend against
21405 previously reported critical errors in the context clauses.
21406 Save and restore Ada_Version_Explicit, for implementation of AI-362
21407 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
21408 operation verify that controlling formals of the renamed entity that
21409 are access parameters are explicitly non-null.
21410 (Find_Expanded_Name): Improve error message when prefix is an illegal
21411 reference to a private child unit.
21413 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
21414 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
21415 Rewrite to correspond to new wide character names in AI-395
21417 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
21418 default procedures.
21420 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21421 Robert Dewar <dewar@adacore.com>
21423 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
21424 code, not on the bodies of predefined operations, to cut down on
21427 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21429 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
21430 be expanded in place. The size computation does not require a
21431 subtraction, which would raise an exception on a compiler built with
21432 assertions when the upper bound is Integer'first.
21433 (Flatten): For an array of composite components, take into account the
21434 size of the components to determine whether it is safe to expand the
21435 array into a purely positional representation.
21437 2005-06-14 Thomas Quinot <quinot@adacore.com>
21439 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
21440 denoting a formal parameter into account.
21442 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21444 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
21445 the entry_call alternative of a conditional entry call, wrap the
21446 conditional entry call itself.
21448 2005-06-14 Nicolas Setton <setton@adacore.com>
21449 Ed Schonberg <schonberg@adacore.com>
21451 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
21452 the "simple_choice" member in a variant record, in accordance with the
21453 description in the package spec: the information output for a constant
21454 should be "S number", not "SS number".
21455 (Get_Encoded_Name): Return at once if not generating code. Avoids name
21456 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
21458 2005-06-14 Thomas Quinot <quinot@adacore.com>
21460 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
21461 RACW without any primitives, do not generate the if statement for
21462 dispatching by name in the PolyORB/DSA case, as it would be malformed
21463 (it would have an Elsif_Parts list that is not No_List, but with a
21466 2005-06-14 Robert Dewar <dewar@adacore.com>
21468 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
21470 2005-06-14 Jose Ruiz <ruiz@adacore.com>
21472 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
21473 can determine whether pragma Suppress_Exception_Locations is in effect.
21475 * utils2.c (build_call_raise): Do not pass the file name to the
21476 exception handler if pragma Suppress_Exception_Locations is in effect.
21477 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
21479 2005-06-14 Emmanuel Briot <briot@adacore.com>
21481 * g-debpoo.adb (Deallocate, Dereference): Improve output.
21483 2005-06-14 Nicolas Roche <roche@adacore.com>
21485 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
21487 (Next_Level): Fix minor bug in handling of ../dir case
21488 (Read): Add dir separator to Directory name so that "" is understood as
21491 2005-06-14 Pascal Obry <obry@adacore.com>
21493 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
21494 releasing the items.
21496 2005-06-14 Vincent Celier <celier@adacore.com>
21497 Cyrille Comar <comar@adacore.com>
21499 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
21500 with output file descriptor and with output file name.
21501 (Dup, Dup2): Now global procedures as they are used by two subprograms
21502 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
21504 2005-06-14 Thomas Quinot <quinot@adacore.com>
21507 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
21509 (Create_Selector): Bind listening socket used to create the signalling
21510 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
21511 Set listen backlog to 1 to ensure that we detect socket theft by a
21512 failure of our own connect(2) call.
21513 (Check_Selector): Improve documentation of the selector mechanism.
21514 (Broadcast_Inet_Addr): New constant.
21516 2005-06-14 Gary Dismukes <dismukes@adacore.com>
21518 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
21519 type which turns out to be an incomplete and incorrect fix.
21520 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
21521 of the type is declared in a record (for determination of insertion
21523 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
21524 a private type and ensure that the primary entity is used for the type
21525 of the newly created function's V formal by taking the Etype of the
21528 2005-06-14 Javier Miranda <miranda@adacore.com>
21529 Jose Ruiz <ruiz@adacore.com>
21530 Robert Dewar <dewar@adacore.com>
21531 Ed Schonberg <schonberg@adacore.com>
21533 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
21534 that indicates if we are parsing a compilation unit found in a
21535 limited-with clause.
21536 It is use to avoid the circularity check.
21538 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
21539 we are parsing a compilation unit found in a limited-with clause. This
21540 is use to avoid the circularity check.
21542 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
21543 unit as a consequence of parsing a limited-with clause. This is used
21544 to avoid the circularity check.
21546 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
21547 (Analyze_Context): Limited-with clauses are now allowed
21548 in more compilation units.
21549 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
21550 againts previously reported critical errors in context clauses
21551 (Install_Limited_Withed_Unit): Code cleanup plus static detection
21552 of two further errors: renamed subprograms and renamed packages
21553 are not allowed in limited with clauses.
21554 (Install_Siblings): Do not install private_with_clauses on the package
21555 declaration for a non-private child unit.
21556 (Re_Install_Parents): When a parent of the subunit is reinstalled,
21557 reset visibility of child units properly.
21558 (Install_Withed_Unit): When a child unit appears in a with_clause of its
21559 parent, it is immediately visible.
21561 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21562 Emmanuel Briot <briot@adacore.com>
21564 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
21565 declared within an inlined body as referenced, to prevent spurious
21567 (Output_One_Ref): If an entity renames an array component, indicate in
21568 the ALI file that this aliases (renames) the array. Capture as well
21569 function renamings that rename predefined operations.
21570 Add information about generic parent for package and subprogram
21572 (Get_Type_Reference): For a subtype that is the renaming of an actual in
21573 an instantiation, use the first_subtype to ensure that we don't generate
21574 cross-reference information for internal types.
21575 For objects and parameters of a generic private type, retain the '*'
21576 indicator to distinguish such an entity from its type.
21578 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
21579 to store information about instantiated entities.
21581 * ali.adb (Scan_ALI): Add support for parsing the reference to the
21584 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
21585 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
21588 2005-06-10 Doug Rupp <rupp@adacore.com>
21589 Arnaud Charlet <charlet@adacore.com>
21590 Olivier Hainque <hainque@adacore.com>
21591 Jose Ruiz <ruiz@adacore.com>
21593 * Make-lang.in: Add initialize.o when needed.
21594 Remove obsolete references to RT_FLAGS.
21595 Add missing dependencies for sdefault.o
21597 * initialize.c: New file.
21599 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
21600 [VMS] cond_signal_table: Fix problem in declaration.
21601 [VMS] __gnat_error_handler: rewrite.
21602 Move all __gnat_initialize() routines to initialize.c
21603 Specialize the former "hpux" section to "hppa hpux", as this is what the
21604 section really is here for and we now have other hpux ports that need
21605 different contents.
21606 (__gnat_adjust_context_for_raise) i386-linux: First version of this
21607 function for this target. Adjust PC by one in the machine context. This
21608 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
21609 it is more reliable to do that in the signal handler itself.
21610 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
21611 flags, so that the handler is passed the context structure to adjust
21612 prior to the raise.
21613 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
21614 SA_SIGINFO sigaction should look like. Call
21615 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
21616 Machine_State_Operations stuff.
21617 Add conditional code so that the x86_64 is also supported.
21619 2005-06-14 Pascal Obry <obry@adacore.com>
21621 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
21624 2005-06-14 Robert Dewar <dewar@adacore.com>
21626 * opt.ads, opt.adb: New flags for persistent_bss mode
21627 Add Ada_Version_Explicit, for implementation of AI-362
21628 Add Assertions_Enabled_Config and associated handling
21629 Needed since setting can be changed with Assertion_Policy pragma
21630 Add new flag Warn_On_Ada_2005_Compatibility
21632 * switch-c.adb: Recognize -gnatwy/Y
21633 Set Ada_Version_Explicit, for implementation of AI-362
21634 The -gnatg switch now includes -gnatyu
21636 * usage.adb: Add -gnatwy/Y
21637 Remove wrong asterisk on -gnatwX line
21638 Add line for -gnatyu switch
21640 2005-06-14 Vincent Celier <celier@adacore.com>
21642 * osint.adb (Add_Default_Search_Dirs): Put source and object
21643 directories of project files before directories coming from
21644 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
21646 2005-06-14 Robert Dewar <dewar@adacore.com>
21649 * par-ch2.adb (Scan_Pragma_Argument): New procedure
21650 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
21652 2005-06-14 Vincent Celier <celier@adacore.com>
21654 * prep.adb (Preprocess): Ignore error when scanning the first token of
21657 2005-06-14 Vincent Celier <celier@adacore.com>
21659 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
21660 (Check_Stand_Alone_Library): If the specified reference symbol file does
21661 not exist, only issue a warning when the symbol policy is not
21662 Controlled. And, when symbol policy is Compliant, set the symbol
21663 policy to Autonomous.
21665 2005-06-14 Vincent Celier <celier@adacore.com>
21667 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
21668 when the project file in a with clause is not the last one, that is the
21669 project file name is followed by a comma.
21670 * prj-pp.adb: (First_With_In_List): New Boolean global variable
21671 (Print): Issue list of project files separated by commas in with clauses
21672 according to the values returned by Is_Not_Last_In_List.
21673 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
21674 (Set_Is_Not_Last_In_List): New procedure
21676 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
21678 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
21680 2005-06-14 Robert Dewar <dewar@adacore.com>
21682 * scng.adb: Add call to new Check_EOF routine
21683 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
21684 Add some comments regarding wide character handling
21686 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
21688 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
21690 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
21691 characters are now considered graphic characters and hence yield false
21694 * nmake.adt: Modify header so that xnmake does not generate output
21695 files with multiple blank lines.
21697 * treeprs.adt: Remove a blank line so that output from xtreeprs does
21698 not have an extra blank line
21700 2005-06-14 Gary Dismukes <dismukes@adacore.com>
21702 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
21703 expression when the component type is an anonymous access type to
21704 ensure that appropriate accessibility checks are done.
21706 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
21707 expression of an assignment when the target object is of an anonymous
21708 access type. This ensures that required accessibility checks are done.
21709 (One_Bound): Move the check for type Universal_Integer to
21711 (Process_Bounds): Check whether the type of the preanalyzed range is
21712 Universal_Integer, and in that case set Typ to Integer_Type prior
21713 to setting the type of the original range and the calls to One_Bound.
21715 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21717 * sem_case.adb (Expand_Others_Choice): Improve warning.
21719 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21721 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
21722 constraint of full view if present, when other type is discriminated.
21723 (Eval_Relational_Op): Recognize tests of pointer values against Null,
21724 when the pointer is known to be non-null, and emit appropriate warning.
21726 2005-06-14 Robert Dewar <dewar@adacore.com>
21727 Ed Schonberg <schonberg@adacore.com>
21730 * sem_prag.adb: Implement pragma Persistent_BSS
21731 Remove obsolete pragma Persistent_Data, Persistent_Object
21732 Set Ada_Version_Explicit, for implementation of AI-362
21733 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
21734 Add processing for pragma Pure_05 and Preelaborate_05
21735 Add processing for Assertion_Policy pragma
21736 Add pragma identifiers for Assert
21737 (Analyze_Pragma, case Assert): Check number of arguments
21738 (Process_Inline): Additional guard against an illegal program, where the
21739 argument of the pragma is undefined, and warnings on redundant
21740 constructs are enabled.
21741 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
21742 Ada_05 to this pragma, specifying that the pragma is only active in
21744 (Check_Arg_Order): New procedure
21745 Add appropriate calls to this procedure throughout
21746 Also throughout, check entity name before doing any other checks
21748 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
21749 Remove obsolete pragma Persistent_Data, Persistent_Object
21750 Add entries for pragma Pure_05 and Preelaborate_05
21751 Add entries for Assertion_Policy pragma and associated names
21752 Add some names for pragma argument processing
21754 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
21756 2005-06-14 Ed Schonberg <schonberg@adacore.com>
21758 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
21759 appears within a negation (either from source or as a rewriting of
21760 inequality) adjust text of warning accordingly.
21762 2005-06-14 Thomas Quinot <quinot@adacore.com>
21764 * s-strxdr.adb: Follow AI95-00132
21766 2005-06-14 Arnaud Charlet <charlet@adacore.com>
21768 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
21770 2005-06-14 Arnaud Charlet <charlet@adacore.com>
21771 Jose Ruiz <ruiz@adacore.com>
21773 * s-tposen.adb, s-tpobop.adb
21774 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
21776 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
21777 there is no violation of the Max_Entry_Queue_Length restriction (if it
21778 has been set); Program_Error is raised otherwise.
21779 (Requeue_Call): Before requeuing the task on the target entry queue we
21780 check that there is no violation of the Max_Entry_Queue_Length
21781 restriction (if it has been set); Program_Error is raised otherwise.
21783 2005-06-14 Robert Dewar <dewar@adacore.com>
21785 * styleg.adb: Fix several remaining problems in -gnatyu switch
21786 Blank line count not reset at start
21787 Scanning outside source buffer in some cases
21788 Confusing message for blanks at end of file
21789 Non-empty blank lines not recognized
21791 * nmake.adt: Modify header so that xnmake does not generate output
21792 files with multiple blank lines.
21794 * treeprs.adt: Remove a blank line so that output from xtreeprs does
21795 not have an extra blank line
21797 2005-06-14 Sergey Rybin <rybin@adacore.com>
21799 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
21801 2005-06-14 Doug Rupp <rupp@adacore.com>
21802 Vincent Celier <celier@adacore.com>
21804 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
21807 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
21808 Remove "Library" command.
21809 Change keyword for style check -gnatyd from NOCRLF to
21811 Remove useless second style check keyword NONE
21812 Remove help documentation for inexistent style check keyword
21814 Add help documentation for style check keywords DOS_LINE_ENDINGS,
21815 UNNECESSARY_BLANK_LINES and XTRA_PARENS
21816 Add UNNECESSARY_BLANK_LINES for -gnatyu
21817 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
21819 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
21821 2005-06-14 Vincent Celier <celier@adacore.com>
21823 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
21824 gprmake was invoked with -d.
21825 (Compile_Sources): If -d was used, output the "completed ..." message
21826 for each compilation.
21827 (Scan_Arg): Recognize new switch -d
21828 When -c and at least one main is specified, set
21829 Unique_Compile to True to guarantee that no other sources will be
21832 2005-06-14 Matthew Heaney <heaney@adacore.com>
21834 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
21835 * a-swuwha.ads, a-swuwha.adb: New files
21837 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
21838 * a-szuzha.ads, a-szuzha.adb: New files.
21840 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
21841 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
21842 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
21843 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
21844 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
21845 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
21846 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
21847 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
21848 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
21849 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
21852 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
21853 Olivier Hainque <hainque@adacore.com>
21854 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21855 Pascal Obry <obry@adacore.com>
21857 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
21859 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
21860 making a temporary around a procedure call because of non-addressable
21862 (process_freeze_entity): If entity is a private type, capture size
21863 information that may have been computed for the full view.
21864 (tree_transform, case N_Allocator): If have initializing expression,
21865 check type for Has_Constrained_Partial_View and pass that to
21867 (tree_transform, case N_Return_Statement): Pass extra arg to
21870 * decl.c (annotate_value): Remove early return if -gnatR is not
21872 (gnat_to_gnu_field): Don't make a packable type for a component clause
21873 if the position is byte aligned, the field is aliased, and the clause
21874 size isn't a multiple of the packable alignment. It serves no useful
21875 purpose packing-wise and would be rejected later on.
21876 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
21879 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
21880 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
21882 (create_concat_name): Idem.
21884 2005-06-10 Robert Dewar <dewar@adacore.com>
21885 Eric Botcazou <ebotcazou@adacore.com>
21886 Ben Brosgol <brosgol@adacore.com>
21887 Cyrille Comar <comar@adacore.com>
21888 Sergey Rybin <rybin@adacore.com>
21889 Pascal Obry <obry@adacore.com>
21891 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
21892 Document second argument (Ada_05) of pragma Obsolescent
21893 Add note that call to subprogram marked with pragma Obsolescent
21894 is now considered to be a violation of program Restrictions
21895 (No_Obsolescent_Features).
21896 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
21897 that only machine-dependent attributes are supported.
21900 Commented out menu lines and empty section for gnatclean examples
21902 Fix some over long lines
21903 Clarify and enhance documentation of ADA_PROJECT_PATH.
21904 Rework section 2.11.2(3) about linking with a non-GNU compiler.
21905 Mention new switch -fcallgraph-info.
21906 Mention new switch -fstack-usage.
21907 For gnatpp, replace '-notab' with '-N' and add this option to Index
21908 Corrected VMS example.
21909 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
21911 Add documentation for -gnatyu switch (unnecessary blank lines)
21912 Document new switch -U for GNAT PRETTY and GNAT METRIC
21913 Add note about Stdcall being handled as C convention on non Windows OS.
21914 Remove some junk typo in description of gnatbind -S switch
21915 Remove reference to Extensions_Allowed pragma
21916 Document the new order of the directories to be searched (source and
21917 object directories of project files before directories in ADA_*_PATH
21918 environment variables.
21920 * g-trasym.ads: Document that IRIX is supported
21922 2005-06-10 Arnaud Charlet <charlet@adacore.com>
21924 * Makefile.in: Add initialize.o when needed.
21925 Adapt to new VMS package body Symbols and subunits
21926 No specialized version of a-sytaco is needed for VxWorks.
21928 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
21929 * a-zchara.ads, a-widcha.ads: New files.
21931 * system-hpux-ia64.ads: New file.
21933 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
21934 is imported from the VxWorks kernel.
21936 2005-06-14 Robert Dewar <dewar@adacore.com>
21938 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
21939 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
21940 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
21941 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
21942 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
21943 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
21944 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
21945 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
21946 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
21947 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
21948 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
21949 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
21951 2005-06-14 Thomas Quinot <quinot@adacore.com>
21953 * xeinfo.adb: Fix typo in comment
21955 2005-06-14 Javier Miranda <miranda@adacore.com>
21957 * repinfo.ads: Fix typo in comment
21959 2005-06-14 Gary Dismukes <dismukes@adacore.com>
21961 * s-finimp.adb (Parent_Tag): Delete this imported function (function
21962 Parent_Tag is now in the visible part of Ada.Tags).
21963 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
21964 using imported function.
21966 2005-06-14 Bernard Banner <banner@adacore.com>
21968 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
21969 also apply for handling support for VxSim 653.
21971 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
21973 * xsnames.adb: Add automatic generation of snames.h.
21975 2005-06-14 Thomas Quinot <quinot@adacore.com>
21977 * gen-soccon.c: Add IP_MULTICAST_IF constant
21978 Minor reformatting and adjustments to prevent warnings.
21980 2005-06-14 Pascal Obry <obry@adacore.com>
21982 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
21984 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
21986 * trans.c (gnat_gimplify_expr): Call
21987 recompute_tree_invarant_for_addr_expr when we change
21988 the operand of the ADDR_EXPR.
21990 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21992 * misc.c: Don't include errors.h.
21994 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21996 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
21998 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
22000 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
22002 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
22004 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
22007 * Makefile.in: Make TGT_LIB behave correctly.
22009 2005-04-23 DJ Delorie <dj@redhat.com>
22011 * misc.c: Adjust warning() callers.
22013 2005-04-16 Laurent Guerby <laurent@guerby.net>
22016 * a-nudira.adb (Value): Check for valid string.
22017 * a-nuflra.adb (Value): Likewise.
22019 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
22021 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
22023 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
22025 * adaint.c, init.c, tracebak.c: Fix comment typos.
22026 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
22028 2005-04-07 Laurent Guerby <laurent@guerby.net>
22029 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22031 * Makefile.in: Add make ifeq define for hppa linux tasking support.
22032 * system-hpux.ads: Define Signed_Zeros to be True.
22033 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
22035 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
22037 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
22038 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
22041 2005-03-30 Tom Tromey <tromey@redhat.com>
22043 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
22045 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
22047 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
22049 2005-03-29 Robert Dewar <dewar@adacore.com>
22051 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
22052 fixed-point expression has value that is not a multiple of the Small
22055 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
22057 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
22060 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
22062 2005-03-29 Vincent Celier <celier@adacore.com>
22064 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
22065 (Build_Dynamic_Library.Version_String): Return the empty string when
22066 Lib_Version is empty or when the symbol policy is not Autonomous.
22068 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
22069 a symbol is not in the reference symbol file, increase the Major ID
22070 and set the Minor ID to 0.
22071 Use gsmatch=lequal instead of gsmatch=equal
22073 2005-03-29 Doug Rupp <rupp@adacore.com>
22075 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
22076 name and translate.
22078 2005-03-29 Javier Miranda <miranda@adacore.com>
22080 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
22081 (Inherit_DT): The first formal has been redefined as a Tag.
22082 This allows us the removal of the subprogram Get_TSD.
22083 (TSD): Replace the call to Get_TSD by the actual code.
22085 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
22086 (Make_DT): Upgrade the call to Inherit_TSD according to the
22087 new interface: the first formal is now a Tag.
22089 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
22090 redefined as a Tag.
22091 This change allows us to remove the subprogram Get_TSD.
22092 (CPP_Get_TSD): Subprogram removed.
22093 (TSD): Replace the call to CPP_Get_TSD by the actual code.
22095 * rtsfind.ads: Remove support to call the run-time
22098 2005-03-29 Robert Dewar <dewar@adacore.com>
22100 * errutil.adb, errout.adb:
22101 Minor comment updates on Line_Terminator references
22103 * par-ch10.adb: Add ??? comment about line terminator
22105 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
22106 (check dos line terminator).
22107 (Check_Line_Max_Length): New procedure, split off from the existing
22108 Check_Line_Terminator routine. Separating this out allows -gnatyf to
22109 be properly recognized.
22111 * styleg.adb: Add ??? comment for line terminator reference
22113 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
22114 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
22116 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
22117 (check dos line terminator).
22118 (Check_Line_Max_Length): New procedure, split off from the existing
22119 Check_Line_Terminator routine. Separating this out allows -gnatyf to
22120 be properly recognized.
22122 * stylesw.ads, stylesw.adb:
22123 Add handling for new -gnatyd switch (check dos line terminator)
22125 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
22126 Recognize -gnatwb/-gnatwB switches
22127 Include Warn_On_Bad_Fixed_Value for -gnatg
22130 Add line for new -gnatyd switch (check dos line terminator)
22132 * usage.adb: Add lines for -gnatwb/-gnatwB
22134 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
22136 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
22138 * gnat_ugn.texi: Fix overlong lines
22139 Document new -gnatyd switch
22140 Document new -gnatwb/-gnatwB switches
22142 2005-03-29 Ed Schonberg <schonberg@adacore.com>
22144 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
22145 order to retrieve the component list of the type, before examining
22146 individual components.
22148 * sem_type.adb (Covers): Types are compatible if one is the base type
22149 of the other, even though their base types might differ when private
22150 views are involved.
22152 2005-03-29 Thomas Quinot <quinot@adacore.com>
22154 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
22155 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
22156 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
22157 analyzed if expansion is disabled (which could otherwise cause spurious
22158 error messages if expansion has been disabled due to previous
22159 (unrelated) errors).
22161 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
22162 is disabled, the entity denoted by the argument is the access type
22163 itself, not an underlying record type, so there is no need to go back
22164 to the Corresponding_Remote_Type.
22166 2005-03-29 Gary Dismukes <dismukes@adacore.com>
22167 Robert Dewar <dewar@adacore.com>
22169 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
22170 expand a call to an instance of
22171 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
22172 Constructor actual of the instance. A class-wide membership
22173 check is also generated, to ensure that the tag passed to the instance
22174 denotes a type in the class.
22175 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
22176 of Name_Generic_Dispatching_Constructor.
22178 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
22179 05 unit for AI-260-02).
22181 * a-tgdico.ads: New file.
22183 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
22184 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
22186 * snames.ads, snames.adb (Preset_Names): Add entry for
22187 Generic_Dispatching_Constructor.
22190 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
22191 character type cases.
22192 (Analyze_Subprogram_Renaming): Add special handling for
22193 the case of renaming of stream attributes when the renaming denotes a
22194 generic formal subprogram association for an abstract formal subprogram.
22195 Check that the attribute is a primitive stream attribute (and not
22196 a class-wide stream attribute) and then rewrite the attribute name
22197 as the name of the appropriate compiler-generated stream primitive.
22199 2005-03-29 Robert Dewar <dewar@adacore.com>
22201 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
22203 (Is_Possibly_Unaligned_Object): Correct typo that
22204 resulted in inaccurate result for unaligned scalars within records.
22206 2005-03-29 Ed Schonberg <schonberg@adacore.com>
22208 * freeze.adb (Freeze_Record_Type): If the type of the component is an
22209 itype whose parent is controlled and not yet frozen, do not create a
22210 freeze node for the itype if expansion is disabled.
22212 2005-03-29 Vincent Celier <celier@adacore.com>
22214 * make.adb (Gnatmake): Don't fail if the main project file is declared
22215 as having no Ada sources. Do not display message "no sources to
22216 compile" in quiet output.
22218 2005-03-29 Doug Rupp <rupp@adacore.com>
22220 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
22223 2005-03-29 Robert Dewar <dewar@adacore.com>
22225 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
22228 2005-03-29 Robert Dewar <dewar@adacore.com>
22230 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
22231 missing TYPE Improve the error message generated when compiling a
22232 limited interface in Ada83 or Ada95 mode.
22234 2005-03-29 Robert Dewar <dewar@adacore.com>
22236 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
22237 rather than proceed ahead using a junk attribute name.
22239 2005-03-29 Vincent Celier <celier@adacore.com>
22241 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
22243 * prj-part.adb (Parse_Single_Project): Set the location of a project
22244 on its defining identifier, rather than on the reserved word "project".
22246 * prj-proc.adb (Expression): Adapt to the fact that default of external
22247 references may be string expressions, not always literal strings.
22248 (Recursive_Process): Set Display_Name equal to Name
22249 when Location is No_Location, that is when there is no actual file.
22250 Get the Display_Name of the project from the source, when it is not a
22252 (Process): Use the Display_Name in error messages
22254 * prj-strt.adb (External_Reference): Allow default to be string
22255 expressions, not only literal strings.
22257 2005-03-29 Vincent Celier <celier@adacore.com>
22259 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
22260 file and the reference symbol file to be the same file.
22262 2005-03-29 Thomas Quinot <quinot@adacore.com>
22264 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
22265 forbid conversion of a local access-to-subprogram type to a remote one.
22267 * sem_util.adb (Wrong_Type): For a record type that is the expanded
22268 equivalent type for a remote access-to-subprogram type, go back to the
22269 original RAS entity when displaying an error message, so the casing is
22270 the original source casing.
22272 2005-03-29 Robert Dewar <dewar@adacore.com>
22274 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
22277 2005-03-29 Ed Schonberg <schonberg@adacore.com>
22279 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
22280 subtype if code is being pre-analyzed, to prevent un-expanded
22281 references to protected formals, among others.
22282 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
22283 interpretation that can be a call, include the result of the call as a
22284 possible interpretation of the dereference.
22286 * sem_ch5.adb (Process_Bounds): Determine type of range by
22287 pre-analyzing a copy of the original range, and then analyze the range
22288 with the expected type.
22290 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
22291 with an overloaded prefix where not all interpretations yield an
22292 access to subprogram, do not rewrite node as a call.
22293 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
22294 the node as a call once the context identifies the interpretation of
22295 the prefix whose call yields the context type.
22296 (Valid_Conversion): For the case of a conversion between
22297 local access-to-subprogram types, check subtype conformance using
22298 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
22299 detailed error message.
22301 2005-03-29 Ed Schonberg <schonberg@adacore.com>
22303 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
22304 indicator, indicate that the formal can never be null.
22305 (Process_Formals): If a formal has a non_null indicator, insert the
22306 resulting subtype immediately before the enclosing subprogram decl,
22307 and not at the beginning of the corresponding declarative part, to
22308 prevent access before elaboration (Ada2005).
22310 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22313 * utils.c (finish_record_type): Use variable_size when setting sizes.
22315 2005-03-29 Robert Dewar <dewar@adacore.com>
22317 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
22318 guarantee Unix style line terminators for the output files, even when
22319 running on windows.
22321 2005-03-29 Robert Dewar <dewar@adacore.com>
22323 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
22324 buffer if an exception is raised.
22326 2005-03-29 Ed Falis <falis@adacore.com>
22328 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
22331 2005-03-29 Robert Dewar <dewar@adacore.com>
22333 * sem_util.ads: Minor reformatting
22334 * gnat_rm.texi: Minor editing.
22336 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
22338 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
22339 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
22341 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
22343 * adaint.c (__gnat_portable_spawn): Adjust cast.
22345 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
22347 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
22349 2005-03-17 Pascal Obry <obry@adacore.com>
22351 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
22354 * expect.c (__gnat_waitpid): Moved here from adaint.c.
22355 Reimplement under Win32 using Win32 API.
22357 (__gnat_kill) [Win32]: Properly close the process handle before leaving
22360 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
22362 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
22363 (DECL_RENAMED_OBJECT): New accessor macro.
22364 (SET_DECL_RENAMED_OBJECT): New setter macro.
22366 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
22367 object in all cases. Attach the renamed object to the VAR_DECL.
22368 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
22369 field is not prescribed.
22371 * misc.c (gnat_handle_option): Handle -gnatO separately.
22372 (gnat_print_decl) <VAR_DECL>: New case.
22373 Print the DECL_RENAMED_OBJECT node.
22375 * lang.opt: Declare separate -gnatO option.
22377 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
22378 pointer, replace it with the renamed object.
22379 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
22380 pointer type if the source is not a fat pointer type whose underlying
22381 array has the same non-zero alias set as that of the destination array.
22383 2005-03-17 Javier Miranda <miranda@adacore.com>
22385 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
22386 (Get_Inheritance_Depth): Removed.
22387 (Set_Inheritance_Depth): Removed.
22389 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
22390 subprogram Get_Expanded_Name because it is not referenced by the
22393 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
22394 (CPP_Get_Inheritance_Depth): Removed.
22395 (CPP_Set_Inheritance_Depth): Removed.
22397 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
22399 2005-03-17 Robert Dewar <dewar@adacore.com>
22401 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
22402 3, since we now expect GCC 3 to do all the work.
22404 2005-03-17 Javier Miranda <miranda@adacore.com>
22406 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
22407 of one barrier to avoid wrong usage of this attribute.
22409 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
22410 First_Private_Entity.
22412 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
22413 the subprogram against wrong usage.
22414 Adapt the code to traverse the entities in the
22415 scope of a record_type because in addition to its usage regarding
22416 packages, this subprogram is also called by Expand_N_Freeze_Entity
22417 to install the visible declarations of the enclosing scope of a
22418 record_type_with_private to establish the proper visibility before
22419 freezing the entity and related subprograms.
22421 2005-03-17 Ed Schonberg <schonberg@adacore.com>
22423 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
22426 2005-03-17 Thomas Quinot <quinot@adacore.com>
22428 * exp_ch3.adb (Check_Attr): New subprogram.
22429 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
22430 into a new Check_Attr subprogram, in order to provide a more
22431 explanatory error message (including the name of the missing attribute).
22432 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
22433 subprogram determines whether a default implementation exists for a
22434 given stream attribute.
22435 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
22436 Determine whether to generate a default implementation for each stream
22437 attribute separately, as this depends on the specific attribute.
22439 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
22440 limited extension where a stream attribute is missing for a limited
22441 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
22442 generate a bogus reference to the missing attribute to prevent
22443 cascaded errors. Instead, generate a null statement.
22445 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
22446 available for a limited type if it has been specified for an ancestor
22449 2005-03-17 Ed Schonberg <schonberg@adacore.com>
22451 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
22452 entity is an operator.
22454 2005-03-17 Thomas Quinot <quinot@adacore.com>
22456 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
22457 spec, to make this predicate available to other units.
22459 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
22462 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
22463 when no distribution runtime library is available.
22465 * sem_res.adb, sem_dist.adb: Disable expansion of remote
22466 access-to-subprogram types when no distribution runtime library is
22468 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
22469 predicate available to other units.
22471 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
22472 spec, to make this predicate available to other units.
22474 2005-03-17 Vincent Celier <celier@adacore.com>
22476 * make.adb (Insert_Project_Sources): Make sure the Q is always
22479 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
22480 the default for the tree, not the global default naming.
22482 * prj-proc.adb (Recursive_Process): No need to put the default naming
22483 in the project data, it's already there.
22485 2005-03-17 Doug Rupp <rupp@adacore.com>
22487 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
22489 * 5xcrtl.ads: Renamed to...
22490 * s-crtl-vms64.ads: ...this new file
22492 2005-03-17 Robert Dewar <dewar@adacore.com>
22495 * namet.adb (Copy_One_Character): Set proper wide character encoding
22496 for upper half character if we have upper half encoding.
22498 2005-03-17 Robert Dewar <dewar@adacore.com>
22500 * par.adb (Par): Improved msg for attempt to recompile predefined unit
22502 2005-03-17 Thomas Quinot <quinot@adacore.com>
22504 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
22505 tagged limited type, the TSS is a newly built renaming declaration:
22506 insert it using Set_TSS, not Copy_TSS.
22508 2005-03-17 Javier Miranda <miranda@adacore.com>
22510 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
22511 Try_Object_Operation): Analyze the object that is accessible
22512 through the prefix of the subprogram call before we apply
22513 the transformation of the object-operation notation.
22515 2005-03-17 Jose Ruiz <ruiz@adacore.com>
22517 * s-taprob.adb (Initialize_Protection): Initialize the protected
22518 object's owner to Null_Task.
22519 (Lock): If pragma Detect_Blocking is in effect and the caller of this
22520 procedure is already the protected object's owner then Program_Error
22521 is raised. In addition the protected object's owner is updated.
22522 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
22523 of this procedure is already the protected object's owner then
22524 Program_Error is raised.
22525 In addition the protected object's owner is updated.
22526 (Unlock): Remove the ownership of the protected object.
22528 * s-taprob.ads (Protection): Add the field Owner, used to store the
22529 protected object's owner.
22530 This component is needed for detecting one type of potentially blocking
22531 operations (external calls on a protected subprogram with the same
22532 target object as that of the protected action). Document the rest of
22535 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
22536 Initialize the protected object's owner to Null_Task.
22537 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
22538 caller of this procedure is already the protected object's owner then
22539 Program_Error is raised.
22540 Do not raise Program_Error when this procedure is called from a
22542 (Unlock_Entries): Remove the ownership of the protected object.
22543 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
22544 of this procedure is already the protected object's owner then
22545 Program_Error is raised.
22546 Do not raise Program_Error when this procedure is called from
22547 a protected action.
22549 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
22550 used to store the protected object's owner.
22552 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
22553 effect and this procedure (a potentially blocking operation) is called
22554 from whithin a protected action, Program_Error is raised.
22555 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
22556 and this procedure (a potentially blocking operation) is called from
22557 whithin a protected action, Program_Error is raised.
22559 2005-03-17 Vincent Celier <celier@adacore.com>
22560 Nicolas Setton <setton@adacore.com>
22562 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
22563 switch, not supported by the linker on Darwin. Add '_' before
22564 <library>init, as this character is added unconditionally by the
22566 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
22567 correct one ".dylib". This fixes detection of the archive files when
22568 building library projects.
22570 2005-03-17 Vincent Celier <celier@adacore.com>
22572 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
22573 -gnat83, -gnat95 and -gnat05.
22575 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
22577 * gnat_ugn.texi: Document gnatmem restriction
22579 2005-03-17 Thomas Quinot <quinot@adacore.com>
22581 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
22584 2005-03-17 Robert Dewar <dewar@adacore.com>
22586 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
22587 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
22588 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
22590 * casing.adb: Comment improvements
22592 2005-03-17 Pascal Obry <obry@adacore.com>
22594 * g-expect.adb: Minor reformatting.
22596 2005-03-15 Zack Weinberg <zack@codesourcery.com>
22598 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
22599 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
22602 2005-03-15 Vincent Celier <celier@adacore.com>
22604 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
22605 Add new parameter In_Tree to specify the project tree: needed
22606 by the project manager. Adapt to changes in project manager
22607 using new parameter In_Tree.
22609 2005-03-15 Jakub Jelinek <jakub@redhat.com>
22611 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
22612 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
22613 ada/bldtools to avoid make -jN failures.
22615 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
22617 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
22618 to NULL_TREE on entry.
22620 2005-03-15 Robert Dewar <dewar@adacore.com>
22622 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
22623 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
22624 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22625 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
22626 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
22627 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
22628 system-interix.ads, system-solaris-sparc.ads,
22629 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
22630 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
22631 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
22632 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
22633 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
22634 Compiler_System_Version to be False.
22636 * opt.ads: Add new flag Opt.Address_Is_Private
22638 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
22639 Add new parameter Compiler_System_Version to avoid checking for
22640 completeness of parameters when compiler is compiling itself.
22641 Allows old versions of GNAT to be compiled with new compiler.
22643 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
22645 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
22646 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
22648 (Stack_Base_Available): New flag.
22649 (Get_Page_Size): New overloaded functions imported from C.
22650 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
22651 PROT_ON, PROT_OFF): New constants.
22652 (mprotect): New function imported from C.
22653 (pthread_teb_t): New record type.
22655 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
22656 (Create_Task): Account for the Yellow Zone and the guard page.
22658 2005-03-15 Vincent Celier <celier@adacore.com>
22660 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22661 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22662 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
22663 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
22664 Library_File_Name_For): Add new parameter In_Tree
22665 to specify the project tree: needed by the project manager.
22666 Adapt to changes in project manager using new parameter In_Tree.
22667 Remove local imports, use functions in System.CRTL.
22669 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
22670 to use the project manager.
22672 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
22673 In_Tree to designate the project tree. Adapt to changes in the project
22674 manager, using In_Tree.
22676 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
22677 Copy_Interface_Sources): Add new parameter In_Tree to specify the
22678 project tree: needed by the project manager.
22679 (Build_Library): Check that Arg'Length >= 6 before checking if it
22680 contains "--RTS=...".
22682 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
22683 Library_File_Name_For): Add new parameter In_Tree to specify the
22684 project tree: needed by the project manager.
22686 * prj.ads, prj.adb: Major modifications to allow several project trees
22687 in memory at the same time.
22688 Change tables to dynamic tables and hash tables to dynamic hash
22689 tables. Move tables and hash tables from Prj.Com (in the visible part)
22690 and Prj.Env (in the private part). Move some constants from the visible
22691 part to the private part. Make other constants deferred.
22692 (Project_Empty): Make it a variable, not a function
22693 (Empty_Project): Add parameter Tree. Returns the data with the default
22694 naming data of the project tree Tree.
22695 (Initialize): After updating Std_Naming_Data, copy its value to the
22696 component Naming of Project Empty.
22697 (Register_Default_Naming_Scheme): Use and update the default naming
22698 component of the project tree, instead of the global variable
22700 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
22701 Tree is not defaulted, return the default naming data of the Tree.
22702 (Initial_Buffer_Size): Constant moved from private part
22703 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
22704 variables initialized in procedure Initialize.
22705 (Add_To_Buffer): Add two in out parameters to replace global variables
22706 Buffer and Buffer_Last.
22707 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
22709 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
22711 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
22712 for the project tree.
22713 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
22714 constant at the beginning of the package spec, so that they cane be used
22715 in subprograms before their full declarations.
22716 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
22717 (Empty_Project): Add parameter of type Project_Node_Ref
22718 (Private_Project_Tree_Data): Add component Default_Naming of type
22720 (Buffer, Buffer_Last): remove global variables
22721 (Add_To_Buffer): Add two in out parameters to replace global variables
22722 Buffer and Buffer_Last.
22723 (Current_Packages_To_Check): Remove global variable
22724 (Empty_Name): Move to private part
22725 (No-Symbols): Make it a constant
22726 (Private_Project_Tree_Data): New type for the private part of the
22728 (Project_Tree_Data): New type for the data of a project tree
22729 (Project_Tree_Ref): New type to designate a project tree
22730 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
22731 for the project tree.
22733 * prj-attr.ads: Add with Table; needed, as package Prj no longer
22734 imports package Table.
22736 * prj-com.adb: Remove empty, no longer needed body
22738 * prj-com.ads: Move most of the content of this package to package Prj.
22740 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
22741 designate the project node tree and Packages_To_Check to replace
22742 global variable Current_Packages_To_Check.
22743 Add new parameters In_Tree and Packages_To_Check to local subprograms,
22744 when needed. Adapt to changes in project manager with project node tree
22747 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
22748 project tree to most subprograms. Move tables and hash tables to
22749 private part of package Prj.
22750 Adapt to changes in project manager using project tree In_Tree.
22752 * prj-makr.adb (Tree): New constant to designate the project node tree
22753 Adapt to change in project manager using project node tree Tree
22755 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
22756 display the Library_Src_Dir and the Library_Dir.
22757 Add new parameter In_Tree to designate the project node tree to most
22758 subprograms. Adapt to changes in the project manager, using project tree
22760 (Check_Naming_Scheme): Do not alter the casing on platforms where
22761 the casing of file names is not significant.
22762 (Check): Add new parameter In_Tree to designate the
22764 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
22765 designate the project tree.
22766 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
22768 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
22769 to replace those that were in the private part of package Prj.
22770 Add new parameter In__Tree to designate the project node tree to most
22771 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
22772 (Post_Parse_Context_Clause): When specifying the project node of a with
22773 clause, indicate that it is a limited with only if there is "limited"
22774 in the with clause, not necessarily when In_Limited is True.
22775 (Parse): Add new parameter In_Tree to designate the project node tree
22777 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
22778 designate the project node tree. Adapt to change in Prj.Tree with
22779 project node tree In_Tree.
22781 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
22782 tree In_Tree in the call to function Empty_Process to give its initial
22783 value to the project data Processed_Data.
22784 Add new parameters In_Tree to designate the project tree and
22785 From_Project_Node_Tree to designate the project node tree to several
22786 subprograms. Adapt to change in project manager with project tree
22787 In_Tree and project node tree From_Project_Node_Tree.
22789 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
22790 to replace those that were in the private part of package Prj.
22791 Add new parameter In_Tree to designate the project node tree to most
22792 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
22794 * prj-tree.ads, prj-tree.adb: Add new parameter of type
22795 Project_Node_Tree_Ref to most subprograms.
22796 Use this new parameter to store project nodes in the designated project
22798 (Project_Node_Tree_Ref): New type to designate a project node tree
22799 (Tree_Private_Part): Change table to dynamic table and hash tables to
22800 dynamic hash tables.
22802 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
22803 the project tree to most subprograms. Adapt to changes in project
22804 manager using project tree In_Tree.
22806 * makegpr.adb (Project_Tree): New constant needed to use project
22809 2005-03-15 Olivier Hainque <hainque@adacore.com>
22811 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
22812 for sigactions with SA_SIGINFO set. Call
22813 __gnat_adjust_context_for_raise before raising, to perform the
22814 potentially required adjustments to the machine context for the GCC
22817 * raise.h (__gnat_adjust_context_for_raise): New prototype.
22819 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
22820 Adjust PC by one in the provided machine context.
22821 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
22822 so that the handler is passed the context structure to adjust prior to
22824 (__gnat_error_handler) HPUX: Adjust the signature to match what an
22825 SA_SIGINFO sigaction should look like. Call
22826 __gnat_adjust_context_for_raise before actually raising.
22827 (__gnat_adjust_context_for_raise): Default noop to help PC
22828 adjustments before raise from signal handlers.
22829 (__gnat_error_handler): Indirectly call a predicate function to
22830 determine if a condition should be resignaled or not.
22831 (__gnat_set_resignal_predicate): User interface to modify the predicate.
22832 (__gnat_default_resignal_p): Default GNAT predicate.
22834 2005-03-15 Doug Rupp <rupp@adacore.com>
22836 * adaint.c: Prefix #include of VMS system header files with vms/
22837 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
22838 Do not define a dummy function "convert_addresses" under Darwin,
22841 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
22844 2005-03-15 Nicolas Setton <setton@adacore.com>
22846 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
22849 2005-03-15 Robert Dewar <dewar@adacore.com>
22851 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
22854 * a-retide.ads: Minor comment changes
22856 2005-03-15 Robert Dewar <dewar@adacore.com>
22858 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
22859 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
22860 Realloc_For_Chunk to private part of package.
22861 New subprograms for AI-301
22863 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
22864 Get_Line procedure.
22865 Avoid unnecessary use of Get/Set_Wide_String
22867 2005-03-15 Robert Dewar <dewar@adacore.com>
22870 * a-stunau.ads, a-stunau.adb:
22871 Change interface to allow efficient (and correct) implementation
22872 The previous changes to allow extra space in unbounded strings had
22873 left this interface a bit broken.
22875 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
22877 * g-spipat.ads, g-spipat.adb: New interface for Get_String
22878 Minor reformatting (function specs)
22880 * g-spitbo.adb: New interface for Get_String
22882 * g-spitbo.ads: Minor reformatting
22884 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
22886 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
22888 2005-03-15 Javier Miranda <miranda@adacore.com>
22889 Robert Dewar <dewar@adacore.com>
22890 Thomas Quinot <quinot@adacore.com>
22891 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22893 * atree.ads, atree.adb: Add support for Elist24 field
22895 * atree.h: Fix wrong definition of Field27
22896 Add support for Elist16 field
22897 Add support for Elist24 field
22899 * einfo.ads, einfo.adb (Abstract_Interfaces,
22900 Set_Abstract_Interfaces): New subprograms.
22901 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
22903 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
22904 entities rather than a single node.
22905 (Is_Interface, Set_Is_Interface): New subprogram
22906 (First_Tag_Component): New syntesized attribute
22907 (Next_Tag_Component): New synthesized attribute
22908 (Write_Entity_Flags): Upgraded to write Is_Interface
22909 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
22910 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
22911 (Task_Body_Procedure): New subprogram to read this attribute.
22912 (Set_Task_Body_Procedure): New subprogram to set this attribute.
22913 (Has_Controlled_Component): Now applies to all entities.
22914 This is only a documentation change, since it always worked to apply
22915 this to other than composite types (yielding false), but now this is
22917 Update documentation on Must_Be_Byte_Aligned for new spec
22919 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
22920 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
22921 uses of the Access_Disp_Table attribute to reference the first dispatch
22922 table associated with a tagged type. As
22923 part of the implementation of abstract interface types,
22924 Access_Disp_Table has been redefined to contain a list of dispatch
22925 tables (rather than a single dispatch table).
22926 Similarly, upgrade all the references to Tag_Component by the
22927 new attribute First_Tag_Component.
22928 (Find_Inherited_TSS): Moved to exp_tss.
22929 Clean up test in Expand_N_Object_Declaration for cases
22930 where we need to do a separate assignment of the initial value.
22931 (Expand_N_Object_Declaration): If the expression in the
22932 declaration of a tagged type is an aggregate, no need to generate an
22933 additional tag assignment.
22934 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
22936 Bit packed array ops are only called if operands are known to be
22938 (Component_Equality): When returning an N_Raise_Program_Error statement,
22939 ensure that its Etype is set to Empty to avoid confusing GIGI (which
22940 expects that only expressions have a bona fide type).
22941 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
22942 determine the amount of data to be copied.
22944 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
22945 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
22946 INTERFACE_TYPE_DEFINITION ::=
22947 [limited | task | protected | synchronized] interface
22948 [AND interface_list]
22950 * par-ch3.adb (P_Type_Declaration): Modified to give support to
22952 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
22954 (P_Interface_Type_Definition): New subprogram that parses the new
22955 syntax rule of Ada 2005 interfaces
22956 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
22957 messages by the correct RENAMES (quotes removed).
22959 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
22960 attribute First_Tag_Component.
22962 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
22963 (Interface_List, Set_Interface_List): New subprograms.
22964 (Interface_Present, Set_Interface_Present): New subprograms.
22965 (Limited_Present, Set_Limited_Present): Available also in derived
22966 type definition nodes.
22967 (Protected_Present, Set_Protected_Present): Available also in
22968 record type definition and
22969 derived type definition nodes.
22970 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
22971 (Task_Present, Set_Task_Present): New subprogram.
22972 (Task_Body_Procedure): Removed.
22973 (Set_Task_Body_Procedure): Removed.
22974 These subprogram have been removed because the attribute
22975 Task_Body_Procedure has been moved to the corresponding task type
22976 or task subtype entity to leave a field free to store the list
22977 of interfaces implemented by a task (for AI-345)
22978 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
22979 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
22980 expression flag Do_Range_Check
22981 (Exception_Junk): Change to Flag7 to accomodate above change
22982 (Box_Present, Default_Name, Specification, Set_Box_Present,
22983 Set_Default_Name, Set_Specification): Expand the expression
22984 "X in N_Formal_Subprogram_Declaration" into the corresponding
22985 two comparisons. Required to use the csinfo tool.
22987 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
22988 "with string" given.
22990 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
22993 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
22996 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
22997 attribute Task_Body_Procedure rather than the old semantic field that
22998 was available in the task_type_declaration node.
23000 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
23001 interface type definitions.
23002 (P_Formal_Derived_Type_Definition): Modified to handle the list of
23005 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
23006 task type declaration.
23007 (P_Protected): Modified to handle the list of interfaces in a
23008 protected type declaration.
23010 2005-03-15 Doug Rupp <rupp@adacore.com>
23011 Vincent Celier <celier@adacore.com>
23013 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
23014 (Gen_Output_File_C): Likewise.
23015 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
23017 2005-03-15 Thomas Quinot <quinot@adacore.com>
23019 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
23020 is an N_Raise_Constraint_Error node, create a new copy of it without
23021 going through a call to Duplicate_Subexpr.
23023 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
23024 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23025 Nicolas Setton <setton@adacore.com>
23026 Ed Schonberg <schonberg@adacore.com>
23032 * decl.c (gnat_to_gnu_field): Reject aliased components with a
23033 representation clause that prescribes a size not equal to the rounded
23034 size of their types.
23035 (gnat_to_gnu_entity, case E_Component): Always look at
23036 Original_Record_Component if Present and not the entity.
23037 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
23038 of tagged extension types by not making field for components that are
23040 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
23041 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
23042 expression to the type of the object when the object is constant.
23043 Reverse defer_debug_incomplete_list before traversing it, so that trees
23044 are processed in the order at which they were added to the list. This
23045 order is important when using the stabs debug format.
23046 If we are deferring the output of debug information, also defer this
23047 output for a function return type.
23048 When adding fields to a record, prevent emitting debug information
23049 for incomplete records, emit the information only when the record is
23051 (components_to_record): New parameter defer_debug.
23052 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
23053 (gnat_to_gnu_field_decl): New function.
23054 (substitution_list, annotate_rep): Call it.
23055 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
23056 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
23057 No longer update discriminants to not be a COMPONENT_REF.
23058 (copy_alias_set): Strip padding from input type; also handle
23059 unconstrained arrays properly.
23061 * gigi.h (write_record_type_debug_info): New function.
23062 Convert to use ANSI-style prototypes. Remove unused
23063 declarations for emit_stack_check, elab_all_gnat and
23064 set_second_error_entity.
23065 (gnat_to_gnu_field_decl): New decl.
23067 * utils.c (write_record_type_debug_info): New function.
23068 (finish_record_type): Delegate generation of debug information to
23069 write_record_type_debug_info.
23070 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
23071 (update_pointer_to): Fix pasto.
23072 (convert) <UNION_TYPE>: Accept slight type variations when
23073 converting to an unchecked union type.
23075 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
23076 replace the N_Freeze_Entity with a null statement.
23078 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
23079 within a constrained subcomponent of an enclosing record, place the
23080 freeze nodes in the scope stack entry for the enclosing record.
23081 (Undelay_Type): New Subprogram.
23082 (Set_Small_Size): Pass T, the type to modify; all callers changed.
23083 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
23084 within records; allow them to have freeze nodes if their base types
23087 * exp_util.adb (Remove_Side_Effects): Properly test for
23088 Expansion_Delayed and handle case when it's inside an
23089 N_Qualified_Expression.
23091 * sem_ch3.adb (Derived_Type_Declaration): New predicate
23092 Comes_From_Generic, to recognize accurately that the parent type in a
23093 derived type declaration can be traced back to a formal type, because
23094 it is one or is derived from one, or because its completion is derived
23096 (Constrain_Component_Type): If component comes from source and has no
23097 explicit constraint, no need to constrain in in a subtype of the
23099 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
23100 Minor change to propagate Is_Ada_2005 flag
23102 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
23103 Expansion_Delayed is False.
23104 (assoc_to_constructor): Ignore fields that have a
23105 Corresponding_Discriminant.
23106 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
23107 function returns "by target", dereference the target pointer using the
23108 type of the actual return value.
23109 <all>: Be prepared for a null gnu_result.
23110 (processed_inline_subprograms): Check flag_really_no_inline
23111 instead of flag_no_inline.
23112 (set_second_error_entity): Remove unused function.
23113 (gnat_to_gnu, case N_Selected_Component): Call
23114 gnat_to_gnu_field_decl.
23115 (assoc_to_constructor): Likewise.
23117 2005-03-15 Robert Dewar <dewar@adacore.com>
23118 Ed Schonberg <schonberg@adacore.com>
23119 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23121 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
23122 Must_Be_Byte_Aligned for cases where we do not need to use a
23123 System.Pack_nn unit.
23125 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
23127 Needed now that we do some processing for IN parameters as well. This
23128 may well fix some unrelated errors.
23129 (Expand_Call): Handle case of unaligned objects (in particular those
23130 that come from packed arrays).
23131 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
23132 renamed entity is an inherited operation, re-expand the call using the
23133 original operation, which is the one to call.
23134 Detect attempt to inline parameterless recursive subprogram.
23135 (Represented_As_Scalar): Fix to work properly with private types
23136 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
23137 accurate estimate. Yields True in far fewer cases than before,
23138 improving the quality of code that depends on this test.
23140 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
23141 over both visible and private declarations to remove them from tree,
23142 and mark subprograms declared in package as eliminated, to prevent
23143 spurious use in subsequent compilation of generic units in the context.
23145 * exp_util.ads: Minor cleanup in variable names
23147 * sem_eval.ads, sem_eval.adb: Minor reformatting
23148 (Compile_Time_Known_Bounds): New function
23150 2005-03-15 Ed Schonberg <schonberg@adacore.com>
23152 * exp_ch7.adb (Convert_View): Use base types of underlying types when
23153 determining whether an unchecked conversion is needed for the argument
23154 of an initialization call.
23156 2005-03-15 Ed Schonberg <schonberg@adacore.com>
23158 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
23159 that appears in the instantiation rather than the internal subtype
23160 generated in the wrapper package, to avoid anomalies in gigi when the
23161 target is derived from a private type whose full view is an access type.
23163 2005-03-15 Robert Dewar <dewar@adacore.com>
23165 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
23167 Add documentation to replace the use of this flag
23168 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
23171 2005-03-15 Thomas Quinot <quinot@adacore.com>
23173 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
23174 here from exp_attr so it can be shared between exp_attr and exp_dist.
23175 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
23176 all TSS names, not a subset thereof, and the previous name introduced
23177 an unnecessarily confusion that a distinction might exist between
23178 "OK" TSS names and some "not OK" TSS names.
23180 2005-03-15 Doug Rupp <rupp@adacore.com>
23182 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
23185 2005-03-15 Pascal Obry <obry@adacore.com>
23186 Eric Botcazou <ebotcazou@adacore.com>
23190 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
23191 when IN_RTS. This is to work around a bootstrap path problem.
23193 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
23194 table and pass it to __gnat_install_SEH_handler().
23195 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
23197 * lang.opt: Fix specification of -fRTS=.
23199 2005-03-15 Doug Rupp <rupp@adacore.com>
23200 Bernard Banner <banner@adacore.com>
23201 Vincent Celier <celier@adacore.com>
23202 Arnaud Charlet <charlet@adacore.com>
23205 This change works fine when gnatlib is built from the gcc directory,
23206 but does not work when using the libada Makefile, since GCC_FOR_TARGET
23207 is not passed to ada/Makefile.in, so more work is needed by a
23208 Makefile/configure expert.
23210 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
23211 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
23212 Setup gnatlink switch -M for x86_64 linux, as it is already setup
23214 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
23215 Run ranlib on libgccprefix.a
23216 Define PREFIX_OBJS for Darwin, to build libgccprefix.
23217 (ADA_INCLUDE_SRCS): Split Ada packages.
23219 2005-03-15 Robert Dewar <dewar@adacore.com>
23221 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
23223 * impunit.adb: Add GNAT.UTF_32
23225 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
23227 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
23228 now uses GNAT.UTF_32).
23230 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
23231 capabilities for categorizing characters using Unicode categories
23233 2005-03-15 Ed Schonberg <schonberg@adacore.com>
23235 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
23236 instantiation that has been rewritten as a package body, retrieve spec
23237 to generate proper name for implicit_with_clause.
23238 (Install_Parents): Recognize a parent that is an instantiation but has
23239 been rewritten as a package declaration during analysis.
23241 2005-03-15 Javier Miranda <miranda@adacore.com>
23242 Ed Schonberg <schonberg@adacore.com>
23244 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
23245 parameter reported some error we immediately return. This improves the
23246 behaviour of the frontend in case of errors.
23247 (Install_Parent, Remove_Parent): Introduce new flag
23248 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
23249 ancestor of a generic child unit, when the child is being instantiated.
23250 (Inline_Instance_Body): If we are compiling the private
23251 part or the body of a child unit, restore the proper visibility of the
23252 parents after compiling the instance body.
23254 2005-03-15 Ed Schonberg <schonberg@adacore.com>
23255 Javier Miranda <miranda@adacore.com>
23258 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
23259 of a private type, in which case it is underlying_type that denotes
23260 the proper task. Also modified to use the new entity attribute
23261 that is directly available in the task type and task subtype entities
23262 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
23263 arrays when other dimensions than the first are constrained by
23264 discriminants of an enclosing record.
23265 (Insert_Explicit_Dereference): If the prefix is an indexed component or
23266 a combination of indexed and selected components, find ultimate entity
23267 and generate the appropriate reference for it, to suppress spurious
23269 (Note_Possible_Modification): If an entity name has no entity, return.
23270 (Is_Variable): A function call never denotes a variable.
23271 (Requires_Transient_Scope): For record types, recurse only on
23272 components, not on internal subtypes that may have been generated for
23273 constrained components.
23275 2005-03-15 Ed Schonberg <schonberg@adacore.com>
23277 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
23278 Eliminated as candidates for resolution. Both efficient, and avoids
23279 anomalies with operators declared in deleted code.
23280 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
23281 expansion is disabled (as when compiling a generic) to prevent spurious
23282 warnings on prefixes of selected components.
23284 2005-03-15 Ed Schonberg <schonberg@adacore.com>
23286 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
23287 attached to a list before checking whether it appears in the private
23288 declarations of the current package.
23289 (Make_Inequality_Operator): Insert declaration in proper declarative
23290 list rather than just setting the Parent field, so that
23291 Is_Private_Declaration can handle it properly.
23293 2005-03-15 Ed Schonberg <schonberg@adacore.com>
23295 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
23296 a renaming a body, check that the renamed subprogram in not intrinsic.
23297 (Find_Direct_Name): If several use_visible entities hide
23298 each other, and the context is a predefined file compiled through
23299 rtsfind, keep only the entity that comes from a predefined file.
23301 2005-03-15 Geert Bosch <bosch@adacore.com>
23303 * s-fatgen.adb (Valid): Extend special exceptions to account for long
23304 long float padding to also cover AMD64 and IA64.
23306 2005-03-15 Gary Dismukes <dismukes@adacore.com>
23308 * s-imgwch.adb: Add with and use of Interfaces.
23309 (Img_Wide_Character): Change type of Val to Unsigned_16.
23310 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
23312 2005-03-15 Matthew Gingell <gingell@adacore.com>
23314 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
23316 2005-03-15 Robert Dewar <dewar@adacore.com>
23318 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
23320 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
23322 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
23324 2005-03-15 Robert Dewar <dewar@adacore.com>
23326 * s-bitops.adb, s-bitops.ads,
23327 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
23328 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
23329 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
23330 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
23331 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
23332 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
23333 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
23334 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
23337 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
23339 * utils2.c (build_binary_op): Fix typo.
23341 2005-03-15 Doug Rupp <rupp@adacore.com>
23343 * s-crtl.ads (popen,pclose): New imports.
23345 2005-03-15 Cyrille Comar <comar@adacore.com>
23347 * comperr.adb (Compiler_Abort): remove references to obsolete
23348 procedures in the bug boxes for various GNAT builds.
23350 2005-03-15 Vincent Celier <celier@adacore.com>
23352 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
23354 2005-03-15 Geert Bosch <bosch@adacore.com>
23355 Arnaud Charlet <charlet@adacore.com>
23356 Robert Dewar <dewar@adacore.com>
23357 Cyrille Comar <comar@adacore.com>
23358 Sergey Rybin <rybin@adacore.com>
23360 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
23361 too specific and long-winded to be appropriate for the GNAT User's
23363 Warn about use of GCC switches not documented in the GNAT User's Guide,
23364 as these may cause generated code to not conform to Ada semantics.
23365 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
23366 Add documentation for -gnat95 and -gnat05 switches
23367 Remove paragraph documenting obsolete way to refer to third party
23369 Add a few references to Ada_05 that were missing.
23370 Update documentation on -gnatZ/-gnatL.
23371 Document limitation when using -m64 under Solaris.
23372 Change the "Name Casing" subsection of the pretty-printer section
23373 according to the changes in the dictionary processing.
23375 * gnat_rm.texi: Document the Ada_05 pragma.
23376 Section on record representation clauses describes the new more
23377 relaxed rules about placement of large packed bit array components.
23378 Add documentation of GNAT.UTF_32
23380 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
23382 * misc.c (gnat_post_options): Turn off structural
23385 2005-03-08 Laurent Guerby <laurent@guerby.net>
23387 * system-linux-sparc.ads: Fix typo in previous commit.
23389 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
23390 Laurent Guerby <laurent@guerby.net>
23393 * system-linux-sparc.ads: New.
23394 * Makefile.in: Add sparc linux entry.
23396 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
23398 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
23399 parameters as unused.
23401 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
23402 Partial merge from libada-gnattools-branch:
23404 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
23405 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
23406 into code in gnattools/Makefile.in. Remove direct dependencies on
23407 stamp-tools by tools clauses.
23408 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
23409 * config-lang.in: Add gnattools to $lang_dirs.
23411 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
23414 * utils.c (gnat_type_for_mode): Return null instead of ICE because
23415 we asked for an unknown mode.
23417 2005-02-12 Richard Henderson <rth@redhat.com>
23419 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
23420 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
23422 2005-02-10 Andreas Jaeger <aj@suse.de>
23424 * init.c (__gnat_initialize): Mark parameter as unused.
23426 2005-02-09 Doug Rupp <rupp@adacore.com>
23428 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
23429 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
23431 2005-02-09 Doug Rupp <rupp@adacore.com>
23433 * gnatchop.adb (dup, dup2),
23434 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
23436 * gnatlbr.adb (mkdir),
23437 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
23439 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
23441 2005-02-09 Doug Rupp <rupp@adacore.com>
23443 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
23445 2005-02-09 Robert Dewar <dewar@adacore.com>
23446 Thomas Quinot <quinot@adacore.com>
23447 Javier Miranda <miranda@adacore.com>
23448 Pascal Obry <obry@adacore.com>
23449 Ed Schonberg <schonberg@adacore.com>
23450 Doug Rupp <rupp@adacore.com>
23451 Gary Dismukes <dismukes@adacore.com>
23452 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23454 * g-zstspl.ads: New file.
23456 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
23458 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
23460 Add definition of Wide_Wide_Space for AI-285
23462 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
23463 interface (to support Ada 95 and Ada 2005 units).
23464 Add Unbounded_IO files
23465 Add entries for Wide_Wide packages for AI-285
23466 Add list of containers packages to Ada 2005 unit list
23468 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
23469 support new Unbounded_IO package cleanly.
23471 * g-utf_32.ads, g-utf_32.adb: New files.
23473 * Makefile.rtl: Add entry for g-utf_32
23474 Add new files for Unbounded_IO
23475 Adjust make file for new AI-285 wide wide packages
23476 Add AI-302 containers to the run time.
23478 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
23479 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
23480 subprograms for AI-301.
23482 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
23484 * a-stunau.ads: Minor comment correction
23486 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
23488 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
23489 (Check_RPC): Update to match changes in expanded code.
23490 Clean up unused entity.
23492 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
23493 was not taken into account.
23494 This includes proper initialization with Normalize_Scalars.
23495 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
23496 normalize scalars cases (particularly the latter) to do a better job
23497 of finding invalid representations.
23499 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
23501 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
23504 * exp_dist.adb: Add support for wide wide character type
23505 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
23506 private part, generate stub bodies at the end of the private part,
23507 not the visible part.
23508 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
23510 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
23511 generic wrapper to execute final processing after completing the
23512 expansion of the RPC receiver for an RACW.
23514 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
23515 packages and attributes.
23516 (Preset_Names): Addition of the new reserved words of Ada 2005,
23517 that is interface, overriding and synchronized.
23518 (Get_Pragma_Id): Give support to the use of the new reserved word
23519 "interface" as a pragma name.
23520 (Is_Pragma_Name): Give support to the use of the new reserved word
23521 "interface" as a pragma name.
23522 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
23523 attribute implementation.
23525 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
23526 checks to entities that are output parameters of Asm operations.
23527 Handle the Stream_Size attribute.
23528 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
23530 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
23532 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
23533 for second parameter being 0.0.
23534 Add support for wide wide character type.
23535 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
23537 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
23538 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
23539 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
23540 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
23541 for wide wide character cases.
23543 * cstand.adb: Create entities for Wide_Wide_Character and
23546 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
23547 accordance with AI-258.
23548 Add new declarations for 16/32 bit C character types (Part of AI285)
23550 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
23551 (Obsolescent_Warning): New field
23552 (Rep_Clause): New local subprogram used to share code. Returns the rep
23553 clause for which the name is given in parameter.
23554 (Has_Stream_Size_Clause): New routine.
23555 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
23556 (Address_Clause): Implementation is now using Rep_Clause.
23557 (Alignment_Clause): Idem.
23558 (Size_Clause): Idem.
23560 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
23561 entity in non-Ada 2005 mode and generate warning.
23563 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
23564 (Prag): Code cleanup. Remove old gnat pragma "overriding"
23566 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
23567 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
23568 on the named unit if the pragma is not in the current compilation unit,
23569 so that elaboration calls in the current unit can set up an elaboration
23570 dependency on the named unit, as needed.
23571 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
23572 subprogram as well as for subprograms declared within a package.
23573 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
23576 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
23577 to z) to avoid some instances of duplication for Wide_Wide packages.
23579 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
23582 * scn.adb: Char_Literal_Value field is now a Uint
23584 * scng.adb: Significant rewrite to handle new Ada 2005 features
23585 allowing wide and wide wide characters in program text, e.g. for
23586 identifiers, as described in AI-285.
23587 (Set_Reserved): New procedure, makes setting up keywords cleaner.
23588 (Initialize_Scanner): Register the new reserved words of Ada 2005.
23589 (Scan): Give support to the new reserved words.
23591 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
23592 warning notifying that interface, overriding, and synchronized are
23593 new reserved words.
23594 (P_Pragma): Allow the use of the new reserved word "interface" as
23597 * gnatls.adb, gnatbind.adb,
23598 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
23599 identifiers named "interface" to "SAL_Interface".
23601 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
23602 (Structured Exception handling).
23603 (Gen_Main_C): Idem.
23606 (Gen_Main_Ada): Set the default exit code if specified.
23607 (Gen_Main_C): Likewise.
23609 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
23610 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
23612 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
23615 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
23616 has a collision with the new Ada 2005 "interface" reserved word.
23618 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
23619 generate a warning notifying that interface, overriding, and
23620 synchronized are new reserved words.
23622 * scans.ads (Token_Type): Addition of the tokens corresponding to the
23623 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
23624 and Tok_Synchronized.
23626 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
23627 "dispatching" rather than "primitive" operations, since dispatching
23628 calls are now allowed to abstract formal subprograms (which are not
23630 Char_Literal_Value field is now a Uint
23631 (Resolve_Slice): If the prefix is an access to an unconstrained array,
23632 compute the actual subtype of the designated object to impose the proper
23634 (Resolve_Selected_Component): Do not insert an access check if the
23635 prefix is an access type: such a node is expanded into an explicit
23636 dereference, on which the access check is performed anyway. Removes
23637 expensive duplicate checks.
23638 (Resolve_Call): Use new flag Is_Obsolescent and field
23639 Obsolescent_Warning so that pragma Obsolescent works on library
23641 Add support for wide wide character type
23642 (Resolve_Allocator): Replace the error message on wrong null-exclusion
23643 value by a warning message.
23644 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
23645 as fixed-point, and one of the operands is non-static and universal, it
23646 can only be an illegal exponentiation operation, in which case there is
23647 no real value to retrieve.
23649 * exp_strm.adb: Add support for wide wide character type
23650 (Build_Elementary_Input_Call): Compute the size of the stream element by
23651 querying the rep chain to find the Stream_Attribute attribute value.
23652 (Build_Elementary_Write_Call): Ditto.
23654 * sem_aggr.adb: Char_Literal_Value field is now a Uint
23655 Add support for wide wide character type
23656 Replace the error messages on wrong null-exclusion value by warnings
23657 as described in Ada 2005.
23658 (Resolve_Extension_Aggregate): Document the fact that the error
23659 message on class-wide expressions in extensions aggregates.
23661 * sem_case.adb: Add support for wide wide character type
23663 * sem_ch13.adb: Add support for wide wide character type
23664 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
23666 * sem_ch3.adb: Add support for wide wide character type
23667 (Process_Subtype): If constraint is illegal for the type, set Ekind of
23668 now-useless Itype, to prevent cascaded errors on a compiler built
23671 * sem_ch8.adb: Add with and use of Sem_Disp.
23672 (Analyze_Subprogram_Renaming): Replace unclean uses of
23673 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
23674 of Corresponding_Spec to Empty).
23675 (Attribute_Renaming): Replace use of Corresponding_Spec with
23676 Corresponding_ Formal_Spec and simplify condition.
23677 (Use_One_Package): Check that scope of homonym of identifier is defined,
23678 before checking whether it is a wrapper package.
23679 Add support for wide wide character type
23681 * sem_eval.adb: Add support for wide wide character type.
23682 (Eval_Arithmetic_Op): Check for compile time known signed integer
23683 overflow in the non-static case.
23684 (Subtypes_Statically_Match): A formal scalar type and its base type do
23685 not statically match.
23687 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
23688 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
23690 (Unit_Declaration_Node): Ditto.
23691 (Is_Variable_Prefix): For the case of an indexed component whose prefix
23692 has a packed array type, the prefix has been rewritten into a type
23693 conversion. Determine variable-ness from the converted expression.
23694 Handle wide wide character cases.
23696 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
23698 * stringt.ads, stringt.adb: Handle full UTF-32 range.
23699 Remove ["0A"] from comment, since it can look like a line terminator.
23700 Currently we don't permit this, but this is under discussion by the
23701 ARG, and it is easy enough to use a different example.
23703 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
23704 handling UTF-32 encoding for wide wide character.
23705 Implement new brackets coding ["hhhhhhhh"]
23706 Add UTF-8 encodings for full UTF-32 range
23708 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
23710 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
23711 bit range Add full UTF-32 support.
23712 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
23713 notify that constraint error will be raised at run-time
23714 because a null value is assigned to a null-excluding object.
23715 Remove some obsolete declarations and make Char_Code
23718 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
23719 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
23720 Rcheck subprograms.
23722 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
23723 wrong null-exclusion value by a warning message.
23724 (Enable_Range_Check): Do range check if the prefix is an
23725 explicit dereference whose designated object is an unconstrained array.
23726 Current algorithm for removing duplicate checks is over-eager in this
23729 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
23730 null-exclusion value by a warning message
23732 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
23733 completely. Add support for Uint2 field
23735 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
23736 exp_prag.adb: Char_Literal_Value field is now a Uint.
23738 * exp_util.adb (Insert_Actions): Replace
23739 N_Formal_Subprogram_Declaration by
23740 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
23741 Char_Literal_Value field is now a Uint.
23743 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
23744 defined for subprogram renaming declarations. When set, the field
23745 indicates the defining entity of a corresponding formal subprogram
23746 when the renaming corresponds to a formal subprogram association in an
23748 (Set_Corresponding_Formal_Spec): New procedure to return
23749 Corresponding_Formal_Spec field.
23750 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
23751 (which is now a subtype).
23752 Char_Literal_Value field is now a Uint
23754 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
23755 pointer to the base of the dispatch table.
23756 Minor changes to comments.
23757 (Controlling_Type): New function for determining the tagged type
23758 associated with a tagged primitive subprogram.
23759 (Expand_Dispatching_Call): Add support for a controlling actual that is
23760 directly a value of type Ada.Tag rather than a tagged object.
23762 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
23763 describing the new layout.
23764 (Dispatch_Table): The expander computes the actual array size, allocates
23765 the Dispatch_Table record accordingly, and generates code that displaces
23766 the base of the record after the Typeinfo_Ptr component. The access to
23767 these components is done by means of local functions.
23768 (Offset_To_Top): New function.
23769 (Typeinfo_Ptr): New function.
23770 (Get_TSD): Modified to access the new position of the TSD.
23771 (Set_TSD): Modified to save the TSD in its new position.
23773 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
23774 case of formal abstract subprograms. Add check and message for -gnat05.
23777 * sem_ch12.adb: Add with and use for Sem_Disp.
23778 (Analyze_Associations): Minor change from "=" to "in" for use of
23779 N_Formal_Subtype_Declaration (which is now a subtype).
23780 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
23781 N_Formal_Subtype_Declaration (which is now a subtype).
23782 (Analyze_Formal_Subprogram): Add handling for
23783 N_Formal_Abstract_Subprogram, marking the formal as abstract and
23784 dispatching, setting the controlling status of the formal parameters
23785 and result, and issuing an error if there is no controlling type for
23786 the formal subprogram.
23787 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
23788 which is an unclean use of that field, we set the new field
23789 Corresponding_Formal_Spec to make the formal subprogram available to
23790 processing in Analyze_Subprogram_Declaration.
23791 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
23792 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
23793 Constrained, so that it is is does not statically match its anonymous
23796 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
23797 abstract formal subprograms in error check for functions returning
23798 abstract types. Set scope of new designator for
23799 a parameterless subprogram, so that it is available when checking the
23800 body for nested subprograms, before full analysis of said body.
23801 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
23802 subprogram only if inner one comes from source.
23803 (Analyze_Function_Call): If the call is given in object notation, the
23804 analysis of the name rewrites the node and analyzes it with the proper
23805 argument list. After analyzing the name, if the call has been rewritten
23806 and the result type is set, no further analysis is needed.
23807 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
23808 mark in function specification, in a context where the formals are
23809 visible and hide outer homographs.
23811 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
23812 as the tagged type for the cases of abstract formal subprograms and
23813 renamings of those. Clean up spec comments.
23814 (Check_Dispatching_Context): Add error message to indicate "abstract
23815 procedure", covering the case of a call to a formal abstract procedure
23816 that has statically tagged operands.
23817 (Check_Dispatching_Call): Check for the case of an actual given by
23818 a tag-indeterminate function call whose type is an ancestor of the
23819 containing call's associated tagged type. This situation can occur
23820 for inherited primitives with function defaults. In this case we
23821 use the tagged type's tag directly as the controlling argument for
23823 (Expand_Call): Name change on call to Expand_Dispatch_Call.
23825 * sprint.adb (Sprint_Node_Actual): Split
23826 N_Formal_Subprogram_Declaration into two alternatives for the new
23827 cases N_Formal_Abstract_Subprogram_Declaration and
23828 N_Formal_Concrete_Subprogram_Declaration.
23829 Char_Literal_Value field is now a Uint.
23831 * trans.c: Get rid of junk Uint2 reference.
23832 Char_Literal_Value field is now a Uint.
23833 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
23834 (gigi): Correct third arg to gimplify_body.
23836 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
23837 (TYPE_LANG_FLAG_0): Check for record or union.
23839 * treepr.adb: Char_Literal_Value field is now a Uint
23841 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
23844 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
23845 Add full UTF-32 support
23846 Char_Code is now 32 bits
23848 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
23849 wide character UTF_32 line terminators.
23850 Initialize Main_Source_File to avoid error when no main
23853 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
23854 (Main_Source_File) when no main source has been loaded, to avoid
23857 2005-02-09 Robert Dewar <dewar@adacore.com>
23859 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
23860 Fix name of Set routine
23862 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
23865 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
23866 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
23869 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
23870 forms of Get_Line subprograms for AI-301.
23872 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
23873 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
23874 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
23875 a-stwima.ads: Minor reformatting.
23877 2005-02-09 Doug Rupp <rupp@adacore.com>
23878 Thomas Quinot <quinot@adacore.com>
23880 * adaint.c, adaint.h
23881 [VMS] (to_ptr32): New function.
23882 (MAYBE_TO_PTR32): New macro.
23883 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
23885 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
23886 [VMS] (#define fork()): Remove since unneccessary.
23887 (__gnat_set_close_on_exec): New routine to support
23888 GNAT.OS_Lib.Set_Close_On_Exec.
23890 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
23891 the parent side as close-on-exec so that they are not inherited by the
23894 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
23895 set or clear the FD_CLOEXEC flag on a file descriptor.
23897 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
23898 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23902 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
23903 on the field if Pragma Component_Alignment (Storage_Unit).
23904 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
23905 side-effects as if it were a constant; also make SAVE_EXPR to protect
23907 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
23909 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
23910 (components_to_record): Test it.
23911 Fix improper usage of REFERENCE_CLASS_P.
23913 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
23916 * utils2.c: Minor reformatting.
23918 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
23919 handle other cases like RECORD_TYPE.
23921 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
23923 2005-02-09 Ed Schonberg <schonberg@adacore.com>
23925 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
23926 component of an array of arrays in an assignment context, and the
23927 aggregate has component associations that require sliding on
23928 assignment, force reanalysis of the aggregate to generate a temporary
23929 before the assignment.
23930 (Must_Slide): Make global to the package, for use in Gen_Assign.
23932 2005-02-09 Ed Schonberg <schonberg@adacore.com>
23934 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
23935 unchecked union with no inferable discriminants, return a
23936 Raise_Program_Error node, rather than inserting it at the point the
23938 (Expand_Record_Equality, Component_Equality): Handle properly the case
23939 where some subcomponent is an unchecked union whose generated equality
23940 code raises program error.
23942 2005-02-09 Doug Rupp <rupp@adacore.com>
23944 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
23945 [VMS] (#define exit hack): Remove.
23947 2005-02-09 Pascal Obry <obry@adacore.com>
23948 Arnaud Charlet <charlet@adacore.com>
23950 * init.c (__gnat_initialize): Add a new parameter eh which contains the
23951 address of the exception registration. The Win32 version of this
23952 routine calls __gnat_install_SEH_handler() to initialize the SEH
23953 (Structured Exception Handling) handler.
23954 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
23955 SEH (Structured Exception Handling) now.
23956 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
23957 (__gnat_initialize for ppc-vxworks): Adjust comments and the
23958 preprocessor condition protecting the call to the extra eh setup
23959 subprogram, which is only available for the ppc target.
23960 (__gnat_clear_exception_count): replaced reference to
23961 variable taskIdCurrent by call to taskIdSelf(), cleaner.
23963 * seh_init.c: New file.
23965 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
23966 (GNATBIND_OBJS): Idem.
23968 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
23969 routine takes a new parameter (a pointer to the exception registration
23970 for the SEH (Structured Exception Handling) support.
23972 * raise.h: (__gnat_install_SEH_handler): New prototype.
23973 Update copyright notice.
23975 * s-tassta.adb (Task_Wrapper): Declare the exception registration
23976 record and initialize it by calling __gnat_install_SEH_handler.
23978 2005-02-09 Vincent Celier <celier@adacore.com>
23980 * make.adb (Gnatmake): Do not fail when the main project has no object
23983 2005-02-09 Doug Rupp <rupp@adacore.com>
23985 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
23986 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
23987 [VMS]: Add translations for g-enblsp.adb.
23989 * s-asthan-vms.adb: Removed.
23990 * s-asthan-vms-alpha.adb: Added.
23992 2005-02-09 Pascal Obry <obry@adacore.com>
23994 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
23995 (LIBGNAT_OBJS): Add seh_init.o.
23997 2005-02-09 Arnaud Charlet <charlet@adacore.com>
24000 * Makefile.in: Link all gnat tools with -static-libgcc, since
24001 -shared-libgcc is now used by default on some systems (e.g. linux with
24003 Remove references to Makefile.prolog/generic, no longer used.
24005 2005-02-09 Vincent Celier <celier@adacore.com>
24007 * prj-makr.adb (Process_Directory): Put file name in canonical case
24008 before matching against the patterns.
24009 If gnatname has been invoked as <prefix>-gnatname
24010 then invoke the compiler as <prefix>-gcc, not just "gcc".
24012 2005-02-09 Ed Schonberg <schonberg@adacore.com>
24014 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
24015 with expansion disabled. The actual subtype is needed among other
24016 places when the selected component appears in the context of a loop
24017 bound, and denotes a packed array.
24018 (Operator_Check): Always use the first subtype in the
24019 error message, to avoid the appearance of internal base types.
24020 (Transform_Object_Operation): Copy each actual in full
24021 to the parameter associations of the constructed call, rather than
24022 using the shallow copy mechanism of New_Copy_List. This ensures that
24023 the chaining of named associations is done properly.
24024 (Complete_Object_Operation): Rewrite node, rather than
24025 replacing it, so that we can trace back to the original selected
24028 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
24029 and calls that use object notation, if the called function is not
24030 declared in a withed unit, place the elaboration constraint on the
24031 unit in the context that makes the function accessible.
24032 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
24033 imposes an elaboration constraint between two packages.
24035 2005-02-09 Ed Schonberg <schonberg@adacore.com>
24037 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
24038 views of a private type after handling its private dependents, to
24039 maintain proper stack discipline between entry and exit from the
24042 2005-02-09 Cyrille Comar <comar@adacore.com>
24044 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
24045 Minor reformatting.
24047 2005-02-09 Arnaud Charlet <charlet@adacore.com>
24049 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
24050 fields for foreign threads.
24052 2005-02-09 Doug Rupp <rupp@adacore.com>
24054 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
24055 recursion warnings when compiled with -gnatdm.
24057 2005-02-09 Robert Dewar <dewar@adacore.com>
24059 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
24060 Slight fix to documentation of -gnaty with no parameters
24062 * xr_tabls.ads: Add ??? comment for missing overall comment
24064 * xsinfo.adb: Make default file name be sinfo.h, since this is what
24065 we now use by default.
24067 * xsnames.adb: Adjust end of file test to look for five space followed
24068 by '#' instead of six spaces. The format of xsnames.adb was modified
24069 in the last update.
24071 * a-numeri.ads: Add reference to AI-388 for greek letter pi
24074 * clean.adb: Minor reformatting.
24076 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
24077 gnatname.adb: Minor reformatting
24078 Add 2005 to copyright output when utility is run
24080 * csets.adb: Eliminate obsolete comment
24082 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
24085 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
24087 2005-02-09 Sergey Rybin <rybin@adacore.com>
24089 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
24090 the difference between compact and incompact layout and add the record
24091 representation clause to the example illustrating different layouts.
24092 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
24093 component clauses").
24095 2005-02-09 Florian Villoing <villoing@adacore.com>
24097 * gnat_ugn.texi: Fix typos.
24098 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
24100 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
24101 in the generated documentation.
24103 2005-02-09 Arnaud Charlet <charlet@adacore.com>
24105 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
24107 Update linker wrapper when linking with non GNU C++.
24109 2005-02-09 Pascal Obry <obry@adacore.com>
24112 Document the procedure to debug the DllMain routine on Windows.
24113 Add note about -funwind-tables and mixed Ada and C/C++ programming in
24115 Document new BIND qualifer /RETURN_CODES=VMS.
24117 2005-02-09 Ben Brosgol <brosgol@adacore.com>
24119 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
24120 Edited gnatmetric chapter
24122 2005-02-09 Robert Dewar <dewar@adacore.com>
24125 Changes to document new wide wide character support
24127 Update documentation on Normalize_Scalars and Initialize_Scalars
24129 2005-02-09 Pascal Obry <obry@adacore.com>
24131 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
24133 2005-02-09 Jose Ruiz <ruiz@adacore.com>
24135 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
24136 from the VxWorks kernel) that is needed for getting the active
24137 priority of the different tasks.
24139 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
24140 Use a pragma Elaborate_Body in the spec file instead.
24141 Noticed by code reading.
24143 2005-02-09 Thomas Quinot <quinot@adacore.com>
24145 * exp_util.ads: Minor correction in comment.
24147 2005-02-09 Arnaud Charlet <charlet@adacore.com>
24149 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
24150 since this procedure is now too complex to be worth inlining.
24152 2005-02-09 Richard Henderson <rth@redhat.com>
24154 * utils.c (gnat_define_builtin): Remove.
24155 (gnat_install_builtins): Use build_common_builtin_nodes.
24157 2005-02-09 Arnaud Charlet <charlet@adacore.com>
24159 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
24160 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
24161 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
24162 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
24163 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
24164 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
24165 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
24166 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
24167 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
24168 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
24169 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
24170 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
24171 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
24172 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
24173 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
24174 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
24175 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
24176 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
24177 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
24178 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
24179 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
24180 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
24181 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
24182 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
24183 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
24184 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
24185 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
24186 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
24187 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
24188 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
24189 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
24190 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
24191 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
24192 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
24195 2005-01-27 Laurent Guerby <laurent@guerby.net>
24197 * Makefile.in: Fix a-intnam.ads from previous commit,
24198 add 2005 to copyright.
24199 * a-intman-rtems.ads: Renamed to...
24200 * a-intnam-rtems.ads:
24202 2005-01-27 Laurent Guerby <laurent@guerby.net>
24204 * Makefile.in: Rename GNAT RTEMS specific files.
24205 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
24206 5rosinte.ads, 5rparame.adb: Replaced by files below.
24207 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
24208 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
24210 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
24211 Laurent Guerby <laurent@guerby.net>
24214 * 5rosinte.ads: Add No_Key constant.
24215 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
24216 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
24218 2005-01-26 Laurent Guerby <laurent@guerby.net>
24221 * i-cobol.adb (Valid_Numeric): Handle zero length case.
24223 2005-01-20 Richard Henderson <rth@redhat.com>
24225 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
24226 a-intnam-linux.ads and system-linux-alpha.ads.
24227 * a-intnam-linux-alpha.ads: Remove file.
24228 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
24229 * system-linux-alpha.ads: New file.
24231 2005-01-18 Jakub Jelinek <jakub@redhat.com>
24234 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
24235 set to the new string.
24237 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
24239 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
24242 2005-01-18 Richard Henderson <rth@redhat.com>
24244 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
24245 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
24247 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
24249 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
24251 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
24252 (GCC_ZCX_Support): Likewise.
24254 2005-01-11 Bastian Blank <waldi@debian.org>
24256 * system-linux-s390.ads: Define Preallocated_Stacks.
24257 * system-linux-s390x.ads: Likewise.
24259 2005-01-04 Arnaud Charlet <charlet@adacore.com>
24261 * gnat_ugn.texi: Fix texi errors with null variables.
24263 2005-01-03 Thomas Quinot <quinot@adacore.com>
24265 * gen-soccon.c: New utility program to generate g-soccon.ads
24268 * socket.c, gsocket.h: Split inclusion of system header files into a
24269 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
24271 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
24272 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
24273 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
24274 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
24275 should not be edited by hand anymore, but should be regenerated using
24278 2005-01-03 Robert Dewar <dewar@adacore.com>
24279 Ed Schonberg <schonberg@adacore.com>
24280 Vincent Celier <celier@adacore.com>
24282 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
24283 on/off, since this is an obsolescent feature, for which we now generate
24286 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
24287 warning mode is set and obsolescent usage of this attribute occurs.
24288 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
24289 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
24290 predates, and partly motivates, the adoption of the AI.
24291 Implement new Ada 2005 attribute Mod
24293 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
24296 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
24298 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
24299 pragma restrictions.
24300 New entry for Ada 2005 attribute Mod.
24303 Add recognition of new pragma Restrictions No_Dependence
24304 Recognize restriction No_Obsolescent_Features at parse time
24306 * bcheck.adb: Add circuitry for checking for consistency of
24307 No_Dependence restrictions.
24309 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
24312 * restrict.ads, restrict.adb: Add subprograms to deal with
24313 No_Dependence restrictions.
24315 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
24318 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
24319 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
24321 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
24322 dummy parameter to scng instantiation.
24323 Needed for new restriction No_Obsolescent_Features
24325 * scn.adb: (Obsolescent_Check): New procedure
24326 Needed for new restriction No_Obsolescent_Features
24328 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
24329 specified by AI-285, needed for implementation of AI-388 (adding greek
24330 pi to Ada.Numerics).
24331 Add new generic formal to scng, needed for new restriction
24332 No_Obsolescent_Features.
24334 * s-rident.ads: Add new restriction No_Obsolescent_Features.
24336 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
24337 restrictions lines.
24338 (Scan_ALI): When finding an unexpected character on an R line, raise
24339 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
24340 Ignore_Errors is True, default restrictions are set and scanning of the
24341 ALI file continues with the next line. Also, when Bad_R_Line is raised
24342 and Ignore_Errors is True, skip to the end of le line.
24344 * sem_ch10.adb: Check that explicit with's do not violate
24345 No_Dependence restrictions.
24346 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
24347 illegal context clauses containing child units of instance.
24349 * sem_prag.adb: Processing and checking for new No_Dependence
24351 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
24352 analyze and check the External argument.
24354 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
24356 2005-01-03 Robert Dewar <dewar@adacore.com>
24358 * atree.adb: Add a fifth component to entities
24359 This allows us to add 32 flags and four new fields
24361 * atree.ads: Add a fifth component to entities
24362 This allows us to add 32 flags and four new fields
24364 * einfo.ads, einfo.adb: Document new fields and new flags now available
24365 Add routines for printing new fields
24367 * treepr.adb: Call routines to print out additional fields if present
24369 2005-01-03 Arnaud Charlet <charlet@adacore.com>
24371 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
24372 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
24374 * Makefile.in: Add support to build shared Ada libraries on solaris x86
24375 Remove gpr2make, replaced by gprmake.
24376 Remove references to gnatmem and libaddr2line.
24377 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
24378 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
24379 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
24380 a-numaux-darwin.ads and a-numaux-darwin.adb
24381 Enable mlib-tgt-lynxos.adb on lynxos.
24383 * Make-lang.in: Remove rules for gpr2make.
24384 When generating sdefault.adb, do not call Relocate_Path
24385 on S3 for function Target_Name, as it is not a path.
24386 Remove references to gnatmem and libaddr2line.
24388 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
24391 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
24393 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
24394 address is incompatible with its base type alignment constraints when
24395 this can be decided statically.
24397 2005-01-03 Olivier Hainque <hainque@adacore.com>
24399 * decl.c (compatible_signatures_p): New function. The intended purpose
24400 is to check if two function signatures for a call-site and a callee are
24401 compatible enough for the call to be valid. The underlying purpose is
24402 to check if a call to a mapped builtin is using the right interface.
24403 The current code actually does not check antyhing - this a placeholder
24404 for future refinements.
24405 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
24406 builtin calls for convention Intrinsic.
24408 * gigi.h (builtin_decl_for): Declare (new function).
24410 * utils.c (gnat_install_builtins): Install the target specific builtins.
24411 (builtin_decl_for): New function, provide a dummy body for now.
24413 2005-01-03 Geert Bosch <bosch@adacore.com>
24415 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
24416 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
24417 (Pred): Implement in terms of Succ.
24419 * trans.c (convert_with_check): Reimplement conversion of float to
24422 2005-01-03 Ed Schonberg <schonberg@adacore.com>
24423 Vincent Celier <celier@adacore.com>
24425 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
24426 bounds can be negative, and must be declared Int, not Nat.
24428 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
24429 array is checked after using the index in the array.
24431 * makegpr.adb (Add_Switches): Check if there is a package for the
24432 processor. If there is no package, do not look for switches.
24434 2005-01-03 Ed Schonberg <schonberg@adacore.com>
24436 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
24437 generation of predefined stream operations (specs and bodies) should
24438 proceed. Under various restrictions these subprograms must not be
24441 2005-01-03 Thomas Quinot <quinot@adacore.com>
24444 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
24445 amount of PCS-specific code in RACW stubs generation.
24446 (Copy_Specification): Set Etype on copied formal parameter entities, as
24447 this information is needed for PolyORB stubs generation.
24448 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
24449 variable Dynamic_Async.
24450 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
24451 (Build_RPC_Receiver_Specification): Make generic again, as recent
24452 changes have allowed RPC receivers to have the same profile for both
24453 variants of the PCS.
24454 Reorganise RPC receiver generation to reduce differences between the
24455 structure of GARLIC and PolyORB RPC receivers.
24456 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
24458 Simplify elaboration code for RCI packages.
24460 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
24461 generation to reduce differences between the structure of GARLIC and
24462 PolyORB RPC receivers.
24464 * s-stratt.adb: Fix typo in comment.
24466 2005-01-03 Thomas Quinot <quinot@adacore.com>
24468 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
24469 copied from Make_Init_Call).
24471 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
24472 reads and assignments on a temporary variable declared with appropriate
24475 2005-01-03 Robert Dewar <dewar@adacore.com>
24477 * i-c.adb (To_C): Raise CE if string is null and Append_Null
24479 2005-01-03 Robert Dewar <dewar@adacore.com>
24481 * i-cstrin.adb (Update): Do not append a null in form called with a
24482 String. This avoids unintended behavior.
24484 2005-01-03 Arnaud Charlet <charlet@adacore.com>
24487 * init.c: Fix warnings on Free BSD section.
24489 2005-01-03 Arnaud Charlet <charlet@adacore.com>
24492 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
24495 2005-01-03 Vincent Celier <celier@adacore.com>
24497 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
24498 libraries when Unique_Compile is True (-u switch).
24501 2005-01-03 Robert Dewar <dewar@adacore.com>
24503 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
24504 upper case letter or underscore after W, as allowed by spec.
24506 2005-01-03 Arnaud Charlet <charlet@adacore.com>
24508 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
24509 darwin port by using proper type definitions from header files.
24510 Use SIGTERM instead of SIGABRT for SIGADAABORT.
24512 2005-01-03 Robert Dewar <dewar@adacore.com>
24514 * par.adb: Enhance error message handling for configuration file
24517 2005-01-03 Robert Dewar <dewar@adacore.com>
24519 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
24520 removed during the previous update (test properly for case of dividing
24521 largest negative number by -1, which generates overflow).
24523 2005-01-03 Ed Schonberg <schonberg@adacore.com>
24524 Sergey Rybin <rybin@adacore.com>
24526 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
24527 to use as the defining identifier for a formal package.
24528 (Remove_Parent): If the instance takes place within (an instance of)
24529 a sibling, preserve private declarations of common parent.
24531 2005-01-03 Ed Schonberg <schonberg@adacore.com>
24533 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
24534 to determine whether one of the operands is a fixed-point type for
24535 which a user-defined multiplication or division operation might be
24538 * sem_res.adb (Valid_Conversion): The legality rules for conversions
24539 of access types are symmetric in Ada 2005: either designated type can
24542 2005-01-03 Vincent Celier <celier@adacore.com>
24544 * s-fileio.adb (Temp_File_Record): Change length of string component
24545 Name from L_tmpnam + 1 to max_path_len + 1.
24547 2005-01-03 Arnaud Charlet <charlet@adacore.com>
24549 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
24550 Self_Id.Deferral_Level = 0.
24551 (Do_Pending_Action): Move this function to the spec.
24553 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
24554 Do_Pending_Action explicitely when needed, in case we're using
24555 No_Abort restrictions.
24557 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
24558 deferral level since it will not get changed by the generated code.
24559 Keeping a default value of 1 would prevent some operations (e.g.
24560 select or delay) to proceed successfully.
24562 2005-01-03 Ben Brosgol <brosgol@adacore.com>
24563 Robert Dewar <dewar@adacore.com>
24564 Cyrille Comar <comar@adacore.com>
24566 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
24567 porting guide chapter (vms version).
24568 Revised doc title (removed "for native platforms") and subtitle.
24569 Add discussion on warning flag for obsolescent features. First we
24570 note that it applies to obsolete GNAT features, which was previously
24571 omitted. Second we contrast the behavior with that of the new
24572 Ada 2005 AI-368 restriction No_Obsolescent_Features.
24573 Preliminary rewriting of GNAT & libraries chapter in order to take
24574 into account default project locations & new project manager
24577 2005-01-03 Robert Dewar <dewar@adacore.com>
24579 * cstand.adb (Create_Operators): Clean up format and documentation of
24580 unary and binary operator result tables. No change in code, just
24581 reformatting and addition of comments.
24583 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
24584 sem_ch2.adb: Minor reformatting
24586 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
24587 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
24588 comments for Tree_Read and Tree_Write.
24590 2005-01-03 Pascal Obry <obry@adacore.com>
24592 * exp_attr.ads: Minor reformatting.
24594 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
24596 * comperr.adb (Compiler_Abort): Add specialized message for GAP
24599 2005-01-03 Ed Schonberg <schonberg@adacore.com>
24601 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
24602 whether the ancestor type is private, as may be the case with nested
24605 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
24608 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
24610 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
24612 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
24613 * utils2.c (build_unary_op): Likewise.
24615 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24617 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
24619 2004-12-19 Richard Henderson <rth@redhat.com>
24621 * trans.c (gigi): Update gimplify_body call.
24623 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
24625 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
24627 2004-12-07 Ed Falis <falis@adacore.com>
24629 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
24630 current task being suspended.
24632 * init.c (__gnat_clear_exception): added to reset VxWorks exception
24634 (__gnat_map_signal): removed test for current task being suspended.
24636 2004-12-07 Gary Dismukes <dismukes@adacore.com>
24638 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
24639 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
24640 targets (such as AAMP).
24642 2004-12-07 Ed Schonberg <schonberg@adacore.com>
24644 * atree.adb (Visit_Itype): Create a new name for the generated itype,
24645 because the back-end may otherwise treat it as a redefinition of the
24648 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
24650 * back_end.adb (Scan_Back_End_Switches): Accept --param.
24652 * lang-specs.h: Accept --param.
24654 2004-12-07 Vincent Celier <celier@adacore.com>
24656 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
24657 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
24658 Current_Body_Suffix => Ada_Body_Suffix).
24659 Take into account Externally_Built attribute.
24661 * clean.adb (In_Extension_Chain): Always return False when one of the
24662 parameter is No_Project.
24663 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
24664 Ada_Language_Index).
24665 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
24666 Process_Languages for procedure Parse).
24668 * gnatcmd.adb (Carg_Switches): New table.
24669 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
24670 Adapt to name changes in package Prj (Current_Spec_Suffix =>
24671 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
24673 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
24674 Header_Num and function Hash are now declared in package Prj,
24677 * prj.adb (Suffix_Of): New function.
24678 (Set (Suffix)): New procedure.
24679 (Hash): One function moved from Prj.Com
24680 (Is_Present, Language_Processing_Data_Of): New functions
24681 (Set): Two new procedures
24682 (Add_Language_Name, Display_Language_Name): New procedures
24684 * prj.ads: (Suffix_Of): New function
24685 (Set (Suffix)): New procedure
24686 Add several types and tables for multi-language support.
24687 (Header_Num): Type moved from Prj.Com
24688 (Hash): Two functions moved from Prj.Com
24689 (Is_Present, Language_Processing_Data_Of): New functions
24690 (Set): Two new procedures
24691 (Add_Language_Name, Display_Language_Name): New procedures
24692 (Naming): Component name changes:
24693 Current_Spec_Suffix => Ada_Spec_Suffix,
24694 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
24695 Impl_Suffixes, Supp_Suffixes.
24696 (Project_Data): New components: Externally_Built, Supp_Languages,
24697 First_Language_Processing, Supp_Language_Processing, Default_Linker,
24698 Default_Linker_Path.
24700 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
24701 new package Language_Processing with its attributes (Compiler_Driver,
24702 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
24703 Binder_Driver, Default_Linker).
24705 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
24706 (Header_Num): Type moved to package Prj
24708 * prj-env.adb: Adapt to name changes in package Prj
24709 (Current_Spec_Suffix => Ada_Spec_Suffix,
24710 Current_Body_Suffix => Ada_Body_Suffix).
24712 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
24713 default to the project path, except the "-" is one of the directories
24714 in env var ADA_PROJECT_PATH.
24715 (Current_Project_Path): Global variable, replacing Project_Path
24716 that was in the body of Prj.Part.
24717 (Project_Path): New function
24718 (Set_Project_Path): New procedure
24719 Initialize Current_Project_Path during elaboration of the package
24720 Remove dependency on Prj.Com, no longer needed
24722 * prj-ext.ads (Project_Path): New function
24723 (Set_Project_Path): New procedure
24725 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
24726 suffix is defined for language <lang>.
24727 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
24728 accessing directly the components of Naming.
24729 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
24730 Reorganise of this package.
24731 Break procedure Check in several procedures.
24733 * prj-nmsc.ads: Replace all procedures (Ada_Check,
24734 Other_Languages_Check and Language_Independent_Check) with a single
24737 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
24738 Process_Languages, no longer needed.
24740 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
24741 Current_Project_Path.
24742 Remove elaboration code, moved to the body of Prj.Ext
24743 Use new function Prj.Ext.Project_Path instead of old variable
24745 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
24746 When comparing with project paths on the stack, first put the resolved
24747 path in canonical case.
24748 (Parse_Single_Project): Set the path name of the project file in the
24749 tree to the normalized path.
24751 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
24752 parameter Process_Languages, no longer needed.
24753 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
24754 Other_Languages_Check.
24756 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
24757 to store the resolved canonical path of the project file.
24758 Remove dependency to Prj.Com, no longer needed
24760 * prj-util.adb: Adapt to name changes in package Prj
24761 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
24764 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
24765 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
24766 Externally_Built, Include_Option, Language_Processing.
24768 * makegpr.adb: Numerous changes due to changes in packages
24771 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
24772 default to the project path, except whe "-" is one of the directories
24773 in env var ADA_PROJECT_PATH.
24774 (Gnatls): In verbose mode, add the new section "Project Search Path:"
24776 2004-12-07 Robert Dewar <dewar@adacore.com>
24778 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
24780 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
24783 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
24784 flag. No longer needed now that we handle this in gnat1drv.adb.
24786 * repinfo.ads: Minor reformatting
24788 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24789 Olivier Hainque <hainque@adacore.com>
24790 Eric Botcazou <ebotcazou@adacore.com>
24792 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
24793 TYPE_SIZE_UNIT of result type if SIZE is not specified.
24794 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
24795 of a bitfield, which we know is useless and causes trouble because of
24796 alignment implications.
24798 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
24800 (process_attributes): Clear DECL_COMMON again when a section attribute
24802 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
24803 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
24804 (create_field_decl): Special case ADDRESSABLE negative to mean
24805 "no bitfield creation", to be used by make_aligning_type. Don't
24806 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
24807 fields claimed addressable still have to be bitfields. Use
24808 value_factor_p instead of a raw binop construction to check for the
24809 position's alignment.
24811 2004-12-07 Geert Bosch <bosch@adacore.com>
24813 * eval_fat.adb: Revert previous change.
24815 2004-12-07 Thomas Quinot <quinot@adacore.com>
24816 Ed Schonberg <schonberg@adacore.com>
24818 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
24819 with an implicit dereference as its prefix, use
24820 Insert_Explicit_Dereference instead of merely rewriting the prefix into
24821 an explicit dereference. This ensures that a reference to the original
24822 prefix is generated, if appropriate.
24824 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
24825 dereference is rewritten to an explicit one, generate a reference to
24826 the entity denoted by its prefix using the original prefix node, so
24827 the dereference can be properly recorded as a read of the denoted
24828 access value, if appropriate.
24830 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
24831 emitting 'assigned but never read' warning on a variable on the basis
24832 that it has an access type.
24833 (Check_References): Emit unreferenced warning when the scope is a
24836 2004-12-07 Robert Dewar <dewar@adacore.com>
24837 Ed Schonberg <schonberg@adacore.com>
24839 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
24842 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
24843 leaving call unchanged.
24844 This deals with the case where the pragma Import specified
24845 an external name, to be handled by the back end.
24847 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
24848 subprogram which is Imported with convention Intrinsic if an
24849 External_Name argument is specified.
24850 (Process_Import_Or_Interface): Properly diagnose link name argument.
24851 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
24852 with Sem_Ch6.Cannot_Inline.
24853 (Process_Inline): Provide separate warning for inapplicable inline
24855 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
24856 treatment is uniform on different targets.
24858 2004-12-07 Ed Schonberg <schonberg@adacore.com>
24860 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
24861 construct is rewritten, preserve end label to permit source navigation.
24863 2004-12-07 Thomas Quinot <quinot@adacore.com>
24865 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
24866 Specific_Build_Stub_Target): New subprograms.
24867 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
24868 the PCS implementation used, using the above PCS-customized subprograms.
24869 Minor reformatting.
24870 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
24871 for generation of DSA code targeted to the PolyORB PCS.
24872 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
24873 implementation of the partition communication subsystem in ancillary
24875 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
24876 PolyORB_Support.Build_Stub_Type): New subrograms containing the
24877 PCS-specific part of Add_Stub_Type.
24878 (Insert_Partition_Check): Use runtime library function to perform
24881 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
24882 (RE_Same_Partition): New entity, from s-parint.
24884 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
24886 2004-12-07 Gary Dismukes <dismukes@adacore.com>
24888 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
24889 Output the copyright message on a separate line from the version
24892 2004-12-07 Joel Brobecker <brobecker@adacore.com>
24894 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
24895 compile-time warning.
24897 2004-12-07 Robert Dewar <dewar@adacore.com>
24899 * g-regpat.adb: (Match): Change a misuse of or to or else
24901 2004-12-07 Ed Schonberg <schonberg@adacore.com>
24904 (Generate_Reference): Handle properly a reference to an entry formal,
24905 when an accept statement has a pragma Unreferenced for it.
24907 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
24908 and the Has_Pragma_Unreferenced flag for each formal before analyzing
24909 the body, to ensure that warnings are properly emitted for each accept
24910 statement of a given task entry.
24912 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
24914 * Makefile.in: Add support for foreign threads on VMS.
24916 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24918 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
24920 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
24922 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
24924 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
24926 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
24928 2004-12-07 Robert Dewar <dewar@adacore.com>
24930 * nlists.adb (Prepend_Debug): Remove parameters and nest within
24932 (Remove_Next_Debug): Same fix
24934 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
24935 maintain back pointers now, though we did not used to, and comments
24937 (Prepend): Remove pragma Inline.
24938 (Remove_Next): Same cleanup
24940 2004-12-07 Thomas Quinot <quinot@adacore.com>
24942 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
24943 used to record an implicit dereference as a read operation on its
24944 prefix when operating under -gnatc. Necessary to avoid spurious
24945 'variable assigned but never read' warnings in that mode.
24946 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
24947 is a non-overloaded implicit dereference, call the above subprogram to
24948 ensure proper recording of references.
24950 2004-12-07 Gary Dismukes <dismukes@adacore.com>
24952 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
24953 to be resolved later as part of Analyze_Iteration_Scheme's call to
24956 2004-12-07 Ed Schonberg <schonberg@adacore.com>
24958 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
24959 prefix is not a scalar type, place error message on prefix, not on
24962 2004-12-07 Bernard Banner <banner@adacore.com>
24964 * vxaddr2line.adb: Add support for x86 vxworks
24966 2004-12-07 Thomas Quinot <quinot@adacore.com>
24968 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
24969 documentation of the behaviour of these functions when passed an IP
24970 address that has no record in the system hosts database and no reverse
24973 * cstand.adb, a-tags.ads: Fix typos in comment.
24975 2004-12-07 Robert Dewar <dewar@adacore.com>
24977 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
24978 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
24979 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
24980 s-poosiz.ads: Minor reformatting
24982 * make.adb: Minor reformatting
24983 Add some ??? comments asking for more comments
24985 * s-poosiz.adb: Minor reformatting
24986 Add comments on alignment requirement
24988 * sinfo.ads: Remove obsolete comment and fix typo.
24990 2004-12-07 Vincent Celier <celier@adacore.com>
24991 Sergey Rybin <rybin@adacore.com>
24993 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
24994 Files" with the new tool and package names.
24995 Reformatting to suppress most of the warnings for line too long
24996 Document the new section "Project Search Path:" in the output of
24998 Add gnatmetric section
25000 2004-12-07 Vincent Celier <celier@adacore.com>
25002 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
25003 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
25004 and -eit to -ept. Added qualifier
25005 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
25007 2004-11-27 Andreas Schwab <schwab@suse.de>
25009 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
25011 2004-11-25 Arnaud Charlet <charlet@adacore.com>
25013 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
25014 internal implementation unit GNAT.Sockets.Thin,
25015 as their usage for sockets is non-portable (using the read and write
25016 functions from the system runtime library is fine on UNIX but won't
25017 work under Windows).
25019 * mingw32.h: Update copyright notice.
25021 2004-11-25 Arnaud Charlet <charlet@adacore.com>
25023 * ada-tree.h: Minor reformatting of previous change to avoid lines
25024 longer than 79 characters.
25026 2004-11-25 Olivier Hainque <hainque@adacore.com>
25028 * tb-gcc.c: GCC infrastructure based implementation of
25031 2004-11-24 Steven Bosscher <stevenb@suse.de>
25033 * misc.c (gnat_post_options): Don't clear
25034 flag_inline_functions.
25036 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
25039 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
25042 2004-11-21 Andreas Jaeger <aj@suse.de>
25044 * stylesw.adb: Change Style_Check_Subprogram_Order to
25045 Style_Check_Order_Subprograms.
25047 2004-11-18 Arnaud Charlet <charlet@adacore.com>
25049 * adaint.h, adaint.c
25050 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
25052 Add also a cast to kill another warning.
25053 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
25054 parameter with the priority class of the parent process instead of
25055 always using the NORMAL_PRIORITY_CLASS.
25056 (__gnat_dup): New function.
25057 (__gnat_dup2): New function.
25058 (__gnat_is_symbolic_link): Enable the effective body of this
25059 function when __APPLE__ is defined.
25061 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
25064 2004-11-18 Olivier Hainque <hainque@adacore.com>
25066 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
25067 address of which may be used to represent "others" and "all others"
25068 choices in exception tables, instead of the current harcoded
25069 (void *)0 and (void *)1.
25070 (Setup_Exception): Do nothing in the GNAT SJLJ case.
25072 * gigi.h (others_decl, all_others_decl): New decls representing the
25073 new Others_Value and All_Others_Value objects.
25074 (struct attrib): Rename "arg" component as "args", since GCC expects a
25075 list of arguments in there.
25077 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
25078 corresponding objects exported by a-exexpr, instead of hardcoded dummy
25081 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
25082 others_decl and all_others_decl instead of hardcoded dummy addresses
25083 to represent "others" and "all others" choices, which is cleaner and
25084 more flexible with respect to the possible eh pointer encoding policies.
25086 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
25087 (process_attributes): Account for the naming change of the "args"
25088 attribute list entry component.
25090 * decl.c (build_attr_list): Rename into prepend_attributes to allow
25091 cumulating attributes for different entities into a single list.
25092 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
25093 attributes for the current entity and propagate first subtype
25094 attributes to other subtypes.
25095 <E_Procedure>: Attribute arguments are attr->args and not
25096 attr->arg any more.
25097 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
25098 argument provided, as this is what GCC expects. Use NULL_TREE instead
25101 2004-11-18 Robert Dewar <dewar@adacore.com>
25103 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
25104 Minor reformatting througout (including new function specs)
25105 Add ??? comments asking for clarification.
25107 2004-11-18 Thomas Quinot <quinot@adacore.com>
25109 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
25110 incomplete duplicate implementation of this subprogram from butil.
25112 2004-11-18 Thomas Quinot <quinot@adacore.com>
25114 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
25115 procedures factors the common processing for building an RPC receiver
25116 for an RCI package or an RACW type.
25117 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
25118 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
25119 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
25121 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
25123 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
25125 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
25126 distribution subprogram identifiers that are either subprogram numbers
25128 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
25129 string distribution identifiers assigned to a given subprogram.
25130 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
25131 (Add_RAS_Dereference_TSS): Add comments.
25132 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
25133 is not referenced yet because it will be used by the PolyORB DSA
25135 (Insert_Partition_Check): Remove fossile code.
25136 (First_RCI_Subprogram_Id): Document this constant.
25137 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
25139 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
25140 replaced with calls to Get_Library_Unit_Name_String. Previously there
25141 were several instances of the same code in different locations in the
25142 compiler; this checkin completes the replacement of all of these
25143 instances with calls to a common subprogram.
25144 Minor reformatting.
25146 * sem_dist.adb: Remove comment noting that RPC receiver generation
25147 should be disabled for RACWs that implement RASs.
25148 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
25150 * sem_util.ads, sem_util.adb (Has_Stream): New function
25151 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
25152 qualified name of a library unit into the name buffer.
25153 (Note_Possible_Modification): Generate a reference only
25154 if the context comes from source.
25156 * snames.ads (PCS_Names): New subtype corresponding to names of
25157 supported implementations of the Partition Communication Subsystem
25158 (PCS) (i.e. the runtime library support modules for the distributed
25161 2004-11-18 Robert Dewar <dewar@adacore.com>
25162 Ed Schonberg <schonberg@adacore.com>
25164 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
25165 (Has_Rep_Pragma): New function
25166 (Has_Attribute_Definition_Clause): New function
25167 (Record_Rep_Pragma): Moved here from sem_ch13.adb
25168 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
25170 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
25172 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
25173 (Expand_Pragma_Psect_Object): New procedure
25174 These procedures contain the revised and cleaned up processing for
25175 these two pragmas. This processing was formerly in Sem_Prag, but
25176 is more appropriately moved here. The cleanup involves making sure
25177 that the pragmas are properly attached to the tree, and that no
25178 nodes are improperly shared.
25180 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
25181 pragmas to Exp_Prag, which is more appropriate.
25182 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
25183 check for duplicates Remove use of Is_Psected flag, no longer needed.
25184 Use new Make_String_Literal function with string.
25186 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
25187 that are functions return universal values, that have to be converted
25188 to the context type.
25189 Use new Make_String_Literal function with string.
25190 (Get_Stream_Convert_Pragma): New function, replaces the use of
25191 Get_Rep_Pragma, which had to be kludged to work in this case.
25193 * freeze.adb: Use new Has_Rep_Pragma function
25195 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
25196 function with string.
25197 Use new Has_Rep_Pragma function.
25199 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
25202 2004-11-18 Robert Dewar <dewar@adacore.com>
25204 * errout.ads, errout.adb: (First_Sloc): New function
25206 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
25207 check (-gnatyx) instead of being included as a redundant construct
25210 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
25211 Style_Check_Order_Subprograms.
25213 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
25214 stylesw.adb: Add Style_Check_Xtra_Parens
25216 * usage.adb: Add line for -gnatyx (check extra parens)
25218 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
25220 2004-11-18 Ed Schonberg <schonberg@adacore.com>
25221 Robert Dewar <dewar@adacore.com>
25223 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
25224 discriminant of a constrained subtype, analyze the copy of the
25225 corresponding constraint, because in some cases it may be only
25226 partially analyzed.
25227 Removes long-lived ??? comments.
25229 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
25230 handled controlled or secondary-stack expressions within the
25231 iteration_scheme of a loop.
25233 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
25234 bounds that may contain functions calls, to prevent memory leaks when
25235 the bound contains a call to a function that uses the secondary stack.
25236 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
25237 generate temporaries for loop bounds that might contain function calls
25238 that require secondary stack and/or finalization actions.
25240 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
25241 selected component and the selector is overloadable (not just a
25242 function) treat as function call, Analyze_Call will disambiguate if
25244 (Analyze_Selected_Component): Do not generate an actual subtype for the
25245 selected component if expansion is disabled. The actual subtype is only
25246 needed for constraint checks.
25247 (Analyze_Allocator): If restriction No_Streams is set, then do
25248 not permit objects to be declared of a stream type, or of a
25249 composite type containing a stream.
25251 * restrict.ads: Remove the a-stream entry from Unit_Array, since
25252 No_Streams no longer prohibits with'ing this package.
25254 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
25255 discriminants, but the parent base has unknown discriminants, there is
25256 no discriminant constraint to inherit. Such a discrepancy can arise
25257 when the actual for a formal type with unknown discriminants is a
25258 similar private type whose full view has discriminants.
25259 (Analyze_Object_Declaration): If restriction No_Streams is set, then
25260 do not permit objects to be declared of a stream type, or of a
25261 composite type containing a stream.
25263 2004-11-18 Ed Schonberg <schonberg@adacore.com>
25265 * exp_dbug.ads: Update documentation to reflect simpler encoding for
25266 protected operations.
25268 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
25269 generated name, it complicates decoding in gdb and hinders debugging
25270 of protected operations.
25271 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
25272 flag for the protected entry barrier function.
25273 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
25274 flag for the protected entry function.
25276 2004-11-18 Nicolas Setton <setton@adacore.com>
25278 * expect.c: Define __unix__ when __APPLE__ is defined.
25280 * Makefile.in: Inform the value of the variable GMEM_LIB in the
25281 Darwin-specific section.
25283 * lang-specs.h: Change the placement of the %1 marker.
25284 Works around the fact that gcc adds -fPIC by default under Darwin.
25286 2004-11-18 Ed Schonberg <schonberg@adacore.com>
25288 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
25289 type of the object with the packed array type, set the Analyzed flag
25290 on the object if it is an entity or simple indexed component, to avoid
25291 spurious type errors.
25293 2004-11-18 Gary Dismukes <dismukes@adacore.com>
25295 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
25296 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
25297 separate line from the version message.
25299 2004-11-18 Ed Falis <falis@adacore.com>
25301 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
25303 (init_float): Eliminate initialization of floating point status for
25304 AE653. The instructions have no effect for vThreads.
25306 2004-11-18 Vincent Celier <celier@adacore.com>
25308 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
25309 gnatbind is invoked with -shared.
25311 2004-11-18 Jose Ruiz <ruiz@adacore.com>
25313 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
25314 for Detect_Blocking which is redundant with the check done within the
25315 procedure Protected_Single_Entry_Call.
25316 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
25317 Detect_Blocking which is redundant with the check done within the
25318 procedure Protected_Single_Entry_Call.
25320 2004-11-18 Vincent Celier <celier@adacore.com>
25322 * makegpr.adb (Compile): Put the compiling switches (in package
25323 Compiler and on the command line) immediately after "-c", instead of
25324 at the end of the command line invocation of the compiler, when
25325 compiling a non-Ada file.
25326 (Build_Global_Archive): When there is no need to rebuild the archive,
25327 set Global_Archive_Exists, so that the archive is passed to the linker
25330 2004-11-18 Robert Dewar <dewar@adacore.com>
25331 Sergey Rybin <rybin@adacore.com>
25334 Remove extra paren check from list of checks for redundant constructs
25335 Add documentation of new -gnatyx style check (check extra parens)
25336 Remove paragraph about gnatelim debug options.
25338 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
25339 objects rather than forbidding dependencies on the package Ada.Streams.
25341 * sinfo.ads: Add ??? note that we should document pragmas passed to
25344 * g-expect.ads: Fix a few typos in the comments.
25346 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
25348 * misc.c (gnat_handle_option): Use %< and %> for quoting in
25351 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
25353 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
25355 2004-11-07 Andreas Schwab <schwab@suse.de>
25357 * Makefile.in (install-gnatlib): Remove spurious hyphen.
25359 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
25362 * Makefile.in (darwin): Set soext to .dylib.
25364 2004-10-26 Vincent Celier <celier@gnat.com>
25365 Thomas Quinot <quinot@act-europe.fr>
25367 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
25368 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
25369 there is no use of GNAT.Sockets.Constants.
25370 Remove remaining pragma Import for C_Write
25371 Remove C_Read and C_Write from internal implementation unit
25372 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
25373 the read and write functions from the system runtime library is fine
25374 on UNIX but won't work under Windows).
25376 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
25377 (Check_Selector): Use C_Recv instead of C_Read.
25378 Selectors are the GNAT.Sockets abstraction to perform a select()
25379 call on a set of descriptors. To allow abortion of an ongoing
25380 select operation, some data is written to a dedicated socket that
25381 is always monitored.
25382 Under Windows, the write and read library functions cannot operate
25383 on sockets, so we need to use send and recv instead, which is portable
25384 across all supported platforms.
25386 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
25387 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
25388 (using the read and write functions from the system runtime library is
25389 fine on UNIX but won't work under Windows).
25391 2004-10-26 Nicolas Setton <setton@act-europe.fr>
25393 * mlib-tgt-darwin.adb: New file.
25395 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25396 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25397 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
25398 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
25401 * Makefile.in: Add support for building shared libraries under Darwin.
25402 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
25403 the low level EH init subprogram to be called from __gnat_initialize.
25405 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
25406 indicates which options to pass to the archive indexer.
25408 * mlib-utl.adb: Add support for calling ranlib with additional
25409 options. This is needed for instance under Mac OS X.
25410 (Ranlib_Options): New global variable, used to store the potential
25411 options to pass to ranlib.
25412 (Ar): Use Ranlib_Options when spawning ranlib.
25413 (Initialize): Set the value of ranlib option.
25415 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
25417 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
25418 instead of 8K, to reflect the real potential needs for stack-checking
25421 2004-10-26 Pascal Obry <obry@gnat.com>
25423 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
25425 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
25426 Windows only the initial thread stack size can be set so it is good to
25427 start we a low stack size.
25428 The OS will adjust the size as needed.
25430 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
25431 Nicolas Setton <setton@act-europe.fr>
25433 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
25434 "__unix__" instead of "unix".
25435 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
25436 sections were just mistakenly ignored. The former is
25437 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
25438 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
25439 of hpux. This prevents an unwanted definition of the symbol
25440 convert_addresses in adaint.o.
25442 2004-10-26 Gary Dismukes <dismukes@gnat.com>
25444 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
25445 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
25447 2004-10-26 Cyrille Comar <comar@act-europe.fr>
25449 * a-filico.ads, a-filico.adb: fix incorrect header.
25451 2004-10-26 Javier Miranda <miranda@gnat.com>
25453 * a-ststio.ads: Fix typo in identifier
25455 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
25457 * sem_ch4.adb: Minor reformatting.
25459 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25461 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
25462 enabled, check the result of unary and binary operations when the
25463 expression is the right-hand side of an assignment.
25465 2004-10-26 Vincent Celier <celier@gnat.com>
25467 * clean.adb (Delete): Do not output warnings when in quiet output and
25468 not in verbose mode.
25469 (Force_Deletions): New Boolean flag, defaulted to False
25470 (Delete): Only delete a file if it is writable, and when
25471 Force_Deletions is True.
25472 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
25473 (Usage): Line for new switch -f
25474 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
25477 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
25479 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
25480 JM type only if its size matches that of the wrapper. When a size is
25481 prescribed and the field is not aliased, remove the wrapper of a JM
25482 type only if the size is not greater than that of the packed array.
25483 (gnat_to_gnu_entity): Change the extension of packed array wrappers
25486 2004-10-26 Geert Bosch <bosch@gnat.com>
25488 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
25489 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
25490 (Pred): Implement in terms of Succ.
25492 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25494 * exp_aggr.adb (Safe_Component): An aggregate component that is an
25495 unchecked conversion is safe for in-place use if the expression of the
25496 conversion is safe.
25497 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
25498 be expandable in place even if the aggregate does not come from source.
25499 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
25500 designated object of an allocator in place, rather than building it
25501 first on the stack. The previous scheme forces a full copy of the array,
25502 and may be altogether unsusable if the size of the array is too large
25503 for stack allocation.
25505 2004-10-26 Robert Dewar <dewar@gnat.com>
25507 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
25508 compares if the component is atomic.
25510 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
25511 array assignment if the component type is atomic.
25513 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25514 Eric Botcazou <ebotcazou@act-europe.fr>
25516 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
25517 is aliased and is a by_reference type, do not pass by copy.
25518 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
25519 detect whether the call is in the right side of an assignment or
25520 the expression of an object declaration. Recurse on component
25521 association within aggregates.
25522 Call it in the condition that determines whether the temporary is
25523 necessary for correct stack-checking.
25525 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
25527 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
25528 RACW_Type, used in the PolyORB version.
25529 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
25530 version and the GARLIC version.
25532 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
25533 Rename RCI_Info to RCI_Locator for better consistency between the
25534 GARLIC and PolyORB versions of the distributed systems annex.
25535 (DSA_Implementation_Name): This enumeration lists the possible
25536 implementations of the Partition Communication Subsystem for the
25537 Distributed Systems Annex (DSA). The three available implementations
25538 are the dummy stub implementation (No_DSA), and two versions based on
25539 two different distribution runtime libraries: GARLIC and PolyORB. Both
25540 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
25542 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
25545 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
25546 between the GARLIC and PolyORB versions of the distributed systems
25548 Remove RE_Unbounded_Reclaim_Pool since it is unused.
25550 2004-10-26 Gary Dismukes <dismukes@gnat.com>
25552 * gnat1drv.adb: Suppress calling the back end when
25553 Frontend_Layout_On_Target is true.
25555 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
25557 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
25558 Set_Read_Only): New subprograms.
25559 These new routines allow the user to set or unset the Owner execute
25560 and Owner write permission flags on a file.
25562 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
25563 GNAT.OS_Lib.Set_Executable instead of rolling our own.
25565 2004-10-26 Matthew Gingell <gingell@gnat.com>
25567 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
25569 2004-10-26 Pascal Obry <obry@gnat.com>
25571 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
25572 memory before the faulting page we properly test the process read
25573 access for this address using appropriate Win32 routine.
25574 (HPUX sections): guard with "__hpux__" instead of "hpux".
25576 2004-10-26 Robert Dewar <dewar@gnat.com>
25578 * lib-xref.adb (Generate_Reference): Don't complain about reference to
25579 entry parameter if pragma Unreferenced set, since we do not properly
25580 handle the case of multiple parameters.
25582 2004-10-26 Vincent Celier <celier@gnat.com>
25584 * prj-env.adb: (Contains_ALI_Files): New Boolean function
25585 (Ada_Objects_Path.Add): For a library project, add to the object path
25586 the library directory only if there is no object directory or if the
25587 library directory contains ALI files.
25588 (Set_Ada_Paths.Add.Recursive_Add): Ditto
25590 2004-10-26 Vincent Celier <celier@gnat.com>
25592 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
25593 extension of library projects.
25595 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
25596 path defaults to ".:<prefix>/lib/gnat".
25597 (Parse): For an extending all project, allow direct import of a project
25598 that is virtually extended.
25600 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
25601 the specified name is directly imported, return its ID. Otherwise, if
25602 an extension of this project is imported, return the ID of the
25605 2004-10-26 Robert Dewar <dewar@gnat.com>
25607 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
25608 (Sub3): New procedure, used by Scaled_Divide
25609 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
25610 correct more than one instance of failure to propagate carries
25612 (Double_Divide): Handle overflow case of largest negative number
25613 divided by minus one.
25615 * s-arit64.ads (Double_Divide): Document that overflow can occur in
25616 the case of a quotient value out of range.
25619 2004-10-26 Robert Dewar <dewar@gnat.com>
25621 * s-bitops.adb (Bit_Eq): Remove redundant check.
25623 * s-bitops.ads: Minor comment updates
25624 Change some occurrences of Address to System.Address
25626 * s-carsi8.ads: Fix minor cut-and-paste error in comments
25628 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25630 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
25631 accessibility check to prefix that is a protected operation.
25633 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25635 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
25636 empty, post message on stub.
25638 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25639 Javier Miranda <miranda@gnat.com>
25641 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
25642 current instance appears within a unit that is directly in the context
25644 Used to determine whether the body of the instance should be analyzed
25645 immediately after its spec, to make its subprogram bodies available
25646 for front-end inlining.
25647 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
25648 constraint is not allowed on the component type (AARM 12.5.3(3))
25650 2004-10-26 Cyrille Comar <comar@act-europe.fr>
25652 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
25653 'Storage_Pool): enhance, document & limit detection of non-sharable
25656 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
25658 * s-pooglo.ads: Add more documentation now that this pool is properly
25661 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25663 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
25664 or protected type with discriminants, do not constrain the
25665 corresponding record type if the subtype declaration has no
25666 discriminant constraints. This can be the case in source code, or in
25667 the subtype declaration created to rename an actual type within an
25670 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25672 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
25673 different kind of stub (possibly wrong name for file), do not check
25675 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
25676 includes call to some function that returns an unconstrained type, do
25679 2004-10-26 Ed Schonberg <schonberg@gnat.com>
25681 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
25682 appear in the code for the main unit. Dependencies among units in the
25683 context of the main unit are established when those other units are
25684 compiled. Otherwise spurious elaboration constraints can generate
25685 incorrect elaboration circularities.
25687 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
25688 Ed Schonberg <schonberg@gnat.com>
25690 * sem_util.adb (Is_Aliased_View): Defend against the case where this
25691 subprogram is called with a parameter that is not an object name. This
25692 situation arises for some cases of illegal code, which is diagnosed
25693 later, and in this case it is wrong to call Is_Aliased, as that might
25694 cause a compiler crash.
25695 (Explain_Limited_Type): Refine previous fix to include
25696 inherited components of derived types, to provide complete information.
25698 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
25699 is the prival for a protected object.
25700 It is necessary to mark this entity as a variable, in addition to
25701 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
25702 modified to avoid checking the Aliased flag on entities that are not
25703 objects. (Checking that flag for non-objects is erroneous and could
25704 lead to a compiler crash).
25706 2004-10-26 Robert Dewar <dewar@gnat.com>
25708 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
25709 X_Frac = 0.5, then we know that the number X must be positive.
25710 (Succ): Remove the same redundant test, and also fix the primary test
25711 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
25713 (Decompose): Add fuller comments to spec
25715 2004-10-26 Pascal Obry <obry@gnat.com>
25717 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
25718 validity (process must have read access). Set to 0 in all other cases.
25719 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
25720 violation on Win32.
25721 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
25722 segmentation violation.
25724 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
25726 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
25727 whose type is a constructed subtype of an aliased object with an
25728 unconstrained nominal subtype, convert the actual to the constructed
25729 subtype before taking its address.
25731 2004-10-26 Vincent Celier <celier@gnat.com>
25733 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
25734 (Is_Path_Name_Case_Sensitive): New function
25736 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
25737 (Base_Name, Simple_Name, Current_Directory, Compose,
25738 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
25741 2004-10-26 Cyrille Comar <comar@act-europe.fr>
25742 Vasiliy Fofanov <fofanov@act-europe.fr>
25743 Vincent Celier <celier@gnat.com>
25745 * gnat_ugn.texi: Generalize "finding memory problems" section into a
25746 "memory management issues" section and document some of the useful
25747 memory pools provided as part of the GNAT library.
25748 Remove "virtual" from declaration of A::method2 in
25749 the simple example of Ada/C++ mixed system.
25750 Library Projects may be virtually extended: their virtual extensions
25751 are not Library Projects.
25752 Added section on extending project hierarchies.
25754 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
25756 * adaint.c (__gnat_get_libraries_from_registry): Cast value
25758 (__gnat_portable_spawn): Remove const.
25760 * mingw32.h (MAXPATHLEN): Check for previous definition.
25762 2004-10-17 Matthias Klose <doko@debian.org>
25764 * gnatvsn.ads: Set gnat library version to 4.0.
25766 2004-10-05 Vincent Celier <celier@gnat.com>
25768 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
25770 2004-10-04 Laurent Guerby <laurent@guerby.net>
25773 * Makefile.in: Define and use RANLIB_FLAGS.
25775 2004-10-04 Pascal Obry <obry@gnat.com>
25777 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
25778 other x86 platforms).
25780 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
25782 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
25783 in general and triggers stack alignment adjustment for thread entry
25784 points on targets where this is necessary.
25786 2004-10-04 Bernard Banner <banner@gnat.com>
25789 * Makefile.in: Add section for powerpc linux
25790 Add variant i-vxwork-x86.ads
25792 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
25794 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
25796 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
25797 table registration calls when need be. Ensures no reference to the crt
25798 ctors symbol are issued in the SJLJ case, which avoids possible
25799 undefined symbol errors in the case of modules to be statically linked
25802 2004-10-04 Javier Miranda <miranda@gnat.com>
25804 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
25805 in-line the code corresponding to subprogram Analyze_Actuals. In
25806 addition, analyze the actuals only in case of subprogram call.
25808 2004-10-04 Ed Falis <falis@gnat.com>
25810 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
25812 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
25814 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
25815 in the documentation.
25817 2004-10-04 Robert Dewar <dewar@gnat.com>
25819 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
25821 (Analyze_Block_Statement): Add circuitry to detect following dead code
25822 (Check_Unreachable_Code): Handle case of block exit
25824 2004-10-04 Robert Dewar <dewar@gnat.com>
25826 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
25827 (XMatchD): Avoid warning for Logic_Error call
25829 2004-10-04 Robert Dewar <dewar@gnat.com>
25831 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
25832 consider expressions buried within a procedure actual to be an actual.
25833 This caused some blowups with uses of packed slices within a procedure
25836 2004-10-04 Robert Dewar <dewar@gnat.com>
25838 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
25839 longer need to be initialized to zero.
25840 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
25841 initialized to zero.
25843 * checks.adb (Expr_Known_Valid): Packed arrays are now always
25844 considered valid, even if the representation is modular. That's correct
25845 now that we no longer initialize packed modular arrays to zero.
25847 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
25848 suffixes. These are now documented as the only cases in which the
25849 debugger ignores outer records.
25850 Previously, the spec allowed arbitrary suffixes for this purpose.
25851 Change name of LJM to JM for packed array pad records
25852 Create separate section on packed array handling, and add a whole new
25853 set of comments to this section describing the situation with packed
25854 modular types and justification requirements depending on endianness.
25856 2004-10-04 Robert Dewar <dewar@gnat.com>
25858 * a-except.adb: Add a comment for last change
25860 * einfo.ads: Minor spelling correction in comment
25862 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
25864 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
25867 * sem_util.ads: Minor comment update
25869 2004-10-04 Ed Schonberg <schonberg@gnat.com>
25871 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
25872 Inline_Always when in Configurable_Run_Time mode.
25874 * sem_prag.adb (Process_Convention): If entity is an inherited
25875 subprogram, apply convention to parent subprogram if in same scope.
25876 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
25877 when in Configurable_Run_Time mode.
25879 2004-10-04 Ed Schonberg <schonberg@gnat.com>
25881 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
25882 class_wide type after component list has been inherited.
25884 2004-10-04 Ed Schonberg <schonberg@gnat.com>
25886 * sem_ch12.adb (Check_Generic_Actuals): New predicate
25887 Denotes_Previous_Actual, to handle properly the case of a private
25888 actual that is also the component type of a subsequent array actual.
25889 The visibility status of the first actual is not affected when the
25890 second is installed.
25891 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
25892 make fully recursive the treatment of formals of packages declared
25894 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
25895 the above on exit from an instantiation.
25896 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
25897 current instantiation which is now complete.
25898 (Analyze_Package_Instantiation): No instantiated body is needed if the
25899 main unit is generic. Efficient, and avoid anomalies when a instance
25900 appears in a package accessed through rtsfind.
25902 2004-10-04 Ed Schonberg <schonberg@gnat.com>
25904 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
25905 do not generate a declaration for a temporary if the call is part of a
25906 library-level instantiation.
25908 2004-10-04 Ed Schonberg <schonberg@gnat.com>
25910 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
25911 searching for a limited component to flag.
25913 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
25914 expansion of Input, to account for the fact that the implicit call
25915 generated by the attribute reference must freeze the user-defined
25916 stream subprogram. This is only relevant to 'Input, because it can
25917 appear in an object declaration, prior to the body of the subprogram.
25919 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
25920 expansion can proceed and further errors uncovered.
25921 (Minor clean up): Fix cases of using | instead of \ for continuation
25924 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25926 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
25928 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
25929 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
25930 Use gcc_assert and gcc_unreachable.
25932 * decl.c (gnat_to_gnu_entity, case object): Check and process a
25933 specified alignment before validating size.
25934 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
25935 stripped-down declaration for the type of the inner field when making
25938 * utils.c (finish_record_type): Do not compute the size in units
25939 incrementally. Instead compute it once for the rep clause case.
25940 Use gcc_assert and gcc_unreachable.
25942 2004-10-04 Vincent Celier <celier@gnat.com>
25944 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
25946 (Is_Valid_Path_Name): Take '/' as a directory separator.
25948 2004-10-04 Vincent Celier <celier@gnat.com>
25950 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
25951 (Extended_Project) only if Extended_Project is defined, to avoid
25953 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
25955 (Parse_Single_Project): Ditto.
25957 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
25958 Add_To_Project_Path for virtual projects.
25960 2004-10-04 Vincent Celier <celier@gnat.com>
25962 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25963 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25964 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
25965 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
25966 parameter Options_2.
25968 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
25969 Build_Dynamic_Library with an empty Options_2.
25971 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
25974 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
25975 directory separator, if any.
25976 (Gprmake): Do not allow mains on the command line for library projects.
25977 Do not attempt to link when the project is a library project.
25978 (Library_Opts): New table to store Library_Options.
25979 (Build_Library): If Library_Options is specified, pass these options
25980 when building a shared library.
25982 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
25984 * s-tposen.adb (Service_Entry): The object must be always unlocked at
25985 the end of this procedure now that the unlock operation was inserted
25988 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
25990 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
25991 corresponding to the Preallocated_Stacks flags in System.
25992 (Get_Target_Parameters): Including the processing for
25993 Preallocated_Stacks.
25995 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
25996 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
25997 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
25998 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
25999 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
26000 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
26001 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
26002 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
26003 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
26004 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
26005 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
26006 used to signal whether the compiler creates the required stacks and
26007 descriptors for the different tasks (when True) or it is done by the
26008 underlying operating system at run time (when False).
26009 It is initially set to False in all targets.
26011 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
26012 if it is supported by the target.
26013 (Make_Task_Create_Call): Pass the stack address if it has been
26014 previously created. Otherwise pass a Null_Address.
26016 * snames.adb: Add _stack.
26018 * snames.ads: Add Name_uStack. Required to allow the expander to
26019 statically allocated task stacks.
26021 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
26022 Stack_Address argument.
26023 Check that its value is equal to Null_Address because this target does
26024 not support the static stack allocation.
26026 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
26028 * usage.adb: Change "pragma inline" to "pragma Inline" in information
26031 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
26033 * exp_dist.adb: Split declaration of asynchronous flag out of
26034 Add_RACW_Read_Attribute.
26035 Minor reformatting for better alignment with PolyORB version.
26036 Store the entity for the asynchronous flag of an RACW, rather than the
26037 expression, in the asynchronous flags table. This will allow this flag
26038 to be used in other subprograms beside Add_RACW_Read_Attribute.
26040 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
26042 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
26043 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
26044 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
26045 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
26046 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
26047 sockets constant MSG_NOSIGNAL (Linux-specific).
26048 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
26049 all Send operations.
26050 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
26051 from trigerring SIGPIPE.
26052 Rename components to avoid clash with Ada 2005 possible reserved
26054 (Check_Selector): When the select system call returns with an error
26055 condition, propagate Socket_Error to the caller.
26057 2004-10-01 Jan Hubicka <jh@suse.cz>
26059 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
26061 2004-09-23 Robert Dewar <dewar@gnat.com>
26064 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
26065 instead do this at freeze time (we won't do it if there is an address
26067 Change "pragma inline" to "pragma Inline" in information and error
26069 Minor reformatting.
26071 * freeze.adb (Check_Address_Clause): Remove previous change, not the
26072 right way of doing things after all.
26073 (Freeze_Entity): For object, set Is_Public for imported entities
26074 unless there is an address clause present.
26076 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
26078 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
26079 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
26080 ensures proper handling of types with rep clauses, which might have
26081 their TYPE_SIZE set already.
26083 2004-09-21 Robert Dewar <dewar@gnat.com>
26085 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
26086 packed array types in both little- and big-endian cases. This change
26087 ensures that we no longer count on the unused bits being initialized
26088 for such types (and in particular ensures that equality testing will
26089 only read the relevant bits).
26090 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
26091 These changes mean that we no longer need to initialize small packed
26093 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
26094 optimization to an LJM field as to its parent field.
26096 * ada-tree.h, trans.c, utils.c, utils2.c:
26097 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
26099 2004-09-20 Jan Hubicka <jh@suse.cz>
26101 * utils.c (gnat_finalize): Remove.
26102 (end_subprog_body): Directly call cgraph_finalize_function;
26103 do not lower the nested functions.
26105 2004-09-20 Robert Dewar <dewar@gnat.com>
26108 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
26109 if an address clause is present, since that means that the Import
26112 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
26114 * 5tsystem.ads: Removed, no longer used.
26116 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
26117 Zack Weinberg <zack@codesourcery.com>
26119 * ada-tree.def: Use tree_code_class enumeration constants
26120 instead of code letters.
26121 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
26122 Update for new tree-class enumeration constants.
26124 2004-09-17 Vincent Celier <celier@gnat.com>
26126 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
26127 capabilities of the general project manager.
26129 2004-09-09 Vincent Celier <celier@gnat.com>
26131 * a-direct.ads: Add pragma Ada_05
26132 (Directory_Entry_Type): Give default value to component Kind to avoid
26133 not initialized warnings.
26135 * a-direct.adb (Current_Directory): Remove directory separator at the
26137 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
26138 an existing directory.
26139 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
26140 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
26141 Convert the result to File_Size.
26143 * prj.ads: (Project_Error): New exception
26145 * prj-attr.adb: Except in procedure Initialize, Fail comes from
26146 Prj.Com, not from Osint.
26147 (Attrs, Package_Attributes): Tables moved to private part of spec
26148 (Add_Attribute, Add_Unknown_Package): Moved to new child package
26150 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
26151 Prj.Project_Error after call to Fail.
26152 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
26153 Fail. Check that package name is not already in use.
26155 * prj-attr.ads: Comment updates to indicate that all subprograms may be
26156 used by tools, not only by the project manager, and to indicate that
26157 exception Prj.Prj_Error may be raised in case of problem.
26158 (Add_Unknown_Package, Add_Attribute): Moved to new child package
26160 (Attrs, Package_Attributes): Table instantiations moved from the body to
26161 the private part to be accessible from Prj.Attr.PM body.
26163 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
26164 from new package Prj.Attr.PM.
26165 (Parse_Attribute_Declaration): Call Add_Attribute from new package
26168 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
26170 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
26171 instead of Elaboration_Checks).
26173 * a-calend.adb: Minor reformatting
26175 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26177 * gigi.h (maybe_pad_type): New declaration.
26178 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
26180 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
26182 * cuintp.c: Convert to use buildN.
26184 * decl.c (maybe_pad_type): No longer static.
26185 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
26187 Convert to use buildN.
26189 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
26190 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
26191 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
26193 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
26194 (gnat_gimplify_expr, case ADDR_EXPR): New case.
26195 Convert to use buildN.
26197 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
26198 TREE_READONLY for const.
26199 Convert to use buildN.
26201 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
26202 (create_var_decl): Refine when TREE_STATIC is set.
26203 Convert to use buildN.
26205 2004-09-09 Gary Dismukes <dismukes@gnat.com>
26207 * gnat_ugn.texi: Delete text relating to checking of ali and object
26210 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
26213 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
26215 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
26216 pragmas recognized by GNAT.
26218 * gnat_rm.texi: Document pragma Detect_Blocking.
26220 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
26221 raise Program_Error if called from a protected operation.
26223 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
26224 the protected action nesting level.
26225 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
26226 protected action nesting level.
26227 (Unlock): When pragma Detect_Blocking is active decrease the protected
26228 action nesting level.
26230 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
26231 Protected_Action_Nesting.
26233 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
26234 Common_ATCB record. It contains the dynamic level of protected action
26235 nesting for each task. It is needed for checking whether potentially
26236 blocking operations are called from protected operations.
26237 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
26238 Detect_Blocking is active or not in the partition.
26240 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
26241 raise Program_Error if called from a protected operation.
26242 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
26243 Program_Error if called from a protected operation.
26244 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
26245 Program_Error if called from a protected operation.
26247 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
26248 raise Program_Error if called from a protected operation.
26250 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
26251 raise Program_Error if called from a protected operation, and increase
26252 the protected action nesting level.
26253 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
26254 Program_Error if called from a protected operation, and increase the
26255 protected action nesting level.
26256 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
26257 protected action nesting level.
26259 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
26260 raise Program_Error if called from a protected operation, and increase
26261 the protected action nesting level.
26262 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
26263 Program_Error if called from a protected operation, and increase the
26264 protected action nesting level.
26265 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
26266 raise Program_Error if called from a protected operation.
26267 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
26268 active, raise Program_Error if called from a protected operation.
26269 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
26270 protected action nesting level.
26272 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
26273 insertion of the statement raising Program_Error. The run time
26274 contains the required machinery for handling that.
26276 * sem_util.ads: Change comment associated to procedure
26277 Check_Potentially_Blocking_Operation.
26278 This procedure does not insert a call for raising the exception because
26279 that is currently done by the run time.
26281 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
26283 * init.c: Add the global variable __gl_detect_blocking that indicates
26284 whether pragma Detect_Blocking is active (1) or not (0). Needed for
26285 making the pragma available at run time.
26286 (__gnat_set_globals): Pass and update the detect_blocking parameter.
26288 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
26289 pragma Detect_Blocking is active.
26291 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
26293 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
26294 DB is found in the ali file. Any unit compiled with pragma
26295 Detect_Blocking active forces its effect in the whole partition.
26297 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
26298 Detect_Blocking is active and delay is called from a protected
26301 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
26302 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
26303 Detect_Blocking is active (0 otherwise).
26304 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
26305 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
26308 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
26310 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
26311 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
26314 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
26315 (Register_Receiving_Stub): Add Subp_Info formal parameter.
26316 Update API in placeholder implemetation of s-parint to reflect changes
26317 in distribution runtime library.
26319 * sem_ch3.adb (Expand_Derived_Record): Rename to
26320 Expand_Record_Extension.
26322 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
26323 primitive operations of potentially distributed object types that have
26324 non-controlling anonymous access formals.
26326 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
26328 New implementation of expansion for remote access-to-subprogram types,
26329 based on the RACW infrastructure.
26330 This version of sem_dist is compatible with PolyORB/DSA as well as
26333 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
26334 Asynchrronous that applies to a remote access-to-subprogram type, mark
26335 the underlying RACW type as asynchronous.
26337 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
26338 __gnat_using_gnu_linker to 1.
26340 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
26341 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
26342 GNAT.Perfect_Hash_Generators, and remove the empty
26343 GNAT.Perfect_Hash package.
26345 * atree.adb: Minor reformatting
26347 * exp_ch3.adb (Expand_Derived_Record): Rename to
26348 Expand_Record_Extension.
26349 (Build_Record_Init_Proc.Build_Assignment): The default expression in
26350 a component declaration must remain attached at that point in the
26351 tree so New_Copy_Tree copies it if the enclosing record type is derived.
26352 It is therefore necessary to take a copy of the expression when building
26353 the corresponding assignment statement in the init proc.
26354 As a side effect, in the case of a derived record type, we now see the
26355 original expression, without any rewriting that could have occurred
26356 during expansion of the ancestor type's init proc, and we do not need
26357 to go back to Original_Node.
26359 * exp_ch3.ads (Expand_Derived_Record): Rename to
26360 Expand_Record_Extension.
26362 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
26363 Returns the RACW type used to implement a remote access-to-subprogram
26365 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
26366 New subprograms. Used to create a proxy tagged object for a remote
26367 subprogram. The proxy object is used as the designated object
26368 for RAS values on the same partition (unless All_Calls_Remote applies).
26369 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
26370 System.Partition_Interface.Get_Unique_Remote_Pointer.
26371 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
26372 Renamed from Add_RAS_*_Attribute.
26373 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
26375 New implementation of expansion for remote access-to-subprogram types,
26376 based on the RACW infrastructure.
26378 * exp_dist.ads (Copy_Specification): Update comment to note that this
26379 function can copy the specification from either a subprogram
26380 specification or an access-to-subprogram type definition.
26382 2004-09-09 Ed Schonberg <schonberg@gnat.com>
26384 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
26385 in an instance, between an explicit subprogram an one inherited from a
26386 type derived from an actual.
26388 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
26389 add a polling call if the subprogram is to be inlined by the back-end,
26390 to avoid repeated calls with multiple inlinings.
26392 * checks.adb (Apply_Alignment_Check): If the expression in the address
26393 clause is a call whose name is not a static entity (e.g. a dispatching
26394 call), treat as dynamic.
26396 2004-09-09 Robert Dewar <dewar@gnat.com>
26398 * g-trasym.ads: Minor reformatting
26400 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
26401 packed arrays, since unused bits are expected to be zero for a
26404 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
26406 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
26409 2004-09-09 Pascal Obry <obry@gnat.com>
26411 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
26412 enable map file generation. Add the right option to generate the map
26413 file if Map_File is set to True.
26415 * gnatdll.adb (Gen_Map_File): New variable.
26416 (Syntax): Add info about new -m (Map_File) option.
26417 (Parse_Command_Line): Add support for -m option.
26418 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
26419 Minor reformatting.
26421 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
26423 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
26424 new gnatdist implementation.
26425 Define a subpackage isolating the output routines specific to this
26428 2004-09-09 Joel Brobecker <brobecker@gnat.com>
26430 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
26432 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
26434 2004-09-09 Cyrille Comar <comar@act-europe.fr>
26436 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
26439 * opt.ads: Add Ada_Version_Runtime constant used to decide which
26440 version of the language is used to compile the run time.
26442 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
26444 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
26445 of variable length temporaries for function return now that the
26446 back-end and gigi support it.
26448 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26450 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
26452 * trans.c (struct stmt_group): Delete field GLOBAL.
26453 (gnat_init_stmt_group): Do not initialize it.
26454 (call_to_gnu): Use save_expr, not protect_multiple_eval.
26455 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
26456 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
26457 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
26458 (start_stmt_group): Likewise.
26459 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
26461 * utils2.c (ggc.h): Include.
26462 (build_call_raise): Call build_int_cst, not build_int_2.
26464 * utils.c (gnat_init_decl_processing): Fix arg to
26465 build_common_tree_nodes.
26466 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
26467 (gnat_define_builtin): Set built_in_decls.
26468 (init_gigi_decls): Call build_int_cst, not build_int_2.
26470 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
26471 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
26472 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
26473 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
26474 SET_TYPE_MODULE): Use them.
26475 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
26476 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
26477 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
26478 SET_TYPE_ADA_SIZE): Likewise.
26479 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
26480 (DECL_CONST_CORRESPONDING_VAR,
26481 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
26482 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
26483 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
26484 (TYPE_RM_SIZE_NUM): New macro.
26485 (TYPE_RM_SIZE): Modified to use above.
26487 * cuintp.c: (build_cst_from_int): New function.
26488 (UI_To_gnu): Use it.
26490 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
26491 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
26492 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
26493 MIN_EXPR for the size, copy it into new.
26495 2004-09-01 Robert Dewar <dewar@gnat.com>
26497 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
26498 packed indexed component where array is an IN OUT formal. This
26499 generated garbage code previously.
26501 * gnat_ugn.texi: Document -fverbose-asm
26503 * gnat-style.texi: Minor updates (note that boolean constants and
26504 variables are joined with AND/OR rather than short circuit forms).
26506 2004-09-01 Ed Schonberg <schonberg@gnat.com>
26508 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
26509 it is an upward conversion of an untagged type with no representation
26512 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
26514 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
26515 System.Partition_Interface.
26517 * checks.adb (Apply_Access_Checks): Do not generate checks when
26518 expander is not active (but check for unset reference to prefix of
26521 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
26522 pragma Debug as an if statement with a constant condition, for
26523 consistent treatment of entity references contained within the
26524 enclosed procedure call.
26526 2004-09-01 Vincent Celier <celier@gnat.com>
26528 * bindgen.adb: (Set_EA_Last): New procedure
26529 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
26531 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
26532 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
26533 linked without errors.
26534 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
26536 (Gen_Exception_Table_C): Correct same bugs
26538 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
26540 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
26541 on Windows, make sure that the drive letter is in upper case.
26543 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
26544 Windows, when the drive letter is added and Case_Sensitive is True, the
26545 drive letter is forced to upper case.
26547 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
26548 to Options_2 for the call to MLib.Utl.Gcc.
26550 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
26551 directory separator when defining BASE_DIR.
26553 2004-09-01 Pascal Obry <obry@gnat.com>
26555 * gprcmd.adb (Extend): Do not output trailing directory separator. This
26556 is not needed and it confuses Windows GNU/make which does not report
26557 directory terminated by a slash as a directory.
26558 (gprcmd): Idem for "pwd" internal command.
26560 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
26561 target names rewrite to fix regressions with recent version of
26562 GNU/make. Starting with GNU/make 3.80 the pipe character was not
26563 handled properly anymore.
26565 2004-09-01 Andreas Schwab <schwab@suse.de>
26567 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
26568 * raise.c [!IN_RTS]: Undef abort.
26570 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
26572 * utils2.c (build_allocator): Use ssize_int.
26574 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
26576 2004-08-27 Andreas Schwab <schwab@suse.de>
26578 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
26580 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
26581 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26583 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
26585 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
26587 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
26588 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
26589 * utils.c (init_gigi_decls): Likewise.
26590 * utils2.c (build_call_raise, build_allocator): Likewise.
26592 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
26594 * utils.c (gnat_init_decl_processing): Adjust
26595 build_common_tree_nodes call.
26597 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
26599 * utils2.c (build_allocator): Use build_int_cst for negative
26602 2004-08-18 Richard Henderson <rth@redhat.com>
26604 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
26606 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
26608 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
26610 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
26611 (gnat_to_gnu): Likewise.
26613 2004-08-16 Pascal Obry <obry@gnat.com>
26615 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
26616 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
26617 option and not mdll anymore. Update comment.
26619 2004-08-16 Pascal Obry <obry@gnat.com>
26621 * bld.adb (Put_Include_Project): Properly handle directory separators
26624 2004-08-16 Ed Schonberg <schonberg@gnat.com>
26626 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
26627 decreasing the number of allocated junk nodes while searching for the
26628 appropriate subprogram.
26630 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
26632 * cuintp.c (UI_To_gnu): Use build_int_cst..
26633 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
26634 * utils.c (init_gigi_decls): Likewise.
26635 * utils2.c (build_call_raise): Likewise.
26637 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
26639 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
26640 for a global aliased object with a variable size and an unconstrained
26641 nominal subtype, pretend there is no initializer if the one we have is
26642 incomplete, and avoid referencing an inexistant component in there. The
26643 part we have will be rebuilt anyway and the reference may confuse
26644 further operations.
26646 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
26648 * einfo.ads: Minor reformatting
26650 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
26651 restrictions in the ALI if we only want to warn about violations.
26653 2004-08-13 Vincent Celier <celier@gnat.com>
26655 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
26656 when creating a new Unit_Record in table Units.
26658 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
26659 that are violated, if any.
26661 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
26662 add directory separator if path already ends with a directory separator.
26664 2004-08-13 Ed Schonberg <schonberg@gnat.com>
26666 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
26667 unit, this is an attempt to inline a construct that is not available in
26668 the current restricted mode, so abort rather than trying to continue.
26670 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
26671 discriminants that rename those of the parent, recover names of
26672 original discriminants for the constraint on the full view of the
26674 (Complete_Private_Subtype): Do not create a subtype declaration if the
26675 subtype is an itype.
26677 * gnat_rm.texi: Added section on implementation of discriminated
26678 records with default values for discriminants.
26680 2004-08-13 Ed Schonberg <schonberg@gnat.com>
26683 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
26684 the second operand is overloaded.
26686 2004-08-10 Richard Henderson <rth@redhat.com>
26688 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
26689 add __builtin_alloca.
26691 2004-08-10 Richard Henderson <rth@redhat.com>
26693 * config-lang.in (boot_language): Yes.
26695 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
26697 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
26698 from complaining on potential uninitialized reference.
26699 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
26700 new specification and test explicitly for non-zero return value.
26702 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
26703 returning C.int, to avoid using a derived boolean type.
26705 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
26706 Duplicate_Subexpr_No_Checks in preference to direct use of
26707 Remove_Side_Effects and New_Copy_Tree.
26708 Clear Comes_From_Source on prefix of 'Size attribute reference.
26710 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
26711 g-socthi-vxworks.adb: Change calls to
26712 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
26713 and test explicitly for non-zero return value.
26715 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
26716 (Is_Socket_In_Set): Declare imported function as returning C.int, to
26717 avoid using a derived boolean type.
26719 2004-08-09 Albert Lee <lee@gnat.com>
26721 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
26723 2004-08-09 Pascal Obry <obry@gnat.com>
26725 * gnat_ugn.texi: Document new way to build DLLs on Windows using
26726 GCC's -shared option.
26728 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
26729 Options_2 parameter (options put after object files).
26731 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
26733 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
26734 ignore overflows on low and high bounds of an index to also account for
26735 differences in signedness between sizetype and gnu_index_subtype.
26736 These are as legitimate as the ones caused by a lower TYPE_PRECISION
26739 2004-08-09 Robert Dewar <dewar@gnat.com>
26741 * s-solita.ads, s-solita.adb: Minor reformatting
26743 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
26744 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
26745 obsolescent section
26746 Add note that No_Implicit_Conditionals does not suppress
26747 run time constraint checks.
26749 * vms_conv.ads: Minor reformatting
26751 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
26752 and necessary for following change).
26753 (Mark): Return new format Mark_Id containing sec stack address
26754 (Release): Use sec stack address from Mark_Id avoiding Self call
26756 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
26757 pointer (cleanup and necessary for following change).
26758 Define Mark_Id as record containing address of secondary stack, that way
26759 Release does not need to find the stack again, decreasing the number of
26760 calls to Self and improving efficiency.
26762 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
26764 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
26765 case variable into the individual case branches when possible.
26767 * sem_ch11.adb: Minor reformatting
26769 * prj.ads: Correct spelling of suffixs
26771 * prj-nmsc.adb: Minor reformatting
26772 Correct spelling suffixs throughout (also in identifiers)
26774 * freeze.adb: Minor spelling correction
26776 * exp_ch2.adb: Cleanups to handling of Current_Value
26777 (no functional effect).
26779 * bld.adb: Correct spelling of suffixs
26781 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
26783 2004-08-09 Ed Schonberg <schonberg@gnat.com>
26786 * sem_ch7.adb (Install_Private_Declarations): In the body of the
26787 package or of a child, private entities are both immediately_visible
26790 2004-08-09 Ed Schonberg <schonberg@gnat.com>
26792 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
26793 there are no range checks on the value of the literal.
26795 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
26796 wrapped is the triggering alternative of an asynchronous select, action
26797 statements mustbe inserted before the select itself.
26799 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
26800 case where the prefix is a protected function call.
26801 (Resolve_Attribute, case 'Access): The attribute reference on a
26802 subprogram is legal in a generic body if the subprogram is declared
26805 2004-08-09 Vincent Celier <celier@gnat.com>
26807 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
26808 languages, otherwise building the library may fail with unresolved
26810 (Compile_Sources): Do not build libraries if -c switch is used
26812 * gnatlink.adb (Process_Args): New switches -M and -Mmap
26813 (Write_Usage): If map file creation is supported, output new switches
26815 (Gnatlink): When -M is specified, add the necessary switch(es) to the
26816 gcc call, when supported.
26818 * Makefile.in: Added indepsw.o to the object list for gnatlink
26819 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
26821 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
26822 indepsw.adb, indepsw.ads: New files.
26824 2004-08-09 Bernard Banner <banner@gnat.com>
26826 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
26828 * Makefile.in: add section for vxworks x86
26830 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
26832 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
26833 per-object constrained components where the discriminant is of an
26835 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
26836 the parent initialization procedure for derived Unchecked_Unions.
26837 Instead, derived Unchecked_Unions build their own initialization
26839 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
26840 Check the body of the subprogram for details.
26841 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
26842 functions for derived Unchecked_Union types by introducing a condition.
26843 Allow the creation of TSS equality functions for Unchecked_Unions.
26844 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
26845 Add formal parameter Discr to function signature. Discr is used to
26846 control the generated case statement for Unchecked_Union types.
26847 (Make_Eq_If): Rename formal parameter Node to E in function signature.
26849 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
26851 Check the body of the subprogram for details.
26852 (Expand_Composite_Equality): Augment composite type equality to include
26853 correct handling of Unchecked_Union components.
26854 (Expand_N_In): Add condition to detect illegal membership tests when the
26855 subtype mark is a constrained Unchecked_Union and the expression lacks
26856 inferable discriminants, and build a Raise_Program_Error node.
26857 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
26858 to detect types that contain components of unconstrained Unchecked_Union
26859 subtype. Add condition to detect equality between types that have an
26860 unconstrained Unchecked_Union component, and build a Raise_Program_Error
26861 node. Add condition to detect equality between Unchecked_Union types
26862 that lack inferable discriminants, and build a Raise_Program_Error node.
26863 Otherwise build a TSS equality function call.
26864 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
26865 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
26866 with the operand lacking inferable discriminants, and build a Raise_
26867 Program_Error node.
26868 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
26869 composite equality.
26870 (Has_Inferable_Discriminants): Implement new predicate for objects and
26871 expressions of Unchecked_Union type. Check the body of subprogram for
26873 (Has_Unconstrained_UU_Components): Add function
26874 Component_Is_Unconstrained_UU. It is used to detect whether a single
26875 component is of an unconstrained Unchecked_Union subtype. Add function
26876 Variant_Is_Unconstrained_UU. It is used to detect whether a single
26877 component inside a variant is of an unconstrained Unchecked_Union type.
26879 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
26880 inferred discriminant values. Add condition to generate a case
26881 statement with an inferred discriminant as the switch.
26882 (Make_Component_List_Assign): Introduce a Boolean flag that determines
26883 the behaviour of the subprogram in the presence of an Unchecked_Union.
26884 Add condition to trigger the usage of the inferred discriminant value
26885 as the generated case statement switch.
26886 (Make_Field_Assign): Introduce a Boolean flag that determines the
26887 behaviour of the subprogram in the presence of an Unchecked_Union. Add
26888 condition to trigger the usage of the inferred discriminant value as
26889 the right-hand side of the generated assignment.
26891 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
26892 parameter generation when dealing with Unchecked_Unions.
26894 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
26895 checks for Unchecked_Unions.
26897 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
26899 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
26900 Raise_Program_Error nodes for the execution of Read and Write
26901 attributes of Unchecked_Union types and the execution of Input and
26902 Output attributes of Unchecked_Union types that lack default
26903 discriminant values.
26905 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
26906 Unchecked_Union. Add procedure Check_Component. It is used to inspect
26907 per-object constrained components of Unchecked_Unions for being
26908 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
26909 check individual components withing a variant.
26911 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
26912 comparison of Unchecked_Unions.
26913 (Resolve_Equality_OP): Remove guard that prevents equality between
26916 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
26917 of component subtypes for Unchecked_Union components.
26918 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
26919 since it is the actual subtype.
26921 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
26922 pass of Unchecked_Union subtypes as generic actuals to formal types
26923 that lack known_discriminant_parts or that are derived Unchecked_Union
26924 types, and do nothing. In any other case, produce an error message.
26926 * sem_ch3.adb (Analyze_Component_Declaration): Add function
26927 Contains_POC. It determines whether a constraint uses the discriminant
26928 of an enclosing record type.
26929 Add condition to detect per-object constrained component and set the
26931 (Derived_Type_Declaration): Remove guard that prevents derivation from
26932 Unchecked_Union types.
26933 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
26936 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
26937 references to Unchecked_Union discriminants.
26939 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
26940 formal generation when dealing with Unchecked_Unions.
26941 (Set_Actual_Subtypes): Add condition to prevent generation of actual
26942 subtypes for Unchecked_Unions.
26944 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
26945 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
26946 completions of discriminated partial views by Unchecked_Unions and
26947 produce an error message.
26949 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26951 * trans.c (struct stmt_group): New field, GLOBAL.
26952 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
26953 (struct elab_info): New struct.
26954 (elab_info_list, gnu_elab_proc_stack): New variables.
26955 (Compilation_Unit_to_gnu): New procedure.
26956 (gigi): Call it and also handle elaboration procs we've saved.
26957 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
26958 global field from parent.
26959 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
26960 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
26961 (start_stmt_group): Initialize global field from parent.
26962 (add_decl_expr): Set to global for current statement group.
26963 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
26966 * utils.c (global_bindings_p): True when no current_function_decl; no
26967 longer check current_binding_level.
26969 2004-08-09 Ben Brosgol <brosgol@gnat.com>
26971 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
26974 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
26976 2004-08-06 Andreas Schwab <schwab@suse.de>
26978 * utils.c (gnat_define_builtin): Remove second parameter of
26980 (begin_subprog_body): Likewise.
26982 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
26984 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
26985 optimization, not supported by the tree-ssa back-end.
26987 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
26989 * s-mastop-irix.adb: Update comments.
26991 * a-except.adb (Exception_Information): Raise Constraint_Error if
26992 exception Id is Null_Id.
26993 This is required behavior, which is more reliably and clearly checked
26994 at the top level interface level.
26996 2004-07-26 Javier Miranda <miranda@gnat.com>
26998 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
26999 call if a component has no default_expression and the box is used.
27001 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
27002 default_expression and you use box, it behaves as if you had declared a
27003 stand-alone object.
27004 (Resolve_Record_Aggregate): If a component has no default_expression and
27005 you use box, it behaves as if you had declared a stand-alone object.
27007 * sem_ch10.adb (Install_Siblings): Do not make visible the private
27008 entities of private-with siblings.
27010 2004-07-26 Ed Schonberg <schonberg@gnat.com>
27012 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
27013 for a component of an itype, set the parent pointer for analysis,
27014 there is no list in which to insert it.
27016 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
27017 bona-fide renamings, not for inherited operations.
27019 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
27020 actual for a formal that is an access parameter, create local
27021 finalization list even if the expression is not an aggregate.
27023 2004-07-26 Ed Schonberg <schonberg@gnat.com>
27026 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
27027 Diagnose properly illegal subprogram renamings that are library units.
27029 2004-07-26 Ed Schonberg <schonberg@gnat.com>
27032 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
27033 conversion rewritten as an unchecked conversion, check that original
27034 expression is a variable.
27036 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
27037 unchecked_conversion, create new node rather than rewriting in place,
27038 to preserve original construct.
27040 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27042 * gigi.h (gnat_expand_body): Deleted.
27044 * Make-lang.in: (trans.o): Depends on function.h.
27046 * misc.c: (gnat_expand_body): Moved to here.
27048 * trans.c (gnat_expand_body_1): Deleted.
27049 (gnat_expand_body): Moved from here.
27050 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
27051 (add_stmt): Check for marked visited with global_bindings_p.
27052 (gnat_gimplify_expr, case COMPONENT_REF): New case.
27053 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
27055 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
27056 VIEW_CONVERT_EXPR if not operation type.
27058 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
27061 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
27062 changes: reformatting of negation operators, removing unneeded
27063 inequality comparison with zero, converting equality comparisons with
27064 zero to negations, changing int/0/1 to bool/false/true, replace calls
27065 to gigi_abort with abort, and various other similar changes.
27067 2004-07-26 Vincent Celier <celier@gnat.com>
27069 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
27072 * make.adb (Gnatmake): Fail when a library is not present and there is
27073 no object directory.
27075 * mlib-prj.adb (Check_Library): No need to check if the library needs
27076 to be rebuilt if there is no object directory, hence no object files
27077 to build the library.
27079 * opt.ads (Setup_Projects): New Boolean flag.
27081 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
27083 Create directory when Kind /= "" and in "gnat setup". Report error if
27084 directory cannot be created.
27085 (Ada_Check): Create library interface copy dir if it does not exist
27086 and we are in "gnat setup".
27087 (Find_Sources): No error if in "gnat setup" and no Ada sources were
27089 (Language_Independent_Check): Create object directory, exec directory
27090 and/or library directory if they do not exist and we are in
27093 * vms_conv.ads: (Command_Type): New command Setup.
27095 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
27097 * vms_data.ads: Add qualifiers/switches for new built-in command
27100 2004-07-25 Richard Henderson <rth@redhat.com>
27102 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
27103 DECL_IGNORED_P on RESULT_DECL.
27105 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
27107 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
27108 allocation and potentially overflowing update with
27109 Tailored_Exception_Information. Use the sec-stack free procedural
27110 interface to output Exception_Information instead.
27112 * a-except.adb (To_Stderr): New subprogram for character, and string
27113 version moved from a-exextr to be visible from other separate units.
27114 (Tailored_Exception_Information): Remove the procedural version,
27115 previously used by the default Last_Chance_Handler and not any more.
27116 Adjust various comments.
27118 * a-exexda.adb: Generalize the exception information procedural
27119 interface, to minimize the use of secondary stack and the need for
27120 local buffers when the info is to be output to stderr:
27121 (Address_Image): Removed.
27122 (Append_Info_Character): New subprogram, checking for overflows and
27123 outputing to stderr if buffer to fill is of length 0.
27124 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
27125 (Append_Info_Address, Append_Info_Exception_Name,
27126 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
27127 Append_Info_Basic_Exception_Traceback,
27128 Append_Info_Exception_Information): New subprograms.
27129 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
27130 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
27131 Exception_Info_Maxlength, Exception_Name_Length,
27132 Exception_Message_Length): New subprograms.
27133 (Exception_Information): Use Append_Info_Exception_Information.
27134 (Tailored_Exception_Information): Use
27135 Append_Info_Basic_Exception_Information.
27136 Export services for the default Last_Chance_Handler.
27138 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
27139 other separate units.
27141 2004-07-20 Vincent Celier <celier@gnat.com>
27143 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
27145 2004-07-20 Ed Schonberg <schonberg@gnat.com>
27147 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
27148 emit itype references for the designated types of component types that
27149 are declared outside of the full record declaration, and that may
27150 denote a partial view of that record type.
27152 2004-07-20 Ed Schonberg <schonberg@gnat.com>
27155 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
27156 which is the designated type in an access component declaration, to the
27157 list of incomplete dependents of the parent type, to avoid elaboration
27158 issues with out-of-scope subtypes.
27159 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
27160 full view of the parent.
27162 2004-07-20 Ed Schonberg <schonberg@gnat.com>
27165 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
27166 entities that are hidden, such as references to generic actuals
27167 outside an instance.
27169 2004-07-20 Javier Miranda <miranda@gnat.com>
27171 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
27172 support to the new notation.
27173 (Analyze_Selected_Component): Add call to Try_Object_Operation.
27175 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
27177 * s-taprob.adb: Adding the elaboration code required for initializing
27178 the tasking soft links that are common to the full and the restricted
27181 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
27182 restricted run time has been moved to the package
27183 System.Soft_Links.Tasking.
27185 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
27186 restricted run time has been moved to the package
27187 System.Soft_Links.Tasking.
27189 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
27191 * s-solita.ads, s-solita.adb: New files.
27193 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27195 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
27196 Case_Statement_to_gnu): Split off from gnat_to_gnu.
27197 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
27198 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
27199 Exception_Handler_to_gnu_zcx): Likewise.
27201 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
27203 * gigi.h (builtin_function): Declare.
27205 2004-07-15 Robert Dewar <dewar@gnat.com>
27207 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
27210 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
27211 access values as an example of a warning.
27213 * gnat_rm.texi: Document new attribute Has_Access_Values
27215 * gnat-style.texi: Document that box comments belong on nested
27218 * sem_util.ads (Has_Access_Values): Improved documentation
27220 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
27222 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
27223 (Process_Interface_Name): Call to this new procedure
27224 (Set_Extended_Import_Export_External_Name): Call to this new procedure
27226 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
27228 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
27230 * einfo.ads: Minor comment typo fixed
27232 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
27234 * snames.adb: Add _atcb.
27236 * snames.ads: Add Name_uATCB.
27238 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
27239 (in the expanded code) when using the restricted run time.
27241 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
27242 a in parameter in order to allow ATCBs to be preallocated (in the
27245 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
27246 order to allow ATCBs to be preallocated. In case of error, the ATCB is
27247 deallocated in System.Tasking.Stages.
27249 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
27250 order to allow ATCBs to be preallocated.
27252 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
27253 here. It was previously done in Initialize_ATCB.
27255 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
27257 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
27258 Restricted run time.
27260 * exp_ch3.adb: When using the Restricted run time, pass the
27261 preallocated Ada_Task_Control_Block when creating a task.
27263 2004-07-15 Ed Schonberg <schonberg@gnat.com>
27265 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
27266 function call that is itself an actual in an enclosing call, diagnose
27267 problem here rather than assuming that resolution will catch it.
27269 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
27270 the local copy of a generic unit for a formal package, and the generic
27271 is a child unit, install private part of ancestors before compiling
27272 private part of spec.
27274 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
27275 use scope entities rather than tree structures, to handle properly
27276 parent units that are instances rewritten as bodies for inlining
27279 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
27280 Remove_Parents): Handle properly a parent unit that is an
27281 instantiation, when the unit has been rewritten as a body for inlining
27284 * par.adb (Goto_List): Global variable to collect goto statements in a
27285 given unit, for use in detecting natural loops.
27287 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
27288 use in detecting natural loops.
27290 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
27291 backwards goto's, and rewrite as a infinite loop, to improve locality
27294 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
27295 subcomponent that includes an indexed reference, to prevent the
27296 generation of copies that would miscompile the desired assignment
27298 (Build_Task_Image_Decls): Add a numeric suffix to
27299 generated name for string variable, to avoid spurious conflicts with
27300 the name of the type of a single protected object.
27302 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
27303 loop with an explicit exit statement, to avoid generating an
27304 out-of-range value with 'Succ leading to spurious constraint_errors
27305 when compiling with -gnatVo.
27307 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
27309 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
27310 might not be analyzed yet, even if its Etype is already set (case of an
27311 unchecked conversion built using Unchecked_Convert_To, for example).
27312 If the prefix has already been analyzed, this will be a nop anyway.
27314 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
27315 controller type, or an assignment of a record type with controlled
27316 components, copy only user data, and leave the finalization chain
27317 pointers untouched.
27319 2004-07-15 Vincent Celier <celier@gnat.com>
27321 * make.adb (Collect_Arguments): Improve error message when attempting
27322 to compile a source not part of any project, when -x is not used.
27324 * prj.ads: (Defined_Variable_Kind): New subtype
27326 * prj-attr.adb (Register_New_Package): Two new procedures to register
27327 a package with or without its attributes.
27328 (Register_New_Attribute): Mew procedure to register a new attribute in a
27330 New attribute oriented subprograms: Attribute_Node_Id_Of,
27331 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
27332 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
27334 New package oriented subprograms: Package_Node_Id_Of,
27335 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
27337 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
27339 (Package_Node_Id): Now a private, self initialized type
27340 (Register_New_Package): New procedure to register a package with its
27342 New attribute oriented subprograms: Attribute_Node_Id_Of,
27343 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
27344 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
27346 New package oriented subprograms: Package_Node_Id_Of,
27347 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
27349 * prj-dect.adb (Parse_Attribute_Declaration,
27350 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
27352 * prj-makr.adb (Make): Parse existing project file before creating
27353 other files. Fail if there was an error during parsing.
27355 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
27356 new spec of Prj.Attr.
27358 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
27359 to new spec of Prj.Attr.
27361 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27363 * utils2.c: Fix typo in comment.
27365 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27367 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
27368 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
27370 2004-07-14 Andreas Schwab <schwab@suse.de>
27372 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
27374 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27376 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
27378 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
27381 * misc.c (gnat_types_compatible_p): New function.
27382 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
27383 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
27385 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
27386 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
27387 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
27388 (mark_visited): Don't mark dummy type.
27389 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
27390 parameter, we must remove any LJM building from GNU_NAME.
27391 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
27392 (pos_to_constructor): Use int_const_binop.
27393 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
27396 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
27397 (gnat_pushlevel): Set TREE_USE on BLOCK node.
27398 (gnat_install_builtins): Add __builtin_memset.
27400 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
27402 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
27403 for a renaming, stabilize the initialization expression if we are at a
27404 local level. At the local level, uses of the renaming may be performed
27405 by a direct dereference of the initializing expression, and we don't
27406 want possible variables there to be evaluated for every use.
27408 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
27409 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
27410 them on the way. Account for the fact that we may introduce side
27411 effects in the process.
27413 2004-07-13 Richard Henderson <rth@redhat.com>
27415 * misc.c (default_pass_by_ref): Use pass_by_reference.
27417 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
27419 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
27420 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
27422 2004-07-08 Richard Henderson <rth@redhat.com>
27424 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
27427 2004-07-06 Vincent Celier <celier@gnat.com>
27429 * vms_conv.ads: Minor reformatting.
27430 Alphabetical order for enumerated values of type Command_Type, to have
27431 the command in alphabetical order for the usage.
27433 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
27434 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
27436 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
27438 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
27439 (Add_Archive_Path): Only add the global archive if there is one.
27440 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
27441 or not any object file to put in the global archive, and don't build
27442 a global archive if there is none.
27443 (X_Switches): New table
27444 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
27445 in the X_Switches table, if any.
27446 (Initialize): Make sure the X_Switches table is empty
27447 (Scan_Arg): Record -X switches in table X_Switches
27449 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
27451 * make.adb: Minor comment fix
27453 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
27454 invoked with directory information, add the directory in front of the
27457 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
27458 invoked with directory information, add the directory in front of the
27461 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
27462 when Keep_Temporary_Files is False.
27463 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
27464 directory information, add the directory in front of the path.
27465 When not on VMS, handle new switch -dn before the command to set
27466 Keep_Temporary_Files to True.
27467 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
27470 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
27471 invoked with directory information, add the directory in front of the
27474 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
27476 * snames.ads, snames.adb (Name_Stub): New name for the distributed
27479 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
27480 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
27482 * g-socket.adb (To_Timeval): Fix incorrect conversion of
27483 Selector_Duration to Timeval for the case of 0.0.
27485 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
27486 documentation from Evolve_And_Then.
27488 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
27490 * s-taprop-tru64.adb, s-taprop-os2.adb,
27491 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
27493 2004-07-06 Robert Dewar <dewar@gnat.com>
27495 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
27496 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
27497 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
27498 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
27499 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
27500 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
27501 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
27502 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
27503 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
27504 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
27505 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
27506 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
27507 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
27508 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
27509 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
27510 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
27511 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
27512 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
27513 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
27514 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
27515 vms_data.ads: Minor reformatting,
27516 Fix bad box comment format.
27518 * gnat_rm.texi: Fix minor grammatical error
27520 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
27522 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
27523 more cases of discriminated records to be recognized as not needing a
27525 (Has_Access_Values): New function.
27527 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
27529 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
27530 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
27531 with LRM terminology).
27532 Change terminology in comments primitive type => elementary type.
27534 2004-07-06 Ed Schonberg <schonberg@gnat.com>
27537 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
27538 parameters do not impose any requirements on the presence of a body.
27540 2004-07-06 Ed Schonberg <schonberg@gnat.com>
27543 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
27544 compilation unit and is in an open scope at the point of instantiation,
27545 assume that a body may be present later.
27547 2004-07-06 Ed Schonberg <schonberg@gnat.com>
27549 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
27550 Improve error message when specified size is not supported.
27552 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
27553 is never a primitive operation.
27555 2004-07-05 Andreas Schwab <schwab@suse.de>
27557 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
27558 RECORD_OR_UNION_CHECK.
27559 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
27561 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
27563 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
27564 dependency on xgnatugn, instead build it via a submake.
27565 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
27567 2004-07-04 Richard Henderson <rth@redhat.com>
27569 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
27571 2004-07-01 Richard Henderson <rth@redhat.com>
27573 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
27574 * utils.c (max_size): Likewise.
27576 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27578 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
27579 and rest_of_type_compilation; add arg to create_*_decl.
27580 (annotate_decl_with_node): Deleted.
27581 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
27582 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
27583 (get_current_block_context, gnat_pushdecl): New declarations.
27584 (gnat_init_stmt_group): Likewise.
27585 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
27586 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
27587 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
27588 (gnat_init): Call gnat_init_stmt_group.
27589 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
27590 (gnu_pending_elaboration_list): Deleted.
27591 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
27592 (gigi): Rearrange initialization calls and move some to last above.
27593 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
27594 Delete calls to add_decl_expr; add arg to create_*_decl.
27595 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
27596 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
27597 begin_subprog_body and call it.
27598 Don't push and pop ggc context.
27599 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
27600 (add_stmt): Remove handling of DECL_EXPR from here.
27601 If not in function, mark visited.
27602 (add_decl_expr): Put global at top level.
27603 Check for cases of DECL_INITIAL we have to handle here.
27604 (process_type): Add extra arg to create_type_decl.
27605 (build_unit_elab): Rework to just gimplify.
27606 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
27607 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
27608 (get_pending_elaborations, pending_elaborations_p): Likewise.
27609 (push_pending_elaborations, pop_pending_elaborations): Likewise.
27610 (get_elaboration_location, insert_elaboration_list): Likewise.
27611 (gnat_binding_level): Renamed from ada_binding_level.
27612 (init_gnat_to_gnu): Don't clear pending_elaborations.
27613 (global_bindings_p): Treat as global if no current_binding_level.
27614 (set_current_block_context): New function.
27615 (gnat_pushdecl): Renamed from pushdecl; major rework.
27616 All callers changed.
27617 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
27618 (finish_record_type): Call call pushdecl for stub decl.
27619 (function_nesting_depth): Deleted.
27620 (begin_subprog_body): Delete obsolete code.
27621 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
27623 2004-06-28 Robert Dewar <dewar@gnat.com>
27625 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27626 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
27627 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
27628 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
27629 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
27631 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
27632 deal with problem of inefficient slices on machines with strict
27633 alignment, when the slice is a component of a composite.
27635 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
27636 machines, we need the check there as well.
27638 2004-06-28 Ed Schonberg <schonberg@gnat.com>
27640 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
27641 determine safe copying direction for overlapping slice assignments
27642 when component is controlled.
27644 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
27645 formal derived type in the actual for a formal package are visible in
27646 the enclosing instance.
27648 2004-06-28 Ed Schonberg <schonberg@gnat.com>
27651 * sem_util.adb (Trace_Components): Diagnose properly an illegal
27652 circularity involving a private type whose completion includes a
27653 self-referential component.
27654 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
27655 renaming or an instantiation from an implicit derived operation.
27657 2004-06-28 Pascal Obry <obry@gnat.com>
27659 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
27661 (Library_File_Name_For): Idem.
27663 2004-06-28 Matthew Gingell <gingell@gnat.com>
27665 * g-traceb.ads: Add explanatory note on the format of addresses
27666 expected by addr2line.
27668 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
27670 * Makefile.in: Force debugging information on s-tasdeb.adb,
27671 a-except.adb and s-assert.adb needed by the debugger.
27673 2004-06-28 Vincent Celier <celier@gnat.com>
27675 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
27679 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
27681 * prj.adb: Minor reformatting
27682 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
27684 * prj.ads: Comment updates
27686 (Project_Data): Change Flag1 to Need_To_Build_Lib.
27687 Remove Flag2: not used.
27689 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
27692 * gnat_ugn.texi: Put a "null;" declaration in one project file example
27694 * gnat_rm.texi: Document Empty declarations "null;".
27696 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
27697 front of the linker options.
27698 (Link_Foreign): Put the global archives and the libraries in front of
27699 the linker options.
27701 2004-06-28 Javier Miranda <miranda@gnat.com>
27703 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
27704 (RTU_Loaded): Code cleanup
27705 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
27706 withed predefined units.
27708 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
27709 explicitly withed predefined units.
27710 Fix typo in comment
27712 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
27713 explicitly withed predefined units.
27715 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27717 * ada-tree.def (DECL_STMT): Deleted.
27718 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
27719 (DECL_STMT_VAR): Deleted.
27720 * decl.c: add_decl_stmt now add_decl_expr.
27721 * gigi.h: Likewise.
27722 * trans.c: Likewise.
27723 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
27724 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
27725 (add_stmt): Only handle padded type here.
27726 (add_stmt_with_node): Allow gnat_node to not be present.
27727 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
27728 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
27729 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
27730 make a SAVE_EXPR for the entire fat pointer.
27731 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
27732 (create_index_type): Make a DECL_EXPR.
27733 (end_subprog_body): Don't call allocate_struct_function here but
27736 2004-06-25 Pascal Obry <obry@gnat.com>
27738 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
27739 Relocatable from Build_Dynamic_Library call.
27741 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
27742 Relocatable are now synonym.
27744 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
27746 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
27747 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
27750 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
27751 Lib_Address and Relocatable.
27752 (Default_DLL_Address): Removed.
27754 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27755 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27756 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
27757 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
27758 (Default_DLL_Address): Removed.
27760 * mlib-tgt-mingw.adb: Ditto.
27761 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
27763 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
27764 the initial thread stack size.
27766 * a-strmap.ads: Move package L to private part as it is not used in
27767 the spec. Found while reading code.
27769 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
27771 * tracebak.c: Introduce support for a GCC infrastructure based
27772 implementation of __gnat_backtrace.
27774 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
27775 any more. Use accessors instead. This eases maintenance and relaxes
27776 some alignment constraints.
27777 (_GNAT_Exception structure): Remove the Ada specific fields
27778 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
27780 (is_handled_by, __gnat_eh_personality): Replace component references to
27781 exception structure by use of the new accessors.
27783 * init.c (__gnat_initialize): Adjust comments to match the just
27784 reverted meaning of the -static link-time option.
27786 * adaint.c (convert_addresses): Arrange not to define a stub for
27787 mips-irix any more, as we now want to rely on a real version from a
27788 recent libaddr2line.
27790 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
27791 the personality routine can use them and not have to rely on a C
27792 counterpart of the record anymore. This simplifies maintenance and
27793 relaxes the constraint of having Standard'Maximum_Alignment match
27795 Update comments, and add a section on the common header alignment issue.
27797 2004-06-25 Geert Bosch <bosch@gnat.com>
27799 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
27800 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
27802 2004-06-25 Robert Dewar <dewar@gnat.com>
27804 * gnat_rm.texi: Fix section on component clauses to indicate that the
27805 restriction on byte boundary placement still applies for bit packed
27807 Add comment on stack usage from Initialize_Scalars
27809 * gnat_ugn.texi: Add documentation for -gnatyLnnn
27811 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
27812 limiting nesting level.
27814 * usage.adb: Add line for -gnatyLnnn switch
27816 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
27817 sem_ch13.adb, exp_aggr.adb: Minor reformatting
27819 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
27820 type as well as on the subtype. This corrects a problem in freeze in
27821 setting alignments of atomic types.
27823 * sem_eval.ads: Minor comment typo fixed
27825 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
27826 level. Minor reformatting.
27828 * fname.adb (Is_Predefined_File_Name): Require a letter after the
27829 minus sign. This means that file names like a--b.adb will not be
27830 considered predefined.
27832 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
27833 record Test new flag and give diagnostic for bad component clause.
27834 (Freeze_Entity): Set alignment of array from component alignment in
27835 cases where this is safe to do.
27837 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
27840 * cstand.adb: (Create_Standard): Set alignment of String to 1
27842 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
27844 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
27845 code in the common constrained array cases.
27847 * a-storio.adb: Change implementation to avoid possible alignment
27848 problems on machines requiring strict alignment (data should be moved
27849 as type Buffer, not type Elmt).
27851 * checks.adb (Apply_Array_Size_Check): Improve these checks by
27852 killing the overflow checks which we really do not need (64-bits is
27855 2004-06-25 Vincent Celier <celier@gnat.com>
27857 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
27858 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
27859 inconditionally for the main project.
27860 (Recursive_Add_Archives.Add_Archive_Path): New procedure
27861 (Link_Executables.Check_Time_Stamps): New procedure
27862 (Link_Executables.Link_Foreign): New procedure
27863 Changes made to reduce nesting level of this package
27864 (Check): New procedure
27865 (Add_Switches): When not in quiet output, check that a switch is not
27866 the concatenation of several valid switches. If it is, issue a warning.
27867 (Build_Global_Archive): If the global archive is rebuilt, linking need
27869 (Compile_Sources): Rebuilding a library archive does not imply
27870 rebuilding the global archive.
27871 (Build_Global_Archive): New procedure
27872 (Build_Library): New name for Build_Archive, now only for library
27874 (Check_Archive_Builder): New procedure
27875 (Create_Global_Archive_Dependency_File): New procedure
27876 (Gprmake): Call Build_Global_Archive before linking
27877 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
27879 (Scan_Arg): Display the Copyright notice when -v is used
27881 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
27884 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
27886 Add new GNAT LIST qualifier /FILES=
27887 Added qualifier /DIRECTORY= to GNAT METRIC
27888 Added qualifier /FILES= to GNAT METRIC
27889 Added qualifier /FILES to GNAT PRETTY
27891 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
27892 to take into account both versions of the switch.
27894 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
27895 always be the last switch to the gcc driver. Disable switch storing so
27896 that switches automatically added by the gcc driver are not put in the
27899 * prj.adb (Project_Empty): Take into account changes in components of
27902 * prj.ads (Languages_Processed): New enumaration value All_Languages.
27904 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
27905 used. Split Boolean component Ada_Sources_Present in two Boolean
27906 components Ada_Sources_Present and Other_Sources_Present.
27909 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
27910 instead of Sources_Present.
27911 (Set_Ada_Paths.Add.Recursive_Add): Ditto
27913 * prj-nmsc.adb: Minor reformatting
27914 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
27915 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
27916 Check_Ada_Naming_Scheme.
27917 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
27920 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
27922 Make sure that all cycles where there is at least one "limited with"
27924 (Parse_Single_Project): New Boolean parameter In_Limited
27926 * prj-proc.adb (Recursive_Check): When Process_Languages is
27927 All_Languages, call first Prj.Nmsc.Ada_Check, then
27928 Prj.Nmsc.Other_Languages_Check.
27930 * prj-proc.adb (Process): Use Ada_Sources_Present or
27931 Other_Sources_Present (instead of Sources_Present) depending on
27934 * lang-specs.h: Keep -g and -m switches in the same order, and as the
27937 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
27938 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
27940 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
27943 * lib.ads (Disable_Switch_Storing): New procedure.
27945 * make.adb: Modifications to reduce nesting level of this package.
27946 (Check_Standard_Library): New procedure
27947 (Gnatmake.Check_Mains): New procedure
27948 (Gnatmake.Create_Binder_Mapping_File): New procedure
27949 (Compile_Sources.Compile): Add switch -gnatez as the last option
27950 (Display): Never display -gnatez
27952 * Makefile.generic:
27953 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
27955 * gnatcmd.adb (Check_Project): New function
27956 (Process_Link): New procedure to reduce nesting depth
27957 (Check_Files): New procedure to reduce the nesting depth.
27958 For GNAT METRIC, include the inherited sources in extending projects.
27959 (GNATCmd): When GNAT LS is invoked with a project file and no files,
27960 add the list of files from the sources of the project file. If this list
27961 is too long, put it in a temp text files and use switch -files=
27962 (Delete_Temp_Config_Files): Delete the temp text file that contains
27963 a list of source for gnatpp or gnatmetric, if one has been created.
27964 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
27965 in the project file is too large, create a temporary text file that
27966 list them and pass it to the tool with "-files=<temp text file>".
27967 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
27969 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
27970 generated file is in not in Ada.
27972 * gnatls.adb: Remove all parameters And_Save that are no longer used.
27973 (Scan_Ls_Arg): Add processing for -files=
27974 (Usage): Add line for -files=
27976 * g-os_lib.adb (On_Windows): New global constant Boolean flag
27977 (Normalize_Pathname): When on Windows and the path starts with a
27978 directory separator, make sure that the resulting path will start with
27981 * clean.adb (Clean_Archive): New procedure
27982 (Clean_Project): When there is non-Ada code, delete the global archive,
27983 the archive dependency files, the object files and their dependency
27984 files, if they exist.
27985 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
27987 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
27989 * sinfo.ads: Fix typo in comment.
27991 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
27992 the TSS for remote access-to-subprogram types, since these TSS are
27993 always present once the type has been analyzed.
27994 (RAS_E_Dereference): Same.
27996 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
27997 reference raises Bad_Attribute, mark the reference as analyzed so the
27998 node (and any children resulting from rewrites that could have occurred
27999 during the analysis that ultimately failed) is not analyzed again.
28001 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
28003 * exp_dist.adb: Minor comment fix.
28005 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
28006 type is an anonymous access type, no unchecked deallocation of the
28007 allocated object can occur. If the object is controlled, attach it with
28008 a count of 1. This allows attachment to the Global_Final_List, if
28009 no other relevant list is available.
28010 (Get_Allocator_Final_List): For an anonymous access type that is
28011 the type of a discriminant or record component, the corresponding
28012 finalisation list is the one of the scope of the type.
28014 2004-06-25 Ed Schonberg <schonberg@gnat.com>
28016 * sem_ch3.adb (Replace_Type): When computing the signature of an
28017 inherited subprogram, use the first subtype if the derived type
28018 declaration has no constraint.
28020 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
28021 before applying previous optimization. Minor code cleanup.
28023 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
28024 placed at the beginning of an unpacked record without explicit
28025 alignment, a slice of it will be aligned and does not need a copy when
28028 2004-06-25 Ed Schonberg <schonberg@gnat.com>
28032 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
28033 reference is written with expressions mimicking parameters.
28035 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
28038 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
28039 STEP 2a. The constraints of a full type declaration of a derived record
28040 type are checked for conformance with those declared in the
28041 corresponding private extension declaration. The message
28042 "not conformant with previous declaration" is emitted if an error is
28045 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
28047 * g-traceb.ads: Document the need for -E binder switch in the spec.
28049 * g-trasym.ads: Document the need for -E binder switch in the spec.
28051 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
28053 * sem_prag.adb: Add handling of pragma Detect_Blocking.
28055 * snames.h, snames.ads, snames.adb: Add entry for pragma
28058 * s-rident.ads: Change reference to pragma Detect_Blocking.
28060 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
28063 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
28064 to indicate whether pragma Detect_Blocking is active.
28066 * par-prag.adb: Add entry for pragma Detect_Blocking.
28068 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
28069 of not handling WITH.
28070 Note that this replaces the previous update which was incorrect.
28072 2004-06-25 Javier Miranda <miranda@gnat.com>
28074 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
28075 use-clauses to have a clean environment.
28077 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
28078 the installation of the use-clauses to stablish a clean environment in
28079 case of compilation of a separate unit; otherwise the call to
28080 use_one_package is protected by the barrier Applicable_Use.
28082 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
28083 the installation of the use-clauses to stablish a clean environment in
28084 case of compilation of a separate unit.
28085 (End_Use_Clauses): Minor comment cleanup.
28087 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
28089 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
28091 2004-06-23 Richard Henderson <rth@redhat.com>
28093 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
28095 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28097 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
28098 now bool instead of int.
28099 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
28100 * trans.c (gnu_switch_label_stack): New function.
28101 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
28102 elaboration of renamed entity returns.
28103 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
28104 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
28105 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
28106 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
28107 DECL_SIZE_UNIT and simplify variable-sized case.
28108 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
28109 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
28110 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
28111 (build_unit_elab): Disable for now.
28112 * utils.c (mark_visited): New function.
28113 (pushdecl): Walk tree to call it for global decl.
28114 (update_pointer_to): Update all variants of pointer and ref types.
28115 Add arg to COMPONENT_REF.
28116 (convert): Likewise.
28117 Move check for converting between variants lower down.
28118 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
28119 (build_allocator): Don't force type of MODIFY_EXPR.
28120 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
28121 put_var_into_stack.
28123 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28125 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
28126 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
28127 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
28129 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
28130 all callers changed.
28131 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
28132 the way that EXIT_STMT finds the loop label.
28133 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
28134 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
28135 (add_stmt): Use annotate_with_locus insted of setting directly.
28136 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
28137 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
28138 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
28139 (build_vms_descriptor): Add extra args to ARRAY_REF.
28140 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
28141 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
28143 (build_binary_op): Don't make explicit CONVERT_EXPR.
28144 Add extra rgs to ARRAY_REF.
28146 2004-06-14 Pascal Obry <obry@gnat.com>
28148 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
28149 Windows. Fix minor typo.
28151 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
28152 which is now supported on Windows. With this implementation using the
28153 Library Project feature is no different on Windows than on UNIX.
28155 2004-06-14 Vincent Celier <celier@gnat.com>
28157 * makegpr.adb (Compile_Sources): Nothing to do when there are no
28160 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
28162 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
28163 found, show the project name and the path of the previously parsed
28166 2004-06-14 Ed Schonberg <schonberg@gnat.com>
28168 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
28169 array, avoid copying the actual before the call.
28171 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
28173 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
28174 Instead, allocate memory on worst-case alignment assumptions, and then
28175 return an aligned address within the allocated zone.
28177 2004-06-14 Robert Dewar <dewar@gnat.com>
28179 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
28180 elab entities in predefined units in No_Run_Time_Mode.
28181 (Gen_Adainit_C): Same fix
28182 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
28183 units in No_Run_Time_Mode
28184 (Gen_Elab_Calls_C): Same fix
28186 * symbols-vms-alpha.adb: Minor reformatting
28188 * g-debpoo.ads: Minor reformatting
28190 * lib.adb (In_Same_Extended_Unit): Version working on node id's
28192 * lib.ads (In_Same_Extended_Unit): Version working on node id's
28194 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
28197 * make.adb: Minor reformatting
28199 * par-ch12.adb: Minor reformatting
28201 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
28203 * prj-strt.adb: Minor reformatting
28205 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
28208 * sem_attr.adb: Minor reformatting
28210 * sem_ch7.adb: Minor reformatting
28212 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
28213 for type in the same unit as the object declaration.
28215 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
28216 static string expressions and not just string literals.
28218 (Set_Warning): Reset restriction warning flag for restriction pragma
28219 Implement pragma Profile_Warnings
28220 Implement pragma Profile (Restricted)
28221 Give obolescent messages for old restrictions and pragmas
28223 * snames.h, snames.ads, snames.adb: Add new entry for pragma
28226 * s-rident.ads: Add declarations for restrictions required by profile
28227 Restricted and profile Ravenscar.
28229 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
28231 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
28232 configuration pragmas.
28234 2004-06-11 Vincent Celier <celier@gnat.com>
28236 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
28237 gnatsym, when symbol policy is Restricted.
28239 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
28240 gnatsym, when symbol policy is Restricted.
28242 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
28243 read the symbol file.
28244 (Finalize): Fail in symbol policy Restricted if a symbol in the original
28245 symbol file is not in the object files. Do not create a new symbol file
28246 when symbol policy is Restricted.
28248 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
28251 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
28253 (Usage): Line for new switch -R
28255 * make.adb (Initialize): When the platform is not VMS, add the
28256 directory where gnatmake is invoked in the front of the path, if
28257 gnatmake is invoked with directory information. Change the Scan_Args
28258 while loop to a for loop.
28259 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
28260 if Depth is equal or greater than the proposed depth, there is nothing
28262 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
28265 * prj.ads: Add new symbol policy Restricted.
28267 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
28268 with the new parameters Check_All_Labels and Case_Location.
28270 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
28271 (Library_Symbol_File needs to be defined).
28273 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
28274 and Case_Location If Check_All_Labels is True, check that all values of
28275 the string type are used, and output warning(s) if they are not.
28277 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
28280 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
28282 * gnat_ugn.texi: Update documentation about the library directory in
28285 * makegpr.adb (Display_Command): In verbose mode, also display the
28286 value of the CPATH env var, when the compiler is gcc.
28287 (Initialize): Change the Scan_Args while loop to a for loop
28288 (Compile_Individual_Sources): Change directory to object directory
28289 before compilations.
28291 * symbols.ads: New symbol policy Restricted.
28293 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
28295 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
28296 is now taken care of internally in the Exception_Propagation package
28297 and does not require clients assistance any more.
28299 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
28300 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
28301 functions. Helpers to maintain a predicate required in the handling of
28302 occurrence transfer between tasks.
28303 This is now handled internally and does not require clients assistance
28304 for the setup/propagate separation anymore.
28305 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
28306 allocation strategy, handle the Setup_And_Not_Propagated predicate and
28309 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
28310 raise_after_setup, now that everything is handled internally within the
28311 setup/propagation engine.
28313 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
28315 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
28316 Add additional conditions for the case of an actual being a simple
28317 name or literal. Improve inlining by preventing the generation
28318 of temporaries with a short lifetime (one use).
28320 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
28323 * einfo.ads: Minor comment updates for Has_Completion and
28324 E_Constant list of flags.
28326 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
28327 and constant redeclarations now set the Has_Completion flag of their
28328 defining identifiers.
28330 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
28331 Inspect_Deferred_Constant_Completion.
28332 Used to detect private deferred constants that have not been completed
28333 either by a constant redeclaration or pragma Import. Emits error message
28334 "constant declaration requires initialization expression".
28336 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
28337 completes a deferred constant.
28339 2004-06-11 Geert Bosch <bosch@gnat.com>
28341 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
28343 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
28344 calculating exponent for scaling denormal numbers.
28345 (Leading_Part): Properly raise Constraint_Error for zero or negative
28347 (Remainder): Properly raise Constraint_Error for zero divisor.
28349 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
28351 * sem_util.adb: Minor reformatting.
28353 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
28354 dereference when accessing the entry parameter record.
28355 (Check_Array_Type): Always check for possible implicit dereference.
28356 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
28357 Abort if a pointer is still present (denoting that an implicit
28358 dereference was left in the tree by the front-end).
28360 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
28361 dereference when accessing the entry parameter record.
28362 (Check_Array_Type): Always check for possible implicit dereference.
28363 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
28364 Abort if a pointer is still present (denoting that an implicit
28365 dereference was left in the tree by the front-end).
28367 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
28369 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
28370 message, like the compiler itself does. Easier to parse the output.
28372 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
28374 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
28375 be base names, and not includes directories.
28377 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
28379 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
28380 so that dependencies are properly taken into account by make.
28382 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
28385 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
28386 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
28388 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
28390 * Makefile.in (install-gnatlib): install target-specific run-time files.
28392 * Make-lang.in: Remove obsolete targets.
28394 2004-06-11 Ed Schonberg <schonberg@gnat.com>
28396 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
28397 specification, to catch misuses of program unit names.
28399 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
28400 superfluous conversions in an instance.
28402 2004-06-11 Ed Schonberg <schonberg@gnat.com>
28405 * sem_ch12.adb (Save_References): If operator node has been folded to
28406 enumeration literal, associated_node must be discarded.
28408 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
28410 * s-stchop-vxworks.adb: Add required pragma Convention to
28411 Task_Descriptor because it is updated by a C function.
28413 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
28416 * Makefile.in: Remove target specific SO_OPT on IRIX
28418 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28420 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
28421 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
28422 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
28423 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
28424 (STMT_STMT, USE_STMT): New statement codes.
28425 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
28426 * ada-tree.h: Reflect above changes.
28427 (struct tree_loop_id): Deleted.
28428 (union lang_tree_node, struct lang_decl, struct lang_type):
28429 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
28430 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
28431 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
28432 (IS_ADA_STMT): New macro.
28433 * decl.c (annotate_decl_with_node): New function.
28434 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
28435 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
28436 Call add_stmt_with_node to do needed assignments.
28437 Add call to update setjmp buffer directly, not via EXPR_STMT.
28438 (maybe_variable): Argment GNAT_NODE deleted.
28439 * gigi.h (maybe_variable): Likewise.
28440 (make_transform, add_stmt_with_node, set_block_for_group): New.
28441 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
28442 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
28443 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
28444 (set_lineno, set_lineno_from_sloc): Likewise.
28445 (record_code_position, insert_code_for): Likewise.
28446 (gnat_poplevel): Now returns void.
28447 (end_subprog_body): Now takes argument.
28448 * misc.c (cgraph.h, tree-inline.h): New includes.
28449 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
28450 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
28451 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
28452 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
28453 (gnat_parse_file): Don't set immediate_size_expand.
28454 Call cgraph functions.
28455 (gnat_expand_expr): Remove most cases.
28456 (record_code_position, insert_code_for): Remove from here.
28457 * trans.c (toplev.h, tree-gimple.h): Now included.
28458 (discard_file_names): Deleted.
28459 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
28460 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
28461 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
28462 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
28463 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
28464 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
28465 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
28466 (set_block_for_group, add_stmt_list): Likewise.
28467 (start_stmt_group): Renamed from start_block_stmt.
28468 (end_stmt_group): Likewise, from end_block_stmt.
28469 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
28470 (gigi): Don't set discard_file_names or call set_lineno.
28471 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
28472 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
28473 Numerous changes throughout to reflect new names and complete
28474 function-at-a-time implementation.
28475 (gnat_expand_stmt): Delete or comment out all cases.
28476 (process_inlined_subprograms): Use add_stmt.
28477 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
28478 call set_lineno; also remove unneeded block handling.
28479 (process_type): Remove unneeded block handling.
28480 (build_unit_elab): Remove calls to deleted functions.
28481 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
28482 (tree-dump.h): Likewise.
28483 (struct ada_binding_level): Add field jmpbuf_decl.
28484 (gnat_define_builtin, gnat_install_builtins): New.
28485 (gnat_gimplify_function, gnat_finalize): Likewise.
28486 (gnat_poplevel): No longer return BLOCK, set it instead.
28487 Remove code dealing with nested functions.
28488 (gnat_init_decl_processing): Also set size_type_node.
28489 Call gnat_install_builtins.
28490 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
28491 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
28492 Remove special-case for "main".
28493 (end_subprog_body): Add arg and rework for tree-ssa.
28494 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
28495 Add case for BOOLEAN_TYPE.
28496 * utils2.c (rtl.h): Now include.
28497 (build_call_raise): Test Debug_Flag_NN directly.
28498 (build_call_alloc_dealloc): Don't use local stack allocation for now.
28499 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
28500 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
28502 2004-06-07 Robert Dewar <dewar@gnat.com>
28504 * a-direct.ads, einfo.ads: Minor comment updates
28506 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
28507 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
28508 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
28509 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
28510 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
28512 * s-interr-sigaction.adb: Remove unreferenced variable
28513 (Attached_Interrupts). Minor reformatting.
28514 Avoid use of variable I (replace by J).
28516 * par-ch10.adb: Fix text of one error message
28518 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
28519 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
28520 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
28521 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
28522 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
28523 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
28524 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
28525 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
28526 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
28527 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
28528 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
28531 2004-06-07 Doug Rupp <rupp@gnat.com>
28533 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
28535 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
28537 * mlib-tgt-vms-ia64.adb: New file.
28539 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
28540 Add mlib-tgt-vms-ia64.adb
28541 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
28542 Move to alpha specific ifeq section.
28543 Add VMS specific versions of symbols.adb
28544 Renaming of 5q vms files.
28546 * 5qsystem.ads renamed to system-vms_64.ads.
28548 2004-06-07 Vincent Celier <celier@gnat.com>
28550 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
28551 explain that when a time of day corresponding to the non existing hour
28552 on the day switching to DST is specified, Split may return a different
28555 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
28558 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
28559 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
28561 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
28563 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
28564 the linking options.
28565 (Build_Library.Check_Libs): On VMS, if there is a dependency on
28566 g-trasym.ads, set Gtrasymobj_Needed to True.
28568 * prj-attr.adb: Add new package Metrics for gnatmetric
28570 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
28571 canonical case to take into account files with upper case characters on
28573 (Ada_Check): Load the reference symbol file name in the name buffer to
28574 check it, not the symbol file name.
28576 * snames.ads, snames.adb: Add standard name Metrics (name of project
28577 file package for gnatmetric).
28579 * vms_conv.ads: Add Metric to Comment_Type
28581 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
28583 * vms_data.ads: Add qualifiers for GNAT METRIC
28585 * makegpr.adb (Link_Executables): Take into account the switches
28586 specified in package Linker of the main project.
28588 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
28590 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
28591 the index of the last element is Units.Last, not Units.Table'Last
28592 (which is usually not a valid index within the actually allocated
28593 storage for the table).
28595 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
28596 determines whether to generate a call to a checked storage pool
28597 Dereference action.
28598 Generate such a call only for a dereference that either comes from
28599 source, or is the result of rewriting a dereference that comes from
28602 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
28604 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
28606 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
28608 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
28609 file level, elaborate the stride for inner dimensions in alignment
28612 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
28615 2004-06-07 Javier Miranda <miranda@gnat.com>
28617 * exp_ch6.adb: Correct wrong modification in previous patch
28619 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
28621 * g-trasym.ads: Corrected comment to properly reflect level of support
28624 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
28626 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
28627 includes case of a variable referenced on the left hand side of an
28628 assignment, therefore remove redundant code. Variables and prefixes of
28629 indexed or selected components are now marked as referenced on left
28630 hand side. Warnings are now properly emitted when variables or prefixes
28631 are assigned but not read.
28633 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
28634 left hand side referenced variables. Private access types do not
28635 produce the warning "variable ... is assigned but never read".
28636 Add also additional checks to left hand side referenced variables.
28637 Aliased, renamed objects and access types do not produce the warning
28638 "variable ... is assigned but never read" since other entities may read
28639 the memory location.
28641 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
28643 * Makefile.in: In the powerpc/vxworks-specific section, restore
28644 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
28647 2004-06-07 Ed Schonberg <schonberg@gnat.com>
28649 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
28650 predefined operators.
28651 Removes spurious type errors from g-trasym-vms.adb.
28653 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
28654 distinct from the operator appearing in the source, call appropriate
28655 routine to insert conversions when needed, and complete resolution of
28657 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
28658 interpretations for rewritten right operand.
28659 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
28660 the other operand is overloaded and the context is a type conversion.
28662 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28664 * ada-tree.def (BLOCK_STMT): Now has two operands.
28667 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
28669 * gigi.h: (gnat_poplevel): Now returns a tree.
28671 * trans.c (end_block_stmt): Add arg; all callers changed.
28672 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
28673 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
28674 (add_stmt): Set TREE_TYPE.
28675 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
28676 (gnat_expand_stmt, case BREAK_STMT): New case.
28678 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
28680 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
28682 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
28683 procedure Set_Stack_Size that is not needed.
28685 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
28687 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
28688 used for gnatpp input file and for the files upon which it depends
28690 2004-06-07 Ben Brosgol <brosgol@gnat.com>
28692 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28694 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
28696 * gnatvsn.ads: Bump version numbers appropriately.
28697 Add new build type.
28699 2004-06-07 Pascal Obry <obry@gnat.com>
28701 * gnat_ugn.texi: Improve comments about imported names and link names
28702 on Windows. Add a note about the requirement to use -k gnatdll's option
28703 when working with a DLL which has stripped stdcall symbols (no @nn
28706 2004-05-27 Vincent Celier <celier@gnat.com>
28708 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
28709 COMMENTS_LAYOUT=UNTOUCHED
28711 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
28712 symbols-vms-alpha.adb
28714 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
28716 * sem.ads: Clarify documentation on checks suppression.
28718 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
28720 2004-05-27 Ed Schonberg <schonberg@gnat.com>
28722 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
28723 the case of multiple derivations.
28724 (Is_Object_Reference): For a selected component, verify that the prefix
28725 is itself an object and not a value.
28727 * sem_ch12.adb (Same_Instantiated_Constant): New name for
28728 Same_Instantiated_Entity.
28729 (Same_Instantiated_Variable): Subsidiary to
28730 Check_Formal_Package_Instance, to recognize actuals for in-out generic
28731 formals that are obtained from a previous formal package.
28732 (Instantiate_Subprogram_Body): Emit proper error when
28733 generating code and the proper body of a stub is missing.
28735 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
28736 has a universal interpretation, do the disambiguation here.
28738 * exp_ch4.adb (Expand_N_Type_Conversion,
28739 Expand_N_Unchecked_Type_Conversion): Special handling when target type
28740 is Address, to avoid typing anomalies when Address is a visible integer
28743 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
28744 to determine whether a subprogram should not be marked Pure, even when
28745 declared in a pure package.
28747 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
28749 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
28751 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
28752 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
28753 Update the documentation about the Ravenscar profile, following the
28754 definition found in AI-249.
28756 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
28757 setting the Profile (Ravenscar). This must be done in addition to
28758 setting the required restrictions.
28760 * rtsfind.ads: Add the set of operations defined in package
28763 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
28766 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
28768 lang-specs.h: Always require -c or -S and always redirect to /dev/null
28769 if -gnatc or -gnats is passed.
28771 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
28773 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
28774 a significant reference. Warnings are now properly emitted when a
28775 discriminated type is not referenced.
28777 * lib-xref.adb (Generate_Reference): A deferred constant completion,
28778 record representation clause or record type discriminant does not
28779 produce a reference to its corresponding entity. Warnings are now
28780 properly emitted when deferred constants and record types are not
28783 2004-05-27 Geert Bosch <bosch@gnat.com>
28785 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
28786 Fixes ACATS Annex G tests.
28788 2004-05-27 Robert Dewar <dewar@gnat.com>
28790 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
28793 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
28795 * s-interr.adb (Server_Task): Take into account case of early return
28796 from sigwait under e.g. linux.
28798 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
28800 * gnat_ugn.texi: Add description for the new gnatpp options:
28801 -rnb - replace the original source without creating its backup copy
28802 -c0 - do not format comments
28804 2004-05-24 Geert Bosch <bosch@gnat.com>
28806 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
28807 with 192 bits of precision, sufficient to reduce a double-extended
28808 arguments X with a maximum relative error of T'Machine_Epsilon, for X
28809 in -2.0**32 .. 2.0**32.
28810 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
28811 reduction by the processor, which only uses a 68-bit approximation of
28813 (Tan): Always reduce arguments and compute function either using
28814 the processor's fptan instruction, or by dividing sin and cos as needed.
28816 2004-05-24 Doug Rupp <rupp@gnat.com>
28818 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
28819 gcc error on 32/64 bit VMS.
28821 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
28823 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
28824 since this is what we get for stack overflows although not documented
28826 Document the issues which may require adjustments to our signal
28829 2004-05-24 Ed Schonberg <schonberg@gnat.com>
28831 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
28832 enclosing dynamic scope if the instantiation is within a generic unit.
28834 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
28836 * exp_dbug.ads: Fix typo.
28838 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
28839 Rename it to its proper name: system-linux-ia64.ads
28840 (stamp-gnatlib1): Remove extra target specific run time files when
28841 setting up the rts directory.
28843 2004-05-24 Javier Miranda <miranda@gnat.com>
28845 * einfo.ads, einfo.adb (Limited_Views): Removed.
28846 (Limited_View): New attribute that replaces the previous one. It is
28847 now a bona fide package with the limited-view list through the
28848 first_entity and first_private attributes.
28850 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
28851 limited-private-with clause.
28852 (Install_Limited_Withed_Unit): Install the private declarations of a
28853 limited-private-withed package. Update the installation of the shadow
28854 entities according to the new structure (see Build_Limited_Views)
28855 (Build_Limited_Views): Replace the previous implementation of the
28856 limited view by a package entity that references the first shadow
28857 entity plus the first shadow private entity (required for limited-
28858 private-with clause)
28859 (New_Internal_Shadow_Entity): Code cleanup.
28860 (Remove_Limited_With_Clause): Update the implementation to undo the
28861 new work carried out by Build_Limited_Views.
28862 (Build_Chain): Complete documentation.
28863 Replace Ada0Y by Ada 0Y in comments
28866 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
28867 types the level of accessibility depends on the enclosing type
28870 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
28871 entities. Complete documentation of previous change.
28873 2004-05-24 Robert Dewar <dewar@gnat.com>
28875 * namet.adb: Minor reformatting
28876 Avoid use of name I (replace by J)
28877 Minor code restructuring
28879 * sem_ch6.adb: Minor reformatting
28881 * lib-writ.adb: Do not set restriction as active if this is a
28882 Restriction_Warning case.
28884 * sem_prag.adb: Reset restriction warning flag if real pragma
28885 restriction encountered.
28887 * s-htable.adb: Minor reformatting
28888 Change rotate count to 3 in Hash (improves hash for small strings)
28890 * 5qsystem.ads: Add comments for type Address (no literals allowed).
28892 * gnat_ugn.texi: Add new section of documentation "Code Generation
28893 Control", which describes the use of -m switches.
28895 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
28897 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
28898 through the DECL_INITIAL for renamed variables.
28900 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
28902 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
28904 2004-05-19 Joel Brobecker <brobecker@gnat.com>
28906 * exp_dbug.ads: Correct comments concerning handling of overloading,
28907 since we no longer use $ anymore.
28909 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
28911 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
28912 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
28913 with illegal subunits.
28915 2004-05-19 Ed Schonberg <schonberg@gnat.com>
28917 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
28918 body with front-end inlining enabled, check whether an inline pragma
28919 appears immediately after the body and applies to it.
28921 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
28922 enabled and the pragma appears after the body of the subprogram.
28924 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28926 Part of function-at-a-time conversion
28928 * misc.c (adjust_decl_rtl): Deleted.
28929 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
28932 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
28933 (add_decl_stmt, add_stmt, block_has_vars): New functions.
28934 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
28936 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
28937 when making a decl.
28938 (gnat_to_gnu_entity): Likewise.
28939 Use add_stmt to update setjmp buffer.
28940 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
28942 No longer call adjust_decl_rtl.
28943 (DECL_INIT_BY_ASSIGN_P): New macro.
28944 (DECL_STMT_VAR): Likewise.
28946 * trans.c (gigi): Call start_block_stmt to make the outermost
28948 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
28949 Call start_block_stmt and end_block_stmt temporarily.
28950 Use gnat_expand_stmt instead of expand_expr_stmt.
28951 (add_decl_stmt): New function.
28952 (tree_transform): Call it.
28953 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
28954 (end_block_stmt): Set type and NULL_STMT.
28955 (gnat_expand_stmt): Make recursize call instead of calling
28957 (gnat_expand_stmt, case DECL_STMT): New case.
28958 (set_lineno_from_sloc): Do nothing if global.
28959 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
28960 (start_block_stmt, add_stmt, end_block_stmt): New functions.
28961 (build_block_stmt): Call them.
28962 (gnat_to_code): Don't expand NULL_STMT.
28963 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
28965 (tree_transform): Likewise.
28966 (tree_transform, case N_Null_Statement): Return NULL_STMT.
28967 (gnat_expand_stmt, case NULL_STMT): New case.
28968 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
28971 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
28974 * utils.c (create_var_decl): Do not call expand_decl or
28976 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
28977 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
28979 (struct e_stack): Add chain_next to GTY.
28980 (struct binding_level): Deleted.
28981 (struct ada_binding_level): New struct.
28982 (free_block_chain): New.
28983 (global_binding_level, clear_binding_level): Deleted.
28984 (global_bindings_p): Rework to see if no chain.
28985 (kept_level_p, set_block): Deleted.
28986 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
28987 new data structure and work directly on BLOCK node.
28988 (gnat_poplevel): Similarly.
28989 (get_decls): Look at BLOCK_VARS.
28990 (insert_block): Work directly on BLOCK node.
28991 (block_has_var): New function.
28992 (pushdecl): Rework for new binding structures.
28993 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
28995 (build_subprog_body): Likewise.
28996 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
28998 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
29000 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
29001 (DECL_STMT_VAR): Likewise.
29003 2004-05-17 Robert Dewar <dewar@gnat.com>
29005 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
29008 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
29009 of restriction synonyums by using
29010 Restrict.Process_Restriction_Synonyms.
29012 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
29014 * s-restri.ads (Tasking_Allowed): Correct missing comment
29016 * s-rident.ads: Add entries for restriction synonyms
29018 * ali.adb: Fix some problems with badly formatted ALI files that can
29019 result in infinite loops.
29021 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
29022 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
29023 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
29024 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
29025 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
29026 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
29027 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
29028 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
29029 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
29030 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
29031 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
29032 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
29033 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
29034 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
29035 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
29036 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
29037 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
29038 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
29039 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
29040 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
29041 to Task_Id (minor cleanup).
29043 2004-05-17 Vincent Celier <celier@gnat.com>
29045 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
29046 directory separator.
29048 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
29049 project being extended, if Languages is not declared in extending
29052 2004-05-17 Javier Miranda <miranda@gnat.com>
29054 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
29055 limited view of a visible sibling.
29057 2004-05-14 Robert Dewar <dewar@gnat.com>
29059 * gnat_ugn.texi: Minor change to -gnatS documentation
29061 * sprint.adb: Remove some instances of Assert (False) and for this
29062 purpose replace them by output of a ??? string.
29064 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
29067 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
29068 flag processing. This was suppressing required dependencies in
29069 No_Run_Time mode and is not needed since the binder does not generate
29070 references for things in libgnat anyway.
29072 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
29075 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
29077 * gnat_ugn.texi: Document AIX-specific issue with initialization of
29080 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
29081 action for the case of an actual parameter in an init proc call.
29083 2004-05-14 Ed Schonberg <schonberg@gnat.com>
29085 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
29086 subtype, check visible entities in base type.
29088 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
29089 actions if the object is a renaming.
29091 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
29092 Check_Formal_Package_Instance, to determine more precisely when the
29093 formal and the actual denote the same entity.
29095 2004-05-14 Javier Miranda <miranda@gnat.com>
29097 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
29099 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
29100 corresponding to a private_with must be removed from visibility; it
29101 will be made visible later, just before we analyze the private part of
29103 (Check_Private_Child_Unit): Allow private_with clauses in public
29105 (Install_Siblings): Make visible the private entities of private-withed
29107 (Install_Withed_Unit): Do not install the private withed unit if we
29108 are compiling a package declaration and the Private_With_OK flag was
29109 not set by the caller. These declarations will be installed later,
29110 just before we analyze the private part of the package.
29112 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
29113 during the evaluation of the expression that initializes the object,
29114 decorate it with the expected type to avoid cascade errors.
29117 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
29118 subprogram we have to install the private_with clauses after its
29119 specification has been analyzed (as documented in AI-262.TXT).
29121 * sem_ch8.adb (Has_Private_With): New function. Determines if the
29122 current compilation unit has a private with on a given entity.
29123 (Find_Direct_Name): Detect the Beaujolais problem described in
29126 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
29127 provides the functionality of the function Is_Ancestor that was
29128 previously available in sem_ch10. It has been renamed to avoid
29131 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
29133 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29135 * utils.c (build_vms_descriptor): Use SImode pointers.
29137 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
29139 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
29141 2004-05-14 GNAT Script <nobody@gnat.com>
29143 * Make-lang.in: Makefile automatically updated
29145 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
29147 Renaming of target specific files for clarity
29149 * Makefile.in: Rename GNAT target specific files.
29151 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
29152 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
29153 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
29154 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
29155 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
29156 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
29157 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
29158 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
29159 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
29160 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
29161 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
29162 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
29163 51osinte.adb, 51osinte.ads, 51system.ads,
29164 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
29165 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
29166 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
29167 56tpopsp.adb, 57system.ads, 58system.ads,
29168 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
29169 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
29170 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
29171 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
29172 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
29173 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
29174 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
29175 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
29176 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
29177 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
29178 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
29179 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
29180 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
29181 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
29182 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
29183 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
29184 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
29185 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
29186 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
29187 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
29188 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
29189 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
29190 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
29191 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
29192 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
29193 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
29194 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
29195 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
29196 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
29197 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
29198 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
29199 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
29200 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
29201 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
29202 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
29203 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
29204 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
29205 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
29206 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
29207 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
29209 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
29210 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
29211 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
29212 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
29213 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
29214 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
29215 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
29216 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
29217 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
29218 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
29219 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
29220 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
29221 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
29222 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
29223 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
29224 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
29225 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
29226 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
29227 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
29228 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
29229 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
29230 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
29231 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
29232 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
29233 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
29234 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
29235 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
29236 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
29237 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
29238 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
29239 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
29240 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
29241 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
29242 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
29243 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
29244 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
29245 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
29246 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
29247 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
29248 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
29249 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
29250 s-osinte-vms.ads, s-osinte-vxworks.adb,
29251 s-osinte-vxworks.ads, s-osprim-mingw.adb,
29252 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
29253 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
29254 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
29255 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
29256 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
29257 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
29258 s-stchop-vxworks.adb, s-taprop-dummy.adb,
29259 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
29260 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
29261 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
29262 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
29263 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
29264 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
29265 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
29266 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
29267 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
29268 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
29269 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
29270 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
29271 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
29272 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
29273 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
29274 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
29275 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
29276 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
29277 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
29278 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
29279 system-irix-o32.ads, system-linux-x86_64.ads,
29280 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
29281 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
29282 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
29283 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
29284 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
29285 system-vxworks-mips.ads, system-vxworks-ppc.ads,
29286 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
29289 2004-05-13 Zack Weinberg <zack@codesourcery.com>
29291 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
29293 2004-05-13 Diego Novillo <dnovillo@redhat.com>
29295 Merge from tree-ssa-20020619-branch.
29297 * config-lang.in (boot_language, build_by_default): Set
29299 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
29300 (max_size): Add static chain op for call_expr.
29302 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
29305 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
29307 2004-05-11 Roger Sayle <roger@eyesopen.com>
29309 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
29312 2004-05-10 Doug Rupp <rupp@gnat.com>
29314 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
29317 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
29319 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
29321 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
29322 Fixes undefined symbols in IA64 gnatlib.
29324 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
29326 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
29327 Short_Address). This will be moved to system.auxdec.
29329 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
29331 * sem_util.adb: Replace test for presence of a node that is always
29332 present with a call to Discard_Node.
29334 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
29335 Analyze on the library unit node after generation of distribution stub
29336 constructs. The call was a no-op because Unit_Node has already been
29337 Analyzed, and the tree fragments for the distribution stubs are
29338 analyzed as they are inserted in Exp_Dist.
29339 Update comment regarding to distribution stubs to reflect that we
29340 do not generate stub in separate files anymore.
29342 * einfo.ads: Clarify the fact that a tagged private type has the
29343 E_Record_Type_With_Private Ekind.
29345 * erroutc.adb: Minor reformatting
29347 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
29348 values if line length is increased using -gnatyM (noticed during code
29351 * eval_fat.adb: Minor reformatting
29352 Put spaces around exponentiation operator
29354 2004-05-10 Ed Schonberg <schonberg@gnat.com>
29357 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
29358 has been rewritten as an explicit dereference, retrieve type of
29359 original node to check for possibly unconstrained record type.
29361 2004-05-10 Ed Schonberg <schonberg@gnat.com>
29363 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
29364 overriding, use the operation of the parent unconditionally.
29366 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
29367 operation when either operand is a literal, to avoid further
29370 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
29371 overridden by a previous explicit declaration, mark the previous entity
29374 * sem_disp.adb (Check_Dispatching_Operation): New predicate
29375 Is_Visibly_Controlled, to determine whether a declaration of a
29376 primitive control operation for a derived type overrides an inherited
29377 one. Add warning if the explicit declaration does not override.
29379 2004-05-10 Vincent Celier <celier@gnat.com>
29381 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
29382 some cases when the sources are no longer present.
29384 * make.adb (Collect_Arguments): Fail if an external source, not part
29385 of any project need to be compiled, when switch -x has not been
29388 * makeusg.adb: Document new switch -x
29390 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
29391 defaulted to False.
29393 * switch-m.adb (Scan_Make_Switches): New switch -x
29395 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
29396 gnatmake switch -x.
29398 * gnat_ugn.texi: Document new gnatmake switch -x
29400 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
29402 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
29404 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
29405 (process_attributes): Likewise.
29407 2004-05-10 Joel Brobecker <brobecker@gnat.com>
29409 * s-inmaop.ads: Fix spelling mistake in one of the comments.
29411 2004-05-10 Robert Dewar <dewar@gnat.com>
29413 * gnat_ugn.texi: Document that for config pragma files, the maximum
29414 line length is always 32767.
29416 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
29417 literals is now allowed.
29419 * gnat-style.texi: Remove statement about splitting long lines before
29420 an operator rather than after, since we do not follow this rule at all.
29421 Clarify rule (really lack of rule) for spaces around exponentiation
29423 * sem_elim.adb: Allow concatenation of string literals as well as a
29424 single string literal for pragma arguments.
29426 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
29428 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
29429 written for append case.
29431 * frontend.adb: Changes to avoid checking max line length in config
29434 * g-os_lib.ads: Minor reformatting
29436 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
29437 wrong in any case. Instead use standard value. Noticed during code
29440 * opt.ads (Max_Line_Length): New field, used to implement removal of
29441 limitation on length of lines when scanning config pragma files.
29443 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
29444 makeutl.ads, makeutl.adb: Minor reformatting
29446 * scn.adb: Do not check line length while scanning config pragma files
29447 Do not check line length while scanning out license information
29449 * scng.adb: Changes to avoid line length checks while parsing config
29452 2004-05-10 GNAT Script <nobody@gnat.com>
29454 * Make-lang.in: Makefile automatically updated
29456 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
29458 * osint.adb (Find_Program_Name): Fix handling of VMS version
29461 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
29463 * g-os_lib.ads (Invalid_Time): New constant
29465 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
29466 return OS_Time instead of time_t to match what is imported by Ada.
29467 Now return -1 if the file doesn't exist, instead of a random value
29469 2004-05-05 Robert Dewar <dewar@gnat.com>
29471 * usage.adb: Add line for -gnatR?s switch
29473 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
29475 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
29476 and for Match (Data_First, Data_last)
29478 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
29479 written when we are dealing with multi-unit files.
29481 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
29483 * Makefile.in: Remove unused targets and variables.
29485 2004-05-05 Vincent Celier <celier@gnat.com>
29487 * switch-m.adb: New gnatmake switch -eI
29489 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
29490 of new gnatmake switch -eInnn.
29492 * makegpr.adb: Take into account new parameters Index and Src_Index in
29495 * clean.adb: Implement support for multi-unit sources, including new
29498 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
29501 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
29502 (Extract_From_Q): New out parameter Index
29503 (Mark, Is_Marked): Subprograms moved to Makeutl
29504 (Switches_Of): New parameter Source_Index
29505 (Add_Switch): New parameter Index
29506 (Check): New parameter Source_Index
29507 (Collect_Arguments): New parameter Source_Index
29508 (Collect_Arguments_And_Compile): New parameter Source_Index
29509 (Compile): New parameter Source_Index
29510 Put subprograms in alphabetical order
29511 Add support for multi-source sources, including in project files.
29513 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
29514 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
29517 * makeusg.adb: New gnatmake switch -eInnn
29519 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
29522 * opt.ads (Main_Index): New variable, defaulted to 0.
29524 * osint.ads, osinte.adb (Add_File): New parameter Index
29525 (Current_Source_Index): New function
29527 * prj.adb: Take into account new components Index and Src_Index
29529 * prj.ads (String_Element): New component Index
29530 (Variable_Value): New component Index
29531 (Array_Element): New component Src_Index
29533 * prj-attr.adb: Indicate that optional index may be specified for
29534 attributes Main, Executable, Spec, Body and some of Switches.
29536 * prj-attr.ads (Attribute_Kind): New values for optional indexes
29537 (Attribute_Record): New component Optional_Index
29539 * prj-com.ads (File_Name_Data): New component Index
29541 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
29543 * prj-env.adb (Put): Output optional index
29545 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
29546 attributes Spec and Body.
29548 * prj-nmsc.adb: Process optional indexes
29550 * prj-pp.adb: Ouput "at" for optional indexes
29552 * prj-proc.adb: Take into account optional indexes
29554 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
29555 Optional_Index. For string literal,
29556 process optional index when Optional_Index is True.
29557 (Parse_Expresion): New Boolean parameter Optional_Index
29559 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
29560 (Set_Source_Index_Of): New procedure
29562 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
29565 * prj-util.ads (Executable_Of): New parameter Index
29566 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
29567 New parameter Src_Index, defaulted to 0.
29569 2004-05-05 Ed Schonberg <schonberg@gnat.com>
29572 * sem_ch3.adb (Access_Definition): If this is an access parameter
29573 whose designated type is imported through a limited_with clause, do
29574 not add the enclosing subprogram to the list of private dependents of
29577 2004-05-05 Ed Schonberg <schonberg@gnat.com>
29580 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
29581 a limited_with clause, and the other is its non-limited view.
29583 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
29585 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
29587 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
29588 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
29589 Stand.Boolean_Literals to produce references to entities
29590 Standard_False and Standard_True from compile-time computed boolean
29593 * stand.ads (Boolean_Literals): New variable, provides the entity
29594 values for False and True, for use by the expander.
29596 2004-05-05 Doug Rupp <rupp@gnat.com>
29598 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
29599 5vinmaop.adb: Unchecked convert Short_Address vice Address
29601 * adaint.c, raise.c: Caste CRTL function return value
29602 to avoid gcc error on 32/64 bit IVMS.
29604 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
29607 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
29609 * 5qsystem.ads (Address): Declare as Long_Integer
29610 (Short_Address): Declare as 32 bit subtype of Address
29611 Declare abstract address operations to avoid gratuitous ambiguities.
29613 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
29615 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
29616 instead of the old Boolean_Entry_Barriers.
29617 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
29619 2004-05-05 GNAT Script <nobody@gnat.com>
29621 * Make-lang.in: Makefile automatically updated
29623 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
29625 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
29627 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
29630 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
29631 alone. Replacing object references by literals is inappropriate in a
29632 so low level context.
29634 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
29636 * a-exexpr.adb: Add comments
29638 2004-05-03 Joel Brobecker <brobecker@gnat.com>
29640 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
29641 declare the Ancestor_Tags array in Type_Specific_Data with a small size
29642 without risking a bounds check error when accessing one of its
29644 (Type_Specific_Data): Define Ancestor_Tags as a small array.
29645 This prevents us from hitting a limitation during the debug info
29646 generation when using stabs.
29648 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
29650 This prevents us from hitting a limitation during the debug info
29651 generation when using stabs.
29653 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
29655 lang-specs.h: Remove -gnatz* from specs.
29657 2004-05-03 Vincent Celier <celier@gnat.com>
29659 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
29661 * Make-lang.in, Makefile.in: Add gprmake
29663 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
29665 * sem_aggr.adb: Fix typo in comment.
29667 2004-05-03 Robert Dewar <dewar@gnat.com>
29669 * make.adb: Minor reformatting
29671 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
29673 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
29674 so that it works when address is not a private type.
29676 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
29677 properly with rewritten unchecked conversions. This prevents
29678 order-of-elaboration issues that can otherwise arise.
29679 (Minimum_Size): Don't check size of access types under VMS
29681 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
29682 interpretations of integer literals as type System.Address.
29684 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
29685 (Is_Descendent_Of): New function
29687 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
29689 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
29690 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
29691 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
29693 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
29694 of the old Max_Entry_Queue_Depth.
29696 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
29697 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
29698 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
29700 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
29701 New entry for proper handling of Max_Entry_Queue_Depth.
29702 New entry for proper handling of No_Dynamic_Interrupts.
29704 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
29705 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
29706 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
29707 the GNAT specific restriction Max_Entry_Queue_Depth.
29708 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
29709 the GNAT specific restriction No_Dynamic_Interrupts.
29711 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
29712 instead of the old Boolean_Entry_Barriers.
29713 Use the new restriction No_Dynamic_Attachment instead of the old
29714 No_Dynamic_Interrupts.
29716 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
29717 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
29719 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
29720 of the old Max_Entry_Queue_Depth.
29722 2004-05-03 GNAT Script <nobody@gnat.com>
29724 * Make-lang.in: Makefile automatically updated
29726 2004-04-29 Ed Schonberg <schonberg@gnat.com>
29728 * checks.adb (Enable_Range_Check): If the prefix of an index component
29729 is an access to an unconstrained array, perform check unconditionally.
29731 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29733 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
29736 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
29738 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
29739 alternate stack setting. There was no support for the tasking cases
29740 and the changes eventually caused a number of side-effect failures in
29741 the non-tasking case too.
29743 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
29745 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
29748 2004-04-29 Vincent Celier <celier@gnat.com>
29750 * make.adb (Gnatmake): Increase max size of argument array for
29751 gnatbind for the potential addition of -F.
29752 If there are Stand-Alone Library projects, invoke gnatbind with -F to
29753 be sure that elaboration flags will be checked.
29755 * switch-c.adb: Correct call to Scan_Pos for -gnateI
29757 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
29759 * sem_warn.adb (Check_References): Move '<access-variable> may be
29760 null' warning out of under Warn_On_No_Value_Assigned.
29762 2004-04-29 Ed Falis <falis@gnat.com>
29764 * gnat_ugn.texi: Fixed texi error
29766 2004-04-29 Robert Dewar <dewar@gnat.com>
29768 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
29769 abstract operations if they come from predefined files.
29771 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
29774 * s-addope.adb: Correct obvious error in mod function
29776 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
29778 * Makefile.in: Add target pairs for powerpc darwin*
29781 * a-intnam-darwin.ads, s-osinte-darwin.adb,
29782 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
29784 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
29786 * Makefile.in: Add target macro definitions for s390*-linux*.
29787 * system-linux-s390.ads: New file.
29788 * system-linux-s390x.ads: New file.
29790 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
29792 * gnat_ugn.texi: Correct argument to @setfilename.
29794 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
29796 * a-exexpr.adb (Unwind_Word): New data type.
29797 (Unwind_Exception): Use it as type of Private1 and Private2.
29799 * raise.c (db_action_for): Fix debug printf.
29801 2004-04-27 Ed Schonberg <schonberg@gnat.com>
29803 * a-wtmoio.ads: Formal type must be a modular type, not a signed
29806 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29808 * decl.c (gnat_to_gnu_entity, case object): Call
29809 __builtin_update_setjmp_buf.
29811 * gigi.h (update_setjmp_buf): Deleted.
29812 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
29814 * misc.c: (update_setjmp_buf): Deleted.
29816 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
29817 around block of RTL.
29819 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
29821 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
29823 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
29824 subprogram for which no pragma All_Calls_Remote applies, store the
29825 address of the real subprogram in the underlying record type, so local
29826 dereferences do not go through the PCS.
29828 2004-04-26 Robert Dewar <dewar@gnat.com>
29830 * i-c.ads: Add some type qualifications to avoid ambiguities when
29831 compiling with s-auxdec.ads and a non-private address type.
29833 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
29835 * Makefile.rtl: Fix error in previous check-in:
29836 Add s-addope.o to non tasking object list (rather than tasking object
29839 2004-04-26 Javier Miranda <miranda@gnat.com>
29841 * sem_aggr.adb: Fix typo in comments
29842 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
29843 Required to check the null-exclusion attribute.
29845 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
29846 case of anonymous access types in record and array components. For a
29847 component definition the level is the same of the enclosing composite
29850 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
29851 that are anonymous access types the level of accessibility depends on
29852 the enclosing type declaration. In order to have this information, set
29853 the scope of the anonymous access type to the enclosing record type
29855 (Array_Type_Declaration): In case of components that are anonymous
29856 access types the level of accessibility depends on the enclosing type
29857 declaration. In order to have this information, set the scope of the
29858 anonymous access type to the enclosing array type declaration.
29860 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
29863 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
29864 renaming of anonymous access-to-constant types allowed if and only if
29865 the renamed object is access-to-constant.
29867 * sem_util.adb (Type_Access_Level): In case of anonymous access types
29868 that are component_definition or discriminants of a nonlimited type,
29869 the level is the same as that of the enclosing component type.
29871 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
29873 * sem_elim.adb: Some minor code reorganization from code reading. Fix
29874 misprint in the function name (File_Name_Match).
29876 2004-04-23 Laurent Guerby <laurent@guerby.net>
29878 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
29881 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29883 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
29885 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
29887 * adaint.c (__gnat_try_lock): No longer requires that the parent
29888 directory be writable, the directory itself is enough.
29889 (gnat_is_absolute_path): Change profile, so that the call from
29890 GNAT.OS_Lib can be made more efficient.
29892 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
29893 from GNAT.OS_Lib can be made more efficient.
29895 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
29896 one copy of the file name. Found by code reading.
29898 2004-04-23 Vincent Celier <celier@gnat.com>
29900 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
29901 Correct documentation on gnatmake switches transmitted to the compiler
29903 * ali.ads: Minor comment fix
29905 2004-04-23 Javier Miranda <miranda@gnat.com>
29907 * sem_ch6.adb: (Confirming Types): Code cleanup
29909 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
29910 subprogram types: E_Anonymous_Access_Subprogram_Type and
29911 E_Anonymous_Access_Protected_Subprogram_Type.
29913 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
29915 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
29916 whether a pragma All_Calls_Remote applies to the subprogram on which
29918 No functional change is introduced by this revision; the new parameter
29919 will be used to allow calls to local RCI subprograms to be optimized
29920 to not use the PCS in the case where no pragma All_Calls_Remote applies,
29921 as is already done in the PolyORB implementation of the DSA.
29923 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
29924 whether a pragma All_Calls_Remote applies to the subprogram on which
29926 No functional change is introduced by this revision; the new parameter
29927 will be used to allow calls to local RCI subprograms to be optimized
29928 to not use the PCS in the case where no pragma All_Calls_Remote applies,
29929 as is already done in the PolyORB implementation of the DSA.
29931 2004-04-23 Robert Dewar <dewar@gnat.com>
29933 * Makefile.rtl: Add entry for s-addope.o in run time library list
29934 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
29935 * s-addope.ads, s-addope.adb: New files.
29937 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
29938 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
29939 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
29940 System.Address to be non-private and signed.
29942 * sem_elim.adb: Minor reformatting (fairly extensive)
29943 Some minor code reorganization from code reading
29944 Add a couple of ??? comments
29946 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29948 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
29949 (tree_transform, case N_If_Statement): Remove non-determinism.
29951 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
29953 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
29955 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
29956 Eliminate' section.
29958 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
29959 no longer used as a parameter name for Eliminate pragma).
29961 2004-04-22 Laurent Guerby <laurent@guerby.net>
29963 PR optimization/14984
29964 PR optimization/14985
29965 * trans.c (gigi): Fix non determinism leading to bootstrap
29966 comparison failures.
29968 2004-04-21 Pascal Obry <obry@gnat.com>
29970 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
29971 passed to spawnvp() to properly handle program pathname with spaces on
29974 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
29976 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
29977 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
29978 unlocked in case of exceptions.
29980 2004-04-21 Joel Brobecker <brobecker@gnat.com>
29982 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
29983 This function does not exist anymore.
29985 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
29987 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
29989 * link.c: Move variables to the __gnat name space.
29991 * Makefile.in: list link.o explicitly when needed.
29993 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
29995 2004-04-21 Javier Miranda <miranda@gnat.com>
29997 * einfo.adb (Original_Access_Type): New subprogram
29998 (Set_Original_Access_Type): New subprogram
29999 (Write_Field21_Name): Write the name of the new field
30001 * einfo.ads (Original_Access_Type): New field present in access to
30003 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
30004 E_Anonymous_Access_Protected_Subprogram_Type.
30006 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
30009 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
30010 to anonymous access to subprogram types.
30012 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
30013 to subprogram types.
30015 * sem_ch3.adb (Access_Definition): Complete decoration of entities
30016 corresponding to anonymous access to subprogram types.
30017 (Analyze_Component_Declaration): Add new actual to the call to
30018 subprogram replace_anonymous_access_to_protected_subprogram.
30019 (Array_Type_Declaration): Add new actual to the call to subprogram
30020 replace_anonymous_access_to_protected_subprogram.
30021 (Process_Discriminants): Add new actual to the call to subprogram
30022 replace_anonymous_access_to_protected_subprogram.
30023 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
30025 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
30028 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
30029 access to subprogram types.
30031 * sem_util.adb (Has_Declarations): Addition of package_specification
30034 2004-04-21 Ed Schonberg <schonberg@gnat.com>
30036 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
30037 inlined flags to renamed entity only if in current unit.
30039 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
30041 * s-parint.ads: Add DSA implementation marker.
30043 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
30044 value of System.Partition_Interface.DSA_Implementation to determine
30045 what version of the distributed systems annex is available (no
30046 implementation, GLADE, or PolyORB).
30048 2004-04-21 Joel Brobecker <brobecker@gnat.com>
30050 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
30052 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30054 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
30055 with new type if alias sets differ.
30056 Fixes ACATS c41103b.
30058 2004-04-21 Vincent Celier <celier@gnat.com>
30060 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
30061 Add array Lang_Args for the language specific compiling argument
30064 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
30066 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
30068 * gnat_rm.texi: Update the descripton of the Eliminate pragma
30069 according to the recent changes in the format of the parameters of the
30070 pragma (replacing Homonym_Number with Source_Location).
30072 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
30074 * 5isystem.ads: Removed, unused.
30076 * gnat_rm.texi: Redo 1.13 change.
30078 2004-04-19 Robert Dewar <dewar@gnat.com>
30080 * s-stoele.ads: Clean up definition of Storage_Offset (the new
30081 definition is cleaner, avoids the kludge of explicit Standard operator
30082 references, and also is consistent with a visible System.Address with
30083 no visible operations.
30085 * s-geveop.adb: Add declarations to avoid assumption of visible
30086 operations on type System.Address (since these might not be available
30087 if Address is a non-private type for which the operations
30088 are made abstract).
30090 * sem_eval.adb: Minor reformatting
30092 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
30093 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
30094 reformatting (new function spec format).
30096 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
30097 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
30098 s-caun64.adb: Add declarations to avoid assumption of visible
30099 operations on type System.Address (since these might not be available
30100 if Address is a non-private type for which the operations are made
30103 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
30105 * exp_intr.adb: Minor comment update
30107 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
30109 * 5omastop.adb: Add declarations to avoid assumption of visible
30110 operations on type System.Address (since these might not be available
30111 if Address is a non-private type for which the operations
30112 are made abstract).
30114 2004-04-19 Vincent Celier <celier@gnat.com>
30116 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
30118 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
30121 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
30123 Call Check with Process_Languages.
30124 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
30125 with Process_Languages.
30126 (Recursive_Check): New Boolean parameter Process_Languages. Call
30127 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
30130 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
30132 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
30133 parameter Ada_Main, defaulted to True.
30134 Check for Ada specific characteristics only when Ada_Main is True.
30136 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
30138 * prj.adb: (Project_Empty): Add new Project_Data components.
30140 * prj.ads: New types and tables for non Ada languages.
30141 (Project_Data): New components Languages, Impl_Suffixes,
30142 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
30143 Include_Path, Include_Data_Set.
30145 * prj-env.ads, prj-env.adb: Minor reformatting
30147 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
30148 Put subprograms in alphabetical order
30150 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
30151 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
30154 * mlib-prj.adb: Back out modification in last version, as they are
30156 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
30158 * make.adb: (Mains): Moved to package Makeutl
30159 (Linker_Opts): Moved to package Makeutl
30160 (Is_External_Assignment): Moved to package Makeutl
30161 (Test_If_Relative_Path): Moved to package Makeutl
30162 (Gnatmake): Move sorting of linker options to function
30163 Makeutl.Linker_Options_Switches.
30165 * makeutl.ads, makeutl.adb: New files.
30167 * Makefile.in: Add makeutl.o to the object files for gnatmake
30169 * makeusg.adb: Add line for new switch -eL.
30171 * gnatls.adb (Image): New function.
30172 (Output_Unit): If in verbose mode, output the list of restrictions
30173 specified by pragmas Restrictions.
30175 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
30178 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
30179 needed, to put it in the range 1970 (included) - 2026 (excluded).
30180 (Time_Of): Do not shift Unix_Min_Year (1970).
30181 Shift the date by multiple of 56 years, if needed, to put it in the
30182 range 1970 (included) - 2026 (excluded).
30184 * adaint.h, adaint.c (__gnat_set_executable): New function.
30186 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30188 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
30189 and pop GC context.
30190 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
30191 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
30192 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
30193 (tree_transform, case N_Code_Statement): Likewise.
30194 (gnat_expand_stmt, case LABEL_STMT): Don't look at
30195 LABEL_STMT_FIRST_IN_EH.
30196 (gnat_expand_stmt, case ASM_STMT): New case.
30198 * utils2.c (build_unary_op): Properly set TREE_READONLY of
30199 UNCONSTRAINED_ARRAY_REF.
30201 * utils.c (poplevel): Temporarily push/pop GC context around inline
30202 function expansion.
30204 * decl.c (maybe_variable): Properly set TREE_READONLY of
30205 UNCONSTRAINED_ARRAY_REF.
30206 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
30208 * ada-tree.def: (ASM_STMT): New.
30210 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
30211 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
30212 ASM_STMT_INPUT): New.
30213 (ASM_STMT_CLOBBER): Likewise.
30215 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
30217 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
30218 general rcheck mechanism to raise Program_Error for E.4(18), instead
30219 of a custom raiser in System.Partition_Interface.
30220 Part of general cleanup work before PolyORB integration.
30222 * snames.ads, snames.adb: Add new runtime library entities and names
30225 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
30227 (Build_Subprogram_Id): New subprogram provided by exp_dist
30228 Code reorganisation in preparation for PolyORB integration.
30230 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
30232 (Build_Subprogram_Id): New subprogram provided by exp_dist
30234 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
30235 actual parameter types for call to dereference of an
30236 access-to-subprogram type.
30238 * rtsfind.ads: Add new runtime library entities and names for PolyORB
30241 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
30242 instead, which has the same behaviour here since we never pass it a
30245 * link.c (run_path_option, Solaris case): Use -Wl, as for other
30248 * Makefile.in: adjust object file lists for gnatlink and gnatmake
30249 to account for new dependency upon Interfaces.C.Strings + link.o
30250 For x86 FreeBSD, use 86numaux.
30252 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
30253 from Mlib.Tgt to Mlib.
30255 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
30256 target-independent.
30258 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
30259 target-specific versions of this subprogram, now implemented as a
30260 target-independent function in Mlib.
30262 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
30263 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
30264 (Linker_Library_Path_Option): Remove target-specific versions of this
30265 subprogram, now implemented as a target-independent function in Mlib.
30267 * atree.adb: (Allocate_Initialize_Node): New subprogram.
30268 Factors out node table slots allocation.
30269 (Fix_Parents): New subprogram.
30270 Encapsulate the pattern of fixing up parent pointers for syntactic
30271 children of a rewritten node.
30272 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
30273 (Rewrite): Use New_Copy when creating saved copy of original node.
30274 (Replace): Use Copy_Node to copy nodes.
30276 2004-04-19 Javier Miranda <miranda@gnat.com>
30278 * sprint.adb (Sprint_Node_Actual): Give support to the new
30279 Access_To_Subprogram node available in Access_Definition nodes. In
30280 addition, give support to the AI-231 node fields: null-exclusion,
30281 all-present, constant-present.
30283 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
30285 * sinfo.ads, sinfo.adb:
30286 New field Access_To_Subprogram_Definition in Access_Definition nodes
30288 * sem_ch6.adb (Process_Formals): Move here the code that creates and
30289 decorates internal subtype declaration corresponding to the
30290 null-excluding formal. This code was previously in Set_Actual_Subtypes.
30291 In addition, carry out some code cleanup on this code. In case of
30292 access to protected subprogram call
30293 Replace_Anonymous_Access_To_Protected_Subprogram.
30294 (Set_Actual_Subtypes): Code cleanup.
30296 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
30297 Find_Type in case of anonymous access renamings. Add warning in case of
30298 null-excluding attribute used in anonymous access renaming.
30300 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
30303 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
30305 (Access_Definition): In case of anonymous access to subprograms call
30306 the corresponding semantic routine to decorate the node.
30307 (Access_Subprogram_Declaration): Addition of some comments indicating
30308 some code that probably should be added here. Detected by comparison
30309 with the access_definition subprogram.
30310 (Analyze_Component_Declaration): In case of access to protected
30311 subprogram call Replace_Anonymous_Access_To_Protected.
30312 (Array_Type_Declaration): In case of access to protected subprogram call
30313 Replace_Anonymous_Access_To_Protected_Subprogram.
30314 (Process_Discriminants): In case of access to protected subprogram call
30315 Replace_Anonymous_Access_To_Protected_Subprogram.
30317 * par.adb (P_Access_Definition): New formal that indicates if the
30318 null-exclusion part was present.
30319 (P_Access_Type_Definition): New formal that indicates if the caller has
30320 already parsed the null-excluding part.
30322 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
30323 (P_Identifier_Declarations): Code cleanup and give support to renamings
30324 of anonymous access to subprogram types.
30325 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
30326 (P_Array_Type_Definition): Give support to AI-254.
30327 (P_Component_Items): Give support to AI-254.
30328 (P_Access_Definition): New formal that indicates if the header was
30329 already parsed by the caller.
30330 (P_Access_Type_Definition): New formal that indicates if the caller has
30331 already parsed the null-excluding part.
30333 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
30334 call to P_Access_Definition.
30336 2004-04-19 Geert Bosch <bosch@gnat.com>
30338 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
30339 the delicate semantics of floating-point to integer conversion.
30340 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
30342 * eval_fat.adb (Machine_Mantissa): Moved to spec.
30343 (Machine_Radix): New function.
30345 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
30347 (Machine_Radix): New function also for use in conversion checks.
30349 2004-04-19 Ed Schonberg <schonberg@gnat.com>
30351 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
30353 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
30354 to decorate the access-to-protected subprogram and the equivalent type.
30356 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
30357 to anonymous access to subprogram types.
30359 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
30360 constant-folding, for legality checks in contexts that require an RM
30363 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
30364 temporary but stack checking is not enabled, increment serial number
30365 to so that symbol generation is consistent with and without stack
30368 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
30369 independent on whether stack checking is enabled, caller must check
30370 the corresponding flag.
30372 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
30374 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
30375 parent if it has discriminants.
30376 (Build_Derived_Private_Type): Constructed full view does
30377 not come from source.
30378 (Process_Discriminants): Default discriminants on a tagged type are
30379 legal if this is the internal completion of a private untagged
30382 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
30383 no constraint checks, because it corresponds to an existing object.
30385 * sem_prag.adb (Process_Convention): Pragma applies
30386 only to subprograms in the same declarative part, i.e. the same unit,
30387 not the same scope.
30389 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
30390 ignore type mismatch on a numeric conversion if expression comes from
30393 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
30395 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
30396 Homonym_Number parameter, add processing for Source_Location parameter
30398 (Check_Eliminated): Remove the check for homonym numbers, add the check
30399 for source location traces.
30401 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
30402 with Arg_Source_Location corresponding to the changes in the format of
30405 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
30406 Eliminate pragma corresponding to the changes in the format of the
30407 pragma: Homonym_Number is replaced with Source_Location, two ways of
30408 distinguishing homonyms are mutially-exclusive.
30410 2004-04-19 Joel Brobecker <brobecker@gnat.com>
30412 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
30414 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
30415 No_Dollar_In_Label, no longer necessary, as it is always True.
30416 (Strip_Suffixes): Likewise.
30418 2004-04-19 Gary Dismukes <dismukes@gnat.com>
30420 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
30421 modulus for compatibility with size clause on targets with 16-bit
30424 * layout.adb (Discrimify): In the case of private types, set Vtyp to
30425 full type to fix type mismatches on calls to size functions for
30426 discriminant-dependent array components.
30428 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
30430 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
30433 2004-04-19 Pascal Obry <obry@gnat.com>
30435 * mdll-utl.adb (Locate): New version is idempotent.
30437 2004-04-17 Laurent Guerby <laurent@guerby.net>
30439 PR ada/14988 (partial)
30440 * impunit.adb: Fix typo.
30442 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
30444 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
30445 and install-rts-cert targets. Remove all gnatlib and gnattools
30446 targets and all other rts-* targets (moved to libada). Remove (now)
30447 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
30448 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
30450 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30452 * trans.c (tree_transform): Shortcut returning error_mark_node for
30453 statements in annotate_only_mode.
30454 (tree_transform, case N_Label, case N_Return_Statement,
30455 N_Goto_Statement): Make statement tree instead of generating code.
30456 (tree_transform, case N_Assignment_Statement): No longer check
30457 type_annotate_only.
30458 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
30460 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
30462 (gnat_to_gnu): Collect any RTL generated and deal with it.
30463 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
30464 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
30465 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
30467 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
30469 * ada-tree.def (EXPR_STMT): Fix typo in name.
30470 (BLOCK_STMT, IF_STMT): New nodes.
30472 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
30473 LABEL_STMT_FIRST_IN_EH): New macros.
30474 (RETURN_STMT_EXPR): Likewise.
30476 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
30477 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
30479 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
30481 * atree.ads: Correct documentation on extended nodes.
30483 * link.c: Set run_path_option for FreeBSD.
30485 2004-04-08 Vincent Celier <celier@gnat.com>
30487 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
30488 one of the ALI file, do not link with DEC lib.
30490 * par.adb Remove the last two characters ("%s" or "%b") when checking
30491 if a language defined unit may be recompiled.
30493 2004-04-08 Ed Schonberg <schonberg@gnat.com>
30495 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
30496 removal of abstract operation leaves no possible interpretation for
30499 * sem_eval.adb (Eval_Qualified_Expression): Use
30500 Set_Raises_Constraint_Error on node when needed, so that it does not
30501 get optimized away by subsequent optimizations.
30503 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
30504 operands even when they are not wrapped in a type conversion.
30506 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
30508 * sem_prag.adb (Set_Exported): Warn about making static as result of
30509 export only when the export is coming from source. This may be not
30510 be true e.g. on VMS where we expand export pragmas for exception codes
30511 together with imported or exported exceptions, and we don't want the
30512 user to be warned about something he didn't write.
30514 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
30516 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
30517 duplication between normal entities and those declared as renamings.
30518 No functional change.
30520 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
30521 inline functions returning an unconstrained result.
30523 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
30525 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
30526 conform to what other front-ends do.
30528 2004-04-08 Doug Rupp <rupp@gnat.com>
30530 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
30533 2004-04-06 Pascal Obry <obry@gnat.com>
30535 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
30537 * osint.adb (Program_Name): Do not look past a directory separator.
30539 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
30541 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
30543 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
30544 requirement for preserving a copy of the original assignment node.
30546 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
30548 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
30550 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
30553 2004-04-06 Ed Schonberg <schonberg@gnat.com>
30555 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
30556 operator calls in functional notation, and apply
30557 Universal_Interpretation to operands, not to their type.
30559 2004-04-06 Robert Dewar <dewar@gnat.com>
30561 * 5wdirval.adb: Minor reformatting
30563 2004-04-06 Ed Falis <falis@gnat.com>
30565 * gnat_rm.texi: Improve a reference to the GCC manual
30567 2004-04-05 Vincent Celier <celier@gnat.com>
30569 * adaint.h, adaint.c: Add function __gnat_named_file_length
30571 * impunit.adb: Add Ada.Directories to the list
30573 * Makefile.in: Add VMS and Windows versions of
30574 Ada.Directories.Validity package body.
30576 * Makefile.rtl: Add a-direct and a-dirval
30578 * mlib-tgt.ads: Minor comment update.
30580 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
30581 a-direct.ads, a-direct.adb: New files.
30583 2004-04-05 Vincent Celier <celier@gnat.com>
30586 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
30587 just to the compiler.
30589 2004-04-05 Robert Dewar <dewar@gnat.com>
30591 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
30592 returned string is 1.
30594 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
30596 * eval_fat.ads: Minor reformatting
30598 * g-curexc.ads: Document that lower bound of returned string values
30601 * gnatlink.adb: Add ??? comment for previous change
30602 (need to document why this is VMS specific)
30604 * s-stoele.ads: Minor reformatting
30606 * tbuild.ads: Minor reformatting throughout (new function specs)
30608 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
30611 * scng.adb: Minor reformatting
30613 2004-04-05 Geert Bosch <bosch@gnat.com>
30615 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
30616 (Leading_Part): Still perform truncation to machine number if the
30617 specified radix_digits is greater or equal to machine_mantissa.
30619 2004-04-05 Javier Miranda <miranda@gnat.com>
30621 * par-ch3.adb: Complete documentation of previous change
30622 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
30623 (aliased must appear before constant).
30625 * par-ch4.adb: Complete documentation of previous change.
30627 * par-ch6.adb: Complete documentation of previous change.
30629 * sinfo.ads: Fix typo in commment.
30631 2004-04-05 Ed Schonberg <schonberg@gnat.com>
30633 * sem_ch3.adb (Inherit_Components): If derived type is private and has
30634 stored discriminants, use its discriminants to constrain parent type,
30635 as is done for non-private derived record types.
30637 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
30638 Ada 2005 AI-310: an abstract non-dispatching operation is not a
30639 candidate interpretation in an overloaded call.
30641 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
30642 expression is Null and target type is not an access type (e.g. a
30643 non-private address type).
30645 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
30647 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
30648 statement whose right-hand side is an inlined call, save a copy of the
30649 original assignment subtree to preserve enough consistency for
30650 Analyze_Assignment to proceed.
30652 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
30653 complete assignment subtree which is now unnecessary, as the expansion
30654 of inlined call has been improved to preserve a consistent assignment
30655 tree. Note_Possible_Modification must be called only
30656 after checks have been applied, or else unnecessary checks will
30659 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
30660 of explicit dereferences that do not Come_From_Source:
30661 - be selective on cases where we must go back to the dereferenced
30662 pointer (an assignment to an implicit dereference must not be
30663 recorded as modifying the pointer);
30664 - do not rely on Original_Node being present (Analyze_Assignment
30665 calls Note_Possible_Modification on a copied tree).
30667 * sem_warn.adb (Check_References): When an unset reference to a pointer
30668 that is never assigned is encountered, prefer '<pointer> may be null'
30669 warning over '<pointer> is never assigned a value'.
30671 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
30673 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
30676 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
30678 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
30679 libexc. We currently don't reference anything in this library and
30680 linking it in triggers linker warnings we don't want to see.
30682 * init.c: Update comments.
30684 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30686 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
30687 * utils.c (create_field_decl): Likewise.
30688 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
30690 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
30692 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
30693 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
30694 Add info directory entry and category.
30696 2004-04-02 Jan Hubicka <jh@suse.cz>
30698 * utils.c: Include function.h
30699 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
30701 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
30704 * Make-lang.in: Clean up generation of documentation
30706 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
30708 * xgnatug.adb: Removed, replaced by xgnatugn.adb
30710 * xgnatugn.adb: Replaces xgnatug.adb
30712 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
30714 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
30716 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30717 gnat_ug_wnt.texi: Removed.
30719 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
30721 * utils2.c: Update copyright notice.
30723 2004-04-01 Robert Dewar <dewar@gnat.com>
30725 * checks.adb: Minor reformatting throughout
30726 Note that prev checkin added RM reference to alignment warning
30728 2004-04-01 Ed Schonberg <schonberg@gnat.com>
30730 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
30731 non-static when building aggregate for bit-packed array.
30733 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
30734 function call that is itself the actual in a procedure call, build
30737 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
30738 a string literal, create a temporary for it, constant folding only
30739 handles scalars here.
30741 2004-04-01 Vincent Celier <celier@gnat.com>
30743 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
30744 Error_Msg_SP): New empty procedures to instantiate the Scanner.
30745 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
30747 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
30748 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
30749 and get the checksum.
30751 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
30753 Increase the Marking_Label at the end of the Multiple_Main_Loop,
30754 instead of at the beginning.
30756 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
30758 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
30761 * osint.ads (Multi_Unit_Index_Character): New Character global variable
30763 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
30766 * par.adb: Remove test on file name to detect language defined units.
30767 Add test on unit name, after parsing, to detect language defined units
30768 that are not compiled with -gnatg (except System.RPC and its children)
30770 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
30771 following units without style checking.
30773 * switch-c.adb: Change -gnatC to -gnateI
30775 * usage.adb: Document new switch -gnateInnn
30777 * scng.adb (Accumulate_Token_Checksum): New procedure
30778 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
30779 word or literal number.
30780 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
30783 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
30786 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
30787 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
30788 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
30789 5vtpopde.adb: Add missing 'constant' keywords.
30791 2004-04-01 Javier Miranda <miranda@gnat.com>
30793 * par-ch4.adb: (P_Allocator): Code cleanup
30795 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
30798 * sinfo.ads: Complete documentation of previous change
30800 2004-04-01 Pascal Obry <obry@gnat.com>
30802 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
30803 only on VMS. This special handling was done because an old GNU/ld bug
30804 on Windows which has been fixed.
30806 2004-04-01 GNAT Script <nobody@gnat.com>
30808 * Make-lang.in: Makefile automatically updated
30810 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30812 * decl.c (gnat_to_gnu_entity, make_type_from_size):
30813 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
30814 * trans.c (tree_transform, convert_with_check): Likewise.
30815 * utils.c (gnat_signed_or_unsigned_type): Likewise.
30816 (build_vms_descriptor, unchecked_convert): Likewise.
30817 * utils2.c (nonbinary_modular_operation): Likewise.
30819 2004-03-29 Javier Miranda <miranda@gnat.com>
30821 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
30822 (Install_Null_Excluding_Check): Local subprogram that determines whether
30823 an access node requires a runtime access check and if so inserts the
30824 appropriate run-time check.
30825 (Apply_Access_Check): Call Install_Null_Excluding check if required
30826 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
30828 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
30830 * einfo.ads: Fix typo in comment
30832 * exp_ch3.adb (Build_Assignment): Generate conversion to the
30833 null-excluding type to force the corresponding run-time check.
30834 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
30835 type to force the corresponding run-time check.
30837 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
30838 the null-excluding type to force the corresponding run-time check.
30840 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
30841 case of access types unless they have the null-excluding attribute.
30843 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
30846 * exp_util.ads: Fix typo in comment
30848 * par.adb (P_Null_Exclusion): New subprogram
30849 (P_Subtype_Indication): New formal that indicates if the null-excluding
30850 part has been scanned-out and it was present
30852 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
30854 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
30855 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
30856 type to force the corresponding run-time check
30857 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
30859 (Resolve_Array_Aggregate): Carry out some static checks
30860 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
30862 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
30863 attribute must be set only if specified by means of the null-excluding
30864 part. In addition, we must also propagate the access-constant attribute
30866 (Access_Subprogram_Declaration, Access_Type_Declaration,
30867 Analyze_Component_Declaration, Analyze_Object_Declaration,
30868 Array_Type_Declaration, Process_Discriminants,
30869 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
30870 and carry out some static checks.
30871 (Build_Derived_Access_Type): Set the null-excluding attribute
30872 (Derived_Type_Declaration, Process_Subtype): Carry out some static
30875 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
30877 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
30879 * sem_ch6.adb (Process_Formals): Carry out some static checks.
30880 (Set_Actual_Subtypes): Generate null-excluding subtype if the
30881 null-excluding part was present; it is not required to be done here in
30882 case of anonymous access types.
30883 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
30886 * sem_res.adb (Resolve_Actuals): Carry out some static check
30887 (Resolve_Null): Allow null in anonymous access
30889 * sinfo.adb: New subprogram Null_Exclusion_Present
30890 All_Present and Constant_Present available on access_definition nodes
30892 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
30893 object_declaration, derived_type_definition, component_definition,
30894 discriminant_specification, access_to_object_definition,
30895 access_function_definition, allocator, access_procedure_definition,
30896 access_definition, parameter_specification, All_Present and
30897 Constant_Present flags available on access_definition nodes.
30899 2004-03-29 Robert Dewar <dewar@gnat.com>
30901 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
30902 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
30903 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
30904 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
30905 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
30906 sem_prag.adb: Updates to handle multiple units/file
30908 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
30910 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
30911 sem_util.adb: Minor reformatting
30913 * sem_ch12.adb: Add comment for previous change
30915 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
30917 * osint.adb (Executable_Prefix): Set Exec_Name to the current
30918 executable name when not initialized. Otherwise, use its current value.
30920 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
30921 initialize it to another executable name than the current one. This
30922 allows to configure paths for an executable name (gnatmake) different
30923 from the current one (gnatdist).
30925 2004-03-29 Ed Schonberg <schonberg@gnat.com>
30927 * exp_ch6.adb (Expand_Call): A call to a function declared in the
30928 current unit cannot be inlined if it appears in the body of a withed
30929 unit, to avoid order of elaboration problems in gigi.
30931 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
30932 information for protected (wrapper) operation as well, to simplify gdb
30935 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
30936 protected body, indicate that the entity for the generated spec comes
30937 from source, to ensure that references are properly generated for it.
30938 (Build_Body_To_Inline): Do not inline a function that returns a
30941 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
30942 apply convention to homonyms that are declared explicitly.
30944 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
30945 that renames an equality operator and the operands are overloaded,
30946 resolve them with the declared formal types, before rewriting as an
30949 2004-03-29 GNAT Script <nobody@gnat.com>
30951 * Make-lang.in: Makefile automatically updated
30953 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
30955 * memtrack.adb: Log realloc calls, which are treated as free followed
30958 2004-03-25 Vincent Celier <celier@gnat.com>
30960 * prj-makr.adb (Process_Directories): Detect when a file contains
30961 several units. Do not include such files in the config pragmas or
30962 in the naming scheme.
30964 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
30965 Resolve links only when not in Trusted_Mode.
30966 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
30967 Do not resolve links for the display names.
30969 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
30970 resolve links when computing the display names.
30972 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
30974 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
30975 attribute reference does not denote a subtype, it can be any
30976 expression that has a classwide type, potentially after an implicit
30977 dereference. In particular, the prefix can be a view conversion for
30978 a classwide type (for which Is_Object_Reference holds), but it can
30979 also be a value conversion for an access-to-classwide type. In the
30980 latter case, there is an implicit dereference, and the original node
30981 for the prefix does not verify Is_Object_Reference.
30983 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
30984 conversion of a discriminant-dependent component of a mutable object
30987 2004-03-25 Ed Schonberg <schonberg@gnat.com>
30989 * freeze.adb (Freeze_Entity): When an inherited subprogram is
30990 inherited, has convention C, and has unconstrained array parameters,
30991 place the corresponding warning on the derived type declaration rather
30992 than the original subprogram.
30994 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
30995 indication on renaming declaration, if formal has a box and actual
30998 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
30999 determine whether to generate an implicit or explicit reference to
31000 the renamed entity.
31002 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
31003 subprogram renaming comes from a defaulted formal subprogram in an
31006 2004-03-25 Gary Dismukes <dismukes@gnat.com>
31008 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
31009 value expressions to ensure that calls within a component definition
31010 will be checked (since those are evaluated during the record type's
31013 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
31015 * s-tpobop.adb: Code clean up:
31016 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
31018 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
31020 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
31022 * Makefile.in: Clean up in the ravenscar run time.
31024 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31026 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
31027 of No_Strict_Aliasing to build_pointer_type_for_mode.
31028 * utils.c (update_pointer_to): Walk pointer and ref chains.
31030 2004-03-22 Cyrille Comar <comar@act-europe.fr>
31032 * ali.ads: Fix Comment about Dynamic_Elab.
31034 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
31035 Has_RACW, Is_Generic, etc.)
31036 (Output_Object, Gnatls): Take into account ALI files not attached to
31039 2004-03-22 Vincent Celier <celier@gnat.com>
31041 * gprep.adb: Change all String_Access to Name_Id
31042 (Is_ASCII_Letter): new function
31043 (Double_File_Name_Buffer): New procedure
31044 (Preprocess_Infile_Name): New procedure
31045 (Process_Files): New procedure
31046 (Gnatprep): Check if output and input are existing directories.
31047 Call Process_Files to do the real job.
31049 2004-03-22 Robert Dewar <dewar@gnat.com>
31051 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
31052 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
31054 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
31056 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
31057 case when the source contains only comments.
31059 2004-03-22 Ed Schonberg <schonberg@gnat.com>
31061 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
31062 declaration for a child subprogram body that acts as a spec, indicate
31063 that the entity in the declaration needs debugging information.
31065 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
31066 full view if the subtype is created for a constrained record component;
31067 gigi has enough information to construct the record, and there is no
31068 place in the tree for the declaration.
31070 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
31071 serial number for the dummy body that is built for analysis, to avoid
31072 inconsistencies in the generation of internal names when compiling
31075 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
31077 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
31080 2004-03-22 GNAT Script <nobody@gnat.com>
31082 * Make-lang.in: Makefile automatically updated
31084 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31086 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
31087 * trans.c (tree_transform, emit_index_check): Likewise.
31088 * utils.c (build_template): Likewise.
31089 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
31090 (maybe_unconstrained_array, unchecked_convert): Likewise.
31091 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
31092 (build_unary_op): Likewise.
31093 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
31094 (fill_vms_descriptor): Likewise.
31095 (build_call_alloc_dealloc): Likewise.
31097 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
31099 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
31102 * gnat_ug.texi: Add info directory category and entry.
31103 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31104 gnat_ug_wnt.texi: Regenerate.
31106 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
31108 * ada-tree.h: Update copyright notice.
31109 Minor reformatting.
31111 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
31113 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
31114 as regular exception objects and not as mere integers representing the
31115 condition code. The latter approach required some dynamics to mask off
31116 severity bits, which did not fit well into the GCC table based model.
31117 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
31118 exception data objects. We don't it and it would conflict with the other
31119 external symbol we have to generate for such exceptions.
31121 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
31122 the special code for VMS exceptions, since these are now represented
31123 as regular exceptions objects.
31125 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31127 * decl.c (debug_no_type_hash): Remove.
31128 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
31129 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
31131 2004-03-19 Laurent Guerby <laurent@guerby.net>
31133 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
31134 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
31136 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31138 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
31139 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
31140 (TYPE_RM_SIZE_INT): Directly use type.values.
31141 (TREE_LOOP_ID): Clean up check.
31142 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
31143 TYPE_VALUES, not TYPE_FIELDS.
31144 * trans.c (convert_with_check): Delay access of bounds of basetype
31145 until sure is numeric.
31147 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
31149 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
31152 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
31153 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
31154 Specific.Set instead of direct call to e.g pthread_setspecific.
31156 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
31158 * adaint.c: Update comments.
31160 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
31161 GNATLIB_SHARED for FreeBSD.
31163 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
31165 * init.c [VxWorks]: Do not fix the stack size for the environment task.
31166 When needed (stack checking) the stack size is retrieved
31167 from the VxWorks kernel.
31169 * Makefile.in: Flag -nostdinc is required when building the run time
31170 for avoiding looking for files in the base compiler.
31171 Add the VxWorks specific version of the package body for
31172 System.Stack_checking.Operations (5zstchop.adb).
31174 * Make-lang.in: Add the object file for
31175 System.Stack_Checking.Operations.
31177 * Makefile.rtl: Add object file for the package
31178 System.Stack_Checking.Operations.
31180 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
31182 * s-stache.ads, s-stache.adb: Move the operations related to stack
31183 checking from this package to package System.Stack_Checking.Operations.
31184 This way, stack checking operations are only linked in the final
31185 executable when using the -fstack-check flag.
31187 2004-03-18 Doug Rupp <rupp@gnat.com>
31189 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
31192 * 5qsystem.ads, 5xcrtl.ads: New files.
31194 2004-03-18 Vincent Celier <celier@gnat.com>
31196 * prj.adb (Reset): Reset hash table Files_Htable
31198 * prj-env.adb (Source_Paths, Object_Paths): New tables.
31199 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
31200 the procedures Add_To_Path_File.
31201 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
31202 making sure that each directory is present only once and, for object
31203 dirs, when a directory already present is added, the duplicate is
31204 removed and the directory is always put as the last in the table.
31205 Write the path files at the end of these accumulations.
31207 * prj-nmsc.adb (Record_Source): Add source file name in hash table
31208 Files_Htable for all sources.
31210 * prj-proc.adb (Process): Remove restrictions between not directly
31211 related extending projects.
31213 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
31215 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
31216 (Find_Sources): Minor speed optimization.
31218 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
31219 parameter Trusted_Mode.
31221 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
31223 * scn.adb (Determine_License): Take into account a degenerated case
31224 when the source contains only comments.
31226 2004-03-18 Ed Schonberg <schonberg@gnat.com>
31228 * sem_warn.adb (Check_References): For a warning on a selected
31229 component that does not come from source, locate an uninitialized
31230 component of the record type to produce a more precise error message.
31232 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
31234 * 3zsoccon.ads: Fix multicast options.
31236 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
31239 2004-03-15 Robert Dewar <dewar@gnat.com>
31241 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
31242 pragma used for a private type.
31244 * lib-xref.adb (Generate_Reference): Do not generate warning if
31245 reference is in a different unit from the pragma Unreferenced.
31247 * 5vtpopde.adb: Minor reformatting
31248 Fix casing of To_Task_ID
31250 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
31251 flag if we have an unchecked conversion to an access type in the same
31254 2004-03-15 Geert Bosch <bosch@gnat.com>
31256 * a-ngcoty.adb (Modulus): In alternate formula for large real or
31257 imaginary parts, use Double precision throughout.
31259 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
31260 we want to be able to compile run-time with -gnata for testing, but
31261 this may also be instantiated in user code that is compiled with -gnata.
31263 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
31265 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
31266 codes. Having a separate type for this is useful to enforce consistency
31267 throughout the various run-time units.
31268 (Exception_Data): Use Exception_Code for Import_Code.
31270 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
31271 Natural and Integer in various places.
31272 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
31273 with the severity bits masked off.
31274 (Register_VMS_Exception): Handle the additional exception data pointer
31277 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
31278 component, now reflected by an exported accessor.
31279 (is_handled_by): New routine to compute whether the propagated
31280 occurrence matches some handler choice specification. Extracted out of
31281 get_action_description_for, and expanded to take care of the VMS
31283 (get_action_description_for): Use is_handled_by instead of an explicit
31284 complex condition to decide if the current choice at hand catches the
31285 propagated occurrence.
31287 * raise.h (Exception_Code): New type for C.
31289 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
31290 System.Standard_Library.Exception_Code, to allow references from the
31291 pragma import/export expander.
31293 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
31294 New accessors to allow easy access to GNAT exception data
31296 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
31297 redundant Handled_By_Others component, helper for the personality
31298 routine which will now be able to call the appropriate exception data
31301 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
31302 component of Standard_Exception_Type to be the closest possible to
31303 Exception_Code in System.Standard_Library, that we cannot get at this
31304 point. Expand a ??? comment to notify that this type node should
31305 probably be rewritten later on.
31307 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
31308 registration call to include a pointer to the exception object in the
31311 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
31312 instead of int and explicit bitmasks.
31314 2004-03-15 Vincent Celier <celier@gnat.com>
31316 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
31317 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
31319 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
31320 longer needed now that it is in the spec of
31321 System.Tasking.Task_Attributes.
31323 * adaint.h, adaint.c: (__gnat_create_output_file): New function
31325 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
31327 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
31329 * make.adb (Gnatmake): Do not check the executable suffix; it is being
31330 taken care of in Scan_Make_Arg.
31331 (Scan_Make_Arg): Add the executable suffix only if the argument
31332 following -o, in canonical case, does not end with the executable
31333 suffix. When in verbose mode and executable file name does not end
31334 with executable suffix, output the executable name, in canonical case.
31336 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
31337 to avoid warnings when instantiating Ada.Task_Attributes.
31340 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
31341 in the correct order.
31343 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
31344 redirect standard output and error to a file for the invocation of the
31345 compiler, then read the file.
31347 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
31348 directory, instead of the Value.
31349 (Find_Source_Dirs): Remove useless code & comments.
31351 2004-03-15 Ed Schonberg <schonberg@gnat.com>
31353 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
31354 tagged type is inherited, and the parent operation is not frozen yet,
31355 force generation of a freeze node for the inherited operation, so the
31356 corresponding dispatch entry is properly initialized.
31357 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
31358 when looking for user-defined equality operation.
31360 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
31361 boolean when locating primitive equality of tagged component.
31363 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
31364 bit-aligned field and the right-hand side a string literal, introduce
31365 a temporary before expanding assignment into a loop.
31367 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
31368 priority in full, to ensure that any expanded subepxressions of it are
31369 elaborated in the scope of the init_proc.
31371 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
31372 after object declaration, skipping over code that may have been
31373 generated for validity checks.
31375 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
31376 discriminants, ignore the known discriminants of its full view, if
31377 any, to check legality.
31379 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
31380 component if type has unknown discriminants.
31381 (Analyze_Private_Extension_Declaration): Discriminant constraint is
31382 null if type has unknown discriminants.
31384 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
31385 for end label when present.
31387 * s-fileio.adb (Open): When called with a C_Stream, use given name for
31388 temporary file, rather than an empty string.
31390 2004-03-15 Ed Falis <falis@gnat.com>
31392 * s-thread.adb: Removed, no longer used.
31394 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31396 * decl.c (target.h): Now include.
31397 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
31398 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
31399 (validate_size): For POINTER_TYPE, get smallest size permitted on
31402 * fe.h: Sort Einfo decls and add Set_Mechanism.
31404 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
31405 (ada/decl.o): Depends on target.h.
31407 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
31408 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
31410 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
31412 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
31414 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
31415 Insert_Dereference_Action when rewriting an implicit dereference into
31416 an explicit one, this will be taken care of during expansion of the
31417 explicit dereference.
31418 (Expand_N_Slice): Same. Always do the rewriting, even for the case
31419 of non-packed slices, since the dereference action generated by
31420 expansion of the explicit dereference is needed in any case.
31421 (Expand_N_Selected_Component): When rewriting an implicit dereference,
31422 analyze and resolve the rewritten explicit dereference so it is seen
31424 (Insert_Dereference_Action): This procedure is now called only for the
31425 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
31426 dereferences that do not come from source (including explicit
31427 dereferences resulting from rewriting implicit ones), but do not
31428 recursively insert a check for the dereference nodes contained within
31430 (Insert_Dereference_Action): Clarify and correct comment.
31432 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
31435 Move language detection to the top level.
31436 * config-lang.in: Build by default.
31438 2004-03-05 Robert Dewar <dewar@gnat.com>
31440 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
31442 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
31443 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
31444 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
31445 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
31446 unchecked conversion to spec to avoid warnings.
31448 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
31451 * 7stpopsp.adb: Correct casing in To_Task_ID call
31453 * a-strsea.ads, a-strsea.adb: Minor reformatting
31455 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
31457 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
31458 Adjust Max_Msg_Length to be clearly large enough.
31460 * fe.h: Define In_Same_Source_Unit
31462 * osint.adb: Add pragma Warnings Off to suppress warnings
31463 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
31466 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
31468 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
31470 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
31472 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
31474 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
31476 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
31477 node. We now do generate them for gcc back end.
31479 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
31482 * sinput-c.adb: Fix bad name in header.
31483 Add pragma Warnings Off to suppress aliasing warning.
31485 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
31487 * snames.h, snames.ads, snames.adb: Add entry for pragma
31488 No_Strict_Aliasing.
31490 2004-03-05 Vincent Celier <celier@gnat.com>
31492 * prj-com.ads: Add hash table Files_Htable to check when a file name
31493 is already a source of another project.
31495 * prj-nmsc.adb (Record_Source): Before recording a new source, check
31496 if its file name is not already a source of another project. Report an
31499 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
31500 source file name, call gnatpp with all the sources of the main project.
31502 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
31505 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
31506 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
31507 /RUNTIME_SYSTEM=, converted to --RTS=
31508 /NOTABS, converted to -notabs
31510 2004-03-05 Pascal Obry <obry@gnat.com>
31512 * make.adb: Minor reformatting.
31514 2004-03-05 Ed Schonberg <schonberg@gnat.com>
31516 Part of implemention of AI-262.
31517 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
31519 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
31522 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
31523 when component type is a partially constrained class-wide subtype.
31524 (Constrain_Discriminated_Type): If parent type has unknown
31525 discriminants, a constraint is illegal, even if full view has
31527 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
31528 with unknown discriminants whose full view is a discriminated record.
31530 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
31531 flag, to handle properly derivations of tagged types with unknown
31533 (Analyze_Package_Spec, Analyze_Package_Body): Install
31534 Private_With_Clauses before analyzing private part or body.
31536 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
31537 Has_Discriminants can be true for a given type (documentation).
31539 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
31541 * s-restri.ads: Fix license (GPL->GMGPL).
31543 * s-tassta.adb: Minor reformatting.
31545 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
31546 by calls to Exit_One_ATC_Level, since additional clean up is performed
31549 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
31550 by calls to Exit_One_ATC_Level, since additional clean up is performed
31553 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31555 * trans.c: Reflect GCC changes to fix bootstrap problem.
31556 Add warning for suspicious aliasing unchecked conversion.
31558 2004-03-05 GNAT Script <nobody@gnat.com>
31560 * Make-lang.in: Makefile automatically updated
31562 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
31564 * ali.adb (Read_Instantiation_Instance): Do not modify the
31565 current_file_num when reading information about instantiations, since
31566 this corrupts files in later references.
31568 2004-03-02 Vincent Celier <celier@gnat.com>
31570 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
31571 before checking if it is read-only.
31573 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
31574 of SRC_DIRS and eliminate duplicates.
31576 * gprcmd.adb: Replace command "path" with command "path_sep" to return
31577 the path separator.
31578 (Usage): Document path_sep
31580 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
31581 C++ compiler. No need for a script.
31582 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
31583 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
31586 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
31587 where there are Ada sources.
31588 (Set_Ada_Paths): Only add to the include path the source dirs of project
31590 (Add_To_Path): Add the Display_Values of the directories, not their
31593 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
31596 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
31598 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
31599 Value is canonicalized.
31600 (Language_Independent_Check): Do not copy Value to Display_Value when
31601 canonicalizing Value.
31603 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
31604 path to find limited with cycles.
31605 (Parse_Single_Project): Use canonical cased path to find the end of a
31608 2004-03-02 Ed Schonberg <schonberg@gnat.com>
31610 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
31611 and not a child unit.
31613 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
31614 appear in a with_clause.
31616 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
31617 only happen in type_annotate mode, do not try to elaborate it.
31619 * exp_util.adb (Force_Evaluation): If expression is a selected
31620 component on the left of an assignment, use a renaming rather than a
31621 temporary to remove side effects.
31623 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
31624 inlined instance body, which is analyzed before the end of the
31627 2004-03-02 Robert Dewar <dewar@gnat.com>
31629 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
31630 sem_ch4.adb: Use new feature for substitution of keywords in VMS
31632 * errout.ads, errout.adb: Implement new circuit for substitution of
31635 * sem_case.adb (Analyze_Choices): Place message properly when case is
31636 a subtype reference rather than an explicit range.
31638 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
31640 2004-03-02 Doug Rupp <rupp@gnat.com>
31642 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
31644 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
31646 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
31648 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31650 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
31653 2004-02-25 Robert Dewar <dewar@gnat.com>
31655 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
31656 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
31657 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
31658 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
31659 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
31660 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
31661 the defining instance of the type to avoid aliasing problems.
31662 Fix copyright header. Fix bad comments in package header.
31664 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
31666 2004-02-25 Ed Schonberg <schonberg@gnat.com>
31668 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
31669 rewritten as references when aliased through an address clause.
31671 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
31672 whether call can be interpreted as an indirect call to the result of a
31673 parameterless function call returning an access subprogram.
31675 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
31678 * exp_ch7.adb (Make_Clean): Remove generation of calls to
31679 Unlock[_Entries], since this is now done by Service_Entries directly.
31681 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
31683 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
31684 Requeue_Call for better code readability. Change spec and update calls:
31685 PO_Service_Entries now unlock the PO on exit.
31686 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
31687 PO_Service_Entries.
31689 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
31691 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
31693 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
31695 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
31696 protected subprogram call and analyzing the result of such expanding
31697 in case when the called protected subprogram is eliminated.
31699 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
31702 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
31704 * Makefile.in: Clean ups.
31706 2004-02-23 Ed Schonberg <schonberg@gnat.com>
31708 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
31709 protected operations if original subprogram is flagged as eliminated.
31710 (Expand_N_Subprogram_Body): For a protected operation, create
31711 discriminals for next operation before checking whether the operation
31714 * exp_ch9.adb (Expand_N_Protected_Body,
31715 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
31716 for internal protected operations if the original subprogram is
31719 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
31720 declared in a single protected object.
31722 2004-02-23 Vincent Celier <celier@gnat.com>
31724 * prj-attr.adb: Make attribute Builder'Executable an associative array,
31725 case insensitive if file names are case insensitive, instead of a
31726 standard associative array.
31728 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
31729 them as case insensitive on platforms where the file names are case
31732 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
31733 project file has already been parsed that canonical path are compared.
31735 2004-02-23 Robert Dewar <dewar@gnat.com>
31737 * sinput-c.ads: Correct bad unit title in header
31739 * freeze.adb: Minor reformatting
31741 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31743 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
31744 nonaddressable COMPONENT_REF that is removing padding that we are
31745 taking the address of, take the address of the padded record instead
31746 if item is variable size.
31748 2004-02-20 Robert Dewar <dewar@gnat.com>
31750 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
31752 2004-02-20 Ed Schonberg <schonberg@gnat.com>
31754 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
31755 itype references for the constrained designated type of a component
31756 whose base type is already frozen.
31758 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
31760 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
31761 avoid GCC warnings.
31763 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
31765 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
31766 identifier for a phantom package that rewrites the formal package
31767 declaration with a box. The Add semantic decorations for the defining
31768 identifier from the original node (that represents the formal package).
31770 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
31772 * Make-lang.in (ada/stamp-sdefault): Use the top level
31775 2004-02-19 Richard Henderson <rth@redhat.com>
31777 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
31779 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
31781 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
31782 Scan_ALI can be used for multiple ALI files without reinitializing
31785 2004-02-18 Robert Dewar <dewar@gnat.com>
31787 * debug.adb: Minor reformatting.
31789 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31791 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
31792 to zero if there is an address clause.
31794 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
31796 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
31798 2004-02-18 Gary Dismukes <dismukes@gnat.com>
31800 * layout.adb (Layout_Component_List): Revise generation of call to
31801 discriminant-checking function to pass selections of all of the type's
31802 discriminants rather than just the variant-controlling discriminant.
31804 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
31806 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
31807 fail in the current setup and triggers spurious system error messages.
31808 Pretend it occurred and failed instead.
31810 2004-02-18 Vincent Celier <celier@gnat.com>
31812 * bld.adb: Mark FLDFLAGS as saved
31813 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
31814 it is not the root project. Put each directory to be
31815 extended between double quotes to prevent it to be expanded on Windows.
31816 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
31817 the project file. Set them back to their initial values if they have not
31818 been set in the project file.
31820 * gprcmd.adb: (Gprdebug, Debug): New global variables
31821 (Display_Command): New procedure
31822 (Usage): Document new command "linkopts"
31823 Call Display_Command when env var GPRDEBUG has the value "TRUE"
31824 Implement new command "linkopts"
31825 Remove quotes that may be around arguments for "extend"
31826 Always call Normalize_Pathname with arguments formatted for the platform
31828 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
31829 Change @echo to @$(display) in target clean to be able to clean silently
31831 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
31833 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
31836 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
31837 = Extending_All when current project is an extending all project.
31839 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
31840 set to True only for LINK command, after Unix switch -o.
31841 (Process_Arguments): Set Output_File_Expected to True for LINK command
31842 after Unix switch -o. When Output_File_Expected is True, never add an
31843 extension to a file name.
31845 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
31846 option file name, only to the --for-linker= switch.
31847 (Option_File_Name): If option file name do not end with ".opt", append
31850 2004-02-18 GNAT Script <nobody@gnat.com>
31852 * Make-lang.in: Makefile automatically updated
31854 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
31856 * Make-lang.in (stamp-sdefault): Do not depend on
31859 2004-02-12 Zack Weinberg <zack@codesourcery.com>
31861 * config-lang.in: Disable Ada by default until probe logic for
31862 a bootstrap Ada compiler can be moved to the top level configure
31865 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
31867 * decl.c (components_to_record): Don't claim that the internal fields
31868 we make to hold the variant parts are semantically addressable, because
31871 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
31872 adjust the comment describing the modular type form when we can use it.
31873 (Install_PAT): Account for the Esiz renaming.
31875 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
31876 sc_onstack context indication before raising the exception to which
31877 the signal is mapped. Allows better handling of later signals possibly
31878 triggered by the resumed user code if the exception is handled.
31880 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
31882 * 5zinit.adb: Removed, no longer used.
31884 2004-02-12 Robert Dewar <dewar@gnat.com>
31886 * ali.adb: Remove separating space between parameters on R line. Makes
31887 format consistent with format used by the binder for Set_Globals call.
31889 * atree.ads, atree.adb: Minor reformatting (new function header format)
31891 * bindgen.adb: Add Run-Time Globals documentation section containing
31892 detailed documentation of the globals passed from the binder file to
31895 * gnatls.adb: Minor reformatting
31897 * init.c (__gnat_set_globals): Add note pointing to documentation in
31900 * lib-writ.ads, lib-writ.adb: Remove separating space between
31901 parameters on R line.
31902 Makes format consistent with format used by the binder for Set_Globals
31905 * osint.ads: Add 2004 to copyright notice
31908 * snames.ads: Correct capitalization of FIFO_Within_Priorities
31909 Noticed during code reading, documentation issue only
31911 * usage.adb: Remove junk line for obsolete C switch
31912 Noticed during code reading
31914 2004-02-12 Vincent Celier <celier@gnat.com>
31916 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
31917 extend for each directory, so that multiple /** directories are
31918 extended individually.
31919 (Recursive_Process): Set the default for LANGUAGES to ada
31921 * gprcmd.adb: Define new command "ignore", to do nothing.
31922 Implement new comment "path".
31924 * Makefile.generic: Suppress output when SILENT is set
31925 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
31926 used, so that the correct compiler is invoked.
31927 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
31928 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
31930 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
31932 * Makefile.in: Clean ups and remove obsolete targets.
31934 2004-02-12 Ed Schonberg <schonberg@gnat.com>
31936 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
31937 predicate declared in exp_util.
31939 * exp_util.adb: Add comments.
31941 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
31942 visibility before compiling context of the subunit.
31944 * sem_res.adb (Check_Parameterless_Call): If the context expects a
31945 value but the name is a procedure, do not attempt to analyze as a call,
31946 in order to obtain more telling diagnostics.
31948 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
31949 'Access on parameterless function calls.
31950 (Normalize_Actuals): For a parameterless function call with missing
31951 actuals, defer diagnostic until resolution of enclosing call.
31953 * sem_util.adb (Wrong_Type): If the context type is an access to
31954 subprogram and the expression is a procedure name, suggest a missing
31957 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
31958 Nathanael Nerode <neroden@gcc.gnu.org>
31962 Merge with libada-branch:
31963 * config-lang.in: Build libada only when ada is built.
31965 2004-02-09 Ed Schonberg <schonberg@gnat.com>
31967 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
31968 for a tagged type, verify that both formals have the same type.
31970 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
31971 temporary when the formal is an in-parameter and the actual a possibly
31974 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
31975 when expansion is disabled, to ensure proper name capture with
31976 overloaded literals. Condition can be of any boolean type, resolve
31979 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
31980 renaming is for a formal subprogram with a default operator name, and
31981 there is a usable operator that is visible at the point of
31984 2004-02-09 Robert Dewar <dewar@gnat.com>
31986 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
31987 rewrite to ignore errors in ali files, intended to allow tools downward
31988 compatibility with new versions of ali files.
31990 * ali.ads: Add new parameter Ignore_Errors
31992 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
31993 duplicating the error message giving the file with restrictions.
31995 * debug.adb: Add debug flag I for gnatbind
31997 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
31998 operators for the case where the operator is a defining operator.
32000 * exp_ch3.adb: Minor reformatting (new function spec format).
32002 * exp_ch4.adb: Add comment for previous change, and make minor
32003 adjustment to loop to always check for improper loop termination.
32004 Minor reformatting throughout (new function spec format).
32006 * gnatbind.adb: Implement -di debug flag for gnatbind
32008 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
32010 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
32012 * lib-load.adb: Fix bad assertion.
32013 Found by testing and code reading.
32014 Minor reformatting.
32016 * lib-load.ads: Minor reformatting.
32018 * lib-writ.adb: There is only one R line now.
32020 * lib-writ.ads: Add documentation on making downward compatible changes
32021 to ali files so old tools work with new ali files.
32022 There is only one R line now.
32023 Add documentation on format incompatibilities (with special GPS note)
32025 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
32027 * par-load.adb: Minor reformatting
32029 * sem_ch8.adb: Fix to error message from last update
32030 Minor reformatting and restructuring of code from last update
32032 * par-prag.adb, snames.adb, snames.ads, snames.h,
32033 sem_prag.adb: Implement pragma Profile.
32035 * stylesw.adb: Implement -gnatyN switch to turn off all style check
32038 * usage.adb: Add line for -gnatyN switch
32040 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
32042 2004-02-09 Albert Lee <lee@gnat.com>
32044 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
32046 2004-02-09 Ed Schonberg <schonberg@gnat.com>
32048 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
32051 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
32052 is nested in an instance that is not frozen yet, to avoid
32053 order-of-elaboration problems in gigi.
32055 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
32056 body the attribute is legal.
32058 2004-02-09 Robert Dewar <dewar@gnat.com>
32060 * s-rident.ads: Minor comment correction
32062 * targparm.adb: Remove dependence on uintp completely. There was
32063 always a bug in Make in that it called Targparm before initializing
32064 the Uint package. The old code appeared to get away with this, but
32065 the new code did not! This caused an assertion error in gnatmake.
32067 * targparm.ads: Fix bad comment, restriction pragmas with parameters
32068 are indeed fully supported.
32070 2004-02-06 Alan Modra <amodra@bigpond.net.au>
32072 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
32074 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
32076 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
32077 with targetm.calls.promote_prototypes.
32079 2004-02-04 Robert Dewar <dewar@gnat.com>
32081 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
32082 ali.ads, gprcmd.adb: Minor reformatting
32084 * bindgen.adb: Output restrictions string for new style restrictions
32087 * impunit.adb: Add s-rident.ads (System.Rident) and
32088 s-restri (System.Restrictions)
32090 * lib-writ.adb: Fix bug in writing restrictions string (last few
32093 * s-restri.ads, s-restri.adb: Change name Restrictions to
32094 Run_Time_Restrictions to avoid conflict with package name.
32095 Add circuit to read and acquire run time restrictions.
32097 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
32099 * restrict.ads, restrict.adb: Use the new restriction
32100 No_Task_Attributes_Package instead of the old No_Task_Attributes.
32102 * sem_prag.adb: No_Task_Attributes is a synonym of
32103 No_Task_Attributes_Package.
32105 * snames.ads, snames.adb: New entry for proper handling of
32106 No_Task_Attributes.
32108 * s-rident.ads: Adding restriction No_Task_Attributes_Package
32109 (AI-00249) that supersedes the GNAT specific restriction
32110 No_Task_Attributes.
32112 2004-02-04 Ed Schonberg <schonberg@gnat.com>
32115 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
32116 body, an identifier may be wrapped in an unchecked conversion.
32118 2004-02-04 Vincent Celier <celier@gnat.com>
32120 * lib-writ.ads: Comment update for the W lines
32122 * bld.adb: (Expression): An empty string list is static
32124 * fname-uf.adb: Minor comment update
32126 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
32128 * gnatbind.adb: Initialize Cumulative_Restrictions with the
32129 restrictions on the target.
32131 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
32133 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
32136 2004-02-02 Arnaud Charlet <charlet@gnat.com>
32138 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
32140 2004-02-02 Vincent Celier <celier@gnat.com>
32142 * gprcmd.adb (Check_Args): If condition is false, print the invoked
32143 comment before the usage.
32144 Gprcmd: Fail when command is not recognized.
32145 (Usage): Document command "prefix"
32147 * g-md5.adb (Digest): Process last block.
32148 (Update): Do not process last block. Store remaining characters and
32151 * g-md5.ads (Update): Document that several call to update are
32152 equivalent to one call with the concatenated string.
32153 (Context): Add fields to allow new Update behaviour.
32155 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
32156 defaulted to False.
32157 When May_Fail is True and no existing file can be found, return No_File.
32159 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
32162 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
32163 spec file name instead on the W line.
32165 2004-02-02 Robert Dewar <dewar@gnat.com>
32167 * ali.adb: Read and acquire info from new format restrictions lines
32169 * bcheck.adb: Add circuits for checking restrictions with parameters
32171 * bindgen.adb: Output dummy restrictions data
32172 To be changed later
32174 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
32175 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
32176 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
32177 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
32178 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
32180 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
32181 the warning message on access to possibly uninitialized variable S)
32182 Minor changes for new restrictions handling.
32184 * gnatbind.adb: Minor reformatting
32185 Minor changes for new restrictions handling
32186 Move circuit for -r processing here from bcheck (cleaner)
32188 * gnatcmd.adb, gnatlink.adb: Minor reformatting
32190 * lib-writ.adb: Output new format restrictions lines
32192 * lib-writ.ads: Document new R format lines for new restrictions
32195 * s-restri.ads/adb: New files
32197 * Makefile.rtl: Add entry for s-restri.ads/adb
32199 * par-ch3.adb: Fix bad error messages starting with upper case letter
32202 * restrict.adb: Major rewrite throughout for new restrictions handling
32203 Major point is to handle restrictions with parameters
32205 * restrict.ads: Major changes in interface to handle restrictions with
32206 parameters. Also generally simplifies setting of restrictions.
32208 * snames.ads/adb: New entry for proper handling of No_Requeue
32210 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
32211 restriction counting.
32212 Other minor changes for new restrictions handling
32214 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
32215 Restriction_Warnings now allows full parameter notation
32216 Major rewrite of Restrictions for new restrictions handling
32218 2004-02-02 Javier Miranda <miranda@gnat.com>
32220 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
32221 syntax rule for object renaming declarations.
32222 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
32223 component definitions.
32225 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
32227 (Array_Type_Declaration): Give support to access components. In addition
32228 it was also modified to reflect the name of the object in anonymous
32229 array types. The old code did not take into account that it is possible
32230 to have an unconstrained anonymous array with an initial value.
32231 (Check_Or_Process_Discriminants): Allow access discriminant in
32233 (Process_Discriminants): Allow access discriminant in non-limited types
32234 Initialize the new Access_Definition field in N_Object_Renaming_Decl
32235 node. Change Ada0Y to Ada 0Y in comments
32237 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
32238 equality operators.
32239 Change Ada0Y to Ada 0Y in comments
32241 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
32242 renamings Change Ada0Y to Ada 0Y in comments
32244 * sem_type.adb (Find_Unique_Type): Give support to the equality
32245 operators for universal access types
32246 Change Ada0Y to Ada 0Y in comments
32248 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
32250 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
32252 (N_Object_Renaming_Declaration): Addition of Access_Definition field
32253 Change Ada0Y to Ada 0Y in comments
32255 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
32256 component definition and object renaming nodes
32257 Change Ada0Y to Ada 0Y in comments
32259 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
32261 * restrict.adb: Use the new restriction identifier
32262 No_Requeue_Statements instead of the old No_Requeue for defining the
32263 restricted profile.
32265 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
32266 No_Requeue_Statements.
32268 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
32269 that supersedes the GNAT specific restriction No_Requeue. The later is
32270 kept for backward compatibility.
32272 2004-02-02 Ed Schonberg <schonberg@gnat.com>
32274 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
32275 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
32276 pragma and fix incorrect ones.
32278 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
32279 warning if the pragma is redundant.
32281 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
32283 * 5staprop.adb: Add missing 'constant' keywords.
32285 * Makefile.in: use consistent value for SYMLIB on
32286 platforms where libaddr2line is supported.
32288 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32290 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
32293 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
32295 * init.c (__gnat_install_handler): Setup an alternate stack for signal
32296 handlers in the environment thread. This allows proper propagation of
32297 an exception on stack overflows in this thread even when the builtin
32298 ABI stack-checking scheme is used without support for a stack reserve
32301 * utils.c (create_field_decl): Augment the head comment about bitfield
32302 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
32303 here, because the former is not accurate enough at this point.
32304 Let finish_record_type decide instead.
32305 Don't make a bitfield if the field is to be addressable.
32306 Always set a size for the field if the record is packed, to ensure the
32307 checks for bitfield creation are triggered.
32308 (finish_record_type): During last pass over the fields, clear
32309 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
32310 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
32311 from DECL_BIT_FIELD.
32313 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
32315 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
32316 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
32317 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
32319 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32321 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
32323 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
32324 (ZCX_By_Default): Likewise.
32325 (Front_End_ZCX_Support): Likewise.
32327 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
32328 (Initialize_Lock): Mark Level unreferenced.
32329 (Sleep): Mark Reason unreferenced.
32330 (Timed_Sleep): Likewise.
32331 (Wakeup): Likewise.
32332 (Exit_Task): Use Result.
32333 (Check_No_Locks): Mark Self_ID unreferenced.
32335 * 5gtasinf.adb (New_Sproc): Make Attr constant.
32336 (Bound_Thread_Attributes): Make Sproc constant.
32337 (New_Bound_Thread_Attributes): Likewise.
32339 2004-01-26 Ed Schonberg <schonberg@gnat.com>
32341 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
32342 one-dimensional array an slice assignments, when component type is
32345 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
32346 component type is controlled, and control_actions are in effect, use
32347 TSS procedure rather than generating inline code.
32349 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
32350 arrays with controlled components.
32352 2004-01-26 Vincent Celier <celier@gnat.com>
32354 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
32355 command line for the non VMS case.
32357 * gnatlink.adb (Process_Binder_File): When building object file, if
32358 GNU linker is used, put all object paths between quotes, to prevent ld
32359 error when there are unusual characters (such as '!') in the paths.
32361 * Makefile.generic: When there are sources in Ada and the main is in
32362 C/C++, invoke gnatmake with -B, instead of -z.
32364 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
32365 from VMS_Conversion.
32366 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
32367 specification of argument file on the command line.
32369 2004-01-26 Bernard Banner <banner@gnat.com>
32371 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
32373 2004-01-26 Ed Schonberg <schonberg@gnat.com>
32375 * snames.adb: Update copyright notice.
32376 Add info on slice assignment for controlled arrays.
32378 2004-01-23 Robert Dewar <dewar@gnat.com>
32380 * exp_aggr.adb: Minor reformatting
32382 * exp_ch9.adb: Minor code clean up
32384 Fix bad character in comment
32387 * targparm.adb (Get_Target_Parameters): Give clean abort error on
32388 unexpected end of file, along with more detailed message.
32390 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32392 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
32395 * decl.c (copy_alias_set): New function.
32396 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
32398 2004-01-23 Doug Rupp <rupp@gnat.com>
32400 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
32401 lib$${file} in case subsequent character is not a separator.
32403 2004-01-23 Vincent Celier <celier@gnat.com>
32405 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
32406 when the GCC version is at least 3.
32408 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
32409 Remove all "Opt.", to prepare for opt split
32411 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
32412 Extends_All. Set to True when the project parsed is an extending all
32413 project. Fails for importing an extending all project only when the
32414 imported project is an extending all project.
32415 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
32416 depending on the value of Extends_All returned.
32418 * prj-proc.adb (Process): Check that no project shares its object
32419 directory with a project that extends it, directly or indirectly,
32420 including a virtual project.
32421 Check that no project extended by another project shares its object
32422 directory with another also extended project.
32424 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
32425 Kind = N_With_Clause
32427 * prj-tree.ads: Minor reformatting
32428 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
32430 2004-01-23 Ed Schonberg <schonberg@gnat.com>
32432 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
32433 applies to a type with an incomplete view, use full view in Name of
32434 clause, for consistency with uses of Get_Attribute_Definition_Clause.
32436 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
32438 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
32439 SCHED_RR, since other values are not supported by this policy.
32440 (Initialize): Move initialization of mutex attribute to package
32441 elaboration, to prevent early access to this variable.
32443 * Makefile.in: Remove mention of Makefile.adalib, unused.
32445 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
32446 1ssecsta.ads: Removed, unused.
32448 2004-01-21 Javier Miranda <miranda@gnat.com>
32450 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
32451 entity if already built in the current scope.
32453 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
32454 reminder in internal scopes. Required for nested limited aggregates.
32456 2004-01-21 Doug Rupp <rupp@gnat.com>
32458 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
32459 VMS. Replace all occurences of libgnat- and libgnarl- with
32460 libgnat$(hyphen) and libgnarl$(hyphen).
32461 Fixed shared library build problem on VMS.
32463 2004-01-21 Robert Dewar <dewar@gnat.com>
32465 * mlib-prj.adb: Minor reformatting
32467 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
32469 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
32470 'constant' keywords for declaration of pointers that are not modified.
32472 * exp_pakd.adb: Fix English in comment.
32474 2004-01-21 Ed Schonberg <schonberg@gnat.com>
32477 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
32478 copy all attributes of the parent, including the foreign language
32481 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
32484 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
32485 for 'delay until' statement.
32487 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
32489 * Make-lang.in: Replace $(docdir) with doc.
32490 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
32491 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
32492 to use consistent MAKEINFO rule.
32493 (ada.man, ada.srcman): Dummy entry.
32494 (ADA_INFOFILES): Define.
32495 (ada.info, ada.srcinfo): New rules.
32497 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
32499 * utils.c: Update copyright notice, missed in previous change.
32501 2004-01-19 Vincent Celier <celier@gnat.com>
32503 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
32504 args if Bind is True. Set First_ALI, if not already done.
32505 (Build_Library): For Stand Alone Libraries, extract from one ALI file
32506 an eventual --RTS switch, for gnatbind, and all backend switches +
32507 --RTS, for linking.
32509 2004-01-19 Robert Dewar <dewar@gnat.com>
32511 * sem_attr.adb, memtrack.adb: Minor reformatting
32513 2004-01-19 Ed Schonberg <schonberg@gnat.com>
32515 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
32516 that rename enumeration literals. This is properly done in sem_eval.
32518 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
32519 to functions that rename enumeration literals.
32521 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
32522 functions that rename enumeration literals.
32524 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
32526 * Make-lang.in (utils.o): Depend on target.h.
32527 * utils.c: Include target.h.
32528 (process_attributes): Use targetm.have_named_sections instead
32529 of ASM_OUTPUT_SECTION_NAME.
32531 2004-01-16 Andreas Jaeger <aj@suse.de>
32533 * Makefile.in: Add $(DESTDIR).
32535 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
32537 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
32538 also when not defining if a Size clause applies. That information is
32541 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
32543 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
32544 symbolic links for the shared gnat run time when needed.
32546 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
32548 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
32549 for writing, and terminate with an error message if not.
32551 2004-01-15 Ed Schonberg <schonberg@gnat.com>
32553 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
32554 warning on an access to subprogram in an instance, when the target
32555 type is declared in the same generic unit.
32556 (Eval_Attribute): If 'access is known to fail accessibility check,
32557 rewrite as a raise statement.
32559 2004-01-15 GNAT Script <nobody@gnat.com>
32561 * Make-lang.in: Makefile automatically updated
32563 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
32565 * Make-lang.in (ada.srcextra): Dummy entry.
32567 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
32569 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
32571 2004-01-13 Ed Schonberg <schonberg@gnat.com>
32573 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
32574 components that are initialized with aggregates.
32576 2004-01-13 Vincent Celier <celier@gnat.com>
32578 * gnatlink.adb (Process_Binder_File): To find directory of shared
32579 libgcc, if "gcc-lib" is not a subdirectory, look for the last
32580 subdirectory "lib" in the path of the shared libgnat or libgnarl.
32582 * make.adb (Gnatmake): If GCC version is at least 3, link with
32583 -shared-libgcc, when there is at least one shared library project.
32585 * opt.ads (GCC_Version): New integer constant.
32587 * adaint.c (get_gcc_version): New function.
32589 2004-01-13 Robert Dewar <dewar@gnat.com>
32591 * sem_dist.adb, sem_res.adb, sem_util.adb,
32592 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
32593 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
32595 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
32597 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
32598 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
32601 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
32603 * misc.c: Remove trailing spaces.
32604 Update copyright notice missed in previous change.
32607 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
32610 * Makefile.generic: Update copyright.
32611 Add license notice.
32613 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
32614 of prefix/share/make.
32616 * Makefile.prolog: Update copyright.
32617 Add license notice.
32619 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
32621 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
32622 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
32623 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
32626 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
32629 2004-01-12 Javier Miranda <miranda@gnat.com>
32631 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
32632 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
32633 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
32634 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
32635 Component_Definition node.
32637 2004-01-12 Ed Falis <falis@gnat.com>
32639 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
32641 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
32643 * link.c: Change default libgnat kind to STATIC for FreeBSD.
32645 2004-01-12 Bernard Banner <banner@gnat.com>
32647 * Makefile.in: map 86numaux to a-numaux for x86_64
32649 2004-01-12 Ed Schonberg <schonberg@gnat.com>
32651 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
32652 generated to rename a generic actual, go to the actual itself, the
32653 subtype is not a user-visible entity.
32655 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
32656 part is a private subtype, reset the visibility of its full view, if
32657 any, to be consistent.
32660 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
32661 to use a generic package G as a formal package for another generic
32664 2004-01-12 Robert Dewar <dewar@gnat.com>
32666 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
32668 * usage.adb: Remove mention of obsolete -gnatwb switch
32669 Noticed during code reading
32671 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
32673 * 1ssecsta.adb: Minor changes for -gnatwa warnings
32675 2004-01-12 GNAT Script <nobody@gnat.com>
32677 * Make-lang.in: Makefile automatically updated
32679 2004-01-09 Mark Mitchell <mark@codesourcery.com>
32681 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
32683 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32685 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
32687 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
32689 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
32690 Update comment and copyright date.
32691 * stamp-xgnatug: Delete.
32693 2004-01-05 Robert Dewar <dewar@gnat.com>
32695 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
32696 be modified by the binder generated main program if the -D switch is
32699 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
32700 imported functions (since now we expect this to be done for imported
32703 * 5vtaprop.adb: Add several ??? for sections requiring more comments
32704 Minor reformatting throughout
32706 * 5zinit.adb: Minor reformatting
32707 Add 2004 to copyright date
32708 Minor changes to avoid -gnatwa warnings
32709 Correct some instances of using OR instead of OR ELSE (noted while
32710 doing reformatting)
32712 * sprint.adb: Minor updates to avoid -gnatwa warnings
32714 * s-secsta.ads, s-secsta.adb:
32715 (SS_Get_Max): New function to obtain high water mark for ss stack
32716 Default_Secondary_Stack is not a constant since it may be modified by
32717 the binder generated main program if the -D switch is used.
32719 * switch-b.adb: New -Dnnn switch for binder
32722 Make -gnatg imply all warnings currently in -gnatwa
32724 * vms_conv.adb: Minor reformatting
32725 Add 2004 to copyright notice
32726 Add 2004 to printed copyright notice
32728 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
32729 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
32730 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
32731 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
32732 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
32733 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
32734 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
32735 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
32736 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
32737 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
32738 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
32739 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
32740 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
32741 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
32742 checks.adb, clean.adb, cstand.adb, einfo.ads,
32743 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
32744 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
32745 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
32746 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
32747 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
32748 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
32749 Minor reformatting and code clean ups.
32750 Minor changes to prevent -gnatwa warnings
32752 * ali.adb: Minor reformatting and cleanup of code
32753 Acquire new SS indication of secondary stack use from ali files
32755 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
32756 (since now we expect this to be done for imported functions)
32758 * bindgen.adb: Generate call to modify default secondary stack size if
32761 * bindusg.adb: Add line for new -D switch
32763 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
32764 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
32765 Add circuitry for both records and arrays to avoid gigi
32766 processing if the type involved has non-bit-aligned components
32768 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
32769 N_String_Literal node always references an E_String_Literal_Subtype
32770 entity. This may not be true in the future.
32771 (Possible_Bit_Aligned_Component): Move processing of
32772 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
32774 * exp_ch6.adb (Expand_Thread_Body): Pick up
32775 Default_Secondary_Stack_Size as variable so that we get value modified
32776 by possible -Dnnn binder parameter.
32778 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
32779 (Type_May_Have_Bit_Aligned_Components): New function.
32781 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
32782 (Type_May_Have_Bit_Aligned_Components): New function.
32784 * fe.h: (Set_Identifier_Casing): Fix prototype.
32785 Add declaration for Sem_Elim.Eliminate_Error_Msg.
32786 Minor reformatting.
32788 * freeze.adb (Freeze_Entity): Add RM reference to error message about
32789 importing constant atomic/volatile objects.
32790 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
32791 unless explicit Pure_Function pragma given, to avoid insidious bug of
32792 call to non-pure imported function getting eliminated.
32794 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
32795 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
32796 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
32797 Add 2004 to printed copyright notice
32799 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
32802 * Makefile.rtl: Add entry for g-sestin.o
32803 g-sestin.ads: New file.
32805 * mdll.adb: Minor changes to avoid -gnatwa warnings
32807 * mlib-tgt.adb: Minor reformatting
32809 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
32810 New switch Sec_Stack_Used (GNAT, GNATBIND)
32811 Make Default_Secondary_Stack_Size a variable instead of a constant,
32812 so that it can be modified by the new -Dnnn bind switch.
32814 * rtsfind.adb (Load_Fail): Give full error message in configurable
32815 run-time mode if all_errors mode is set. This was not done in the case
32816 of a file not found, which was an oversight.
32817 Note if secondary stack unit is used by compiler.
32819 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
32820 ineffective elaborate all pragmas on non-visible packages (this
32821 happened when a renamed subprogram was called). Now the elaborate all
32822 always goes on the package containing the renaming rather than the one
32823 containing the renamed subprogram.
32825 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
32826 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
32828 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
32829 has an Etype that references an E_String_Literal.
32830 (Eval_String_Literal): Avoid assumption that N_String_Literal node
32831 always references an E_String_Literal_Subtype entity. This may not
32832 be true in the future.
32834 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
32837 * sem_res.adb (Resolve): Specialize msg for function name used in proc
32840 2004-01-05 Ed Falis <falis@gnat.com>
32842 * g-debuti.adb: Replaced direct boolean operator with short-circuit
32845 2004-01-05 Vincent Celier <celier@gnat.com>
32847 * bld.adb: Minor comment updates
32848 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
32851 * make.adb (Gnatmake): Special process for files to compile/check when
32852 -B is specified. Fail when there are only foreign mains in attribute
32853 Main of the project file and -B is not specified. Do not skip bind/link
32854 steps when -B is specified.
32856 * makeusg.adb: Document new switch -B
32858 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
32860 * switch-m.adb: (Scan_Make_Switches): Process -B switch
32862 * vms_data.ads: Add new GNAT PRETTY qualifier
32863 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
32865 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32867 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
32870 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
32871 Set_Identifier_Casing.
32873 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
32874 has size that overflows.
32876 2004-01-05 Gary Dismukes <dismukes@gnat.com>
32878 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
32879 -gnatwa warning on static condition.
32881 2004-01-05 Doug Rupp <rupp@gnat.com>
32883 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
32885 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
32887 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
32888 all attributes, including read-only attribute.
32890 2004-01-05 Pascal Obry <obry@gnat.com>
32892 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
32893 library naming scheme.
32895 * mlib-prj.adb (Build_Library): Generate different names for the static
32896 or dynamic version of the GNAT runtime. This is needed to support the
32897 new shared library naming scheme.
32898 (Process_Binder_File): Add detection of shared library in binder file
32899 based on the new naming scheme.
32901 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
32902 scheme for the shared runtime libraries.
32905 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
32907 (install-gnatlib): Do not create symlinks for shared libraries.
32908 (gnatlib-shared-default): Idem.
32909 (gnatlib-shared-dual-win32): New target. Not used for now as the
32910 auto-import feature does not support arrays/records.
32911 (gnatlib-shared-win32): Do not create copy for the shared libraries.
32912 (gnatlib-shared-vms): Fix shared runtime libraries names.
32914 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
32915 dependent runtime shared library name.
32917 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
32919 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
32922 2004-01-05 Ed Schonberg <schonberg@gnat.com>
32924 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
32925 protected objects when allocator has a subtype indication, not a
32926 qualified expression. Note that qualified expressions may have to be
32927 checked when limited aggregates are implemented.
32929 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
32930 pure, emit warning.
32931 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
32932 subprogram is imported, remove warning.
32934 2004-01-05 Geert Bosch <bosch@gnat.com>
32936 * s-poosiz.adb: Update copyright notice.
32937 (Allocate): Use Task_Lock to protect against concurrent access.
32938 (Deallocate): Likewise.
32940 2004-01-05 Joel Brobecker <brobecker@gnat.com>
32942 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
32945 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
32947 * gnat_ug.texi: Force a CVS commit by updating copyright.
32948 * gnat_ug_vxw.texi: Regenerate.
32949 * gnat_ug_wnt.texi: Regenerate.
32950 * gnat_ug_vms.texi: Regenerate.
32951 * gnat_ug_unx.texi: Regenerate.
32953 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
32955 * trans.c: Remove uses of "register" specifier in
32956 declarations of local variables.
32958 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
32960 * stamp-xgnatug: New stamp file.
32961 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
32962 (ada/doctools/xgnatug): Add $(build_exeext).
32963 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
32964 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
32966 2003-12-17 Ed Falis <falis@gnat.com>
32968 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
32971 * a-exextr.adb: Add context clause for
32972 Ada.Exceptions.Last_Chance_Handler.
32974 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
32976 * cstand.adb (Create_Standard): Change the way how the declaration of
32977 the Duration type is created (making it the same way as it is for all
32978 the other standard types).
32980 2003-12-17 Robert Dewar <dewar@gnat.com>
32982 * s-crtl.ads: Fix header format
32983 Change Pure to Preelaborate
32985 2003-12-17 Ed Schonberg <schonberg@gnat.com>
32987 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
32988 the expression type only if it is declared in the current unit.
32990 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
32991 are universal and already analyzed, as can occur in constrained
32992 subcomponents that depend on discriminants, when one constraint is a
32995 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
32996 type Any_Fixed is legal as the argument of a conversion, if only one
32997 fixed-point type is in context.
32999 2003-12-17 GNAT Script <nobody@gnat.com>
33001 * Make-lang.in: Makefile automatically updated
33003 2003-12-15 Robert Dewar <dewar@gnat.com>
33005 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
33008 2003-12-15 Vincent Celier <celier@gnat.com>
33010 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
33011 (Gnatchop): Do not set failure status when reporting the number of
33014 2003-12-15 Doug Rupp <rupp@gnat.com>
33016 * s-ctrl.ads: New file.
33018 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
33020 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
33021 (GNATBIND_OBJS): Add ada/s-crtl.o.
33023 * Makefile.in [VMS]: Clean up ifeq rules.
33025 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
33026 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
33027 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
33028 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
33029 s-tasdeb.adb: Update copyright.
33030 Import System.CRTL.
33031 Make minor modifications to use System.CRTL declared functions instead
33032 of importing locally.
33034 2003-12-15 GNAT Script <nobody@gnat.com>
33036 * Make-lang.in: Makefile automatically updated
33038 2003-12-11 Ed Falis <falis@gnat.com>
33040 * 5zinit.adb: Clean up.
33042 * 5zintman.adb (Notify_Exception): replaced case statement with a call
33043 to __gnat_map_signal, imported from init.c to support
33044 signal -> exception mappings that depend on the vxWorks version.
33047 Created and exported __gnat_map_signal to support signal -> exception
33048 mapping that is dependent on the VxWorks version.
33049 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
33051 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
33053 * 5wosinte.ads: Link with -mthreads switch.
33055 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
33057 * init.c (__gnat_install_handler [NetBSD]): Set
33058 __gnat_handler_installed, as done on all other platforms.
33059 Remove duplicated code.
33061 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
33063 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
33065 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
33067 * sinfo.ads: Fix inconsistent example code in comment.
33069 2003-12-11 Robert Dewar <dewar@gnat.com>
33071 * a-tiinau.adb: Add a couple of comments
33073 * sem_ch3.adb: Minor reformatting
33076 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
33077 Minor reformatting throughout
33079 2003-12-11 Ed Schonberg <schonberg@gnat.com>
33081 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
33082 bounds of a loop, create a separate block in order to generate proper
33083 cleanup actions to prevent memory leaks.
33085 * sem_res.adb (Resolve_Call): After a call to
33086 Establish_Transient_Scope, the call may be rewritten and relocated, in
33087 which case no further processing is needed.
33089 * sem_util.adb: (Wrong_Type): Refine previous fix.
33090 Fixes ACATS regressions.
33093 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
33096 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
33098 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
33099 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
33102 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
33105 2003-12-08 Robert Dewar <dewar@gnat.com>
33107 * 7sintman.adb: Minor reformatting
33109 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
33110 standard linker options to get standard libraries linked. We now plan
33111 to provide dummy versions of these libraries to match the appropriate
33112 configurable run-time (e.g. if a library is not needed at all, provide
33113 a dummy empty library).
33115 * targparm.ads: Configurable_Run_Time mode no longer affects linker
33116 options (-L parameters and standard libraries). What we plan to do is
33117 to provide dummy libraries where the libraries are not required.
33119 * gnatbind.adb: Minor comment improvement
33121 2003-12-08 Javier Miranda <miranda@gnat.com>
33123 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
33124 aggregate in the parent. Otherwise constants with limited aggregates
33125 are not supported. Add new formal to pass the component type (Ctype).
33126 It is required to call the corresponding IP subprogram in case of
33127 default initialized components.
33128 (Gen_Assign): In case of default-initialized component, generate a
33129 call to the IP subprogram associated with the component.
33130 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
33131 of aggregate with default initialized components.
33132 (Has_Default_Init_Comps): Improve implementation to recursively check
33133 all the present expressions.
33135 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
33136 to indicate that the initialization call corresponds to a
33137 default-initialized component of an aggregate.
33138 In case of default initialized aggregate with tasks this parameter is
33139 used to generate a null string (this is just a workaround that must be
33140 improved later). In case of discriminants, this parameter is used to
33141 generate a selected component node that gives access to the discriminant
33144 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
33145 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
33146 allocated aggregates with default-initialized components.
33148 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
33149 the box notation is used in positional aggregates.
33151 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
33153 * lib.ads: Fix typo in comment
33155 2003-12-08 Vincent Celier <celier@gnat.com>
33157 * prj.adb (Project_Empty): New component Unkept_Comments
33158 (Scan): Remove procedure; moved to Prj.Err.
33160 * prj.ads (Project_Data): New Boolean component Unkept_Comments
33161 (Scan): Remove procedure; moved to Prj.Err.
33163 * prj-dect.adb: Manage comments for the different declarations.
33165 * prj-part.adb (With_Record): New component Node
33166 (Parse): New Boolean parameter Store_Comments, defaulted to False.
33167 Set the scanner to return ends of line and comments as tokens, if
33168 Store_Comments is True.
33169 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
33170 comments are associated with these nodes. Store the node IDs in the
33172 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
33174 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
33175 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
33176 current project. Call Tree.Restore afterwards. Set the various nodes
33177 for comment storage (Next_End, End_Of_Line, Previous_Line,
33180 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
33181 defaulted to False.
33183 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
33184 to False. When Truncated is True, truncate the string, never go to the
33186 (Write_End_Of_Line_Comment): New procedure
33187 (Print): Process comments for nodes N_With_Clause,
33188 N_Package_Declaration, N_String_Type_Declaration,
33189 N_Attribute_Declaration, N_Typed_Variable_Declaration,
33190 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
33191 Process nodes N_Comment.
33193 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
33194 without comments and there are some comments, set the flag
33195 Unkept_Comments to True.
33196 (Scan): If there are comments, set the flag Unkept_Comments to True and
33197 clear the comments.
33198 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
33199 (Next_End_Nodes: New table
33200 (Comment_Zones_Of): New function
33201 (Scan): New procedure; moved from Prj. Accumulate comments in the
33202 Comments table and set end of line comments, comments after, after end
33204 (Add_Comments): New procedure
33205 (Save, Restore, Seset_State): New procedures
33206 (There_Are_Unkept_Comments): New function
33207 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
33208 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
33210 (First_Comment_After, First_Comment_After_End): New functions
33211 (First_Comment_Before, First_Comment_Before_End): New functions
33212 (Next_Comment): New function
33213 (End_Of_Line_Comment, Follows_Empty_Line,
33214 Is_Followed_By_Empty_Line): New functions
33215 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
33216 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
33217 (Set_Next_Comment): New procedure
33218 (Default_Project_Node): Associate comment before if the node can store
33221 * scans.ads (Token_Type): New enumeration value Tok_Comment
33222 (Comment_Id): New global variable
33224 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
33225 defaulted to False.
33226 (Scan): Store position of start of comment. If comments are tokens, set
33227 Comment_Id and set Token to Tok_Comment when scanning a comment.
33228 (Set_Comment_As_Token): New procedure
33230 * sinput-p.adb: Update Copyright notice
33231 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
33232 that no longer exists.
33234 2003-12-08 Javier Miranda <miranda@gnat.com>
33236 * sem_aggr.adb: Add dependence on Exp_Tss package
33237 Correct typo in comment
33238 (Resolve_Aggregate): In case of array aggregates set the estimated
33239 type of the aggregate before calling resolve. This is needed to know
33240 the name of the corresponding IP in case of limited array aggregates.
33241 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
33242 in case of default initialized array components.
33244 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
33245 types. Required to give support to limited aggregates in generic
33248 2003-12-08 Ed Schonberg <schonberg@gnat.com>
33250 * sem_ch3.adb (Check_Initialization): For legality purposes, an
33251 inlined body functions like an instantiation.
33252 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
33253 until bounds are analyzed, to diagnose premature use of type.
33255 * sem_util.adb (Wrong_Type): Improve error message when the type of
33256 the expression is used prematurely.
33258 2003-12-08 GNAT Script <nobody@gnat.com>
33260 * Make-lang.in: Makefile automatically updated
33262 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
33264 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
33265 they are automatically generated by Make-lang.in and cause nothing but
33266 maintenance troubles.
33268 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
33270 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
33271 version of this unit).
33273 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
33275 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
33276 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
33277 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
33278 the body of System.Interrupt_Management common to several targets.
33279 Update copyright notice when appropriate.
33281 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
33284 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
33285 to ensure that the kernel fills in the interrupted context structure
33286 before calling a signal handler, which is necessary to be able to
33287 unwind past it. Update the copyright notice.
33289 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
33291 * a-elchha.ads: New file.
33293 * a-elchha.adb: New default last chance handler. Contents taken from
33294 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
33296 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
33297 is moved to a-elchha.adb to provide a target-independent default last
33300 * Makefile.rtl: Add a-elchha.o
33302 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
33304 2003-12-05 Ed Schonberg <schonberg@gnat.com>
33306 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
33307 declared in an instance, do not inline the call if the instance is not
33308 frozen yet, to prevent order of elaboration problems.
33310 * sem_prag.adb: Add comments for previous fix.
33312 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
33314 * g-table.adb: Use the right variable in Set_Item.
33315 Update copyright notice.
33317 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
33319 * Makefile.in: Remove unused rules.
33321 2003-12-05 Vincent Celier <celier@gnat.com>
33323 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
33324 -nostdlib. Not needed here after all.
33326 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
33329 * adaint.h, adaint.c, g-os_lib.ads:
33330 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
33331 on some platforms (including FreeBSD), it is a 64 bit value.
33332 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
33334 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
33336 * gnatvsn.ads (Library_Version): Now contain only the relevant
33338 (Verbose_Library_Version): New constant.
33340 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
33341 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
33342 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
33344 * gnatlbr.adb: Clean up: replace Library_Version by
33345 Verbose_Library_Version.
33347 * make.adb, lib-writ.adb, exp_attr.adb:
33348 Clean up: replace Library_Version by Verbose_Library_Version.
33350 * 5lintman.adb: Removed.
33353 Update and simplify computation of LIBRARY_VERSION.
33354 Fix computation of GSMATCH_VERSION.
33355 5lintman.adb is no longer used: replaced by 7sintman.adb.
33357 2003-12-03 Robert Dewar <dewar@gnat.com>
33360 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
33361 name. Modified to consider small non-bit-packed arrays as troublesome
33362 and in need of component-by-component assigment expansion.
33364 2003-12-03 Vincent Celier <celier@gnat.com>
33366 * lang-specs.h: Process nostdlib as nostdinc
33368 * back_end.adb: Update Copyright notice
33369 (Scan_Compiler_Arguments): Process -nostdlib directly.
33371 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
33374 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
33375 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
33376 included in HIE_NONE_TARGET_PAIRS.
33378 2003-12-03 Ed Schonberg <schonberg@gnat.com>
33381 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
33382 is legal in an instance, because legality is cheched in the template.
33385 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
33386 appplied to an unchecked conversion of a formal parameter.
33389 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
33392 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
33394 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
33395 routines. The second one is new functionality to deal with backtracing
33396 through signal handlers.
33397 (unwind): Split into the two separate subroutines above.
33398 Update the documentation, and deal properly with sizeof (REG) different
33399 from sizeof (void*).
33401 2003-12-01 Nicolas Setton <setton@act-europe.fr>
33403 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
33404 so that the debugger can reliably access the value of the parameter,
33405 and therefore is able to display the exception name when an exception
33406 breakpoint is reached.
33408 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
33410 * fmap.adb: Fix typo in warning message.
33412 * g-socket.ads, g-socket.adb: Make Free a visible instance of
33413 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
33415 2003-12-01 Vincent Celier <celier@gnat.com>
33417 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
33419 (Build_Library): Get the switches only if Default_Switches is declared
33422 2003-12-01 Ed Schonberg <schonberg@gnat.com>
33424 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
33425 actuals that are indexed components, reanalyze actual to ensure that
33426 packed array references are properly expanded.
33428 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
33429 attempted assignment to a discriminant.
33431 2003-12-01 Robert Dewar <dewar@gnat.com>
33433 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
33436 * switch-c.adb: Minor reformatting of comments
33438 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
33440 * Makefile.in: Clean ups.
33442 2003-12-01 GNAT Script <nobody@gnat.com>
33444 * Make-lang.in: Makefile automatically updated
33446 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
33448 * 5wsystem.ads: Disable zero cost exception, not ready yet.
33450 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
33452 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
33453 to force serialization.
33455 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
33457 * g-socket.ads, g-socket.adb:
33458 Clarify documentation of function Stream. Introduce a Free procedure
33459 to release the returned Stream once it becomes unused.
33461 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
33463 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
33465 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
33466 since NT 4 cannot handle timeout values that are too large,
33467 e.g. DWORD'Last - 1.
33469 2003-11-26 Ed Schonberg <schonberg@gnat.com>
33472 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
33473 in procedure calls and whose expansion must be deferred.
33475 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
33479 (Build_Derived_Array_Type): Create operator for unconstrained type
33480 if ancestor is unconstrained.
33482 2003-11-26 Vincent Celier <celier@gnat.com>
33484 * make.adb (Project_Object_Directory): New global variable
33485 (Change_To_Object_Directory): New procedure
33486 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
33487 of Change_Dir directly. Do not change working directory to object
33488 directory of main project after each compilation.
33489 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
33491 Change to object directory of main project before binding step.
33492 (Initialize): Initialize Project_Object_Directory to No_Project
33495 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
33496 binding a Stand-Alone Library.
33498 * output.adb: Update Copyright notice
33499 (Write_Char): Output buffer when full
33501 2003-11-26 Robert Dewar <dewar@gnat.com>
33503 * sem_ch13.adb: (Check_Size): Reset size if size is too small
33506 (Check_Size): Fix documentation to include bit-packed array case
33508 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
33510 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
33512 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
33514 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
33517 * utils.c (init_gigi_decls): Change name of built-in setjmp to
33518 __builtin_setjmp, since this is apparently needed by recent
33521 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33523 * adadecode.c: Only include ctype.h if not IN_GCC.
33524 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
33526 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
33529 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
33530 signals and interrupts.
33532 * 5zintman.ads: New File.
33534 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
33535 add exception signals to the set of unmasked signals.
33538 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
33539 between signals and interrupts.
33540 Add to Unblocked_Signal_Mask the set of signals that are in
33544 Adding a check to see whether the Interrupt_ID we want to unmask is in
33545 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
33546 reason is that the index type of the Keep_Unmasked array is not always
33547 Interrupt_ID; it may be a subtype of Interrupt_ID.
33549 2003-11-24 Gary Dismukes <dismukes@gnat.com>
33552 (Remove_Side_Effects): Condition constantness of object created for a
33553 an unchecked type conversion on the constantness of the expression
33554 to ensure the correct value for 'Constrained when passing components
33555 of view-converted class-wide objects.
33557 2003-11-24 Robert Dewar <dewar@gnat.com>
33559 * par-load.adb (Load): Improve handling of misspelled and missing units
33560 Removes several cases of compilation abandoned messages
33562 * lib.adb: (Remove_Unit): New procedure
33564 * lib.ads: (Remove_Unit): New procedure
33566 * lib-load.adb: Minor reformatting
33568 2003-11-24 Vincent Celier <celier@gnat.com>
33571 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
33572 (Marking_Label): Label to mark processed source files. Incremented for
33574 (Gnatmake): Increase Marking_Labet for each executable
33575 (Is_Marked): Compare against marking label
33576 (Mark): Mark with marking label
33578 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
33581 Move the declaration of the TSD for System.Threads to System.Soft_Links.
33584 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
33585 (rts-cert): build a single relocatable object for the run-time lib.
33588 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
33591 Use gnatls rather than gcc to obtain the location of GNAT RTL for
33594 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
33596 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
33597 can not use it as before (that is, as a variable) when dumping it into
33598 the tree file. Add a local variable to store the result of this
33599 function and to be used as the string to be written into the tree.
33601 * scn.adb (Initialize_Scanner): Add comments explaining the recent
33604 * sinput.adb (Source_First, Source_Last): In case of
33605 Internal_Source_File, replace returning attributes of
33606 Internal_Source_Ptr (which is wrong) with returning attributes of
33609 2003-11-24 Ed Schonberg <schonberg@gnat.com>
33612 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
33613 used for implicit concatenation operators.
33617 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
33618 task bodies that are in the scope of a Suppress pragma.
33619 (Check_A Call): Use the flag to prevent spurious elaboration checks.
33621 * sinfo.ads, sinfo.adb:
33622 New flag No_Elaboration_Check on function/procedure calls, to properly
33623 suppress checks on calls in task bodies that are within a local suppress
33627 (Expand_Concatenate_Other): Use the proper integer type for the
33628 expression for the upper bound, to avoid universal_integer computations
33631 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
33633 * .cvsignore: Delete.
33635 2003-11-21 Andreas Schwab <schwab@suse.de>
33637 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
33639 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
33641 * 5wsystem.ads: Enable zero cost exception.
33643 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
33645 * 5ztiitho.adb: Remove an unreferenced variable.
33647 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
33649 * adaint.c: For FreeBSD, use mkstemp.
33651 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
33653 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
33655 2003-11-21 Robert Dewar <dewar@gnat.com>
33657 * bld.adb: Remove useless USE of gnatvsn
33659 * gnatchop.adb: Minor reformatting
33660 Clean up version handling to be more consistent
33662 * gnatxref.adb: Minor reformatting
33664 * gprcmd.adb: Minor reformatting
33665 Fix output of copyright to be more consistent with other tools
33667 2003-11-21 Vincent Celier <celier@gnat.com>
33669 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
33671 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
33673 * atree.adb (Initialize): Add initializations for global variables
33674 used in New_Copy_Tree.
33676 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
33677 Internal_Source_File as the actual).
33678 Put the set of statements creating Any_Character before the set of
33679 statements creating Any_Array to have Any_Character fully initialized
33680 when it is used in creating Any_Array.
33682 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
33683 not call Scan in case if the actual is Internal_Source_File
33684 Add 2003 to copyright note.
33686 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
33687 processing Internal_Source_File.
33689 * types.ads: Add the constant Internal_Source_File representing the
33690 source buffer for artificial source-code-like strings created within
33691 the compiler (the definition of Source_File_Index is changed).
33693 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
33695 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
33696 56system.ads: New file, FreeBSD version.
33698 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
33700 * Make-lang.in (ada.extraclean): Delete.
33702 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
33704 * gnatmem.adb: Clean up verbose output.
33706 * gprcmd.adb: Change copyright to FSF.
33708 2003-11-19 Vincent Celier <celier@gnat.com>
33710 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
33711 and Version (ignored).
33713 * symbols.ads: (Policy): New type
33714 (Initialize): New parameter Reference, Symbol_Policy and
33716 Remove parameter Force.
33717 Minor reformatting.
33719 * snames.ads, snames.adbadb: New standard names
33720 Library_Reference_Symbol_File and Library_Symbol_Policy
33723 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
33727 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
33729 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
33731 * prj.adb: (Project_Empty): New component Symbol_Data
33733 * prj.ads: (Policy, Symbol_Record): New types
33734 (Project_Data): New component Symbol_Data
33737 New attributes Library_Symbol_File, Library_Symbol_Policy and
33738 Library_Reference_Symbol_File.
33741 (Ada_Check): When project is a Stand-Alone library project, process
33742 attribute Library_Symbol_File, Library_Symbol_Policy and
33743 Library_Reference_Symbol_File.
33745 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
33746 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
33747 5sml-tgt.adb (Build_Dynamic_Library): New parameter
33748 Symbol_Data (ignored).
33750 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
33751 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
33752 functions Option_File_Name and Version_String. Set new options of
33753 gnatsym related to symbol file, symbol policy and reference symbol
33757 Extensive modifications to take into account the reference symbol file,
33758 the symbol policy, the library version and to put in the symbol file the
33759 minor and major IDs.
33761 * bld.adb (Process_Declarative_Items): Put second argument of
33762 gprcmd to_absolute between single quotes, to avoid problems with
33765 * bld-io.adb: Update Copyright notice.
33766 (Flush): Remove last character of a line, if it is a back slash, to
33767 avoid make problems.
33770 Implement new scheme with reference symbol file and symbol policy.
33772 * g-os_lib.ads: (Is_Directory): Clarify comment
33774 2003-11-19 Robert Dewar <dewar@gnat.com>
33776 * atree.adb: Move New_Copy_Tree global variables to head of package
33778 * errout.adb: Minor reformatting
33780 2003-11-19 Javier Miranda <miranda@gnat.com>
33782 * sem_ch4.adb: (Diagnose_Call): Improve error message.
33783 Add reference to Ada0Y (AI-50217)
33785 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
33786 sem_util.adb: Add reference to AI-50217
33788 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
33790 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
33792 * sem_aggr.adb: Complete documentation of AI-287 changes
33794 * par-ch4.adb: Document previous changes.
33796 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
33797 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
33800 * exp_aggr.adb: Add references to AI-287 in previous changes
33802 2003-11-19 Ed Schonberg <schonberg@gnat.com>
33805 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
33806 in the rewriting is the result of an inlined call.
33808 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
33809 parameter is a type conversion, use original node to construct the
33810 post-call assignment, because expression may have been rewritten, e.g.
33811 if it is a packed array.
33814 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
33815 body, just as it is in an instance.
33816 Categorization routines
33818 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
33819 Instantiate_Object): Set proper sloc reference for message on missing
33822 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
33824 * Makefile.in: Add FreeBSD libgnat pairs.
33826 * usage.adb: Fix typo in usage message.
33828 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
33830 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
33831 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
33832 pragma Thread_Body.
33833 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
33835 * s-thread.adb: This file is now a dummy implementation of
33838 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
33840 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
33842 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
33844 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
33845 instanciation references in the parent type description.
33847 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33849 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
33851 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
33852 TYPE_PRECISION directly from esize.
33854 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
33857 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
33859 * init.c: Initialization routines for FreeBSD
33861 * link.c: Link info for FreeBSD
33863 * sysdep.c: Add the case of FreeBSD
33865 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
33867 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
33868 already called in System.Threads.
33870 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
33871 environment task, as it has been moved to System.Threads.Initialization.
33873 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
33875 * adaint.c (__gnatlib_install_locks): Only reference
33876 __gnat_install_locks on VMS, since other platforms can avoid using
33877 --enable-threads=gnat
33879 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33881 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
33883 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
33884 TYPE_PACKED_ARRAY_TYPE_P.
33885 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
33887 Part of PR ada/12806
33888 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
33889 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
33891 2003-11-17 Vincent Celier <celier@gnat.com>
33893 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
33895 Do not set exit status to Failure when Warning is True.
33896 (Gnatchop): Make errors "no compilation units found" and
33897 "no source files written" warnings only.
33899 * make.adb (Gnatmake): When using a project file, set
33900 Look_In_Primary_Dir to False.
33901 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
33902 and Local_Configuration_Pragmas in the project where they are declared
33903 not an extending project which might have inherited them.
33905 * osint.adb (Locate_File): If Name is already an absolute path, do not
33906 look for a directory.
33908 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
33909 -gnats (Check_Syntax) is used, issue only a warning, not an error.
33911 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
33912 in objects of type Variable_Value.
33914 * prj.ads: (Variable_Value): New component Project
33916 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
33917 is in a project extended by Project.
33919 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
33920 Project of Variable_Values to this new parameter value.
33921 (Expression): Set component Project of Variable_Values.
33922 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
33923 Set the component Project in array elements.
33925 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
33927 * errout.adb: (Initialize): Add initialization for error nodes.
33929 * sem_ch12.adb (Initialize): Add missing initializations for
33930 Exchanged_Views and Hidden_Entities.
33932 2003-11-17 Ed Schonberg <schonberg@gnat.com>
33934 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
33935 already instantiated tree for use in subsequent inlining.
33936 (Analyze_Associations, Instantiate_Formal_Subprogram,
33937 Instantiate_Object): improve error message for mismatch in
33940 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
33941 instantiations of subprograms declared in instances.
33943 2003-11-17 Javier Miranda <miranda@gnat.com>
33945 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
33946 executed only under the Extensions_Allowed flag.
33948 2003-11-17 Robert Dewar <dewar@gnat.com>
33950 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
33952 (Address_Image): Fix bug of returning 0x instead of 0x0
33953 Minor reformatting (function specs).
33955 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
33956 (missed case of 33-63)
33958 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
33960 * s-thread.adb: Add comments for pragma Restriction
33962 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
33963 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
33965 2003-11-17 Ed Falis <falis@gnat.com>
33967 * s-thread.adb: Added No_Tasking restriction for this implementation.
33969 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
33971 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
33972 instanciation references in the parent type description.
33974 2003-11-17 GNAT Script <nobody@gnat.com>
33976 * Make-lang.in: Makefile automatically updated
33978 2003-11-16 Jason Merrill <jason@redhat.com>
33980 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
33981 and TAGS files that include them for each front end.
33983 2003-11-14 Andreas Jaeger <aj@suse.de>
33985 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
33986 is the canonical version.
33987 * misc.c (gnat_handle_option): Likewise.
33989 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
33991 * 5nsystem.ads: New file for x86_64-linux-gnu.
33993 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
33995 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
33997 * comperr.adb: Fix logic in previous change.
33999 2003-11-13 Vincent Celier <celier@gnat.com>
34001 * 5bml-tgt.adb (Build_Dynamic_Library): Use
34002 Osint.Include_Dir_Default_Prefix instead of
34003 Sdefault.Include_Dir_Default_Name.
34005 * gnatlbr.adb: Update Copyright notice
34006 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
34007 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
34008 instead of Sdefault.Object_Dir_Default_Name
34011 (Process_Binder_File): Never suppress the option following -Xlinker
34014 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
34015 Sdefault.Object_Dir_Default_Name.
34017 * osint.ads, osint.adb:
34018 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
34019 Minor reformatting.
34021 * vms_conv.ads: Minor reformating
34022 Remove GNAT STANDARD and GNAT PSTA
34025 Allow GNAT MAKE to have several files on the command line.
34026 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
34027 Sdefault.Object_Dir_Default_Name.
34029 Remove data for GNAT STANDARD
34032 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
34033 Remove data for GNAT STANDARD
34034 Remove options and documentation for -gnatwb/-gnatwB: these warning
34035 options no longer exist.
34037 2003-11-13 Ed Falis <falis@gnat.com>
34039 * 5zthrini.adb: (Init_RTS): Made visible
34042 (Register): Removed unnecessary call to taskVarGet that checked whether
34043 an ATSD was already set as a task var for the argument thread.
34046 Updated comment to reflect that this is a VxWorks version
34047 Added context clause for System.Threads.Initialization
34048 Added call to System.Threads.Initialization.Init_RTS
34050 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
34053 (Init_RTS): New procedure, for the initialization of the run-time lib.
34056 Remove dependancy on System.Init, so that this file can be used in the
34057 AE653 sequential run-time lib.
34059 2003-11-13 Robert Dewar <dewar@gnat.com>
34061 * bindgen.adb: Minor reformatting
34063 2003-11-13 Ed Schonberg <schonberg@gnat.com>
34066 (Apply_Discriminant_Check): Do no apply check if target type is derived
34067 from source type with no applicable constraint.
34070 (Ensure_System_Dependency): Do not apply the style checks that may have
34071 been specified for the main unit.
34074 (Find_Selected_Component): Further improvement in error message, with
34078 (Resolve): Handle properly the case of an illegal overloaded protected
34081 2003-11-13 Javier Miranda <miranda@gnat.com>
34084 (Has_Default_Init_Comps): New function to check the presence of
34085 default initialization in an aggregate.
34086 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
34087 extension aggregate of a limited record. In addition, a new formal
34088 was added to do not initialize the record controller (if any) during
34089 this recursive expansion of ancestors.
34090 (Init_Controller): Add support for limited record components.
34091 (Expand_Record_Aggregate): In case of default initialized components
34092 convert the aggregate into a set of assignments.
34094 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
34095 describing the new syntax.
34096 Nothing else needed to be done because this subprogram delegates part of
34097 its work to P_Precord_Or_Array_Component_Association.
34098 (P_Record_Or_Array_Component_Association): Give support to the new
34099 syntax for default initialization of components.
34102 (Resolve_Aggregate): Relax the strictness of the frontend in case of
34103 limited aggregates.
34104 (Resolve_Record_Aggregate): Give support to default initialized
34106 (Get_Value): In case of default initialized components, duplicate
34107 the corresponding default expression (from the record type
34108 declaration). In case of default initialization in the *others*
34109 choice, do not check that all components have the same type.
34110 (Resolve_Extension_Aggregate): Give support to limited extension
34114 (Check_Initialization): Relax the strictness of the front-end in case
34115 of aggregate and extension aggregates. This test is now done in
34116 Get_Value in a per-component manner.
34118 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
34119 expression corresponds to a limited aggregate. This test is now done
34122 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
34125 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
34126 present in an N_Component_Association node
34128 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
34130 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
34131 type-conformant entry only if they are homographs.
34133 2003-11-13 GNAT Script <nobody@gnat.com>
34135 * Make-lang.in: Makefile automatically updated
34137 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34139 * adadecode.c: Use <> form of include for ctype.h.
34140 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
34142 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34144 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
34145 Works around PR middle-end/6552.
34147 2003-11-10 Ed Falis <falis@gnat.com>
34149 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
34151 * 5zinit.adb: (Install_Handler): Moved back to spec
34152 (Install_Signal_Handlers): Deleted
34154 * 5zthrini.adb: Added context clause for System.Storage_Elements
34155 (Register): Only handles creation of taskVar; initialization moved to
34157 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
34158 Added declaration of environment task secondary stack and
34161 * s-thread.adb: Implement bodies for thread body processing
34164 Added comment identifying supported targets for pragma Thread_Body.
34166 2003-11-10 Pascal Obry <obry@gnat.com>
34168 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
34172 (Open): Properly check for string length before copying into the buffer.
34173 Raises Name_Error if buffer is too small. Note that this was a potential
34176 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
34178 * bindgen.adb, comperr.adb: Code clean ups.
34179 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
34181 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
34183 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
34185 2003-11-10 Vincent Celier <celier@gnat.com>
34188 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
34191 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
34193 * prj.adb: (Project_Empty): Add new boolean component Virtual
34195 * prj.ads: (Virtual_Prefix): New constant string
34196 (Project_Data): New boolean component Virtual
34198 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
34199 a library project is extended by a virtual extending project.
34202 Modifications throughout to implement extending-all project, including:
34203 (Virtual_Hash, Processed_Hash): New hash tables
34204 (Create_Virtual_Extending_Project): New procedure
34205 (Look_For_Virtual_Projects_For): New procedure
34208 (Process): After checking the projects, if main project is an
34209 extending-all project, set the object directory of all virtual extending
34210 project to the object directory of the main project.
34211 Adjust error message when a virtual extending project has the same
34212 object directory as an project being extended.
34213 (Recursive_Process): If name starts with the virtual prefix, set Virtual
34214 to True in the project data.
34217 (Default_Project_Node): Add new boolean component Extending_All
34218 (Is_Extending_All): New function
34219 (Set_Is_Extending_All): New procedure
34221 * prj-tree.ads: (Is_Extending_All): New function
34222 (Set_Is_Extending_All): New procedure
34223 (Project_Node_Record): New boolean component Extending_All
34225 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
34228 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
34230 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
34231 "gprcmd prefix" to define it.
34233 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
34235 * einfo.ads: Fix a typo and remove an extraneous word in comments.
34238 (Create_Dummy_Package_Unit): Set the scope of the entity for the
34239 created dummy package to Standard_Standard, not to itself, to
34240 defend other parts of the front-end against encoutering a cycle in
34244 (Analyze_With_Clause): When setting the entities for the successive
34245 N_Expanded_Names that constitute the name of a child unit, do not
34246 attempt to go further than Standard_Standard in the chain of scopes.
34247 This case arises from the placeholder units created by
34248 Create_Dummy_Package_Unit in the case of a with_clause for a
34249 nonexistent child unit.
34251 2003-11-10 Ed Schonberg <schonberg@gnat.com>
34254 (Expand_Thread_Body): Place subprogram on scope stack, so that new
34255 declarations are given the proper scope.
34258 (Check_Expr_Constants): Reject an expression that contains a constant
34259 created during expansion, and that appears after the object to which
34260 the address clause applies.
34262 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
34263 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
34264 that uses 'Range of a function call with controlled components, so
34265 that the function result can be finalized before starting the loop.
34268 (Find_Selected_Component): Improve error message when prefix is
34269 an implicit dereference of an incomplete type.
34271 2003-11-10 Robert Dewar <dewar@gnat.com>
34273 * opt.ads: New Print_Standard flag for -gnatS switch
34275 * sem_ch13.adb: Remove some additional checks for unaligned arrays
34277 * cstand.adb (Create_Standard): Print out package standard if -gnatS
34280 * debug.adb: Update doc for -gnatds to discuss relationship with new
34283 * sinfo.adb: Add new field Entity_Or_Associated_Node
34285 * sinfo.ads: Add new field Entity_Or_Associated_Node
34286 Update documentation for Associated_Node and Entity fields to clarify
34287 relationship and usage.
34290 (Write_Id): Properly process Associated_Node field in generic template
34293 Recognize new -gnatS switch for printing package Standard
34294 This replaces gnatpsta
34297 Add line for new -gnatS switch for printing package Standard
34298 This replaces gnatpsta
34300 2003-11-10 Andreas Jaeger <aj@suse.de>
34302 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
34305 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
34307 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
34310 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
34312 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
34315 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
34317 * sysdep.c: Add handling of cygwin.
34319 2003-11-10 GNAT Script <nobody@gnat.com>
34321 * Make-lang.in: Makefile automatically updated
34323 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
34326 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
34327 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
34328 Replace GNAT_ROOT by GCC_ROOT.
34330 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
34332 2003-11-06 Zack Weinberg <zack@codesourcery.com>
34334 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
34335 and update for changed meaning of GET_MODE_BITSIZE.
34337 2003-11-04 Doug Rupp <rupp@gnat.com>
34339 * sysdep.c: Problem discovered during IA64 VMS port.
34340 [VMS] #include <unixio.h> to get proper prototypes.
34343 Issues discovered/problems fixed during IA64 VMS port.
34344 [VMS] #define _POSIX_EXIT for proper semantics.
34345 [VMS] #include <unixio.h> for proper prototypes.
34346 [VMS] (fork): #define IA64 version.
34347 (__gnat_os_exit): Remove unnecessary VMS specific code.
34349 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34351 Part of PR ada/12806
34352 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
34356 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
34359 * targtyps.c, decl.c, misc.c,
34360 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
34361 routines to work around change in FP sizing semantics in GCC.
34364 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
34366 * gigi.h: (enumerate_modes): New function.
34368 * Make-lang.in: (ada/misc.o): Add real.h.
34370 * misc.c: (enumerate_modes): New function.
34372 2003-11-04 Robert Dewar <dewar@gnat.com>
34374 * 3vtrasym.adb: Minor reformatting
34375 Use terminology encoded/decoded name, rather than C++ specific notion
34376 of mangling (this is the terminology used throughout GNAT).
34378 * einfo.h: Regenerated
34380 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
34383 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
34385 * par-prag.adb: Add dummy entry for Thread_Body pragma
34388 Add entries for System.Threads entities for thread body processing
34391 (Analyze_Pragma, Access attributes): Check these are not applied to a
34392 thread body, since this is not permitted
34394 * sem_prag.adb: Add processing for Thread_Body pragma.
34398 (Resolve_Call): Check for incorrect attempt to call a thread body
34399 procedure with a direct call.
34401 * snames.ads, snames.adb: Add entry for Thread_Body pragma
34402 Add names associated with thread body expansion
34404 * snames.h: Add entry for Thread_Body pragma
34406 * s-thread.adb: Add entries for thread body processing
34407 These are dummy bodies so far
34409 * s-thread.ads: Add documentation on thread body handling.
34410 Add entries for thread body processing.
34412 2003-11-04 Javier Miranda <miranda@gnat.com>
34415 (Build_Limited_Views): Return after posting an error in case of limited
34416 with_clause on subprograms, generics, instances or generic renamings
34417 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
34418 on subprograms, generics, instances or generic renamings
34420 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
34422 * raise.c (setup_to_install): Correct mistake in last revision; two
34423 arguments out of order.
34425 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
34426 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
34427 notice, missed in previous change.
34428 Remove trailing blanks and other style errors introduced in previous
34431 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
34433 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
34434 rid of the wrapper for a LJM type, ensuring we don't do that if the
34435 field is addressable. This avoids potential low level type view
34436 mismatches later on, for instance in a by-reference argument passing
34439 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34441 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
34442 aligned at byte boundary.
34444 2003-11-04 Joel Brobecker <brobecker@gnat.com>
34446 * decl.c (components_to_record): Do not delete the empty variants from
34447 the end of the union type.
34449 2003-11-04 Ed Schonberg <schonberg@gnat.com>
34451 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
34452 operation for a derived type, an explicit declaration may use a local
34453 subtype of Boolean.
34455 2003-11-04 Vincent Celier <celier@gnat.com>
34457 * make.adb (Gnatmake): Allow main sources on the command line with a
34458 library project when it is only for compilation (no binding or
34461 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34463 * Makefile.in: Remove many duplicate variables.
34465 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
34467 * Make-lang.in (dvi): Move targets to $(docobjdir).
34468 (gnat_ug_vms.dvi): Simplify rule and adjust target.
34469 (gnat_ug_wnt.dvi): Likewise.
34470 (gnat_ug_unx.dvi): Likewise.
34471 (gnat_ug_vxw.dvi): Likewise.
34472 (gnat_rm.dvi): Likewise.
34473 (gnat-style.dvi): Likewise.
34475 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
34477 * gigi.h: Missed commit from update for C90.
34479 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
34481 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
34483 2003-10-31 Andreas Schwab <schwab@suse.de>
34485 * raise.c (get_action_description_for): Fix typo in last change.
34487 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
34490 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
34491 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
34493 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
34495 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
34496 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
34497 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
34498 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
34499 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
34501 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
34504 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
34505 numbers when symbol name is too long.
34507 2003-10-30 Ed Falis <falis@gnat.com>
34509 * g-signal.ads, g-signal.adb: New files
34511 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
34513 * Makefile.rtl: Introduce GNAT.Signals
34515 2003-10-30 Robert Dewar <dewar@gnat.com>
34517 * freeze.adb: Minor reformatting
34519 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
34521 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
34522 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
34523 New handling of Id_Check parameter to improve recognition of keywords
34524 used as identifiers.
34525 Update copyright notice to include 2003
34527 2003-10-29 Robert Dewar <dewar@gnat.com>
34529 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
34530 sem_ch10.adb: Minor reformatting
34532 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
34533 (Expand_Assign_Record): Test right hand side for bit unaligned as well
34535 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
34537 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
34538 Support for TBK$SYMBOLIZE-based symbolic traceback.
34540 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
34543 Revert previous change, that did not work well when pragma No_Run_Time
34544 was used in conjunction with a run-time other than ZFP.
34546 2003-10-29 Vincent Celier <celier@gnat.com>
34549 (Gnatmake): When there are no Ada mains in attribute Main, disable the
34550 bind and link steps only is switch -z is not used.
34552 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
34554 * Makefile.generic: Remove duplicated setting of CC.
34556 * Makefile.prolog: Set CC to gcc by default, to override make's
34559 * einfo.h: Regenerated.
34561 2003-10-29 Ed Schonberg <schonberg@gnat.com>
34563 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
34564 current body, after compiling subunit.
34566 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
34567 when in deleted code, because gigi needs properly ordered freeze
34568 actions to annotate types.
34570 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
34571 prevent the premature freezing of record type that contains
34572 subcomponents with a private type that does not yet have a completion.
34574 2003-10-29 Javier Miranda <miranda@gnat.com>
34577 (Analyze_Package_Instantiation): Check that instances can not be used in
34578 limited with_clauses.
34581 (Analyze_Package_Renaming): Check that limited withed packages cannot
34582 be renamed. Improve text on error messages related to limited
34585 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
34587 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
34588 Update copyright notice.
34590 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
34591 (Install_Limited_Context_Clauses): New subprogram that isolates all the
34592 checks required for limited context_clauses and installs the limited
34594 (Install_Limited_Withed_Unit): Complete its documentation.
34595 (Analyze_Context): Check that limited with_clauses are only allowed in
34597 (Install_Context): Call Install_Limited_Context_Clauses after the
34598 parents have been installed.
34599 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
34600 package as 'From_With_Type'; this mark indicates that the limited view
34601 is installed. Used to check bad usages of limited with_clauses.
34602 (Build_Limited_Views): Do not add shadow entities to the scope's list
34603 of entities. Do not add real entities to the Non_Limited_Views chain.
34604 Improve error notification.
34605 (Remove_Context_Clauses): Remove context clauses in two phases:
34606 limited views first and regular views later (to maintain the
34608 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
34609 its visible entities.
34611 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
34613 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
34614 with any type that Is_Fixed_Point_Type.
34616 * sinfo.ads: Fix documentation for Associated_Node attribute.
34618 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
34620 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
34621 both '-gnatc' and '-gnatt' are specified.
34623 * atree.adb (Initialize): Add initialization for Node_Count (set to
34626 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34628 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
34629 do not consider as Pure.
34631 Part of implementation of function-at-a-time:
34633 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
34634 (tree_transform): Add new argument to build_component_ref.
34635 (tree_transform, case N_Assignment_Statement): Make and return an
34637 (tree_transform): If result IS_STMT, set flags and return it.
34638 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
34640 * utils2.c (build_simple_component_ref, build_component_ref): Add new
34642 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
34643 (build_allocator): Likewise.
34645 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
34646 Add new arg to build_component_ref.
34647 (maybe_unconstrained_array, unchecked_convert): Likewise.
34649 * ada-tree.def (EXPR_STMT): New code.
34651 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
34653 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
34654 build_component_ref calls.
34656 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
34658 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
34659 (build_component_ref): Add new argument, NO_FOLD_P.
34661 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
34663 * Makefile.generic: Add missing substitution on object_deps handling.
34666 * Make-lang.in (check-ada): Enable ACATS test suite.
34668 2003-10-27 Robert Dewar <dewar@gnat.com>
34671 (Freeze_Array_Type): We do not need an initialization routine for types
34672 derived from String or Wide_String. They should be treated the same
34673 as String and Wide_String themselves. This caused problems with the
34674 use of Initialize_Scalars.
34677 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
34678 composites. This allows use of component clauses that are not byte
34682 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
34683 is an attempt to pack an array of atomic objects.
34685 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
34687 2003-10-27 Pascal Obry <obry@gnat.com>
34690 (Basename): Check for drive letters in a pathname only on DOS based OS.
34692 2003-10-27 Vincent Celier <celier@gnat.com>
34695 (Gnatmake): When unable to change dir to the object dir, display the
34696 content of the parent dir of the obj dir, to try to understand why this
34699 2003-10-27 GNAT Script <nobody@gnat.com>
34701 * Make-lang.in: Makefile automatically updated
34703 2003-10-27 Ed Schonberg <schonberg@gnat.com>
34706 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
34707 should not be done in Save/Restore_Scope_Stack, because it is performed
34711 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
34712 whether use clauses should be removed/restored.
34715 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
34716 whether use clauses should be removed/restored.
34718 2003-10-26 Andreas Jaeger <aj@suse.de>
34720 * Makefile.in: Remove duplicated lines.
34722 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
34724 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
34725 minimize the differences with ACT tree.
34727 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
34728 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
34729 Gnatvsn.Gnat_Static_Version_String to reduce differences between
34732 2003-10-24 Pascal Obry <obry@gnat.com>
34735 * adadecode.c (ostrcpy): New function.
34736 (__gnat_decode): Use ostrcpy of strcpy.
34737 (has_prefix): Set first parameter a const.
34738 (has_suffix): Set first parameter a const.
34739 Update copyright notice. Fix source name in header.
34740 Removes a trailing space.
34742 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
34745 Remove the test against being in No_Run_Time_Mode before generating a
34746 call to Register_Tag. It is redundant with the test against the
34747 availability of the function Register_Tag.
34749 2003-10-24 Vincent Celier <celier@gnat.com>
34751 * g-catiio.adb: (Month_Name): Correct spelling of February
34753 * make.adb: (Mains): New package
34754 (Initialize): Call Mains.Delete
34755 (Gnatmake): Check that each main on the command line is a source of a
34756 project file and, if there are several mains, each of them is a source
34757 of the same project file.
34758 (Gnatmake): When a foreign language is specified in attribute Languages,
34759 no main is specified on the command line and attribute Mains is not
34760 empty, only build the Ada main. If there is no Ada main, just compile
34761 the Ada sources and their closure.
34762 (Gnatmake): If a main is specified on the command line with directory
34763 information, check that the source exists and, if it does, that the path
34764 is the actual path of a source of a project.
34767 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
34768 Full_Path is True, return the full path instead of the simple file name.
34769 (Project_Of): New function
34772 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
34773 defaulted to False.
34774 (Project_Of): New function
34776 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
34778 * Makefile.generic:
34779 Ensure objects of main project are always checked and rebuilt if needed.
34780 Set CC to gcc by default.
34781 Prepare new handling of link by creating a global archive (not activated
34784 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
34785 stringt.h: Update copyright notice. Remove trailing blanks.
34786 Fix source name in header.
34788 2003-10-24 Robert Dewar <dewar@gnat.com>
34790 * sem_ch12.adb: Minor reformatting
34793 Minor reformatting (including new function return style throughout)
34796 Minor reformatting (including new function return style throughout)
34798 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
34800 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
34801 stringt.h: Update copyright notice. Remove trailing blanks.
34802 Fix source name in header.
34804 2003-10-24 GNAT Script <nobody@gnat.com>
34806 * Make-lang.in: Makefile automatically updated
34808 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
34810 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
34811 stringt.h: Convert to ISO C90 declarations and definitions.
34813 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
34816 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
34817 External_Tag attribute definition clauses.
34819 2003-10-23 Ed Schonberg <schonberg@gnat.com>
34822 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
34823 child unit, generate a fully qualified name to avoid spurious errors
34824 when the context contains renamings of different child units with
34825 the same simple name.
34827 * exp_dbug.ads: Add documentation on name qualification for renamings
34830 2003-10-23 Robert Dewar <dewar@gnat.com>
34832 * g-regpat.ads, g-regpat.adb: Minor reformatting
34834 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
34836 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
34838 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34840 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
34843 * urealp.h: (Machine): Update to proper definition.
34845 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
34847 * init.c, adaint.c: Minor reformatting.
34849 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
34851 * adaint.c (w32_epoch_offset): Define static const at file level.
34852 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
34853 rather than t_create, t_access in call to GetFileTime. Use union
34854 to convert between FILETIME and unsigned long long.
34855 (__gnat_file_time_name): Test for invalid file handle.
34856 (__gnat_set_filetime_name): Support win32 targets using
34857 w32api SetFileTime.
34859 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
34861 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
34863 * ctrl_c.c (__gnat_int_handler): Remove declaration.
34865 * decl.c (creat_concat_name): Const-ify prefix.
34867 * adaint.c: Include ctype.h if __MINGW32__.
34868 (__gnat_readlink): Mark arguments as possibly unused.
34869 (__gnat_symlink): Likewise.
34870 (__gnat_is_symbolic_link): Likewise.
34871 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
34873 (__gnat_file_time_name): Don't declare struct stat statbuf when
34875 (__gnat_is_absolute_path): Add parenthesis around condition of
34876 'if' statement to avoid warning.
34877 (__gnat_plist_init): Specify void as parameter.
34878 (plist_enter): Likewise.
34879 (plist_leave): Likewise.
34880 (remove_handle): Make static. Initialize prev.
34882 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
34885 * Makefile.in: Disable build of gnatpsta.
34886 * cstreams.c (__gnat_full_name): Minor improvements and clean up
34887 of previous change.
34889 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34891 * tracebak.c (MAX): Avoid redefinition warning.
34893 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
34894 Change msg to const char *.
34895 (__gnat_install_handler): Remove ss, unused.
34896 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
34898 * cstreams.c (__gnat_full_name): Declare p only when used.
34899 (__gnat_full_name) [sgi] Return buffer.
34901 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
34903 * mingw32.h: New file.
34904 * gnat_wrapper.adb: New file.
34906 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
34908 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
34909 string match a pre compiled regular expression (the corresponding
34910 version of the function working on a raw regular expression)
34911 Fix typos in various comments
34912 Update copyright notice in spec
34914 2003-10-21 Gary Dismukes <dismukes@gnat.com>
34917 (Component_Needs_Simple_Initialization): Return False when the type is a
34918 packed bit array. Revise spec comments to document this case.
34921 (Expand_Pragma_Import): Set any expression on the imported object to
34922 empty to avoid initializing imported objects (in particular this
34923 covers the case of zero-initialization of bit arrays).
34924 Update copyright notice.
34926 2003-10-21 Ed Schonberg <schonberg@gnat.com>
34929 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
34930 a subunit is missing.
34931 (Instantiate_Subprogram_Body): If body of function is missing, set type
34932 of return expression explicitly in dummy body, to prevent cascaded
34933 errors when a subunit is missing.
34937 (Access_Subprogram_Declaration): Verify that return type is valid.
34941 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
34946 (Corresponding_Discriminant): If the scope of the discriminant is a
34947 private type without discriminant, use its full view.
34950 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
34952 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
34953 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
34954 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
34955 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
34956 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
34957 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
34958 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
34959 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
34960 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
34961 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
34962 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
34963 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
34964 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
34965 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
34966 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
34967 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
34968 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
34969 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
34970 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
34971 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
34972 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
34973 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
34974 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
34975 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
34976 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
34977 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
34978 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
34979 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
34980 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
34981 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
34982 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
34983 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
34984 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
34985 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
34986 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
34987 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
34988 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
34989 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
34990 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
34991 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
34992 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
34993 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
34994 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
34995 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
34996 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
34997 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
34998 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
34999 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
35000 vms_conv.ads, vms_conv.adb, vms_data.ads,
35001 vxaddr2line.adb: Files added. Merge with ACT tree.
35003 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
35004 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
35005 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
35006 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
35007 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
35008 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
35009 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
35010 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
35011 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
35012 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
35014 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
35015 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
35016 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
35017 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
35018 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
35019 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
35020 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
35021 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
35022 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
35023 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
35024 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
35025 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
35026 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
35027 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
35028 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
35029 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
35030 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
35031 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
35032 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
35033 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
35034 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
35035 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
35036 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
35037 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
35038 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
35039 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
35040 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
35041 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
35042 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
35043 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
35044 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
35045 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
35046 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
35047 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
35048 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
35049 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
35050 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
35051 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
35052 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
35053 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
35054 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
35055 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
35056 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
35057 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
35058 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
35059 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
35060 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
35061 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
35062 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
35063 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
35064 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
35065 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
35066 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
35067 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
35068 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
35069 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
35070 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
35071 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
35072 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
35073 checks.adb, checks.ads, cio.c, comperr.adb,
35074 comperr.ads, csets.adb, cstand.adb, cstreams.c,
35075 debug_a.adb, debug_a.ads, debug.adb, decl.c,
35076 einfo.adb, einfo.ads, errout.adb, errout.ads,
35077 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
35078 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
35079 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
35080 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
35081 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
35082 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
35083 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
35084 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
35085 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
35086 fe.h, fmap.adb, fmap.ads, fname.adb,
35087 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
35088 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
35089 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
35090 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
35091 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
35092 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
35093 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
35094 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
35095 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
35096 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
35097 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
35098 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
35099 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
35100 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
35101 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
35102 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
35103 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
35104 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
35105 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
35106 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
35107 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
35108 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
35109 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
35110 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
35111 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
35112 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
35113 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
35114 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
35115 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
35116 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
35117 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
35118 layout.adb, lib.adb, lib.ads, lib-list.adb,
35119 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
35120 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
35121 link.c, live.adb, make.adb, make.ads,
35122 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
35123 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
35124 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
35125 misc.c, mkdir.c, mlib.adb, mlib.ads,
35126 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
35127 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
35128 namet.adb, namet.ads, namet.h, nlists.ads,
35129 nlists.h, nmake.adt, opt.adb, opt.ads,
35130 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
35131 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
35132 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
35133 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
35134 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
35135 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
35136 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
35137 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
35138 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
35139 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
35140 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
35141 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
35142 prj-util.adb, prj-util.ads, raise.c, raise.h,
35143 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
35144 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
35145 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
35146 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
35147 scans.ads, scn.adb, scn.ads, s-crc32.adb,
35148 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
35149 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
35150 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
35151 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
35152 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
35153 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
35154 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
35155 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
35156 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
35157 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
35158 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
35159 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
35160 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
35161 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
35162 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
35163 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
35164 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
35165 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
35166 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
35167 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
35168 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
35169 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
35170 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
35171 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
35172 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
35173 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
35174 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
35175 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
35176 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
35177 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
35178 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
35179 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
35180 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
35181 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
35182 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
35183 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
35184 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
35185 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
35186 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
35187 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
35188 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
35189 stringt.adb, stringt.ads, stringt.h, style.ads,
35190 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
35191 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
35192 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
35193 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
35194 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
35195 table.adb, table.ads, targparm.adb, targparm.ads,
35196 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
35197 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
35198 ttypes.ads, types.ads, types.h, uintp.adb,
35199 uintp.ads, uintp.h, uname.adb, urealp.adb,
35200 urealp.ads, urealp.h, usage.adb, utils2.c,
35201 utils.c, validsw.adb, validsw.ads, widechar.adb,
35202 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
35203 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
35204 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
35205 gnatvsn.ads: Merge with ACT tree.
35207 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
35209 2003-10-20 Mark Mitchell <mark@codesourcery.com>
35211 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
35212 (gnat_ug_vmx.info): Likewise.
35213 (gnat_ug_vxw.info): Likewise.
35214 (gnat_ug_wnt.info): Likewise.
35215 (gnat_rm.info): Likewise.
35216 (gnat-style.info): Likewise.
35218 * Make-lang.in (ada.install-info): Remove target.
35219 (info): New target.
35220 (install-info): Likewise.
35221 (gnat_ug_unx.info): Simplify rule.
35222 (gnat_ug_vmx.info): Likewise.
35223 (gnat_ug_vxw.info): Likewise.
35224 (gnat_ug_wnt.info): Likewise.
35225 (gnat_rm.info): Likewise.
35226 (gnat-style.info): Likewise.
35228 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
35230 * Make-lang.in: Replace uses of $(target_alias) with
35231 $(target_noncanonical).
35232 * ada/Makefile.in: Remove unused mention of $(target_alias).
35234 2003-10-06 Mark Mitchell <mark@codesourcery.com>
35236 * Make-lang.in (ada.info): Replace with ...
35238 (ada.dvi): Replace with ...
35241 2003-09-29 Zack Weinberg <zack@codesourcery.com>
35243 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
35244 initialize dconstp5 and dconstmp5.
35246 2003-09-28 Richard Henderson <rth@redhat.com>
35248 * trans.c (tree_transform): Update call to expand_asm_operands.
35250 2003-09-21 Richard Henderson <rth@redhat.com>
35252 * trans.c, utils.c: Revert.
35254 2003-09-21 Richard Henderson <rth@redhat.com>
35256 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
35259 2003-09-04 Michael Matz <matz@suse.de>
35261 * misc.c: Include "target.h".
35262 * Make-lang.in (misc.o): Add dependency on target.h.
35264 2003-09-03 DJ Delorie <dj@redhat.com>
35266 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
35269 2003-08-30 Zack Weinberg <zack@codesourcery.com>
35271 * Makefile.in: Update substitutions to match changes to
35272 configure. Use include directives instead of @-insertions
35273 to read in host and target fragments. Add a rule to
35274 regenerate ada/Makefile.
35276 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
35278 * lang-options.h: Remove.
35279 * lang.opt: Add help text.
35281 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
35283 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
35286 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
35288 * misc.c (gnat_handle_option): Don't handle filenames.
35290 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
35292 * Make-lang.in: Replace PWD with PWD_COMMAND.
35293 * Makefile.adalib: Likewise.
35294 * Makefile.in: Likewise.
35296 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
35298 * misc.c (gnat_argv): Revert last change.
35299 (gnat_handle_option, gnat_init_options): Copy arguments.
35301 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
35303 * misc.c (gnat_argv): Make const.
35305 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
35307 * misc.c (save_argc, save_argv): Keep non-static!
35309 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
35311 * misc.c (save_argc, save_argv): Make static.
35312 (gnat_init_options): New prototype.
35313 (gnat_init_options): Update.
35315 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
35317 * gnat_ug.texi: Remove unlikely characters from @vars.
35318 * gnat_ug_vms.texi: Regenerate.
35320 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
35322 * misc.c (record_code_position): Adjust emit_note call.
35324 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
35326 * misc.c (gnat_handle_option): Don't check for missing arguments.
35328 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
35330 * utils.c (end_subprog_body): Adjust expand_function_end call.
35332 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
35334 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
35337 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
35339 * lang.opt: Declare Ada.
35340 * misc.c (gnat_init_options): Update.
35342 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
35344 * utils.c (begin_subprog_body): Adjust init_function_start call.
35346 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
35348 * Make-lang.in: Update to use options.c and options.h.
35349 * misc.c: Include options.h not aoptions.h.
35350 (gnat_handle_option): Abort on unrecognized switch.
35351 (gnat_init_options): Request Ada switches.
35353 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
35355 * lang.opt: Add -Wall.
35356 * misc.c (gnat_handle_option): Handle it.
35358 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
35360 * misc.c (gnat_handle_option): Fix warnings.
35362 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
35364 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
35366 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
35368 * Make-lang.in: Update to handle command-line options.
35369 * lang.opt: New file.
35370 * misc.c: Include aoptions.h.
35371 (cl_options_count, cl_options): Remove.
35372 (gnat_handle_option): New.
35373 (gnat_decode_option): Remove.
35374 (LANG_HOOKS_DECODE_OPTION): Remove.
35375 (LANG_HOOKS_HANDLE_OPTION): Override.
35377 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
35379 * init.c, misc.c, trans.c, utils.c: Remove dead code.
35381 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
35383 * Makefile.in: Replace "host_canonical" with "host" for autoconf
35386 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
35388 * Make-lang.in: Update.
35389 * misc.c: Include opts.h. Define cl_options_count and cl_options.
35391 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
35393 * misc.c (gnat_init_options): Update.
35395 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
35397 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
35398 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
35399 __attribute__ ((__unused__)).
35401 2003-06-05 Jan Hubicka <jh@suse.cz>
35403 * Make-lang.in: Add support for stageprofile and stagefeedback
35405 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
35407 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
35408 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
35410 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
35412 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
35413 Remove non-VMS directive.
35414 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
35416 (Examples of gnatls Usage): Remove VMS alternative.
35418 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
35421 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
35422 and turn ZCX_By_Default back to False since the underlying support
35423 is not quite there yet.
35425 2003-06-01 Andreas Jaeger <aj@suse.de>
35427 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
35428 and ROUND_TYPE_SIZE_UNIT.
35430 2003-05-22 Geert Bosch <bosch@gnat.com>
35432 * gnat_rm.texi : Remove reference to Ada Core Technologies.
35434 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
35436 * trans.c (tree_transform): Use location_t and input_location
35438 (build_unit_elab): Likewise.
35439 * utils.c (create_label_decl): Likewise.
35441 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
35443 * trans.c (tree_transform, build_unit_elab,
35444 set_lineno): Rename lineno to input_line.
35445 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
35446 end_subprog_body): Likewise.
35447 * utils2.c (build_call_raise): Likewise.
35449 2003-05-01 Laurent Guerby <guerby@acm.org>
35452 * 5iosinte.ads: Increase pthread_cond_t size to match recent
35453 LinuxThread and NPTL version, merge from ACT.
35455 2003-04-28 Zack Weinberg <zack@codesourcery.com>
35457 * utils.c (convert): No need to clear TREE_CST_RTL.
35459 2003-04-23 Geert Bosch <bosch@gnat.com>
35461 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
35462 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
35463 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
35464 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
35465 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
35466 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
35467 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
35468 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
35469 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
35470 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
35471 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
35472 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
35473 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
35474 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
35475 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
35476 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
35477 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
35478 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
35479 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
35480 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
35481 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
35482 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
35483 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
35484 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
35485 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
35486 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
35487 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
35488 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
35489 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
35490 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
35491 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
35492 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
35493 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
35494 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
35495 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
35496 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
35497 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
35498 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
35499 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
35500 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
35501 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
35502 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
35503 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
35504 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
35505 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
35506 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
35507 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
35508 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
35509 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
35510 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
35511 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
35512 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
35513 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
35514 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
35515 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
35516 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
35517 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
35518 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
35519 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
35520 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
35521 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
35522 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
35523 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
35524 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
35525 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
35526 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
35527 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
35528 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
35529 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
35530 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
35531 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
35532 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
35533 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
35534 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
35535 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
35536 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
35537 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
35538 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
35539 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
35540 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
35541 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
35542 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
35543 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
35544 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
35545 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
35546 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
35547 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
35548 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
35549 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
35550 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
35551 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
35552 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
35553 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
35554 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
35555 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
35556 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
35557 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
35558 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
35559 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
35560 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
35561 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
35562 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
35563 ali.adb, ali.ads, alloc.ads, argv.c,
35564 atree.adb, atree.ads, atree.h, aux-io.c,
35565 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
35566 binde.adb, binde.ads, binderr.adb, binderr.ads,
35567 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
35568 butil.adb, butil.ads, cal.c, calendar.ads,
35569 casing.adb, casing.ads, ceinfo.adb, checks.adb,
35570 checks.ads, cio.c, comperr.adb, comperr.ads,
35571 config-lang.in, csets.adb, csets.ads, csinfo.adb,
35572 cstand.adb, cstand.ads, cuintp.c, debug.adb,
35573 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
35574 dec-io.ads, dec.ads, deftarg.c, directio.ads,
35575 einfo.adb, einfo.ads, elists.adb, elists.ads,
35576 elists.h, errno.c, errout.adb, errout.ads,
35577 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
35578 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
35579 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
35580 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
35581 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
35582 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
35583 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
35584 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
35585 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
35586 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
35587 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
35588 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
35589 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
35590 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
35591 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
35592 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
35593 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
35594 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
35595 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
35596 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
35597 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
35598 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
35599 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
35600 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
35601 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
35602 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
35603 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
35604 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
35605 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
35606 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
35607 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
35608 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
35609 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
35610 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
35611 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
35612 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
35613 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
35614 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
35615 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
35616 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
35617 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
35618 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
35619 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
35620 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
35621 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
35622 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
35623 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
35624 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
35625 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
35626 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
35627 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
35628 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
35629 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
35630 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
35631 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
35632 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
35633 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
35634 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
35635 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
35636 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
35637 lib.adb, lib.ads, live.adb, live.ads,
35638 machcode.ads, make.adb, make.ads, makeusg.adb,
35639 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
35640 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
35641 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
35642 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
35643 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
35644 mlib.ads, namet.adb, namet.ads, nlists.adb,
35645 nlists.ads, opt.adb, opt.ads, osint-b.adb,
35646 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
35647 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
35648 osint.ads, output.adb, output.ads, par-ch10.adb,
35649 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
35650 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
35651 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
35652 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
35653 par-tchk.adb, par-util.adb, par.adb, par.ads,
35654 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
35655 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
35656 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
35657 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
35658 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
35659 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
35660 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
35661 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
35662 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
35663 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
35664 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
35665 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
35666 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
35667 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
35668 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
35669 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
35670 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
35671 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
35672 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
35673 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
35674 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
35675 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
35676 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
35677 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
35678 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
35679 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
35680 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
35681 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
35682 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
35683 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
35684 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
35685 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
35686 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
35687 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
35688 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
35689 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
35690 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
35691 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
35692 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
35693 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
35694 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
35695 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
35696 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
35697 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
35698 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
35699 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
35700 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
35701 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
35702 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
35703 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
35704 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
35705 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
35706 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
35707 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
35708 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
35709 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
35710 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
35711 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
35712 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
35713 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
35714 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
35715 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
35716 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
35717 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
35718 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
35719 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
35720 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
35721 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
35722 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
35723 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
35724 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
35725 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
35726 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
35727 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
35728 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
35729 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
35730 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
35731 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
35732 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
35733 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
35734 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
35735 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
35736 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
35737 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
35738 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
35739 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
35740 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
35741 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
35742 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
35743 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
35744 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
35745 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
35746 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
35747 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
35748 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
35749 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
35750 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
35751 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
35752 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
35753 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
35754 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
35755 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
35756 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
35757 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
35758 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
35759 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
35760 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
35761 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
35762 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
35763 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
35764 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
35765 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
35766 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
35767 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
35768 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
35769 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
35770 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
35771 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
35772 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
35773 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
35774 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
35775 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
35776 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
35777 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
35778 snames.ads, sprint.adb, sprint.ads, stand.adb,
35779 stand.ads, stringt.adb, stringt.ads, style.adb,
35780 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
35781 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
35782 switch-m.ads, switch.adb, switch.ads, system.ads,
35783 table.adb, table.ads, targparm.adb, targparm.ads,
35784 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
35785 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
35786 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
35787 ttypef.ads, ttypes.ads, types.adb, types.ads,
35788 uintp.adb, uintp.ads, uname.adb, uname.ads,
35789 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
35790 usage.adb, usage.ads, validsw.adb, validsw.ads,
35791 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
35792 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
35793 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
35794 formatting and other trivial changes from ACT.
35796 2003-04-12 Zack Weinberg <zack@codesourcery.com>
35798 * gigi.h, utils2.c (build_constructor):
35799 Rename gnat_build_constructor. Use build_constructor.
35800 * decl.c (gnat_to_gnu_entity)
35801 * trans.c (tree_transform, pos_to_constructor, extract_values)
35802 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
35803 (unchecked_convert)
35804 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
35805 (fill_vms_descriptor):
35808 2003-04-06 Zack Weinberg <zack@codesourcery.com>
35810 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
35811 * misc.c (gnat_tree_size): New function.
35812 (LANG_HOOKS_TREE_SIZE): Override.
35814 2003-04-03 Jason Merrill <jason@redhat.com>
35816 * misc.c (gnat_adjust_rli): #if 0.
35818 2003-03-31 Geert Bosch <bosch@gnat.com>
35821 * link.c : Fix misspelled "const" keyword
35823 2003-03-23 Mark Mitchell <mark@codesourcery.com>
35826 * utils2.c: Adjust calls to put_var_into_stack.
35828 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
35830 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
35832 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
35834 * misc.c (gnat_init): Update for new prototype.
35836 2003-03-05 Olivier Hainque <hainque@gnat.com>
35839 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
35840 warning, and fix return type for the IN_RTS && !SJLJ case.
35842 2003-03-04 Tom Tromey <tromey@redhat.com>
35844 * Make-lang.in (ada.tags): New target.
35846 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
35849 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
35850 wrapper, which name remains constant whatever underlying GCC
35853 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
35854 the stable interface needed for a-except.
35856 2003-03-02 Andreas Jaeger <aj@suse.de>
35858 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35859 gnat_ug_wnt.texi: Regenerate.
35861 2003-03-02 Laurent Guerby <guerby@acm.org>
35863 * Makefile.in (install-gnatlib): Match previous change there
35866 2003-02-28 Andreas Schwab <schwab@suse.de>
35868 * Make-lang.in (install-gnatlib): Change to ada directory before
35869 running make instead of using ada/Makefile directly.
35871 2003-02-18 Ben Elliston <bje@redhat.com>
35873 Part of PR ada/9406
35874 * gnat_ug.texi (Binder output file): Grammar fix.
35876 2003-02-18 Ben Elliston <bje@redhat.com>
35879 * 5qtaprop.adb (Sleep): Fix typo in comment.
35881 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
35883 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
35884 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35885 gnat_ug_wnt.texi: Regenerate.
35887 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
35889 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
35890 be created if necessary.
35891 (ada.install-common): Let $(DESTDIR)$(bindir) be created
35892 if necessary. Remove erroneous and redundant gnatchop
35893 installation commands. Test for gnatdll before attempting
35895 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
35896 and gnatdll from all plausible locations.
35898 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
35900 * utils2.c (build_unary_op): Don't check flag_volatile.
35901 * gnat_ug.texi: Remove -fvolatile from example.
35902 * gnat_ug_vxw.texi: Likewise.
35904 2003-01-29 Laurent Guerby <guerby@acm.org>
35907 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
35908 * Makefile.in: match previous change.
35909 * Make-lang.in: match previous change.
35911 2003-01-29 Joel Sherrill <joel@OARcorp.com>
35913 * 5rosinte.ads: Add SIGXCPU.
35914 * 5rtpopsp.adb: New file.
35915 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
35916 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
35917 specific file 5rtpopsp.adb.
35918 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
35919 is likely needed for all newlib targets.
35920 * init.c: Add RTEMS specific version of __gnat_initialize().
35922 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35924 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
35926 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35928 * init.c (__gnat_error_handler): Make msg const.
35930 * gmem.c (convert_addresses): Move declaration ...
35931 * adaint.h: ... here.
35932 * adaint.c (convert_addresses): Adapt addrs type to match
35935 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
35937 2003-01-24 Andreas Schwab <schwab@suse.de>
35939 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
35940 size_t to avoid warning.
35942 2003-01-21 Zack Weinberg <zack@codesourcery.com>
35944 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
35946 2003-01-09 Geoffrey Keating <geoffk@apple.com>
35948 * gnat_rm.texi: Remove RCS version number.
35950 * ada-tree.h (union lang_tree_node): Add chain_next option.
35952 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
35954 * Make-lang.in (ada.install-info, ada.install-common,
35955 ada.uninstall): Prepend $(DESTDIR) to the destination
35956 directory in all (un)installation commands.
35957 * Makefile.in (install-gnatlib, install-rts): Ditto.
35959 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
35961 * gnat_rm.texi, gnat_ug.texi: Use @copying.
35962 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35963 gnat_ug_wnt.texi: Regenerate.
35965 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
35967 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
35969 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
35970 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
35971 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
35972 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
35973 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
35974 $(srcdir)/doc/include/gcc-common.texi.
35976 2002-12-15 Geert Bosch <bosch@gnat.com>
35978 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
35980 2002-12-14 Geert Bosch <bosch@gnat.com>
35983 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
35984 case of a body created for a Renaming_As_Body, on which
35985 conformance checks are not performed.
35987 2002-11-30 Zack Weinberg <zack@codesourcery.com>
35989 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
35990 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
35991 not already included.
35992 * Make-lang.in: Update dependencies.
35994 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
35995 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
35996 solution to buffer overflow bug on GNU/Linux.
35998 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
36002 * bindgen.adb: Remove all references to Public_Version.
36003 * comperr.adb: Remove all references to Public_Version and
36004 GNATPRO_Version; correct bug reporting instructions.
36005 * comperr.ads: Change to match bug box.
36006 * gnatvsn.ads: Remove all references to Public version and
36009 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
36012 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
36016 * config-lang.in: Remove diff_excludes.
36018 2002-11-05 Graham Stott <graham.stott@btinternet.com>
36021 * trans.c (gnu_pending_elaboration_lists): New GC root.
36022 (build_unit_elab): Use..
36024 2002-10-30 Geert Bosch <bosch@gnat.com>
36027 * misc.c : Include optabs.h
36029 * Make-lang.in (misc.o): Add dependency on optabs.h
36031 2002-10-29 Geert Bosch <bosch@gnat.com>
36034 * Make-lang.in (gnatbind): Depend on CONFIG_H
36036 2002-10-29 Geert bosch <bosch@gnat.com>
36039 * misc.c: Unrevert misc.c (1.13)
36041 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
36043 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
36044 maintainership comments.
36046 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
36049 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
36050 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
36051 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
36052 7staprop.adb: Correct statements in comments about
36053 maintainership of GNAT.
36056 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
36057 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
36058 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
36059 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
36060 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
36061 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
36062 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
36063 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
36064 comments about maintainership of GNAT.
36066 PR ada/6919 (forward port of patch for PR ada/5904)
36067 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
36068 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
36069 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
36070 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
36071 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
36072 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
36073 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
36074 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
36075 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
36076 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
36077 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
36078 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
36079 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
36080 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
36081 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
36082 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
36083 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
36084 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
36085 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
36086 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
36087 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
36088 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
36089 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
36090 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
36091 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
36092 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
36093 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
36094 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
36095 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
36096 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
36097 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
36098 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
36099 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
36100 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
36101 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
36102 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
36103 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
36104 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
36105 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
36106 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
36107 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
36108 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
36109 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
36110 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
36111 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
36112 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
36113 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
36114 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
36115 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
36116 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
36117 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
36118 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
36119 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
36120 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
36121 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
36122 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
36123 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
36124 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
36125 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
36126 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
36127 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
36128 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
36129 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
36130 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
36131 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
36132 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
36133 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
36134 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
36135 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
36136 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
36137 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
36138 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
36139 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
36140 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
36141 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
36142 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
36143 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
36144 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
36145 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
36146 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
36147 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
36148 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
36149 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
36150 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
36151 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
36152 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
36153 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
36154 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
36155 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
36156 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
36157 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
36158 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
36159 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
36160 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
36161 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
36162 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
36163 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
36164 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
36165 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
36166 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
36167 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
36168 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
36169 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
36170 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
36171 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
36172 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
36173 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
36174 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
36175 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
36176 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
36177 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
36178 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
36179 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
36180 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
36181 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
36182 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
36183 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
36184 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
36185 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
36186 par-endh.adb par-labl.adb par-load.adb par-prag.adb
36187 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
36188 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
36189 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
36190 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
36191 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
36192 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
36193 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
36194 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
36195 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
36196 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
36197 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
36198 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
36199 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
36200 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
36201 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
36202 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
36203 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
36204 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
36205 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
36206 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
36207 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
36208 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
36209 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
36210 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
36211 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
36212 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
36213 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
36214 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
36215 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
36216 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
36217 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
36218 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
36219 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
36220 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
36221 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
36222 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
36223 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
36224 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
36225 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
36226 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
36227 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
36228 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
36229 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
36230 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
36231 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
36232 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
36233 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
36234 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
36235 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
36236 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
36237 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
36238 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
36239 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
36240 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
36241 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
36242 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
36243 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
36244 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
36245 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
36246 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
36247 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
36248 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
36249 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
36250 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
36251 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
36252 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
36253 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
36254 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
36255 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
36256 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
36257 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
36258 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
36259 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
36260 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
36261 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
36262 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
36263 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
36264 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
36265 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
36266 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
36267 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
36268 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
36269 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
36270 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
36271 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
36272 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
36273 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
36274 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
36275 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
36276 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
36277 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
36278 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
36279 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
36280 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
36281 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
36282 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
36283 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
36284 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
36285 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
36286 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
36287 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
36288 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
36289 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
36290 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
36291 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
36292 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
36293 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
36294 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
36295 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
36296 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
36297 stringt.ads stringt.h style.adb style.ads stylesw.adb
36298 stylesw.ads switch.adb switch.ads sysdep.c system.ads
36299 table.adb table.ads targparm.adb targparm.ads targtyps.c
36300 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
36301 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
36302 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
36303 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
36304 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
36305 usage.ads utils.c utils2.c validsw.adb validsw.ads
36306 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
36307 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
36308 xtreeprs.adb: Correct statements in comments about maintainership
36311 2002-09-23 Zack Weinberg <zack@codesourcery.com>
36313 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
36314 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
36315 * gnatvsn.ads: Gnat_Version_String is now a function.
36316 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
36317 copy the C version_string into a String and return it.
36318 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
36319 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
36320 Remove pragma Ident (Gnat_Version_String). If this was the
36321 sole use of package Gnatvsn, remove the with statement too.
36322 * gnat1drv.adb: Tweak -gnatv output.
36324 2002-09-17 Richard Henderson <rth@redhat.com>
36326 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
36327 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
36328 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
36329 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
36330 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
36331 and real_2expN instead of a loop.
36332 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
36333 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
36335 2002-08-25 Andre Leis <a.leis@gmx.net>
36336 David Billinghurst <David.Billinghurst@riotinto.com>
36338 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
36340 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36342 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
36343 Remove $(CONFIG_H) dependency.
36345 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
36347 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
36349 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
36351 * adadecode.c (ada_demangle): Use xstrdup in lieu of
36353 * misc.c (gnat_decode_option): Likewise.
36355 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
36357 * make.adb (Add_Switch): Make Generic_Position a procedure. The
36358 function approach did not work well because of a side effect (the
36359 function call could reallocate the table which was being indexed
36360 using its result). Fixes ada/4851. [RESURRECTED]
36362 2002-07-01 Roger Sayle <roger@eyesopen.com>
36364 * ada/utils.c (builtin_function): Accept an additional parameter.
36366 2002-06-28 Andreas Jaeger <aj@suse.de>
36369 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
36372 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
36374 * Makefile.in (SHELL): Set to @SHELL@.
36376 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
36378 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
36379 array size calculation.
36381 2002-06-04 Andreas Jaeger <aj@suse.de>
36383 * Make-lang.in (gnatbind): Readd rule that has been lost in last
36386 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
36388 Merge from pch-branch:
36390 * config-lang.in (gtfiles): Add ada-tree.h.
36391 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
36392 (SET_TYPE_MODULUS): New.
36393 (SET_TYPE_INDEX): New.
36394 (SET_TYPE_DIGITS_VALUE): New.
36395 (SET_TYPE_RM_SIZE): New.
36396 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
36397 (SET_TYPE_ADA_SIZE): New.
36398 (SET_TYPE_ACTUAL_BOUNDS): New.
36399 (SET_DECL_CONST_CORRESPONDING_VAR): New.
36400 (SET_DECL_ORIGINAL_FIELD): New.
36401 (TREE_LOOP_ID): Correct typo.
36402 * decl.c: Use new macros.
36403 * utils.c: Include debug.h, use new macros.
36404 * utils2.c: Use new macros.
36406 * ada-tree.h: Update all macros for new tree description.
36407 (struct tree_loop_id): New.
36408 (union lang_tree_node): New.
36409 (struct lang_decl): New.
36410 (struct lang_type): New.
36411 * misc.c (gnat_mark_tree): Delete.
36412 (LANG_HOOKS_MARK_TREE): Delete.
36413 * trans.c (tree_transform): No longer any need to cast
36416 * utils.c (struct language_function): New dummy structure.
36418 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
36419 (misc.o): Likewise.
36420 (utils.o): Likewise; also gtype-ada.h.
36421 * Make-lang.in (gnat1): Add dependency on s-gtype.
36422 (gnatbind): Add dependency on $(CONFIG_H).
36423 * utils.c: Correct last #include.
36424 (stuct e_stack): Remove unnecessary 'static'.
36425 (mark_e_stack): Remove unused prototype.
36427 * scn-nlit.adb: Remove whitespace after version number to
36428 keep lines under 80 chars.
36429 * snames.adb: Likewise.
36430 * treepr.ads: Likewise.
36432 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
36433 (misc.o): Likewise.
36434 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
36435 * config-lang.in (gtfiles): New.
36436 * decl.c: Use gengtype for roots.
36437 * gigi.h: Use gengtype for roots.
36438 * trans.c: Use gengtype for roots.
36439 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
36441 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
36443 * misc.c (gnat_init): Adjust setting of internal_error_function.
36445 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
36447 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
36448 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
36449 gnat_ug_wnt.texi: Regenerate.
36451 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
36453 * 5ntaprop.adb (with System.OS_Primitives): Remove.
36455 * cstreams.c (max_path_len): Move from here ...
36456 * adaint.c (__gnat_max_path_len): ... to here.
36457 * adaint.c (__gnat_max_path_len): Declare.
36458 * g-dirope.adb (Max_Path): Adjust.
36459 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
36460 * i-cstrea.ads (max_path_len): Adjust.
36461 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
36462 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
36464 * Makefile.in, Make-lang.in: Documentation is now built in
36465 Make-lang.in. Store Info and generated Texinfo files in the
36467 * gnat_ug.texi: Remove CVS keywords, correct version number.
36468 Set file name correctly.
36470 * gnat_ug_*.texi: Add.
36471 * .cvsignore: Ignore generated Texinfo files.
36473 2002-05-30 Zack Weinberg <zack@codesourcery.com>
36475 * ada.h: Add MI guard macro.
36476 (SUBTYPE): Define constants with an anonymous enum, not static
36478 (IN): Cast constants to appropriate type before use.
36480 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
36482 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
36485 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36487 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
36488 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
36489 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
36490 (ALL_ADA_CFLAGS): Likewise.
36491 (ADA_INCLUDES): Likewise.
36492 Adapt for new working dir.
36493 (GNATBIND): Use Makefile.in version.
36494 (.SUFFIXES): Copy from Makefile.in.
36495 (ada-warn): Define.
36496 (.adb.o, .ads.o): Copy from Makefile.in.
36497 Added $(OUTPUT_OPTION).
36498 (GNAT1_C_OBJS): Moved from Makefile.in.
36499 Prefix with ada subdir.
36500 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
36501 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
36502 Adapt for new working dir.
36503 (EXTRA_GNATBIND_OBJS): Likewise.
36504 (ADA_BACKEND): Moved from Makefile.in.
36505 Renamed to avoid conflict with global BACKEND.
36507 (TARGET_ADA_SRCS): Moved from Makefile.in.
36508 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
36510 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
36511 (ada_extra_files): Moved from Makefile.in.
36512 Prefix with ada subdir.
36513 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
36514 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
36515 (ada/nmake.ads): Likewise.
36516 (update-sources): Moved from Makefile.in.
36517 Prefix with ada subdir.
36518 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
36519 (ADA_TREE_H): Likewise.
36520 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
36521 (ada/memtrack.o): Likewise.
36522 (ada/adadecode.o): Likewise.
36523 Update dependencies.
36524 (ada/adaint.o): New.
36525 (ada/argv.o): Moved from Makefile.in.
36526 Prefix with ada subdir.
36527 Update dependencies.
36528 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
36529 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
36530 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
36531 Prefix with ada subdir.
36532 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
36533 (GNAT DEPENDENCIES): Regenerate.
36534 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
36535 toplevel Makefile.in.
36536 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
36537 (TARGET_ADA_SRCS): Removed.
36538 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
36539 (GNATBIND_OBJS): Likewise.
36540 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
36541 (BACKEND): Removed.
36542 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
36543 (TREE_H): Likewise.
36544 (ada_extra_files): Likewise.
36545 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
36546 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
36547 (update-sources): Likewise.
36548 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
36549 (ADA_TREE_H): Likewise.
36550 (adadecoce.o): Likewise.
36551 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
36552 (GNAT DEPENDENCIES): Likewise.
36554 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36556 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
36557 * Makefile.in: Likewise.
36559 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36561 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
36562 Restore $(CONFIG_H) and prefix.o dependencies.
36563 (ada.stage[1-4]): Depend on stage?-start.
36565 * Makefile.in (b_gnatb.c): Depend on interfac.o.
36567 2002-05-02 Jim Wilson <wilson@redhat.com>
36569 * utils.c (finish_record_type): Change record_size to record_type.
36571 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
36573 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
36574 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
36575 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
36577 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
36579 * misc.c (gnat_parse_file): Update.
36581 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
36583 * misc.c (gnat_init): Don't set lang_attribute_common.
36585 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
36587 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
36589 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
36591 * gnat_ug.texi: New file.
36593 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
36594 instead of gfdl.texi
36596 * xgnatug.adb, ug_words: New files.
36598 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
36599 gnat_rm and gnat-style manuals.
36601 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
36603 * gigi.h (incomplete_type_error): Remove.
36604 * utils.c (incomplete_type_error): Remove.
36606 2002-04-16 Mark Mitchell <mark@codesourcery.com>
36608 * trans.c (tree_transform): Add has_scope argument to
36609 expand_start_stmt_expr.
36611 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
36613 * gigi.h (truthvalue_conversion): Rename.
36614 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
36615 * trans.c (tree_transform): Update.
36616 * utils2.c (truthvalue_conversion): Rename, update.
36617 (build_binary_op, build_unary_op): Update.
36619 2002-04-04 Laurent Guerby <guerby@acm.org>
36621 * make.adb: Implement -margs, remove restriction about file name placement.
36622 * makeusg.adb: Documentation update.
36623 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
36624 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
36626 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
36628 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
36629 (builtin_function): Similarly.
36631 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
36633 * decl.c (gnat_to_gnu_entity): Update.
36634 * gigi.h (mark_addressable): Rename.
36635 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
36636 * trans.c (tree_transform): Update.
36637 * utils.c (create_var_decl): Update.
36638 * util2.c (build_binary_op, build_unary_op,
36639 fill_vms_descriptor): Update.
36640 (mark_addressable): Rename, update.
36642 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
36644 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
36646 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
36647 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
36648 * trans.c (tree_transform, convert_with_check): Update.
36649 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
36652 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
36654 * gigi.h (finish_incomplete_decl): Rename.
36655 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
36656 * utils.c (gnat_init_decl_processing): Don't set hook.
36657 (finish_incomplete_decl): Rename.
36659 2002-03-29 Andreas Schwab <schwab@suse.de>
36661 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
36664 2001-03-28 Robert Dewar <dewar@gnat.com>
36667 (Remove_Checks): New procedure
36670 (Remove_Checks): New procedure
36673 Use new Duplicate_Subexpr functions
36674 (Duplicate_Subexpr_No_Checks): New procedure
36675 (Duplicate_Subexpr_No_Checks_Orig): New procedure
36676 (Duplicate_Subexpr): Restore original form (checks duplicated)
36677 (Duplicate_Subexpr): Call Remove_Checks
36680 (Duplicate_Subexpr_No_Checks): New procedure
36681 (Duplicate_Subexpr_No_Checks_Orig): New procedure
36682 Add 2002 to copyright notice
36684 * sem_util.adb: Use new Duplicate_Subexpr functions
36687 (Eval_Indexed_Component): This is the place to call
36688 Constant_Array_Ref and to replace the value. We simply merge
36689 the code of this function in here, since it is now no longer
36690 used elsewhere. This fixes the problem of the back end not
36691 realizing we were clever enough to see that this was
36693 (Expr_Val): Remove call to Constant_Array_Ref
36694 (Expr_Rep_Val): Remove call to Constant_Array_Ref
36696 (Constant_Array_Ref): Deal with string literals (patch
36697 suggested by Zack Weinberg on the gcc list)
36699 2001-03-28 Ed Schonberg <schonber@gnat.com>
36701 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
36702 Duplicate_Subexpr_Move_Checks.
36704 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
36705 Duplicate_Subexpr_Move_Checks.
36707 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
36708 value of array exists before retrieving it (it may a private
36709 protected component in a function).
36711 2002-03-28 Geert Bosch <bosch@gnat.com>
36713 * prj-pp.adb : New file.
36715 * prj-pp.ads : New file.
36717 2002-03-28 Andreas Jaeger <aj@suse.de>
36719 * Makefile.in (stamp-sdefault): Fix path for Makefile.
36721 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
36723 * misc.c (gnat_expand_expr): Move prototype.
36725 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
36727 * misc.c (insert_default_attributes): Remove.
36729 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
36731 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
36732 (gnat_init): Don't set hook.
36733 (gnat_expand_expr): Fix prototype.
36735 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
36737 * misc.c (ggc_p): Remove.
36739 2002-03-27 Geert Bosch <bosch@gnat.com>
36741 * prj-makr.ads, prj-makr.adb : New files.
36743 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
36745 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
36746 (lang_mark_tree): Make static, rename.
36748 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
36750 * misc.c (maybe_build_cleanup): Remove.
36752 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
36754 * gigi.h (yyparse): Remove.
36756 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
36758 From Ben Brosgol <brosgol@gnat.com>
36759 * gnat_rm.texi: Sync with ACT version.
36761 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
36763 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
36764 (gnat_init): Remove old hook.
36766 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
36768 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
36769 (yyparse): Rename gnat_parse_file.
36771 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
36773 Delete all lines containing "$Revision:".
36774 * xeinfo.adb: Don't look for revision numbers.
36775 * xnmake.adb: Likewise.
36776 * xsinfo.adb: Likewise.
36777 * xsnames.adb: Likewise.
36778 * xtreeprs.adb: Likewise.
36780 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
36782 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
36783 gnat_tree_code_name): Delete.
36784 (tree_code_type, tree_code_length, tree_code_name): Define.
36785 (gnat_init): Don't try to copy into the various tree_code
36788 2002-03-11 Richard Henderson <rth@redhat.com>
36790 * Makefile.in (.NOTPARALLEL): Add fake tag.
36792 2002-03-07 Geert Bosch <bosch@gnat.com>
36794 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
36795 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
36796 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
36797 switch-m.adb, switch-m.ads : New files.
36799 2002-03-07 Geert Bosch <bosch@gnat.com>
36801 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
36802 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
36803 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
36804 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
36805 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
36806 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
36807 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
36808 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
36809 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
36810 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
36811 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
36812 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
36813 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
36814 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
36815 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
36816 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
36817 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
36818 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
36819 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
36820 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
36821 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
36822 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
36823 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
36824 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
36825 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
36826 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
36827 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
36828 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
36829 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
36830 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
36831 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
36832 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
36833 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
36834 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
36835 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36836 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
36837 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
36838 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
36839 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
36840 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
36841 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
36842 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
36843 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
36844 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
36845 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
36846 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
36847 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
36848 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
36849 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
36850 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
36851 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
36852 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
36853 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
36854 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
36855 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
36856 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
36857 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
36858 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
36859 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
36860 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
36861 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
36862 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
36863 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
36864 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
36865 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
36866 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
36867 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
36868 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
36869 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
36870 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
36871 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
36872 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
36873 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
36874 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
36875 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
36876 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
36877 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
36878 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
36879 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
36880 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
36881 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
36882 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
36883 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
36884 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
36885 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
36886 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
36887 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
36888 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
36889 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
36890 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
36891 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
36892 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
36893 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
36894 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
36895 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
36896 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
36897 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
36899 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
36900 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
36901 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
36902 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
36904 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
36905 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
36907 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
36908 to mdll-fil.ad[bs] and mdll-util.ad[bs]
36910 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
36911 from mdllfile.ad[bs] and mdlltool.ad[bs]
36913 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
36915 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
36916 lieu of explicit sizeof/sizeof.
36918 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
36920 * misc.c (copy_lang_decl): Remove.
36922 2002-02-27 Zack Weinberg <zack@codesourcery.com>
36924 * misc.c: Delete traditional-mode-related code copied from the
36925 C front end but not used, or used only to permit the compiler
36928 2002-02-07 Richard Henderson <rth@redhat.com>
36930 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
36931 * adaint.h (__gnat_to_gm_time): Update prototype.
36933 2002-01-30 Richard Henderson <rth@redhat.com>
36935 * trans.c (tree_transform) [N_Loop_Statement]: Use
36936 expand_exit_loop_top_cond.
36938 2001-12-23 Richard Henderson <rth@redhat.com>
36940 * utils.c (end_subprog_body): Push GC context around
36941 rest_of_compilation for nested functions.
36943 2001-12-23 Richard Henderson <rth@redhat.com>
36945 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
36947 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
36949 * gnat-style.texi (Declarations and Types): Remove ancient style
36950 rule which was mandated by code generation issues.
36952 * gnat-style.texi (header): Add @dircategory, @direntry.
36953 (title page): Remove date.
36954 (general) Add @./@: where approriate, and two spaces after the
36955 full stop at the end of a sentence. Use @samp markup when
36956 referring concrete lexical entities (keywords, attribute names
36957 etc.), and @syntax for ARM grammar elements. Use @r for English
36958 text in comments. Use @emph for emphasis. Change "if-statements"
36959 etc. to "if statements" (without @samp). Break long lines. Make
36960 casing of section names consistent.
36961 (Identifiers): Use @samp markup for variable names.
36962 (Comments): Use @samp markup for comment characters. Line-end
36963 comments may follow any Ada code, not just statements. Fix
36964 misspelling of "Integer" as "integer".
36965 (Loop statements): Do not use variable name "I", use "J".
36966 (Subprogram Declarations): Document alignment.
36967 (Subprogram Bodies, Block statements): Document empty line before
36970 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
36972 * make.adb (Add_Switch): Make Generic_Position a procedure. The
36973 function approach did not work well because of a side effect (the
36974 function call could reallocate the table which was being indexed
36975 using its result). Fixes ada/4851.
36977 2001-12-19 Robert Dewar <dewar@gnat.com>
36979 * bindgen.adb: Minor reformatting
36981 * cstand.adb: Minor reformatting
36983 * fmap.adb: Minor reformatting
36984 Change name from Add for Add_To_File_Map (Add is much too generic)
36985 Change Path_Name_Of to Mapped_Path_Name
36986 Change File_Name_Of to Mapped_File_Name
36987 Fix copyright dates in header
36990 Change name from Add for Add_To_File_Map (Add is much too generic)
36991 Change Path_Name_Of to Mapped_Path_Name
36992 Change File_Name_Of to Mapped_File_Name
36993 Fix copyright dates in header
36995 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
36996 Add use clause for Fmap.
36998 * make.adb: Minor reformatting
37000 * osint.adb: Minor reformatting. Change of names in Fmap.
37001 Add use clause for Fmap.
37003 * prj-env.adb: Minor reformatting
37005 * prj-env.ads: Minor reformatting
37007 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
37008 error found (there were odd exceptions to this general rule in
37009 -gnatec/-gnatem processing)
37011 2001-12-19 Olivier Hainque <hainque@gnat.com>
37013 * raise.c (__gnat_eh_personality): Exception handling personality
37014 routine for Ada. Still in rough state, inspired from the C++ version
37015 and still containing a bunch of debugging artifacts.
37016 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
37017 inspired from the C++ library.
37019 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
37020 exception handling integration.
37022 2001-12-19 Arnaud Charlet <charlet@gnat.com>
37024 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
37025 (HIE_SOURCES): Add s-secsta.ad{s,b}.
37026 (HIE_OBJS): Add s-fat*.o
37027 (RAVEN_SOURCES): Remove files that are no longer required. Add
37028 interrupt handling files.
37029 (RAVEN_MOD): Removed, no longer needed.
37031 2001-12-19 Robert Dewar <dewar@gnat.com>
37033 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
37034 Add 2001 to copyright date
37036 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
37037 need to force universal inlining for these cases.
37039 2001-12-19 Arnaud Charlet <charlet@gnat.com>
37041 * s-taprob.adb: Minor clean ups so that this unit can be used in
37044 * exp_ch7.adb: Allow use of secondary stack in HI mode.
37045 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
37047 2001-12-19 Vincent Celier <celier@gnat.com>
37049 * prj-tree.ads (Project_Node_Record): Add comments for components
37050 Pkg_Id and Case_Insensitive.
37052 2001-12-19 Pascal Obry <obry@gnat.com>
37054 * g-socket.adb: Minor reformatting. Found while reading code.
37056 2001-12-19 Robert Dewar <dewar@gnat.com>
37058 * prj-tree.ads: Minor reformatting
37060 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
37062 * config-lang.in (diff_excludes): Remove.
37064 2001-12-17 Ed Schonberg <schonber@gnat.com>
37066 * sem_res.adb (Resolve_Selected_Component): do not generate a
37067 discriminant check if the selected component is a component of
37068 the argument of an initialization procedure.
37070 * trans.c (tree_transform, case of arithmetic operators): If result
37071 type is private, the gnu_type is the base type of the full view,
37072 given that the full view itself may be a subtype.
37074 2001-12-17 Robert Dewar <dewar@gnat.com>
37076 * sem_res.adb: Minor reformatting
37078 * trans.c (tree_transform, case N_Real_Literal): Add missing third
37079 parameter in call to Machine (unknown horrible effects from this
37082 * urealp.h: Add definition of Round_Even for call to Machine
37083 Add third parameter for Machine
37085 2001-12-17 Ed Schonberg <schonber@gnat.com>
37087 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
37088 predefined units in No_Run_Time mode.
37090 2001-12-17 Richard Kenner <kenner@gnat.com>
37092 * misc.c (insn-codes.h): Now include.
37094 2001-12-17 Olivier Hainque <hainque@gnat.com>
37096 * a-except.adb: Preparation work for future integration of the GCC 3
37097 exception handling mechanism
37098 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
37099 to factorize previous code sequences and make them externally callable,
37100 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
37101 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
37102 Use the new notification routines.
37104 2001-12-17 Emmanuel Briot <briot@gnat.com>
37106 * prj-tree.ads (First_Choice_Of): Document the when others case
37108 2001-12-17 Arnaud Charlet <charlet@gnat.com>
37110 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
37111 HI-E mode, in order to support Ravenscar profile properly.
37113 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
37114 mode on 32 bits targets.
37116 2001-12-17 Vincent Celier <celier@gnat.com>
37118 * fmap.adb: Initial version.
37120 * fmap.ads: Initial version.
37122 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
37123 If search is successfully done, add to mapping.
37125 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
37128 (Gnatmake): Add new local variable Mapping_File_Name.
37129 Create mapping file when using project file(s).
37130 Delete mapping file before exiting.
37132 * opt.ads (Mapping_File_Name): New variable
37134 * osint.adb (Find_File): Use path name found in mapping, if any.
37136 * prj-env.adb (Create_Mapping_File): New procedure
37138 * prj-env.ads (Create_Mapping_File): New procedure.
37140 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
37143 * usage.adb: Add entry for new switch -gnatem.
37145 * Makefile.in: Add dependencies for fmap.o.
37147 2001-12-17 Ed Schonberg <schonber@gnat.com>
37149 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
37150 is a package instantiation rewritten as a package body.
37151 (Install_Withed_Unit): Undo previous change, now redundant.
37153 2001-12-17 Gary Dismuke <dismukes@gnat.com>
37156 (Compute_Length): Move conversion to Unsigned to callers.
37157 (Get_Max_Size): Convert Len expression to Unsigned after calls to
37158 Compute_Length and Determine_Range.
37159 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
37160 Compute_Length and Determine_Range.
37161 Above changes fix problem with length computation for supernull arrays
37162 where Max (Len, 0) wasn't getting applied due to the Unsigned
37163 conversion used by Compute_Length.
37165 2001-12-17 Arnaud Charlet <charlet@gnat.com>
37168 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
37169 System.Secondary_Stack.
37170 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
37172 Remove unused entity RE_Exception_Data.
37174 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
37176 * rident.ads (No_Secondary_Stack): New restriction.
37178 2001-12-17 Joel Brobecker <brobecke@gnat.com>
37180 * gnat_rm.texi: Fix minor typos. Found while reading the section
37181 regarding "Bit_Order Clauses" that was sent to a customer.
37182 Very interesting documentation!
37184 2001-12-17 Robert Dewar <dewar@gnat.com>
37186 * sem_case.adb (Choice_Image): Avoid creating improper character
37187 literal names by using the routine Set_Character_Literal_Name. This
37188 fixes bombs in certain error message cases.
37190 2001-12-17 Arnaud Charlet <charlet@gnat.com>
37192 * a-reatim.adb: Minor reformatting.
37194 2001-12-17 Ed Schonberg <schonber@gnat.com>
37196 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
37197 case where the formal is an extension of another formal in the current
37198 unit or in a parent generic unit.
37200 2001-12-17 Arnaud Charlet <charlet@gnat.com>
37202 * s-tposen.adb: Update comments. Minor reformatting.
37203 Minor code clean up.
37205 * s-tarest.adb: Update comments. Minor code reorganization.
37207 2001-12-17 Gary Dismukes <dismukes@gnat.com>
37209 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
37212 2001-12-17 Robert Dewa <dewar@gnat.com>
37214 * exp_attr.adb: Minor reformatting
37216 2001-12-17 Ed Schonberg <schonber@gnat.com>
37218 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
37219 derivations nested within a child unit: verify that the parent
37220 type is declared in an outer scope.
37222 2001-12-17 Robert Dewar <dewar@gnat.com>
37224 * sem_ch12.adb: Minor reformatting
37226 2001-12-17 Ed Schonberg <schonber@gnat.com>
37228 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
37229 warning if current unit is a predefined one, from which bodies may
37232 2001-12-17 Robert Dewar <dewar@gnat.com>
37234 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
37235 Fix header format. Add 2001 to copyright date.
37237 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
37238 which caused CE during compilation if checks were enabled.
37240 2001-12-17 Vincent Celier <celier@gnat.com>
37243 (Switches_Of): New function
37244 (Test_If_Relative_Path): New procedure
37245 (Add_Switches): Use new function Switches_Of
37246 (Collect_Arguments_And_Compile): Use new function Switches_Of.
37247 When using a project file, test if there are any relative
37248 search path. Fail if there are any.
37249 (Gnatmake): Only add switches for the primary directory when not using
37250 a project file. When using a project file, change directory to the
37251 object directory of the main project file. When using a project file,
37252 test if there are any relative search path. Fail if there are any.
37253 When using a project file, fail if specified executable is relative
37254 path with directory information, and prepend executable, if not
37255 specified as an absolute path, with the exec directory. Make sure
37256 that only one -o switch is transmitted to the linker.
37258 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
37261 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
37262 when using a non standard naming scheme.
37263 (Check_Ada_Naming_Scheme): Make sure that error messages
37264 do not raise exceptions.
37265 (Is_Illegal_Append): Return True if there is no dot in the suffix.
37266 (Language_Independent_Check): Check the exec directory.
37268 * prj.adb (Project_Empty): Add new component Exec_Directory
37271 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
37272 (Project_Data): Add component Exec_Directory
37274 * snames.adb: Updated to match snames.ads revision 1.215
37276 * snames.ads: Added Exec_Dir
37278 2001-12-17 Robert Dewar <dewar@gnat.com>
37280 * make.adb: Minor reformatting
37282 * prj-nmsc.adb: Minor reformatting
37284 * snames.adb: Updated to match snames.ads
37286 * snames.ads: Alphebetize entries for project file
37288 2001-12-17 Ed Schonberg <schonber@gnat.com>
37290 * trans.c (process_freeze_entity): Do nothing if the entity is a
37291 subprogram that was already elaborated.
37293 2001-12-17 Richard Kenner <kenner@gnat.com>
37295 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
37296 and Esize if object is referenced via pointer.
37298 2001-12-17 Ed Schonberg <schonber@gnat.com>
37300 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
37301 is discrete before analyzing choices.
37303 2001-12-17 Joel Brobecker <brobecke@gnat.com>
37305 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
37306 containing the name of the Ada Main Program. This string is mainly
37307 intended for the debugger.
37308 (Gen_Output_File_C): Do the equivalent change when generating a C file.
37310 2001-12-17 Robert Dewar <dewar@gnat.com>
37312 * ali.adb: Set new Dummy_Entry field in dependency entry
37314 * ali.ads: Add Dummy_Entry field to source dependency table
37316 * bcheck.adb (Check_Consistency): Ignore dummy D lines
37318 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
37320 * lib-writ.ads: Document dummy D lines for missing files.
37322 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
37324 2001-12-17 Robert Dewar <dewar@gnat.com>
37326 * ali.adb: Type reference does not reset current file.
37328 * ali.adb: Recognize and scan renaming reference
37330 * ali.ads: Add spec for storing renaming references.
37332 * lib-xref.ads: Add documentation for handling of renaming references
37334 * lib-xref.adb: Implement output of renaming reference.
37337 (Determine_Range): Document local variables
37338 (Determine_Range): Make sure Hbound is initialized. It looks as though
37339 there could be a real problem here with an uninitialized reference
37340 to Hbound, but no actual example of failure has been found.
37342 2001-12-17 Laurent Pautet <pautet@gnat.com>
37345 Fix comment of Shutdown_Socket and Close_Socket. These functions
37346 should not fail silently because if they are called twice, this
37347 probably means that there is a race condition in the user program.
37348 Anyway, this behaviour is consistent with the rest of this unit.
37349 When an error occurs, an exception is raised with the error message
37350 as exception message.
37352 2001-12-17 Robert Dewar <dewar@gnat.com>
37354 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
37355 that it happens before modification of Sloc values for -gnatD.
37357 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
37358 so that it happens before modification of Sloc values for -gnatD.
37360 * switch.adb: Minor reformatting
37362 2001-12-15 Richard Henderson <rth@redhat.com>
37364 * sem_ch7.adb: Wrap comment.
37366 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
37368 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
37369 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
37370 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
37371 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
37372 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
37373 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
37374 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
37375 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
37376 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
37377 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
37378 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
37379 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
37380 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
37381 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
37382 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
37383 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
37384 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
37385 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
37386 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
37387 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
37388 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
37389 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
37390 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
37391 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
37394 2001-12-14 Vincent Celier <celier@gnat.com>
37396 * osint.adb(Create_Debug_File): When an object file is specified,
37397 put the .dg file in the same directory as the object file.
37399 2001-12-14 Robert Dewar <dewar@gnat.com>
37401 * osint.adb: Minor reformatting
37403 * lib-xref.adb (Output_Instantiation): New procedure to generate
37404 instantiation references.
37406 * lib-xref.ads: Add documentation of handling of generic references.
37408 * ali.adb (Read_Instantiation_Ref): New procedure to read
37409 instantiation references
37411 * ali.ads: Add spec for storing instantiation references
37413 * bindusg.adb: Minor reformatting
37415 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37417 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37419 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37421 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37425 Add 2001 to copyright date
37426 Add entry for Latin-5 (Cyrillic ISO-8859-5)
37428 2001-12-14 Matt Gingell <gingell@gnat.com>
37430 * adaint.c: mktemp is a macro on Lynx and can not be used as an
37433 2001-12-14 Richard Kenner <kenner@gnat.com>
37435 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
37436 if operand is CONSTRUCTOR.
37438 2001-12-14 Ed Schonberg <schonber@gnat.com>
37440 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
37441 before emiting check on right-hand side, so that exception information
37444 2001-12-14 Richard Kenner <kenner@gnat.com>
37446 * utils.c (create_var_decl): Throw away initializing expression
37447 if just annotating types and non-constant.
37449 2001-12-14 Vincent Celier <celier@gnat.com>
37451 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
37454 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
37456 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
37458 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
37460 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
37462 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
37464 * ChangeLog: Remove piece of diff output.
37466 2001-12-14 Geert Bosch <bosch@gnat.com>
37468 * config-lang.in: Update copyright notice
37470 * layout.adb: Remove commented out code.
37472 * mdllfile.ads: Update copyright notice. Fix header format.
37474 * sem_case.ads: Likewise.
37476 * sem_ch3.adb: Minor reformatting.
37478 2001-12-12 Geert Bosch <bosch@gnat.com>
37480 * freeze.ads: Update copyright date.
37482 * g-comlin.ads: Minor reformatting.
37484 * gnat-style.texi: Fix typo.
37486 2001-12-12 Geert Bosch <bosch@gnat.com>
37488 * einfo.h: Regenerate.
37490 2001-12-12 Ed Schonberg <schonber@gnat.com>
37492 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
37493 on known node types, rather than untyped fields. Further cleanups.
37495 2001-12-12 Robert Dewar <dewar@gnat.com>
37498 (Save_Entity_Descendant): Minor comment update.
37499 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
37500 of an N_Attribute_Reference node. As per note below, this does not
37501 eliminate need for Associated_Node in attribute ref nodes.
37502 (Associated_Node): Documentation explicitly mentions attribute
37503 reference nodes, since this field is used in such nodes.
37505 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
37507 2001-12-12 Robert Dewar <dewar@gnat.com>
37509 * s-stalib.adb: Add more comments on with statements being needed
37511 * par-ch12.adb: Minor reformatting
37513 * prj-dect.ads: Fix copyright header
37515 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
37516 inputs fit in 32 bits, but the result still overflows.
37518 * s-fatgen.ads: Minor comment improvement
37520 2001-12-12 Ed Schonberg <schonber@gnat.com>
37522 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
37523 formal derived type, look for an inherited component from the full
37524 view of the parent, if any.
37526 2001-12-12 Robert Dewar <dewar@gnat.com>
37528 * checks.ads (Apply_Alignment_Check): New procedure.
37530 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
37531 ensure that the alignment of objects with address clauses is
37532 appropriate, and raise PE if not.
37534 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
37535 Exp_Pakd.Known_Aligned_Enough
37537 * mdllfile.ads: Minor reformatting
37539 * mlib-fil.ads: Minor reformatting
37541 2001-12-12 Ed Schonberg <schonber@gnat.com>
37543 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
37544 fix to any component reference if enclosing record has non-standard
37547 2001-12-12 Vincent Celier <celier@gnat.com>
37549 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
37552 2001-12-12 Ed Schonberg <schonber@gnat.com>
37554 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
37557 2001-12-12 Robert Dewar <dewar@gnat.com>
37559 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
37561 2001-12-12 Emmanuel Briot <briot@gnat.com>
37563 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
37564 and it adds dependencies to system.io.
37566 2001-12-12 Pascal Obry <obry@gnat.com>
37568 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
37571 2001-12-11 Ed Schonberg <schonber@gnat.com>
37573 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
37574 that is the parent of other generics, the instance body replaces the
37575 instance node. Retrieve the instance of the spec, which is the one
37576 that is visible in clients and within the body.
37578 2001-12-11 Vincent Celier <celier@gnat.com>
37580 * gnatmain.adb: Initial version.
37582 * gnatmain.ads: Initial version.
37584 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
37586 * snames.adb: Updated to match snames.ads.
37588 * snames.ads: Added Gnatstub.
37590 2001-12-11 Vincent Celier <celier@gnat.com>
37592 * prj-attr.adb (Initialization_Data): Change name from
37593 Initialisation_Data.
37595 2001-12-11 Emmanuel Briot <briot@gnat.com>
37597 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
37598 + and * applied to backslashed expressions like \r.
37600 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
37602 * g-os_lib.ads: String_List type added, Argument_List type is now
37603 subtype of String_List.
37605 2001-12-11 Robert Dewar <dewar@gnat.com>
37607 * g-os_lib.ads: Change copyright to FSF
37608 Add comments for String_List type
37610 2001-12-11 Vincent Celier <celier@gnat.com>
37612 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
37613 string to the buffer).
37615 2001-12-11 Ed Schonberg <schonber@gnat.com>
37617 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
37620 * sem_attr.adb: Simplify previous fix for Address.
37621 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
37622 to avoid anomalies where the bound of the type appears to raise
37625 2001-12-11 Robert Dewar <dewar@gnat.com>
37627 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
37630 2001-12-11 Ed Schonber <schonber@gnat.com>
37632 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
37633 renamed unit before checking for recursive instantiations.
37635 2001-12-11 Emmanuel Briot <briot@gnat.com>
37637 * prj.ads: Add comments for some of the fields.
37639 2001-12-11 Robert Dewar <dewar@gnat.com>
37641 * lib-xref.adb (Output_Refs): Don't output type references outside
37642 the main unit if they are not otherwise referenced.
37644 2001-12-11 Ed Schonberg <schonber@gnat.com>
37646 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
37647 code and diagnose additional illegal uses
37649 * sem_util.adb (Is_Object_Reference): An indexed component is an
37650 object only if the prefix is.
37652 2001-12-11 Vincent Celier <celier@gnat.com>
37654 * g-diopit.adb: Initial version.
37656 * g-diopit.ads: Initial version.
37659 (Expand_Path): Avoid use of Unbounded_String
37660 (Find, Wildcard_Iterator): Moved to child package Iteration
37662 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
37664 2001-12-11 Robert Dewar <dewar@gnat.com>
37666 * sem_attr.adb: Minor reformatting
37668 2001-12-11 Ed Schonberg <schonber@gnat.com>
37670 * sem_ch3.adb: Clarify some ???.
37672 2001-12-11 Robert Dewar <dewar@gnat.com>
37674 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
37675 Exp_Pakd.Known_Aligned_Enough
37677 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
37678 version is moved to Exp_Ch13.
37680 2001-12-11 Robert Dewar <dewar@gnat.com>
37682 * einfo.ads: Minor reformatting
37684 * exp_ch5.adb: Add comment for previous.change
37686 * ali.adb: New interface for extended typeref stuff.
37688 * ali.ads: New interface for typeref stuff.
37690 * checks.adb (Apply_Alignment_Check): New procedure.
37692 * debug.adb: Add -gnatdM for modified ALI output
37694 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
37696 * lib-xref.adb: Extend generation of <..> notation to cover
37697 subtype/object types. Note that this is a complete rewrite,
37698 getting rid of the very nasty quadratic algorithm previously
37699 used for derived type output.
37701 * lib-xref.ads: Extend description of <..> notation to cover
37702 subtype/object types. Uses {..} for these other cases.
37703 Also use (..) for pointer types.
37705 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
37707 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
37708 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
37710 2001-12-11 Vincent Celier <celier@gnat.com>
37713 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
37714 Changed /BIND_ONLY to /ACTIONS=BIND
37715 Changed /LINK_ONLY to /ACTIONS=LINK
37717 2001-12-11 Ed Schonberg <schonber@gnat.com>
37719 * sem_ch8.adb (Find_Selected_Component): improved search for a
37720 candidate package in case of error.
37722 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
37723 chain back on scope stack before reinstalling use clauses.
37725 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
37726 is enabled, do not kill the code for the condition, to preserve
37729 2001-12-11 Robert Dewar <dewar@gnat.com>
37731 * checks.adb (Insert_Valid_Check): Apply validity check to expression
37732 of conversion, not to result of conversion.
37734 2001-12-11 Ed Schonberg <schonber@gnat.com>
37736 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
37737 before freezing parent. If the declarations are mutually recursive,
37738 an access to the current record type may be frozen before the
37739 derivation is complete.
37741 2001-12-05 Vincent Celier <celier@gnat.com>
37743 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
37744 -c /COMPILE_ONLY, -l /LINK_ONLY
37747 (Bind_Only): New Flag
37748 (Link_Only): New flag
37750 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
37753 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
37756 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
37757 (Gnatmake): Set the step flags. Only perform a step if the
37758 corresponding step flag is True.
37759 (Scan_Make_Arg): Reset the bind and link step flags when -u
37760 or -gnatc has been specified.
37762 2001-12-05 Ed Schonberg <schonber@gnat.com>
37764 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
37765 get bounds from right operand.
37767 * sem_eval.adb: Minor reformatting
37769 * exp_util.adb (Make_Literal_Range): use bound of literal rather
37770 than Index'First, its lower bound may be different from 1.
37772 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
37775 2001-12-05 Vincent Celier <celier@gnat.com>
37777 * prj-nmsc.adb Minor reformatting
37779 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
37780 set and libraries are not supported.
37782 2001-12-05 Ed Schonberg <schonber@gnat.com>
37784 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
37785 private view explicitly, so the back-end can treat as a global
37788 2001-12-05 Ed Schonberg <schonber@gnat.com>
37790 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
37791 unit, always replace instance node with new body, for ASIS use.
37793 2001-12-05 Vincent Celier <celier@gnat.com>
37795 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
37796 libraries are not supported and both attributes Library_Name and
37797 Library_Dir are specified.
37799 * prj-proc.adb (Expression): Set location of Result to location of
37802 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
37803 (prj-nmsc is now importing MLib.Tgt)
37805 * prj-proc.adb: Put the change indicated above that was forgotten.
37807 2001-12-05 Robert Dewar <dewar@gnat.com>
37809 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
37811 2001-12-05 Ed Schonberg <schonber@gnat.com>
37813 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
37814 constraint, introduce explicit subtype declaration and derive from it.
37816 * sem_ch3.adb: Minor reformatting
37818 2001-12-05 Robert Dewar <dewar@gnat.com>
37820 * checks.adb (Determine_Range): Increase cache size for checks.
37823 * exp_ch6.adb: Minor reformatting
37824 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
37825 a parameter whose root type is System.Address, since treating such
37826 subprograms as pure in the code generator is almost surely a mistake
37827 that will lead to unexpected results.
37829 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
37830 change handling of conversions.
37832 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
37834 2001-12-05 Ed Schonberg <schonber@gnat.com>
37836 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
37837 aggregate with static wrong size, attach generated Raise node to
37840 2001-12-05 Robert Dewar <dewar@gnat.com>
37842 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
37843 Fixes compilation abandoned bomb in B24009B.
37845 2001-12-05 Ed Schonberg <schonber@gnat.com>
37848 Document use of Associated_Node on Selected_Components.
37849 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
37850 to clarify use of untyped descendant fields.
37852 2001-12-05 Robert Dewar <dewar@gnat.com>
37854 * prj-dect.ads: Add ??? comment
37855 Add 2001 to copyright notice (was not done in after all)
37857 * prj-part.adb: Minor reformatting. Reword one awkward error message.
37859 * prj.ads: Minor reformatting throughout, and add some ??? comments
37861 * snames.ads: Minor reformatting
37863 2001-12-05 Geert Bosch <bosch@gnat.com>
37865 * snames.adb: Autoupdate
37867 2001-12-05 Vincent Celier <celier@gnat.com>
37869 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
37871 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
37873 * prj-env.adb: Minor comment changes (modifying -> extends).
37875 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
37877 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
37880 * prj.adb (Initialize): Change Modifying to Extends.
37882 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
37884 * prj.ads: Minor comment change (Modifying -> extending).
37886 * snames.ads: Change modifying to extends.
37888 2001-12-05 Robert Dewar <dewar@gnat.com>
37890 * sem_warn.adb: Remove stuff for conditionals, we are not going to
37893 * sem_warn.ads: Remove stuff for conditionals, we are not going to
37894 do this after all. Add 2001 to copyright notice
37896 2001-12-04 Geert Bosch <bosch@gnat.com>
37898 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
37900 2001-12-04 Robert Dewar <dewar@gnat.com>
37902 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
37903 location if we already have errors. Stops some cases of cascaded
37906 * errout.adb: Improve comment.
37908 2001-12-04 Robert Dewar <dewar@gnat.com>
37911 (Analyze_Formal_Type_Definition): Defend against Error.
37912 (Analyze_Formal_Subprogram): Defend against Error.
37914 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
37915 remove following semicolon if present. Removes cascaded error.
37917 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
37920 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
37921 exceptions equals 0.
37922 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
37923 Fixes PIWG E tests (which have to be run with -gnatL).
37925 2001-12-04 Robert Dewar <dewar@gnat.com>
37927 * einfo.ads: Minor reformatting
37929 2001-12-04 Ed Schonberg <schonber@gnat.com>
37931 * einfo.ads: Block_Node points to the identifier of the block, not to
37932 the block node itself, to preserve the link when the block is
37933 rewritten, e.g. within an if-statement with a static condition.
37935 * inline.adb (Cleanup_Scopes): recover block statement from block
37936 entity using new meaning of Block_Node.
37938 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
37939 identifier of block node, rather than to node itself.
37941 2001-12-04 Gary Dismukes <dismukes@gnat.com>
37944 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
37945 (Discrimify): Go back to setting the Etypes of the selected component
37946 because the Vname component does not exist at this point and will
37947 fail name resolution. Also set Analyzed.
37948 Remove with and use of Sem_Res.
37950 2001-12-04 Arnaud Charlet <charlet@gnat.com>
37952 * Makefile.in: (HIE_SOURCES): add s-fat*.
37954 2001-12-04 Robert Dewar <dewar@gnat.com>
37957 (Compile_Time_Known_Attribute): New procedure.
37958 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
37959 proper range check.
37961 2001-12-04 Ed Schonberg <schonber@gnat.com>
37963 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
37964 processing discriminants to diagnose illegal default values.
37966 2001-12-04 Ed Schonberg <schonber@gnat.com>
37968 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
37969 access discriminant within a type extension that constrains its
37970 parent discriminants.
37972 2001-12-04 Ed Schonberg <schonber@gnat.com>
37974 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
37975 is malformed, use instance of Any_Id to allow analysis to proceed.
37977 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
37978 type definition is illegal.
37979 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
37982 2001-12-04 Ed Schonberg <schonber@gnat.com>
37984 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
37987 2001-12-04 Robert Dewar <dewar@gnat.com>
37989 * errout.adb: Minor reformatting
37991 2001-12-04 Robert Dewar <dewar@gnat.com>
37993 * exp_util.adb: Minor reformatting from last change
37995 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
37996 which is a rewriting of an expression, traverse the original
37997 expression to remove warnings that may have been posted on it.
37999 2001-12-04 Ed Schonberg <schonber@gnat.com>
38001 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
38002 record that has other packed components.
38004 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
38006 * adaint.c: Minor cleanups.
38008 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
38010 * adaint.c: Do not use utime.h on vxworks.
38012 2001-12-04 Arnaud Charlet <charlet@gnat.com>
38014 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
38015 more confusion than it solves.
38017 2001-12-04 Geert bosch <bosch@gnat.com>
38019 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
38021 2001-12-04 Geert Bosch <bosch@gnat.com>
38023 * Makefile.in (update-sources): New target.
38024 For use by gcc_release script.
38026 2001-12-04 Ed Schonberg <schonber@gnat.com>
38028 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
38029 a configuration pragma, it is now legal wherever a pragma can appear.
38031 2001-12-04 Zack Weinberg <zack@codesourcery.com>
38033 * Makefile.in: Don't set ALL. Delete @cross_defines@,
38034 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
38035 is now @CROSS@ -DIN_GCC; update comment.
38037 2001-12-04 Robert Dewar <dewar@gnat.com>
38039 * einfo.adb (Has_Pragma_Pure_Function): New flag.
38040 Fix problem that stopped ceinfo from working
38042 * einfo.ads (Has_Pragma_Pure_Function): New flag.
38044 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
38046 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
38049 (File_Time_Stamp): New procedure.
38050 (Preserve_Mode): New boolean.
38051 (Write_Unit): Pass time stamp.
38052 Implement -p switch (preserve time stamps).
38054 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
38056 * gnatchop.adb: Do usage info for -p switch
38058 * adaint.h (__gnat_set_file_time_name): New function
38060 * adaint.c (__gnat_set_file_time_name): Implement
38062 * adaint.h: Fix typo
38064 2001-12-03 Robert Dewar <dewar@gnat.com>
38066 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
38067 have Associated_Node.
38069 2001-12-03 Robert Dewar <dewar@gnat.com>
38071 * prj-proc.adb: Minor reformatting
38073 * make.adb: Minor reformatting
38075 2001-12-03 Geert Bosch <bosch@gnat.com>
38077 * make.adb: Minor reformatting.
38079 2001-12-03 Robert Dewar <dewar@gnat.com>
38081 * sem_ch12.adb: Minor reformatting
38083 2001-12-03 Ed Schonberg <schonber@gnat.com>
38085 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
38086 push Standard on the stack before analyzing the instance body,
38087 in order to have a clean visibility environment.
38089 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
38091 2001-12-03 Ed Schonberg <schonber@gnat.com>
38093 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
38094 instantiation of a body that contains an inlined body.
38096 2001-12-03 Ed Schonberg <schonber@gnat.com>
38099 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
38100 to prevent freezing within formal packages.
38101 (Freeze_Subprogram_Body): If body comes from another instance that
38102 appeared before its own body, place freeze node at end of current
38103 declarative part, to prevent a back-end crash.
38104 (Inline_Instance_Body): Handle properly a package instance within
38105 a subprogram instance that is a child unit.
38107 2001-12-01 Graham Stott <grahams@redhat.com>
38109 * Makefile.in (misc.o): Add missing $(srcdir) prefix
38110 and add optabs.h dependency.
38112 * misc.c: Include optabs.h
38113 (gnat_tree_code_type): Make static and const.
38114 (gnat_tree_code_length): Likewise.
38115 (gnat_tree_code_name): Likewise.
38116 (update_setjmp_buf): Obtain operands mode from insn_data.
38118 2001-11-29 Richard Henderson <rth@redhat.com>
38120 * init.c: Remove obsolete dwarf2 frame.h section.
38122 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
38124 * Make-lang.in (ada.generated-manpages): New dummy target.
38126 2001-11-29 Ed Schonberg <schonber@gnat.com>
38128 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
38129 into Command, an array conversion is illegal here. Uncovered by
38132 2001-11-28 Geert Bosch <bosch@gnat.com>
38134 * init.c: Minor whitespace changes.
38136 2001-11-28 Doug Rupp <rupp@gnat.com>
38138 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
38141 2001-11-28 Zack Weinberg <zack@codesourcery.com>
38143 * misc.c (gnat_expand_constant): Move declaration above
38144 definition of lang_hooks.
38145 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
38146 (gnat_init): lang_expand_constant no longer exists.
38148 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
38149 always have vprintf.
38150 (gnat_init): Always call set_internal_error_function.
38152 2001-11-27 Andreas Jaeger <aj@suse.de>
38154 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
38156 2001-11-27 Laurent Guerby <guerby@acm.org>
38158 * Makefile.in: Regenerate Ada dependencies.
38160 2001-11-26 Richard Henderson <rth@redhat.com>
38162 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
38163 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
38164 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
38166 2001-11-25 Laurent Guerby <guerby@acm.org>
38168 * sysdep.c (rts_get_*): Fix style.
38170 2001-11-19 Laurent Guerby <guerby@acm.org>
38172 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
38173 since it is of no apparent use and cause warnings.
38175 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
38177 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
38179 (gnat_init): Don't return NULL.
38180 (finish_parse): Remove.
38182 2001-11-17 Laurent Guerby <guerby@acm.org>
38184 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
38185 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
38186 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
38187 * lang-spec.h: Add missing struct field to silence warnings.
38188 * sysdep.c (rts_get_*): Provide K&R prototype.
38189 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
38190 * traceback.c (Unlock_Task, Lock_Task): Likewise.
38191 * tracebak.c (__gnat_backtrace): Remove unused variable.
38192 * utils.c (end_subprog_body): Move to K&R style.
38194 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38196 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
38198 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
38200 * misc.c (gnat_init): Change prototype. Include the
38201 functionality of the old init_parse and init_decl_processing.
38202 (gnat_init_decl_processing): New prototype.
38203 (init_parse): Remove.
38204 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
38206 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
38208 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
38209 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
38210 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
38211 set_yydebug): Remove.
38213 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
38215 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
38216 (struct lang_hooks): Constify.
38217 (language_string, lang_identify): Remove.
38218 * utils.c (init_decl_processing): Update.
38220 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
38222 * misc.c: Include langhooks-def.h.
38223 * Makefile.in: Update.
38225 2001-10-30 Robert Dewar <dewar@gnat.com>
38228 (Check_Identifier): Rewrite circuit to be compatible with use of letters
38229 in the upper half of ASCII.
38230 (Check_Identifier): Minor reformatting
38232 2001-10-30 Geert Bosch <bosch@gnat.com>
38234 * (Associated_Node, Set_Associated_Node): Do not check for
38237 2001-10-30 Robert Dewar <dewar@gnat.com>
38239 * a-reatim.ads: Minor reformatting
38241 2001-10-30 Robert Dewar <dewar@gnat.com>
38243 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
38244 undocumented declarations.
38246 2001-10-30 Pascal Obry <obry@gnat.com>
38248 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
38249 to the binder and linker.
38252 * mdll.ads: Fix layout. Update copyright notice.
38254 * mdll.adb: Fix layout. Update copyright notice.
38256 2001-10-30 Robert Dewar <dewar@gnat.com>
38258 * usage.adb: Minor fix to output for -gnaty.
38260 2001-10-30 Ed Schonberg <schonber@gnat.com>
38262 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
38263 to accommodate all its possible values.
38265 * a-reatim.adb (Split): Special-case handling of Time_Span_First
38266 and of small absolute values of T.
38268 2001-10-30 Richard Kenner <kenner@gnat.com>
38270 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
38271 set_mem_attributes since not needed and wrong if RESULT if a REG;
38272 fixes ACATS failures.
38274 2001-10-30 Geert Bosch <bosch@gnat.com>
38276 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
38277 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
38279 2001-10-30 Robert Dewar <dewar@gnat.com>
38281 * bindusg.adb: Undocument -f switch.
38283 * gnatcmd.adb: Remove /FULL_ELABORATION.
38285 * opt.ads (Force_RM_Elaboration_Order): Document that this is
38288 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
38290 * gnatbind.adb: Minor update of warning msg.
38292 2001-10-30 Vincent Celier <celier@gnat.com>
38294 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
38295 for project file switches (-P (/PROJECT_FILE=),
38296 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
38299 2001-10-30 Geert Bosch <bosch@gnat.com>
38301 * decl.c: Minor whitespace fixes.
38303 2001-10-30 Richard Kenner <kenner@gnat.com>
38305 * utils2.c (build_allocator): Test for SIZE overflow in array case too
38307 2001-10-30 Geert Bosch <bosch@gnat.com>
38309 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
38310 Found due to GCC 3.0 warning of using uninitialized value.
38313 (Get_Max_Size): Use variant record for tracking value/expression.
38314 Makes logic clearer and prevents warnings for uninitialized variables.
38315 (Layout_Array_Type): Use variant record for tracking value/expression.
38316 Makes logic clearer and prevents warnings for uninitialized variables.
38318 2001-10-30 Robert Dewar <dewar@gnat.com>
38320 * lib.adb: Minor reformatting
38322 * s-taprop.ads: Minor reformatting
38324 2001-10-29 Laurent Guerby <guerby@acm.org>
38327 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
38329 (_gnat_error_handler): Make MSG const.
38331 2001-10-29 Richard Kenner <kenner@gnat.com>
38333 * sysdep.c: Fix localtime_r problem on LynxOS.
38334 Also remove #elif to avoid warnings.
38336 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
38339 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
38341 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
38343 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
38344 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
38345 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
38346 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
38347 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
38348 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
38349 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
38350 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
38351 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
38352 types.ads, urealp.adb: Fix spelling errors.
38354 2001-10-27 Laurent Guerby <guerby@acm.org>
38356 * trans.c (gigi): Fix non determinism leading to bootstrap
38357 comparison failures for debugging information.
38359 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
38361 * gnat_rm.texi: Use @./@: where appropriate.
38363 2001-10-26 Robert Dewar <dewar@gnat.com>
38365 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
38367 2001-10-26 Richard Kenner <kenner@gnat.com>
38369 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
38371 2001-10-26 Richard Kenner <kenner@gnat.com>
38373 * decl.c (validate_size): Modify message for bad size to avoid
38374 implication that compiler is modifying the size.
38376 2001-10-26 Robert Dewar <dewar@gnat.com>
38378 * prj-util.adb: Minor reformatting. Fix bad header format.
38380 2001-10-26 Robert Dewar <dewar@gnat.com>
38382 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
38384 * sinfo.ads: Clarify use of Associated_Node (documentation only).
38386 * sem_ch12.adb: Change Node4 to Associated_Node. Change
38387 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
38388 much more narrowly in places where needed. These are cleanups.
38390 2001-10-26 Joel Brobecker <brobecke@gnat.com>
38392 * 5zosinte.ads (null_pthread): new constant.
38395 (Initialize_TCB): Initialize thread ID to null, to be able to verify
38396 later that this field has been set.
38397 (Finalize_TCB): ditto.
38398 (Suspend_Task): Verify that the thread ID is not null before using it.
38399 (Resume_Task): ditto.
38402 (Resume_All_Tasks): Lock the tasks list before using it.
38403 (Suspend_All_Tasks): ditto.
38405 2001-10-26 Richard Kenner <kenner@gnat.com>
38407 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
38408 Make constant variant of designated type for Is_Access_Constant.
38409 Call update_pointer_to with main variant.
38411 * trans.c (process_freeze_entity, process_type):
38412 Call update_pointer_to on main variant.
38414 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
38415 If main variant, update all other variants.
38417 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
38420 2001-10-26 Robert Dewar <dewar@gnat.com>
38422 * prj-util.adb: Minor reformatting
38424 2001-10-26 Robert Dewar <dewar@gnat.com>
38426 * prj-util.adb: Minor reformatting
38428 2001-10-26 Robert Dewar <dewar@gnat.com>
38430 * prj-attr.adb: Minor reformatting throughout
38432 2001-10-26 Robert Dewar <dewar@gnat.com>
38434 * prj-attr.ads: Minor reformatting
38435 Add ??? comment (this whole spec has almost no comments)
38437 2001-10-26 Vincent Celier <celier@gnat.com>
38439 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
38440 ("//") that precede the drive letter on Interix.
38442 2001-10-26 Geert Bosch <bosch@gnat.com>
38444 * gnat_rm.texi: Add GNAT Reference Manual.
38446 2001-10-25 Robert Dewar <dewar@gnat.com>
38448 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
38449 is Error. Similar change for other renaming cases.
38451 2001-10-25 Robert Dewar <dewar@gnat.com>
38453 * s-atacco.ads: Add pragma Inline_Always for functions.
38454 Fix header format. Add copyright 2001
38456 2001-10-25 Ed Schonberg <schonber@gnat.com>
38458 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
38459 return Error rather than Empty so that analysis can proceed.
38461 2001-10-25 Ed Schonberg <schonber@gnat.com>
38463 * sem_util.adb (Enter_Name): better handling of cascaded error
38464 messages when a unit appears in its own context.
38466 2001-10-25 Ed Schonberg <schonber@gnat.com>
38468 * sem_util.adb (Defining_Entity): in case of error, attach created
38469 entity to specification, so that semantic analysis can proceed.
38471 2001-10-25 Robert Dewar <dewar@gnat.com>
38474 (Defining_Entity): Deal with Error.
38475 (Process_End_Label): Deal with bad end label for.
38477 2001-10-25 Ed Schonberg <schonber@gnat.com>
38479 * sem_elab.adb (Check_A_Call): refine message when call is in an
38480 instance but callee is not declared in the generic unit.
38482 2001-10-25 Ed Schonberg <schonber@gnat.com>
38484 * sem_elab.adb (Check_A_Call): check for renaming before finding the
38485 enclosing unit, which may already be different from the calling unit.
38487 2001-10-25 Geert Bosch <bosch@gnat.com>
38489 * 4gintnam.ads: fix header format.
38491 2001-10-25 Ed Schonberg <schonber@gnat.com>
38493 * sem_res.adb (Resolve_Call): if the call is actually an indexing
38494 operation on the result of a parameterless call, perform elaboration
38495 check after the node has been properly rewritten.
38497 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
38498 inlined within the generic tree, the defining identifier is not a
38501 2001-10-25 Ed Schonberg <schonber@gnat.com>
38503 * sem_res.adb (Resolve): special-case resolution of Null in an
38504 instance or an inlined body to avoid view conflicts.
38506 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
38507 compatibility by retrieving the access type of the generic copy.
38509 2001-10-25 Robert Dewar <dewar@gnat.com>
38512 (Analyze_Number_Declaration): Handle error expression.
38513 (Signed_Integer_Type_Declaration): Handle error bound.
38514 (Analyze_Subtype_Indication): Handle error range.
38516 * sem_util.adb (Get_Index_Bounds): Check for Error.
38518 2001-10-25 Robert Dewar <dewar@gnat.com>
38520 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
38521 in no run time mode.
38523 2001-10-25 Pascal Obry <obry@gnat.com>
38525 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
38526 mode case for ALLOC case.
38528 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
38529 all platforms. Improvement of last change.
38531 2001-10-25 Robert Dewar <dewar@gnat.com>
38533 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
38535 2001-10-25 Geert Bosch <bosch@gnat.com>
38537 * osint.adb (Is_Relative): Remove duplicate.
38539 2001-10-25 Pascal Obry <obry@gnat.com>
38541 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
38542 pathnames in UNIX and DOS style with drive letter.
38543 (Is_Relative): new routine.
38545 * osint.adb: Minor reformatting
38547 * osint.adb (Is_Relative): implementation using
38548 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
38550 2001-10-25 Pascal Obry <obry@gnat.com>
38552 * g-dirope.adb (Basename): correctly compute offset between the
38553 original Path and the translated one.
38555 * g-dirope.adb: (Base_Name): add some comments.
38557 2001-10-25 Robert Dewar <dewar@gnat.com>
38559 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
38560 in HIE mode, avoids compilation abandoned message
38562 * exp_imgv.adb: Correct typo in previous change
38564 * exp_imgv.adb: Correct typo in previous change (not my day!)
38566 2001-10-25 Robert Dewar <dewar@gnat.com>
38568 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
38570 2001-10-25 Pascal Obry <obry@gnat.com>
38572 * g-awk.ads: Move all pragma inlines next to the routine
38573 declarations. This is more uniform with other GNAT spec.
38575 2001-10-22 Geert Bosch <bosch@gnat.com>
38577 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
38579 2001-10-19 Geert Bosch <bosch@gnat.com>
38581 * Makefile.in (tools, gnattools): Remove gnatmem.
38583 2001-10-17 Richard Henderson <rth@redhat.com>
38585 * Makefile.in (misc.o): Depend on langhooks.h.
38586 * misc.c: Include it.
38587 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
38588 (LANG_HOOKS_DECODE_OPTION): New.
38589 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
38591 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
38593 * trans.c (tree_transform): Adjust to recent change in
38594 expand_asm_operands to implement named asm operands.
38596 2001-10-11 Ed Schonberg <schonber@gnat.com>
38598 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
38599 renaming of discriminant for mutable record type.
38601 2001-10-11 Robert Dewar <dewar@gnat.com>
38603 * validsw.adb: Properly save -gnatVn status.
38605 2001-10-11 Robert Dewar <dewar@gnat.com>
38607 * usage.adb: Add lines for V switch.
38609 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
38610 (/VALIDITY_CHECKING).
38612 2001-10-11 Ed Schonberg <schonber@gnat.com>
38614 * sem_type.adb (Add_One_Interp): an operator for a type declared in
38615 an extension of System is known to be visible.
38617 2001-10-11 Ed Schonberg <schonber@gnat.com>
38619 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
38620 properly. Fixes regression on ACATS C34005G.
38622 2001-10-11 Robert Dewar <dewar@gnat.com>
38624 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
38625 loop in generic instance, since this is likely not very useful.
38627 2001-10-11 Robert Dewar <dewar@gnat.com>
38629 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
38630 the error message for high integrity mode.
38632 * rtsfind.adb (RTE): Give message if we try to find an entity that
38633 is not available in high integrity mode.
38636 (OK_To_Use_In_HIE_Mode): New array.
38637 (RTE): May return Empty in high integrity mode.
38639 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
38640 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
38642 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
38643 unit if not inlined always and in no runtime mode. Fixes problem
38644 caused by new Rtsfind changes.
38646 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
38649 * rtsfind.adb (RTE): Make sure we do not try to load unit after
38650 giving message for entity not available in high integrity mode.
38652 2001-10-11 Pascal Obry <obry@gnat.com>
38654 * impunit.adb: Add GNAT.CRC32.
38656 2001-10-11 Ed Schonberg <schonber@gnat.com>
38658 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
38659 properly the case where one universal operand in a non-static
38660 exponentiation of a real literal.
38662 2001-10-11 Ed Schonberg <schonber@gnat.com>
38664 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
38665 clause, return the gobal finalization list, for lack of anthing else.
38667 2001-10-11 Ed Schonberg <schonber@gnat.com>
38669 * exp_ch7.adb (Make_Transient_Block): if statement is within
38670 exception handler, always use new transient scope to place Clean
38673 2001-10-11 Pascal Obry <obry@gnat.com>
38676 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
38677 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
38678 (GNATLS_RTL_OBJS): add g-crc32.o
38679 (GNATMAKE_RTL_OBJS): add g-crc32.o
38682 (CRC_Match): new function.
38683 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
38684 instead of the previous simple checksum algorithm.
38685 (Time_Stamp_Mismatch): use CRC_Match for comparison.
38686 (Set_Source_Table): idem.
38689 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
38690 instead of simple checksum.
38691 (CRC_Match): new function.
38692 (CRC_Error): new constant.
38694 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
38695 a CRC now and not a simple checksum. A CRC uses lower-case hex
38696 letters, fixes ambiguity in parsing.
38698 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
38699 is what this variable will store.
38701 * bcheck.adb: Change reference to chechsum in comments by CRC.
38702 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
38703 rename All_Checksum_Match to All_CRC_Match. Change due to API
38704 renaming since now GNAT does not use a simple checksum but a
38705 CRC using GNAT.CRC32.
38707 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
38708 now and not anymore a simple checksum.
38710 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
38713 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
38716 (Restore_Scan_State): rename Checksum to CRC.
38717 (Save_Scan_State): idem.
38721 (Checksum): rename to CRC.
38722 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
38724 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
38725 GNAT.CRC32). Update copyright notice.
38727 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
38728 GNAT.CRC32). Update copyright notice.
38731 (Accumulate_Checksum): removed.
38732 (Update): new procedure. Add a wide-character into the CRC.
38735 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
38736 (Load_File): fix initialization of S (change Source_Checksum to
38739 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
38740 Source_CRC in S initialization.
38742 * sinput.adb (Source_Checksum): renamed to Source_CRC.
38744 * sinput.ads (Source_Checksum): renamed to Source_CRC.
38745 Update comments for the CRC.
38747 * types.adb (Hex): Use lowercase for the letter part.
38749 * types.ads (Get_Hex_String): Returns the hexadecimal representation
38750 for a word. This is currently used only for CRC. In previous version,
38751 the checksum was using a representation with all letter being
38752 upper-case. With the new implementation (using CRC) we do not remove
38753 the 32th bit of the CRC, so we can have an upper-case starting letter
38754 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
38755 It is ambigous since the CRC was optional and could be followed by
38756 options like EB, EE. So now this routines uses lower-case letter for
38757 the hexadecimal representation. Strange enough only lower case letters
38758 where checked in Scan_ALI (even if this was not a possible case).
38760 * gnatvsn.ads (Library_Version): changed to 3.15a.
38762 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
38765 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
38768 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
38769 Add 2001 to copyright notice
38770 (Accumulate_Checksum): Modify to use System.CRC32.
38772 * ali-util.ads: Redo changes of previous revision to continue to use
38773 the word Checksum. Add 2001 to copyright notice.
38775 * ali.adb: Undo some of previous changes, not needed.
38776 Keep the change for lower case letters in the checksum.
38778 * ali.ads: Undo previous change not needed.
38780 * bcheck.adb: Undo most of previous change, not needed.
38781 But do use Checksums_Match for checksum comparison.
38783 * gnatls.adb: Undo most of previous change, not needed.
38784 But do use Checksums_Match for comparing checksums.
38786 * lib-load.adb: Undo previous change, not needed.
38788 * lib-writ.adb: Undo previous change, not needed.
38790 * lib-writ.ads: Document that checksums use lower case,
38791 not upper case letters.
38793 * scans.adb: Undo previous change, not needed
38795 * scans.ads: Undo previous change, not needed.
38797 * scn-nlit.adb: Undo previous changes, not needed.
38799 * scn-slit.adb: Undo previous change, not needed. Fix header format.
38802 (Accumulate_Checksum): Use System.CRC32.
38803 (Initialize_Checksum): New procedure.
38804 Remove other changes of previous revision.
38806 * sinput-p.adb: Undo previous change, not needed.
38808 * sinput.adb: Undo previous change, not needed.
38810 * sinput-l.adb: Undo previous change, not needed.
38812 * sinput.ads: Undo previous change, not needed. Keep only comment
38813 on new checksum algorithm
38815 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
38816 Also remove a-tags and a-stream from GNAT sources.
38818 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
38820 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
38822 2001-10-11 Geert Bosch <bosch@gnat.com>
38824 * einfo.h: Regenerate.
38826 * nmake.ads: Regenerate.
38828 * nmake.adb: Regenerate.
38830 * sinfo.h: Regenerate.
38832 * treeprs.adb: Regenerate.
38834 2001-10-10 Geert Bosch <bosch@gnat.com>
38836 * gnat-style.texi: New file describing coding guidelines for Ada.
38838 2001-10-10 Ed Schonberg <schonber@gnat.com>
38840 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
38843 2001-10-10 Geert Bosch <bosch@gnat.com>
38845 * snames.ads: Add new names for project facility.
38847 * snames.adb: Update to reflect snames.ads changes.
38849 * snames.h: Update to reflect snames.ads changes.
38851 2001-10-10 Vincent Celier <celier@gnat.com>
38854 (Add_Switches): reflect the changes for the switches attributes
38855 Default_Switches indexed by the programming language,
38856 Switches indexed by the file name.
38857 (Collect_Arguments_And_Compile): Idem.
38858 Reflect the attribute name changes.
38861 (Initialisation_Data): Change the names of some packages and
38863 (Initialize): process case insensitive associative arrays.
38866 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
38869 (Parse_Attribute_Declaration): For case insensitive associative
38870 arrays, set the index string to lower case.
38873 Reflect the changes of the project attributes.
38876 Replace Check_Naming_Scheme by Ada_Check and
38877 Language_Independent_Check.
38880 Replaced Check_Naming_Scheme by 2 procedures:
38881 Ada_Check and Language_Independent_Check.
38884 (Process_Declarative_Items): For case-insensitive associative
38885 arrays, set the index string to lower case.
38886 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
38887 Prj.Nmsc.Check_Naming_Scheme.
38890 (Case_Insensitive): New function
38891 (Set_Case_Insensitive): New procedure
38894 (Case_Insensitive): New function
38895 (Set_Case_Insensitive): New procedure
38896 (Project_Node_Record): New flag Case_Insensitive.
38899 (Value_Of): new function to get the string value of a single
38900 string variable or attribute.
38903 (Value_Of): new function to get the string value of a single
38904 string variable or attribute.
38907 (Ada_Default_Spec_Suffix): New function
38908 (Ada_Default_Impl_Suffix): New function
38909 Change definitions of several constants to reflect
38910 new components of record types.
38913 (Naming_Data): Change several components to reflect new
38914 elements of naming schemes.
38915 (Project_Data): New flags Sources_Present and
38916 Language_Independent_Checked.
38917 (Ada_Default_Spec_Suffix): New function.
38918 (Ada_Default_Impl_Suffix): New function.
38921 Modification of predefined names for project manager: added
38922 Implementation, Specification_Exceptions, Implementation_Exceptions,
38923 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
38924 Default_Switches, _Languages, Builder, Cross_Reference,
38925 Finder. Removed Body_Part, Specification_Append, Body_Append,
38926 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
38929 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
38932 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
38933 not that it is Nil_Variable_Value.
38935 * prj.ads: Add ??? for uncommented declarations
38937 2001-10-10 Ed Schonberg <schonber@gnat.com>
38939 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
38940 constant, do not indicate possible modification, so that gigi can
38941 treat it as a bona fide constant.
38943 2001-10-10 Robert Dewar <dewar@gnat.com>
38945 * sem_prag.adb: Add processing for pragma External.
38947 * snames.ads: Add entry for pragma External.
38949 * par-prag.adb: Add pragma External.
38951 * snames.adb: Updated to match snames.ads.
38953 2001-10-10 Ed Schonberg <schonber@gnat.com>
38955 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
38956 a dynamic task if the allocator appears in an indexed assignment
38957 or selected component assignment.
38959 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
38960 For a dynamic task in an assignment statement, use target of
38961 assignment to generate meaningful name.
38963 2001-10-10 Ed Schonberg <schonber@gnat.com>
38965 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
38968 * einfo.ads: Body_Entity is also defined for generic package.
38969 Documentation change only
38971 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
38972 others_choice for a discriminated component initialization,
38973 convert discriminant references into the corresponding discriminals.
38975 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
38976 only if original type is private and expression has to be wrapped
38980 (Apply_Constraint_Check): Do not perform length check
38981 if expression is an aggregate with only an others_choice.
38982 (Length_N_Cond): two references to the same in_parameter
38983 (typically the discriminal in an init_proc) denote the same value.
38984 Two useful optimization uncovered by bugfixes above.
38986 2001-10-10 Robert Dewar <dewar@gnat.com>
38988 * xeinfo.adb: Change int to char in translation of enumeration types.
38989 This fixes a problem in the C representation of component alignment.
38990 Add 2001 to copyright notice
38992 2001-10-10 Richard Kenner <kenner@gnat.com>
38994 * decl.c: (validate_size): Do check size of object of integral type
38995 if it is a packed array type.
38997 2001-10-10 Richard Kenner <kenner@gnat.com>
38999 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
39000 VAR_DECL for constant if not Is_Public but -O0.
39002 2001-10-10 Richard Kenner <kenner@gnat.com>
39004 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
39006 2001-10-10 Geert Bosch <bosch@gnat.com>
39008 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
39009 use '/' as switch character, allowing for absolute file names.
39011 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
39013 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
39016 2001-10-08 Geert Bosch <bosch@gnat.com>
39018 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
39019 Automatically build utilities when files need to be regenerated.
39021 2001-10-08 Geert Bosch <bosch@gnat.com>
39023 * xsnames.adb: New utility for updating snames.ads and snames.adb
39025 2001-10-08 Zack Weinberg <zack@codesourcery.com>
39027 * Make-lang.in (ADAFLAGS): Add -W -Wall.
39028 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
39029 (gnat1): Also depend on attribs.o.
39030 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
39031 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
39032 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
39033 (ADAFLAGS): Add -W -Wall.
39034 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
39037 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
39038 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
39039 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
39040 Use $(ADAC), not $(CC), as compilation command.
39042 (gnattools): Depend directly on tools to build, don't use
39044 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
39046 * einfo.h, sinfo.h: New files (autogenerated).
39048 2001-10-08 Richard Henderson <rth@redhat.com>
39050 * comperr.adb (Abort_In_Progress): New.
39051 (Compiler_Abort): Use it to prevent recursion.
39053 2001-10-08 Robert Dewar <dewar@gnat.com>
39055 * atree.adb: Set Error_Posted in Error node, helps error recovery.
39057 * par-endh.adb (Output_End_Expected): We should also not test
39058 Error_Posted on the Error node, since now it is always set.
39060 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
39061 to help error recovery. Part of general work on 9407-004.
39063 * par.adb: Add ??? for misuse of error
39066 (Resolve): Defend against Error, fixes 9407-003.
39067 (Resolve_Discrete_Subtype_Indication): Defend against Error.
39069 * sinfo.ads (N_Error): Now has Etype field (which will be set
39070 to Any_Type to help error recovery).
39072 2001-10-08 Richard Kenner <kenner@gnat.com>
39074 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
39075 Consistently set MEM attributes from expression; fixes
39076 bootstrap failure on x86.
39078 2001-10-08 Geert Bosch <bosch@gnat.com>
39080 * 5oosinte.adb: Add 2001 to copyright notice.
39082 2001-10-08 Geert Bosch <bosch@gnat.com>
39084 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
39086 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
39088 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
39090 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
39092 2001-10-05 Geert Bosch <bosch@gnat.com>
39094 * adaint.h: Small formatting fix.
39096 2001-10-04 Geert Bosch <bosch@gnat.com>
39098 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
39099 Arg is int, not FILE *, in dummy version of functions.
39101 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
39102 Arg is int, not FILE *.
39104 2001-10-04 Geert Bosch <bosch@gnat.com>
39106 * 3lsoccon.ads: Added file, missed with initial check ins.
39108 * 4lintnam.ads: Fix header format.
39109 Change Linux to GNU/Linux.
39111 * 5iosinte.adb: Change Linux to GNU/Linux.
39113 * 5iosinte.ads: Change Linux to GNU/Linux.
39115 * 5itaprop.adb: Change Linux to GNU/Linux.
39117 * 5itaspri.ads: Change Linux to GNU/Linux.
39118 Update copyright notice.
39120 * 5lintman.adb: Change Linux to GNU/Linux.
39122 * 5lml-tgt.adb: Change Linux to GNU/Linux.
39124 * 5losinte.ads: Change Linux to GNU/Linux.
39126 * 5lsystem.ads: Change Linux to GNU/Linux.
39128 * 5qosinte.adb: Change Linux to GNU/Linux.
39130 * 5qosinte.ads: Change Linux to GNU/Linux.
39132 * 5qparame.ads: Change Linux to GNU/Linux.
39134 * 5qtaprop.adb: Change Linux to GNU/Linux.
39136 * 5qtaspri.ads: Change Linux to GNU/Linux.
39137 Add 2001 to copyright notice.
39139 * 5vintman.ads: Change Linux to GNU/Linux.
39140 Fix header format. Add 2001 to copyright notice.
39142 * g-soccon.ads: Change Linux to GNU/Linux.
39144 * g-trasym.ads: Change Linux to GNU/Linux.
39145 Add 2001 to copyright notice.
39147 * memtrack.adb: Change Linux to GNU/Linux.
39149 * s-intman.ads: Change Linux to GNU/Linux.
39150 Add 2001 to copyright notice. Fix header format.
39152 * s-stache.adb: Change Linux to GNU/Linux.
39154 * adaint.c: Change Linux to GNU/Linux.
39156 * cio.c: Change Linux to GNU/Linux.
39158 * cstreams.c: Change Linux to GNU/Linux.
39160 * init.c: Change Linux to GNU/Linux.
39162 * gmem.c: Change Linux to GNU/Linux.
39164 * tracebak.c: Change Linux to GNU/Linux.
39167 2001-10-02 Geert Bosch <bosch@gnat.com>
39169 * misc.c (insert_default_attributes): Add dummy version.