1 2007-08-11 Ian Lance Taylor <iant@google.com>
3 * misc.c (gnat_get_alias_set): Change return type to
6 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8 * decl.c, utils2.c: Fix whitespace in last change.
10 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12 * decl.c (compare_field_bitpos): Constify.
13 * utils2.c (compare_elmt_bitpos): Likewise.
15 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
17 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
18 anonymous access type.
19 (pthread_sigmask): Now take an access sigset_t.
21 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
23 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
25 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
27 PR tree-optimization/25737
28 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
30 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
32 * trans.c (Attribute_to_gnu): When subtracting an
33 offset from a pointer, use POINTER_PLUS_EXPR with
34 NEGATE_EXPR instead of MINUS_EXPR.
35 (gnat_to_gnu): Likewise.
36 * utils.c (convert): When converting between
37 thin pointers, use POINTER_PLUS_EXPR and sizetype
39 * utils2.c (known_alignment): POINTER_PLUS_EXPR
40 have the same semantics as PLUS_EXPR for alignment.
41 (build_binary_op): Add support for the semantics of
42 POINTER_PLUS_EXPR's operands.
43 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
45 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
47 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
48 of get_signed_or_unsigned_type.
49 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
51 2007-06-11 Bob Duff <duff@adacore.com>
52 Thomas Quinot <quinot@adacore.com>
54 * g-stsifd-sockets.adb (Create): Work around strange behavior of
55 'bind' on windows that causes 'connect' to fail intermittently, by
57 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
59 2007-06-10 Duncan Sands <baldrick@free.fr>
61 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
62 than to void, for the fields when making a new fat pointer type.
63 (gnat_substitute_in_type): Now substitute_in_type.
64 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
65 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
66 * utils.c (update_pointer_to): Update fat pointers by updating the
67 dummy node pointers used for the fields.
69 2007-06-06 Thomas Quinot <quinot@adacore.com>
70 Bob Duff <duff@adacore.com>
72 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
73 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
74 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
75 constant Thread_Blocking_IO, always True by default, set False
76 on a per-runtime basis.
77 (Need_Netdb_Buffer): New constant.
79 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
80 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
83 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
84 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
85 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
86 child package Task_Safe_NetDB
87 (Host_Error_Messages): Add stub body.
88 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
90 * g-soccon-mingw.ads: Add Windows-specific constants.
91 (Need_Netdb_Buffer): New constant.
92 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
93 wrapper and import inet_addr(3) from the standard sockets library
95 (In_Addr): Add alignment clause.
96 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
98 2007-06-06 Robert Dewar <dewar@adacore.com>
100 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
101 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
102 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
103 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
104 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
105 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
106 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
107 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
108 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
109 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
110 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
111 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
112 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
113 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
114 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
115 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
116 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
117 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
118 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
119 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
120 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
121 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
122 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
123 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
124 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
125 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
126 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
127 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
128 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
129 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
130 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
131 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
132 Unchecked_* by Ada.Unchecked_*
134 2007-06-06 Robert Dewar <dewar@adacore.com>
136 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
137 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
138 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
139 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
140 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
141 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
143 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
144 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
145 s-tasloc.adb, s-tasloc.ads: New files.
147 2007-06-06 Bob Duff <duff@adacore.com>
150 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
151 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
152 (Send_Signal, Close): Raise Invalid_Process if the process id is
154 (Pattern_Matcher_Access): Is now a general access type to be able to
157 2007-06-06 Thomas Quinot <quinot@adacore.com>
158 Arnaud Charlet <charlet@adacore.com>
160 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
161 (SIGEMT is now used instead of SIGTERM on AIX).
163 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
164 (Time_Slice_Supported): Set to True.
165 Use SIGEMT instead of SIGTERM as SIGADAABORT.
167 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
169 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
170 (Time, Time)): Use To_Relative_Time rather than manual calculation to
171 express the bounds of Duration as Time. Raise Time_Error when the
172 result is greater or equal to the higher bound of Duration (on the
174 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
176 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
178 ("-" (Time, Time)): Reorder code.
179 (All_Leap_Seconds): Removed.
180 (Arithmetic_Operations.Add): Remove sign related kludge.
181 (Arithmetic_Operations.Difference): Control the leaps seconds processing
182 with flag Leap_Support.
183 (Arithmetic_Operations.Subtract): Remove sign related kludge.
184 (Check_Within_Time_Bounds): New procedure.
185 (Clock): Control the leap seconds processing with flag Leap_Support.
186 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
187 (Formatting_Operations.Split): Control the leap seconds processing with
189 (Formatting_Operations.Time_Of): Control the leaps seconds processing
190 with flag Leap_Support. Adjust the year, month and day (if applicable)
191 when the value of day seconds designates a new day.
192 (Split): Use parameter associations for better readability. Integrate
194 (Time_Of): Use parameter associations for better readability. Integrate
197 * a-calfor.adb (Split): Use parameter associations for better
198 readability. Integrate flag Is_Ada_05.
199 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
200 better readability. Integrate flag Is_Ada_05.
202 2007-06-06 Arnaud Charlet <charlet@adacore.com>
204 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
205 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
206 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
207 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
208 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
209 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
210 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
211 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
212 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
213 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
214 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
215 time when entering this routine to detect a backward clock setting
216 (manual setting or DST adjustment), to avoid waiting for a longer delay
218 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
219 Remove handling of deferred priority change, and replace by setting the
220 task priority directly, as required by AI-188.
222 (Max_Task_Image_Length): New constant.
223 Replace Warnings (Off) by Unreferenced pragma, cleaner.
224 (Dynamic_Priority_Support): Removed, no longer needed.
225 (Poll_Base_Priority_Change): Ditto.
226 (Set_Ceiling): Add this procedure to change the ceiling priority
227 associated to a lock. This is a dummy implementation because dynamic
228 priority ceilings are not supported by the underlying system.
230 * a-dynpri.adb (Set_Priority): Take into account case where Target is
231 accepting a RV with its priority boosted.
232 Remove handling of deferred priority change, and replace by setting the
233 task priority directly, as required by AI-188.
235 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
237 Remove handling of deferred priority change, and replace by setting the
238 task priority directly, as required by AI-188.
239 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
242 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
243 (Poll_Base_Priority_Change): Removed.
244 Code clean up: use SSL.Current_Target_Exception.
246 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
247 to run as this is a potentially dispatching point.
248 (Call_Synchronous): Use Local_Defer_Abort.
249 (Callable): Relax assertion.
250 (Selective_Wait): Relax assertion in case abort is not allowed.
251 Remove handling of deferred priority change, and replace by setting the
252 task priority directly, as required by AI-188.
254 * s-tasuti.adb (Make_Passive): Adjust assertions.
255 Remove handling of deferred priority change, and replace by setting the
256 task priority directly, as required by AI-188.
258 2007-06-06 Arnaud Charlet <charlet@adacore.com>
260 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
261 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
262 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
263 system-vxworks-mips.ads, system-vxworks-alpha.ads,
264 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
265 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
266 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
267 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
268 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
269 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
270 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
271 This patch changes the largest non-binary modulus from 2**31-1 to
273 (Compiler_System_Version): Removed, no longer used.
274 Clean up system files by removing flags only used on a single target.
275 Also remove obsolete flags, only used during bootstrap from system.ads
276 (Address): Add a pragma Preelaborable_Initialization.
278 * system-aix.ads: Ditto.
279 (GCC_ZCX_Support): Set to true.
280 Update priority range on AIX and map Ada priorities to target
281 priorities appropriately for different scheduling policies.
283 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
285 2007-06-06 Vincent Celier <celier@adacore.com>
287 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
288 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
290 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
291 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
292 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
293 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
294 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
295 MLib.Tgt, containing the default versions of the exported subprograms.
296 For each platform, create a specific version of the body of new child
297 package MLib.Tgt.Specific that contains only the body of subprograms
298 that are different from the default.
299 (Archive_Builder_Append_Options): New function.
301 2007-06-06 Matthew Gingell <gingell@adacore.com>
303 * s-osinte-aix.adb: Map Ada priorities to target priorities
304 appropriately for different scheduling policies.
306 2007-06-06 Arnaud Charlet <charlet@adacore.com>
308 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
310 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
311 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
313 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
315 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
316 Noop on VMS, added for interface commonality.
318 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
319 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
320 Olivier Hainque <hainque@adacore.com>
322 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
323 renamed expression of a full renaming at toplevel.
324 (gnat_to_gnu_entity, case object): If not defining, do not look inside
325 the values the constant is initialized to if it is an N_Allocator.
326 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
327 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
328 (make_aligning_type): Accept an extra ROOM argument for storage to be
329 made available before the aligned field, and an extra BASE_ALIGN
330 argument for callers to pass the alignment guaranteed to be honored for
331 the whole aligning object. Avoid call to finish_record_type, which only
332 interferes with the sizes we want to set.
333 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
334 make_aligning_type for super-aligned objects on stack.
335 (components_to_record): Pass the adjusted size of the type when creating
336 fields in the qualified union for the variant part.
337 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
338 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
340 (maybe_pad_type): Set TYPE_USER_ALIGN.
341 (make_aligning_type): Likewise.
342 ALIGN argument is unsigned int.
343 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
344 (gnat_to_gnu_param): Likewise, for parameters.
345 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
346 if it is constant and stems from a function call.
347 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
348 of the record is specified. Adjust accordingly.
349 (adjust_packed): New static function.
350 (gnat_to_gnu_field): Use it to adjust the packedness setting.
351 (components_to_record): Likewise.
352 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
353 side-effects if the object is deemed constant.
354 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
355 type instead of merely finalizing it. Tidy.
356 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
357 <E_Access_Type>: Likewise.
358 (defer_debug_incomplete_list): Rename to defer_finalize_list.
359 (defer_debug_level): Delete.
360 (gnat_to_gnu_entity) <debug_deferred>: Likewise
361 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
363 <E_Record_Type>: Do not explicitly defer finalizing the type.
364 Adjust for write_record_type_debug_info renaming.
365 <E_Subprogram_Type>: Likewise.
366 Finalize deferred types right after deferred incomplete types are
368 (rest_of_type_decl_compilation): New global function.
369 (components_to_record): Rename defer_debug parameter to do_not_finalize.
370 (components_to_record): Propagate the packedness to the fields of the
371 qualified union type if there is a variant part.
372 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
373 instead of inline code to adjust the XUT field offsets.
374 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
375 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
376 and write the debug info if the type derives from a discriminated one.
377 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
378 <E_Array_Subtype>: Likewise.
379 <E_String_Literal_Subtype>: Likewise.
380 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
382 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
383 before giving warning.
384 (prepend_one_attribute_to): New function, helper to prepend an attribute
385 to an attribute list.
386 (gnat_to_gnu_entity) <E_Procedure>: Use it.
387 (prepend_attributes): Likewise.
388 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
389 <E_Array_Type>: Declare the padding type for the element type, if any.
390 <E_Array_Subtype>: Likewise.
391 (defer_limited_with): New variable.
392 (Gigi_Equivalent_Type): New function.
393 (gnat_to_gnu_entity): Use it at start and use result throughout.
394 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
395 Gigi_Equivalent_Type, support Limited_With, allow two levels of
396 indirection, precompute if unconstrained array to simplify logic, and
397 use defer_limited_with to defer elaboration of some types from limited
399 (finalize_from_with_types): New function.
401 2007-06-06 Gary Dismukes <dismukes@adacore.com>
402 Eric Botcazou <ebotcazou@adacore.com>
403 Tristan Gingold <gingold@adacore.com>
404 Olivier Hainque <hainque@adacore.com>
406 * trans.c (Identifier_to_gnu): Change test for deferred constant by
407 adding guard that the entity is an E_Constant before testing presence
408 of Full_view (and remove unnecessary test that entity is not a type).
409 For a CONST_DECL used by reference, manually retrieve
410 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
411 (struct language_function): Move from utils.c to here.
412 (struct parm_attr): New structure.
413 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
414 (f_parm_attr_cache): New macro.
415 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
416 expressions for the 'First, 'Last and 'Length attributes of the
417 unconstrained array IN parameters.
418 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
419 Allocate the information structure for the function earlier, as well
420 as the language-specific part.
421 If the parameter attributes cache has been populated, evaluate the
422 cached expressions on entry.
423 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
424 N_Procedure_Call_Statement and N_Indexed_Component.
425 (Pragma_to_gnu): Translate inspection_point to an asm statement
426 containaing a comment and a reference to the object (either its address
427 for BLKmode or its value).
428 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
429 to go to DECL_INITIAL. Together with the size constraint relaxation
430 in create_var_decl, enlarges the set of situations in which an
431 identifier may be used as an initializer without implying elaboration
433 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
434 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
436 (maybe_stabilize_reference): Remove lvalues_only parameter.
437 (gnat_stabilize_reference): Adjust for above change.
438 (gnat_to_gnu): Do not set location information on the result
439 if it is a reference.
440 (add_cleanup): Add gnat_node parameter and set the location of the
442 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
443 (Exception_Handler_to_gnu_zcx): Likewise.
444 (gigi): Remove the cgraph node if the elaboration procedure is empty.
445 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
446 the former right after the latter.
447 (start_stmt_group): Make global.
448 (end_stmt_group): Likewise.
449 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
451 (gnu_program_error_label_stack): Likewise.
452 (gigi): Initialize them.
453 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
454 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
456 (push_exception_label_stack): New function.
457 (takes_address): New function.
459 * utils.c (struct language_function): Move to trans.c from here.
460 (unchecked_convert): Do not wrap up integer constants in
462 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
463 the latter for aggregate types, unexpected by later passes, and relax an
464 arbitrary size constraint on the former.
465 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
466 to compare the sizes.
467 (convert_vms_descriptor): When converting to a fat pointer type, be
468 prepared for a S descriptor at runtime in spite of a SB specification.
469 (shift_unc_components_for_thin_pointers): New function.
470 (write_record_type_debug_info): For variable-sized fields, cap the
471 alignment of the pointer to the computed alignment.
472 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
473 If REP_LEVEL is 2, do not compute the sizes.
474 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
475 (build_unc_object_type): Likewise.
476 (declare_debug_type): New function.
478 * ada-tree.def: USE_STMT: removed (not emitted anymore).
480 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
481 no statement is expandable anymore.
482 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
483 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
484 when the user requested it explicitely.
485 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
487 (get_alias_set): Return alias set 0 for a type if
488 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
490 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
491 (DECL_FUNCTION_STUB): New accessor macro.
492 (SET_DECL_FUNCTION_STUB): New setter macro.
494 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
496 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
499 2007-06-06 Jose Ruiz <ruiz@adacore.com>
501 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
502 Rename to Abort_Task_Interrupt to be able to keep the same interface
503 as the rest of the targets.
505 * s-osinte-vxworks.ads s-osinte-vxworks.adb
506 (To_VxWorks_Priority): Remove explicit "in" mode indicator
508 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
511 2007-06-06 Robert Dewar <dewar@adacore.com>
513 * a-chahan.ads: Remove obsolescent pragmas
515 * a-chlat1.ads: Minor reformatting
517 2007-06-06 Robert Dewar <dewar@adacore.com>
519 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
522 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
525 * errout.ads (Finalize): Changed interface
526 (Output_Messages): New procedure
527 (Compilation_Errors): New Interface
529 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
530 Finalize/Output_Messages interface for Errout
531 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
534 2007-06-06 Thomas Quinot <quinot@adacore.com>
535 Olivier Hainque <hainque@adacore.com>
536 Robert Dewar <dewar@adacore.com>
538 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
540 (Raise_Current_Excep): Call Debug_Raise_Exception just before
541 propagation starts, to let debuggers know about the event in a reliable
543 (Local_Raise): Moved to System.Exceptions
544 More convenient to have this as a separate unit
546 * s-except.adb, s-except.ads: New files.
548 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
549 Debug_Unhandled_Exception in System.Exceptions where it belongs
550 together with a couple of other debug helpers.
551 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
552 the former Unhandled_Exception.
554 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
555 (Warn_No_Exception_Propagation): New procedure
556 (Warn_If_No_Propagation): Rewritten for new warning generation
557 (Expand_Exception_Handlers): New warning generation
558 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
559 (Add_Exception_Label): Use Special_Exception_Package_Used for test
560 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
561 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
562 even if restriction is set (makes life easier in Check_Returns)
563 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
564 checking exception identities.
565 (Expand_Local_Exception_Handlers): Do not optimize when all others case
566 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
567 block for handler (used by Check_Returns)
568 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
569 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
570 remove all exception handlers when optimizing local raise statements.
571 (Find_Local_Handler): Use Get_Renamed_Entity
572 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
573 marked analyzed after expanding exception handlers, do not generate
574 redundant cleanup actions, because they have been constructed already.
576 2007-06-06 Thomas Quinot <quinot@adacore.com>
578 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
579 presence of this categorization pragma is mandated by the language.
580 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
583 2007-06-06 Vincent Celier <celier@adacore.com>
584 Robert Dewar <dewar@adacore.com>
586 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
587 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
588 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
589 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
590 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
591 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
592 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
593 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
594 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
595 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
596 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
598 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
599 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
600 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
601 Use variables of types File_Name_Type and Unit_Name_Type in error
603 (Get_Name): Add parameter Ignore_Special, and set it reading file name
604 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
606 Define flags Flag217-Flag230 with associated subprograms
607 (Flag_Word5): New record type.
608 (Flag_Word5_Ptr): New access type.
609 (To_Flag_Word5): New unchecked conversion.
610 (To_Flag_Word5_Ptr): Likewise.
611 (Flag216): New function.
612 (Set_Flag216): New procedure.
614 2007-06-06 Arnaud Charlet <charlet@adacore.com>
616 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
619 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
621 2007-06-06 Javier Miranda <miranda@adacore.com>
623 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
625 (Object_Specific_Data_Array): This is now internal to the package.
626 (Object_Specific_Data): This is now internal to the package.
627 (Select_Specific_Data_Element): This is now internal to the package.
628 (Select_Specific_Data_Array): This is now internal to the package.
629 (Select_Specific_Data): This is now internal to the package.
630 (Offset_To_Top_Function_Ptr): This is now public.
631 (To_Offset_To_Top_Function_Ptr): Removed.
632 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
633 local to subprogram Offset_To_Top.
634 (Predefined_DT): Removed.
635 (Typeinfo_Ptr): Removed.
636 (OSD): This function is now internal to this package.
637 (SSD): This function is now internal to this package.
638 (DT): New function that displaces the pointer to the table of primitives
639 to get access to the enclosing wrapper record.
640 (IW_Membership): Code cleanup.
641 (Offset_To_Top): Code cleanup.
642 (Predefined_DT): Removed.
643 (Register_Interface_Tag): Removed.
644 (Set_Interface_Table): Removed.
645 (Set_Offset_Index): Removed.
646 (Set_Offset_To_Top): Code cleanup.
648 (Set_Signature): Removed.
650 (Set_Tagged_Kind): Removed.
651 (Typeinfo_Ptr): Removed.
653 (Displace): Add missing check on null actual.
655 * exp_disp.ads, exp_disp.adb
656 (Select_Expansion_Utilities): Removed.
657 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
658 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
659 the interface requires a new parameter.
660 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
661 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
662 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
663 Done to remove package Select_Expansion_Utilities.
664 (Make_DT): New implementation for statically allocated dispatch tables.
665 (Make_Secondary_DT): Moved to the scope of Make_DT.
666 (Register_Primitive): Code cleanup plus incoporate the use of the new
667 function DT_Address_Attribute.
668 (Expand_Interface_Thunk): The profile of this subprogram has been
669 changed to return the Thunk_Id and the corresponding code.
670 (Fill_DT_Entry): Removed. Its functionality is now provided by
671 subprogram Register_Primitive.
672 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
673 subprogram Register_Primitive.
674 (Register_Primitive): New subprogram that incorporates the previous
675 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
676 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
677 was only required to call Make_DT_Access_Action, which is now removed.
678 (Ada_Actions): Removed
679 (Action_Is_Proc): Removed
680 (Action_Nb_Arg): Removed
681 Replace all the calls to Make_DT_Access_Action by direct calls to
682 Make_Procedure_Call_Statement or Make_Function_Call.
683 (Set_DTC_Entity_Value): New subprogram.
684 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
685 (Expand_Interface_Thunk): Add missing support for primitives that are
686 functions with a controlling result (case in which there is no need
687 to generate the thunk).
689 * exp_atag.ads, exp_atag.adb
690 (Build_DT): New subprogram that displaces the pointer to reference the
691 base of the wrapper record.
692 (Build_Typeinfo_Offset): Removed.
693 (RTE_Tag_Node): Removed.
694 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
695 (Build_Get_RC_Offset): Removed.
696 (Build_Inherit_Predefined_Prims): Removed.
697 (Build_Inherit_TSD: Removed.
698 (Build_New_TSD): Removed.
699 (Build_Set_External_Tag): Removed.
700 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
701 (Build_Set_Prim_Op_Address): Add documentation.
702 (Build_Set_TSD): Removed.
704 * rtsfind.ads, rtsfind.adb
705 (Load_Fail): If load fails and we are not in configurable run-time
706 mode, then raise Unrecoverable_Error.
707 (Text_IO_Kludge): Generate an error message if a run-time library is
708 not available in a given run-time (ie. zfp run-time).
709 (RTE_Record_Component): Add code to check that the component we search
710 for is not found in two records in the given run-time package.
711 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
712 (RE_DT_Predef_Prims_Offset): New entity
713 (RE_Static_Offset_To_Top): New entity
714 (RE_HT_Link): New entity.
715 (System_Address_Image): Addition of this run-time package.
716 (RE_Address_Image): New entity.
717 (RE_Abstract_Interface): Removed.
718 (RE_Default_Prim_Op_Count): Removed.
719 (RE_DT_Entry_Size): Removed.
720 (RE_DT_Min_Prologue_Size): Removed.
721 (RE_DT_Prologue_Size): Removed.
722 (RE_Ifaces_Table_Ptr): Removed.
723 (RE_Interface_Data_Ptr): Removed.
724 (RE_Type_Specific_Data): Removed.
725 (RE_Primary_DT): Removed.
726 (RE_Register_Interface_Tag): Removed.
727 (RE_Set_Offset_Index): Removed.
728 (RE_Set_OSD): Removed.
729 (RE_Set_SSD): Removed.
730 (RE_Set_Signature): Removed.
731 (RE_Set_Tagged_Kind): Removed.
732 (RE_Address_Array): New entity.
734 (RE_Iface_Tag): New entity.
735 (RE_Interfaces_Table): New entity.
736 (RE_No_Dispatch_Table): New entity.
737 (RE_NDT_Prims_Ptr): New entity.
738 (RE_NDT_TSD): New entity.
739 (RE_Num_Prims): New entity.
740 (RE_Offset_To_Top_Function_Ptr): New entity.
741 (RE_OSD_Table): New entity.
742 (RE_OSD_Num_Prims): New entity.
743 (RE_Predef_Prims): New entity
744 (RE_Predef_Prims_Table_Ptr): New entity.
745 (RE_Primary_DT): New entity.
746 (RE_Signature): New entity.
747 (RE_SSD): New entity.
748 (RE_TSD): New entity.
749 (RE_Type_Specific_Data): New entity.
750 (RE_Tag_Kind): New entity.
752 2007-06-06 Thomas Quinot <quinot@adacore.com>
754 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
756 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
759 2007-06-06 Robert Dewar <dewar@adacore.com>
761 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
764 2007-06-06 Vincent Celier <celier@adacore.com>
766 * a-tifiio.adb (Put, internal): For negative numbers, check that there
767 is room for at least one digit and the minus sign.
768 (Put.Put_Character): Never put a character outside of the range of
771 2007-06-06 Olivier Hainque <hainque@adacore.com>
772 Eric Botcazou <ebotcazou@adacore.com>
774 * utils2.c (build_allocator): Provide the extra arguments to
775 make_aligning_type for super-aligned objects allocated from the default
776 pool. Leave enough room for a pointer before the aligning field, and
777 store the system's allocator return value there.
778 (build_call_alloc_dealloc): When releasing a super-aligned object,
779 retrieve the system's allocator return value from where build_allocator
780 has stored it, just ahead of the adjusted address we are passed.
781 (build_call_raise): Handle properly the generation of line numbers when
782 the node is marked No_Location.
783 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
784 by using DECL_UID on ties.
785 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
787 (build_call_raise): Handle converting exception into goto; support new
789 (build_component_ref): Add new arg to build_call_raise.
791 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
793 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
794 "." in the case of nnn.xxx when nnn terminates with an underscore.
795 Parse the remaining "#" or ":" in the case of nnn#.xxx#
797 2007-06-06 Robert Dewar <dewar@adacore.com>
799 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
801 2007-06-06 Arnaud Charlet <charlet@adacore.com>
802 Vincent Celier <celier@adacore.com>
803 Robert Dewar <dewar@adacore.com>
805 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
807 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
808 ((destructor)) for adafinal, even when switch -a is used.
809 Do not issue pragma Linker_Destructor for adafinal when switch -a is
811 (Gen_Object_Files_Options): Add formatting of Linker Options, when
812 Output_Linker_Option_List is set. Suppress this formatting when
813 Zero_Formatting is set.
814 Add case for CLI_Target.
815 (System_Restrictions_Used): New flag, used to avoid generating with of
816 System_Restrictions and initialization of the data unless there is
817 some use of System.Restrictions in the partition.
818 (Check_System_Restrictions_Used): New procedure
820 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
821 since we only with this unit in the binder file if it is used elsewhere
824 2007-06-06 Vincent Celier <celier@adacore.com>
826 * bindusg.adb: Add line for @<response file>
827 Add lines for new switches -R and -Z
829 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
830 hierarchy in the list of files of the closure when -R is used
831 (Gnatbind): Accept arguments starting with '@' to indicate response
832 files and take the arguments from the response files.
833 If List_Closure is set, display the referenced files
835 2007-06-06 Javier Miranda <miranda@adacore.com>
836 Robert Dewar <dewar@adacore.com>
837 Ed Schonberg <schonberg@adacore.com>
839 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
840 which the address-clause is applied to in-mode actuals (allowed by
842 (Apply_Discriminant_Check): Do not generate a check if the type is
843 constrained by a current instance.
844 (Activate_Division_Check): New procedure
845 (Activate_Overflow_Check): New procedure
846 (Activate_Range_Check): New procedure
847 Call these new Activate procedures instead of setting flags directly
848 (Apply_Array_Size_Check): Removed, no longer needed.
849 Code clean up: remove obsolete code related to GCC 2.
850 (Get_E_Length): Protect against bomb in case scope is standard
851 (Selected_Range_Checks): If the node to be checked is a conversion to
852 an unconstrained array type, and the expression is a slice, use the
853 bounds of the slice to construct the required constraint checks.
854 Improve NOT NULL error messages
855 (Apply_Constraint_Check): If the context is a null-excluding access
856 type, diagnose properly the literal null.
858 2007-06-06 Pascal Obry <obry@adacore.com>
860 * clean.adb (Clean_Archive): Use untouched casing for the archive name
861 and the corresponding .deps file.
862 (Clean_Interface_Copy_Directory): Use untouched casing for the library
863 src directory. Minor code-clean-up. Use untouched casing for files
864 read into the library src dir.
865 (Clean_Library_Directory): Idem.
866 (Parse_Cmd_Line): Accept new switch -aP
868 2007-06-06 Javier Miranda <miranda@adacore.com>
869 Ed Schonberg <schonberg@adacore.com>
870 Robert Dewar <dewar@adacore.com>
871 Eric Botcazou <ebotcazou@adacore.com>
872 Arnaud Charlet <charlet@adacore.com>
874 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
875 applicable to types that have the With_Type flag set. Returns the
876 non-limited view of the type, if available, otherwise the type itself.
877 For class-wide types, there is no direct link in the tree, so we have
878 to retrieve the class-wide type of the non-limited view of the Etype.
879 New attributes Static_Initialization and Static_Elaboration_Desired.
880 Remove the pragma Thread_Body, and the associated flag
881 Is_Thread_Body in entities, and all related code.
882 (Suppress_Value_Tracking_On_Call): New flag
883 E_Exception has Esize and Alignment fields
884 (Universal_Aliasing): New function.
885 (Set_Universal_Aliasing): New procedure.
886 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
887 (Check_Nested_Access): New procedure.
888 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
889 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
890 (Related_Interface): New attribute. Present in dispatch table pointer
891 components of records. Set to point to the entity of the corresponding
893 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
894 (Original_Access_Type): Remove, not needed.
895 (Root_Type): Handle properly subtypes of class-wide-types.
898 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
899 class-wide types visible through limited-with clauses.
900 (Try_Primitive_Operation): When examining all primitive operations of a
901 tagged type, do not consider subprograms labeled as hidden unless they
902 belong to a private generic type with a tagged parent.
903 (Try_Object_Operation): Extensive rewriting, to handle properly various
904 overloading cases, when several ancestors may have class-wide operations
905 that are possible candidates, and when the overloaded functions return
906 array types and have defaulted parameters so that the call may be
907 interpreted as an indexing.
908 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
909 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
910 successive actuals before analyzing the call itself.
911 (Try_Primitive_Operation): A primitive operation is compatible with the
912 prefix if the prefix has a synchronized type and the type of the formal
913 is its corresponding record, as can be the case when the primitive
914 operation is declared outside of the body of the type.
915 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
916 perform homonym traversal, looking for class-wide operation matches
917 (formerly done in statements of Try_Class_Wide_Operation). Matches on
918 access parameters are now restricted to anonymous access types.
919 (Mark_Allocator): An allocator with a discriminant association parent is
921 (Try_One_Prefix_Interpretation): If the type of the object is
922 incomplete, as can be happen when it is a limited view obtained through
923 a limited_with_clause, the selected component is not part of a prefixed
925 (Complete_Object_Operation): Diagnose properly an object that is not
926 aliased when the corresponding controlling formal is an access
928 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
929 ambiguous calls in prefixed notation, where two primitives differ only
930 in that the controlling argument of one is an access parameter.
932 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
933 whether a function that returns an unconstrained type can be inlined.
934 (Process_Formals): Diagnose properly the illegal use of an incomplete
935 type in the profile of an access_to_subprogram declaration.
936 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
937 operations are attached to the corresponding record.
938 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
939 When processing a primitive of a concurrent type which implements an
940 interface change the type of all controlling formals to that of the
941 corresponding record type.
942 (Check_Synchronized_Overriding): Relax the conditional logic when trying
943 to determine the tagged type to which a primitive belongs.
944 (Check_Conventions): Capture condition to ignore a primitive operation
945 (which is shared between the loop in Check_Conventions and the one in
946 Check_Convention) in a new local function Skip_Check.
947 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
948 confusion with Check_Conventions' own Prim_Op local variable.
949 (Create_Extra_Formals): Test for a tagged result type rather than a
950 controlling result when determining whether to add a BIP_Alloc_Form
951 formal and a BIP_Final_List formal to the function.
952 (Check_Conformance); For parameters that are anonymous access types,
953 subtype conformance requires that the not null and the constant
954 indicators must match
955 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
956 to retrieve the appropriate type when processing a concurrent type
957 declared within a generic. Minor comment reformatting. Change invocation
958 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
960 (Analyze_Subprogram_Body): If the return type of a function is an
961 anonymous access to the limited view of a class-wide type, and the
962 non-limited view of the type is available, update the type of the
963 function so that code can be generated.
964 (Process_Formals): In case of access-subtype itype whose designated
965 type is also an itype (situation that happens now with access to
966 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
967 attribute to avoid backend problems.
968 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
969 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
970 anonymous types' designated types are same before testing
971 Subtypes_Statically_Match.
972 (Create_Extra_Formals): Test for a named access parameter that is a
973 controlling formal as an additional condition for adding an
974 accessibility level formal. This can occur in the subp type created for
975 dispatching calls in Expand_Dispatching_Call, and allows calling
976 Create_Extra_Formals from that procedure rather than special-casing the
978 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
979 when the function has a controlling result.
980 (Check_Returns): Add much more knowledge of the optimization of local
981 raise statements to gotos, to retain proper warnings in this case.
982 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
983 nodes when looking for last statement.
985 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
986 class-wide types visible through limited with clauses.
987 (Add_One_Interp): If the operands are anonymous access types, the
988 predefined operator on universal_access is immediately visibles
989 (Find_Unique_Type): Handle anonymous access to subprogram types just as
990 other anonymous access types.
991 (Disambiguate): Take into account CIL convention.
992 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
994 2007-06-06 Robert Dewar <dewar@adacore.com>
996 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
997 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
998 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
999 Fix lower bound of tables.
1002 * nlists.adb: Ditto.
1003 (Prev_Node, Next_Node): Change index type to Int so that it properly
1004 covers the range First_Node_Id - 1 up.
1006 2007-06-06 Javier Miranda <miranda@adacore.com>
1007 Ed Schonberg <schonberg@adacore.com>
1008 Bob Duff <duff@adacore.com>
1009 Hristian Kirtchev <kirtchev@adacore.com>
1011 * exp_aggr.ads, exp_aggr.adb:
1012 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
1013 in extension aggregates.
1014 (Flatten): Other conditions being met, an aggregate is static if the
1015 low bound given by component associations is different from the low
1016 bound of the base index type.
1017 (Packed_Array_Aggregate_Handled): If the component type is itself a
1018 packed array or record, the front-end must expand into assignments.
1019 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
1020 Init_Pr, instead of Ancestor_Is_Expression.
1021 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
1022 coextension chain root, either generate a list controller or use the
1023 already existing one.
1024 (Static_Array_Aggregate): New procedure to construct a positional
1025 aggregate that can be handled by the backend, when all bounds and
1026 components are compile-time known constants.
1027 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
1028 types covering interface types into assignments.
1029 (Replace_Type): move to Build_Record_Aggr_Code.
1030 (Expand_Record_Aggr_Code): if the target of the aggregate is an
1031 interface type, convert to the definite type of the aggregate itself,
1032 so that needed components are visible.
1033 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
1034 components and the context is an extended return statement do not
1035 create a transient block for it, to prevent premature finalization
1036 before the return is executed.
1037 (Gen_Assign): Do not generate a call to deep adjust routine if the
1038 component type is itself an array of controlled (sub)-components
1039 initialized with an inner aggregate.
1040 (Component_Check): New name for Static_Check. This name is now more
1041 appropriate, and documentation is added which was missing.
1042 (Component_Check): Add test for bit aligned component value
1043 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
1044 Tagged_Comps, name is more appropriate given added function below.
1045 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
1047 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
1048 Javier Miranda <miranda@adacore.com>
1049 Robert Dewar <dewar@adacore.com>
1051 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
1052 Terminated: Add unchecked type conversion from System.Address to
1053 System.Tasking.Task_Id when calling the predefined primitive
1055 Disable new Ada 05 accessibility check for JVM.NET targets, which
1056 cannot be implemented in a practical way.
1057 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
1058 the sources always references the tag of the actual object. Therefore,
1059 if 'Tag is applied in the sources to class-wide interface objects we
1060 generate code that displaces "this" to reference the base of the object.
1061 (Expand_N_Attribute_Reference, case Size): Return specified size if
1063 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
1064 has code that displaces the pointer of the object to manage interface
1065 types. However this code must not be executed when the prefix is a
1066 subprogram. This bug caused the wrong expansion of the internally
1067 generated assignment that fills the dispatch table when the primitive
1068 is a function returning a class-wide interface type.
1069 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
1070 Set_Attribute_Name for Name_Unaligned_Valid.
1072 2007-06-06 Ed Schonberg <schonberg@adacore.com>
1073 Gary Dismukes <dismukes@adacore.com>
1075 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
1076 If the initialization is the equivalent aggregate of the initialization
1077 procedure of the type, do not remove it.
1078 (Expand_N_Attribute_Definition_Clause): Exclude access variables
1079 initialized to null from having their expression reset to empty and
1080 note this exception in the comment.
1082 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
1083 Robert Dewar <dewar@adacore.com>
1084 Ed Schonberg <schonberg@adacore.com>
1085 Gary Dismukes <dismukes@adacore.com>
1087 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
1088 Add "with" and "use" clauses for Sem_Attr.
1089 (Expand_Current_Value): Do not replace occurences of attribute
1090 references where the prefix must be a simple name.
1092 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
1093 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
1094 Attribute_Requires_Simple_Name_Prefix.
1095 (Name_Modifies_Prefix): Body of new function.
1096 (Requires_Simple_Name_Prefix): Body of new function.
1097 (Resolve_Attribute, case Access): Improve error message for case of
1098 mismatched conventions.
1099 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
1101 (Analyze_Attribute, case 'Access): If the type of the prefix is a
1102 constrained subtype for a nominal unconstrained type, use its base type
1103 to check for conformance with the context.
1104 (Resolve_Attribute): Remove test of the access type being associated
1105 with a return statement from condition for performing accessibility
1106 checks on access attributes, since this case is now captured by
1107 Is_Local_Anonymous_Access.
1108 (Analyze_Access_Attribute): Set Address_Taken on entity
1109 (Analyze_Attribute, case Address): Set Address_Taken on entity
1110 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
1111 validating an access attribute whose prefix is a current instance.
1112 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
1113 applied to dispatching operations, if freezing is required then we set
1114 the attribute Has_Delayed_Freeze in the prefix's entity.
1115 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
1116 current scope if access of local subprogram taken
1117 (Analyze_Access_Attribute): Check legality of self-reference even if the
1118 expression comes from source, as when a single component association in
1119 an aggregate has a box association.
1120 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
1121 the prefix if it is a protected operation and the attribute is
1122 Unrestricted_Access.
1123 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
1124 reference to the base type of the context, to force a constraint check
1125 when the context is an access subtype with an explicit constraint.
1126 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
1127 node is rewritten as an interface conversion. leave unanalyzed after
1128 resolution, to ensure that type checking against the context will take
1131 2007-06-06 Ed Schonberg <schonberg@adacore.com>
1132 Javier Miranda <miranda@adacore.com>
1133 Robert Dewar <dewar@adacore.com>
1135 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
1136 wrapper when the full view of the controlling type of an inherited
1137 function that dispatches on result implements interfaces.
1138 (Expand_N_Object_Declaration): In cases where the type of the
1139 declaration is anonymous access, create finalization list for it.
1140 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
1141 if the object has no explicit initialization, to match description of
1142 functionality of pragam Persistent_BSS.
1143 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
1144 new function to build static aggregates, to replace initialization call
1145 when static initialization is desired.
1146 (Freeze_Type): Generate a list controller for an access type whenever
1147 its designated type has controlled anonymous access discriminants.
1148 (Build_Equivalent_Aggregate): New procedure to compute a static
1149 aggregate to be used as default initialization for composite types,
1150 instead of a generating a call to the initialization procedure for the
1152 (Build_Initialization_Call): When available, replace a call to the
1153 initialization procedure with a copy of the equivalent static aggregate
1155 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
1156 declarations for objects of a class-wide interface type, rather than
1157 just identifiers, to prevent visibility problems.
1158 (Expand_N_Object_Declaration): When expanding the declaration for an
1159 object of a class-wide interface type, preserve the homonym chain of
1160 the original entity before exchanging it with that of the generated
1161 renaming declaration.
1162 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
1163 active, because there is no way to handle the exception.
1164 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
1165 to do a minimum decoration of the Access_Disp_Table list.
1166 (Expand_Record_Controller): Avoid the addition of the controller between
1167 the component containing the tag of a secondary dispatch table and its
1168 adjacent component that stores the offset to the base of the object.
1169 This latter component is only generated when the parent type has
1170 discriminants ---documented in Add_Interface_Tag_Components).
1171 (Apply_Array_Size_Check): Removed, no longer needed.
1172 (Expand_N_Full_Type_Declaration): If the type has anonymous access
1173 components, create a Master_Entity for it only if it contains tasks.
1174 (Build_Init_Procedure): Suppress the tag assignment compiling under
1176 (Freeze_Record_Type): Remove code associated with creation of dispatch
1178 (Init_Secondary_Tags): Update type of actuals when generating calls to
1179 Ada.Tags.Set_Offset_To_Top
1180 (Stream_Operation_OK): Disable use of streams compiling under no
1182 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
1183 if Has_Init_Expression set.
1184 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
1185 Register_Primitive, which provides the same functionality.
1186 (Requires_Init_Proc): Return false in case of interface types.
1187 (Add_Secondary_Tables): Use the new attribute Related_Interface to
1189 (Predefined_Primitive_Freeze): Do not assume that an internal entity
1190 is always associated with a predefined primitive because the internal
1191 entities associated with interface types are not predefined primitives.
1192 Therefore, the call to Is_Internal is replaced by a call to the
1193 function Is_Predefined_Dispatching_Operation.
1194 (Make_Eq_If): When generating the list of comparisons for the
1195 components of a given variant, omit the controller component that is
1196 present if the variant has controlled components.
1198 2007-06-06 Javier Miranda <miranda@adacore.com>
1199 Hristian Kirtchev <kirtchev@adacore.com>
1200 Bob Duff <duff@adacore.com>
1202 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
1203 handle the creation of finalization lists and calls for nested
1204 coextensions when the root of the chains is part of a return statement.
1205 (Inside_A_Return_Statement): New function inside Complete_Coextension_
1207 (Expand_Record_Equality): Skip components that are interface types.
1208 (Displace_Allocator_Pointer): Add missing support for interface subtypes
1209 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
1210 with Rewrite_Coextension. Change the condition for detecting coextension
1212 (Is_Local_Access_Discriminant): Removed.
1213 (Rewrite_Coextension): New routine which rewrites a static coextension
1214 as a temporary and uses its unrestricted access in the construction of
1216 (Complete_Coextension_Finalization): New routine. Generate finalization
1217 attachment calls to all delayed coextensions.
1218 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
1219 the allocator is not a coextension itself and has delayed coextensions.
1220 If the current allocator is controlled, but also a coextension, delay
1221 the generation of the finalization attachment call.
1222 Rename local variable "Node" to "Nod" in order to avoid confusion with
1224 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
1225 limited types that are not inherently limited. Such an allocator is
1226 illegal, but is generated by the expander for a return statement, to
1227 copy the result onto the secondary stack. This is the only case where a
1228 limited object can be copied. Generate code to displace the pointer
1229 to the object if the qualified expression is a class-wide interface
1230 object. Such displacement was missing and hence the copy of the object
1232 (Apply_Accessibility_Check): Handle allocated objects initialized in
1234 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
1235 and Expand_Allocator_Expression. Allocating class-wide interface objects
1236 this routine displaces the pointer to the allocated object to reference
1237 the component referencing the corresponding secondary dispatch table.
1238 Expand_Allocator_Expression): Add missing support to allocate class-wide
1239 interface objects initialized with a qualified expression.
1240 (Get_Allocator_Final_List): Test for an anonymous access type that is a
1241 function result type, and use the finalization list associated with the
1242 function scope in that case (such an anonymous type should not be
1243 treated like an access parameter's type).
1245 2007-06-06 Ed Schonberg <schonberg@adacore.com>
1246 Gary Dismukes <dismukes@adacore.com>
1247 Javier Miranda <miranda@adacore.com>
1249 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
1250 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
1251 required exception handler.
1252 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
1253 properly the case of a function whose return type is a limited
1254 class-wide interface type. Modify the code of the accessibility
1255 check to handle class-wide interface objects. In this case we need to
1256 displace "this" to reference the primary dispatch table to get access
1257 to the TSD of the object (to evaluate its accessibility level).
1258 (Expand_N_Extended_Return_Statement): Test for a tagged result type
1259 rather than a controlling result as one of the conditions for
1260 generating tests of the implicit BIP_Alloc_Form formal. The
1261 initialization assignment is also handled according to whether the
1262 result is tagged instead of controlling.
1263 In the case where the init assignment is inserted in the "then" part of
1264 the allocation conditional, rewrite the target to be a dereference of
1265 the implicit BIP_Object_Access formal.
1266 If the returned value is unconstrained and created on the secondary
1267 stack, mark the enclosing block and function so that the secondary
1268 stack is not reclaimed on return.
1269 Treat returns from functions with controlling results similarly to
1270 returns from functions with unconstrained result subtypes.
1271 If the object returned is unconstrained, and an allocator must be
1272 created for it, analyze the allocator once the block for the extended
1273 return is installed, to ensure that finalizable components
1274 of the expression use the proper finalization list. Guard the call to
1275 Move_Final_List with a check that there is something to finalize.
1276 (Make_Tag_Ctrl_Assignment): Use "old" handling
1277 of controlled type assignment for virtual machines, since new code uses
1278 unsupported features (such as direct access to bytes in memory).
1280 2007-06-06 Gary Dismukes <dismukes@adacore.com>
1281 Ed Schonberg <schonberg@adacore.com>
1283 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
1284 accessibility actual, check for the case of an aliased object that has
1285 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
1286 we fall into processing for the attribute rather than the name of the
1288 (Expand_Inline_Call): If an actual is a literal, and the corresponding
1289 formal has its address taken in the body, create a temporary to capture
1290 value. If the return type is a limited interface, do not treat the
1291 return value as Controlled.
1292 (Is_In_Place_Function): If the return type is a limited interface,
1293 treat as returning in place. The actual returned object may not always
1294 be limited, but the caller has to assume that it is returned in place.
1295 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
1296 context of an allocator, use the correct finalization chain (that is,
1297 the chain belonging to the access type, rather than the chain belonging
1298 to the current scope).
1299 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
1300 result type rather than a controlling result as a precondition for
1301 adding an allocation form actual to a build-in-place call.
1302 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
1303 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
1304 primitive in the dispatch tables. This work is now done by Make_DT when
1306 (Register_Predefined_DT_Entry): Removed.
1307 (Add_Return): If end label is not present, use sloc of last statement
1308 for generated return statement in procedure, for better gdb behavior
1310 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
1311 object address nodes to ensure proper processing by routines like
1313 (Expand_Call): Fix generation of validity check for parameter
1314 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
1315 the allocation form parameter if the result subtype is constrained,
1316 except when the function has a controlling result.
1317 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
1318 rather than Is_Controlled and Has_Controlled_Component, since we want to
1319 include class-wide result types in this treatment. Also test for a
1320 controlling result, since that also requires passing a finalization
1322 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
1323 even when the result subtype is constrained, to handle calls involving
1324 controlling results.
1325 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
1326 is now called even when the result subtype is constrained, to handle
1327 calls involving controlling results.
1328 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
1329 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
1330 now performs the test).
1331 (Make_Build_In_Place_Call_In_Object_Declaration):
1332 Add_Alloc_Form_Actual_* is now called even when the result subtype is
1333 constrained, to handle calls involving controlling results.
1334 (Add_Return): Accomodate rewritten pattern from local raise to goto
1335 transformation, so that we still recognize an transfer statement
1336 and do the right thing here in that case.
1337 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
1338 and end of subprogram code.
1339 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
1340 support for primitives that are functions (without formals) with a
1342 (Inherited_From_Formal): If the actual subtype has not generic parent
1343 type, it is not an actual for a formal derived type, and there is no
1344 operation to inherit from the formal.
1346 2007-06-06 Ed Schonberg <schonberg@adacore.com>
1347 Thomas Quinot <quinot@adacore.com>
1349 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
1350 inserted cleanup code appropriately for GDB use.
1351 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
1352 exception handler for Deep_Adjust or Deep_Finalize.
1353 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
1354 Raise_From_Controlled_Operation is available, use a call to that
1355 subprogram instead of a plain "raise Program_Error" node to raise
1356 Program_Error if an exception is propagated from an Adjust or Finalize
1358 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
1359 appears in the optional statement list of a triggering alternative, the
1360 scope actions can be inserted directly there, and not in the list that
1361 includes the asynchronous select itself.
1363 2007-06-06 Ed Schonberg <schonberg@adacore.com>
1364 Robert Dewar <dewar@adacore.com>
1365 Hristian Kirtchev <kirtchev@adacore.com>
1367 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
1368 generated exception handler appropriately when debugging generated code.
1369 Deal properly with No_Exception_Propagation restriction mode.
1370 (Expand_N_Abort_Statement): Add an unchecked type conversion from
1371 System.Address to System.Tasking.Task_Id when processing the result of
1372 the predefined primitive _disp_get_task_id.
1373 (Expand_N_Asynchronous_Select): Clarify comment.
1374 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
1375 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
1376 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
1377 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
1378 privals and for generated call to Complete_Entry_Body, for better gdb
1380 (Copy_Result_Type): Utility to construct a parameter and result profile
1381 for protected functions whose return type is an anonymous access to
1383 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
1385 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
1386 point when the local-raise-to-goto transformation has taken place.
1388 2007-06-06 Javier Miranda <miranda@adacore.com>
1389 Nicolas Setton <setton@adacore.com>
1391 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
1392 functionality when the backend is generating code.
1393 Otherwise any serious error
1394 reported by the backend calling the frontend routine Error_Msg
1395 changes the Compilation_Mode to Check_Semantics, disables the
1396 functionality of this routine and causes the generation of
1397 spureous additional errors.
1399 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
1400 debugging information now generated by the compiler for fat-pointer
1402 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
1404 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
1406 2007-06-06 Thomas Quinot <quinot@adacore.com>
1408 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
1409 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
1410 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
1411 For a remote call to a function with a classwide return type, apply an
1412 E.4(18) check to the returned value.
1413 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
1414 stream attributes of the designated type of an RACW, as they are not
1415 dispatching primitive operations.
1417 2007-06-06 Geert Bosch <bosch@adacore.com>
1419 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
1421 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
1423 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
1424 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
1426 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
1428 2007-06-06 Javier Miranda <miranda@adacore.com>
1430 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
1431 attribute compiling package Ada.Tags under No_Run_Time_Mode.
1433 2007-06-06 Javier Miranda <miranda@adacore.com>
1435 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
1436 deallocation of class-wide interface objects.
1437 (Expand_Dispatching_Constructor_Call): Take into account that if the
1438 result of the dispatching constructor is an interface type, the
1439 function returns a class-wide interface type; otherwise the returned
1440 object would be actual. The frontend previously accepted returning
1441 interface types because Expand_Interface_Actuals silently performed
1442 the management of the returned type "as if" it were a class-wide
1444 (Expand_Dispatching_Constructor_Call): Replace call to
1445 Make_DT_Access_Action by direct call to Make_Function_Call.
1447 2007-06-06 Robert Dewar <dewar@adacore.com>
1448 Ed Schonberg <schonberg@adacore.com>
1450 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
1451 compute masking constant, since we now set Esize properly to the
1453 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
1454 to match the alignment.
1455 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
1456 packed arrays of 8 bits or less.
1458 * freeze.adb (Freeze_Entity): When freezing the formals of a
1459 subprogram, freeze the designated type of a parameter of an access type
1460 only if it is an access parameter.
1461 Increase size of C convention enumeration object
1462 (Freeze_Entity, array type case): Make sure Esize value is properly
1463 adjusted for the alignment if it is known.
1464 (Freeze_Entity, array type case): When checking bit packed arrays for
1465 the size being incorrect, check RM_Size, not Esize.
1466 (Freeze_Record_Type): Check for bad discriminated record convention
1467 (In_Exp_Body): Return true if the body is generated for a subprogram
1468 renaming, either an attribute renaming or a renaming as body.
1469 (Check_Itype): If the designated type of an anonymous access component
1470 is a non-protected subprogram type, indicate that it is frozen, to
1471 prevent out-of-scope freeze node at some subsequent call.
1472 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
1473 only if the subprogram is neither imported nor exported, as well as the
1474 NCA descriptor class if the subprogram is exported.
1476 2007-06-06 Ed Schonberg <schonberg@adacore.com>
1477 Arnaud Charlet <charlet@adacore.com>
1478 Robert Dewar <dewar@adacore.com>
1479 Gary Dismukes <dismukes@adacore.com>
1481 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
1482 default initialization on an imported object, when there is no
1483 initialization call generated for it.
1484 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
1487 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
1488 Static_Elaboration_Desired.
1489 Remove pragma Thread_Body.
1490 Implement a new pragma No_Body
1491 Removes the Explicit_Overriding pragma
1492 Remove Optional_Overriding pragma
1493 (Prag): Deal with Universal_Aliasing.
1494 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
1495 Pragma_CIL_Constructor): New names.
1497 * sem_cat.adb (Validate_Object_Declaration): An initialization that
1498 uses the equivalent aggregate of a type must be treated as an implicit
1500 (Get_Categorization): Check a unit for pragma Preelaborate only if it
1501 has none of the other categories.
1502 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
1503 to apply Import to an object renaming declaration.
1505 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
1506 from a C++ class should be declared as limited and that it will be
1507 considererd limited.
1508 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
1509 should be declared as limited and that it will be considererd limited.
1510 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
1511 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
1512 (Analyze_Pragma): Deal with Universal_Aliasing.
1513 (Sig_Flags): Likewise.
1514 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
1515 (Overflow_Checks_Unsuppressed): New flag.
1516 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
1517 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
1518 case of JVM or .NET targets, and compiling user code.
1519 Add debugging convenience routine rv
1521 2007-06-06 Robert Dewar <dewar@adacore.com>
1523 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
1525 (Build_Elementary_Input_Call): For floating-point use right type in the
1526 absence of strange size or stream size clauses.
1527 (Build_Elementary_Write_Call): Same fix
1528 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
1529 set to value that does not match base type size.
1531 2007-06-06 Ed Schonberg <schonberg@adacore.com>
1533 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
1534 object of a limited type can be initialized with a call to a function
1535 that returns in place. If the limited type has unknown discriminants,
1536 and the underlying type is a constrained composite type, build an actual
1537 subtype from the function call, as is done for private types.
1538 (Side_Effect_Free): An expression that is the renaming of an object or
1539 whose prefix is the renaming of a object, is not side-effect free
1540 because it may be assigned through the renaming and its value must be
1541 captured in a temporary.
1542 (Has_Controlled_Coextensions): New routine.
1543 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
1544 as is done for other limited types.
1545 (Non_Limited_Designated_Type): new predicate.
1546 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
1548 Remove all handling of with_type clauses.
1550 * par-ch10.adb: Remove all handling of with_type clauses.
1552 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
1553 checksum if the main source could not be parsed.
1554 (Loat_Unit): When processing a child unit, determine properly whether
1555 the parent unit is a renaming when the parent is itself a child unit.
1556 Remove handling of with_type clauses.
1558 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
1559 (Set_Is_Static_Coextension): New procedure.
1560 (Has_Local_Raise): New function
1561 (Set_Has_Local_Raise): New procedure
1562 (Renaming_Exception): New field
1563 (Has_Init_Expression): New flag
1564 (Delay_Finalize_Attach): Remove because flag is obsolete.
1565 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
1566 Remove all handling of with_type clauses.
1567 (Exception_Junk): Can now be set in N_Block_Statement
1569 2007-06-06 Vincent Celier <celier@adacore.com>
1570 Robert Dewar <dewar@adacore.com>
1572 * frontend.adb (Frontend): Return immediately if the main source could
1573 not be parsed, because of preprocessing errors.
1575 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
1576 (Gnat1drv): Exit with errors if the main source could not be parsed,
1577 because of preprocessing errors.
1578 (Check_Rep_Info): New procedure
1580 2007-06-06 Robert Dewar <dewar@adacore.com>
1582 * g-hesorg.ads, g-heasor.ads,
1583 g-busorg.ads, g-bubsor.ads: Update documentation
1584 GNAT.Heap/Bubble_Sort_G is now pure
1586 2007-06-06 Robert Dewar <dewar@adacore.com>
1588 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
1590 2007-06-06 Robert Dewar <dewar@adacore.com>
1591 Ed Schonberg <schonberg@adacore.com>
1593 * g-comlin.ads, g-comlin.adb:
1594 Add new warning for renaming of function return objects
1596 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
1597 (Tree_Read): Use size of object instead of type'object_size, since the
1598 latter is incorrect for packed array types.
1599 (Tree_Write): Same fix
1601 * opt.ads: Add new warning for renaming of function return objects
1602 (Generating_Code): New boolean variable used to indicate that the
1603 frontend as finished its work and has called the backend to process
1604 the tree and generate the object file.
1605 (GCC_Version): Is now private
1606 (Static_Dispatch_Tables): New constant declaration.
1607 (Overflow_Checks_Unsuppressed): New flag.
1608 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
1609 (List_Closure): New flag for gnatbind (-R)
1610 Zero_Formatting: New flag for gnatbind (-Z)
1611 (Special_Exception_Package_Used): New flag.
1612 (Warn_On_Unrepped_Components): New flag.
1614 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
1615 unit is a compilation unit, rather than relying on its scope, so that
1616 Standard can be renamed.
1617 (Analyze_Object_Renaming): Add new warning for renaming of function
1619 Also reject attempt to rename function return object in Ada 83 mode.
1620 (Attribute_Renaming): In case of tagged types, add the body of the
1621 generated function to the freezing actions of the type.
1622 (Find_Type): A protected type is visible right after the reserved word
1623 "is" is encountered in its type declaration. Set the entity and type
1624 rather than emitting an error message.
1625 (New_Scope): Properly propagate Discard_Names to inner scopes
1626 (Check_Nested_Access): New procedure.
1627 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
1628 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
1630 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
1631 Add new warning for renaming of function return objects
1632 (Check_References): Suppress warnings for objects whose type or
1633 base type has Warnings suppressed.
1634 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
1635 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
1637 2007-06-06 Vincent Celier <celier@adacore.com>
1638 Emmanuel Briot <briot@adacore.com>
1639 Olivier Hainque <hainque@adacore.com>
1641 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
1642 absolute value of Header.Block_Size when displaying the freed physical
1644 (Allocate): Compute Storage_Address using Integer_Address, not
1645 Storage_Offset, because the range of Storage_Offset may not be large
1647 (Configure): New parameter Low_Level_Traces
1648 (Allocate, Deallocation, Free_Physically): Added low-level traces
1649 (Configure): new parameter Errors_To_Stdout.
1650 (Output_File): new subprogram
1651 (Deallocate, Dereference): Send error messages to the proper stream
1652 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
1653 documented. Previous code would send it to the current output file
1654 defined in GNAT.IO, which might not be stdout
1655 (Is_Valid): Adjust comment to mention that a positive reply means that
1656 Header_Of may be used to retrieve the allocation header associated with
1657 the subprogram Storage address argument. Return False early if this
1658 address argument is misaligned.
1660 2007-06-06 Vincent Celier <celier@adacore.com>
1662 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
1664 (ASIS_Main): New global variable
1665 (Get_Closure): New procedure
1666 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
1667 check, metric or pretty. Call Get_Closure in this case.
1668 (Check_Files): For GNAT LIST, check all sources of all projects when
1669 All_Projects is True.
1670 (GNATCmd): Accept -U for GNAT LIST
1672 2007-06-06 Vincent Celier <celier@adacore.com>
1674 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
1676 Correct error message when invocation of the linker fails
1677 Add explicit size clause for the C imported variables
1678 Object_List_File_Supported and Using_GNU_Linker to emphasize that
1679 we expect char size.
1680 Read target parameters earlier, since this is needed to set
1681 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
1684 2007-06-06 Vincent Celier <celier@adacore.com>
1687 Add 3 spaces before the default project directory when displaying
1688 the project search path.
1689 Add new command line switch '-l' to display license information.
1691 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
1693 * gmem.c: Add support for timestamps on memory operations.
1695 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
1696 operations (not used currently, just foundation for future
1697 enhancements). Add possibility to perform full dump of gmem.out file.
1698 (Print_Back_Traces): Declare accesses to root arrays constants since
1699 they aren't modified.
1700 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
1702 2007-06-06 Vincent Celier <celier@adacore.com>
1704 * gnatsym.adb: Update Copyright notice
1705 (Parse_Cmd_Line): Accept new switch -D
1706 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
1709 * prj.ads (Policy): New policy Direct
1710 (Yes_No_Unknown): New enumeration type
1711 (Project_Data): New component Libgnarl_Needed
1713 * prj-nmsc.adb (Check_For_Source): When recording a source file make
1714 use the untouched pathname casing.
1715 (Get_Directories): Ensure that the Display_Exec_Directory is using the
1716 proper casing on non case-sensitive platforms like Windows.
1717 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
1718 on all platforms, as it is not possible to know which one is allowed
1719 before processing the project files.
1720 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
1721 specified when symbol policy is Direct. Check that when there is a
1722 symbol file defined (either by default or with attribute
1723 Library_Symbol_File) it is not the same as the reference symbol file.
1724 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
1725 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
1727 (Record_Ada_Source): Record a source that has been locally removed in an
1730 * symbols.ads (Policy): New policy Direct
1732 * symbols-vms.adb (Initialize): Take new policy Direct in case
1735 2007-06-06 Vincent Celier <celier@adacore.com>
1737 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
1738 Correct obvious bug (return Dir; instead of return Directory;).
1739 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
1741 2007-06-06 Thomas Quinot <quinot@adacore.com>
1743 * g-pehage.adb (Produce): Open output files in Binary mode, so that
1744 they have UNIX line endings (LF only) even on Windows, and thus pass
1745 all GNAT style checks.
1747 2007-06-06 Emmanuel Briot <briot@adacore.com>
1749 * g-regpat.adb (Quote): Fix improper quoting of '.'
1751 2007-06-06 Thomas Quinot <quinot@adacore.com>
1753 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
1754 default, set False on a per-runtime basis.
1755 (Need_Netdb_Buffer): New constant.
1757 * g-socket.ads, g-socket.adb: Import new package
1758 GNAT.Sockets.Thin.Task_Safe_NetDB.
1759 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
1760 binding to obtain proper message.
1761 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
1762 Replace various occurrences of Arry (Arry'First)'Address with the
1763 equivalent Arry'Address (GNAT always follows implementation advice from
1765 (Get_Host_By_Address, Get_Host_By_Name,
1766 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
1767 instead, rely on platform-specific task safe netdb operations provided
1770 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
1771 parameter Process_Blocking_IO.
1772 (Host_Error_Messages): Add stub body.
1773 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
1774 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
1775 Safe_Getservbyport): Move functions into new child package
1777 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
1778 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
1779 (In_Addr): Add alignment clause.
1781 2007-06-06 Robert Dewar <dewar@adacore.com>
1783 * g-trasym.ads, g-traceb.ads: Update list of supported targets
1784 Add note about symbolic traceback
1786 2007-06-06 Pascal Obry <obry@adacore.com>
1788 * hostparm.ads (Normalized_CWD): Use the host directory separator
1789 instead of the hardcoded forward slash which is not the proper
1790 character on Windows for example.
1793 2007-06-06 Vincent Celier <celier@adacore.com>
1794 Arnaud Charlet <charlet@adacore.com>
1796 * a-clrefi.adb, a-clrefi.ads: New files
1798 * impunit.adb: Add s-os_lib in the list of user visible units.
1799 (Non_Imp_File_Names_95): Add a-clrefi to this list
1800 Remove obsolete run-time entries.
1801 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
1802 "a-exetim" -- Ada.Execution_Time
1803 "a-extiti" -- Ada.Execution_Time.Timers
1805 * mlib-prj.ads, mlib-prj.adb
1806 (Build_Library): Use untouched object dir and library dir. At the
1807 same time makes sure that the checks are done using the canonical
1808 form. Removes hard-coded directory separator and use the proper host
1810 (Process_Project): Do not look in object directory to check if libgnarl
1811 is needed for a library, if there is no object directory.
1812 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
1814 (Build_Library): When invoking gnatbind, use a response file if the
1815 total size of the arguments is too large.
1817 * Makefile.rtl: (g-sttsne): New object file.
1818 Add entry for a-clrefi, s-utf_32, System.Exceptions
1820 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
1821 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
1822 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
1823 Change g-string to s-string, g-os_lib to s-os_lib
1824 Change all g-utf_32 references to s-utf_32
1826 2007-06-06 Tristan Gingold <gingold@adacore.com>
1827 Olivier Hainque <hainque@adacore.com>
1829 * init.c: Do not adjust IP of an imported VMS exception of ia64.
1830 LIB$STOP is called to raise an exception and the IP of the exception
1831 is the instruction right after the call.
1832 (__gnat_adjust_context_for_raise, AIX): Implement.
1833 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
1834 adjust_context_for_raise before Raise_From_Signal_Hanler.
1835 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
1836 siginfo is passed to the handler, necessary to let the zcx propagation
1837 engine unwind past it.
1839 2007-06-06 Olivier Hainque <hainque@adacore.com>
1841 * initialize.c (__gnat_initialize for vxworks): Update documentation
1842 on the ZCX support, using different sets of crtstuff objects than with
1845 2007-06-06 Robert Dewar <dewar@adacore.com>
1847 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
1849 (Layout_Type): Fix recomputation of size from alignment.
1851 2007-06-06 Ed Schonberg <schonberg@adacore.com>
1852 Javier Miranda <miranda@adacore.com>
1854 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
1855 association in an instance.
1856 (Copy_Generic_Node): If the node is a string literal, no need to copy
1858 (Is_Generic_Formal): For a formal subprogram, the declaration is the
1859 grandparent of the entity.
1860 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
1861 to simplify handling of formal interfaces that derive from other formal
1863 (Instantiate_Subprogram_Body): The defining unit name of the body of
1864 the instance should be a defining identifier.
1865 (Install_Formal_Packages): make global to the package, for use in
1866 instantiations of child units.
1867 (Analyze_Package_Instantiation): Do not attempt to set information on an
1868 enclosing master of an entry when expansion is disabled.
1869 (Instantiate_Type): If the actual is a tagged synchronized type and the
1870 generic ancestor is an interface, create a generic actual for the
1871 corresponding record.
1872 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
1873 declaration, to ensure that the interface list is processed correctly.
1874 (Inline_Instance_Body): If enclosing scope is an instance body, remove
1875 its entities from visibiility as well.
1876 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
1877 given with a named association, analyze the expression only, not the
1878 discriminant association itself.
1879 (Reset_Entity): If the analysis of a selected component is transformed
1880 into an expanded name in the prefix of a call with parameters, do not
1881 transform the original node into an expanded name, to prevent visibility
1882 errors in the case of nested generics.
1883 (Check_Private_View): For an array type, check whether the index types
1884 may need exchanging.
1886 2007-06-06 Arnaud Charlet <charlet@adacore.com>
1887 Vincent Celier <celier@adacore.com>
1889 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
1890 since both are separated.
1891 Add support for imported CIL packages.
1892 Add further special handling of "value_type" for CIL.
1893 Add special handling of pragma Import for CIL.
1895 * make.ads, make.adb: When switch -eS is used, direct all outputs to
1896 standard output instead of standard error, except errors.
1897 (Absolute_Path): Use untouched casing for the parent directory.
1898 (Add_Library_Search_Dir): Use the untouched directory name.
1899 (Add_Source_Search_Dir): Idem.
1900 (Change_To_Object_Directory): Update output to use proper casing.
1901 (Create_Binder_Mapping_File): Use the untouched filename to set
1903 (Gnatmake): Use untouched library and executable directory names.
1904 (Insert_Project_Sources): Use untouched filename for spec and body.
1905 (Is_In_Object_Directory): Use untouched object directory.
1906 (Mark_Directory): Idem.
1907 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
1908 contains the non-canonical filename in all cases.
1909 (Change_To_Object_Directory): In verbose mode, display the name of the
1910 object directory we're changing to.
1911 (Compile_Sources): Make sure, when a project file is used, to compile
1912 the body of the unit, when there is one, even when only the spec is
1913 recorded in an ALI file.
1914 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
1916 (Report_Compilation_Failed): New procedure
1917 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
1918 procedures moved from the spec to the body.
1919 (Extract_Failure): Removed, not used
1920 Replace explicit raises of exception Bind_Failed and Link_Failed with
1921 calls to Make_Failed with the proper message.
1922 Replace explicit raises of exception Compilation_Failed with calls to
1923 procedure Report_Compilation_Failed.
1924 (Initialize): Create mapping files unconditionally when using project
1927 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
1928 Pragma_CIL_Constructor): New names.
1930 * targparm.ads, targparm.adb
1931 (Compiler_System_Version): Removed, no longer used.
1932 (Get_Target_Parameters): Relax checks on system.ads validity. Add
1933 handling of two new system flags: JVM and CLI.
1935 2007-06-06 Jose Ruiz <ruiz@adacore.com>
1936 Arnaud Charlet <charlet@adacore.com>
1938 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
1939 time, use the default s-interr body that provides interrupt support
1941 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
1942 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
1943 g-soccon.ads, and s-taprop.adb for the marte run time.
1944 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
1945 timers are supported on marte.
1946 (EH_MECHANISM for marte): Do not use ZCX.
1947 (THREADSLIB for marte): Use -lmarte.
1948 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
1949 Add mlib-tgt-specific.o to gnatmake objects
1950 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
1952 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
1953 6, either kernel or rtp, use a specialized version of s-osinte.ads.
1955 2007-06-06 Pascal Obry <obry@adacore.com>
1957 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
1959 2007-06-06 Vincent Celier <celier@adacore.com>
1961 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
1962 separator, use instead the proper host directory separator.
1963 (Copy_ALI_Files): Make sure that an already existing ALI file in the
1964 ALI copy dir is writable, before doing the copy.
1966 * mlib-utl.ads, mlib-utl.adb:
1967 (Gcc): If length of command line is too long, put the list of object
1968 files in a response file, if this is supported by the platform.
1969 (Ar): If invocation of the archive builder is allowed to be done in
1970 chunks and building it in one shot would go above an OS dependent
1971 limit on the number of characters on the command line, build the archive
1974 2007-06-06 Vincent Celier <celier@adacore.com>
1976 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
1977 of specified object file is not equal to base name of source.
1979 2007-06-06 Javier Miranda <miranda@adacore.com>
1980 Hristian Kirtchev <kirtchev@adacore.com>
1981 Ed Schonberg <schonberg@adacore.com>
1983 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
1984 the full type declaration.
1985 (Analyze_Component_Declaration): Add local variable E to capture the
1986 initialization expression of the declaration. Replace the occurences of
1987 Expression (N) with E.
1988 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
1989 limited interface object with a function call.
1990 (Array_Type_Declaration): If the declaration lacks subtype marks for
1991 indices, create a simple index list to prevent cascaded errors.
1992 (Is_Null_Extension): Ignore internal components created for secondary
1993 tags when checking whether a record extension is a null extension.
1994 (Check_Abstract_Interfaces): Add missing support for interface subtypes
1995 and generic formals.
1996 (Derived_Type_Declaration): Add missing support for interface subtypes
1997 and generic formals.
1998 (Analyze_Object_Declaration): If an initialization expression is
1999 present, traverse its subtree and mark all allocators as static
2001 (Add_Interface_Tag_Component): When looking for components that may be
2002 secondary tags, ignore pragmas that can appear within a record
2004 (Check_Abstract_Overriding): an inherited function that dispatches on
2005 result does not need to be overriden if the controlling type is a null
2007 (Mentions_T): Handle properly a 'class attribute in an anonymous access
2008 component declaration, when the prefix is an expanded name.
2009 (Inherit_Component): If the derivation is for a private extension,
2010 inherited components remain visible and their ekind should not be set
2012 (Find_Type_Of_Object): In the case of an access definition, always set
2013 Is_Local_Anonymous_Access. We were previously not marking the anonymous
2014 access type of a return object as a local anonymous type.
2015 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
2016 range with character literal bounds.
2017 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
2018 (Access_Subprogram_Declaration): Indicate that the type declaration
2019 depends on an incomplete type only if the incomplete type is declared
2021 (Analyze_Subtype_Declaration): Handle properly subtypes of
2022 synchronized types that are tagged, and that may appear as generic
2024 (Access_Subprogram_Declaration): An anonymous access to subprogram can
2025 appear as an access discriminant in a private type declaration.
2026 (Add_Interface_Tag_Components): Complete decoration of the component
2027 containing the tag of a secondary dispatch table and the component
2028 containing the offset to the base of the object (this latter component
2029 is only generated when the parent type has discriminants --as documented
2031 (Inherit_Components): Use the new decoration of the tag components to
2032 improve the condition that avoids inheriting the components associated
2033 with secondary tags of the parent.
2034 (Build_Discriminanted_Subtype): Indicate to the backend that the
2035 size of record types associated with dispatch tables is known at
2037 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
2038 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
2039 to include task, protected, and synchronized interfaces as limited
2041 (Process_Discriminants): Remove the setting of
2042 Is_Local_Anonymous_Access on the type of (anonymous) access
2043 discriminants of nonlimited types.
2044 (Analyze_Interface_Type_Declaration): Complete the decoration of the
2045 class-wide entity it is is already present. This situation occurs if
2046 the limited-view has been previously built.
2047 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
2049 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
2052 2007-06-06 Ed Schonberg <schonberg@adacore.com>
2054 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
2055 of the type that specify the position of interface tags when the type
2056 inherits discriminated array components from the parent type.
2057 If a component is initialized with a box, check for the presence of a
2058 default expression in its declaration before using its default
2059 initialization procedure.
2060 (Resolve_Record_Aggregate): If a component is box-initialized, and the
2061 component type has a discriminants, create a partial aggregate for it
2062 by copying the discriminants of the component subtype.
2063 Reject attempt to initialize a discriminant with a box.
2064 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
2065 associated with dispatch tables is known at compile time.
2066 (Get_Value): If an association in a record aggregate has a box
2067 association, and the corresponding record component has a default
2068 expression, always copy the default expression, even when the
2069 association has a single choice, in order to create a proper
2070 association for the expanded aggregate.
2072 2007-06-06 Ed Schonberg <schonberg@adacore.com>
2073 Robert Dewar <dewar@adacore.com>
2075 * par-ch12.adb (P_Generic_Associations): The source position of an
2076 Others association is that of the others keyword, not that of the token
2077 that follows the box.
2078 (P_Formal_Type_Definition): Handle formal access types that carry a
2081 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
2082 multiple identifier are present, save Scan_State before scanning the
2083 colon, to ensure that separate trees are constructed for each
2085 (P_Identifier_Declarations): For object declaration, set new flag
2086 Has_Init_Expression if initialization expression present.
2087 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
2088 Improve NOT NULL error messages
2090 2007-06-06 Robert Dewar <dewar@adacore.com>
2092 * par-ch4.adb: (P_Name): Recover from literal used as name
2094 2007-06-06 Vincent Celier <celier@adacore.com>
2096 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
2098 In the "not" case, recursive call with Complemented set to True.
2099 Do not allow "or" or "and" operators when Complemented is True.
2101 2007-06-06 Vincent Celier <celier@adacore.com>
2103 * prj.adb (Project_Empty): Gives default value for new component
2106 * prj-attr.ads: Minor reformatting
2108 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
2109 directory using the untouched casing.
2110 (For_All_Source_Dirs): Idem.
2112 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
2113 directories specified with switches -aP.
2114 (Add_Search_Project_Directory): New procedure
2115 (Initialize_Project_Path): Put the directories in table
2116 Search_Directories in the project search path.
2117 (Initialize_Project_Path): For VMS, transform into canonical form the
2120 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2122 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
2123 true if configurable run-time or No_Run_Time is set.
2124 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
2125 processing an unit which is not the one being compiled.
2127 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2129 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
2130 Replace UC by Ada.UC
2132 * s-bitops.adb: Get rid of System.Pure_Exceptions.
2133 Replace UC by Ada.UC
2135 2007-06-06 Robert Dewar <dewar@adacore.com>
2137 * scng.adb: (Check_End_Of_Line): Deal with very long lines
2139 2007-06-06 Robert Dewar <dewar@adacore.com>
2141 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
2142 Remove no longer used nodes.
2144 2007-06-06 Javier Miranda <miranda@adacore.com>
2145 Ed Schonberg <schonberg@adacore.com>
2146 Robert Dewar <dewar@adacore.com>
2148 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
2149 on obsolescent withed unit in case of limited-withed units.
2150 (Analyze_Compilation_Unit): Add guard to code that removed an
2151 instantiation from visibility, to prevent compiler aborts when
2152 instantiation is abandoned early on.
2153 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
2154 current unit being analyzed, and Distinguish local incomplete types
2155 from limited views of types declared elsewhere.
2156 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
2157 to state that the class-wide entity is shared by the limited-view
2159 (Analyze_With_Clause): Improve placement of flag for case of
2161 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
2162 manner similar to GNAT.Current_Exception. This is a violation of
2163 restriction (No_Exception_Propagation), and also inhibits the
2164 optimization of local raise to goto.
2165 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
2166 and if so set Most_Recent_Exception_Used flag in Opt, and also check
2167 for violation of restriction No_Exception_Propagation.
2169 2007-06-06 Javier Miranda <miranda@adacore.com>
2170 Hristian Kirtchev <kirtchev@adacore.com>
2171 Gary Dismukes <dismukes@adacore.com>
2173 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
2174 use of entity Exception_Occurrence if it is not available in the
2177 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
2178 concurrent types are declared within an Ada 2005 generic, build their
2179 corresponding record types since they are needed for overriding-related
2181 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
2182 protected type does not implement a task interface or a nonlimited
2184 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
2185 type does not implement a protected interface or a nonlimited interface.
2186 (Single_Task_Declaration, Single_Protected_Declaration): use original
2187 entity for variable declaration, to ensure that debugging information
2188 is correcty generated.
2189 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
2190 routines if the expander is not active.
2191 (Analyze_Task_Body): Mark all handlers to stop optimization of local
2192 raise, since special things happen for task exception handlers.
2194 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
2195 concurrent types declared within a generic.
2196 (Check_Dispatching_Operation): Do not emit warning about late interface
2197 operations in the context of an instance.
2198 (Check_Dispatching_Call): Remove restriction against calling a
2199 dispatching operation with a limited controlling result.
2200 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
2201 Register_Interface_DT_Entry by calls to Register_Primitive.
2202 (Check_Dispatching_Formals): Handle properly a function with a
2203 controlling access result.
2205 2007-06-06 Robert Dewar <dewar@adacore.com>
2206 Arnaud Charlet <charlet@adacore.com>
2208 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
2209 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
2210 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
2211 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
2212 message when using a VM, since this attribute is not supported.
2213 (Analyze_Record_Representation_Clause): Give unrepped component warnings
2215 * usage.adb: Add new warning for renaming of function return objects
2216 Indicate that -gnatwp and -gnatwP concern front-end inlining
2217 Add line for -gnatyg
2218 Add usage information for -gnatw.c/C
2220 2007-06-06 Robert Dewar <dewar@adacore.com>
2221 Ed Schonberg <schonberg@adacore.com>
2224 (Find_Var): Do not consider function call in test for infinite loop
2225 warning if warnings set off for function entity.
2226 (One_Bound): Do not create a temporary for a loop bound if it is a
2228 (Analyze_Assignment): Traverse the right hand side of an assignment and
2229 mark all allocators as static coextensions.
2230 (Analyze_Assignment): Exempt assignments involving a dispatching call
2231 to a function with a controlling access result from the check requiring
2232 the target to be class-wide.
2234 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
2235 Ed Schonberg <schonberg@adacore.com>
2236 Robert Dewar <dewar@adacore.com>
2237 Javier Miranda <miranda@adacore.com>
2239 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
2240 chain of coextensions when an allocator serves as the root of such a
2242 (Propagate_Coextensions): Remove the test for the root being an
2244 (Resolve_Allocator): Add condition to ensure that all future decoration
2245 occurs on an allocator node. Add processing and cleanup for static
2247 (Valid_Conversion): If the operand type is the limited view of a
2248 class-wide type, use the non-limited view is available to determine
2249 legality of operation.
2250 (Ambiguous_Character): move to spec, for use elsewhere.
2251 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
2252 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
2254 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
2255 Do_Division_Check flag explicitly.
2256 (Resolve_Actuals): If the actual is of a synchronized type, and the
2257 formal is of the corresponding record type, this is a call to a
2258 primitive operation of the type, that is declared outside of the type;
2259 the actual must be unchecked-converted to the type of the actual
2260 (Resolve_Call): Kill all current values for any subprogram call if
2261 flag Suppress_Value_Tracking_On_Call is set.
2262 (Resolve_Type_Conversion): Generate error message the the operand
2263 or target of interface conversions come from a limited view.
2264 (Check_Infinite_Recursion): Ignore generated calls
2265 (Check_Allocator_Discrim_Accessibility): New procedure for checking
2266 that an expression that constrains an access discriminant in an
2267 allocator does not denote an object with a deeper level than the
2268 allocator's access type.
2269 (Resolve_Allocator): In the case of an allocator initialized by an
2270 aggregate of a discriminated type, check that associations for any
2271 access discriminants satisfy accessibility requirements by calling
2272 Check_Allocator_Discrim_Accessibility.
2273 (Resolve_Equality_Op): Handle comparisons of anonymous access to
2274 subprogram types in the same fashion as other anonymous access types.
2275 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
2276 message that is not a continuation message.
2277 (Resolve_Type_Conversion): Add missing support for conversion to
2279 (Resolve_Actuals): Introduce a transient scope around the call if an
2280 actual is a call to a function returning a limited type, because the
2281 resulting value must be finalized after the call.
2282 (Resolve_Actuals): If the call was given in prefix notations, check
2283 whether an implicit 'Access reference or implicit dereference must be
2284 added to make the actual conform to the controlling formal.
2286 2007-06-06 Robert Dewar <dewar@adacore.com>
2287 Javier Miranda <miranda@adacore.com>
2289 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
2290 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
2291 overriding of an inherited private subprogram now there is no need to
2292 inherit its dispatching slot and reduce the size of the dispatch table.
2293 Set_All_DT_Position now ensures that the same slot is now assigned to
2294 both entities. This is required to statically build the dispatch table.
2295 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
2296 of calling Set_All_DT_Position to re-evaluate the position of the
2297 entries in the dispatch table. Such reevaluation is not desired if
2298 the tagged type is already frozen.
2300 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
2301 Gary Dismukes <dismukes@adacore.com>
2302 Robert Dewar <dewar@adacore.com>
2303 Javier Miranda <miranda@adacore.com>
2305 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
2306 reference acts as an lvalue when the attribute name modifies the prefix
2307 (Is_Coextension_Root): New routine.
2308 (Mark_Static_Coextensions): New routine.
2309 (Type_Access_Level): Revise code for checking the level of the
2310 anonymous access type of a return object.
2311 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
2312 (Matches_Prefixed_View_Profile): Remove the no longer necessary
2313 retrieval of the corresponding controlling record type.
2314 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
2315 concurrent types declared within a generic as well as class wide types.
2316 Emit a mode incompatibility error whenever a protected entry or routine
2317 override an interface routine whose first parameter is not of mode
2318 "out", "in out" or access to variable.
2319 (Overrides_Synchronized_Primitive): Rename to
2320 Find_Overridden_Synchronized_Primitive.
2321 (Collect_Interface_Components): New subprogram that collects all the
2322 components of a tagged record containing tags of secondary dispatch
2324 (Add_Global_Declaration): New procedure
2325 (Abstract_Interface_List): Handle properly the case of a subtype of a
2327 (Type_Access_Level): In the case of a type whose parent scope is a
2328 return statement, call Type_Access_Level recursively on the enclosing
2329 function's result type to determine the level of the return object's
2331 (Build_Elaboration_Entity): Build name of elaboration entity from the
2332 scope chain of the entity, rather than the unit name of the file name.
2333 (Check_Nested_Access): New procedure.
2334 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
2335 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
2336 (Get_Renamed_Entity): Utility routine for performing common operation
2337 of chasing the Renamed_Entity field of an entity.
2339 2007-06-06 Robert Dewar <dewar@adacore.com>
2341 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
2343 (Check_A_Call): Add check for entry call which was causing blowup
2345 2007-06-06 Olivier Hainque <hainque@adacore.com>
2347 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
2348 special code on ia64-vms to handle major incompatibilities between the
2349 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
2350 this routine with a very different set of arguments and expectations on
2353 2007-06-06 Thomas Quinot <quinot@adacore.com>
2355 * socket.c (__gnat_close_signalling_fd): New function.
2356 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
2357 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
2358 New supporting functions for task safe Netdb operations.
2360 2007-06-06 Thomas Quinot <quinot@adacore.com>
2361 Olivier Hainque <hainque@adacore.com>
2363 * a-except-2005.ads, a-except-2005.adb
2364 (Raise_From_Controlled_Operation): New procedure in
2365 (private part of) Ada.Exceptions (standard runtime version). Used to
2366 provide informational exception message when Program_Error is raised as
2367 a result of an Adjust or Finalize operation propagating an exception.
2368 (Rmsg_28): Fix description for E.4(18) check.
2369 (Raise_Current_Excep): Call Debug_Raise_Exception just before
2370 propagation starts, to let debuggers know about the event in a reliable
2372 Take the address of E and dereference to make sure it is homed on stack
2373 and prevent the stores from being deleted, necessary for proper
2374 debugger behavior on "break exception" hits.
2375 (Local_Raise): Moved to System.Exceptions
2377 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
2378 exception message from the current occurrence and raise Program_Error
2379 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
2381 2007-06-06 Jose Ruiz <ruiz@adacore.com>
2382 Arnaud Charlet <charlet@adacore.com>
2384 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
2387 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
2388 priority associated to a lock.
2390 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
2391 assertion to take into account case of no abort restriction.
2392 (Initialize_Protection_Entries): Add initialization for the field
2393 New_Ceiling associated to the protected object.
2394 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
2397 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
2398 since this function needs to be set consistently with Update_Exception.
2400 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
2401 since this function needs to be set consistently with Update_Exception.
2403 * s-taskin.ads: Update comments on
2404 Interrupt_Server_Blocked_On_Event_Flag.
2405 (Unbind_Handler): Fix handling of server_task wakeup
2406 (Server_Task): Set self's state so that Unbind_Handler can take
2407 appropriate actions.
2408 (Common_ATCB): Now use a constant from System.Parameters to determine
2409 the max size of the Task_Image field.
2411 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
2412 Initialize_Analyzer function.
2413 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
2414 take into account case of no abort restriction.
2415 ([Vulnerable_]Complete_Master): Modify assertion.
2417 * s-tataat.adb (Finalize): Use the nestable versions of
2418 Defer/Undefer_Abort.
2420 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
2422 * s-tpobop.ads: Update comments.
2424 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
2425 of locking the object manually, to avoid inconsistencies between
2426 Lock/Unlock_Entry assertions.
2428 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
2430 application and System.Parameters.No_Abort is True.
2431 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
2432 (Unbind_Handler): Fix handling of server_task wakeup
2433 (Server_Task): Set self's state so that Unbind_Handler can take
2434 appropriate actions.
2436 2007-06-06 Thomas Quinot <quinot@adacore.com>
2438 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
2439 declarations instead of an explicit null body, for conciseness.
2441 2007-06-06 Robert Dewar <dewar@adacore.com>
2443 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
2444 illegal aggregate and the type is still Any_Composite.
2445 (Subtypes_Statically_Match): Fix problem of empty discriminant list
2447 2007-06-06 Ed Schonberg <schonberg@adacore.com>
2449 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
2450 to prevent subsequent expansion.
2452 2007-06-06 Robert Dewar <dewar@adacore.com>
2454 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
2456 2007-06-06 Ed Schonberg <schonberg@adacore.com>
2457 Robert Dewar <dewar@adacore.com>
2459 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
2461 (Write_Itype): Handle case of string literal subtype, which
2462 comes up in this context.
2463 (Update_Itype): when debugging expanded code, update sloc of itypes
2464 associated with defining_identifiers and ranges, for gdb use.
2465 (Sprint_Node_Actual): Add static keyword to object or exception
2466 declaration output if Is_Statically_Allocated is True.
2467 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
2468 or task body, so that the tree carries the proper Sloc information for
2470 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
2472 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2474 * s-secsta.adb (Chunk): Ensure this object has a static size known at
2475 compile time, to avoid dynamic memory allocation
2476 (Elaboration code): Only use dynamic memory allocation when needed.
2478 2007-06-06 Quentin Ochem <ochem@adacore.com>
2480 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
2482 (Stack_Analyzer): Added field "Overflow_Guard"
2483 (Task_Result): Added field "Overflow_Guard".
2484 (Index_Str): New constant.
2485 (Task_Name_Str): New constant.
2486 (Actual_Size_Str): New constant.
2487 (Pattern_Array_Element_Size): New constant.
2488 (Get_Usage_Range): New subprogram.
2489 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
2490 Now align the output.
2492 (Initialize): Added value for Overflow_Guard.
2493 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
2494 Update the value of the overflow guard according to the actual
2495 beginning of the pattern array.
2496 (Initialize_Analyzer): Added parameter Overflow_Guard.
2497 Take this parameter into accound when computing the max size.
2498 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
2499 (Report_Result): Removed extra useless procedure.
2500 Updated call to Output_Result.
2501 Moved full computation of the Task_Result here.
2503 2007-06-06 Thomas Quinot <quinot@adacore.com>
2505 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
2506 Thread_Blocking_IO, always True by default, set False on a per-runtime
2508 Add Windows-specific constants
2509 Add new constant Need_Netdb_Buffer.
2510 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
2511 not, whether to use getXXXbyYYY_r.
2513 * gsocket.h: Add new constant Need_Netdb_Buffer.
2514 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
2515 not, whether to use getXXXbyYYY_r.
2517 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
2519 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
2520 than their first call.
2521 Add type Dummy_Communication_Block used in the generation of the pre-
2522 defined dispatching primitive _disp_asynchronous_select.
2523 (Storage_Element): Put Pragma Universal_Aliasing on it.
2525 2007-06-06 Vincent Celier <celier@adacore.com>
2527 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
2530 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
2531 letter if it is not followed by a '/' or a '\'.
2532 (Windows): New Boolean function
2534 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
2536 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
2538 (Containing_Directory): Raise Use_Error when the directory is a root
2540 (Extension): When returning the result, use a conversion to Result_Type,
2541 not a qualification.
2543 2007-06-06 Robert Dewar <dewar@adacore.com>
2545 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
2546 (Set_Style_Check_Options): Recognize new -gnatyg style switch
2548 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
2549 Warn_On_Non_Local_Exception to False, to turn off warnings for
2550 No_Exception_Propagation in ZFP runtime.
2551 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
2553 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
2555 2007-06-06 Vincent Celier <celier@adacore.com>
2557 * switch-b.adb (Scan_Binder_Switches): Add processing for new
2560 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
2561 (Scan_Make_Switches): Recognize new switch -aP
2563 2007-06-06 Matthew Gingell <gingell@adacore.com>
2564 Jose Ruiz <ruiz@adacore.com>
2566 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
2567 VxWorks task descriptor in the Ada run time, call a C subprogram
2568 (__gnat_get_stack_info) that extracts the required information.
2570 * sysdep.c: Back out temporary lynxos workaround.
2571 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
2572 time the stack information associated to the currently executing task.
2573 Only VxWorks systems require this function.
2575 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
2577 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
2578 add the stack bias if the offset is computed from a frame address.
2579 (__gnat_backtrace): Adjust for above change.
2581 2007-06-06 Thomas Quinot <quinot@adacore.com>
2583 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
2584 PE_Non_Transportable_Actual.
2585 (By_Descriptor_Last): New constant.
2586 (By_Copy_Return): Likewise.
2588 2007-06-06 Vincent Celier <celier@adacore.com>
2590 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
2593 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
2594 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
2595 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
2596 Add missing comment for /OPTIMIZE=SPACE
2597 Add entry for OPTIMIZE=SPACE
2598 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
2599 Add documentation for new qualifiers corresponding to -gnatw.c/.C
2601 2007-06-06 Vincent Celier <celier@adacore.com>
2602 Robert Dewar <dewar@adacore.com>
2604 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
2607 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
2608 Document gnatbind switch -a
2609 (case Constructions): Document that variables declarations are allowed
2610 for previously declared variables.
2611 Fix external lib project example
2612 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
2613 Indicate that "#if not X or Y then" is not allowed in input files to
2615 Document gnatw.x and gnatw.X warning flags
2616 Mention -Winline switch to activate warnings when back-end inlining is
2618 Add gnatcheck rule descriptions
2619 Describe how to use the GNAT driver to call a tool on a closure.
2620 Describe how to run project-wide checks or metrics.
2621 Document gnatbind's -R option
2622 Updated to account for Ada 2005 support
2624 * gnat_rm.texi (Case Construction): Allow variable declarations for
2625 previously declared variables.
2626 (Representation Clauses and Pragmas): Lift restriction on alignment
2627 clauses for record types.
2628 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
2629 Document No_Exception_Propagation restriction
2630 Document No_Body pragma
2631 Updated to account for Ada 2005 support; corrected some typos
2632 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
2634 * gnat-style.texi: Make it clear that we never use mode IN for
2635 procedures or functions
2637 * ug_words: Add entries for -gnatw.x and -gnatw.X
2638 Add entries for -gnatw.c/.C
2640 2007-06-06 Pascal Obry <obry@adacore.com>
2641 Vincent Celier <celier@adacore.com>
2643 * makegpr.adb (Add_Archive_Path): Use untouched object and library
2644 dirs and library name.
2645 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
2647 (Build_Library): Idem.
2648 (Compile_Individual_Sources): Idem.
2649 (Compile_Link_With_Gnatmake): Idem.
2650 (Compile_Sources): Idem.
2651 (Get_Imported_Directories): Idem.
2652 (Link_Executables): Idem. Same change for the executable dir.
2653 (Check_Compilation_Needed): C_Source_Path new variable containing
2654 the canonical form of Source_Path to check against the source names
2655 in the dependency file.
2656 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
2657 verbose mode, display the name of the object directory we're changing
2659 (Saved_Switches): New name of table X_Switches
2660 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
2661 (Usage): New line for switch -aP
2662 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
2663 testing if a directory should be added to the search path.
2665 2007-06-06 Javier Miranda <miranda@adacore.com>
2667 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
2668 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
2669 declaration after freezing point of all its associated tagged types;
2670 otherwise such types are frozen too early.
2672 2007-06-06 Robert Dewar <dewar@adacore.com>
2674 * a-reatim.adb: Documentation addition
2676 * g-cgideb.adb: Minor code reorganization
2678 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
2679 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
2680 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
2682 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
2683 function. Change name New_Scope to Push_Scope
2684 (Get_Debug_Flag_K): Remove unused obsolete function.
2686 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
2689 * makeusg.adb: Update Copyright notice
2690 Add line for switch -aP
2692 * makeusg.adb: Fix wording of some usage messages
2694 * s-assert.adb (Raise_Assert_Failure): Add call to
2695 Debug_Raise_Assert_Failure.
2697 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
2698 (2, Standard'Alignment) for compatibility with AAMP (where alignment
2699 is restricted to 1).
2701 * s-wchjis.adb: Remove use of System.Pure_Exceptions
2703 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
2704 node location to No_Location when we're not debugging the expanded
2707 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
2709 * misc.c (enumerate_modes): Consider log2_b to always be one.
2711 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
2713 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
2715 2007-05-02 Pascal Obry <obry@adacore.com>
2717 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
2718 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
2719 encoding support of Stream_IO.
2722 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
2723 filename and corresponding encoding to match the OS requirement.
2724 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
2725 routine will fail on specific devices like CON: AUX: ...
2727 PR ada/29856: Add missing braces
2729 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
2732 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
2734 2007-04-21 Jan Hubicka <jh@suse.cz>
2736 * misc.c (gnat_expand_body): Don't call target for destructors,
2737 avoid redundant check on syntax errors.
2739 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
2741 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
2742 instead of checking GIMPLE_STMT_P in chain_next.
2744 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
2747 * system-linux-alpha.ads: Disable constant condition warning for the
2748 Default_Bit_Order variable.
2749 * system-linux-s390.ads: Likewise.
2750 * system-linux-s390x.ads: Likewise.
2751 * system-linux-sparc.ads: Likewise.
2753 2007-04-06 Javier Miranda <miranda@adacore.com>
2754 Matt Heaney <heaney@adacore.com>
2755 Robert Dewar <dewar@adacore.com>
2757 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
2758 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
2759 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
2760 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
2761 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
2762 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
2763 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
2764 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
2765 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
2766 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
2767 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
2768 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
2769 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
2770 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
2771 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
2772 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
2773 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
2774 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
2775 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
2776 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
2777 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
2778 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
2779 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
2780 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
2781 s-taprop-tru64.adb, s-taprop-irix.adb,
2782 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
2783 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
2784 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
2785 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
2786 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
2787 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
2788 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
2789 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
2790 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
2791 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
2792 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
2793 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
2794 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
2795 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
2796 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
2797 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
2798 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
2799 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
2800 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
2801 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
2803 Update documentation.
2806 2007-04-06 Robert Dewar <dewar@adacore.com>
2808 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
2809 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
2810 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
2811 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
2812 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
2813 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
2814 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
2815 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
2816 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
2817 system-hpux-ia64.ads, targparm.adb,
2818 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
2820 * system.ads: Move Functions_Return_By_DSP to obsolete section,
2821 kept for bootstrap purposes only.
2823 2007-04-06 Arnaud Charlet <charlet@adacore.com>
2825 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
2826 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
2827 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
2828 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
2830 2007-04-06 Robert Dewar <dewar@adacore.com>
2832 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
2833 (Local_Raise): New dummy procedure called when a raise is converted
2834 to a local goto. Used for debugger to detect that the exception
2837 * debug.adb: Document new d.g flag (expand local raise statements to
2838 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
2840 * exp_sel.adb: Use Make_Implicit_Exception_Handler
2842 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
2843 suppress warnings for unused handlers.
2844 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
2845 warnings for raise statements not handled locally.
2846 (Get_RT_Exception_Entity): New function
2847 (Get_Local_Call_Entity): New function
2848 (Find_Local_Handler): New function
2849 (Warn_If_No_Propagation): New procedure
2850 (Expand_At_End_Handler): Call Make_Implicit_Handler
2851 (Expand_Exception_Handlers): Major additions to deal with local handlers
2852 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
2853 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
2856 * exp_ch11.ads (Get_RT_Exception_Entity): New function
2857 (Get_Local_Call_Entity): New function
2859 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
2860 of restrictions that the binder will never suggest adding.
2862 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
2865 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
2866 be with'ed in the presence of pragma Restriction
2867 (No_Exception_Propagation).
2869 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
2871 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
2872 parameter, then the handler is not a suitable target for a local raise,
2873 and this is a violation of restriction No_Exception_Propagation.
2874 (Analyze_Handled_Statements): Analyze choice parameters in exception
2875 handlers before analyzing statement sequence (needed for proper
2876 detection of local raise statements).
2877 (Analyze_Raise_Statement): Reraise statement is a violation of the
2878 No_Exception_Propagation restriction.
2880 * s-rident.ads: Add new restriction No_Exception_Propagation
2882 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
2883 function, like Make_Exception_Handler but sets Local_Raise_Statements
2885 (Add_Unique_Serial_Number): Deal with case where this is called during
2886 processing of configuration pragmas.
2888 2007-04-06 Thomas Quinot <quinot@adacore.com>
2889 Pat Rogers <rogers@adacore.com>
2890 Pascal Obry <obry@adacore.com>
2892 * g-stsifd-sockets.adb: New file.
2894 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
2895 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
2896 g-socthi-vms.adb: Move signalling
2897 fd management to a nested package, so that they can conveniently be
2898 moved to a subunit that is shared across Windows, VMS, and VxWorks
2899 (Ada implementation) or completed with imported bodies from socket.c
2901 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
2903 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
2904 the signalling file descriptor.
2905 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
2906 signalling file descriptor.
2907 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
2908 instead of creating a pair of sockets for signalling here.
2910 * g-socthi.adb: Ditto.
2911 Set the runtime process to ignore SIGPIPEs on platforms that support
2912 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
2914 * g-socthi-mingw.adb: Ditto.
2915 (WS_Version): Use Windows 2.2.
2916 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
2918 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
2919 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
2921 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
2922 added GNAT byte swapping facility
2923 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
2925 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
2927 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
2929 (__gnat_create_signalling_fds): New subprogram.
2930 Set the runtime process to ignore SIGPIPEs on platforms that support
2931 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
2933 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
2934 Vincent Celier <celier@adacore.com>
2936 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
2937 New version of Ada.Calendar which supports the new upper bound of Ada
2938 time (2399-12-31 86_399.999999999).
2939 The following modifications have been made to the package:
2940 - New representation of time as count of nanoseconds since the start of
2941 Ada time (1901-1-1 0.0).
2942 - Target independent Split and Time_Of routines which service both
2943 Ada 95 and Ada 2005 code.
2944 - Target independent interface to the Ada 2005 children of Calendar.
2945 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
2946 - Handling of non-leap centenial years.
2947 - Updated clock function.
2948 - Updated arithmetic and comparison operators.
2950 * a-caldel.adb (To_Duration): Add call to target independent routine in
2951 Ada.Calendar to handle the conversion of time to duration.
2953 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
2955 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
2957 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
2958 targets do not have a natural time zone, GMT is used as a default.
2959 (__gnat_get_task_options): New.
2961 * a-direct.adb (Modification_Time): Add with and use clauses for
2962 Ada.Calendar and Ada.
2963 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
2964 since it is no longer needed.
2965 (Duration_To_Time): Removed.
2966 (OS_Time_To_Long_Integer): Removed.
2967 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
2968 Formatting Time_Of routines which automatically handle time zones,
2969 buffer periods and leap seconds.
2971 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
2972 target independent routines in Ada.Calendar.
2974 * a-calfor.ads, a-calfor.adb:
2975 Code cleanup and addition of validity checks in various routines.
2976 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
2979 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
2980 independent routine in Ada.Calendar.
2982 2007-04-06 Olivier Hainque <hainque@adacore.com>
2985 (convert_addresses): Adjust prototype and dummy definition to expect an
2986 extra file_name argument.
2988 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
2989 filling the now expected file_name argument with the appropriate
2991 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
2992 (tracebk): Array of void * instead of char *, corresponding to what
2993 convert_addresses expects.
2994 (exename): New static global, to hold the executable file name to be
2995 used in all convert_addresses invocations.
2996 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
2998 (__gnat_gmem_a2l_initialize): Resolve exename.
2999 (__gnat_convert_addresses): Use exename as the convert_addresses
3002 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
3003 "convert_addresses", now expecting a filename argument. Import the
3004 necessary entities to compute the filename to use and pass it to
3007 2007-04-06 Matt Gingell <gingell@adacore.com>
3009 * system-aix.ads: Back out previous change.
3010 (Functions_Return_By_DSP): Removed
3012 2007-04-06 Pascal Obry <obry@adacore.com>
3014 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
3015 or the monotonic used by Ada.Real_Time) to compute the sleep duration
3018 2007-04-06 Jose Ruiz <ruiz@adacore.com>
3020 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
3021 function. Its value changes in different VxWorks versions, and it is
3022 now handled by the function __gnat_get_task_options.
3024 * s-taprop-vxworks.adb (Create_Task): Call the function
3025 __gnat_get_task_options to get the required options for creating a task.
3027 2007-04-06 Pascal Obry <obry@adacore.com>
3028 Thomas Quinot <quinot@adacore.com>
3030 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
3031 dealing with filename.
3032 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
3033 filename from a standard string to a wide-string depending on the
3035 (__gnat_freopen): Idem.
3036 (__gnat_current_time): New function (wrapper for time(3) standard C
3039 * g-os_lib.ads (Current_Time): New function. Returns the current
3040 system time as an OS_Time value.
3042 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
3043 (Monotonic_Clock): Same.
3045 2007-04-06 Quentin Ochem <ochem@adacore.com>
3047 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
3049 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
3051 2007-04-06 Jose Ruiz <ruiz@adacore.com>
3053 * a-retide.adb: Add elaboration code to ensure that the tasking run
3054 time is initialized when using delay operations even when no task is
3057 2007-04-06 Javier Miranda <miranda@adacore.com>
3059 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
3060 component Num_Prim_Ops.
3061 (Set_Num_Prim_Ops): Removed.
3062 Remove all the assertions because all the routines of this
3063 package are inline always.
3064 (Get_Offset_Index): Add support to primary dispatch tables.
3065 Move the documentation about the dispatch table to a-tags.ads
3066 (Set_External_Tag): Removed
3067 (Inherit_TSD): Removed.
3068 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
3070 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
3071 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
3072 of the TSD field "Table" because this field has been renamed to
3074 (Inherit_CPP_DT): Removed.
3075 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
3076 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
3077 declarations have been moved to a-tags.ads
3078 (Check_Size): Removed.
3079 (Expanded_Name): Updated to get access to the new field of TSD
3080 containing the address of the expanded name.
3081 (Get_Access_Level/Set_Access_Level): Removed.
3082 (Get_Predefined_Prim_Op_Address): Removed.
3083 (Set_Predefined_Prim_Op_Address): Removed.
3084 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
3085 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
3086 (Set_Expanded_Name): Removed.
3087 (Inherit_DT): Removed.
3088 (Inherit_CPP_DT): Removed.
3089 (Set_RC_Offset): Removed.
3091 (Base_Address): New function that displaces "this" to point to the base
3092 of the object (that is, to point to the primary tag of the object).
3094 2007-04-06 Ed Schonberg <schonberg@adacore.com>
3095 Javier Miranda <miranda@adacore.com>
3097 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
3098 anonymous access component, do not create a master_id if type already
3099 has one, as may happen if the type is a subcomponent of a packed array
3101 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
3102 Initialize_Tag): Remove code associated with the old CPP pragmas.
3103 CPP_Virtual and CPP_Vtable are no longer supported.
3104 (Build_Offset_To_Top_Internal): Add support for concurrent record types
3105 (Build_Offset_To_Top_Functions): Add support for concurrent record types
3106 (Freeze_Record_Type): Remove call to
3107 Init_Predefined_Interface_Primitives.
3108 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
3109 code required to initialize the tags of the secondary dispatch tables.
3110 This leaves the algoritm more clear.
3111 (Init_Secondary_Tags): Add support for concurrent record types
3112 (Make_Predefined_Primitive_Specs): Code cleanup.
3113 (Predefined_Primitive_Bodies): Code cleanup.
3114 (Build_Master_Renaming): New local subprogram.
3115 (Expand_N_Full_Type_Declaration): Build the master_id associated with
3116 anonymous access to task type components.
3117 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
3118 subtype indication are resolved during analysis, and must not be done
3120 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
3122 2007-04-06 Geert Bosch <bosch@adacore.com>
3123 Ed Schonberg <schonberg@adacore.com>
3124 Javier Miranda <miranda@adacore.com>
3125 Bob Duff <duff@adacore.com>
3127 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
3128 for conversion of a Float_Type'Truncation to integer.
3130 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
3131 check if a node is an attribute that can be handled directly by the
3133 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
3134 attributes that can be handled directly by the back end.
3135 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
3136 use new predicate Is_Access_Protected_Subprogram_Type.
3137 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
3138 and Unchecked_Union if it is generated as part of the default Output
3139 procedure for a type with default discriminants.
3140 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
3141 if we are compiling under restriction No_Dispatching_Calls.
3142 (Constrained): Use Underlying_Type, in case the type is private without
3143 discriminants, but the full type has discriminants.
3144 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
3145 call to Build_Get_Access_Level.
3146 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
3147 interface objects requires a call to the run-time subprogram that
3148 returns the base address of the object.
3149 (Valid_Conversion): Improve error message on illegal attempt to store
3150 an anonymous access to subprogram value into a record component.
3152 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
3154 (Simplify_Type_Conversion): New procedure that performs simplification
3155 of Int_Type (Float_Type'Truncation (X)).
3156 (Resolve_Type_Conversion): Call above procedure after resolving operand
3157 and before performing checks. This replaces the existing ineffective
3159 (Set_String_Literal_Subtype): When creating the internal static lower
3160 bound subtype for a string literal, use a newly created copy of the
3161 subtree representing the lower bound.
3162 (Resolve_Call): Exclude build-in-place function calls from transient
3163 scope treatment. Update comments to describe this exception.
3164 (Resolve_Equality_Op): In case of dispatching call check violation of
3165 restriction No_Dispatching_Calls.
3166 (Resolve_Call): If the call returns an array, the context imposes the
3167 component type of the array, and the function has one non-defaulted
3168 parameter, rewrite the call as the indexing of a call with a single
3169 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
3171 (Resolve_Actuals): If an actual is an allocator for an access parameter,
3172 the master of the created object is the innermost enclosing statement.
3173 (Remove_Conversions): For a binary operator, check if type of second
3174 formal is numeric, to check if an abstract interpretation is present
3175 in the case of exponentiation as well.
3177 2007-04-06 Ed Schonberg <schonberg@adacore.com>
3178 Bob Duff <duff@adacore.com>
3180 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
3181 copying a parameter list in a call, set properly the First_Named_Formal
3182 and Next_Named_Formal fields in the new list and in the enclosing call.
3183 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
3184 names, to ease typing in the debugger. Improve comments.
3185 (Watch_Node): New variable, intended to be set in the debugger.
3186 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
3187 called when the watched node is created.
3188 (New_Node_Debugging_Output): Combined version of local procedures
3189 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
3190 with a parameter so that conditional breakpoints like "if Node = 12345"
3192 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
3195 2007-04-06 Thomas Quinot <quinot@adacore.com>
3196 Ed Schonberg <schonberg@adacore.com>
3197 Gary Dismukes <dismukes@adacore.com>
3199 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
3200 required for a conversion between two access-to-unconstrained-array
3202 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
3203 to discriminant constraints on discriminant objects. This rule must
3204 apply as well to discriminants of protected types in private components.
3205 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
3206 object of a null-excluding access type then don't require the
3207 the object declaration to have an expression and don't emit a
3210 2007-04-06 Arnaud Charlet <charlet@adacore.com>
3211 Eric Botcazou <botcazou@adacore.com>
3213 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
3216 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
3217 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
3220 * fe.h (Compiler_Abort): Add third parameter.
3222 * misc.c (internal_error_function): Build third argument from current
3223 input location and pass it to Compiler_Abort.
3225 2007-04-06 Gary Dismukes <dismukes@adacore.com>
3227 * cstand.adb (Create_Standard): When the target's storage unit size is
3228 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
3231 2007-04-06 Nicolas Roche <roche@adacore.com>
3233 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
3234 absolute path can have the following form: device:/a/b. In this case
3235 '/' should be inserted between the path and the filename.
3237 2007-04-06 Olivier Hainque <hainque@adacore.com>
3238 Eric Botcazou <botcazou@adacore.com>
3240 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
3241 VAR_DECL to a CONST_DECL we make for a public constant when we know the
3242 corresponding definition has created the so made visible variable.
3243 Handle anonymous access to protected subprogram.
3244 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
3245 object with an address clause volatile. Re-enable original fix.
3246 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
3248 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
3249 associated with either the Equivalent or Root type, instead of the
3251 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
3252 subtree for every field of a global record type.
3253 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
3254 discriminants, invoke again variable_size on its newly computed sizes.
3256 2007-04-06 Robert Dewar <dewar@adacore.com>
3257 Thomas Quinot <quinot@adacore.com>
3258 Ed Schonberg <schonberg@adacore.com>
3259 Bob Duff <duff@adacore.com>
3261 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
3262 (Next_Component_Or_Discriminant): New function and procedure
3263 (First_Index, First_Literal, Master_Id,
3264 Set_First_Index, Set_First_Literal, Set_Master_Id):
3265 Add missing Ekind assertions.
3266 (Is_Access_Protected_Subprogram_Type): New predicate.
3267 (Has_RACW): New entity flag, set on package entities to indicate that
3268 the package contains the declaration of a remote accecss-to-classwide
3270 (E_Return_Statement): This node type has the Finalization_Chain_Entity
3271 attribute, in case the result type has controlled parts.
3272 (Requires_Overriding): Add this new flag, because "requires
3273 overriding" is subtly different from "is abstract" (see AI-228).
3274 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
3275 Is_Abstract_Type. Make sure these are called only when appropriate.
3276 (Has_Pragma_Unreferenced_Objects): New flag
3278 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
3279 class-wide, the tag of the right-hand side must be an exact match, not
3280 an ancestor of that of the object on left-hand side.
3281 (Move_Activation_Chain): New procedure to create the call to
3282 System.Tasking.Stages.Move_Activation_Chain.
3283 (Expand_N_Extended_Return_Statement): Generate code to call
3284 System.Finalization_Implementation.Move_Final_List at the end of a
3285 return statement if the function's result type has controlled parts.
3286 Move asserts to Build_In_Place_Formal.
3287 (Move_Final_List): New function to create the call statement.
3288 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
3289 tagged type, replace generation of call to the run-time subprogram
3290 CW_Membership by call to Build_CW_Membership.
3291 (Expand_N_Return_Statement): Replace generation of call to the run-time
3292 subprogram Get_Access_Level by call to Build_Get_Access_Level.
3293 (Expand_N_Simple_Function_Return): Replace generation of call to the
3294 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
3296 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
3297 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
3298 access to protected operations.
3299 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
3300 master and chain actual parameters to a build-in-place function call
3302 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
3304 (Make_Build_In_Place_Call_In_Allocator,
3305 Make_Build_In_Place_Call_In_Anonymous_Context,
3306 Make_Build_In_Place_Call_In_Assignment,
3307 Make_Build_In_Place_Call_In_Object_Declaration): Call
3308 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
3309 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
3310 stubbed procedure with a null body, replace the call with a null
3311 statement without using the full inlining machinery, for efficiency
3312 and to avoid invalid values in source file table entries.
3314 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
3315 renamings of calls to build-in-place functions.
3317 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
3318 provides the functionality of RTE_Available to record components.
3319 (RTU_Entity): The function Entity has been renamed to RTU_Entity
3320 to avoid undesired overloading.
3321 (Entity): New subprogram that returns the entity for the referened
3322 unit. If this unit has not been loaded, it returns Empty.
3323 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
3324 Remove no longer used entities.
3325 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
3326 (RE_Type_Specific_Data): New entity.
3327 (RE_Move_Any_Value): New entity.
3328 (RE_TA_A, RE_Get_Any_Type): New entities.
3329 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
3330 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
3331 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
3332 (Entity): New subprogram that returns the entity for the referened
3333 unit. If this unit has not been loaded, it returns Empty.
3334 (RTE): Addition of a new formal that extends the search to the scopes
3335 of the record types found in the chain of the package.
3337 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
3338 "abstract subprograms must be visible" message, whether or not the type
3339 is an interface; that is, remove the special case for interface types.
3340 (Analyze_Function_Return): Remove error message "return of task objects
3341 is not yet implemented" because this is now implemented.
3342 (Create_Extra_Formals): Add the extra master and activation chain
3343 formals in case the result type has tasks.
3344 Remove error message "return of limited controlled objects is not yet
3346 (Create_Extra_Formals): Add the extra caller's finalization list formal
3347 in case the result type has controlled parts.
3348 (Process_Formals): In case of access formal types there is no need
3349 to continue with the analysis of the formals if we already notified
3351 (Check_Overriding_Indicator): Add code to check overriding of predefined
3353 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
3354 flags for formals that do not require them,.
3355 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
3356 hidden entity is use visible or directly visible.
3357 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
3358 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
3359 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
3360 New_Overloaded_Entity): Split Is_Abstract flag into
3361 Is_Abstract_Subprogram and Is_Abstract_Type.
3363 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
3364 a return statement's finalization list to the caller's list, used for
3365 build-in-place functions with result type with controlled parts.
3366 Remove no longer used entities.
3368 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
3369 longer needed, because the full type is now limited, and therefore a
3370 pass-by-reference type.
3371 (Foreign_Task_Level): New constant.
3373 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
3374 move tasks from the activation chain belonging to a return statement to
3375 the one passed in by the caller, and update the master to the one
3376 passed in by the caller.
3377 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
3378 of unactivated tasks, so we don't kill the ones that are being returned
3379 by a build-in-place function.
3380 (Create_Task): Ignore AI-280 for foreign threads.
3382 2007-04-06 Ed Schonberg <schonberg@adacore.com>
3383 Robert Dewar <dewar@adacore.com>
3384 Bob Duff <duff@adacore.com>
3385 Gary Dismukes <dismukes@adacore.com>
3387 * errout.adb (Unwind_Internal_Type): Use predicate
3388 Is_Access__Protected_Subprogram_Type.
3390 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
3391 (Freeze_Entity, packed array case): Do not override explicitly set
3392 alignment and size clauses.
3393 (Freeze_Entity): An entity declared in an outer scope can be frozen if
3394 the enclosing subprogram is a child unit body that acts as a spec.
3395 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
3396 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
3397 Remove all code for DSP option
3399 * layout.adb (Layout_Record_Type): Use First/
3400 Next_Component_Or_Discriminant
3401 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
3402 to handle properly the anonymous access case.
3404 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
3405 for all access attributes, because overload resolution should work the
3406 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
3407 causes the error message for the ambiguous "X'Access = Y'Access" and
3408 "X'Unrestricted_Access = Y'Access" and so forth to match.
3409 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
3410 now that anonymous access to protected operations have their own kind.
3411 (Resolve_Attribute): In case of dispatching call check the violation of
3412 restriction No_Dispatching_Calls.
3413 (Check_Array_Type): Check new -gnatyA array index style option
3415 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
3416 attempt to derive from a synchronized tagged type.
3417 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
3418 type, inherit the class-wide type already created, because it may
3419 already have been used in a self-referential anonymous access component.
3420 (Mentions_T): Recognize self-referential anonymous access components
3421 that use (a subtype of) the class-wide type of the enclosing type.
3422 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
3423 Derived_Type for Prev formal on call to
3424 Check_Anonymous_Access_Components rather than Empty.
3425 (Make_Incomplete_Type_Declaration): Add test for case where the type has
3426 a record extension in deciding whether to create a class-wide type,
3427 rather than just checking Tagged_Present.
3428 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
3429 to stand-alone object declarations as well as component declarations.
3430 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
3431 prevent accidental overwriting when enclosing package appears in
3432 a limited_with_clause.
3433 (Array_Type_Declaration): If the component type is an anonymous access,
3434 the associated_node for the itype is the type declaration itself.
3435 (Add_Interface_Tag_Components): Modified to support concurrent
3436 types with abstract interfaces.
3437 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
3438 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
3439 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
3440 to complete the decoration of synchronized interface types. Add also
3441 a call to Check_Abstract_Interfaces to verify the ARM rules.
3442 (Derive_Interface_Subprograms): Modified to support concurrent types
3443 with abstract interfaces.
3444 (Analyze_Subtype_Indication): Resolve the range with the given subtype
3445 mark, rather than delaying the full resolution depending on context.
3446 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
3447 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
3448 Array_Type_Declaration,Build_Derived_Record_Type,
3449 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
3450 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
3451 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
3452 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
3453 called only when appropriate.
3454 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
3456 (Analyze_Subtype_Declaration): For an access subtype declaration, create
3457 an itype reference for the anonymous designated subtype, to prevent
3458 scope anonmalies in gigi.
3459 (Build_Itype_Reference): New utility, to simplify construction of such
3462 2007-04-06 Vincent Celier <celier@adacore.com>
3464 * errutil.adb (Initialize): Initialize warnings table, if all warnings
3465 are suppressed, supply an initial dummy entry covering all possible
3468 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
3469 and start with only one, such as "-RTS=none".
3470 (Collect_Arguments): Do not check for sources outside of projects.
3471 Do not collect arguments if project is externally built.
3472 (Compile_Sources): Do nothing, not even check if the source is up to
3473 date, if its project is externally built.
3474 (Compile): When compiling a predefined source, add -gnatpg
3475 as the second switch, after -c.
3476 (Compile_Sources): Allow compilation of Annex J renames without -a
3477 (Is_In_Object_Directory): Check if the ALI file is in the object
3478 even if there is no project extension.
3479 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
3480 gnatbind if the ALI file effectively exists.
3481 (Initialize): Add the directory where gnatmake is invoked in front of
3482 the path if it is invoked from a bin directory, even without directory
3483 information, so that the correct GNAT tools will be used when spawned
3484 without directory information.
3486 * makeusg.adb: Change switch -S to -eS
3487 Add lines for new switches -we, -wn and -ws
3488 Add line for new switch -p
3490 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
3491 Treat_As_Error and there are warnings.
3493 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
3494 -gnatww Change gnatmake switch -S to -eS
3495 (Scan_Make_Switches): Code reorganisation. Process separately multi
3496 character switches and single character switches.
3497 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
3498 False when switch is not recognized by gnatmake.
3499 (Scan_Make_Switches): Set Setup_Projects True when -p or
3500 --create-missing-dirs is specified.
3502 * fname.adb (Is_Predefined_File_Name): Return True for annex J
3503 renamings Calendar, Machine_Code, Unchecked_Conversion and
3504 Unchecked_Deallocation only when Renamings_Included is True.
3506 * par.adb: Allow library units Calendar, Machine_Code,
3507 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
3508 when -gnatg is not specified.
3509 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
3510 there is no need to generate always a record_definition_node in case
3511 of synchronized interface types.
3512 (SIS_Entry_Active): Initialize global variable to False
3513 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
3514 indicate cases where AI-447 says "not null" is legal.
3516 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
3518 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
3519 files with with several lines starting with the object fileb name.
3520 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
3522 (Initialize): Add the directory where gprmake is invoked in front of the
3523 path, if it is invoked from a bin directory or with directory
3524 information, so that the correct GNAT tools will be used when invoked
3526 (Check_Compilation_Needed): Process correctly backslashes on Windows.
3528 * vms_data.ads: Update switches/qualifiers
3530 2007-04-06 Ed Schonberg <schonberg@adacore.com>
3531 Thomas Quinot <quinot@adacore.com>
3534 If the array component is a discriminated record, the array aggregate
3535 is non-static even if the component is given by an aggregate with
3537 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
3538 (Convert_Aggr_In_Allocator): If the allocator is for an access
3539 discriminant and the type is controlled. do not place on a finalization
3540 list at this point. The proper list will be determined from the
3542 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
3543 initialize record controller if needed, before the components, to ensure
3544 that they are properly finalized.
3545 (Build_Record_Aggr_Code): For the case of an array component that has a
3546 corresponding array aggregate in the record aggregate, perform sliding
3549 2007-04-06 Javier Miranda <miranda@adacore.com>
3550 Gary Dismukes <dismukes@adacore.com>
3551 Ed Schonberg <schonberg@adacore.com>
3553 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
3554 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
3556 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
3557 accessibility on class-wide allocators if the allocator occurs at the
3558 same scope level as the allocator's type. The check is guaranteed to
3559 succeed in that case, even when the expression originates from a
3560 parameter of the containing subprogram.
3561 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
3562 under No_Dispatching_Calls restriction. During the semantic analysis
3563 we already notified such violation.
3564 (Tagged_Membership): Constant folding. There is no need to check
3565 the tag at run-time if the type of the right operand is non
3566 class-wide abstract.
3567 Replace call to Is_Ancestor by call to Is_Parent
3568 to support concurrent types with interface types.
3569 (Expand_N_Allocator): Add an assertion associated with the generation
3571 (Expand_N_Slice): Do not enable range check to nodes associated
3572 with the frontend expansion of the dispatch table.
3573 (Is_Local_Access_Discriminant): Subsidiary function to
3575 (Tagged_Membership): Replace generation of call to the run-time
3576 subprogram CW_Membership by call to Build_CW_Membership.
3577 (Expand_Allocator_Expression): Replace generation of call to the
3578 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
3580 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
3581 initialize most the TSD components by means of an aggregate.
3582 Modify the declaration of the object containing the TSD
3583 because we now expand code that has a higher level of abstraction.
3584 The TSD has a discriminant containing the Inheritance Depth Level,
3585 value that is used in the membership test but also to fix the size
3586 of the table of ancestors.
3587 (Expand_Interface_Conversion): Insert function body at the closest place
3588 to the conversion expression, to prevent access-before-elaboration
3589 errors in the backend.
3590 Code improved to reduce the size of the dispatch table if
3591 compiling under restriction No_Dispatching_Calls plus code cleanup.
3592 Code reorganization plus removal of calls to Set_Num_Prim_Ops
3593 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
3594 (Expand_Dispatching_Call): Minor code reorganization plus addition of
3595 code to return immediately if compiling under No_Dispatching_Calls
3597 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
3598 CPP_Virtual and CPP_Vtable are no longer supported.
3599 (Expand_Interface_Conversion): Add missing support for interface type
3601 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
3602 Is_Parent to support concurrent types with interfaces.
3603 (Init_Predefined_Interface_Primitives): Removed.
3604 (Make_Secondary_DT): Modified to support concurrent record types.
3605 (Set_All_DT_Position): Modified to support concurrent record types.
3606 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
3607 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
3608 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
3610 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
3611 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
3612 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
3613 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
3614 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
3615 (Expand_Dispatching_Call): Replace generation of call to the run-time
3616 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
3617 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
3619 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
3620 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
3621 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
3622 Build_Set_Prim_Op_Address.
3623 (Get_Remotely_Callable): Subprogram removed.
3624 (Init_Predefined_Interface_Primitives): Replace generation of call to
3625 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
3628 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
3629 First (Parameter_Associations ()) with the call to First_Actual that
3630 returns an actual parameter expression for both named and positional
3633 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
3634 check violation of restriction No_Dispatching_Calls.
3635 (Check_Controlling_Type): A formal of a tagged incomplete type is a
3636 controlling argument.
3638 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
3639 First/Next_Component_Or_Discriminant
3640 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
3641 (Find_Implemented_Interface): Removed. All the calls to this subprogram
3642 specify Any_Limited_Interface, and this functionality is already
3643 provided by the function Has_Abstract_Interfaces.
3644 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
3645 support concurrent types implementing interfaces.
3646 (Find_Implemented_Interface): Removed. All the calls to this subprogram
3647 specify kind Any_Limited_Interface, and this functionality is already
3648 provided by the function Has_Abstract_Interfaces.
3649 (Remove_Side_Effects): replace Controlled_Type by
3650 CW_Or_Controlled_Type whenever the issue is related to
3651 using or not the secondary stack.
3653 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
3654 P_Interface_Type_Definition to fulfill the new interface (the formal
3655 Is_Synchronized is no longer required).
3657 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
3658 Update dependencies.
3660 * exp_atag.ads, exp_atag.adb: New file
3662 2007-04-06 Ed Schonberg <schonberg@adacore.com>
3663 Bob Duff <duff@adacore.com>
3664 Cyrille Comar <comar@adacore.com>
3666 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
3667 anonymous, use finalization list of enclosing dynamic scope.
3668 (Expand_N_Package_Declaration): For a library package declaration
3669 without a corresponding body, generate RACW subprogram bodies in the
3670 spec (just as we do for the task activation call).
3671 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
3672 Is_Abstract_Type. Make sure these are called only when appropriate.
3673 Remove all code for DSP option
3674 (CW_Or_Controlled_Type): new subprogram.
3676 2007-04-06 Eric Botcazou <botcazou@adacore.com>
3677 Ed Schonberg <schonberg@adacore.com>
3678 Gary Dismukes <dismukes@adacore.com>
3680 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
3681 parameter. If it is set to true, return a result capped according to
3682 the global upper bound for the index of an entry family.
3683 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
3684 (Build_Find_Body_Index): Adjust for above change.
3685 (Entry_Index_Expression): Likewise.
3686 (Is_Potentially_Large_Family): New function extracted from...
3687 (Collect_Entry_Families): ...here. Call it to detect whether the family
3688 is potentially large.
3689 (Build_Entry_Count_Expression): If the family is potentially large, call
3690 Family_Size with 'Cap' set to true.
3691 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
3692 a protected version of an operation declared in the private part of
3693 a protected object, because they may be invoked through a callback.
3694 (Set_Privals): If the type of a private component is an anonymous access
3695 type, do not create a new itype for each protected body.
3696 If the body of a protected operation creates
3697 controlled types (including allocators for class-widetypes), the
3698 body of the corresponding protected subprogram must include a
3700 (Build_Activation_Chain_Entity): Build the chain entity for extended
3702 (Type_Conformant_Parameters): Use common predicate Conforming_Types
3703 to determine whether operation overrides an inherited primitive.
3704 (Build_Wrapper_Spec): Add code to examine the parents while looking
3705 for a possible overriding candidate.
3706 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
3707 hold an actual parameter value since its initialization is separated
3708 from the the declaration. Prevents errors on null-excluding access
3711 2007-04-06 Thomas Quinot <quinot@adacore.com>
3713 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
3714 Do an Unchecked_Conversion to handle the passage from the Underlying
3715 Type to the Base Type when calling Build_To_Any_Call and
3716 Build_From_Any_Call.
3717 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
3718 E_Constant, depending upon Variable formal.
3719 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
3720 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
3721 parameter that requires an extra constrained parameter, declare
3722 temporary for actual as a variable, not a constant.
3723 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
3724 the unit being compiled is the one that contains the stub type.
3725 Change primitive operation name for the RACW associated with a RAS
3726 from Call to _Call so it cannot clash with any legal identifier.
3727 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
3729 (Append_RACW_Bodies): New subprogram.
3730 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
3731 Add_Receiving_Stubs_To_Declarations functions.
3732 When expanding a package body, this list correspond to the
3733 statements in the HSS at the end of the pacakge.
3734 When expanding a package spec, this list correspond to the
3736 (Add_Receiving_Stubs_To_Declarations): Append the function
3737 registering the receiving stubs at the end of the 'Stmts' list.
3738 (RCI_Package_Locator): Pass the new Version generic formal when
3739 instantiating a RCI_Locator package.
3740 (Build_From_Any_Function): To compute the High bound for an
3741 unconstrained array actual, we add the Low bound with the length.
3742 Thus we must convert the low bound and the length to an appropriate
3743 type before doing the sum.
3744 (Build_Subprogram_Receiving_Stubs, PolyORB):
3745 * Retrieve the extra formals parameters at the
3746 end of the parameter stream.
3747 * Use Move_Any_Value to write back out parameters
3748 after executing the request as it is more efficient
3749 than Copy_Any_Value.
3750 * Build the any containing Extra Formals with the
3751 appropriate typecode.
3752 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
3753 empty Component_List.
3754 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
3755 the tree the declaration for an object that serves as actual parameter
3756 in server-side stubs.
3757 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
3758 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
3759 Use Build_Actual_Object_Declaration to prepare the actuals.
3760 (Add_Parameter_To_NVList): Set the parameter mode to In for
3761 Extra Constrained Parameters.
3762 (Build_General_Calling_Stubs): Set the parameter type to boolean for
3763 Extra Constrained parameters.
3764 (Build_To_Any_Function, Build_From_Any_Function,
3765 Built_TypeCode_Function): When Typ is implicit, call the correct
3766 function with the first not implicit parent type.
3767 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
3768 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
3769 typecode from the Etype. Therefore we retrieve the correct typecode
3770 with a call to Get_Any_Type.
3771 (Copy_Specification): Do controlling formal type substitution based on
3772 Is_Controlling_Formal flag, instead of caller-provided object type.
3773 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
3774 a RACW primitive operation, we might get a subprogram declaration for an
3775 ancestor of the RACW designated type (not for the designated type
3776 itself), in the case where this operation is inherited. In this case we
3777 have no easy means of determining the original tagged type for which
3778 the primitive was declared, so instead we now rely on
3779 Copy_Specification to use the Is_Controlling_Formal flag to determine
3780 which formals require type substitution.
3782 2007-04-06 Robert Dewar <dewar@adacore.com>
3783 Ed Schonberg <schonberg@adacore.com>
3785 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
3786 GNAT.Current_Exception are not allowed if pragma Restrictions
3787 (No_Exception_Propagation) is set and in any case make the associated
3788 handler unsuitable as a target for a local raise statement.
3789 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
3790 run-time subprogram CW_Membership by call to Build_CW_Membership.
3791 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
3792 by a function call, a temporary must be created before expanding the
3793 Constructor_Call itself, to prevent out-of-order elaboration in the
3794 back-end when stack checking is enabled..
3796 2007-04-06 Ed Schonberg <schonberg@adacore.com>
3798 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
3799 result are the bounds of the left operand, not the right.
3801 2007-04-06 Ed Schonberg <schonberg@adacore.com>
3804 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
3805 discriminant defaults.
3806 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
3807 (Make_Component_List_Attributes): Ditto.
3809 2007-04-06 Ed Schonberg <schonberg@adacore.com>
3810 Bob Duff <duff@adacore.com>
3812 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
3813 an association with a box as providing a value even though the
3814 initialization procedure for the type is not available.
3815 (Resolve_Record_Aggregate): Check that a choice of an association with a
3816 box corresponds to a component of the type.
3817 (Resolve_Record_Aggregate): Split Is_Abstract flag into
3818 Is_Abstract_Subprogram and Is_Abstract_Type.
3820 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
3823 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
3824 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
3825 called only when appropriate.
3827 2007-04-06 Olivier Hainque <hainque@adacore.com>
3829 * g-alleve.ads (Low Level Vector type definitions): Map each to the
3830 associated vector view instead of all to the unsigned char view.
3832 * g-altcon.adb (Generic_Conversions): New internal generic package,
3833 offering facilities for all the Vector/View conversion routines
3834 implemented by this unit.
3835 (To_View/To_Vector - all versions): Reimplemented in a systematic
3836 manner, using the internal Generic_Conversions facilities.
3838 2007-04-06 Pascal Obry <obry@adacore.com>
3840 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
3842 (Create): Free the source string before storing the new one.
3844 2007-04-06 Vincent Celier <celier@adacore.com>
3846 * g-debpoo.adb (Validity): New package with a complete new
3847 implementation of subprograms Is_Valid and Set_Valid.
3848 (Is_Valid): Move to local package Validity
3849 (Set_Valid): Move to local package Validity
3851 2007-04-06 Arnaud Charlet <charlet@adacore.com>
3853 * g-expect.adb (Get_Command_Output): When expanding the output buffer
3854 we must ensure that there is enough place for the new data we are going
3857 2007-04-06 Thomas Quinot <quinot@adacore.com>
3859 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
3862 2007-04-06 Jose Ruiz <ruiz@adacore.com>
3863 Vincent Celier <celier@adacore.com>
3865 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
3866 (Stack_String): Add this String that contains the name of the Stack
3867 package in the project file.
3868 (Packages_To_Check_By_Stack): Add this list that contains the packages
3869 to be checked by gnatstack, which are the naming and the stack packages.
3870 (Check_Files): If no .ci files were specified for gnatstack we add all
3871 the .ci files belonging to the projects, including binder generated
3873 (Non_VMS_Usage): Document that gnatstack accept project file switches.
3874 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
3875 Add gnatstack to the list of commands that use project file related
3876 switches, and get the single attribute Switches from the stack package
3877 in a project file when calling gnatstack. Parse the -U flag for
3878 processing files belonging to all projects in the project tree.
3879 Remove all processing for command Setup
3881 * prj-attr.adb: Add new package Stack with single attribute Switches
3883 * vms_conv.ads (Command_Type): Add command Stack.
3884 Move to body declarations that are only used in the body: types Item_Id,
3885 Translation_Type, Item_Ptr, Item and its subtypes.
3887 * vms_conv.adb: (Initialize): Add data for new command Stack.
3888 Add declarations moved from the spec: types Item_Id, Translation_Type,
3889 Item_Ptr, Item and its subtypes.
3890 (Cargs_Buffer): New table
3891 (Cargs): New Boolean global variable
3892 (Process_Buffer): New procedure to create arguments
3893 (Place): Put character in table Buffer or Cargs_Buffer depending on the
3895 (Process_Argument): Set Cargs when processing qualifiers for GNAT
3897 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
3898 empty, for table Cargs_Buffer.
3899 (Initialize): Remove component Setup in Command_List
3901 2007-04-06 Vincent Celier <celier@adacore.com>
3903 * gprep.adb (Process_Files.Process_One_File): Use full file name when
3904 issuing pragma Source_Reference.
3906 2007-04-06 Emmanuel Briot <briot@adacore.com>
3908 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
3909 [[:xdigit:]] character class.
3910 Also raise an exception when an invalid character class is used.
3912 2007-04-06 Pascal Obry <obry@adacore.com>
3914 * i-cstrea.ads: (fopen): Add encoding parameter.
3916 Change reference from a-sysdep.c to sysdep.c in comment.
3917 Update copyright notice.
3918 This set of patch add support for the encoding form parameter.
3920 * mingw32.h (S2WSU): New macro to convert from a string to a
3921 wide-string using the UTF-8 encoding. The S2WS macro supports now only
3922 standard 8bits encoding.
3923 (WS2SU): As above but converting from wide-sring to string.
3924 This is needed as it is necessary to have access to both versions in the
3925 runtime for the form parameter encoding support.
3926 This set of patch add support for the encoding form parameter.
3927 (S2WS): Improve implementation to handle cases where the filename is not
3928 UTF-8 encoded. In this case we default to using the current code page
3931 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
3932 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
3933 the constants defined in adaint.h.
3934 (fopen): Add encoding parameter.
3937 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
3938 encoding. This is needed for the Reset routine (freopen low level-call).
3940 * s-fileio.adb (Open): Decode encoding form parameter and set the
3941 corresponding encoding value into AFCB structure.
3942 (Reset): Pass the encoding value to freopen.
3943 (Close): Move the call to Lock_Task to the beginning of the procedure.
3945 2007-04-06 Geert Bosch <bosch@adacore.com>
3946 Robert Dewar <dewar@adacore.com>
3948 * i-fortra.ads: Add Double_Complex type.
3950 * impunit.adb: (Is_Known_Unit): New function
3951 Add Gnat.Byte_Swapping
3953 Add new Ada 2005 units
3954 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
3955 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
3956 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
3957 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
3959 * impunit.ads (Is_Known_Unit): New function
3961 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
3962 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
3963 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
3964 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
3965 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
3966 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
3969 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
3971 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
3973 2007-04-06 Eric Botcazou <botcazou@adacore.com>
3974 Arnaud Charlet <charlet@adacore.com>
3976 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
3977 __gnat_adjust_context_for_raise.
3978 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
3979 implementation of floating point operations as native x86 targets.
3980 So the FPU should be initialized in the same way using finit. Fix
3981 floating point operations accuracy issues.
3982 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
3983 member in struct sigaction, so as to avoid warning for incompatible
3986 2007-04-06 Serguei Rybin <rybin@adacore.com>
3988 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
3989 switches from previously loaded tree
3991 2007-04-06 Thomas Quinot <quinot@adacore.com>
3993 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
3994 cases where a given dependency has a body or not.
3995 (Write_With_File_Names): New subprogram, common code for the two cases
3998 2007-04-06 Ed Schonberg <schonberg@adacore.com>
3999 Javier Miranda <miranda@adacore.com>
4001 * lib-xref.ads, lib-xref.adb:
4002 Modify the loop that collects type references, to include interface
4003 types that the type implements. List each of these interfaces when
4004 building the entry for the type.
4005 (Generate_Definition): Initialize component Def and Typ of new entry
4006 in table Xrefs, to avoid to have these components unitialized.
4007 (Output_References): Split Is_Abstract flag into
4008 Is_Abstract_Subprogram and Is_Abstract_Type.
4009 (Generate_Reference): Add barrier to do not generate the warning
4010 associated with Ada 2005 entities with entities generated by the
4013 2007-04-06 Robert Dewar <dewar@adacore.com>
4014 Arnaud Charlet <charlet@adacore.com>
4015 Vincent Celier <celier@adacore.com>
4017 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
4018 Update 'Exception Handling Control' chapter which was outdated.
4019 Minor fix to documentation of -gnatwq
4020 Remove section "Adapting the Run Time to a New C++ Compiler" because
4022 Add passage on need of -nostart-files in some non-ada-main cases.
4023 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
4024 Update documentation about Interfacing with C++
4025 Add documentation for new gnatmake switch -p
4026 Add missing protocol part in URLs.
4028 Document pragma Compile_Time_Error
4029 Add documentation for Object_Size indicating that stand alone
4030 objects can have a larger size in some cases.
4031 Add node for GNAT.Byte_Swapping, GNAT.SHA1
4032 Update reference to the Ravenscar profile.
4033 Document pragma Unreferenced_Objects
4035 * gnat-style.texi: Fix typo
4037 2007-04-06 Vincent Celier <celier@adacore.com>
4039 * mlib.adb (Building_Library): Only output "building a library..." in
4042 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
4043 files in verbose mode.
4045 * mlib-utl.adb (Ar): Only output the first object files when not in
4047 (Gcc): Do not display all the object files if not in verbose mode, only
4050 2007-04-06 Robert Dewar <dewar@adacore.com>
4052 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
4053 it no longer destroys the contents of Name_Buffer or Name_Len and
4054 non-standard and invalid names are handled better.
4055 (Get_Decoded_Name_String): Improve performance by using
4056 Name_Has_No_Encodings flag in the name table.
4057 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
4058 Used for debugging printouts.
4060 2007-04-06 Robert Dewar <dewar@adacore.com>
4061 Javier Miranda <miranda@adacore.com>
4062 Bob Duff <duff@adacore.com>
4064 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
4065 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
4066 there is no need to generate always a record_definition_node in case
4067 of synchronized interface types.
4068 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
4069 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
4070 illegal in Ada 95, in cases where it is legal. Change the warnings to
4071 errors in other cases. Don't give the error unless the "not null"
4072 parses properly. Correct the source position at which the error occurs.
4073 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
4074 P_Null_Exclusion, to suppress "not null" warnings.
4075 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
4076 associated goto statements.
4078 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
4081 * scans.ads (Type_Token_Location): New flag
4083 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
4084 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
4085 P_Null_Exclusion, to suppress "not null" warnings.
4087 2007-04-06 Robert Dewar <dewar@adacore.com>
4088 Javier Miranda <miranda@adacore.com>
4089 Bob Duff <duff@adacore.com>
4090 Vincent Celier <celier@adacore.com>
4092 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
4093 (Extensions_Allowed): No longer sets Ada_Version
4094 Entry for pragma Unreferenced_Objects
4096 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
4097 system.tasking if pragma priority used in a procedure
4098 (Analyze_Pragma, case Warning): Handle dot warning switches
4099 (Process_Compile_Time_Warning_Or_Error): New procedure
4100 (Analyze_Pragma): Add processing for Compile_Time_Error
4101 Add support for extra arguments External_Name and Link_Name.
4102 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
4103 (Process_Import_Or_Interface): Add support for the use of pragma Import
4105 (Extensions_Allowed): No longer affects Ada_Version
4106 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
4107 Is_Abstract_Type. Make sure these are called only when appropriate.
4108 Add processing for pragma Unreferenced_Objects
4110 * snames.h, snames.ads, snames.adb: Add entry for pragma
4112 Add new standard name Minimum_Binder_Options for new gprmake
4113 Add new standard names for gprmake: Archive_Suffix,
4114 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
4115 Library_Support, Library_Version_Options,
4116 Shared_Library_Minimum_Options,
4117 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
4118 Change Name_Call to Name_uCall so that it cannot clash with a legal
4120 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
4121 Append C_Plus_Plus to convention identifiers as synonym for CPP
4122 Add new standard names Stack and Builder_Switches
4123 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
4124 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
4125 Run_Path_Option, Toolchain_Version.
4126 Entry for pragma Unreferenced_Objects
4128 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
4129 switches, without repetition of "eD". Make sure that last character of
4130 -gnatep= switch is not taken as -gnat switch character.
4131 Complete rewrite of circuit for handling saving compilation options
4132 Occasioned by need to support dot switchs for -gnatw, but cleans up
4134 -gnatX does not affect Ada_Version
4135 Include -gnatyA in -gnatg style switches
4137 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
4138 warnings on return objects.
4139 (Warn_On_Useless_Assignment): Exclude warnings on return objects
4140 (Set_Dot_Warning_Switch): New procedure
4141 (Check_References): Add missing case of test for
4142 Has_Pragma_Unreferenced_Objects
4143 (Output_Unreferenced_Messages): Implement effect of new pragma
4144 Unreferenced_Objects, remove special casing of limited controlled
4147 2007-04-06 Vincent Celier <celier@adacore.com>
4149 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
4150 the default project path, initially done during elaboration of the
4152 If the prefix returned by Sdefault is null, get the prefix from a call
4153 to Executable_Prefix_Path.
4154 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
4157 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
4158 canonical directory name to open the directory from which files are
4160 (Record_Other_Sources): Idem.
4161 (Locate_Directory): Add the possibility to create automatically missing
4162 directories when Setup_Projects is True.
4163 Call Locate_Directory so that the directory will be created when
4164 Setup_Projects is True, for object dir, library dir, library ALI dir,
4165 library source copy dir and exec dir.
4167 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
4170 2007-04-06 Robert Dewar <dewar@adacore.com>
4172 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
4173 Use First/Next_Component_Or_Discriminant
4174 (Analyze_Record_Representation_Clause):
4175 Use First/Next_Component_Or_Discriminant
4176 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
4177 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
4178 definition if type is unconstrained.
4179 (Adjust_Record_For_Reverse_Bit_Order): New procedure
4180 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
4181 Is_Abstract_Subprogram and Is_Abstract_Type.
4182 (Adjust_Record_For_Reverse_Bit_Order): New procedure
4184 * repinfo.adb (List_Record_Info): Use First/
4185 Next_Component_Or_Discriminant.
4187 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
4190 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
4191 Include -gnatyA in default switches
4193 * opt.ads: (Warn_On_Non_Local_Exception): New flag
4194 (Warn_On_Reverse_Bit_Order): New flag
4195 (Extensions_Allowed): Update the documentation.
4196 (Warn_On_Questionable_Missing_Parens): Now on by default
4198 * usage.adb: Add documentation of -gnatw.x/X switches
4199 Document new -gnatyA style switch
4200 -gnatq warnings are on by default
4202 2007-04-06 Ed Falis <falis@adacore.com>
4204 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
4205 full word is no longer compared twice.
4207 2007-04-06 Ed Schonberg <schonberg@adacore.com>
4209 * sem_ch10.adb (Install_Limited_Context_Clauses.
4210 Expand_Limited_With_Clause): Use a new copy of selector name in the
4211 call to Make_With_Clause. This fixes the tree structure for ASIS
4212 purposes. Nothing is changed in the compiler behaviour.
4213 (Process_Body_Clauses): Handle properly use clauses whose prefix is
4215 (Install_Limited_With_Clauses): Do not install non-limited view when it
4216 is still incomplete.
4218 2007-04-06 Ed Schonberg <schonberg@adacore.com>
4219 Gary Dismukes <dismukes@adacore.com>
4221 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
4222 when capturing size information, instead of base type, which for a
4223 formal array type will be the unconstrained type.
4224 (Analyze_Formal_Object_Declaration): Add check for illegal default
4225 expressions for a formal in object of a limited type.
4226 (Instantiate_Object): Ditto.
4227 (Check_Formal_Package_Instance): Skip entities that are formal objects,
4228 because they were defaulted in the formal package and no check applies
4230 (Check_Formal_Package_Instance): Extend conformance check to other
4231 discrete types beyond Integer.
4232 (Process_Default): Copy directly the unmatched formal. A generic copy
4233 has already been performed in Analyze_Formal_Package.
4234 (Analyze_Associations): If a formal subprogram has no match, check for
4235 partial parametrization before looking for a default, to prevent
4237 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
4238 not set the instantiation environment before analyzing the actuals.
4239 Fixes regression on 8515-003 with implementation of AI-133.
4240 Set_Instance_Env checks whether the generic unit is a predefined
4241 unit, in which case the instance must be analyzed with the latest Ada
4242 mode. This setting must take place after analysis of the actuals,
4243 because the actuals must be analyzed and frozen in the Ada mode extant
4244 outside of the current instantiation.
4245 (Save_Env, Restore_Env): Preserve and restore the configuration
4246 parameters so that predefined units can be compiled in the proper Ada
4248 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
4249 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
4250 and Is_Abstract_Type.
4251 (Analyze_Formal_Package): For better error recovery, Add exception
4252 handler to catch Instantion_Error, which can be raised in
4253 Analyze_Associations
4255 2007-04-06 Ed Schonberg <schonberg@adacore.com>
4256 Bob Duff <duff@adacore.com>
4257 Gary Dismukes <dismukes@adacore.com>
4259 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
4260 prefix type is a discriminated subtype of the type of the formal.
4261 (Analyze_Allocator): Collect all coextensions regardless of the context.
4262 Whether they can be allocated statically is determined in exp_ch4.
4263 (Analyze_Selected_Component): If the prefix is a limited view and the
4264 non-limited view is available, use the non-limited one.
4265 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
4266 therefore illegal), suggest a qualified expression rather than a type
4267 conversion, because a type conversion would be illegal in this context.
4268 (Anayze_Allocator): Trace recursively all nested allocators so that all
4269 coextensions are on the corresponding list for the root. Do no mark
4270 coextensions if the root allocator is within a declaration for a stack-
4271 allocated object, because the access discriminants will be allocated on
4273 (Analyze_Call): Remove restriction on calls to limited functions for the
4274 cases of generic actuals for formal objects, defaults for formal objects
4275 and defaults for record components.
4276 (Analyze_Allocator): Before analysis, chain coextensions on the proper
4277 element list. Their expansion is delayed until the enclosing allocator
4278 is processed and its finalization list constructed.
4279 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
4280 for an operation with the given name among the primitive operations of
4281 the corresponding record type.
4282 (Analyze_Selected_Component): If the prefix is a task type that
4283 implements an interface, and there is no entry with the given name,
4284 check whether there is another primitive operation (e.g. a function)
4286 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
4287 properly the indexing of a function call written in prefix form, where
4288 the function returns an array type, and all parameters of the function
4289 except the first have defaults.
4290 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
4291 the original operands, rather than relocating them, for efficiency and
4292 to work properly when an operand is overloaded.
4293 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
4294 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
4295 (Analyze_Selected_Component): If the prefix is a private extension, only
4296 scan the visible components, not those of the full view.
4297 (Try_Primitive_Operation): If the operation is a procedure, collect all
4298 possible interpretations, as for a function, because in the presence of
4299 classwide parameters several primitive operations of the type can match
4300 the given arguments.
4302 2007-04-06 Ed Schonberg <schonberg@adacore.com>
4303 Robert Dewar <dewar@adacore.com>
4305 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
4306 tag-indeterminate call to an abstract function, when the left-hand side
4308 (Analyze_Loop_Statement): Improve detection of infinite loops
4310 2007-04-06 Ed Schonberg <schonberg@adacore.com>
4311 Thomas Quinot <quinot@adacore.com>
4313 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
4314 out of Analyze_Package_Declaration, because processing must be applied
4315 to package bodies as well, for deferred constants completed by pragmas.
4316 (Analyze_Package_Declaration): When the package declaration being
4317 analyzed does not require an explicit body, call Check_Completion.
4318 (May_Need_Implicit_Body): An implicit body is required when a package
4319 spec contains the declaration of a remote access-to-classwide type.
4320 (Analyze_Package_Body): If the package contains RACWs, append the
4321 pending subprogram bodies generated by exp_dist at the end of the body.
4322 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
4323 Is_Abstract_Subprogram and Is_Abstract_Type.
4324 (Preserve_Full_Attributes): The full entity list is not an attribute
4325 that must be preserved from full to partial view.
4327 * sem_dist.adb (Add_RAS_Dereference_TSS):
4328 Change primitive name to _Call so it cannot clash with any legal
4329 identifier, and be special-cased in Check_Completion.
4330 Mark the full view of the designated type for the RACW associated with
4331 a RAS as Comes_From_Source to get proper view switching when installing
4332 private declarations.
4333 Provite a placeholder nested package body along with the nested spec
4334 to have a place for Append_RACW_Bodies to generate the calling stubs
4335 and stream attributes.
4337 2007-04-06 Ed Schonberg <schonberg@adacore.com>
4338 Robert Dewar <dewar@adacore.com>
4340 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
4341 that is a limited view, check the non-limited view if available.
4342 (Undefined): Refine error message for missing with of Text_IO
4343 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
4344 to distinguish real missing with cases.
4345 Fix format of all missing with messages
4346 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
4347 renaming as body when renamed entity is abstract.
4349 2007-04-06 Ed Schonberg <schonberg@adacore.com>
4350 Javier Miranda <miranda@adacore.com>
4352 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
4353 predicate recursive, to handle complex expressions on literals whose
4354 spurious ambiguity comes from the abstract interpretation of some
4356 (Interface_Present_In_Ancestor): Add support to concurrent record
4358 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
4359 Is_Abstract_Subprogram and Is_Abstract_Type.
4361 2007-04-06 Ed Schonberg <schonberg@adacore.com>
4362 Javier Miranda <miranda@adacore.com>
4364 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
4365 dereference of a local object R created as a reference to another
4366 object O, use the access level of O.
4367 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
4368 rather than local Same_Formal_Type, to check whether protected operation
4369 overrides an inherited one.
4370 (Same_Formal_Type): New predicate, used when matching signatures of
4371 overriding synchronized operations, to handle the case when a formal
4372 has a type that is a generic actual.
4373 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
4374 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
4375 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
4376 syntactic ambiguities involving indexing of function calls that return
4378 (Abstract_Interface_List): New subprogram that returns the list of
4379 abstract interfaces associated with a concurrent type or a
4380 concurrent record type.
4381 (Interface_Present_In_Parent): New subprogram used to check if a
4382 given type or some of its parents implement a given interface.
4383 (Collect_Abstract_Interfaces): Add support for concurrent types
4384 with interface types.
4385 (Has_Abstract_Interfaces): Add support for concurrent types with
4387 (Is_Parent): New subprogram that determines whether E1 is a parent
4388 of E2. For a concurrent type its parent is the first element of its
4389 list of interface types; for other types this function provides the
4390 same result than Is_Ancestor.
4391 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
4392 (Collect_Synchronized_Interfaces): Removed because the subprogram
4393 Collect_Abstract_Interfaces provides this functionality.
4394 (Collect_Abstract_Interfaces): Minor update to give support to
4395 concurrent types and thus avoid undesired code duplication.
4396 (Get_Subprogram_Entity): Handle entry calls.
4397 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
4399 (Enter_Name): Do not give -gnatwh hiding warning for record component
4400 entities, they never result in hiding.
4402 2007-04-06 Ed Schonberg <schonberg@adacore.com>
4403 Robert Dewar <dewar@adacore.com>
4405 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
4406 to chain nested components that are allocators for access discriminants
4407 of the enclosing object.
4408 Add N_Push and N_Pop nodes
4409 New field Exception_Label added
4410 (Local_Raise_Statements): New field in N_Exception_Handler_Node
4411 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
4412 (Is_Coextension): New flag for allocators, to mark allocators that
4413 correspond to access discriminants of dynamically allocated objects.
4414 (N_Block_Statement): Document the fact that the corresponding entity
4415 can be an E_Return_Statement.
4416 (Is_Coextension): New flag for allocators.
4417 Remove all code for DSP option
4419 * sprint.ads, sprint.adb: Display basic information for class_wide
4420 subtypes. Add handling of N_Push and N_Pop nodes
4422 2007-04-06 Arnaud Charlet <charlet@adacore.com>
4424 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
4425 before propagating exception.
4427 2007-04-06 Olivier Hainque <hainque@adacore.com>
4429 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
4430 an address always within the call instruction from a return address.
4432 2007-04-06 Olivier Hainque <hainque@adacore.com>
4433 Eric Botcazou <botcazou@adacore.com>
4435 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
4436 expression with a COMPOUND_EXPR including the call instead of emitting
4437 the call directly here.
4438 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
4439 high bound is constant and the slice is empty. Tidy.
4440 (tree_transform, case N_Op_Not): Handle properly the case where the
4441 operation applies to a private type whose full view is a modular type.
4442 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
4443 Address_Clause, use the associated Expression as the GNAT tree
4444 representing the choice value to ensure the corresponding GCC tree is
4446 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
4447 instead of just the operands, as the base GCC stabilize_reference does.
4448 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
4449 requested; otherwise fail.
4450 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
4452 2007-04-06 Thomas Quinot <quinot@adacore.com>
4454 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
4455 implementation of UI_Div.
4456 (UI_Div): Reimplement as a call to UI_Div_Rem.
4457 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
4458 remainder, avoiding the cost of a multiplication and a subtraction.
4459 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
4460 provides both quotient and remainder in a single computation.
4461 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
4463 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
4464 is undefined if the given n is not inversible.
4466 2007-04-06 Olivier Hainque <hainque@adacore.com>
4468 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
4469 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
4472 2007-04-06 Eric Botcazou <botcazou@adacore.com>
4473 Olivier Hainque <hainque@adacore.com>
4475 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
4476 when updating the contents of the old pointer to an unconstrained array.
4477 (end_subprog_body): Set error_gnat_node to Empty.
4478 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
4479 (unchecked_convert): For subtype to base type conversions, require that
4480 the source be a subtype if it is an integer type.
4481 (builtin_decls): New global, vector of available builtin functions.
4482 (gnat_pushdecl): Add global builtin function declaration nodes to the
4484 (gnat_install_builtins): Adjust comments.
4485 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
4486 calling gnat_pushdecl, so that it knows when it handed a builtin
4487 function declaration node.
4488 (builtin_decl_for): Search the builtin_decls list.
4490 2007-04-06 Eric Botcazou <botcazou@adacore.com>
4492 * s-stchop-vxworks.adb:
4493 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
4495 2007-04-06 Robert Dewar <dewar@adacore.com>
4496 Arnaud Charlet <charlet@adacore.com>
4498 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
4500 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
4502 Add mention of -Sev (set initialize_scalars option from environment
4503 variable at run time) in gnatbind usage message.
4505 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
4507 * fname-uf.ads: Minor comment fix
4509 * osint.ads: Change pragma Elaborate to Elaborate_All
4511 * par-load.adb: Add documentation.
4513 * sem_cat.ads, sem_cat.adb: Minor code reorganization
4515 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
4517 * s-secsta.ads: Extra comments
4519 * s-soflin.ads: Minor comment fixes
4521 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
4523 * s-wchcon.ads: Minor comment addition
4525 * treepr.adb: Minor change in message
4526 (Print_Name,Print_Node): Make these debug printouts more robust: print
4527 "no such..." instead of crashing on bad input.
4529 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
4531 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
4532 instead of gnat_signed_or_unsigned_type.
4533 * utils.c (gnat_signed_or_unsigned_type): Remove.
4534 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
4535 * gigi.h (gnat_signed_or_unsigned_type): Remove
4537 2007-03-09 Roger Sayle <roger@eyesopen.com>
4539 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
4540 fold with the result of buildN.
4541 * decl.c (gnat_to_gnu_entity): Likewise.
4542 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
4543 * utils.c (finish_record_type, merge_sizes, max_size, convert):
4545 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
4546 nonbinary_modular_operation, build_binary_op, build_unary_op,
4547 build_cond_expr): Likewise.
4549 * utils.c (convert): Use fold_build1 when casting values to void.
4550 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
4551 fold_convert instead of convert when appropriate.
4553 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
4555 * Make-lang.in: Add install-pdf target as copied from
4556 automake v1.10 rules.
4558 2007-02-28 Andreas Schwab <schwab@suse.de>
4560 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
4561 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
4562 (doc/gnat-style.info): Likewise.
4564 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
4566 * gnat-style.texi: Standardize title page.
4567 * gnat_rm.texi: Likewise.
4568 * gnat_ugn.texi: Likewise.
4570 2007-02-25 Mark Mitchell <mark@codesourcery.com>
4572 * decl.c (annotate_value): Adjust for refactoring of tree_map
4575 2007-02-24 Mark Mitchell <mark@codesourcery.com>
4577 * decl.c (annotate_value): Adjust for refactoring of tree_map
4580 2007-02-21 Ed Schonberg <schonberg@adacore.com>
4583 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
4584 untagged derived type, add hidden components to keep discriminant
4585 layout consistent, when a given discriminant of the derived type
4586 constraints several discriminants of the parent type.
4588 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
4589 Sandra Loosemore <sandra@codesourcery.com>
4591 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
4592 build the call expression.
4593 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
4594 * utils.c (max_size) <tcc_exceptional>: Delete.
4595 <tcc_vl_exp>: New case.
4596 <tcc_expression>: Delete CALL_EXPR subcase.
4597 (build_global_cdtor): Use build_call_nary instead of build3.
4598 * utils2.c (build_call_1_expr): Likewise.
4599 (build_call_2_expr): Likewise.
4600 (build_call_0_expr): Likewise.
4601 (build_call_alloc_dealloc): Likewise.
4603 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
4605 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
4606 get_action_description_for): Replace _Unwind_Word with _uleb128_t
4607 and _Unwind_SWord with _sleb128_t.
4609 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
4611 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
4612 * decl.c: Include gt-ada-decl.h.
4613 (annotate_value_cache): New.
4614 (annotate_value): Use it instead of TREE_COMPLEXITY.
4616 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
4618 * misc.c, utils2.c: Fix comment typos.
4620 2007-01-24 Roger Sayle <roger@eyesopen.com>
4622 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
4623 TREE_CONSTANT_OVERFLOW.
4624 (allocatable_size_p, annotate_value): Likewise.
4625 * trans.c (gnat_to_gnu): Likewise.
4626 * utils.c (unchecked_convert): Likewise.
4627 * utils2.c (build_simple_component_ref): Likewise.
4629 2007-01-23 Richard Guenther <rguenther@suse.de>
4632 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
4633 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
4634 (gnatboot3): Likewise.
4635 (GNATBIND): Do not define.
4636 * Makefile.in (GNATBIND): Do not define.
4638 2007-01-08 Richard Guenther <rguenther@suse.de>
4640 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
4641 * trans.c (gnat_to_gnu): Likewise.
4643 2006-12-07 Geoffrey Keating <geoffk@apple.com>
4645 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
4646 * adaint.c: Likewise.
4648 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
4650 Merge from gimple-tuples-branch:
4651 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
4653 * ada-tree.h (lang_tree_node): Handle gimple tuples.
4654 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
4657 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
4659 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
4660 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
4663 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
4666 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
4667 if the initializer takes into account the padding.
4669 2006-11-11 Richard Guenther <rguenther@suse.de>
4671 * trans.c (maybe_stabilize_reference): Remove handling of
4672 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
4674 2006-11-05 Arnaud Charlet <charlet@adacore.com>
4677 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
4678 (To_Target_Priority): New function.
4680 2006-10-31 Robert Dewar <dewar@adacore.com>
4682 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
4683 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
4684 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
4685 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
4686 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
4687 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
4688 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
4689 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
4690 a-szbzha.adb: Minor reformatting. Fix header.
4692 * a-numaux-x86.adb: Add parentheses for use of unary minus
4693 * a-ngcefu.adb: Supply missing parentheses for unary minus
4694 * a-ngcoty.adb: Add parens for use of unary minus
4695 * a-ngelfu.adb: Add missing parens for unary minus
4696 * a-tifiio.adb: Add parentheses for uses of unary minus
4698 2006-10-31 Robert Dewar <dewar@adacore.com>
4699 Bob Duff <duff@adacore.com>
4700 Ed Schonberg <schonberg@adacore.com>
4702 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
4703 with multiplying operator.
4704 (Expected_Type_Is_Any_Real): New function to determine from the Parent
4705 pointer whether the context expects "any real type".
4706 (Resolve_Arithmetic_Op): Do not give an error on calls to the
4707 universal_fixed "*" and "/" operators when they are used in a context
4708 that expects any real type. Also set the type of the node to
4709 Universal_Real in this case, because downstream processing requires it
4710 (mainly static expression evaluation).
4711 Reword some continuation messages
4712 Add some \\ sequences to continuation messages
4713 (Resolve_Call): Refine infinite recursion case. The test has been
4714 sharpened to eliminate some false positives.
4715 Check for Current_Task usage now includes entry barrier, and is now a
4716 warning, not an error.
4717 (Resolve): If the call is ambiguous, indicate whether an interpretation
4718 is an inherited operation.
4719 (Check_Aggr): When resolving aggregates, skip associations with a box,
4720 which are priori correct, and will be replaced by an actual default
4721 expression in the course of expansion.
4722 (Resolve_Type_Conversion): Add missing support for conversion from
4723 a class-wide interface to a tagged type. Minor code cleanup.
4724 (Valid_Tagged_Converion): Add support for abstact interface type
4726 (Resolve_Selected_Component): Call Generate_Reference here rather than
4727 during analysis, and use May_Be_Lvalue to distinguish read/write.
4728 (Valid_Array_Conversion): New procedure, abstracted from
4729 Valid_Conversion, to incorporate accessibility checks for arrays of
4730 anonymous access types.
4731 (Valid_Conversion): For a conversion to a numeric type occurring in an
4732 instance or inlined body, no need to check that the operand type is
4733 numeric, since this has been checked during analysis of the template.
4734 Remove legacy test for scope name Unchecked_Conversion.
4736 * sem_res.ads: Minor reformatting
4738 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
4739 (PE_Current_Task_In_Entry_Body): New exception code
4740 (SE_Restriction_Violation): Removed, not used
4742 * a-except.ads: Update comments.
4744 * types.h, types.ads: Add definition for Validity_Check
4745 (PE_Current_Task_In_Entry_Body): New exception code
4746 (SE_Restriction_Violation): Removed, not used
4748 2006-10-31 Thomas Quinot <quinot@adacore.com>
4750 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
4753 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
4754 Jose Ruiz <ruiz@adacore.com>
4756 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
4757 part of Ada.Calendar: all subprogram raise Unimplemented.
4758 (Split_W_Offset): Temp function body, raising Unimplemented
4760 * a-calend.ads, a-calend-vms.ads:
4761 Add imported variable Invalid_TZ_Offset used to designate targets unable
4762 to support time zones.
4763 (Unimplemented): Temporary function raised by the body of new
4765 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
4766 unit provides handling of leap seconds and is used by the new Ada 2005
4767 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
4768 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
4769 version returns an extra value which is the offset to UTC.
4771 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
4772 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
4773 (Split_W_Offset): New function body.
4774 (Time_Of): When a date is close to UNIX epoch, compute the time for
4775 that date plus one day (that amount is later substracted after
4776 executing mktime) so there are no problems with time zone adjustments.
4778 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
4780 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
4781 a-catizo.ads, a-catizo.adb: New files.
4783 * impunit.adb: Add new Ada 2005 entries
4785 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
4786 Rename all occurences of "__gnat_localtime_r" to
4787 "__gnat_localtime_tzoff".
4788 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
4789 zone data and calculate the GMT offset.
4790 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
4791 Use the field "tm_gmtoff" to extract the GMT offset.
4792 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
4793 the external variable "timezone" to calculate the GMT offset.
4795 2006-10-31 Arnaud Charlet <charlet@adacore.com>
4796 Jose Ruiz <ruiz@adacore.com>
4798 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
4799 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
4800 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
4801 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
4802 System.Any_Priority to a POSIX priority on the target.
4804 * system-linux-ia64.ads:
4805 Extend range of Priority types on Linux to use the whole range made
4806 available by the system.
4808 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
4809 function maps from System.Any_Priority to a POSIX priority on the
4811 (PTHREAD_PRIO_PROTECT): Set real value.
4812 (PTHREAD_PRIO_INHERIT): Now a function.
4813 (SIGCPUFAIL): New signal.
4814 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
4815 are documented as reserved by the OS.
4817 * system-aix.ads: Use the full range of priorities provided by the
4820 * s-taprop-posix.adb: Call new function To_Target_Priority.
4821 (Set_Priority): Take into account Task_Dispatching_Policy and
4822 Priority_Specific_Dispatching pragmas when determining if Round Robin
4823 must be used for scheduling the task.
4825 * system-linux-x86_64.ads, system-linux-x86.ads,
4826 system-linux-ppc.ads: Extend range of Priority types on Linux to use
4827 the whole range made available by the system.
4829 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
4830 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
4831 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
4832 when deallocating the TCB in order to avoid potential references to
4834 (Set_Priority): Take into account Task_Dispatching_Policy and
4835 Priority_Specific_Dispatching pragmas when determining if Round Robin
4836 or FIFO within priorities must be used for scheduling the task.
4838 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
4839 the Thread field (to be used internally by the run-time system) and the
4840 kernel-level task id in the LWP field (to be used by the debugger).
4841 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
4842 instance, and propagate the current task options to the spawned task.
4843 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
4844 (Initialize): Set Round Robin dispatching when the corresponding pragma
4847 2006-10-31 Robert Dewar <dewar@adacore.com>
4849 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
4850 system-linux-hppa.ads, system-hpux-ia64.ads,
4851 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
4852 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
4853 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
4854 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
4855 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
4856 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
4857 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
4858 Default_Bit_Order) to kill constant condition warnings for references
4861 2006-10-31 Vincent Celier <celier@adacore.com>
4862 Eric Botcazou <ebotcazou@adacore.com>
4864 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
4865 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
4866 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
4867 Ext_To, when building the library file name
4869 * mlib-tgt-vxworks.adb: ditto.
4870 (Get_Target_Suffix): Add support for x86 targets.
4872 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
4874 * mlib-tgt-darwin.adb:
4875 Use Append_To, instead of Ext_To, when building the library file name
4876 (Flat_Namespace): New global variable.
4877 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
4878 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
4879 (Link_Shared_Libgcc): Delete.
4880 (Build_Dynamic_Library): Adjust for above changes.
4882 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
4884 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
4886 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
4887 (Initialize): Add type conversions required by above change.
4889 2006-10-31 Jose Ruiz <ruiz@adacore.com>
4891 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
4892 (getpid): New body for this function that uses the underlying taskIdSelf
4893 function for VxWorks 5 and VxWorks 6 in kernel mode.
4894 (unsigned_int): New type, modular to allow logical bit operations.
4895 (taskOptionsGet): New imported function.
4897 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
4898 field to be compliant with the type used by the corresponding operating
4901 2006-10-31 Pascal Obry <obry@adacore.com>
4902 Eric Botcazou <ebotcazou@adacore.com>
4903 Vincent Celier <celier@adacore.com>
4905 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
4906 ASCII version of the registry API. This is needed as the GNAT runtime
4907 is now UNICODE by default.
4909 (get_gcc_version): Do not hardcode the return value.
4910 (__gnat_file_time_name): On Windows properly set the default returned
4911 value to -1 which corresponds to Invalid_Time.
4912 (__gnat_fopen): New routine. A simple wrapper on all plateforms
4913 except on Windows where it does conversion for unicode support.
4914 (__gnat_freopen): Idem.
4915 (__gnat_locate_exec_on_path): If environment variable PATH does not
4916 exist, return a NULL pointer
4918 * adaint.h: (__gnat_fopen): Declare.
4919 (__gnat_freopen): Likewise.
4921 * mingw32.h (_tfreopen): Define this macro here for older MingW
4923 Activate the unicode support on platforms using a MingW runtime
4924 version 3.9 or newer.
4926 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
4927 This is needed for proper unicode support on Windows.
4930 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
4931 Nicolas Setton <setton@adacore.com>
4932 Olivier Hainque <hainque@adacore.com>
4933 Gary Dismukes <dismukes@adacore.com>
4935 * gigi.h: (tree_code_for_record_type): Declare.
4936 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
4937 (get_global_renaming_pointers): Rename to
4938 invalidate_global_renaming_pointers.
4939 (static_ctors): Delete.
4940 (static_dtors): Likewise.
4941 (gnat_write_global_declarations): Declare.
4942 (create_var_decl): Adjust descriptive comment to indicate that the
4943 subprogram may return a CONST_DECL node.
4944 (create_true_var_decl): Declare new function, similar to
4945 create_var_decl but forcing the creation of a VAR_DECL node.
4946 (get_global_renaming_pointers): Declare.
4947 (add_global_renaming_pointer): Likewise.
4949 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
4951 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
4952 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
4954 (gnat_to_gnu_entity): Remove From_With_Type from computation for
4956 <E_Access_Type>: Use the Non_Limited_View as the full view of the
4957 designated type if the pointer comes from a limited_with clause. Make
4958 incomplete designated type if it is in the main unit and has a freeze
4960 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
4961 Underlying_Full_View similarly. Return earlier if the full view already
4962 has an associated tree.
4963 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
4964 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
4965 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
4966 reference type built for objects with an address clause.
4967 Use create_true_var_decl with const_flag set for
4968 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
4970 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
4971 for Character and Wide_Character types. This info is read by the
4972 dwarf-2 writer, and is needed to be able to use the command "ptype
4973 character" in the debugger.
4974 (gnat_to_gnu_entity): When generating a type representing
4975 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
4976 so that debug writers can distinguish it from ordinary integers.
4977 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
4978 addition to TREE_READONLY to assert the constantness of variables for
4979 elaboration purposes.
4980 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
4981 parameters to call new Einfo function First_Formal_With_Extras.
4982 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
4983 protected type with its corresponding discriminant, to obtain a usable
4985 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
4986 for a multiple elaboration of the "equivalent" type.
4987 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
4988 into record_global_renaming_pointer.
4989 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
4990 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
4991 <E_Array_Subtype>: Likewise.
4992 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
4993 incomplete subtypes and incomplete subtypes of incomplete types visible
4994 through a limited with clause.
4995 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
4996 the base index type for the maximum size of the array only if they are
4998 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
4999 expression into a SAVE_EXPR if stabilization failed.
5001 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
5002 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
5003 by lower level compilation passes.
5004 (gnat_genericize): New function, lowering a function body to GENERIC.
5005 Turn the type of RESULT_DECL into a real reference type if the decl
5006 has been marked DECL_BY_REFERENCE, and adjust references to the latter
5008 (gnat_genericize_r): New function. Tree walking callback for
5010 (convert_from_reference, is_byref_result): New functions. Helpers for
5012 (create_type_decl): Call gnat_pushdecl before calling
5013 rest_of_decl_compilation, to make sure that field TYPE_NAME of
5014 type_decl is properly set before calling the debug information writers.
5015 (write_record_type_debug_info): The heuristics which compute the
5016 alignment of a field in a variant record might not be accurate. Add a
5017 safety test to make sure no alignment is set to a smaller value than
5018 the alignment of the field type.
5019 (make_dummy_type): Use the Non_Limited_View as the underlying type if
5020 the type comes from a limited_with clause. Do not loop on the full view.
5021 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
5022 (dummy_node_table): New global variable, moved from decl.c.
5023 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
5024 (save_gnu_tree): Use above macros.
5025 (get_gnu_tree): Likewise.
5026 (present_gnu_tree): Likewise.
5027 (init_dummy_type): New function, moved from decl.c. Use above macros.
5028 (make_dummy_type): Likewise.
5029 (tree_code_for_record_type): New function extracted from make_dummy_type
5030 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
5031 (static_ctors): Change it to a vector, make static.
5032 (static_dtors): Likewise.
5033 (end_subprog_body): Adjust for above change.
5034 (build_global_cdtor): Moved from trans.c.
5035 (gnat_write_global_declarations): Emit global constructor and
5036 destructor, and call cgraph_optimize before emitting debug info for
5037 global declarations.
5038 (global_decls): New global variable.
5039 (gnat_pushdecl): Store the global declarations in global_decls, for
5041 (gnat_write_global_declarations): Emit debug information for global
5043 (create_var_decl_1): Former create_var_decl, with an extra argument to
5044 state whether the creation of a CONST_DECL is allowed.
5045 (create_var_decl): Behavior unchanged. Now a wrapper around
5046 create_var_decl_1 allowing CONST_DECL creation.
5047 (create_true_var_decl): New function, similar to create_var_decl but
5048 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
5049 (create_field_decl): Do not always mark the field as addressable
5050 if its type is an aggregate.
5051 (global_renaming_pointers): New static variable.
5052 (add_global_renaming_pointer): New function.
5053 (get_global_renaming_pointers): Likewise.
5055 * misc.c (gnat_dwarf_name): New function.
5056 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
5057 (gnat_post_options): Add comment about structural alias analysis.
5058 (gnat_parse_file): Do not call cgraph_optimize here.
5059 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
5061 * trans.c (process_freeze_entity): Don't abort if we already have a
5062 non dummy GCC tree for a Concurrent_Record_Type, as it might
5063 legitimately have been elaborated while processing the associated
5064 Concurrent_Type prior to this explicit freeze node.
5065 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
5066 exception handler volatile if it is of variable size.
5067 (process_type): Remove bypass for types coming from a limited_with
5069 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
5070 actual, convert the corresponding gnu_actual to the real destination
5071 type when necessary.
5072 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
5073 originally TREE_READONLY but whose elaboration cannot be performed
5075 Part of fix for F504-021.
5076 (tree_transform, subprogram cases): Change loops on formal parameters to
5077 call new Einfo function First_Formal_With_Extras.
5078 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
5079 stemming from type conversion for the lhs.
5080 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
5081 number of bits per unit for components of records.
5082 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
5083 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
5084 with At_End_Proc after the SJLJ EH cleanup.
5085 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
5087 (elaborate_all_entities): Do not retest type_annotate_only.
5088 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
5089 result type of an abstract subprogram, which may be an itype associated
5090 with an anonymous access result (related to AI-318-02).
5091 (build_global_cdtor): Move to utils.c.
5092 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
5093 this choice is not a null tree nor an integer constant.
5094 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
5095 on the body of elaboration routines instead of mark_unvisited.
5096 (add_stmt): Do not mark the tree.
5097 (add_decl_expr): Tweak comment.
5098 (mark_unvisited): Delete.
5099 (unshare_save_expr): New static function.
5100 (call_to_gnu): Issue an error when making a temporary around a
5101 procedure call because of non-addressable actual parameter if the
5102 type of the formal is by_reference.
5103 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
5104 after building the elaboration routine.
5106 2006-10-31 Bob Duff <duff@adacore.com>
5108 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
5109 as finalization-started, so we can raise Program_Error on 'new'.
5111 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
5112 collection has already started.
5114 * s-finimp.ads (Collection_Finalization_Started): Added new special
5115 flag value for indicating that a collection's finalization has started.
5117 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
5118 create a task whose master has already waited for dependent tasks.
5120 2006-10-31 Robert Dewar <dewar@adacore.com>
5122 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
5124 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
5125 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
5126 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
5127 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
5128 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
5129 a-except-2005.ads: Add pragma Preelaborable_Warning
5131 2006-10-31 Robert Dewar <dewar@adacore.com>
5132 Jose Ruiz <ruiz@adacore.com>
5134 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
5136 * ali.adb (Get_Name): Properly handle scanning of wide character names
5137 encoded with brackets notation.
5138 (Known_ALI_Lines): Add S lines to this list.
5139 (Scan_ALI): Acquire S (priority specific dispatching) lines.
5140 New flag Elaborate_All_Desirable in unit table
5142 * ali.ads (Priority_Specific_Dispatching): Add this range of
5143 identifiers to be used for Priority_Specific_Dispatching table entries.
5144 (ALIs_Record): Add First_Specific_Dispatching and
5145 Last_Specific_Dispatching that point to the first and last entries
5146 respectively in the priority specific dispatching table for this unit.
5147 (Specific_Dispatching): Add this table for storing each S (priority
5148 specific dispatching) line encountered in the input ALI file.
5149 New flag Elaborate_All_Desirable in unit table
5151 * bcheck.adb: (Check_Configuration_Consistency): Add call to
5152 Check_Consistent_Dispatching_Policy.
5153 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
5154 verifying that the use of Priority_Specific_Dispatching,
5155 Task_Dispatching_Policy, and Locking_Policy is consistent across the
5158 * bindgen.adb: (Public_Version_Warning): function removed.
5159 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
5160 required information from ALI files in order to initialize the table
5161 containing the specific dispatching policy.
5162 (Gen_Adainit_Ada): Generate the variables required for priority specific
5163 dispatching entries (__gl_priority_specific_dispatching and
5164 __gl_num_specific_dispatching).
5165 (Gen_Adainit_C): Generate the variables required for priority specific
5166 dispatching entries (__gl_priority_specific_dispatching and
5167 __gl_num_specific_dispatching).
5168 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
5170 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
5171 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
5173 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
5174 a call to gnat_set_globals.
5175 Generate a string containing settings from
5176 Priority_Specific_Dispatching pragma entries.
5177 (Gen_Object_Files_Options): Do not include the runtime libraries when
5178 pragma No_Run_Time is specified.
5180 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
5181 consistency with s-intman-posix.adb.
5182 (__gnat_error_handler, case FreeBSD): Account for the fact that the
5183 handler is installed with SA_SIGINFO.
5184 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
5185 FreeBSD ZCX support, copied from Linux version.
5186 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
5187 sigfillset, and sigemptyset so the routines defined by MaRTE.
5188 (__gl_priority_specific_dispatching): Add this variable that stores the
5189 string containing priority specific dispatching policies in the
5191 (__gl_num_specific_dispatching): Add this variable that indicates the
5192 highest priority for which a priority specific dispatching pragma
5194 (__gnat_get_specific_dispatching): Add this routine that returns the
5195 priority specific dispatching policy, as set by a
5196 Priority_Specific_Dispatching pragma appearing anywhere in the current
5197 partition. The input argument is the priority number, and the result
5198 is the upper case first character of the policy name.
5199 (__gnat_set_globals): Now a dummy function.
5200 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
5201 mechargs instead of sigargs, as the latter can be retrieved from the
5202 former and sigargs is not what we want on ia64.
5203 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
5205 (__gnat_adjust_context_for_raise, ia64-vms): New function.
5206 (tasking_error): Remove unused symbol.
5207 (_abort_signal): Move this symbol to the IRIX specific part since this
5208 is the only target that uses this definition.
5209 (Check_Abort_Status): Move this symbol to the IRIX specific part since
5210 this is the only target that uses this definition.
5211 (Lock_Task): Remove unused symbol.
5212 (Unlock_Task): Remove unused symbol.
5214 * lib-writ.adb (Write_ALI): Output new S lines for
5215 Priority_Specific_Dispatching pragmas.
5216 Implement new flag BD for elaborate body desirable
5218 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
5219 (Specific_Dispatching): Add this table for storing the entries
5220 corresponding to Priority_Specific_Dispatching pragmas.
5221 Document new BD flag for elaborate body desirable
5223 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
5226 2006-10-31 Javier Miranda <miranda@adacore.com>
5228 * a-tags.ads, a-tags.adb:
5229 (Predefined_DT): New function that improves readability of the code.
5230 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
5231 Inherit_DT): Use the new function Predefined_DT to improve code
5233 (Register_Interface_Tag): Update assertion.
5234 (Set_Interface_Table): Update assertion.
5235 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
5236 determining progenitor interfaces in Tags.
5237 (Inherit_CPP_DT): New subprogram.
5239 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
5240 analysis of the thunk code.
5241 (Expand_Interface_Conversion): Handle run-time conversion of
5242 access to class wide types.
5243 (Expand_Dispatching_Call): When generating the profile for the
5244 subprogram itype for a dispatching operation, properly terminate the
5245 formal parameters chaind list (set the Next_Entity of the last formal
5247 (Collect_All_Interfaces): Removed. This routine has been moved to
5248 sem_util and renamed as Collect_All_Abstract_Interfaces.
5249 (Set_All_DT_Position): Hidden entities associated with abstract
5250 interface primitives are not taken into account in the check for
5251 3.9.3(10); this check is done with the aliased entity.
5252 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
5253 interfacing with CPP by default.
5254 (Expand_Interface_Conversion): Add missing support for static conversion
5255 from an interface to a tagged type.
5256 (Collect_All_Interfaces): Add new out formal containing the list of
5257 abstract interface types to cleanup the subprogram Make_DT.
5258 (Make_DT): Update the code to generate the table of interfaces in case
5259 of abstract interface types.
5260 (Is_Predefined_Dispatching_Alias): New function that returns true if
5261 a primitive is not a predefined dispatching primitive but it is an
5262 alias of a predefined dispatching primitive.
5263 (Make_DT): If the ancestor of the type is a CPP_Class and we are
5264 compiling under full ABI compatibility mode we avoid the generation of
5265 calls to run-time services that fill the dispatch tables because under
5266 this mode we currently inherit the dispatch tables in the IP subprogram.
5267 (Write_DT): Emit an "is null" indication for a null procedure primitive.
5268 (Expand_Interface_Conversion): Use an address as the type of the formal
5269 of the internally built function that handles the case in which the
5270 target type is an access type.
5272 2006-10-31 Robert Dewar <dewar@adacore.com>
5274 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
5276 2006-10-31 Robert Dewar <dewar@adacore.com>
5278 * bindusg.ads, bindusg.adb:
5279 Change to package and rename procedure as Display, which
5280 now ensures that it only outputs usage information once.
5282 2006-10-31 Jose Ruiz <ruiz@adacore.com>
5284 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
5287 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
5290 2006-10-31 Robert Dewar <dewar@adacore.com>
5291 Ed Schonberg <schonberg@adacore.com>
5293 * treepr.adb: Use new subtype N_Membership_Test
5295 * checks.ads, checks.adb: Add definition for Validity_Check
5296 (Range_Or_Validity_Checks_Suppressed): New function
5297 (Ensure_Valid): Test Validity_Check suppressed
5298 (Insert_Valid_Check): Test Validity_Check suppressed
5299 (Insert_Valid_Check): Preserve Do_Range_Check flag
5300 (Validity_Check_Range): New procedure
5301 (Expr_Known_Valid): Result of membership test is always valid
5302 (Selected_Range_Checks): Range checks cannot be applied to discriminants
5303 by themselves. Disabling those checks must also be done for task types,
5304 where discriminants may be used for the bounds of entry families.
5305 (Apply_Address_Clause_Check): Remove side-effects if address expression
5306 is non-static and is not the name of a declared constant.
5307 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
5308 Code cleanup and new error messages.
5309 (Enable_Range_Check): Test for some cases of suppressed checks
5310 (Generate_Index_Checks): Suppress index checks if index checks are
5311 suppressed for array object or array type.
5312 (Apply_Selected_Length_Checks): Give warning for compile-time detected
5313 length check failure, even if checks are off.
5314 (Ensure_Valid): Do not generate a check on an indexed component whose
5315 prefix is a packed boolean array.
5316 * checks.adb: (Alignment_Checks_Suppressed): New function
5317 (Apply_Address_Clause_Check): New procedure, this is a completely
5318 rewritten replacement for Apply_Alignment_Check
5319 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
5320 we request a discriminal value only in case of discriminants.
5321 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
5322 assignments where the target subtype is unconstrained and the target
5323 object is a parameter or dereference (other aliased cases are known
5324 to be unconstrained).
5326 2006-10-31 Robert Dewar <dewar@adacore.com>
5328 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
5329 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
5330 vms_conv.adb: Fix bad table increment values (much too small)
5332 * table.adb (Realloc): Make sure we get at least some new elements
5333 Defends against silly small values for table increment
5335 2006-10-31 Robert Dewar <dewar@adacore.com>
5336 Ed Schonberg <schonberg@adacore.com>
5337 Bob Duff <duff@adacore.com>
5339 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
5340 entities. Move other fields around to make this possible
5341 (Is_Derived_Type): Add missing call to Is_Type.
5342 (Extra_Formals): New function for subprograms, entries, subprogram
5344 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
5345 (First_Formal_With_Extras): New function for subprogs, entries, subp
5347 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
5348 Add node information for E_Return_Statement.
5349 (Elaborate_Body_Desirable): New flag
5350 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
5351 to be Is_Inherently_Limited_Type, because return-by-reference has
5352 no meaning in Ada 2005.
5353 (E_Return_Statement): New entity kind.
5354 (Return_Applies_To): Field of E_Return_Statement.
5355 (Is_Return_Object): New flag in object entities.
5356 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
5357 (Must_Have_Preelab_Init): New flag
5358 (Known_To_Have_Preelab_Init): New flag
5359 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
5360 (Is_Visible_Formal): New flag on entities in formal packages.
5361 (Low_Bound_Known): New flag
5362 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
5364 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
5365 output when Id is an incomplete subtype.
5367 2006-10-31 Robert Dewar <dewar@adacore.com>
5369 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
5370 Avoid abbreviation Creat
5371 (Finalize): List all sources in extended mail source if -gnatl
5373 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
5374 (Finalize): Implement new -gnatl=xxx switch to output listing to file
5375 (Set_Specific_Warning_On): New procedure
5376 (Set_Specific_Warning_Off): New procedure
5377 Add implementation of new insertion \\
5378 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
5379 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
5381 (Error_Msg_Internal): Make sure that we set Last_Killed to
5382 True when a message from another package is suppressed.
5383 Implement insertion character ~ (insert string)
5384 (First_Node): Minor adjustments to get better placement.
5387 Implement new -gnatl=xxx switch to output listing to file
5390 Implement new -gnatl=xxx switch to output listing to file
5392 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
5393 (Commands_To_Stdout): New flag
5394 Implement new -gnatl=xxx switch to output listing to file
5395 New switch Dump_Source_Text
5396 (Warn_On_Deleted_Code): New warning flag for -gnatwt
5397 Define Error_Msg_Line_Length
5398 (Warn_On_Assumed_Low_Bound): New switch
5400 * osint.ads, osint.adb
5401 (Normalize_Directory_Name): Fix bug.
5402 Implement new -gnatl=xxx switch to output listing to file
5403 (Concat): Removed, replaced by real concatenation
5404 Make use of concatenation now allowed in compiler
5405 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
5406 we find the 'lib' or 'bin' directory even when the tool has been
5407 invoked with a relative path.
5408 (Executable_Name): New function taking string parameters.
5410 * osint-c.ads, osint-c.adb:
5411 Implement new -gnatl=xxx switch to output listing to file
5413 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
5416 Implement new -gnatl=xxx switch to output listing to file
5417 Recognize new -gnatL switch
5418 (no longer keep in old warning about old style usage)
5419 Use concatenation to simplify code
5420 Recognize -gnatjnn switch
5421 (Scan_Front_End_Switches): Clean up handling of -gnatW
5422 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
5424 2006-10-31 Robert Dewar <dewar@adacore.com>
5426 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
5427 (Set_Specific_Warning_Off): New procedure
5428 (Warning_Specifically_Suppressed): New function
5429 (Validate_Specific_Warnings): New procedure
5430 (Output_Msg_Text): Complete rewrite to support -gnatjnn
5432 * err_vars.ads: Implement insertion character ~ (insert string)
5434 2006-10-31 Bob Duff <duff@adacore.com>
5435 Ed Schonberg <schonberg@adacore.com>
5437 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
5438 the parent part is a build-in-place function call, generate assignments.
5439 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
5440 are build-in-place function calls.
5441 (Replace_Self_Reference): New subsidiary of
5442 Make_OK_Assignment_Statement, to replace an access attribute that is a
5443 self-reference into an access to the appropriate component of the
5444 target object. Generalizes previous mechanism to handle self-references
5445 nested at any level.
5446 (Is_Self_Referential_Init): Remove, not needed.
5447 (Is_Self_Referential_Init): New predicate to simplify handling of self
5448 referential components in record aggregates.
5449 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
5450 check for presence of entity before checking for self-reference.
5451 (Has_Default_Init_Comps): Return True if a component association is a
5452 self-reference to the enclosing type, which can only come from a
5453 default initialization.
5454 (Make_OK_Assignment_Statement): If the expression is of the form
5455 Typ'Acc, where Acc is an access attribute, the expression comes from a
5456 default initialized self-referential component.
5457 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
5458 that has been derived from several abstract interfaces we must also
5459 initialize the tags of the secondary dispatch tables.
5461 2006-10-31 Ed Schonberg <schonberg@adacore.com>
5462 Thomas Quinot <quinot@adacore.com>
5463 Javier Miranda <miranda@adacore.com>
5464 Robert Dewar <dewar@adacore.com>
5467 (Expand_Access_To_Protected_Op): If the context indicates that an access
5468 to a local operation may be transfered outside of the object, create an
5469 access to the wrapper operation that must be used in an external call.
5470 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
5471 target, pass the Valid attribute applied to a floating-point prefix on
5472 to the back end without expansion.
5473 (Storage_Size): Use the new run-time function Storage_Size to retrieve
5474 the allocated storage when it is specified by a per-object expression.
5475 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
5476 Nothing to do here, the attribute has been rewritten during semantic
5478 (Expand_Attribute_Reference): Handle expansion of the new Priority
5480 (Find_Fat_Info): Handle case of universal real
5481 (Expand_Access_To_Protected_Op): Fix use of access to protected
5482 subprogram from inside the body of a protected entry.
5483 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
5484 'Access and 'Unrestricted_Access, to transform the attribute reference
5486 (Is_Constrained_Aliased_View): New predicate to help determine whether a
5487 subcomponent's enclosing variable is aliased with a constrained subtype.
5488 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
5489 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
5490 an aliased prefix must be known to be constrained in order to use True
5491 for the attribute value, and now it's possible for some aliased views
5492 to be unconstrained.
5494 2006-10-31 Robert Dewar <dewar@adacore.com>
5496 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
5497 (Expand_Entity_Reference): Correct error of not handling subprogram
5498 formals in current_value processing.
5500 2006-10-31 Javier Miranda <miranda@adacore.com>
5501 Robert Dewar <dewar@adacore.com>
5502 Ed Schonberg <schonberg@adacore.com>
5503 Gary Dismukes <dismukes@adacore.com>
5505 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
5506 register in the final list objects containing class-wide interfaces;
5507 otherwise we incorrectly register the tag of the interface in the final
5509 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
5510 generate the wrapper if the parent primitive is abstract. This is
5511 required to report the correct error message.
5512 (Expand_N_Subtype_Indication): Do validity checks on range
5513 (Clean_Task_Names): If an initialization procedure includes a call to
5514 initialize a task (sub)component, indicate that the procedure will use
5515 the secondary stack.
5516 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
5517 compatibility for interfacing with CPP by default.
5518 (Expand_N_Object_Declaration): Only build an Adjust call when the
5519 object's type is a nonlimited controlled type.
5520 * exp_ch3.adb: Add with and use of Exp_Ch6.
5521 (Expand_N_Object_Declaration): Check for object initialization that is a
5522 call to build-in-place function and apply Make_Build_In_Place_Call_In_
5523 Object_Declaration to the call.
5524 (Freeze_Type): When the designated type of an RACW was not frozen at the
5525 point where the RACW was declared, validate the primitive operations
5526 with respect to E.2.2(14) when it finally is frozen.
5527 (Build_Initialization_Call,Expand_Record_Controller): Rename
5528 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
5529 return-by-reference has no meaning in Ada 2005.
5530 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
5531 to register tag of the immediate ancestor interfaces in the
5533 (Init_Secondary_Tags): Moved to the specification to allow the
5534 initialization of extension aggregates with abstract interfaces.
5535 (Build_Master_Renaming): Make public, for use by function declarations
5536 whose return type is an anonymous access type.
5537 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
5538 Insert_List_Before_And_Analyze after the generation of the specs
5539 associated with null procedures.
5540 (Expand_Tagged_Root): Update documentation in its specification.
5541 (Init_Secondary_Tags): Update documentation.
5542 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
5543 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
5544 then generate code to inherit the contents of the dispatch table
5545 directly from the ancestor.
5546 (Expand_Record_Controller): Insert controller component after tags of
5547 implemented interfaces.
5548 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
5549 create null procedure overridings when null procedures are inherited
5551 (Make_Null_Procedure_Specs): New procedure to generate null procedure
5552 declarations for overriding null primitives inherited from interfaces.
5553 (Is_Null_Interface_Procedure): New function in
5554 Make_Null_Procedure_Specs.
5555 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
5556 immediate ancestor of a tagged type is an abstract interface type we
5557 must generate the specification of the predefined primitives associated
5558 with controlled types (because the dispatch table of the ancestor is
5559 null and hence these entries cannot be inherited). This is required to
5560 elaborate well the dispatch table.
5562 2006-10-31 Javier Miranda <miranda@adacore.com>
5563 Ed Schonberg <schonberg@adacore.com>
5564 Bob Duff <duff@adacore.com>
5565 Gary Dismukes <dismukes@adacore.com>
5566 Robert Dewar <dewar@adacore.com>
5568 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
5570 (Expand_N_In): Do validity checks on range
5571 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
5572 (Expand_N_Allocator): For "new T", if the object is constrained by
5573 discriminant defaults, allocate the right amount of memory, rather than
5574 the maximum for type T.
5575 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
5576 when the allocator is initialized by a build-in-place call, since the
5577 allocator is already rewritten as a reference to the function result,
5578 and this prevents an unwanted duplication of the function call.
5579 Add with and use of Exp_Ch6.
5580 (Expand_Allocator_Expresssion): Check for an allocator whose expression
5581 is a call to build-in-place function and apply
5582 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
5583 untagged designated types).
5584 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
5585 optimization if source or target is biased.
5586 (Expand_N_Allocator): Add comments for case of an allocator within a
5587 function that returns an anonymous access type designating tasks.
5588 (Expand_N_Allocator): apply discriminant checks for access
5589 discriminants of anonymous access types (AI-402, AI-416)
5591 2006-10-31 Bob Duff <duff@adacore.com>
5592 Robert Dewar <dewar@adacore.com>
5593 Gary Dismukes <dismukes@adacore.com>
5594 Ed Schonberg <schonberg@adacore.com>
5596 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
5598 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
5599 (Expand_N_Assignment_Statement): Call
5600 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
5601 build-in-place function call. Currently, this can happen only for
5602 assignments that come from aggregates.
5603 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
5604 in order to alleviate the upward compatibility introduced by AI-318.
5605 (Expand_N_Extended_Return_Statement): Add support for handling the
5606 return object as a build-in-place result.
5607 (Expand_Non_Function_Return): Implement simple return statements nested
5608 within an extended return.
5609 (Enable_New_Return_Processing): Turn on the new processing of return
5611 (Expand_Non_Function_Return): For a return within an extended return,
5612 don't raise Program_Error, because Sem_Ch6 now gives a warning.
5613 (Expand_N_Extended_Return_Statement): Implement AI-318
5614 (Expand_Simple_Function_Return): Ditto.
5615 (Expand_N_If_Statement): Handle new -gnatwt warning
5616 (Expand_N_Case_Statement): Handle new -gnatwt warning
5617 (Expand_N_Assignment): Handle assignment to the Priority attribute of
5619 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
5620 validity checking of assignments to elementary record components.
5621 (Expand_N_Return_Statement): return Class Wide types on the secondary
5622 stack independantly of their controlled status since with HIE runtimes,
5623 class wide types are not potentially controlled anymore.
5625 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
5628 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
5629 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
5630 it expects a block, procedure, or task. The return statement will get
5631 turned into a block, and Expand_Cleanup_Actions will happen then.
5633 2006-10-31 Robert Dewar <dewar@adacore.com>
5634 Ed Schonberg <schonberg@adacore.com>
5635 Bob Duff <duff@adacore.com>
5636 Gary Dismukes <dismukes@adacore.com>
5638 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
5640 (Expand_Inlined_Call): Tagged types are by-reference types, and
5641 therefore should be replaced by a renaming declaration in the expanded
5642 body, as is done for limited types.
5643 (Expand_Call): If this is a call to a function with dispatching access
5644 result, propagate tag from context.
5645 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
5647 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
5648 build-in-place when the right-hand side of an assignment is a
5649 build-in-place function call.
5650 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
5651 of the explicit dereference of the allocator to the result subtype of
5652 the build-in-place function. This is needed to satisfy type checking
5653 in cases where the caller's return object is created by an allocator for
5654 a class-wide access type and the type named in the allocator is a
5656 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
5657 conversion of the reference to the declared object to the result subtype
5658 of the build-in-place function. This is needed to satisfy type checking
5659 in cases where the declared object has a class-wide type. Also, in the
5660 class-wide case, change the type of the object entity to the specific
5661 result subtype of the function, to avoid passing a class-wide object
5662 without explicit initialization to the back end.
5663 (Register_Interface_DT_Entry): Moved outside the body of
5664 Freeze_Subprogram because this routine is now public; it is called from
5665 Check_Dispatching_Overriding to handle late overriding of abstract
5666 interface primitives.
5667 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
5668 adding an implicit access actual on a call to a build-in-place function.
5669 (Expand_Actuals): Test for an actual parameter that is a call to a
5670 build-in-place function and apply
5671 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
5672 (Is_Build_In_Place_Function): New function to determine whether an
5673 entity is a function whose calls should be handled as build-in-place.
5674 (Is_Build_In_Place_Function_Call): New function to determine whether an
5675 expression is a function call that should handled as build-in-place.
5676 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
5677 calls to build-in-place functions as the initialization of an allocator.
5678 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
5679 handling calls to build-in-place functions in contexts that do not
5680 involve init of a separate object (for example, actuals of subprogram
5682 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
5683 handling calls to build-in-place functions as the initialization of an
5685 (Detect_Infinite_Recursion): Add explicit parameter Process to
5686 instantiation of Traverse_Body to avoid unreferenced warning.
5687 (Check_Overriding_Inherited_Interfaces): Removed.
5688 (Register_Interface_DT_Entry): Code cleanup.
5689 (Register_Predefined_DT_Entry): Code cleanup.
5690 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
5691 inlined statements if within a transient scope.
5692 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
5693 formal parameters with occurrences of actuals in inlined body, establish
5694 visibility on the proper view of the actual's subtype for the body's
5696 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
5697 compatibility mode and we have an imported CPP subprogram because
5698 for now we assume that imported CPP primitives correspond with
5699 objects whose constructor is in the CPP side (and therefore we
5700 don't need to generate code to register them in the dispatch table).
5701 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
5702 aligned selected component.
5703 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
5704 the actual of an in-mode parameter is a type conversion.
5705 (Expand_Actuals): If the call does not come from source and the actual
5706 is potentially misaligned, let gigi handle it rather than rejecting the
5707 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
5708 Class Wide types as returning by reference independantly of their
5709 controlled status since with HIE runtimes class wide types are not
5710 potentially controlled anymore.
5712 2006-10-31 Ed Schonberg <schonberg@adacore.com>
5714 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
5715 references that are private components of the protected object.
5716 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
5717 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
5718 instantiation to deal with warnings.
5719 (Initialize_Protection): If expression for priority is non-static, use
5720 System_Priority as its expected type, in case the expression has not
5723 2006-10-31 Robert Dewar <dewar@adacore.com>
5725 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
5726 initialization of Homonym_Len.
5727 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
5728 names from fully qualified name. Fixes problem of duplicate
5729 external names differing only in the presence of such a block name.
5731 2006-10-31 Thomas Quinot <quinot@adacore.com>
5732 Pablo Oliveira <oliveira@adacore.com>
5734 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
5735 subprogram Ids, even if they are not yet assigned.
5736 (Build_Subprogram_Id): It is now this function that will take care of
5737 calling Assign_Subprogram_Ids if necessary.
5738 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
5739 should be done only once they are assigned.
5740 (Build_From_Any_Function, case of tagged types): Add missing call to
5742 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
5743 type for an RACW type.
5744 (Add_RACW_Features): When processing an RACW declaration for which the
5745 designated type is already frozen, enforce E.2.2(14) rules immediately.
5746 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
5747 special reordering of controlling formals.
5749 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
5750 associated stub type for an RACW type.
5752 2006-10-31 Ed Schonberg <schonberg@adacore.com>
5754 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
5755 fixed-point operations in an integer context, i.e. as operands of a
5756 conversion to an integer type, indicate that result must be rounded.
5758 2006-10-31 Robert Dewar <dewar@adacore.com>
5760 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
5761 cases, pass the encoding method, since it is now required by the run
5764 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
5765 assumption that Str'First = 1.
5766 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
5767 it on to the Value_Wide_Wide_Character call.
5768 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
5769 properly handles a string of the form quote-encoded_wide_char-quote.
5771 * s-wchcnv.adb: Minor reformatting
5773 2006-10-31 Javier Miranda <miranda@adacore.com>
5775 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
5776 run-time membership test to ensure that the constructed object
5777 implements the target abstract interface.
5779 2006-10-31 Robert Dewar <dewar@adacore.com>
5781 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
5782 Machine_Attribute pragma internally to implement the user pragma.
5783 Add processing for pragma Interface so that it is now completely
5784 equivalent to pragma Import.
5786 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
5787 so that it can be applied to all entities, including record components
5788 and enumeration literals.
5789 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
5790 priority ranges are correct, verify compatibility against task
5791 dispatching and locking policies, and if everything is correct an entry
5792 is added to the table containing priority specific dispatching entries
5793 for this compilation unit.
5794 (Delay_Config_Pragma_Analyze): Delay processing
5795 Priority_Specific_Dispatching pragmas because when processing the
5796 pragma we need to access run-time data, such as the range of
5797 System.Any_Priority.
5798 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
5799 Allow pragma Unreferenced as a context item
5800 Add pragma Preelaborable_Initialization
5801 (Analyze_Pragma, case Interface): Interface is extended so that it is
5802 now syntactically and semantically equivalent to Import.
5803 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
5804 insertion characters.
5805 Add handling for Pragma_Wide_Character_Encoding
5806 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
5807 never supercedes a real restriction, and that a real restriction
5808 always supercedes a warning.
5809 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
5812 2006-10-31 Bob Duff <duff@adacore.com>
5813 Ed Schonberg <schonberg@adacore.com>
5814 Robert Dewar <dewar@adacore.com>
5816 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
5817 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
5818 Is_Inherently_Limited_Type, because return-by-reference has no meaning
5820 (Find_Node_To_Be_Wrapped): Use new method of determining the result
5821 type of the function containing a return statement, because the
5822 Return_Type field was removed. We now use the Return_Applies_To field.
5824 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
5825 (Build_Task_Image_Decl): If procedure is not called from an
5826 initialization procedure, indicate that function that builds task name
5827 uses the sec. stack. Otherwise the enclosing initialization procedure
5828 will carry the indication.
5829 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
5830 N_Object_Declaration instead.
5831 (Kill_Dead_Code): New interface to implement -gnatwt warning for
5832 conditional dead code killed, and change implementation accordingly.
5833 (Insert_Actions): Add N_Return_Object_Declaration case.
5834 Correct comment to mention N_Extension_Aggregate node.
5835 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
5836 attempts to save information for global variables which cannot be
5838 (Get_Current_Value_Condition): Handle conditions the other way round
5839 (constant on left). Also handle right operand of AND and AND THEN
5840 (Set_Current_Value_Condition): Corresponding changes
5841 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
5842 (Get_Current_Value_Condition): Handle simple boolean operands
5843 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
5844 (Get_Current_Value_Condition): If the variable reference is within an
5845 if-statement, does not appear in the list of then_statments, and does
5846 not come from source, treat it as being at unknown location.
5847 (Get_Current_Value_Condition): Enhance to allow while statements to be
5848 processed as well as if statements.
5849 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
5851 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
5852 of loop. This is safe now that we fixed Kill_Current_Values.
5853 (OK_To_Do_Constant_Replacement): Check whether current scope is
5854 Standard, before examining outer scopes.
5856 2006-10-31 Vincent Celier <celier@adacore.com>
5858 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
5859 When True, apply VMS treatment to children of packages A, G, I and S.
5862 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
5864 2006-10-31 Robert Dewar <dewar@adacore.com>
5865 Ed Schonberg <schonberg@adacore.com>
5867 * freeze.adb: Add handling of Last_Assignment field
5868 (Warn_Overlay): Supply missing continuation marks in error msgs
5869 (Freeze_Entity): Add check for Preelaborable_Initialization
5871 * g-comlin.adb: Add Warnings (Off) to prevent new warning
5873 * g-expect.adb: Add Warnings (Off) to prevent new warning
5875 * lib-xref.adb: Add handling of Last_Assignment field
5876 (Generate_Reference): Centralize handling of pragma Obsolescent here
5877 (Generate_Reference): Accept an implicit reference generated for a
5878 default in an instance.
5879 (Generate_Reference): Accept a reference for a node that is not in the
5880 main unit, if it is the generic body corresponding to an subprogram
5883 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
5885 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
5887 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
5889 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
5890 use clauses, to avoid messages on packages used to qualify, and also
5891 to avoid messages from obsolescent units.
5892 (Warn_On_Useless_Assignments): Don't generate messages for imported
5893 and exported variables.
5894 (Warn_On_Useless_Assignments): New procedure
5895 (Output_Obsolescent_Entity_Warnings): New procedure
5896 (Check_Code_Statement): New procedure
5898 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
5899 Change name Is_Ada_2005 to Is_Ada_2005_Only
5900 (Last_Assignment): New field for useless assignment warning
5902 2006-10-31 Olivier Hainque <hainque@adacore.com>
5904 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
5905 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
5907 2006-10-31 Bob Duff <duff@adacore.com>
5908 Robert Dewar <dewar@adacore.com>
5909 Ed Schonberg <schonberg@adacore.com>
5911 * g-awk.adb (Default_Session, Current_Session): Compile this file in
5912 Ada 95 mode, because it violates the new rules for AI-318.
5914 * g-awk.ads: Use overloaded subprograms in every case where we used to
5915 have a default of Current_Session. This makes the code closer to be
5916 correct for both Ada 95 and 2005.
5918 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
5919 code, relying on the fact that the compiler generates a warning
5920 instead of an error in -gnatg mode.
5922 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
5923 E_Return_Statement entity kind.
5924 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
5926 * par.adb (P_Interface_Type_Definition): Addition of one formal to
5927 report an error if the reserved word abstract has been previously found.
5928 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
5930 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
5931 parenthesized range attribute usage
5932 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
5934 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
5935 in the syntax for extended_return_statement. This is not in the latest
5936 RM, but the ARG is expected to issue an AI allowing this.
5937 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
5938 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
5939 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
5940 P_Return_Statement): Parse the new syntax for extended_return_statement.
5942 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
5943 Output_End_Missing): Add error-recovery code for the new
5944 extended_return_statement syntax; that is, the new E_Return entry on
5947 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
5948 limited to nonlimited, because otherwise we violate the new Ada 2005
5949 rules about returning limited types in function Create_AST_Handler in
5952 * sem.adb (Analyze): Add cases for new node kinds
5953 N_Extended_Return_Statement and N_Return_Object_Declaration.
5955 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
5956 type is in the same category as type of context before applying check,
5957 to prevent anomalies in instantiations.
5958 (Resolve_Aggregate): Remove test for limited components in aggregates.
5959 It's unnecessary in Ada 95, because if it has limited components, then
5960 it must be limited. It's wrong in Ada 2005, because limited aggregates
5962 (Resolve_Record_Aggregate): Move check for limited types later, because
5963 OK_For_Limited_Init requires its argument to have been resolved.
5964 (Get_Value): When copying the component default expression for a
5965 defaulted association in an aggregate, use the sloc of the aggregate
5966 and not that of the original expression, to prevent spurious
5967 elaboration errors, when the expression includes function calls.
5968 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
5969 were missing. We also didn't handle qualified expressions. Now also
5970 allow function calls. Use new common routine OK_For_Limited_Init.
5971 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
5972 with space can upper case letter).
5974 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
5975 Has_Static_Discriminants flag
5976 (Record_Type_Declaration): Diagnose an attempt to declare an interface
5977 type with discriminants.
5978 (Process_Range_Expr_In_Decl): Do validity checks on range
5979 (Build_Discriminant_Constraints): Use updated form of
5980 Denotes_Discriminant.
5981 (Process_Subtype): If the subtype is a private subtype whose full view
5982 is a concurrent subtype, introduce an itype reference to prevent scope
5984 (Build_Derived_Record_Type, Collect_Interface_Primitives,
5985 Record_Type_Declaration): The functionality of the subprograms
5986 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
5987 is now performed by a single routine.
5988 (Build_Derived_Record_Type): If the type definition includes an explicit
5989 indication of limitedness, then the type must be marked as limited here
5990 to ensure that any access discriminants will not be treated as having
5991 a local anonymous access type.
5992 (Check_Abstract_Overriding): Issue a detailed error message when an
5993 abstract subprogram was not overridden due to incorrect mode of its
5995 (Analyze_Private_Extension_Declaration): Add support for the analysis of
5996 synchronized private extension declarations. Verify that the ancestor is
5997 a limited or synchronized interface or in the generic case, the ancestor
5998 is a tagged limited type or synchronized interface and all progenitors
5999 are either limited or synchronized interfaces.
6000 Derived_Type_Declaration): Check for presence of private extension when
6001 dealing with synchronized formal derived types.
6002 Process_Full_View): Enchance the check done on the usage of "limited" by
6003 testing whether the private view is synchronized.
6004 Verify that a synchronized private view is completed by a protected or
6006 (OK_For_Limited_Init_In_05): New function.
6007 (Analyze_Object_Declaration): Move check for limited types later,
6008 because OK_For_Limited_Init requires its argument to have been resolved.
6009 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
6010 in order to alleviate the upward compatibility introduced by AI-318.
6011 (Constrain_Corresponding_Record): If the constraint is for a component
6012 subtype, mark the itype as frozen, to avoid out-of-scope references to
6013 discriminants in the back-end.
6014 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
6015 this subprogram against wrong sources.
6016 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
6017 discriminant of limited type completed with a protected type, when the
6018 discriminant is used to constrain a private component of the type, and
6019 expansion is disabled.
6020 (Find_Type_Of_Object): Do not treat a return subtype that is an
6021 anonymous subtype as a local_anonymous_type, because its accessibility
6022 level is the return type of the enclosing function.
6023 (Check_Initialization): In -gnatg mode, turn the error "cannot
6024 initialize entities of limited type" into a warning.
6025 (OK_For_Limited_Init): Return true for generated nodes, since it
6026 sometimes violates the legality rules.
6027 (Make_Incomplete_Declaration): If the type for which an incomplete
6028 declaration is created happens to be the currently visible entity,
6029 preserve the homonym chain when removing it from visibility.
6030 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
6031 inherited subprograms.
6032 (Access_Definition): If this is an access to function that is the return
6033 type of an access_to_function definition, context is a type declaration
6034 and the scope of the anonymous type is the current one.
6035 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
6036 incomplete subtype to the set of private dependents of the original
6038 (Constrain_Discriminated_Type): Emit an error message whenever an
6039 incomplete subtype is being constrained.
6040 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
6041 corresponding subtype of the full view of the original incomplete type.
6042 (Check_Incomplete): Properly detect invalid usage of incomplete types
6045 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
6047 * g-catiio.ads, g-catiio.adb (Value): New function.
6048 Given an input String, try and parse a valid Time value.
6050 2006-10-31 Vincent Celier <celier@adacore.com>
6052 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
6053 Integer_Address arithmetic, as in Set_Valid.
6055 2006-10-31 Arnaud Charlet <charlet@adacore.com>
6056 Robert Dewar <dewar@adacore.com>
6058 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
6059 handling executable extension manually and duplicating code.
6061 * make.adb: Implement new -S switch
6062 (Gnatmake): Use new function Osint.Executable_Name instead
6063 of handling executable extension manually.
6065 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
6066 is specified, the executable name ends with this suffix.
6067 Take advantage of Osint.Executable_Name instead of duplicating code.
6069 * switch-m.adb: Recognize new gnatmake -S switch
6071 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
6073 (Get_Target_Parameters): Set Executable_Extension_On_Target if
6076 * makeusg.adb: Add line for gnatmake -S switch
6078 2006-10-31 Vincent Celier <celier@adacore.com>
6080 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
6081 call it with -static-libgcc, as there are some platforms, such as
6082 Darwin, where one of these two switches is compulsory to link.
6084 2006-10-31 Vincent Celier <celier@adacore.com>
6086 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
6087 instead of ADA_PROJECT_PATH, for the project path.
6088 (Gnatls): When displaying the project path directories, use host dir
6091 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
6092 names in the project path, as absolute paths may correspond to
6093 multi-valued VMS logical names.
6095 2006-10-31 Vincent Celier <celier@adacore.com>
6097 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
6099 (Locate_Regular_File): Ditto
6100 (Change_Dir): Remove, no longer used
6101 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
6102 on Windows. Get it calling Get_Current_Dir.
6103 (OpenVMS): Remove imported boolean, no longer needed.
6104 (Normalize_Pathname)[VMS]: Do not resolve directory names.
6105 (Pid_To_Integer): New function to convert a Process_Id to Integer
6107 2006-10-31 Thomas Quinot <quinot@adacore.com>
6109 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
6110 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
6112 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
6115 2006-10-31 Robert Dewar <dewar@adacore.com>
6117 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
6118 initial letter o as a zero.
6120 2006-10-31 Robert Dewar <dewar@adacore.com>
6122 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
6124 2006-10-31 Robert Dewar <dewar@adacore.com>
6126 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
6128 (Layout_Variant_Record): Retrieve the discriminants from the entity
6129 rather than from the type definition, because in the case of a full
6130 type for a private type we need to take the discriminants from the
6132 (Layout_Component_List): When applying the Max operator to variants with
6133 a nonstatic size, check whether either operand is static and scale that
6134 operand from bits to storage units before applying Max.
6135 (Layout_Type): In VMS, if a C-convention access type has no explicit
6136 size clause (and does not inherit one in the case of a derived type),
6137 then the size is reset to 32 from 64.
6139 2006-10-31 Vincent Celier <celier@adacore.com>
6141 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
6142 its file has already been loaded, according to the unit being loaded,
6143 not to the current value of Multiple_Unit_Index.
6145 2006-10-31 Thomas Quinot <quinot@adacore.com>
6146 Eric Botcazou <ebotcazou@adacore.com>
6147 Arnaud Charlet <charlet@adacore.com>
6149 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
6150 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
6152 (a-except.o): Pass it to the compiler.
6153 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
6154 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
6155 a-calend-mingw.adb version.
6157 * Makefile.rtl: Added s-dsaser.
6158 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
6159 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
6160 Ada.Dispatching.Round_Robin.
6161 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
6163 * Make-lang.in: Remove all references to gt-ada-decl.h.
6164 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
6166 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
6167 Update dependencies.
6169 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
6171 2006-10-31 Vincent Celier <celier@adacore.com>
6173 * mlib-utl.adb (Initialized): Remove, no longer used
6174 (Initialize): Remove, no longer used
6175 (Ar): If Ar_Exec is null, get the location of the archive builder and,
6176 if there is one, the archive indexer. Fail if the archive builder cannot
6178 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
6181 2006-10-31 Ed Schonberg <schonberg@adacore.com>
6183 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
6184 Process_Body_Clauses): If the context of a body includes a use clause
6185 for P.Q then a with_clause for P in the same body is not redundant,
6186 even if the spec also has a with_clause on P.
6187 Add missing continuation mark to error msg
6188 (Build_Limited_Views): A limited view of a type is tagged if its
6189 declaration includes a record extension.
6190 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
6191 node, even if the subunit has errors. This avoids malfunction by
6192 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
6193 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
6194 generation of obsolescent messages for with statements (cannot do
6195 this too early, or we cannot implement avoiding the messages in the
6196 case of obsolescent units withing obsolescent units).
6197 (Install_Siblings): If the with_clause is on a remote descendant of
6198 an ancestor of the current compilation unit, find whether there is
6199 a sibling child unit that is immediately visible.
6200 (Remove_Private_With_Clauses): New procedure, invoked after completing
6201 the analysis of the private part of a nested package, to remove from
6202 visibility the private with_clauses of the enclosing package
6204 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
6205 now centralized in Generate_Reference.
6206 (Install_Limited_Context_Clauses): Remove superfluous error
6207 message associated with unlimited view visible through use
6208 and renamings. In addition, at the point in which the error
6209 is reported, we add the backslash to the text of the error
6210 to ensure that it is reported as a single error message.
6211 Use new // insertion for some continuation messages
6212 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
6213 to create implicit with_clause for parent unit mentioned in original
6214 limited_with_clause.
6215 (Install_Limited_With_Unit): Set entity of parent identifiers if the
6216 unit is a child unit. For ASIS queries.
6217 (Analyze_Subunit): If the subunit appears within a child unit, make all
6218 ancestor child units directly visible again.
6220 2006-10-31 Robert Dewar <dewar@adacore.com>
6222 * par-ch10.adb (P_Context_Clause): Minor error message fix
6224 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
6225 Javier Miranda <miranda@adacore.com>
6227 * par-ch12.adb: Grammar update and cleanup.
6228 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
6229 support for synchronized derived type definitions.
6230 Add the new actual Abstract_Present to every call to
6231 P_Interface_Type_Definition.
6232 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
6233 a formal object declaration with an access definition or a subtype mark
6234 with a null exclusion.
6235 (P_Generic_Association): Handle association with box, and others_choice
6236 with box, to support Ada 2005 partially parametrized formal packages.
6238 2006-10-31 Robert Dewar <dewar@adacore.com>
6239 Javier Miranda <miranda@adacore.com>
6241 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
6242 (P_Type_Declaration): Remove barrier against the reserved word "limited"
6243 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
6244 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
6246 (P_Type_Declaration): Add the new actual Abstract_Present to every call
6247 to P_Interface_Type_Definition.
6248 (P_Interface_Type_Definition): Addition of one formal to report an error
6249 if the reserved word abstract has been previously found.
6250 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
6251 object renaming declaration with an access definition or subtype mark
6252 with a possible null exclusion.
6254 * par-ch9.adb: Minor error msg fix
6256 * par-load.adb: Add missing continuation mark to error msg
6258 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
6260 2006-10-31 Vincent Celier <celier@adacore.com>
6262 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
6263 unknown attribute in unknown package or in package that does not need
6265 (Parse_Package_Declaration): Do not issue warning for unknown package in
6268 2006-10-31 Vincent Celier <celier@adacore.com>
6270 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
6271 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
6274 2006-10-31 Vincent Celier <celier@adacore.com>
6276 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
6277 on VMS, change "__" to '.' before checking the name.
6278 (Record_Ada_Source): Always add the source file name in the list of
6279 of sources, even if it is not the first time, as it is for another
6281 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
6282 dot, instead of replacing only the first '_'.
6284 * prj-part.adb (Parse): Convert project file path to canonical form
6286 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
6287 extended, the project id of the project extending it is recorded in its
6288 data, even when it has already been processed as an imported project.
6290 2006-10-31 Robert Dewar <dewar@adacore.com>
6292 * repinfo.adb (List_Entities): Don't list entities from renaming
6295 2006-10-31 Arnaud Charlet <charlet@adacore.com>
6296 Robert Dewar <dewar@adacore.com>
6298 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
6299 only a restriction warning is active for the given restriction. This is
6300 desirable because we do not want to modify code in the case where only
6302 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
6303 causes overriding of real restrictions.
6304 Take advantage of new No_Restrictions constant.
6306 * raise.h: (__gnat_set_globals): Change profile.
6308 2006-10-31 Arnaud Charlet <charlet@adacore.com>
6310 * rtsfind.adb: Remove s-polint from comment as it exists no more.
6313 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
6314 Move all the entities in obsolete package System.PolyORB_Interface to
6315 System.Partition_Interface.
6316 (RE_Storage_Size): New function in System.Tasking.
6317 (RE_Get_Ceiling): New entity.
6318 (RE_Set_Ceiling): New entity.
6319 (RO_PE_Get_Ceiling): New entity.
6320 (RO_RE_Set_Ceiling): New entity.
6321 (Inherit_CPP_DT): New entity
6323 2006-10-31 Robert Dewar <dewar@adacore.com>
6325 * scng.adb (Scan, case of numeric literal): Better msg for identifier
6326 starting with a digit.
6328 2006-10-31 Ed Schonberg <schonberg@adacore.com>
6329 Thomas Quinot <quinot@adacore.com>
6330 Javier Miranda <miranda@adacore.com>
6331 Gary Dismukes <dismukes@adacore.com>
6333 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
6334 properly an attempt to apply Unchecked_Access to a protected operation.
6335 (OK_Self_Reference): New subprogram to check the legality of an access
6336 attribute whose prefix is the type of an enclosing aggregate.
6337 Generalizes previous mechanism to handle attribute references nested
6338 arbitrarily deep within the aggregate.
6339 (Analyze_Access_Attribute): An access attribute whose prefix is a type
6340 can appear in an aggregate if this is a default-initialized aggregate
6341 for a self-referential type.
6342 (Resolve_Attribute, case Access): Ditto.
6343 Add support for new implementation defined attribute Stub_Type.
6344 (Eval_Attribute, case Attribute_Stub_Type): New case.
6345 (Analyze_Attribute, case Attribute_Stub_Type): New case.
6346 (Stream_Attribute_Available): Implement using new subprogram from
6347 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
6348 Has_Specified_Stream_Attribute flag.
6349 Disallow Storage_Size and Storage_Pool for access to subprogram
6350 (Resolve_Attribute, case 'Access et al): Take into account anonymous
6351 access types of return subtypes in extended return statements. Remove
6352 accessibility checks on anonymous access types when Unchecked_Access is
6354 (Analyze_Attribute): Add support for the use of 'Class to convert
6355 a class-wide interface to a tagged type.
6356 Add support for the attribute Priority.
6357 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
6358 whether the designated type is discriminated with a constrained partial
6359 view and require static matching in that case.
6360 Add local variable Des_Btyp. The Designated_Type
6361 of an access to incomplete subtype is either its non-limited view if
6362 coming from a limited with or its etype if regular incomplete subtype.
6364 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
6365 Fix predicate to identify and allow cases of (expander-generated)
6366 references to tag of designated object of a RACW.
6367 (Validate_Static_Object_Name): In Ada 2005, a formal object is
6368 non-static, and therefore cannot appear as a primary in a preelaborable
6370 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
6371 Has_Read_Write_Attributes.
6372 (Has_Read_Write_Attributes): Reimplement in termes of
6373 Has_Stream_Attribute_Definition.
6374 (Missing_Read_Write_Attributes): When checking component types in a
6375 record, unconditionally call Missing_Read_Write_Attributes recursively
6376 (remove guard checking for Is_Record_Type / Is_Access_Type).
6378 2006-10-31 Robert Dewar <dewar@adacore.com>
6380 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
6381 useless assignments here and conditionalize it on absence of exception
6383 (Analyze_Exception_Handlers): Small code reorganization of error
6384 detection code, for new handling of formal packages.
6386 2006-10-31 Ed Schonberg <schonberg@adacore.com>
6387 Hristian Kirtchev <kirtchev@adacore.com>
6389 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
6390 that has been constant-folded, preserve information of original tree,
6392 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
6393 generated private extension declaration if the formal derived type is
6394 synchronized. Carry synchronized present over to the generated private
6396 (Validate_Derived_Type_Instance): Ensure that the actual of a
6397 synchronized formal derived type is a synchronized tagged type.
6398 (Instantiate_Formal_Package): When creating the instantiation used to
6399 validate the actual package of a formal declared without a box, check
6400 whether the formal itself depends on a prior actual.
6401 (Instantiate_Formal_Subprogram): Create new entities for the defining
6402 identifiers of the formals in the renaming declaration, for ASIS use.
6403 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
6404 a renaming declaration or a subtype declaration for an actual in an
6405 instance, capture location information of declaration in generic, for
6407 (Instantiate_Formal_Package): Add comments on needed additional tests.
6408 AI-317 (partial parametrization) is fully implemented.
6409 (Validate_Private_Type_Instance): Add check for actual which
6410 must have preelaborable initialization
6411 Use new // insertion for some continuation messages
6412 (Analyze_Formal_Object_Declaration): Change usage of Expression to
6413 Default_Expression. Add type retrieval when the declaration has an
6414 access definition. Update premature usage of incomplete type check.
6415 (Check_Access_Definition): New subsidiary routine. Check whether the
6416 current compilation version is Ada 05 and the supplied node has an
6418 (Instantiate object): Alphabetize local variables. Handle the creation
6419 of new renaming declarations with respect to the kind of definition
6420 used - either an access definition or a subtype mark. Guard against
6421 unnecessary error message in the context of anonymous access types after
6422 they have been resolved. Add check for required null exclusion in a
6423 formal object declaration.
6424 (Switch_View): A private subtype of a non-private type needs to be
6425 switched (the base type can have been switched without its private
6426 dependents because of the last branch of Check_Private_View.
6427 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
6429 (Instantiate_Type): Emit an error message whenever a class-wide type of
6430 a tagged incomplete type is used as a generic actual.
6431 (Find_Actual_Type): Extend routine to handle a component type in a child
6432 unit that is imported from a formal package in a parent.
6433 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
6434 agree on constrainedness, rather than checking against ultimate ancestor
6435 (Instantiate_Subprogram_Body): Create a cross-reference link to the
6436 generic body, for navigation purposes.
6438 2006-10-31 Robert Dewar <dewar@adacore.com>
6439 Thomas Quinot <quinot@adacore.com>
6441 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
6443 (New_Stream_Subprogram): When processing an attribute definition clause
6444 for a stream-oriented subprogram, record an entity node occurring at
6445 the point of clause to use for checking the visibility of the clause,
6446 as defined by 8.3(23) as amended by AI-195.
6447 (New_Stream_Subprogram): New procedure, factoring behaviour from both
6448 New_Stream_Function and New_Stream_Procedure.
6449 (New_Stream_Function, New_Stream_Procedure): Removed.
6450 (Analyze_Attribute_Definition_Clause, case Address): Check new
6451 Alignment_Check check
6453 2006-10-31 Ed Schonberg <schonberg@adacore.com>
6454 Javier Miranda <miranda@adacore.com>
6455 Robert Dewar <dewar@adacore.com>
6457 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
6458 generate the same errors compiling under -gnatc.
6459 (Try_Object_Operation): If no candidate interpretation succeeds, but
6460 there is at least one primitive operation with the right name, report
6461 error in call rather than on a malformed selected component.
6462 (Analyze_Selected_Component): If the prefix is an incomplete type from
6463 a limited view, and the full view is available, use the full view to
6464 determine whether this is a prefixed call to a primitive operation.
6465 (Operator_Check): Verify that a candidate interpretation is a binary
6466 operation before checking the type of its second formal.
6467 (Analyze_Call): Add additional warnings for function call contexts not
6469 (Analyze_Allocator): Move the check for "initialization not allowed for
6470 limited types" after analyzing the expression. This is necessary,
6471 because OK_For_Limited_Init looks at the structure of the expression.
6472 Before analysis, we don't necessarily know what sort of expression it
6473 is. For example, we don't know whether F(X) is a function call or an
6474 indexed component; the former is legal in Ada 2005; the latter is not.
6475 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
6476 were missing. We also didn't handle qualified expressions. Now also
6477 allow function calls. Use new common routine OK_For_Limited_Init.
6478 (Analyze_Type_Conversion): Do not perform some legality checks in an
6479 instance, because the error message will be redundant or spurious.
6480 (Analyze_Overloaded_Selected_Component): Do not do style check when
6481 setting an entity, since we do not know it is the right entity yet.
6482 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
6483 (Analyze_Overloaded_Selected_Component): Same change
6484 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
6485 since regular incomplete subtypes are transformed into corresponding
6486 subtypes of their full views.
6487 (Complete_Object_Operation): Treat name of transformed subprogram call
6488 as coming from source, for browsing purposes.
6489 (Try_Primitive_Operation): If formal is an access parameter, compare
6490 with base type of object to determine whether it is a primitive
6492 (Operator_Check): If no interpretation of the operator matches, check
6493 whether a use clause on any candidate might make the operation legal.
6494 (Try_Class_Wide_Operation): Check whether the first parameter is an
6495 access type whose designated type is class-wide.
6497 2006-10-31 Robert Dewar <dewar@adacore.com>
6498 Ed Schonberg <schonberg@adacore.com>
6499 Gary Dismukes <dismukes@adacore.com>
6501 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
6502 warn on infinite loops.
6503 Add \\ to some continuation messages
6504 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
6505 (Process_Bounds): If the bounds are integer literals that result from
6506 constant-folding, and they carry a user-defined type, preserve that type
6507 rather than treating this as an integer range.
6508 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
6509 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
6510 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
6511 left hand side of assignment.
6512 (Analyze_Assignment): Add suport to manage assigments to the attribute
6513 priority of a protected object.
6514 (Check_Possible_Current_Value_Condition): Allow fully qualified names
6515 not just identifiers.
6516 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
6517 or AND THEN for possible tracking.
6518 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
6519 case of while loops so we can track values in the loop body.
6521 2006-10-31 Ed Schonberg <schonberg@adacore.com>
6522 Hristian Kirtchev <kirtchev@adacore.com>
6523 Bob Duff <duff@adacore.com>
6525 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
6526 procedure cannot be a protected operation (it is a basic_declaration,
6527 not a subprogram_declaration).
6528 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
6529 Subp. Add logic for entry processing.
6530 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
6531 Determine whether an entry or subprogram of a protected or task type
6532 override an inherited primitive of an implemented interface.
6533 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
6534 Update the actual used in calls to Check_Overriding_Indicator.
6535 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
6536 generate the proper reference to the parent unit, for cross-reference.
6537 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
6539 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
6540 (Add_Extra_Formal): Revise procedure to allow passing in associated
6541 entity, scope, and name suffix, and handle setting of the new
6542 Extra_Formals field.
6543 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
6544 pass new parameters. Add support for adding the new extra access formal
6545 for functions whose calls are treated as build-in-place.
6546 (Analyze_A_Return_Statement): Correct casing in error message.
6547 Move Pop_Scope to after Analyze_Function_Return, because an extended
6548 return statement really is a full-fledged scope. Otherwise, visibility
6549 doesn't work right. Correct use of "\" for continuation messages.
6550 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
6551 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
6552 the node doesn't get properly marked as analyzed.
6553 (Analyze_Subprogram_Body): If subprogram is a function that returns
6554 an anonymous access type that denotes a task, build a Master Entity
6556 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
6557 proper usage of null exclusion in a result definition.
6558 (Process_Formals): Code cleanup and new error message.
6559 (Process_Formals): Detect incorrect application of null exclusion to
6561 (Conforming_Types): Handle conformance between [sub]types and itypes
6562 generated for entities that have null exclusions applied to them.
6563 (Maybe_Primitive_Operation): Add an additional type retrieval when the
6564 base type is an access subtype. This case arrises with null exclusions.
6565 (New_Overloaded_Entity): Do not remove the overriden entity from the
6566 homonym chain if it corresponds with an abstract interface primitive.
6567 (Process_Formals): Replace membership test agains Incomplete_Kind with a
6568 call to the synthesized predicate Is_Incomplete_Type.
6569 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
6571 (Analyze_Subprogram_Declaration): Check that abstract interface
6572 primitives are abstract or null.
6573 (Analyze_Subprogram_Specification): Remove previous check for abstract
6574 interfaces because it was not complete.
6575 (Has_Interface_Formals): Removed.
6577 2006-10-31 Ed Schonberg <schonberg@adacore.com>
6578 Javier Miranda <miranda@adacore.com>
6580 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
6581 of Analyze_Package_Body, to create Itype references for anonymous
6582 access types created in the package declaration, whose designated types
6583 may have only a limited view.
6584 (Analyze_Package_Specification): For the private part of a nested
6585 package, install private_with_clauses of enclosing compilation unit if
6586 we are in its visible part.
6587 (Declare_Inherited_Private_Subprograms): Complete barrier
6588 to ensure that the primitive operation has an alias to some parent
6589 primitive. This is now required because, after the changes done for the
6590 implementation of abstract interfaces, the contents of the list of
6591 primitives has entities whose alias attribute references entities of
6592 such list of primitives.
6593 (Analyze_Package_Specification): Simplify code that handles parent units
6594 of instances and formal packages.
6595 (Uninstall_Declarations): Check the convention consistency among
6596 primitive overriding operations of a tagged record type.
6598 2006-10-31 Robert Dewar <dewar@adacore.com>
6599 Hristian Kirtchev <kirtchev@adacore.com>
6600 Javier Miranda <miranda@adacore.com>
6601 Ed Schonberg <schonberg@adacore.com>
6603 * sem_ch8.adb: Minor error msg rewording
6604 (Undefined): When checking for misspellings, invert arguments (to get
6605 expected and found set right)
6606 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
6607 (Analyze_Generic_Renaming): Same fix
6608 (Use_One_Package): Do not take into account the internal entities of
6609 abstract interfaces during the analysis of entities that are marked
6610 as potentially use-visible.
6611 (Find_Type): Handle the case of an attribute reference for
6612 implementation defined attribute Stub_Type (simply let the analysis of
6613 the attribute reference rewrite it).
6614 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
6615 type that appears in a Use_Type clause.
6616 (Analyze_Object_Renaming): Add support for renaming of the Priority
6618 (Find_Type): In Ada 2005, a task type can be used within its own body,
6619 when it appears in an access definition.
6620 (Analyze_Object_Renaming): Remove warning on null_exclusion.
6621 (Analyze_Object_Renaming): Introduce checks for required null exclusion
6622 in a formal object declaration or in a subtype declaration.
6623 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
6624 (Check_Null_Exclusion): New local routine to
6625 Analyze_Subprogram_Renaming. Check whether the formals and return
6626 profile of a renamed subprogram have required null exclusions when
6627 their counterparts of the renaming already impose them.
6628 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
6629 Determine whether an entity is inside a generic scope.
6630 (In_Open_Scope): First pass of documentation update.
6631 (Find_Expanded_Name): Add support for shadow entities associated with
6632 limited withed packages. This is required to handle nested packages.
6633 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
6634 that makes a renaming of a limited withed package illegal.
6636 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
6637 Ed Schonberg <schonberg@adacore.com>
6639 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
6640 Check_Overriding_Indicator.
6641 (Analyze_Task_Definition): Ditto.
6642 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
6643 (Check_Overriding_Indicator): To find overridden interface operation,
6644 examine only homonyms that have an explicit subprogram declaration, not
6645 inherited operations created by an unrelated type derivation.
6646 (Check_Overriding_Indicator): When checking for the presence of "null"
6647 in a procedure, ensure that the queried node is a procedure
6649 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
6650 type when the formal is an access to variable.
6651 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
6652 (Analyze_Task_Type): Same addition
6653 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
6654 provide navigation capabilities for entries.
6656 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
6657 Ed Schonberg <schonberg@adacore.com>
6658 Javier Miranda <miranda@adacore.com>
6659 Gary Dismukes <dismukes@adacore.com>
6661 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
6662 inherited from an interface ancestor by another interface in the
6663 context of an instance as 'late'.
6664 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
6665 of a call to a function that dispatches on access result.
6666 (Check_Dispatching_Operation): In case of late overriding of a primitive
6667 that covers abstract interface subprograms we register it in all the
6668 secondary dispatch tables associated with abstract interfaces.
6669 (Check_Dispatching_Call): Add check that a dispatching call is not made
6670 to a function with a controlling result of a limited type. This is a
6671 current implementation restriction.
6672 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
6673 (Check_Dispatching_Operation): Do no emit a warning if the controlling
6674 argument is an interface type that is a generic formal.
6675 (Is_Interface_Subprogram): Removed.
6676 (Check_Dispatching_Operation): If the subprogram is not a dispatching
6677 operation, check the formals to handle the case in which it is
6678 associated with an abstract interface type.
6680 2006-10-31 Robert Dewar <dewar@adacore.com>
6681 Ed Schonberg <schonberg@adacore.com>
6683 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
6684 Add new calls to this procedure during traversal
6685 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
6686 another unit if expansion is disabled.
6688 2006-10-31 Robert Dewar <dewar@adacore.com>
6690 * sem_eval.adb (Compile_Time_Compare): Make use of information from
6691 Current_Value in the conditional case, to evaluate additional
6692 comparisons at compile time.
6694 2006-10-31 Ed Schonberg <schonberg@adacore.com>
6695 Hristian Kirtchev <kirtchev@adacore.com>
6696 Javier Miranda <miranda@adacore.com>
6698 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
6699 subprogram type to provide better diagnostics in case of ambiguity.
6700 (Covers): Handle coverage of formal and actual anonymous access types in
6701 the context of generic instantiation.
6702 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
6703 abstract interface types; this is required to handle concurrent types
6704 with discriminants and abstract interface types.
6705 (Covers): Include type coverage of both regular incomplete subtypes and
6706 incomplete subtypes of incomplete type visibles through a limited with
6709 2006-10-31 Robert Dewar <dewar@adacore.com>
6710 Hristian Kirtchev <kirtchev@adacore.com>
6711 Ed Schonberg <schonberg@adacore.com>
6713 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
6714 messages for entities in packages which are not used.
6715 (Collect_Synchronized_Interfaces): New procedure.
6716 (Overrides_Synchronized_Primitive): New function.
6717 (Denotes_Discriminant): Extend predicate to apply to task types.
6718 Add missing continuation marks in error msgs
6719 (Unqualify): New function for removing zero or more levels of
6720 qualification from an expression. There are numerous places where this
6721 ought to be used, but we currently only deal properly with zero or one
6723 (In_Instance); The analysis of the actuals in the instantiation of a
6724 child unit is not within an instantiation, even though the parent
6725 instance is on the scope stack.
6726 (Safe_To_Capture_Value): Exclude the case of variables that are
6728 (Check_Obsolescent): Removed
6729 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
6730 is an aliased view, even when rewritten as a reference to the target
6731 object in an assignment.
6732 (Get_Subprogram_Entity): New function
6733 (Known_To_Be_Assigned): New function
6734 (Type_Access_Level): Compute properly the access level of a return
6735 subtype that is an anonymous access type.
6736 (Explain_Limited_Type): Correct use of "\" for continuation messages.
6737 (Is_Transfer): The new extended_return_statement causes a transfer of
6739 (Has_Preelaborable_Initialization): New function
6740 (Has_Null_Exclusion): New function. Given a node N, determine whether it
6741 has a null exclusion depending on its Nkind.
6742 Change Is_Lvalue to May_Be_Lvalue
6743 (May_Be_Lvalue): Extensive additional code to deal with subprogram
6744 arguments (IN parameters are not Lvalues, IN OUT parameters are).
6745 (Safe_To_Capture_Value): Extend functionality so it can be used for
6746 the current value condition case.
6747 (Has_Compatible_Alignment): New function
6748 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
6749 objects to handle the Ada 2005 case, where aliasedness no longer implies
6750 that the object is constrained. In particular, for dereferenced names,
6751 the designated object must be assumed to be unconstrained.
6752 (Kill_Current_Values): Properly deal with the case where we encounter
6753 a loop in the scope chain.
6754 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
6756 (Compile_Time_Constraint_Error): Improve error message in error case
6758 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
6759 associated with entities of abstract interface primitives.
6760 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
6762 2006-10-31 Robert Dewar <dewar@adacore.com>
6764 * s-osinte-tru64.adb:
6765 Mark Asm statements Volatile to prevent warnings (seems a
6766 reasonable change anyway)
6769 * s-mastop-irix.adb: Add Volatile to Asm statements
6770 Suppresses warning, and seems appropriate in any case
6772 * s-osinte-vms.adb: Add Volatile to Asm statement
6774 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
6776 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
6778 Add call to Check_Code_Statement
6780 2006-10-31 Robert Dewar <dewar@adacore.com>
6781 Ed Schonberg <schonberg@adacore.com>
6782 Bob Duff <duff@adacore.com>
6784 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
6785 Synchronized_Present): Add Formal_Derived_Type_Definition and
6786 Private_Extension_Declaration to the list of assertions.
6787 (Is_Entry_Barrier_Function): New flag
6788 (Has_Self_Reference): New flag on aggregates, to indicate that they
6789 contain a reference to the enclosing type, inserted through a default
6791 (Next_Rep_Item): Move from Node4 to Node5.
6792 (Entity): Add this field for N_Attribute_Definition_Clause.
6793 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
6794 (N_Return_Object_Declaration): Remove this node kind. We now use
6795 N_Object_Declaration instead.
6796 (Actual_Designated_Subtype): Move to a different place to make room in
6797 N_Extended_Return_Statement.
6798 (Procedure_To_Call): Move to a different place to make room in
6799 N_Extended_Return_Statement.
6800 (Return_Type): Removed this field to make room in return statements
6802 (Return_Statement_Entity): New field in return statements, in part to
6803 replace Return_Type, and in part to support the fact that return
6804 statements are now pushed on the scope stack during semantic analysis.
6805 (Return_Object_Declarations): New field to support extended return
6807 (N_Extended_Return_Statement): New node for extended_return_statement
6809 (N_Return_Object_Declaration): New node for part of
6810 extended_return_statement nonterminal. Needed because all the necessary
6811 fields won't fit in N_Extended_Return_Statement.
6812 Generic_associations now carry the Box_Present flag, to indicate a
6813 default for an actual in a partially parametrized formal package.
6815 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
6816 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
6817 and for the new predefined dispatching policies: EDF_Across_Priorities,
6818 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
6819 Introduce new name Stub_Type for implementation defined attribute.
6820 Add pragma Preelaborable_Initialization
6821 Add entry for Priority attribute.
6822 Add Pragma_Wide_Character_Encoding
6823 (Get_Convention_Name): Given a convention id, this function returns the
6824 corresponding name id from the names table.
6826 2006-10-31 Ed Schonberg <schonberg@adacore.com>
6827 Robert Dewar <dewar@adacore.com>
6828 Bob Duff <duff@adacore.com>
6830 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
6831 print null exclusion twice in the case of an access definition,
6832 Implement new -gnatL switch
6833 Remove N_Return_Object_Declaration. We now use
6834 N_Object_Declaration instead. Implement the case for
6835 N_Extended_Return_Statement. Alphabetize the cases.
6836 Add cases for new nodes N_Extended_Return_Statement and
6837 N_Return_Object_Declaration. The code is not yet written.
6838 Update the output for N_Formal_Object_Declaration
6839 and N_Object_Renaming_Declaration.
6840 (Write_Itype): Account for the case of a modular integer subtype whose
6841 base type is private.
6843 2006-10-31 Arnaud Charlet <charlet@adacore.com>
6845 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
6846 Remove elaboration code, now done in the binder.
6848 * s-rident.ads: Make this unit Preelaborate.
6849 (No_Restrictions): New constant used to clean up code and follow
6850 preelaborate constraints.
6853 Add System.Restrictions dependence, referenced directly from the
6854 binder generated file.
6856 2006-10-31 Gary Dismukes <dismukes@adacore.com>
6858 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
6859 True when AAMP extended floating-point is in use (48-bit). Change type
6860 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
6861 the two byte array types on AFloat. Change type of IV_Ilf overlay
6862 variable from Byte8 to ByteLF. Add appropriate initializations of
6863 floating-point overlays for AAMP cases.
6865 2006-10-31 Javier Miranda <miranda@adacore.com>
6867 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
6868 (Get_Ceiling): New subprogram that returns
6869 the ceiling priority of the protected object.
6870 (Set_Ceiling): New subprogram that sets the new ceiling priority of
6871 the protected object.
6873 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
6875 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
6877 2006-10-31 Jose Ruiz <ruiz@adacore.com>
6879 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
6880 requeuing to the same protected object to give higher priority tasks
6881 the opportunity to execute.
6883 2006-10-31 Robert Dewar <dewar@adacore.com>
6885 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
6886 add more precise check for the character sequence that follows '[' to
6887 avoid possible confusion in case if '[' is the last character of a
6889 (Scan_Wide): Always allow brackets encoding
6891 2006-10-31 Olivier Hainque <hainque@adacore.com>
6893 * s-stchop.ads: make this unit preelaborate. This is desirable in
6894 general and made mandatory by the use of this unit by s-taprop which
6895 is itself preelaborate.
6897 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
6898 Td_Events component.
6900 2006-10-31 Vincent Celier <celier@adacore.com>
6902 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
6905 2006-10-31 Vincent Celier <celier@adacore.com>
6907 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
6909 2006-10-31 Vincent Celier <celier@adacore.com>
6911 * makegpr.adb (Check_Compilation_Needed): Take into account path names
6913 (Check_Compilation_Needed): When checking a C or C++ source, do not
6914 resolve symbolic links.
6915 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
6916 When not in verbose mode and Ellipse is True, display "..." for the
6917 first argument with Display set to False.
6918 (Build_Global_Archive): Always set Display True for the first object
6919 file. Call Display_Command with Ellipse set to True.
6921 2006-10-31 Matt Heaney <heaney@adacore.com>
6923 * a-crbtgo.ads: Commented each subprogram
6925 * a-crbtgo.adb: Added reference to book from which algorithms were
6928 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
6929 indicate which child.
6930 (Generic_Conditional_Insert): changed parameter name from "Success" to
6932 (Generic_Unconditional_Insert_With_Hint): improved algorithm
6934 * a-coorse.adb (Replace_Element): changed parameter name in call to
6935 conditional insert operation.
6937 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
6939 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
6942 * a-ciorse.adb (Replace_Element): changed parameter name in call to
6943 conditional insert operation.
6945 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
6948 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
6949 instead of mode inout.
6951 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
6953 (Generic_Read): preserve existing buckets array if possible
6954 (Generic_Write): don't send buckets array length anymore
6956 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
6957 instead of mode inout.
6959 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
6960 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
6962 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
6963 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
6964 (Replace_Element): local operation is now an instantiation
6966 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
6967 check current length.
6968 (Generic_Replace_Element): new operation
6970 2006-10-31 Doug Rupp <rupp@adacore.com>
6972 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
6973 Call TBK$SYMBOLIZE without omitting parameters.
6975 2006-10-31 Vincent Celier <celier@adacore.com>
6977 * symbols-processing-vms-ia64.adb,
6978 symbols-processing-vms-alpha.adb (Process): Do not include symbols
6979 that come from generic instantiations in bodies.
6981 2006-10-31 Pat Rogers <rogers@adacore.com>
6983 * a-rttiev.ads, a-rttiev.adb:
6984 This is a significant redesign primarily for the sake of automatic
6985 timer task termination but also to fix a design flaw.
6986 Therefore we are now using an RTS lock, instead of a protected
6987 object, to provide mutual exclusion to the queue of pending events
6988 and the type Timing_Event is no longer a protected type.
6990 2006-10-31 Robert Dewar <dewar@adacore.com>
6991 Cyrille Comar <comar@adacore.com>
6992 Ben Brosgol <brosgol@adacore.com>
6994 * debug.adb: Update flags documentation
6996 * gnat_ugn.texi: Add documentation for new -gnatwq switch
6997 Clean up documentation for several other warning switches
6998 Clarify how task stack size can be specified with various
6999 versions of Windows.
7000 Add note that -gnatVo includes ranges including loops
7001 Add documentation for -gnatL switch
7002 Add note on elaboration warning for initializing variables
7003 Add documentation for new -gnatwt warning switch
7004 Document new form of pragma Warnings (On|Off, string)
7005 Add comment on use of pragma Warnings to control warnings
7006 Add documentation for -gnatjnn switch
7007 Modify section on interfacing with C for VMS 64-bit.
7008 Add doc for -gnatVe/E
7009 Add documentation of new warning flags -gnatww/-gnatwW
7010 Add warnings about address clause overlays to list of warnings
7011 (Exception Handling Control): Document that the option --RTS must be
7012 used consistently for gcc and gnatbind.
7013 Clarify that inlining is not always possible
7014 Update documentation on pragma Unchecked_Union.
7017 Add documentation for new extended version of pragma Obsolescent
7018 Add documentation for implementation defined attribute 'Stub_Type.
7019 Add note on use of Volatile in asm statements
7020 Add documentation on use of pragma Unreferenced in context clause
7021 Document new form of pragma Warnings (On|Off, pattern)
7022 Document pragma Wide_Character_Encoding
7023 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
7024 enforced if code generation is active.
7025 Add section on pragma Suppress to document GNAT specific check
7027 Clarify difference between No_Dispatching_Calls & No_Dispatch.
7028 Add documentation for pragma Restrictions (No_Elaboration_Code)
7031 Add comments on layout of subprogram local variables in the
7032 presence of nested subprograms.
7036 * elists.ads: Minor reformatting
7037 Node returns Node_Or_Entity_Id (doc change only)
7039 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
7041 * g-arrspl.ads (Create): Update comments.
7043 * sem.ads: Add details on the handling of the scope stack.
7045 * usage.adb: Update documentation.
7047 * validsw.ads, validsw.adb:
7048 Add definition of Validity_Check_Components and implement -gnatVe/E
7050 * vms_data.ads: Add missing VMS qualifiers.
7052 * s-addope.ads: Add documentation on overflow and divide by zero
7054 2006-10-31 Robert Dewar <dewar@adacore.com>
7055 Thomas Quinot <quinot@adacore.com>
7056 Arnaud Charlet <charlet@adacore.com>
7058 * fmap.adb: Put routines in alpha order
7060 * g-boumai.ads: Remove redundant 'in' keywords
7062 * g-cgi.adb: Minor reformatting
7064 * g-cgi.ads: Remove redundant 'in' keywords
7066 * get_targ.adb: Put routines in alpha order
7068 * prj-attr.ads: Minor reformatting
7070 * s-atacco.ads: Minor reformatting
7072 * scn.adb: Put routines in alpha order
7074 * sinput-l.adb: Minor comment fix
7076 * sinput-p.adb: Minor comment fix
7078 * s-maccod.ads: Minor reformatting
7080 * s-memory.adb: Minor reformatting
7082 * s-htable.adb: Fix typo in comment.
7084 * s-secsta.adb: Minor comment update.
7086 * s-soflin.adb: Minor reformatting
7089 Add comment about odd qualification in Storage_Offset declaration
7092 Remove unnecessary 'in' keywords for formal parameters.
7094 * treeprs.adt: Minor reformatting
7096 * urealp.adb: Put routines in alpha order
7098 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
7101 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
7103 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
7105 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
7106 workaround as on other platforms.
7108 * g-eacodu-vms.adb: Remove redundant 'in' keywords
7109 * g-expect-vms.adb: Remove redundant 'in' keywords
7111 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
7112 clear error message if the list-of-files file cannot be opened.
7114 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
7115 equality operator is always visible.
7117 * lang.opt: Woverlength-strings: New option.
7120 Update copyright, since nmake.ads and nmake.adb have changed.
7122 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
7123 (Binder_Output_Time_Stamps_Set): removed.
7124 (Old_Binder_Output_Time_Stamp): idem.
7125 (New_Binder_Output_Time_Stamp): idem.
7126 (Recording_Time_From_Last_Bind): idem.
7127 (Recording_Time_From_Last_Bind): Make constant.
7129 * output.ads, output.adb (Write_Str): Allow LF characters
7130 (Write_Spaces): New procedure
7132 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
7134 * inline.adb: Minor reformatting
7136 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
7138 * s-mastop-vms.adb: Remove redundant 'in' keywords
7140 * s-osprim-vms.adb: Remove redundant 'in' keywords
7142 * s-trafor-default.adb: Remove redundant 'in' keywords
7144 * 9drpc.adb: Remove redundant 'in' keywords
7146 * s-osinte-mingw.ads: Minor reformatting
7148 * s-inmaop-posix.adb: Minor reformatting
7150 * a-direio.ads: Remove quotes from Compile_Time_Warning message
7152 * a-exexda.adb: Minor code reorganization
7154 * a-filico.adb: Minor reformatting
7156 * a-finali.adb: Minor reformatting
7158 * a-nudira.ads: Remove quote from Compile_Time_Warning message
7160 * a-numeri.ads: Minor reformatting
7162 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
7164 * exp_pakd.ads: Fix obsolete comment
7166 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
7167 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
7168 Probably not a bug, but certainly neater and more efficient.
7170 * a-tienio.adb: Minor reformatting
7172 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
7173 Avoid assuming low bound of string is 1.
7175 * gnatbind.adb: Change Bindusg to package and rename procedure as
7176 Display, which now ensures that it only outputs usage information once.
7177 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
7179 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
7182 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
7184 (Match): Add pragma Assert to ensure that Matches'First is zero
7186 * g-regpat.ads (Match): Document that Matches lower bound must be zero
7188 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
7189 documented preconditions (also kills warnings about bad indexes).
7191 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
7193 (Build_Import_Library): Ditto;
7195 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
7197 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
7199 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
7200 lower bound of choice table is 1.
7202 * sem_case.ads (Analyze_Choices): Document that lower bound of
7205 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
7208 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
7209 and add appropriate Assert pragma to suppress warnings.
7211 * atree.h, atree.ads, atree.adb
7212 Change Elist24 to Elist25
7213 Add definitions of Field28 and Node28
7214 (Traverse_Field): Use new syntactic parent table in sinfo.
7216 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
7218 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
7220 * exp_tss.adb: Put routines in alpha order
7222 * fe.h: Remove redundant declarations.
7224 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
7226 * utils.c (builtin_function): Rename to gnat_builtin_function.
7227 Move common code to add_builtin_function.
7228 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
7229 gnat_builtin_function.
7230 * gigi.h (builtin_function): Rename to gnat_builtin_function.
7231 Change the signature.
7233 2006-10-16 Brooks Moses <bmoses@stanford.edu>
7235 * Makefile.in: Add TEXI2PDF definition.
7236 * Make-lang.in: Add "ada.pdf" target.
7238 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
7240 * decl.c, utils.c: Fix comment typos.
7241 * utils.c: Fix a typo.
7243 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
7245 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
7246 on "pure" Ada subprograms if SJLJ exceptions are used.
7247 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
7248 on the declaration node of JMPBUF_SAVE.
7249 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
7250 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
7251 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
7253 2006-08-20 Laurent GUERBY <laurent@guerby.net>
7256 g-socket.adb (Bind_Socket): Call Set_Address.
7258 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
7261 * decl.c (same_discriminant_p): New static function.
7262 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
7263 subtype and we have discriminants, fix up the COMPONENT_REFs
7264 for the discriminants to make them reference the corresponding
7265 fields of the parent subtype after it has been built.
7267 2006-09-15 Roger Sayle <roger@eyesopen.com>
7270 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
7271 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
7273 2006-09-13 Olivier Hainque <hainque@adacore.com>
7276 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
7277 of a SAVE_EXPR, just make the operand addressable/not-readonly and
7278 let the common gimplifier code make and propagate a temporary copy.
7279 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
7280 out/in-out actuals and defer setting the addressable/readonly bits
7283 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
7286 * decl.c (components_to_record): Defer emitting debug info for the
7287 record type associated with the variant until after we are sure to
7290 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
7293 * gigi.h (gnat_internal_attribute_table): Declare.
7294 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
7295 * utils.c (gnat_internal_attribute_table): New global variable.
7296 (builtin_function): Always call decl_attributes on the builtin.
7297 (handle_const_attribute): New static function.
7298 (handle_nothrow_attribute): Likewise.
7300 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
7302 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
7304 2006-06-23 Olivier Hainque <hainque@adacore.com>
7306 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
7307 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
7309 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
7310 Eric Botcazou <ebotcazou@adacore.com>
7313 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
7314 check-gnat into check-acats.
7316 2006-06-17 Karl Berry <karl@gnu.org>
7318 * gnat-style.texi (@dircategory): Use "Software development"
7319 instead of "Programming", following the Free Software Directory.
7321 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7324 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
7326 2006-06-06 Laurent GUERBY <laurent@guerby.net>
7329 mlib-utl.adb: Use Program_Name.
7331 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
7333 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
7334 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
7335 trans.c, utils.c: Fix comment typos. Follow spelling
7337 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
7340 2006-05-19 Nicolas Setton <setton@adacore.com>
7342 * misc.c (gnat_dwarf_name): New function.
7343 (LANG_HOOKS_DWARF_NAME): Define to it.
7345 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
7347 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
7348 (ada/misc.o): Likewise.
7349 (ada/utils.o): Likewise.
7351 2006-04-08 Aurelien Jarno <aurel32@debian.org>
7353 * Makefile.in: Add Ada support for GNU/kFreeBSD.
7354 * s-osinte-kfreebsd-gnu.ads: New file.
7356 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
7358 * Make-lang.in: Rename docdir to gcc_docdir.
7360 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
7362 * gigi.h (get_ada_base_type): Delete.
7363 * utils2.c (get_ada_base_type): Likewise.
7364 * trans.c (convert_with_check): Operate in the real base type.
7366 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7368 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
7370 2006-03-02 Richard Sandiford <richard@codesourcery.com>
7372 * utils.c (create_var_decl): Use have_global_bss_p when deciding
7373 whether to make the decl common.
7375 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
7377 * Make-lang.in (Ada): Remove.
7378 (.PHONY): Remove Ada
7380 2006-02-17 Ed Schonberg <schonberg@adacore.com>
7382 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
7383 aggregate, check the interpretations of the other operand to find one
7384 that may be a boolean array.
7386 (Analyze_Selected_Component): Fix flow-of-control typo in case where
7387 the prefix is a private extension.
7389 2006-02-17 Eric Botcazou <botcazou@adacore.com>
7392 * utils2.c (find_common_type): If both input types are BLKmode and
7393 have the same constant size, keep using the first one.
7395 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
7397 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
7399 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
7401 2006-02-17 Jose Ruiz <ruiz@adacore.com>
7403 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
7404 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
7405 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
7406 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
7407 Abort_Defer/Undefer pairs to avoid the possibility of a task being
7408 aborted while owning a lock.
7410 2006-02-17 Javier Miranda <miranda@adacore.com>
7411 Robert Dewar <dewar@adacore.com>
7413 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
7414 through an access to class-wide interface we force the displacement of
7415 the pointer to the allocated object to reference the corresponding
7416 secondary dispatch table.
7417 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
7418 if Long_Shifts are supported on the target, even if 64 bit divides
7419 are not supported (configurable run time mode).
7420 (Expand_N_Type_Conversion): Do validity check if validity checks on
7421 operands are enabled.
7422 (Expand_N_Qualified_Expression): Do validity check if validity checks
7423 on operands are enabled.
7425 2006-02-17 Ed Schonberg <schonberg@adacore.com>
7427 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
7428 must be materialized when the renamed expression is an explicit
7431 2006-02-17 Ed Schonberg <schonberg@adacore.com>
7433 * freeze.adb (Statically_Discriminated_Components): Return false if
7434 the bounds of the type of the discriminant are not static expressions.
7436 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
7437 the bounds of the discriminant type are not static.
7439 2006-02-17 Robert Dewar <dewar@adacore.com>
7441 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
7442 then we close To if it is valid.
7444 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
7446 * init.c (facility_resignal_table): new array
7447 (__gnat_default_resignal_p): enhance default predicate to resignal if
7448 VMS condition has one of the predefined facility codes.
7450 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
7452 * Makefile.in: Use VMS64 specialized versions of several units in
7453 Interfaces.C hierarchy to be compatible with HP C default size choices.
7454 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
7456 2006-02-17 Ed Schonberg <schonberg@adacore.com>
7458 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
7459 instantiation, the corresponding entity is the related_instance of the
7460 wrapper package created for the instance.
7462 2006-02-17 Ed Schonberg <schonberg@adacore.com>
7464 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
7465 the current instance is nested within another instance in a child unit.
7467 2006-02-17 Javier Miranda <miranda@adacore.com>
7468 Ed Schonberg <schonberg@adacore.com>
7470 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
7471 type we cannot inherit the primitive operations; we inherit the
7472 Corresponding_Record_Type (which has the list of primitive operations).
7473 (Check_Anonymous_Access_Types): When creating anonymous access types for
7474 access components, use Rewrite in order to preserve the tree structure,
7476 (Analyze_Object_Declaration): For limited types with access
7477 discriminants with defaults initialized by an aggregate, obtain
7478 subtype from aggregate as for other mutable types.
7479 (Derived_Type_Declaration): If the derived type is a limited interface,
7480 set the corresponding flag (Is_Limited_Record is not sufficient).
7482 2006-02-17 Ed Schonberg <schonberg@adacore.com>
7484 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
7485 to inline a function that returns an unconstrained type, the return
7486 expression must be the first variable declared in the body of the
7489 2006-02-17 Javier Miranda <miranda@adacore.com>
7491 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
7492 abstract interface type, the static analysis is not enough to know if
7493 the interface is implemented or not by the source tagged type. Hence
7494 we must pass the work to the expander to generate the required code to
7495 evaluate the conversion at run-time.
7496 (Resolve_Equality_Op): Do not apply previous
7497 transformation if expansion is disasbled, to prevent anomalies when
7498 locating global references in a generic unit.
7500 2006-02-17 Vincent Celier <celier@adacore.com>
7502 * snames.ads, snames.adb: New standard names for new project attributes:
7503 archive_builder, archive_indexer, compiler_pic_option,
7504 config_body_file_name, config_body_file_name_pattern,
7505 config_file_switches, config_file_unique, config_spec_file_name,
7506 config_spec_file_name_pattern, default_builder_switches,
7507 default_global_compiler_switches, default_language,
7508 dependency_file_kind, global_compiler_switches, include_path,
7509 include_path_file, language_kind, linker_executable_option,
7510 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
7511 roots, runtime_project.
7513 2006-02-17 Matthew Heaney <heaney@adacore.com>
7515 * a-convec.ads, a-convec.adb:
7516 (operator "&"): handle potential overflow for large index types
7517 (Insert): removed Contraint_Error when using large index types
7518 (Insert_Space): removed Constraint_Error for large index types
7519 (Length): moved constraint check from Length to Insert
7521 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
7523 Explicit raise statements now include an exception message.
7524 (operator "&"): handle potential overflow for large index types
7525 (Insert): removed Contraint_Error when using large index types
7526 (Insert_Space): removed Constraint_Error for large index types
7527 (Length): moved constraint check from Length to Insert
7529 2006-02-17 Robert Dewar <dewar@adacore.com>
7531 * s-wchcnv.adb: Document handling of [ on output (we do not change
7532 this to ["5B"] and the new comments say why not.
7535 Add note for -gnatVo that this now includes the cases of type
7536 conversions and qualified expressions.
7537 Add comments on handling of brackets encoding for Text_IO
7539 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
7540 Thomas Quinot <quinot@adacore.com>
7541 Robert Dewar <dewar@adacore.com>
7542 Javier Miranda <miranda@adacore.com>
7544 * expander.adb: Fix typo in comment
7546 * exp_pakd.adb: Fix typo
7547 Minor comment reformatting.
7549 * g-dyntab.adb: Minor reformatting
7551 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
7552 aliased subprograms to look for the abstract interface subprogram.
7554 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
7556 * env.c (__gnat_setenv): Use size_t.
7557 (__gnat_unsetenv): Likewise.
7558 (__gnat_clearenv): Likewise.
7560 2006-02-16 Arnaud Charlet <charlet@adacore.com>
7562 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
7564 2006-02-13 Arnaud Charlet <charlet@adacore.com>
7566 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
7567 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
7568 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
7569 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
7570 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
7571 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
7572 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
7573 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
7574 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
7577 2006-02-13 Jose Ruiz <ruiz@adacore.com>
7579 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
7580 protection against race conditions is not needed.
7581 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
7583 (Set_Specific_Handler): Add mutual exclusive access to the specific
7585 (Specific_Handler): Add mutual exclusive access for retrieving the
7588 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
7591 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
7592 Fall_Back_Handler and Specific_Handler.
7594 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
7595 termination handlers.
7596 Set two different owerflow depending on the maximal stack size.
7598 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
7599 protection against race conditions is not needed when executing the
7600 task termination handler.
7602 2006-02-13 Robert Dewar <dewar@adacore.com>
7604 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
7605 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
7606 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
7607 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
7608 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
7609 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
7610 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
7611 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
7612 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
7613 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
7614 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
7615 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
7616 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
7617 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
7618 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
7619 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
7620 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
7621 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
7622 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
7623 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
7624 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
7625 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
7626 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
7627 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
7628 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
7629 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
7630 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
7631 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
7632 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
7633 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
7634 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
7635 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
7636 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
7637 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
7640 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
7642 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
7643 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
7644 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
7645 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
7646 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
7647 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
7648 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
7649 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
7650 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
7652 2006-02-13 Arnaud Charlet <charlet@adacore.com>
7654 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
7655 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
7656 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
7657 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
7658 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
7659 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
7660 replaced by anonymous access type.
7661 (pthread_sigmask): Now take an access sigset_t
7663 * s-osinte-hpux.ads: Ditto.
7664 (pthread_mutex_t, pthread_cond_t): Update definitions to support
7665 properly 32 and 64 bit ABIs.
7667 2006-02-13 Pascal Obry <obry@adacore.com>
7669 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
7670 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
7671 s-taprop-linux.adb, s-taprop-solaris.adb,
7672 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
7673 adjustement is already done when calling this routine.
7675 2006-02-13 Pascal Obry <obry@adacore.com>
7677 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
7678 table to take advantage of the 16 priority levels available on Windows
7679 2000 and XP. On NT4 there are only 7 priority levels, this is properly
7680 supported by this new mapping.
7682 2006-02-13 Nicolas Setton <setton@adacore.com>
7684 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
7685 (get_encoding): New subprogram. Extracts the encodings from an encoded
7688 2006-02-13 Pascal Obry <obry@adacore.com>
7689 Nicolas Roche <roche@adacore.com>
7690 Arnaud Charlet <charlet@adacore.com>
7692 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
7694 (__gnat_try_lock): Add unicode support by using a specific section on
7696 (__gnat_get_current_dir): Idem.
7697 (__gnat_open_read): Idem.
7698 (__gnat_open_rw): Idem.
7699 (__gnat_open_create): Idem.
7700 (__gnat_create_output_file): Idem.
7701 (__gnat_open_append): Idem.
7702 (__gnat_open_new): Idem.
7703 (__gnat_file_time_name): Idem.
7704 (__gnat_set_file_time_name): Idem.
7705 (__gnat_stat): Idem.
7706 (win32_no_block_spawn): Idem.
7707 (__gnat_locate_exec_on_path): Idem.
7708 (__gnat_opendir): New routine.
7709 (__gnat_closedir): Idem.
7710 (__gnat_readdir): Add new parameter length (pointer to int). Update
7711 implementation to use it and add specific Win32 code for Unicode
7713 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
7714 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
7715 (convert_addresses): Do not define this dummy routine on VMS.
7717 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
7718 runtime Unicode support will be activated.
7719 (S2WS): String to Wide-String conversion. This version just copy a
7720 string in non Unicode version.
7721 (WS2S): Wide-String to String conversion. This version just copy a
7722 string in non Unicode version.
7724 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
7725 (Open): Now import __gnat_opendir from adaint.c.
7726 (Read): Change the implementation to support unicode characters. It is
7727 not possible to use strlen() on Windows as this version supports only
7728 standard ASCII characters. So the length of the directory entry is now
7729 returned from the imported __gnat_readdir routine.
7730 Update copyright notice.
7732 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
7733 (opendir): Moved to adaint.c.
7735 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
7736 (Get_Directory): Fix wrong indexing.
7737 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
7738 __gnat_getenv from env.c
7739 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
7742 * env.h, env.c: New file.
7744 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
7745 adaint.c by __gnat_getenv from env.c
7747 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
7748 adaint.c by __gnat_getenv from env.c
7750 * Make-lang.in: Add env.o in the list of C object needed by gnat1
7752 Update dependencies.
7754 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7755 Olivier Hainque <hainque@adacore.com>
7756 Eric Botcazou <ebotcazou@adacore.com>
7758 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
7760 * gigi.h (value_factor_p): Add prototype and description, now public.
7762 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
7763 promotion for field with rep clause if the associated size was proven
7765 Expand comments describing attempts to use a packable type.
7766 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
7767 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
7768 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
7769 necessary since these are not different types and pointers may
7770 actually designate any subtype in this hierarchy.
7771 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
7772 discriminants but put them into record only if not Unchecked_Union;
7773 pass flag to components_to_record showing Unchecked_Union.
7774 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
7775 components before variants; don't set TYPE_UNCHECKED_UNION_P.
7776 (components_to_record): New argument UNCHECKED_UNION.
7777 Remove special case code for Unchecked_Union and instead use main code
7781 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
7782 variable with the expression being built, only its inner field.
7784 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
7785 emit_sequence_entry_statements.
7786 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
7787 (establish_gnat_vms_condition_handler): Move before
7788 Subprogram_Body_to_gnu.
7789 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
7790 for a subprogram if it has a foreign convention or is exported.
7791 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
7792 substituted for a CONST_DECL.
7793 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
7794 Etype to assoc_to_constructor.
7795 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
7796 discriminants of Unchecked_Union.
7797 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
7798 don't need cluttering preprocessor directives.
7799 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
7800 condition handler as current in the compiled function.
7801 (body_with_handlers_p): New function. Tell whether a given sequence of
7802 statements node is attached to a package or subprogram body and involves
7803 exception handlers possibly nested within inner block statements.
7804 (emit_sequence_entry_statements): New function, to emit special
7805 statements on entry of sequences when necessary. Establish GNAT
7806 condition handler in the proper cases for VMS.
7807 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
7808 emit_sequence_entry_statements.
7810 * utils2.c (find_common_type): If both input types are BLKmode and
7811 have a constant size, use the smaller one.
7812 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
7815 * utils.c (value_factor_p): Make public, to allow uses from other gigi
7817 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
7818 (convert, case UNION_TYPE): Remove special treatment for unchecked
7822 (update_pointer_to): Update variants of pointer types to unconstrained
7823 arrays by attaching the list of fields of the main variant.
7825 2006-02-13 Arnaud Charlet <charlet@adacore.com>
7826 Robert Dewar <dewar@adacore.com>
7828 * a-exexpr.adb, a-exexpr-gcc.adb
7829 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
7830 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
7831 Remove code unused for exception propagation for the compiler itself
7832 from a-except.adb and update to still share separate packages.
7834 * a-except.ads, a-except.adb: Ditto.
7835 Add comments that this version is now used only by the compiler and
7836 other basic tools. The full version that includes the Ada 2005 stuff
7837 is in separate files a-except-2005.ads/adb. The reason is that we do
7838 not want to cause bootstrap problems with compilers not recognizing
7840 Add exception reason code PE_Implicit_Return
7841 Add new exception reason code (Null Exception_Id)
7843 * a-except-2005.adb, a-except-2005.ads: New files.
7845 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
7847 * s-wchcon.adb: New file.
7849 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
7850 (traceback.o deps): Likewise.
7851 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
7852 Activate build of GMEM instrumentation library on VMS targets.
7853 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
7854 Use a-except-2005.ads/adb for all run-time library builds unless
7855 specified otherwise.
7856 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
7857 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
7858 Use s-parame.adb on all native platforms.
7859 Use s-parame-vxworks.adb on all vxworks platforms.
7860 Add env.c env.h in LIBGNAT_SRCS
7861 Add env.o in LIBGNAT_OBJS
7862 (GNATMAKE_OBJS): Remove ctrl_c.o object.
7863 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
7864 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
7865 supports VxWorks 6 RTPs.
7866 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
7867 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
7869 * types.h, types.ads (Terminate_Program): New exception
7870 Add comment on modifying multiple versions of a-except.adb when the
7871 table of exception reasons is modified.
7872 Add exception reason code PE_Implicit_Return
7873 Add new exception reason code (Null Exception_Id)
7875 * clean.adb (Initialize): Get the target parameters before checking
7876 if target is OpenVMS. Move the OpenVMS specific code here from package
7877 body elaboration code.
7879 2006-02-13 Thomas Quinot <quinot@adacore.com>
7880 Vincent Celier <celier@adacore.com>
7881 Robert Dewar <dewar@adacore.com>
7883 * ali-util.adb (Get_File_Checksum): Update to account for change in
7884 profile of Initialize_Scanner.
7886 * gprep.adb (Gnatprep): Update to account for change in profile of
7888 (Process_One_File): Same.
7890 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
7891 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
7892 that behaviour using the new Unit information recorded in the source
7893 files table, rather than going through all units every time.
7894 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
7895 (Get_Source_Unit): Same.
7897 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
7898 change in profile of Initialize_Scanner.
7899 (Prepare_To_Preprocess): Same.
7901 * lib.ads: Fix typo in comment (templace -> template).
7903 * prj-part.adb (Parse_Single_Project): Update to account for change in
7904 profile of Initialize_Scanner.
7906 * scn.adb (Initialize_Scanner): Account for change in profile of
7907 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
7908 Also record the association of the given Source_File_Index to the
7909 corresponding Unit_Number_Type.
7911 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
7913 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
7914 Remove Unit formal for generic scanner: this formal
7915 is only relevant to Scn (the scanner instance used to parse Ada source
7916 files), not to other instances. Update comment accordingly.
7917 (Scan): Use new function Snames.Is_Keyword_Name.
7919 * sinfo-cn.adb: Fix typo in comment.
7921 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
7924 * sinput.ads (Source_File_Record): New component Unit, used to capture
7925 the unit identifier (if any) associated to a source file.
7927 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
7928 Unit in Source_File_Record.
7930 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
7931 in profile of Initialize_Scanner.
7933 * scans.adb (Initialize_Ada_Keywords): New procedure
7935 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
7936 Ada keywords in the Namet table, without the need to call
7939 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
7940 (Is_Keyword_Name): New function
7942 * snames.ads: Add subtype Configuration_Pragma_Names
7943 Add pragma Ada_2005 (synonym for Ada_05)
7944 (Is_Keyword_Name): New function
7946 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
7948 2006-02-13 Arnaud Charlet <charlet@adacore.com>
7950 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
7953 * a-stwima.adb (To_Set): Add extra check when N = 0.
7955 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
7957 2006-02-13 Arnaud Charlet <charlet@adacore.com>
7959 * s-parame-mingw.adb, s-parame-linux.adb,
7960 s-parame-solaris.adb: Removed, replaced by s-parame.adb
7962 * s-parame-vxworks.ads: Fix typo.
7964 * s-parame-vxworks.adb: New file.
7966 * s-parame.adb: Version now used by all native platforms.
7967 (Default_Stack_Size): Use 2 megs for default stack size and use
7968 __gl_default_stack_size when available.
7969 (Minimum_Stack_Size): Use 12K.
7971 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
7972 (Create_Task): Refine implementation taking advantage of the XP stack
7973 size support. On XP, we now create the thread using the flag
7974 STACK_SIZE_PARAM_IS_A_RESERVATION.
7976 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
7978 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
7979 XP and 0 on older Windows versions.
7981 * interfac-vms.ads: Removed, no longer used.
7983 2006-02-13 Matthew Heaney <heaney@adacore.com>
7985 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
7986 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
7987 a-cohase.adb: All explicit raise statements now include an exception
7990 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
7991 (Update_Element_Preserving_Key): renamed op to just Update_Element.
7992 Explicit raise statements now include an exception message
7994 * a-cihase.ads, a-cohase.ads: Removed comment.
7996 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
7997 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
7998 a-szbzha.adb, a-szfzha.ads: New files.
8000 2006-02-13 Matthew Heaney <heaney@adacore.com>
8002 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
8005 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
8007 * lang.opt: Wvariadic-macros: New option.
8008 Wold-style-definition: Likewise.
8009 Wmissing-format-attribute: Likewise.
8011 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
8012 -Wold-style-definition and -Wmissing-format-attribute.
8014 2006-02-13 Robert Dewar <dewar@adacore.com>
8016 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
8018 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
8020 2006-02-13 Nicolas Roche <roche@adacore.com>
8022 * a-envvar.adb, a-envvar.ads: New files.
8024 2006-02-13 Douglas Rupp <rupp@adacore.com>
8026 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
8028 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
8030 2006-02-13 Pat Rogers <rogers@adacore.com>
8032 * a-rttiev.adb, a-rttiev.ads: New files.
8034 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
8036 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
8037 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
8039 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
8041 2006-02-13 Robert Dewar <dewar@adacore.com>
8043 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
8044 sem_case.adb: Minor code reorganization (not Present should be No)
8046 2006-02-13 Geert Bosch <bosch@adacore.com>
8047 Gary Dismukes <dismukes@adacore.com>
8049 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
8050 0, since the lower bound of the actual string may be greater than one.
8053 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
8054 layout is requested.
8056 2006-02-13 Vincent Celier <celier@adacore.com>
8058 * back_end.adb (Scan_Compiler_Arguments): Check if
8059 Search_Directory_Present is True and, if it is, add the argument in
8060 the source search directory path.
8062 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
8063 Search_Directory_Present to True.
8065 2006-02-13 Joel Brobecker <brobecke@adacore.com>
8067 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
8068 volatile, to tell the compiler to preserve this variable at any level
8070 (Gen_Versions_Ada): Temporarily work around codegen bug.
8072 2006-02-13 Vincent Celier <celier@adacore.com>
8074 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
8075 gcc to link with option -shared-libgcc.
8076 (Gnatlink): Remove duplicate switches -shared-libgcc
8078 2006-02-13 Robert Dewar <dewar@adacore.com>
8080 * gnatvsn.ads (Current_Year): New constant, used to easily update
8081 copyright on all GNAT tools.
8083 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
8086 2006-02-13 Robert Dewar <dewar@adacore.com>
8088 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
8089 after hyphen (small aesthetic change useful for a range of numbers
8091 Suppress range checks for a couple of assignments which otherwise
8092 cause validity checks with validity checking turned on.
8094 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
8095 Improvement in error message for object.
8096 (Rep_Item_Too_Late): Remove '!' in warning message.
8098 2006-02-13 Robert Dewar <dewar@adacore.com>
8099 Eric Botcazou <ebotcazou@adacore.com>
8101 * err_vars.ads: Suppress range checks for a couple of assignments
8102 which otherwise cause validity checks with validity checking turned on.
8105 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
8106 Make message unconditional if it is a warning.
8107 (Error_Msg_NEL): Always output warning messages.
8108 Suppress range checks for a couple of assignments which otherwise
8109 cause validity checks with validity checking turned on.
8111 * errout.ads (Message Insertion Characters): Document that '!' is
8112 implied by '?' in error messages.
8114 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
8115 (Gnat1drv): Use a goto to end of main subprogram instead of
8116 Exit_Program (E_Success) so that finalization can occur normally.
8118 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
8120 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
8123 2006-02-13 Vincent Celier <celier@adacore.com>
8125 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
8126 Unchecked_Conversion functions.
8127 (Modification_Time): Use direct conversion of OS_Time to Calendar time
8128 when OpenVMS returns False.
8130 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
8131 a-dirval.adb (OpenVMS): New Boolean function
8133 2006-02-13 Ed Schonberg <schonberg@adacore.com>
8134 Thomas Quinot <quinot@adacore.com>
8136 * checks.adb (Build_Discriminant_Checks): If the expression being
8137 checks is an aggregate retrieve the values of its discriminants to
8138 generate the check, rather than creating a temporary and a reference
8140 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
8141 (Install_Null_Excluding_Check): Ditto
8142 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
8143 not for the renamed object, so that the actual itype is attached in the
8146 2006-02-13 Robert Dewar <dewar@adacore.com>
8147 Vincent Celier <celier@adacore.com>
8149 * debug.adb: Eliminate numeric switches for binder/gnatmake
8151 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
8152 switches for the compiler.
8153 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
8154 (Scan_Make_Switches): When failing with an illegal switch, output an
8155 error message with the full switch.
8156 Eliminate numeric switches for binder/gnatmake
8158 * switch.ads, switch.adb (Bad_Switch): New procedure
8160 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
8161 Remove 0-9 as debug flag character possibilities
8162 -d is now controlling the primary stack size when its value is a
8163 positive. Also add checks against invalid values, and support for kb,
8164 mb. Ditto for -D switch.
8166 2006-02-13 Robert Dewar <dewar@adacore.com>
8167 Serguei Rybin <rybin@adacore.com>
8169 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
8170 save/restore routines.
8171 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
8172 were not always properly handled previously.
8173 Since we are changing the tree format anyway, also get rid of the
8174 junk obsolete Immediate_Errors flag.
8175 (Tree_Read): Change the way of reading Tree_Version_String - now we
8176 read the version string from the tree even if its length is not the
8177 same as the length of the version string computed from Gnatvsn.
8178 (Search_Directory_Present): New Boolean flag for the compiler.
8179 Define Tree_Version_String as a dynamic string.
8180 (Default_Stack_Size): new variable, used to handle switch -d.
8183 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
8185 Add pragma Ada_2005 (synonym for Ada_05)
8186 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
8187 were not always properly handled previously.
8189 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
8190 explicit Ada_95 to Ada_2005.
8192 2006-02-13 Javier Miranda <miranda@adacore.com>
8193 Robert Dewar <dewar@adacore.com>
8194 Ed Schonberg <schonberg@adacore.com>
8196 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
8197 against errors in the source program: a private types for which the
8198 corresponding full type declaration is missing and pragma CPP_Virtual
8200 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
8201 (Is_Known_Null): New flag
8202 (Has_Pragma_Pure): New flag
8203 (No_Return): Present in all entities, set only for procedures
8204 (Is_Limited_Type): A type whose ancestor is an interface is limited if
8205 explicitly declared limited.
8206 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
8207 entities. Only used for component marked Is_Tag. If present it stores
8208 the Offset_To_Top function used to provide this value in tagged types
8209 whose ancestor has discriminants.
8211 * exp_ch2.adb: Update status of new Is_Known_Null flag
8213 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
8215 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
8216 the categorization sense if Is_Pure was set by pragma Pure_Function.
8218 2006-02-13 Quentin Ochem <ochem@adacore.com>
8219 Olivier Hainque <hainque@adacore.com>
8221 * bindusg.adb: Updated documentation for -d and -D switches.
8223 * raise.h (__gnat_set_globals): added new parameter for
8226 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
8227 (__gnat_handle_vms_condition): Adjust context before raise.
8228 (__gnat_install_handler): Restore the global vector setup for GCC
8229 versions before 3.4, as the frame based circtuitry is not available
8231 (__gnat_set_globals): added a parameter default_stack_size
8232 (__gl_default_stack_size): new variable.
8234 2006-02-13 Ed Schonberg <schonberg@adacore.com>
8236 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
8237 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
8238 does not exist in the Ada RM.
8239 (Compatible_Int_Bounds): Determine whether two integer range bounds
8240 are of equal length and have the same start and end values.
8241 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
8242 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
8243 aggregate when it is part of an object declaration.
8244 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
8245 constrains discriminants of its parent, add explicitly the discriminant
8246 constraints of the ancestor by retrieving them from the
8247 stored_constraint of the parent.
8249 2006-02-13 Robert Dewar <dewar@adacore.com>
8251 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
8252 attribute Mechanism_Code is applied to renamed subprogram, modify
8253 prefix to point to base subprogram.
8254 Max/Min attributes now violate Restriction No_Implicit_Conditionals
8256 * sinfo.ads: Document that Mechanism_Code cannot be applied to
8257 renamed subprograms so that the front-end must replace the prefix
8260 2006-02-13 Javier Miranda <miranda@adacore.com>
8261 Gary Dismukes <dismukes@adacore.com>
8263 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
8264 availability of RE_Interface_Tag.
8265 (Build_Initialization_Call): Fix wrong access to the discriminant value.
8266 (Freeze_Record_Type): Do not generate the tables associated with
8267 timed and conditional dispatching calls through synchronized
8268 interfaces if compiling under No_Dispatching_Calls restriction.
8269 When compiling for Ada 2005, for a nonabstract
8270 type with a null extension, call Make_Controlling_Function_Wrappers
8271 and insert the wrapper function declarations and bodies (the latter
8272 being appended as freeze actions).
8273 (Predefined_Primitive_Bodies): Do not generate the bodies of the
8274 predefined primitives associated with timed and conditional
8275 dispatching calls through synchronized interfaces if we are
8276 compiling under No_Dispatching_Calls.
8277 (Build_Init_Procedure): Use RTE_Available to check if a run-time
8278 service is available before generating a call.
8279 (Make_Controlling_Function_Wrappers): New procedure.
8280 (Expand_N_Full_Type_Declaration): Create a class-wide master for
8281 access-to-limited-interfaces because they can be used to reference
8282 tasks that implement such limited interface.
8283 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
8284 procedure spec and body of the Offset_To_Top function that is generated
8285 when the parent of a type with discriminants has secondary dispatch
8287 (Init_Secondary_Tags): Handle the case in which the parent of the type
8288 containing secondary dispatch tables has discriminants to generate the
8289 correct arguments to call Set_Offset_To_Top.
8290 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
8292 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
8293 Add Wide_[Wide_]Expanded_Name.
8294 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
8295 the same functionality of Get_Prim_Op_Address but applied to predefined
8296 primitive operations because the pointers to the predefined primitives
8297 are now saved in a separate table.
8298 (Parent_Size): Modified to get access to the separate table of primitive
8299 operations or the parent type.
8300 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
8301 functionality of Set_Prim_Op_Address but applied to predefined primitive
8303 (Set_Signature): New subprogram used to store the signature of a DT.
8304 (Displace): If the Offset_To_Top value is not static then call the
8305 function generated by the expander to get such value; otherwise use
8306 the value stored in the table of interfaces.
8307 (Offset_To_Top): The type of the actual has been changed to Address to
8308 give the correct support to tagged types with discriminants. In this
8309 case this value is stored just immediately after the tag field.
8310 (Set_Offset_To_Top): Two new formals have been added to indicate if the
8311 offset_to_top value is static and hence pass this value to the run-time
8312 to store it in the table of interfaces, or else if this value is dynamic
8313 and then pass to the run-time the address of a function that is
8314 generated by the expander to provide this value for each object of the
8317 * rtsfind.ads (Default_Prin_Op_Count): Removed.
8318 (Default_Prim_Op_Count): New entity
8319 (Get_Predefined_Prim_Op_Address): New entity
8320 (Set_Predefined_Prim_Op_Address): New entity
8321 (RE_Set_Signature): New entity
8323 2006-02-13 Thomas Quinot <quinot@adacore.com>
8324 Ed Schonberg <schonberg@adacore.com>
8326 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
8327 Make_Adjust_Call done for a newly-allocated object.
8329 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
8330 in a subprogram are wrapped in a cleanup block, indicate that the
8331 subprogram contains an inner block with an exception handler.
8332 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
8333 Adjust call is for a newly-allocated object. In that case we must not
8334 assume that the finalization list chain pointers are correct (since they
8335 come from a bit-for-bit copy of the original object's pointers) so if
8336 the attach level would otherwise be zero (no change), we set it to 4
8337 instead to cause the pointers to be reset to null.
8339 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
8340 reset chain pointers to null.
8342 2006-02-13 Ed Schonberg <schonberg@adacore.com>
8344 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
8345 string, and the context requires a loop for the assignment (e.g.
8346 because the left-hand side is packed), generate a unique name for the
8347 temporary that holds the string, to prevent spurious name clashes.
8349 2006-02-13 Ed Schonberg <schonberg@adacore.com>
8350 Javier Miranda <miranda@adacore.com>
8351 Robert Dewar <dewar@adacore.com>
8352 Gary Dismukes <dismukes@adacore.com>
8354 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
8355 return unconstrained arrays.
8357 (Expand_Call): An indirect call through an access parameter of a
8358 protected operation is not a protected call.
8359 Add circuit to raise CE in Ada 2005 mode following call
8361 (Register_DT_Entry): Do nothing if
8362 the run-time does not give support to abstract interfaces.
8363 (Freeze_Subprogram): In case of dispatching operations, do not generate
8364 code to register the operation in the dispatch table if the source
8365 is compiled with No_Dispatching_Calls.
8366 (Register_Predefined_DT_Entry): Generate code that calls the new
8367 run-time subprogram Set_Predefined_Prim_Op_Address instead of
8368 Set_Prim_Op_Address.
8370 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
8371 on array assignments if the right-hand side is a function call that has
8372 been inlined. Check is performed on the assignment in the block.
8373 (Process_Bounds): If bounds and range are overloaded, apply preference
8374 rule for root operations to disambiguate, and diagnose true ambiguity.
8375 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
8376 a tag-indeterminate right-hand side even when Expander_Active is True.
8377 Needed to ensure that dispatching calls to T'Input are allowed and
8378 get the tag of the target class-wide object.
8380 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
8381 an inherited primitive operation that already overrides several
8382 abstract interface primitives. For transitivity, the new entity must
8383 also override all the abstract interface primitives covered by the
8384 inherited overriden primitive.
8385 Emit warning if new entity differs from homograph in same scope only in
8386 that one has an access parameter and the other one has a parameter of
8387 a general access type with the same designated type, at the same
8388 position in the signature.
8389 (Make_Inequality_Operator): Use source locations of parameters and
8390 subtype marks from corresponding equality operator when creating the
8391 tree structure for the implicit declaration of "/=". This does not
8392 change anything in behaviour except that the decoration of the
8393 components of the subtree created for "/=" allows ASIS to get the
8394 string images of the corresponding identifiers.
8395 (Analyze_Return_Statement): Remove '!' in warning message.
8396 (Check_Statement_Sequence): Likewise.
8397 (Analyze_Subprogram_Body): For an access parameter whose designated type
8398 is an incomplete type imported through a limited_with clause, use the
8399 type of the corresponding formal in the body.
8400 (Check_Returns): Implicit return in No_Return procedure now raises
8401 Program_Error with a compile time warning, instead of beging illegal.
8402 (Has_Single_Return): Function returning unconstrained type cannot be
8403 inlined if expression in unique return statement is not an identifier.
8404 (Build_Body_To_Inline): It is possible to inline a function call that
8405 returns an unconstrained type if all return statements in the function
8406 return the same local variable. Subsidiary procedure Has_Single_Return
8407 verifies that the body conforms to this restriction.
8409 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
8410 same type, and one of them is of an anonymous access type, convert
8411 the other operand to it, so that this is a valid binary operation for
8413 (Resolve_Type_Conversion): Handle subtypes of protected types and
8414 task types when accessing to the corresponding record type.
8415 (Resolve_Allocator): Add '\' in 2-line warning message.
8416 Remove '!' in warning message.
8417 (Resolve_Call): Add '\' in 2-line warning message.
8418 (Valid_Conversion): Likewise.
8419 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
8420 resulting type may be an access type with an implicit dereference.
8421 Obtain the proper component from the designated type.
8422 (Make_Call_Into_Operator): Handle properly a call to predefined equality
8423 given by an expanded name with prefix Standard, when the operands are
8424 of an anonymous access type.
8425 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
8426 Explicit_Dereference and Resolve_Selected_Component, to verify that the
8427 prefix of the expression is not of an incomplete type. Allows full
8428 diagnoses of all semantic errors.
8429 (Resolve_Actuals): If the actual is an allocator whose directly
8430 designated type is a class-wide interface we build an anonymous
8431 access type to use it as the type of the allocator. Later, when
8432 the subprogram call is expanded, if the interface has a secondary
8433 dispatch table the expander will add a type conversion to force
8434 the displacement of the pointer.
8435 (Resolve_Call): If a function that returns an unconstrained type is
8436 marked Inlined_Always and inlined, the call will be inlined and does
8437 not require the creation of a transient scope.
8438 (Check_Direct_Boolean_Op): Removed
8439 (Resolve_Comparison_Op): Remove call to above
8440 (Resolve_Equality_Op): Remove call to above
8441 (Resolve_Logical_Op): Inline above, since this is only call.
8442 (Valid_Conversion): Handle properly conversions between arrays of
8443 convertible anonymous access types.
8446 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
8447 the literal in an unchecked conversion, because GCC 4.x needs a static
8448 value for a string bound.
8450 2006-02-13 Ed Schonberg <schonberg@adacore.com>
8451 Hristian Kirtchev <kirtchev@adacore.com>
8453 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
8454 components of the corresponding record, take into account component
8455 definitions that are access definitions.
8456 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
8457 procedure is not considered a dispatching call and will be expanded
8460 2006-02-13 Javier Miranda <miranda@adacore.com>
8462 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
8463 controlling argument of the dispatching call is an abstract interface
8464 class-wide type then we use it directly.
8465 Check No_Dispatching_Calls restriction.
8466 (Default_Prim_Op_Position): Remove the code that looks for the last
8467 entity in the list of aliased subprograms. This code was wrong in
8469 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
8470 when the source is compiled with the No_Dispatching_Calls restriction.
8471 (Init_Predefined_Interface_Primitives): No need to inherit primitives
8472 if we are compiling with restriction No_Dispatching_Calls.
8473 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
8474 subprograms if we are compiling under No_Dispatching_Calls restriction.
8475 (Make_DT): Generate a dispatch table with a single dummy entry if
8476 we are compiling with the No_Dispatching_Calls restriction. In
8477 addition, in this case we don't generate code that calls to the
8478 following run-time subprograms: Set_Type_Kind, Inherit_DT.
8479 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
8480 of this subprogram if compiling with the No_Dispatching_Calls
8482 (Expand_Type_Conversion): Instead of using the actual parameter,
8483 the argument passed as parameter to the conversion function was
8484 erroneously referenced by the expander.
8485 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
8486 Set_Predefined_Primitive_Op_Address and Set_Signature.
8487 (Expand_Dispatching_Call): Generate call to
8488 Get_Predefined_Prim_Op_Address for predefined primitives.
8489 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
8490 predefined primitives.
8491 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
8492 primitives we reserve one dummy entry to ensure that the tag does not
8493 point to some memory that is associated with some other object. In
8494 addition, remove all the old code that generated the assignments
8495 associated with the signature of the dispatch table and replace them
8496 by a call to the new subprogram Set_Signature.
8497 (Set_All_DT_Position): Change the algorithm because now we have a
8498 separate dispatch table associated with predefined primitive operations.
8499 (Expand_Interface_Conversion): In case of non-static offset_to_top
8500 add explicit dereference to get access to the object after the call
8501 to displace the pointer to the object.
8502 (Expand_Interface_Thunk): Modify the generation of the actual used
8503 in the calls to the run-time function Offset_To_Top to fulfil its
8505 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
8507 2006-02-13 Ed Schonberg <schonberg@adacore.com>
8509 * exp_dist.adb (Copy_Specification): For access parameters, copy
8510 Null_Exclusion flag, which will have been set for stream subprograms
8513 2006-02-13 Pascal Obry <obry@adacore.com>
8515 * expect.c (__gnat_expect_portable_execvp): New implementation. The
8516 previous implementation was using the C runtime spawnve routine but
8517 the corresponding wait was using directly the Win32 API. This was
8518 causing some times a lock when waiting for an event using
8519 WaitForSingleObject in __gnat_waitpid. This new implementation uses
8520 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
8521 API fixes this problem.
8523 2006-02-13 Robert Dewar <dewar@adacore.com>
8525 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
8528 2006-02-13 Thomas Quinot <quinot@adacore.com>
8530 * exp_pakd.ads: Fix typos in comments.
8532 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
8533 array reference that is an explicit dereference, mark the converted
8534 (packed) array reference as analyzed to prevent a forthcoming
8535 reanalysis from resetting its type to the original (non-packed) array
8538 2006-02-13 Ed Schonberg <schonberg@adacore.com>
8539 Javier Miranda <miranda@adacore.com>
8540 Eric Botcazou <ebotcazou@adacore.com>
8542 * exp_util.ads, exp_util.adb (Find_Prim_Op,
8543 Is_Predefined_Primitive_Operation): When
8544 searching for the predefined equality operator, verify that operands
8546 (Is_Predefined_Dispatching_Operation): Remove the code that looks
8547 for the last entity in the list of aliased subprograms. This code
8548 was wrong in case of renamings.
8549 (Set_Renamed_Subprogram): New procedure
8550 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
8551 Exp_Type constant computed when entering this subprogram.
8552 (Known_Null): New function
8553 (OK_To_Do_Constant_Replacement): New function
8554 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
8555 (Side_Effect_Free): An attribute reference 'Input is not free of
8556 side effect, unlike other attributes that are functions. (from code
8558 (Remove_Side_Effects): Expressions that involve packed arrays or records
8559 are copied at the point of reference, and therefore must be marked as
8560 renamings of objects.
8561 (Is_Predefined_Dispatching_Operation): Return false if the operation is
8562 not a dispatching operation.
8565 (Remove_Side_Effects): Lift enclosing type conversion nodes for
8566 elementary types in all cases.
8568 2006-02-13 Javier Miranda <miranda@adacore.com>
8570 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
8571 task types when accessing to the corresponding record type.
8572 Remove '!' in warning message.
8574 2006-02-13 Olivier Hainque <hainque@adacore.com>
8576 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
8577 to avoid useless and space inefficient overalignments on targets where
8578 Max_Alignment is larger than 16.
8580 2006-02-13 Pascal Obry <obry@adacore.com>
8582 * g-catiio.adb (Sec_Number): New type used to compute the number of
8583 seconds since 1-1-1970.
8584 (Image) [Natural]: The parameter was an Integer, as we can't deal with
8585 negative numbers (years, months...) it is better to have a Natural here.
8587 (Image) [Number]: Change parameter from Long_Integer to Number.
8588 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
8589 overflow for dates past year 2038.
8591 2006-02-13 Matthew Heaney <heaney@adacore.com>
8593 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
8596 2006-02-13 Arnaud Charlet <charlet@adacore.com>
8598 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
8600 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
8601 finalization can occur normally.
8603 2006-02-13 Vincent Celier <celier@adacore.com>
8605 * gnatcmd.adb (Rules_Switches): New table
8606 (Add_To_Rules_Switches): New procedure
8607 (GNATCmd): For command CHECK, put all options following "-rules" in the
8608 Rules_Switches table. Append these -rules switches after the -cargs
8611 2006-02-13 Robert Dewar <dewar@adacore.com>
8613 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
8614 These two cases were generating incorrect output, and if this unit
8615 was built with checks on, generated a discriminant mismatch constraint
8618 2006-02-13 Ed Schonberg <schonberg@adacore.com>
8619 Robert Dewar <dewar@adacore.com>
8621 * lib-xref.adb (Get_Type_Reference): For a private type whose full
8622 view is an array type, indicate the component type as well, for
8623 navigation purposes.
8624 (Generate_Reference): Don't consider array ref on LHS to be a case
8625 of violating pragma Unreferenced.
8626 Do not give Ada 2005 warning except on real reference.
8628 2006-02-13 Vincent Celier <celier@adacore.com>
8630 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
8631 main source, add switch -mdebug-main=_ada_ so that the executable can
8632 be debugged by the standard VMS debugger.
8633 (Gnatmake): Set No_Main_Subprogram to True when there is no main
8634 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
8635 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
8636 of the last source, as the binding and linking phases are never
8638 Set all executable obsolete when rebuilding a library.
8640 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
8643 2006-02-13 Javier Miranda <miranda@adacore.com>
8646 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
8647 code to improve the error message reported when the program has
8648 declarations of abstract interface types and it is not compiled with
8650 (P_Access_Definition): Reorganize the code to improve the error
8651 message reported when the new Ada 2005 syntax for anonymous
8652 access types is used and the program is not compiled with the
8655 2006-02-13 Robert Dewar <dewar@adacore.com>
8657 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
8658 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
8661 2006-02-13 Javier Miranda <miranda@adacore.com>
8663 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
8664 against source containing syntax errors.
8666 2006-02-13 Vincent Celier <celier@adacore.com>
8668 * prj.adb (Reset): Initialize the first element of table Namings with
8669 the standard naming data.
8671 2006-02-13 Vincent Celier <celier@adacore.com>
8673 * prj.ads (Error_Warning): New enumeration type
8675 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
8676 unknown, use the location of the project to report the error.
8677 (When_No_Sources): New global variable
8678 (Report_No_Ada_Sources): New procedure
8679 (Check): New parameter When_No_Sources. Set value of global variable
8681 (Find_Sources): Call Report_No_Ada_Sources when appropriate
8682 (Get_Sources_From_File): Ditto
8683 (Warn_If_Not_Sources): Better warning messages indicating the unit name
8686 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
8687 Call Prj.Proc.Process with parameter When_No_Sources.
8689 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
8690 Call Recursive_Check with parameter When_No_Sources.
8691 (Recursive_Check): New parameter When_No_Sources. Call itself and
8692 Prj.Nmsc.Check with parameter When_No_Sources.
8693 (Process): New parameter When_No_Sources. Call Check with parameter
8695 (Copy_Package_Declarations): New procedure to copy renamed parameters
8696 and setting the location of the declared attributes to the location
8697 of the renamed package.
8698 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
8701 2006-02-13 Vincent Celier <celier@adacore.com>
8703 * prj-makr.adb (Make): Preserve the comments from the original project
8705 When removing nodes (attributes Source_Dirs, Source_Files,
8706 Source_List_File and package Naming), save the comments and attach the
8707 saved comments to the newly created nodes.
8708 Do not add a with clause for the naming package if one already exists.
8710 2006-02-13 Javier Miranda <miranda@adacore.com>
8711 Gary Dismukes <dismukes@adacore.com>
8712 Robert Dewar <dewar@adacore.com>
8714 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
8716 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
8717 aliased entities to look for the overriden abstract interface
8719 (Is_Interface_Subprogram): Complete documentation.
8720 (Check_Dispatching_Operation): Do not generate code to register the
8721 operation in the dispatch table if the source is compiled with
8722 restriction No_Dispatching_Calls.
8723 (Override_Dispatching_Operation): Check for illegal attempt to override
8724 No_Return procedure with procedure that is not No_Return
8725 (Check_Dispatching_Call): Suppress the check for an abstract operation
8726 when the original node of an actual is a tag-indeterminate attribute
8727 call, since the attribute, which must be 'Input, can never be abstract.
8728 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
8729 call to the Input attribute (even when rewritten).
8730 (Propagate_Tag): Augment comment to indicate the possibility of a call
8731 to an Input attribute.
8733 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
8734 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
8736 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
8737 No_Wide_Characters is no longer partition-wide
8738 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
8741 2006-02-13 Douglas Rupp <rupp@adacore.com>
8743 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
8745 2006-02-13 Javier Miranda <miranda@adacore.com>
8747 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
8748 handles default-initialized components to keep separate the management
8749 of this feature but also avoid the unrequired resolution and
8750 expansion of components that do not have partially initialized
8752 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
8753 (Check_Bounds): Likewise.
8754 (Check_Length): Likewise.
8756 2006-02-13 Javier Miranda <miranda@adacore.com>
8757 Ed Schonberg <schonberg@adacore.com>
8759 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
8760 abstract interface type call analyze_and_resolve to expand the type
8761 conversion into the corresponding displacement of the
8762 reference to the base of the object.
8763 (Eval_Attribute, case Width): For systems where IEEE extended precision
8764 is supported, the maximum exponent occupies 4 decimal digits.
8765 (Accessibility_Message): Add '\' in 2-line warning message.
8766 (Resolve_Attribute): Likewise.
8767 (case Attribute_Access): Significantly revise checks
8768 for illegal access-to-subprogram Access attributes to properly enforce
8769 the rules of 3.10.2(32/2).
8770 Diagnose use of current instance with an illegal attribute.
8772 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
8774 (Enclosing_Generic_Unit): New function to return a node's innermost
8775 enclosing generic declaration node.
8776 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
8777 (Type_Access_Level): The accessibility level of anonymous acccess types
8778 associated with discriminants is that of the current instance of the
8779 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
8780 (Compile_Time_Constraint_Error): Handle case of conditional expression.
8781 (Kill_Current_Values_For_Entity): New function
8782 (Enter_Name): Change formal type to Entity_Id
8784 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
8785 Ed Schonberg <schonberg@adacore.com>
8786 Gary Dismukes <dismukes@adacore.com>
8788 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
8789 Analyze_Compilation_Unit.
8790 Detect and warn on redundant with clauses detected in a package spec
8791 and/or body when -gnatwr is used.
8792 (Analyze_Context): Analyze config pragmas before other items
8793 (Install_Context_Items): Don't analyze config pragmas here
8794 (Install_Limited_Withed_Unit): Set limited entity of package in
8795 with_clause so that cross-reference information or warning messages on
8796 unused packages can be properly generated
8797 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
8798 has Error_Posted set. Prevent infinite loops in illegal programs.
8799 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
8800 to the point of the error test requiring the current unit to be private.
8801 This ensures that private with clauses are not exempted from the basic
8802 checking for being a descendant of the same library unit parent as a
8803 withed private descendant unit.
8804 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
8805 handle private with clauses properly, as well as to account for cases
8806 where the withed unit is a public descendant of a private ancestor
8807 (in which case the current unit must be a descendant of the private
8808 ancestor's parent). The spec comments were updated accordingly. Also,
8809 the old error message in this subprogram was replaced with error
8810 messages that mirror the errors tested and reported by
8811 Check_Private_Child_Unit.
8812 Parameter and variable names improved for readability.
8813 (Install_Limited_Context_Clauses): Remove test for a withed unit being
8814 private as the precondition for calling
8815 Check_Private_Limited_Withed_Unit since that subprogram has been
8816 revised to test public units as well as private units.
8818 2006-02-13 Thomas Quinot <quinot@adacore.com>
8819 Robert Dewar <dewar@adacore.com>
8820 Ed Schonberg <schonberg@adacore.com>
8821 Javier Miranda <miranda@adacore.com>
8823 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
8824 that Scope_Stack.First = 1.
8825 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
8826 were not always properly handled previously.
8827 (Formal_Entity): Complete rewrite, to handle properly some complex case
8828 with multiple levels of parametrization by formal packages.
8829 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
8830 to the corresponding derived type declaration for proper semantics.
8832 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
8833 (Check_Component): Enforce restriction on components of
8834 unchecked_unions: a component in a variant cannot contain tasks or
8836 (Unchecked_Union): Allow nested variants and multiple discriminants, to
8838 Add pragma Ada_2005 (synonym for Ada_05)
8839 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
8840 were not always properly handled previously.
8841 Document that pragma Propagate_Exceptions has no effect
8842 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
8843 (Set_Convention_From_Pragma): Check that if a convention is
8844 specified for a dispatching operation, then it must be
8845 consistent with the existing convention for the operation.
8846 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
8847 longer required to specify an vtable-ptr component in the record. For
8848 compatibility reasons we leave the support for the previous definition.
8849 (Analyze_Pragma, case No_Return): Allow multiple arguments
8851 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
8852 non-overrideen inherited operation with a controlling result as
8853 illegal only its implicit declaration comes from the derived type
8854 declaration of its result's type.
8855 (Check_Possible_Deferred_Completion): Relocate the object definition
8856 node of the subtype indication of a deferred constant completion rather
8857 than directly analyzing it. The analysis of the generated subtype will
8858 correctly decorate the GNAT tree.
8859 (Record_Type_Declaration): Check whether this is a declaration for a
8860 limited derived record before analyzing components.
8861 (Analyze_Component_Declaration): Diagnose record types not explicitly
8862 declared limited when a component has a limited type.
8863 (Build_Derived_Record_Type): Code reorganization to check if some of
8864 the inherited subprograms of a tagged type cover interface primitives.
8865 This check was missing in case of a full-type associated with a private
8867 (Constant_Redeclaration): Check that the subtypes of the partial and the
8868 full view of a constrained deferred constant statically match.
8869 (Mentions_T): A reference to the current type in an anonymous access
8870 component declaration must be an entity name.
8871 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
8872 class_wide type to refer to full type, not to the incomplete one.
8873 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
8874 available. Required to give support to the certified run-time.
8875 (Analyze_Component_Declaration): In case of anonymous access components
8876 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
8877 (Process_Discriminants): For an access discriminant, use the
8878 discriminant specification as the associated_node_for_itype, to
8879 simplify accessibility checks.
8881 2006-02-13 Ed Schonberg <schonberg@adacore.com>
8882 Javier Miranda <miranda@adacore.com>
8884 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
8885 abstract interpretations on an operator, remove interpretations that
8886 yield Address or a type derived from it, if one of the operands is an
8888 (Try_Object_Operation.Try_Primitive_Operation,
8889 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
8890 location when creating the new reference to a primitive or class-wide
8891 operation as a part of rewriting a subprogram call.
8892 (Try_Primitive_Operations): If context requires a function, collect all
8893 interpretations after the first match, because there may be primitive
8894 operations of the same type with the same profile and different return
8895 types. From code reading.
8896 (Try_Primitive_Operation): Use the node kind to choose the proper
8897 operation when a function and a procedure have the same parameter
8899 (Complete_Object_Operation): If formal is an access parameter and prefix
8900 is an object, rewrite as an Access reference, to match signature of
8901 primitive operation.
8902 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
8903 by an expanded name with prefix Standard, when the operands are of an
8904 anonymous access type.
8905 (Remove_Abstract_Operations): If the operation is abstract because it is
8906 inherited by a user-defined type derived from Address, remove it as
8907 well from the set of candidate interpretations of an overloaded node.
8908 (Analyze_Membership_Op): Membership test not applicable to cpp-class
8911 2006-02-13 Bob Duff <duff@adacore.com>
8913 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
8914 redundant use clauses.
8915 In particular, if the scope of two use clauses overlaps, but one is not
8916 entirely included in the other, we should not warn. This can happen
8917 with nested packages.
8918 (Analyze_Subprogram_Renaming): Protect the compiler against previously
8919 reported errors. The bug was reported when the compiler was built
8920 with assertions enabled.
8921 (Find_Type): If the node is a 'Class reference and the prefix is a
8922 synchronized type without a corresponding record, return the type
8925 2006-02-13 Javier Miranda <miranda@adacore.com>
8927 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
8928 if this is the full-declaration associated with a private declaration
8929 that implement interfaces, then the private type declaration must be
8931 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
8932 as aliased. The use of the 'access attribute is not available for such
8933 object (for this purpose the object should be explicitly marked as
8934 aliased, but being an anonymous type this is not possible).
8936 2006-02-13 Ed Schonberg <schonberg@adacore.com>
8937 Robert Dewar <dewar@adacore.com>
8939 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
8940 compilation unit is an elaboration scope.
8941 (Add_Task_Proc): Add '\' in 2-line warning message.
8942 (Activate_All_Desirable): Deal with case of unit with'ed by parent
8944 2006-02-13 Ed Schonberg <schonberg@adacore.com>
8945 Javier Miranda <miranda@adacore.com>
8947 * sem_type.adb (Write_Overloads): Improve display of candidate
8949 (Add_One_Interp): Do not add to the list of interpretations aliased
8950 entities corresponding with an abstract interface type that is an
8951 immediate ancestor of a tagged type; otherwise we have a dummy
8952 conflict between this entity and the aliased entity.
8953 (Disambiguate): The predefined equality on universal_access is not
8954 usable if there is a user-defined equality with the proper signature,
8955 declared in the same declarative part as the designated type.
8956 (Find_Unique_Type): The universal_access equality operator defined under
8957 AI-230 does not cover pool specific access types.
8958 (Covers): If one of the types is a generic actual subtype, check whether
8959 it matches the partial view of the other type.
8961 2006-02-13 Thomas Quinot <quinot@adacore.com>
8963 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
8964 line. This is necessary to allow In_Extended_Main_Unit to provide
8965 correct results for itypes while writing out expanded source.
8966 (Close_File): No need to update the source_index_table here since it's
8967 now done for each line.
8969 2006-02-13 Ed Schonberg <schonberg@adacore.com>
8970 Robert Dewar <dewar@adacore.com>
8972 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
8973 preserve the source unit where the itype is declared, and prevent a
8975 (Note_Implicit_Run_Time_Call): New procedure
8976 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
8979 * sprint.ads: Document use of $ for implicit run time routine call
8981 2006-02-13 Quentin Ochem <ochem@adacore.com>
8983 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
8986 2006-02-13 Bob Duff <duff@adacore.com>
8988 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
8989 Scan_Unsigned, so we do not scan leading blanks and sign twice.
8990 Integer'Value("- 5") and Integer'Value("-+5") now correctly
8991 raise Constraint_Error.
8993 * s-vallli.adb (Scan_Long_Long_Integer): Call
8994 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
8995 do not scan leading blanks and sign twice.
8996 Integer'Value("- 5") and Integer'Value("-+5") now correctly
8997 raise Constraint_Error.
8999 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
9000 Scan_Long_Long_Unsigned): Split out most of the processing from
9001 Scan_Long_Long_Unsigned out into
9002 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
9003 This prevents scanning leading blanks and sign twice.
9004 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
9007 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
9008 out most of the processing from Scan_Unsigned out into
9009 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
9010 This prevents scanning leading blanks and sign twice.
9012 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
9013 use with Modular'Value attribute.
9014 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
9017 2006-02-13 Robert Dewar <dewar@adacore.com>
9019 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
9021 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
9023 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
9024 (PPC VxWorks): Likewise.
9025 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
9026 (forced_callee): Make non-inlinable and non-pure.
9027 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
9029 2006-02-13 Arnaud Charlet <charlet@adacore.com>
9030 Ben Brosgol <brosgol@adacore.com>
9031 Robert Dewar <dewar@adacore.com>
9033 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
9035 Document that gnatbind -M option is for cross environments only.
9036 Added description of using gnatmem to trace gnat rtl allocs and deallocs
9037 Add note on use of $ to label implicit run time calls
9038 Add documentation for -gnatyI (check mode IN)
9039 Updated chapter on compatibility with HP Ada
9041 Ran spell and corrected errors
9042 Add documentation for gnatbind -d and rework documentation of -D
9044 Add subprogram/data elimination section.
9045 Minor editing of annex A.
9046 Add section for gnatcheck.
9047 Add documentation for restriction No_Dispatching_Calls
9048 Add documentation for pragma Ada_2005
9049 Remove mention of obsolete pragma Propagate_Exceptions
9050 Document that pragma Unreferenced can appear after DO in ACCEPT
9051 Clarify Pure_Function for library level units
9052 Mention Max/Min in connection with No_Implicit_Conditionals
9053 No_Wide_Characters restriction is no longer partition-wide
9054 Add a nice example for Universal_Literal_String attribute
9055 Document that pragma No_Return can take multiple arguments
9057 * ug_words: Added entry for gnatcheck
9059 * g-ctrl_c.ads (Install_Handler): Enhance comments
9061 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
9063 * g-trasym.ads: Add documentation on how to do off line symbolic
9064 traceback computation.
9066 * s-fatgen.adb: Add comments for Unaligned_Valid
9068 * stand.ads: Fix typo in comment
9070 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9072 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
9074 2006-02-06 Roger Sayle <roger@eyesopen.com>
9076 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
9078 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9081 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
9082 implementation that calls __main.
9084 2006-01-25 Peter O'Gorman <peter@pogma.com>
9087 * Makefile.in (GCC_LINK): Remove quotes.
9088 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
9091 (powerpc-darwin): Pass -shared-libgcc when building shared library.
9093 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9096 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
9098 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9100 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
9102 2005-12-12 Arnaud Charlet <charlet@adacore.com>
9104 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
9107 2005-12-12 Arnaud Charlet <charlet@adacore.com>
9109 * Make-lang.in: Update dependencies
9111 2005-12-12 Arnaud Charlet <charlet@adacore.com>
9113 * Make-lang.in: Add rule for ada/exp_sel.o
9115 2005-12-12 Arnaud Charlet <charlet@adacore.com>
9117 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
9119 2005-12-09 Arnaud Charlet <charlet@adacore.com>
9121 * gnatvsn.ads (Library_Version): Bump to version 4.2
9122 (ASIS_Version_Number): Bumped.
9124 2005-12-09 Doug Rupp <rupp@adacore.com>
9126 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
9127 Ada bind file prefix on VMS from b$ to b__.
9128 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
9131 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
9132 Targparm.OpenVMS_On_Target.
9133 (Object_Suffix): Initialize with target object suffix.
9134 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
9136 * butil.adb: Change some Hostparm.OpenVMS checks to
9137 Targparm.OpenVMS_On_Target.
9139 * clean.adb: Change some Hostparm.OpenVMS checks to
9140 Targparm.OpenVMS_On_Target.
9141 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
9142 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
9143 Ada bind file prefix on VMS from b$ to b__.
9145 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
9146 --GCC so that Get_Target_Parameters can find system.ads.
9147 (Gnatlink): Call Get_Target_Parameters in mainline.
9148 Initialize standard packages for Targparm.
9149 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
9150 (Process_Args): Also Check for object files with target object
9152 (Make_Binder_File_Names): Create with target object extension.
9153 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
9156 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
9157 Targparm.OpenVMS_On_Target.
9158 ({declaration},Build_Library,Check_Library): Change Ada bind file
9159 prefix on VMS from b$ to b__.
9161 * osint-b.adb: Change some Hostparm.OpenVMS checks to
9162 Targparm.OpenVMS_On_Target.
9163 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
9166 * targext.c: New file.
9168 * Makefile.in: add support for vxworks653 builds
9169 (../../vxaddr2line): gnatlink with targext.o.
9170 (TOOLS_LIBS): Move targext.o to precede libgnat.
9171 (init.o, initialize.o): Minor clean up in dependencies.
9172 (GNATLINK_OBJS): Add targparm.o, snames.o
9173 Add rules fo building targext.o and linking it explicitly with all
9175 Also add targext.o to gnatlib.
9177 * Make-lang.in: Add rules for building targext.o and linking it in
9178 with gnat1 and gnatbind.
9179 Add entry for exp_sel.o.
9181 * osint.adb Change some Hostparm.OpenVMS checks to
9182 Targparm.OpenVMS_On_Target.
9183 (Object_File_Name): Use target object suffix.
9185 * osint.ads (Object_Suffix): Remove, no longer used.
9186 (Target_Object_Suffix): Initialize with target object suffix.
9188 * rident.ads: Add special exception to license.
9190 * targparm.adb (Get_Target_Parameters): Set the value of
9191 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
9193 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
9195 * targparm.ads: Add special exception to license.
9197 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
9199 (Copy_File): Make sure from file is closed if error on to file
9200 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
9202 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
9203 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
9205 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
9206 target object suffix.
9208 2005-12-09 Jose Ruiz <ruiz@adacore.com>
9209 Quentin Ochem <ochem@adacore.com>
9210 Florian Villoing <villoing@adacore.com>
9212 * a-taster.ads, a-taster.adb: New files.
9214 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
9215 link to the version that does nothing. This way the task termination
9216 routine is not executed twice for the environment task when finishing
9217 because of an unhandled exception.
9219 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
9220 handler because of an unhandled exception.
9222 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
9223 System.Tasking.Utilities instead of that in System.Tasking.Stages.
9225 * s-finimp.adb (initialization code): Modify the soft link for the
9226 finalization of the global list instead of Adafinal.
9228 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
9229 non-tasking version of the soft link for task termination. We do
9230 nothing since if we are using the non-tasking version it
9231 means that the task termination functionality is not used.
9232 (Null_Finalize_Global_List): Add this null version for the procedure
9233 in charge of finalizing the global list for controlled objects.
9234 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
9235 instead for handling run-time termination in a more flexible way.
9236 (Adafinal_NT): This new procedure will take care of finalizing the
9237 global list for controlled objects if needed, but no tasking
9240 * s-tarest.adb (Task_Lock): Do not try to lock again the
9241 Global_Task_Lock if we already own it. Otherwise, we get blocked in
9242 some run-time operations.
9243 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
9244 until all nested locks have been released.
9245 (Task_Wrapper): Call the fall-back task termination handler. It
9246 applies to all tasks but the environment task.
9247 (Finalize_Global_Tasks): Add the call for the task termination
9248 procedure for the environment task.
9249 (Task_Wrapper): suppress warnings around declaration of
9250 Secondary_Stack_Address.
9252 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
9253 moved to the Common_ATCB record.
9254 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
9256 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
9259 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
9260 Fall_Back_Handler, and Specific_Handler.
9262 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
9263 defined in Ada.Task_Termination, to avoid circular dependencies.
9264 (Termination_Handler): Redefine this type here, alredy defined in
9265 Ada.Task_Termination, for avoiding circular dependencies.
9266 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
9267 for storing task termination handlers. In addition,
9268 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
9269 Common_ATCB because it is used by both the regular and the restricted
9271 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
9272 Common_ATCB because it is used by both the regular and the restricted
9274 (Common_ATCB): Added a dynamic task analyzer field.
9276 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
9277 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
9278 (Task_Wrapper): Call the task termination handler. It applies to all
9279 tasks but the environment task.
9280 (Finalize_Global_Tasks): Call the task termination procedure for the
9281 environment task. The call to Finalize_Global_List is now performed
9282 using the soft links mechanism.
9283 (Task_Wrapper): added dynamic stack analysis.
9285 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
9286 potentially blocking operations has been moved from
9287 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
9288 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
9289 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
9290 this run-time check.
9292 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
9293 of task termination procedure.
9294 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
9295 link for the task termination procedure.
9297 * bindusg.adb: (Bindusg): Added documentation for -u option.
9299 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
9300 (Get_Main_C): Add handling of dynamic stack analysis.
9301 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
9303 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
9304 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
9305 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
9307 * opt.ads: Added flags used by dynamic stack measurement.
9308 (Max_Line_Length): Remove (not used anymore)
9310 * s-io.ads, s-io.adb (Standard_Error): new subprogram
9311 (Standart_Output): new subprogram
9312 (Set_Output): new subprogram
9313 (Put): now uses the value of Current_Out to know if the output has to be
9314 send to stderr or stdout.
9316 * s-stausa.ads: Complete implementation.
9318 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
9320 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
9321 list of Ada 05 files.
9322 (GNAT Library Units): Add AltiVec files.
9324 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
9325 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
9326 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
9328 2005-12-09 Nicolas Setton <setton@adacore.com>
9330 * adaint.c (__gnat_locate_regular_file): Return immediately if
9333 2005-12-09 Javier Miranda <miranda@adacore.com>
9334 Hristian Kirtchev <kirtchev@adacore.com>
9336 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
9337 to the specification because the frontend generates code that uses this
9339 (Set_Interface_Table): Add missing assertion.
9340 Update documentation describing the run-time structure.
9341 (Displace): New subprogram that displaces the pointer to the object
9342 to reference one of its secondary dispatch tables.
9343 (IW_Membership): Modified to use the new table of interfaces.
9344 (Inherit_TSD): Modified to use the new table of interfaces.
9345 (Register_Interface_Tag): Use the additional formal to fill the
9346 contents of the new table of interfaces.
9347 (Set_Interface_Table): New subprogram that stores in the TSD the
9348 pointer to the table of interfaces.
9349 (Set_Offset_To_Top): Use the additional formal to save copy of
9350 the offset value in the table of interfaces.
9351 Update structure of GNAT Primary and Secondary dispatch table diagram.
9352 Add comment section on GNAT dispatch table prologue.
9353 (Offset_To_Signature): Update the constant value of the Signature field.
9354 (Dispatch_Table): Update comment on hidden fields in the prologue.
9355 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
9356 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
9357 the type of formal parameter T to Tag, introduce additional assertions.
9358 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
9360 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
9362 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
9363 in all the calls to Expand_Interface_Thunk. Instead of referencing the
9364 record component containing the tag of the secondary dispatch table we
9365 have to use the Offset_To_Top run-time function to get this information;
9366 otherwise if the pointer to the base of the object has been displace
9367 we get a wrong value if we use the 'position attribute.
9369 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
9370 all the calls to Expand_Interface_Thunk.
9371 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
9372 interfaces; hence the call to Set_Interface_Table was clearly wrong.
9373 (Collect_All_Interfaces): Modify the internal subprogram Collect to
9374 ensure that the interfaces implemented by the ancestors are placed
9375 at the header of the generated list.
9376 (Expand_Interface_Conversion): Handle the case in which the displacement
9377 associated with the interface conversion is not statically known. In
9378 this case we generate a call to the new run-time subprogram Displace.
9379 (Make_DT): Generate and fill the new table of interfaces.
9380 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
9381 Get_Tagged_Kind and Set_Tagged_Kind.
9382 (Tagged_Kind): New function that determines the tagged kind of a type
9383 with respect to limitedness and concurrency and returns a reference to
9385 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
9386 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
9387 primary dispatch table for a type.
9388 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
9389 secondary dispatch table respectively of a tagged type.
9391 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
9392 (Expand_Interface_Conversion): New subprogram to indicate if the
9393 displacement of the type conversion is statically known.
9394 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
9396 * rtsfind.ads (RE_Offset_To_Top): New entity
9397 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
9398 accessible to users.
9399 (Re_Displace): New entity
9400 (RE_Interface_Data): New entity
9401 (RE_Set_Interface_Data): New_Entity
9402 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
9403 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
9404 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
9405 RE_TK_Tagged, RE_TK_Task.
9407 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
9408 Init_Secondary_Tags_Internal to allow its use with interface types and
9409 also to generate the code for the new additional actual required
9410 by Set_Offset_To_Top.
9411 (Build_Init_Statements): In case of components associated with abstract
9412 interface types there is no need to generate a call to its IP.
9413 (Freeze_Record_Type): Generate Select Specific Data tables only for
9415 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
9416 the bodies and specifications of the predefined primitive operations
9417 dealing with dispatching selects and abort, 'Callable, 'Terminated only
9418 for concurrent types.
9420 * exp_sel.ads, exp_sel.adb: New files.
9422 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
9423 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
9424 properly protected objects and attach handler in the case of the
9426 Move embeded package Select_Expansion_Utilities into a separate external
9428 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
9429 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
9430 (Build_K, Build_S_Assignment): New subprograms, part of the select
9431 expansion utilities.
9432 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
9433 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
9434 where the trigger is a dispatching procedure of a limited tagged type.
9436 2005-12-09 Olivier Hainque <hainque@adacore.com>
9438 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
9439 pointer initialization values. Make a SAVE_EXPR instead. Add comments
9440 about the use and expansion of SAVE_EXPRs in the various possible
9441 renaming handling cases.
9442 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
9443 abusing DECL_FCONTEXT.
9445 2005-12-09 Matthew Heaney <heaney@adacore.com>
9447 * a-convec.adb (Merge): Added assertions to check whether vector params
9450 * a-coinve.adb (Merge): Added assertions to check whether vector params
9453 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
9455 (Cursor'Read): raises PE
9457 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
9458 to its default value.
9460 * a-cihama.adb: Manually check whether cursor's key and elem are
9463 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
9464 (Merge): Assert that target and source lists are in order
9465 (Swap): Declare non-const temporaries, to pass to Splice
9467 * a-cdlili.ads: (Splice): Changed param name and param mode
9469 * a-cdlili.adb: (Splice): Changed param name and param mode
9470 (Merge): Assert that target and source lists are in order
9471 (Swap): Declare non-const temporaries, to pass to Splice
9473 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
9474 (Write): declare Stream param as not null
9476 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
9477 an exception message.
9479 2005-12-09 Thomas Quinot <quinot@adacore.com>
9480 Robert Dewar <dewar@adacore.com>
9482 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
9483 which is the absolute maximum length we can support.
9485 * frontend.adb: For the processing of configuration pragma files,
9486 remove references to Opt.Max_Line_Length, which is not checked anymore.
9488 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
9491 * scn.adb, scng.adb:
9492 Always check line length against the absolute supported maximum,
9493 Hostparm.Max_Line_Length.
9495 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
9496 value for the maximum line length is Max_Line_Length (not
9497 Column_Number'Last).
9498 Minor error msg update
9499 (Set_Style_Check_Options): New interface returning error msg
9500 Minor code reorganization (processing for 'M' was out of alpha order)
9502 * switch-c.adb: New interface for Set_Style_Check_Options
9504 * stylesw.ads (Set_Style_Check_Options): New interface returning error
9507 2005-12-09 Javier Miranda <miranda@adacore.com>
9509 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
9510 with IP subprogram were only supported if there were limited types.
9512 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
9513 records with IP subprogram were only supported if there were limited
9516 2005-12-09 Olivier Hainque <hainque@adacore.com>
9517 Eric Botcazou <ebotcazou@adacore.com>
9519 * trans.c (tree_transform, emit_check): Adjust calls to
9520 build_call_raise, passing the now expected GNAT_NODE argument.
9522 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
9523 source line information than what the current global locus indicates
9526 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
9527 field has overflowed.
9528 (build_call_raise): Add a GNAT_NODE argument to convey better source
9529 line information than what the current global locus indicates when
9531 (build_component_ref): Adjust call to build_call_raise.
9533 2005-12-09 Pascal Obry <obry@adacore.com>
9535 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
9536 the iterator is quitting iteration on parent directory.
9538 2005-12-09 Javier Miranda <miranda@adacore.com>
9540 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
9541 and the assignment to a class-wide object, before the assignment we
9542 generate a run-time check to ensure that the tag of the Target is
9543 covered by the tag of the source.
9545 2005-12-09 Robert Dewar <dewar@adacore.com>
9547 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
9548 parameter in call to Image_Wide_Character.
9550 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
9551 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
9552 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
9553 annoying FFFE/FFFF inconsistency.
9555 2005-12-09 Robert Dewar <dewar@adacore.com>
9556 Javier Miranda <miranda@adacore.com>
9557 Ed Schonberg <schonberg@adacore.com>
9559 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
9561 (Find_Interface): New subprogram that given a tagged type and one of its
9562 component associated with the secondary table of an abstract interface
9563 type, return the entity associated with such abstract interface type.
9564 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
9565 base type to create anonymous subtype, because entity may be a locally
9566 declared subtype or generic actual.
9567 (Find_Interface): New subprogram that given a tagged type and one of its
9568 component associated with the secondary table of an abstract interface
9569 type, return the entity associated with such abstract interface type.
9571 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
9572 conversion cannot be handled at compile time. In this case we pass this
9573 information to the expander to generate the appropriate code.
9575 2005-12-09 Robert Dewar <dewar@adacore.com>
9576 Ed Schonberg <schonberg@adacore.com>
9577 Gary Dismukes <dismukes@adacore.com>
9578 Javier Miranda <miranda@adacore.com>
9579 Hristian Kirtchev <kirtchev@adacore.com>
9581 * einfo.adb (Itype_Printed): New flag
9582 (Is_Limited_Type): Derived types do not inherit limitedness from
9583 interface progenitors.
9584 (Is_Return_By_Reference_Type): Predicate does not apply to limited
9587 * einfo.ads (Itype_Printed): New flag
9588 Move Is_Wrapper_Package to proper section
9589 Add missing Inline for Is_Volatile
9591 * output.ads, output.adb (Write_Erase_Char): New procedure
9592 (Save/Restore_Output_Buffer): New procedures
9593 (Save/Restore_Output_Buffer): New procedures
9595 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
9596 Add missing support for anonymous access type
9597 (Write_Id): Insert calls to Write_Itype
9598 (Write_Itype): New procedure to output itypes
9600 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
9601 use of "limited" in declaration.
9603 * sinfo.ads, sinfo.adb:
9604 Formal derived types can carry an explicit "limited" indication.
9606 * sem_ch3.adb: Add with and use of Targparm.
9607 (Create_Component): If Frontend_Layout_On_Target is True and the
9608 copied component does not have a known static Esize, then reset
9609 the size and positional fields of the new component.
9610 (Analyze_Component_Declaration): A limited component is
9611 legal within a protected type that implements an interface.
9612 (Collect_Interfaces): Do not add to the list the interfaces that
9613 are implemented by the ancestors.
9614 (Derived_Type_Declaration): If the parent of the full-view is an
9615 interface perform a transformation of the tree to ensure that it has
9616 the same parent than the partial-view. This simplifies the job of the
9617 expander in order to generate the correct object layout, and it is
9618 needed because the list of interfaces of the full-view can be given in
9620 (Process_Full_View): The parent of the full-view does not need to be
9621 a descendant of the parent of the partial view if both parents are
9623 (Analyze_Private_Extension_Declaration): If declaration has an explicit
9624 "limited" the parent must be a limited type.
9625 (Build_Derived_Record_Type): A derived type that is explicitly limited
9626 must have limited ancestor and progenitors.
9627 (Build_Derived_Type): Ditto.
9628 (Process_Full_View): Verify that explicit uses of "limited" in partial
9629 and full declarations are consistent.
9630 (Find_Ancestor_Interface): Remove function.
9631 (Collect_Implemented_Interfaces): New procedure used to gather all
9632 implemented interfaces by a type.
9633 (Contain_Interface): New function used to check whether an interface is
9635 (Find_Hidden_Interface): New function used to determine whether two
9636 lists of interfaces constitute a set equality. If not, the first
9637 differing interface is returned.
9638 (Process_Full_View): Improve the check for the "no hidden interface"
9639 rule as defined by AI-396.
9641 2005-12-09 Robert Dewar <dewar@adacore.com>
9643 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
9644 types, not on record subtypes.
9645 (Freeze_Entity): Code cleanup. Add barrier to the loop
9646 that generates the references for primitive operations. This allows to
9647 remove an unnecessary exception handler.
9648 Code reformatting and comment clean ups.
9650 2005-12-09 Vincent Celier <celier@adacore.com>
9652 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
9653 If GNAT CHECK is called with a project file, but with no
9654 source on the command line, call gnatcheck with all the compilable
9655 sources of the project.
9656 Take into account the new command Check, for gnatcheck. Treat as for
9657 other ASIS tools: take into account project, specific package Check and
9659 For ASIS tools, add the switches in package Compiler for
9660 the invocation of the compiler.
9662 * prj-attr.adb: Add package Check and its attributes
9664 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
9666 * vms_conv.adb (Initialize): Change Params of command Check to
9668 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
9669 Add data for new command Check
9671 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
9673 Add qualifiers for Check command options
9674 (Command_Type): New command Check
9676 2005-12-09 Thomas Quinot <quinot@adacore.com>
9678 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
9679 command line switch overruns the output buffer.
9681 2005-12-09 Robert Dewar <dewar@adacore.com>
9683 * sem_prag.adb: Processing for new pragma Complete_Representation
9684 (Analyze_Pragma, case Debug): Implement two argument form.
9686 * par-prag.adb: Entry for new pragma Complete_Representation
9687 (Prag, case Debug): Recognize two argument form of pragma Debug
9688 New interface for Set_Style_Check_Options.
9690 * sem_ch13.adb: Implement new pragma Complete_Representation.
9692 * snames.adb, snames.ads, snames.h: Entry for new pragma
9693 Complete_Representation.
9695 2005-12-09 Gary Dismukes <dismukes@adacore.com>
9697 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
9698 available user-specified stream attributes on limited parameters to
9699 also test the type directly rather than only its underlying type (for
9700 Ada 95) and, in the case of Ada 2005, to check that the user-specified
9701 attributes are visible at the point of the subprogram declaration.
9702 For Ada 2005, the error message is modified to indicate that the
9703 type's stream attributes must be visible (again, only for -gnat05).
9705 2005-12-09 Ed Schonberg <schonberg@adacore.com>
9707 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
9708 anonymous access types.
9710 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
9711 matching of anonymous access types and anonymous access to subprogram
9712 types. 'R'M 4.9.1 (2/2).
9714 2005-12-09 Ed Schonberg <schonberg@adacore.com>
9716 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
9717 rule prematurely when operands are universal, remaining ambiguities
9718 will be removed during resolution.
9721 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
9722 that are Ada 2005 functions.
9723 (Has_Abstract_Interpretation): Subsidiary to
9724 Remove_Conversions, to remove ambiguities caused by abstract operations
9725 on numeric types when operands are universal.
9727 2005-12-09 Robert Dewar <dewar@adacore.com>
9729 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
9730 for case where spec is categorized.
9732 2005-12-09 Javier Miranda <miranda@adacore.com>
9734 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
9735 types use the corresponding record type. This was not needed before
9736 the implementation of Ada 2005 synchronized types because
9737 concurrent types were never tagged types in Ada 95.
9739 2005-12-09 Ed Schonberg <schonberg@adacore.com>
9741 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
9742 first subtype of the type of the expression to verify that it is a
9745 2005-12-09 Robert Dewar <dewar@adacore.com>
9747 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
9750 2005-12-09 Quentin Ochem <ochem@adacore.com>
9751 Robert Dewar <dewar@adacore.com>
9752 Ed Falis <falis@adacore.com>
9753 Florian Villoing <villoing@adacore.com>
9754 Thomas Quinot <quinot@adacore.com>
9755 Arnaud Charlet <charlet@adacore.com>
9757 * gnat_ugn.texi: Created section "Stack Related Tools"
9758 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
9759 "Stack Related Tools"
9760 Added subsection "Static Stack Usage Analysis"
9761 Added subsection "Dynamic Stack Usage Analysis"
9762 Include documentation of itypes in sprint listing (-gnatG)
9763 Documented gnatbind -D switch (default sec stack size for fixed sec
9765 Added Interrupt_State and Persistent_BSS to list of configuration
9767 Add missing doc for maximum value of nnn in -gnatyMnnn
9769 * gnat_rm.texi: Document the AltiVec binding.
9770 Add documentation for pragma Complete_Representation
9771 Shortened an overly long line (> 79 chars)
9772 Clarify documentation of unchecked conversion in implementation
9774 Document two argument form of pragma Debug
9776 * types.ads (Column_Number): Update documentation.
9778 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
9779 library level Finalize_Storage_Only objects (these are not attached to
9780 any finalization list).
9782 * system-mingw.ads: (Underlying_Priorities): Update comment.
9784 2005-12-09 Robert Dewar <dewar@adacore.com>
9786 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
9787 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
9788 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
9789 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
9790 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
9791 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
9792 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
9793 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
9796 2005-12-09 Robert Dewar <dewar@adacore.com>
9798 * s-vaflop-vms-alpha.adb: (Ne_F): New function
9799 (Ne_G): New function
9801 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
9803 (Rewrite_Comparison): Handle case where operation is not a comparison
9804 and ignore, and also handle type conversion case.
9806 2005-12-09 Thomas Quinot <quinot@adacore.com>
9808 * exp_aggr.ads: Fix typo in comment.
9809 ???-mark Convert_Aggr_In_Assignment as needing documentation.
9811 2005-12-09 Gary Dismukes <dismukes@adacore.com>
9813 * layout.adb: Replace various uses of byte by storage unit throughout.
9814 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
9815 static size, convert to storage units before returning, to conform to
9818 2005-12-09 Matthew Gingell <gingell@adacore.com>
9820 * g-exctra.ads: Fix typo in comment.
9822 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9824 * utils.c: Minor reformatting.
9826 2005-12-09 Robert Dewar <dewar@adacore.com>
9829 Further comment fixes to make the status of the default file clear
9831 * s-bitops.adb: Clarify comment for Bits_Array
9833 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
9835 * Make-lang.in (ada.install-normal): Remove.
9837 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
9839 * Make-lang.in: Remove all dependencies on s-gtype.
9841 2005-12-05 Richard Guenther <rguenther@suse.de>
9843 * utils.c (convert): Use fold_convert where appropriate.
9845 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
9847 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
9850 2005-12-02 Richard Guenther <rguenther@suse.de>
9852 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
9854 2005-12-01 Roger Sayle <roger@eyesopen.com>
9856 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
9859 2005-11-23 Laurent GUERBY <laurent@guerby.net>
9861 * mlib-prj.adb (Build_Library): Initialize Delete.
9863 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
9865 * socket.c: Add extern int h_errno for rtems since networking header
9866 files are not available at this point in a tool bootstrap. Newlib
9867 only has basic C library header files.
9869 2005-11-19 Richard Guenther <rguenther@suse.de>
9870 Roger Sayle <roger@eyesopen.com>
9873 * misc.c (internal_error_function): Don't use vsprintf to format
9874 the error message text, instead use pp_format_text and the new
9875 pretty printer APIs. This allows handling of %qs, %w, etc.
9877 2005-11-18 Laurent GUERBY <laurent@guerby.net>
9880 * Makefile.in: Use s-auxdec-empty for RTEMS.
9882 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9885 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
9886 a temporary if taking the address of something that is neither
9887 reference, declaration, or constant, since the gimplifier
9888 can't handle that case.
9890 2005-11-17 Laurent GUERBY <laurent@guerby.net>
9893 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
9895 2005-11-16 Richard Guenther <rguenther@suse.de>
9897 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
9899 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
9902 * raise-gcc.c: Add missing stdarg.h include.
9904 2005-11-16 Richard Guenther <rguenther@suse.de>
9906 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
9907 (ada/misc.o): Likewise.
9909 2005-11-14 Thomas Quinot <quinot@adacore.com>
9911 * g-soccon.ads: Minor reformatting. Update comments.
9913 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
9914 gain visibility on the declaration of struct timeval.
9916 * g-soccon-freebsd.ads,
9917 g-soccon-darwin.ads,
9922 g-soccon-solaris.ads,
9925 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
9927 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
9928 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
9929 g-soccon-linux-x86.ads: New files.
9931 * g-socthi-mingw.adb:
9932 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
9934 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
9935 (time_t, suseconds_t): New types constructed to match the tv_sec
9936 and tv_usec fields of C struct timeval.
9937 (Timeval): Construct structure in terms of the new types.
9938 (Host_Errno): New function (imported from socket.c), returns last hosts
9941 * g-socthi-vxworks.adb: Add error handling circuitry.
9943 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
9944 components of struct timeval.
9945 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
9946 (Check_Selector): In error conditions, clear internal socket sets to
9947 avoid a memory leak.
9948 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
9949 Send_Timeout, Receive_Timeout.
9951 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
9952 the tv_sec and tv_usec fields of C struct timeval.
9953 (Timeval): Construct structure in terms of the new types.
9954 (Host_Errno): New function (imported from socket.c), returns last hosts
9957 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
9958 hosts database last error code.
9960 * gen-soccon.c: Complete value expansion should not be performed on
9961 TARGET, as it has the form of a math expression, and some components
9962 may be platform-defined macros.
9963 For VxWorks, generate the OK and ERROR values.
9964 New constants giving the sizes of the components of C struct timeval.
9966 2005-11-14 Robert Dewar <dewar@adacore.com>
9967 Ed Schonberg <schonberg@adacore.com>
9970 * types.ads: Include All_Checks in Suppress_Array
9972 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
9973 not(a=b), since we no longer do this rewriting, and hence it is not
9975 (Elaboration_Checks_Suppressed): Add special casing to
9976 deal with different cases of static and dynamic elaboration checks (all
9977 checks does not count in the first case, but does in the second).
9978 (Expr_Known_Valid): Do not assume that the result of any arbitrary
9979 function call is valid, since this is not the case.
9980 (Ensure_Valid): Do not apply validity check to a real literal
9981 in a universal or fixed context
9983 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
9984 elementary types using the operator in standard. It is cleaner not to
9985 modify the programmers intent, especially in the case of floating-point.
9986 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
9987 it did not matter because we always rewrote a/=b to not(a=b).
9988 (Expand_Allocator_Expression): For an allocator expression whose nominal
9989 subtype is an unconstrained packed type, convert the expression to its
9990 actual constrained subtype.
9991 Implement warning for <= or >= where < or > not possible
9992 Fix to Vax_Float tests (too early in many routines, causing premature
9993 Vax_Float expansions.
9995 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
9996 to be used with packages and generic packages as well as with
9998 (Suppress): Set All_Checks, but not Elaboration_Check, for case
9999 of pragma Suppress (All_Checks)
10000 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
10001 a string literal for precise control over warnings.
10002 Avoid raise of pragma in case of unrecognized pragma and just return
10005 * sem_prag.ads: Minor reformatting
10007 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
10008 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
10009 Switch. Do not handle any exception.
10010 Include -gnatwx as part of -gnatg (warn on redundant parens)
10011 Allow optional = after -gnatm
10012 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
10013 longer sets Elaboration_Checks.
10014 Code to set warning mode moved to Sem_Warn
10015 so that it can be shared by pragma processing.
10017 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
10020 * s-taprop-solaris.adb:
10021 Change some <= to =, to avoid new warning
10023 * a-exexda.adb, prj-proc.adb:
10024 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
10025 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
10027 2005-11-14 Robert Dewar <dewar@adacore.com>
10029 * exp_vfpt.adb: Handle /= case
10030 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
10031 so that we do not get duplicate scaling for fixed point conversions.
10033 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
10035 2005-11-14 Matthew Gingell <gingell@adacore.com>
10037 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
10038 Increase default priority on Lynx from 15 to 17, and meet the Ada
10039 requirement that Default_Priority be ((Priority'First +
10040 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
10042 2005-11-14 Vincent Celier <celier@adacore.com>
10044 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
10045 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
10046 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
10047 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
10048 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
10049 mlib-tgt-lynxos.adb (DLL_Prefix): New function
10051 2005-11-14 Doug Rupp <rupp@adacore.com>
10053 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
10056 2005-11-14 Arnaud Charlet <charlet@adacore.com>
10058 * s-traces-default.adb, s-trafor-default.ads,
10059 s-tratas-default.adb: Fix compilation errors.
10061 2005-11-14 Jose Ruiz <ruiz@adacore.com>
10063 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
10064 raising the exception so the memory used is freed.
10066 2005-11-14 Arnaud Charlet <charlet@adacore.com>
10068 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
10069 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
10070 (convert_address): Update comments and list of platforms using this.
10072 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
10075 2005-11-14 Pascal Obry <obry@adacore.com>
10076 Vincent Celier <celier@adacore.com>
10078 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
10081 * memroot.adb: Remove redundant with/use clause on
10082 System.Storage_Elements.
10084 2005-11-14 Arnaud Charlet <charlet@adacore.com>
10086 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
10087 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
10088 related code to a-exexpr.adb
10089 (Save_Occurrence_And_Private): Move GCC EH related code to
10091 (Raise_Current_Excep): Add new variable Id with pragma
10092 volatile, to ensure that the variable lives on stack.
10094 * a-exexpr-gcc.adb, raise-gcc.c: New file.
10096 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
10098 Move GCC EH related code to a-exexpr-gcc.adb
10100 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
10102 Split the Linux version of g-soccon into separate variants for 32 and 64
10104 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
10105 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
10106 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
10107 of host variable $(RANLIB_FLAGS).
10108 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
10109 Code clean up: remove unused/obsolete targets.
10110 (EH_MECHANISM): New variable introduced to differenciate between the
10111 two EH mechanisms statically.
10112 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
10113 (LIBGNAT_OBJS): Add raise-gcc.o
10114 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
10115 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
10116 supports VxWorks 6 RTPs.
10117 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
10118 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
10120 * raise.c: Move all GCC EH-related routines to raise-gcc.c
10122 2005-11-14 Jose Ruiz <ruiz@adacore.com>
10124 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
10125 deferral level, when abort is not allowed, to a later stage (the
10127 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
10128 it will not get changed by the generated code. It was previously done
10131 2005-11-14 Thomas Quinot <quinot@adacore.com>
10132 Olivier Hainque <hainque@adacore.com>
10133 Eric Botcazou <ebotcazou@adacore.com>
10136 Factor common code to build a storage type for an unconstrained object
10137 from a fat or thin pointer type and a constrained object type.
10138 (annotate_value): Handle BIT_AND_EXPR.
10139 (annotate_rep): Don't restrict the back annotation of inherited
10140 components to the type_annotate_only case.
10141 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
10142 we are not defining the type.
10143 <E_Record_Type>: Likewise.
10144 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
10145 to get advantage of the new maybe_stabilize_reference interface, to
10146 ensure that what we reference is indeed stabilized instead of relying
10147 on assumptions on what the stabilizer does.
10148 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
10149 type imported through a limited_with clause, use its non-limited view.
10150 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
10152 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
10153 of #if sections + explicit comparisons of convention identifiers.
10154 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
10155 before early-returning for certain types when code generation is
10157 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
10158 nullification of gnu_expr we do for objects with address clause and
10159 that we are not defining.
10160 (elaborate_expression_1): Do not create constants when creating
10161 variables needed by the debug info: the dwarf2 writer considers that
10162 CONST_DECLs is used only to represent enumeration constants, and emits
10164 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
10165 object with an address clause into an indirect reference, drop the
10166 initializing expression.
10168 (STACK_CHECK_BUILTIN): Delete.
10169 (STACK_CHECK_PROBE_INTERVAL): Likewise.
10170 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
10171 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
10172 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
10173 corresponding to the renamed object as ignored for debugging purposes.
10175 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
10176 related): For a prefix that is a dereference of a fat or thin pointer,
10177 if there is an actual subtype provided by the front-end, use that
10178 subtype to build an actual type with bounds template.
10179 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
10180 is provided by the front-end, use that subtype to compute the size of
10181 the deallocated object.
10182 (gnat_to_gnu): When adding a statement into an elaboration procedure,
10183 check for a potential violation of a No_Elaboration_Code restriction.
10184 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
10185 with extra arguments to control whether to recurse through non-values
10186 and to let the caller know if the stabilization has succeeded.
10187 (gnat_stabilize_reference): Now a simple wrapper around
10188 maybe_stabilize, for common uses without restriction on lvalues and
10189 without need to check for the success indication.
10190 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
10191 pass false instead of 0 as the FORCE argument which is a bool.
10192 (Identifier_to_gnu): Remove checks ensuring that an renamed object
10193 attached to a renaming pointer has been properly stabilized, as no such
10194 object is attached otherwise.
10195 (call_to_gnu): Invoke create_var_decl to create the temporary when the
10196 function uses the "target pointer" return mechanism.
10197 Reinstate conversion of the actual to the type of the formal
10198 parameter before any other specific treatment based on the passing
10199 mechanism. This turns out to be necessary in order for PLACEHOLDER
10200 substitution to work properly when the latter type is unconstrained.
10202 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
10204 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
10205 with extra arguments to control whether to recurse through non-values
10206 and to let the caller know if the stabilization has succeeded.
10208 * utils2.c (gnat_build_constructor): Only sort the fields for possible
10209 static output of record constructor if all the components are constant.
10210 (gnat_build_constructor): For a record type, sort the list of field
10211 initializers in increasing bit position order.
10212 Factor common code to build a storage type for an unconstrained object
10213 from a fat or thin pointer type and a constrained object type.
10214 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
10215 types variants, and process special cases of VIEW_CONVERT expressions
10216 as their NOP_EXPR counterpart to ensure we get to the
10217 CORRESPONDING_VARs associated with CONST_DECls.
10218 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
10219 on the right-hand side.
10221 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
10223 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
10224 are converting back to its original type.
10225 (convert) <JM input>: Fallthrough regular conversion code instead of
10226 extracting the object if converting to a type variant.
10227 (create_var_decl): When a variable has an initializer requiring code
10228 generation and we are at the top level, check for a potential violation
10229 of a No_Elaboration_Code restriction.
10230 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
10231 SIZE and SIZE_UNIT which we need for later back-annotations.
10232 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
10233 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
10234 is an unchecked union.
10235 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
10236 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
10237 main variant, just replace the VIEW_CONVERT_EXPR.
10238 <UNION_TYPE>: Revert 2005-03-02 change.
10240 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
10242 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
10244 2005-11-14 Matthew Heaney <heaney@adacore.com>
10246 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
10247 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
10248 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
10249 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
10250 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
10251 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
10252 Compiles against the spec for ordered maps described in sections
10253 A.18.6 of the most recent (August 2005) AI-302 draft.
10255 2005-11-14 Olivier Hainque <hainque@adacore.com>
10257 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
10258 to ensure bias adjustments take place when need be and to prevent
10259 occurrences of intermediate overflows.
10261 2005-11-14 Matthew Gingell <gingell@adacore.com>
10262 Olivier Hainque <hainque@adacore.com>
10264 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
10267 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
10268 tracebacks on ia64 HP-UX and provide explanatory comment.
10269 Enable backtraces on ia64 GNU/Linux.
10270 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
10271 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
10273 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
10274 Javier Miranda <miranda@adacore.com>
10276 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
10277 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
10278 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
10279 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
10281 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
10282 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
10285 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
10286 subprogram that generates the external name associated with a
10287 secondary dispatch table.
10288 (Get_Secondary_DT_External_Name): New subprogram that generates the
10289 external name associated with a secondary dispatch table.
10291 2005-11-14 Emmanuel Briot <briot@adacore.com>
10293 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
10294 line in the ALI file to include both an instantiation reference, and a
10297 2005-11-14 Vincent Celier <celier@adacore.com>
10299 * clean.adb (Check_Project): Look for Ada code in extending project,
10300 even if Ada is not specified as a language.
10301 Use new function DLL_Prefix for DLL_Name
10302 (Clean_Interface_Copy_Directory): New procedure
10303 (Clean_Library_Directory): New procedure
10304 (Clean_Directory): Remove procedure, no longer used
10305 (Clean_Project): Do not delete any file in an externally built project
10307 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
10308 directory of an extending project, even when there are no Ada source
10310 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
10311 (Set_Ada_Paths.Add.Recursive_Add): Ditto
10313 * mlib-prj.adb (Check_Library): For all library projects, get the
10314 library file timestamp.
10315 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
10316 (Build_Library): Use new function DLL_Prefix for the DLL_Name
10317 (Clean): Remove procedure, no longer used
10318 (Ultimate_Extension_Of): New function
10319 (Build_Library): When cleaning the library directory, only remove an
10320 existing library file and any ALI file of a source of the project.
10321 When cleaning the interface copy directory, remove any source that
10322 could be a source of the project.
10324 * prj.ads, prj.adb (Project_Empty): Add values of new components
10325 Library_TS and All_Imported_Projects.
10326 (Project_Empty): Add values for new components of Project_Data:
10327 Library_ALI_Dir and Display_Library_ALI_Dir
10329 * prj-attr.adb: New project level attribute name Library_ALI_Dir
10331 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
10332 attribute Library_ALI_Dir.
10333 (Check_Library_Attributes): The library directory cannot be the same as
10334 any source directory of the project tree.
10335 (Check_Stand_Alone_Library): The interface copy directory cannot be
10336 the same as any source directory of the project tree.
10338 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
10339 all temporary files.
10341 2005-11-14 Robert Dewar <dewar@adacore.com>
10342 Ed Schonberg <schonberg@adacore.com>
10344 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
10345 (Check_Elab_Call): A call within a protected body is never an
10346 elaboration call, and does not require checking.
10347 (Same_Elaboration_Scope): Take into account protected types for both
10349 (Activate_Elaborate_All_Desirable): New procedure
10351 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
10354 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
10355 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
10357 * lib-writ.ads, lib-writ.adb:
10358 Implement new AD/ED for Elaborate_All/Elaborate desirable
10359 Use new Elaborate_All_Desirable flag in N_With_Clause node
10361 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
10362 N_Free_Statement nodes.
10363 Define new class N_Subprogram_Instantiation
10364 Add Elaborate_Desirable flag to N_With_Clause node
10365 Add N_Delay_Statement (covering two kinds of delay)
10367 * debug.adb: Introduce d.f flag for compiler
10368 Add -da switch for binder
10370 2005-11-14 Ed Schonberg <schonberg@adacore.com>
10371 Cyrille Comar <comar@adacore.com>
10373 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
10374 for task component, in the case of a limited aggregate. The enclosed
10375 object declaration will create it earlier. Otherwise, in the case of a
10376 nested aggregate, the object may appear in the wrong scope.
10377 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
10378 (Gen_Assign): If the component being assigned is an array type and the
10379 expression is itself an aggregate, wrap the assignment in a block to
10380 force finalization actions on the temporary created for each row of the
10382 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
10383 structures are initialized after all discriminants are set so that
10384 they can be accessed even when their offset is dynamic.
10386 2005-11-14 Robert Dewar <dewar@adacore.com>
10387 Hristian Kirtchev <kirtchev@adacore.com>
10389 * sem_attr.adb: Implement Machine_Rounding attribute
10390 (Analyze_Access_Attribute): The access attribute may appear within an
10391 aggregate that has been expanded into a loop.
10392 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
10393 'Terminated whenever the prefix is of a task interface class-wide type.
10394 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
10395 the prefix is of a task interface class-wide type.
10397 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
10400 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
10401 Remove pragma Inline for [Unaligned_]Valid.
10402 Add comments that Valid routines do not work for Vax_Float
10404 * exp_attr.adb: Implement Machine_Rounding attribute
10406 * snames.h: Add entry for Machine_Rounding attribute
10408 2005-11-14 Javier Miranda <miranda@adacore.com>
10409 Robert Dewar <dewar@adacore.com>
10410 Hristian Kirtchev <kirtchev@adacore.com>
10412 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
10413 and related): For a prefix that is an explicit dereference of an
10414 access to unconstrained packed array type, annotate the dereference
10415 with an actual subtype so GIGI can make a correct size computation.
10416 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
10417 'Unrestricted_Access, if the designated type is an interface we
10418 add a type conversion to force the displacement of the pointer
10419 to the secondary dispatch table.
10420 Use Universal_Real instead of Long_Long_Float when we need a high
10421 precision float type for the generated code (prevents gratuitous
10422 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
10423 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
10424 'Terminated for task interface class-wide objects. Generate a call to
10425 the predefined dispatching routine used to retrieve the _task_id from
10426 a task corresponding record.
10427 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
10429 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
10430 (Check_Dispatching_Operation): Protect the frontend againts
10431 previously detected errors.
10433 * Makefile.rtl: Add new instantiations of system.fat_gen
10435 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
10436 Change name of instantiated package for better consistency
10437 with newly added system.fat_gen instantiations.
10439 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
10440 s-fvagfl.ads: New files.
10442 2005-11-14 Cyrille Comar <comar@adacore.com>
10443 Thomas Quinot <quinot@adacore.com>
10445 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
10446 assignment of a value of a tagged type that has been rewritten to a
10447 block statement, it is known by construction that no checks are
10448 necessary for the statements within the block: analyze it with checks
10450 (Expand_N_If_Statement): When killing a dead then-branch in an
10451 if-statement that has elsif_parts, recompute the Current_Value node
10452 for any entity whose value is known from the condition of the first
10454 (Expand_N_Return_Statement): When returning a mutable record, convert
10455 the return value into its actual subtype in order to help the backend
10456 to return the actual size instead of the maximum. This is another
10457 aftermath of not returning mutable records on the sec-stack anymore.
10459 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
10460 handling of error msg for suspicious reverse range iteration.
10461 (Check_Possible_Current_Value_Condition): Move declaration from body to
10462 spec, to allow this subprogram to be called from exp_ch5.
10464 2005-11-14 Thomas Quinot <quinot@adacore.com>
10466 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
10467 generate a set of nested array aggregates instead of a single flat
10468 aggregate for multi-dimensional arrays.
10470 2005-11-14 Pascal Obry <obry@adacore.com>
10472 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
10473 by spawnve is a process handle, no need to convert. Add a parameter
10474 close to control wether the process handle must be closed.
10475 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
10476 a process handle, not need to convert.
10477 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
10479 * g-expect.adb: (Kill): Document the new close parameter.
10480 (Close): Do not release the process handle in the kill there as
10481 waitpid() is using it.
10482 (Send_Signal): Release the process handle.
10484 2005-11-14 Robert Dewar <dewar@adacore.com>
10486 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
10487 need a high precision float type for the generated code (prevents
10488 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
10491 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
10492 need a high precision float type for the generated code (prevents
10493 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
10495 (Expand_Width_Attribute): In configurable run-time, the attribute is not
10496 allowed on non-static enumeration subtypes. Force a load error to emit
10497 the correct diagnostic.
10499 2005-11-14 Thomas Quinot <quinot@adacore.com>
10500 Robert Dewar <dewar@adacore.com>
10501 Ed Schonberg <schonberg@adacore.com>
10503 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
10504 subtype to compute the size of the designated object at run-time,
10505 create such a subtype and store it in the Actual_Designated_Subtype
10506 attribute of the N_Free_Statement.
10507 Generate itype for classwide designated object in both cases of
10508 user-specified storage pool: specific and class-wide, not only in the
10510 Raise CE when trying to set a not null access type object to null.
10511 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
10512 an explicit loop, because freeze nodes make its position variable.
10514 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
10517 2005-11-14 Javier Miranda <miranda@adacore.com>
10519 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
10520 Build_Stream_Procedure): Add the null-excluding attribute to the first
10522 This has no semantic meaning under Ada95 mode but it is a
10523 requirement under Ada05 mode.
10525 * par-ch3.adb (P_Access_Definition): Addition of warning message if
10526 the null exclusion is used under Ada95 mode
10527 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
10528 (P_Access_Definition): Remove assertion that forbids the use of
10529 the null-exclusion feature in Ada95.
10531 2005-11-14 Robert Dewar <dewar@adacore.com>
10533 * impunit.adb: Exclude container helper units not intended for use by
10536 2005-11-14 Ed Schonberg <schonberg@adacore.com>
10538 * freeze.adb (Freeze_Entity): For an access formal that is an access
10539 to subprogram, freeze the anonymous subprogram type at the same time,
10540 to prevent later freezing in the wrong scope, such as the enclosing
10542 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
10543 subprogram whenever available.
10545 2005-11-14 Arnaud Charlet <charlet@adacore.com>
10548 * gnatvsn.ads (Library_Version): Bump to 4.1
10550 2005-11-14 Robert Dewar <dewar@adacore.com>
10552 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
10553 Storage_Offset to avoid wrap around causing invalid results.
10555 2005-11-14 Pascal Obry <obry@adacore.com>
10557 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
10559 (Scan_Bind_Arg): Fail with an error message if -M option is used
10560 on a native compiler.
10562 2005-11-14 Robert Dewar <dewar@adacore.com>
10563 Vincent Celier <celier@adacore.com>
10565 * gprep.adb: Implement -C switch to scan comments
10567 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
10569 * scans.ads: Comment updates (including new use of Tok_Comment in
10572 * opt.ads: Add documentation for flags that are used by gprmake,
10573 currently and in the next version of gprmake.
10574 (Verbosity_Level): New variable
10575 Add Replace_In_Comments switch
10577 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
10579 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
10581 2005-11-14 Arnaud Charlet <charlet@adacore.com>
10583 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
10584 message, friendlier.
10586 2005-11-14 Robert Dewar <dewar@adacore.com>
10588 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
10590 2005-11-14 Doug Rupp <rupp@adacore.com>
10592 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
10594 2005-11-14 Robert Dewar <dewar@adacore.com>
10596 * interfac.ads: Change declarations of IEEE float types so that we no
10597 longer need a separate version of this package for VMS.
10599 2005-11-14 Ed Schonberg <schonberg@adacore.com>
10601 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
10602 internal entity created for the declaration of a child subprogram body
10603 with no spec as coming from source, to generate proper cross-reference
10606 2005-11-14 Vincent Celier <celier@adacore.com>
10608 * make.adb (Compile_Sources): Change verbose message to minimum
10609 verbosity level High for "is in an Ada library", "is a read-only
10610 library" and "is an internal library",
10611 (Create_Binder_Mapping_File): Path name of ALI file for library project
10612 must include the library directory, not the object directory.
10613 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
10614 for new switches -vl, -vm and -vh.
10615 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
10616 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
10617 (Compile_Sources): Do not attempt to compile if an ALI file is missing
10618 in a project that is externally built.
10619 (Compute_All_Imported_Projects): New procedure
10620 (Gnatmake): Check if importing libraries should be regenerated because
10621 at least an imported library is more recent.
10622 (Initialize): For each project compute the list of the projects it
10623 imports directly or indirectly.
10624 (Add_Library_Search_Dir): New procedure, used in place of
10625 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
10626 put in the search paths.
10627 (Add_Source_Search_Dir): New procedure, used in place of
10628 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
10629 put in the search paths.
10630 (Mark_Directory): Resolve the absolute path the directory before marking
10633 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
10634 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
10635 Switch. Do not handle any exception.
10636 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
10637 so that the switch is recognized as valid.
10638 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
10640 2005-11-14 GNAT Script <nobody@adacore.com>
10642 * Make-lang.in: Makefile automatically updated
10644 2005-11-14 Pascal Obry <obry@adacore.com>
10646 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
10648 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
10649 In both cases the last argument was dropped.
10651 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
10653 * namet.h: (Column_Numbe): New type.
10654 (Get_Column_Number): Define to sinput__get_column_number.
10655 (Instantiation): Define to sinput__instantiation.
10656 (Get_Column_Number): Declare.
10657 (Instantiation): Likewise.
10659 2005-11-14 Robert Dewar <dewar@adacore.com>
10661 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
10662 syntax, which could cause compiler hangs.
10664 2005-11-14 Vincent Celier <celier@adacore.com>
10666 * prj-ext.adb: Take into account new environment variable
10667 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
10669 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
10670 normalize its path name, making it absolute and resolving symbolic
10671 links, and replace the original if resolved path is different.
10673 2005-11-14 Vincent Celier <celier@adacore.com>
10675 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
10676 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
10678 2005-11-14 Emmanuel Briot <briot@adacore.com>
10680 * prj-pp.adb (Print): Do not output the with statement if the
10681 associated name is empty, which happens for virtual extending projects.
10682 (Print): Preserve the "extends all" attribute when printing the project.
10684 * prj-tree.ads (String_Value_Of): Add comment about returned value for
10685 a virtual extending project.
10687 2005-11-14 Ed Schonberg <schonberg@adacore.com>
10689 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
10690 rhs of an assignment even if the type is unconstrained, when the
10691 context is non-expanding.
10692 In an inlined body, if the context type is private,
10693 resolve with its full view, which must be a composite type.
10695 2005-11-14 Robert Dewar <dewar@adacore.com>
10696 Ed Schonberg <schonberg@adacore.com>
10698 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
10699 Do not give obsolescent warning on with of subprogram (since we
10701 (Analyze_With_Clause): Add test for obsolescent package
10702 (Install_Context_Clauses): If the unit is the body of a child unit, do
10703 not install twice the private declarations of the parents, to prevent
10704 circular lists of Use_Clauses in a parent.
10705 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
10706 compiling body of child unit.
10707 Use new class N_Subprogram_Instantiation
10708 (Expand_With_Clause): If this is a private with_clause for a child unit,
10709 appearing in the context of a package declaration, then the implicit
10710 with_clauses generated for parent units are private as well.
10711 (License_Check): Do not generate message if with'ed unit is internal
10713 2005-11-14 Gary Dismukes <dismukes@adacore.com>
10714 Ed Schonberg <schonberg@adacore.com>
10715 Thomas Quinot <quinot@adacore.com>
10717 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
10718 names are internal, because they will not have a corresponding partner
10719 in the actual package.
10720 (Analyze_Formal_Package): Move the setting of the formal package spec's
10721 Generic_Parent field so that it occurs prior to analyzing the package,
10722 to allow proper operation of Install_Parent_Private_Declarations.
10723 (Analyze_Package_Instantiation): Set the instantiated package entity's
10724 Package_Instantiation field.
10725 (Get_Package_Instantiation_Node): Move declaration to package spec.
10726 Retrieve the N_Package_Instantiation node when the Package_Instantiation
10728 (Check_Generic_Child_Unit): Within an inlined call, the only possible
10729 instantiation is Unchecked_Conversion, for which no parents are needed.
10730 (Inline_Instance_Body): Deinstall and record the use_clauses for all
10731 parent scopes of a scope being removed prior to inlining an instance
10733 (Analyze_Package_Instantiation): Do not perform front-end inlining when
10734 the current context is itself an instance within a non-instance child
10735 unit, to prevent scope stack errors.
10736 (Save_References): If the node is an aggregate that is an actual in a
10737 call, rewrite as a qualified expression to preserve some type
10738 information, to resolve possible ambiguities in the instance.
10739 (Instance_Parent_Unit): New global variable to record the ultimate
10740 parent unit associated with a generic child unit instance (associated
10741 with the existing Parent_Unit_Visible flag).
10742 (type Instance_Env): New component Instance_Parent_Unit for stacking
10743 parents recorded in the global Instance_Parent_Unit.
10744 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
10746 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
10747 it's not a top-level unit, and only do this if Instance_Parent_Unit is
10748 not already set. Replace test of Is_Child_Unit with test of parent's
10749 scope against package Standard. Add comments and a ??? comment.
10750 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
10751 on a child instance parent to test that the parent equals
10752 Instance_Parent rather than simply checking that the unit is not a
10754 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
10755 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
10756 a formal interface are ancestors of the corresponding actual.
10757 (Validate_Formal_Interface_Type): Additional legality checks.
10758 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
10759 interface types with ancestors.
10760 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
10761 to diagnose attempts to use generic within its own declaration.
10763 2005-11-14 Ed Schonberg <schonberg@adacore.com>
10764 Javier Miranda <miranda@adacore.com>
10766 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
10768 (Build_Private_Derived_Type): The entity of the created full view of the
10769 derived type does not come from source. If after installing the private
10770 declarations of the parent scope the parent is still private, use its
10771 full view to construct the full declaration of the derived type.
10772 (Build_Derived_Record_Type): Relax the condition that controls the
10773 execution of the check that verifies that the partial view and
10774 the full view agree in the set of implemented interfaces. In
10775 addition, this test now only takes into account the progenitors.
10776 (Derive_Interface_Subprograms): No need to derive subprograms
10777 of ancestors that are interfaces.
10778 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
10780 Change name Is_Package to Is_Package_Or_Generic_Package
10781 (Complete_Subprograms_Derivation): Handle the case in which the full
10782 view is a transitive derivation of the ancestor of the partial view.
10783 (Process_Full_View): Rename local subprogram Find_Interface_In_
10784 Descendant to Find_Ancestor_Interface to leave the code more clear.
10785 Remove wrong code that avoids the generation of an error message
10786 when the immediate ancestor of the partial view is an interface.
10787 In addition some minor reorganization of the code has been done to
10788 leave it more clear.
10789 (Analyze_Type_Declaration): If type has previous incomplete tagged
10790 partial view, inherit properly its primitive operations.
10791 (Collect_Interfaces): Make public, for analysis of formal
10793 (Analyze_Interface_Declaration): New procedure for use for regular and
10794 formal interface declarations.
10795 (Build_Derived_Record_Type): Add support for private types to the code
10796 that checks if a tagged type implements abstract interfaces.
10797 (Check_Aliased_Component_Type): The test applies in the spec of an
10799 (Access_Type_Declaration): Clean up declaration of malformed type
10800 declared as an access to its own classwide type, to prevent cascaded
10802 (Collect_Interfaces): For private extensions and for derived task types
10803 and derived protected types, the parent may be an interface that must
10804 be included in the interface list.
10805 (Access_Definition): If the designated type is an interface that may
10806 contain tasks, create Master_Id for it before analyzing the expression
10807 of the declaration, which may be an allocator.
10808 (Record_Type_Declaration): Set properly the interface kind, for use
10809 in allocators, the creation of master id's for task interfaces, etc.
10811 2005-11-14 Javier Miranda <miranda@adacore.com>
10812 Ed Schonberg <schonberg@adacore.com>
10814 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
10815 omitted in case of stream attribute subprograms.
10816 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
10817 appear immediately after a subprogram body, when there is no previous
10818 subprogram declaration.
10819 Change name Is_Package to Is_Package_Or_Generic_Package
10820 (Process_Formals): A non null qualifier on a non null named access
10821 type is not an error, and is a warning only if Redundant_Constructs
10824 2005-11-14 Gary Dismukes <dismukes@adacore.com>
10825 Ed Schonberg <schonberg@adacore.com>
10827 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
10828 nested within Analyze_Package_Specification to install the private
10829 declarations and use clauses within each of the parent units of a
10830 package instance of a generic child package.
10831 (Analyze_Package_Specification): When entering a private part of a
10832 package associated with a generic instance or formal package, the
10833 private declarations of the parent must be installed (by calling new
10834 procedure Install_Parent_Private_Declarations).
10835 Change name Is_Package to Is_Package_Or_Generic_Package
10836 (Preserve_Full_Attributes): For a synchronized type, the corresponding
10837 record is absent in a generic context, which does not indicate a
10840 2005-11-14 Ed Schonberg <schonberg@adacore.com>
10842 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
10843 not try to rewrite a renamed stream attribute, because the operations
10844 on the type may not have been generated.
10845 Handle properly a renaming_as_body generated for a stream operation
10846 whose default is abstract because the object type itself is abstract.
10847 (Find_Type): If the type is incomplete and appears as the prefix of a
10848 'Class reference, it is tagged, and its list of primitive operations
10849 must be initialized properly.
10850 (Chain_Use_Clauses): When chaining the use clauses that appear in the
10851 private declaration of a parent unit, prior to compiling the private
10852 part of a child unit, find on the scope stack the proper parent entity
10853 on which to link the use clause.
10854 (Note_Redundant_Use): Emit a warning when a redundant use clause is
10856 (Analyze_Object_Renaming): An attribute reference is not a legal object
10857 if it is not a function call.
10859 2005-11-14 Robert Dewar <dewar@adacore.com>
10860 Ed Schonberg <schonberg@adacore.com>
10862 * sem_eval.adb: Implement d.f flag
10863 (Subtype_Statically_Match): A generic actual type has unknown
10864 discriminants when the corresponding actual has a similar partial view.
10865 If the routine is called to validate the signature of an inherited
10866 operation in a child instance, the generic actual matches the full view,
10868 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
10869 Ed Schonberg <schonberg@adacore.com>
10870 Robert Dewar <dewar@adacore.com>
10871 Thomas Quinot <quinot@adacore.com>
10873 * sem_res.adb (Resolve_Call): Provide a better error message whenever
10874 a procedure call is used as a select statement trigger and is not an
10875 entry renaming or a primitive of a limited interface.
10876 (Valid_Conversion): If the operand has a single interpretation do not
10877 remove address operations.
10878 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
10879 statement to inhibit warning.
10880 (Resolve_Unary_Op): Do not produce a warning when
10881 processing an expression of the form -(A mod B)
10882 Use Universal_Real instead of Long_Long_Float when we need a high
10883 precision float type for the generated code (prevents gratuitous
10884 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
10885 (Resolve_Concatenation_Arg): Improve error message when argument is an
10886 ambiguous call to a function that returns an array.
10887 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
10888 there is an implicit operator in the given scope if we are within an
10889 instance: legality check has been performed on the generic.
10890 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
10891 after resolving operand, to avoid false warnings on overloaded calls.
10893 2005-11-14 Ed Schonberg <schonberg@adacore.com>
10894 Javier Miranda <miranda@adacore.com>
10897 * sem_type.adb (Covers): In an inlined body, a composite type matches
10898 a private type whose full view is a composite type.
10899 (Interface_Present_In_Ancestor): Protect the frontend against
10900 previously detected errors to ensure that its compilation
10901 with assertions enabled gives the same output that its
10902 compilation without assertions.
10903 (Interface_Present_In_Ancestor): Add support for private types.
10904 Change name In_Actual to In_Generic_Actual (clean up)
10905 (Disambiguate): New predicate In_Actual, to recognize expressions that
10906 appear in the renaming declaration generated for generic actuals, and
10907 which must be resolved in the outer context.
10909 2005-11-14 Robert Dewar <dewar@adacore.com>
10910 Thomas Quinot <quinot@adacore.com>
10911 Hristian Kirtchev <kirtchev@adacore.com>
10912 Ed Schonberg <schonberg@adacore.com>
10914 * sem_util.ads, sem_util.adb: Change name Is_Package to
10915 Is_Package_Or_Generic_Package.
10916 (Check_Obsolescent): New procedure.
10917 (Set_Is_Public): Remove obsolete junk test.
10918 (Set_Public_Status): Do not set Is_Public on an object whose declaration
10919 occurs within a handled_sequence_of_statemets.
10920 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
10921 for a parameterless procedure.
10922 (Enter_Name): Recognize renaming declarations created for private
10923 component of a protected type within protected operations, so that
10924 the source name of the component can be used in the debugger.
10926 2005-11-14 Ed Schonberg <schonberg@adacore.com>
10927 Robert Dewar <dewar@adacore.com>
10929 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
10930 of a generic subprogram are not visible outside the body.
10931 (Set_Warning_Switch): New procedure (code to set warning mode moved
10932 here from Switch.C so that it can be shared by pragma processing.
10933 (Check_References): Special case warning for non-modified non-imported
10935 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
10936 form with a string literal argument
10938 2005-11-14 Javier Miranda <miranda@adacore.com>
10940 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
10942 (Write): Addition of "not null" to the anonymous access.
10943 (Read): Addition of "not null" to the anonymous access.
10944 (Write): Addition of "not null" to the anonymous access.
10946 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
10947 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
10948 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
10949 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
10950 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
10951 "not null" to the anonymous access.
10953 2005-11-14 Robert Dewar <dewar@adacore.com>
10955 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
10958 2005-11-14 Vincent Celier <celier@adacore.com>
10960 * switch.adb (Bad_Switch): New procedure
10961 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
10962 message when in error.
10964 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
10965 Too_Many_Output_Files): Remove declarations, no longer used.
10966 (Scan_Nat): New parameter Switch
10968 (Bad_Switch): New procedure
10970 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
10971 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
10972 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
10973 to Osint.Fail. Do not handle any exception.
10975 2005-11-14 Vincent Celier <celier@adacore.com>
10977 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
10978 designates a non existent directory.
10980 2005-11-14 Robert Dewar <dewar@adacore.com>
10982 * xgnatugn.adb: Replace invalid membership test by 'Valid
10984 2005-11-14 Vincent Celier <celier@adacore.com>
10986 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
10987 there is no object directory.
10989 2005-11-14 Robert Dewar <dewar@adacore.com>
10991 * usage.adb: Minor adjustment to output format, use nn instead of nnn
10992 (so that -gnateInnn does not run into next column)
10994 2005-11-14 Ed Falis <falis@adacore.com>
10996 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
10999 2005-11-14 Cyrille Comar <comar@adacore.com>
11001 * s-chepoo.ads: Add comments on Dereference.
11002 Remove unnecessary inherited abstract primitives.
11005 2005-11-14 Robert Dewar <dewar@adacore.com>
11007 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
11008 node parameter, not needed, since it is available as Declaration_Node.
11010 2005-11-14 Geert Bosch <bosch@adacore.com>
11012 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
11013 grammatically correct.
11015 2005-11-14 Vincent Celier <celier@adacore.com>
11017 * s-fileio.ads: Correct spelling error in comment
11019 2005-11-14 Cyrille Comar <comar@adacore.com>
11020 Robert Dewar <dewar@adacore.com>
11021 Vincent Celier <celier@adacore.com>
11022 Ben Brosgol <brosgol@adacore.com>
11023 Jose Ruiz <ruiz@adacore.com>
11024 Pascal Obry <obry@adacore.com>
11027 Document that -fstack-check is needed for strict compliance with the
11028 Ada 95 Reference Manual.
11029 Correct reference to VAX systems to meet HP guidelines
11030 Add documentation for new gnatmake switches -vl, -vm and -vh
11031 Replace DEC Ada by HP Ada
11032 Replace DIGITAL by HP
11033 Remove empty section on tools in compatibility section
11034 Clarify the Windows convention semantics.
11035 Document the Win32 calling convention.
11036 The Stdcall, Win32 and DLL convention are synonyms.
11037 Add a note in -gnatR description about zero size record components
11038 Note on new >= and <= warnings for -gnatwc
11039 Document that equal sign after -gnatm is optional.
11040 Note that strip is working fine on DLL built with a Library
11041 Project. The restriction apply only to DLL built with gnatdll.
11042 Update section about the way to debug a DLL.
11043 Update information about the DLL convention.
11044 Document -C switch for gnatprep
11045 Document new attribute Library_ALI_Dir
11046 Update elaboration doc to include implicit Elaborate pragmas now
11047 generated for subprogram instantiations.
11048 Document limitation on executable names that include spaces for --GCC,
11049 --GNATBIND, and --GNATLINK switches.
11050 Document that -w causes -gnatws to be added at start of gcc switches
11052 * gnat_rm.texi: Document that -mieee is needed for generating infinite
11053 and NaN values in case of overflow on machines that are not fully
11054 compliant with the IEEE floating-point standard.
11055 Create a section describing the set of compiler options needed for
11056 strict compliance with the Ada 95 Reference Manual.
11057 Add documentation for pragma Obsolescent applied to a package
11058 Clarify potential issues of mixed language programs related to the
11059 I/O buffering enabling in the elaboration of the GNAT runtime.
11060 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
11061 This documentation only patch adds extra documentsion for pragma
11062 Restrictions (No_Elaboration_Code), explaining why it is not possible
11063 to document this restriction in terms of allowed source constructs.
11064 Document string literal form of pragma Warnings
11065 Document new attribute Library_ALI_Dir
11066 Add documentation on stable attributes in project files that was missing
11068 * gnat-style.texi: Indicate that paragraphs within a single comment
11069 should be separated by empty comment lines
11071 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
11074 * bindusg.adb: Minor cleanup, put -m before -M for consistency
11076 2005-11-14 Robert Dewar <dewar@adacore.com>
11078 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
11079 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
11080 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
11081 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
11082 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
11083 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
11084 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
11085 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
11086 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
11087 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
11088 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
11089 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
11090 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
11091 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
11092 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
11093 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
11094 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
11095 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
11096 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
11097 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
11098 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
11099 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
11100 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
11101 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
11102 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
11103 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
11104 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
11105 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
11106 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
11107 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
11108 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
11109 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
11110 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
11111 system-interix.ads, system-solaris-sparc.ads,
11112 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
11113 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
11114 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
11115 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
11116 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
11117 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
11118 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
11119 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
11120 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
11121 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
11122 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
11123 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
11124 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
11125 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
11126 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
11127 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
11128 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
11129 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
11130 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
11131 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
11132 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
11133 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
11134 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
11135 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
11136 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
11137 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
11138 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
11139 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
11140 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
11141 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
11142 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
11143 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
11144 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
11145 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
11146 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
11147 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
11148 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
11149 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
11150 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
11151 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
11152 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
11153 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
11154 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
11155 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
11156 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
11157 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
11158 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
11159 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
11160 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
11161 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
11162 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
11163 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
11164 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
11165 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
11166 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
11167 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
11168 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
11169 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
11170 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
11171 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
11172 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
11173 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
11174 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
11175 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
11176 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
11177 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
11178 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
11179 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
11180 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
11181 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
11182 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
11183 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
11184 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
11185 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
11186 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
11187 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
11188 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
11189 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
11190 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
11191 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
11192 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
11193 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
11194 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
11195 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
11196 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
11197 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
11198 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
11199 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
11200 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
11201 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
11202 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
11203 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
11204 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
11205 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
11206 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
11207 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
11208 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
11209 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
11210 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
11211 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
11212 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
11213 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
11214 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
11215 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
11216 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
11217 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
11218 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
11219 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
11220 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
11221 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
11222 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
11223 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
11224 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
11225 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
11226 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
11227 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
11228 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
11229 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
11230 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
11231 a-numaux-darwin.ads, a-numaux-darwin.adb,
11232 a-swuwha.ads, a-stunha.ads: Minor reformatting
11234 2005-11-14 Robert Dewar <dewar@adacore.com>
11237 * osint-m.adb: Add pragma Elaborate_All for Osint
11239 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
11242 * trans.c (call_to_gnu): Restore statement lost in translation.
11244 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
11246 * init.c: Use the Linux-specific section for the IA-64/Linux target.
11247 (__gnat_adjust_context_for_raise): Add conditional code so that the
11248 IA-64 is also supported.
11250 2005-11-03 James E Wilson <wilson@specifix.com>
11253 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
11254 TREE_OVERFLOW check.
11256 2005-09-21 Olivier Hainque <hainque@adacore.com>
11259 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
11260 as we create them to store a size in bits.
11262 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
11270 * utils2.c (build_return_expr): New helper function.
11271 * gigi.h (build_return_expr): Declare it.
11272 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
11273 of manually building the RETURN_EXPR tree.
11274 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
11275 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
11276 build_binary_op for the "target pointer" case. Use build_return_expr
11277 instead of manually building the RETURN_EXPR tree.
11279 2005-09-16 Laurent GUERBY <laurent@guerby.net>
11282 * s-tpinop.ads: Make this unit Preelaborate.
11284 2005-09-16 Andreas Jaeger <aj@suse.de>
11286 * socket.c: Add string.h for memcpy.
11288 2005-09-05 Arnaud Charlet <charlet@adacore.com>
11290 * dec-io.ads, dec-io.adb: Removed, no longer used.
11292 2005-09-01 Arnaud Charlet <charlet@adacore.com>
11294 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
11296 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
11297 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
11298 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
11299 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
11300 dependent units are Preelaborate.
11301 (Initialize): Call Interrupt_Managemeent.Initialize and
11302 OS_Primitives.Initialize to ensure proper initialization of this unit.
11303 Remove use of System.Soft_Links
11304 Make this unit Preelaborate.
11306 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
11307 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
11308 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
11309 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
11310 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
11311 s-tratas.ads, s-tasinf.ads: Minor reformatting.
11312 Add pragma Preelaborate, since these packages are suitable for this
11316 * s-traent-vms.ads, s-intman-dummy.adb,
11317 s-taprop-dummy.adb: Make this unit Preelaborate.
11319 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
11320 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
11321 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
11322 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
11323 s-intman-solaris.adb, s-intman-irix-athread.adb,
11324 s-intman-irix.adb: Mark this unit Preelaborate.
11325 (Initialize): New procedure.
11328 * s-taspri-linux.ads: Removed.
11330 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
11331 as done by other implementations (e.g. posix).
11333 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
11334 responsible for deferring abort.
11335 Mark this unit Preelaborate.
11337 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
11338 proper initialization of the tasking run-time.
11340 * s-tasdeb.ads: Mark this unit Preelaborate.
11341 (Known_Tasks): Add explicit default value to avoid elaboration code.
11343 * s-inmaop-vms.adb (Elaboration code): Add call to
11344 Interrupt_Management.Initialize since the elaboration code depends on
11345 proper initialization of this package.
11347 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
11348 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
11349 s-osprim-posix.adb: Make this unit Preelaborate.
11351 * a-calend.adb: Add call to OS_Primitives.Initialize
11353 * a-elchha.adb: Update use of Except.Id.Full_Name.
11354 Minor reformatting.
11355 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
11357 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
11358 Move with clauses outside Warnings Off now that dependent units are
11360 Use raise xxx with "..."; Ada 2005 form.
11362 * a-taside.ads, a-taside.adb:
11363 Remove some dependencies, to make it easier to make this unit truly
11365 Rewrite some code to be conformant with Preelaborate rules.
11367 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
11368 marked Preelaborate in the future.
11370 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
11371 these units Preelaborate.
11373 * s-exctab.adb: Update use of Except.Id.Full_Name.
11375 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
11376 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
11377 Set_Exc_Stack_Addr): Removed, no longer used.
11378 Remove reference to *Machine_State_Addr*, no longer needed.
11380 * s-stalib.ads: Mark this unit as Preelaborate[_05].
11381 (Exception_Data): Full_Name is now a System.Address so that this unit
11382 can be made Preelaborate.
11383 Clean up/simplify code thanks to Full_Name being a System.Address.
11384 Remove obsolete pragma Suppress (All_Checks), no longer needed.
11386 * s-taskin.ads, s-taskin.adb:
11387 Move with clauses outside Warnings Off now that dependent units are
11389 Make this unit Preelaborate.
11390 (Initialize): New proceduure, replace elaboration code and makes the
11391 set up of the tasking run-time cleaner.
11392 (Detect_Blocking): Now a function instead of a deferred boolean, to
11393 obey Preelaborate rules.
11395 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
11396 soft links, no longer used.
11398 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
11399 packages are suitable for this categorization.
11401 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
11402 since we compile run-time sources in Ada 2005 mode.
11403 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
11404 avoid having s-taprop*.adb depend on s-soflin and to avoid code
11406 Remove reference to *Machine_State_Addr*, no longer needed.
11408 2005-09-01 Arnaud Charlet <charlet@adacore.com>
11410 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
11411 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
11412 Remove reference to System.Exceptions.
11414 * s-mastop-x86.adb: Removed, no longer used.
11416 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
11418 * a-excach.adb: Minor reformatting.
11420 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
11421 instead fix new warnings that were hidden by this change.
11422 (AAA, ZZZ): Removed, replaced by...
11423 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
11424 are used instead of constants, to help make Ada.Exception truly
11426 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
11427 Raise_Storage_Error): File is now a System.Address, to simplify code.
11428 (Elab code): Removed, no longer used.
11429 (Null_Occurrence): Remove Warnings Off and make this construct
11431 Remove code related to front-end zero cost exception handling, since
11432 it is no longer used.
11433 Remove -gnatL/-gnatZ switches.
11435 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
11436 Update use of Except.Msg.
11438 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
11439 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
11440 to front-end zero cost exception handling, since it is no longer used.
11441 Remove -gnatL/-gnatZ switches.
11443 * lib-writ.ads: Minor reformatting
11446 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
11448 * Make-lang.in: Remove references to s-except.ads
11450 * s-except.ads: Removed, no longer used.
11452 * s-mastop.ads, s-mastop.adb:
11453 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
11454 Remove reference to System.Exceptions.
11456 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
11457 switch-b.adb: Remove code related to front-end zero cost exception
11458 handling, since it is no longer used.
11459 Remove -gnatL/-gnatZ switches.
11461 2005-09-01 Robert Dewar <dewar@adacore.com>
11462 Gary Dismukes <dismukes@adacore.com>
11463 Javier Miranda <miranda@adacore.com>
11465 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
11466 type by valid test and generate warning.
11467 (Tagged_Membership): Generate call to the run-time
11468 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
11469 Change formal name Subtype_Mark to Result_Definition in several calls to
11470 Make_Function_Specification.
11471 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
11472 check for proper accessibility of the operand of a class-wide allocator.
11473 The check can be left out if checks are suppressed or if the expression
11474 has a specific tagged type whose level is known to be safe.
11476 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
11477 generates the run-time check associated with null-excluding entities.
11478 (Expand_N_Return_Statement): Add tests to determine if the accessibility
11479 check on the level of the return expression of a class-wide function
11480 can be elided. The check usually isn't needed if the expression has a
11481 specific type (unless it's a conversion or a formal parameter). Also
11482 add a test for whether accessibility checks are suppressed. Augment
11483 the comments to describe the conditions for performing the check.
11485 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
11486 Javier Miranda <miranda@adacore.com>
11487 Gary Dismukes <dismukes@adacore.com>
11488 Ed Schonberg <schonberg@adacore.com>
11490 * a-tags.adb (IW_Membership): Give support to
11491 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
11492 subprogram has been extended to look for the tag in the ancestors tag
11494 Update the structure of the GNAT Dispatch Table to reflect the
11495 additional two tables used in dispatching selects.
11496 Introduce appropriate array types and record components in
11497 Type_Specific_Data to reflect the two tables.
11498 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
11499 the TSD of a tag, indexed by position.
11500 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
11501 operation kind in the TSD of a tag, indexed by position.
11503 * a-tags.ads: Introduce an enumeration type to capture different
11504 primitive operation kinds. Define a constant reflecting the number of
11505 predefined primitive operations.
11506 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
11507 of an entry wrapper.
11508 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
11509 callable entity of a primitive operation.
11511 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
11512 primitive operations used in dispatching selects for limited
11513 interfaces, limited tagged, task and protected types what implement a
11515 (Freeze_Type): Generate the bodies of the primitive operations used in
11516 dispatching selects for limited tagged, task and protected types that
11517 implement a limited interface. Generate statements to populate the two
11518 auxiliary tables used for dispatching in select statements.
11519 (Freeze_Record_Type): Add call to initialize the dispatch table entries
11520 associated with predefined interface primitive operations.
11521 (Build_Dcheck_Function): Change Set_Subtype_Mark to
11522 Set_Result_Definition.
11523 (Build_Variant_Record_Equality): Change Subtype_Mark to
11525 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
11526 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
11527 (Build_Assignment): Simplify the code that adds the run-time-check.
11528 (Expand_N_Object_Declaration): Code cleanup.
11530 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
11531 entries when there is a protected type that implements a limited
11534 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
11535 common routines used in expansion of dispatching selects.
11536 (Add_Private_Declarations): Select the appropriate protection type when
11537 there is a protected type that implements a limited interface.
11538 (Build_Parameter_Block): Generate a wrapped parameter block.
11539 (Build_Protected_Subprogram_Body): Select the appropriate type for
11540 locking entries when there is a protected type that implements a
11542 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
11543 classified as entry wrappers.
11544 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
11545 asynchronous selects.
11546 (Expand_N_Conditional_Entry_Call): Add support for expansion of
11547 dispatching conditional selects.
11548 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
11549 protection when there is a protected type that implements limited
11551 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
11553 (Extract_Dispatching_Call): Extract the entity of the name of a
11554 dispatching call, the object parameter, actual parameters and
11555 corresponding formals.
11556 (Make_Initialize_Protection): Correct logic of protection initialization
11557 when there is a protected type that implements a limited interface.
11558 (Parameter_Block_Pack): Populate a wrapped parameter block with the
11559 values of actual parameters.
11560 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
11561 block and assign them to the original actual parameters.
11563 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
11564 (Build_Protected_Sub_Specification): Change the type and name of the
11565 last formal to account for the increased variety of protection modes.
11567 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
11568 entities. Used to save the value of the Is_Hidden attribute when the
11569 limited-view is installed.
11570 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
11571 the attribute of procedures classified as entry wrappers.
11572 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
11573 entity of a primitive wrapper.
11574 (Write_Entity_Flags): Output the name and value of the
11575 Is_Primitive_Wrapper attribute.
11576 (Write_Field27_Name): Output the name and entity of the field Wrapped_
11578 (Underlying_Type): If we have an incomplete entity that comes from
11579 the limited view then we return the Underlying_Type of its non-limited
11580 view if it is already available.
11581 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
11582 including operators.
11583 (Write_Field26_Name): Add entry for Overridden_Operation
11584 (Overridden_Operation): New attribute of functions and procedures.
11586 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
11587 predefined position in the dispatch table for the primitive operations
11588 used in dispatching selects.
11589 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
11590 predefined primitive operations and replace it with
11591 Default_Prim_Op_Count.
11592 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
11593 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
11594 the names of the generated primitive operations used in dispatching
11596 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
11597 case of abstract interface types. They will be inherit by the objects
11598 implementing the interface.
11599 (Make_DT): There is no need to inherit the dispatch table of the
11600 ancestor interface for the elaboration of abstract interface types.
11601 The dispatch table will be inherited by the object implementing the
11603 (Copy_Secondary_DTs): Add documentation.
11604 (Validate_Position): Improve this static check in case of
11605 aliased subprograms because aliased subprograms must have
11607 (Init_Predefined_Interface_Primitives): New subprogram that initializes
11608 the entries associated with predefined primitives of all the secondary
11610 (Build_Anonymous_Access_Type): Removed.
11611 (Expand_Interface_Actuals): With the previous cleanup there is no need
11612 to build an anonymous access type. This allows further cleanup in the
11613 code generated by the expander.
11614 (Expand_Interface_Conversion): If the actual is an access type then
11615 build an internal function to handle the displacement. If the actual
11616 is null this function returns null because no displacement is
11617 required; otherwise performs a type conversion that will be
11618 expanded in the code that returns the value of the displaced actual.
11619 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
11620 conversions that have no effect in the generated code because no
11621 displacement is required. Code cleanup; use local variables to
11622 avoid repeated calls to the subprogram directly_designated_type().
11624 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
11625 Classify the primitive operations used in dispatching selects as
11627 (Implements_Limited_Interface): Determine whether some type either
11628 directly implements a limited interface or extends a type that
11629 implements a limited interface.
11630 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
11631 (Expand_Subtype_From_Expr): Do not build actual subtype if the
11632 expression is limited.
11633 (Find_Interface_Tag): Add code to handle class-wide types and
11634 entities from the limited-view.
11636 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
11637 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
11638 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
11639 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
11642 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
11643 of procedure name or prefix that appears as a trigger in a triggering
11646 * uintp.ads: Introduce constants Uint_11 and Uint_13.
11648 2005-09-01 Arnaud Charlet <charlet@adacore.com>
11650 * s-tataat.adb, a-tasatt.adb:
11651 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
11653 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
11654 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
11655 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
11658 2005-09-01 Arnaud Charlet <charlet@adacore.com>
11659 Jose Ruiz <ruiz@adacore.com>
11661 * s-taprop-vxworks.adb:
11662 Move with clauses outside Warnings Off now that dependent units are
11664 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
11665 initialization of this unit.
11666 (Specific): Add new procedures Initialize and Delete so that this
11667 package can be used for VxWorks 5.x and 6.x
11668 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
11669 differences between VxWorks 5.x and 6.x
11670 Minor reformatting.
11671 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
11673 Use only Preelaborate-compatible constructs.
11675 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
11676 Primitives.Operations.
11677 (Delete, Initialize): New procedures.
11679 * s-osinte-vxworks.adb: Body used to handle differences between
11680 VxWorks 5.x and 6.x
11681 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
11683 * s-osinte-vxworks.ads: Minor reformatting.
11684 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
11685 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
11687 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
11688 between Vxworks 5 and 6.
11689 (taskLock, taskUnlock): Removeed, no longer used.
11691 * adaint.c: The wait.h header is not located in the sys directory on
11692 VxWorks when using RTPs.
11693 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
11695 (__gnat_dup): dup is available on Vxworks when using RTPs.
11696 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
11698 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
11700 * expect.c: The wait.h header is not located in the sys directory on
11701 VxWorks when using RTPs.
11703 2005-09-01 Thomas Quinot <quinot@adacore.com>
11705 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
11707 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
11709 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
11710 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
11711 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
11712 g-soccon-freebsd.ads: Add new constants:
11714 SO_RCVTIMEO/SO_SNDTIMEO
11718 Move all target-specific file inclusions and macro definitions to
11719 gsocket.h, in order to ensure that any C code in socket.c will see a
11720 set of constants that is consistent with the contents of g-soccon.ads.
11722 * gsocket.h: Code imported from gen-soccon.c:
11723 Move all target-specific file inclusions and macro definitions to
11724 gsocket.h, in order to ensure that any C code in socket.c will see a set
11725 of constants that is consistent with the contents of g-soccon.ads.
11726 This change also makes gen-soccon self-contained (removing dependencies
11727 upon GCC internal headers).
11729 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
11731 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
11733 * socket.c: Minor reformatting.
11735 2005-09-01 Ed Schonberg <schonberg@adacore.com>
11736 Thomas Quinot <quinot@adacore.com>
11738 * fname-sf.adb, mlib-tgt.ads,
11739 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
11740 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
11741 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
11742 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
11743 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
11744 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
11745 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
11746 makegpr.adb: Remove redundant use_clauses.
11748 2005-09-01 Arnaud Charlet <charlet@adacore.com>
11750 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
11751 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
11752 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
11753 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
11754 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
11755 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
11756 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
11757 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
11758 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
11759 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
11760 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
11761 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
11762 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
11763 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
11764 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
11765 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
11766 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
11767 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
11768 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
11769 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
11770 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
11771 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
11772 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
11773 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
11774 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
11775 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
11776 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
11777 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
11778 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
11779 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
11780 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
11781 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
11782 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
11783 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
11784 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
11785 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
11786 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
11787 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
11788 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
11789 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
11790 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
11791 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
11792 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
11793 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
11794 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
11795 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
11796 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
11797 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
11798 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
11799 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
11800 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
11801 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
11802 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
11803 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
11804 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
11805 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
11806 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
11807 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
11808 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
11809 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
11810 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
11811 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
11812 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
11813 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
11814 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
11815 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
11816 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
11817 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
11818 and always use the no parameter form for consistency.
11820 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
11822 2005-09-01 Robert Dewar <dewar@adacore.com>
11824 * binde.adb: Minor reformatting
11825 (Find_Elab_Order): Output warning if -p used with static elab order
11827 2005-09-01 Robert Dewar <dewar@adacore.com>
11829 * checks.adb (Check_Needed): New procedure, deals with removing checks
11830 based on analysis of short-circuited forms. Also generates warnings for
11831 improper use of non-short-circuited forms.
11834 2005-09-01 Robert Dewar <dewar@adacore.com>
11836 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
11839 2005-09-01 Robert Dewar <dewar@adacore.com>
11841 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
11843 Implement new insertion char < (conditional warning)
11844 * errutil.adb, erroutc.adb: Implement new insertion char <
11845 (conditional warning).
11846 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
11847 (Error_Msg_Warn): New variable for < insertion char.
11848 * prj-nmsc.adb: Implement new errout insertion char < (conditional
11850 (Check_For_Source): Change value of Source_Id only after the current
11851 source has been dealt with.
11853 2005-09-01 Robert Dewar <dewar@adacore.com>
11854 Doug Rupp <rupp@adacore.com>
11856 * exp_attr.adb: Handle vax fpt for 'Valid attribute
11857 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
11858 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
11859 (Valid_D, Valid_F, Valid_G): New functions
11861 2005-09-01 Ed Schonberg <schonberg@adacore.com>
11862 Hristian Kirtchev <kirtchev@adacore.com>
11863 Javier Miranda <miranda@adacore.com>
11865 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
11866 from object notation, the original node is unanalyzed and carries no
11867 semantic information, so that accessiblity checks must be performed on
11868 the type of the actual itself.
11869 (Expand_N_Subprogram_Declaration): Change last actual parameter for
11870 compatibility with Build_Protected_Sub_Specification.
11871 (Check_Overriding_Inherited_Interfaces): Add suport to handle
11872 overloaded primitives.
11873 (Register_Interface_DT_Entry): Use the new name of the formal
11874 the the calls to Expand_Interface_Thunk
11876 * exp_dbug.ads: Augment comments on encoding of protected types to
11877 include the generation of dispatching subprograms when the type
11878 implements at least one interface.
11880 * lib.ads: Extend information in Load_Stack to include whether a given
11881 load comes from a Limited_With_Clause.
11883 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
11884 whether a potential circularity is harmless, because it includes units
11885 loaded through a limited_with clause. Extends previous treatment which
11886 did not handle properly arbitrary combinations of limited and
11887 non-limited clauses.
11889 2005-09-01 Nicolas Setton <setton@adacore.com>
11891 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
11892 to be encoded as typ___XBLU_lowerbound__upperbound instead of
11893 typ___XB_lowerbound__upperbound.
11895 2005-09-01 Thomas Quinot <quinot@adacore.com>
11897 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
11898 dummy access formal for RACW/RAS TypeCode TSS.
11899 (Build_TypeCode_Call): Do not generate dummy null access actual for
11900 calls to the TypeCode TSS.
11902 2005-09-01 Ed Schonberg <schonberg@adacore.com>
11904 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
11905 fully qualified name, to distinguish instances with the same local name.
11907 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
11910 2005-09-01 Robert Dewar <dewar@adacore.com>
11912 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
11915 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
11917 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
11918 (Free): New deallocation procedure for filter elements
11919 (Close): Deallocate any existing filter for the concerned connection
11921 2005-09-01 Laurent Pautet <pautet@adacore.com>
11923 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
11924 position set is provided, we compute one in order to reduce the maximum
11925 length of the keys. This computation first selects a character
11926 position between 1 and the minimum length of the keys in order to
11927 avoid reducing one of the keys to an empty string.
11928 (Initialize, Compute): When the ratio V to K is too low, the algorithm
11929 does not converge. The initialization procedure now comes with a
11930 maximum number of iterations such that when exceeded, an exception is
11931 raised in Compute. The user can initialize this ratio to another value
11933 Reformating and updated headers.
11935 2005-09-01 Javier Miranda <miranda@adacore.com>
11937 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
11938 that given an entity T creates and returns an Itype that duplicates the
11939 contents of T. The returned Itype has the null-exclusion
11940 attribute set to True, and its Etype attribute references T
11941 to keep the association between the two entities.
11942 Update copyright notice
11944 * sem_aggr.adb (Check_Can_Never_Be_Null,
11945 Aggregate_Constraint_Checks, Resolve_Aggregate,
11946 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
11948 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
11950 2005-09-01 Gary Dismukes <dismukes@adacore.com>
11951 Robert Dewar <dewar@adacore.com>
11952 Hristian Kirtchev <kirtchev@adacore.com>
11954 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
11957 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
11959 Call Set_Result_Definition instead of Set_Subtype_Mark.
11960 (P_Subprogram_Specification): Add parsing of anonymous access result
11961 plus null exclusions. Call Set_Result_Definition instead of
11964 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
11965 (P_Access_Type_Definition): Add parsing for an anonymous access result
11966 subtype, plus parsing for null exclusions. Call Set_Result_Definition
11967 instead of Set_Subtype_Mark.
11969 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
11970 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
11971 (Result_Definition): New function for N_Function_Specifications.
11972 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
11973 N_Function_Specification.
11974 (Set_Null_Exclusion_Present): Allow this flag for
11975 N_Function_Specification.
11976 (Set_Result_Definition): New procedure for N_Function_Specifications.
11977 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
11978 and N_Function_Specification.
11980 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
11981 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
11982 Add support for LIMITED NEW for Ada 2005 AI-419
11983 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
11984 syntax for anonymous access results.
11985 Replace Subtype_Mark field by Result_Definition in
11986 N_Function_Specification and N_Access_Definition specs.
11987 Add Null_Exclusion_Present to spec of N_Function_Specification.
11988 (Result_Definition): New function for N_Function_Specification and
11989 N_Access_Function_Definition.
11990 (Set_Result_Definition): New procedure for N_Function_Specification and
11991 N_Access_Function_Definition.
11993 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
11994 Result_Definition for cases of N_Access_Function_Definition and
11995 N_Function_Specification.
11996 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
11998 2005-09-01 Vincent Celier <celier@adacore.com>
12000 * lib-writ.adb: Update Copyright notice
12001 (Write_With_Lines): On platforms where file names are case-insensitive,
12002 record the file names in lower case.
12003 (Write_ALI): For D lines, on platforms where file names are
12004 case-insensitive, record the file names in lower case.
12006 2005-09-01 Ed Schonberg <schonberg@adacore.com>
12007 Emmanuel Briot <briot@adacore.com>
12009 * lib-xref.adb (Output_Overridden_Op): Display information on
12010 overridden operation.
12012 * lib-xref.ads: Add documentation on overridden operations.
12014 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
12017 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
12018 overriding entity information.
12020 2005-09-01 Vincent Celier <celier@adacore.com>
12022 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
12023 including those that are inherited.
12025 2005-09-01 Robert Dewar <dewar@adacore.com>
12027 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
12029 * par-prag.adb: Implement new pragma Debug_Policy
12031 * sem_prag.adb Implement new pragma Debug_Policy
12032 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
12033 Component_Size attribute specification. Give warning for ignored pragma
12036 * snames.h, snames.ads, snames.adb: Introduce entries in
12037 Preset_Names for Name_Disp_Asynchronous_Select,
12038 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
12039 Name_Disp_Timed_Select.
12040 New pragma Debug_Policy
12042 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
12044 Switch -gnata also sets Debug_Pragmas_Enabled
12046 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
12047 handle an explicit -gnata when compiling predefined files.
12049 2005-09-01 Vincent Celier <celier@adacore.com>
12051 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
12052 directories of projects that have no Ada sources.
12054 2005-09-01 Robert Dewar <dewar@adacore.com>
12056 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
12057 (makes a difference for wide characters)
12059 * widechar.adb, widechar.ads:
12060 Add Wide_Char_Byte_Count feature to count chars vs bytes
12062 2005-09-01 Thomas Quinot <quinot@adacore.com>
12063 Ed Schonberg <schonberg@adacore.com>
12064 Robert Dewar <dewar@adacore.com>
12066 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
12067 'Address attribute reference with an overloaded prefix, use the
12068 location of the prefix (not the location of the attribute reference) as
12069 the error location.
12070 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
12071 a function renaming thereof, is a valid prefix for 'Size (where it is
12072 intepreted as a function call).
12073 (Statically_Denotes_Entity): New predicate to determine whether the
12074 prefix of an array attribute can be considered static.
12077 (Eval_Attr): Fix failure to evaluate Component_Size for
12078 unconstrained arrays (resulted in wrong value in packed case, since
12079 back end cannot handle this case)
12081 2005-09-01 Robert Dewar <dewar@adacore.com>
12083 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
12084 error msgs for most common cases.
12085 Use new errout insertion char < (conditional warning)
12087 2005-09-01 Javier Miranda <miranda@adacore.com>
12088 Ed Schonberg <schonberg@adacore.com>
12090 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
12091 become local to the whole package.
12092 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
12093 the package was already analyzed the new algorithm "replaces" the
12094 real entities by the shadow ones. This is required to ensure that
12095 the order of these entities in the homonym chains does not change;
12096 otherwise we can have undefined references at linking time because
12097 in case of conflicts the external name of the entities will have
12098 a suffix that depends on the order of the entities in the chain.
12099 (Remove_Limited_With_Clause): Complementary code that completes the
12100 new algorithm and replaces the shadow entities by the real ones.
12101 (Install_Limited_Withed_Unit): When unchaining entities before the
12102 installation of the shadow entities, only regular entities of the
12103 public part must be taken into account. This is required to
12104 keep this routine in synch with the work done by Remove_Limited_
12106 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
12107 even if unit is analyzed, because the analysis of the unit is
12108 idempotent in any case, and the limited view of the unit may have to
12109 be installed for proper visibility.
12110 (Expand_Limited_With_Clause): Even if the unit in the implicit
12111 with_clause has been analyzed already, a limited view of the package
12112 must be built for the current context, if it does not exist yet.
12114 2005-09-01 Ed Schonberg <schonberg@adacore.com>
12115 Javier Miranda <miranda@adacore.com>
12116 Gary Dismukes <dismukes@adacore.com>
12118 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
12119 defining entity for the instance body, make a new defining identifier
12120 rather than copying the entity of the spec, to prevent accidental
12121 sharing of the entity list.
12122 (Check_Private_View): When exchanging views of private types, build the
12123 list of exchanged views as a stack, to ensure that on exit the exchanges
12124 are undone in the proper order.
12125 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
12126 Restore the compilation environment in case of instantiation_error.
12127 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
12128 for an anonymous access result.
12129 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
12130 (Formal_Entity): Handle properly the case of a formal package that
12131 denotes a generic package renaming.
12133 2005-09-01 Thomas Quinot <quinot@adacore.com>
12135 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
12136 clause if the array aggregate is surrounded by parentheses.
12138 2005-09-01 Cyrille Comar <comar@adacore.com>
12139 Gary Dismukes <dismukes@adacore.com>
12140 Ed Schonberg <schonberg@adacore.com>
12141 Javier Miranda <miranda@adacore.com>
12143 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
12145 to check if a type is Constrained in cases related to code generation
12146 (rather than semantic checking) since otherwise we do not generate
12147 similar code for mutable private types depending if their
12148 discriminants are visible or not.
12149 (Check_Abstract_Overriding): Do not complain about failure to override
12150 the primitive operations used in dispatching selects since they will
12151 always be overriden at the freeze point of the type.
12152 (Access_Definition): Separate out handling for resetting the scope
12153 of an anonymous access function result type. Retrieve the scope
12154 of the associated function rather than using Current_Scope, which
12155 does not have a consistent value (depends on whether we're in the
12156 middle of analyzing formal parameters). Add ??? comment about
12157 finding a cleaner way to handle the special cases of scope setting.
12158 (Process_Incomplete_Dependents): A protected operation is never a
12159 dispatching operation (only its wrapper may be).
12160 (Build_Derived_Record_Type): In case of tagged private types that
12161 implement interfaces add derivation of predefined primitive
12163 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
12164 by two parameters that are used in case of derivation from abstract
12165 interface types: No_Predefined_Prims is used to avoid the derivation
12166 of predefined primitives from the interface, and Predefined
12167 Prims_Only is used to complete the derivation predefined primitives
12168 in case of private tagged types implementing interfaces.
12169 Fix typo in comments
12170 (Find_Interface_In_Descendant): Protect the frontend against
12171 wrong code with large circularity chains.
12172 (Is_Private_Overriding): Add support for entities overriding interface
12173 subprograms. The test failed because Entities associated with overriden
12174 interface subprograms are always marked as hidden (and used to build
12175 the secondary dispatch table); in this case the overriden entity is
12176 available through the field abstract_interface_alias (cf. override_
12177 dispatching_operation)
12178 (Access_Definition): Set the scope of the type to Current_Scope for the
12179 case of a function with an anonymous access result type.
12180 (Access_Subprogram_Declaration): Handle creation of the type entity for
12181 an access-to-function type with an anonymous access result.
12182 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
12183 in handling for N_Access_Function_Definition.
12184 (Analyze_Subtype_Declaration): Modify the text of error message.
12185 (Derived_Type_Declaration): Modify the text of error message.
12186 (Process_Subtype): Modify the text of error message plus cleanup
12187 of one redundant error message.
12188 (Analyze_Component_Declaration): Code cleanup.
12189 (Analyze_Object_Declaration): Code cleanup.
12190 (Analyze_Subtype_Declaration): Propagate the null-exclusion
12191 attribute in case of access types. Code cleanup.
12192 (Array_Type_Declaration): Code cleanup.
12193 (Process_Discriminants): Create the new null-excluding itype
12194 if required. Code cleanup.
12195 (Process_Subtype): Create the new null-excluding itype if
12196 required. Code cleanup.
12197 (Build_Derived_Record_Type): Code cleanup to avoid calling
12198 twice the subprogram derive_subprograms in case of private
12199 types that implement interfaces. In this particular case the
12200 subprogram Complete_Subprograms_Derivation already does the
12201 job associated with the second call.
12203 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
12204 conversion to the full view when generating an operation for a
12205 discriminant whose type may currently be private.
12207 2005-09-01 Ed Schonberg <schonberg@adacore.com>
12208 Javier Miranda <miranda@adacore.com>
12210 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
12211 V (Obj.F), the rewriting does not involve the indexed component, but
12212 only the selected component itself.
12213 Do not apply the transformation if the analyzed node is an actual of a
12214 call to another subprogram.
12215 (Complete_Object_Operation): Retain the entity of the
12216 dispatching operation in the selector of the rewritten node. The
12217 entity will be used in the expansion of dispatching selects.
12218 (Analyze_One_Call): Improve location of the error message associated
12220 (Analyze_Selected_Component): No need to resolve prefix when it is a
12221 function call, resolution is done when parent node is resolved, as
12223 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
12224 when attempting to resolve a call transformed from its object notation.
12225 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
12226 of the argument list for each interpretation of the operation.
12227 (Try_Object_Operation): The designated type of an access parameter may
12228 be an incomplete type obtained through a limited_with clause, in which
12229 case the primitive operations of the type are retrieved from its full
12231 (Analyze_Call): If this is an indirect call, and the return type of the
12232 access_to_subprogram is incomplete, use its full view if available.
12234 2005-09-01 Javier Miranda <miranda@adacore.com>
12235 Gary Dismukes <dismukes@adacore.com>
12237 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
12238 access types the null-exclusion and access-to-constant attributes must
12240 (Analyze_Return_Statement): When the result type is an anonymous access
12241 type, apply a conversion of the return expression to the access type
12242 to ensure that appropriate accessibility checks are performed.
12243 (Analyze_Return_Type): For the case of an anonymous access result type,
12244 generate the Itype and set Is_Local_Anonymous_Access on the type.
12245 Add ??? placeholder for check to disallow returning a limited object
12246 in Ada 2005 unless it's an aggregate or a result of a function call.
12247 Change calls from Subtype_Mark to Result_Definition.
12248 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
12249 Result_Definition in call to Make_Function_Specification.
12250 (Build_Body_To_Inline): Change Set_Subtype_Mark to
12251 Set_Result_Definition.
12252 (Make_Inequality_Operator): Change formal Subtype_Mark to
12253 Result_Definition in call to Make_Function_Specification.
12254 (Process_Formals): Create the new null-excluding itype if required.
12255 (New_Overloaded_Entity): For an entity overriding an interface primitive
12256 check if the entity also covers other abstract subprograms in the same
12257 scope. This is required to handle the general case, that is, overriding
12258 other interface primitives and overriding abstract subprograms inherited
12259 from some abstract ancestor type.
12260 (New_Overloaded_Entity): For an overriding entity that comes from
12261 source, note the operation that it overrides.
12262 (Check_Conformance, Type_Conformant): Addition of one new formal
12263 to skip controlling formals in the analysis. This is used to
12264 handle overloading of abstract interfaces.
12265 (Base_Types_Match): Add missing case for types imported from
12266 limited-with clauses
12267 (New_Overloaded_Entity): Add barrier to protect the use of
12268 the "alias" attribute.
12270 2005-09-01 Ed Schonberg <schonberg@adacore.com>
12272 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
12273 verify that the procedure and the entry are mode conformant.
12274 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
12275 as a different operator, which is often a cut-and-paste error.
12277 2005-09-01 Javier Miranda <miranda@adacore.com>
12278 Ed Schonberg <schonberg@adacore.com>
12280 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
12281 used in controlling parameters exclude null because it is necessary to
12282 read the tag to dispatch, and null has no tag.
12283 (Override_Dispatching_Operation): If the previous operation is inherited
12284 from an interface, it becomes hidden and does not participate in later
12287 2005-09-01 Javier Miranda <miranda@adacore.com>
12288 Ed Schonberg <schonberg@adacore.com>
12289 Gary Dismukes <dismukes@adacore.com>
12291 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
12292 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
12293 the expander will generate the corresponding run-time check to evaluate
12295 (Resolve_Call): Check for legal type of procedure name or prefix that
12296 appears as a trigger in a triggering alternative.
12297 (Valid_Conversion): If expression is ambiguous and the context involves
12298 an extension of System, remove System.Address interpretations.
12299 (Resolve_Qualified_Expression): Reject the case of a specific-type
12300 qualification applied to a class-wide argument. Enhance comment
12301 to explain checking of Original_Node.
12302 (Resolve_Type_Conversion): The location of the error message was not
12303 general enough to handle the general case and hence it has been removed.
12304 In addition, this patch improves the text of the message.
12305 (Resolve_Type_Conversion): Add missing support for access to interface
12307 (Resolve_Type_Conversion): If the target is a class-wide interface type,
12308 do not expand if the expression is the actual in a call, because proper
12309 expansion will take place when the call itself is expanded.
12310 (Resolve_Allocator): If the context is an unchecked conversion, the
12311 allocator inherits its storage pool, if any, from the target type of
12314 2005-09-01 Ed Schonberg <schonberg@adacore.com>
12315 Javier Miranda <miranda@adacore.com>
12317 * sem_type.adb (Add_One_Interp): If a candidate operation is an
12318 inherited interface operation that has an implementation, use the
12319 implementation to avoid spurious ambiguities.
12320 (Interface_Present_In_Ancestor): In case of concurrent types we can't
12321 use the Corresponding_Record_Typ attribute to look for the interface
12322 because it is set by the expander (and hence it is not always
12323 available). For this reason we traverse the list of interfaces
12324 (available in the parent of the concurrent type).
12325 (Interface_Present_In_Ancestor): Handle entities from the limited view
12327 2005-09-01 Ed Schonberg <schonberg@adacore.com>
12329 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
12330 from the list of required components.
12331 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
12332 primitive procedure of a limited interface with a controlling first
12334 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
12336 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
12337 capture if it is generated in the second operand of a short-circuit
12339 Do not capture values for variables with address clauses.
12340 (Is_Object_Reference): Treat a function call as an object reference only
12341 if its type is not Standard_Void_Type.
12343 2005-09-01 Ed Schonberg <schonberg@adacore.com>
12345 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
12346 to a variable that is statically known to be constant.
12348 2005-09-01 Geert Bosch <bosch@adacore.com>
12349 Robert Dewar <dewar@adacore.com>
12351 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
12352 (VAXGF_Safe_First): Idem.
12354 2005-09-01 Robert Dewar <dewar@adacore.com>
12355 Arnaud Charlet <charlet@adacore.com>
12357 * g-dirope.ads: Minor reformatting
12358 Document that bounds of result of Base_Name match the input index
12360 Add documentation on environment variable syntax for Expand_Path
12362 * gnat_ugn.texi: Update documentation to include mention of -m switches
12363 Document new treatment of wide characters in max line length
12365 Remove -gnatL/-gnatZ switches, no longer used.
12366 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
12369 * gnat_rm.texi: Add doc for two argument form of pragma
12370 Float_Representation.
12371 Add documentation for pragma No_Strict_Aliasing
12372 Add note that explicit component clause overrides pragma Pack.
12373 Add documentation of pragma Debug_Policy
12375 2005-09-01 Matthew Heaney <heaney@adacore.com>
12377 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
12378 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
12379 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
12380 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
12381 draft (Draft 13, August 2005) of Ada Amendment 1.
12383 2005-09-01 Arnaud Charlet <charlet@adacore.com>
12385 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
12386 Note that the platform-specific version of g-soccon.ads for VMS is now
12387 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
12388 really is a package spec).
12389 Replace s-taspri-linux.ads by s-taspri-posix.ads
12390 Remove references to s-mastop-x86.adb
12392 * system-vxworks-xscale.ads: Removed, no longer used.
12393 * s-vxwork-xscale.ads: Removed, no longer used.
12395 2005-09-01 Robert Dewar <dewar@adacore.com>
12397 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
12398 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
12399 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
12400 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
12401 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
12402 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
12403 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
12404 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
12405 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
12406 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
12407 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
12408 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
12409 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
12410 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
12411 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
12412 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
12413 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
12414 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
12415 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
12416 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
12417 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
12419 2005-08-29 Arnaud Charlet <charlet@adacore.com>
12423 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
12425 2005-08-29 Arnaud Charlet <charlet@adacore.com>
12426 Doug Rupp <rupp@adacore.com>
12428 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
12430 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
12431 this code in the GNAT run-time.
12433 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
12436 * init.c (__gnat_error_handler [many]): Mark "msg" as const
12437 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
12439 (__gnat_inside_elab_final_code): Moved here from
12440 Standard_Library and only defined for the compiler.
12441 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
12442 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
12443 using RTPs because directly vectored Interrupt routines are not
12444 supported on this configuration.
12445 (getpid): Do not redefine this function on VxWorks when using RTPs
12446 because this primitive is well supported by the RTP libraries.
12447 (copy_msg): Correct the code that checks for buffer overflow.
12448 Discovered during code reading.
12450 2005-08-29 Olivier Hainque <hainque@adacore.com>
12452 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
12453 a library level mutable variable with an initializer, tell
12454 build_allocator to ignore the initializer's size. It may not be large
12455 enough for all the values that might be assigned to the variable later
12458 2005-08-29 Arnaud Charlet <charlet@adacore.com>
12459 Eric Botcazou <ebotcazou@adacore.com>
12461 * trans.c: Protect < in error msg with quote
12462 Replace GCC_ZCX by Back_End_Exceptions.
12463 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
12464 has been sufficiently aligned in the record.
12466 2005-08-15 James E. Wilson <wilson@specifix.com>
12468 * system-linux-alpha.ads: Change ia64 to alpha.
12470 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
12472 * decl.c, utils.c: Fix comment typos.
12474 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
12476 * decl.c, init.c, initialize.c: Fix comment typos.
12478 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
12480 Make CONSTRUCTOR use VEC to store initializers.
12481 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
12483 * trans.c (extract_values): Likewise.
12484 * utils.c (convert, remove_conversions): Likewise.
12485 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
12486 gnat_build_constructor): Likewise.
12488 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
12490 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
12492 (compare_field_bitpos): Likewise.
12494 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
12496 * utils.c (create_var_decl): Only set DECL_COMMON on
12497 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
12498 VAR_OR_FUNCTION_DECL_P.
12500 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
12502 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
12505 2005-07-07 Pascal Obry <obry@adacore.com>
12507 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
12508 returned type on Windows.
12510 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
12513 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
12514 exception in this case.
12515 Simplify the code as "Image (Image'Range)" = "Image".
12517 2005-07-07 Vincent Celier <celier@adacore.com>
12519 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
12520 the destructor/constructor attributes for <lib>final/<lib>init.
12522 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
12524 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
12526 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
12527 type if the parameter is not passed by copy but reference by default.
12529 2005-07-07 Javier Miranda <miranda@adacore.com>
12531 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
12532 Reimplementation of the support for abstract interface types in order
12533 to leave the code more clear and easy to maintain.
12535 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
12536 abstract interface types in order to leave the code clearer and easier
12539 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
12540 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
12541 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
12542 appropriate entry of the secondary dispatch table.
12543 (Make_DT): Add code to inherit the secondary dispatch tables of
12546 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
12547 implementing both functionalities by means of a common routine, each
12548 routine has its own code.
12550 2005-07-07 Javier Miranda <miranda@adacore.com>
12552 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
12554 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
12557 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
12560 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
12561 use of tag incomplete types.
12563 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
12564 give support to tagged incomplete types.
12566 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
12567 expression is a discriminant reference and its type is private, as can
12568 happen within a stream operation for a mutable record, use the full
12569 view of the type to resolve the case alternatives.
12570 (Analyze_Assignment): Check wrong dereference of incomplete types.
12572 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
12575 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
12578 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
12579 N_Incomplete_Type_Declaration nodes.
12581 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
12582 Tag_Present to give support to tagged incomplete types:
12584 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
12587 2005-07-07 Olivier Hainque <hainque@adacore.com>
12590 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
12591 definitions for the Unwind wrappers in the compiler case.
12593 2005-07-07 Ed Schonberg <schonberg@adacore.com>
12594 Javier Miranda <miranda@adacore.com>
12596 * par-load.adb (Load): If a child unit is loaded through a limited_with
12597 clause, each parent must be loaded as a limited unit as well.
12599 * sem_ch10.adb (Previous_Withed_Unit): Better name for
12600 Check_Withed_Unit. Return true if there is a previous with_clause for
12601 this unit, whether limited or not.
12602 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
12604 (Is_Visible_Through_Renamings): New local subprogram of install_limited
12605 _withed_unit that checks if some package installed through normal with
12606 clauses has a renaming declaration of package whose limited-view is
12607 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
12608 of the current Draft document for Ada 2005.
12609 (Analyze_Context): Complete the list of compilation units that
12610 are allowed to contain limited-with clauses. It also contains
12611 checks that were previously done by Install_Limited_Context_Clauses.
12612 This makes the code more clear and easy to maintain.
12613 (Expand_Limited_With_Clause) It is now a local subprogram of
12614 Install_Limited_Context_Clauses, and contains the code that adds
12615 the implicit limited-with clauses for parents of child units.
12616 This functionality was prevously done by Analyze_Context.
12618 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
12621 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
12622 been erroneously named in a limited-with clause of its own context.
12623 In this case the error has been previously notified by Analyze_Context.
12625 2005-07-07 Ed Schonberg <schonberg@adacore.com>
12627 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
12628 generic package that contains local declarations with the same name.
12629 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
12631 2005-07-07 Bernard Banner <banner@adacore.com>
12633 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
12634 ia64 platform only on platforms that you the GCC unwind library
12635 rather than the system unwind library.
12637 2005-07-07 Thomas Quinot <quinot@adacore.com>
12639 * expect.c: Minor reformatting
12641 2005-07-07 Sergey Rybin <rybin@adacore.com>
12643 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
12646 * gnat_ugn.texi: Add description for new gnatpp option
12649 2005-07-04 Thomas Quinot <quinot@adacore.com>
12651 * g-expect-vms.adb, g-expect.ads, g-expect.adb
12652 (Get_Command_Output): New subprogram to launch a process and get its
12653 standard output as a string.
12655 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
12656 Olivier Hainque <hainque@adacore.com>
12658 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
12659 fetch a code-range descriptor associated with the machine state. On
12660 failure set the machine state's PC to 0; on success, pass the
12661 descriptor to exc_virtual_unwind.
12663 * init.c (Tru64 section): New function __gnat_set_code_loc.
12665 2005-07-04 Vincent Celier <celier@adacore.com>
12667 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12668 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
12669 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
12670 Remove all auto-initialization code, as this is now done through the
12671 constructor mechanism.
12673 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
12674 __gnat_sals_init_using_constructors): New functions.
12676 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
12677 Linker_Constructor and Linker_Destructor when switch -a is used.
12679 * bindusg.adb: Add line for new switch -a
12681 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
12682 (Gnatbind): When switch -a is used, check if it is allowed
12684 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
12686 2005-07-04 Joel Brobecker <brobecker@adacore.com>
12688 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
12689 This prevents us from hitting a limitation during the debug info
12690 generation when using stabs.
12691 (Prims_Ptr): Likewise.
12693 2005-07-04 Gary Dismukes <dismukes@adacore.com>
12694 Ed Schonberg <schonberg@adacore.com>
12695 Javier Miranda <miranda@adacore.com>
12697 * checks.adb (Null_Exclusion_Static_Checks): In the case of
12698 N_Object_Declaration, only perform the checks if the Object_Definition
12699 is not an Access_Definition.
12701 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
12702 where the parent of an the access definition is an N_Object_Declaration
12703 when determining the Associated_Node_For_Itype and scope of an
12704 anonymous access-to-subprogram type.
12706 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
12707 Corresponding_Spec on the body created for a null procedure. Add ???
12708 comment. Remove New_Copy_Tree call on body argument to
12709 Set_Body_To_Inline.
12711 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
12712 discriminants, use the type of the actual as well, because the
12713 discriminants may be read by the called subprogram.
12715 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
12716 access type we do not need to handle non-limited views.
12717 (Build_Derived_Record_Type): Additional check to check that in case of
12718 private types, interfaces are only allowed in private extensions.
12720 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
12722 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
12723 <Pragma_Linker_Destructor>: Likewise.
12725 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
12726 Pragma_Linker_Destructor.
12728 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
12729 ATTR_LINK_DESTRUCTOR.
12730 (static_ctors, static_dtors): New variables.
12732 * misc.c (gnat_expand_body): Output current function as constructor
12733 and destructor if requested.
12735 * par-prag.adb: Add processing for pragma Linker_Constructor and
12738 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
12739 extracted from Check_Interrupt_Or_Attach_Handler.
12740 (Check_Interrupt_Or_Attach_Handler): Invoke it.
12741 Implement pragma Linker_Constructor and Linker_Destructor with the
12742 help of Find_Unique_Parameterless_Procedure.
12743 Replace Name_Alias with Name_Target for pragma Linker_Alias.
12745 * snames.h, snames.ads, snames.adb:
12746 Add Name_Linker_Constructor and Name_Linker_Destructor.
12747 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
12748 * snames.adb: Remove Name_Alias.
12750 * trans.c: Include cgraph.h.
12751 (build_global_cdtor): New function.
12752 (Compilation_Unit_to_gnu): Build global constructor and destructor if
12754 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
12756 (addressable_p) <COMPONENT_REF>: Unconditionally test
12757 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
12759 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
12760 variable if it is external.
12762 (static_ctors, static_dtors): New global variables.
12763 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
12764 <ATTR_LINK_DESTRUCTOR>: Likewise.
12765 (end_subprog_body): Chain function as constructor and destructor
12768 * exp_util.adb (Force_Evaluation): Unconditionally invoke
12769 Remove_Side_Effects with Variable_Ref set to true.
12770 (Remove_Side_Effects): Handle scalar types first. Use a renaming
12771 for non-scalar types even if Variable_Ref is true and for class-wide
12774 2005-07-04 Ed Schonberg <schonberg@adacore.com>
12776 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
12777 to prevent spurious warnings.
12779 2005-07-04 Thomas Quinot <quinot@adacore.com>
12781 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
12782 Itypes. Itypes are really unexpected there.
12783 (Build_TypeCode_Function): Generalise special processing for Itypes to
12784 handle the case of numeric implicit base types as well as enumerated
12787 2005-07-04 Ed Schonberg <schonberg@adacore.com>
12789 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
12790 controlled, indicate the expected type of the dereference that is
12791 created for the call to Deep_Finalize, to prevent spurious errors when
12792 the designated type is private and completed with a derivation from
12793 another private type.
12795 2005-07-04 Vincent Celier <celier@adacore.com>
12797 * make.adb (Change_To_Object_Directory): When unable to change the
12798 current dir to the object directory, output the full path of the
12801 2005-07-04 Matthew Gingell <gingell@adacore.com>
12803 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
12805 * indepsw-linux.adb: Replace by...
12807 * indepsw-gnu.adb: ...this new file
12809 2005-07-04 Vincent Celier <celier@adacore.com>
12811 * mlib-prj.adb (Auto_Initialize): New constant String
12812 (SALs_Use_Constructors): New Boolean function
12813 (Build_Library): Call gnatbind with Auto_Initialize switch when
12814 SALs_Use_Constructors returns True.
12816 * mlib-tgt.ads: Minor reformatting
12818 * mlib-utl.ads: Minor reformatting
12820 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
12822 2005-07-04 Ed Schonberg <schonberg@adacore.com>
12824 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
12825 single protected declarations can have an interface list.
12826 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
12827 with seriously malformed entry declarations, and lead to compilation
12828 abandoned messages.
12830 2005-07-04 Javier Miranda <miranda@adacore.com>
12832 * par-load.adb: Load the context items in two rounds.
12834 2005-07-04 Robert Dewar <dewar@adacore.com>
12836 * scng.adb: Do not consider Mod used as an attribute to be a keyword
12838 2005-07-04 Ed Schonberg <schonberg@adacore.com>
12839 Javier Miranda <miranda@adacore.com>
12841 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
12842 type extension needs a limited view.
12843 Remove previous restriction on private types available through the
12844 limited-view (only tagged private types were previously allowed).
12845 (Install_Withed_Unit): In the code that implements the
12846 legality rule given in AI-377, exclude a child unit with the name
12847 Standard, because it is a homonym of the Standard environment package.
12849 2005-07-04 Thomas Quinot <quinot@adacore.com>
12851 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
12852 overloaded function call, carry interpretations from the original tree
12855 2005-07-04 Ed Schonberg <schonberg@adacore.com>
12857 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
12858 types check whether some designated type is a limited view, and use
12859 the non-limited view if available.
12861 2005-07-04 Gary Dismukes <dismukes@adacore.com>
12863 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
12864 constraint of full view of a private view T1 if present, when T2 is a
12865 discriminated full view.
12867 2005-07-04 Thomas Quinot <quinot@adacore.com>
12869 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
12870 actual that is a view conversion of a bit packed array reference.
12872 2005-07-04 Ed Schonberg <schonberg@adacore.com>
12874 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
12875 present before checking whether an interface type covers a synchronized
12878 2005-07-04 Ed Schonberg <schonberg@adacore.com>
12880 * sem_util.adb (Is_Object_Reference): An indexed or selected component
12881 whose prefix is an implicit dereference is an object reference. Removes
12882 spurious errors when compiling with -gnatc.
12884 2005-07-04 Robert Dewar <dewar@adacore.com>
12887 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
12889 2005-07-04 Matthew Gingell <gingell@adacore.com>
12891 * tracebak.c: Enable tracebacks on ia64 platforms
12893 2005-07-04 Vincent Celier <celier@adacore.com>
12895 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
12896 the GNAT BIND command, as gnatbind accepts multiples ALI files with
12897 the -L or -n switches.
12899 2005-07-04 Vincent Celier <celier@adacore.com>
12901 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
12902 correctly computed and the main project data is not modified while
12904 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
12905 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
12906 c++linker as this does not work on some platforms.
12908 2005-07-04 Matthew Heaney <heaney@adacore.com>
12910 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
12912 * a-coinve.adb: Perform constraint checks explicitly.
12914 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12915 Thomas Quinot <quinot@adacore.com>
12917 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
12918 new target gen-soccon.
12920 2005-07-04 Robert Dewar <dewar@adacore.com>
12922 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
12924 2005-07-04 Thomas Quinot <quinot@adacore.com>
12926 * g-socket.ads (Check_Selector): Minor rewording of comment.
12928 2005-07-04 Vincent Celier <celier@adacore.com>
12930 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
12932 2005-07-04 Thomas Quinot <quinot@adacore.com>
12934 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
12936 2005-07-04 Sergey Rybin <rybin@adacore.com>
12938 * gnat_ugn.texi: Add description of --eol gnatpp option
12940 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
12941 Thomas Quinot <quinot@adacore.com>
12943 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
12944 if the user wants all calls of a subprogram to be flagged,
12945 independently of whether they are made from within the same unit or
12947 Mention restriction for pragma Linker_Alias on some platforms.
12948 Document pragma Linker_Constructor and Linker_Destructor.
12949 Rewrite documentation of Weak_External, Linker_Section and
12950 Linker_Alias pragmas.
12952 2005-07-04 Arnaud Charlet <charlet@adacore.com>
12954 * s-stausa.ads, s-stausa.adb: New files.
12956 2005-06-30 Kelley Cook
12958 * all files: Update FSF address in copyright headers.
12959 * gen-soccon.co (main): Output new FSF address in generated files.
12961 2005-06-28 Paul Brook <paul@codesourcery.com>
12963 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
12965 2005-06-14 Olivier Hainque <hainque@adacore.com>
12966 Eric Botcazou <ebotcazou@adacore.com>
12968 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
12969 exc_unwind, now that we are generating proper .debug_frame output for
12972 * tracebak.c: Remove the mips-irix section, as we are now using the
12973 s-mastop based unwinder again.
12974 Under SPARC/Solaris, take into account the stack bias to compute the
12975 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
12978 2005-06-14 Doug Rupp <rupp@adacore.com>
12980 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
12982 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
12984 2005-06-14 Pascal Obry <obry@adacore.com>
12986 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
12987 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
12988 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
12991 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
12992 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
12993 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
12994 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
12995 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
12996 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
12997 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
12998 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
12999 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
13000 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
13001 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
13002 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
13003 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
13004 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
13005 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
13006 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
13007 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
13008 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
13009 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
13010 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
13011 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
13012 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
13013 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
13014 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
13015 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
13016 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
13017 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
13018 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
13019 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
13020 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
13021 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
13022 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
13023 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
13024 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
13025 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
13026 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
13027 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
13028 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
13029 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
13030 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
13031 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
13032 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
13033 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
13034 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
13035 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
13036 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
13037 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
13038 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
13039 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
13040 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
13041 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
13042 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
13043 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
13044 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
13045 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
13046 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
13047 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
13048 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
13049 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
13050 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
13051 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
13052 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
13053 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
13054 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
13055 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
13056 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
13057 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
13058 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
13059 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
13060 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
13061 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
13062 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
13063 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
13064 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
13065 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
13066 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
13067 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
13068 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
13069 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
13070 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
13071 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
13072 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
13073 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
13074 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
13075 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
13076 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
13077 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
13078 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
13079 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
13080 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
13081 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
13082 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
13083 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
13084 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
13085 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
13086 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
13087 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
13088 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
13089 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
13090 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
13091 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
13092 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
13093 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
13094 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
13095 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
13096 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
13097 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
13098 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
13099 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
13100 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
13101 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
13102 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
13103 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
13104 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
13105 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
13106 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
13107 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
13108 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
13109 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
13110 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
13111 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
13112 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
13113 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
13114 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
13115 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
13116 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
13117 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
13118 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
13119 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
13120 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
13121 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
13122 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
13123 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
13125 2005-06-14 Jose Ruiz <ruiz@adacore.com>
13126 Arnaud Charlet <charlet@adacore.com>
13128 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
13129 longer protected objects. They have been replaced by lower-level
13130 suspension objects made up by a mutex and a condition variable (or
13131 their equivalent given a particular OS) plus some internal data to
13132 reflect the state of the suspension object.
13133 (Initialize, Finalize): Add this initialization procedure for
13134 Suspension_Object, which is a controlled type.
13135 (Finalize): Add the finalization procedure for Suspension_Object,
13136 which is a controlled type.
13138 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
13139 Ada.Synchronous_Task_Control because there is no longer a need for a
13140 VxWorks specific version of this package. Target dependencies
13141 has been moved to System.Task_Primitives.Operations.
13143 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
13145 (InitializeCriticalSection, EnterCriticalSection,
13146 LeaveCriticalSection, DeleteCriticalSection): Replace the type
13147 pCriticalSection by an anonymous access type so that we avoid problems
13148 of accessibility to local objects.
13150 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
13151 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
13152 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
13153 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
13154 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
13155 set the environment task mask here.
13156 (Current_State): Add this function that returns the state of the
13158 (Set_False): Add this procedure that sets the state of the suspension
13160 (Set_True): Add this procedure that sets the state of the suspension
13161 object to True, releasing the task that was suspended, if any.
13162 (Suspend_Until_True): Add this procedure that blocks the calling task
13163 until the state of the object is True. Program_Error is raised if
13164 another task is already waiting on that suspension object.
13165 (Initialize): Add this procedure for initializing the suspension
13166 object. It initializes the mutex and the condition variable which are
13167 used for synchronization and queuing, and it sets the internal state
13169 (Finalize): Add this procedure for finalizing the suspension object,
13170 destroying the mutex and the condition variable.
13172 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
13173 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
13174 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
13175 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
13176 which provides a low-level abstraction (using operating system
13177 primitives) for Ada.Synchronous_Task_Control.
13178 This object is made up by a mutex (for ensuring mutual exclusion), a
13179 condition variable (for queuing threads until the condition is
13180 signaled), a Boolean (State) indicating whether the object is open,
13181 and a Boolean (Waiting) reflecting whether there is a task already
13182 suspended on this object.
13184 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
13185 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
13186 s-intman-vms.ads, s-intman-mingw.adb,
13187 (Initialize_Interrupts): Removed, no longer used.
13189 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
13190 (Setup_Interrupt_Mask): New procedure.
13192 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
13194 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
13196 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
13197 this is no longer done in the body of s-taprop
13198 (Server_Task): Explicitely test for Pending_Action in case
13199 System.Parameters.No_Abort is True.
13201 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
13202 is no longer done in the body of s-taprop
13204 2005-06-14 Robert Dewar <dewar@adacore.com>
13206 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
13207 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
13208 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
13209 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
13210 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
13211 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
13212 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
13213 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
13214 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
13215 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
13216 system-linux-hppa.ads, system-vms_64.ads,
13217 system-vxworks-alpha.ads: Minor comment update for
13218 AI-362 (unit is Pure).
13220 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
13221 Add pragma Pure_05 for AI-362
13222 Make remaining conversion functions obsolescent in Ada 95
13224 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
13225 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
13226 Add entries for a-wichun and a-zchuni
13227 Add a-widcha a-zchara for AI-395
13228 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
13230 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
13231 Add entries for a-wichun.o and a-zchuni.o
13232 Entries for a-widcha.o and a-zchara.o
13233 Add entry for a-chacon.o
13235 * a-ztenau.adb: Add with of Ada.Characters.Conversions
13237 * a-chacon.ads, a-chacon.adb: New files.
13239 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
13240 categorization violations.
13242 * a-strmap.ads: Add pragma Pure_05 for AI-362
13243 * a-strmap.ads: Add note on implicit categorization for AI-362
13245 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
13247 * par-prag.adb: Dummy entry for pragma Persistent_BSS
13248 Set Ada_Version_Explicit, for implementation of AI-362
13249 Add processing for pragma Pure_05 and Preelaborate_05
13250 Add entry for Assertion_Policy pragma
13252 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
13253 when needed for proper processing of categorization stuff
13256 For several cases, make errors in preealborate units warnings,
13257 instead of errors, if GNAT_Mode is set. For AI-362.
13259 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
13260 preelaborate unit is now warning if in GNAT mode
13262 * s-stoele.ads: Document AI-362 for pragma preelaborate
13264 2005-06-14 Doug Rupp <rupp@adacore.com>
13266 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
13267 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
13268 Default_Exception_Msg_Max_Length: new parameter.
13270 * a-except.ads: (Exception_Msg_Max_Length): Set to
13271 System.Parameters.Default_Exception_Msg_Max_Length
13272 Add pragma Preelaborate_05 for AI-362
13273 Add warnings off to allow categorization violations for AI-362
13275 2005-06-14 Vincent Celier <celier@adacore.com>
13277 * gnatsym.adb: Adapt to modification of package Symbols: procedure
13278 Process is now in package Processing.
13280 * symbols.ads, symbols.adb:
13281 (Processing): New package, containing procedure Process
13283 * symbols-vms-alpha.adb:
13284 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
13286 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
13287 symbols-processing-vms-ia64.adb: New files.
13289 2005-06-14 Pascal Obry <obry@adacore.com>
13291 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
13292 implementation. This new version generates the proper DllMain routine
13293 to initialize the SAL. The DllMain is generated in Ada and compiled
13294 before being added as option to the library build command.
13296 2005-06-14 Doug Rupp <rupp@adacore.com>
13297 Pascal Obry <obry@adacore.com>
13299 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
13300 call to decc$translate_vms.
13301 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
13302 need to remove those quotes before catenating the filename.
13303 (__gnat_locate_exec_on_path): improvements to the Win32 section:
13304 * avoid allocating the memory twice for better efficiency;
13305 * allocate 32K buffer for environment expansion as suggested by MSDN;
13306 * prepend ".;" to the path so that current directory is searched too.
13308 2005-06-14 Robert Dewar <dewar@adacore.com>
13310 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
13311 instead of raising CE (AI-241)
13312 Add warnings off to allow categorization violations for AI-362
13314 2005-06-14 Robert Dewar <dewar@adacore.com>
13316 * ali-util.adb, gnatbind.adb: Remove references to
13317 Force_RM_Elaboration_Order.
13319 * switch-b.adb: Remove recognition of -f switch
13321 2005-06-14 Pascal Obry <obry@adacore.com>
13323 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
13324 implementation which is slightly more efficient.
13326 2005-06-14 Gary Dismukes <dismukes@adacore.com>
13327 Javier Miranda <miranda@adacore.com>
13328 Ed Schonberg <schonberg@adacore.com>
13329 Hristian Kirtchev <kirtchev@adacore.com>
13331 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
13332 allocator's designated type is a class-wide type, and compiling for
13333 Ada 2005, emit a run-time check that the accessibility level of the
13334 type given in the allocator's expression is not deeper than the level
13335 of the allocator's access type.
13337 (Tagged_Membership): Modified to gives support to abstract interface
13340 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
13342 (Descendant_Tag): New predefined function
13343 (Is_Descendant_At_Same_Level): New predefined function
13344 (Get_Access_Level): New private function
13345 (Set_Access_Level): New private procedure
13346 (IW_Membership): New function. Given the tag of an object and the tag
13347 associated with an interface, evaluate if the object implements the
13349 (Register_Interface_Tag): New procedure used to initialize the table of
13350 interfaces used by the IW_Membership function.
13351 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
13352 of the dispatch table.
13353 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
13354 table of interfaces of the parent.
13355 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
13356 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
13357 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
13358 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
13359 Ada 2005 semantics for the new predefined function.
13361 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
13362 call to Descendant_Tag rather than Internal_Tag.
13363 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
13364 the accessibility level of the attribute's Item parameter is not deeper
13365 than the level of the attribute's prefix type. Tag_Error is raised if
13366 the check fails. The check is only emitted for Ada_05.
13367 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
13368 requested stream attribute, use it.
13369 (Expand_N_Attribute_Reference): If the designated type is an interface
13370 then rewrite the referenced object as a conversion to force the
13371 displacement of the pointer to the secondary dispatch table.
13372 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
13373 is a dereference of an object with a constrained partial view.
13375 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
13376 type is a class-wide type, emit a run-time check that the accessibility
13377 level of the returned object is not deeper than the level of the
13378 function's master (only when compiling for Ada 2005).
13380 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
13381 Action_Nb_Arg): Add entries for new Get_Access_Level and
13382 Set_Access_Level routines in these tables.
13383 (Make_DT): Generate a call to set the accessibility level of the
13384 tagged type in its TSD.
13385 (Make_DT): Code cleanup. The functionality of generating all the
13386 secondary dispatch tables has been moved to freeze_record_type.
13387 (Make_Abstract_Interface_DT): Minor code cleanup.
13388 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
13389 this subprogram implements a new algorithm that provides the
13390 same functionality and it is more clear in case of primitives
13391 associated with abstract interfaces.
13392 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
13393 clean up, the functionality of this subprogram is now provided
13394 by Set_All_DT_Position.
13395 (Write_DT): New subprogram: a debugging procedure designed to be called
13396 within gdb to display the dispatch tables associated with a tagged
13398 (Collect_All_Interfaces): New subprogram that collects the whole list
13399 of interfaces that are directly or indirectly implemented by a tagged
13401 (Default_Prim_Op_Position): New subprogram that returns the fixed
13402 position in the dispatch table of the default primitive operations.
13403 (Expand_Interface_Actuals): New subprogram to generate code that
13404 displaces all the actuals corresponding to class-wide interfaces to
13405 reference the interface tag of the actual object.
13406 (Expand_Interface_Conversion): New subprogram. Reference the base of
13407 the object to give access to the interface tag associated with the
13408 secondary dispatch table.
13409 (Expand_Interface_Thunk): New subprogram that generates the code of the
13410 thunk. This is required for compatibility with the C+ ABI.
13411 (Make_Abstract_Interface_DT): New subprogram that generate the
13412 declarations for the secondary dispatch tables associated with an
13413 abstract interface.
13414 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
13415 attribute for each primitive operation covering interface subprograms
13416 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
13417 These subprograms were upgraded to give support to abstract interfaces
13419 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
13420 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
13421 RE_Set_Access_Level.
13422 (RE_Unit_Table): Add entries for new Ada.Tags operations.
13423 Add support to call the followig new run-time subprograms:
13424 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
13426 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
13427 match its full declaration when both have an access definition with
13428 statically matching designated subtypes.
13429 (Analyze_Component_Declaration): Delete commented out code that was
13430 incorrectly setting the scope of an anonymous access component's type.
13431 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
13432 an access discriminant when the containing type is nonlimited.
13433 (Make_Incomplete_Type_Declaration): Create an incomplete type
13434 declaration for a record type that includes self-referential access
13436 (Check_Anonymous_Access_Types): Before full analysis of a record type
13437 declaration, create anonymous access types for each self-referential
13439 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
13440 an access component in this context is a Local_Anonymous_Access, for
13441 proper accessibility checks.
13442 (Access_Definition): Set properly the scope of the anonymous access type
13443 created for a stand-alone access object.
13444 (Find_Type_Of_Object): An object declaration may be given with an access
13446 (Complete_Subprograms_Derivation): New subprogram used to complete
13447 type derivation of private tagged types implementing interfaces.
13448 In this case some interface primitives may have been overriden
13449 with the partial-view and, instead of re-calculating them, they
13450 are included in the list of primitive operations of the full-view.
13451 (Build_Derived_Record_Type): Modified to give support to private
13452 types implemening interfaces.
13453 (Access_Definition): Reject ALL on anonymous access types.
13454 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
13455 type derivation to occur at a deeper accessibility level than the
13457 For the case of derivation within a generic body however, disallow the
13458 derivation if the derived type has an ancestor that is a formal type
13459 declared in the formal part of an enclosing generic.
13460 (Analyze_Object_Declaration): For protected objects, remove the check
13461 that they cannot contain interrupt handlers if not declared at library
13463 (Add_Interface_Tag_Components): New subprogram to add the tag components
13464 corresponding to all the abstract interface types implemented by a
13465 record type or a derived record type.
13466 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
13467 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
13468 Process_Full_View, Record_Type_Declaration): Modified to give
13469 support to abstract interface types
13470 (Collect_Interfaces): New subprogram that collects the list of
13471 interfaces that are not already implemented by the ancestors
13472 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
13473 when partial view has no discriminants and full view has defaults.
13474 (Constrain_Access): Reject a constraint on a general access type
13475 if the discriminants of the designated type have defaults.
13476 (Access_Subprogram_Declaration): Associate the Itype node with the inner
13477 full-type declaration or subprogram spec. This is required to handle
13478 nested anonymous declarations.
13479 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
13480 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
13481 Process_Full_View, Record_Type_Declaration): Modified to give
13482 support to abstract interface types
13483 (Derive_Subprograms): Addition of a new formal to indicate if
13484 we are in the case of an abstact-interface derivation
13485 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
13486 to the specification because it is requied to analyze all the
13487 identifiers found in a list of interfaces
13489 * debug.adb: Complete documentation of flag "-gnatdZ"
13491 * exp_ch3.adb: Implement config version of persistent_bss pragma
13492 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
13493 testing for TSS presence to properly enforce visibility rules.
13494 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
13495 Make_Abstract_Interfaces_DT to generate the secondary tables
13496 associated with abstract interfaces.
13497 (Build_Init_Procedure): Modified to initialize all the tags
13499 (Component_Needs_Simple_Initialization): Similar to other tags,
13500 interface tags do not need initialization.
13501 (Freeze_Record_Type): Modified to give support to abstract interface
13503 (Expand_N_Object_Declaration): Do not generate an initialization for
13504 a scalar temporary marked as internal.
13506 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
13507 in-out parameter that is a component in an initialization procedure,
13508 whose constraint might depend on discriminants, and that may be
13509 misaligned because of packing or representation clauses.
13510 (Is_Legal_Copy): New predicate to determine whether a possibly
13511 misaligned in-out actual can actually be passed by copy/return. This
13512 is an error in case the type is by_reference, and a warning if this is
13513 the consequence of a DEC import pragma on the subprogram.
13514 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
13516 (Expand_Inlined_Call): Mark temporary generated for the return value as
13517 internal, so that no useless scalar normalization is generated for it.
13518 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
13519 null procedure can always be inlined.
13520 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
13521 procedure, generate an explicit empty body for it.
13523 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
13524 Given a type implementing an interface, returns the corresponding
13525 access_disp_table value.
13526 (Find_Interface_Tag): New subprogram. Given a type implementing an
13527 interface, returns the record component containing the tag of the
13529 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
13530 previous ones that return the corresponding tag and access_disp_table
13532 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
13533 is a predefined primitive operation.
13534 (Expand_Subtype_From_Expr): If the expression is a selected component
13535 within an initialization procedure, compute its actual subtype, because
13536 the component may depend on the discriminants of the enclosing record.
13538 * i-cpp.ads, i-cpp.adb:
13539 This package has been left available for compatibility with previous
13540 versions of the frontend. As part of the new layout this is now a
13541 dummy package that uses declarations available at a-tags.ads
13543 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
13544 "constant access" and "aliased [constant] access" when not compiling
13546 Suppress Ada 2005 keyword warning if -gnatwY used
13547 (P_Identifier_Declarations): Add support for object declarations with
13548 access definitions.
13549 (Private_Extension_Declaration): Complete the documentation
13550 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
13551 attribute in case of private extension declaration
13552 (P_Type_Declaration): Mark as "abstract" the type declarations
13553 corresponding with protected, synchronized and task interfaces
13554 (P_Declarative_Items): "not" and "overriding" are overriding indicators
13555 for a subprogram or instance declaration.
13557 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
13558 instantiation that is a dispatching operation has controlling access
13559 parameters that are null excluding.
13560 Save and restore Ada_Version_Explicit, for implementation of AI-362
13561 (Validate_Derived_Type_Instance): Add check for abstract interface
13563 (Analyze_Formal_Package): Establish Instantiation source for the copy of
13564 the generic that is created to represent the formal package.
13565 (Analyze_Package_Instantiation): Instantiate body immediately if the
13566 package is a predefined unit that contains inlined subprograms, and
13567 we are compiling for a Configurable_Run_Time.
13568 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
13569 If the program has a null default, generate an empty body for it.
13571 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
13572 error message condition, null procedures are correctly detected now.
13573 (New_Overloaded_Entity): Bypass trivial overriding indicator check
13574 for subprograms in the context of protected types. Instead, the
13575 indicator is examined in Sem_Ch9 while analysing the subprogram
13577 (Check_Overriding_Indicator): Check consistency of overriding indicator
13578 on subprogram stubs as well.
13579 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
13581 (Analize_Subprogram_Specification): When analyzing a subprogram in which
13582 the type of the first formal is a concurrent type, replace this type
13583 by the corresponding record type.
13584 (Analyze_Subprogram_Body): Undo the previous work.
13585 (Analyze_Procedure_Call): If the call has the form Object.Op, the
13586 analysis of the prefix ends up analyzing the call itself, after which
13588 (Has_Interface_Formals): New subprogram subsidiary to analyze
13589 subprogram_specification that returns true if some non
13590 class-wide interface subprogram is found
13591 (New_Overloaded_Entity): Modified to give support to abstract
13593 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
13594 access to subprograms must be recursive.
13595 (Is_Unchecked_Conversion): Improve the test that recognizes
13596 instantiations of Unchecked_Conversion, and allows them in bodies that
13597 are to be inlined by the front-end. When the body comes from an
13598 instantiation, a reference to Unchecked_Conversion will be an
13599 Expanded_Name, even though the body has not been analyzed yet.
13600 Replace Is_Overriding and Not_Overriding in subprogram_indication with
13601 Must_Override and Must_Not_Override, to better express intent of AI.
13602 (Analyze_Subprogram_Body): If an overriding indicator is given, check
13603 that it is consistent with the overrinding status of the subprogram
13605 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
13607 If the subprogram is a null procedure, indicate that it does not need
13610 * sem_disp.adb (Check_Controlling_Type): Give support to entities
13611 available through limited-with clauses.
13612 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
13613 allowed as the last primitive of a tagged type if it has no previous
13615 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
13616 to give support to abstract interface types
13618 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
13619 in the case where the target type is an anonymous access type of an
13620 object or component (that is, when Is_Local_Anonymous_Access is true).
13621 Prevent the special checks for conversions of access discriminants in
13622 the case where the discriminant belongs to a nonlimited type, since
13623 such discriminants have their accessibility level defined in the same
13624 way as a normal component of an anonymous access type.
13625 (Resolve_Allocator): When an allocator's designated type is a class-wide
13626 type, check that the accessibility level of type given in the
13627 allocator's expression or subtype indication is not statically deeper
13628 than the level of the allocator's access type.
13629 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
13630 name in a discriminant constraint of a record component.
13631 (Resolve_Explicit_Dereference): Do not check whether the type is
13632 incomplete when the dereference is a use of an access discriminant in
13633 an initialization procedure.
13634 (Resolve_Type_Conversion): Handle conversions to abstract interface
13636 (Valid_Tagged_Conversion): The conversion of a tagged type to an
13637 abstract interface type is always valid.
13638 (Valid_Conversion): Modified to give support to abstract interface types
13639 (Resolve_Actuals): Enable full error reporting on view conversions
13640 between unrelated by_reference array types.
13641 The rule for view conversions of arrays with aliased components is
13642 weakened in Ada 2005.
13643 Call to obsolescent subprogram is now considered to be a violation of
13644 pragma Restrictions (No_Obsolescent_Features).
13645 (Check_Direct_Boolean_Operator): If the boolean operation has been
13646 constant-folded, there is nothing to check.
13647 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
13648 check on possible violation of restriction No_Direct_Boolean_Operators
13649 until after expansion of operands, to prevent spurious errors when
13650 operation is constant-folded.
13652 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
13653 Has_Compatible_Type): Modified to give support to abstract interface
13655 (Interface_Present_In_Ancestor): New function to theck if some ancestor
13656 of a given type implements a given interface
13658 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
13659 prefix is a parameterless function that returns an access_to_procedure.
13660 (Transform_Object_Operation): Handle properly function calls of the
13661 form Obj.Op (X), which prior to analysis appear as indexed components.
13662 (Analyze_One_Call): Complete the error notification to help new Ada
13664 (Analyze_Allocator): For an allocator without an initial value, where
13665 the designated type has a constrained partial view, a discriminant
13666 constraint is illegal.
13668 2005-06-14 Robert Dewar <dewar@adacore.com>
13670 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
13671 do with treatment of Set_Col when positioned at end of line character.
13673 2005-06-14 Robert Dewar <dewar@adacore.com>
13675 * atree.adb: (Elist*): Protect against uninitialized field
13677 2005-06-14 Ed Schonberg <schonberg@adacore.com>
13679 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
13680 for an attribute reference that returns an access type.
13681 (Apply_Discriminant_Check): No need for check if (designated) type has
13682 constrained partial view.
13684 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
13685 both bound checks, rather than a conjunction.
13686 (Insert_Valid_Check): If the expression is an actual that is an indexed
13687 component of a bit-packed array, force expansion of the packed element
13688 reference, because it is specifically inhibited elsewhere.
13690 2005-06-14 Vincent Celier <celier@adacore.com>
13692 * clean.adb (Clean_Project): Correctly delete executable specified as
13693 absolute path names.
13695 * make.adb (Gnatmake): Allow relative executable path names with
13696 directory information even when project files are used.
13697 (Change_To_Object_Directory): Fail gracefully when unable to change
13698 current working directory to object directory of a project.
13699 (Gnatmake): Remove exception handler that could no longer be exercized
13700 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
13701 may be deallocated by Normalize_Arguments.
13702 (Collect_Arguments): Eliminate empty arguments
13704 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
13705 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
13706 (Check_Project): Return False when Project is No_Project. Return True
13707 when All_Projects is True.
13708 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
13709 All_Projects to True.
13712 2005-06-14 Ed Schonberg <schonberg@adacore.com>
13713 Javier Miranda <miranda@adacore.com>
13714 Thomas Quinot <quinot@adacore.com>
13715 Robert Dewar <dewar@adacore.com>
13716 Hristian Kirtchev <kirtchev@adacore.com>
13717 Gary Dismukes <dismukes@adacore.com>
13719 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
13720 anonymous access types, to indicate that the accessibility level of
13721 the type is determined by that of the enclosing declaration.
13722 (Has_Persistent_BSS): New flag
13723 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
13724 of this attribute with functions.
13725 (Is_Primitive_Wrapper): Remove the barrier.
13726 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
13727 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
13729 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
13730 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
13732 (Is_Pure_Unit_Access_Type): New flag
13733 (Abstract_Interfaces): Complete the assertion to cover all usages.
13734 (Set_Is_Interface): Complete the assertion to cover all usages.
13735 (Is_Primitive_Wrapper): New attribute.
13736 (Is_Obsolescent): Now applies to all entities (though it is only set
13737 for subprograms currently)
13738 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
13739 which solves various problems concerning access subtypes.
13740 (Has_Persistent_BSS): New flag
13741 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
13742 Remove these subprograms because this attribute is currently
13745 Has_Specified_Stream_Input (Flag190)
13746 Has_Specified_Stream_Output (Flag191)
13747 Has_Specified_Stream_Read (Flag192)
13748 Has_Specified_Stream_Write (Flag193)
13749 Present in all type and subtype entities. Set for a given view if the
13750 corresponding stream-oriented attribute has been defined by an
13751 attribute definition clause. When such a clause occurs, a TSS is set
13752 on the underlying full view; the flags are used to track visibility of
13753 the attribute definition clause for partial or incomplete views.
13754 (Is_Pure_Unit_Access_Type): New flag
13755 Clarify use of Is_Internal.
13756 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
13757 internally generated to wrap the invocation of tasks and protected
13758 types that implement interfaces.
13759 (Implementation_Base_Type): Documentation correction
13760 (Is_Obsolescent): Now applies to all entities (though it is only set
13761 for subprograms currently)
13762 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
13763 which solves various problems concerning access subtypes.
13765 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
13766 for examined parameters. Identify unequal parameter list lengths as
13767 non-conformant parameters.
13768 (Overriding_Possible): Do not check for "All" qualifier in declaration
13769 of controlling access parameter, following prescription of AI-404.
13770 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
13771 that build the procedure body that wraps an entry invocation
13772 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
13773 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
13774 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
13775 give support to abstract interface types
13777 * freeze.adb (Freeze_Entity): Issue error message if
13778 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
13779 type has no storage pool (Ada 2005) AI-366.
13780 Also modified to give support to abstract interface types
13781 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
13782 Inline_Always pragma.
13784 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
13785 now begin an entry declaration.
13786 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
13787 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
13788 a subprogram declaration preceded by an overriding indicator.
13789 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
13790 declarations or subprogram declarations preceded by reserved words
13791 "not" or "overriding".
13792 (P_Entry_Declaration): Update comment. Parse and check overriding
13793 indicator, set semantic flags of entry declarations.
13794 (P_Task): New error message in case of private applied
13795 to a task type declaration.
13796 (P_Protected): New error message in case of private applied
13797 to a task type declaration.
13799 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
13800 in which the full view of a type implementing an interface is a
13802 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
13803 Declare_Inherited_Private_Subprograms): If an explicit operation
13804 overrides an operation that is inherited in the private part, mark the
13805 explicit one as overriding, to enable overriding indicator checks.
13806 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
13807 full view to partial view, to simplify handling in back-end.
13809 * sprint.adb: Print interface lists where needed: derived types,
13810 protected types, task types.
13811 output "is null" for null procedures. Part of implementation of
13813 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
13814 relaxation of rules for access types in pure, shared passive partitions.
13816 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
13817 first read discriminants into temporary objects, performing checks on
13818 the read values, then possibly performing discriminant checks on the
13819 actual (if it is constrained), and only finally reading the components
13820 into a constrained temporary object.
13821 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
13822 case of reading discriminants of a mutable record type to recognize
13823 the new form of the code generated by
13824 Build_Mutable_Record_Read_Procedure.
13826 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
13827 of a simple call to Make_TSS_Name.
13828 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
13829 buffer, in order for Is_TSS to work correctly on local TSS names.
13831 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
13832 Is_Local_Anonymous_Access to check legaliy of attributes in the
13833 context of access components and stand-alone access objects.
13834 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
13835 treated as available for a limited private type if there is an
13836 attribute_definition_clause that applies to its full view, but not in
13837 other cases where the attribute is available for the full view
13838 (specifically, the sole fact that the full view is non-limited does not
13839 make the attribute available for the partial view).
13840 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
13841 non-overloaded intrinsic subprogram.
13842 (Check_Stream_Attribute): Reject an attribute reference for an
13843 unavailable stream attribute even if the prefix is not a limited type
13844 (case of a 'Input attribute reference for an abstract, non-classwide
13846 (Stream_Attribute_Available): New function to determine whether a stream
13847 attribute is available at a place.
13848 (Check_Attribute): Use Stream_Attribute_Available instead of just
13849 testing for TSS presence on the implementation base type.
13850 (Analyze_Attribute): Modified to give support to task interfaces.
13851 (Analyze_Access_Attribute): Add error check for use of an Access (or
13852 Unrestricted_Access) attribute with a subprogram marked as
13854 (Analyze_Attribute, case Attribute_Address): Add error check for use of
13855 an Address attribute with a subprogram marked as Inline_Always.
13856 Update Eval_Attribute to handle new value of Width from AI-395
13858 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
13859 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
13860 Factor common code across the stream-oriented attribute circcuits into
13861 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
13862 processing is functionally identical to the previous duplicated one,
13863 except that an expression that denotes an abstract subprogram will now
13864 be rejected, as mandated by AI-195 item 5.
13866 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
13867 Is_Local_Anonymous_Access to apply accessibility checks to access
13868 components and stand-alone access objects.
13869 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
13871 (Is_Potentially_Persistent_Type): New function
13872 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
13873 a heap-object whose type has a constrained partial view, the object is
13874 unconstrained and the component may depend on a discriminant, making its
13877 * sinfo.ads, sinfo.adb
13878 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
13879 (Must_Override): Flag applicable to N_Entry_Declaration.
13880 Indicate that interface_list can appear in single task and single
13881 protected declarations.
13882 Replace Is_Overriding and Not_Overriding with Must_Override and
13883 Must_Not_Override, to better express intent of AI.
13884 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
13885 of an overriding indicator in a subprogram or instance.
13886 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
13887 Add the overriding indicator [[not] overriding] construct to the
13888 following grammar productions:
13890 GENERIC_INSTANTIATION
13891 SUBPROGRAM_SPECIFICATION
13893 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
13894 can start with an overriding indicator.
13896 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
13897 flags accordingly on subrogram specifications or instances.
13900 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
13901 overriding_indicator, if present, is consistent with status of spec.
13902 Improve error message for null-excluding checks on controlling access
13904 (Check_In_Previous_With_Clause): Protect the frontend against
13905 previously reported critical errors in the context clauses.
13906 Save and restore Ada_Version_Explicit, for implementation of AI-362
13907 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
13908 operation verify that controlling formals of the renamed entity that
13909 are access parameters are explicitly non-null.
13910 (Find_Expanded_Name): Improve error message when prefix is an illegal
13911 reference to a private child unit.
13913 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
13914 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
13915 Rewrite to correspond to new wide character names in AI-395
13917 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
13918 default procedures.
13920 2005-06-14 Ed Schonberg <schonberg@adacore.com>
13921 Robert Dewar <dewar@adacore.com>
13923 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
13924 code, not on the bodies of predefined operations, to cut down on
13927 2005-06-14 Ed Schonberg <schonberg@adacore.com>
13929 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
13930 be expanded in place. The size computation does not require a
13931 subtraction, which would raise an exception on a compiler built with
13932 assertions when the upper bound is Integer'first.
13933 (Flatten): For an array of composite components, take into account the
13934 size of the components to determine whether it is safe to expand the
13935 array into a purely positional representation.
13937 2005-06-14 Thomas Quinot <quinot@adacore.com>
13939 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
13940 denoting a formal parameter into account.
13942 2005-06-14 Ed Schonberg <schonberg@adacore.com>
13944 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
13945 the entry_call alternative of a conditional entry call, wrap the
13946 conditional entry call itself.
13948 2005-06-14 Nicolas Setton <setton@adacore.com>
13949 Ed Schonberg <schonberg@adacore.com>
13951 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
13952 the "simple_choice" member in a variant record, in accordance with the
13953 description in the package spec: the information output for a constant
13954 should be "S number", not "SS number".
13955 (Get_Encoded_Name): Return at once if not generating code. Avoids name
13956 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
13958 2005-06-14 Thomas Quinot <quinot@adacore.com>
13960 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
13961 RACW without any primitives, do not generate the if statement for
13962 dispatching by name in the PolyORB/DSA case, as it would be malformed
13963 (it would have an Elsif_Parts list that is not No_List, but with a
13966 2005-06-14 Robert Dewar <dewar@adacore.com>
13968 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
13970 2005-06-14 Jose Ruiz <ruiz@adacore.com>
13972 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
13973 can determine whether pragma Suppress_Exception_Locations is in effect.
13975 * utils2.c (build_call_raise): Do not pass the file name to the
13976 exception handler if pragma Suppress_Exception_Locations is in effect.
13977 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
13979 2005-06-14 Emmanuel Briot <briot@adacore.com>
13981 * g-debpoo.adb (Deallocate, Dereference): Improve output.
13983 2005-06-14 Nicolas Roche <roche@adacore.com>
13985 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
13987 (Next_Level): Fix minor bug in handling of ../dir case
13988 (Read): Add dir separator to Directory name so that "" is understood as
13991 2005-06-14 Pascal Obry <obry@adacore.com>
13993 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
13994 releasing the items.
13996 2005-06-14 Vincent Celier <celier@adacore.com>
13997 Cyrille Comar <comar@adacore.com>
13999 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
14000 with output file descriptor and with output file name.
14001 (Dup, Dup2): Now global procedures as they are used by two subprograms
14002 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
14004 2005-06-14 Thomas Quinot <quinot@adacore.com>
14007 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
14009 (Create_Selector): Bind listening socket used to create the signalling
14010 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
14011 Set listen backlog to 1 to ensure that we detect socket theft by a
14012 failure of our own connect(2) call.
14013 (Check_Selector): Improve documentation of the selector mechanism.
14014 (Broadcast_Inet_Addr): New constant.
14016 2005-06-14 Gary Dismukes <dismukes@adacore.com>
14018 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
14019 type which turns out to be an incomplete and incorrect fix.
14020 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
14021 of the type is declared in a record (for determination of insertion
14023 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
14024 a private type and ensure that the primary entity is used for the type
14025 of the newly created function's V formal by taking the Etype of the
14028 2005-06-14 Javier Miranda <miranda@adacore.com>
14029 Jose Ruiz <ruiz@adacore.com>
14030 Robert Dewar <dewar@adacore.com>
14031 Ed Schonberg <schonberg@adacore.com>
14033 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
14034 that indicates if we are parsing a compilation unit found in a
14035 limited-with clause.
14036 It is use to avoid the circularity check.
14038 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
14039 we are parsing a compilation unit found in a limited-with clause. This
14040 is use to avoid the circularity check.
14042 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
14043 unit as a consequence of parsing a limited-with clause. This is used
14044 to avoid the circularity check.
14046 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
14047 (Analyze_Context): Limited-with clauses are now allowed
14048 in more compilation units.
14049 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
14050 againts previously reported critical errors in context clauses
14051 (Install_Limited_Withed_Unit): Code cleanup plus static detection
14052 of two further errors: renamed subprograms and renamed packages
14053 are not allowed in limited with clauses.
14054 (Install_Siblings): Do not install private_with_clauses on the package
14055 declaration for a non-private child unit.
14056 (Re_Install_Parents): When a parent of the subunit is reinstalled,
14057 reset visibility of child units properly.
14058 (Install_Withed_Unit): When a child unit appears in a with_clause of its
14059 parent, it is immediately visible.
14061 2005-06-14 Ed Schonberg <schonberg@adacore.com>
14062 Emmanuel Briot <briot@adacore.com>
14064 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
14065 declared within an inlined body as referenced, to prevent spurious
14067 (Output_One_Ref): If an entity renames an array component, indicate in
14068 the ALI file that this aliases (renames) the array. Capture as well
14069 function renamings that rename predefined operations.
14070 Add information about generic parent for package and subprogram
14072 (Get_Type_Reference): For a subtype that is the renaming of an actual in
14073 an instantiation, use the first_subtype to ensure that we don't generate
14074 cross-reference information for internal types.
14075 For objects and parameters of a generic private type, retain the '*'
14076 indicator to distinguish such an entity from its type.
14078 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
14079 to store information about instantiated entities.
14081 * ali.adb (Scan_ALI): Add support for parsing the reference to the
14084 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
14085 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
14088 2005-06-10 Doug Rupp <rupp@adacore.com>
14089 Arnaud Charlet <charlet@adacore.com>
14090 Olivier Hainque <hainque@adacore.com>
14091 Jose Ruiz <ruiz@adacore.com>
14093 * Make-lang.in: Add initialize.o when needed.
14094 Remove obsolete references to RT_FLAGS.
14095 Add missing dependencies for sdefault.o
14097 * initialize.c: New file.
14099 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
14100 [VMS] cond_signal_table: Fix problem in declaration.
14101 [VMS] __gnat_error_handler: rewrite.
14102 Move all __gnat_initialize() routines to initialize.c
14103 Specialize the former "hpux" section to "hppa hpux", as this is what the
14104 section really is here for and we now have other hpux ports that need
14105 different contents.
14106 (__gnat_adjust_context_for_raise) i386-linux: First version of this
14107 function for this target. Adjust PC by one in the machine context. This
14108 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
14109 it is more reliable to do that in the signal handler itself.
14110 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
14111 flags, so that the handler is passed the context structure to adjust
14112 prior to the raise.
14113 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
14114 SA_SIGINFO sigaction should look like. Call
14115 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
14116 Machine_State_Operations stuff.
14117 Add conditional code so that the x86_64 is also supported.
14119 2005-06-14 Pascal Obry <obry@adacore.com>
14121 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
14124 2005-06-14 Robert Dewar <dewar@adacore.com>
14126 * opt.ads, opt.adb: New flags for persistent_bss mode
14127 Add Ada_Version_Explicit, for implementation of AI-362
14128 Add Assertions_Enabled_Config and associated handling
14129 Needed since setting can be changed with Assertion_Policy pragma
14130 Add new flag Warn_On_Ada_2005_Compatibility
14132 * switch-c.adb: Recognize -gnatwy/Y
14133 Set Ada_Version_Explicit, for implementation of AI-362
14134 The -gnatg switch now includes -gnatyu
14136 * usage.adb: Add -gnatwy/Y
14137 Remove wrong asterisk on -gnatwX line
14138 Add line for -gnatyu switch
14140 2005-06-14 Vincent Celier <celier@adacore.com>
14142 * osint.adb (Add_Default_Search_Dirs): Put source and object
14143 directories of project files before directories coming from
14144 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
14146 2005-06-14 Robert Dewar <dewar@adacore.com>
14149 * par-ch2.adb (Scan_Pragma_Argument): New procedure
14150 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
14152 2005-06-14 Vincent Celier <celier@adacore.com>
14154 * prep.adb (Preprocess): Ignore error when scanning the first token of
14157 2005-06-14 Vincent Celier <celier@adacore.com>
14159 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
14160 (Check_Stand_Alone_Library): If the specified reference symbol file does
14161 not exist, only issue a warning when the symbol policy is not
14162 Controlled. And, when symbol policy is Compliant, set the symbol
14163 policy to Autonomous.
14165 2005-06-14 Vincent Celier <celier@adacore.com>
14167 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
14168 when the project file in a with clause is not the last one, that is the
14169 project file name is followed by a comma.
14170 * prj-pp.adb: (First_With_In_List): New Boolean global variable
14171 (Print): Issue list of project files separated by commas in with clauses
14172 according to the values returned by Is_Not_Last_In_List.
14173 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
14174 (Set_Is_Not_Last_In_List): New procedure
14176 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
14178 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
14180 2005-06-14 Robert Dewar <dewar@adacore.com>
14182 * scng.adb: Add call to new Check_EOF routine
14183 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
14184 Add some comments regarding wide character handling
14186 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
14188 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
14190 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
14191 characters are now considered graphic characters and hence yield false
14194 * nmake.adt: Modify header so that xnmake does not generate output
14195 files with multiple blank lines.
14197 * treeprs.adt: Remove a blank line so that output from xtreeprs does
14198 not have an extra blank line
14200 2005-06-14 Gary Dismukes <dismukes@adacore.com>
14202 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
14203 expression when the component type is an anonymous access type to
14204 ensure that appropriate accessibility checks are done.
14206 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
14207 expression of an assignment when the target object is of an anonymous
14208 access type. This ensures that required accessibility checks are done.
14209 (One_Bound): Move the check for type Universal_Integer to
14211 (Process_Bounds): Check whether the type of the preanalyzed range is
14212 Universal_Integer, and in that case set Typ to Integer_Type prior
14213 to setting the type of the original range and the calls to One_Bound.
14215 2005-06-14 Ed Schonberg <schonberg@adacore.com>
14217 * sem_case.adb (Expand_Others_Choice): Improve warning.
14219 2005-06-14 Ed Schonberg <schonberg@adacore.com>
14221 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
14222 constraint of full view if present, when other type is discriminated.
14223 (Eval_Relational_Op): Recognize tests of pointer values against Null,
14224 when the pointer is known to be non-null, and emit appropriate warning.
14226 2005-06-14 Robert Dewar <dewar@adacore.com>
14227 Ed Schonberg <schonberg@adacore.com>
14230 * sem_prag.adb: Implement pragma Persistent_BSS
14231 Remove obsolete pragma Persistent_Data, Persistent_Object
14232 Set Ada_Version_Explicit, for implementation of AI-362
14233 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
14234 Add processing for pragma Pure_05 and Preelaborate_05
14235 Add processing for Assertion_Policy pragma
14236 Add pragma identifiers for Assert
14237 (Analyze_Pragma, case Assert): Check number of arguments
14238 (Process_Inline): Additional guard against an illegal program, where the
14239 argument of the pragma is undefined, and warnings on redundant
14240 constructs are enabled.
14241 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
14242 Ada_05 to this pragma, specifying that the pragma is only active in
14244 (Check_Arg_Order): New procedure
14245 Add appropriate calls to this procedure throughout
14246 Also throughout, check entity name before doing any other checks
14248 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
14249 Remove obsolete pragma Persistent_Data, Persistent_Object
14250 Add entries for pragma Pure_05 and Preelaborate_05
14251 Add entries for Assertion_Policy pragma and associated names
14252 Add some names for pragma argument processing
14254 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
14256 2005-06-14 Ed Schonberg <schonberg@adacore.com>
14258 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
14259 appears within a negation (either from source or as a rewriting of
14260 inequality) adjust text of warning accordingly.
14262 2005-06-14 Thomas Quinot <quinot@adacore.com>
14264 * s-strxdr.adb: Follow AI95-00132
14266 2005-06-14 Arnaud Charlet <charlet@adacore.com>
14268 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
14270 2005-06-14 Arnaud Charlet <charlet@adacore.com>
14271 Jose Ruiz <ruiz@adacore.com>
14273 * s-tposen.adb, s-tpobop.adb
14274 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
14276 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
14277 there is no violation of the Max_Entry_Queue_Length restriction (if it
14278 has been set); Program_Error is raised otherwise.
14279 (Requeue_Call): Before requeuing the task on the target entry queue we
14280 check that there is no violation of the Max_Entry_Queue_Length
14281 restriction (if it has been set); Program_Error is raised otherwise.
14283 2005-06-14 Robert Dewar <dewar@adacore.com>
14285 * styleg.adb: Fix several remaining problems in -gnatyu switch
14286 Blank line count not reset at start
14287 Scanning outside source buffer in some cases
14288 Confusing message for blanks at end of file
14289 Non-empty blank lines not recognized
14291 * nmake.adt: Modify header so that xnmake does not generate output
14292 files with multiple blank lines.
14294 * treeprs.adt: Remove a blank line so that output from xtreeprs does
14295 not have an extra blank line
14297 2005-06-14 Sergey Rybin <rybin@adacore.com>
14299 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
14301 2005-06-14 Doug Rupp <rupp@adacore.com>
14302 Vincent Celier <celier@adacore.com>
14304 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
14307 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
14308 Remove "Library" command.
14309 Change keyword for style check -gnatyd from NOCRLF to
14311 Remove useless second style check keyword NONE
14312 Remove help documentation for inexistent style check keyword
14314 Add help documentation for style check keywords DOS_LINE_ENDINGS,
14315 UNNECESSARY_BLANK_LINES and XTRA_PARENS
14316 Add UNNECESSARY_BLANK_LINES for -gnatyu
14317 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
14319 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
14321 2005-06-14 Vincent Celier <celier@adacore.com>
14323 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
14324 gprmake was invoked with -d.
14325 (Compile_Sources): If -d was used, output the "completed ..." message
14326 for each compilation.
14327 (Scan_Arg): Recognize new switch -d
14328 When -c and at least one main is specified, set
14329 Unique_Compile to True to guarantee that no other sources will be
14332 2005-06-14 Matthew Heaney <heaney@adacore.com>
14334 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
14335 * a-swuwha.ads, a-swuwha.adb: New files
14337 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
14338 * a-szuzha.ads, a-szuzha.adb: New files.
14340 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
14341 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
14342 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
14343 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
14344 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
14345 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
14346 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
14347 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
14348 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
14349 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
14352 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
14353 Olivier Hainque <hainque@adacore.com>
14354 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14355 Pascal Obry <obry@adacore.com>
14357 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
14359 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
14360 making a temporary around a procedure call because of non-addressable
14362 (process_freeze_entity): If entity is a private type, capture size
14363 information that may have been computed for the full view.
14364 (tree_transform, case N_Allocator): If have initializing expression,
14365 check type for Has_Constrained_Partial_View and pass that to
14367 (tree_transform, case N_Return_Statement): Pass extra arg to
14370 * decl.c (annotate_value): Remove early return if -gnatR is not
14372 (gnat_to_gnu_field): Don't make a packable type for a component clause
14373 if the position is byte aligned, the field is aliased, and the clause
14374 size isn't a multiple of the packable alignment. It serves no useful
14375 purpose packing-wise and would be rejected later on.
14376 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
14379 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
14380 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
14382 (create_concat_name): Idem.
14384 2005-06-10 Robert Dewar <dewar@adacore.com>
14385 Eric Botcazou <ebotcazou@adacore.com>
14386 Ben Brosgol <brosgol@adacore.com>
14387 Cyrille Comar <comar@adacore.com>
14388 Sergey Rybin <rybin@adacore.com>
14389 Pascal Obry <obry@adacore.com>
14391 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
14392 Document second argument (Ada_05) of pragma Obsolescent
14393 Add note that call to subprogram marked with pragma Obsolescent
14394 is now considered to be a violation of program Restrictions
14395 (No_Obsolescent_Features).
14396 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
14397 that only machine-dependent attributes are supported.
14400 Commented out menu lines and empty section for gnatclean examples
14402 Fix some over long lines
14403 Clarify and enhance documentation of ADA_PROJECT_PATH.
14404 Rework section 2.11.2(3) about linking with a non-GNU compiler.
14405 Mention new switch -fcallgraph-info.
14406 Mention new switch -fstack-usage.
14407 For gnatpp, replace '-notab' with '-N' and add this option to Index
14408 Corrected VMS example.
14409 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
14411 Add documentation for -gnatyu switch (unnecessary blank lines)
14412 Document new switch -U for GNAT PRETTY and GNAT METRIC
14413 Add note about Stdcall being handled as C convention on non Windows OS.
14414 Remove some junk typo in description of gnatbind -S switch
14415 Remove reference to Extensions_Allowed pragma
14416 Document the new order of the directories to be searched (source and
14417 object directories of project files before directories in ADA_*_PATH
14418 environment variables.
14420 * g-trasym.ads: Document that IRIX is supported
14422 2005-06-10 Arnaud Charlet <charlet@adacore.com>
14424 * Makefile.in: Add initialize.o when needed.
14425 Adapt to new VMS package body Symbols and subunits
14426 No specialized version of a-sytaco is needed for VxWorks.
14428 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
14429 * a-zchara.ads, a-widcha.ads: New files.
14431 * system-hpux-ia64.ads: New file.
14433 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
14434 is imported from the VxWorks kernel.
14436 2005-06-14 Robert Dewar <dewar@adacore.com>
14438 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
14439 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
14440 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
14441 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
14442 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
14443 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
14444 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
14445 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
14446 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
14447 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
14448 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
14449 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
14451 2005-06-14 Thomas Quinot <quinot@adacore.com>
14453 * xeinfo.adb: Fix typo in comment
14455 2005-06-14 Javier Miranda <miranda@adacore.com>
14457 * repinfo.ads: Fix typo in comment
14459 2005-06-14 Gary Dismukes <dismukes@adacore.com>
14461 * s-finimp.adb (Parent_Tag): Delete this imported function (function
14462 Parent_Tag is now in the visible part of Ada.Tags).
14463 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
14464 using imported function.
14466 2005-06-14 Bernard Banner <banner@adacore.com>
14468 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
14469 also apply for handling support for VxSim 653.
14471 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
14473 * xsnames.adb: Add automatic generation of snames.h.
14475 2005-06-14 Thomas Quinot <quinot@adacore.com>
14477 * gen-soccon.c: Add IP_MULTICAST_IF constant
14478 Minor reformatting and adjustments to prevent warnings.
14480 2005-06-14 Pascal Obry <obry@adacore.com>
14482 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
14484 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
14486 * trans.c (gnat_gimplify_expr): Call
14487 recompute_tree_invarant_for_addr_expr when we change
14488 the operand of the ADDR_EXPR.
14490 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14492 * misc.c: Don't include errors.h.
14494 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14496 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
14498 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
14500 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
14502 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
14504 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
14507 * Makefile.in: Make TGT_LIB behave correctly.
14509 2005-04-23 DJ Delorie <dj@redhat.com>
14511 * misc.c: Adjust warning() callers.
14513 2005-04-16 Laurent GUERBY <laurent@guerby.net>
14516 * a-nudira.adb (Value): Check for valid string.
14517 * a-nuflra.adb (Value): Likewise.
14519 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
14521 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
14523 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
14525 * adaint.c, init.c, tracebak.c: Fix comment typos.
14526 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
14528 2005-04-07 Laurent GUERBY <laurent@guerby.net>
14529 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14531 * Makefile.in: Add make ifeq define for hppa linux tasking support.
14532 * system-hpux.ads: Define Signed_Zeros to be True.
14533 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
14535 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
14537 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
14538 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
14541 2005-03-30 Tom Tromey <tromey@redhat.com>
14543 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
14545 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
14547 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
14549 2005-03-29 Robert Dewar <dewar@adacore.com>
14551 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
14552 fixed-point expression has value that is not a multiple of the Small
14555 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
14557 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
14560 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
14562 2005-03-29 Vincent Celier <celier@adacore.com>
14564 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
14565 (Build_Dynamic_Library.Version_String): Return the empty string when
14566 Lib_Version is empty or when the symbol policy is not Autonomous.
14568 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
14569 a symbol is not in the reference symbol file, increase the Major ID
14570 and set the Minor ID to 0.
14571 Use gsmatch=lequal instead of gsmatch=equal
14573 2005-03-29 Doug Rupp <rupp@adacore.com>
14575 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
14576 name and translate.
14578 2005-03-29 Javier Miranda <miranda@adacore.com>
14580 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
14581 (Inherit_DT): The first formal has been redefined as a Tag.
14582 This allows us the removal of the subprogram Get_TSD.
14583 (TSD): Replace the call to Get_TSD by the actual code.
14585 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
14586 (Make_DT): Upgrade the call to Inherit_TSD according to the
14587 new interface: the first formal is now a Tag.
14589 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
14590 redefined as a Tag.
14591 This change allows us to remove the subprogram Get_TSD.
14592 (CPP_Get_TSD): Subprogram removed.
14593 (TSD): Replace the call to CPP_Get_TSD by the actual code.
14595 * rtsfind.ads: Remove support to call the run-time
14598 2005-03-29 Robert Dewar <dewar@adacore.com>
14600 * errutil.adb, errout.adb:
14601 Minor comment updates on Line_Terminator references
14603 * par-ch10.adb: Add ??? comment about line terminator
14605 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
14606 (check dos line terminator).
14607 (Check_Line_Max_Length): New procedure, split off from the existing
14608 Check_Line_Terminator routine. Separating this out allows -gnatyf to
14609 be properly recognized.
14611 * styleg.adb: Add ??? comment for line terminator reference
14613 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
14614 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
14616 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
14617 (check dos line terminator).
14618 (Check_Line_Max_Length): New procedure, split off from the existing
14619 Check_Line_Terminator routine. Separating this out allows -gnatyf to
14620 be properly recognized.
14622 * stylesw.ads, stylesw.adb:
14623 Add handling for new -gnatyd switch (check dos line terminator)
14625 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
14626 Recognize -gnatwb/-gnatwB switches
14627 Include Warn_On_Bad_Fixed_Value for -gnatg
14630 Add line for new -gnatyd switch (check dos line terminator)
14632 * usage.adb: Add lines for -gnatwb/-gnatwB
14634 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
14636 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
14638 * gnat_ugn.texi: Fix overlong lines
14639 Document new -gnatyd switch
14640 Document new -gnatwb/-gnatwB switches
14642 2005-03-29 Ed Schonberg <schonberg@adacore.com>
14644 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
14645 order to retrieve the component list of the type, before examining
14646 individual components.
14648 * sem_type.adb (Covers): Types are compatible if one is the base type
14649 of the other, even though their base types might differ when private
14650 views are involved.
14652 2005-03-29 Thomas Quinot <quinot@adacore.com>
14654 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
14655 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
14656 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
14657 analyzed if expansion is disabled (which could otherwise cause spurious
14658 error messages if expansion has been disabled due to previous
14659 (unrelated) errors).
14661 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
14662 is disabled, the entity denoted by the argument is the access type
14663 itself, not an underlying record type, so there is no need to go back
14664 to the Corresponding_Remote_Type.
14666 2005-03-29 Gary Dismukes <dismukes@adacore.com>
14667 Robert Dewar <dewar@adacore.com>
14669 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
14670 expand a call to an instance of
14671 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
14672 Constructor actual of the instance. A class-wide membership
14673 check is also generated, to ensure that the tag passed to the instance
14674 denotes a type in the class.
14675 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
14676 of Name_Generic_Dispatching_Constructor.
14678 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
14679 05 unit for AI-260-02).
14681 * a-tgdico.ads: New file.
14683 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
14684 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
14686 * snames.ads, snames.adb (Preset_Names): Add entry for
14687 Generic_Dispatching_Constructor.
14690 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
14691 character type cases.
14692 (Analyze_Subprogram_Renaming): Add special handling for
14693 the case of renaming of stream attributes when the renaming denotes a
14694 generic formal subprogram association for an abstract formal subprogram.
14695 Check that the attribute is a primitive stream attribute (and not
14696 a class-wide stream attribute) and then rewrite the attribute name
14697 as the name of the appropriate compiler-generated stream primitive.
14699 2005-03-29 Robert Dewar <dewar@adacore.com>
14701 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
14703 (Is_Possibly_Unaligned_Object): Correct typo that
14704 resulted in inaccurate result for unaligned scalars within records.
14706 2005-03-29 Ed Schonberg <schonberg@adacore.com>
14708 * freeze.adb (Freeze_Record_Type): If the type of the component is an
14709 itype whose parent is controlled and not yet frozen, do not create a
14710 freeze node for the itype if expansion is disabled.
14712 2005-03-29 Vincent Celier <celier@adacore.com>
14714 * make.adb (Gnatmake): Don't fail if the main project file is declared
14715 as having no Ada sources. Do not display message "no sources to
14716 compile" in quiet output.
14718 2005-03-29 Doug Rupp <rupp@adacore.com>
14720 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
14723 2005-03-29 Robert Dewar <dewar@adacore.com>
14725 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
14728 2005-03-29 Robert Dewar <dewar@adacore.com>
14730 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
14731 missing TYPE Improve the error message generated when compiling a
14732 limited interface in Ada83 or Ada95 mode.
14734 2005-03-29 Robert Dewar <dewar@adacore.com>
14736 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
14737 rather than proceed ahead using a junk attribute name.
14739 2005-03-29 Vincent Celier <celier@adacore.com>
14741 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
14743 * prj-part.adb (Parse_Single_Project): Set the location of a project
14744 on its defining identifier, rather than on the reserved word "project".
14746 * prj-proc.adb (Expression): Adapt to the fact that default of external
14747 references may be string expressions, not always literal strings.
14748 (Recursive_Process): Set Display_Name equal to Name
14749 when Location is No_Location, that is when there is no actual file.
14750 Get the Display_Name of the project from the source, when it is not a
14752 (Process): Use the Display_Name in error messages
14754 * prj-strt.adb (External_Reference): Allow default to be string
14755 expressions, not only literal strings.
14757 2005-03-29 Vincent Celier <celier@adacore.com>
14759 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
14760 file and the reference symbol file to be the same file.
14762 2005-03-29 Thomas Quinot <quinot@adacore.com>
14764 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
14765 forbid conversion of a local access-to-subprogram type to a remote one.
14767 * sem_util.adb (Wrong_Type): For a record type that is the expanded
14768 equivalent type for a remote access-to-subprogram type, go back to the
14769 original RAS entity when displaying an error message, so the casing is
14770 the original source casing.
14772 2005-03-29 Robert Dewar <dewar@adacore.com>
14774 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
14777 2005-03-29 Ed Schonberg <schonberg@adacore.com>
14779 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
14780 subtype if code is being pre-analyzed, to prevent un-expanded
14781 references to protected formals, among others.
14782 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
14783 interpretation that can be a call, include the result of the call as a
14784 possible interpretation of the dereference.
14786 * sem_ch5.adb (Process_Bounds): Determine type of range by
14787 pre-analyzing a copy of the original range, and then analyze the range
14788 with the expected type.
14790 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
14791 with an overloaded prefix where not all interpretations yield an
14792 access to subprogram, do not rewrite node as a call.
14793 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
14794 the node as a call once the context identifies the interpretation of
14795 the prefix whose call yields the context type.
14796 (Valid_Conversion): For the case of a conversion between
14797 local access-to-subprogram types, check subtype conformance using
14798 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
14799 detailed error message.
14801 2005-03-29 Ed Schonberg <schonberg@adacore.com>
14803 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
14804 indicator, indicate that the formal can never be null.
14805 (Process_Formals): If a formal has a non_null indicator, insert the
14806 resulting subtype immediately before the enclosing subprogram decl,
14807 and not at the beginning of the corresponding declarative part, to
14808 prevent access before elaboration (Ada2005).
14810 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14813 * utils.c (finish_record_type): Use variable_size when setting sizes.
14815 2005-03-29 Robert Dewar <dewar@adacore.com>
14817 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
14818 guarantee Unix style line terminators for the output files, even when
14819 running on windows.
14821 2005-03-29 Robert Dewar <dewar@adacore.com>
14823 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
14824 buffer if an exception is raised.
14826 2005-03-29 Ed Falis <falis@adacore.com>
14828 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
14831 2005-03-29 Robert Dewar <dewar@adacore.com>
14833 * sem_util.ads: Minor reformatting
14834 * gnat_rm.texi: Minor editing.
14836 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
14838 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
14839 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
14841 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
14843 * adaint.c (__gnat_portable_spawn): Adjust cast.
14845 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
14847 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
14849 2005-03-17 Pascal Obry <obry@adacore.com>
14851 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
14854 * expect.c (__gnat_waitpid): Moved here from adaint.c.
14855 Reimplement under Win32 using Win32 API.
14857 (__gnat_kill) [Win32]: Properly close the process handle before leaving
14860 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
14862 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
14863 (DECL_RENAMED_OBJECT): New accessor macro.
14864 (SET_DECL_RENAMED_OBJECT): New setter macro.
14866 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
14867 object in all cases. Attach the renamed object to the VAR_DECL.
14868 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
14869 field is not prescribed.
14871 * misc.c (gnat_handle_option): Handle -gnatO separately.
14872 (gnat_print_decl) <VAR_DECL>: New case.
14873 Print the DECL_RENAMED_OBJECT node.
14875 * lang.opt: Declare separate -gnatO option.
14877 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
14878 pointer, replace it with the renamed object.
14879 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
14880 pointer type if the source is not a fat pointer type whose underlying
14881 array has the same non-zero alias set as that of the destination array.
14883 2005-03-17 Javier Miranda <miranda@adacore.com>
14885 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
14886 (Get_Inheritance_Depth): Removed.
14887 (Set_Inheritance_Depth): Removed.
14889 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
14890 subprogram Get_Expanded_Name because it is not referenced by the
14893 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
14894 (CPP_Get_Inheritance_Depth): Removed.
14895 (CPP_Set_Inheritance_Depth): Removed.
14897 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
14899 2005-03-17 Robert Dewar <dewar@adacore.com>
14901 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
14902 3, since we now expect GCC 3 to do all the work.
14904 2005-03-17 Javier Miranda <miranda@adacore.com>
14906 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
14907 of one barrier to avoid wrong usage of this attribute.
14909 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
14910 First_Private_Entity.
14912 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
14913 the subprogram against wrong usage.
14914 Adapt the code to traverse the entities in the
14915 scope of a record_type because in addition to its usage regarding
14916 packages, this subprogram is also called by Expand_N_Freeze_Entity
14917 to install the visible declarations of the enclosing scope of a
14918 record_type_with_private to establish the proper visibility before
14919 freezing the entity and related subprograms.
14921 2005-03-17 Ed Schonberg <schonberg@adacore.com>
14923 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
14926 2005-03-17 Thomas Quinot <quinot@adacore.com>
14928 * exp_ch3.adb (Check_Attr): New subprogram.
14929 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
14930 into a new Check_Attr subprogram, in order to provide a more
14931 explanatory error message (including the name of the missing attribute).
14932 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
14933 subprogram determines whether a default implementation exists for a
14934 given stream attribute.
14935 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
14936 Determine whether to generate a default implementation for each stream
14937 attribute separately, as this depends on the specific attribute.
14939 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
14940 limited extension where a stream attribute is missing for a limited
14941 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
14942 generate a bogus reference to the missing attribute to prevent
14943 cascaded errors. Instead, generate a null statement.
14945 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
14946 available for a limited type if it has been specified for an ancestor
14949 2005-03-17 Ed Schonberg <schonberg@adacore.com>
14951 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
14952 entity is an operator.
14954 2005-03-17 Thomas Quinot <quinot@adacore.com>
14956 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
14957 spec, to make this predicate available to other units.
14959 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
14962 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
14963 when no distribution runtime library is available.
14965 * sem_res.adb, sem_dist.adb: Disable expansion of remote
14966 access-to-subprogram types when no distribution runtime library is
14968 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
14969 predicate available to other units.
14971 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
14972 spec, to make this predicate available to other units.
14974 2005-03-17 Vincent Celier <celier@adacore.com>
14976 * make.adb (Insert_Project_Sources): Make sure the Q is always
14979 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
14980 the default for the tree, not the global default naming.
14982 * prj-proc.adb (Recursive_Process): No need to put the default naming
14983 in the project data, it's already there.
14985 2005-03-17 Doug Rupp <rupp@adacore.com>
14987 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
14989 * 5xcrtl.ads: Renamed to...
14990 * s-crtl-vms64.ads: ...this new file
14992 2005-03-17 Robert Dewar <dewar@adacore.com>
14995 * namet.adb (Copy_One_Character): Set proper wide character encoding
14996 for upper half character if we have upper half encoding.
14998 2005-03-17 Robert Dewar <dewar@adacore.com>
15000 * par.adb (Par): Improved msg for attempt to recompile predefined unit
15002 2005-03-17 Thomas Quinot <quinot@adacore.com>
15004 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
15005 tagged limited type, the TSS is a newly built renaming declaration:
15006 insert it using Set_TSS, not Copy_TSS.
15008 2005-03-17 Javier Miranda <miranda@adacore.com>
15010 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
15011 Try_Object_Operation): Analyze the object that is accessible
15012 through the prefix of the subprogram call before we apply
15013 the transformation of the object-operation notation.
15015 2005-03-17 Jose Ruiz <ruiz@adacore.com>
15017 * s-taprob.adb (Initialize_Protection): Initialize the protected
15018 object's owner to Null_Task.
15019 (Lock): If pragma Detect_Blocking is in effect and the caller of this
15020 procedure is already the protected object's owner then Program_Error
15021 is raised. In addition the protected object's owner is updated.
15022 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
15023 of this procedure is already the protected object's owner then
15024 Program_Error is raised.
15025 In addition the protected object's owner is updated.
15026 (Unlock): Remove the ownership of the protected object.
15028 * s-taprob.ads (Protection): Add the field Owner, used to store the
15029 protected object's owner.
15030 This component is needed for detecting one type of potentially blocking
15031 operations (external calls on a protected subprogram with the same
15032 target object as that of the protected action). Document the rest of
15035 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
15036 Initialize the protected object's owner to Null_Task.
15037 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
15038 caller of this procedure is already the protected object's owner then
15039 Program_Error is raised.
15040 Do not raise Program_Error when this procedure is called from a
15042 (Unlock_Entries): Remove the ownership of the protected object.
15043 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
15044 of this procedure is already the protected object's owner then
15045 Program_Error is raised.
15046 Do not raise Program_Error when this procedure is called from
15047 a protected action.
15049 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
15050 used to store the protected object's owner.
15052 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
15053 effect and this procedure (a potentially blocking operation) is called
15054 from whithin a protected action, Program_Error is raised.
15055 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
15056 and this procedure (a potentially blocking operation) is called from
15057 whithin a protected action, Program_Error is raised.
15059 2005-03-17 Vincent Celier <celier@adacore.com>
15060 Nicolas Setton <setton@adacore.com>
15062 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
15063 switch, not supported by the linker on Darwin. Add '_' before
15064 <library>init, as this character is added unconditionally by the
15066 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
15067 correct one ".dylib". This fixes detection of the archive files when
15068 building library projects.
15070 2005-03-17 Vincent Celier <celier@adacore.com>
15072 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
15073 -gnat83, -gnat95 and -gnat05.
15075 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
15077 * gnat_ugn.texi: Document gnatmem restriction
15079 2005-03-17 Thomas Quinot <quinot@adacore.com>
15081 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
15084 2005-03-17 Robert Dewar <dewar@adacore.com>
15086 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
15087 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
15088 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
15090 * casing.adb: Comment improvements
15092 2005-03-17 Pascal Obry <obry@adacore.com>
15094 * g-expect.adb: Minor reformatting.
15096 2005-03-15 Zack Weinberg <zack@codesourcery.com>
15098 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
15099 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
15102 2005-03-15 Vincent Celier <celier@adacore.com>
15104 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
15105 Add new parameter In_Tree to specify the project tree: needed
15106 by the project manager. Adapt to changes in project manager
15107 using new parameter In_Tree.
15109 2005-03-15 Jakub Jelinek <jakub@redhat.com>
15111 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
15112 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
15113 ada/bldtools to avoid make -jN failures.
15115 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
15117 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
15118 to NULL_TREE on entry.
15120 2005-03-15 Robert Dewar <dewar@adacore.com>
15122 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
15123 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
15124 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
15125 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
15126 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
15127 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
15128 system-interix.ads, system-solaris-sparc.ads,
15129 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
15130 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
15131 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
15132 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
15133 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
15134 Compiler_System_Version to be False.
15136 * opt.ads: Add new flag Opt.Address_Is_Private
15138 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
15139 Add new parameter Compiler_System_Version to avoid checking for
15140 completeness of parameters when compiler is compiling itself.
15141 Allows old versions of GNAT to be compiled with new compiler.
15143 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
15145 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
15146 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
15148 (Stack_Base_Available): New flag.
15149 (Get_Page_Size): New overloaded functions imported from C.
15150 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
15151 PROT_ON, PROT_OFF): New constants.
15152 (mprotect): New function imported from C.
15153 (pthread_teb_t): New record type.
15155 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
15156 (Create_Task): Account for the Yellow Zone and the guard page.
15158 2005-03-15 Vincent Celier <celier@adacore.com>
15160 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15161 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
15162 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
15163 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
15164 Library_File_Name_For): Add new parameter In_Tree
15165 to specify the project tree: needed by the project manager.
15166 Adapt to changes in project manager using new parameter In_Tree.
15167 Remove local imports, use functions in System.CRTL.
15169 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
15170 to use the project manager.
15172 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
15173 In_Tree to designate the project tree. Adapt to changes in the project
15174 manager, using In_Tree.
15176 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
15177 Copy_Interface_Sources): Add new parameter In_Tree to specify the
15178 project tree: needed by the project manager.
15179 (Build_Library): Check that Arg'Length >= 6 before checking if it
15180 contains "--RTS=...".
15182 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
15183 Library_File_Name_For): Add new parameter In_Tree to specify the
15184 project tree: needed by the project manager.
15186 * prj.ads, prj.adb: Major modifications to allow several project trees
15187 in memory at the same time.
15188 Change tables to dynamic tables and hash tables to dynamic hash
15189 tables. Move tables and hash tables from Prj.Com (in the visible part)
15190 and Prj.Env (in the private part). Move some constants from the visible
15191 part to the private part. Make other constants deferred.
15192 (Project_Empty): Make it a variable, not a function
15193 (Empty_Project): Add parameter Tree. Returns the data with the default
15194 naming data of the project tree Tree.
15195 (Initialize): After updating Std_Naming_Data, copy its value to the
15196 component Naming of Project Empty.
15197 (Register_Default_Naming_Scheme): Use and update the default naming
15198 component of the project tree, instead of the global variable
15200 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
15201 Tree is not defaulted, return the default naming data of the Tree.
15202 (Initial_Buffer_Size): Constant moved from private part
15203 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
15204 variables initialized in procedure Initialize.
15205 (Add_To_Buffer): Add two in out parameters to replace global variables
15206 Buffer and Buffer_Last.
15207 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
15209 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
15211 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
15212 for the project tree.
15213 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
15214 constant at the beginning of the package spec, so that they cane be used
15215 in subprograms before their full declarations.
15216 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
15217 (Empty_Project): Add parameter of type Project_Node_Ref
15218 (Private_Project_Tree_Data): Add component Default_Naming of type
15220 (Buffer, Buffer_Last): remove global variables
15221 (Add_To_Buffer): Add two in out parameters to replace global variables
15222 Buffer and Buffer_Last.
15223 (Current_Packages_To_Check): Remove global variable
15224 (Empty_Name): Move to private part
15225 (No-Symbols): Make it a constant
15226 (Private_Project_Tree_Data): New type for the private part of the
15228 (Project_Tree_Data): New type for the data of a project tree
15229 (Project_Tree_Ref): New type to designate a project tree
15230 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
15231 for the project tree.
15233 * prj-attr.ads: Add with Table; needed, as package Prj no longer
15234 imports package Table.
15236 * prj-com.adb: Remove empty, no longer needed body
15238 * prj-com.ads: Move most of the content of this package to package Prj.
15240 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
15241 designate the project node tree and Packages_To_Check to replace
15242 global variable Current_Packages_To_Check.
15243 Add new parameters In_Tree and Packages_To_Check to local subprograms,
15244 when needed. Adapt to changes in project manager with project node tree
15247 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
15248 project tree to most subprograms. Move tables and hash tables to
15249 private part of package Prj.
15250 Adapt to changes in project manager using project tree In_Tree.
15252 * prj-makr.adb (Tree): New constant to designate the project node tree
15253 Adapt to change in project manager using project node tree Tree
15255 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
15256 display the Library_Src_Dir and the Library_Dir.
15257 Add new parameter In_Tree to designate the project node tree to most
15258 subprograms. Adapt to changes in the project manager, using project tree
15260 (Check_Naming_Scheme): Do not alter the casing on platforms where
15261 the casing of file names is not significant.
15262 (Check): Add new parameter In_Tree to designate the
15264 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
15265 designate the project tree.
15266 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
15268 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
15269 to replace those that were in the private part of package Prj.
15270 Add new parameter In__Tree to designate the project node tree to most
15271 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
15272 (Post_Parse_Context_Clause): When specifying the project node of a with
15273 clause, indicate that it is a limited with only if there is "limited"
15274 in the with clause, not necessarily when In_Limited is True.
15275 (Parse): Add new parameter In_Tree to designate the project node tree
15277 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
15278 designate the project node tree. Adapt to change in Prj.Tree with
15279 project node tree In_Tree.
15281 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
15282 tree In_Tree in the call to function Empty_Process to give its initial
15283 value to the project data Processed_Data.
15284 Add new parameters In_Tree to designate the project tree and
15285 From_Project_Node_Tree to designate the project node tree to several
15286 subprograms. Adapt to change in project manager with project tree
15287 In_Tree and project node tree From_Project_Node_Tree.
15289 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
15290 to replace those that were in the private part of package Prj.
15291 Add new parameter In_Tree to designate the project node tree to most
15292 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
15294 * prj-tree.ads, prj-tree.adb: Add new parameter of type
15295 Project_Node_Tree_Ref to most subprograms.
15296 Use this new parameter to store project nodes in the designated project
15298 (Project_Node_Tree_Ref): New type to designate a project node tree
15299 (Tree_Private_Part): Change table to dynamic table and hash tables to
15300 dynamic hash tables.
15302 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
15303 the project tree to most subprograms. Adapt to changes in project
15304 manager using project tree In_Tree.
15306 * makegpr.adb (Project_Tree): New constant needed to use project
15309 2005-03-15 Olivier Hainque <hainque@adacore.com>
15311 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
15312 for sigactions with SA_SIGINFO set. Call
15313 __gnat_adjust_context_for_raise before raising, to perform the
15314 potentially required adjustments to the machine context for the GCC
15317 * raise.h (__gnat_adjust_context_for_raise): New prototype.
15319 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
15320 Adjust PC by one in the provided machine context.
15321 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
15322 so that the handler is passed the context structure to adjust prior to
15324 (__gnat_error_handler) HPUX: Adjust the signature to match what an
15325 SA_SIGINFO sigaction should look like. Call
15326 __gnat_adjust_context_for_raise before actually raising.
15327 (__gnat_adjust_context_for_raise): Default noop to help PC
15328 adjustments before raise from signal handlers.
15329 (__gnat_error_handler): Indirectly call a predicate function to
15330 determine if a condition should be resignaled or not.
15331 (__gnat_set_resignal_predicate): User interface to modify the predicate.
15332 (__gnat_default_resignal_p): Default GNAT predicate.
15334 2005-03-15 Doug Rupp <rupp@adacore.com>
15336 * adaint.c: Prefix #include of VMS system header files with vms/
15337 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
15338 Do not define a dummy function "convert_addresses" under Darwin,
15341 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
15344 2005-03-15 Nicolas Setton <setton@adacore.com>
15346 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
15349 2005-03-15 Robert Dewar <dewar@adacore.com>
15351 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
15354 * a-retide.ads: Minor comment changes
15356 2005-03-15 Robert Dewar <dewar@adacore.com>
15358 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
15359 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
15360 Realloc_For_Chunk to private part of package.
15361 New subprograms for AI-301
15363 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
15364 Get_Line procedure.
15365 Avoid unnecessary use of Get/Set_Wide_String
15367 2005-03-15 Robert Dewar <dewar@adacore.com>
15370 * a-stunau.ads, a-stunau.adb:
15371 Change interface to allow efficient (and correct) implementation
15372 The previous changes to allow extra space in unbounded strings had
15373 left this interface a bit broken.
15375 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
15377 * g-spipat.ads, g-spipat.adb: New interface for Get_String
15378 Minor reformatting (function specs)
15380 * g-spitbo.adb: New interface for Get_String
15382 * g-spitbo.ads: Minor reformatting
15384 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
15386 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
15388 2005-03-15 Javier Miranda <miranda@adacore.com>
15389 Robert Dewar <dewar@adacore.com>
15390 Thomas Quinot <quinot@adacore.com>
15391 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15393 * atree.ads, atree.adb: Add support for Elist24 field
15395 * atree.h: Fix wrong definition of Field27
15396 Add support for Elist16 field
15397 Add support for Elist24 field
15399 * einfo.ads, einfo.adb (Abstract_Interfaces,
15400 Set_Abstract_Interfaces): New subprograms.
15401 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
15403 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
15404 entities rather than a single node.
15405 (Is_Interface, Set_Is_Interface): New subprogram
15406 (First_Tag_Component): New syntesized attribute
15407 (Next_Tag_Component): New synthesized attribute
15408 (Write_Entity_Flags): Upgraded to write Is_Interface
15409 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
15410 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
15411 (Task_Body_Procedure): New subprogram to read this attribute.
15412 (Set_Task_Body_Procedure): New subprogram to set this attribute.
15413 (Has_Controlled_Component): Now applies to all entities.
15414 This is only a documentation change, since it always worked to apply
15415 this to other than composite types (yielding false), but now this is
15417 Update documentation on Must_Be_Byte_Aligned for new spec
15419 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
15420 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
15421 uses of the Access_Disp_Table attribute to reference the first dispatch
15422 table associated with a tagged type. As
15423 part of the implementation of abstract interface types,
15424 Access_Disp_Table has been redefined to contain a list of dispatch
15425 tables (rather than a single dispatch table).
15426 Similarly, upgrade all the references to Tag_Component by the
15427 new attribute First_Tag_Component.
15428 (Find_Inherited_TSS): Moved to exp_tss.
15429 Clean up test in Expand_N_Object_Declaration for cases
15430 where we need to do a separate assignment of the initial value.
15431 (Expand_N_Object_Declaration): If the expression in the
15432 declaration of a tagged type is an aggregate, no need to generate an
15433 additional tag assignment.
15434 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
15436 Bit packed array ops are only called if operands are known to be
15438 (Component_Equality): When returning an N_Raise_Program_Error statement,
15439 ensure that its Etype is set to Empty to avoid confusing GIGI (which
15440 expects that only expressions have a bona fide type).
15441 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
15442 determine the amount of data to be copied.
15444 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
15445 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
15446 INTERFACE_TYPE_DEFINITION ::=
15447 [limited | task | protected | synchronized] interface
15448 [AND interface_list]
15450 * par-ch3.adb (P_Type_Declaration): Modified to give support to
15452 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
15454 (P_Interface_Type_Definition): New subprogram that parses the new
15455 syntax rule of Ada 2005 interfaces
15456 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
15457 messages by the correct RENAMES (quotes removed).
15459 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
15460 attribute First_Tag_Component.
15462 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
15463 (Interface_List, Set_Interface_List): New subprograms.
15464 (Interface_Present, Set_Interface_Present): New subprograms.
15465 (Limited_Present, Set_Limited_Present): Available also in derived
15466 type definition nodes.
15467 (Protected_Present, Set_Protected_Present): Available also in
15468 record type definition and
15469 derived type definition nodes.
15470 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
15471 (Task_Present, Set_Task_Present): New subprogram.
15472 (Task_Body_Procedure): Removed.
15473 (Set_Task_Body_Procedure): Removed.
15474 These subprogram have been removed because the attribute
15475 Task_Body_Procedure has been moved to the corresponding task type
15476 or task subtype entity to leave a field free to store the list
15477 of interfaces implemented by a task (for AI-345)
15478 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
15479 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
15480 expression flag Do_Range_Check
15481 (Exception_Junk): Change to Flag7 to accomodate above change
15482 (Box_Present, Default_Name, Specification, Set_Box_Present,
15483 Set_Default_Name, Set_Specification): Expand the expression
15484 "X in N_Formal_Subprogram_Declaration" into the corresponding
15485 two comparisons. Required to use the csinfo tool.
15487 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
15488 "with string" given.
15490 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
15493 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
15496 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
15497 attribute Task_Body_Procedure rather than the old semantic field that
15498 was available in the task_type_declaration node.
15500 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
15501 interface type definitions.
15502 (P_Formal_Derived_Type_Definition): Modified to handle the list of
15505 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
15506 task type declaration.
15507 (P_Protected): Modified to handle the list of interfaces in a
15508 protected type declaration.
15510 2005-03-15 Doug Rupp <rupp@adacore.com>
15511 Vincent Celier <celier@adacore.com>
15513 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
15514 (Gen_Output_File_C): Likewise.
15515 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
15517 2005-03-15 Thomas Quinot <quinot@adacore.com>
15519 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
15520 is an N_Raise_Constraint_Error node, create a new copy of it without
15521 going through a call to Duplicate_Subexpr.
15523 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
15524 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15525 Nicolas Setton <setton@adacore.com>
15526 Ed Schonberg <schonberg@adacore.com>
15532 * decl.c (gnat_to_gnu_field): Reject aliased components with a
15533 representation clause that prescribes a size not equal to the rounded
15534 size of their types.
15535 (gnat_to_gnu_entity, case E_Component): Always look at
15536 Original_Record_Component if Present and not the entity.
15537 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
15538 of tagged extension types by not making field for components that are
15540 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
15541 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
15542 expression to the type of the object when the object is constant.
15543 Reverse defer_debug_incomplete_list before traversing it, so that trees
15544 are processed in the order at which they were added to the list. This
15545 order is important when using the stabs debug format.
15546 If we are deferring the output of debug information, also defer this
15547 output for a function return type.
15548 When adding fields to a record, prevent emitting debug information
15549 for incomplete records, emit the information only when the record is
15551 (components_to_record): New parameter defer_debug.
15552 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
15553 (gnat_to_gnu_field_decl): New function.
15554 (substitution_list, annotate_rep): Call it.
15555 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
15556 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
15557 No longer update discriminants to not be a COMPONENT_REF.
15558 (copy_alias_set): Strip padding from input type; also handle
15559 unconstrained arrays properly.
15561 * gigi.h (write_record_type_debug_info): New function.
15562 Convert to use ANSI-style prototypes. Remove unused
15563 declarations for emit_stack_check, elab_all_gnat and
15564 set_second_error_entity.
15565 (gnat_to_gnu_field_decl): New decl.
15567 * utils.c (write_record_type_debug_info): New function.
15568 (finish_record_type): Delegate generation of debug information to
15569 write_record_type_debug_info.
15570 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
15571 (update_pointer_to): Fix pasto.
15572 (convert) <UNION_TYPE>: Accept slight type variations when
15573 converting to an unchecked union type.
15575 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
15576 replace the N_Freeze_Entity with a null statement.
15578 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
15579 within a constrained subcomponent of an enclosing record, place the
15580 freeze nodes in the scope stack entry for the enclosing record.
15581 (Undelay_Type): New Subprogram.
15582 (Set_Small_Size): Pass T, the type to modify; all callers changed.
15583 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
15584 within records; allow them to have freeze nodes if their base types
15587 * exp_util.adb (Remove_Side_Effects): Properly test for
15588 Expansion_Delayed and handle case when it's inside an
15589 N_Qualified_Expression.
15591 * sem_ch3.adb (Derived_Type_Declaration): New predicate
15592 Comes_From_Generic, to recognize accurately that the parent type in a
15593 derived type declaration can be traced back to a formal type, because
15594 it is one or is derived from one, or because its completion is derived
15596 (Constrain_Component_Type): If component comes from source and has no
15597 explicit constraint, no need to constrain in in a subtype of the
15599 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
15600 Minor change to propagate Is_Ada_2005 flag
15602 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
15603 Expansion_Delayed is False.
15604 (assoc_to_constructor): Ignore fields that have a
15605 Corresponding_Discriminant.
15606 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
15607 function returns "by target", dereference the target pointer using the
15608 type of the actual return value.
15609 <all>: Be prepared for a null gnu_result.
15610 (processed_inline_subprograms): Check flag_really_no_inline
15611 instead of flag_no_inline.
15612 (set_second_error_entity): Remove unused function.
15613 (gnat_to_gnu, case N_Selected_Component): Call
15614 gnat_to_gnu_field_decl.
15615 (assoc_to_constructor): Likewise.
15617 2005-03-15 Robert Dewar <dewar@adacore.com>
15618 Ed Schonberg <schonberg@adacore.com>
15619 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15621 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
15622 Must_Be_Byte_Aligned for cases where we do not need to use a
15623 System.Pack_nn unit.
15625 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
15627 Needed now that we do some processing for IN parameters as well. This
15628 may well fix some unrelated errors.
15629 (Expand_Call): Handle case of unaligned objects (in particular those
15630 that come from packed arrays).
15631 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
15632 renamed entity is an inherited operation, re-expand the call using the
15633 original operation, which is the one to call.
15634 Detect attempt to inline parameterless recursive subprogram.
15635 (Represented_As_Scalar): Fix to work properly with private types
15636 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
15637 accurate estimate. Yields True in far fewer cases than before,
15638 improving the quality of code that depends on this test.
15640 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
15641 over both visible and private declarations to remove them from tree,
15642 and mark subprograms declared in package as eliminated, to prevent
15643 spurious use in subsequent compilation of generic units in the context.
15645 * exp_util.ads: Minor cleanup in variable names
15647 * sem_eval.ads, sem_eval.adb: Minor reformatting
15648 (Compile_Time_Known_Bounds): New function
15650 2005-03-15 Ed Schonberg <schonberg@adacore.com>
15652 * exp_ch7.adb (Convert_View): Use base types of underlying types when
15653 determining whether an unchecked conversion is needed for the argument
15654 of an initialization call.
15656 2005-03-15 Ed Schonberg <schonberg@adacore.com>
15658 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
15659 that appears in the instantiation rather than the internal subtype
15660 generated in the wrapper package, to avoid anomalies in gigi when the
15661 target is derived from a private type whose full view is an access type.
15663 2005-03-15 Robert Dewar <dewar@adacore.com>
15665 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
15667 Add documentation to replace the use of this flag
15668 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
15671 2005-03-15 Thomas Quinot <quinot@adacore.com>
15673 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
15674 here from exp_attr so it can be shared between exp_attr and exp_dist.
15675 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
15676 all TSS names, not a subset thereof, and the previous name introduced
15677 an unnecessarily confusion that a distinction might exist between
15678 "OK" TSS names and some "not OK" TSS names.
15680 2005-03-15 Doug Rupp <rupp@adacore.com>
15682 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
15685 2005-03-15 Pascal Obry <obry@adacore.com>
15686 Eric Botcazou <ebotcazou@adacore.com>
15690 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
15691 when IN_RTS. This is to work around a bootstrap path problem.
15693 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
15694 table and pass it to __gnat_install_SEH_handler().
15695 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
15697 * lang.opt: Fix specification of -fRTS=.
15699 2005-03-15 Doug Rupp <rupp@adacore.com>
15700 Bernard Banner <banner@adacore.com>
15701 Vincent Celier <celier@adacore.com>
15702 Arnaud Charlet <charlet@adacore.com>
15705 This change works fine when gnatlib is built from the gcc directory,
15706 but does not work when using the libada Makefile, since GCC_FOR_TARGET
15707 is not passed to ada/Makefile.in, so more work is needed by a
15708 Makefile/configure expert.
15710 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
15711 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
15712 Setup gnatlink switch -M for x86_64 linux, as it is already setup
15714 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
15715 Run ranlib on libgccprefix.a
15716 Define PREFIX_OBJS for Darwin, to build libgccprefix.
15717 (ADA_INCLUDE_SRCS): Split Ada packages.
15719 2005-03-15 Robert Dewar <dewar@adacore.com>
15721 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
15723 * impunit.adb: Add GNAT.UTF_32
15725 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
15727 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
15728 now uses GNAT.UTF_32).
15730 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
15731 capabilities for categorizing characters using Unicode categories
15733 2005-03-15 Ed Schonberg <schonberg@adacore.com>
15735 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
15736 instantiation that has been rewritten as a package body, retrieve spec
15737 to generate proper name for implicit_with_clause.
15738 (Install_Parents): Recognize a parent that is an instantiation but has
15739 been rewritten as a package declaration during analysis.
15741 2005-03-15 Javier Miranda <miranda@adacore.com>
15742 Ed Schonberg <schonberg@adacore.com>
15744 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
15745 parameter reported some error we immediately return. This improves the
15746 behaviour of the frontend in case of errors.
15747 (Install_Parent, Remove_Parent): Introduce new flag
15748 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
15749 ancestor of a generic child unit, when the child is being instantiated.
15750 (Inline_Instance_Body): If we are compiling the private
15751 part or the body of a child unit, restore the proper visibility of the
15752 parents after compiling the instance body.
15754 2005-03-15 Ed Schonberg <schonberg@adacore.com>
15755 Javier Miranda <miranda@adacore.com>
15758 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
15759 of a private type, in which case it is underlying_type that denotes
15760 the proper task. Also modified to use the new entity attribute
15761 that is directly available in the task type and task subtype entities
15762 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
15763 arrays when other dimensions than the first are constrained by
15764 discriminants of an enclosing record.
15765 (Insert_Explicit_Dereference): If the prefix is an indexed component or
15766 a combination of indexed and selected components, find ultimate entity
15767 and generate the appropriate reference for it, to suppress spurious
15769 (Note_Possible_Modification): If an entity name has no entity, return.
15770 (Is_Variable): A function call never denotes a variable.
15771 (Requires_Transient_Scope): For record types, recurse only on
15772 components, not on internal subtypes that may have been generated for
15773 constrained components.
15775 2005-03-15 Ed Schonberg <schonberg@adacore.com>
15777 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
15778 Eliminated as candidates for resolution. Both efficient, and avoids
15779 anomalies with operators declared in deleted code.
15780 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
15781 expansion is disabled (as when compiling a generic) to prevent spurious
15782 warnings on prefixes of selected components.
15784 2005-03-15 Ed Schonberg <schonberg@adacore.com>
15786 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
15787 attached to a list before checking whether it appears in the private
15788 declarations of the current package.
15789 (Make_Inequality_Operator): Insert declaration in proper declarative
15790 list rather than just setting the Parent field, so that
15791 Is_Private_Declaration can handle it properly.
15793 2005-03-15 Ed Schonberg <schonberg@adacore.com>
15795 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
15796 a renaming a body, check that the renamed subprogram in not intrinsic.
15797 (Find_Direct_Name): If several use_visible entities hide
15798 each other, and the context is a predefined file compiled through
15799 rtsfind, keep only the entity that comes from a predefined file.
15801 2005-03-15 Geert Bosch <bosch@adacore.com>
15803 * s-fatgen.adb (Valid): Extend special exceptions to account for long
15804 long float padding to also cover AMD64 and IA64.
15806 2005-03-15 Gary Dismukes <dismukes@adacore.com>
15808 * s-imgwch.adb: Add with and use of Interfaces.
15809 (Img_Wide_Character): Change type of Val to Unsigned_16.
15810 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
15812 2005-03-15 Matthew Gingell <gingell@adacore.com>
15814 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
15816 2005-03-15 Robert Dewar <dewar@adacore.com>
15818 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
15820 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
15822 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
15824 2005-03-15 Robert Dewar <dewar@adacore.com>
15826 * s-bitops.adb, s-bitops.ads,
15827 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
15828 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
15829 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
15830 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
15831 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
15832 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
15833 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
15834 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
15837 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
15839 * utils2.c (build_binary_op): Fix typo.
15841 2005-03-15 Doug Rupp <rupp@adacore.com>
15843 * s-crtl.ads (popen,pclose): New imports.
15845 2005-03-15 Cyrille Comar <comar@adacore.com>
15847 * comperr.adb (Compiler_Abort): remove references to obsolete
15848 procedures in the bug boxes for various GNAT builds.
15850 2005-03-15 Vincent Celier <celier@adacore.com>
15852 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
15854 2005-03-15 Geert Bosch <bosch@adacore.com>
15855 Arnaud Charlet <charlet@adacore.com>
15856 Robert Dewar <dewar@adacore.com>
15857 Cyrille Comar <comar@adacore.com>
15858 Sergey Rybin <rybin@adacore.com>
15860 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
15861 too specific and long-winded to be appropriate for the GNAT User's
15863 Warn about use of GCC switches not documented in the GNAT User's Guide,
15864 as these may cause generated code to not conform to Ada semantics.
15865 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
15866 Add documentation for -gnat95 and -gnat05 switches
15867 Remove paragraph documenting obsolete way to refer to third party
15869 Add a few references to Ada_05 that were missing.
15870 Update documentation on -gnatZ/-gnatL.
15871 Document limitation when using -m64 under Solaris.
15872 Change the "Name Casing" subsection of the pretty-printer section
15873 according to the changes in the dictionary processing.
15875 * gnat_rm.texi: Document the Ada_05 pragma.
15876 Section on record representation clauses describes the new more
15877 relaxed rules about placement of large packed bit array components.
15878 Add documentation of GNAT.UTF_32
15880 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
15882 * misc.c (gnat_post_options): Turn off structural
15885 2005-03-08 Laurent Guerby <laurent@guerby.net>
15887 * system-linux-sparc.ads: Fix typo in previous commit.
15889 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
15890 Laurent Guerby <laurent@guerby.net>
15893 * system-linux-sparc.ads: New.
15894 * Makefile.in: Add sparc linux entry.
15896 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
15898 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
15899 parameters as unused.
15901 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
15902 Partial merge from libada-gnattools-branch:
15904 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
15905 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
15906 into code in gnattools/Makefile.in. Remove direct dependencies on
15907 stamp-tools by tools clauses.
15908 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
15909 * config-lang.in: Add gnattools to $lang_dirs.
15911 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
15914 * utils.c (gnat_type_for_mode): Return null instead of ICE because
15915 we asked for an unknown mode.
15917 2005-02-12 Richard Henderson <rth@redhat.com>
15919 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
15920 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
15922 2005-02-10 Andreas Jaeger <aj@suse.de>
15924 * init.c (__gnat_initialize): Mark parameter as unused.
15926 2005-02-09 Doug Rupp <rupp@adacore.com>
15928 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
15929 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
15931 2005-02-09 Doug Rupp <rupp@adacore.com>
15933 * gnatchop.adb (dup, dup2),
15934 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
15936 * gnatlbr.adb (mkdir),
15937 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
15939 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
15941 2005-02-09 Doug Rupp <rupp@adacore.com>
15943 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
15945 2005-02-09 Robert Dewar <dewar@adacore.com>
15946 Thomas Quinot <quinot@adacore.com>
15947 Javier Miranda <miranda@adacore.com>
15948 Pascal Obry <obry@adacore.com>
15949 Ed Schonberg <schonberg@adacore.com>
15950 Doug Rupp <rupp@adacore.com>
15951 Gary Dismukes <dismukes@adacore.com>
15952 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15954 * g-zstspl.ads: New file.
15956 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
15958 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
15960 Add definition of Wide_Wide_Space for AI-285
15962 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
15963 interface (to support Ada 95 and Ada 2005 units).
15964 Add Unbounded_IO files
15965 Add entries for Wide_Wide packages for AI-285
15966 Add list of containers packages to Ada 2005 unit list
15968 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
15969 support new Unbounded_IO package cleanly.
15971 * g-utf_32.ads, g-utf_32.adb: New files.
15973 * Makefile.rtl: Add entry for g-utf_32
15974 Add new files for Unbounded_IO
15975 Adjust make file for new AI-285 wide wide packages
15976 Add AI-302 containers to the run time.
15978 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
15979 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
15980 subprograms for AI-301.
15982 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
15984 * a-stunau.ads: Minor comment correction
15986 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
15988 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
15989 (Check_RPC): Update to match changes in expanded code.
15990 Clean up unused entity.
15992 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
15993 was not taken into account.
15994 This includes proper initialization with Normalize_Scalars.
15995 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
15996 normalize scalars cases (particularly the latter) to do a better job
15997 of finding invalid representations.
15999 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
16001 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
16004 * exp_dist.adb: Add support for wide wide character type
16005 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
16006 private part, generate stub bodies at the end of the private part,
16007 not the visible part.
16008 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
16010 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
16011 generic wrapper to execute final processing after completing the
16012 expansion of the RPC receiver for an RACW.
16014 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
16015 packages and attributes.
16016 (Preset_Names): Addition of the new reserved words of Ada 2005,
16017 that is interface, overriding and synchronized.
16018 (Get_Pragma_Id): Give support to the use of the new reserved word
16019 "interface" as a pragma name.
16020 (Is_Pragma_Name): Give support to the use of the new reserved word
16021 "interface" as a pragma name.
16022 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
16023 attribute implementation.
16025 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
16026 checks to entities that are output parameters of Asm operations.
16027 Handle the Stream_Size attribute.
16028 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
16030 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
16032 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
16033 for second parameter being 0.0.
16034 Add support for wide wide character type.
16035 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
16037 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
16038 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
16039 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
16040 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
16041 for wide wide character cases.
16043 * cstand.adb: Create entities for Wide_Wide_Character and
16046 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
16047 accordance with AI-258.
16048 Add new declarations for 16/32 bit C character types (Part of AI285)
16050 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
16051 (Obsolescent_Warning): New field
16052 (Rep_Clause): New local subprogram used to share code. Returns the rep
16053 clause for which the name is given in parameter.
16054 (Has_Stream_Size_Clause): New routine.
16055 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
16056 (Address_Clause): Implementation is now using Rep_Clause.
16057 (Alignment_Clause): Idem.
16058 (Size_Clause): Idem.
16060 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
16061 entity in non-Ada 2005 mode and generate warning.
16063 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
16064 (Prag): Code cleanup. Remove old gnat pragma "overriding"
16066 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
16067 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
16068 on the named unit if the pragma is not in the current compilation unit,
16069 so that elaboration calls in the current unit can set up an elaboration
16070 dependency on the named unit, as needed.
16071 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
16072 subprogram as well as for subprograms declared within a package.
16073 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
16076 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
16077 to z) to avoid some instances of duplication for Wide_Wide packages.
16079 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
16082 * scn.adb: Char_Literal_Value field is now a Uint
16084 * scng.adb: Significant rewrite to handle new Ada 2005 features
16085 allowing wide and wide wide characters in program text, e.g. for
16086 identifiers, as described in AI-285.
16087 (Set_Reserved): New procedure, makes setting up keywords cleaner.
16088 (Initialize_Scanner): Register the new reserved words of Ada 2005.
16089 (Scan): Give support to the new reserved words.
16091 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
16092 warning notifying that interface, overriding, and synchronized are
16093 new reserved words.
16094 (P_Pragma): Allow the use of the new reserved word "interface" as
16097 * gnatls.adb, gnatbind.adb,
16098 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
16099 identifiers named "interface" to "SAL_Interface".
16101 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
16102 (Structured Exception handling).
16103 (Gen_Main_C): Idem.
16106 (Gen_Main_Ada): Set the default exit code if specified.
16107 (Gen_Main_C): Likewise.
16109 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
16110 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
16112 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
16115 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
16116 has a collision with the new Ada 2005 "interface" reserved word.
16118 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
16119 generate a warning notifying that interface, overriding, and
16120 synchronized are new reserved words.
16122 * scans.ads (Token_Type): Addition of the tokens corresponding to the
16123 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
16124 and Tok_Synchronized.
16126 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
16127 "dispatching" rather than "primitive" operations, since dispatching
16128 calls are now allowed to abstract formal subprograms (which are not
16130 Char_Literal_Value field is now a Uint
16131 (Resolve_Slice): If the prefix is an access to an unconstrained array,
16132 compute the actual subtype of the designated object to impose the proper
16134 (Resolve_Selected_Component): Do not insert an access check if the
16135 prefix is an access type: such a node is expanded into an explicit
16136 dereference, on which the access check is performed anyway. Removes
16137 expensive duplicate checks.
16138 (Resolve_Call): Use new flag Is_Obsolescent and field
16139 Obsolescent_Warning so that pragma Obsolescent works on library
16141 Add support for wide wide character type
16142 (Resolve_Allocator): Replace the error message on wrong null-exclusion
16143 value by a warning message.
16144 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
16145 as fixed-point, and one of the operands is non-static and universal, it
16146 can only be an illegal exponentiation operation, in which case there is
16147 no real value to retrieve.
16149 * exp_strm.adb: Add support for wide wide character type
16150 (Build_Elementary_Input_Call): Compute the size of the stream element by
16151 querying the rep chain to find the Stream_Attribute attribute value.
16152 (Build_Elementary_Write_Call): Ditto.
16154 * sem_aggr.adb: Char_Literal_Value field is now a Uint
16155 Add support for wide wide character type
16156 Replace the error messages on wrong null-exclusion value by warnings
16157 as described in Ada 2005.
16158 (Resolve_Extension_Aggregate): Document the fact that the error
16159 message on class-wide expressions in extensions aggregates.
16161 * sem_case.adb: Add support for wide wide character type
16163 * sem_ch13.adb: Add support for wide wide character type
16164 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
16166 * sem_ch3.adb: Add support for wide wide character type
16167 (Process_Subtype): If constraint is illegal for the type, set Ekind of
16168 now-useless Itype, to prevent cascaded errors on a compiler built
16171 * sem_ch8.adb: Add with and use of Sem_Disp.
16172 (Analyze_Subprogram_Renaming): Replace unclean uses of
16173 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
16174 of Corresponding_Spec to Empty).
16175 (Attribute_Renaming): Replace use of Corresponding_Spec with
16176 Corresponding_ Formal_Spec and simplify condition.
16177 (Use_One_Package): Check that scope of homonym of identifier is defined,
16178 before checking whether it is a wrapper package.
16179 Add support for wide wide character type
16181 * sem_eval.adb: Add support for wide wide character type.
16182 (Eval_Arithmetic_Op): Check for compile time known signed integer
16183 overflow in the non-static case.
16184 (Subtypes_Statically_Match): A formal scalar type and its base type do
16185 not statically match.
16187 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
16188 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
16190 (Unit_Declaration_Node): Ditto.
16191 (Is_Variable_Prefix): For the case of an indexed component whose prefix
16192 has a packed array type, the prefix has been rewritten into a type
16193 conversion. Determine variable-ness from the converted expression.
16194 Handle wide wide character cases.
16196 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
16198 * stringt.ads, stringt.adb: Handle full UTF-32 range.
16199 Remove ["0A"] from comment, since it can look like a line terminator.
16200 Currently we don't permit this, but this is under discussion by the
16201 ARG, and it is easy enough to use a different example.
16203 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
16204 handling UTF-32 encoding for wide wide character.
16205 Implement new brackets coding ["hhhhhhhh"]
16206 Add UTF-8 encodings for full UTF-32 range
16208 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
16210 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
16211 bit range Add full UTF-32 support.
16212 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
16213 notify that constraint error will be raised at run-time
16214 because a null value is assigned to a null-excluding object.
16215 Remove some obsolete declarations and make Char_Code
16218 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
16219 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
16220 Rcheck subprograms.
16222 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
16223 wrong null-exclusion value by a warning message.
16224 (Enable_Range_Check): Do range check if the prefix is an
16225 explicit dereference whose designated object is an unconstrained array.
16226 Current algorithm for removing duplicate checks is over-eager in this
16229 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
16230 null-exclusion value by a warning message
16232 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
16233 completely. Add support for Uint2 field
16235 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
16236 exp_prag.adb: Char_Literal_Value field is now a Uint.
16238 * exp_util.adb (Insert_Actions): Replace
16239 N_Formal_Subprogram_Declaration by
16240 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
16241 Char_Literal_Value field is now a Uint.
16243 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
16244 defined for subprogram renaming declarations. When set, the field
16245 indicates the defining entity of a corresponding formal subprogram
16246 when the renaming corresponds to a formal subprogram association in an
16248 (Set_Corresponding_Formal_Spec): New procedure to return
16249 Corresponding_Formal_Spec field.
16250 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
16251 (which is now a subtype).
16252 Char_Literal_Value field is now a Uint
16254 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
16255 pointer to the base of the dispatch table.
16256 Minor changes to comments.
16257 (Controlling_Type): New function for determining the tagged type
16258 associated with a tagged primitive subprogram.
16259 (Expand_Dispatching_Call): Add support for a controlling actual that is
16260 directly a value of type Ada.Tag rather than a tagged object.
16262 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
16263 describing the new layout.
16264 (Dispatch_Table): The expander computes the actual array size, allocates
16265 the Dispatch_Table record accordingly, and generates code that displaces
16266 the base of the record after the Typeinfo_Ptr component. The access to
16267 these components is done by means of local functions.
16268 (Offset_To_Top): New function.
16269 (Typeinfo_Ptr): New function.
16270 (Get_TSD): Modified to access the new position of the TSD.
16271 (Set_TSD): Modified to save the TSD in its new position.
16273 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
16274 case of formal abstract subprograms. Add check and message for -gnat05.
16277 * sem_ch12.adb: Add with and use for Sem_Disp.
16278 (Analyze_Associations): Minor change from "=" to "in" for use of
16279 N_Formal_Subtype_Declaration (which is now a subtype).
16280 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
16281 N_Formal_Subtype_Declaration (which is now a subtype).
16282 (Analyze_Formal_Subprogram): Add handling for
16283 N_Formal_Abstract_Subprogram, marking the formal as abstract and
16284 dispatching, setting the controlling status of the formal parameters
16285 and result, and issuing an error if there is no controlling type for
16286 the formal subprogram.
16287 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
16288 which is an unclean use of that field, we set the new field
16289 Corresponding_Formal_Spec to make the formal subprogram available to
16290 processing in Analyze_Subprogram_Declaration.
16291 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
16292 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
16293 Constrained, so that it is is does not statically match its anonymous
16296 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
16297 abstract formal subprograms in error check for functions returning
16298 abstract types. Set scope of new designator for
16299 a parameterless subprogram, so that it is available when checking the
16300 body for nested subprograms, before full analysis of said body.
16301 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
16302 subprogram only if inner one comes from source.
16303 (Analyze_Function_Call): If the call is given in object notation, the
16304 analysis of the name rewrites the node and analyzes it with the proper
16305 argument list. After analyzing the name, if the call has been rewritten
16306 and the result type is set, no further analysis is needed.
16307 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
16308 mark in function specification, in a context where the formals are
16309 visible and hide outer homographs.
16311 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
16312 as the tagged type for the cases of abstract formal subprograms and
16313 renamings of those. Clean up spec comments.
16314 (Check_Dispatching_Context): Add error message to indicate "abstract
16315 procedure", covering the case of a call to a formal abstract procedure
16316 that has statically tagged operands.
16317 (Check_Dispatching_Call): Check for the case of an actual given by
16318 a tag-indeterminate function call whose type is an ancestor of the
16319 containing call's associated tagged type. This situation can occur
16320 for inherited primitives with function defaults. In this case we
16321 use the tagged type's tag directly as the controlling argument for
16323 (Expand_Call): Name change on call to Expand_Dispatch_Call.
16325 * sprint.adb (Sprint_Node_Actual): Split
16326 N_Formal_Subprogram_Declaration into two alternatives for the new
16327 cases N_Formal_Abstract_Subprogram_Declaration and
16328 N_Formal_Concrete_Subprogram_Declaration.
16329 Char_Literal_Value field is now a Uint.
16331 * trans.c: Get rid of junk Uint2 reference.
16332 Char_Literal_Value field is now a Uint.
16333 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
16334 (gigi): Correct third arg to gimplify_body.
16336 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
16337 (TYPE_LANG_FLAG_0): Check for record or union.
16339 * treepr.adb: Char_Literal_Value field is now a Uint
16341 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
16344 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
16345 Add full UTF-32 support
16346 Char_Code is now 32 bits
16348 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
16349 wide character UTF_32 line terminators.
16350 Initialize Main_Source_File to avoid error when no main
16353 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
16354 (Main_Source_File) when no main source has been loaded, to avoid
16357 2005-02-09 Robert Dewar <dewar@adacore.com>
16359 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
16360 Fix name of Set routine
16362 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
16365 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
16366 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
16369 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
16370 forms of Get_Line subprograms for AI-301.
16372 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
16373 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
16374 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
16375 a-stwima.ads: Minor reformatting.
16377 2005-02-09 Doug Rupp <rupp@adacore.com>
16378 Thomas Quinot <quinot@adacore.com>
16380 * adaint.c, adaint.h
16381 [VMS] (to_ptr32): New function.
16382 (MAYBE_TO_PTR32): New macro.
16383 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
16385 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
16386 [VMS] (#define fork()): Remove since unneccessary.
16387 (__gnat_set_close_on_exec): New routine to support
16388 GNAT.OS_Lib.Set_Close_On_Exec.
16390 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
16391 the parent side as close-on-exec so that they are not inherited by the
16394 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
16395 set or clear the FD_CLOEXEC flag on a file descriptor.
16397 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
16398 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16402 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
16403 on the field if Pragma Component_Alignment (Storage_Unit).
16404 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
16405 side-effects as if it were a constant; also make SAVE_EXPR to protect
16407 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
16409 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
16410 (components_to_record): Test it.
16411 Fix improper usage of REFERENCE_CLASS_P.
16413 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
16416 * utils2.c: Minor reformatting.
16418 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
16419 handle other cases like RECORD_TYPE.
16421 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
16423 2005-02-09 Ed Schonberg <schonberg@adacore.com>
16425 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
16426 component of an array of arrays in an assignment context, and the
16427 aggregate has component associations that require sliding on
16428 assignment, force reanalysis of the aggregate to generate a temporary
16429 before the assignment.
16430 (Must_Slide): Make global to the package, for use in Gen_Assign.
16432 2005-02-09 Ed Schonberg <schonberg@adacore.com>
16434 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
16435 unchecked union with no inferable discriminants, return a
16436 Raise_Program_Error node, rather than inserting it at the point the
16438 (Expand_Record_Equality, Component_Equality): Handle properly the case
16439 where some subcomponent is an unchecked union whose generated equality
16440 code raises program error.
16442 2005-02-09 Doug Rupp <rupp@adacore.com>
16444 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
16445 [VMS] (#define exit hack): Remove.
16447 2005-02-09 Pascal Obry <obry@adacore.com>
16448 Arnaud Charlet <charlet@adacore.com>
16450 * init.c (__gnat_initialize): Add a new parameter eh which contains the
16451 address of the exception registration. The Win32 version of this
16452 routine calls __gnat_install_SEH_handler() to initialize the SEH
16453 (Structured Exception Handling) handler.
16454 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
16455 SEH (Structured Exception Handling) now.
16456 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
16457 (__gnat_initialize for ppc-vxworks): Adjust comments and the
16458 preprocessor condition protecting the call to the extra eh setup
16459 subprogram, which is only available for the ppc target.
16460 (__gnat_clear_exception_count): replaced reference to
16461 variable taskIdCurrent by call to taskIdSelf(), cleaner.
16463 * seh_init.c: New file.
16465 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
16466 (GNATBIND_OBJS): Idem.
16468 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
16469 routine takes a new parameter (a pointer to the exception registration
16470 for the SEH (Structured Exception Handling) support.
16472 * raise.h: (__gnat_install_SEH_handler): New prototype.
16473 Update copyright notice.
16475 * s-tassta.adb (Task_Wrapper): Declare the exception registration
16476 record and initialize it by calling __gnat_install_SEH_handler.
16478 2005-02-09 Vincent Celier <celier@adacore.com>
16480 * make.adb (Gnatmake): Do not fail when the main project has no object
16483 2005-02-09 Doug Rupp <rupp@adacore.com>
16485 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
16486 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
16487 [VMS]: Add translations for g-enblsp.adb.
16489 * s-asthan-vms.adb: Removed.
16490 * s-asthan-vms-alpha.adb: Added.
16492 2005-02-09 Pascal Obry <obry@adacore.com>
16494 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
16495 (LIBGNAT_OBJS): Add seh_init.o.
16497 2005-02-09 Arnaud Charlet <charlet@adacore.com>
16500 * Makefile.in: Link all gnat tools with -static-libgcc, since
16501 -shared-libgcc is now used by default on some systems (e.g. linux with
16503 Remove references to Makefile.prolog/generic, no longer used.
16505 2005-02-09 Vincent Celier <celier@adacore.com>
16507 * prj-makr.adb (Process_Directory): Put file name in canonical case
16508 before matching against the patterns.
16509 If gnatname has been invoked as <prefix>-gnatname
16510 then invoke the compiler as <prefix>-gcc, not just "gcc".
16512 2005-02-09 Ed Schonberg <schonberg@adacore.com>
16514 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
16515 with expansion disabled. The actual subtype is needed among other
16516 places when the selected component appears in the context of a loop
16517 bound, and denotes a packed array.
16518 (Operator_Check): Always use the first subtype in the
16519 error message, to avoid the appearance of internal base types.
16520 (Transform_Object_Operation): Copy each actual in full
16521 to the parameter associations of the constructed call, rather than
16522 using the shallow copy mechanism of New_Copy_List. This ensures that
16523 the chaining of named associations is done properly.
16524 (Complete_Object_Operation): Rewrite node, rather than
16525 replacing it, so that we can trace back to the original selected
16528 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
16529 and calls that use object notation, if the called function is not
16530 declared in a withed unit, place the elaboration constraint on the
16531 unit in the context that makes the function accessible.
16532 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
16533 imposes an elaboration constraint between two packages.
16535 2005-02-09 Ed Schonberg <schonberg@adacore.com>
16537 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
16538 views of a private type after handling its private dependents, to
16539 maintain proper stack discipline between entry and exit from the
16542 2005-02-09 Cyrille Comar <comar@adacore.com>
16544 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
16545 Minor reformatting.
16547 2005-02-09 Arnaud Charlet <charlet@adacore.com>
16549 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
16550 fields for foreign threads.
16552 2005-02-09 Doug Rupp <rupp@adacore.com>
16554 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
16555 recursion warnings when compiled with -gnatdm.
16557 2005-02-09 Robert Dewar <dewar@adacore.com>
16559 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
16560 Slight fix to documentation of -gnaty with no parameters
16562 * xr_tabls.ads: Add ??? comment for missing overall comment
16564 * xsinfo.adb: Make default file name be sinfo.h, since this is what
16565 we now use by default.
16567 * xsnames.adb: Adjust end of file test to look for five space followed
16568 by '#' instead of six spaces. The format of xsnames.adb was modified
16569 in the last update.
16571 * a-numeri.ads: Add reference to AI-388 for greek letter pi
16574 * clean.adb: Minor reformatting.
16576 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
16577 gnatname.adb: Minor reformatting
16578 Add 2005 to copyright output when utility is run
16580 * csets.adb: Eliminate obsolete comment
16582 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
16585 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
16587 2005-02-09 Sergey Rybin <rybin@adacore.com>
16589 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
16590 the difference between compact and incompact layout and add the record
16591 representation clause to the example illustrating different layouts.
16592 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
16593 component clauses").
16595 2005-02-09 Florian Villoing <villoing@adacore.com>
16597 * gnat_ugn.texi: Fix typos.
16598 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
16600 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
16601 in the generated documentation.
16603 2005-02-09 Arnaud Charlet <charlet@adacore.com>
16605 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
16607 Update linker wrapper when linking with non GNU C++.
16609 2005-02-09 Pascal Obry <obry@adacore.com>
16612 Document the procedure to debug the DllMain routine on Windows.
16613 Add note about -funwind-tables and mixed Ada and C/C++ programming in
16615 Document new BIND qualifer /RETURN_CODES=VMS.
16617 2005-02-09 Ben Brosgol <brosgol@adacore.com>
16619 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
16620 Edited gnatmetric chapter
16622 2005-02-09 Robert Dewar <dewar@adacore.com>
16625 Changes to document new wide wide character support
16627 Update documentation on Normalize_Scalars and Initialize_Scalars
16629 2005-02-09 Pascal Obry <obry@adacore.com>
16631 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
16633 2005-02-09 Jose Ruiz <ruiz@adacore.com>
16635 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
16636 from the VxWorks kernel) that is needed for getting the active
16637 priority of the different tasks.
16639 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
16640 Use a pragma Elaborate_Body in the spec file instead.
16641 Noticed by code reading.
16643 2005-02-09 Thomas Quinot <quinot@adacore.com>
16645 * exp_util.ads: Minor correction in comment.
16647 2005-02-09 Arnaud Charlet <charlet@adacore.com>
16649 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
16650 since this procedure is now too complex to be worth inlining.
16652 2005-02-09 Richard Henderson <rth@redhat.com>
16654 * utils.c (gnat_define_builtin): Remove.
16655 (gnat_install_builtins): Use build_common_builtin_nodes.
16657 2005-02-09 Arnaud Charlet <charlet@adacore.com>
16659 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
16660 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
16661 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
16662 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
16663 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
16664 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
16665 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
16666 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
16667 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
16668 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
16669 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
16670 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
16671 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
16672 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
16673 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
16674 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
16675 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
16676 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
16677 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
16678 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
16679 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
16680 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
16681 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
16682 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
16683 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
16684 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
16685 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
16686 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
16687 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
16688 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
16689 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
16690 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
16691 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
16692 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
16695 2005-01-27 Laurent GUERBY <laurent@guerby.net>
16697 * Makefile.in: Fix a-intnam.ads from previous commit,
16698 add 2005 to copyright.
16699 * a-intman-rtems.ads: Renamed to...
16700 * a-intnam-rtems.ads:
16702 2005-01-27 Laurent GUERBY <laurent@guerby.net>
16704 * Makefile.in: Rename GNAT RTEMS specific files.
16705 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
16706 5rosinte.ads, 5rparame.adb: Replaced by files below.
16707 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
16708 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
16710 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
16711 Laurent GUERBY <laurent@guerby.net>
16714 * 5rosinte.ads: Add No_Key constant.
16715 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
16716 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
16718 2005-01-26 Laurent GUERBY <laurent@guerby.net>
16721 * i-cobol.adb (Valid_Numeric): Handle zero length case.
16723 2005-01-20 Richard Henderson <rth@redhat.com>
16725 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
16726 a-intnam-linux.ads and system-linux-alpha.ads.
16727 * a-intnam-linux-alpha.ads: Remove file.
16728 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
16729 * system-linux-alpha.ads: New file.
16731 2005-01-18 Jakub Jelinek <jakub@redhat.com>
16734 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
16735 set to the new string.
16737 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
16739 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
16742 2005-01-18 Richard Henderson <rth@redhat.com>
16744 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
16745 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
16747 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
16749 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
16751 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
16752 (GCC_ZCX_Support): Likewise.
16754 2005-01-11 Bastian Blank <waldi@debian.org>
16756 * system-linux-s390.ads: Define Preallocated_Stacks.
16757 * system-linux-s390x.ads: Likewise.
16759 2005-01-04 Arnaud Charlet <charlet@adacore.com>
16761 * gnat_ugn.texi: Fix texi errors with null variables.
16763 2005-01-03 Thomas Quinot <quinot@adacore.com>
16765 * gen-soccon.c: New utility program to generate g-soccon.ads
16768 * socket.c, gsocket.h: Split inclusion of system header files into a
16769 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
16771 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
16772 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
16773 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
16774 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
16775 should not be edited by hand anymore, but should be regenerated using
16778 2005-01-03 Robert Dewar <dewar@adacore.com>
16779 Ed Schonberg <schonberg@adacore.com>
16780 Vincent Celier <celier@adacore.com>
16782 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
16783 on/off, since this is an obsolescent feature, for which we now generate
16786 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
16787 warning mode is set and obsolescent usage of this attribute occurs.
16788 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
16789 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
16790 predates, and partly motivates, the adoption of the AI.
16791 Implement new Ada 2005 attribute Mod
16793 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
16796 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
16798 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
16799 pragma restrictions.
16800 New entry for Ada 2005 attribute Mod.
16803 Add recognition of new pragma Restrictions No_Dependence
16804 Recognize restriction No_Obsolescent_Features at parse time
16806 * bcheck.adb: Add circuitry for checking for consistency of
16807 No_Dependence restrictions.
16809 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
16812 * restrict.ads, restrict.adb: Add subprograms to deal with
16813 No_Dependence restrictions.
16815 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
16818 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
16819 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
16821 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
16822 dummy parameter to scng instantiation.
16823 Needed for new restriction No_Obsolescent_Features
16825 * scn.adb: (Obsolescent_Check): New procedure
16826 Needed for new restriction No_Obsolescent_Features
16828 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
16829 specified by AI-285, needed for implementation of AI-388 (adding greek
16830 pi to Ada.Numerics).
16831 Add new generic formal to scng, needed for new restriction
16832 No_Obsolescent_Features.
16834 * s-rident.ads: Add new restriction No_Obsolescent_Features.
16836 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
16837 restrictions lines.
16838 (Scan_ALI): When finding an unexpected character on an R line, raise
16839 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
16840 Ignore_Errors is True, default restrictions are set and scanning of the
16841 ALI file continues with the next line. Also, when Bad_R_Line is raised
16842 and Ignore_Errors is True, skip to the end of le line.
16844 * sem_ch10.adb: Check that explicit with's do not violate
16845 No_Dependence restrictions.
16846 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
16847 illegal context clauses containing child units of instance.
16849 * sem_prag.adb: Processing and checking for new No_Dependence
16851 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
16852 analyze and check the External argument.
16854 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
16856 2005-01-03 Robert Dewar <dewar@adacore.com>
16858 * atree.adb: Add a fifth component to entities
16859 This allows us to add 32 flags and four new fields
16861 * atree.ads: Add a fifth component to entities
16862 This allows us to add 32 flags and four new fields
16864 * einfo.ads, einfo.adb: Document new fields and new flags now available
16865 Add routines for printing new fields
16867 * treepr.adb: Call routines to print out additional fields if present
16869 2005-01-03 Arnaud Charlet <charlet@adacore.com>
16871 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
16872 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
16874 * Makefile.in: Add support to build shared Ada libraries on solaris x86
16875 Remove gpr2make, replaced by gprmake.
16876 Remove references to gnatmem and libaddr2line.
16877 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
16878 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
16879 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
16880 a-numaux-darwin.ads and a-numaux-darwin.adb
16881 Enable mlib-tgt-lynxos.adb on lynxos.
16883 * Make-lang.in: Remove rules for gpr2make.
16884 When generating sdefault.adb, do not call Relocate_Path
16885 on S3 for function Target_Name, as it is not a path.
16886 Remove references to gnatmem and libaddr2line.
16888 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
16891 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
16893 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
16894 address is incompatible with its base type alignment constraints when
16895 this can be decided statically.
16897 2005-01-03 Olivier Hainque <hainque@adacore.com>
16899 * decl.c (compatible_signatures_p): New function. The intended purpose
16900 is to check if two function signatures for a call-site and a callee are
16901 compatible enough for the call to be valid. The underlying purpose is
16902 to check if a call to a mapped builtin is using the right interface.
16903 The current code actually does not check antyhing - this a placeholder
16904 for future refinements.
16905 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
16906 builtin calls for convention Intrinsic.
16908 * gigi.h (builtin_decl_for): Declare (new function).
16910 * utils.c (gnat_install_builtins): Install the target specific builtins.
16911 (builtin_decl_for): New function, provide a dummy body for now.
16913 2005-01-03 Geert Bosch <bosch@adacore.com>
16915 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
16916 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
16917 (Pred): Implement in terms of Succ.
16919 * trans.c (convert_with_check): Reimplement conversion of float to
16922 2005-01-03 Ed Schonberg <schonberg@adacore.com>
16923 Vincent Celier <celier@adacore.com>
16925 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
16926 bounds can be negative, and must be declared Int, not Nat.
16928 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
16929 array is checked after using the index in the array.
16931 * makegpr.adb (Add_Switches): Check if there is a package for the
16932 processor. If there is no package, do not look for switches.
16934 2005-01-03 Ed Schonberg <schonberg@adacore.com>
16936 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
16937 generation of predefined stream operations (specs and bodies) should
16938 proceed. Under various restrictions these subprograms must not be
16941 2005-01-03 Thomas Quinot <quinot@adacore.com>
16944 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
16945 amount of PCS-specific code in RACW stubs generation.
16946 (Copy_Specification): Set Etype on copied formal parameter entities, as
16947 this information is needed for PolyORB stubs generation.
16948 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
16949 variable Dynamic_Async.
16950 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
16951 (Build_RPC_Receiver_Specification): Make generic again, as recent
16952 changes have allowed RPC receivers to have the same profile for both
16953 variants of the PCS.
16954 Reorganise RPC receiver generation to reduce differences between the
16955 structure of GARLIC and PolyORB RPC receivers.
16956 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
16958 Simplify elaboration code for RCI packages.
16960 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
16961 generation to reduce differences between the structure of GARLIC and
16962 PolyORB RPC receivers.
16964 * s-stratt.adb: Fix typo in comment.
16966 2005-01-03 Thomas Quinot <quinot@adacore.com>
16968 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
16969 copied from Make_Init_Call).
16971 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
16972 reads and assignments on a temporary variable declared with appropriate
16975 2005-01-03 Robert Dewar <dewar@adacore.com>
16977 * i-c.adb (To_C): Raise CE if string is null and Append_Null
16979 2005-01-03 Robert Dewar <dewar@adacore.com>
16981 * i-cstrin.adb (Update): Do not append a null in form called with a
16982 String. This avoids unintended behavior.
16984 2005-01-03 Arnaud Charlet <charlet@adacore.com>
16987 * init.c: Fix warnings on Free BSD section.
16989 2005-01-03 Arnaud Charlet <charlet@adacore.com>
16992 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
16995 2005-01-03 Vincent Celier <celier@adacore.com>
16997 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
16998 libraries when Unique_Compile is True (-u switch).
17001 2005-01-03 Robert Dewar <dewar@adacore.com>
17003 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
17004 upper case letter or underscore after W, as allowed by spec.
17006 2005-01-03 Arnaud Charlet <charlet@adacore.com>
17008 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
17009 darwin port by using proper type definitions from header files.
17010 Use SIGTERM instead of SIGABRT for SIGADAABORT.
17012 2005-01-03 Robert Dewar <dewar@adacore.com>
17014 * par.adb: Enhance error message handling for configuration file
17017 2005-01-03 Robert Dewar <dewar@adacore.com>
17019 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
17020 removed during the previous update (test properly for case of dividing
17021 largest negative number by -1, which generates overflow).
17023 2005-01-03 Ed Schonberg <schonberg@adacore.com>
17024 Sergey Rybin <rybin@adacore.com>
17026 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
17027 to use as the defining identifier for a formal package.
17028 (Remove_Parent): If the instance takes place within (an instance of)
17029 a sibling, preserve private declarations of common parent.
17031 2005-01-03 Ed Schonberg <schonberg@adacore.com>
17033 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
17034 to determine whether one of the operands is a fixed-point type for
17035 which a user-defined multiplication or division operation might be
17038 * sem_res.adb (Valid_Conversion): The legality rules for conversions
17039 of access types are symmetric in Ada 2005: either designated type can
17042 2005-01-03 Vincent Celier <celier@adacore.com>
17044 * s-fileio.adb (Temp_File_Record): Change length of string component
17045 Name from L_tmpnam + 1 to max_path_len + 1.
17047 2005-01-03 Arnaud Charlet <charlet@adacore.com>
17049 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
17050 Self_Id.Deferral_Level = 0.
17051 (Do_Pending_Action): Move this function to the spec.
17053 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
17054 Do_Pending_Action explicitely when needed, in case we're using
17055 No_Abort restrictions.
17057 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
17058 deferral level since it will not get changed by the generated code.
17059 Keeping a default value of 1 would prevent some operations (e.g.
17060 select or delay) to proceed successfully.
17062 2005-01-03 Ben Brosgol <brosgol@adacore.com>
17063 Robert Dewar <dewar@adacore.com>
17064 Cyrille Comar <comar@adacore.com>
17066 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
17067 porting guide chapter (vms version).
17068 Revised doc title (removed "for native platforms") and subtitle.
17069 Add discussion on warning flag for obsolescent features. First we
17070 note that it applies to obsolete GNAT features, which was previously
17071 omitted. Second we contrast the behavior with that of the new
17072 Ada 2005 AI-368 restriction No_Obsolescent_Features.
17073 Preliminary rewriting of GNAT & libraries chapter in order to take
17074 into account default project locations & new project manager
17077 2005-01-03 Robert Dewar <dewar@adacore.com>
17079 * cstand.adb (Create_Operators): Clean up format and documentation of
17080 unary and binary operator result tables. No change in code, just
17081 reformatting and addition of comments.
17083 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
17084 sem_ch2.adb: Minor reformatting
17086 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
17087 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
17088 comments for Tree_Read and Tree_Write.
17090 2005-01-03 Pascal Obry <obry@adacore.com>
17092 * exp_attr.ads: Minor reformatting.
17094 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
17096 * comperr.adb (Compiler_Abort): Add specialized message for GAP
17099 2005-01-03 Ed Schonberg <schonberg@adacore.com>
17101 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
17102 whether the ancestor type is private, as may be the case with nested
17105 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
17108 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
17110 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
17112 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
17113 * utils2.c (build_unary_op): Likewise.
17115 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17117 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
17119 2004-12-19 Richard Henderson <rth@redhat.com>
17121 * trans.c (gigi): Update gimplify_body call.
17123 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
17125 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
17127 2004-12-07 Ed Falis <falis@adacore.com>
17129 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
17130 current task being suspended.
17132 * init.c (__gnat_clear_exception): added to reset VxWorks exception
17134 (__gnat_map_signal): removed test for current task being suspended.
17136 2004-12-07 Gary Dismukes <dismukes@adacore.com>
17138 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
17139 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
17140 targets (such as AAMP).
17142 2004-12-07 Ed Schonberg <schonberg@adacore.com>
17144 * atree.adb (Visit_Itype): Create a new name for the generated itype,
17145 because the back-end may otherwise treat it as a redefinition of the
17148 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
17150 * back_end.adb (Scan_Back_End_Switches): Accept --param.
17152 * lang-specs.h: Accept --param.
17154 2004-12-07 Vincent Celier <celier@adacore.com>
17156 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
17157 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
17158 Current_Body_Suffix => Ada_Body_Suffix).
17159 Take into account Externally_Built attribute.
17161 * clean.adb (In_Extension_Chain): Always return False when one of the
17162 parameter is No_Project.
17163 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
17164 Ada_Language_Index).
17165 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
17166 Process_Languages for procedure Parse).
17168 * gnatcmd.adb (Carg_Switches): New table.
17169 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
17170 Adapt to name changes in package Prj (Current_Spec_Suffix =>
17171 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
17173 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
17174 Header_Num and function Hash are now declared in package Prj,
17177 * prj.adb (Suffix_Of): New function.
17178 (Set (Suffix)): New procedure.
17179 (Hash): One function moved from Prj.Com
17180 (Is_Present, Language_Processing_Data_Of): New functions
17181 (Set): Two new procedures
17182 (Add_Language_Name, Display_Language_Name): New procedures
17184 * prj.ads: (Suffix_Of): New function
17185 (Set (Suffix)): New procedure
17186 Add several types and tables for multi-language support.
17187 (Header_Num): Type moved from Prj.Com
17188 (Hash): Two functions moved from Prj.Com
17189 (Is_Present, Language_Processing_Data_Of): New functions
17190 (Set): Two new procedures
17191 (Add_Language_Name, Display_Language_Name): New procedures
17192 (Naming): Component name changes:
17193 Current_Spec_Suffix => Ada_Spec_Suffix,
17194 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
17195 Impl_Suffixes, Supp_Suffixes.
17196 (Project_Data): New components: Externally_Built, Supp_Languages,
17197 First_Language_Processing, Supp_Language_Processing, Default_Linker,
17198 Default_Linker_Path.
17200 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
17201 new package Language_Processing with its attributes (Compiler_Driver,
17202 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
17203 Binder_Driver, Default_Linker).
17205 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
17206 (Header_Num): Type moved to package Prj
17208 * prj-env.adb: Adapt to name changes in package Prj
17209 (Current_Spec_Suffix => Ada_Spec_Suffix,
17210 Current_Body_Suffix => Ada_Body_Suffix).
17212 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
17213 default to the project path, except the "-" is one of the directories
17214 in env var ADA_PROJECT_PATH.
17215 (Current_Project_Path): Global variable, replacing Project_Path
17216 that was in the body of Prj.Part.
17217 (Project_Path): New function
17218 (Set_Project_Path): New procedure
17219 Initialize Current_Project_Path during elaboration of the package
17220 Remove dependency on Prj.Com, no longer needed
17222 * prj-ext.ads (Project_Path): New function
17223 (Set_Project_Path): New procedure
17225 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
17226 suffix is defined for language <lang>.
17227 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
17228 accessing directly the components of Naming.
17229 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
17230 Reorganise of this package.
17231 Break procedure Check in several procedures.
17233 * prj-nmsc.ads: Replace all procedures (Ada_Check,
17234 Other_Languages_Check and Language_Independent_Check) with a single
17237 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
17238 Process_Languages, no longer needed.
17240 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
17241 Current_Project_Path.
17242 Remove elaboration code, moved to the body of Prj.Ext
17243 Use new function Prj.Ext.Project_Path instead of old variable
17245 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
17246 When comparing with project paths on the stack, first put the resolved
17247 path in canonical case.
17248 (Parse_Single_Project): Set the path name of the project file in the
17249 tree to the normalized path.
17251 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
17252 parameter Process_Languages, no longer needed.
17253 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
17254 Other_Languages_Check.
17256 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
17257 to store the resolved canonical path of the project file.
17258 Remove dependency to Prj.Com, no longer needed
17260 * prj-util.adb: Adapt to name changes in package Prj
17261 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
17264 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
17265 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
17266 Externally_Built, Include_Option, Language_Processing.
17268 * makegpr.adb: Numerous changes due to changes in packages
17271 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
17272 default to the project path, except whe "-" is one of the directories
17273 in env var ADA_PROJECT_PATH.
17274 (Gnatls): In verbose mode, add the new section "Project Search Path:"
17276 2004-12-07 Robert Dewar <dewar@adacore.com>
17278 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
17280 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
17283 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
17284 flag. No longer needed now that we handle this in gnat1drv.adb.
17286 * repinfo.ads: Minor reformatting
17288 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17289 Olivier Hainque <hainque@adacore.com>
17290 Eric Botcazou <ebotcazou@adacore.com>
17292 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
17293 TYPE_SIZE_UNIT of result type if SIZE is not specified.
17294 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
17295 of a bitfield, which we know is useless and causes trouble because of
17296 alignment implications.
17298 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
17300 (process_attributes): Clear DECL_COMMON again when a section attribute
17302 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
17303 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
17304 (create_field_decl): Special case ADDRESSABLE negative to mean
17305 "no bitfield creation", to be used by make_aligning_type. Don't
17306 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
17307 fields claimed addressable still have to be bitfields. Use
17308 value_factor_p instead of a raw binop construction to check for the
17309 position's alignment.
17311 2004-12-07 Geert Bosch <bosch@adacore.com>
17313 * eval_fat.adb: Revert previous change.
17315 2004-12-07 Thomas Quinot <quinot@adacore.com>
17316 Ed Schonberg <schonberg@adacore.com>
17318 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
17319 with an implicit dereference as its prefix, use
17320 Insert_Explicit_Dereference instead of merely rewriting the prefix into
17321 an explicit dereference. This ensures that a reference to the original
17322 prefix is generated, if appropriate.
17324 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
17325 dereference is rewritten to an explicit one, generate a reference to
17326 the entity denoted by its prefix using the original prefix node, so
17327 the dereference can be properly recorded as a read of the denoted
17328 access value, if appropriate.
17330 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
17331 emitting 'assigned but never read' warning on a variable on the basis
17332 that it has an access type.
17333 (Check_References): Emit unreferenced warning when the scope is a
17336 2004-12-07 Robert Dewar <dewar@adacore.com>
17337 Ed Schonberg <schonberg@adacore.com>
17339 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
17342 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
17343 leaving call unchanged.
17344 This deals with the case where the pragma Import specified
17345 an external name, to be handled by the back end.
17347 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
17348 subprogram which is Imported with convention Intrinsic if an
17349 External_Name argument is specified.
17350 (Process_Import_Or_Interface): Properly diagnose link name argument.
17351 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
17352 with Sem_Ch6.Cannot_Inline.
17353 (Process_Inline): Provide separate warning for inapplicable inline
17355 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
17356 treatment is uniform on different targets.
17358 2004-12-07 Ed Schonberg <schonberg@adacore.com>
17360 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
17361 construct is rewritten, preserve end label to permit source navigation.
17363 2004-12-07 Thomas Quinot <quinot@adacore.com>
17365 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
17366 Specific_Build_Stub_Target): New subprograms.
17367 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
17368 the PCS implementation used, using the above PCS-customized subprograms.
17369 Minor reformatting.
17370 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
17371 for generation of DSA code targeted to the PolyORB PCS.
17372 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
17373 implementation of the partition communication subsystem in ancillary
17375 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
17376 PolyORB_Support.Build_Stub_Type): New subrograms containing the
17377 PCS-specific part of Add_Stub_Type.
17378 (Insert_Partition_Check): Use runtime library function to perform
17381 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
17382 (RE_Same_Partition): New entity, from s-parint.
17384 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
17386 2004-12-07 Gary Dismukes <dismukes@adacore.com>
17388 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
17389 Output the copyright message on a separate line from the version
17392 2004-12-07 Joel Brobecker <brobecker@adacore.com>
17394 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
17395 compile-time warning.
17397 2004-12-07 Robert Dewar <dewar@adacore.com>
17399 * g-regpat.adb: (Match): Change a misuse of or to or else
17401 2004-12-07 Ed Schonberg <schonberg@adacore.com>
17404 (Generate_Reference): Handle properly a reference to an entry formal,
17405 when an accept statement has a pragma Unreferenced for it.
17407 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
17408 and the Has_Pragma_Unreferenced flag for each formal before analyzing
17409 the body, to ensure that warnings are properly emitted for each accept
17410 statement of a given task entry.
17412 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
17414 * Makefile.in: Add support for foreign threads on VMS.
17416 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17418 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
17420 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
17422 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
17424 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
17426 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
17428 2004-12-07 Robert Dewar <dewar@adacore.com>
17430 * nlists.adb (Prepend_Debug): Remove parameters and nest within
17432 (Remove_Next_Debug): Same fix
17434 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
17435 maintain back pointers now, though we did not used to, and comments
17437 (Prepend): Remove pragma Inline.
17438 (Remove_Next): Same cleanup
17440 2004-12-07 Thomas Quinot <quinot@adacore.com>
17442 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
17443 used to record an implicit dereference as a read operation on its
17444 prefix when operating under -gnatc. Necessary to avoid spurious
17445 'variable assigned but never read' warnings in that mode.
17446 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
17447 is a non-overloaded implicit dereference, call the above subprogram to
17448 ensure proper recording of references.
17450 2004-12-07 Gary Dismukes <dismukes@adacore.com>
17452 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
17453 to be resolved later as part of Analyze_Iteration_Scheme's call to
17456 2004-12-07 Ed Schonberg <schonberg@adacore.com>
17458 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
17459 prefix is not a scalar type, place error message on prefix, not on
17462 2004-12-07 Bernard Banner <banner@adacore.com>
17464 * vxaddr2line.adb: Add support for x86 vxworks
17466 2004-12-07 Thomas Quinot <quinot@adacore.com>
17468 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
17469 documentation of the behaviour of these functions when passed an IP
17470 address that has no record in the system hosts database and no reverse
17473 * cstand.adb, a-tags.ads: Fix typos in comment.
17475 2004-12-07 Robert Dewar <dewar@adacore.com>
17477 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
17478 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
17479 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
17480 s-poosiz.ads: Minor reformatting
17482 * make.adb: Minor reformatting
17483 Add some ??? comments asking for more comments
17485 * s-poosiz.adb: Minor reformatting
17486 Add comments on alignment requirement
17488 * sinfo.ads: Remove obsolete comment and fix typo.
17490 2004-12-07 Vincent Celier <celier@adacore.com>
17491 Sergey Rybin <rybin@adacore.com>
17493 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
17494 Files" with the new tool and package names.
17495 Reformatting to suppress most of the warnings for line too long
17496 Document the new section "Project Search Path:" in the output of
17498 Add gnatmetric section
17500 2004-12-07 Vincent Celier <celier@adacore.com>
17502 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
17503 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
17504 and -eit to -ept. Added qualifier
17505 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
17507 2004-11-27 Andreas Schwab <schwab@suse.de>
17509 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
17511 2004-11-25 Arnaud Charlet <charlet@adacore.com>
17513 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
17514 internal implementation unit GNAT.Sockets.Thin,
17515 as their usage for sockets is non-portable (using the read and write
17516 functions from the system runtime library is fine on UNIX but won't
17517 work under Windows).
17519 * mingw32.h: Update copyright notice.
17521 2004-11-25 Arnaud Charlet <charlet@adacore.com>
17523 * ada-tree.h: Minor reformatting of previous change to avoid lines
17524 longer than 79 characters.
17526 2004-11-25 Olivier Hainque <hainque@adacore.com>
17528 * tb-gcc.c: GCC infrastructure based implementation of
17531 2004-11-24 Steven Bosscher <stevenb@suse.de>
17533 * misc.c (gnat_post_options): Don't clear
17534 flag_inline_functions.
17536 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
17539 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
17542 2004-11-21 Andreas Jaeger <aj@suse.de>
17544 * stylesw.adb: Change Style_Check_Subprogram_Order to
17545 Style_Check_Order_Subprograms.
17547 2004-11-18 Arnaud Charlet <charlet@adacore.com>
17549 * adaint.h, adaint.c
17550 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
17552 Add also a cast to kill another warning.
17553 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
17554 parameter with the priority class of the parent process instead of
17555 always using the NORMAL_PRIORITY_CLASS.
17556 (__gnat_dup): New function.
17557 (__gnat_dup2): New function.
17558 (__gnat_is_symbolic_link): Enable the effective body of this
17559 function when __APPLE__ is defined.
17561 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
17564 2004-11-18 Olivier Hainque <hainque@adacore.com>
17566 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
17567 address of which may be used to represent "others" and "all others"
17568 choices in exception tables, instead of the current harcoded
17569 (void *)0 and (void *)1.
17570 (Setup_Exception): Do nothing in the GNAT SJLJ case.
17572 * gigi.h (others_decl, all_others_decl): New decls representing the
17573 new Others_Value and All_Others_Value objects.
17574 (struct attrib): Rename "arg" component as "args", since GCC expects a
17575 list of arguments in there.
17577 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
17578 corresponding objects exported by a-exexpr, instead of hardcoded dummy
17581 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
17582 others_decl and all_others_decl instead of hardcoded dummy addresses
17583 to represent "others" and "all others" choices, which is cleaner and
17584 more flexible with respect to the possible eh pointer encoding policies.
17586 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
17587 (process_attributes): Account for the naming change of the "args"
17588 attribute list entry component.
17590 * decl.c (build_attr_list): Rename into prepend_attributes to allow
17591 cumulating attributes for different entities into a single list.
17592 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
17593 attributes for the current entity and propagate first subtype
17594 attributes to other subtypes.
17595 <E_Procedure>: Attribute arguments are attr->args and not
17596 attr->arg any more.
17597 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
17598 argument provided, as this is what GCC expects. Use NULL_TREE instead
17601 2004-11-18 Robert Dewar <dewar@adacore.com>
17603 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
17604 Minor reformatting througout (including new function specs)
17605 Add ??? comments asking for clarification.
17607 2004-11-18 Thomas Quinot <quinot@adacore.com>
17609 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
17610 incomplete duplicate implementation of this subprogram from butil.
17612 2004-11-18 Thomas Quinot <quinot@adacore.com>
17614 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
17615 procedures factors the common processing for building an RPC receiver
17616 for an RCI package or an RACW type.
17617 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
17618 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
17619 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
17621 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
17623 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
17625 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
17626 distribution subprogram identifiers that are either subprogram numbers
17628 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
17629 string distribution identifiers assigned to a given subprogram.
17630 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
17631 (Add_RAS_Dereference_TSS): Add comments.
17632 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
17633 is not referenced yet because it will be used by the PolyORB DSA
17635 (Insert_Partition_Check): Remove fossile code.
17636 (First_RCI_Subprogram_Id): Document this constant.
17637 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
17639 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
17640 replaced with calls to Get_Library_Unit_Name_String. Previously there
17641 were several instances of the same code in different locations in the
17642 compiler; this checkin completes the replacement of all of these
17643 instances with calls to a common subprogram.
17644 Minor reformatting.
17646 * sem_dist.adb: Remove comment noting that RPC receiver generation
17647 should be disabled for RACWs that implement RASs.
17648 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
17650 * sem_util.ads, sem_util.adb (Has_Stream): New function
17651 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
17652 qualified name of a library unit into the name buffer.
17653 (Note_Possible_Modification): Generate a reference only
17654 if the context comes from source.
17656 * snames.ads (PCS_Names): New subtype corresponding to names of
17657 supported implementations of the Partition Communication Subsystem
17658 (PCS) (i.e. the runtime library support modules for the distributed
17661 2004-11-18 Robert Dewar <dewar@adacore.com>
17662 Ed Schonberg <schonberg@adacore.com>
17664 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
17665 (Has_Rep_Pragma): New function
17666 (Has_Attribute_Definition_Clause): New function
17667 (Record_Rep_Pragma): Moved here from sem_ch13.adb
17668 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
17670 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
17672 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
17673 (Expand_Pragma_Psect_Object): New procedure
17674 These procedures contain the revised and cleaned up processing for
17675 these two pragmas. This processing was formerly in Sem_Prag, but
17676 is more appropriately moved here. The cleanup involves making sure
17677 that the pragmas are properly attached to the tree, and that no
17678 nodes are improperly shared.
17680 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
17681 pragmas to Exp_Prag, which is more appropriate.
17682 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
17683 check for duplicates Remove use of Is_Psected flag, no longer needed.
17684 Use new Make_String_Literal function with string.
17686 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
17687 that are functions return universal values, that have to be converted
17688 to the context type.
17689 Use new Make_String_Literal function with string.
17690 (Get_Stream_Convert_Pragma): New function, replaces the use of
17691 Get_Rep_Pragma, which had to be kludged to work in this case.
17693 * freeze.adb: Use new Has_Rep_Pragma function
17695 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
17696 function with string.
17697 Use new Has_Rep_Pragma function.
17699 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
17702 2004-11-18 Robert Dewar <dewar@adacore.com>
17704 * errout.ads, errout.adb: (First_Sloc): New function
17706 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
17707 check (-gnatyx) instead of being included as a redundant construct
17710 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
17711 Style_Check_Order_Subprograms.
17713 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
17714 stylesw.adb: Add Style_Check_Xtra_Parens
17716 * usage.adb: Add line for -gnatyx (check extra parens)
17718 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
17720 2004-11-18 Ed Schonberg <schonberg@adacore.com>
17721 Robert Dewar <dewar@adacore.com>
17723 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
17724 discriminant of a constrained subtype, analyze the copy of the
17725 corresponding constraint, because in some cases it may be only
17726 partially analyzed.
17727 Removes long-lived ??? comments.
17729 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
17730 handled controlled or secondary-stack expressions within the
17731 iteration_scheme of a loop.
17733 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
17734 bounds that may contain functions calls, to prevent memory leaks when
17735 the bound contains a call to a function that uses the secondary stack.
17736 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
17737 generate temporaries for loop bounds that might contain function calls
17738 that require secondary stack and/or finalization actions.
17740 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
17741 selected component and the selector is overloadable (not just a
17742 function) treat as function call, Analyze_Call will disambiguate if
17744 (Analyze_Selected_Component): Do not generate an actual subtype for the
17745 selected component if expansion is disabled. The actual subtype is only
17746 needed for constraint checks.
17747 (Analyze_Allocator): If restriction No_Streams is set, then do
17748 not permit objects to be declared of a stream type, or of a
17749 composite type containing a stream.
17751 * restrict.ads: Remove the a-stream entry from Unit_Array, since
17752 No_Streams no longer prohibits with'ing this package.
17754 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
17755 discriminants, but the parent base has unknown discriminants, there is
17756 no discriminant constraint to inherit. Such a discrepancy can arise
17757 when the actual for a formal type with unknown discriminants is a
17758 similar private type whose full view has discriminants.
17759 (Analyze_Object_Declaration): If restriction No_Streams is set, then
17760 do not permit objects to be declared of a stream type, or of a
17761 composite type containing a stream.
17763 2004-11-18 Ed Schonberg <schonberg@adacore.com>
17765 * exp_dbug.ads: Update documentation to reflect simpler encoding for
17766 protected operations.
17768 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
17769 generated name, it complicates decoding in gdb and hinders debugging
17770 of protected operations.
17771 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
17772 flag for the protected entry barrier function.
17773 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
17774 flag for the protected entry function.
17776 2004-11-18 Nicolas Setton <setton@adacore.com>
17778 * expect.c: Define __unix__ when __APPLE__ is defined.
17780 * Makefile.in: Inform the value of the variable GMEM_LIB in the
17781 Darwin-specific section.
17783 * lang-specs.h: Change the placement of the %1 marker.
17784 Works around the fact that gcc adds -fPIC by default under Darwin.
17786 2004-11-18 Ed Schonberg <schonberg@adacore.com>
17788 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
17789 type of the object with the packed array type, set the Analyzed flag
17790 on the object if it is an entity or simple indexed component, to avoid
17791 spurious type errors.
17793 2004-11-18 Gary Dismukes <dismukes@adacore.com>
17795 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
17796 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
17797 separate line from the version message.
17799 2004-11-18 Ed Falis <falis@adacore.com>
17801 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
17803 (init_float): Eliminate initialization of floating point status for
17804 AE653. The instructions have no effect for vThreads.
17806 2004-11-18 Vincent Celier <celier@adacore.com>
17808 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
17809 gnatbind is invoked with -shared.
17811 2004-11-18 Jose Ruiz <ruiz@adacore.com>
17813 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
17814 for Detect_Blocking which is redundant with the check done within the
17815 procedure Protected_Single_Entry_Call.
17816 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
17817 Detect_Blocking which is redundant with the check done within the
17818 procedure Protected_Single_Entry_Call.
17820 2004-11-18 Vincent Celier <celier@adacore.com>
17822 * makegpr.adb (Compile): Put the compiling switches (in package
17823 Compiler and on the command line) immediately after "-c", instead of
17824 at the end of the command line invocation of the compiler, when
17825 compiling a non-Ada file.
17826 (Build_Global_Archive): When there is no need to rebuild the archive,
17827 set Global_Archive_Exists, so that the archive is passed to the linker
17830 2004-11-18 Robert Dewar <dewar@adacore.com>
17831 Sergey Rybin <rybin@adacore.com>
17834 Remove extra paren check from list of checks for redundant constructs
17835 Add documentation of new -gnatyx style check (check extra parens)
17836 Remove paragraph about gnatelim debug options.
17838 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
17839 objects rather than forbidding dependencies on the package Ada.Streams.
17841 * sinfo.ads: Add ??? note that we should document pragmas passed to
17844 * g-expect.ads: Fix a few typos in the comments.
17846 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
17848 * misc.c (gnat_handle_option): Use %< and %> for quoting in
17851 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17853 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
17855 2004-11-07 Andreas Schwab <schwab@suse.de>
17857 * Makefile.in (install-gnatlib): Remove spurious hyphen.
17859 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
17862 * Makefile.in (darwin): Set soext to .dylib.
17864 2004-10-26 Vincent Celier <celier@gnat.com>
17865 Thomas Quinot <quinot@act-europe.fr>
17867 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
17868 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
17869 there is no use of GNAT.Sockets.Constants.
17870 Remove remaining pragma Import for C_Write
17871 Remove C_Read and C_Write from internal implementation unit
17872 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
17873 the read and write functions from the system runtime library is fine
17874 on UNIX but won't work under Windows).
17876 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
17877 (Check_Selector): Use C_Recv instead of C_Read.
17878 Selectors are the GNAT.Sockets abstraction to perform a select()
17879 call on a set of descriptors. To allow abortion of an ongoing
17880 select operation, some data is written to a dedicated socket that
17881 is always monitored.
17882 Under Windows, the write and read library functions cannot operate
17883 on sockets, so we need to use send and recv instead, which is portable
17884 across all supported platforms.
17886 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
17887 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
17888 (using the read and write functions from the system runtime library is
17889 fine on UNIX but won't work under Windows).
17891 2004-10-26 Nicolas Setton <setton@act-europe.fr>
17893 * mlib-tgt-darwin.adb: New file.
17895 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
17896 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
17897 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
17898 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
17901 * Makefile.in: Add support for building shared libraries under Darwin.
17902 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
17903 the low level EH init subprogram to be called from __gnat_initialize.
17905 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
17906 indicates which options to pass to the archive indexer.
17908 * mlib-utl.adb: Add support for calling ranlib with additional
17909 options. This is needed for instance under Mac OS X.
17910 (Ranlib_Options): New global variable, used to store the potential
17911 options to pass to ranlib.
17912 (Ar): Use Ranlib_Options when spawning ranlib.
17913 (Initialize): Set the value of ranlib option.
17915 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
17917 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
17918 instead of 8K, to reflect the real potential needs for stack-checking
17921 2004-10-26 Pascal Obry <obry@gnat.com>
17923 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
17925 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
17926 Windows only the initial thread stack size can be set so it is good to
17927 start we a low stack size.
17928 The OS will adjust the size as needed.
17930 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
17931 Nicolas Setton <setton@act-europe.fr>
17933 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
17934 "__unix__" instead of "unix".
17935 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
17936 sections were just mistakenly ignored. The former is
17937 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
17938 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
17939 of hpux. This prevents an unwanted definition of the symbol
17940 convert_addresses in adaint.o.
17942 2004-10-26 Gary Dismukes <dismukes@gnat.com>
17944 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
17945 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
17947 2004-10-26 Cyrille Comar <comar@act-europe.fr>
17949 * a-filico.ads, a-filico.adb: fix incorrect header.
17951 2004-10-26 Javier Miranda <miranda@gnat.com>
17953 * a-ststio.ads: Fix typo in identifier
17955 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
17957 * sem_ch4.adb: Minor reformatting.
17959 2004-10-26 Ed Schonberg <schonberg@gnat.com>
17961 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
17962 enabled, check the result of unary and binary operations when the
17963 expression is the right-hand side of an assignment.
17965 2004-10-26 Vincent Celier <celier@gnat.com>
17967 * clean.adb (Delete): Do not output warnings when in quiet output and
17968 not in verbose mode.
17969 (Force_Deletions): New Boolean flag, defaulted to False
17970 (Delete): Only delete a file if it is writable, and when
17971 Force_Deletions is True.
17972 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
17973 (Usage): Line for new switch -f
17974 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
17977 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
17979 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
17980 JM type only if its size matches that of the wrapper. When a size is
17981 prescribed and the field is not aliased, remove the wrapper of a JM
17982 type only if the size is not greater than that of the packed array.
17983 (gnat_to_gnu_entity): Change the extension of packed array wrappers
17986 2004-10-26 Geert Bosch <bosch@gnat.com>
17988 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
17989 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
17990 (Pred): Implement in terms of Succ.
17992 2004-10-26 Ed Schonberg <schonberg@gnat.com>
17994 * exp_aggr.adb (Safe_Component): An aggregate component that is an
17995 unchecked conversion is safe for in-place use if the expression of the
17996 conversion is safe.
17997 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
17998 be expandable in place even if the aggregate does not come from source.
17999 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
18000 designated object of an allocator in place, rather than building it
18001 first on the stack. The previous scheme forces a full copy of the array,
18002 and may be altogether unsusable if the size of the array is too large
18003 for stack allocation.
18005 2004-10-26 Robert Dewar <dewar@gnat.com>
18007 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
18008 compares if the component is atomic.
18010 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
18011 array assignment if the component type is atomic.
18013 2004-10-26 Ed Schonberg <schonberg@gnat.com>
18014 Eric Botcazou <ebotcazou@act-europe.fr>
18016 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
18017 is aliased and is a by_reference type, do not pass by copy.
18018 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
18019 detect whether the call is in the right side of an assignment or
18020 the expression of an object declaration. Recurse on component
18021 association within aggregates.
18022 Call it in the condition that determines whether the temporary is
18023 necessary for correct stack-checking.
18025 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
18027 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
18028 RACW_Type, used in the PolyORB version.
18029 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
18030 version and the GARLIC version.
18032 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
18033 Rename RCI_Info to RCI_Locator for better consistency between the
18034 GARLIC and PolyORB versions of the distributed systems annex.
18035 (DSA_Implementation_Name): This enumeration lists the possible
18036 implementations of the Partition Communication Subsystem for the
18037 Distributed Systems Annex (DSA). The three available implementations
18038 are the dummy stub implementation (No_DSA), and two versions based on
18039 two different distribution runtime libraries: GARLIC and PolyORB. Both
18040 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
18042 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
18045 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
18046 between the GARLIC and PolyORB versions of the distributed systems
18048 Remove RE_Unbounded_Reclaim_Pool since it is unused.
18050 2004-10-26 Gary Dismukes <dismukes@gnat.com>
18052 * gnat1drv.adb: Suppress calling the back end when
18053 Frontend_Layout_On_Target is true.
18055 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
18057 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
18058 Set_Read_Only): New subprograms.
18059 These new routines allow the user to set or unset the Owner execute
18060 and Owner write permission flags on a file.
18062 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
18063 GNAT.OS_Lib.Set_Executable instead of rolling our own.
18065 2004-10-26 Matthew Gingell <gingell@gnat.com>
18067 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
18069 2004-10-26 Pascal Obry <obry@gnat.com>
18071 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
18072 memory before the faulting page we properly test the process read
18073 access for this address using appropriate Win32 routine.
18074 (HPUX sections): guard with "__hpux__" instead of "hpux".
18076 2004-10-26 Robert Dewar <dewar@gnat.com>
18078 * lib-xref.adb (Generate_Reference): Don't complain about reference to
18079 entry parameter if pragma Unreferenced set, since we do not properly
18080 handle the case of multiple parameters.
18082 2004-10-26 Vincent Celier <celier@gnat.com>
18084 * prj-env.adb: (Contains_ALI_Files): New Boolean function
18085 (Ada_Objects_Path.Add): For a library project, add to the object path
18086 the library directory only if there is no object directory or if the
18087 library directory contains ALI files.
18088 (Set_Ada_Paths.Add.Recursive_Add): Ditto
18090 2004-10-26 Vincent Celier <celier@gnat.com>
18092 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
18093 extension of library projects.
18095 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
18096 path defaults to ".:<prefix>/lib/gnat".
18097 (Parse): For an extending all project, allow direct import of a project
18098 that is virtually extended.
18100 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
18101 the specified name is directly imported, return its ID. Otherwise, if
18102 an extension of this project is imported, return the ID of the
18105 2004-10-26 Robert Dewar <dewar@gnat.com>
18107 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
18108 (Sub3): New procedure, used by Scaled_Divide
18109 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
18110 correct more than one instance of failure to propagate carries
18112 (Double_Divide): Handle overflow case of largest negative number
18113 divided by minus one.
18115 * s-arit64.ads (Double_Divide): Document that overflow can occur in
18116 the case of a quotient value out of range.
18119 2004-10-26 Robert Dewar <dewar@gnat.com>
18121 * s-bitops.adb (Bit_Eq): Remove redundant check.
18123 * s-bitops.ads: Minor comment updates
18124 Change some occurrences of Address to System.Address
18126 * s-carsi8.ads: Fix minor cut-and-paste error in comments
18128 2004-10-26 Ed Schonberg <schonberg@gnat.com>
18130 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
18131 accessibility check to prefix that is a protected operation.
18133 2004-10-26 Ed Schonberg <schonberg@gnat.com>
18135 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
18136 empty, post message on stub.
18138 2004-10-26 Ed Schonberg <schonberg@gnat.com>
18139 Javier Miranda <miranda@gnat.com>
18141 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
18142 current instance appears within a unit that is directly in the context
18144 Used to determine whether the body of the instance should be analyzed
18145 immediately after its spec, to make its subprogram bodies available
18146 for front-end inlining.
18147 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
18148 constraint is not allowed on the component type (AARM 12.5.3(3))
18150 2004-10-26 Cyrille Comar <comar@act-europe.fr>
18152 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
18153 'Storage_Pool): enhance, document & limit detection of non-sharable
18156 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
18158 * s-pooglo.ads: Add more documentation now that this pool is properly
18161 2004-10-26 Ed Schonberg <schonberg@gnat.com>
18163 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
18164 or protected type with discriminants, do not constrain the
18165 corresponding record type if the subtype declaration has no
18166 discriminant constraints. This can be the case in source code, or in
18167 the subtype declaration created to rename an actual type within an
18170 2004-10-26 Ed Schonberg <schonberg@gnat.com>
18172 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
18173 different kind of stub (possibly wrong name for file), do not check
18175 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
18176 includes call to some function that returns an unconstrained type, do
18179 2004-10-26 Ed Schonberg <schonberg@gnat.com>
18181 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
18182 appear in the code for the main unit. Dependencies among units in the
18183 context of the main unit are established when those other units are
18184 compiled. Otherwise spurious elaboration constraints can generate
18185 incorrect elaboration circularities.
18187 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
18188 Ed Schonberg <schonberg@gnat.com>
18190 * sem_util.adb (Is_Aliased_View): Defend against the case where this
18191 subprogram is called with a parameter that is not an object name. This
18192 situation arises for some cases of illegal code, which is diagnosed
18193 later, and in this case it is wrong to call Is_Aliased, as that might
18194 cause a compiler crash.
18195 (Explain_Limited_Type): Refine previous fix to include
18196 inherited components of derived types, to provide complete information.
18198 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
18199 is the prival for a protected object.
18200 It is necessary to mark this entity as a variable, in addition to
18201 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
18202 modified to avoid checking the Aliased flag on entities that are not
18203 objects. (Checking that flag for non-objects is erroneous and could
18204 lead to a compiler crash).
18206 2004-10-26 Robert Dewar <dewar@gnat.com>
18208 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
18209 X_Frac = 0.5, then we know that the number X must be positive.
18210 (Succ): Remove the same redundant test, and also fix the primary test
18211 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
18213 (Decompose): Add fuller comments to spec
18215 2004-10-26 Pascal Obry <obry@gnat.com>
18217 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
18218 validity (process must have read access). Set to 0 in all other cases.
18219 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
18220 violation on Win32.
18221 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
18222 segmentation violation.
18224 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
18226 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
18227 whose type is a constructed subtype of an aliased object with an
18228 unconstrained nominal subtype, convert the actual to the constructed
18229 subtype before taking its address.
18231 2004-10-26 Vincent Celier <celier@gnat.com>
18233 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
18234 (Is_Path_Name_Case_Sensitive): New function
18236 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
18237 (Base_Name, Simple_Name, Current_Directory, Compose,
18238 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
18241 2004-10-26 Cyrille Comar <comar@act-europe.fr>
18242 Vasiliy Fofanov <fofanov@act-europe.fr>
18243 Vincent Celier <celier@gnat.com>
18245 * gnat_ugn.texi: Generalize "finding memory problems" section into a
18246 "memory management issues" section and document some of the useful
18247 memory pools provided as part of the GNAT library.
18248 Remove "virtual" from declaration of A::method2 in
18249 the simple example of Ada/C++ mixed system.
18250 Library Projects may be virtually extended: their virtual extensions
18251 are not Library Projects.
18252 Added section on extending project hierarchies.
18254 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
18256 * adaint.c (__gnat_get_libraries_from_registry): Cast value
18258 (__gnat_portable_spawn): Remove const.
18260 * mingw32.h (MAXPATHLEN): Check for previous definition.
18262 2004-10-17 Matthias Klose <doko@debian.org>
18264 * gnatvsn.ads: Set gnat library version to 4.0.
18266 2004-10-05 Vincent Celier <celier@gnat.com>
18268 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
18270 2004-10-04 Laurent GUERBY <laurent@guerby.net>
18273 * Makefile.in: Define and use RANLIB_FLAGS.
18275 2004-10-04 Pascal Obry <obry@gnat.com>
18277 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
18278 other x86 platforms).
18280 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
18282 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
18283 in general and triggers stack alignment adjustment for thread entry
18284 points on targets where this is necessary.
18286 2004-10-04 Bernard Banner <banner@gnat.com>
18289 * Makefile.in: Add section for powerpc linux
18290 Add variant i-vxwork-x86.ads
18292 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
18294 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
18296 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
18297 table registration calls when need be. Ensures no reference to the crt
18298 ctors symbol are issued in the SJLJ case, which avoids possible
18299 undefined symbol errors in the case of modules to be statically linked
18302 2004-10-04 Javier Miranda <miranda@gnat.com>
18304 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
18305 in-line the code corresponding to subprogram Analyze_Actuals. In
18306 addition, analyze the actuals only in case of subprogram call.
18308 2004-10-04 Ed Falis <falis@gnat.com>
18310 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
18312 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
18314 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
18315 in the documentation.
18317 2004-10-04 Robert Dewar <dewar@gnat.com>
18319 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
18321 (Analyze_Block_Statement): Add circuitry to detect following dead code
18322 (Check_Unreachable_Code): Handle case of block exit
18324 2004-10-04 Robert Dewar <dewar@gnat.com>
18326 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
18327 (XMatchD): Avoid warning for Logic_Error call
18329 2004-10-04 Robert Dewar <dewar@gnat.com>
18331 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
18332 consider expressions buried within a procedure actual to be an actual.
18333 This caused some blowups with uses of packed slices within a procedure
18336 2004-10-04 Robert Dewar <dewar@gnat.com>
18338 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
18339 longer need to be initialized to zero.
18340 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
18341 initialized to zero.
18343 * checks.adb (Expr_Known_Valid): Packed arrays are now always
18344 considered valid, even if the representation is modular. That's correct
18345 now that we no longer initialize packed modular arrays to zero.
18347 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
18348 suffixes. These are now documented as the only cases in which the
18349 debugger ignores outer records.
18350 Previously, the spec allowed arbitrary suffixes for this purpose.
18351 Change name of LJM to JM for packed array pad records
18352 Create separate section on packed array handling, and add a whole new
18353 set of comments to this section describing the situation with packed
18354 modular types and justification requirements depending on endianness.
18356 2004-10-04 Robert Dewar <dewar@gnat.com>
18358 * a-except.adb: Add a comment for last change
18360 * einfo.ads: Minor spelling correction in comment
18362 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
18364 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
18367 * sem_util.ads: Minor comment update
18369 2004-10-04 Ed Schonberg <schonberg@gnat.com>
18371 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
18372 Inline_Always when in Configurable_Run_Time mode.
18374 * sem_prag.adb (Process_Convention): If entity is an inherited
18375 subprogram, apply convention to parent subprogram if in same scope.
18376 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
18377 when in Configurable_Run_Time mode.
18379 2004-10-04 Ed Schonberg <schonberg@gnat.com>
18381 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
18382 class_wide type after component list has been inherited.
18384 2004-10-04 Ed Schonberg <schonberg@gnat.com>
18386 * sem_ch12.adb (Check_Generic_Actuals): New predicate
18387 Denotes_Previous_Actual, to handle properly the case of a private
18388 actual that is also the component type of a subsequent array actual.
18389 The visibility status of the first actual is not affected when the
18390 second is installed.
18391 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
18392 make fully recursive the treatment of formals of packages declared
18394 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
18395 the above on exit from an instantiation.
18396 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
18397 current instantiation which is now complete.
18398 (Analyze_Package_Instantiation): No instantiated body is needed if the
18399 main unit is generic. Efficient, and avoid anomalies when a instance
18400 appears in a package accessed through rtsfind.
18402 2004-10-04 Ed Schonberg <schonberg@gnat.com>
18404 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
18405 do not generate a declaration for a temporary if the call is part of a
18406 library-level instantiation.
18408 2004-10-04 Ed Schonberg <schonberg@gnat.com>
18410 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
18411 searching for a limited component to flag.
18413 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
18414 expansion of Input, to account for the fact that the implicit call
18415 generated by the attribute reference must freeze the user-defined
18416 stream subprogram. This is only relevant to 'Input, because it can
18417 appear in an object declaration, prior to the body of the subprogram.
18419 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
18420 expansion can proceed and further errors uncovered.
18421 (Minor clean up): Fix cases of using | instead of \ for continuation
18424 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18426 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
18428 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
18429 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
18430 Use gcc_assert and gcc_unreachable.
18432 * decl.c (gnat_to_gnu_entity, case object): Check and process a
18433 specified alignment before validating size.
18434 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
18435 stripped-down declaration for the type of the inner field when making
18438 * utils.c (finish_record_type): Do not compute the size in units
18439 incrementally. Instead compute it once for the rep clause case.
18440 Use gcc_assert and gcc_unreachable.
18442 2004-10-04 Vincent Celier <celier@gnat.com>
18444 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
18446 (Is_Valid_Path_Name): Take '/' as a directory separator.
18448 2004-10-04 Vincent Celier <celier@gnat.com>
18450 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
18451 (Extended_Project) only if Extended_Project is defined, to avoid
18453 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
18455 (Parse_Single_Project): Ditto.
18457 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
18458 Add_To_Project_Path for virtual projects.
18460 2004-10-04 Vincent Celier <celier@gnat.com>
18462 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
18463 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
18464 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
18465 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
18466 parameter Options_2.
18468 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
18469 Build_Dynamic_Library with an empty Options_2.
18471 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
18474 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
18475 directory separator, if any.
18476 (Gprmake): Do not allow mains on the command line for library projects.
18477 Do not attempt to link when the project is a library project.
18478 (Library_Opts): New table to store Library_Options.
18479 (Build_Library): If Library_Options is specified, pass these options
18480 when building a shared library.
18482 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
18484 * s-tposen.adb (Service_Entry): The object must be always unlocked at
18485 the end of this procedure now that the unlock operation was inserted
18488 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
18490 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
18491 corresponding to the Preallocated_Stacks flags in System.
18492 (Get_Target_Parameters): Including the processing for
18493 Preallocated_Stacks.
18495 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
18496 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
18497 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
18498 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
18499 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
18500 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
18501 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
18502 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
18503 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
18504 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
18505 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
18506 used to signal whether the compiler creates the required stacks and
18507 descriptors for the different tasks (when True) or it is done by the
18508 underlying operating system at run time (when False).
18509 It is initially set to False in all targets.
18511 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
18512 if it is supported by the target.
18513 (Make_Task_Create_Call): Pass the stack address if it has been
18514 previously created. Otherwise pass a Null_Address.
18516 * snames.adb: Add _stack.
18518 * snames.ads: Add Name_uStack. Required to allow the expander to
18519 statically allocated task stacks.
18521 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
18522 Stack_Address argument.
18523 Check that its value is equal to Null_Address because this target does
18524 not support the static stack allocation.
18526 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
18528 * usage.adb: Change "pragma inline" to "pragma Inline" in information
18531 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
18533 * exp_dist.adb: Split declaration of asynchronous flag out of
18534 Add_RACW_Read_Attribute.
18535 Minor reformatting for better alignment with PolyORB version.
18536 Store the entity for the asynchronous flag of an RACW, rather than the
18537 expression, in the asynchronous flags table. This will allow this flag
18538 to be used in other subprograms beside Add_RACW_Read_Attribute.
18540 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
18542 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
18543 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
18544 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
18545 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
18546 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
18547 sockets constant MSG_NOSIGNAL (Linux-specific).
18548 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
18549 all Send operations.
18550 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
18551 from trigerring SIGPIPE.
18552 Rename components to avoid clash with Ada 2005 possible reserved
18554 (Check_Selector): When the select system call returns with an error
18555 condition, propagate Socket_Error to the caller.
18557 2004-10-01 Jan Hubicka <jh@suse.cz>
18559 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
18561 2004-09-23 Robert Dewar <dewar@gnat.com>
18564 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
18565 instead do this at freeze time (we won't do it if there is an address
18567 Change "pragma inline" to "pragma Inline" in information and error
18569 Minor reformatting.
18571 * freeze.adb (Check_Address_Clause): Remove previous change, not the
18572 right way of doing things after all.
18573 (Freeze_Entity): For object, set Is_Public for imported entities
18574 unless there is an address clause present.
18576 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
18578 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
18579 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
18580 ensures proper handling of types with rep clauses, which might have
18581 their TYPE_SIZE set already.
18583 2004-09-21 Robert Dewar <dewar@gnat.com>
18585 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
18586 packed array types in both little- and big-endian cases. This change
18587 ensures that we no longer count on the unused bits being initialized
18588 for such types (and in particular ensures that equality testing will
18589 only read the relevant bits).
18590 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
18591 These changes mean that we no longer need to initialize small packed
18593 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
18594 optimization to an LJM field as to its parent field.
18596 * ada-tree.h, trans.c, utils.c, utils2.c:
18597 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
18599 2004-09-20 Jan Hubicka <jh@suse.cz>
18601 * utils.c (gnat_finalize): Remove.
18602 (end_subprog_body): Directly call cgraph_finalize_function;
18603 do not lower the nested functions.
18605 2004-09-20 Robert Dewar <dewar@gnat.com>
18608 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
18609 if an address clause is present, since that means that the Import
18612 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
18614 * 5tsystem.ads: Removed, no longer used.
18616 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
18617 Zack Weinberg <zack@codesourcery.com>
18619 * ada-tree.def: Use tree_code_class enumeration constants
18620 instead of code letters.
18621 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
18622 Update for new tree-class enumeration constants.
18624 2004-09-17 Vincent Celier <celier@gnat.com>
18626 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
18627 capabilities of the general project manager.
18629 2004-09-09 Vincent Celier <celier@gnat.com>
18631 * a-direct.ads: Add pragma Ada_05
18632 (Directory_Entry_Type): Give default value to component Kind to avoid
18633 not initialized warnings.
18635 * a-direct.adb (Current_Directory): Remove directory separator at the
18637 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
18638 an existing directory.
18639 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
18640 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
18641 Convert the result to File_Size.
18643 * prj.ads: (Project_Error): New exception
18645 * prj-attr.adb: Except in procedure Initialize, Fail comes from
18646 Prj.Com, not from Osint.
18647 (Attrs, Package_Attributes): Tables moved to private part of spec
18648 (Add_Attribute, Add_Unknown_Package): Moved to new child package
18650 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
18651 Prj.Project_Error after call to Fail.
18652 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
18653 Fail. Check that package name is not already in use.
18655 * prj-attr.ads: Comment updates to indicate that all subprograms may be
18656 used by tools, not only by the project manager, and to indicate that
18657 exception Prj.Prj_Error may be raised in case of problem.
18658 (Add_Unknown_Package, Add_Attribute): Moved to new child package
18660 (Attrs, Package_Attributes): Table instantiations moved from the body to
18661 the private part to be accessible from Prj.Attr.PM body.
18663 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
18664 from new package Prj.Attr.PM.
18665 (Parse_Attribute_Declaration): Call Add_Attribute from new package
18668 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
18670 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
18671 instead of Elaboration_Checks).
18673 * a-calend.adb: Minor reformatting
18675 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18677 * gigi.h (maybe_pad_type): New declaration.
18678 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
18680 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
18682 * cuintp.c: Convert to use buildN.
18684 * decl.c (maybe_pad_type): No longer static.
18685 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
18687 Convert to use buildN.
18689 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
18690 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
18691 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
18693 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
18694 (gnat_gimplify_expr, case ADDR_EXPR): New case.
18695 Convert to use buildN.
18697 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
18698 TREE_READONLY for const.
18699 Convert to use buildN.
18701 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
18702 (create_var_decl): Refine when TREE_STATIC is set.
18703 Convert to use buildN.
18705 2004-09-09 Gary Dismukes <dismukes@gnat.com>
18707 * gnat_ugn.texi: Delete text relating to checking of ali and object
18710 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
18713 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
18715 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
18716 pragmas recognized by GNAT.
18718 * gnat_rm.texi: Document pragma Detect_Blocking.
18720 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
18721 raise Program_Error if called from a protected operation.
18723 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
18724 the protected action nesting level.
18725 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
18726 protected action nesting level.
18727 (Unlock): When pragma Detect_Blocking is active decrease the protected
18728 action nesting level.
18730 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
18731 Protected_Action_Nesting.
18733 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
18734 Common_ATCB record. It contains the dynamic level of protected action
18735 nesting for each task. It is needed for checking whether potentially
18736 blocking operations are called from protected operations.
18737 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
18738 Detect_Blocking is active or not in the partition.
18740 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
18741 raise Program_Error if called from a protected operation.
18742 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
18743 Program_Error if called from a protected operation.
18744 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
18745 Program_Error if called from a protected operation.
18747 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
18748 raise Program_Error if called from a protected operation.
18750 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
18751 raise Program_Error if called from a protected operation, and increase
18752 the protected action nesting level.
18753 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
18754 Program_Error if called from a protected operation, and increase the
18755 protected action nesting level.
18756 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
18757 protected action nesting level.
18759 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
18760 raise Program_Error if called from a protected operation, and increase
18761 the protected action nesting level.
18762 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
18763 Program_Error if called from a protected operation, and increase the
18764 protected action nesting level.
18765 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
18766 raise Program_Error if called from a protected operation.
18767 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
18768 active, raise Program_Error if called from a protected operation.
18769 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
18770 protected action nesting level.
18772 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
18773 insertion of the statement raising Program_Error. The run time
18774 contains the required machinery for handling that.
18776 * sem_util.ads: Change comment associated to procedure
18777 Check_Potentially_Blocking_Operation.
18778 This procedure does not insert a call for raising the exception because
18779 that is currently done by the run time.
18781 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
18783 * init.c: Add the global variable __gl_detect_blocking that indicates
18784 whether pragma Detect_Blocking is active (1) or not (0). Needed for
18785 making the pragma available at run time.
18786 (__gnat_set_globals): Pass and update the detect_blocking parameter.
18788 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
18789 pragma Detect_Blocking is active.
18791 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
18793 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
18794 DB is found in the ali file. Any unit compiled with pragma
18795 Detect_Blocking active forces its effect in the whole partition.
18797 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
18798 Detect_Blocking is active and delay is called from a protected
18801 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
18802 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
18803 Detect_Blocking is active (0 otherwise).
18804 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
18805 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
18808 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
18810 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
18811 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
18814 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
18815 (Register_Receiving_Stub): Add Subp_Info formal parameter.
18816 Update API in placeholder implemetation of s-parint to reflect changes
18817 in distribution runtime library.
18819 * sem_ch3.adb (Expand_Derived_Record): Rename to
18820 Expand_Record_Extension.
18822 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
18823 primitive operations of potentially distributed object types that have
18824 non-controlling anonymous access formals.
18826 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
18828 New implementation of expansion for remote access-to-subprogram types,
18829 based on the RACW infrastructure.
18830 This version of sem_dist is compatible with PolyORB/DSA as well as
18833 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
18834 Asynchrronous that applies to a remote access-to-subprogram type, mark
18835 the underlying RACW type as asynchronous.
18837 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
18838 __gnat_using_gnu_linker to 1.
18840 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
18841 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
18842 GNAT.Perfect_Hash_Generators, and remove the empty
18843 GNAT.Perfect_Hash package.
18845 * atree.adb: Minor reformatting
18847 * exp_ch3.adb (Expand_Derived_Record): Rename to
18848 Expand_Record_Extension.
18849 (Build_Record_Init_Proc.Build_Assignment): The default expression in
18850 a component declaration must remain attached at that point in the
18851 tree so New_Copy_Tree copies it if the enclosing record type is derived.
18852 It is therefore necessary to take a copy of the expression when building
18853 the corresponding assignment statement in the init proc.
18854 As a side effect, in the case of a derived record type, we now see the
18855 original expression, without any rewriting that could have occurred
18856 during expansion of the ancestor type's init proc, and we do not need
18857 to go back to Original_Node.
18859 * exp_ch3.ads (Expand_Derived_Record): Rename to
18860 Expand_Record_Extension.
18862 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
18863 Returns the RACW type used to implement a remote access-to-subprogram
18865 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
18866 New subprograms. Used to create a proxy tagged object for a remote
18867 subprogram. The proxy object is used as the designated object
18868 for RAS values on the same partition (unless All_Calls_Remote applies).
18869 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
18870 System.Partition_Interface.Get_Unique_Remote_Pointer.
18871 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
18872 Renamed from Add_RAS_*_Attribute.
18873 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
18875 New implementation of expansion for remote access-to-subprogram types,
18876 based on the RACW infrastructure.
18878 * exp_dist.ads (Copy_Specification): Update comment to note that this
18879 function can copy the specification from either a subprogram
18880 specification or an access-to-subprogram type definition.
18882 2004-09-09 Ed Schonberg <schonberg@gnat.com>
18884 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
18885 in an instance, between an explicit subprogram an one inherited from a
18886 type derived from an actual.
18888 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
18889 add a polling call if the subprogram is to be inlined by the back-end,
18890 to avoid repeated calls with multiple inlinings.
18892 * checks.adb (Apply_Alignment_Check): If the expression in the address
18893 clause is a call whose name is not a static entity (e.g. a dispatching
18894 call), treat as dynamic.
18896 2004-09-09 Robert Dewar <dewar@gnat.com>
18898 * g-trasym.ads: Minor reformatting
18900 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
18901 packed arrays, since unused bits are expected to be zero for a
18904 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
18906 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
18909 2004-09-09 Pascal Obry <obry@gnat.com>
18911 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
18912 enable map file generation. Add the right option to generate the map
18913 file if Map_File is set to True.
18915 * gnatdll.adb (Gen_Map_File): New variable.
18916 (Syntax): Add info about new -m (Map_File) option.
18917 (Parse_Command_Line): Add support for -m option.
18918 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
18919 Minor reformatting.
18921 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
18923 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
18924 new gnatdist implementation.
18925 Define a subpackage isolating the output routines specific to this
18928 2004-09-09 Joel Brobecker <brobecker@gnat.com>
18930 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
18932 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
18934 2004-09-09 Cyrille Comar <comar@act-europe.fr>
18936 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
18939 * opt.ads: Add Ada_Version_Runtime constant used to decide which
18940 version of the language is used to compile the run time.
18942 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
18944 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
18945 of variable length temporaries for function return now that the
18946 back-end and gigi support it.
18948 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18950 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
18952 * trans.c (struct stmt_group): Delete field GLOBAL.
18953 (gnat_init_stmt_group): Do not initialize it.
18954 (call_to_gnu): Use save_expr, not protect_multiple_eval.
18955 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
18956 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
18957 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
18958 (start_stmt_group): Likewise.
18959 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
18961 * utils2.c (ggc.h): Include.
18962 (build_call_raise): Call build_int_cst, not build_int_2.
18964 * utils.c (gnat_init_decl_processing): Fix arg to
18965 build_common_tree_nodes.
18966 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
18967 (gnat_define_builtin): Set built_in_decls.
18968 (init_gigi_decls): Call build_int_cst, not build_int_2.
18970 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
18971 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
18972 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
18973 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
18974 SET_TYPE_MODULE): Use them.
18975 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
18976 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
18977 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
18978 SET_TYPE_ADA_SIZE): Likewise.
18979 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
18980 (DECL_CONST_CORRESPONDING_VAR,
18981 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
18982 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
18983 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
18984 (TYPE_RM_SIZE_NUM): New macro.
18985 (TYPE_RM_SIZE): Modified to use above.
18987 * cuintp.c: (build_cst_from_int): New function.
18988 (UI_To_gnu): Use it.
18990 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
18991 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
18992 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
18993 MIN_EXPR for the size, copy it into new.
18995 2004-09-01 Robert Dewar <dewar@gnat.com>
18997 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
18998 packed indexed component where array is an IN OUT formal. This
18999 generated garbage code previously.
19001 * gnat_ugn.texi: Document -fverbose-asm
19003 * gnat-style.texi: Minor updates (note that boolean constants and
19004 variables are joined with AND/OR rather than short circuit forms).
19006 2004-09-01 Ed Schonberg <schonberg@gnat.com>
19008 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
19009 it is an upward conversion of an untagged type with no representation
19012 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
19014 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
19015 System.Partition_Interface.
19017 * checks.adb (Apply_Access_Checks): Do not generate checks when
19018 expander is not active (but check for unset reference to prefix of
19021 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
19022 pragma Debug as an if statement with a constant condition, for
19023 consistent treatment of entity references contained within the
19024 enclosed procedure call.
19026 2004-09-01 Vincent Celier <celier@gnat.com>
19028 * bindgen.adb: (Set_EA_Last): New procedure
19029 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
19031 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
19032 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
19033 linked without errors.
19034 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
19036 (Gen_Exception_Table_C): Correct same bugs
19038 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
19040 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
19041 on Windows, make sure that the drive letter is in upper case.
19043 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
19044 Windows, when the drive letter is added and Case_Sensitive is True, the
19045 drive letter is forced to upper case.
19047 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
19048 to Options_2 for the call to MLib.Utl.Gcc.
19050 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
19051 directory separator when defining BASE_DIR.
19053 2004-09-01 Pascal Obry <obry@gnat.com>
19055 * gprcmd.adb (Extend): Do not output trailing directory separator. This
19056 is not needed and it confuses Windows GNU/make which does not report
19057 directory terminated by a slash as a directory.
19058 (gprcmd): Idem for "pwd" internal command.
19060 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
19061 target names rewrite to fix regressions with recent version of
19062 GNU/make. Starting with GNU/make 3.80 the pipe character was not
19063 handled properly anymore.
19065 2004-09-01 Andreas Schwab <schwab@suse.de>
19067 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
19068 * raise.c [!IN_RTS]: Undef abort.
19070 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
19072 * utils2.c (build_allocator): Use ssize_int.
19074 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
19076 2004-08-27 Andreas Schwab <schwab@suse.de>
19078 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
19080 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
19081 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19083 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
19085 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
19087 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
19088 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
19089 * utils.c (init_gigi_decls): Likewise.
19090 * utils2.c (build_call_raise, build_allocator): Likewise.
19092 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
19094 * utils.c (gnat_init_decl_processing): Adjust
19095 build_common_tree_nodes call.
19097 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
19099 * utils2.c (build_allocator): Use build_int_cst for negative
19102 2004-08-18 Richard Henderson <rth@redhat.com>
19104 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
19106 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
19108 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
19110 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
19111 (gnat_to_gnu): Likewise.
19113 2004-08-16 Pascal Obry <obry@gnat.com>
19115 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
19116 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
19117 option and not mdll anymore. Update comment.
19119 2004-08-16 Pascal Obry <obry@gnat.com>
19121 * bld.adb (Put_Include_Project): Properly handle directory separators
19124 2004-08-16 Ed Schonberg <schonberg@gnat.com>
19126 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
19127 decreasing the number of allocated junk nodes while searching for the
19128 appropriate subprogram.
19130 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
19132 * cuintp.c (UI_To_gnu): Use build_int_cst..
19133 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
19134 * utils.c (init_gigi_decls): Likewise.
19135 * utils2.c (build_call_raise): Likewise.
19137 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
19139 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
19140 for a global aliased object with a variable size and an unconstrained
19141 nominal subtype, pretend there is no initializer if the one we have is
19142 incomplete, and avoid referencing an inexistant component in there. The
19143 part we have will be rebuilt anyway and the reference may confuse
19144 further operations.
19146 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
19148 * einfo.ads: Minor reformatting
19150 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
19151 restrictions in the ALI if we only want to warn about violations.
19153 2004-08-13 Vincent Celier <celier@gnat.com>
19155 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
19156 when creating a new Unit_Record in table Units.
19158 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
19159 that are violated, if any.
19161 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
19162 add directory separator if path already ends with a directory separator.
19164 2004-08-13 Ed Schonberg <schonberg@gnat.com>
19166 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
19167 unit, this is an attempt to inline a construct that is not available in
19168 the current restricted mode, so abort rather than trying to continue.
19170 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
19171 discriminants that rename those of the parent, recover names of
19172 original discriminants for the constraint on the full view of the
19174 (Complete_Private_Subtype): Do not create a subtype declaration if the
19175 subtype is an itype.
19177 * gnat_rm.texi: Added section on implementation of discriminated
19178 records with default values for discriminants.
19180 2004-08-13 Ed Schonberg <schonberg@gnat.com>
19183 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
19184 the second operand is overloaded.
19186 2004-08-10 Richard Henderson <rth@redhat.com>
19188 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
19189 add __builtin_alloca.
19191 2004-08-10 Richard Henderson <rth@redhat.com>
19193 * config-lang.in (boot_language): Yes.
19195 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
19197 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
19198 from complaining on potential uninitialized reference.
19199 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
19200 new specification and test explicitly for non-zero return value.
19202 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
19203 returning C.int, to avoid using a derived boolean type.
19205 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
19206 Duplicate_Subexpr_No_Checks in preference to direct use of
19207 Remove_Side_Effects and New_Copy_Tree.
19208 Clear Comes_From_Source on prefix of 'Size attribute reference.
19210 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
19211 g-socthi-vxworks.adb: Change calls to
19212 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
19213 and test explicitly for non-zero return value.
19215 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
19216 (Is_Socket_In_Set): Declare imported function as returning C.int, to
19217 avoid using a derived boolean type.
19219 2004-08-09 Albert Lee <lee@gnat.com>
19221 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
19223 2004-08-09 Pascal Obry <obry@gnat.com>
19225 * gnat_ugn.texi: Document new way to build DLLs on Windows using
19226 GCC's -shared option.
19228 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
19229 Options_2 parameter (options put after object files).
19231 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
19233 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
19234 ignore overflows on low and high bounds of an index to also account for
19235 differences in signedness between sizetype and gnu_index_subtype.
19236 These are as legitimate as the ones caused by a lower TYPE_PRECISION
19239 2004-08-09 Robert Dewar <dewar@gnat.com>
19241 * s-solita.ads, s-solita.adb: Minor reformatting
19243 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
19244 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
19245 obsolescent section
19246 Add note that No_Implicit_Conditionals does not suppress
19247 run time constraint checks.
19249 * vms_conv.ads: Minor reformatting
19251 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
19252 and necessary for following change).
19253 (Mark): Return new format Mark_Id containing sec stack address
19254 (Release): Use sec stack address from Mark_Id avoiding Self call
19256 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
19257 pointer (cleanup and necessary for following change).
19258 Define Mark_Id as record containing address of secondary stack, that way
19259 Release does not need to find the stack again, decreasing the number of
19260 calls to Self and improving efficiency.
19262 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
19264 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
19265 case variable into the individual case branches when possible.
19267 * sem_ch11.adb: Minor reformatting
19269 * prj.ads: Correct spelling of suffixs
19271 * prj-nmsc.adb: Minor reformatting
19272 Correct spelling suffixs throughout (also in identifiers)
19274 * freeze.adb: Minor spelling correction
19276 * exp_ch2.adb: Cleanups to handling of Current_Value
19277 (no functional effect).
19279 * bld.adb: Correct spelling of suffixs
19281 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
19283 2004-08-09 Ed Schonberg <schonberg@gnat.com>
19286 * sem_ch7.adb (Install_Private_Declarations): In the body of the
19287 package or of a child, private entities are both immediately_visible
19290 2004-08-09 Ed Schonberg <schonberg@gnat.com>
19292 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
19293 there are no range checks on the value of the literal.
19295 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
19296 wrapped is the triggering alternative of an asynchronous select, action
19297 statements mustbe inserted before the select itself.
19299 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
19300 case where the prefix is a protected function call.
19301 (Resolve_Attribute, case 'Access): The attribute reference on a
19302 subprogram is legal in a generic body if the subprogram is declared
19305 2004-08-09 Vincent Celier <celier@gnat.com>
19307 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
19308 languages, otherwise building the library may fail with unresolved
19310 (Compile_Sources): Do not build libraries if -c switch is used
19312 * gnatlink.adb (Process_Args): New switches -M and -Mmap
19313 (Write_Usage): If map file creation is supported, output new switches
19315 (Gnatlink): When -M is specified, add the necessary switch(es) to the
19316 gcc call, when supported.
19318 * Makefile.in: Added indepsw.o to the object list for gnatlink
19319 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
19321 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
19322 indepsw.adb, indepsw.ads: New files.
19324 2004-08-09 Bernard Banner <banner@gnat.com>
19326 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
19328 * Makefile.in: add section for vxworks x86
19330 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
19332 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
19333 per-object constrained components where the discriminant is of an
19335 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
19336 the parent initialization procedure for derived Unchecked_Unions.
19337 Instead, derived Unchecked_Unions build their own initialization
19339 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
19340 Check the body of the subprogram for details.
19341 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
19342 functions for derived Unchecked_Union types by introducing a condition.
19343 Allow the creation of TSS equality functions for Unchecked_Unions.
19344 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
19345 Add formal parameter Discr to function signature. Discr is used to
19346 control the generated case statement for Unchecked_Union types.
19347 (Make_Eq_If): Rename formal parameter Node to E in function signature.
19349 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
19351 Check the body of the subprogram for details.
19352 (Expand_Composite_Equality): Augment composite type equality to include
19353 correct handling of Unchecked_Union components.
19354 (Expand_N_In): Add condition to detect illegal membership tests when the
19355 subtype mark is a constrained Unchecked_Union and the expression lacks
19356 inferable discriminants, and build a Raise_Program_Error node.
19357 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
19358 to detect types that contain components of unconstrained Unchecked_Union
19359 subtype. Add condition to detect equality between types that have an
19360 unconstrained Unchecked_Union component, and build a Raise_Program_Error
19361 node. Add condition to detect equality between Unchecked_Union types
19362 that lack inferable discriminants, and build a Raise_Program_Error node.
19363 Otherwise build a TSS equality function call.
19364 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
19365 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
19366 with the operand lacking inferable discriminants, and build a Raise_
19367 Program_Error node.
19368 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
19369 composite equality.
19370 (Has_Inferable_Discriminants): Implement new predicate for objects and
19371 expressions of Unchecked_Union type. Check the body of subprogram for
19373 (Has_Unconstrained_UU_Components): Add function
19374 Component_Is_Unconstrained_UU. It is used to detect whether a single
19375 component is of an unconstrained Unchecked_Union subtype. Add function
19376 Variant_Is_Unconstrained_UU. It is used to detect whether a single
19377 component inside a variant is of an unconstrained Unchecked_Union type.
19379 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
19380 inferred discriminant values. Add condition to generate a case
19381 statement with an inferred discriminant as the switch.
19382 (Make_Component_List_Assign): Introduce a Boolean flag that determines
19383 the behaviour of the subprogram in the presence of an Unchecked_Union.
19384 Add condition to trigger the usage of the inferred discriminant value
19385 as the generated case statement switch.
19386 (Make_Field_Assign): Introduce a Boolean flag that determines the
19387 behaviour of the subprogram in the presence of an Unchecked_Union. Add
19388 condition to trigger the usage of the inferred discriminant value as
19389 the right-hand side of the generated assignment.
19391 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
19392 parameter generation when dealing with Unchecked_Unions.
19394 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
19395 checks for Unchecked_Unions.
19397 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
19399 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
19400 Raise_Program_Error nodes for the execution of Read and Write
19401 attributes of Unchecked_Union types and the execution of Input and
19402 Output attributes of Unchecked_Union types that lack default
19403 discriminant values.
19405 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
19406 Unchecked_Union. Add procedure Check_Component. It is used to inspect
19407 per-object constrained components of Unchecked_Unions for being
19408 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
19409 check individual components withing a variant.
19411 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
19412 comparison of Unchecked_Unions.
19413 (Resolve_Equality_OP): Remove guard that prevents equality between
19416 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
19417 of component subtypes for Unchecked_Union components.
19418 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
19419 since it is the actual subtype.
19421 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
19422 pass of Unchecked_Union subtypes as generic actuals to formal types
19423 that lack known_discriminant_parts or that are derived Unchecked_Union
19424 types, and do nothing. In any other case, produce an error message.
19426 * sem_ch3.adb (Analyze_Component_Declaration): Add function
19427 Contains_POC. It determines whether a constraint uses the discriminant
19428 of an enclosing record type.
19429 Add condition to detect per-object constrained component and set the
19431 (Derived_Type_Declaration): Remove guard that prevents derivation from
19432 Unchecked_Union types.
19433 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
19436 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
19437 references to Unchecked_Union discriminants.
19439 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
19440 formal generation when dealing with Unchecked_Unions.
19441 (Set_Actual_Subtypes): Add condition to prevent generation of actual
19442 subtypes for Unchecked_Unions.
19444 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
19445 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
19446 completions of discriminated partial views by Unchecked_Unions and
19447 produce an error message.
19449 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19451 * trans.c (struct stmt_group): New field, GLOBAL.
19452 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
19453 (struct elab_info): New struct.
19454 (elab_info_list, gnu_elab_proc_stack): New variables.
19455 (Compilation_Unit_to_gnu): New procedure.
19456 (gigi): Call it and also handle elaboration procs we've saved.
19457 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
19458 global field from parent.
19459 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
19460 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
19461 (start_stmt_group): Initialize global field from parent.
19462 (add_decl_expr): Set to global for current statement group.
19463 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
19466 * utils.c (global_bindings_p): True when no current_function_decl; no
19467 longer check current_binding_level.
19469 2004-08-09 Ben Brosgol <brosgol@gnat.com>
19471 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
19474 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
19476 2004-08-06 Andreas Schwab <schwab@suse.de>
19478 * utils.c (gnat_define_builtin): Remove second parameter of
19480 (begin_subprog_body): Likewise.
19482 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
19484 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
19485 optimization, not supported by the tree-ssa back-end.
19487 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
19489 * s-mastop-irix.adb: Update comments.
19491 * a-except.adb (Exception_Information): Raise Constraint_Error if
19492 exception Id is Null_Id.
19493 This is required behavior, which is more reliably and clearly checked
19494 at the top level interface level.
19496 2004-07-26 Javier Miranda <miranda@gnat.com>
19498 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
19499 call if a component has no default_expression and the box is used.
19501 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
19502 default_expression and you use box, it behaves as if you had declared a
19503 stand-alone object.
19504 (Resolve_Record_Aggregate): If a component has no default_expression and
19505 you use box, it behaves as if you had declared a stand-alone object.
19507 * sem_ch10.adb (Install_Siblings): Do not make visible the private
19508 entities of private-with siblings.
19510 2004-07-26 Ed Schonberg <schonberg@gnat.com>
19512 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
19513 for a component of an itype, set the parent pointer for analysis,
19514 there is no list in which to insert it.
19516 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
19517 bona-fide renamings, not for inherited operations.
19519 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
19520 actual for a formal that is an access parameter, create local
19521 finalization list even if the expression is not an aggregate.
19523 2004-07-26 Ed Schonberg <schonberg@gnat.com>
19526 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
19527 Diagnose properly illegal subprogram renamings that are library units.
19529 2004-07-26 Ed Schonberg <schonberg@gnat.com>
19532 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
19533 conversion rewritten as an unchecked conversion, check that original
19534 expression is a variable.
19536 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
19537 unchecked_conversion, create new node rather than rewriting in place,
19538 to preserve original construct.
19540 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19542 * gigi.h (gnat_expand_body): Deleted.
19544 * Make-lang.in: (trans.o): Depends on function.h.
19546 * misc.c: (gnat_expand_body): Moved to here.
19548 * trans.c (gnat_expand_body_1): Deleted.
19549 (gnat_expand_body): Moved from here.
19550 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
19551 (add_stmt): Check for marked visited with global_bindings_p.
19552 (gnat_gimplify_expr, case COMPONENT_REF): New case.
19553 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
19555 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
19556 VIEW_CONVERT_EXPR if not operation type.
19558 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
19561 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
19562 changes: reformatting of negation operators, removing unneeded
19563 inequality comparison with zero, converting equality comparisons with
19564 zero to negations, changing int/0/1 to bool/false/true, replace calls
19565 to gigi_abort with abort, and various other similar changes.
19567 2004-07-26 Vincent Celier <celier@gnat.com>
19569 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
19572 * make.adb (Gnatmake): Fail when a library is not present and there is
19573 no object directory.
19575 * mlib-prj.adb (Check_Library): No need to check if the library needs
19576 to be rebuilt if there is no object directory, hence no object files
19577 to build the library.
19579 * opt.ads (Setup_Projects): New Boolean flag.
19581 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
19583 Create directory when Kind /= "" and in "gnat setup". Report error if
19584 directory cannot be created.
19585 (Ada_Check): Create library interface copy dir if it does not exist
19586 and we are in "gnat setup".
19587 (Find_Sources): No error if in "gnat setup" and no Ada sources were
19589 (Language_Independent_Check): Create object directory, exec directory
19590 and/or library directory if they do not exist and we are in
19593 * vms_conv.ads: (Command_Type): New command Setup.
19595 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
19597 * vms_data.ads: Add qualifiers/switches for new built-in command
19600 2004-07-25 Richard Henderson <rth@redhat.com>
19602 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
19603 DECL_IGNORED_P on RESULT_DECL.
19605 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
19607 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
19608 allocation and potentially overflowing update with
19609 Tailored_Exception_Information. Use the sec-stack free procedural
19610 interface to output Exception_Information instead.
19612 * a-except.adb (To_Stderr): New subprogram for character, and string
19613 version moved from a-exextr to be visible from other separate units.
19614 (Tailored_Exception_Information): Remove the procedural version,
19615 previously used by the default Last_Chance_Handler and not any more.
19616 Adjust various comments.
19618 * a-exexda.adb: Generalize the exception information procedural
19619 interface, to minimize the use of secondary stack and the need for
19620 local buffers when the info is to be output to stderr:
19621 (Address_Image): Removed.
19622 (Append_Info_Character): New subprogram, checking for overflows and
19623 outputing to stderr if buffer to fill is of length 0.
19624 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
19625 (Append_Info_Address, Append_Info_Exception_Name,
19626 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
19627 Append_Info_Basic_Exception_Traceback,
19628 Append_Info_Exception_Information): New subprograms.
19629 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
19630 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
19631 Exception_Info_Maxlength, Exception_Name_Length,
19632 Exception_Message_Length): New subprograms.
19633 (Exception_Information): Use Append_Info_Exception_Information.
19634 (Tailored_Exception_Information): Use
19635 Append_Info_Basic_Exception_Information.
19636 Export services for the default Last_Chance_Handler.
19638 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
19639 other separate units.
19641 2004-07-20 Vincent Celier <celier@gnat.com>
19643 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
19645 2004-07-20 Ed Schonberg <schonberg@gnat.com>
19647 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
19648 emit itype references for the designated types of component types that
19649 are declared outside of the full record declaration, and that may
19650 denote a partial view of that record type.
19652 2004-07-20 Ed Schonberg <schonberg@gnat.com>
19655 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
19656 which is the designated type in an access component declaration, to the
19657 list of incomplete dependents of the parent type, to avoid elaboration
19658 issues with out-of-scope subtypes.
19659 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
19660 full view of the parent.
19662 2004-07-20 Ed Schonberg <schonberg@gnat.com>
19665 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
19666 entities that are hidden, such as references to generic actuals
19667 outside an instance.
19669 2004-07-20 Javier Miranda <miranda@gnat.com>
19671 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
19672 support to the new notation.
19673 (Analyze_Selected_Component): Add call to Try_Object_Operation.
19675 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
19677 * s-taprob.adb: Adding the elaboration code required for initializing
19678 the tasking soft links that are common to the full and the restricted
19681 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
19682 restricted run time has been moved to the package
19683 System.Soft_Links.Tasking.
19685 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
19686 restricted run time has been moved to the package
19687 System.Soft_Links.Tasking.
19689 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
19691 * s-solita.ads, s-solita.adb: New files.
19693 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19695 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
19696 Case_Statement_to_gnu): Split off from gnat_to_gnu.
19697 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
19698 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
19699 Exception_Handler_to_gnu_zcx): Likewise.
19701 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
19703 * gigi.h (builtin_function): Declare.
19705 2004-07-15 Robert Dewar <dewar@gnat.com>
19707 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
19710 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
19711 access values as an example of a warning.
19713 * gnat_rm.texi: Document new attribute Has_Access_Values
19715 * gnat-style.texi: Document that box comments belong on nested
19718 * sem_util.ads (Has_Access_Values): Improved documentation
19720 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
19722 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
19723 (Process_Interface_Name): Call to this new procedure
19724 (Set_Extended_Import_Export_External_Name): Call to this new procedure
19726 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
19728 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
19730 * einfo.ads: Minor comment typo fixed
19732 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
19734 * snames.adb: Add _atcb.
19736 * snames.ads: Add Name_uATCB.
19738 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
19739 (in the expanded code) when using the restricted run time.
19741 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
19742 a in parameter in order to allow ATCBs to be preallocated (in the
19745 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
19746 order to allow ATCBs to be preallocated. In case of error, the ATCB is
19747 deallocated in System.Tasking.Stages.
19749 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
19750 order to allow ATCBs to be preallocated.
19752 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
19753 here. It was previously done in Initialize_ATCB.
19755 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
19757 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
19758 Restricted run time.
19760 * exp_ch3.adb: When using the Restricted run time, pass the
19761 preallocated Ada_Task_Control_Block when creating a task.
19763 2004-07-15 Ed Schonberg <schonberg@gnat.com>
19765 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
19766 function call that is itself an actual in an enclosing call, diagnose
19767 problem here rather than assuming that resolution will catch it.
19769 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
19770 the local copy of a generic unit for a formal package, and the generic
19771 is a child unit, install private part of ancestors before compiling
19772 private part of spec.
19774 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
19775 use scope entities rather than tree structures, to handle properly
19776 parent units that are instances rewritten as bodies for inlining
19779 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
19780 Remove_Parents): Handle properly a parent unit that is an
19781 instantiation, when the unit has been rewritten as a body for inlining
19784 * par.adb (Goto_List): Global variable to collect goto statements in a
19785 given unit, for use in detecting natural loops.
19787 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
19788 use in detecting natural loops.
19790 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
19791 backwards goto's, and rewrite as a infinite loop, to improve locality
19794 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
19795 subcomponent that includes an indexed reference, to prevent the
19796 generation of copies that would miscompile the desired assignment
19798 (Build_Task_Image_Decls): Add a numeric suffix to
19799 generated name for string variable, to avoid spurious conflicts with
19800 the name of the type of a single protected object.
19802 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
19803 loop with an explicit exit statement, to avoid generating an
19804 out-of-range value with 'Succ leading to spurious constraint_errors
19805 when compiling with -gnatVo.
19807 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
19809 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
19810 might not be analyzed yet, even if its Etype is already set (case of an
19811 unchecked conversion built using Unchecked_Convert_To, for example).
19812 If the prefix has already been analyzed, this will be a nop anyway.
19814 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
19815 controller type, or an assignment of a record type with controlled
19816 components, copy only user data, and leave the finalization chain
19817 pointers untouched.
19819 2004-07-15 Vincent Celier <celier@gnat.com>
19821 * make.adb (Collect_Arguments): Improve error message when attempting
19822 to compile a source not part of any project, when -x is not used.
19824 * prj.ads: (Defined_Variable_Kind): New subtype
19826 * prj-attr.adb (Register_New_Package): Two new procedures to register
19827 a package with or without its attributes.
19828 (Register_New_Attribute): Mew procedure to register a new attribute in a
19830 New attribute oriented subprograms: Attribute_Node_Id_Of,
19831 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
19832 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
19834 New package oriented subprograms: Package_Node_Id_Of,
19835 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
19837 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
19839 (Package_Node_Id): Now a private, self initialized type
19840 (Register_New_Package): New procedure to register a package with its
19842 New attribute oriented subprograms: Attribute_Node_Id_Of,
19843 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
19844 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
19846 New package oriented subprograms: Package_Node_Id_Of,
19847 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
19849 * prj-dect.adb (Parse_Attribute_Declaration,
19850 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
19852 * prj-makr.adb (Make): Parse existing project file before creating
19853 other files. Fail if there was an error during parsing.
19855 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
19856 new spec of Prj.Attr.
19858 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
19859 to new spec of Prj.Attr.
19861 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19863 * utils2.c: Fix typo in comment.
19865 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19867 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
19868 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
19870 2004-07-14 Andreas Schwab <schwab@suse.de>
19872 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
19874 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19876 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
19878 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
19881 * misc.c (gnat_types_compatible_p): New function.
19882 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
19883 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
19885 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
19886 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
19887 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
19888 (mark_visited): Don't mark dummy type.
19889 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
19890 parameter, we must remove any LJM building from GNU_NAME.
19891 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
19892 (pos_to_constructor): Use int_const_binop.
19893 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
19896 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
19897 (gnat_pushlevel): Set TREE_USE on BLOCK node.
19898 (gnat_install_builtins): Add __builtin_memset.
19900 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
19902 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
19903 for a renaming, stabilize the initialization expression if we are at a
19904 local level. At the local level, uses of the renaming may be performed
19905 by a direct dereference of the initializing expression, and we don't
19906 want possible variables there to be evaluated for every use.
19908 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
19909 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
19910 them on the way. Account for the fact that we may introduce side
19911 effects in the process.
19913 2004-07-13 Richard Henderson <rth@redhat.com>
19915 * misc.c (default_pass_by_ref): Use pass_by_reference.
19917 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
19919 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
19920 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
19922 2004-07-08 Richard Henderson <rth@redhat.com>
19924 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
19927 2004-07-06 Vincent Celier <celier@gnat.com>
19929 * vms_conv.ads: Minor reformatting.
19930 Alphabetical order for enumerated values of type Command_Type, to have
19931 the command in alphabetical order for the usage.
19933 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
19934 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
19936 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
19938 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
19939 (Add_Archive_Path): Only add the global archive if there is one.
19940 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
19941 or not any object file to put in the global archive, and don't build
19942 a global archive if there is none.
19943 (X_Switches): New table
19944 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
19945 in the X_Switches table, if any.
19946 (Initialize): Make sure the X_Switches table is empty
19947 (Scan_Arg): Record -X switches in table X_Switches
19949 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
19951 * make.adb: Minor comment fix
19953 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
19954 invoked with directory information, add the directory in front of the
19957 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
19958 invoked with directory information, add the directory in front of the
19961 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
19962 when Keep_Temporary_Files is False.
19963 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
19964 directory information, add the directory in front of the path.
19965 When not on VMS, handle new switch -dn before the command to set
19966 Keep_Temporary_Files to True.
19967 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
19970 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
19971 invoked with directory information, add the directory in front of the
19974 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
19976 * snames.ads, snames.adb (Name_Stub): New name for the distributed
19979 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
19980 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
19982 * g-socket.adb (To_Timeval): Fix incorrect conversion of
19983 Selector_Duration to Timeval for the case of 0.0.
19985 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
19986 documentation from Evolve_And_Then.
19988 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
19990 * s-taprop-tru64.adb, s-taprop-os2.adb,
19991 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
19993 2004-07-06 Robert Dewar <dewar@gnat.com>
19995 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
19996 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
19997 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
19998 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
19999 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
20000 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
20001 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
20002 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
20003 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
20004 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
20005 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
20006 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
20007 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
20008 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
20009 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
20010 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
20011 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
20012 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
20013 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
20014 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
20015 vms_data.ads: Minor reformatting,
20016 Fix bad box comment format.
20018 * gnat_rm.texi: Fix minor grammatical error
20020 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
20022 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
20023 more cases of discriminated records to be recognized as not needing a
20025 (Has_Access_Values): New function.
20027 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
20029 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
20030 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
20031 with LRM terminology).
20032 Change terminology in comments primitive type => elementary type.
20034 2004-07-06 Ed Schonberg <schonberg@gnat.com>
20037 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
20038 parameters do not impose any requirements on the presence of a body.
20040 2004-07-06 Ed Schonberg <schonberg@gnat.com>
20043 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
20044 compilation unit and is in an open scope at the point of instantiation,
20045 assume that a body may be present later.
20047 2004-07-06 Ed Schonberg <schonberg@gnat.com>
20049 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
20050 Improve error message when specified size is not supported.
20052 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
20053 is never a primitive operation.
20055 2004-07-05 Andreas Schwab <schwab@suse.de>
20057 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
20058 RECORD_OR_UNION_CHECK.
20059 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
20061 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
20063 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
20064 dependency on xgnatugn, instead build it via a submake.
20065 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
20067 2004-07-04 Richard Henderson <rth@redhat.com>
20069 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
20071 2004-07-01 Richard Henderson <rth@redhat.com>
20073 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
20074 * utils.c (max_size): Likewise.
20076 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20078 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
20079 and rest_of_type_compilation; add arg to create_*_decl.
20080 (annotate_decl_with_node): Deleted.
20081 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
20082 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
20083 (get_current_block_context, gnat_pushdecl): New declarations.
20084 (gnat_init_stmt_group): Likewise.
20085 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
20086 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
20087 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
20088 (gnat_init): Call gnat_init_stmt_group.
20089 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
20090 (gnu_pending_elaboration_list): Deleted.
20091 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
20092 (gigi): Rearrange initialization calls and move some to last above.
20093 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
20094 Delete calls to add_decl_expr; add arg to create_*_decl.
20095 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
20096 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
20097 begin_subprog_body and call it.
20098 Don't push and pop ggc context.
20099 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
20100 (add_stmt): Remove handling of DECL_EXPR from here.
20101 If not in function, mark visited.
20102 (add_decl_expr): Put global at top level.
20103 Check for cases of DECL_INITIAL we have to handle here.
20104 (process_type): Add extra arg to create_type_decl.
20105 (build_unit_elab): Rework to just gimplify.
20106 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
20107 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
20108 (get_pending_elaborations, pending_elaborations_p): Likewise.
20109 (push_pending_elaborations, pop_pending_elaborations): Likewise.
20110 (get_elaboration_location, insert_elaboration_list): Likewise.
20111 (gnat_binding_level): Renamed from ada_binding_level.
20112 (init_gnat_to_gnu): Don't clear pending_elaborations.
20113 (global_bindings_p): Treat as global if no current_binding_level.
20114 (set_current_block_context): New function.
20115 (gnat_pushdecl): Renamed from pushdecl; major rework.
20116 All callers changed.
20117 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
20118 (finish_record_type): Call call pushdecl for stub decl.
20119 (function_nesting_depth): Deleted.
20120 (begin_subprog_body): Delete obsolete code.
20121 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
20123 2004-06-28 Robert Dewar <dewar@gnat.com>
20125 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20126 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
20127 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
20128 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
20129 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
20131 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
20132 deal with problem of inefficient slices on machines with strict
20133 alignment, when the slice is a component of a composite.
20135 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
20136 machines, we need the check there as well.
20138 2004-06-28 Ed Schonberg <schonberg@gnat.com>
20140 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
20141 determine safe copying direction for overlapping slice assignments
20142 when component is controlled.
20144 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
20145 formal derived type in the actual for a formal package are visible in
20146 the enclosing instance.
20148 2004-06-28 Ed Schonberg <schonberg@gnat.com>
20151 * sem_util.adb (Trace_Components): Diagnose properly an illegal
20152 circularity involving a private type whose completion includes a
20153 self-referential component.
20154 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
20155 renaming or an instantiation from an implicit derived operation.
20157 2004-06-28 Pascal Obry <obry@gnat.com>
20159 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
20161 (Library_File_Name_For): Idem.
20163 2004-06-28 Matthew Gingell <gingell@gnat.com>
20165 * g-traceb.ads: Add explanatory note on the format of addresses
20166 expected by addr2line.
20168 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
20170 * Makefile.in: Force debugging information on s-tasdeb.adb,
20171 a-except.adb and s-assert.adb needed by the debugger.
20173 2004-06-28 Vincent Celier <celier@gnat.com>
20175 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
20179 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
20181 * prj.adb: Minor reformatting
20182 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
20184 * prj.ads: Comment updates
20186 (Project_Data): Change Flag1 to Need_To_Build_Lib.
20187 Remove Flag2: not used.
20189 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
20192 * gnat_ugn.texi: Put a "null;" declaration in one project file example
20194 * gnat_rm.texi: Document Empty declarations "null;".
20196 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
20197 front of the linker options.
20198 (Link_Foreign): Put the global archives and the libraries in front of
20199 the linker options.
20201 2004-06-28 Javier Miranda <miranda@gnat.com>
20203 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
20204 (RTU_Loaded): Code cleanup
20205 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
20206 withed predefined units.
20208 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
20209 explicitly withed predefined units.
20210 Fix typo in comment
20212 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
20213 explicitly withed predefined units.
20215 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20217 * ada-tree.def (DECL_STMT): Deleted.
20218 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
20219 (DECL_STMT_VAR): Deleted.
20220 * decl.c: add_decl_stmt now add_decl_expr.
20221 * gigi.h: Likewise.
20222 * trans.c: Likewise.
20223 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
20224 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
20225 (add_stmt): Only handle padded type here.
20226 (add_stmt_with_node): Allow gnat_node to not be present.
20227 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
20228 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
20229 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
20230 make a SAVE_EXPR for the entire fat pointer.
20231 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
20232 (create_index_type): Make a DECL_EXPR.
20233 (end_subprog_body): Don't call allocate_struct_function here but
20236 2004-06-25 Pascal Obry <obry@gnat.com>
20238 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
20239 Relocatable from Build_Dynamic_Library call.
20241 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
20242 Relocatable are now synonym.
20244 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
20246 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
20247 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
20250 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
20251 Lib_Address and Relocatable.
20252 (Default_DLL_Address): Removed.
20254 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20255 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
20256 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
20257 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
20258 (Default_DLL_Address): Removed.
20260 * mlib-tgt-mingw.adb: Ditto.
20261 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
20263 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
20264 the initial thread stack size.
20266 * a-strmap.ads: Move package L to private part as it is not used in
20267 the spec. Found while reading code.
20269 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
20271 * tracebak.c: Introduce support for a GCC infrastructure based
20272 implementation of __gnat_backtrace.
20274 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
20275 any more. Use accessors instead. This eases maintenance and relaxes
20276 some alignment constraints.
20277 (_GNAT_Exception structure): Remove the Ada specific fields
20278 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
20280 (is_handled_by, __gnat_eh_personality): Replace component references to
20281 exception structure by use of the new accessors.
20283 * init.c (__gnat_initialize): Adjust comments to match the just
20284 reverted meaning of the -static link-time option.
20286 * adaint.c (convert_addresses): Arrange not to define a stub for
20287 mips-irix any more, as we now want to rely on a real version from a
20288 recent libaddr2line.
20290 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
20291 the personality routine can use them and not have to rely on a C
20292 counterpart of the record anymore. This simplifies maintenance and
20293 relaxes the constraint of having Standard'Maximum_Alignment match
20295 Update comments, and add a section on the common header alignment issue.
20297 2004-06-25 Geert Bosch <bosch@gnat.com>
20299 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
20300 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
20302 2004-06-25 Robert Dewar <dewar@gnat.com>
20304 * gnat_rm.texi: Fix section on component clauses to indicate that the
20305 restriction on byte boundary placement still applies for bit packed
20307 Add comment on stack usage from Initialize_Scalars
20309 * gnat_ugn.texi: Add documentation for -gnatyLnnn
20311 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
20312 limiting nesting level.
20314 * usage.adb: Add line for -gnatyLnnn switch
20316 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
20317 sem_ch13.adb, exp_aggr.adb: Minor reformatting
20319 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
20320 type as well as on the subtype. This corrects a problem in freeze in
20321 setting alignments of atomic types.
20323 * sem_eval.ads: Minor comment typo fixed
20325 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
20326 level. Minor reformatting.
20328 * fname.adb (Is_Predefined_File_Name): Require a letter after the
20329 minus sign. This means that file names like a--b.adb will not be
20330 considered predefined.
20332 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
20333 record Test new flag and give diagnostic for bad component clause.
20334 (Freeze_Entity): Set alignment of array from component alignment in
20335 cases where this is safe to do.
20337 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
20340 * cstand.adb: (Create_Standard): Set alignment of String to 1
20342 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
20344 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
20345 code in the common constrained array cases.
20347 * a-storio.adb: Change implementation to avoid possible alignment
20348 problems on machines requiring strict alignment (data should be moved
20349 as type Buffer, not type Elmt).
20351 * checks.adb (Apply_Array_Size_Check): Improve these checks by
20352 killing the overflow checks which we really do not need (64-bits is
20355 2004-06-25 Vincent Celier <celier@gnat.com>
20357 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
20358 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
20359 inconditionally for the main project.
20360 (Recursive_Add_Archives.Add_Archive_Path): New procedure
20361 (Link_Executables.Check_Time_Stamps): New procedure
20362 (Link_Executables.Link_Foreign): New procedure
20363 Changes made to reduce nesting level of this package
20364 (Check): New procedure
20365 (Add_Switches): When not in quiet output, check that a switch is not
20366 the concatenation of several valid switches. If it is, issue a warning.
20367 (Build_Global_Archive): If the global archive is rebuilt, linking need
20369 (Compile_Sources): Rebuilding a library archive does not imply
20370 rebuilding the global archive.
20371 (Build_Global_Archive): New procedure
20372 (Build_Library): New name for Build_Archive, now only for library
20374 (Check_Archive_Builder): New procedure
20375 (Create_Global_Archive_Dependency_File): New procedure
20376 (Gprmake): Call Build_Global_Archive before linking
20377 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
20379 (Scan_Arg): Display the Copyright notice when -v is used
20381 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
20384 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
20386 Add new GNAT LIST qualifier /FILES=
20387 Added qualifier /DIRECTORY= to GNAT METRIC
20388 Added qualifier /FILES= to GNAT METRIC
20389 Added qualifier /FILES to GNAT PRETTY
20391 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
20392 to take into account both versions of the switch.
20394 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
20395 always be the last switch to the gcc driver. Disable switch storing so
20396 that switches automatically added by the gcc driver are not put in the
20399 * prj.adb (Project_Empty): Take into account changes in components of
20402 * prj.ads (Languages_Processed): New enumaration value All_Languages.
20404 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
20405 used. Split Boolean component Ada_Sources_Present in two Boolean
20406 components Ada_Sources_Present and Other_Sources_Present.
20409 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
20410 instead of Sources_Present.
20411 (Set_Ada_Paths.Add.Recursive_Add): Ditto
20413 * prj-nmsc.adb: Minor reformatting
20414 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
20415 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
20416 Check_Ada_Naming_Scheme.
20417 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
20420 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
20422 Make sure that all cycles where there is at least one "limited with"
20424 (Parse_Single_Project): New Boolean parameter In_Limited
20426 * prj-proc.adb (Recursive_Check): When Process_Languages is
20427 All_Languages, call first Prj.Nmsc.Ada_Check, then
20428 Prj.Nmsc.Other_Languages_Check.
20430 * prj-proc.adb (Process): Use Ada_Sources_Present or
20431 Other_Sources_Present (instead of Sources_Present) depending on
20434 * lang-specs.h: Keep -g and -m switches in the same order, and as the
20437 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
20438 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
20440 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
20443 * lib.ads (Disable_Switch_Storing): New procedure.
20445 * make.adb: Modifications to reduce nesting level of this package.
20446 (Check_Standard_Library): New procedure
20447 (Gnatmake.Check_Mains): New procedure
20448 (Gnatmake.Create_Binder_Mapping_File): New procedure
20449 (Compile_Sources.Compile): Add switch -gnatez as the last option
20450 (Display): Never display -gnatez
20452 * Makefile.generic:
20453 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
20455 * gnatcmd.adb (Check_Project): New function
20456 (Process_Link): New procedure to reduce nesting depth
20457 (Check_Files): New procedure to reduce the nesting depth.
20458 For GNAT METRIC, include the inherited sources in extending projects.
20459 (GNATCmd): When GNAT LS is invoked with a project file and no files,
20460 add the list of files from the sources of the project file. If this list
20461 is too long, put it in a temp text files and use switch -files=
20462 (Delete_Temp_Config_Files): Delete the temp text file that contains
20463 a list of source for gnatpp or gnatmetric, if one has been created.
20464 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
20465 in the project file is too large, create a temporary text file that
20466 list them and pass it to the tool with "-files=<temp text file>".
20467 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
20469 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
20470 generated file is in not in Ada.
20472 * gnatls.adb: Remove all parameters And_Save that are no longer used.
20473 (Scan_Ls_Arg): Add processing for -files=
20474 (Usage): Add line for -files=
20476 * g-os_lib.adb (On_Windows): New global constant Boolean flag
20477 (Normalize_Pathname): When on Windows and the path starts with a
20478 directory separator, make sure that the resulting path will start with
20481 * clean.adb (Clean_Archive): New procedure
20482 (Clean_Project): When there is non-Ada code, delete the global archive,
20483 the archive dependency files, the object files and their dependency
20484 files, if they exist.
20485 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
20487 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
20489 * sinfo.ads: Fix typo in comment.
20491 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
20492 the TSS for remote access-to-subprogram types, since these TSS are
20493 always present once the type has been analyzed.
20494 (RAS_E_Dereference): Same.
20496 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
20497 reference raises Bad_Attribute, mark the reference as analyzed so the
20498 node (and any children resulting from rewrites that could have occurred
20499 during the analysis that ultimately failed) is not analyzed again.
20501 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
20503 * exp_dist.adb: Minor comment fix.
20505 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
20506 type is an anonymous access type, no unchecked deallocation of the
20507 allocated object can occur. If the object is controlled, attach it with
20508 a count of 1. This allows attachment to the Global_Final_List, if
20509 no other relevant list is available.
20510 (Get_Allocator_Final_List): For an anonymous access type that is
20511 the type of a discriminant or record component, the corresponding
20512 finalisation list is the one of the scope of the type.
20514 2004-06-25 Ed Schonberg <schonberg@gnat.com>
20516 * sem_ch3.adb (Replace_Type): When computing the signature of an
20517 inherited subprogram, use the first subtype if the derived type
20518 declaration has no constraint.
20520 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
20521 before applying previous optimization. Minor code cleanup.
20523 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
20524 placed at the beginning of an unpacked record without explicit
20525 alignment, a slice of it will be aligned and does not need a copy when
20528 2004-06-25 Ed Schonberg <schonberg@gnat.com>
20532 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
20533 reference is written with expressions mimicking parameters.
20535 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
20538 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
20539 STEP 2a. The constraints of a full type declaration of a derived record
20540 type are checked for conformance with those declared in the
20541 corresponding private extension declaration. The message
20542 "not conformant with previous declaration" is emitted if an error is
20545 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
20547 * g-traceb.ads: Document the need for -E binder switch in the spec.
20549 * g-trasym.ads: Document the need for -E binder switch in the spec.
20551 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
20553 * sem_prag.adb: Add handling of pragma Detect_Blocking.
20555 * snames.h, snames.ads, snames.adb: Add entry for pragma
20558 * s-rident.ads: Change reference to pragma Detect_Blocking.
20560 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
20563 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
20564 to indicate whether pragma Detect_Blocking is active.
20566 * par-prag.adb: Add entry for pragma Detect_Blocking.
20568 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
20569 of not handling WITH.
20570 Note that this replaces the previous update which was incorrect.
20572 2004-06-25 Javier Miranda <miranda@gnat.com>
20574 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
20575 use-clauses to have a clean environment.
20577 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
20578 the installation of the use-clauses to stablish a clean environment in
20579 case of compilation of a separate unit; otherwise the call to
20580 use_one_package is protected by the barrier Applicable_Use.
20582 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
20583 the installation of the use-clauses to stablish a clean environment in
20584 case of compilation of a separate unit.
20585 (End_Use_Clauses): Minor comment cleanup.
20587 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
20589 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
20591 2004-06-23 Richard Henderson <rth@redhat.com>
20593 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
20595 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20597 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
20598 now bool instead of int.
20599 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
20600 * trans.c (gnu_switch_label_stack): New function.
20601 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
20602 elaboration of renamed entity returns.
20603 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
20604 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
20605 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
20606 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
20607 DECL_SIZE_UNIT and simplify variable-sized case.
20608 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
20609 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
20610 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
20611 (build_unit_elab): Disable for now.
20612 * utils.c (mark_visited): New function.
20613 (pushdecl): Walk tree to call it for global decl.
20614 (update_pointer_to): Update all variants of pointer and ref types.
20615 Add arg to COMPONENT_REF.
20616 (convert): Likewise.
20617 Move check for converting between variants lower down.
20618 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
20619 (build_allocator): Don't force type of MODIFY_EXPR.
20620 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
20621 put_var_into_stack.
20623 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20625 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
20626 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
20627 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
20629 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
20630 all callers changed.
20631 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
20632 the way that EXIT_STMT finds the loop label.
20633 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
20634 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
20635 (add_stmt): Use annotate_with_locus insted of setting directly.
20636 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
20637 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
20638 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
20639 (build_vms_descriptor): Add extra args to ARRAY_REF.
20640 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
20641 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
20643 (build_binary_op): Don't make explicit CONVERT_EXPR.
20644 Add extra rgs to ARRAY_REF.
20646 2004-06-14 Pascal Obry <obry@gnat.com>
20648 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
20649 Windows. Fix minor typo.
20651 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
20652 which is now supported on Windows. With this implementation using the
20653 Library Project feature is no different on Windows than on UNIX.
20655 2004-06-14 Vincent Celier <celier@gnat.com>
20657 * makegpr.adb (Compile_Sources): Nothing to do when there are no
20660 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
20662 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
20663 found, show the project name and the path of the previously parsed
20666 2004-06-14 Ed Schonberg <schonberg@gnat.com>
20668 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
20669 array, avoid copying the actual before the call.
20671 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
20673 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
20674 Instead, allocate memory on worst-case alignment assumptions, and then
20675 return an aligned address within the allocated zone.
20677 2004-06-14 Robert Dewar <dewar@gnat.com>
20679 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
20680 elab entities in predefined units in No_Run_Time_Mode.
20681 (Gen_Adainit_C): Same fix
20682 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
20683 units in No_Run_Time_Mode
20684 (Gen_Elab_Calls_C): Same fix
20686 * symbols-vms-alpha.adb: Minor reformatting
20688 * g-debpoo.ads: Minor reformatting
20690 * lib.adb (In_Same_Extended_Unit): Version working on node id's
20692 * lib.ads (In_Same_Extended_Unit): Version working on node id's
20694 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
20697 * make.adb: Minor reformatting
20699 * par-ch12.adb: Minor reformatting
20701 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
20703 * prj-strt.adb: Minor reformatting
20705 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
20708 * sem_attr.adb: Minor reformatting
20710 * sem_ch7.adb: Minor reformatting
20712 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
20713 for type in the same unit as the object declaration.
20715 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
20716 static string expressions and not just string literals.
20718 (Set_Warning): Reset restriction warning flag for restriction pragma
20719 Implement pragma Profile_Warnings
20720 Implement pragma Profile (Restricted)
20721 Give obolescent messages for old restrictions and pragmas
20723 * snames.h, snames.ads, snames.adb: Add new entry for pragma
20726 * s-rident.ads: Add declarations for restrictions required by profile
20727 Restricted and profile Ravenscar.
20729 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
20731 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
20732 configuration pragmas.
20734 2004-06-11 Vincent Celier <celier@gnat.com>
20736 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
20737 gnatsym, when symbol policy is Restricted.
20739 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
20740 gnatsym, when symbol policy is Restricted.
20742 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
20743 read the symbol file.
20744 (Finalize): Fail in symbol policy Restricted if a symbol in the original
20745 symbol file is not in the object files. Do not create a new symbol file
20746 when symbol policy is Restricted.
20748 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
20751 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
20753 (Usage): Line for new switch -R
20755 * make.adb (Initialize): When the platform is not VMS, add the
20756 directory where gnatmake is invoked in the front of the path, if
20757 gnatmake is invoked with directory information. Change the Scan_Args
20758 while loop to a for loop.
20759 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
20760 if Depth is equal or greater than the proposed depth, there is nothing
20762 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
20765 * prj.ads: Add new symbol policy Restricted.
20767 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
20768 with the new parameters Check_All_Labels and Case_Location.
20770 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
20771 (Library_Symbol_File needs to be defined).
20773 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
20774 and Case_Location If Check_All_Labels is True, check that all values of
20775 the string type are used, and output warning(s) if they are not.
20777 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
20780 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
20782 * gnat_ugn.texi: Update documentation about the library directory in
20785 * makegpr.adb (Display_Command): In verbose mode, also display the
20786 value of the CPATH env var, when the compiler is gcc.
20787 (Initialize): Change the Scan_Args while loop to a for loop
20788 (Compile_Individual_Sources): Change directory to object directory
20789 before compilations.
20791 * symbols.ads: New symbol policy Restricted.
20793 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
20795 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
20796 is now taken care of internally in the Exception_Propagation package
20797 and does not require clients assistance any more.
20799 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
20800 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
20801 functions. Helpers to maintain a predicate required in the handling of
20802 occurrence transfer between tasks.
20803 This is now handled internally and does not require clients assistance
20804 for the setup/propagate separation anymore.
20805 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
20806 allocation strategy, handle the Setup_And_Not_Propagated predicate and
20809 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
20810 raise_after_setup, now that everything is handled internally within the
20811 setup/propagation engine.
20813 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
20815 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
20816 Add additional conditions for the case of an actual being a simple
20817 name or literal. Improve inlining by preventing the generation
20818 of temporaries with a short lifetime (one use).
20820 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
20823 * einfo.ads: Minor comment updates for Has_Completion and
20824 E_Constant list of flags.
20826 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
20827 and constant redeclarations now set the Has_Completion flag of their
20828 defining identifiers.
20830 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
20831 Inspect_Deferred_Constant_Completion.
20832 Used to detect private deferred constants that have not been completed
20833 either by a constant redeclaration or pragma Import. Emits error message
20834 "constant declaration requires initialization expression".
20836 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
20837 completes a deferred constant.
20839 2004-06-11 Geert Bosch <bosch@gnat.com>
20841 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
20843 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
20844 calculating exponent for scaling denormal numbers.
20845 (Leading_Part): Properly raise Constraint_Error for zero or negative
20847 (Remainder): Properly raise Constraint_Error for zero divisor.
20849 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
20851 * sem_util.adb: Minor reformatting.
20853 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
20854 dereference when accessing the entry parameter record.
20855 (Check_Array_Type): Always check for possible implicit dereference.
20856 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
20857 Abort if a pointer is still present (denoting that an implicit
20858 dereference was left in the tree by the front-end).
20860 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
20861 dereference when accessing the entry parameter record.
20862 (Check_Array_Type): Always check for possible implicit dereference.
20863 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
20864 Abort if a pointer is still present (denoting that an implicit
20865 dereference was left in the tree by the front-end).
20867 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
20869 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
20870 message, like the compiler itself does. Easier to parse the output.
20872 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
20874 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
20875 be base names, and not includes directories.
20877 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
20879 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
20880 so that dependencies are properly taken into account by make.
20882 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
20885 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
20886 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
20888 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
20890 * Makefile.in (install-gnatlib): install target-specific run-time files.
20892 * Make-lang.in: Remove obsolete targets.
20894 2004-06-11 Ed Schonberg <schonberg@gnat.com>
20896 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
20897 specification, to catch misuses of program unit names.
20899 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
20900 superfluous conversions in an instance.
20902 2004-06-11 Ed Schonberg <schonberg@gnat.com>
20905 * sem_ch12.adb (Save_References): If operator node has been folded to
20906 enumeration literal, associated_node must be discarded.
20908 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
20910 * s-stchop-vxworks.adb: Add required pragma Convention to
20911 Task_Descriptor because it is updated by a C function.
20913 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
20916 * Makefile.in: Remove target specific SO_OPT on IRIX
20918 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20920 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
20921 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
20922 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
20923 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
20924 (STMT_STMT, USE_STMT): New statement codes.
20925 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
20926 * ada-tree.h: Reflect above changes.
20927 (struct tree_loop_id): Deleted.
20928 (union lang_tree_node, struct lang_decl, struct lang_type):
20929 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
20930 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
20931 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
20932 (IS_ADA_STMT): New macro.
20933 * decl.c (annotate_decl_with_node): New function.
20934 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
20935 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
20936 Call add_stmt_with_node to do needed assignments.
20937 Add call to update setjmp buffer directly, not via EXPR_STMT.
20938 (maybe_variable): Argment GNAT_NODE deleted.
20939 * gigi.h (maybe_variable): Likewise.
20940 (make_transform, add_stmt_with_node, set_block_for_group): New.
20941 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
20942 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
20943 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
20944 (set_lineno, set_lineno_from_sloc): Likewise.
20945 (record_code_position, insert_code_for): Likewise.
20946 (gnat_poplevel): Now returns void.
20947 (end_subprog_body): Now takes argument.
20948 * misc.c (cgraph.h, tree-inline.h): New includes.
20949 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
20950 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
20951 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
20952 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
20953 (gnat_parse_file): Don't set immediate_size_expand.
20954 Call cgraph functions.
20955 (gnat_expand_expr): Remove most cases.
20956 (record_code_position, insert_code_for): Remove from here.
20957 * trans.c (toplev.h, tree-gimple.h): Now included.
20958 (discard_file_names): Deleted.
20959 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
20960 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
20961 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
20962 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
20963 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
20964 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
20965 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
20966 (set_block_for_group, add_stmt_list): Likewise.
20967 (start_stmt_group): Renamed from start_block_stmt.
20968 (end_stmt_group): Likewise, from end_block_stmt.
20969 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
20970 (gigi): Don't set discard_file_names or call set_lineno.
20971 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
20972 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
20973 Numerous changes throughout to reflect new names and complete
20974 function-at-a-time implementation.
20975 (gnat_expand_stmt): Delete or comment out all cases.
20976 (process_inlined_subprograms): Use add_stmt.
20977 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
20978 call set_lineno; also remove unneeded block handling.
20979 (process_type): Remove unneeded block handling.
20980 (build_unit_elab): Remove calls to deleted functions.
20981 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
20982 (tree-dump.h): Likewise.
20983 (struct ada_binding_level): Add field jmpbuf_decl.
20984 (gnat_define_builtin, gnat_install_builtins): New.
20985 (gnat_gimplify_function, gnat_finalize): Likewise.
20986 (gnat_poplevel): No longer return BLOCK, set it instead.
20987 Remove code dealing with nested functions.
20988 (gnat_init_decl_processing): Also set size_type_node.
20989 Call gnat_install_builtins.
20990 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
20991 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
20992 Remove special-case for "main".
20993 (end_subprog_body): Add arg and rework for tree-ssa.
20994 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
20995 Add case for BOOLEAN_TYPE.
20996 * utils2.c (rtl.h): Now include.
20997 (build_call_raise): Test Debug_Flag_NN directly.
20998 (build_call_alloc_dealloc): Don't use local stack allocation for now.
20999 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
21000 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
21002 2004-06-07 Robert Dewar <dewar@gnat.com>
21004 * a-direct.ads, einfo.ads: Minor comment updates
21006 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
21007 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
21008 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
21009 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
21010 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
21012 * s-interr-sigaction.adb: Remove unreferenced variable
21013 (Attached_Interrupts). Minor reformatting.
21014 Avoid use of variable I (replace by J).
21016 * par-ch10.adb: Fix text of one error message
21018 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
21019 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
21020 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
21021 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
21022 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
21023 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
21024 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
21025 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
21026 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
21027 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
21028 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
21031 2004-06-07 Doug Rupp <rupp@gnat.com>
21033 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
21035 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
21037 * mlib-tgt-vms-ia64.adb: New file.
21039 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
21040 Add mlib-tgt-vms-ia64.adb
21041 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
21042 Move to alpha specific ifeq section.
21043 Add VMS specific versions of symbols.adb
21044 Renaming of 5q vms files.
21046 * 5qsystem.ads renamed to system-vms_64.ads.
21048 2004-06-07 Vincent Celier <celier@gnat.com>
21050 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
21051 explain that when a time of day corresponding to the non existing hour
21052 on the day switching to DST is specified, Split may return a different
21055 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
21058 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
21059 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
21061 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
21063 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
21064 the linking options.
21065 (Build_Library.Check_Libs): On VMS, if there is a dependency on
21066 g-trasym.ads, set Gtrasymobj_Needed to True.
21068 * prj-attr.adb: Add new package Metrics for gnatmetric
21070 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
21071 canonical case to take into account files with upper case characters on
21073 (Ada_Check): Load the reference symbol file name in the name buffer to
21074 check it, not the symbol file name.
21076 * snames.ads, snames.adb: Add standard name Metrics (name of project
21077 file package for gnatmetric).
21079 * vms_conv.ads: Add Metric to Comment_Type
21081 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
21083 * vms_data.ads: Add qualifiers for GNAT METRIC
21085 * makegpr.adb (Link_Executables): Take into account the switches
21086 specified in package Linker of the main project.
21088 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
21090 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
21091 the index of the last element is Units.Last, not Units.Table'Last
21092 (which is usually not a valid index within the actually allocated
21093 storage for the table).
21095 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
21096 determines whether to generate a call to a checked storage pool
21097 Dereference action.
21098 Generate such a call only for a dereference that either comes from
21099 source, or is the result of rewriting a dereference that comes from
21102 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
21104 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
21106 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
21108 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
21109 file level, elaborate the stride for inner dimensions in alignment
21112 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
21115 2004-06-07 Javier Miranda <miranda@gnat.com>
21117 * exp_ch6.adb: Correct wrong modification in previous patch
21119 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
21121 * g-trasym.ads: Corrected comment to properly reflect level of support
21124 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
21126 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
21127 includes case of a variable referenced on the left hand side of an
21128 assignment, therefore remove redundant code. Variables and prefixes of
21129 indexed or selected components are now marked as referenced on left
21130 hand side. Warnings are now properly emitted when variables or prefixes
21131 are assigned but not read.
21133 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
21134 left hand side referenced variables. Private access types do not
21135 produce the warning "variable ... is assigned but never read".
21136 Add also additional checks to left hand side referenced variables.
21137 Aliased, renamed objects and access types do not produce the warning
21138 "variable ... is assigned but never read" since other entities may read
21139 the memory location.
21141 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
21143 * Makefile.in: In the powerpc/vxworks-specific section, restore
21144 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
21147 2004-06-07 Ed Schonberg <schonberg@gnat.com>
21149 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
21150 predefined operators.
21151 Removes spurious type errors from g-trasym-vms.adb.
21153 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
21154 distinct from the operator appearing in the source, call appropriate
21155 routine to insert conversions when needed, and complete resolution of
21157 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
21158 interpretations for rewritten right operand.
21159 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
21160 the other operand is overloaded and the context is a type conversion.
21162 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21164 * ada-tree.def (BLOCK_STMT): Now has two operands.
21167 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
21169 * gigi.h: (gnat_poplevel): Now returns a tree.
21171 * trans.c (end_block_stmt): Add arg; all callers changed.
21172 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
21173 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
21174 (add_stmt): Set TREE_TYPE.
21175 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
21176 (gnat_expand_stmt, case BREAK_STMT): New case.
21178 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
21180 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
21182 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
21183 procedure Set_Stack_Size that is not needed.
21185 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
21187 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
21188 used for gnatpp input file and for the files upon which it depends
21190 2004-06-07 Ben Brosgol <brosgol@gnat.com>
21192 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
21194 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
21196 * gnatvsn.ads: Bump version numbers appropriately.
21197 Add new build type.
21199 2004-06-07 Pascal Obry <obry@gnat.com>
21201 * gnat_ugn.texi: Improve comments about imported names and link names
21202 on Windows. Add a note about the requirement to use -k gnatdll's option
21203 when working with a DLL which has stripped stdcall symbols (no @nn
21206 2004-05-27 Vincent Celier <celier@gnat.com>
21208 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
21209 COMMENTS_LAYOUT=UNTOUCHED
21211 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
21212 symbols-vms-alpha.adb
21214 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
21216 * sem.ads: Clarify documentation on checks suppression.
21218 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
21220 2004-05-27 Ed Schonberg <schonberg@gnat.com>
21222 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
21223 the case of multiple derivations.
21224 (Is_Object_Reference): For a selected component, verify that the prefix
21225 is itself an object and not a value.
21227 * sem_ch12.adb (Same_Instantiated_Constant): New name for
21228 Same_Instantiated_Entity.
21229 (Same_Instantiated_Variable): Subsidiary to
21230 Check_Formal_Package_Instance, to recognize actuals for in-out generic
21231 formals that are obtained from a previous formal package.
21232 (Instantiate_Subprogram_Body): Emit proper error when
21233 generating code and the proper body of a stub is missing.
21235 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
21236 has a universal interpretation, do the disambiguation here.
21238 * exp_ch4.adb (Expand_N_Type_Conversion,
21239 Expand_N_Unchecked_Type_Conversion): Special handling when target type
21240 is Address, to avoid typing anomalies when Address is a visible integer
21243 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
21244 to determine whether a subprogram should not be marked Pure, even when
21245 declared in a pure package.
21247 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
21249 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
21251 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
21252 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
21253 Update the documentation about the Ravenscar profile, following the
21254 definition found in AI-249.
21256 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
21257 setting the Profile (Ravenscar). This must be done in addition to
21258 setting the required restrictions.
21260 * rtsfind.ads: Add the set of operations defined in package
21263 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
21266 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
21268 lang-specs.h: Always require -c or -S and always redirect to /dev/null
21269 if -gnatc or -gnats is passed.
21271 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
21273 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
21274 a significant reference. Warnings are now properly emitted when a
21275 discriminated type is not referenced.
21277 * lib-xref.adb (Generate_Reference): A deferred constant completion,
21278 record representation clause or record type discriminant does not
21279 produce a reference to its corresponding entity. Warnings are now
21280 properly emitted when deferred constants and record types are not
21283 2004-05-27 Geert Bosch <bosch@gnat.com>
21285 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
21286 Fixes ACATS Annex G tests.
21288 2004-05-27 Robert Dewar <dewar@gnat.com>
21290 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
21293 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
21295 * s-interr.adb (Server_Task): Take into account case of early return
21296 from sigwait under e.g. linux.
21298 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
21300 * gnat_ugn.texi: Add description for the new gnatpp options:
21301 -rnb - replace the original source without creating its backup copy
21302 -c0 - do not format comments
21304 2004-05-24 Geert Bosch <bosch@gnat.com>
21306 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
21307 with 192 bits of precision, sufficient to reduce a double-extended
21308 arguments X with a maximum relative error of T'Machine_Epsilon, for X
21309 in -2.0**32 .. 2.0**32.
21310 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
21311 reduction by the processor, which only uses a 68-bit approximation of
21313 (Tan): Always reduce arguments and compute function either using
21314 the processor's fptan instruction, or by dividing sin and cos as needed.
21316 2004-05-24 Doug Rupp <rupp@gnat.com>
21318 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
21319 gcc error on 32/64 bit VMS.
21321 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
21323 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
21324 since this is what we get for stack overflows although not documented
21326 Document the issues which may require adjustments to our signal
21329 2004-05-24 Ed Schonberg <schonberg@gnat.com>
21331 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
21332 enclosing dynamic scope if the instantiation is within a generic unit.
21334 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
21336 * exp_dbug.ads: Fix typo.
21338 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
21339 Rename it to its proper name: system-linux-ia64.ads
21340 (stamp-gnatlib1): Remove extra target specific run time files when
21341 setting up the rts directory.
21343 2004-05-24 Javier Miranda <miranda@gnat.com>
21345 * einfo.ads, einfo.adb (Limited_Views): Removed.
21346 (Limited_View): New attribute that replaces the previous one. It is
21347 now a bona fide package with the limited-view list through the
21348 first_entity and first_private attributes.
21350 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
21351 limited-private-with clause.
21352 (Install_Limited_Withed_Unit): Install the private declarations of a
21353 limited-private-withed package. Update the installation of the shadow
21354 entities according to the new structure (see Build_Limited_Views)
21355 (Build_Limited_Views): Replace the previous implementation of the
21356 limited view by a package entity that references the first shadow
21357 entity plus the first shadow private entity (required for limited-
21358 private-with clause)
21359 (New_Internal_Shadow_Entity): Code cleanup.
21360 (Remove_Limited_With_Clause): Update the implementation to undo the
21361 new work carried out by Build_Limited_Views.
21362 (Build_Chain): Complete documentation.
21363 Replace Ada0Y by Ada 0Y in comments
21366 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
21367 types the level of accessibility depends on the enclosing type
21370 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
21371 entities. Complete documentation of previous change.
21373 2004-05-24 Robert Dewar <dewar@gnat.com>
21375 * namet.adb: Minor reformatting
21376 Avoid use of name I (replace by J)
21377 Minor code restructuring
21379 * sem_ch6.adb: Minor reformatting
21381 * lib-writ.adb: Do not set restriction as active if this is a
21382 Restriction_Warning case.
21384 * sem_prag.adb: Reset restriction warning flag if real pragma
21385 restriction encountered.
21387 * s-htable.adb: Minor reformatting
21388 Change rotate count to 3 in Hash (improves hash for small strings)
21390 * 5qsystem.ads: Add comments for type Address (no literals allowed).
21392 * gnat_ugn.texi: Add new section of documentation "Code Generation
21393 Control", which describes the use of -m switches.
21395 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
21397 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
21398 through the DECL_INITIAL for renamed variables.
21400 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
21402 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
21404 2004-05-19 Joel Brobecker <brobecker@gnat.com>
21406 * exp_dbug.ads: Correct comments concerning handling of overloading,
21407 since we no longer use $ anymore.
21409 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
21411 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
21412 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
21413 with illegal subunits.
21415 2004-05-19 Ed Schonberg <schonberg@gnat.com>
21417 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
21418 body with front-end inlining enabled, check whether an inline pragma
21419 appears immediately after the body and applies to it.
21421 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
21422 enabled and the pragma appears after the body of the subprogram.
21424 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21426 Part of function-at-a-time conversion
21428 * misc.c (adjust_decl_rtl): Deleted.
21429 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
21432 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
21433 (add_decl_stmt, add_stmt, block_has_vars): New functions.
21434 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
21436 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
21437 when making a decl.
21438 (gnat_to_gnu_entity): Likewise.
21439 Use add_stmt to update setjmp buffer.
21440 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
21442 No longer call adjust_decl_rtl.
21443 (DECL_INIT_BY_ASSIGN_P): New macro.
21444 (DECL_STMT_VAR): Likewise.
21446 * trans.c (gigi): Call start_block_stmt to make the outermost
21448 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
21449 Call start_block_stmt and end_block_stmt temporarily.
21450 Use gnat_expand_stmt instead of expand_expr_stmt.
21451 (add_decl_stmt): New function.
21452 (tree_transform): Call it.
21453 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
21454 (end_block_stmt): Set type and NULL_STMT.
21455 (gnat_expand_stmt): Make recursize call instead of calling
21457 (gnat_expand_stmt, case DECL_STMT): New case.
21458 (set_lineno_from_sloc): Do nothing if global.
21459 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
21460 (start_block_stmt, add_stmt, end_block_stmt): New functions.
21461 (build_block_stmt): Call them.
21462 (gnat_to_code): Don't expand NULL_STMT.
21463 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
21465 (tree_transform): Likewise.
21466 (tree_transform, case N_Null_Statement): Return NULL_STMT.
21467 (gnat_expand_stmt, case NULL_STMT): New case.
21468 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
21471 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
21474 * utils.c (create_var_decl): Do not call expand_decl or
21476 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
21477 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
21479 (struct e_stack): Add chain_next to GTY.
21480 (struct binding_level): Deleted.
21481 (struct ada_binding_level): New struct.
21482 (free_block_chain): New.
21483 (global_binding_level, clear_binding_level): Deleted.
21484 (global_bindings_p): Rework to see if no chain.
21485 (kept_level_p, set_block): Deleted.
21486 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
21487 new data structure and work directly on BLOCK node.
21488 (gnat_poplevel): Similarly.
21489 (get_decls): Look at BLOCK_VARS.
21490 (insert_block): Work directly on BLOCK node.
21491 (block_has_var): New function.
21492 (pushdecl): Rework for new binding structures.
21493 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
21495 (build_subprog_body): Likewise.
21496 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
21498 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
21500 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
21501 (DECL_STMT_VAR): Likewise.
21503 2004-05-17 Robert Dewar <dewar@gnat.com>
21505 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
21508 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
21509 of restriction synonyums by using
21510 Restrict.Process_Restriction_Synonyms.
21512 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
21514 * s-restri.ads (Tasking_Allowed): Correct missing comment
21516 * s-rident.ads: Add entries for restriction synonyms
21518 * ali.adb: Fix some problems with badly formatted ALI files that can
21519 result in infinite loops.
21521 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
21522 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
21523 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
21524 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
21525 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
21526 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
21527 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
21528 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
21529 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
21530 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
21531 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
21532 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
21533 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
21534 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
21535 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
21536 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
21537 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
21538 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
21539 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
21540 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
21541 to Task_Id (minor cleanup).
21543 2004-05-17 Vincent Celier <celier@gnat.com>
21545 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
21546 directory separator.
21548 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
21549 project being extended, if Languages is not declared in extending
21552 2004-05-17 Javier Miranda <miranda@gnat.com>
21554 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
21555 limited view of a visible sibling.
21557 2004-05-14 Robert Dewar <dewar@gnat.com>
21559 * gnat_ugn.texi: Minor change to -gnatS documentation
21561 * sprint.adb: Remove some instances of Assert (False) and for this
21562 purpose replace them by output of a ??? string.
21564 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
21567 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
21568 flag processing. This was suppressing required dependencies in
21569 No_Run_Time mode and is not needed since the binder does not generate
21570 references for things in libgnat anyway.
21572 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
21575 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
21577 * gnat_ugn.texi: Document AIX-specific issue with initialization of
21580 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
21581 action for the case of an actual parameter in an init proc call.
21583 2004-05-14 Ed Schonberg <schonberg@gnat.com>
21585 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
21586 subtype, check visible entities in base type.
21588 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
21589 actions if the object is a renaming.
21591 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
21592 Check_Formal_Package_Instance, to determine more precisely when the
21593 formal and the actual denote the same entity.
21595 2004-05-14 Javier Miranda <miranda@gnat.com>
21597 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
21599 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
21600 corresponding to a private_with must be removed from visibility; it
21601 will be made visible later, just before we analyze the private part of
21603 (Check_Private_Child_Unit): Allow private_with clauses in public
21605 (Install_Siblings): Make visible the private entities of private-withed
21607 (Install_Withed_Unit): Do not install the private withed unit if we
21608 are compiling a package declaration and the Private_With_OK flag was
21609 not set by the caller. These declarations will be installed later,
21610 just before we analyze the private part of the package.
21612 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
21613 during the evaluation of the expression that initializes the object,
21614 decorate it with the expected type to avoid cascade errors.
21617 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
21618 subprogram we have to install the private_with clauses after its
21619 specification has been analyzed (as documented in AI-262.TXT).
21621 * sem_ch8.adb (Has_Private_With): New function. Determines if the
21622 current compilation unit has a private with on a given entity.
21623 (Find_Direct_Name): Detect the Beaujolais problem described in
21626 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
21627 provides the functionality of the function Is_Ancestor that was
21628 previously available in sem_ch10. It has been renamed to avoid
21631 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
21633 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21635 * utils.c (build_vms_descriptor): Use SImode pointers.
21637 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
21639 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
21641 2004-05-14 GNAT Script <nobody@gnat.com>
21643 * Make-lang.in: Makefile automatically updated
21645 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
21647 Renaming of target specific files for clarity
21649 * Makefile.in: Rename GNAT target specific files.
21651 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
21652 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
21653 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
21654 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
21655 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
21656 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
21657 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
21658 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
21659 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
21660 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
21661 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
21662 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
21663 51osinte.adb, 51osinte.ads, 51system.ads,
21664 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
21665 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
21666 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
21667 56tpopsp.adb, 57system.ads, 58system.ads,
21668 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
21669 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
21670 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
21671 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
21672 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
21673 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
21674 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
21675 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
21676 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
21677 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
21678 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
21679 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
21680 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
21681 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
21682 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
21683 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
21684 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
21685 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
21686 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
21687 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
21688 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
21689 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
21690 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
21691 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
21692 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
21693 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
21694 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
21695 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
21696 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
21697 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
21698 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
21699 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
21700 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
21701 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
21702 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
21703 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
21704 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
21705 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
21706 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
21707 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
21709 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
21710 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
21711 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
21712 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
21713 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
21714 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
21715 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
21716 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
21717 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
21718 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
21719 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
21720 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
21721 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
21722 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
21723 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
21724 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
21725 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
21726 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
21727 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
21728 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
21729 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
21730 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
21731 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
21732 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
21733 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
21734 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
21735 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
21736 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
21737 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
21738 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
21739 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
21740 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
21741 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
21742 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
21743 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
21744 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
21745 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
21746 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
21747 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
21748 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
21749 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
21750 s-osinte-vms.ads, s-osinte-vxworks.adb,
21751 s-osinte-vxworks.ads, s-osprim-mingw.adb,
21752 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
21753 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
21754 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
21755 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
21756 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
21757 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
21758 s-stchop-vxworks.adb, s-taprop-dummy.adb,
21759 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
21760 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
21761 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
21762 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
21763 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
21764 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
21765 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
21766 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
21767 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
21768 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
21769 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
21770 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
21771 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
21772 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
21773 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
21774 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
21775 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
21776 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
21777 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
21778 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
21779 system-irix-o32.ads, system-linux-x86_64.ads,
21780 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
21781 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
21782 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
21783 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
21784 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
21785 system-vxworks-mips.ads, system-vxworks-ppc.ads,
21786 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
21789 2004-05-13 Zack Weinberg <zack@codesourcery.com>
21791 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
21793 2004-05-13 Diego Novillo <dnovillo@redhat.com>
21795 Merge from tree-ssa-20020619-branch.
21797 * config-lang.in (boot_language, build_by_default): Set
21799 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
21800 (max_size): Add static chain op for call_expr.
21802 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
21805 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
21807 2004-05-11 Roger Sayle <roger@eyesopen.com>
21809 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
21812 2004-05-10 Doug Rupp <rupp@gnat.com>
21814 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
21817 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
21819 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
21821 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
21822 Fixes undefined symbols in IA64 gnatlib.
21824 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
21826 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
21827 Short_Address). This will be moved to system.auxdec.
21829 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
21831 * sem_util.adb: Replace test for presence of a node that is always
21832 present with a call to Discard_Node.
21834 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
21835 Analyze on the library unit node after generation of distribution stub
21836 constructs. The call was a no-op because Unit_Node has already been
21837 Analyzed, and the tree fragments for the distribution stubs are
21838 analyzed as they are inserted in Exp_Dist.
21839 Update comment regarding to distribution stubs to reflect that we
21840 do not generate stub in separate files anymore.
21842 * einfo.ads: Clarify the fact that a tagged private type has the
21843 E_Record_Type_With_Private Ekind.
21845 * erroutc.adb: Minor reformatting
21847 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
21848 values if line length is increased using -gnatyM (noticed during code
21851 * eval_fat.adb: Minor reformatting
21852 Put spaces around exponentiation operator
21854 2004-05-10 Ed Schonberg <schonberg@gnat.com>
21857 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
21858 has been rewritten as an explicit dereference, retrieve type of
21859 original node to check for possibly unconstrained record type.
21861 2004-05-10 Ed Schonberg <schonberg@gnat.com>
21863 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
21864 overriding, use the operation of the parent unconditionally.
21866 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
21867 operation when either operand is a literal, to avoid further
21870 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
21871 overridden by a previous explicit declaration, mark the previous entity
21874 * sem_disp.adb (Check_Dispatching_Operation): New predicate
21875 Is_Visibly_Controlled, to determine whether a declaration of a
21876 primitive control operation for a derived type overrides an inherited
21877 one. Add warning if the explicit declaration does not override.
21879 2004-05-10 Vincent Celier <celier@gnat.com>
21881 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
21882 some cases when the sources are no longer present.
21884 * make.adb (Collect_Arguments): Fail if an external source, not part
21885 of any project need to be compiled, when switch -x has not been
21888 * makeusg.adb: Document new switch -x
21890 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
21891 defaulted to False.
21893 * switch-m.adb (Scan_Make_Switches): New switch -x
21895 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
21896 gnatmake switch -x.
21898 * gnat_ugn.texi: Document new gnatmake switch -x
21900 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
21902 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
21904 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
21905 (process_attributes): Likewise.
21907 2004-05-10 Joel Brobecker <brobecker@gnat.com>
21909 * s-inmaop.ads: Fix spelling mistake in one of the comments.
21911 2004-05-10 Robert Dewar <dewar@gnat.com>
21913 * gnat_ugn.texi: Document that for config pragma files, the maximum
21914 line length is always 32767.
21916 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
21917 literals is now allowed.
21919 * gnat-style.texi: Remove statement about splitting long lines before
21920 an operator rather than after, since we do not follow this rule at all.
21921 Clarify rule (really lack of rule) for spaces around exponentiation
21923 * sem_elim.adb: Allow concatenation of string literals as well as a
21924 single string literal for pragma arguments.
21926 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
21928 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
21929 written for append case.
21931 * frontend.adb: Changes to avoid checking max line length in config
21934 * g-os_lib.ads: Minor reformatting
21936 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
21937 wrong in any case. Instead use standard value. Noticed during code
21940 * opt.ads (Max_Line_Length): New field, used to implement removal of
21941 limitation on length of lines when scanning config pragma files.
21943 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
21944 makeutl.ads, makeutl.adb: Minor reformatting
21946 * scn.adb: Do not check line length while scanning config pragma files
21947 Do not check line length while scanning out license information
21949 * scng.adb: Changes to avoid line length checks while parsing config
21952 2004-05-10 GNAT Script <nobody@gnat.com>
21954 * Make-lang.in: Makefile automatically updated
21956 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
21958 * osint.adb (Find_Program_Name): Fix handling of VMS version
21961 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
21963 * g-os_lib.ads (Invalid_Time): New constant
21965 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
21966 return OS_Time instead of time_t to match what is imported by Ada.
21967 Now return -1 if the file doesn't exist, instead of a random value
21969 2004-05-05 Robert Dewar <dewar@gnat.com>
21971 * usage.adb: Add line for -gnatR?s switch
21973 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
21975 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
21976 and for Match (Data_First, Data_last)
21978 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
21979 written when we are dealing with multi-unit files.
21981 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
21983 * Makefile.in: Remove unused targets and variables.
21985 2004-05-05 Vincent Celier <celier@gnat.com>
21987 * switch-m.adb: New gnatmake switch -eI
21989 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
21990 of new gnatmake switch -eInnn.
21992 * makegpr.adb: Take into account new parameters Index and Src_Index in
21995 * clean.adb: Implement support for multi-unit sources, including new
21998 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
22001 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
22002 (Extract_From_Q): New out parameter Index
22003 (Mark, Is_Marked): Subprograms moved to Makeutl
22004 (Switches_Of): New parameter Source_Index
22005 (Add_Switch): New parameter Index
22006 (Check): New parameter Source_Index
22007 (Collect_Arguments): New parameter Source_Index
22008 (Collect_Arguments_And_Compile): New parameter Source_Index
22009 (Compile): New parameter Source_Index
22010 Put subprograms in alphabetical order
22011 Add support for multi-source sources, including in project files.
22013 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
22014 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
22017 * makeusg.adb: New gnatmake switch -eInnn
22019 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
22022 * opt.ads (Main_Index): New variable, defaulted to 0.
22024 * osint.ads, osinte.adb (Add_File): New parameter Index
22025 (Current_Source_Index): New function
22027 * prj.adb: Take into account new components Index and Src_Index
22029 * prj.ads (String_Element): New component Index
22030 (Variable_Value): New component Index
22031 (Array_Element): New component Src_Index
22033 * prj-attr.adb: Indicate that optional index may be specified for
22034 attributes Main, Executable, Spec, Body and some of Switches.
22036 * prj-attr.ads (Attribute_Kind): New values for optional indexes
22037 (Attribute_Record): New component Optional_Index
22039 * prj-com.ads (File_Name_Data): New component Index
22041 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
22043 * prj-env.adb (Put): Output optional index
22045 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
22046 attributes Spec and Body.
22048 * prj-nmsc.adb: Process optional indexes
22050 * prj-pp.adb: Ouput "at" for optional indexes
22052 * prj-proc.adb: Take into account optional indexes
22054 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
22055 Optional_Index. For string literal,
22056 process optional index when Optional_Index is True.
22057 (Parse_Expresion): New Boolean parameter Optional_Index
22059 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
22060 (Set_Source_Index_Of): New procedure
22062 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
22065 * prj-util.ads (Executable_Of): New parameter Index
22066 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
22067 New parameter Src_Index, defaulted to 0.
22069 2004-05-05 Ed Schonberg <schonberg@gnat.com>
22072 * sem_ch3.adb (Access_Definition): If this is an access parameter
22073 whose designated type is imported through a limited_with clause, do
22074 not add the enclosing subprogram to the list of private dependents of
22077 2004-05-05 Ed Schonberg <schonberg@gnat.com>
22080 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
22081 a limited_with clause, and the other is its non-limited view.
22083 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
22085 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
22087 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
22088 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
22089 Stand.Boolean_Literals to produce references to entities
22090 Standard_False and Standard_True from compile-time computed boolean
22093 * stand.ads (Boolean_Literals): New variable, provides the entity
22094 values for False and True, for use by the expander.
22096 2004-05-05 Doug Rupp <rupp@gnat.com>
22098 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
22099 5vinmaop.adb: Unchecked convert Short_Address vice Address
22101 * adaint.c, raise.c: Caste CRTL function return value
22102 to avoid gcc error on 32/64 bit IVMS.
22104 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
22107 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
22109 * 5qsystem.ads (Address): Declare as Long_Integer
22110 (Short_Address): Declare as 32 bit subtype of Address
22111 Declare abstract address operations to avoid gratuitous ambiguities.
22113 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
22115 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
22116 instead of the old Boolean_Entry_Barriers.
22117 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
22119 2004-05-05 GNAT Script <nobody@gnat.com>
22121 * Make-lang.in: Makefile automatically updated
22123 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
22125 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
22127 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
22130 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
22131 alone. Replacing object references by literals is inappropriate in a
22132 so low level context.
22134 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
22136 * a-exexpr.adb: Add comments
22138 2004-05-03 Joel Brobecker <brobecker@gnat.com>
22140 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
22141 declare the Ancestor_Tags array in Type_Specific_Data with a small size
22142 without risking a bounds check error when accessing one of its
22144 (Type_Specific_Data): Define Ancestor_Tags as a small array.
22145 This prevents us from hitting a limitation during the debug info
22146 generation when using stabs.
22148 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
22150 This prevents us from hitting a limitation during the debug info
22151 generation when using stabs.
22153 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
22155 lang-specs.h: Remove -gnatz* from specs.
22157 2004-05-03 Vincent Celier <celier@gnat.com>
22159 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
22161 * Make-lang.in, Makefile.in: Add gprmake
22163 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
22165 * sem_aggr.adb: Fix typo in comment.
22167 2004-05-03 Robert Dewar <dewar@gnat.com>
22169 * make.adb: Minor reformatting
22171 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
22173 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
22174 so that it works when address is not a private type.
22176 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
22177 properly with rewritten unchecked conversions. This prevents
22178 order-of-elaboration issues that can otherwise arise.
22179 (Minimum_Size): Don't check size of access types under VMS
22181 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
22182 interpretations of integer literals as type System.Address.
22184 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
22185 (Is_Descendent_Of): New function
22187 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
22189 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
22190 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
22191 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
22193 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
22194 of the old Max_Entry_Queue_Depth.
22196 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
22197 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
22198 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
22200 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
22201 New entry for proper handling of Max_Entry_Queue_Depth.
22202 New entry for proper handling of No_Dynamic_Interrupts.
22204 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
22205 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
22206 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
22207 the GNAT specific restriction Max_Entry_Queue_Depth.
22208 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
22209 the GNAT specific restriction No_Dynamic_Interrupts.
22211 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
22212 instead of the old Boolean_Entry_Barriers.
22213 Use the new restriction No_Dynamic_Attachment instead of the old
22214 No_Dynamic_Interrupts.
22216 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
22217 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
22219 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
22220 of the old Max_Entry_Queue_Depth.
22222 2004-05-03 GNAT Script <nobody@gnat.com>
22224 * Make-lang.in: Makefile automatically updated
22226 2004-04-29 Ed Schonberg <schonberg@gnat.com>
22228 * checks.adb (Enable_Range_Check): If the prefix of an index component
22229 is an access to an unconstrained array, perform check unconditionally.
22231 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22233 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
22236 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
22238 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
22239 alternate stack setting. There was no support for the tasking cases
22240 and the changes eventually caused a number of side-effect failures in
22241 the non-tasking case too.
22243 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
22245 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
22248 2004-04-29 Vincent Celier <celier@gnat.com>
22250 * make.adb (Gnatmake): Increase max size of argument array for
22251 gnatbind for the potential addition of -F.
22252 If there are Stand-Alone Library projects, invoke gnatbind with -F to
22253 be sure that elaboration flags will be checked.
22255 * switch-c.adb: Correct call to Scan_Pos for -gnateI
22257 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
22259 * sem_warn.adb (Check_References): Move '<access-variable> may be
22260 null' warning out of under Warn_On_No_Value_Assigned.
22262 2004-04-29 Ed Falis <falis@gnat.com>
22264 * gnat_ugn.texi: Fixed texi error
22266 2004-04-29 Robert Dewar <dewar@gnat.com>
22268 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
22269 abstract operations if they come from predefined files.
22271 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
22274 * s-addope.adb: Correct obvious error in mod function
22276 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
22278 * Makefile.in: Add target pairs for powerpc darwin*
22281 * a-intnam-darwin.ads, s-osinte-darwin.adb,
22282 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
22284 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
22286 * Makefile.in: Add target macro definitions for s390*-linux*.
22287 * system-linux-s390.ads: New file.
22288 * system-linux-s390x.ads: New file.
22290 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
22292 * gnat_ugn.texi: Correct argument to @setfilename.
22294 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
22296 * a-exexpr.adb (Unwind_Word): New data type.
22297 (Unwind_Exception): Use it as type of Private1 and Private2.
22299 * raise.c (db_action_for): Fix debug printf.
22301 2004-04-27 Ed Schonberg <schonberg@gnat.com>
22303 * a-wtmoio.ads: Formal type must be a modular type, not a signed
22306 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22308 * decl.c (gnat_to_gnu_entity, case object): Call
22309 __builtin_update_setjmp_buf.
22311 * gigi.h (update_setjmp_buf): Deleted.
22312 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
22314 * misc.c: (update_setjmp_buf): Deleted.
22316 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
22317 around block of RTL.
22319 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
22321 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
22323 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
22324 subprogram for which no pragma All_Calls_Remote applies, store the
22325 address of the real subprogram in the underlying record type, so local
22326 dereferences do not go through the PCS.
22328 2004-04-26 Robert Dewar <dewar@gnat.com>
22330 * i-c.ads: Add some type qualifications to avoid ambiguities when
22331 compiling with s-auxdec.ads and a non-private address type.
22333 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
22335 * Makefile.rtl: Fix error in previous check-in:
22336 Add s-addope.o to non tasking object list (rather than tasking object
22339 2004-04-26 Javier Miranda <miranda@gnat.com>
22341 * sem_aggr.adb: Fix typo in comments
22342 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
22343 Required to check the null-exclusion attribute.
22345 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
22346 case of anonymous access types in record and array components. For a
22347 component definition the level is the same of the enclosing composite
22350 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
22351 that are anonymous access types the level of accessibility depends on
22352 the enclosing type declaration. In order to have this information, set
22353 the scope of the anonymous access type to the enclosing record type
22355 (Array_Type_Declaration): In case of components that are anonymous
22356 access types the level of accessibility depends on the enclosing type
22357 declaration. In order to have this information, set the scope of the
22358 anonymous access type to the enclosing array type declaration.
22360 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
22363 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
22364 renaming of anonymous access-to-constant types allowed if and only if
22365 the renamed object is access-to-constant.
22367 * sem_util.adb (Type_Access_Level): In case of anonymous access types
22368 that are component_definition or discriminants of a nonlimited type,
22369 the level is the same as that of the enclosing component type.
22371 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
22373 * sem_elim.adb: Some minor code reorganization from code reading. Fix
22374 misprint in the function name (File_Name_Match).
22376 2004-04-23 Laurent GUERBY <laurent@guerby.net>
22378 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
22381 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
22383 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
22385 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
22387 * adaint.c (__gnat_try_lock): No longer requires that the parent
22388 directory be writable, the directory itself is enough.
22389 (gnat_is_absolute_path): Change profile, so that the call from
22390 GNAT.OS_Lib can be made more efficient.
22392 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
22393 from GNAT.OS_Lib can be made more efficient.
22395 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
22396 one copy of the file name. Found by code reading.
22398 2004-04-23 Vincent Celier <celier@gnat.com>
22400 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
22401 Correct documentation on gnatmake switches transmitted to the compiler
22403 * ali.ads: Minor comment fix
22405 2004-04-23 Javier Miranda <miranda@gnat.com>
22407 * sem_ch6.adb: (Confirming Types): Code cleanup
22409 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
22410 subprogram types: E_Anonymous_Access_Subprogram_Type and
22411 E_Anonymous_Access_Protected_Subprogram_Type.
22413 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
22415 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
22416 whether a pragma All_Calls_Remote applies to the subprogram on which
22418 No functional change is introduced by this revision; the new parameter
22419 will be used to allow calls to local RCI subprograms to be optimized
22420 to not use the PCS in the case where no pragma All_Calls_Remote applies,
22421 as is already done in the PolyORB implementation of the DSA.
22423 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
22424 whether a pragma All_Calls_Remote applies to the subprogram on which
22426 No functional change is introduced by this revision; the new parameter
22427 will be used to allow calls to local RCI subprograms to be optimized
22428 to not use the PCS in the case where no pragma All_Calls_Remote applies,
22429 as is already done in the PolyORB implementation of the DSA.
22431 2004-04-23 Robert Dewar <dewar@gnat.com>
22433 * Makefile.rtl: Add entry for s-addope.o in run time library list
22434 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
22435 * s-addope.ads, s-addope.adb: New files.
22437 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
22438 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
22439 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
22440 System.Address to be non-private and signed.
22442 * sem_elim.adb: Minor reformatting (fairly extensive)
22443 Some minor code reorganization from code reading
22444 Add a couple of ??? comments
22446 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22448 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
22449 (tree_transform, case N_If_Statement): Remove non-determinism.
22451 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
22453 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
22455 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
22456 Eliminate' section.
22458 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
22459 no longer used as a parameter name for Eliminate pragma).
22461 2004-04-22 Laurent GUERBY <laurent@guerby.net>
22463 PR optimization/14984
22464 PR optimization/14985
22465 * trans.c (gigi): Fix non determinism leading to bootstrap
22466 comparison failures.
22468 2004-04-21 Pascal Obry <obry@gnat.com>
22470 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
22471 passed to spawnvp() to properly handle program pathname with spaces on
22474 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
22476 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
22477 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
22478 unlocked in case of exceptions.
22480 2004-04-21 Joel Brobecker <brobecker@gnat.com>
22482 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
22483 This function does not exist anymore.
22485 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
22487 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
22489 * link.c: Move variables to the __gnat name space.
22491 * Makefile.in: list link.o explicitly when needed.
22493 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
22495 2004-04-21 Javier Miranda <miranda@gnat.com>
22497 * einfo.adb (Original_Access_Type): New subprogram
22498 (Set_Original_Access_Type): New subprogram
22499 (Write_Field21_Name): Write the name of the new field
22501 * einfo.ads (Original_Access_Type): New field present in access to
22503 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
22504 E_Anonymous_Access_Protected_Subprogram_Type.
22506 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
22509 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
22510 to anonymous access to subprogram types.
22512 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
22513 to subprogram types.
22515 * sem_ch3.adb (Access_Definition): Complete decoration of entities
22516 corresponding to anonymous access to subprogram types.
22517 (Analyze_Component_Declaration): Add new actual to the call to
22518 subprogram replace_anonymous_access_to_protected_subprogram.
22519 (Array_Type_Declaration): Add new actual to the call to subprogram
22520 replace_anonymous_access_to_protected_subprogram.
22521 (Process_Discriminants): Add new actual to the call to subprogram
22522 replace_anonymous_access_to_protected_subprogram.
22523 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
22525 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
22528 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
22529 access to subprogram types.
22531 * sem_util.adb (Has_Declarations): Addition of package_specification
22534 2004-04-21 Ed Schonberg <schonberg@gnat.com>
22536 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
22537 inlined flags to renamed entity only if in current unit.
22539 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
22541 * s-parint.ads: Add DSA implementation marker.
22543 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
22544 value of System.Partition_Interface.DSA_Implementation to determine
22545 what version of the distributed systems annex is available (no
22546 implementation, GLADE, or PolyORB).
22548 2004-04-21 Joel Brobecker <brobecker@gnat.com>
22550 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
22552 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22554 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
22555 with new type if alias sets differ.
22556 Fixes ACATS c41103b.
22558 2004-04-21 Vincent Celier <celier@gnat.com>
22560 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
22561 Add array Lang_Args for the language specific compiling argument
22564 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
22566 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
22568 * gnat_rm.texi: Update the descripton of the Eliminate pragma
22569 according to the recent changes in the format of the parameters of the
22570 pragma (replacing Homonym_Number with Source_Location).
22572 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
22574 * 5isystem.ads: Removed, unused.
22576 * gnat_rm.texi: Redo 1.13 change.
22578 2004-04-19 Robert Dewar <dewar@gnat.com>
22580 * s-stoele.ads: Clean up definition of Storage_Offset (the new
22581 definition is cleaner, avoids the kludge of explicit Standard operator
22582 references, and also is consistent with a visible System.Address with
22583 no visible operations.
22585 * s-geveop.adb: Add declarations to avoid assumption of visible
22586 operations on type System.Address (since these might not be available
22587 if Address is a non-private type for which the operations
22588 are made abstract).
22590 * sem_eval.adb: Minor reformatting
22592 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
22593 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
22594 reformatting (new function spec format).
22596 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
22597 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
22598 s-caun64.adb: Add declarations to avoid assumption of visible
22599 operations on type System.Address (since these might not be available
22600 if Address is a non-private type for which the operations are made
22603 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
22605 * exp_intr.adb: Minor comment update
22607 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
22609 * 5omastop.adb: Add declarations to avoid assumption of visible
22610 operations on type System.Address (since these might not be available
22611 if Address is a non-private type for which the operations
22612 are made abstract).
22614 2004-04-19 Vincent Celier <celier@gnat.com>
22616 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
22618 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
22621 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
22623 Call Check with Process_Languages.
22624 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
22625 with Process_Languages.
22626 (Recursive_Check): New Boolean parameter Process_Languages. Call
22627 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
22630 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
22632 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
22633 parameter Ada_Main, defaulted to True.
22634 Check for Ada specific characteristics only when Ada_Main is True.
22636 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
22638 * prj.adb: (Project_Empty): Add new Project_Data components.
22640 * prj.ads: New types and tables for non Ada languages.
22641 (Project_Data): New components Languages, Impl_Suffixes,
22642 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
22643 Include_Path, Include_Data_Set.
22645 * prj-env.ads, prj-env.adb: Minor reformatting
22647 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
22648 Put subprograms in alphabetical order
22650 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
22651 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
22654 * mlib-prj.adb: Back out modification in last version, as they are
22656 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
22658 * make.adb: (Mains): Moved to package Makeutl
22659 (Linker_Opts): Moved to package Makeutl
22660 (Is_External_Assignment): Moved to package Makeutl
22661 (Test_If_Relative_Path): Moved to package Makeutl
22662 (Gnatmake): Move sorting of linker options to function
22663 Makeutl.Linker_Options_Switches.
22665 * makeutl.ads, makeutl.adb: New files.
22667 * Makefile.in: Add makeutl.o to the object files for gnatmake
22669 * makeusg.adb: Add line for new switch -eL.
22671 * gnatls.adb (Image): New function.
22672 (Output_Unit): If in verbose mode, output the list of restrictions
22673 specified by pragmas Restrictions.
22675 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
22678 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
22679 needed, to put it in the range 1970 (included) - 2026 (excluded).
22680 (Time_Of): Do not shift Unix_Min_Year (1970).
22681 Shift the date by multiple of 56 years, if needed, to put it in the
22682 range 1970 (included) - 2026 (excluded).
22684 * adaint.h, adaint.c (__gnat_set_executable): New function.
22686 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22688 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
22689 and pop GC context.
22690 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
22691 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
22692 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
22693 (tree_transform, case N_Code_Statement): Likewise.
22694 (gnat_expand_stmt, case LABEL_STMT): Don't look at
22695 LABEL_STMT_FIRST_IN_EH.
22696 (gnat_expand_stmt, case ASM_STMT): New case.
22698 * utils2.c (build_unary_op): Properly set TREE_READONLY of
22699 UNCONSTRAINED_ARRAY_REF.
22701 * utils.c (poplevel): Temporarily push/pop GC context around inline
22702 function expansion.
22704 * decl.c (maybe_variable): Properly set TREE_READONLY of
22705 UNCONSTRAINED_ARRAY_REF.
22706 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
22708 * ada-tree.def: (ASM_STMT): New.
22710 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
22711 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
22712 ASM_STMT_INPUT): New.
22713 (ASM_STMT_CLOBBER): Likewise.
22715 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
22717 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
22718 general rcheck mechanism to raise Program_Error for E.4(18), instead
22719 of a custom raiser in System.Partition_Interface.
22720 Part of general cleanup work before PolyORB integration.
22722 * snames.ads, snames.adb: Add new runtime library entities and names
22725 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
22727 (Build_Subprogram_Id): New subprogram provided by exp_dist
22728 Code reorganisation in preparation for PolyORB integration.
22730 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
22732 (Build_Subprogram_Id): New subprogram provided by exp_dist
22734 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
22735 actual parameter types for call to dereference of an
22736 access-to-subprogram type.
22738 * rtsfind.ads: Add new runtime library entities and names for PolyORB
22741 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
22742 instead, which has the same behaviour here since we never pass it a
22745 * link.c (run_path_option, Solaris case): Use -Wl, as for other
22748 * Makefile.in: adjust object file lists for gnatlink and gnatmake
22749 to account for new dependency upon Interfaces.C.Strings + link.o
22750 For x86 FreeBSD, use 86numaux.
22752 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
22753 from Mlib.Tgt to Mlib.
22755 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
22756 target-independent.
22758 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
22759 target-specific versions of this subprogram, now implemented as a
22760 target-independent function in Mlib.
22762 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
22763 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
22764 (Linker_Library_Path_Option): Remove target-specific versions of this
22765 subprogram, now implemented as a target-independent function in Mlib.
22767 * atree.adb: (Allocate_Initialize_Node): New subprogram.
22768 Factors out node table slots allocation.
22769 (Fix_Parents): New subprogram.
22770 Encapsulate the pattern of fixing up parent pointers for syntactic
22771 children of a rewritten node.
22772 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
22773 (Rewrite): Use New_Copy when creating saved copy of original node.
22774 (Replace): Use Copy_Node to copy nodes.
22776 2004-04-19 Javier Miranda <miranda@gnat.com>
22778 * sprint.adb (Sprint_Node_Actual): Give support to the new
22779 Access_To_Subprogram node available in Access_Definition nodes. In
22780 addition, give support to the AI-231 node fields: null-exclusion,
22781 all-present, constant-present.
22783 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
22785 * sinfo.ads, sinfo.adb:
22786 New field Access_To_Subprogram_Definition in Access_Definition nodes
22788 * sem_ch6.adb (Process_Formals): Move here the code that creates and
22789 decorates internal subtype declaration corresponding to the
22790 null-excluding formal. This code was previously in Set_Actual_Subtypes.
22791 In addition, carry out some code cleanup on this code. In case of
22792 access to protected subprogram call
22793 Replace_Anonymous_Access_To_Protected_Subprogram.
22794 (Set_Actual_Subtypes): Code cleanup.
22796 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
22797 Find_Type in case of anonymous access renamings. Add warning in case of
22798 null-excluding attribute used in anonymous access renaming.
22800 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
22803 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
22805 (Access_Definition): In case of anonymous access to subprograms call
22806 the corresponding semantic routine to decorate the node.
22807 (Access_Subprogram_Declaration): Addition of some comments indicating
22808 some code that probably should be added here. Detected by comparison
22809 with the access_definition subprogram.
22810 (Analyze_Component_Declaration): In case of access to protected
22811 subprogram call Replace_Anonymous_Access_To_Protected.
22812 (Array_Type_Declaration): In case of access to protected subprogram call
22813 Replace_Anonymous_Access_To_Protected_Subprogram.
22814 (Process_Discriminants): In case of access to protected subprogram call
22815 Replace_Anonymous_Access_To_Protected_Subprogram.
22817 * par.adb (P_Access_Definition): New formal that indicates if the
22818 null-exclusion part was present.
22819 (P_Access_Type_Definition): New formal that indicates if the caller has
22820 already parsed the null-excluding part.
22822 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
22823 (P_Identifier_Declarations): Code cleanup and give support to renamings
22824 of anonymous access to subprogram types.
22825 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
22826 (P_Array_Type_Definition): Give support to AI-254.
22827 (P_Component_Items): Give support to AI-254.
22828 (P_Access_Definition): New formal that indicates if the header was
22829 already parsed by the caller.
22830 (P_Access_Type_Definition): New formal that indicates if the caller has
22831 already parsed the null-excluding part.
22833 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
22834 call to P_Access_Definition.
22836 2004-04-19 Geert Bosch <bosch@gnat.com>
22838 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
22839 the delicate semantics of floating-point to integer conversion.
22840 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
22842 * eval_fat.adb (Machine_Mantissa): Moved to spec.
22843 (Machine_Radix): New function.
22845 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
22847 (Machine_Radix): New function also for use in conversion checks.
22849 2004-04-19 Ed Schonberg <schonberg@gnat.com>
22851 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
22853 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
22854 to decorate the access-to-protected subprogram and the equivalent type.
22856 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
22857 to anonymous access to subprogram types.
22859 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
22860 constant-folding, for legality checks in contexts that require an RM
22863 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
22864 temporary but stack checking is not enabled, increment serial number
22865 to so that symbol generation is consistent with and without stack
22868 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
22869 independent on whether stack checking is enabled, caller must check
22870 the corresponding flag.
22872 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
22874 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
22875 parent if it has discriminants.
22876 (Build_Derived_Private_Type): Constructed full view does
22877 not come from source.
22878 (Process_Discriminants): Default discriminants on a tagged type are
22879 legal if this is the internal completion of a private untagged
22882 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
22883 no constraint checks, because it corresponds to an existing object.
22885 * sem_prag.adb (Process_Convention): Pragma applies
22886 only to subprograms in the same declarative part, i.e. the same unit,
22887 not the same scope.
22889 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
22890 ignore type mismatch on a numeric conversion if expression comes from
22893 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
22895 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
22896 Homonym_Number parameter, add processing for Source_Location parameter
22898 (Check_Eliminated): Remove the check for homonym numbers, add the check
22899 for source location traces.
22901 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
22902 with Arg_Source_Location corresponding to the changes in the format of
22905 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
22906 Eliminate pragma corresponding to the changes in the format of the
22907 pragma: Homonym_Number is replaced with Source_Location, two ways of
22908 distinguishing homonyms are mutially-exclusive.
22910 2004-04-19 Joel Brobecker <brobecker@gnat.com>
22912 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
22914 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
22915 No_Dollar_In_Label, no longer necessary, as it is always True.
22916 (Strip_Suffixes): Likewise.
22918 2004-04-19 Gary Dismukes <dismukes@gnat.com>
22920 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
22921 modulus for compatibility with size clause on targets with 16-bit
22924 * layout.adb (Discrimify): In the case of private types, set Vtyp to
22925 full type to fix type mismatches on calls to size functions for
22926 discriminant-dependent array components.
22928 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
22930 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
22933 2004-04-19 Pascal Obry <obry@gnat.com>
22935 * mdll-utl.adb (Locate): New version is idempotent.
22937 2004-04-17 Laurent Guerby <laurent@guerby.net>
22939 PR ada/14988 (partial)
22940 * impunit.adb: Fix typo.
22942 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
22944 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
22945 and install-rts-cert targets. Remove all gnatlib and gnattools
22946 targets and all other rts-* targets (moved to libada). Remove (now)
22947 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
22948 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
22950 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22952 * trans.c (tree_transform): Shortcut returning error_mark_node for
22953 statements in annotate_only_mode.
22954 (tree_transform, case N_Label, case N_Return_Statement,
22955 N_Goto_Statement): Make statement tree instead of generating code.
22956 (tree_transform, case N_Assignment_Statement): No longer check
22957 type_annotate_only.
22958 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
22960 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
22962 (gnat_to_gnu): Collect any RTL generated and deal with it.
22963 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
22964 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
22965 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
22967 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
22969 * ada-tree.def (EXPR_STMT): Fix typo in name.
22970 (BLOCK_STMT, IF_STMT): New nodes.
22972 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
22973 LABEL_STMT_FIRST_IN_EH): New macros.
22974 (RETURN_STMT_EXPR): Likewise.
22976 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
22977 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
22979 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
22981 * atree.ads: Correct documentation on extended nodes.
22983 * link.c: Set run_path_option for FreeBSD.
22985 2004-04-08 Vincent Celier <celier@gnat.com>
22987 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
22988 one of the ALI file, do not link with DEC lib.
22990 * par.adb Remove the last two characters ("%s" or "%b") when checking
22991 if a language defined unit may be recompiled.
22993 2004-04-08 Ed Schonberg <schonberg@gnat.com>
22995 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
22996 removal of abstract operation leaves no possible interpretation for
22999 * sem_eval.adb (Eval_Qualified_Expression): Use
23000 Set_Raises_Constraint_Error on node when needed, so that it does not
23001 get optimized away by subsequent optimizations.
23003 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
23004 operands even when they are not wrapped in a type conversion.
23006 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
23008 * sem_prag.adb (Set_Exported): Warn about making static as result of
23009 export only when the export is coming from source. This may be not
23010 be true e.g. on VMS where we expand export pragmas for exception codes
23011 together with imported or exported exceptions, and we don't want the
23012 user to be warned about something he didn't write.
23014 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
23016 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
23017 duplication between normal entities and those declared as renamings.
23018 No functional change.
23020 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
23021 inline functions returning an unconstrained result.
23023 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
23025 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
23026 conform to what other front-ends do.
23028 2004-04-08 Doug Rupp <rupp@gnat.com>
23030 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
23033 2004-04-06 Pascal Obry <obry@gnat.com>
23035 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
23037 * osint.adb (Program_Name): Do not look past a directory separator.
23039 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
23041 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
23043 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
23044 requirement for preserving a copy of the original assignment node.
23046 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
23048 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
23050 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
23053 2004-04-06 Ed Schonberg <schonberg@gnat.com>
23055 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
23056 operator calls in functional notation, and apply
23057 Universal_Interpretation to operands, not to their type.
23059 2004-04-06 Robert Dewar <dewar@gnat.com>
23061 * 5wdirval.adb: Minor reformatting
23063 2004-04-06 Ed Falis <falis@gnat.com>
23065 * gnat_rm.texi: Improve a reference to the GCC manual
23067 2004-04-05 Vincent Celier <celier@gnat.com>
23069 * adaint.h, adaint.c: Add function __gnat_named_file_length
23071 * impunit.adb: Add Ada.Directories to the list
23073 * Makefile.in: Add VMS and Windows versions of
23074 Ada.Directories.Validity package body.
23076 * Makefile.rtl: Add a-direct and a-dirval
23078 * mlib-tgt.ads: Minor comment update.
23080 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
23081 a-direct.ads, a-direct.adb: New files.
23083 2004-04-05 Vincent Celier <celier@gnat.com>
23086 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
23087 just to the compiler.
23089 2004-04-05 Robert Dewar <dewar@gnat.com>
23091 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
23092 returned string is 1.
23094 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
23096 * eval_fat.ads: Minor reformatting
23098 * g-curexc.ads: Document that lower bound of returned string values
23101 * gnatlink.adb: Add ??? comment for previous change
23102 (need to document why this is VMS specific)
23104 * s-stoele.ads: Minor reformatting
23106 * tbuild.ads: Minor reformatting throughout (new function specs)
23108 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
23111 * scng.adb: Minor reformatting
23113 2004-04-05 Geert Bosch <bosch@gnat.com>
23115 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
23116 (Leading_Part): Still perform truncation to machine number if the
23117 specified radix_digits is greater or equal to machine_mantissa.
23119 2004-04-05 Javier Miranda <miranda@gnat.com>
23121 * par-ch3.adb: Complete documentation of previous change
23122 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
23123 (aliased must appear before constant).
23125 * par-ch4.adb: Complete documentation of previous change.
23127 * par-ch6.adb: Complete documentation of previous change.
23129 * sinfo.ads: Fix typo in commment.
23131 2004-04-05 Ed Schonberg <schonberg@gnat.com>
23133 * sem_ch3.adb (Inherit_Components): If derived type is private and has
23134 stored discriminants, use its discriminants to constrain parent type,
23135 as is done for non-private derived record types.
23137 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
23138 Ada 2005 AI-310: an abstract non-dispatching operation is not a
23139 candidate interpretation in an overloaded call.
23141 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
23142 expression is Null and target type is not an access type (e.g. a
23143 non-private address type).
23145 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
23147 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
23148 statement whose right-hand side is an inlined call, save a copy of the
23149 original assignment subtree to preserve enough consistency for
23150 Analyze_Assignment to proceed.
23152 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
23153 complete assignment subtree which is now unnecessary, as the expansion
23154 of inlined call has been improved to preserve a consistent assignment
23155 tree. Note_Possible_Modification must be called only
23156 after checks have been applied, or else unnecessary checks will
23159 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
23160 of explicit dereferences that do not Come_From_Source:
23161 - be selective on cases where we must go back to the dereferenced
23162 pointer (an assignment to an implicit dereference must not be
23163 recorded as modifying the pointer);
23164 - do not rely on Original_Node being present (Analyze_Assignment
23165 calls Note_Possible_Modification on a copied tree).
23167 * sem_warn.adb (Check_References): When an unset reference to a pointer
23168 that is never assigned is encountered, prefer '<pointer> may be null'
23169 warning over '<pointer> is never assigned a value'.
23171 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
23173 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
23176 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
23178 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
23179 libexc. We currently don't reference anything in this library and
23180 linking it in triggers linker warnings we don't want to see.
23182 * init.c: Update comments.
23184 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23186 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
23187 * utils.c (create_field_decl): Likewise.
23188 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
23190 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
23192 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
23193 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
23194 Add info directory entry and category.
23196 2004-04-02 Jan Hubicka <jh@suse.cz>
23198 * utils.c: Include function.h
23199 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
23201 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
23204 * Make-lang.in: Clean up generation of documentation
23206 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
23208 * xgnatug.adb: Removed, replaced by xgnatugn.adb
23210 * xgnatugn.adb: Replaces xgnatug.adb
23212 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
23214 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
23216 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
23217 gnat_ug_wnt.texi: Removed.
23219 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
23221 * utils2.c: Update copyright notice.
23223 2004-04-01 Robert Dewar <dewar@gnat.com>
23225 * checks.adb: Minor reformatting throughout
23226 Note that prev checkin added RM reference to alignment warning
23228 2004-04-01 Ed Schonberg <schonberg@gnat.com>
23230 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
23231 non-static when building aggregate for bit-packed array.
23233 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
23234 function call that is itself the actual in a procedure call, build
23237 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
23238 a string literal, create a temporary for it, constant folding only
23239 handles scalars here.
23241 2004-04-01 Vincent Celier <celier@gnat.com>
23243 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
23244 Error_Msg_SP): New empty procedures to instantiate the Scanner.
23245 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
23247 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
23248 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
23249 and get the checksum.
23251 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
23253 Increase the Marking_Label at the end of the Multiple_Main_Loop,
23254 instead of at the beginning.
23256 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
23258 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
23261 * osint.ads (Multi_Unit_Index_Character): New Character global variable
23263 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
23266 * par.adb: Remove test on file name to detect language defined units.
23267 Add test on unit name, after parsing, to detect language defined units
23268 that are not compiled with -gnatg (except System.RPC and its children)
23270 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
23271 following units without style checking.
23273 * switch-c.adb: Change -gnatC to -gnateI
23275 * usage.adb: Document new switch -gnateInnn
23277 * scng.adb (Accumulate_Token_Checksum): New procedure
23278 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
23279 word or literal number.
23280 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
23283 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
23286 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
23287 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
23288 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
23289 5vtpopde.adb: Add missing 'constant' keywords.
23291 2004-04-01 Javier Miranda <miranda@gnat.com>
23293 * par-ch4.adb: (P_Allocator): Code cleanup
23295 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
23298 * sinfo.ads: Complete documentation of previous change
23300 2004-04-01 Pascal Obry <obry@gnat.com>
23302 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
23303 only on VMS. This special handling was done because an old GNU/ld bug
23304 on Windows which has been fixed.
23306 2004-04-01 GNAT Script <nobody@gnat.com>
23308 * Make-lang.in: Makefile automatically updated
23310 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23312 * decl.c (gnat_to_gnu_entity, make_type_from_size):
23313 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
23314 * trans.c (tree_transform, convert_with_check): Likewise.
23315 * utils.c (gnat_signed_or_unsigned_type): Likewise.
23316 (build_vms_descriptor, unchecked_convert): Likewise.
23317 * utils2.c (nonbinary_modular_operation): Likewise.
23319 2004-03-29 Javier Miranda <miranda@gnat.com>
23321 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
23322 (Install_Null_Excluding_Check): Local subprogram that determines whether
23323 an access node requires a runtime access check and if so inserts the
23324 appropriate run-time check.
23325 (Apply_Access_Check): Call Install_Null_Excluding check if required
23326 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
23328 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
23330 * einfo.ads: Fix typo in comment
23332 * exp_ch3.adb (Build_Assignment): Generate conversion to the
23333 null-excluding type to force the corresponding run-time check.
23334 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
23335 type to force the corresponding run-time check.
23337 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
23338 the null-excluding type to force the corresponding run-time check.
23340 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
23341 case of access types unless they have the null-excluding attribute.
23343 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
23346 * exp_util.ads: Fix typo in comment
23348 * par.adb (P_Null_Exclusion): New subprogram
23349 (P_Subtype_Indication): New formal that indicates if the null-excluding
23350 part has been scanned-out and it was present
23352 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
23354 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
23355 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
23356 type to force the corresponding run-time check
23357 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
23359 (Resolve_Array_Aggregate): Carry out some static checks
23360 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
23362 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
23363 attribute must be set only if specified by means of the null-excluding
23364 part. In addition, we must also propagate the access-constant attribute
23366 (Access_Subprogram_Declaration, Access_Type_Declaration,
23367 Analyze_Component_Declaration, Analyze_Object_Declaration,
23368 Array_Type_Declaration, Process_Discriminants,
23369 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
23370 and carry out some static checks.
23371 (Build_Derived_Access_Type): Set the null-excluding attribute
23372 (Derived_Type_Declaration, Process_Subtype): Carry out some static
23375 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
23377 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
23379 * sem_ch6.adb (Process_Formals): Carry out some static checks.
23380 (Set_Actual_Subtypes): Generate null-excluding subtype if the
23381 null-excluding part was present; it is not required to be done here in
23382 case of anonymous access types.
23383 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
23386 * sem_res.adb (Resolve_Actuals): Carry out some static check
23387 (Resolve_Null): Allow null in anonymous access
23389 * sinfo.adb: New subprogram Null_Exclusion_Present
23390 All_Present and Constant_Present available on access_definition nodes
23392 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
23393 object_declaration, derived_type_definition, component_definition,
23394 discriminant_specification, access_to_object_definition,
23395 access_function_definition, allocator, access_procedure_definition,
23396 access_definition, parameter_specification, All_Present and
23397 Constant_Present flags available on access_definition nodes.
23399 2004-03-29 Robert Dewar <dewar@gnat.com>
23401 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
23402 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
23403 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
23404 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
23405 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
23406 sem_prag.adb: Updates to handle multiple units/file
23408 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
23410 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
23411 sem_util.adb: Minor reformatting
23413 * sem_ch12.adb: Add comment for previous change
23415 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
23417 * osint.adb (Executable_Prefix): Set Exec_Name to the current
23418 executable name when not initialized. Otherwise, use its current value.
23420 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
23421 initialize it to another executable name than the current one. This
23422 allows to configure paths for an executable name (gnatmake) different
23423 from the current one (gnatdist).
23425 2004-03-29 Ed Schonberg <schonberg@gnat.com>
23427 * exp_ch6.adb (Expand_Call): A call to a function declared in the
23428 current unit cannot be inlined if it appears in the body of a withed
23429 unit, to avoid order of elaboration problems in gigi.
23431 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
23432 information for protected (wrapper) operation as well, to simplify gdb
23435 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
23436 protected body, indicate that the entity for the generated spec comes
23437 from source, to ensure that references are properly generated for it.
23438 (Build_Body_To_Inline): Do not inline a function that returns a
23441 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
23442 apply convention to homonyms that are declared explicitly.
23444 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
23445 that renames an equality operator and the operands are overloaded,
23446 resolve them with the declared formal types, before rewriting as an
23449 2004-03-29 GNAT Script <nobody@gnat.com>
23451 * Make-lang.in: Makefile automatically updated
23453 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
23455 * memtrack.adb: Log realloc calls, which are treated as free followed
23458 2004-03-25 Vincent Celier <celier@gnat.com>
23460 * prj-makr.adb (Process_Directories): Detect when a file contains
23461 several units. Do not include such files in the config pragmas or
23462 in the naming scheme.
23464 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
23465 Resolve links only when not in Trusted_Mode.
23466 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
23467 Do not resolve links for the display names.
23469 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
23470 resolve links when computing the display names.
23472 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
23474 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
23475 attribute reference does not denote a subtype, it can be any
23476 expression that has a classwide type, potentially after an implicit
23477 dereference. In particular, the prefix can be a view conversion for
23478 a classwide type (for which Is_Object_Reference holds), but it can
23479 also be a value conversion for an access-to-classwide type. In the
23480 latter case, there is an implicit dereference, and the original node
23481 for the prefix does not verify Is_Object_Reference.
23483 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
23484 conversion of a discriminant-dependent component of a mutable object
23487 2004-03-25 Ed Schonberg <schonberg@gnat.com>
23489 * freeze.adb (Freeze_Entity): When an inherited subprogram is
23490 inherited, has convention C, and has unconstrained array parameters,
23491 place the corresponding warning on the derived type declaration rather
23492 than the original subprogram.
23494 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
23495 indication on renaming declaration, if formal has a box and actual
23498 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
23499 determine whether to generate an implicit or explicit reference to
23500 the renamed entity.
23502 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
23503 subprogram renaming comes from a defaulted formal subprogram in an
23506 2004-03-25 Gary Dismukes <dismukes@gnat.com>
23508 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
23509 value expressions to ensure that calls within a component definition
23510 will be checked (since those are evaluated during the record type's
23513 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
23515 * s-tpobop.adb: Code clean up:
23516 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
23518 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
23520 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
23522 * Makefile.in: Clean up in the ravenscar run time.
23524 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23526 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
23527 of No_Strict_Aliasing to build_pointer_type_for_mode.
23528 * utils.c (update_pointer_to): Walk pointer and ref chains.
23530 2004-03-22 Cyrille Comar <comar@act-europe.fr>
23532 * ali.ads: Fix Comment about Dynamic_Elab.
23534 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
23535 Has_RACW, Is_Generic, etc.)
23536 (Output_Object, Gnatls): Take into account ALI files not attached to
23539 2004-03-22 Vincent Celier <celier@gnat.com>
23541 * gprep.adb: Change all String_Access to Name_Id
23542 (Is_ASCII_Letter): new function
23543 (Double_File_Name_Buffer): New procedure
23544 (Preprocess_Infile_Name): New procedure
23545 (Process_Files): New procedure
23546 (Gnatprep): Check if output and input are existing directories.
23547 Call Process_Files to do the real job.
23549 2004-03-22 Robert Dewar <dewar@gnat.com>
23551 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
23552 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
23554 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
23556 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
23557 case when the source contains only comments.
23559 2004-03-22 Ed Schonberg <schonberg@gnat.com>
23561 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
23562 declaration for a child subprogram body that acts as a spec, indicate
23563 that the entity in the declaration needs debugging information.
23565 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
23566 full view if the subtype is created for a constrained record component;
23567 gigi has enough information to construct the record, and there is no
23568 place in the tree for the declaration.
23570 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
23571 serial number for the dummy body that is built for analysis, to avoid
23572 inconsistencies in the generation of internal names when compiling
23575 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
23577 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
23580 2004-03-22 GNAT Script <nobody@gnat.com>
23582 * Make-lang.in: Makefile automatically updated
23584 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23586 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
23587 * trans.c (tree_transform, emit_index_check): Likewise.
23588 * utils.c (build_template): Likewise.
23589 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
23590 (maybe_unconstrained_array, unchecked_convert): Likewise.
23591 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
23592 (build_unary_op): Likewise.
23593 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
23594 (fill_vms_descriptor): Likewise.
23595 (build_call_alloc_dealloc): Likewise.
23597 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
23599 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
23602 * gnat_ug.texi: Add info directory category and entry.
23603 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
23604 gnat_ug_wnt.texi: Regenerate.
23606 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
23608 * ada-tree.h: Update copyright notice.
23609 Minor reformatting.
23611 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
23613 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
23614 as regular exception objects and not as mere integers representing the
23615 condition code. The latter approach required some dynamics to mask off
23616 severity bits, which did not fit well into the GCC table based model.
23617 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
23618 exception data objects. We don't it and it would conflict with the other
23619 external symbol we have to generate for such exceptions.
23621 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
23622 the special code for VMS exceptions, since these are now represented
23623 as regular exceptions objects.
23625 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23627 * decl.c (debug_no_type_hash): Remove.
23628 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
23629 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
23631 2004-03-19 Laurent Guerby <laurent@guerby.net>
23633 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
23634 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
23636 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23638 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
23639 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
23640 (TYPE_RM_SIZE_INT): Directly use type.values.
23641 (TREE_LOOP_ID): Clean up check.
23642 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
23643 TYPE_VALUES, not TYPE_FIELDS.
23644 * trans.c (convert_with_check): Delay access of bounds of basetype
23645 until sure is numeric.
23647 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
23649 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
23652 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
23653 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
23654 Specific.Set instead of direct call to e.g pthread_setspecific.
23656 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
23658 * adaint.c: Update comments.
23660 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
23661 GNATLIB_SHARED for FreeBSD.
23663 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
23665 * init.c [VxWorks]: Do not fix the stack size for the environment task.
23666 When needed (stack checking) the stack size is retrieved
23667 from the VxWorks kernel.
23669 * Makefile.in: Flag -nostdinc is required when building the run time
23670 for avoiding looking for files in the base compiler.
23671 Add the VxWorks specific version of the package body for
23672 System.Stack_checking.Operations (5zstchop.adb).
23674 * Make-lang.in: Add the object file for
23675 System.Stack_Checking.Operations.
23677 * Makefile.rtl: Add object file for the package
23678 System.Stack_Checking.Operations.
23680 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
23682 * s-stache.ads, s-stache.adb: Move the operations related to stack
23683 checking from this package to package System.Stack_Checking.Operations.
23684 This way, stack checking operations are only linked in the final
23685 executable when using the -fstack-check flag.
23687 2004-03-18 Doug Rupp <rupp@gnat.com>
23689 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
23692 * 5qsystem.ads, 5xcrtl.ads: New files.
23694 2004-03-18 Vincent Celier <celier@gnat.com>
23696 * prj.adb (Reset): Reset hash table Files_Htable
23698 * prj-env.adb (Source_Paths, Object_Paths): New tables.
23699 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
23700 the procedures Add_To_Path_File.
23701 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
23702 making sure that each directory is present only once and, for object
23703 dirs, when a directory already present is added, the duplicate is
23704 removed and the directory is always put as the last in the table.
23705 Write the path files at the end of these accumulations.
23707 * prj-nmsc.adb (Record_Source): Add source file name in hash table
23708 Files_Htable for all sources.
23710 * prj-proc.adb (Process): Remove restrictions between not directly
23711 related extending projects.
23713 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
23715 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
23716 (Find_Sources): Minor speed optimization.
23718 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
23719 parameter Trusted_Mode.
23721 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
23723 * scn.adb (Determine_License): Take into account a degenerated case
23724 when the source contains only comments.
23726 2004-03-18 Ed Schonberg <schonberg@gnat.com>
23728 * sem_warn.adb (Check_References): For a warning on a selected
23729 component that does not come from source, locate an uninitialized
23730 component of the record type to produce a more precise error message.
23732 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
23734 * 3zsoccon.ads: Fix multicast options.
23736 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
23739 2004-03-15 Robert Dewar <dewar@gnat.com>
23741 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
23742 pragma used for a private type.
23744 * lib-xref.adb (Generate_Reference): Do not generate warning if
23745 reference is in a different unit from the pragma Unreferenced.
23747 * 5vtpopde.adb: Minor reformatting
23748 Fix casing of To_Task_ID
23750 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
23751 flag if we have an unchecked conversion to an access type in the same
23754 2004-03-15 Geert Bosch <bosch@gnat.com>
23756 * a-ngcoty.adb (Modulus): In alternate formula for large real or
23757 imaginary parts, use Double precision throughout.
23759 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
23760 we want to be able to compile run-time with -gnata for testing, but
23761 this may also be instantiated in user code that is compiled with -gnata.
23763 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
23765 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
23766 codes. Having a separate type for this is useful to enforce consistency
23767 throughout the various run-time units.
23768 (Exception_Data): Use Exception_Code for Import_Code.
23770 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
23771 Natural and Integer in various places.
23772 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
23773 with the severity bits masked off.
23774 (Register_VMS_Exception): Handle the additional exception data pointer
23777 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
23778 component, now reflected by an exported accessor.
23779 (is_handled_by): New routine to compute whether the propagated
23780 occurrence matches some handler choice specification. Extracted out of
23781 get_action_description_for, and expanded to take care of the VMS
23783 (get_action_description_for): Use is_handled_by instead of an explicit
23784 complex condition to decide if the current choice at hand catches the
23785 propagated occurrence.
23787 * raise.h (Exception_Code): New type for C.
23789 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
23790 System.Standard_Library.Exception_Code, to allow references from the
23791 pragma import/export expander.
23793 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
23794 New accessors to allow easy access to GNAT exception data
23796 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
23797 redundant Handled_By_Others component, helper for the personality
23798 routine which will now be able to call the appropriate exception data
23801 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
23802 component of Standard_Exception_Type to be the closest possible to
23803 Exception_Code in System.Standard_Library, that we cannot get at this
23804 point. Expand a ??? comment to notify that this type node should
23805 probably be rewritten later on.
23807 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
23808 registration call to include a pointer to the exception object in the
23811 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
23812 instead of int and explicit bitmasks.
23814 2004-03-15 Vincent Celier <celier@gnat.com>
23816 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
23817 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
23819 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
23820 longer needed now that it is in the spec of
23821 System.Tasking.Task_Attributes.
23823 * adaint.h, adaint.c: (__gnat_create_output_file): New function
23825 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
23827 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
23829 * make.adb (Gnatmake): Do not check the executable suffix; it is being
23830 taken care of in Scan_Make_Arg.
23831 (Scan_Make_Arg): Add the executable suffix only if the argument
23832 following -o, in canonical case, does not end with the executable
23833 suffix. When in verbose mode and executable file name does not end
23834 with executable suffix, output the executable name, in canonical case.
23836 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
23837 to avoid warnings when instantiating Ada.Task_Attributes.
23840 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
23841 in the correct order.
23843 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
23844 redirect standard output and error to a file for the invocation of the
23845 compiler, then read the file.
23847 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
23848 directory, instead of the Value.
23849 (Find_Source_Dirs): Remove useless code & comments.
23851 2004-03-15 Ed Schonberg <schonberg@gnat.com>
23853 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
23854 tagged type is inherited, and the parent operation is not frozen yet,
23855 force generation of a freeze node for the inherited operation, so the
23856 corresponding dispatch entry is properly initialized.
23857 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
23858 when looking for user-defined equality operation.
23860 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
23861 boolean when locating primitive equality of tagged component.
23863 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
23864 bit-aligned field and the right-hand side a string literal, introduce
23865 a temporary before expanding assignment into a loop.
23867 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
23868 priority in full, to ensure that any expanded subepxressions of it are
23869 elaborated in the scope of the init_proc.
23871 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
23872 after object declaration, skipping over code that may have been
23873 generated for validity checks.
23875 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
23876 discriminants, ignore the known discriminants of its full view, if
23877 any, to check legality.
23879 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
23880 component if type has unknown discriminants.
23881 (Analyze_Private_Extension_Declaration): Discriminant constraint is
23882 null if type has unknown discriminants.
23884 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
23885 for end label when present.
23887 * s-fileio.adb (Open): When called with a C_Stream, use given name for
23888 temporary file, rather than an empty string.
23890 2004-03-15 Ed Falis <falis@gnat.com>
23892 * s-thread.adb: Removed, no longer used.
23894 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23896 * decl.c (target.h): Now include.
23897 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
23898 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
23899 (validate_size): For POINTER_TYPE, get smallest size permitted on
23902 * fe.h: Sort Einfo decls and add Set_Mechanism.
23904 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
23905 (ada/decl.o): Depends on target.h.
23907 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
23908 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
23910 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
23912 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
23914 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
23915 Insert_Dereference_Action when rewriting an implicit dereference into
23916 an explicit one, this will be taken care of during expansion of the
23917 explicit dereference.
23918 (Expand_N_Slice): Same. Always do the rewriting, even for the case
23919 of non-packed slices, since the dereference action generated by
23920 expansion of the explicit dereference is needed in any case.
23921 (Expand_N_Selected_Component): When rewriting an implicit dereference,
23922 analyze and resolve the rewritten explicit dereference so it is seen
23924 (Insert_Dereference_Action): This procedure is now called only for the
23925 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
23926 dereferences that do not come from source (including explicit
23927 dereferences resulting from rewriting implicit ones), but do not
23928 recursively insert a check for the dereference nodes contained within
23930 (Insert_Dereference_Action): Clarify and correct comment.
23932 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
23935 Move language detection to the top level.
23936 * config-lang.in: Build by default.
23938 2004-03-05 Robert Dewar <dewar@gnat.com>
23940 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
23942 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
23943 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
23944 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
23945 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
23946 unchecked conversion to spec to avoid warnings.
23948 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
23951 * 7stpopsp.adb: Correct casing in To_Task_ID call
23953 * a-strsea.ads, a-strsea.adb: Minor reformatting
23955 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
23957 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
23958 Adjust Max_Msg_Length to be clearly large enough.
23960 * fe.h: Define In_Same_Source_Unit
23962 * osint.adb: Add pragma Warnings Off to suppress warnings
23963 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
23966 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
23968 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
23970 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
23972 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
23974 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
23976 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
23977 node. We now do generate them for gcc back end.
23979 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
23982 * sinput-c.adb: Fix bad name in header.
23983 Add pragma Warnings Off to suppress aliasing warning.
23985 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
23987 * snames.h, snames.ads, snames.adb: Add entry for pragma
23988 No_Strict_Aliasing.
23990 2004-03-05 Vincent Celier <celier@gnat.com>
23992 * prj-com.ads: Add hash table Files_Htable to check when a file name
23993 is already a source of another project.
23995 * prj-nmsc.adb (Record_Source): Before recording a new source, check
23996 if its file name is not already a source of another project. Report an
23999 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
24000 source file name, call gnatpp with all the sources of the main project.
24002 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
24005 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
24006 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
24007 /RUNTIME_SYSTEM=, converted to --RTS=
24008 /NOTABS, converted to -notabs
24010 2004-03-05 Pascal Obry <obry@gnat.com>
24012 * make.adb: Minor reformatting.
24014 2004-03-05 Ed Schonberg <schonberg@gnat.com>
24016 Part of implemention of AI-262.
24017 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
24019 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
24022 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
24023 when component type is a partially constrained class-wide subtype.
24024 (Constrain_Discriminated_Type): If parent type has unknown
24025 discriminants, a constraint is illegal, even if full view has
24027 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
24028 with unknown discriminants whose full view is a discriminated record.
24030 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
24031 flag, to handle properly derivations of tagged types with unknown
24033 (Analyze_Package_Spec, Analyze_Package_Body): Install
24034 Private_With_Clauses before analyzing private part or body.
24036 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
24037 Has_Discriminants can be true for a given type (documentation).
24039 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
24041 * s-restri.ads: Fix license (GPL->GMGPL).
24043 * s-tassta.adb: Minor reformatting.
24045 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
24046 by calls to Exit_One_ATC_Level, since additional clean up is performed
24049 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
24050 by calls to Exit_One_ATC_Level, since additional clean up is performed
24053 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24055 * trans.c: Reflect GCC changes to fix bootstrap problem.
24056 Add warning for suspicious aliasing unchecked conversion.
24058 2004-03-05 GNAT Script <nobody@gnat.com>
24060 * Make-lang.in: Makefile automatically updated
24062 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
24064 * ali.adb (Read_Instantiation_Instance): Do not modify the
24065 current_file_num when reading information about instantiations, since
24066 this corrupts files in later references.
24068 2004-03-02 Vincent Celier <celier@gnat.com>
24070 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
24071 before checking if it is read-only.
24073 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
24074 of SRC_DIRS and eliminate duplicates.
24076 * gprcmd.adb: Replace command "path" with command "path_sep" to return
24077 the path separator.
24078 (Usage): Document path_sep
24080 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
24081 C++ compiler. No need for a script.
24082 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
24083 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
24086 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
24087 where there are Ada sources.
24088 (Set_Ada_Paths): Only add to the include path the source dirs of project
24090 (Add_To_Path): Add the Display_Values of the directories, not their
24093 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
24096 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
24098 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
24099 Value is canonicalized.
24100 (Language_Independent_Check): Do not copy Value to Display_Value when
24101 canonicalizing Value.
24103 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
24104 path to find limited with cycles.
24105 (Parse_Single_Project): Use canonical cased path to find the end of a
24108 2004-03-02 Ed Schonberg <schonberg@gnat.com>
24110 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
24111 and not a child unit.
24113 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
24114 appear in a with_clause.
24116 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
24117 only happen in type_annotate mode, do not try to elaborate it.
24119 * exp_util.adb (Force_Evaluation): If expression is a selected
24120 component on the left of an assignment, use a renaming rather than a
24121 temporary to remove side effects.
24123 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
24124 inlined instance body, which is analyzed before the end of the
24127 2004-03-02 Robert Dewar <dewar@gnat.com>
24129 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
24130 sem_ch4.adb: Use new feature for substitution of keywords in VMS
24132 * errout.ads, errout.adb: Implement new circuit for substitution of
24135 * sem_case.adb (Analyze_Choices): Place message properly when case is
24136 a subtype reference rather than an explicit range.
24138 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
24140 2004-03-02 Doug Rupp <rupp@gnat.com>
24142 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
24144 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
24146 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
24148 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24150 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
24153 2004-02-25 Robert Dewar <dewar@gnat.com>
24155 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
24156 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
24157 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
24158 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
24159 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
24160 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
24161 the defining instance of the type to avoid aliasing problems.
24162 Fix copyright header. Fix bad comments in package header.
24164 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
24166 2004-02-25 Ed Schonberg <schonberg@gnat.com>
24168 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
24169 rewritten as references when aliased through an address clause.
24171 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
24172 whether call can be interpreted as an indirect call to the result of a
24173 parameterless function call returning an access subprogram.
24175 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
24178 * exp_ch7.adb (Make_Clean): Remove generation of calls to
24179 Unlock[_Entries], since this is now done by Service_Entries directly.
24181 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
24183 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
24184 Requeue_Call for better code readability. Change spec and update calls:
24185 PO_Service_Entries now unlock the PO on exit.
24186 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
24187 PO_Service_Entries.
24189 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
24191 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
24193 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
24195 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
24196 protected subprogram call and analyzing the result of such expanding
24197 in case when the called protected subprogram is eliminated.
24199 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
24202 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
24204 * Makefile.in: Clean ups.
24206 2004-02-23 Ed Schonberg <schonberg@gnat.com>
24208 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
24209 protected operations if original subprogram is flagged as eliminated.
24210 (Expand_N_Subprogram_Body): For a protected operation, create
24211 discriminals for next operation before checking whether the operation
24214 * exp_ch9.adb (Expand_N_Protected_Body,
24215 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
24216 for internal protected operations if the original subprogram is
24219 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
24220 declared in a single protected object.
24222 2004-02-23 Vincent Celier <celier@gnat.com>
24224 * prj-attr.adb: Make attribute Builder'Executable an associative array,
24225 case insensitive if file names are case insensitive, instead of a
24226 standard associative array.
24228 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
24229 them as case insensitive on platforms where the file names are case
24232 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
24233 project file has already been parsed that canonical path are compared.
24235 2004-02-23 Robert Dewar <dewar@gnat.com>
24237 * sinput-c.ads: Correct bad unit title in header
24239 * freeze.adb: Minor reformatting
24241 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24243 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
24244 nonaddressable COMPONENT_REF that is removing padding that we are
24245 taking the address of, take the address of the padded record instead
24246 if item is variable size.
24248 2004-02-20 Robert Dewar <dewar@gnat.com>
24250 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
24252 2004-02-20 Ed Schonberg <schonberg@gnat.com>
24254 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
24255 itype references for the constrained designated type of a component
24256 whose base type is already frozen.
24258 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
24260 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
24261 avoid GCC warnings.
24263 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
24265 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
24266 identifier for a phantom package that rewrites the formal package
24267 declaration with a box. The Add semantic decorations for the defining
24268 identifier from the original node (that represents the formal package).
24270 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
24272 * Make-lang.in (ada/stamp-sdefault): Use the top level
24275 2004-02-19 Richard Henderson <rth@redhat.com>
24277 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
24279 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
24281 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
24282 Scan_ALI can be used for multiple ALI files without reinitializing
24285 2004-02-18 Robert Dewar <dewar@gnat.com>
24287 * debug.adb: Minor reformatting.
24289 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24291 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
24292 to zero if there is an address clause.
24294 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
24296 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
24298 2004-02-18 Gary Dismukes <dismukes@gnat.com>
24300 * layout.adb (Layout_Component_List): Revise generation of call to
24301 discriminant-checking function to pass selections of all of the type's
24302 discriminants rather than just the variant-controlling discriminant.
24304 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
24306 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
24307 fail in the current setup and triggers spurious system error messages.
24308 Pretend it occurred and failed instead.
24310 2004-02-18 Vincent Celier <celier@gnat.com>
24312 * bld.adb: Mark FLDFLAGS as saved
24313 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
24314 it is not the root project. Put each directory to be
24315 extended between double quotes to prevent it to be expanded on Windows.
24316 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
24317 the project file. Set them back to their initial values if they have not
24318 been set in the project file.
24320 * gprcmd.adb: (Gprdebug, Debug): New global variables
24321 (Display_Command): New procedure
24322 (Usage): Document new command "linkopts"
24323 Call Display_Command when env var GPRDEBUG has the value "TRUE"
24324 Implement new command "linkopts"
24325 Remove quotes that may be around arguments for "extend"
24326 Always call Normalize_Pathname with arguments formatted for the platform
24328 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
24329 Change @echo to @$(display) in target clean to be able to clean silently
24331 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
24333 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
24336 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
24337 = Extending_All when current project is an extending all project.
24339 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
24340 set to True only for LINK command, after Unix switch -o.
24341 (Process_Arguments): Set Output_File_Expected to True for LINK command
24342 after Unix switch -o. When Output_File_Expected is True, never add an
24343 extension to a file name.
24345 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
24346 option file name, only to the --for-linker= switch.
24347 (Option_File_Name): If option file name do not end with ".opt", append
24350 2004-02-18 GNAT Script <nobody@gnat.com>
24352 * Make-lang.in: Makefile automatically updated
24354 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
24356 * Make-lang.in (stamp-sdefault): Do not depend on
24359 2004-02-12 Zack Weinberg <zack@codesourcery.com>
24361 * config-lang.in: Disable Ada by default until probe logic for
24362 a bootstrap Ada compiler can be moved to the top level configure
24365 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
24367 * decl.c (components_to_record): Don't claim that the internal fields
24368 we make to hold the variant parts are semantically addressable, because
24371 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
24372 adjust the comment describing the modular type form when we can use it.
24373 (Install_PAT): Account for the Esiz renaming.
24375 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
24376 sc_onstack context indication before raising the exception to which
24377 the signal is mapped. Allows better handling of later signals possibly
24378 triggered by the resumed user code if the exception is handled.
24380 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
24382 * 5zinit.adb: Removed, no longer used.
24384 2004-02-12 Robert Dewar <dewar@gnat.com>
24386 * ali.adb: Remove separating space between parameters on R line. Makes
24387 format consistent with format used by the binder for Set_Globals call.
24389 * atree.ads, atree.adb: Minor reformatting (new function header format)
24391 * bindgen.adb: Add Run-Time Globals documentation section containing
24392 detailed documentation of the globals passed from the binder file to
24395 * gnatls.adb: Minor reformatting
24397 * init.c (__gnat_set_globals): Add note pointing to documentation in
24400 * lib-writ.ads, lib-writ.adb: Remove separating space between
24401 parameters on R line.
24402 Makes format consistent with format used by the binder for Set_Globals
24405 * osint.ads: Add 2004 to copyright notice
24408 * snames.ads: Correct capitalization of FIFO_Within_Priorities
24409 Noticed during code reading, documentation issue only
24411 * usage.adb: Remove junk line for obsolete C switch
24412 Noticed during code reading
24414 2004-02-12 Vincent Celier <celier@gnat.com>
24416 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
24417 extend for each directory, so that multiple /** directories are
24418 extended individually.
24419 (Recursive_Process): Set the default for LANGUAGES to ada
24421 * gprcmd.adb: Define new command "ignore", to do nothing.
24422 Implement new comment "path".
24424 * Makefile.generic: Suppress output when SILENT is set
24425 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
24426 used, so that the correct compiler is invoked.
24427 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
24428 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
24430 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
24432 * Makefile.in: Clean ups and remove obsolete targets.
24434 2004-02-12 Ed Schonberg <schonberg@gnat.com>
24436 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
24437 predicate declared in exp_util.
24439 * exp_util.adb: Add comments.
24441 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
24442 visibility before compiling context of the subunit.
24444 * sem_res.adb (Check_Parameterless_Call): If the context expects a
24445 value but the name is a procedure, do not attempt to analyze as a call,
24446 in order to obtain more telling diagnostics.
24448 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
24449 'Access on parameterless function calls.
24450 (Normalize_Actuals): For a parameterless function call with missing
24451 actuals, defer diagnostic until resolution of enclosing call.
24453 * sem_util.adb (Wrong_Type): If the context type is an access to
24454 subprogram and the expression is a procedure name, suggest a missing
24457 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
24458 Nathanael Nerode <neroden@gcc.gnu.org>
24462 Merge with libada-branch:
24463 * config-lang.in: Build libada only when ada is built.
24465 2004-02-09 Ed Schonberg <schonberg@gnat.com>
24467 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
24468 for a tagged type, verify that both formals have the same type.
24470 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
24471 temporary when the formal is an in-parameter and the actual a possibly
24474 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
24475 when expansion is disabled, to ensure proper name capture with
24476 overloaded literals. Condition can be of any boolean type, resolve
24479 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
24480 renaming is for a formal subprogram with a default operator name, and
24481 there is a usable operator that is visible at the point of
24484 2004-02-09 Robert Dewar <dewar@gnat.com>
24486 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
24487 rewrite to ignore errors in ali files, intended to allow tools downward
24488 compatibility with new versions of ali files.
24490 * ali.ads: Add new parameter Ignore_Errors
24492 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
24493 duplicating the error message giving the file with restrictions.
24495 * debug.adb: Add debug flag I for gnatbind
24497 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
24498 operators for the case where the operator is a defining operator.
24500 * exp_ch3.adb: Minor reformatting (new function spec format).
24502 * exp_ch4.adb: Add comment for previous change, and make minor
24503 adjustment to loop to always check for improper loop termination.
24504 Minor reformatting throughout (new function spec format).
24506 * gnatbind.adb: Implement -di debug flag for gnatbind
24508 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
24510 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
24512 * lib-load.adb: Fix bad assertion.
24513 Found by testing and code reading.
24514 Minor reformatting.
24516 * lib-load.ads: Minor reformatting.
24518 * lib-writ.adb: There is only one R line now.
24520 * lib-writ.ads: Add documentation on making downward compatible changes
24521 to ali files so old tools work with new ali files.
24522 There is only one R line now.
24523 Add documentation on format incompatibilities (with special GPS note)
24525 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
24527 * par-load.adb: Minor reformatting
24529 * sem_ch8.adb: Fix to error message from last update
24530 Minor reformatting and restructuring of code from last update
24532 * par-prag.adb, snames.adb, snames.ads, snames.h,
24533 sem_prag.adb: Implement pragma Profile.
24535 * stylesw.adb: Implement -gnatyN switch to turn off all style check
24538 * usage.adb: Add line for -gnatyN switch
24540 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
24542 2004-02-09 Albert Lee <lee@gnat.com>
24544 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
24546 2004-02-09 Ed Schonberg <schonberg@gnat.com>
24548 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
24551 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
24552 is nested in an instance that is not frozen yet, to avoid
24553 order-of-elaboration problems in gigi.
24555 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
24556 body the attribute is legal.
24558 2004-02-09 Robert Dewar <dewar@gnat.com>
24560 * s-rident.ads: Minor comment correction
24562 * targparm.adb: Remove dependence on uintp completely. There was
24563 always a bug in Make in that it called Targparm before initializing
24564 the Uint package. The old code appeared to get away with this, but
24565 the new code did not! This caused an assertion error in gnatmake.
24567 * targparm.ads: Fix bad comment, restriction pragmas with parameters
24568 are indeed fully supported.
24570 2004-02-06 Alan Modra <amodra@bigpond.net.au>
24572 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
24574 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
24576 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
24577 with targetm.calls.promote_prototypes.
24579 2004-02-04 Robert Dewar <dewar@gnat.com>
24581 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
24582 ali.ads, gprcmd.adb: Minor reformatting
24584 * bindgen.adb: Output restrictions string for new style restrictions
24587 * impunit.adb: Add s-rident.ads (System.Rident) and
24588 s-restri (System.Restrictions)
24590 * lib-writ.adb: Fix bug in writing restrictions string (last few
24593 * s-restri.ads, s-restri.adb: Change name Restrictions to
24594 Run_Time_Restrictions to avoid conflict with package name.
24595 Add circuit to read and acquire run time restrictions.
24597 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
24599 * restrict.ads, restrict.adb: Use the new restriction
24600 No_Task_Attributes_Package instead of the old No_Task_Attributes.
24602 * sem_prag.adb: No_Task_Attributes is a synonym of
24603 No_Task_Attributes_Package.
24605 * snames.ads, snames.adb: New entry for proper handling of
24606 No_Task_Attributes.
24608 * s-rident.ads: Adding restriction No_Task_Attributes_Package
24609 (AI-00249) that supersedes the GNAT specific restriction
24610 No_Task_Attributes.
24612 2004-02-04 Ed Schonberg <schonberg@gnat.com>
24615 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
24616 body, an identifier may be wrapped in an unchecked conversion.
24618 2004-02-04 Vincent Celier <celier@gnat.com>
24620 * lib-writ.ads: Comment update for the W lines
24622 * bld.adb: (Expression): An empty string list is static
24624 * fname-uf.adb: Minor comment update
24626 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
24628 * gnatbind.adb: Initialize Cumulative_Restrictions with the
24629 restrictions on the target.
24631 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
24633 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
24636 2004-02-02 Arnaud Charlet <charlet@gnat.com>
24638 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
24640 2004-02-02 Vincent Celier <celier@gnat.com>
24642 * gprcmd.adb (Check_Args): If condition is false, print the invoked
24643 comment before the usage.
24644 Gprcmd: Fail when command is not recognized.
24645 (Usage): Document command "prefix"
24647 * g-md5.adb (Digest): Process last block.
24648 (Update): Do not process last block. Store remaining characters and
24651 * g-md5.ads (Update): Document that several call to update are
24652 equivalent to one call with the concatenated string.
24653 (Context): Add fields to allow new Update behaviour.
24655 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
24656 defaulted to False.
24657 When May_Fail is True and no existing file can be found, return No_File.
24659 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
24662 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
24663 spec file name instead on the W line.
24665 2004-02-02 Robert Dewar <dewar@gnat.com>
24667 * ali.adb: Read and acquire info from new format restrictions lines
24669 * bcheck.adb: Add circuits for checking restrictions with parameters
24671 * bindgen.adb: Output dummy restrictions data
24672 To be changed later
24674 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
24675 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
24676 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
24677 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
24678 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
24680 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
24681 the warning message on access to possibly uninitialized variable S)
24682 Minor changes for new restrictions handling.
24684 * gnatbind.adb: Minor reformatting
24685 Minor changes for new restrictions handling
24686 Move circuit for -r processing here from bcheck (cleaner)
24688 * gnatcmd.adb, gnatlink.adb: Minor reformatting
24690 * lib-writ.adb: Output new format restrictions lines
24692 * lib-writ.ads: Document new R format lines for new restrictions
24695 * s-restri.ads/adb: New files
24697 * Makefile.rtl: Add entry for s-restri.ads/adb
24699 * par-ch3.adb: Fix bad error messages starting with upper case letter
24702 * restrict.adb: Major rewrite throughout for new restrictions handling
24703 Major point is to handle restrictions with parameters
24705 * restrict.ads: Major changes in interface to handle restrictions with
24706 parameters. Also generally simplifies setting of restrictions.
24708 * snames.ads/adb: New entry for proper handling of No_Requeue
24710 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
24711 restriction counting.
24712 Other minor changes for new restrictions handling
24714 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
24715 Restriction_Warnings now allows full parameter notation
24716 Major rewrite of Restrictions for new restrictions handling
24718 2004-02-02 Javier Miranda <miranda@gnat.com>
24720 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
24721 syntax rule for object renaming declarations.
24722 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
24723 component definitions.
24725 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
24727 (Array_Type_Declaration): Give support to access components. In addition
24728 it was also modified to reflect the name of the object in anonymous
24729 array types. The old code did not take into account that it is possible
24730 to have an unconstrained anonymous array with an initial value.
24731 (Check_Or_Process_Discriminants): Allow access discriminant in
24733 (Process_Discriminants): Allow access discriminant in non-limited types
24734 Initialize the new Access_Definition field in N_Object_Renaming_Decl
24735 node. Change Ada0Y to Ada 0Y in comments
24737 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
24738 equality operators.
24739 Change Ada0Y to Ada 0Y in comments
24741 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
24742 renamings Change Ada0Y to Ada 0Y in comments
24744 * sem_type.adb (Find_Unique_Type): Give support to the equality
24745 operators for universal access types
24746 Change Ada0Y to Ada 0Y in comments
24748 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
24750 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
24752 (N_Object_Renaming_Declaration): Addition of Access_Definition field
24753 Change Ada0Y to Ada 0Y in comments
24755 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
24756 component definition and object renaming nodes
24757 Change Ada0Y to Ada 0Y in comments
24759 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
24761 * restrict.adb: Use the new restriction identifier
24762 No_Requeue_Statements instead of the old No_Requeue for defining the
24763 restricted profile.
24765 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
24766 No_Requeue_Statements.
24768 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
24769 that supersedes the GNAT specific restriction No_Requeue. The later is
24770 kept for backward compatibility.
24772 2004-02-02 Ed Schonberg <schonberg@gnat.com>
24774 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
24775 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
24776 pragma and fix incorrect ones.
24778 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
24779 warning if the pragma is redundant.
24781 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
24783 * 5staprop.adb: Add missing 'constant' keywords.
24785 * Makefile.in: use consistent value for SYMLIB on
24786 platforms where libaddr2line is supported.
24788 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24790 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
24793 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
24795 * init.c (__gnat_install_handler): Setup an alternate stack for signal
24796 handlers in the environment thread. This allows proper propagation of
24797 an exception on stack overflows in this thread even when the builtin
24798 ABI stack-checking scheme is used without support for a stack reserve
24801 * utils.c (create_field_decl): Augment the head comment about bitfield
24802 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
24803 here, because the former is not accurate enough at this point.
24804 Let finish_record_type decide instead.
24805 Don't make a bitfield if the field is to be addressable.
24806 Always set a size for the field if the record is packed, to ensure the
24807 checks for bitfield creation are triggered.
24808 (finish_record_type): During last pass over the fields, clear
24809 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
24810 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
24811 from DECL_BIT_FIELD.
24813 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
24815 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
24816 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
24817 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
24819 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24821 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
24823 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
24824 (ZCX_By_Default): Likewise.
24825 (Front_End_ZCX_Support): Likewise.
24827 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
24828 (Initialize_Lock): Mark Level unreferenced.
24829 (Sleep): Mark Reason unreferenced.
24830 (Timed_Sleep): Likewise.
24831 (Wakeup): Likewise.
24832 (Exit_Task): Use Result.
24833 (Check_No_Locks): Mark Self_ID unreferenced.
24835 * 5gtasinf.adb (New_Sproc): Make Attr constant.
24836 (Bound_Thread_Attributes): Make Sproc constant.
24837 (New_Bound_Thread_Attributes): Likewise.
24839 2004-01-26 Ed Schonberg <schonberg@gnat.com>
24841 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
24842 one-dimensional array an slice assignments, when component type is
24845 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
24846 component type is controlled, and control_actions are in effect, use
24847 TSS procedure rather than generating inline code.
24849 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
24850 arrays with controlled components.
24852 2004-01-26 Vincent Celier <celier@gnat.com>
24854 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
24855 command line for the non VMS case.
24857 * gnatlink.adb (Process_Binder_File): When building object file, if
24858 GNU linker is used, put all object paths between quotes, to prevent ld
24859 error when there are unusual characters (such as '!') in the paths.
24861 * Makefile.generic: When there are sources in Ada and the main is in
24862 C/C++, invoke gnatmake with -B, instead of -z.
24864 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
24865 from VMS_Conversion.
24866 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
24867 specification of argument file on the command line.
24869 2004-01-26 Bernard Banner <banner@gnat.com>
24871 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
24873 2004-01-26 Ed Schonberg <schonberg@gnat.com>
24875 * snames.adb: Update copyright notice.
24876 Add info on slice assignment for controlled arrays.
24878 2004-01-23 Robert Dewar <dewar@gnat.com>
24880 * exp_aggr.adb: Minor reformatting
24882 * exp_ch9.adb: Minor code clean up
24884 Fix bad character in comment
24887 * targparm.adb (Get_Target_Parameters): Give clean abort error on
24888 unexpected end of file, along with more detailed message.
24890 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24892 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
24895 * decl.c (copy_alias_set): New function.
24896 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
24898 2004-01-23 Doug Rupp <rupp@gnat.com>
24900 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
24901 lib$${file} in case subsequent character is not a separator.
24903 2004-01-23 Vincent Celier <celier@gnat.com>
24905 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
24906 when the GCC version is at least 3.
24908 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
24909 Remove all "Opt.", to prepare for opt split
24911 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
24912 Extends_All. Set to True when the project parsed is an extending all
24913 project. Fails for importing an extending all project only when the
24914 imported project is an extending all project.
24915 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
24916 depending on the value of Extends_All returned.
24918 * prj-proc.adb (Process): Check that no project shares its object
24919 directory with a project that extends it, directly or indirectly,
24920 including a virtual project.
24921 Check that no project extended by another project shares its object
24922 directory with another also extended project.
24924 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
24925 Kind = N_With_Clause
24927 * prj-tree.ads: Minor reformatting
24928 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
24930 2004-01-23 Ed Schonberg <schonberg@gnat.com>
24932 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
24933 applies to a type with an incomplete view, use full view in Name of
24934 clause, for consistency with uses of Get_Attribute_Definition_Clause.
24936 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
24938 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
24939 SCHED_RR, since other values are not supported by this policy.
24940 (Initialize): Move initialization of mutex attribute to package
24941 elaboration, to prevent early access to this variable.
24943 * Makefile.in: Remove mention of Makefile.adalib, unused.
24945 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
24946 1ssecsta.ads: Removed, unused.
24948 2004-01-21 Javier Miranda <miranda@gnat.com>
24950 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
24951 entity if already built in the current scope.
24953 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
24954 reminder in internal scopes. Required for nested limited aggregates.
24956 2004-01-21 Doug Rupp <rupp@gnat.com>
24958 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
24959 VMS. Replace all occurences of libgnat- and libgnarl- with
24960 libgnat$(hyphen) and libgnarl$(hyphen).
24961 Fixed shared library build problem on VMS.
24963 2004-01-21 Robert Dewar <dewar@gnat.com>
24965 * mlib-prj.adb: Minor reformatting
24967 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
24969 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
24970 'constant' keywords for declaration of pointers that are not modified.
24972 * exp_pakd.adb: Fix English in comment.
24974 2004-01-21 Ed Schonberg <schonberg@gnat.com>
24977 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
24978 copy all attributes of the parent, including the foreign language
24981 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
24984 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
24985 for 'delay until' statement.
24987 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
24989 * Make-lang.in: Replace $(docdir) with doc.
24990 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
24991 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
24992 to use consistent MAKEINFO rule.
24993 (ada.man, ada.srcman): Dummy entry.
24994 (ADA_INFOFILES): Define.
24995 (ada.info, ada.srcinfo): New rules.
24997 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
24999 * utils.c: Update copyright notice, missed in previous change.
25001 2004-01-19 Vincent Celier <celier@gnat.com>
25003 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
25004 args if Bind is True. Set First_ALI, if not already done.
25005 (Build_Library): For Stand Alone Libraries, extract from one ALI file
25006 an eventual --RTS switch, for gnatbind, and all backend switches +
25007 --RTS, for linking.
25009 2004-01-19 Robert Dewar <dewar@gnat.com>
25011 * sem_attr.adb, memtrack.adb: Minor reformatting
25013 2004-01-19 Ed Schonberg <schonberg@gnat.com>
25015 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
25016 that rename enumeration literals. This is properly done in sem_eval.
25018 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
25019 to functions that rename enumeration literals.
25021 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
25022 functions that rename enumeration literals.
25024 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
25026 * Make-lang.in (utils.o): Depend on target.h.
25027 * utils.c: Include target.h.
25028 (process_attributes): Use targetm.have_named_sections instead
25029 of ASM_OUTPUT_SECTION_NAME.
25031 2004-01-16 Andreas Jaeger <aj@suse.de>
25033 * Makefile.in: Add $(DESTDIR).
25035 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
25037 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
25038 also when not defining if a Size clause applies. That information is
25041 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
25043 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
25044 symbolic links for the shared gnat run time when needed.
25046 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
25048 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
25049 for writing, and terminate with an error message if not.
25051 2004-01-15 Ed Schonberg <schonberg@gnat.com>
25053 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
25054 warning on an access to subprogram in an instance, when the target
25055 type is declared in the same generic unit.
25056 (Eval_Attribute): If 'access is known to fail accessibility check,
25057 rewrite as a raise statement.
25059 2004-01-15 GNAT Script <nobody@gnat.com>
25061 * Make-lang.in: Makefile automatically updated
25063 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
25065 * Make-lang.in (ada.srcextra): Dummy entry.
25067 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
25069 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
25071 2004-01-13 Ed Schonberg <schonberg@gnat.com>
25073 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
25074 components that are initialized with aggregates.
25076 2004-01-13 Vincent Celier <celier@gnat.com>
25078 * gnatlink.adb (Process_Binder_File): To find directory of shared
25079 libgcc, if "gcc-lib" is not a subdirectory, look for the last
25080 subdirectory "lib" in the path of the shared libgnat or libgnarl.
25082 * make.adb (Gnatmake): If GCC version is at least 3, link with
25083 -shared-libgcc, when there is at least one shared library project.
25085 * opt.ads (GCC_Version): New integer constant.
25087 * adaint.c (get_gcc_version): New function.
25089 2004-01-13 Robert Dewar <dewar@gnat.com>
25091 * sem_dist.adb, sem_res.adb, sem_util.adb,
25092 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
25093 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
25095 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
25097 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
25098 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
25101 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
25103 * misc.c: Remove trailing spaces.
25104 Update copyright notice missed in previous change.
25107 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
25110 * Makefile.generic: Update copyright.
25111 Add license notice.
25113 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
25114 of prefix/share/make.
25116 * Makefile.prolog: Update copyright.
25117 Add license notice.
25119 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
25121 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
25122 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
25123 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
25126 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
25129 2004-01-12 Javier Miranda <miranda@gnat.com>
25131 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
25132 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
25133 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
25134 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
25135 Component_Definition node.
25137 2004-01-12 Ed Falis <falis@gnat.com>
25139 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
25141 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
25143 * link.c: Change default libgnat kind to STATIC for FreeBSD.
25145 2004-01-12 Bernard Banner <banner@gnat.com>
25147 * Makefile.in: map 86numaux to a-numaux for x86_64
25149 2004-01-12 Ed Schonberg <schonberg@gnat.com>
25151 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
25152 generated to rename a generic actual, go to the actual itself, the
25153 subtype is not a user-visible entity.
25155 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
25156 part is a private subtype, reset the visibility of its full view, if
25157 any, to be consistent.
25160 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
25161 to use a generic package G as a formal package for another generic
25164 2004-01-12 Robert Dewar <dewar@gnat.com>
25166 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
25168 * usage.adb: Remove mention of obsolete -gnatwb switch
25169 Noticed during code reading
25171 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
25173 * 1ssecsta.adb: Minor changes for -gnatwa warnings
25175 2004-01-12 GNAT Script <nobody@gnat.com>
25177 * Make-lang.in: Makefile automatically updated
25179 2004-01-09 Mark Mitchell <mark@codesourcery.com>
25181 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
25183 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
25185 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
25187 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
25189 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
25190 Update comment and copyright date.
25191 * stamp-xgnatug: Delete.
25193 2004-01-05 Robert Dewar <dewar@gnat.com>
25195 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
25196 be modified by the binder generated main program if the -D switch is
25199 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
25200 imported functions (since now we expect this to be done for imported
25203 * 5vtaprop.adb: Add several ??? for sections requiring more comments
25204 Minor reformatting throughout
25206 * 5zinit.adb: Minor reformatting
25207 Add 2004 to copyright date
25208 Minor changes to avoid -gnatwa warnings
25209 Correct some instances of using OR instead of OR ELSE (noted while
25210 doing reformatting)
25212 * sprint.adb: Minor updates to avoid -gnatwa warnings
25214 * s-secsta.ads, s-secsta.adb:
25215 (SS_Get_Max): New function to obtain high water mark for ss stack
25216 Default_Secondary_Stack is not a constant since it may be modified by
25217 the binder generated main program if the -D switch is used.
25219 * switch-b.adb: New -Dnnn switch for binder
25222 Make -gnatg imply all warnings currently in -gnatwa
25224 * vms_conv.adb: Minor reformatting
25225 Add 2004 to copyright notice
25226 Add 2004 to printed copyright notice
25228 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
25229 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
25230 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
25231 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
25232 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
25233 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
25234 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
25235 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
25236 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
25237 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
25238 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
25239 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
25240 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
25241 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
25242 checks.adb, clean.adb, cstand.adb, einfo.ads,
25243 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
25244 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
25245 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
25246 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
25247 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
25248 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
25249 Minor reformatting and code clean ups.
25250 Minor changes to prevent -gnatwa warnings
25252 * ali.adb: Minor reformatting and cleanup of code
25253 Acquire new SS indication of secondary stack use from ali files
25255 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
25256 (since now we expect this to be done for imported functions)
25258 * bindgen.adb: Generate call to modify default secondary stack size if
25261 * bindusg.adb: Add line for new -D switch
25263 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
25264 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
25265 Add circuitry for both records and arrays to avoid gigi
25266 processing if the type involved has non-bit-aligned components
25268 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
25269 N_String_Literal node always references an E_String_Literal_Subtype
25270 entity. This may not be true in the future.
25271 (Possible_Bit_Aligned_Component): Move processing of
25272 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
25274 * exp_ch6.adb (Expand_Thread_Body): Pick up
25275 Default_Secondary_Stack_Size as variable so that we get value modified
25276 by possible -Dnnn binder parameter.
25278 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
25279 (Type_May_Have_Bit_Aligned_Components): New function.
25281 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
25282 (Type_May_Have_Bit_Aligned_Components): New function.
25284 * fe.h: (Set_Identifier_Casing): Fix prototype.
25285 Add declaration for Sem_Elim.Eliminate_Error_Msg.
25286 Minor reformatting.
25288 * freeze.adb (Freeze_Entity): Add RM reference to error message about
25289 importing constant atomic/volatile objects.
25290 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
25291 unless explicit Pure_Function pragma given, to avoid insidious bug of
25292 call to non-pure imported function getting eliminated.
25294 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
25295 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
25296 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
25297 Add 2004 to printed copyright notice
25299 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
25302 * Makefile.rtl: Add entry for g-sestin.o
25303 g-sestin.ads: New file.
25305 * mdll.adb: Minor changes to avoid -gnatwa warnings
25307 * mlib-tgt.adb: Minor reformatting
25309 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
25310 New switch Sec_Stack_Used (GNAT, GNATBIND)
25311 Make Default_Secondary_Stack_Size a variable instead of a constant,
25312 so that it can be modified by the new -Dnnn bind switch.
25314 * rtsfind.adb (Load_Fail): Give full error message in configurable
25315 run-time mode if all_errors mode is set. This was not done in the case
25316 of a file not found, which was an oversight.
25317 Note if secondary stack unit is used by compiler.
25319 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
25320 ineffective elaborate all pragmas on non-visible packages (this
25321 happened when a renamed subprogram was called). Now the elaborate all
25322 always goes on the package containing the renaming rather than the one
25323 containing the renamed subprogram.
25325 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
25326 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
25328 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
25329 has an Etype that references an E_String_Literal.
25330 (Eval_String_Literal): Avoid assumption that N_String_Literal node
25331 always references an E_String_Literal_Subtype entity. This may not
25332 be true in the future.
25334 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
25337 * sem_res.adb (Resolve): Specialize msg for function name used in proc
25340 2004-01-05 Ed Falis <falis@gnat.com>
25342 * g-debuti.adb: Replaced direct boolean operator with short-circuit
25345 2004-01-05 Vincent Celier <celier@gnat.com>
25347 * bld.adb: Minor comment updates
25348 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
25351 * make.adb (Gnatmake): Special process for files to compile/check when
25352 -B is specified. Fail when there are only foreign mains in attribute
25353 Main of the project file and -B is not specified. Do not skip bind/link
25354 steps when -B is specified.
25356 * makeusg.adb: Document new switch -B
25358 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
25360 * switch-m.adb: (Scan_Make_Switches): Process -B switch
25362 * vms_data.ads: Add new GNAT PRETTY qualifier
25363 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
25365 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25367 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
25370 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
25371 Set_Identifier_Casing.
25373 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
25374 has size that overflows.
25376 2004-01-05 Gary Dismukes <dismukes@gnat.com>
25378 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
25379 -gnatwa warning on static condition.
25381 2004-01-05 Doug Rupp <rupp@gnat.com>
25383 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
25385 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
25387 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
25388 all attributes, including read-only attribute.
25390 2004-01-05 Pascal Obry <obry@gnat.com>
25392 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
25393 library naming scheme.
25395 * mlib-prj.adb (Build_Library): Generate different names for the static
25396 or dynamic version of the GNAT runtime. This is needed to support the
25397 new shared library naming scheme.
25398 (Process_Binder_File): Add detection of shared library in binder file
25399 based on the new naming scheme.
25401 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
25402 scheme for the shared runtime libraries.
25405 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
25407 (install-gnatlib): Do not create symlinks for shared libraries.
25408 (gnatlib-shared-default): Idem.
25409 (gnatlib-shared-dual-win32): New target. Not used for now as the
25410 auto-import feature does not support arrays/records.
25411 (gnatlib-shared-win32): Do not create copy for the shared libraries.
25412 (gnatlib-shared-vms): Fix shared runtime libraries names.
25414 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
25415 dependent runtime shared library name.
25417 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
25419 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
25422 2004-01-05 Ed Schonberg <schonberg@gnat.com>
25424 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
25425 protected objects when allocator has a subtype indication, not a
25426 qualified expression. Note that qualified expressions may have to be
25427 checked when limited aggregates are implemented.
25429 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
25430 pure, emit warning.
25431 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
25432 subprogram is imported, remove warning.
25434 2004-01-05 Geert Bosch <bosch@gnat.com>
25436 * s-poosiz.adb: Update copyright notice.
25437 (Allocate): Use Task_Lock to protect against concurrent access.
25438 (Deallocate): Likewise.
25440 2004-01-05 Joel Brobecker <brobecker@gnat.com>
25442 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
25445 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
25447 * gnat_ug.texi: Force a CVS commit by updating copyright.
25448 * gnat_ug_vxw.texi: Regenerate.
25449 * gnat_ug_wnt.texi: Regenerate.
25450 * gnat_ug_vms.texi: Regenerate.
25451 * gnat_ug_unx.texi: Regenerate.
25453 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
25455 * trans.c: Remove uses of "register" specifier in
25456 declarations of local variables.
25458 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
25460 * stamp-xgnatug: New stamp file.
25461 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
25462 (ada/doctools/xgnatug): Add $(build_exeext).
25463 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
25464 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
25466 2003-12-17 Ed Falis <falis@gnat.com>
25468 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
25471 * a-exextr.adb: Add context clause for
25472 Ada.Exceptions.Last_Chance_Handler.
25474 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
25476 * cstand.adb (Create_Standard): Change the way how the declaration of
25477 the Duration type is created (making it the same way as it is for all
25478 the other standard types).
25480 2003-12-17 Robert Dewar <dewar@gnat.com>
25482 * s-crtl.ads: Fix header format
25483 Change Pure to Preelaborate
25485 2003-12-17 Ed Schonberg <schonberg@gnat.com>
25487 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
25488 the expression type only if it is declared in the current unit.
25490 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
25491 are universal and already analyzed, as can occur in constrained
25492 subcomponents that depend on discriminants, when one constraint is a
25495 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
25496 type Any_Fixed is legal as the argument of a conversion, if only one
25497 fixed-point type is in context.
25499 2003-12-17 GNAT Script <nobody@gnat.com>
25501 * Make-lang.in: Makefile automatically updated
25503 2003-12-15 Robert Dewar <dewar@gnat.com>
25505 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
25508 2003-12-15 Vincent Celier <celier@gnat.com>
25510 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
25511 (Gnatchop): Do not set failure status when reporting the number of
25514 2003-12-15 Doug Rupp <rupp@gnat.com>
25516 * s-ctrl.ads: New file.
25518 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
25520 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
25521 (GNATBIND_OBJS): Add ada/s-crtl.o.
25523 * Makefile.in [VMS]: Clean up ifeq rules.
25525 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
25526 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
25527 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
25528 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
25529 s-tasdeb.adb: Update copyright.
25530 Import System.CRTL.
25531 Make minor modifications to use System.CRTL declared functions instead
25532 of importing locally.
25534 2003-12-15 GNAT Script <nobody@gnat.com>
25536 * Make-lang.in: Makefile automatically updated
25538 2003-12-11 Ed Falis <falis@gnat.com>
25540 * 5zinit.adb: Clean up.
25542 * 5zintman.adb (Notify_Exception): replaced case statement with a call
25543 to __gnat_map_signal, imported from init.c to support
25544 signal -> exception mappings that depend on the vxWorks version.
25547 Created and exported __gnat_map_signal to support signal -> exception
25548 mapping that is dependent on the VxWorks version.
25549 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
25551 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
25553 * 5wosinte.ads: Link with -mthreads switch.
25555 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
25557 * init.c (__gnat_install_handler [NetBSD]): Set
25558 __gnat_handler_installed, as done on all other platforms.
25559 Remove duplicated code.
25561 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
25563 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
25565 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
25567 * sinfo.ads: Fix inconsistent example code in comment.
25569 2003-12-11 Robert Dewar <dewar@gnat.com>
25571 * a-tiinau.adb: Add a couple of comments
25573 * sem_ch3.adb: Minor reformatting
25576 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
25577 Minor reformatting throughout
25579 2003-12-11 Ed Schonberg <schonberg@gnat.com>
25581 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
25582 bounds of a loop, create a separate block in order to generate proper
25583 cleanup actions to prevent memory leaks.
25585 * sem_res.adb (Resolve_Call): After a call to
25586 Establish_Transient_Scope, the call may be rewritten and relocated, in
25587 which case no further processing is needed.
25589 * sem_util.adb: (Wrong_Type): Refine previous fix.
25590 Fixes ACATS regressions.
25593 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
25596 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
25598 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
25599 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
25602 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
25605 2003-12-08 Robert Dewar <dewar@gnat.com>
25607 * 7sintman.adb: Minor reformatting
25609 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
25610 standard linker options to get standard libraries linked. We now plan
25611 to provide dummy versions of these libraries to match the appropriate
25612 configurable run-time (e.g. if a library is not needed at all, provide
25613 a dummy empty library).
25615 * targparm.ads: Configurable_Run_Time mode no longer affects linker
25616 options (-L parameters and standard libraries). What we plan to do is
25617 to provide dummy libraries where the libraries are not required.
25619 * gnatbind.adb: Minor comment improvement
25621 2003-12-08 Javier Miranda <miranda@gnat.com>
25623 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
25624 aggregate in the parent. Otherwise constants with limited aggregates
25625 are not supported. Add new formal to pass the component type (Ctype).
25626 It is required to call the corresponding IP subprogram in case of
25627 default initialized components.
25628 (Gen_Assign): In case of default-initialized component, generate a
25629 call to the IP subprogram associated with the component.
25630 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
25631 of aggregate with default initialized components.
25632 (Has_Default_Init_Comps): Improve implementation to recursively check
25633 all the present expressions.
25635 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
25636 to indicate that the initialization call corresponds to a
25637 default-initialized component of an aggregate.
25638 In case of default initialized aggregate with tasks this parameter is
25639 used to generate a null string (this is just a workaround that must be
25640 improved later). In case of discriminants, this parameter is used to
25641 generate a selected component node that gives access to the discriminant
25644 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
25645 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
25646 allocated aggregates with default-initialized components.
25648 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
25649 the box notation is used in positional aggregates.
25651 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
25653 * lib.ads: Fix typo in comment
25655 2003-12-08 Vincent Celier <celier@gnat.com>
25657 * prj.adb (Project_Empty): New component Unkept_Comments
25658 (Scan): Remove procedure; moved to Prj.Err.
25660 * prj.ads (Project_Data): New Boolean component Unkept_Comments
25661 (Scan): Remove procedure; moved to Prj.Err.
25663 * prj-dect.adb: Manage comments for the different declarations.
25665 * prj-part.adb (With_Record): New component Node
25666 (Parse): New Boolean parameter Store_Comments, defaulted to False.
25667 Set the scanner to return ends of line and comments as tokens, if
25668 Store_Comments is True.
25669 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
25670 comments are associated with these nodes. Store the node IDs in the
25672 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
25674 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
25675 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
25676 current project. Call Tree.Restore afterwards. Set the various nodes
25677 for comment storage (Next_End, End_Of_Line, Previous_Line,
25680 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
25681 defaulted to False.
25683 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
25684 to False. When Truncated is True, truncate the string, never go to the
25686 (Write_End_Of_Line_Comment): New procedure
25687 (Print): Process comments for nodes N_With_Clause,
25688 N_Package_Declaration, N_String_Type_Declaration,
25689 N_Attribute_Declaration, N_Typed_Variable_Declaration,
25690 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
25691 Process nodes N_Comment.
25693 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
25694 without comments and there are some comments, set the flag
25695 Unkept_Comments to True.
25696 (Scan): If there are comments, set the flag Unkept_Comments to True and
25697 clear the comments.
25698 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
25699 (Next_End_Nodes: New table
25700 (Comment_Zones_Of): New function
25701 (Scan): New procedure; moved from Prj. Accumulate comments in the
25702 Comments table and set end of line comments, comments after, after end
25704 (Add_Comments): New procedure
25705 (Save, Restore, Seset_State): New procedures
25706 (There_Are_Unkept_Comments): New function
25707 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
25708 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
25710 (First_Comment_After, First_Comment_After_End): New functions
25711 (First_Comment_Before, First_Comment_Before_End): New functions
25712 (Next_Comment): New function
25713 (End_Of_Line_Comment, Follows_Empty_Line,
25714 Is_Followed_By_Empty_Line): New functions
25715 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
25716 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
25717 (Set_Next_Comment): New procedure
25718 (Default_Project_Node): Associate comment before if the node can store
25721 * scans.ads (Token_Type): New enumeration value Tok_Comment
25722 (Comment_Id): New global variable
25724 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
25725 defaulted to False.
25726 (Scan): Store position of start of comment. If comments are tokens, set
25727 Comment_Id and set Token to Tok_Comment when scanning a comment.
25728 (Set_Comment_As_Token): New procedure
25730 * sinput-p.adb: Update Copyright notice
25731 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
25732 that no longer exists.
25734 2003-12-08 Javier Miranda <miranda@gnat.com>
25736 * sem_aggr.adb: Add dependence on Exp_Tss package
25737 Correct typo in comment
25738 (Resolve_Aggregate): In case of array aggregates set the estimated
25739 type of the aggregate before calling resolve. This is needed to know
25740 the name of the corresponding IP in case of limited array aggregates.
25741 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
25742 in case of default initialized array components.
25744 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
25745 types. Required to give support to limited aggregates in generic
25748 2003-12-08 Ed Schonberg <schonberg@gnat.com>
25750 * sem_ch3.adb (Check_Initialization): For legality purposes, an
25751 inlined body functions like an instantiation.
25752 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
25753 until bounds are analyzed, to diagnose premature use of type.
25755 * sem_util.adb (Wrong_Type): Improve error message when the type of
25756 the expression is used prematurely.
25758 2003-12-08 GNAT Script <nobody@gnat.com>
25760 * Make-lang.in: Makefile automatically updated
25762 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
25764 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
25765 they are automatically generated by Make-lang.in and cause nothing but
25766 maintenance troubles.
25768 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
25770 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
25771 version of this unit).
25773 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
25775 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
25776 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
25777 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
25778 the body of System.Interrupt_Management common to several targets.
25779 Update copyright notice when appropriate.
25781 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
25784 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
25785 to ensure that the kernel fills in the interrupted context structure
25786 before calling a signal handler, which is necessary to be able to
25787 unwind past it. Update the copyright notice.
25789 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
25791 * a-elchha.ads: New file.
25793 * a-elchha.adb: New default last chance handler. Contents taken from
25794 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
25796 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
25797 is moved to a-elchha.adb to provide a target-independent default last
25800 * Makefile.rtl: Add a-elchha.o
25802 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
25804 2003-12-05 Ed Schonberg <schonberg@gnat.com>
25806 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
25807 declared in an instance, do not inline the call if the instance is not
25808 frozen yet, to prevent order of elaboration problems.
25810 * sem_prag.adb: Add comments for previous fix.
25812 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
25814 * g-table.adb: Use the right variable in Set_Item.
25815 Update copyright notice.
25817 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
25819 * Makefile.in: Remove unused rules.
25821 2003-12-05 Vincent Celier <celier@gnat.com>
25823 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
25824 -nostdlib. Not needed here after all.
25826 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
25829 * adaint.h, adaint.c, g-os_lib.ads:
25830 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
25831 on some platforms (including FreeBSD), it is a 64 bit value.
25832 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
25834 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
25836 * gnatvsn.ads (Library_Version): Now contain only the relevant
25838 (Verbose_Library_Version): New constant.
25840 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
25841 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
25842 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
25844 * gnatlbr.adb: Clean up: replace Library_Version by
25845 Verbose_Library_Version.
25847 * make.adb, lib-writ.adb, exp_attr.adb:
25848 Clean up: replace Library_Version by Verbose_Library_Version.
25850 * 5lintman.adb: Removed.
25853 Update and simplify computation of LIBRARY_VERSION.
25854 Fix computation of GSMATCH_VERSION.
25855 5lintman.adb is no longer used: replaced by 7sintman.adb.
25857 2003-12-03 Robert Dewar <dewar@gnat.com>
25860 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
25861 name. Modified to consider small non-bit-packed arrays as troublesome
25862 and in need of component-by-component assigment expansion.
25864 2003-12-03 Vincent Celier <celier@gnat.com>
25866 * lang-specs.h: Process nostdlib as nostdinc
25868 * back_end.adb: Update Copyright notice
25869 (Scan_Compiler_Arguments): Process -nostdlib directly.
25871 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
25874 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
25875 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
25876 included in HIE_NONE_TARGET_PAIRS.
25878 2003-12-03 Ed Schonberg <schonberg@gnat.com>
25881 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
25882 is legal in an instance, because legality is cheched in the template.
25885 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
25886 appplied to an unchecked conversion of a formal parameter.
25889 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
25892 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
25894 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
25895 routines. The second one is new functionality to deal with backtracing
25896 through signal handlers.
25897 (unwind): Split into the two separate subroutines above.
25898 Update the documentation, and deal properly with sizeof (REG) different
25899 from sizeof (void*).
25901 2003-12-01 Nicolas Setton <setton@act-europe.fr>
25903 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
25904 so that the debugger can reliably access the value of the parameter,
25905 and therefore is able to display the exception name when an exception
25906 breakpoint is reached.
25908 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
25910 * fmap.adb: Fix typo in warning message.
25912 * g-socket.ads, g-socket.adb: Make Free a visible instance of
25913 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
25915 2003-12-01 Vincent Celier <celier@gnat.com>
25917 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
25919 (Build_Library): Get the switches only if Default_Switches is declared
25922 2003-12-01 Ed Schonberg <schonberg@gnat.com>
25924 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
25925 actuals that are indexed components, reanalyze actual to ensure that
25926 packed array references are properly expanded.
25928 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
25929 attempted assignment to a discriminant.
25931 2003-12-01 Robert Dewar <dewar@gnat.com>
25933 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
25936 * switch-c.adb: Minor reformatting of comments
25938 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
25940 * Makefile.in: Clean ups.
25942 2003-12-01 GNAT Script <nobody@gnat.com>
25944 * Make-lang.in: Makefile automatically updated
25946 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
25948 * 5wsystem.ads: Disable zero cost exception, not ready yet.
25950 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
25952 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
25953 to force serialization.
25955 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
25957 * g-socket.ads, g-socket.adb:
25958 Clarify documentation of function Stream. Introduce a Free procedure
25959 to release the returned Stream once it becomes unused.
25961 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
25963 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
25965 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
25966 since NT 4 cannot handle timeout values that are too large,
25967 e.g. DWORD'Last - 1.
25969 2003-11-26 Ed Schonberg <schonberg@gnat.com>
25972 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
25973 in procedure calls and whose expansion must be deferred.
25975 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
25979 (Build_Derived_Array_Type): Create operator for unconstrained type
25980 if ancestor is unconstrained.
25982 2003-11-26 Vincent Celier <celier@gnat.com>
25984 * make.adb (Project_Object_Directory): New global variable
25985 (Change_To_Object_Directory): New procedure
25986 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
25987 of Change_Dir directly. Do not change working directory to object
25988 directory of main project after each compilation.
25989 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
25991 Change to object directory of main project before binding step.
25992 (Initialize): Initialize Project_Object_Directory to No_Project
25995 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
25996 binding a Stand-Alone Library.
25998 * output.adb: Update Copyright notice
25999 (Write_Char): Output buffer when full
26001 2003-11-26 Robert Dewar <dewar@gnat.com>
26003 * sem_ch13.adb: (Check_Size): Reset size if size is too small
26006 (Check_Size): Fix documentation to include bit-packed array case
26008 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
26010 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
26012 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
26014 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
26017 * utils.c (init_gigi_decls): Change name of built-in setjmp to
26018 __builtin_setjmp, since this is apparently needed by recent
26021 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
26023 * adadecode.c: Only include ctype.h if not IN_GCC.
26024 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
26026 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
26029 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
26030 signals and interrupts.
26032 * 5zintman.ads: New File.
26034 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
26035 add exception signals to the set of unmasked signals.
26038 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
26039 between signals and interrupts.
26040 Add to Unblocked_Signal_Mask the set of signals that are in
26044 Adding a check to see whether the Interrupt_ID we want to unmask is in
26045 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
26046 reason is that the index type of the Keep_Unmasked array is not always
26047 Interrupt_ID; it may be a subtype of Interrupt_ID.
26049 2003-11-24 Gary Dismukes <dismukes@gnat.com>
26052 (Remove_Side_Effects): Condition constantness of object created for a
26053 an unchecked type conversion on the constantness of the expression
26054 to ensure the correct value for 'Constrained when passing components
26055 of view-converted class-wide objects.
26057 2003-11-24 Robert Dewar <dewar@gnat.com>
26059 * par-load.adb (Load): Improve handling of misspelled and missing units
26060 Removes several cases of compilation abandoned messages
26062 * lib.adb: (Remove_Unit): New procedure
26064 * lib.ads: (Remove_Unit): New procedure
26066 * lib-load.adb: Minor reformatting
26068 2003-11-24 Vincent Celier <celier@gnat.com>
26071 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
26072 (Marking_Label): Label to mark processed source files. Incremented for
26074 (Gnatmake): Increase Marking_Labet for each executable
26075 (Is_Marked): Compare against marking label
26076 (Mark): Mark with marking label
26078 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
26081 Move the declaration of the TSD for System.Threads to System.Soft_Links.
26084 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
26085 (rts-cert): build a single relocatable object for the run-time lib.
26088 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
26091 Use gnatls rather than gcc to obtain the location of GNAT RTL for
26094 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
26096 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
26097 can not use it as before (that is, as a variable) when dumping it into
26098 the tree file. Add a local variable to store the result of this
26099 function and to be used as the string to be written into the tree.
26101 * scn.adb (Initialize_Scanner): Add comments explaining the recent
26104 * sinput.adb (Source_First, Source_Last): In case of
26105 Internal_Source_File, replace returning attributes of
26106 Internal_Source_Ptr (which is wrong) with returning attributes of
26109 2003-11-24 Ed Schonberg <schonberg@gnat.com>
26112 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
26113 used for implicit concatenation operators.
26117 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
26118 task bodies that are in the scope of a Suppress pragma.
26119 (Check_A Call): Use the flag to prevent spurious elaboration checks.
26121 * sinfo.ads, sinfo.adb:
26122 New flag No_Elaboration_Check on function/procedure calls, to properly
26123 suppress checks on calls in task bodies that are within a local suppress
26127 (Expand_Concatenate_Other): Use the proper integer type for the
26128 expression for the upper bound, to avoid universal_integer computations
26131 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
26133 * .cvsignore: Delete.
26135 2003-11-21 Andreas Schwab <schwab@suse.de>
26137 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
26139 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
26141 * 5wsystem.ads: Enable zero cost exception.
26143 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
26145 * 5ztiitho.adb: Remove an unreferenced variable.
26147 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
26149 * adaint.c: For FreeBSD, use mkstemp.
26151 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
26153 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
26155 2003-11-21 Robert Dewar <dewar@gnat.com>
26157 * bld.adb: Remove useless USE of gnatvsn
26159 * gnatchop.adb: Minor reformatting
26160 Clean up version handling to be more consistent
26162 * gnatxref.adb: Minor reformatting
26164 * gprcmd.adb: Minor reformatting
26165 Fix output of copyright to be more consistent with other tools
26167 2003-11-21 Vincent Celier <celier@gnat.com>
26169 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
26171 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
26173 * atree.adb (Initialize): Add initializations for global variables
26174 used in New_Copy_Tree.
26176 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
26177 Internal_Source_File as the actual).
26178 Put the set of statements creating Any_Character before the set of
26179 statements creating Any_Array to have Any_Character fully initialized
26180 when it is used in creating Any_Array.
26182 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
26183 not call Scan in case if the actual is Internal_Source_File
26184 Add 2003 to copyright note.
26186 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
26187 processing Internal_Source_File.
26189 * types.ads: Add the constant Internal_Source_File representing the
26190 source buffer for artificial source-code-like strings created within
26191 the compiler (the definition of Source_File_Index is changed).
26193 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
26195 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
26196 56system.ads: New file, FreeBSD version.
26198 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
26200 * Make-lang.in (ada.extraclean): Delete.
26202 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
26204 * gnatmem.adb: Clean up verbose output.
26206 * gprcmd.adb: Change copyright to FSF.
26208 2003-11-19 Vincent Celier <celier@gnat.com>
26210 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
26211 and Version (ignored).
26213 * symbols.ads: (Policy): New type
26214 (Initialize): New parameter Reference, Symbol_Policy and
26216 Remove parameter Force.
26217 Minor reformatting.
26219 * snames.ads, snames.adbadb: New standard names
26220 Library_Reference_Symbol_File and Library_Symbol_Policy
26223 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
26227 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
26229 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
26231 * prj.adb: (Project_Empty): New component Symbol_Data
26233 * prj.ads: (Policy, Symbol_Record): New types
26234 (Project_Data): New component Symbol_Data
26237 New attributes Library_Symbol_File, Library_Symbol_Policy and
26238 Library_Reference_Symbol_File.
26241 (Ada_Check): When project is a Stand-Alone library project, process
26242 attribute Library_Symbol_File, Library_Symbol_Policy and
26243 Library_Reference_Symbol_File.
26245 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
26246 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
26247 5sml-tgt.adb (Build_Dynamic_Library): New parameter
26248 Symbol_Data (ignored).
26250 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
26251 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
26252 functions Option_File_Name and Version_String. Set new options of
26253 gnatsym related to symbol file, symbol policy and reference symbol
26257 Extensive modifications to take into account the reference symbol file,
26258 the symbol policy, the library version and to put in the symbol file the
26259 minor and major IDs.
26261 * bld.adb (Process_Declarative_Items): Put second argument of
26262 gprcmd to_absolute between single quotes, to avoid problems with
26265 * bld-io.adb: Update Copyright notice.
26266 (Flush): Remove last character of a line, if it is a back slash, to
26267 avoid make problems.
26270 Implement new scheme with reference symbol file and symbol policy.
26272 * g-os_lib.ads: (Is_Directory): Clarify comment
26274 2003-11-19 Robert Dewar <dewar@gnat.com>
26276 * atree.adb: Move New_Copy_Tree global variables to head of package
26278 * errout.adb: Minor reformatting
26280 2003-11-19 Javier Miranda <miranda@gnat.com>
26282 * sem_ch4.adb: (Diagnose_Call): Improve error message.
26283 Add reference to Ada0Y (AI-50217)
26285 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
26286 sem_util.adb: Add reference to AI-50217
26288 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
26290 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
26292 * sem_aggr.adb: Complete documentation of AI-287 changes
26294 * par-ch4.adb: Document previous changes.
26296 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
26297 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
26300 * exp_aggr.adb: Add references to AI-287 in previous changes
26302 2003-11-19 Ed Schonberg <schonberg@gnat.com>
26305 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
26306 in the rewriting is the result of an inlined call.
26308 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
26309 parameter is a type conversion, use original node to construct the
26310 post-call assignment, because expression may have been rewritten, e.g.
26311 if it is a packed array.
26314 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
26315 body, just as it is in an instance.
26316 Categorization routines
26318 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
26319 Instantiate_Object): Set proper sloc reference for message on missing
26322 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
26324 * Makefile.in: Add FreeBSD libgnat pairs.
26326 * usage.adb: Fix typo in usage message.
26328 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
26330 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
26331 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
26332 pragma Thread_Body.
26333 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
26335 * s-thread.adb: This file is now a dummy implementation of
26338 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
26340 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
26342 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
26344 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
26345 instanciation references in the parent type description.
26347 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26349 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
26351 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
26352 TYPE_PRECISION directly from esize.
26354 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
26357 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
26359 * init.c: Initialization routines for FreeBSD
26361 * link.c: Link info for FreeBSD
26363 * sysdep.c: Add the case of FreeBSD
26365 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
26367 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
26368 already called in System.Threads.
26370 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
26371 environment task, as it has been moved to System.Threads.Initialization.
26373 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
26375 * adaint.c (__gnatlib_install_locks): Only reference
26376 __gnat_install_locks on VMS, since other platforms can avoid using
26377 --enable-threads=gnat
26379 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26381 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
26383 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
26384 TYPE_PACKED_ARRAY_TYPE_P.
26385 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
26387 Part of PR ada/12806
26388 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
26389 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
26391 2003-11-17 Vincent Celier <celier@gnat.com>
26393 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
26395 Do not set exit status to Failure when Warning is True.
26396 (Gnatchop): Make errors "no compilation units found" and
26397 "no source files written" warnings only.
26399 * make.adb (Gnatmake): When using a project file, set
26400 Look_In_Primary_Dir to False.
26401 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
26402 and Local_Configuration_Pragmas in the project where they are declared
26403 not an extending project which might have inherited them.
26405 * osint.adb (Locate_File): If Name is already an absolute path, do not
26406 look for a directory.
26408 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
26409 -gnats (Check_Syntax) is used, issue only a warning, not an error.
26411 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
26412 in objects of type Variable_Value.
26414 * prj.ads: (Variable_Value): New component Project
26416 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
26417 is in a project extended by Project.
26419 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
26420 Project of Variable_Values to this new parameter value.
26421 (Expression): Set component Project of Variable_Values.
26422 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
26423 Set the component Project in array elements.
26425 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
26427 * errout.adb: (Initialize): Add initialization for error nodes.
26429 * sem_ch12.adb (Initialize): Add missing initializations for
26430 Exchanged_Views and Hidden_Entities.
26432 2003-11-17 Ed Schonberg <schonberg@gnat.com>
26434 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
26435 already instantiated tree for use in subsequent inlining.
26436 (Analyze_Associations, Instantiate_Formal_Subprogram,
26437 Instantiate_Object): improve error message for mismatch in
26440 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
26441 instantiations of subprograms declared in instances.
26443 2003-11-17 Javier Miranda <miranda@gnat.com>
26445 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
26446 executed only under the Extensions_Allowed flag.
26448 2003-11-17 Robert Dewar <dewar@gnat.com>
26450 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
26452 (Address_Image): Fix bug of returning 0x instead of 0x0
26453 Minor reformatting (function specs).
26455 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
26456 (missed case of 33-63)
26458 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
26460 * s-thread.adb: Add comments for pragma Restriction
26462 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
26463 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
26465 2003-11-17 Ed Falis <falis@gnat.com>
26467 * s-thread.adb: Added No_Tasking restriction for this implementation.
26469 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
26471 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
26472 instanciation references in the parent type description.
26474 2003-11-17 GNAT Script <nobody@gnat.com>
26476 * Make-lang.in: Makefile automatically updated
26478 2003-11-16 Jason Merrill <jason@redhat.com>
26480 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
26481 and TAGS files that include them for each front end.
26483 2003-11-14 Andreas Jaeger <aj@suse.de>
26485 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
26486 is the canonical version.
26487 * misc.c (gnat_handle_option): Likewise.
26489 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
26491 * 5nsystem.ads: New file for x86_64-linux-gnu.
26493 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
26495 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
26497 * comperr.adb: Fix logic in previous change.
26499 2003-11-13 Vincent Celier <celier@gnat.com>
26501 * 5bml-tgt.adb (Build_Dynamic_Library): Use
26502 Osint.Include_Dir_Default_Prefix instead of
26503 Sdefault.Include_Dir_Default_Name.
26505 * gnatlbr.adb: Update Copyright notice
26506 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
26507 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
26508 instead of Sdefault.Object_Dir_Default_Name
26511 (Process_Binder_File): Never suppress the option following -Xlinker
26514 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
26515 Sdefault.Object_Dir_Default_Name.
26517 * osint.ads, osint.adb:
26518 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
26519 Minor reformatting.
26521 * vms_conv.ads: Minor reformating
26522 Remove GNAT STANDARD and GNAT PSTA
26525 Allow GNAT MAKE to have several files on the command line.
26526 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
26527 Sdefault.Object_Dir_Default_Name.
26529 Remove data for GNAT STANDARD
26532 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
26533 Remove data for GNAT STANDARD
26534 Remove options and documentation for -gnatwb/-gnatwB: these warning
26535 options no longer exist.
26537 2003-11-13 Ed Falis <falis@gnat.com>
26539 * 5zthrini.adb: (Init_RTS): Made visible
26542 (Register): Removed unnecessary call to taskVarGet that checked whether
26543 an ATSD was already set as a task var for the argument thread.
26546 Updated comment to reflect that this is a VxWorks version
26547 Added context clause for System.Threads.Initialization
26548 Added call to System.Threads.Initialization.Init_RTS
26550 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
26553 (Init_RTS): New procedure, for the initialization of the run-time lib.
26556 Remove dependancy on System.Init, so that this file can be used in the
26557 AE653 sequential run-time lib.
26559 2003-11-13 Robert Dewar <dewar@gnat.com>
26561 * bindgen.adb: Minor reformatting
26563 2003-11-13 Ed Schonberg <schonberg@gnat.com>
26566 (Apply_Discriminant_Check): Do no apply check if target type is derived
26567 from source type with no applicable constraint.
26570 (Ensure_System_Dependency): Do not apply the style checks that may have
26571 been specified for the main unit.
26574 (Find_Selected_Component): Further improvement in error message, with
26578 (Resolve): Handle properly the case of an illegal overloaded protected
26581 2003-11-13 Javier Miranda <miranda@gnat.com>
26584 (Has_Default_Init_Comps): New function to check the presence of
26585 default initialization in an aggregate.
26586 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
26587 extension aggregate of a limited record. In addition, a new formal
26588 was added to do not initialize the record controller (if any) during
26589 this recursive expansion of ancestors.
26590 (Init_Controller): Add support for limited record components.
26591 (Expand_Record_Aggregate): In case of default initialized components
26592 convert the aggregate into a set of assignments.
26594 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
26595 describing the new syntax.
26596 Nothing else needed to be done because this subprogram delegates part of
26597 its work to P_Precord_Or_Array_Component_Association.
26598 (P_Record_Or_Array_Component_Association): Give support to the new
26599 syntax for default initialization of components.
26602 (Resolve_Aggregate): Relax the strictness of the frontend in case of
26603 limited aggregates.
26604 (Resolve_Record_Aggregate): Give support to default initialized
26606 (Get_Value): In case of default initialized components, duplicate
26607 the corresponding default expression (from the record type
26608 declaration). In case of default initialization in the *others*
26609 choice, do not check that all components have the same type.
26610 (Resolve_Extension_Aggregate): Give support to limited extension
26614 (Check_Initialization): Relax the strictness of the front-end in case
26615 of aggregate and extension aggregates. This test is now done in
26616 Get_Value in a per-component manner.
26618 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
26619 expression corresponds to a limited aggregate. This test is now done
26622 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
26625 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
26626 present in an N_Component_Association node
26628 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
26630 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
26631 type-conformant entry only if they are homographs.
26633 2003-11-13 GNAT Script <nobody@gnat.com>
26635 * Make-lang.in: Makefile automatically updated
26637 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
26639 * adadecode.c: Use <> form of include for ctype.h.
26640 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
26642 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
26644 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
26645 Works around PR middle-end/6552.
26647 2003-11-10 Ed Falis <falis@gnat.com>
26649 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
26651 * 5zinit.adb: (Install_Handler): Moved back to spec
26652 (Install_Signal_Handlers): Deleted
26654 * 5zthrini.adb: Added context clause for System.Storage_Elements
26655 (Register): Only handles creation of taskVar; initialization moved to
26657 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
26658 Added declaration of environment task secondary stack and
26661 * s-thread.adb: Implement bodies for thread body processing
26664 Added comment identifying supported targets for pragma Thread_Body.
26666 2003-11-10 Pascal Obry <obry@gnat.com>
26668 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
26672 (Open): Properly check for string length before copying into the buffer.
26673 Raises Name_Error if buffer is too small. Note that this was a potential
26676 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
26678 * bindgen.adb, comperr.adb: Code clean ups.
26679 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
26681 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
26683 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
26685 2003-11-10 Vincent Celier <celier@gnat.com>
26688 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
26691 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
26693 * prj.adb: (Project_Empty): Add new boolean component Virtual
26695 * prj.ads: (Virtual_Prefix): New constant string
26696 (Project_Data): New boolean component Virtual
26698 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
26699 a library project is extended by a virtual extending project.
26702 Modifications throughout to implement extending-all project, including:
26703 (Virtual_Hash, Processed_Hash): New hash tables
26704 (Create_Virtual_Extending_Project): New procedure
26705 (Look_For_Virtual_Projects_For): New procedure
26708 (Process): After checking the projects, if main project is an
26709 extending-all project, set the object directory of all virtual extending
26710 project to the object directory of the main project.
26711 Adjust error message when a virtual extending project has the same
26712 object directory as an project being extended.
26713 (Recursive_Process): If name starts with the virtual prefix, set Virtual
26714 to True in the project data.
26717 (Default_Project_Node): Add new boolean component Extending_All
26718 (Is_Extending_All): New function
26719 (Set_Is_Extending_All): New procedure
26721 * prj-tree.ads: (Is_Extending_All): New function
26722 (Set_Is_Extending_All): New procedure
26723 (Project_Node_Record): New boolean component Extending_All
26725 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
26728 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
26730 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
26731 "gprcmd prefix" to define it.
26733 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
26735 * einfo.ads: Fix a typo and remove an extraneous word in comments.
26738 (Create_Dummy_Package_Unit): Set the scope of the entity for the
26739 created dummy package to Standard_Standard, not to itself, to
26740 defend other parts of the front-end against encoutering a cycle in
26744 (Analyze_With_Clause): When setting the entities for the successive
26745 N_Expanded_Names that constitute the name of a child unit, do not
26746 attempt to go further than Standard_Standard in the chain of scopes.
26747 This case arises from the placeholder units created by
26748 Create_Dummy_Package_Unit in the case of a with_clause for a
26749 nonexistent child unit.
26751 2003-11-10 Ed Schonberg <schonberg@gnat.com>
26754 (Expand_Thread_Body): Place subprogram on scope stack, so that new
26755 declarations are given the proper scope.
26758 (Check_Expr_Constants): Reject an expression that contains a constant
26759 created during expansion, and that appears after the object to which
26760 the address clause applies.
26762 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
26763 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
26764 that uses 'Range of a function call with controlled components, so
26765 that the function result can be finalized before starting the loop.
26768 (Find_Selected_Component): Improve error message when prefix is
26769 an implicit dereference of an incomplete type.
26771 2003-11-10 Robert Dewar <dewar@gnat.com>
26773 * opt.ads: New Print_Standard flag for -gnatS switch
26775 * sem_ch13.adb: Remove some additional checks for unaligned arrays
26777 * cstand.adb (Create_Standard): Print out package standard if -gnatS
26780 * debug.adb: Update doc for -gnatds to discuss relationship with new
26783 * sinfo.adb: Add new field Entity_Or_Associated_Node
26785 * sinfo.ads: Add new field Entity_Or_Associated_Node
26786 Update documentation for Associated_Node and Entity fields to clarify
26787 relationship and usage.
26790 (Write_Id): Properly process Associated_Node field in generic template
26793 Recognize new -gnatS switch for printing package Standard
26794 This replaces gnatpsta
26797 Add line for new -gnatS switch for printing package Standard
26798 This replaces gnatpsta
26800 2003-11-10 Andreas Jaeger <aj@suse.de>
26802 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
26805 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
26807 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
26810 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
26812 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
26815 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
26817 * sysdep.c: Add handling of cygwin.
26819 2003-11-10 GNAT Script <nobody@gnat.com>
26821 * Make-lang.in: Makefile automatically updated
26823 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
26826 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
26827 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
26828 Replace GNAT_ROOT by GCC_ROOT.
26830 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
26832 2003-11-06 Zack Weinberg <zack@codesourcery.com>
26834 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
26835 and update for changed meaning of GET_MODE_BITSIZE.
26837 2003-11-04 Doug Rupp <rupp@gnat.com>
26839 * sysdep.c: Problem discovered during IA64 VMS port.
26840 [VMS] #include <unixio.h> to get proper prototypes.
26843 Issues discovered/problems fixed during IA64 VMS port.
26844 [VMS] #define _POSIX_EXIT for proper semantics.
26845 [VMS] #include <unixio.h> for proper prototypes.
26846 [VMS] (fork): #define IA64 version.
26847 (__gnat_os_exit): Remove unnecessary VMS specific code.
26849 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26851 Part of PR ada/12806
26852 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
26856 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
26859 * targtyps.c, decl.c, misc.c,
26860 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
26861 routines to work around change in FP sizing semantics in GCC.
26864 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
26866 * gigi.h: (enumerate_modes): New function.
26868 * Make-lang.in: (ada/misc.o): Add real.h.
26870 * misc.c: (enumerate_modes): New function.
26872 2003-11-04 Robert Dewar <dewar@gnat.com>
26874 * 3vtrasym.adb: Minor reformatting
26875 Use terminology encoded/decoded name, rather than C++ specific notion
26876 of mangling (this is the terminology used throughout GNAT).
26878 * einfo.h: Regenerated
26880 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
26883 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
26885 * par-prag.adb: Add dummy entry for Thread_Body pragma
26888 Add entries for System.Threads entities for thread body processing
26891 (Analyze_Pragma, Access attributes): Check these are not applied to a
26892 thread body, since this is not permitted
26894 * sem_prag.adb: Add processing for Thread_Body pragma.
26898 (Resolve_Call): Check for incorrect attempt to call a thread body
26899 procedure with a direct call.
26901 * snames.ads, snames.adb: Add entry for Thread_Body pragma
26902 Add names associated with thread body expansion
26904 * snames.h: Add entry for Thread_Body pragma
26906 * s-thread.adb: Add entries for thread body processing
26907 These are dummy bodies so far
26909 * s-thread.ads: Add documentation on thread body handling.
26910 Add entries for thread body processing.
26912 2003-11-04 Javier Miranda <miranda@gnat.com>
26915 (Build_Limited_Views): Return after posting an error in case of limited
26916 with_clause on subprograms, generics, instances or generic renamings
26917 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
26918 on subprograms, generics, instances or generic renamings
26920 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
26922 * raise.c (setup_to_install): Correct mistake in last revision; two
26923 arguments out of order.
26925 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
26926 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
26927 notice, missed in previous change.
26928 Remove trailing blanks and other style errors introduced in previous
26931 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
26933 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
26934 rid of the wrapper for a LJM type, ensuring we don't do that if the
26935 field is addressable. This avoids potential low level type view
26936 mismatches later on, for instance in a by-reference argument passing
26939 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26941 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
26942 aligned at byte boundary.
26944 2003-11-04 Joel Brobecker <brobecker@gnat.com>
26946 * decl.c (components_to_record): Do not delete the empty variants from
26947 the end of the union type.
26949 2003-11-04 Ed Schonberg <schonberg@gnat.com>
26951 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
26952 operation for a derived type, an explicit declaration may use a local
26953 subtype of Boolean.
26955 2003-11-04 Vincent Celier <celier@gnat.com>
26957 * make.adb (Gnatmake): Allow main sources on the command line with a
26958 library project when it is only for compilation (no binding or
26961 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
26963 * Makefile.in: Remove many duplicate variables.
26965 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
26967 * Make-lang.in (dvi): Move targets to $(docobjdir).
26968 (gnat_ug_vms.dvi): Simplify rule and adjust target.
26969 (gnat_ug_wnt.dvi): Likewise.
26970 (gnat_ug_unx.dvi): Likewise.
26971 (gnat_ug_vxw.dvi): Likewise.
26972 (gnat_rm.dvi): Likewise.
26973 (gnat-style.dvi): Likewise.
26975 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
26977 * gigi.h: Missed commit from update for C90.
26979 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
26981 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
26983 2003-10-31 Andreas Schwab <schwab@suse.de>
26985 * raise.c (get_action_description_for): Fix typo in last change.
26987 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
26990 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
26991 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
26993 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
26995 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
26996 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
26997 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
26998 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
26999 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
27001 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
27004 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
27005 numbers when symbol name is too long.
27007 2003-10-30 Ed Falis <falis@gnat.com>
27009 * g-signal.ads, g-signal.adb: New files
27011 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
27013 * Makefile.rtl: Introduce GNAT.Signals
27015 2003-10-30 Robert Dewar <dewar@gnat.com>
27017 * freeze.adb: Minor reformatting
27019 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
27021 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
27022 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
27023 New handling of Id_Check parameter to improve recognition of keywords
27024 used as identifiers.
27025 Update copyright notice to include 2003
27027 2003-10-29 Robert Dewar <dewar@gnat.com>
27029 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
27030 sem_ch10.adb: Minor reformatting
27032 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
27033 (Expand_Assign_Record): Test right hand side for bit unaligned as well
27035 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
27037 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
27038 Support for TBK$SYMBOLIZE-based symbolic traceback.
27040 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
27043 Revert previous change, that did not work well when pragma No_Run_Time
27044 was used in conjunction with a run-time other than ZFP.
27046 2003-10-29 Vincent Celier <celier@gnat.com>
27049 (Gnatmake): When there are no Ada mains in attribute Main, disable the
27050 bind and link steps only is switch -z is not used.
27052 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
27054 * Makefile.generic: Remove duplicated setting of CC.
27056 * Makefile.prolog: Set CC to gcc by default, to override make's
27059 * einfo.h: Regenerated.
27061 2003-10-29 Ed Schonberg <schonberg@gnat.com>
27063 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
27064 current body, after compiling subunit.
27066 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
27067 when in deleted code, because gigi needs properly ordered freeze
27068 actions to annotate types.
27070 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
27071 prevent the premature freezing of record type that contains
27072 subcomponents with a private type that does not yet have a completion.
27074 2003-10-29 Javier Miranda <miranda@gnat.com>
27077 (Analyze_Package_Instantiation): Check that instances can not be used in
27078 limited with_clauses.
27081 (Analyze_Package_Renaming): Check that limited withed packages cannot
27082 be renamed. Improve text on error messages related to limited
27085 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
27087 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
27088 Update copyright notice.
27090 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
27091 (Install_Limited_Context_Clauses): New subprogram that isolates all the
27092 checks required for limited context_clauses and installs the limited
27094 (Install_Limited_Withed_Unit): Complete its documentation.
27095 (Analyze_Context): Check that limited with_clauses are only allowed in
27097 (Install_Context): Call Install_Limited_Context_Clauses after the
27098 parents have been installed.
27099 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
27100 package as 'From_With_Type'; this mark indicates that the limited view
27101 is installed. Used to check bad usages of limited with_clauses.
27102 (Build_Limited_Views): Do not add shadow entities to the scope's list
27103 of entities. Do not add real entities to the Non_Limited_Views chain.
27104 Improve error notification.
27105 (Remove_Context_Clauses): Remove context clauses in two phases:
27106 limited views first and regular views later (to maintain the
27108 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
27109 its visible entities.
27111 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
27113 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
27114 with any type that Is_Fixed_Point_Type.
27116 * sinfo.ads: Fix documentation for Associated_Node attribute.
27118 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
27120 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
27121 both '-gnatc' and '-gnatt' are specified.
27123 * atree.adb (Initialize): Add initialization for Node_Count (set to
27126 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27128 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
27129 do not consider as Pure.
27131 Part of implementation of function-at-a-time:
27133 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
27134 (tree_transform): Add new argument to build_component_ref.
27135 (tree_transform, case N_Assignment_Statement): Make and return an
27137 (tree_transform): If result IS_STMT, set flags and return it.
27138 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
27140 * utils2.c (build_simple_component_ref, build_component_ref): Add new
27142 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
27143 (build_allocator): Likewise.
27145 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
27146 Add new arg to build_component_ref.
27147 (maybe_unconstrained_array, unchecked_convert): Likewise.
27149 * ada-tree.def (EXPR_STMT): New code.
27151 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
27153 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
27154 build_component_ref calls.
27156 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
27158 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
27159 (build_component_ref): Add new argument, NO_FOLD_P.
27161 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
27163 * Makefile.generic: Add missing substitution on object_deps handling.
27166 * Make-lang.in (check-ada): Enable ACATS test suite.
27168 2003-10-27 Robert Dewar <dewar@gnat.com>
27171 (Freeze_Array_Type): We do not need an initialization routine for types
27172 derived from String or Wide_String. They should be treated the same
27173 as String and Wide_String themselves. This caused problems with the
27174 use of Initialize_Scalars.
27177 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
27178 composites. This allows use of component clauses that are not byte
27182 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
27183 is an attempt to pack an array of atomic objects.
27185 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
27187 2003-10-27 Pascal Obry <obry@gnat.com>
27190 (Basename): Check for drive letters in a pathname only on DOS based OS.
27192 2003-10-27 Vincent Celier <celier@gnat.com>
27195 (Gnatmake): When unable to change dir to the object dir, display the
27196 content of the parent dir of the obj dir, to try to understand why this
27199 2003-10-27 GNAT Script <nobody@gnat.com>
27201 * Make-lang.in: Makefile automatically updated
27203 2003-10-27 Ed Schonberg <schonberg@gnat.com>
27206 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
27207 should not be done in Save/Restore_Scope_Stack, because it is performed
27211 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
27212 whether use clauses should be removed/restored.
27215 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
27216 whether use clauses should be removed/restored.
27218 2003-10-26 Andreas Jaeger <aj@suse.de>
27220 * Makefile.in: Remove duplicated lines.
27222 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
27224 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
27225 minimize the differences with ACT tree.
27227 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
27228 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
27229 Gnatvsn.Gnat_Static_Version_String to reduce differences between
27232 2003-10-24 Pascal Obry <obry@gnat.com>
27235 * adadecode.c (ostrcpy): New function.
27236 (__gnat_decode): Use ostrcpy of strcpy.
27237 (has_prefix): Set first parameter a const.
27238 (has_suffix): Set first parameter a const.
27239 Update copyright notice. Fix source name in header.
27240 Removes a trailing space.
27242 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
27245 Remove the test against being in No_Run_Time_Mode before generating a
27246 call to Register_Tag. It is redundant with the test against the
27247 availability of the function Register_Tag.
27249 2003-10-24 Vincent Celier <celier@gnat.com>
27251 * g-catiio.adb: (Month_Name): Correct spelling of February
27253 * make.adb: (Mains): New package
27254 (Initialize): Call Mains.Delete
27255 (Gnatmake): Check that each main on the command line is a source of a
27256 project file and, if there are several mains, each of them is a source
27257 of the same project file.
27258 (Gnatmake): When a foreign language is specified in attribute Languages,
27259 no main is specified on the command line and attribute Mains is not
27260 empty, only build the Ada main. If there is no Ada main, just compile
27261 the Ada sources and their closure.
27262 (Gnatmake): If a main is specified on the command line with directory
27263 information, check that the source exists and, if it does, that the path
27264 is the actual path of a source of a project.
27267 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
27268 Full_Path is True, return the full path instead of the simple file name.
27269 (Project_Of): New function
27272 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
27273 defaulted to False.
27274 (Project_Of): New function
27276 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
27278 * Makefile.generic:
27279 Ensure objects of main project are always checked and rebuilt if needed.
27280 Set CC to gcc by default.
27281 Prepare new handling of link by creating a global archive (not activated
27284 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
27285 stringt.h: Update copyright notice. Remove trailing blanks.
27286 Fix source name in header.
27288 2003-10-24 Robert Dewar <dewar@gnat.com>
27290 * sem_ch12.adb: Minor reformatting
27293 Minor reformatting (including new function return style throughout)
27296 Minor reformatting (including new function return style throughout)
27298 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
27300 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
27301 stringt.h: Update copyright notice. Remove trailing blanks.
27302 Fix source name in header.
27304 2003-10-24 GNAT Script <nobody@gnat.com>
27306 * Make-lang.in: Makefile automatically updated
27308 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
27310 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
27311 stringt.h: Convert to ISO C90 declarations and definitions.
27313 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
27316 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
27317 External_Tag attribute definition clauses.
27319 2003-10-23 Ed Schonberg <schonberg@gnat.com>
27322 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
27323 child unit, generate a fully qualified name to avoid spurious errors
27324 when the context contains renamings of different child units with
27325 the same simple name.
27327 * exp_dbug.ads: Add documentation on name qualification for renamings
27330 2003-10-23 Robert Dewar <dewar@gnat.com>
27332 * g-regpat.ads, g-regpat.adb: Minor reformatting
27334 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
27336 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
27338 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27340 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
27343 * urealp.h: (Machine): Update to proper definition.
27345 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
27347 * init.c, adaint.c: Minor reformatting.
27349 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
27351 * adaint.c (w32_epoch_offset): Define static const at file level.
27352 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
27353 rather than t_create, t_access in call to GetFileTime. Use union
27354 to convert between FILETIME and unsigned long long.
27355 (__gnat_file_time_name): Test for invalid file handle.
27356 (__gnat_set_filetime_name): Support win32 targets using
27357 w32api SetFileTime.
27359 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
27361 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
27363 * ctrl_c.c (__gnat_int_handler): Remove declaration.
27365 * decl.c (creat_concat_name): Const-ify prefix.
27367 * adaint.c: Include ctype.h if __MINGW32__.
27368 (__gnat_readlink): Mark arguments as possibly unused.
27369 (__gnat_symlink): Likewise.
27370 (__gnat_is_symbolic_link): Likewise.
27371 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
27373 (__gnat_file_time_name): Don't declare struct stat statbuf when
27375 (__gnat_is_absolute_path): Add parenthesis around condition of
27376 'if' statement to avoid warning.
27377 (__gnat_plist_init): Specify void as parameter.
27378 (plist_enter): Likewise.
27379 (plist_leave): Likewise.
27380 (remove_handle): Make static. Initialize prev.
27382 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
27385 * Makefile.in: Disable build of gnatpsta.
27386 * cstreams.c (__gnat_full_name): Minor improvements and clean up
27387 of previous change.
27389 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27391 * tracebak.c (MAX): Avoid redefinition warning.
27393 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
27394 Change msg to const char *.
27395 (__gnat_install_handler): Remove ss, unused.
27396 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
27398 * cstreams.c (__gnat_full_name): Declare p only when used.
27399 (__gnat_full_name) [sgi] Return buffer.
27401 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
27403 * mingw32.h: New file.
27404 * gnat_wrapper.adb: New file.
27406 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
27408 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
27409 string match a pre compiled regular expression (the corresponding
27410 version of the function working on a raw regular expression)
27411 Fix typos in various comments
27412 Update copyright notice in spec
27414 2003-10-21 Gary Dismukes <dismukes@gnat.com>
27417 (Component_Needs_Simple_Initialization): Return False when the type is a
27418 packed bit array. Revise spec comments to document this case.
27421 (Expand_Pragma_Import): Set any expression on the imported object to
27422 empty to avoid initializing imported objects (in particular this
27423 covers the case of zero-initialization of bit arrays).
27424 Update copyright notice.
27426 2003-10-21 Ed Schonberg <schonberg@gnat.com>
27429 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
27430 a subunit is missing.
27431 (Instantiate_Subprogram_Body): If body of function is missing, set type
27432 of return expression explicitly in dummy body, to prevent cascaded
27433 errors when a subunit is missing.
27437 (Access_Subprogram_Declaration): Verify that return type is valid.
27441 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
27446 (Corresponding_Discriminant): If the scope of the discriminant is a
27447 private type without discriminant, use its full view.
27450 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
27452 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
27453 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
27454 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
27455 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
27456 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
27457 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
27458 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
27459 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
27460 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
27461 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
27462 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
27463 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
27464 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
27465 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
27466 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
27467 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
27468 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
27469 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
27470 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
27471 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
27472 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
27473 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
27474 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
27475 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
27476 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
27477 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
27478 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
27479 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
27480 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
27481 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
27482 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
27483 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
27484 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
27485 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
27486 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
27487 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
27488 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
27489 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
27490 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
27491 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
27492 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
27493 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
27494 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
27495 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
27496 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
27497 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
27498 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
27499 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
27500 vms_conv.ads, vms_conv.adb, vms_data.ads,
27501 vxaddr2line.adb: Files added. Merge with ACT tree.
27503 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
27504 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
27505 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
27506 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
27507 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
27508 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
27509 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
27510 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
27511 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
27512 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
27514 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
27515 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
27516 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
27517 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
27518 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
27519 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
27520 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
27521 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
27522 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
27523 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
27524 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
27525 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
27526 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
27527 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
27528 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
27529 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
27530 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
27531 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
27532 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
27533 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
27534 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
27535 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
27536 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
27537 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
27538 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
27539 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
27540 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
27541 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
27542 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
27543 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
27544 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
27545 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
27546 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
27547 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
27548 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
27549 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
27550 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
27551 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
27552 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
27553 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
27554 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
27555 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
27556 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
27557 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
27558 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
27559 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
27560 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
27561 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
27562 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
27563 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
27564 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
27565 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
27566 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
27567 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
27568 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
27569 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
27570 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
27571 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
27572 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
27573 checks.adb, checks.ads, cio.c, comperr.adb,
27574 comperr.ads, csets.adb, cstand.adb, cstreams.c,
27575 debug_a.adb, debug_a.ads, debug.adb, decl.c,
27576 einfo.adb, einfo.ads, errout.adb, errout.ads,
27577 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
27578 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
27579 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
27580 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
27581 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
27582 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
27583 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
27584 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
27585 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
27586 fe.h, fmap.adb, fmap.ads, fname.adb,
27587 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
27588 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
27589 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
27590 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
27591 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
27592 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
27593 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
27594 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
27595 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
27596 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
27597 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
27598 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
27599 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
27600 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
27601 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
27602 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
27603 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
27604 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
27605 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
27606 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
27607 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
27608 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
27609 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
27610 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
27611 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
27612 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
27613 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
27614 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
27615 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
27616 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
27617 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
27618 layout.adb, lib.adb, lib.ads, lib-list.adb,
27619 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
27620 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
27621 link.c, live.adb, make.adb, make.ads,
27622 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
27623 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
27624 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
27625 misc.c, mkdir.c, mlib.adb, mlib.ads,
27626 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
27627 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
27628 namet.adb, namet.ads, namet.h, nlists.ads,
27629 nlists.h, nmake.adt, opt.adb, opt.ads,
27630 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
27631 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
27632 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
27633 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
27634 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
27635 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
27636 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
27637 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
27638 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
27639 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
27640 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
27641 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
27642 prj-util.adb, prj-util.ads, raise.c, raise.h,
27643 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
27644 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
27645 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
27646 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
27647 scans.ads, scn.adb, scn.ads, s-crc32.adb,
27648 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
27649 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
27650 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
27651 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
27652 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
27653 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
27654 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
27655 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
27656 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
27657 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
27658 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
27659 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
27660 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
27661 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
27662 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
27663 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
27664 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
27665 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
27666 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
27667 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
27668 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
27669 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
27670 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
27671 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
27672 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
27673 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
27674 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
27675 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
27676 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
27677 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
27678 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
27679 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
27680 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
27681 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
27682 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
27683 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
27684 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
27685 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
27686 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
27687 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
27688 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
27689 stringt.adb, stringt.ads, stringt.h, style.ads,
27690 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
27691 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
27692 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
27693 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
27694 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
27695 table.adb, table.ads, targparm.adb, targparm.ads,
27696 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
27697 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
27698 ttypes.ads, types.ads, types.h, uintp.adb,
27699 uintp.ads, uintp.h, uname.adb, urealp.adb,
27700 urealp.ads, urealp.h, usage.adb, utils2.c,
27701 utils.c, validsw.adb, validsw.ads, widechar.adb,
27702 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
27703 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
27704 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
27705 gnatvsn.ads: Merge with ACT tree.
27707 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
27709 2003-10-20 Mark Mitchell <mark@codesourcery.com>
27711 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
27712 (gnat_ug_vmx.info): Likewise.
27713 (gnat_ug_vxw.info): Likewise.
27714 (gnat_ug_wnt.info): Likewise.
27715 (gnat_rm.info): Likewise.
27716 (gnat-style.info): Likewise.
27718 * Make-lang.in (ada.install-info): Remove target.
27719 (info): New target.
27720 (install-info): Likewise.
27721 (gnat_ug_unx.info): Simplify rule.
27722 (gnat_ug_vmx.info): Likewise.
27723 (gnat_ug_vxw.info): Likewise.
27724 (gnat_ug_wnt.info): Likewise.
27725 (gnat_rm.info): Likewise.
27726 (gnat-style.info): Likewise.
27728 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
27730 * Make-lang.in: Replace uses of $(target_alias) with
27731 $(target_noncanonical).
27732 * ada/Makefile.in: Remove unused mention of $(target_alias).
27734 2003-10-06 Mark Mitchell <mark@codesourcery.com>
27736 * Make-lang.in (ada.info): Replace with ...
27738 (ada.dvi): Replace with ...
27741 2003-09-29 Zack Weinberg <zack@codesourcery.com>
27743 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
27744 initialize dconstp5 and dconstmp5.
27746 2003-09-28 Richard Henderson <rth@redhat.com>
27748 * trans.c (tree_transform): Update call to expand_asm_operands.
27750 2003-09-21 Richard Henderson <rth@redhat.com>
27752 * trans.c, utils.c: Revert.
27754 2003-09-21 Richard Henderson <rth@redhat.com>
27756 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
27759 2003-09-04 Michael Matz <matz@suse.de>
27761 * misc.c: Include "target.h".
27762 * Make-lang.in (misc.o): Add dependency on target.h.
27764 2003-09-03 DJ Delorie <dj@redhat.com>
27766 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
27769 2003-08-30 Zack Weinberg <zack@codesourcery.com>
27771 * Makefile.in: Update substitutions to match changes to
27772 configure. Use include directives instead of @-insertions
27773 to read in host and target fragments. Add a rule to
27774 regenerate ada/Makefile.
27776 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
27778 * lang-options.h: Remove.
27779 * lang.opt: Add help text.
27781 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
27783 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
27786 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
27788 * misc.c (gnat_handle_option): Don't handle filenames.
27790 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
27792 * Make-lang.in: Replace PWD with PWD_COMMAND.
27793 * Makefile.adalib: Likewise.
27794 * Makefile.in: Likewise.
27796 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
27798 * misc.c (gnat_argv): Revert last change.
27799 (gnat_handle_option, gnat_init_options): Copy arguments.
27801 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
27803 * misc.c (gnat_argv): Make const.
27805 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
27807 * misc.c (save_argc, save_argv): Keep non-static!
27809 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
27811 * misc.c (save_argc, save_argv): Make static.
27812 (gnat_init_options): New prototype.
27813 (gnat_init_options): Update.
27815 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
27817 * gnat_ug.texi: Remove unlikely characters from @vars.
27818 * gnat_ug_vms.texi: Regenerate.
27820 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
27822 * misc.c (record_code_position): Adjust emit_note call.
27824 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
27826 * misc.c (gnat_handle_option): Don't check for missing arguments.
27828 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
27830 * utils.c (end_subprog_body): Adjust expand_function_end call.
27832 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
27834 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
27837 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
27839 * lang.opt: Declare Ada.
27840 * misc.c (gnat_init_options): Update.
27842 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
27844 * utils.c (begin_subprog_body): Adjust init_function_start call.
27846 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
27848 * Make-lang.in: Update to use options.c and options.h.
27849 * misc.c: Include options.h not aoptions.h.
27850 (gnat_handle_option): Abort on unrecognized switch.
27851 (gnat_init_options): Request Ada switches.
27853 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
27855 * lang.opt: Add -Wall.
27856 * misc.c (gnat_handle_option): Handle it.
27858 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
27860 * misc.c (gnat_handle_option): Fix warnings.
27862 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
27864 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
27866 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
27868 * Make-lang.in: Update to handle command-line options.
27869 * lang.opt: New file.
27870 * misc.c: Include aoptions.h.
27871 (cl_options_count, cl_options): Remove.
27872 (gnat_handle_option): New.
27873 (gnat_decode_option): Remove.
27874 (LANG_HOOKS_DECODE_OPTION): Remove.
27875 (LANG_HOOKS_HANDLE_OPTION): Override.
27877 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
27879 * init.c, misc.c, trans.c, utils.c: Remove dead code.
27881 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
27883 * Makefile.in: Replace "host_canonical" with "host" for autoconf
27886 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
27888 * Make-lang.in: Update.
27889 * misc.c: Include opts.h. Define cl_options_count and cl_options.
27891 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
27893 * misc.c (gnat_init_options): Update.
27895 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
27897 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
27898 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
27899 __attribute__ ((__unused__)).
27901 2003-06-05 Jan Hubicka <jh@suse.cz>
27903 * Make-lang.in: Add support for stageprofile and stagefeedback
27905 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
27907 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
27908 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
27910 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
27912 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
27913 Remove non-VMS directive.
27914 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
27916 (Examples of gnatls Usage): Remove VMS alternative.
27918 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
27921 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
27922 and turn ZCX_By_Default back to False since the underlying support
27923 is not quite there yet.
27925 2003-06-01 Andreas Jaeger <aj@suse.de>
27927 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
27928 and ROUND_TYPE_SIZE_UNIT.
27930 2003-05-22 Geert Bosch <bosch@gnat.com>
27932 * gnat_rm.texi : Remove reference to Ada Core Technologies.
27934 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
27936 * trans.c (tree_transform): Use location_t and input_location
27938 (build_unit_elab): Likewise.
27939 * utils.c (create_label_decl): Likewise.
27941 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
27943 * trans.c (tree_transform, build_unit_elab,
27944 set_lineno): Rename lineno to input_line.
27945 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
27946 end_subprog_body): Likewise.
27947 * utils2.c (build_call_raise): Likewise.
27949 2003-05-01 Laurent Guerby <guerby@acm.org>
27952 * 5iosinte.ads: Increase pthread_cond_t size to match recent
27953 LinuxThread and NPTL version, merge from ACT.
27955 2003-04-28 Zack Weinberg <zack@codesourcery.com>
27957 * utils.c (convert): No need to clear TREE_CST_RTL.
27959 2003-04-23 Geert Bosch <bosch@gnat.com>
27961 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
27962 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
27963 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
27964 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
27965 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
27966 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
27967 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
27968 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
27969 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
27970 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
27971 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
27972 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
27973 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
27974 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
27975 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
27976 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
27977 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
27978 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
27979 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
27980 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
27981 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
27982 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
27983 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
27984 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
27985 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
27986 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
27987 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
27988 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
27989 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
27990 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
27991 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
27992 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
27993 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
27994 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
27995 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
27996 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
27997 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
27998 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
27999 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
28000 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
28001 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
28002 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
28003 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
28004 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
28005 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
28006 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
28007 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
28008 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
28009 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
28010 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
28011 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
28012 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
28013 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
28014 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
28015 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
28016 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
28017 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
28018 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
28019 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
28020 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
28021 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
28022 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
28023 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
28024 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
28025 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
28026 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
28027 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
28028 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
28029 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
28030 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
28031 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
28032 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
28033 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
28034 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
28035 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
28036 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
28037 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
28038 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
28039 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
28040 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
28041 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
28042 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
28043 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
28044 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
28045 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
28046 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
28047 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
28048 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
28049 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
28050 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
28051 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
28052 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
28053 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
28054 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
28055 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
28056 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
28057 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
28058 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
28059 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
28060 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
28061 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
28062 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
28063 ali.adb, ali.ads, alloc.ads, argv.c,
28064 atree.adb, atree.ads, atree.h, aux-io.c,
28065 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
28066 binde.adb, binde.ads, binderr.adb, binderr.ads,
28067 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
28068 butil.adb, butil.ads, cal.c, calendar.ads,
28069 casing.adb, casing.ads, ceinfo.adb, checks.adb,
28070 checks.ads, cio.c, comperr.adb, comperr.ads,
28071 config-lang.in, csets.adb, csets.ads, csinfo.adb,
28072 cstand.adb, cstand.ads, cuintp.c, debug.adb,
28073 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
28074 dec-io.ads, dec.ads, deftarg.c, directio.ads,
28075 einfo.adb, einfo.ads, elists.adb, elists.ads,
28076 elists.h, errno.c, errout.adb, errout.ads,
28077 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
28078 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
28079 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
28080 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
28081 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
28082 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
28083 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
28084 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
28085 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
28086 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
28087 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
28088 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
28089 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
28090 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
28091 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
28092 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
28093 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
28094 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
28095 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
28096 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
28097 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
28098 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
28099 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
28100 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
28101 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
28102 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
28103 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
28104 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
28105 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
28106 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
28107 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
28108 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
28109 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
28110 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
28111 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
28112 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
28113 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
28114 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
28115 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
28116 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
28117 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
28118 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
28119 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
28120 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
28121 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
28122 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
28123 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
28124 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
28125 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
28126 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
28127 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
28128 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
28129 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
28130 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
28131 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
28132 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
28133 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
28134 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
28135 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
28136 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
28137 lib.adb, lib.ads, live.adb, live.ads,
28138 machcode.ads, make.adb, make.ads, makeusg.adb,
28139 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
28140 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
28141 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
28142 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
28143 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
28144 mlib.ads, namet.adb, namet.ads, nlists.adb,
28145 nlists.ads, opt.adb, opt.ads, osint-b.adb,
28146 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
28147 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
28148 osint.ads, output.adb, output.ads, par-ch10.adb,
28149 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
28150 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
28151 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
28152 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
28153 par-tchk.adb, par-util.adb, par.adb, par.ads,
28154 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
28155 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
28156 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
28157 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
28158 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
28159 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
28160 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
28161 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
28162 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
28163 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
28164 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
28165 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
28166 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
28167 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
28168 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
28169 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
28170 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
28171 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
28172 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
28173 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
28174 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
28175 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
28176 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
28177 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
28178 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
28179 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
28180 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
28181 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
28182 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
28183 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
28184 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
28185 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
28186 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
28187 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
28188 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
28189 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
28190 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
28191 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
28192 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
28193 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
28194 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
28195 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
28196 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
28197 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
28198 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
28199 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
28200 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
28201 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
28202 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
28203 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
28204 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
28205 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
28206 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
28207 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
28208 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
28209 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
28210 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
28211 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
28212 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
28213 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
28214 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
28215 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
28216 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
28217 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
28218 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
28219 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
28220 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
28221 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
28222 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
28223 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
28224 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
28225 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
28226 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
28227 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
28228 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
28229 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
28230 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
28231 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
28232 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
28233 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
28234 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
28235 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
28236 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
28237 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
28238 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
28239 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
28240 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
28241 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
28242 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
28243 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
28244 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
28245 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
28246 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
28247 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
28248 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
28249 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
28250 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
28251 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
28252 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
28253 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
28254 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
28255 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
28256 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
28257 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
28258 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
28259 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
28260 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
28261 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
28262 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
28263 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
28264 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
28265 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
28266 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
28267 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
28268 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
28269 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
28270 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
28271 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
28272 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
28273 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
28274 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
28275 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
28276 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
28277 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
28278 snames.ads, sprint.adb, sprint.ads, stand.adb,
28279 stand.ads, stringt.adb, stringt.ads, style.adb,
28280 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
28281 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
28282 switch-m.ads, switch.adb, switch.ads, system.ads,
28283 table.adb, table.ads, targparm.adb, targparm.ads,
28284 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
28285 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
28286 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
28287 ttypef.ads, ttypes.ads, types.adb, types.ads,
28288 uintp.adb, uintp.ads, uname.adb, uname.ads,
28289 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
28290 usage.adb, usage.ads, validsw.adb, validsw.ads,
28291 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
28292 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
28293 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
28294 formatting and other trivial changes from ACT.
28296 2003-04-12 Zack Weinberg <zack@codesourcery.com>
28298 * gigi.h, utils2.c (build_constructor):
28299 Rename gnat_build_constructor. Use build_constructor.
28300 * decl.c (gnat_to_gnu_entity)
28301 * trans.c (tree_transform, pos_to_constructor, extract_values)
28302 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
28303 (unchecked_convert)
28304 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
28305 (fill_vms_descriptor):
28308 2003-04-06 Zack Weinberg <zack@codesourcery.com>
28310 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
28311 * misc.c (gnat_tree_size): New function.
28312 (LANG_HOOKS_TREE_SIZE): Override.
28314 2003-04-03 Jason Merrill <jason@redhat.com>
28316 * misc.c (gnat_adjust_rli): #if 0.
28318 2003-03-31 Geert Bosch <bosch@gnat.com>
28321 * link.c : Fix misspelled "const" keyword
28323 2003-03-23 Mark Mitchell <mark@codesourcery.com>
28326 * utils2.c: Adjust calls to put_var_into_stack.
28328 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
28330 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
28332 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
28334 * misc.c (gnat_init): Update for new prototype.
28336 2003-03-05 Olivier Hainque <hainque@gnat.com>
28339 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
28340 warning, and fix return type for the IN_RTS && !SJLJ case.
28342 2003-03-04 Tom Tromey <tromey@redhat.com>
28344 * Make-lang.in (ada.tags): New target.
28346 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
28349 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
28350 wrapper, which name remains constant whatever underlying GCC
28353 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
28354 the stable interface needed for a-except.
28356 2003-03-02 Andreas Jaeger <aj@suse.de>
28358 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
28359 gnat_ug_wnt.texi: Regenerate.
28361 2003-03-02 Laurent Guerby <guerby@acm.org>
28363 * Makefile.in (install-gnatlib): Match previous change there
28366 2003-02-28 Andreas Schwab <schwab@suse.de>
28368 * Make-lang.in (install-gnatlib): Change to ada directory before
28369 running make instead of using ada/Makefile directly.
28371 2003-02-18 Ben Elliston <bje@redhat.com>
28373 Part of PR ada/9406
28374 * gnat_ug.texi (Binder output file): Grammar fix.
28376 2003-02-18 Ben Elliston <bje@redhat.com>
28379 * 5qtaprop.adb (Sleep): Fix typo in comment.
28381 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
28383 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
28384 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
28385 gnat_ug_wnt.texi: Regenerate.
28387 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
28389 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
28390 be created if necessary.
28391 (ada.install-common): Let $(DESTDIR)$(bindir) be created
28392 if necessary. Remove erroneous and redundant gnatchop
28393 installation commands. Test for gnatdll before attempting
28395 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
28396 and gnatdll from all plausible locations.
28398 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
28400 * utils2.c (build_unary_op): Don't check flag_volatile.
28401 * gnat_ug.texi: Remove -fvolatile from example.
28402 * gnat_ug_vxw.texi: Likewise.
28404 2003-01-29 Laurent Guerby <guerby@acm.org>
28407 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
28408 * Makefile.in: match previous change.
28409 * Make-lang.in: match previous change.
28411 2003-01-29 Joel Sherrill <joel@OARcorp.com>
28413 * 5rosinte.ads: Add SIGXCPU.
28414 * 5rtpopsp.adb: New file.
28415 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
28416 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
28417 specific file 5rtpopsp.adb.
28418 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
28419 is likely needed for all newlib targets.
28420 * init.c: Add RTEMS specific version of __gnat_initialize().
28422 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28424 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
28426 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28428 * init.c (__gnat_error_handler): Make msg const.
28430 * gmem.c (convert_addresses): Move declaration ...
28431 * adaint.h: ... here.
28432 * adaint.c (convert_addresses): Adapt addrs type to match
28435 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
28437 2003-01-24 Andreas Schwab <schwab@suse.de>
28439 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
28440 size_t to avoid warning.
28442 2003-01-21 Zack Weinberg <zack@codesourcery.com>
28444 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
28446 2003-01-09 Geoffrey Keating <geoffk@apple.com>
28448 * gnat_rm.texi: Remove RCS version number.
28450 * ada-tree.h (union lang_tree_node): Add chain_next option.
28452 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
28454 * Make-lang.in (ada.install-info, ada.install-common,
28455 ada.uninstall): Prepend $(DESTDIR) to the destination
28456 directory in all (un)installation commands.
28457 * Makefile.in (install-gnatlib, install-rts): Ditto.
28459 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
28461 * gnat_rm.texi, gnat_ug.texi: Use @copying.
28462 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
28463 gnat_ug_wnt.texi: Regenerate.
28465 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
28467 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
28469 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
28470 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
28471 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
28472 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
28473 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
28474 $(srcdir)/doc/include/gcc-common.texi.
28476 2002-12-15 Geert Bosch <bosch@gnat.com>
28478 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
28480 2002-12-14 Geert Bosch <bosch@gnat.com>
28483 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
28484 case of a body created for a Renaming_As_Body, on which
28485 conformance checks are not performed.
28487 2002-11-30 Zack Weinberg <zack@codesourcery.com>
28489 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
28490 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
28491 not already included.
28492 * Make-lang.in: Update dependencies.
28494 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
28495 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
28496 solution to buffer overflow bug on GNU/Linux.
28498 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
28502 * bindgen.adb: Remove all references to Public_Version.
28503 * comperr.adb: Remove all references to Public_Version and
28504 GNATPRO_Version; correct bug reporting instructions.
28505 * comperr.ads: Change to match bug box.
28506 * gnatvsn.ads: Remove all references to Public version and
28509 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
28512 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
28516 * config-lang.in: Remove diff_excludes.
28518 2002-11-05 Graham Stott <graham.stott@btinternet.com>
28521 * trans.c (gnu_pending_elaboration_lists): New GC root.
28522 (build_unit_elab): Use..
28524 2002-10-30 Geert Bosch <bosch@gnat.com>
28527 * misc.c : Include optabs.h
28529 * Make-lang.in (misc.o): Add dependency on optabs.h
28531 2002-10-29 Geert Bosch <bosch@gnat.com>
28534 * Make-lang.in (gnatbind): Depend on CONFIG_H
28536 2002-10-29 Geert bosch <bosch@gnat.com>
28539 * misc.c: Unrevert misc.c (1.13)
28541 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
28543 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
28544 maintainership comments.
28546 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
28549 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
28550 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
28551 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
28552 7staprop.adb: Correct statements in comments about
28553 maintainership of GNAT.
28556 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
28557 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
28558 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
28559 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
28560 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
28561 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
28562 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
28563 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
28564 comments about maintainership of GNAT.
28566 PR ada/6919 (forward port of patch for PR ada/5904)
28567 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
28568 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
28569 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
28570 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
28571 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
28572 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
28573 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
28574 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
28575 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
28576 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
28577 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
28578 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
28579 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
28580 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
28581 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
28582 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
28583 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
28584 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
28585 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
28586 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
28587 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
28588 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
28589 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
28590 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
28591 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
28592 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
28593 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
28594 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
28595 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
28596 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
28597 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
28598 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
28599 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
28600 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
28601 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
28602 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
28603 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
28604 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
28605 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
28606 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
28607 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
28608 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
28609 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
28610 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
28611 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
28612 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
28613 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
28614 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
28615 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
28616 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
28617 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
28618 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
28619 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
28620 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
28621 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
28622 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
28623 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
28624 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
28625 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
28626 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
28627 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
28628 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
28629 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
28630 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
28631 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
28632 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
28633 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
28634 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
28635 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
28636 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
28637 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
28638 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
28639 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
28640 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
28641 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
28642 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
28643 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
28644 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
28645 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
28646 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
28647 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
28648 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
28649 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
28650 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
28651 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
28652 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
28653 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
28654 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
28655 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
28656 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
28657 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
28658 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
28659 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
28660 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
28661 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
28662 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
28663 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
28664 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
28665 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
28666 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
28667 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
28668 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
28669 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
28670 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
28671 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
28672 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
28673 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
28674 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
28675 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
28676 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
28677 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
28678 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
28679 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
28680 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
28681 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
28682 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
28683 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
28684 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
28685 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
28686 par-endh.adb par-labl.adb par-load.adb par-prag.adb
28687 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
28688 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
28689 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
28690 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
28691 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
28692 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
28693 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
28694 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
28695 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
28696 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
28697 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
28698 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
28699 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
28700 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
28701 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
28702 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
28703 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
28704 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
28705 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
28706 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
28707 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
28708 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
28709 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
28710 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
28711 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
28712 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
28713 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
28714 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
28715 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
28716 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
28717 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
28718 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
28719 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
28720 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
28721 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
28722 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
28723 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
28724 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
28725 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
28726 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
28727 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
28728 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
28729 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
28730 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
28731 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
28732 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
28733 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
28734 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
28735 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
28736 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
28737 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
28738 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
28739 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
28740 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
28741 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
28742 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
28743 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
28744 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
28745 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
28746 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
28747 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
28748 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
28749 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
28750 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
28751 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
28752 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
28753 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
28754 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
28755 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
28756 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
28757 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
28758 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
28759 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
28760 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
28761 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
28762 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
28763 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
28764 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
28765 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
28766 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
28767 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
28768 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
28769 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
28770 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
28771 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
28772 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
28773 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
28774 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
28775 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
28776 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
28777 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
28778 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
28779 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
28780 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
28781 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
28782 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
28783 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
28784 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
28785 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
28786 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
28787 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
28788 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
28789 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
28790 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
28791 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
28792 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
28793 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
28794 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
28795 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
28796 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
28797 stringt.ads stringt.h style.adb style.ads stylesw.adb
28798 stylesw.ads switch.adb switch.ads sysdep.c system.ads
28799 table.adb table.ads targparm.adb targparm.ads targtyps.c
28800 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
28801 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
28802 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
28803 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
28804 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
28805 usage.ads utils.c utils2.c validsw.adb validsw.ads
28806 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
28807 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
28808 xtreeprs.adb: Correct statements in comments about maintainership
28811 2002-09-23 Zack Weinberg <zack@codesourcery.com>
28813 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
28814 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
28815 * gnatvsn.ads: Gnat_Version_String is now a function.
28816 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
28817 copy the C version_string into a String and return it.
28818 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
28819 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
28820 Remove pragma Ident (Gnat_Version_String). If this was the
28821 sole use of package Gnatvsn, remove the with statement too.
28822 * gnat1drv.adb: Tweak -gnatv output.
28824 2002-09-17 Richard Henderson <rth@redhat.com>
28826 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
28827 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
28828 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
28829 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
28830 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
28831 and real_2expN instead of a loop.
28832 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
28833 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
28835 2002-08-25 Andre Leis <a.leis@gmx.net>
28836 David Billinghurst (David.Billinghurst@riotinto.com>
28838 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
28840 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28842 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
28843 Remove $(CONFIG_H) dependency.
28845 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
28847 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
28849 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28851 * adadecode.c (ada_demangle): Use xstrdup in lieu of
28853 * misc.c (gnat_decode_option): Likewise.
28855 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
28857 * make.adb (Add_Switch): Make Generic_Position a procedure. The
28858 function approach did not work well because of a side effect (the
28859 function call could reallocate the table which was being indexed
28860 using its result). Fixes ada/4851. [RESURRECTED]
28862 2002-07-01 Roger Sayle <roger@eyesopen.com>
28864 * ada/utils.c (builtin_function): Accept an additional parameter.
28866 2002-06-28 Andreas Jaeger <aj@suse.de>
28869 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
28872 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28874 * Makefile.in (SHELL): Set to @SHELL@.
28876 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28878 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
28879 array size calculation.
28881 2002-06-04 Andreas Jaeger <aj@suse.de>
28883 * Make-lang.in (gnatbind): Readd rule that has been lost in last
28886 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
28888 Merge from pch-branch:
28890 * config-lang.in (gtfiles): Add ada-tree.h.
28891 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
28892 (SET_TYPE_MODULUS): New.
28893 (SET_TYPE_INDEX): New.
28894 (SET_TYPE_DIGITS_VALUE): New.
28895 (SET_TYPE_RM_SIZE): New.
28896 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
28897 (SET_TYPE_ADA_SIZE): New.
28898 (SET_TYPE_ACTUAL_BOUNDS): New.
28899 (SET_DECL_CONST_CORRESPONDING_VAR): New.
28900 (SET_DECL_ORIGINAL_FIELD): New.
28901 (TREE_LOOP_ID): Correct typo.
28902 * decl.c: Use new macros.
28903 * utils.c: Include debug.h, use new macros.
28904 * utils2.c: Use new macros.
28906 * ada-tree.h: Update all macros for new tree description.
28907 (struct tree_loop_id): New.
28908 (union lang_tree_node): New.
28909 (struct lang_decl): New.
28910 (struct lang_type): New.
28911 * misc.c (gnat_mark_tree): Delete.
28912 (LANG_HOOKS_MARK_TREE): Delete.
28913 * trans.c (tree_transform): No longer any need to cast
28916 * utils.c (struct language_function): New dummy structure.
28918 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
28919 (misc.o): Likewise.
28920 (utils.o): Likewise; also gtype-ada.h.
28921 * Make-lang.in (gnat1): Add dependency on s-gtype.
28922 (gnatbind): Add dependency on $(CONFIG_H).
28923 * utils.c: Correct last #include.
28924 (stuct e_stack): Remove unnecessary 'static'.
28925 (mark_e_stack): Remove unused prototype.
28927 * scn-nlit.adb: Remove whitespace after version number to
28928 keep lines under 80 chars.
28929 * snames.adb: Likewise.
28930 * treepr.ads: Likewise.
28932 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
28933 (misc.o): Likewise.
28934 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
28935 * config-lang.in (gtfiles): New.
28936 * decl.c: Use gengtype for roots.
28937 * gigi.h: Use gengtype for roots.
28938 * trans.c: Use gengtype for roots.
28939 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
28941 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
28943 * misc.c (gnat_init): Adjust setting of internal_error_function.
28945 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
28947 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
28948 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
28949 gnat_ug_wnt.texi: Regenerate.
28951 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
28953 * 5ntaprop.adb (with System.OS_Primitives): Remove.
28955 * cstreams.c (max_path_len): Move from here ...
28956 * adaint.c (__gnat_max_path_len): ... to here.
28957 * adaint.c (__gnat_max_path_len): Declare.
28958 * g-dirope.adb (Max_Path): Adjust.
28959 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
28960 * i-cstrea.ads (max_path_len): Adjust.
28961 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
28962 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
28964 * Makefile.in, Make-lang.in: Documentation is now built in
28965 Make-lang.in. Store Info and generated Texinfo files in the
28967 * gnat_ug.texi: Remove CVS keywords, correct version number.
28968 Set file name correctly.
28970 * gnat_ug_*.texi: Add.
28971 * .cvsignore: Ignore generated Texinfo files.
28973 2002-05-30 Zack Weinberg <zack@codesourcery.com>
28975 * ada.h: Add MI guard macro.
28976 (SUBTYPE): Define constants with an anonymous enum, not static
28978 (IN): Cast constants to appropriate type before use.
28980 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
28982 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
28985 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28987 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
28988 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
28989 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
28990 (ALL_ADA_CFLAGS): Likewise.
28991 (ADA_INCLUDES): Likewise.
28992 Adapt for new working dir.
28993 (GNATBIND): Use Makefile.in version.
28994 (.SUFFIXES): Copy from Makefile.in.
28995 (ada-warn): Define.
28996 (.adb.o, .ads.o): Copy from Makefile.in.
28997 Added $(OUTPUT_OPTION).
28998 (GNAT1_C_OBJS): Moved from Makefile.in.
28999 Prefix with ada subdir.
29000 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
29001 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
29002 Adapt for new working dir.
29003 (EXTRA_GNATBIND_OBJS): Likewise.
29004 (ADA_BACKEND): Moved from Makefile.in.
29005 Renamed to avoid conflict with global BACKEND.
29007 (TARGET_ADA_SRCS): Moved from Makefile.in.
29008 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
29010 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
29011 (ada_extra_files): Moved from Makefile.in.
29012 Prefix with ada subdir.
29013 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
29014 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
29015 (ada/nmake.ads): Likewise.
29016 (update-sources): Moved from Makefile.in.
29017 Prefix with ada subdir.
29018 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
29019 (ADA_TREE_H): Likewise.
29020 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
29021 (ada/memtrack.o): Likewise.
29022 (ada/adadecode.o): Likewise.
29023 Update dependencies.
29024 (ada/adaint.o): New.
29025 (ada/argv.o): Moved from Makefile.in.
29026 Prefix with ada subdir.
29027 Update dependencies.
29028 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
29029 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
29030 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
29031 Prefix with ada subdir.
29032 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
29033 (GNAT DEPENDENCIES): Regenerate.
29034 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
29035 toplevel Makefile.in.
29036 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
29037 (TARGET_ADA_SRCS): Removed.
29038 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
29039 (GNATBIND_OBJS): Likewise.
29040 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
29041 (BACKEND): Removed.
29042 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
29043 (TREE_H): Likewise.
29044 (ada_extra_files): Likewise.
29045 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
29046 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
29047 (update-sources): Likewise.
29048 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
29049 (ADA_TREE_H): Likewise.
29050 (adadecoce.o): Likewise.
29051 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
29052 (GNAT DEPENDENCIES): Likewise.
29054 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29056 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
29057 * Makefile.in: Likewise.
29059 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29061 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
29062 Restore $(CONFIG_H) and prefix.o dependencies.
29063 (ada.stage[1-4]): Depend on stage?-start.
29065 * Makefile.in (b_gnatb.c): Depend on interfac.o.
29067 2002-05-02 Jim Wilson <wilson@redhat.com>
29069 * utils.c (finish_record_type): Change record_size to record_type.
29071 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
29073 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
29074 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
29075 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
29077 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
29079 * misc.c (gnat_parse_file): Update.
29081 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
29083 * misc.c (gnat_init): Don't set lang_attribute_common.
29085 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
29087 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
29089 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
29091 * gnat_ug.texi: New file.
29093 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
29094 instead of gfdl.texi
29096 * xgnatug.adb, ug_words: New files.
29098 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
29099 gnat_rm and gnat-style manuals.
29101 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
29103 * gigi.h (incomplete_type_error): Remove.
29104 * utils.c (incomplete_type_error): Remove.
29106 2002-04-16 Mark Mitchell <mark@codesourcery.com>
29108 * trans.c (tree_transform): Add has_scope argument to
29109 expand_start_stmt_expr.
29111 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
29113 * gigi.h (truthvalue_conversion): Rename.
29114 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
29115 * trans.c (tree_transform): Update.
29116 * utils2.c (truthvalue_conversion): Rename, update.
29117 (build_binary_op, build_unary_op): Update.
29119 2002-04-04 Laurent Guerby <guerby@acm.org>
29121 * make.adb: Implement -margs, remove restriction about file name placement.
29122 * makeusg.adb: Documentation update.
29123 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
29124 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
29126 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
29128 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
29129 (builtin_function): Similarly.
29131 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
29133 * decl.c (gnat_to_gnu_entity): Update.
29134 * gigi.h (mark_addressable): Rename.
29135 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
29136 * trans.c (tree_transform): Update.
29137 * utils.c (create_var_decl): Update.
29138 * util2.c (build_binary_op, build_unary_op,
29139 fill_vms_descriptor): Update.
29140 (mark_addressable): Rename, update.
29142 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
29144 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
29146 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
29147 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
29148 * trans.c (tree_transform, convert_with_check): Update.
29149 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
29152 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
29154 * gigi.h (finish_incomplete_decl): Rename.
29155 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
29156 * utils.c (gnat_init_decl_processing): Don't set hook.
29157 (finish_incomplete_decl): Rename.
29159 2002-03-29 Andreas Schwab <schwab@suse.de>
29161 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
29164 2001-03-28 Robert Dewar <dewar@gnat.com>
29167 (Remove_Checks): New procedure
29170 (Remove_Checks): New procedure
29173 Use new Duplicate_Subexpr functions
29174 (Duplicate_Subexpr_No_Checks): New procedure
29175 (Duplicate_Subexpr_No_Checks_Orig): New procedure
29176 (Duplicate_Subexpr): Restore original form (checks duplicated)
29177 (Duplicate_Subexpr): Call Remove_Checks
29180 (Duplicate_Subexpr_No_Checks): New procedure
29181 (Duplicate_Subexpr_No_Checks_Orig): New procedure
29182 Add 2002 to copyright notice
29184 * sem_util.adb: Use new Duplicate_Subexpr functions
29187 (Eval_Indexed_Component): This is the place to call
29188 Constant_Array_Ref and to replace the value. We simply merge
29189 the code of this function in here, since it is now no longer
29190 used elsewhere. This fixes the problem of the back end not
29191 realizing we were clever enough to see that this was
29193 (Expr_Val): Remove call to Constant_Array_Ref
29194 (Expr_Rep_Val): Remove call to Constant_Array_Ref
29196 (Constant_Array_Ref): Deal with string literals (patch
29197 suggested by Zack Weinberg on the gcc list)
29199 2001-03-28 Ed Schonberg <schonber@gnat.com>
29201 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
29202 Duplicate_Subexpr_Move_Checks.
29204 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
29205 Duplicate_Subexpr_Move_Checks.
29207 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
29208 value of array exists before retrieving it (it may a private
29209 protected component in a function).
29211 2002-03-28 Geert Bosch <bosch@gnat.com>
29213 * prj-pp.adb : New file.
29215 * prj-pp.ads : New file.
29217 2002-03-28 Andreas Jaeger <aj@suse.de>
29219 * Makefile.in (stamp-sdefault): Fix path for Makefile.
29221 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
29223 * misc.c (gnat_expand_expr): Move prototype.
29225 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
29227 * misc.c (insert_default_attributes): Remove.
29229 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
29231 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
29232 (gnat_init): Don't set hook.
29233 (gnat_expand_expr): Fix prototype.
29235 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
29237 * misc.c (ggc_p): Remove.
29239 2002-03-27 Geert Bosch <bosch@gnat.com>
29241 * prj-makr.ads, prj-makr.adb : New files.
29243 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
29245 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
29246 (lang_mark_tree): Make static, rename.
29248 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
29250 * misc.c (maybe_build_cleanup): Remove.
29252 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
29254 * gigi.h (yyparse): Remove.
29256 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
29258 * gnat_rm.texi: Sync with ACT version.
29259 (From Ben Brosgol <brosgol@gnat.com>)
29261 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
29263 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
29264 (gnat_init): Remove old hook.
29266 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
29268 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
29269 (yyparse): Rename gnat_parse_file.
29271 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
29273 Delete all lines containing "$Revision:".
29274 * xeinfo.adb: Don't look for revision numbers.
29275 * xnmake.adb: Likewise.
29276 * xsinfo.adb: Likewise.
29277 * xsnames.adb: Likewise.
29278 * xtreeprs.adb: Likewise.
29280 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29282 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
29283 gnat_tree_code_name): Delete.
29284 (tree_code_type, tree_code_length, tree_code_name): Define.
29285 (gnat_init): Don't try to copy into the various tree_code
29288 2002-03-11 Richard Henderson <rth@redhat.com>
29290 * Makefile.in (.NOTPARALLEL): Add fake tag.
29292 2002-03-07 Geert Bosch <bosch@gnat.com>
29294 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
29295 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
29296 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
29297 switch-m.adb, switch-m.ads : New files.
29299 2002-03-07 Geert Bosch <bosch@gnat.com>
29301 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
29302 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
29303 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
29304 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
29305 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
29306 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
29307 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
29308 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
29309 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
29310 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
29311 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
29312 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
29313 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
29314 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
29315 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
29316 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
29317 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
29318 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
29319 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
29320 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
29321 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
29322 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
29323 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
29324 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
29325 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
29326 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
29327 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
29328 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
29329 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
29330 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
29331 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
29332 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
29333 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
29334 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
29335 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
29336 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
29337 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
29338 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
29339 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
29340 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
29341 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
29342 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
29343 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
29344 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
29345 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
29346 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
29347 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
29348 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
29349 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
29350 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
29351 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
29352 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
29353 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
29354 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
29355 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
29356 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
29357 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
29358 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
29359 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
29360 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
29361 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
29362 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
29363 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
29364 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
29365 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
29366 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
29367 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
29368 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
29369 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
29370 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
29371 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
29372 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
29373 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
29374 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
29375 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
29376 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
29377 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
29378 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
29379 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
29380 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
29381 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
29382 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
29383 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
29384 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
29385 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
29386 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
29387 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
29388 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
29389 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
29390 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
29391 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
29392 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
29393 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
29394 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
29395 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
29396 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
29397 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
29399 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
29400 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
29401 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
29402 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
29404 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
29405 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
29407 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
29408 to mdll-fil.ad[bs] and mdll-util.ad[bs]
29410 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
29411 from mdllfile.ad[bs] and mdlltool.ad[bs]
29413 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29415 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
29416 lieu of explicit sizeof/sizeof.
29418 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
29420 * misc.c (copy_lang_decl): Remove.
29422 2002-02-27 Zack Weinberg <zack@codesourcery.com>
29424 * misc.c: Delete traditional-mode-related code copied from the
29425 C front end but not used, or used only to permit the compiler
29428 2002-02-07 Richard Henderson <rth@redhat.com>
29430 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
29431 * adaint.h (__gnat_to_gm_time): Update prototype.
29433 2002-01-30 Richard Henderson <rth@redhat.com>
29435 * trans.c (tree_transform) [N_Loop_Statement]: Use
29436 expand_exit_loop_top_cond.
29438 2001-12-23 Richard Henderson <rth@redhat.com>
29440 * utils.c (end_subprog_body): Push GC context around
29441 rest_of_compilation for nested functions.
29443 2001-12-23 Richard Henderson <rth@redhat.com>
29445 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
29447 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
29449 * gnat-style.texi (Declarations and Types): Remove ancient style
29450 rule which was mandated by code generation issues.
29452 * gnat-style.texi (header): Add @dircategory, @direntry.
29453 (title page): Remove date.
29454 (general) Add @./@: where approriate, and two spaces after the
29455 full stop at the end of a sentence. Use @samp markup when
29456 referring concrete lexical entities (keywords, attribute names
29457 etc.), and @syntax for ARM grammar elements. Use @r for English
29458 text in comments. Use @emph for emphasis. Change "if-statements"
29459 etc. to "if statements" (without @samp). Break long lines. Make
29460 casing of section names consistent.
29461 (Identifiers): Use @samp markup for variable names.
29462 (Comments): Use @samp markup for comment characters. Line-end
29463 comments may follow any Ada code, not just statements. Fix
29464 misspelling of "Integer" as "integer".
29465 (Loop statements): Do not use variable name "I", use "J".
29466 (Subprogram Declarations): Document alignment.
29467 (Subprogram Bodies, Block statements): Document empty line before
29470 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
29472 * make.adb (Add_Switch): Make Generic_Position a procedure. The
29473 function approach did not work well because of a side effect (the
29474 function call could reallocate the table which was being indexed
29475 using its result). Fixes ada/4851.
29477 2001-12-19 Robert Dewar <dewar@gnat.com>
29479 * bindgen.adb: Minor reformatting
29481 * cstand.adb: Minor reformatting
29483 * fmap.adb: Minor reformatting
29484 Change name from Add for Add_To_File_Map (Add is much too generic)
29485 Change Path_Name_Of to Mapped_Path_Name
29486 Change File_Name_Of to Mapped_File_Name
29487 Fix copyright dates in header
29490 Change name from Add for Add_To_File_Map (Add is much too generic)
29491 Change Path_Name_Of to Mapped_Path_Name
29492 Change File_Name_Of to Mapped_File_Name
29493 Fix copyright dates in header
29495 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
29496 Add use clause for Fmap.
29498 * make.adb: Minor reformatting
29500 * osint.adb: Minor reformatting. Change of names in Fmap.
29501 Add use clause for Fmap.
29503 * prj-env.adb: Minor reformatting
29505 * prj-env.ads: Minor reformatting
29507 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
29508 error found (there were odd exceptions to this general rule in
29509 -gnatec/-gnatem processing)
29511 2001-12-19 Olivier Hainque <hainque@gnat.com>
29513 * raise.c (__gnat_eh_personality): Exception handling personality
29514 routine for Ada. Still in rough state, inspired from the C++ version
29515 and still containing a bunch of debugging artifacts.
29516 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
29517 inspired from the C++ library.
29519 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
29520 exception handling integration.
29522 2001-12-19 Arnaud Charlet <charlet@gnat.com>
29524 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
29525 (HIE_SOURCES): Add s-secsta.ad{s,b}.
29526 (HIE_OBJS): Add s-fat*.o
29527 (RAVEN_SOURCES): Remove files that are no longer required. Add
29528 interrupt handling files.
29529 (RAVEN_MOD): Removed, no longer needed.
29531 2001-12-19 Robert Dewar <dewar@gnat.com>
29533 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
29534 Add 2001 to copyright date
29536 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
29537 need to force universal inlining for these cases.
29539 2001-12-19 Arnaud Charlet <charlet@gnat.com>
29541 * s-taprob.adb: Minor clean ups so that this unit can be used in
29544 * exp_ch7.adb: Allow use of secondary stack in HI mode.
29545 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
29547 2001-12-19 Vincent Celier <celier@gnat.com>
29549 * prj-tree.ads (Project_Node_Record): Add comments for components
29550 Pkg_Id and Case_Insensitive.
29552 2001-12-19 Pascal Obry <obry@gnat.com>
29554 * g-socket.adb: Minor reformatting. Found while reading code.
29556 2001-12-19 Robert Dewar <dewar@gnat.com>
29558 * prj-tree.ads: Minor reformatting
29560 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
29562 * config-lang.in (diff_excludes): Remove.
29564 2001-12-17 Ed Schonberg <schonber@gnat.com>
29566 * sem_res.adb (Resolve_Selected_Component): do not generate a
29567 discriminant check if the selected component is a component of
29568 the argument of an initialization procedure.
29570 * trans.c (tree_transform, case of arithmetic operators): If result
29571 type is private, the gnu_type is the base type of the full view,
29572 given that the full view itself may be a subtype.
29574 2001-12-17 Robert Dewar <dewar@gnat.com>
29576 * sem_res.adb: Minor reformatting
29578 * trans.c (tree_transform, case N_Real_Literal): Add missing third
29579 parameter in call to Machine (unknown horrible effects from this
29582 * urealp.h: Add definition of Round_Even for call to Machine
29583 Add third parameter for Machine
29585 2001-12-17 Ed Schonberg <schonber@gnat.com>
29587 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
29588 predefined units in No_Run_Time mode.
29590 2001-12-17 Richard Kenner <kenner@gnat.com>
29592 * misc.c (insn-codes.h): Now include.
29594 2001-12-17 Olivier Hainque <hainque@gnat.com>
29596 * a-except.adb: Preparation work for future integration of the GCC 3
29597 exception handling mechanism
29598 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
29599 to factorize previous code sequences and make them externally callable,
29600 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
29601 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
29602 Use the new notification routines.
29604 2001-12-17 Emmanuel Briot <briot@gnat.com>
29606 * prj-tree.ads (First_Choice_Of): Document the when others case
29608 2001-12-17 Arnaud Charlet <charlet@gnat.com>
29610 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
29611 HI-E mode, in order to support Ravenscar profile properly.
29613 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
29614 mode on 32 bits targets.
29616 2001-12-17 Vincent Celier <celier@gnat.com>
29618 * fmap.adb: Initial version.
29620 * fmap.ads: Initial version.
29622 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
29623 If search is successfully done, add to mapping.
29625 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
29628 (Gnatmake): Add new local variable Mapping_File_Name.
29629 Create mapping file when using project file(s).
29630 Delete mapping file before exiting.
29632 * opt.ads (Mapping_File_Name): New variable
29634 * osint.adb (Find_File): Use path name found in mapping, if any.
29636 * prj-env.adb (Create_Mapping_File): New procedure
29638 * prj-env.ads (Create_Mapping_File): New procedure.
29640 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
29643 * usage.adb: Add entry for new switch -gnatem.
29645 * Makefile.in: Add dependencies for fmap.o.
29647 2001-12-17 Ed Schonberg <schonber@gnat.com>
29649 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
29650 is a package instantiation rewritten as a package body.
29651 (Install_Withed_Unit): Undo previous change, now redundant.
29653 2001-12-17 Gary Dismukes <dismukes@gnat.com>
29656 (Compute_Length): Move conversion to Unsigned to callers.
29657 (Get_Max_Size): Convert Len expression to Unsigned after calls to
29658 Compute_Length and Determine_Range.
29659 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
29660 Compute_Length and Determine_Range.
29661 Above changes fix problem with length computation for supernull arrays
29662 where Max (Len, 0) wasn't getting applied due to the Unsigned
29663 conversion used by Compute_Length.
29665 2001-12-17 Arnaud Charlet <charlet@gnat.com>
29668 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
29669 System.Secondary_Stack.
29670 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
29672 Remove unused entity RE_Exception_Data.
29674 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
29676 * rident.ads (No_Secondary_Stack): New restriction.
29678 2001-12-17 Joel Brobecker <brobecke@gnat.com>
29680 * gnat_rm.texi: Fix minor typos. Found while reading the section
29681 regarding "Bit_Order Clauses" that was sent to a customer.
29682 Very interesting documentation!
29684 2001-12-17 Robert Dewar <dewar@gnat.com>
29686 * sem_case.adb (Choice_Image): Avoid creating improper character
29687 literal names by using the routine Set_Character_Literal_Name. This
29688 fixes bombs in certain error message cases.
29690 2001-12-17 Arnaud Charlet <charlet@gnat.com>
29692 * a-reatim.adb: Minor reformatting.
29694 2001-12-17 Ed Schonberg <schonber@gnat.com>
29696 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
29697 case where the formal is an extension of another formal in the current
29698 unit or in a parent generic unit.
29700 2001-12-17 Arnaud Charlet <charlet@gnat.com>
29702 * s-tposen.adb: Update comments. Minor reformatting.
29703 Minor code clean up.
29705 * s-tarest.adb: Update comments. Minor code reorganization.
29707 2001-12-17 Gary Dismukes <dismukes@gnat.com>
29709 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
29712 2001-12-17 Robert Dewar <dewar@gnat.com>
29714 * exp_attr.adb: Minor reformatting
29716 2001-12-17 Ed Schonberg <schonber@gnat.com>
29718 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
29719 derivations nested within a child unit: verify that the parent
29720 type is declared in an outer scope.
29722 2001-12-17 Robert Dewar <dewar@gnat.com>
29724 * sem_ch12.adb: Minor reformatting
29726 2001-12-17 Ed Schonberg <schonber@gnat.com>
29728 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
29729 warning if current unit is a predefined one, from which bodies may
29732 2001-12-17 Robert Dewar <dewar@gnat.com>
29734 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
29735 Fix header format. Add 2001 to copyright date.
29737 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
29738 which caused CE during compilation if checks were enabled.
29740 2001-12-17 Vincent Celier <celier@gnat.com>
29743 (Switches_Of): New function
29744 (Test_If_Relative_Path): New procedure
29745 (Add_Switches): Use new function Switches_Of
29746 (Collect_Arguments_And_Compile): Use new function Switches_Of.
29747 When using a project file, test if there are any relative
29748 search path. Fail if there are any.
29749 (Gnatmake): Only add switches for the primary directory when not using
29750 a project file. When using a project file, change directory to the
29751 object directory of the main project file. When using a project file,
29752 test if there are any relative search path. Fail if there are any.
29753 When using a project file, fail if specified executable is relative
29754 path with directory information, and prepend executable, if not
29755 specified as an absolute path, with the exec directory. Make sure
29756 that only one -o switch is transmitted to the linker.
29758 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
29761 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
29762 when using a non standard naming scheme.
29763 (Check_Ada_Naming_Scheme): Make sure that error messages
29764 do not raise exceptions.
29765 (Is_Illegal_Append): Return True if there is no dot in the suffix.
29766 (Language_Independent_Check): Check the exec directory.
29768 * prj.adb (Project_Empty): Add new component Exec_Directory
29771 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
29772 (Project_Data): Add component Exec_Directory
29774 * snames.adb: Updated to match snames.ads revision 1.215
29776 * snames.ads: Added Exec_Dir
29778 2001-12-17 Robert Dewar <dewar@gnat.com>
29780 * make.adb: Minor reformatting
29782 * prj-nmsc.adb: Minor reformatting
29784 * snames.adb: Updated to match snames.ads
29786 * snames.ads: Alphebetize entries for project file
29788 2001-12-17 Ed Schonberg <schonber@gnat.com>
29790 * trans.c (process_freeze_entity): Do nothing if the entity is a
29791 subprogram that was already elaborated.
29793 2001-12-17 Richard Kenner <kenner@gnat.com>
29795 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
29796 and Esize if object is referenced via pointer.
29798 2001-12-17 Ed Schonberg <schonber@gnat.com>
29800 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
29801 is discrete before analyzing choices.
29803 2001-12-17 Joel Brobecker <brobecke@gnat.com>
29805 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
29806 containing the name of the Ada Main Program. This string is mainly
29807 intended for the debugger.
29808 (Gen_Output_File_C): Do the equivalent change when generating a C file.
29810 2001-12-17 Robert Dewar <dewar@gnat.com>
29812 * ali.adb: Set new Dummy_Entry field in dependency entry
29814 * ali.ads: Add Dummy_Entry field to source dependency table
29816 * bcheck.adb (Check_Consistency): Ignore dummy D lines
29818 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
29820 * lib-writ.ads: Document dummy D lines for missing files.
29822 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
29824 2001-12-17 Robert Dewar <dewar@gnat.com>
29826 * ali.adb: Type reference does not reset current file.
29828 * ali.adb: Recognize and scan renaming reference
29830 * ali.ads: Add spec for storing renaming references.
29832 * lib-xref.ads: Add documentation for handling of renaming references
29834 * lib-xref.adb: Implement output of renaming reference.
29837 (Determine_Range): Document local variables
29838 (Determine_Range): Make sure Hbound is initialized. It looks as though
29839 there could be a real problem here with an uninitialized reference
29840 to Hbound, but no actual example of failure has been found.
29842 2001-12-17 Laurent Pautet <pautet@gnat.com>
29845 Fix comment of Shutdown_Socket and Close_Socket. These functions
29846 should not fail silently because if they are called twice, this
29847 probably means that there is a race condition in the user program.
29848 Anyway, this behaviour is consistent with the rest of this unit.
29849 When an error occurs, an exception is raised with the error message
29850 as exception message.
29852 2001-12-17 Robert Dewar <dewar@gnat.com>
29854 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
29855 that it happens before modification of Sloc values for -gnatD.
29857 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
29858 so that it happens before modification of Sloc values for -gnatD.
29860 * switch.adb: Minor reformatting
29862 2001-12-15 Richard Henderson <rth@redhat.com>
29864 * sem_ch7.adb: Wrap comment.
29866 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
29868 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
29869 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
29870 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
29871 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
29872 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
29873 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
29874 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
29875 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
29876 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
29877 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
29878 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
29879 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
29880 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
29881 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
29882 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
29883 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
29884 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
29885 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
29886 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
29887 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
29888 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
29889 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
29890 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
29891 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
29894 2001-12-14 Vincent Celier <celier@gnat.com>
29896 * osint.adb(Create_Debug_File): When an object file is specified,
29897 put the .dg file in the same directory as the object file.
29899 2001-12-14 Robert Dewar <dewar@gnat.com>
29901 * osint.adb: Minor reformatting
29903 * lib-xref.adb (Output_Instantiation): New procedure to generate
29904 instantiation references.
29906 * lib-xref.ads: Add documentation of handling of generic references.
29908 * ali.adb (Read_Instantiation_Ref): New procedure to read
29909 instantiation references
29911 * ali.ads: Add spec for storing instantiation references
29913 * bindusg.adb: Minor reformatting
29915 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
29917 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
29919 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
29921 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
29925 Add 2001 to copyright date
29926 Add entry for Latin-5 (Cyrillic ISO-8859-5)
29928 2001-12-14 Matt Gingell <gingell@gnat.com>
29930 * adaint.c: mktemp is a macro on Lynx and can not be used as an
29933 2001-12-14 Richard Kenner <kenner@gnat.com>
29935 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
29936 if operand is CONSTRUCTOR.
29938 2001-12-14 Ed Schonberg <schonber@gnat.com>
29940 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
29941 before emiting check on right-hand side, so that exception information
29944 2001-12-14 Richard Kenner <kenner@gnat.com>
29946 * utils.c (create_var_decl): Throw away initializing expression
29947 if just annotating types and non-constant.
29949 2001-12-14 Vincent Celier <celier@gnat.com>
29951 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
29954 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
29956 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
29958 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
29960 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
29962 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
29964 * ChangeLog: Remove piece of diff output.
29966 2001-12-14 Geert Bosch <bosch@gnat.com>
29968 * config-lang.in: Update copyright notice
29970 * layout.adb: Remove commented out code.
29972 * mdllfile.ads: Update copyright notice. Fix header format.
29974 * sem_case.ads: Likewise.
29976 * sem_ch3.adb: Minor reformatting.
29978 2001-12-12 Geert Bosch <bosch@gnat.com>
29980 * freeze.ads: Update copyright date.
29982 * g-comlin.ads: Minor reformatting.
29984 * gnat-style.texi: Fix typo.
29986 2001-12-12 Geert Bosch <bosch@gnat.com>
29988 * einfo.h: Regenerate.
29990 2001-12-12 Ed Schonberg <schonber@gnat.com>
29992 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
29993 on known node types, rather than untyped fields. Further cleanups.
29995 2001-12-12 Robert Dewar <dewar@gnat.com>
29998 (Save_Entity_Descendant): Minor comment update.
29999 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
30000 of an N_Attribute_Reference node. As per note below, this does not
30001 eliminate need for Associated_Node in attribute ref nodes.
30002 (Associated_Node): Documentation explicitly mentions attribute
30003 reference nodes, since this field is used in such nodes.
30005 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
30007 2001-12-12 Robert Dewar <dewar@gnat.com>
30009 * s-stalib.adb: Add more comments on with statements being needed
30011 * par-ch12.adb: Minor reformatting
30013 * prj-dect.ads: Fix copyright header
30015 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
30016 inputs fit in 32 bits, but the result still overflows.
30018 * s-fatgen.ads: Minor comment improvement
30020 2001-12-12 Ed Schonberg <schonber@gnat.com>
30022 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
30023 formal derived type, look for an inherited component from the full
30024 view of the parent, if any.
30026 2001-12-12 Robert Dewar <dewar@gnat.com>
30028 * checks.ads (Apply_Alignment_Check): New procedure.
30030 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
30031 ensure that the alignment of objects with address clauses is
30032 appropriate, and raise PE if not.
30034 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
30035 Exp_Pakd.Known_Aligned_Enough
30037 * mdllfile.ads: Minor reformatting
30039 * mlib-fil.ads: Minor reformatting
30041 2001-12-12 Ed Schonberg <schonber@gnat.com>
30043 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
30044 fix to any component reference if enclosing record has non-standard
30047 2001-12-12 Vincent Celier <celier@gnat.com>
30049 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
30052 2001-12-12 Ed Schonberg <schonber@gnat.com>
30054 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
30057 2001-12-12 Robert Dewar <dewar@gnat.com>
30059 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
30061 2001-12-12 Emmanuel Briot <briot@gnat.com>
30063 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
30064 and it adds dependencies to system.io.
30066 2001-12-12 Pascal Obry <obry@gnat.com>
30068 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
30071 2001-12-11 Ed Schonberg <schonber@gnat.com>
30073 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
30074 that is the parent of other generics, the instance body replaces the
30075 instance node. Retrieve the instance of the spec, which is the one
30076 that is visible in clients and within the body.
30078 2001-12-11 Vincent Celier <celier@gnat.com>
30080 * gnatmain.adb: Initial version.
30082 * gnatmain.ads: Initial version.
30084 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
30086 * snames.adb: Updated to match snames.ads.
30088 * snames.ads: Added Gnatstub.
30090 2001-12-11 Vincent Celier <celier@gnat.com>
30092 * prj-attr.adb (Initialization_Data): Change name from
30093 Initialisation_Data.
30095 2001-12-11 Emmanuel Briot <briot@gnat.com>
30097 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
30098 + and * applied to backslashed expressions like \r.
30100 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
30102 * g-os_lib.ads: String_List type added, Argument_List type is now
30103 subtype of String_List.
30105 2001-12-11 Robert Dewar <dewar@gnat.com>
30107 * g-os_lib.ads: Change copyright to FSF
30108 Add comments for String_List type
30110 2001-12-11 Vincent Celier <celier@gnat.com>
30112 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
30113 string to the buffer).
30115 2001-12-11 Ed Schonberg <schonber@gnat.com>
30117 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
30120 * sem_attr.adb: Simplify previous fix for Address.
30121 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
30122 to avoid anomalies where the bound of the type appears to raise
30125 2001-12-11 Robert Dewar <dewar@gnat.com>
30127 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
30130 2001-12-11 Ed Schonberg <schonber@gnat.com>
30132 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
30133 renamed unit before checking for recursive instantiations.
30135 2001-12-11 Emmanuel Briot <briot@gnat.com>
30137 * prj.ads: Add comments for some of the fields.
30139 2001-12-11 Robert Dewar <dewar@gnat.com>
30141 * lib-xref.adb (Output_Refs): Don't output type references outside
30142 the main unit if they are not otherwise referenced.
30144 2001-12-11 Ed Schonberg <schonber@gnat.com>
30146 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
30147 code and diagnose additional illegal uses
30149 * sem_util.adb (Is_Object_Reference): An indexed component is an
30150 object only if the prefix is.
30152 2001-12-11 Vincent Celier <celier@gnat.com>
30154 * g-diopit.adb: Initial version.
30156 * g-diopit.ads: Initial version.
30159 (Expand_Path): Avoid use of Unbounded_String
30160 (Find, Wildcard_Iterator): Moved to child package Iteration
30162 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
30164 2001-12-11 Robert Dewar <dewar@gnat.com>
30166 * sem_attr.adb: Minor reformatting
30168 2001-12-11 Ed Schonberg <schonber@gnat.com>
30170 * sem_ch3.adb: Clarify some ???.
30172 2001-12-11 Robert Dewar <dewar@gnat.com>
30174 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
30175 Exp_Pakd.Known_Aligned_Enough
30177 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
30178 version is moved to Exp_Ch13.
30180 2001-12-11 Robert Dewar <dewar@gnat.com>
30182 * einfo.ads: Minor reformatting
30184 * exp_ch5.adb: Add comment for previous.change
30186 * ali.adb: New interface for extended typeref stuff.
30188 * ali.ads: New interface for typeref stuff.
30190 * checks.adb (Apply_Alignment_Check): New procedure.
30192 * debug.adb: Add -gnatdM for modified ALI output
30194 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
30196 * lib-xref.adb: Extend generation of <..> notation to cover
30197 subtype/object types. Note that this is a complete rewrite,
30198 getting rid of the very nasty quadratic algorithm previously
30199 used for derived type output.
30201 * lib-xref.ads: Extend description of <..> notation to cover
30202 subtype/object types. Uses {..} for these other cases.
30203 Also use (..) for pointer types.
30205 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
30207 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
30208 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
30210 2001-12-11 Vincent Celier <celier@gnat.com>
30213 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
30214 Changed /BIND_ONLY to /ACTIONS=BIND
30215 Changed /LINK_ONLY to /ACTIONS=LINK
30217 2001-12-11 Ed Schonberg <schonber@gnat.com>
30219 * sem_ch8.adb (Find_Selected_Component): improved search for a
30220 candidate package in case of error.
30222 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
30223 chain back on scope stack before reinstalling use clauses.
30225 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
30226 is enabled, do not kill the code for the condition, to preserve
30229 2001-12-11 Robert Dewar <dewar@gnat.com>
30231 * checks.adb (Insert_Valid_Check): Apply validity check to expression
30232 of conversion, not to result of conversion.
30234 2001-12-11 Ed Schonberg <schonber@gnat.com>
30236 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
30237 before freezing parent. If the declarations are mutually recursive,
30238 an access to the current record type may be frozen before the
30239 derivation is complete.
30241 2001-12-05 Vincent Celier <celier@gnat.com>
30243 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
30244 -c /COMPILE_ONLY, -l /LINK_ONLY
30247 (Bind_Only): New Flag
30248 (Link_Only): New flag
30250 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
30253 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
30256 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
30257 (Gnatmake): Set the step flags. Only perform a step if the
30258 corresponding step flag is True.
30259 (Scan_Make_Arg): Reset the bind and link step flags when -u
30260 or -gnatc has been specified.
30262 2001-12-05 Ed Schonberg <schonber@gnat.com>
30264 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
30265 get bounds from right operand.
30267 * sem_eval.adb: Minor reformatting
30269 * exp_util.adb (Make_Literal_Range): use bound of literal rather
30270 than Index'First, its lower bound may be different from 1.
30272 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
30275 2001-12-05 Vincent Celier <celier@gnat.com>
30277 * prj-nmsc.adb Minor reformatting
30279 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
30280 set and libraries are not supported.
30282 2001-12-05 Ed Schonberg <schonber@gnat.com>
30284 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
30285 private view explicitly, so the back-end can treat as a global
30288 2001-12-05 Ed Schonberg <schonber@gnat.com>
30290 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
30291 unit, always replace instance node with new body, for ASIS use.
30293 2001-12-05 Vincent Celier <celier@gnat.com>
30295 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
30296 libraries are not supported and both attributes Library_Name and
30297 Library_Dir are specified.
30299 * prj-proc.adb (Expression): Set location of Result to location of
30302 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
30303 (prj-nmsc is now importing MLib.Tgt)
30305 * prj-proc.adb: Put the change indicated above that was forgotten.
30307 2001-12-05 Robert Dewar <dewar@gnat.com>
30309 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
30311 2001-12-05 Ed Schonberg <schonber@gnat.com>
30313 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
30314 constraint, introduce explicit subtype declaration and derive from it.
30316 * sem_ch3.adb: Minor reformatting
30318 2001-12-05 Robert Dewar <dewar@gnat.com>
30320 * checks.adb (Determine_Range): Increase cache size for checks.
30323 * exp_ch6.adb: Minor reformatting
30324 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
30325 a parameter whose root type is System.Address, since treating such
30326 subprograms as pure in the code generator is almost surely a mistake
30327 that will lead to unexpected results.
30329 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
30330 change handling of conversions.
30332 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
30334 2001-12-05 Ed Schonberg <schonber@gnat.com>
30336 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
30337 aggregate with static wrong size, attach generated Raise node to
30340 2001-12-05 Robert Dewar <dewar@gnat.com>
30342 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
30343 Fixes compilation abandoned bomb in B24009B.
30345 2001-12-05 Ed Schonberg <schonber@gnat.com>
30348 Document use of Associated_Node on Selected_Components.
30349 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
30350 to clarify use of untyped descendant fields.
30352 2001-12-05 Robert Dewar <dewar@gnat.com>
30354 * prj-dect.ads: Add ??? comment
30355 Add 2001 to copyright notice (was not done in after all)
30357 * prj-part.adb: Minor reformatting. Reword one awkward error message.
30359 * prj.ads: Minor reformatting throughout, and add some ??? comments
30361 * snames.ads: Minor reformatting
30363 2001-12-05 Geert Bosch <bosch@gnat.com>
30365 * snames.adb: Autoupdate
30367 2001-12-05 Vincent Celier <celier@gnat.com>
30369 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
30371 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
30373 * prj-env.adb: Minor comment changes (modifying -> extends).
30375 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
30377 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
30380 * prj.adb (Initialize): Change Modifying to Extends.
30382 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
30384 * prj.ads: Minor comment change (Modifying -> extending).
30386 * snames.ads: Change modifying to extends.
30388 2001-12-05 Robert Dewar <dewar@gnat.com>
30390 * sem_warn.adb: Remove stuff for conditionals, we are not going to
30393 * sem_warn.ads: Remove stuff for conditionals, we are not going to
30394 do this after all. Add 2001 to copyright notice
30396 2001-12-04 Geert Bosch <bosch@gnat.com>
30398 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
30400 2001-12-04 Robert Dewar <dewar@gnat.com>
30402 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
30403 location if we already have errors. Stops some cases of cascaded
30406 * errout.adb: Improve comment.
30408 2001-12-04 Robert Dewar <dewar@gnat.com>
30411 (Analyze_Formal_Type_Definition): Defend against Error.
30412 (Analyze_Formal_Subprogram): Defend against Error.
30414 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
30415 remove following semicolon if present. Removes cascaded error.
30417 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
30420 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
30421 exceptions equals 0.
30422 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
30423 Fixes PIWG E tests (which have to be run with -gnatL).
30425 2001-12-04 Robert Dewar <dewar@gnat.com>
30427 * einfo.ads: Minor reformatting
30429 2001-12-04 Ed Schonberg <schonber@gnat.com>
30431 * einfo.ads: Block_Node points to the identifier of the block, not to
30432 the block node itself, to preserve the link when the block is
30433 rewritten, e.g. within an if-statement with a static condition.
30435 * inline.adb (Cleanup_Scopes): recover block statement from block
30436 entity using new meaning of Block_Node.
30438 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
30439 identifier of block node, rather than to node itself.
30441 2001-12-04 Gary Dismukes <dismukes@gnat.com>
30444 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
30445 (Discrimify): Go back to setting the Etypes of the selected component
30446 because the Vname component does not exist at this point and will
30447 fail name resolution. Also set Analyzed.
30448 Remove with and use of Sem_Res.
30450 2001-12-04 Arnaud Charlet <charlet@gnat.com>
30452 * Makefile.in: (HIE_SOURCES): add s-fat*.
30454 2001-12-04 Robert Dewar <dewar@gnat.com>
30457 (Compile_Time_Known_Attribute): New procedure.
30458 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
30459 proper range check.
30461 2001-12-04 Ed Schonberg <schonber@gnat.com>
30463 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
30464 processing discriminants to diagnose illegal default values.
30466 2001-12-04 Ed Schonberg <schonber@gnat.com>
30468 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
30469 access discriminant within a type extension that constrains its
30470 parent discriminants.
30472 2001-12-04 Ed Schonberg <schonber@gnat.com>
30474 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
30475 is malformed, use instance of Any_Id to allow analysis to proceed.
30477 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
30478 type definition is illegal.
30479 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
30482 2001-12-04 Ed Schonberg <schonber@gnat.com>
30484 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
30487 2001-12-04 Robert Dewar <dewar@gnat.com>
30489 * errout.adb: Minor reformatting
30491 2001-12-04 Robert Dewar <dewar@gnat.com>
30493 * exp_util.adb: Minor reformatting from last change
30495 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
30496 which is a rewriting of an expression, traverse the original
30497 expression to remove warnings that may have been posted on it.
30499 2001-12-04 Ed Schonberg <schonber@gnat.com>
30501 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
30502 record that has other packed components.
30504 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
30506 * adaint.c: Minor cleanups.
30508 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
30510 * adaint.c: Do not use utime.h on vxworks.
30512 2001-12-04 Arnaud Charlet <charlet@gnat.com>
30514 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
30515 more confusion than it solves.
30517 2001-12-04 Geert bosch <bosch@gnat.com>
30519 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
30521 2001-12-04 Geert Bosch <bosch@gnat.com>
30523 * Makefile.in (update-sources): New target.
30524 For use by gcc_release script.
30526 2001-12-04 Ed Schonberg <schonber@gnat.com>
30528 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
30529 a configuration pragma, it is now legal wherever a pragma can appear.
30531 2001-12-04 Zack Weinberg <zack@codesourcery.com>
30533 * Makefile.in: Don't set ALL. Delete @cross_defines@,
30534 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
30535 is now @CROSS@ -DIN_GCC; update comment.
30537 2001-12-04 Robert Dewar <dewar@gnat.com>
30539 * einfo.adb (Has_Pragma_Pure_Function): New flag.
30540 Fix problem that stopped ceinfo from working
30542 * einfo.ads (Has_Pragma_Pure_Function): New flag.
30544 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
30546 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
30549 (File_Time_Stamp): New procedure.
30550 (Preserve_Mode): New boolean.
30551 (Write_Unit): Pass time stamp.
30552 Implement -p switch (preserve time stamps).
30554 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
30556 * gnatchop.adb: Do usage info for -p switch
30558 * adaint.h (__gnat_set_file_time_name): New function
30560 * adaint.c (__gnat_set_file_time_name): Implement
30562 * adaint.h: Fix typo
30564 2001-12-03 Robert Dewar <dewar@gnat.com>
30566 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
30567 have Associated_Node.
30569 2001-12-03 Robert Dewar <dewar@gnat.com>
30571 * prj-proc.adb: Minor reformatting
30573 * make.adb: Minor reformatting
30575 2001-12-03 Geert Bosch <bosch@gnat.com>
30577 * make.adb: Minor reformatting.
30579 2001-12-03 Robert Dewar <dewar@gnat.com>
30581 * sem_ch12.adb: Minor reformatting
30583 2001-12-03 Ed Schonberg <schonber@gnat.com>
30585 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
30586 push Standard on the stack before analyzing the instance body,
30587 in order to have a clean visibility environment.
30589 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
30591 2001-12-03 Ed Schonberg <schonber@gnat.com>
30593 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
30594 instantiation of a body that contains an inlined body.
30596 2001-12-03 Ed Schonberg <schonber@gnat.com>
30599 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
30600 to prevent freezing within formal packages.
30601 (Freeze_Subprogram_Body): If body comes from another instance that
30602 appeared before its own body, place freeze node at end of current
30603 declarative part, to prevent a back-end crash.
30604 (Inline_Instance_Body): Handle properly a package instance within
30605 a subprogram instance that is a child unit.
30607 2001-12-01 Graham Stott <grahams@redhat.com>
30609 * Makefile.in (misc.o): Add missing $(srcdir) prefix
30610 and add optabs.h dependency.
30612 * misc.c: Include optabs.h
30613 (gnat_tree_code_type): Make static and const.
30614 (gnat_tree_code_length): Likewise.
30615 (gnat_tree_code_name): Likewise.
30616 (update_setjmp_buf): Obtain operands mode from insn_data.
30618 2001-11-29 Richard Henderson <rth@redhat.com>
30620 * init.c: Remove obsolete dwarf2 frame.h section.
30622 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
30624 * Make-lang.in (ada.generated-manpages): New dummy target.
30626 2001-11-29 Ed Schonberg <schonber@gnat.com>
30628 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
30629 into Command, an array conversion is illegal here. Uncovered by
30632 2001-11-28 Geert Bosch <bosch@gnat.com>
30634 * init.c: Minor whitespace changes.
30636 2001-11-28 Doug Rupp <rupp@gnat.com>
30638 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
30641 2001-11-28 Zack Weinberg <zack@codesourcery.com>
30643 * misc.c (gnat_expand_constant): Move declaration above
30644 definition of lang_hooks.
30645 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
30646 (gnat_init): lang_expand_constant no longer exists.
30648 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
30649 always have vprintf.
30650 (gnat_init): Always call set_internal_error_function.
30652 2001-11-27 Andreas Jaeger <aj@suse.de>
30654 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
30656 2001-11-27 Laurent Guerby <guerby@acm.org>
30658 * Makefile.in: Regenerate Ada dependencies.
30660 2001-11-26 Richard Henderson <rth@redhat.com>
30662 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
30663 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
30664 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
30666 2001-11-25 Laurent Guerby <guerby@acm.org>
30668 * sysdep.c (rts_get_*): Fix style.
30670 2001-11-19 Laurent Guerby <guerby@acm.org>
30672 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
30673 since it is of no apparent use and cause warnings.
30675 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
30677 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
30679 (gnat_init): Don't return NULL.
30680 (finish_parse): Remove.
30682 2001-11-17 Laurent Guerby <guerby@acm.org>
30684 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
30685 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
30686 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
30687 * lang-spec.h: Add missing struct field to silence warnings.
30688 * sysdep.c (rts_get_*): Provide K&R prototype.
30689 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
30690 * traceback.c (Unlock_Task, Lock_Task): Likewise.
30691 * tracebak.c (__gnat_backtrace): Remove unused variable.
30692 * utils.c (end_subprog_body): Move to K&R style.
30694 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30696 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
30698 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
30700 * misc.c (gnat_init): Change prototype. Include the
30701 functionality of the old init_parse and init_decl_processing.
30702 (gnat_init_decl_processing): New prototype.
30703 (init_parse): Remove.
30704 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
30706 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
30708 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
30709 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
30710 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
30711 set_yydebug): Remove.
30713 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
30715 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
30716 (struct lang_hooks): Constify.
30717 (language_string, lang_identify): Remove.
30718 * utils.c (init_decl_processing): Update.
30720 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
30722 * misc.c: Include langhooks-def.h.
30723 * Makefile.in: Update.
30725 2001-10-30 Robert Dewar <dewar@gnat.com>
30728 (Check_Identifier): Rewrite circuit to be compatible with use of letters
30729 in the upper half of ASCII.
30730 (Check_Identifier): Minor reformatting
30732 2001-10-30 Geert Bosch <bosch@gnat.com>
30734 * (Associated_Node, Set_Associated_Node): Do not check for
30737 2001-10-30 Robert Dewar <dewar@gnat.com>
30739 * a-reatim.ads: Minor reformatting
30741 2001-10-30 Robert Dewar <dewar@gnat.com>
30743 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
30744 undocumented declarations.
30746 2001-10-30 Pascal Obry <obry@gnat.com>
30748 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
30749 to the binder and linker.
30752 * mdll.ads: Fix layout. Update copyright notice.
30754 * mdll.adb: Fix layout. Update copyright notice.
30756 2001-10-30 Robert Dewar <dewar@gnat.com>
30758 * usage.adb: Minor fix to output for -gnaty.
30760 2001-10-30 Ed Schonberg <schonber@gnat.com>
30762 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
30763 to accommodate all its possible values.
30765 * a-reatim.adb (Split): Special-case handling of Time_Span_First
30766 and of small absolute values of T.
30768 2001-10-30 Richard Kenner <kenner@gnat.com>
30770 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
30771 set_mem_attributes since not needed and wrong if RESULT if a REG;
30772 fixes ACATS failures.
30774 2001-10-30 Geert Bosch <bosch@gnat.com>
30776 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
30777 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
30779 2001-10-30 Robert Dewar <dewar@gnat.com>
30781 * bindusg.adb: Undocument -f switch.
30783 * gnatcmd.adb: Remove /FULL_ELABORATION.
30785 * opt.ads (Force_RM_Elaboration_Order): Document that this is
30788 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
30790 * gnatbind.adb: Minor update of warning msg.
30792 2001-10-30 Vincent Celier <celier@gnat.com>
30794 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
30795 for project file switches (-P (/PROJECT_FILE=),
30796 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
30799 2001-10-30 Geert Bosch <bosch@gnat.com>
30801 * decl.c: Minor whitespace fixes.
30803 2001-10-30 Richard Kenner <kenner@gnat.com>
30805 * utils2.c (build_allocator): Test for SIZE overflow in array case too
30807 2001-10-30 Geert Bosch <bosch@gnat.com>
30809 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
30810 Found due to GCC 3.0 warning of using uninitialized value.
30813 (Get_Max_Size): Use variant record for tracking value/expression.
30814 Makes logic clearer and prevents warnings for uninitialized variables.
30815 (Layout_Array_Type): Use variant record for tracking value/expression.
30816 Makes logic clearer and prevents warnings for uninitialized variables.
30818 2001-10-30 Robert Dewar <dewar@gnat.com>
30820 * lib.adb: Minor reformatting
30822 * s-taprop.ads: Minor reformatting
30824 2001-10-29 Laurent Guerby <guerby@acm.org>
30827 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
30829 (_gnat_error_handler): Make MSG const.
30831 2001-10-29 Richard Kenner <kenner@gnat.com>
30833 * sysdep.c: Fix localtime_r problem on LynxOS.
30834 Also remove #elif to avoid warnings.
30836 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
30839 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
30841 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
30843 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
30844 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
30845 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
30846 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
30847 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
30848 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
30849 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
30850 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
30851 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
30852 types.ads, urealp.adb: Fix spelling errors.
30854 2001-10-27 Laurent Guerby <guerby@acm.org>
30856 * trans.c (gigi): Fix non determinism leading to bootstrap
30857 comparison failures for debugging information.
30859 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
30861 * gnat_rm.texi: Use @./@: where appropriate.
30863 2001-10-26 Robert Dewar <dewar@gnat.com>
30865 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
30867 2001-10-26 Richard Kenner <kenner@gnat.com>
30869 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
30871 2001-10-26 Richard Kenner <kenner@gnat.com>
30873 * decl.c (validate_size): Modify message for bad size to avoid
30874 implication that compiler is modifying the size.
30876 2001-10-26 Robert Dewar <dewar@gnat.com>
30878 * prj-util.adb: Minor reformatting. Fix bad header format.
30880 2001-10-26 Robert Dewar <dewar@gnat.com>
30882 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
30884 * sinfo.ads: Clarify use of Associated_Node (documentation only).
30886 * sem_ch12.adb: Change Node4 to Associated_Node. Change
30887 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
30888 much more narrowly in places where needed. These are cleanups.
30890 2001-10-26 Joel Brobecker <brobecke@gnat.com>
30892 * 5zosinte.ads (null_pthread): new constant.
30895 (Initialize_TCB): Initialize thread ID to null, to be able to verify
30896 later that this field has been set.
30897 (Finalize_TCB): ditto.
30898 (Suspend_Task): Verify that the thread ID is not null before using it.
30899 (Resume_Task): ditto.
30902 (Resume_All_Tasks): Lock the tasks list before using it.
30903 (Suspend_All_Tasks): ditto.
30905 2001-10-26 Richard Kenner <kenner@gnat.com>
30907 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
30908 Make constant variant of designated type for Is_Access_Constant.
30909 Call update_pointer_to with main variant.
30911 * trans.c (process_freeze_entity, process_type):
30912 Call update_pointer_to on main variant.
30914 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
30915 If main variant, update all other variants.
30917 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
30920 2001-10-26 Robert Dewar <dewar@gnat.com>
30922 * prj-util.adb: Minor reformatting
30924 2001-10-26 Robert Dewar <dewar@gnat.com>
30926 * prj-util.adb: Minor reformatting
30928 2001-10-26 Robert Dewar <dewar@gnat.com>
30930 * prj-attr.adb: Minor reformatting throughout
30932 2001-10-26 Robert Dewar <dewar@gnat.com>
30934 * prj-attr.ads: Minor reformatting
30935 Add ??? comment (this whole spec has almost no comments)
30937 2001-10-26 Vincent Celier <celier@gnat.com>
30939 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
30940 ("//") that precede the drive letter on Interix.
30942 2001-10-26 Geert Bosch <bosch@gnat.com>
30944 * gnat_rm.texi: Add GNAT Reference Manual.
30946 2001-10-25 Robert Dewar <dewar@gnat.com>
30948 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
30949 is Error. Similar change for other renaming cases.
30951 2001-10-25 Robert Dewar <dewar@gnat.com>
30953 * s-atacco.ads: Add pragma Inline_Always for functions.
30954 Fix header format. Add copyright 2001
30956 2001-10-25 Ed Schonberg <schonber@gnat.com>
30958 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
30959 return Error rather than Empty so that analysis can proceed.
30961 2001-10-25 Ed Schonberg <schonber@gnat.com>
30963 * sem_util.adb (Enter_Name): better handling of cascaded error
30964 messages when a unit appears in its own context.
30966 2001-10-25 Ed Schonberg <schonber@gnat.com>
30968 * sem_util.adb (Defining_Entity): in case of error, attach created
30969 entity to specification, so that semantic analysis can proceed.
30971 2001-10-25 Robert Dewar <dewar@gnat.com>
30974 (Defining_Entity): Deal with Error.
30975 (Process_End_Label): Deal with bad end label for.
30977 2001-10-25 Ed Schonberg <schonber@gnat.com>
30979 * sem_elab.adb (Check_A_Call): refine message when call is in an
30980 instance but callee is not declared in the generic unit.
30982 2001-10-25 Ed Schonberg <schonber@gnat.com>
30984 * sem_elab.adb (Check_A_Call): check for renaming before finding the
30985 enclosing unit, which may already be different from the calling unit.
30987 2001-10-25 Geert Bosch <bosch@gnat.com>
30989 * 4gintnam.ads: fix header format.
30991 2001-10-25 Ed Schonberg <schonber@gnat.com>
30993 * sem_res.adb (Resolve_Call): if the call is actually an indexing
30994 operation on the result of a parameterless call, perform elaboration
30995 check after the node has been properly rewritten.
30997 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
30998 inlined within the generic tree, the defining identifier is not a
31001 2001-10-25 Ed Schonberg <schonber@gnat.com>
31003 * sem_res.adb (Resolve): special-case resolution of Null in an
31004 instance or an inlined body to avoid view conflicts.
31006 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
31007 compatibility by retrieving the access type of the generic copy.
31009 2001-10-25 Robert Dewar <dewar@gnat.com>
31012 (Analyze_Number_Declaration): Handle error expression.
31013 (Signed_Integer_Type_Declaration): Handle error bound.
31014 (Analyze_Subtype_Indication): Handle error range.
31016 * sem_util.adb (Get_Index_Bounds): Check for Error.
31018 2001-10-25 Robert Dewar <dewar@gnat.com>
31020 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
31021 in no run time mode.
31023 2001-10-25 Pascal Obry <obry@gnat.com>
31025 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
31026 mode case for ALLOC case.
31028 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
31029 all platforms. Improvement of last change.
31031 2001-10-25 Robert Dewar <dewar@gnat.com>
31033 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
31035 2001-10-25 Geert Bosch <bosch@gnat.com>
31037 * osint.adb (Is_Relative): Remove duplicate.
31039 2001-10-25 Pascal Obry <obry@gnat.com>
31041 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
31042 pathnames in UNIX and DOS style with drive letter.
31043 (Is_Relative): new routine.
31045 * osint.adb: Minor reformatting
31047 * osint.adb (Is_Relative): implementation using
31048 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
31050 2001-10-25 Pascal Obry <obry@gnat.com>
31052 * g-dirope.adb (Basename): correctly compute offset between the
31053 original Path and the translated one.
31055 * g-dirope.adb: (Base_Name): add some comments.
31057 2001-10-25 Robert Dewar <dewar@gnat.com>
31059 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
31060 in HIE mode, avoids compilation abandoned message
31062 * exp_imgv.adb: Correct typo in previous change
31064 * exp_imgv.adb: Correct typo in previous change (not my day!)
31066 2001-10-25 Robert Dewar <dewar@gnat.com>
31068 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
31070 2001-10-25 Pascal Obry <obry@gnat.com>
31072 * g-awk.ads: Move all pragma inlines next to the routine
31073 declarations. This is more uniform with other GNAT spec.
31075 2001-10-22 Geert Bosch <bosch@gnat.com>
31077 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
31079 2001-10-19 Geert Bosch <bosch@gnat.com>
31081 * Makefile.in (tools, gnattools): Remove gnatmem.
31083 2001-10-17 Richard Henderson <rth@redhat.com>
31085 * Makefile.in (misc.o): Depend on langhooks.h.
31086 * misc.c: Include it.
31087 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
31088 (LANG_HOOKS_DECODE_OPTION): New.
31089 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
31091 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
31093 * trans.c (tree_transform): Adjust to recent change in
31094 expand_asm_operands to implement named asm operands.
31096 2001-10-11 Ed Schonberg <schonber@gnat.com>
31098 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
31099 renaming of discriminant for mutable record type.
31101 2001-10-11 Robert Dewar <dewar@gnat.com>
31103 * validsw.adb: Properly save -gnatVn status.
31105 2001-10-11 Robert Dewar <dewar@gnat.com>
31107 * usage.adb: Add lines for V switch.
31109 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
31110 (/VALIDITY_CHECKING).
31112 2001-10-11 Ed Schonberg <schonber@gnat.com>
31114 * sem_type.adb (Add_One_Interp): an operator for a type declared in
31115 an extension of System is known to be visible.
31117 2001-10-11 Ed Schonberg <schonber@gnat.com>
31119 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
31120 properly. Fixes regression on ACATS C34005G.
31122 2001-10-11 Robert Dewar <dewar@gnat.com>
31124 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
31125 loop in generic instance, since this is likely not very useful.
31127 2001-10-11 Robert Dewar <dewar@gnat.com>
31129 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
31130 the error message for high integrity mode.
31132 * rtsfind.adb (RTE): Give message if we try to find an entity that
31133 is not available in high integrity mode.
31136 (OK_To_Use_In_HIE_Mode): New array.
31137 (RTE): May return Empty in high integrity mode.
31139 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
31140 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
31142 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
31143 unit if not inlined always and in no runtime mode. Fixes problem
31144 caused by new Rtsfind changes.
31146 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
31149 * rtsfind.adb (RTE): Make sure we do not try to load unit after
31150 giving message for entity not available in high integrity mode.
31152 2001-10-11 Pascal Obry <obry@gnat.com>
31154 * impunit.adb: Add GNAT.CRC32.
31156 2001-10-11 Ed Schonberg <schonber@gnat.com>
31158 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
31159 properly the case where one universal operand in a non-static
31160 exponentiation of a real literal.
31162 2001-10-11 Ed Schonberg <schonber@gnat.com>
31164 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
31165 clause, return the gobal finalization list, for lack of anthing else.
31167 2001-10-11 Ed Schonberg <schonber@gnat.com>
31169 * exp_ch7.adb (Make_Transient_Block): if statement is within
31170 exception handler, always use new transient scope to place Clean
31173 2001-10-11 Pascal Obry <obry@gnat.com>
31176 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
31177 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
31178 (GNATLS_RTL_OBJS): add g-crc32.o
31179 (GNATMAKE_RTL_OBJS): add g-crc32.o
31182 (CRC_Match): new function.
31183 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
31184 instead of the previous simple checksum algorithm.
31185 (Time_Stamp_Mismatch): use CRC_Match for comparison.
31186 (Set_Source_Table): idem.
31189 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
31190 instead of simple checksum.
31191 (CRC_Match): new function.
31192 (CRC_Error): new constant.
31194 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
31195 a CRC now and not a simple checksum. A CRC uses lower-case hex
31196 letters, fixes ambiguity in parsing.
31198 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
31199 is what this variable will store.
31201 * bcheck.adb: Change reference to chechsum in comments by CRC.
31202 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
31203 rename All_Checksum_Match to All_CRC_Match. Change due to API
31204 renaming since now GNAT does not use a simple checksum but a
31205 CRC using GNAT.CRC32.
31207 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
31208 now and not anymore a simple checksum.
31210 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
31213 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
31216 (Restore_Scan_State): rename Checksum to CRC.
31217 (Save_Scan_State): idem.
31221 (Checksum): rename to CRC.
31222 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
31224 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
31225 GNAT.CRC32). Update copyright notice.
31227 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
31228 GNAT.CRC32). Update copyright notice.
31231 (Accumulate_Checksum): removed.
31232 (Update): new procedure. Add a wide-character into the CRC.
31235 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
31236 (Load_File): fix initialization of S (change Source_Checksum to
31239 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
31240 Source_CRC in S initialization.
31242 * sinput.adb (Source_Checksum): renamed to Source_CRC.
31244 * sinput.ads (Source_Checksum): renamed to Source_CRC.
31245 Update comments for the CRC.
31247 * types.adb (Hex): Use lowercase for the letter part.
31249 * types.ads (Get_Hex_String): Returns the hexadecimal representation
31250 for a word. This is currently used only for CRC. In previous version,
31251 the checksum was using a representation with all letter being
31252 upper-case. With the new implementation (using CRC) we do not remove
31253 the 32th bit of the CRC, so we can have an upper-case starting letter
31254 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
31255 It is ambigous since the CRC was optional and could be followed by
31256 options like EB, EE. So now this routines uses lower-case letter for
31257 the hexadecimal representation. Strange enough only lower case letters
31258 where checked in Scan_ALI (even if this was not a possible case).
31260 * gnatvsn.ads (Library_Version): changed to 3.15a.
31262 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
31265 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
31268 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
31269 Add 2001 to copyright notice
31270 (Accumulate_Checksum): Modify to use System.CRC32.
31272 * ali-util.ads: Redo changes of previous revision to continue to use
31273 the word Checksum. Add 2001 to copyright notice.
31275 * ali.adb: Undo some of previous changes, not needed.
31276 Keep the change for lower case letters in the checksum.
31278 * ali.ads: Undo previous change not needed.
31280 * bcheck.adb: Undo most of previous change, not needed.
31281 But do use Checksums_Match for checksum comparison.
31283 * gnatls.adb: Undo most of previous change, not needed.
31284 But do use Checksums_Match for comparing checksums.
31286 * lib-load.adb: Undo previous change, not needed.
31288 * lib-writ.adb: Undo previous change, not needed.
31290 * lib-writ.ads: Document that checksums use lower case,
31291 not upper case letters.
31293 * scans.adb: Undo previous change, not needed
31295 * scans.ads: Undo previous change, not needed.
31297 * scn-nlit.adb: Undo previous changes, not needed.
31299 * scn-slit.adb: Undo previous change, not needed. Fix header format.
31302 (Accumulate_Checksum): Use System.CRC32.
31303 (Initialize_Checksum): New procedure.
31304 Remove other changes of previous revision.
31306 * sinput-p.adb: Undo previous change, not needed.
31308 * sinput.adb: Undo previous change, not needed.
31310 * sinput-l.adb: Undo previous change, not needed.
31312 * sinput.ads: Undo previous change, not needed. Keep only comment
31313 on new checksum algorithm
31315 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
31316 Also remove a-tags and a-stream from GNAT sources.
31318 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
31320 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
31322 2001-10-11 Geert Bosch <bosch@gnat.com>
31324 * einfo.h: Regenerate.
31326 * nmake.ads: Regenerate.
31328 * nmake.adb: Regenerate.
31330 * sinfo.h: Regenerate.
31332 * treeprs.adb: Regenerate.
31334 2001-10-10 Geert Bosch <bosch@gnat.com>
31336 * gnat-style.texi: New file describing coding guidelines for Ada.
31338 2001-10-10 Ed Schonberg <schonber@gnat.com>
31340 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
31343 2001-10-10 Geert Bosch <bosch@gnat.com>
31345 * snames.ads: Add new names for project facility.
31347 * snames.adb: Update to reflect snames.ads changes.
31349 * snames.h: Update to reflect snames.ads changes.
31351 2001-10-10 Vincent Celier <celier@gnat.com>
31354 (Add_Switches): reflect the changes for the switches attributes
31355 Default_Switches indexed by the programming language,
31356 Switches indexed by the file name.
31357 (Collect_Arguments_And_Compile): Idem.
31358 Reflect the attribute name changes.
31361 (Initialisation_Data): Change the names of some packages and
31363 (Initialize): process case insensitive associative arrays.
31366 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
31369 (Parse_Attribute_Declaration): For case insensitive associative
31370 arrays, set the index string to lower case.
31373 Reflect the changes of the project attributes.
31376 Replace Check_Naming_Scheme by Ada_Check and
31377 Language_Independent_Check.
31380 Replaced Check_Naming_Scheme by 2 procedures:
31381 Ada_Check and Language_Independent_Check.
31384 (Process_Declarative_Items): For case-insensitive associative
31385 arrays, set the index string to lower case.
31386 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
31387 Prj.Nmsc.Check_Naming_Scheme.
31390 (Case_Insensitive): New function
31391 (Set_Case_Insensitive): New procedure
31394 (Case_Insensitive): New function
31395 (Set_Case_Insensitive): New procedure
31396 (Project_Node_Record): New flag Case_Insensitive.
31399 (Value_Of): new function to get the string value of a single
31400 string variable or attribute.
31403 (Value_Of): new function to get the string value of a single
31404 string variable or attribute.
31407 (Ada_Default_Spec_Suffix): New function
31408 (Ada_Default_Impl_Suffix): New function
31409 Change definitions of several constants to reflect
31410 new components of record types.
31413 (Naming_Data): Change several components to reflect new
31414 elements of naming schemes.
31415 (Project_Data): New flags Sources_Present and
31416 Language_Independent_Checked.
31417 (Ada_Default_Spec_Suffix): New function.
31418 (Ada_Default_Impl_Suffix): New function.
31421 Modification of predefined names for project manager: added
31422 Implementation, Specification_Exceptions, Implementation_Exceptions,
31423 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
31424 Default_Switches, _Languages, Builder, Cross_Reference,
31425 Finder. Removed Body_Part, Specification_Append, Body_Append,
31426 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
31429 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
31432 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
31433 not that it is Nil_Variable_Value.
31435 * prj.ads: Add ??? for uncommented declarations
31437 2001-10-10 Ed Schonberg <schonber@gnat.com>
31439 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
31440 constant, do not indicate possible modification, so that gigi can
31441 treat it as a bona fide constant.
31443 2001-10-10 Robert Dewar <dewar@gnat.com>
31445 * sem_prag.adb: Add processing for pragma External.
31447 * snames.ads: Add entry for pragma External.
31449 * par-prag.adb: Add pragma External.
31451 * snames.adb: Updated to match snames.ads.
31453 2001-10-10 Ed Schonberg <schonber@gnat.com>
31455 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
31456 a dynamic task if the allocator appears in an indexed assignment
31457 or selected component assignment.
31459 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
31460 For a dynamic task in an assignment statement, use target of
31461 assignment to generate meaningful name.
31463 2001-10-10 Ed Schonberg <schonber@gnat.com>
31465 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
31468 * einfo.ads: Body_Entity is also defined for generic package.
31469 Documentation change only
31471 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
31472 others_choice for a discriminated component initialization,
31473 convert discriminant references into the corresponding discriminals.
31475 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
31476 only if original type is private and expression has to be wrapped
31480 (Apply_Constraint_Check): Do not perform length check
31481 if expression is an aggregate with only an others_choice.
31482 (Length_N_Cond): two references to the same in_parameter
31483 (typically the discriminal in an init_proc) denote the same value.
31484 Two useful optimization uncovered by bugfixes above.
31486 2001-10-10 Robert Dewar <dewar@gnat.com>
31488 * xeinfo.adb: Change int to char in translation of enumeration types.
31489 This fixes a problem in the C representation of component alignment.
31490 Add 2001 to copyright notice
31492 2001-10-10 Richard Kenner <kenner@gnat.com>
31494 * decl.c: (validate_size): Do check size of object of integral type
31495 if it is a packed array type.
31497 2001-10-10 Richard Kenner <kenner@gnat.com>
31499 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
31500 VAR_DECL for constant if not Is_Public but -O0.
31502 2001-10-10 Richard Kenner <kenner@gnat.com>
31504 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
31506 2001-10-10 Geert Bosch <bosch@gnat.com>
31508 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
31509 use '/' as switch character, allowing for absolute file names.
31511 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
31513 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
31516 2001-10-08 Geert Bosch <bosch@gnat.com>
31518 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
31519 Automatically build utilities when files need to be regenerated.
31521 2001-10-08 Geert Bosch <bosch@gnat.com>
31523 * xsnames.adb: New utility for updating snames.ads and snames.adb
31525 2001-10-08 Zack Weinberg <zack@codesourcery.com>
31527 * Make-lang.in (ADAFLAGS): Add -W -Wall.
31528 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
31529 (gnat1): Also depend on attribs.o.
31530 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
31531 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
31532 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
31533 (ADAFLAGS): Add -W -Wall.
31534 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
31537 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
31538 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
31539 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
31540 Use $(ADAC), not $(CC), as compilation command.
31542 (gnattools): Depend directly on tools to build, don't use
31544 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
31546 * einfo.h, sinfo.h: New files (autogenerated).
31548 2001-10-08 Richard Henderson <rth@redhat.com>
31550 * comperr.adb (Abort_In_Progress): New.
31551 (Compiler_Abort): Use it to prevent recursion.
31553 2001-10-08 Robert Dewar <dewar@gnat.com>
31555 * atree.adb: Set Error_Posted in Error node, helps error recovery.
31557 * par-endh.adb (Output_End_Expected): We should also not test
31558 Error_Posted on the Error node, since now it is always set.
31560 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
31561 to help error recovery. Part of general work on 9407-004.
31563 * par.adb: Add ??? for misuse of error
31566 (Resolve): Defend against Error, fixes 9407-003.
31567 (Resolve_Discrete_Subtype_Indication): Defend against Error.
31569 * sinfo.ads (N_Error): Now has Etype field (which will be set
31570 to Any_Type to help error recovery).
31572 2001-10-08 Richard Kenner (kenner@gnat.com)
31574 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
31575 Consistently set MEM attributes from expression; fixes
31576 bootstrap failure on x86.
31578 2001-10-08 Geert Bosch (bosch@gnat.com)
31580 * 5oosinte.adb: Add 2001 to copyright notice.
31582 2001-10-08 Geert Bosch (bosch@gnat.com)
31584 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
31586 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
31588 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
31590 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
31592 2001-10-05 Geert Bosch (bosch@gnat.com)
31594 * adaint.h: Small formatting fix.
31596 2001-10-04 Geert Bosch <bosch@gnat.com>
31598 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
31599 Arg is int, not FILE *, in dummy version of functions.
31601 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
31602 Arg is int, not FILE *.
31604 2001-10-04 Geert Bosch <bosch@gnat.com>
31606 * 3lsoccon.ads: Added file, missed with initial check ins.
31608 * 4lintnam.ads: Fix header format.
31609 Change Linux to GNU/Linux.
31611 * 5iosinte.adb: Change Linux to GNU/Linux.
31613 * 5iosinte.ads: Change Linux to GNU/Linux.
31615 * 5itaprop.adb: Change Linux to GNU/Linux.
31617 * 5itaspri.ads: Change Linux to GNU/Linux.
31618 Update copyright notice.
31620 * 5lintman.adb: Change Linux to GNU/Linux.
31622 * 5lml-tgt.adb: Change Linux to GNU/Linux.
31624 * 5losinte.ads: Change Linux to GNU/Linux.
31626 * 5lsystem.ads: Change Linux to GNU/Linux.
31628 * 5qosinte.adb: Change Linux to GNU/Linux.
31630 * 5qosinte.ads: Change Linux to GNU/Linux.
31632 * 5qparame.ads: Change Linux to GNU/Linux.
31634 * 5qtaprop.adb: Change Linux to GNU/Linux.
31636 * 5qtaspri.ads: Change Linux to GNU/Linux.
31637 Add 2001 to copyright notice.
31639 * 5vintman.ads: Change Linux to GNU/Linux.
31640 Fix header format. Add 2001 to copyright notice.
31642 * g-soccon.ads: Change Linux to GNU/Linux.
31644 * g-trasym.ads: Change Linux to GNU/Linux.
31645 Add 2001 to copyright notice.
31647 * memtrack.adb: Change Linux to GNU/Linux.
31649 * s-intman.ads: Change Linux to GNU/Linux.
31650 Add 2001 to copyright notice. Fix header format.
31652 * s-stache.adb: Change Linux to GNU/Linux.
31654 * adaint.c: Change Linux to GNU/Linux.
31656 * cio.c: Change Linux to GNU/Linux.
31658 * cstreams.c: Change Linux to GNU/Linux.
31660 * init.c: Change Linux to GNU/Linux.
31662 * gmem.c: Change Linux to GNU/Linux.
31664 * tracebak.c: Change Linux to GNU/Linux.
31667 2001-10-02 Geert Bosch <bosch@gnat.com>
31669 * misc.c (insert_default_attributes): Add dummy version.