1 2006-04-08 Aurelien Jarno <aurel32@debian.org>
3 * Makefile.in: Add Ada support for GNU/kFreeBSD.
4 * s-osinte-kfreebsd-gnu.ads: New file.
6 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
8 * Make-lang.in: Rename docdir to gcc_docdir.
10 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
12 * gigi.h (get_ada_base_type): Delete.
13 * utils2.c (get_ada_base_type): Likewise.
14 * trans.c (convert_with_check): Operate in the real base type.
16 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
20 2006-03-02 Richard Sandiford <richard@codesourcery.com>
22 * utils.c (create_var_decl): Use have_global_bss_p when deciding
23 whether to make the decl common.
25 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
27 * Make-lang.in (Ada): Remove
30 2006-02-17 Ed Schonberg <schonberg@adacore.com>
32 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
33 aggregate, check the interpretations of the other operand to find one
34 that may be a boolean array.
36 (Analyze_Selected_Component): Fix flow-of-control typo in case where
37 the prefix is a private extension.
39 2006-02-17 Eric Botcazou <botcazou@adacore.com>
43 * utils2.c (find_common_type): If both input types are BLKmode and
44 have the same constant size, keep using the first one.
46 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
48 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
50 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
52 2006-02-17 Jose Ruiz <ruiz@adacore.com>
54 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
55 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
56 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
57 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
58 Abort_Defer/Undefer pairs to avoid the possibility of a task being
59 aborted while owning a lock.
61 2006-02-17 Javier Miranda <miranda@adacore.com>
62 Robert Dewar <dewar@adacore.com>
64 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
65 through an access to class-wide interface we force the displacement of
66 the pointer to the allocated object to reference the corresponding
67 secondary dispatch table.
68 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
69 if Long_Shifts are supported on the target, even if 64 bit divides
70 are not supported (configurable run time mode).
71 (Expand_N_Type_Conversion): Do validity check if validity checks on
73 (Expand_N_Qualified_Expression): Do validity check if validity checks
74 on operands are enabled.
76 2006-02-17 Ed Schonberg <schonberg@adacore.com>
78 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
79 must be materialized when the renamed expression is an explicit
82 2006-02-17 Ed Schonberg <schonberg@adacore.com>
84 * freeze.adb (Statically_Discriminated_Components): Return false if
85 the bounds of the type of the discriminant are not static expressions.
87 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
88 the bounds of the discriminant type are not static.
90 2006-02-17 Robert Dewar <dewar@adacore.com>
92 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
93 then we close To if it is valid.
95 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
97 * init.c (facility_resignal_table): new array
98 (__gnat_default_resignal_p): enhance default predicate to resignal if
99 VMS condition has one of the predefined facility codes.
101 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
103 * Makefile.in: Use VMS64 specialized versions of several units in
104 Interfaces.C hierarchy to be compatible with HP C default size choices.
105 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
107 2006-02-17 Ed Schonberg <schonberg@adacore.com>
109 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
110 instantiation, the corresponding entity is the related_instance of the
111 wrapper package created for the instance.
113 2006-02-17 Ed Schonberg <schonberg@adacore.com>
115 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
116 the current instance is nested within another instance in a child unit.
118 2006-02-17 Javier Miranda <miranda@adacore.com>
119 Ed Schonberg <schonberg@adacore.com>
121 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
122 type we cannot inherit the primitive operations; we inherit the
123 Corresponding_Record_Type (which has the list of primitive operations).
124 (Check_Anonymous_Access_Types): When creating anonymous access types for
125 access components, use Rewrite in order to preserve the tree structure,
127 (Analyze_Object_Declaration): For limited types with access
128 discriminants with defaults initialized by an aggregate, obtain
129 subtype from aggregate as for other mutable types.
130 (Derived_Type_Declaration): If the derived type is a limited interface,
131 set the corresponding flag (Is_Limited_Record is not sufficient).
133 2006-02-17 Ed Schonberg <schonberg@adacore.com>
135 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
136 to inline a function that returns an unconstrained type, the return
137 expression must be the first variable declared in the body of the
140 2006-02-17 Javier Miranda <miranda@adacore.com>
142 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
143 abstract interface type, the static analysis is not enough to know if
144 the interface is implemented or not by the source tagged type. Hence
145 we must pass the work to the expander to generate the required code to
146 evaluate the conversion at run-time.
147 (Resolve_Equality_Op): Do not apply previous
148 transformation if expansion is disasbled, to prevent anomalies when
149 locating global references in a generic unit.
151 2006-02-17 Vincent Celier <celier@adacore.com>
153 * snames.ads, snames.adb: New standard names for new project attributes:
154 archive_builder, archive_indexer, compiler_pic_option,
155 config_body_file_name, config_body_file_name_pattern,
156 config_file_switches, config_file_unique, config_spec_file_name,
157 config_spec_file_name_pattern, default_builder_switches,
158 default_global_compiler_switches, default_language,
159 dependency_file_kind, global_compiler_switches, include_path,
160 include_path_file, language_kind, linker_executable_option,
161 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
162 roots, runtime_project.
164 2006-02-17 Matthew Heaney <heaney@adacore.com>
166 * a-convec.ads, a-convec.adb:
167 (operator "&"): handle potential overflow for large index types
168 (Insert): removed Contraint_Error when using large index types
169 (Insert_Space): removed Constraint_Error for large index types
170 (Length): moved constraint check from Length to Insert
172 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
174 Explicit raise statements now include an exception message.
175 (operator "&"): handle potential overflow for large index types
176 (Insert): removed Contraint_Error when using large index types
177 (Insert_Space): removed Constraint_Error for large index types
178 (Length): moved constraint check from Length to Insert
180 2006-02-17 Robert Dewar <dewar@adacore.com>
182 * s-wchcnv.adb: Document handling of [ on output (we do not change
183 this to ["5B"] and the new comments say why not.
186 Add note for -gnatVo that this now includes the cases of type
187 conversions and qualified expressions.
188 Add comments on handling of brackets encoding for Text_IO
190 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
191 Thomas Quinot <quinot@adacore.com>
192 Robert Dewar <dewar@adacore.com>
193 Javier Miranda <miranda@adacore.com>
195 * expander.adb: Fix typo in comment
197 * exp_pakd.adb: Fix typo
198 Minor comment reformatting.
200 * g-dyntab.adb: Minor reformatting
202 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
203 aliased subprograms to look for the abstract interface subprogram.
205 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
207 * env.c (__gnat_setenv): Use size_t.
208 (__gnat_unsetenv): Likewise.
209 (__gnat_clearenv): Likewise.
211 2006-02-16 Arnaud Charlet <charlet@adacore.com>
213 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
215 2006-02-13 Arnaud Charlet <charlet@adacore.com>
217 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
218 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
219 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
220 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
221 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
222 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
223 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
224 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
225 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
228 2006-02-13 Jose Ruiz <ruiz@adacore.com>
230 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
231 protection against race conditions is not needed.
232 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
234 (Set_Specific_Handler): Add mutual exclusive access to the specific
236 (Specific_Handler): Add mutual exclusive access for retrieving the
239 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
242 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
243 Fall_Back_Handler and Specific_Handler.
245 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
246 termination handlers.
247 Set two different owerflow depending on the maximal stack size.
249 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
250 protection against race conditions is not needed when executing the
251 task termination handler.
253 2006-02-13 Robert Dewar <dewar@adacore.com>
255 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
256 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
257 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
258 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
259 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
260 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
261 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
262 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
263 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
264 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
265 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
266 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
267 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
268 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
269 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
270 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
271 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
272 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
273 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
274 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
275 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
276 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
277 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
278 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
279 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
280 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
281 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
282 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
283 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
284 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
285 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
286 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
287 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
288 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
291 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
293 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
294 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
295 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
296 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
297 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
298 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
299 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
300 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
301 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
303 2006-02-13 Arnaud Charlet <charlet@adacore.com>
305 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
306 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
307 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
308 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
309 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
310 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
311 replaced by anonymous access type.
312 (pthread_sigmask): Now take an access sigset_t
314 * s-osinte-hpux.ads: Ditto.
315 (pthread_mutex_t, pthread_cond_t): Update definitions to support
316 properly 32 and 64 bit ABIs.
318 2006-02-13 Pascal Obry <obry@adacore.com>
320 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
321 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
322 s-taprop-linux.adb, s-taprop-solaris.adb,
323 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
324 adjustement is already done when calling this routine.
326 2006-02-13 Pascal Obry <obry@adacore.com>
328 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
329 table to take advantage of the 16 priority levels available on Windows
330 2000 and XP. On NT4 there are only 7 priority levels, this is properly
331 supported by this new mapping.
333 2006-02-13 Nicolas Setton <setton@adacore.com>
335 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
336 (get_encoding): New subprogram. Extracts the encodings from an encoded
339 2006-02-13 Pascal Obry <obry@adacore.com>
340 Nicolas Roche <roche@adacore.com>
341 Arnaud Charlet <charlet@adacore.com>
343 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
345 (__gnat_try_lock): Add unicode support by using a specific section on
347 (__gnat_get_current_dir): Idem.
348 (__gnat_open_read): Idem.
349 (__gnat_open_rw): Idem.
350 (__gnat_open_create): Idem.
351 (__gnat_create_output_file): Idem.
352 (__gnat_open_append): Idem.
353 (__gnat_open_new): Idem.
354 (__gnat_file_time_name): Idem.
355 (__gnat_set_file_time_name): Idem.
357 (win32_no_block_spawn): Idem.
358 (__gnat_locate_exec_on_path): Idem.
359 (__gnat_opendir): New routine.
360 (__gnat_closedir): Idem.
361 (__gnat_readdir): Add new parameter length (pointer to int). Update
362 implementation to use it and add specific Win32 code for Unicode
364 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
365 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
366 (convert_addresses): Do not define this dummy routine on VMS.
368 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
369 runtime Unicode support will be activated.
370 (S2WS): String to Wide-String conversion. This version just copy a
371 string in non Unicode version.
372 (WS2S): Wide-String to String conversion. This version just copy a
373 string in non Unicode version.
375 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
376 (Open): Now import __gnat_opendir from adaint.c.
377 (Read): Change the implementation to support unicode characters. It is
378 not possible to use strlen() on Windows as this version supports only
379 standard ASCII characters. So the length of the directory entry is now
380 returned from the imported __gnat_readdir routine.
381 Update copyright notice.
383 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
384 (opendir): Moved to adaint.c.
386 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
387 (Get_Directory): Fix wrong indexing.
388 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
389 __gnat_getenv from env.c
390 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
393 * env.h, env.c: New file.
395 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
396 adaint.c by __gnat_getenv from env.c
398 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
399 adaint.c by __gnat_getenv from env.c
401 * Make-lang.in: Add env.o in the list of C object needed by gnat1
405 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
406 Olivier Hainque <hainque@adacore.com>
407 Eric Botcazou <ebotcazou@adacore.com>
409 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
411 * gigi.h (value_factor_p): Add prototype and description, now public.
413 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
414 promotion for field with rep clause if the associated size was proven
416 Expand comments describing attempts to use a packable type.
417 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
418 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
419 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
420 necessary since these are not different types and pointers may
421 actually designate any subtype in this hierarchy.
422 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
423 discriminants but put them into record only if not Unchecked_Union;
424 pass flag to components_to_record showing Unchecked_Union.
425 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
426 components before variants; don't set TYPE_UNCHECKED_UNION_P.
427 (components_to_record): New argument UNCHECKED_UNION.
428 Remove special case code for Unchecked_Union and instead use main code
432 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the
433 aligning variable with the expression being built, only its inner
436 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
437 emit_sequence_entry_statements.
438 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
439 (establish_gnat_vms_condition_handler): Move before
440 Subprogram_Body_to_gnu.
441 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
442 for a subprogram if it has a foreign convention or is exported.
443 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
444 substituted for a CONST_DECL.
445 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
446 Etype to assoc_to_constructor.
447 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
448 discriminants of Unchecked_Union.
449 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
450 don't need cluttering preprocessor directives.
451 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
452 condition handler as current in the compiled function.
453 (body_with_handlers_p): New function. Tell whether a given sequence of
454 statements node is attached to a package or subprogram body and involves
455 exception handlers possibly nested within inner block statements.
456 (emit_sequence_entry_statements): New function, to emit special
457 statements on entry of sequences when necessary. Establish GNAT
458 condition handler in the proper cases for VMS.
459 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
460 emit_sequence_entry_statements.
462 * utils2.c (find_common_type): If both input types are BLKmode and
463 have a constant size, use the smaller one.
464 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
467 * utils.c (value_factor_p): Make public, to allow uses from other gigi
469 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
470 (convert, case UNION_TYPE): Remove special treatment for unchecked
474 (update_pointer_to): Update variants of pointer types to
475 unconstrained arrays by attaching the list of fields of the main
478 2006-02-13 Arnaud Charlet <charlet@adacore.com>
479 Robert Dewar <dewar@adacore.com>
481 * a-exexpr.adb, a-exexpr-gcc.adb
482 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
483 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
484 Remove code unused for exception propagation for the compiler itself
485 from a-except.adb and update to still share separate packages.
487 * a-except.ads, a-except.adb: Ditto.
488 Add comments that this version is now used only by the compiler and
489 other basic tools. The full version that includes the Ada 2005 stuff
490 is in separate files a-except-2005.ads/adb. The reason is that we do
491 not want to cause bootstrap problems with compilers not recognizing
493 Add exception reason code PE_Implicit_Return
494 Add new exception reason code (Null Exception_Id)
496 * a-except-2005.adb, a-except-2005.ads: New files.
498 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
500 * s-wchcon.adb: New file.
502 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
503 (traceback.o deps): Likewise.
504 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
505 Activate build of GMEM instrumentation library on VMS targets.
506 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
507 Use a-except-2005.ads/adb for all run-time library builds unless
509 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
510 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
511 Use s-parame.adb on all native platforms.
512 Use s-parame-vxworks.adb on all vxworks platforms.
513 Add env.c env.h in LIBGNAT_SRCS
514 Add env.o in LIBGNAT_OBJS
515 (GNATMAKE_OBJS): Remove ctrl_c.o object.
516 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
517 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
518 supports VxWorks 6 RTPs.
519 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
520 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
522 * types.h, types.ads (Terminate_Program): New exception
523 Add comment on modifying multiple versions of a-except.adb when the
524 table of exception reasons is modified.
525 Add exception reason code PE_Implicit_Return
526 Add new exception reason code (Null Exception_Id)
528 * clean.adb (Initialize): Get the target parameters before checking
529 if target is OpenVMS. Move the OpenVMS specific code here from package
530 body elaboration code.
532 2006-02-13 Thomas Quinot <quinot@adacore.com>
533 Vincent Celier <celier@adacore.com>
534 Robert Dewar <dewar@adacore.com>
536 * ali-util.adb (Get_File_Checksum): Update to account for change in
537 profile of Initialize_Scanner.
539 * gprep.adb (Gnatprep): Update to account for change in profile of
541 (Process_One_File): Same.
543 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
544 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
545 that behaviour using the new Unit information recorded in the source
546 files table, rather than going through all units every time.
547 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
548 (Get_Source_Unit): Same.
550 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
551 change in profile of Initialize_Scanner.
552 (Prepare_To_Preprocess): Same.
554 * lib.ads: Fix typo in comment (templace -> template).
556 * prj-part.adb (Parse_Single_Project): Update to account for change in
557 profile of Initialize_Scanner.
559 * scn.adb (Initialize_Scanner): Account for change in profile of
560 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
561 Also record the association of the given Source_File_Index to the
562 corresponding Unit_Number_Type.
564 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
566 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
567 Remove Unit formal for generic scanner: this formal
568 is only relevant to Scn (the scanner instance used to parse Ada source
569 files), not to other instances. Update comment accordingly.
570 (Scan): Use new function Snames.Is_Keyword_Name.
572 * sinfo-cn.adb: Fix typo in comment.
574 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
577 * sinput.ads (Source_File_Record): New component Unit, used to capture
578 the unit identifier (if any) associated to a source file.
580 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
581 Unit in Source_File_Record.
583 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
584 in profile of Initialize_Scanner.
586 * scans.adb (Initialize_Ada_Keywords): New procedure
588 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
589 Ada keywords in the Namet table, without the need to call
592 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
593 (Is_Keyword_Name): New function
595 * snames.ads: Add subtype Configuration_Pragma_Names
596 Add pragma Ada_2005 (synonym for Ada_05)
597 (Is_Keyword_Name): New function
599 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
601 2006-02-13 Arnaud Charlet <charlet@adacore.com>
603 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
606 * a-stwima.adb (To_Set): Add extra check when N = 0.
608 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
610 2006-02-13 Arnaud Charlet <charlet@adacore.com>
612 * s-parame-mingw.adb, s-parame-linux.adb,
613 s-parame-solaris.adb: Removed, replaced by s-parame.adb
615 * s-parame-vxworks.ads: Fix typo.
617 * s-parame-vxworks.adb: New file.
619 * s-parame.adb: Version now used by all native platforms.
620 (Default_Stack_Size): Use 2 megs for default stack size and use
621 __gl_default_stack_size when available.
622 (Minimum_Stack_Size): Use 12K.
624 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
625 (Create_Task): Refine implementation taking advantage of the XP stack
626 size support. On XP, we now create the thread using the flag
627 STACK_SIZE_PARAM_IS_A_RESERVATION.
629 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
631 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
632 XP and 0 on older Windows versions.
634 * interfac-vms.ads: Removed, no longer used.
636 2006-02-13 Matthew Heaney <heaney@adacore.com>
638 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
639 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
640 a-cohase.adb: All explicit raise statements now include an exception
643 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
644 (Update_Element_Preserving_Key): renamed op to just Update_Element.
645 Explicit raise statements now include an exception message
647 * a-cihase.ads, a-cohase.ads: Removed comment.
649 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
650 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
651 a-szbzha.adb, a-szfzha.ads: New files.
653 2006-02-13 Matthew Heaney <heaney@adacore.com>
655 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
658 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
660 * lang.opt: Wvariadic-macros: New option.
661 Wold-style-definition: Likewise.
662 Wmissing-format-attribute: Likewise.
664 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
665 -Wold-style-definition and -Wmissing-format-attribute.
667 2006-02-13 Robert Dewar <dewar@adacore.com>
669 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
671 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
673 2006-02-13 Nicolas Roche <roche@adacore.com>
675 * a-envvar.adb, a-envvar.ads: New files.
677 2006-02-13 Douglas Rupp <rupp@adacore.com>
679 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
681 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
683 2006-02-13 Pat Rogers <rogers@adacore.com>
685 * a-rttiev.adb, a-rttiev.ads: New files.
687 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
689 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
690 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
692 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
694 2006-02-13 Robert Dewar <dewar@adacore.com>
696 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
697 sem_case.adb: Minor code reorganization (not Present should be No)
699 2006-02-13 Geert Bosch <bosch@adacore.com>
700 Gary Dismukes <dismukes@adacore.com>
702 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
703 0, since the lower bound of the actual string may be greater than one.
707 (Put): Fix condition to raise Layout_Error when invalid
710 2006-02-13 Vincent Celier <celier@adacore.com>
712 * back_end.adb (Scan_Compiler_Arguments): Check if
713 Search_Directory_Present is True and, if it is, add the argument in
714 the source search directory path.
716 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
717 Search_Directory_Present to True.
719 2006-02-13 Joel Brobecker <brobecke@adacore.com>
721 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
722 volatile, to tell the compiler to preserve this variable at any level
724 (Gen_Versions_Ada): Temporarily work around codegen bug.
726 2006-02-13 Vincent Celier <celier@adacore.com>
728 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
729 gcc to link with option -shared-libgcc.
730 (Gnatlink): Remove duplicate switches -shared-libgcc
732 2006-02-13 Robert Dewar <dewar@adacore.com>
734 * gnatvsn.ads (Current_Year): New constant, used to easily update
735 copyright on all GNAT tools.
737 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
740 2006-02-13 Robert Dewar <dewar@adacore.com>
742 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
743 after hyphen (small aesthetic change useful for a range of numbers
745 Suppress range checks for a couple of assignments which otherwise
746 cause validity checks with validity checking turned on.
748 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
749 Improvement in error message for object.
750 (Rep_Item_Too_Late): Remove '!' in warning message.
752 2006-02-13 Robert Dewar <dewar@adacore.com>
753 Eric Botcazou <ebotcazou@adacore.com>
755 * err_vars.ads: Suppress range checks for a couple of assignments
756 which otherwise cause validity checks with validity checking turned on.
759 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
760 Make message unconditional if it is a warning.
761 (Error_Msg_NEL): Always output warning messages.
762 Suppress range checks for a couple of assignments which otherwise
763 cause validity checks with validity checking turned on.
765 * errout.ads (Message Insertion Characters): Document that '!' is
766 implied by '?' in error messages.
768 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
769 (Gnat1drv): Use a goto to end of main subprogram instead of
770 Exit_Program (E_Success) so that finalization can occur normally.
772 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
774 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
777 2006-02-13 Vincent Celier <celier@adacore.com>
779 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
780 Unchecked_Conversion functions.
781 (Modification_Time): Use direct conversion of OS_Time to Calendar time
782 when OpenVMS returns False.
784 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
785 a-dirval.adb (OpenVMS): New Boolean function
787 2006-02-13 Ed Schonberg <schonberg@adacore.com>
788 Thomas Quinot <quinot@adacore.com>
790 * checks.adb (Build_Discriminant_Checks): If the expression being
791 checks is an aggregate retrieve the values of its discriminants to
792 generate the check, rather than creating a temporary and a reference
794 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
795 (Install_Null_Excluding_Check): Ditto
796 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
797 not for the renamed object, so that the actual itype is attached in the
800 2006-02-13 Robert Dewar <dewar@adacore.com>
801 Vincent Celier <celier@adacore.com>
803 * debug.adb: Eliminate numeric switches for binder/gnatmake
805 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
806 switches for the compiler.
807 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
808 (Scan_Make_Switches): When failing with an illegal switch, output an
809 error message with the full switch.
810 Eliminate numeric switches for binder/gnatmake
812 * switch.ads, switch.adb (Bad_Switch): New procedure
814 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
815 Remove 0-9 as debug flag character possibilities
816 -d is now controlling the primary stack size when its value is a
817 positive. Also add checks against invalid values, and support for kb,
818 mb. Ditto for -D switch.
820 2006-02-13 Robert Dewar <dewar@adacore.com>
821 Serguei Rybin <rybin@adacore.com>
823 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
824 save/restore routines.
825 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
826 were not always properly handled previously.
827 Since we are changing the tree format anyway, also get rid of the
828 junk obsolete Immediate_Errors flag.
829 (Tree_Read): Change the way of reading Tree_Version_String - now we
830 read the version string from the tree even if its length is not the
831 same as the length of the version string computed from Gnatvsn.
832 (Search_Directory_Present): New Boolean flag for the compiler.
833 Define Tree_Version_String as a dynamic string.
834 (Default_Stack_Size): new variable, used to handle switch -d.
837 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
839 Add pragma Ada_2005 (synonym for Ada_05)
840 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
841 were not always properly handled previously.
843 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
844 explicit Ada_95 to Ada_2005.
846 2006-02-13 Javier Miranda <miranda@adacore.com>
847 Robert Dewar <dewar@adacore.com>
848 Ed Schonberg <schonberg@adacore.com>
850 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
851 against errors in the source program: a private types for which the
852 corresponding full type declaration is missing and pragma CPP_Virtual
854 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
855 (Is_Known_Null): New flag
856 (Has_Pragma_Pure): New flag
857 (No_Return): Present in all entities, set only for procedures
858 (Is_Limited_Type): A type whose ancestor is an interface is limited if
859 explicitly declared limited.
860 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
861 entities. Only used for component marked Is_Tag. If present it stores
862 the Offset_To_Top function used to provide this value in tagged types
863 whose ancestor has discriminants.
865 * exp_ch2.adb: Update status of new Is_Known_Null flag
867 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
869 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
870 the categorization sense if Is_Pure was set by pragma Pure_Function.
872 2006-02-13 Quentin Ochem <ochem@adacore.com>
873 Olivier Hainque <hainque@adacore.com>
875 * bindusg.adb: Updated documentation for -d and -D switches.
877 * raise.h (__gnat_set_globals): added new parameter for
880 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
881 (__gnat_handle_vms_condition): Adjust context before raise.
882 (__gnat_install_handler): Restore the global vector setup for GCC
883 versions before 3.4, as the frame based circtuitry is not available
885 (__gnat_set_globals): added a parameter default_stack_size
886 (__gl_default_stack_size): new variable.
888 2006-02-13 Ed Schonberg <schonberg@adacore.com>
890 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
891 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
892 does not exist in the Ada RM.
893 (Compatible_Int_Bounds): Determine whether two integer range bounds
894 are of equal length and have the same start and end values.
895 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
896 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
897 aggregate when it is part of an object declaration.
898 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
899 constrains discriminants of its parent, add explicitly the discriminant
900 constraints of the ancestor by retrieving them from the
901 stored_constraint of the parent.
903 2006-02-13 Robert Dewar <dewar@adacore.com>
905 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
906 attribute Mechanism_Code is applied to renamed subprogram, modify
907 prefix to point to base subprogram.
908 Max/Min attributes now violate Restriction No_Implicit_Conditionals
910 * sinfo.ads: Document that Mechanism_Code cannot be applied to
911 renamed subprograms so that the front-end must replace the prefix
914 2006-02-13 Javier Miranda <miranda@adacore.com>
915 Gary Dismukes <dismukes@adacore.com>
917 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
918 availability of RE_Interface_Tag.
919 (Build_Initialization_Call): Fix wrong access to the discriminant value.
920 (Freeze_Record_Type): Do not generate the tables associated with
921 timed and conditional dispatching calls through synchronized
922 interfaces if compiling under No_Dispatching_Calls restriction.
923 When compiling for Ada 2005, for a nonabstract
924 type with a null extension, call Make_Controlling_Function_Wrappers
925 and insert the wrapper function declarations and bodies (the latter
926 being appended as freeze actions).
927 (Predefined_Primitive_Bodies): Do not generate the bodies of the
928 predefined primitives associated with timed and conditional
929 dispatching calls through synchronized interfaces if we are
930 compiling under No_Dispatching_Calls.
931 (Build_Init_Procedure): Use RTE_Available to check if a run-time
932 service is available before generating a call.
933 (Make_Controlling_Function_Wrappers): New procedure.
934 (Expand_N_Full_Type_Declaration): Create a class-wide master for
935 access-to-limited-interfaces because they can be used to reference
936 tasks that implement such limited interface.
937 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
938 procedure spec and body of the Offset_To_Top function that is generated
939 when the parent of a type with discriminants has secondary dispatch
941 (Init_Secondary_Tags): Handle the case in which the parent of the type
942 containing secondary dispatch tables has discriminants to generate the
943 correct arguments to call Set_Offset_To_Top.
944 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
946 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
947 Add Wide_[Wide_]Expanded_Name.
948 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
949 the same functionality of Get_Prim_Op_Address but applied to predefined
950 primitive operations because the pointers to the predefined primitives
951 are now saved in a separate table.
952 (Parent_Size): Modified to get access to the separate table of primitive
953 operations or the parent type.
954 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
955 functionality of Set_Prim_Op_Address but applied to predefined primitive
957 (Set_Signature): New subprogram used to store the signature of a DT.
958 (Displace): If the Offset_To_Top value is not static then call the
959 function generated by the expander to get such value; otherwise use
960 the value stored in the table of interfaces.
961 (Offset_To_Top): The type of the actual has been changed to Address to
962 give the correct support to tagged types with discriminants. In this
963 case this value is stored just immediately after the tag field.
964 (Set_Offset_To_Top): Two new formals have been added to indicate if the
965 offset_to_top value is static and hence pass this value to the run-time
966 to store it in the table of interfaces, or else if this value is dynamic
967 and then pass to the run-time the address of a function that is
968 generated by the expander to provide this value for each object of the
971 * rtsfind.ads (Default_Prin_Op_Count): Removed.
972 (Default_Prim_Op_Count): New entity
973 (Get_Predefined_Prim_Op_Address): New entity
974 (Set_Predefined_Prim_Op_Address): New entity
975 (RE_Set_Signature): New entity
977 2006-02-13 Thomas Quinot <quinot@adacore.com>
978 Ed Schonberg <schonberg@adacore.com>
980 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
981 Make_Adjust_Call done for a newly-allocated object.
983 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
984 in a subprogram are wrapped in a cleanup block, indicate that the
985 subprogram contains an inner block with an exception handler.
986 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
987 Adjust call is for a newly-allocated object. In that case we must not
988 assume that the finalization list chain pointers are correct (since they
989 come from a bit-for-bit copy of the original object's pointers) so if
990 the attach level would otherwise be zero (no change), we set it to 4
991 instead to cause the pointers to be reset to null.
993 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
994 reset chain pointers to null.
996 2006-02-13 Ed Schonberg <schonberg@adacore.com>
998 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
999 string, and the context requires a loop for the assignment (e.g.
1000 because the left-hand side is packed), generate a unique name for the
1001 temporary that holds the string, to prevent spurious name clashes.
1003 2006-02-13 Ed Schonberg <schonberg@adacore.com>
1004 Javier Miranda <miranda@adacore.com>
1005 Robert Dewar <dewar@adacore.com>
1006 Gary Dismukes <dismukes@adacore.com>
1008 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
1009 return unconstrained arrays.
1011 (Expand_Call): An indirect call through an access parameter of a
1012 protected operation is not a protected call.
1013 Add circuit to raise CE in Ada 2005 mode following call
1015 (Register_DT_Entry): Do nothing if
1016 the run-time does not give support to abstract interfaces.
1017 (Freeze_Subprogram): In case of dispatching operations, do not generate
1018 code to register the operation in the dispatch table if the source
1019 is compiled with No_Dispatching_Calls.
1020 (Register_Predefined_DT_Entry): Generate code that calls the new
1021 run-time subprogram Set_Predefined_Prim_Op_Address instead of
1022 Set_Prim_Op_Address.
1024 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
1025 on array assignments if the right-hand side is a function call that has
1026 been inlined. Check is performed on the assignment in the block.
1027 (Process_Bounds): If bounds and range are overloaded, apply preference
1028 rule for root operations to disambiguate, and diagnose true ambiguity.
1029 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
1030 a tag-indeterminate right-hand side even when Expander_Active is True.
1031 Needed to ensure that dispatching calls to T'Input are allowed and
1032 get the tag of the target class-wide object.
1034 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
1035 an inherited primitive operation that already overrides several
1036 abstract interface primitives. For transitivity, the new entity must
1037 also override all the abstract interface primitives covered by the
1038 inherited overriden primitive.
1039 Emit warning if new entity differs from homograph in same scope only in
1040 that one has an access parameter and the other one has a parameter of
1041 a general access type with the same designated type, at the same
1042 position in the signature.
1043 (Make_Inequality_Operator): Use source locations of parameters and
1044 subtype marks from corresponding equality operator when creating the
1045 tree structure for the implicit declaration of "/=". This does not
1046 change anything in behaviour except that the decoration of the
1047 components of the subtree created for "/=" allows ASIS to get the
1048 string images of the corresponding identifiers.
1049 (Analyze_Return_Statement): Remove '!' in warning message.
1050 (Check_Statement_Sequence): Likewise.
1051 (Analyze_Subprogram_Body): For an access parameter whose designated type
1052 is an incomplete type imported through a limited_with clause, use the
1053 type of the corresponding formal in the body.
1054 (Check_Returns): Implicit return in No_Return procedure now raises
1055 Program_Error with a compile time warning, instead of beging illegal.
1056 (Has_Single_Return): Function returning unconstrained type cannot be
1057 inlined if expression in unique return statement is not an identifier.
1058 (Build_Body_To_Inline): It is possible to inline a function call that
1059 returns an unconstrained type if all return statements in the function
1060 return the same local variable. Subsidiary procedure Has_Single_Return
1061 verifies that the body conforms to this restriction.
1063 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
1064 same type, and one of them is of an anonymous access type, convert
1065 the other operand to it, so that this is a valid binary operation for
1067 (Resolve_Type_Conversion): Handle subtypes of protected types and
1068 task types when accessing to the corresponding record type.
1069 (Resolve_Allocator): Add '\' in 2-line warning message.
1070 Remove '!' in warning message.
1071 (Resolve_Call): Add '\' in 2-line warning message.
1072 (Valid_Conversion): Likewise.
1073 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
1074 resulting type may be an access type with an implicit dereference.
1075 Obtain the proper component from the designated type.
1076 (Make_Call_Into_Operator): Handle properly a call to predefined equality
1077 given by an expanded name with prefix Standard, when the operands are
1078 of an anonymous access type.
1079 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
1080 Explicit_Dereference and Resolve_Selected_Component, to verify that the
1081 prefix of the expression is not of an incomplete type. Allows full
1082 diagnoses of all semantic errors.
1083 (Resolve_Actuals): If the actual is an allocator whose directly
1084 designated type is a class-wide interface we build an anonymous
1085 access type to use it as the type of the allocator. Later, when
1086 the subprogram call is expanded, if the interface has a secondary
1087 dispatch table the expander will add a type conversion to force
1088 the displacement of the pointer.
1089 (Resolve_Call): If a function that returns an unconstrained type is
1090 marked Inlined_Always and inlined, the call will be inlined and does
1091 not require the creation of a transient scope.
1092 (Check_Direct_Boolean_Op): Removed
1093 (Resolve_Comparison_Op): Remove call to above
1094 (Resolve_Equality_Op): Remove call to above
1095 (Resolve_Logical_Op): Inline above, since this is only call.
1096 (Valid_Conversion): Handle properly conversions between arrays of
1097 convertible anonymous access types.
1101 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
1102 the literal in an unchecked conversion, because GCC 4.x needs a static
1103 value for a string bound.
1105 2006-02-13 Ed Schonberg <schonberg@adacore.com>
1106 Hristian Kirtchev <kirtchev@adacore.com>
1108 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
1109 components of the corresponding record, take into account component
1110 definitions that are access definitions.
1111 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
1112 procedure is not considered a dispatching call and will be expanded
1115 2006-02-13 Javier Miranda <miranda@adacore.com>
1117 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
1118 controlling argument of the dispatching call is an abstract interface
1119 class-wide type then we use it directly.
1120 Check No_Dispatching_Calls restriction.
1121 (Default_Prim_Op_Position): Remove the code that looks for the last
1122 entity in the list of aliased subprograms. This code was wrong in
1124 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
1125 when the source is compiled with the No_Dispatching_Calls restriction.
1126 (Init_Predefined_Interface_Primitives): No need to inherit primitives
1127 if we are compiling with restriction No_Dispatching_Calls.
1128 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
1129 subprograms if we are compiling under No_Dispatching_Calls restriction.
1130 (Make_DT): Generate a dispatch table with a single dummy entry if
1131 we are compiling with the No_Dispatching_Calls restriction. In
1132 addition, in this case we don't generate code that calls to the
1133 following run-time subprograms: Set_Type_Kind, Inherit_DT.
1134 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
1135 of this subprogram if compiling with the No_Dispatching_Calls
1137 (Expand_Type_Conversion): Instead of using the actual parameter,
1138 the argument passed as parameter to the conversion function was
1139 erroneously referenced by the expander.
1140 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
1141 Set_Predefined_Primitive_Op_Address and Set_Signature.
1142 (Expand_Dispatching_Call): Generate call to
1143 Get_Predefined_Prim_Op_Address for predefined primitives.
1144 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
1145 predefined primitives.
1146 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
1147 primitives we reserve one dummy entry to ensure that the tag does not
1148 point to some memory that is associated with some other object. In
1149 addition, remove all the old code that generated the assignments
1150 associated with the signature of the dispatch table and replace them
1151 by a call to the new subprogram Set_Signature.
1152 (Set_All_DT_Position): Change the algorithm because now we have a
1153 separate dispatch table associated with predefined primitive operations.
1154 (Expand_Interface_Conversion): In case of non-static offset_to_top
1155 add explicit dereference to get access to the object after the call
1156 to displace the pointer to the object.
1157 (Expand_Interface_Thunk): Modify the generation of the actual used
1158 in the calls to the run-time function Offset_To_Top to fulfil its
1160 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
1162 2006-02-13 Ed Schonberg <schonberg@adacore.com>
1164 * exp_dist.adb (Copy_Specification): For access parameters, copy
1165 Null_Exclusion flag, which will have been set for stream subprograms
1168 2006-02-13 Pascal Obry <obry@adacore.com>
1170 * expect.c (__gnat_expect_portable_execvp): New implementation. The
1171 previous implementation was using the C runtime spawnve routine but
1172 the corresponding wait was using directly the Win32 API. This was
1173 causing some times a lock when waiting for an event using
1174 WaitForSingleObject in __gnat_waitpid. This new implementation uses
1175 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
1176 API fixes this problem.
1178 2006-02-13 Robert Dewar <dewar@adacore.com>
1180 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
1183 2006-02-13 Thomas Quinot <quinot@adacore.com>
1185 * exp_pakd.ads: Fix typos in comments.
1187 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
1188 array reference that is an explicit dereference, mark the converted
1189 (packed) array reference as analyzed to prevent a forthcoming
1190 reanalysis from resetting its type to the original (non-packed) array
1193 2006-02-13 Ed Schonberg <schonberg@adacore.com>
1194 Javier Miranda <miranda@adacore.com>
1195 Eric Botcazou <ebotcazou@adacore.com>
1197 * exp_util.ads, exp_util.adb (Find_Prim_Op,
1198 Is_Predefined_Primitive_Operation): When
1199 searching for the predefined equality operator, verify that operands
1201 (Is_Predefined_Dispatching_Operation): Remove the code that looks
1202 for the last entity in the list of aliased subprograms. This code
1203 was wrong in case of renamings.
1204 (Set_Renamed_Subprogram): New procedure
1205 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
1206 Exp_Type constant computed when entering this subprogram.
1207 (Known_Null): New function
1208 (OK_To_Do_Constant_Replacement): New function
1209 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
1210 (Side_Effect_Free): An attribute reference 'Input is not free of
1211 side effect, unlike other attributes that are functions. (from code
1213 (Remove_Side_Effects): Expressions that involve packed arrays or records
1214 are copied at the point of reference, and therefore must be marked as
1215 renamings of objects.
1216 (Is_Predefined_Dispatching_Operation): Return false if the operation is
1217 not a dispatching operation.
1220 (Remove_Side_Effects): Lift enclosing type conversion nodes for
1221 elementary types in all cases.
1223 2006-02-13 Javier Miranda <miranda@adacore.com>
1225 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
1226 task types when accessing to the corresponding record type.
1227 Remove '!' in warning message.
1229 2006-02-13 Olivier Hainque <hainque@adacore.com>
1231 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
1232 to avoid useless and space inefficient overalignments on targets where
1233 Max_Alignment is larger than 16.
1235 2006-02-13 Pascal Obry <obry@adacore.com>
1237 * g-catiio.adb (Sec_Number): New type used to compute the number of
1238 seconds since 1-1-1970.
1239 (Image) [Natural]: The parameter was an Integer, as we can't deal with
1240 negative numbers (years, months...) it is better to have a Natural here.
1242 (Image) [Number]: Change parameter from Long_Integer to Number.
1243 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
1244 overflow for dates past year 2038.
1246 2006-02-13 Matthew Heaney <heaney@adacore.com>
1248 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
1251 2006-02-13 Arnaud Charlet <charlet@adacore.com>
1253 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
1255 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
1256 finalization can occur normally.
1258 2006-02-13 Vincent Celier <celier@adacore.com>
1260 * gnatcmd.adb (Rules_Switches): New table
1261 (Add_To_Rules_Switches): New procedure
1262 (GNATCmd): For command CHECK, put all options following "-rules" in the
1263 Rules_Switches table. Append these -rules switches after the -cargs
1266 2006-02-13 Robert Dewar <dewar@adacore.com>
1268 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
1269 These two cases were generating incorrect output, and if this unit
1270 was built with checks on, generated a discriminant mismatch constraint
1273 2006-02-13 Ed Schonberg <schonberg@adacore.com>
1274 Robert Dewar <dewar@adacore.com>
1276 * lib-xref.adb (Get_Type_Reference): For a private type whose full
1277 view is an array type, indicate the component type as well, for
1278 navigation purposes.
1279 (Generate_Reference): Don't consider array ref on LHS to be a case
1280 of violating pragma Unreferenced.
1281 Do not give Ada 2005 warning except on real reference.
1283 2006-02-13 Vincent Celier <celier@adacore.com>
1285 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
1286 main source, add switch -mdebug-main=_ada_ so that the executable can
1287 be debugged by the standard VMS debugger.
1288 (Gnatmake): Set No_Main_Subprogram to True when there is no main
1289 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
1290 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
1291 of the last source, as the binding and linking phases are never
1293 Set all executable obsolete when rebuilding a library.
1295 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
1298 2006-02-13 Javier Miranda <miranda@adacore.com>
1302 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
1303 code to improve the error message reported when the program has
1304 declarations of abstract interface types and it is not compiled with
1306 (P_Access_Definition): Reorganize the code to improve the error
1307 message reported when the new Ada 2005 syntax for anonymous
1308 access types is used and the program is not compiled with the
1311 2006-02-13 Robert Dewar <dewar@adacore.com>
1313 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
1314 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
1317 2006-02-13 Javier Miranda <miranda@adacore.com>
1319 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
1320 against source containing syntax errors.
1322 2006-02-13 Vincent Celier <celier@adacore.com>
1324 * prj.adb (Reset): Initialize the first element of table Namings with
1325 the standard naming data.
1327 2006-02-13 Vincent Celier <celier@adacore.com>
1329 * prj.ads (Error_Warning): New enumeration type
1331 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
1332 unknown, use the location of the project to report the error.
1333 (When_No_Sources): New global variable
1334 (Report_No_Ada_Sources): New procedure
1335 (Check): New parameter When_No_Sources. Set value of global variable
1337 (Find_Sources): Call Report_No_Ada_Sources when appropriate
1338 (Get_Sources_From_File): Ditto
1339 (Warn_If_Not_Sources): Better warning messages indicating the unit name
1342 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
1343 Call Prj.Proc.Process with parameter When_No_Sources.
1345 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
1346 Call Recursive_Check with parameter When_No_Sources.
1347 (Recursive_Check): New parameter When_No_Sources. Call itself and
1348 Prj.Nmsc.Check with parameter When_No_Sources.
1349 (Process): New parameter When_No_Sources. Call Check with parameter
1351 (Copy_Package_Declarations): New procedure to copy renamed parameters
1352 and setting the location of the declared attributes to the location
1353 of the renamed package.
1354 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
1357 2006-02-13 Vincent Celier <celier@adacore.com>
1359 * prj-makr.adb (Make): Preserve the comments from the original project
1361 When removing nodes (attributes Source_Dirs, Source_Files,
1362 Source_List_File and package Naming), save the comments and attach the
1363 saved comments to the newly created nodes.
1364 Do not add a with clause for the naming package if one already exists.
1366 2006-02-13 Javier Miranda <miranda@adacore.com>
1367 Gary Dismukes <dismukes@adacore.com>
1368 Robert Dewar <dewar@adacore.com>
1370 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
1372 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
1373 aliased entities to look for the overriden abstract interface
1375 (Is_Interface_Subprogram): Complete documentation.
1376 (Check_Dispatching_Operation): Do not generate code to register the
1377 operation in the dispatch table if the source is compiled with
1378 restriction No_Dispatching_Calls.
1379 (Override_Dispatching_Operation): Check for illegal attempt to override
1380 No_Return procedure with procedure that is not No_Return
1381 (Check_Dispatching_Call): Suppress the check for an abstract operation
1382 when the original node of an actual is a tag-indeterminate attribute
1383 call, since the attribute, which must be 'Input, can never be abstract.
1384 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
1385 call to the Input attribute (even when rewritten).
1386 (Propagate_Tag): Augment comment to indicate the possibility of a call
1387 to an Input attribute.
1389 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
1390 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
1392 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
1393 No_Wide_Characters is no longer partition-wide
1394 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
1397 2006-02-13 Douglas Rupp <rupp@adacore.com>
1399 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
1401 2006-02-13 Javier Miranda <miranda@adacore.com>
1403 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
1404 handles default-initialized components to keep separate the management
1405 of this feature but also avoid the unrequired resolution and
1406 expansion of components that do not have partially initialized
1408 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
1409 (Check_Bounds): Likewise.
1410 (Check_Length): Likewise.
1412 2006-02-13 Javier Miranda <miranda@adacore.com>
1413 Ed Schonberg <schonberg@adacore.com>
1415 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
1416 abstract interface type call analyze_and_resolve to expand the type
1417 conversion into the corresponding displacement of the
1418 reference to the base of the object.
1419 (Eval_Attribute, case Width): For systems where IEEE extended precision
1420 is supported, the maximum exponent occupies 4 decimal digits.
1421 (Accessibility_Message): Add '\' in 2-line warning message.
1422 (Resolve_Attribute): Likewise.
1423 (case Attribute_Access): Significantly revise checks
1424 for illegal access-to-subprogram Access attributes to properly enforce
1425 the rules of 3.10.2(32/2).
1426 Diagnose use of current instance with an illegal attribute.
1428 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
1430 (Enclosing_Generic_Unit): New function to return a node's innermost
1431 enclosing generic declaration node.
1432 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
1433 (Type_Access_Level): The accessibility level of anonymous acccess types
1434 associated with discriminants is that of the current instance of the
1435 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
1436 (Compile_Time_Constraint_Error): Handle case of conditional expression.
1437 (Kill_Current_Values_For_Entity): New function
1438 (Enter_Name): Change formal type to Entity_Id
1440 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
1441 Ed Schonberg <schonberg@adacore.com>
1442 Gary Dismukes <dismukes@adacore.com>
1444 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
1445 Analyze_Compilation_Unit.
1446 Detect and warn on redundant with clauses detected in a package spec
1447 and/or body when -gnatwr is used.
1448 (Analyze_Context): Analyze config pragmas before other items
1449 (Install_Context_Items): Don't analyze config pragmas here
1450 (Install_Limited_Withed_Unit): Set limited entity of package in
1451 with_clause so that cross-reference information or warning messages on
1452 unused packages can be properly generated
1453 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
1454 has Error_Posted set. Prevent infinite loops in illegal programs.
1455 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
1456 to the point of the error test requiring the current unit to be private.
1457 This ensures that private with clauses are not exempted from the basic
1458 checking for being a descendant of the same library unit parent as a
1459 withed private descendant unit.
1460 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
1461 handle private with clauses properly, as well as to account for cases
1462 where the withed unit is a public descendant of a private ancestor
1463 (in which case the current unit must be a descendant of the private
1464 ancestor's parent). The spec comments were updated accordingly. Also,
1465 the old error message in this subprogram was replaced with error
1466 messages that mirror the errors tested and reported by
1467 Check_Private_Child_Unit.
1468 Parameter and variable names improved for readability.
1469 (Install_Limited_Context_Clauses): Remove test for a withed unit being
1470 private as the precondition for calling
1471 Check_Private_Limited_Withed_Unit since that subprogram has been
1472 revised to test public units as well as private units.
1474 2006-02-13 Thomas Quinot <quinot@adacore.com>
1475 Robert Dewar <dewar@adacore.com>
1476 Ed Schonberg <schonberg@adacore.com>
1477 Javier Miranda <miranda@adacore.com>
1479 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
1480 that Scope_Stack.First = 1.
1481 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
1482 were not always properly handled previously.
1483 (Formal_Entity): Complete rewrite, to handle properly some complex case
1484 with multiple levels of parametrization by formal packages.
1485 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
1486 to the corresponding derived type declaration for proper semantics.
1488 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
1489 (Check_Component): Enforce restriction on components of
1490 unchecked_unions: a component in a variant cannot contain tasks or
1492 (Unchecked_Union): Allow nested variants and multiple discriminants, to
1494 Add pragma Ada_2005 (synonym for Ada_05)
1495 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
1496 were not always properly handled previously.
1497 Document that pragma Propagate_Exceptions has no effect
1498 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
1499 (Set_Convention_From_Pragma): Check that if a convention is
1500 specified for a dispatching operation, then it must be
1501 consistent with the existing convention for the operation.
1502 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
1503 longer required to specify an vtable-ptr component in the record. For
1504 compatibility reasons we leave the support for the previous definition.
1505 (Analyze_Pragma, case No_Return): Allow multiple arguments
1507 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
1508 non-overrideen inherited operation with a controlling result as
1509 illegal only its implicit declaration comes from the derived type
1510 declaration of its result's type.
1511 (Check_Possible_Deferred_Completion): Relocate the object definition
1512 node of the subtype indication of a deferred constant completion rather
1513 than directly analyzing it. The analysis of the generated subtype will
1514 correctly decorate the GNAT tree.
1515 (Record_Type_Declaration): Check whether this is a declaration for a
1516 limited derived record before analyzing components.
1517 (Analyze_Component_Declaration): Diagnose record types not explicitly
1518 declared limited when a component has a limited type.
1519 (Build_Derived_Record_Type): Code reorganization to check if some of
1520 the inherited subprograms of a tagged type cover interface primitives.
1521 This check was missing in case of a full-type associated with a private
1523 (Constant_Redeclaration): Check that the subtypes of the partial and the
1524 full view of a constrained deferred constant statically match.
1525 (Mentions_T): A reference to the current type in an anonymous access
1526 component declaration must be an entity name.
1527 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
1528 class_wide type to refer to full type, not to the incomplete one.
1529 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
1530 available. Required to give support to the certified run-time.
1531 (Analyze_Component_Declaration): In case of anonymous access components
1532 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
1533 (Process_Discriminants): For an access discriminant, use the
1534 discriminant specification as the associated_node_for_itype, to
1535 simplify accessibility checks.
1537 2006-02-13 Ed Schonberg <schonberg@adacore.com>
1538 Javier Miranda <miranda@adacore.com>
1540 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
1541 abstract interpretations on an operator, remove interpretations that
1542 yield Address or a type derived from it, if one of the operands is an
1544 (Try_Object_Operation.Try_Primitive_Operation,
1545 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
1546 location when creating the new reference to a primitive or class-wide
1547 operation as a part of rewriting a subprogram call.
1548 (Try_Primitive_Operations): If context requires a function, collect all
1549 interpretations after the first match, because there may be primitive
1550 operations of the same type with the same profile and different return
1551 types. From code reading.
1552 (Try_Primitive_Operation): Use the node kind to choose the proper
1553 operation when a function and a procedure have the same parameter
1555 (Complete_Object_Operation): If formal is an access parameter and prefix
1556 is an object, rewrite as an Access reference, to match signature of
1557 primitive operation.
1558 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
1559 by an expanded name with prefix Standard, when the operands are of an
1560 anonymous access type.
1561 (Remove_Abstract_Operations): If the operation is abstract because it is
1562 inherited by a user-defined type derived from Address, remove it as
1563 well from the set of candidate interpretations of an overloaded node.
1564 (Analyze_Membership_Op): Membership test not applicable to cpp-class
1567 2006-02-13 Bob Duff <duff@adacore.com>
1569 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
1570 redundant use clauses.
1571 In particular, if the scope of two use clauses overlaps, but one is not
1572 entirely included in the other, we should not warn. This can happen
1573 with nested packages.
1574 (Analyze_Subprogram_Renaming): Protect the compiler against previously
1575 reported errors. The bug was reported when the compiler was built
1576 with assertions enabled.
1577 (Find_Type): If the node is a 'Class reference and the prefix is a
1578 synchronized type without a corresponding record, return the type
1581 2006-02-13 Javier Miranda <miranda@adacore.com>
1583 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
1584 if this is the full-declaration associated with a private declaration
1585 that implement interfaces, then the private type declaration must be
1587 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
1588 as aliased. The use of the 'access attribute is not available for such
1589 object (for this purpose the object should be explicitly marked as
1590 aliased, but being an anonymous type this is not possible).
1592 2006-02-13 Ed Schonberg <schonberg@adacore.com>
1593 Robert Dewar <dewar@adacore.com>
1595 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
1596 compilation unit is an elaboration scope.
1597 (Add_Task_Proc): Add '\' in 2-line warning message.
1598 (Activate_All_Desirable): Deal with case of unit with'ed by parent
1600 2006-02-13 Ed Schonberg <schonberg@adacore.com>
1601 Javier Miranda <miranda@adacore.com>
1603 * sem_type.adb (Write_Overloads): Improve display of candidate
1605 (Add_One_Interp): Do not add to the list of interpretations aliased
1606 entities corresponding with an abstract interface type that is an
1607 immediate ancestor of a tagged type; otherwise we have a dummy
1608 conflict between this entity and the aliased entity.
1609 (Disambiguate): The predefined equality on universal_access is not
1610 usable if there is a user-defined equality with the proper signature,
1611 declared in the same declarative part as the designated type.
1612 (Find_Unique_Type): The universal_access equality operator defined under
1613 AI-230 does not cover pool specific access types.
1614 (Covers): If one of the types is a generic actual subtype, check whether
1615 it matches the partial view of the other type.
1617 2006-02-13 Thomas Quinot <quinot@adacore.com>
1619 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
1620 line. This is necessary to allow In_Extended_Main_Unit to provide
1621 correct results for itypes while writing out expanded source.
1622 (Close_File): No need to update the source_index_table here since it's
1623 now done for each line.
1625 2006-02-13 Ed Schonberg <schonberg@adacore.com>
1626 Robert Dewar <dewar@adacore.com>
1628 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
1629 preserve the source unit where the itype is declared, and prevent a
1631 (Note_Implicit_Run_Time_Call): New procedure
1632 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
1635 * sprint.ads: Document use of $ for implicit run time routine call
1637 2006-02-13 Quentin Ochem <ochem@adacore.com>
1639 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
1642 2006-02-13 Bob Duff <duff@adacore.com>
1644 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
1645 Scan_Unsigned, so we do not scan leading blanks and sign twice.
1646 Integer'Value("- 5") and Integer'Value("-+5") now correctly
1647 raise Constraint_Error.
1649 * s-vallli.adb (Scan_Long_Long_Integer): Call
1650 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
1651 do not scan leading blanks and sign twice.
1652 Integer'Value("- 5") and Integer'Value("-+5") now correctly
1653 raise Constraint_Error.
1655 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
1656 Scan_Long_Long_Unsigned): Split out most of the processing from
1657 Scan_Long_Long_Unsigned out into
1658 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
1659 This prevents scanning leading blanks and sign twice.
1660 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
1663 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
1664 out most of the processing from Scan_Unsigned out into
1665 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
1666 This prevents scanning leading blanks and sign twice.
1668 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
1669 use with Modular'Value attribute.
1670 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
1673 2006-02-13 Robert Dewar <dewar@adacore.com>
1675 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
1677 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
1679 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
1680 (PPC VxWorks): Likewise.
1681 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
1682 (forced_callee): Make non-inlinable and non-pure.
1683 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
1685 2006-02-13 Arnaud Charlet <charlet@adacore.com>
1686 Ben Brosgol <brosgol@adacore.com>
1687 Robert Dewar <dewar@adacore.com>
1689 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
1691 Document that gnatbind -M option is for cross environments only.
1692 Added description of using gnatmem to trace gnat rtl allocs and deallocs
1693 Add note on use of $ to label implicit run time calls
1694 Add documentation for -gnatyI (check mode IN)
1695 Updated chapter on compatibility with HP Ada
1697 Ran spell and corrected errors
1698 Add documentation for gnatbind -d and rework documentation of -D
1700 Add subprogram/data elimination section.
1701 Minor editing of annex A.
1702 Add section for gnatcheck.
1703 Add documentation for restriction No_Dispatching_Calls
1704 Add documentation for pragma Ada_2005
1705 Remove mention of obsolete pragma Propagate_Exceptions
1706 Document that pragma Unreferenced can appear after DO in ACCEPT
1707 Clarify Pure_Function for library level units
1708 Mention Max/Min in connection with No_Implicit_Conditionals
1709 No_Wide_Characters restriction is no longer partition-wide
1710 Add a nice example for Universal_Literal_String attribute
1711 Document that pragma No_Return can take multiple arguments
1713 * ug_words: Added entry for gnatcheck
1715 * g-ctrl_c.ads (Install_Handler): Enhance comments
1717 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
1719 * g-trasym.ads: Add documentation on how to do off line symbolic
1720 traceback computation.
1722 * s-fatgen.adb: Add comments for Unaligned_Valid
1724 * stand.ads: Fix typo in comment
1726 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1728 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
1730 2006-02-06 Roger Sayle <roger@eyesopen.com>
1732 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
1734 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1737 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
1738 implementation that calls __main.
1740 2006-01-25 Peter O'Gorman <peter@pogma.com>
1743 * Makefile.in (GCC_LINK): Remove quotes.
1744 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
1747 (powerpc-darwin): Pass -shared-libgcc when building shared library.
1749 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1752 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
1754 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1756 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
1758 2005-12-12 Arnaud Charlet <charlet@adacore.com>
1760 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
1763 2005-12-12 Arnaud Charlet <charlet@adacore.com>
1765 * Make-lang.in: Update dependencies
1767 2005-12-12 Arnaud Charlet <charlet@adacore.com>
1769 * Make-lang.in: Add rule for ada/exp_sel.o
1771 2005-12-12 Arnaud Charlet <charlet@adacore.com>
1773 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
1775 2005-12-09 Arnaud Charlet <charlet@adacore.com>
1777 * gnatvsn.ads (Library_Version): Bump to version 4.2
1778 (ASIS_Version_Number): Bumped.
1780 2005-12-09 Doug Rupp <rupp@adacore.com>
1782 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
1783 Ada bind file prefix on VMS from b$ to b__.
1784 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
1787 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
1788 Targparm.OpenVMS_On_Target.
1789 (Object_Suffix): Initialize with target object suffix.
1790 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
1792 * butil.adb: Change some Hostparm.OpenVMS checks to
1793 Targparm.OpenVMS_On_Target.
1795 * clean.adb: Change some Hostparm.OpenVMS checks to
1796 Targparm.OpenVMS_On_Target.
1797 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
1798 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
1799 Ada bind file prefix on VMS from b$ to b__.
1801 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
1802 --GCC so that Get_Target_Parameters can find system.ads.
1803 (Gnatlink): Call Get_Target_Parameters in mainline.
1804 Initialize standard packages for Targparm.
1805 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
1806 (Process_Args): Also Check for object files with target object
1808 (Make_Binder_File_Names): Create with target object extension.
1809 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
1812 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
1813 Targparm.OpenVMS_On_Target.
1814 ({declaration},Build_Library,Check_Library): Change Ada bind file
1815 prefix on VMS from b$ to b__.
1817 * osint-b.adb: Change some Hostparm.OpenVMS checks to
1818 Targparm.OpenVMS_On_Target.
1819 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
1822 * targext.c: New file.
1824 * Makefile.in: add support for vxworks653 builds
1825 (../../vxaddr2line): gnatlink with targext.o.
1826 (TOOLS_LIBS): Move targext.o to precede libgnat.
1827 (init.o, initialize.o): Minor clean up in dependencies.
1828 (GNATLINK_OBJS): Add targparm.o, snames.o
1829 Add rules fo building targext.o and linking it explicitly with all
1831 Also add targext.o to gnatlib.
1833 * Make-lang.in: Add rules for building targext.o and linking it in
1834 with gnat1 and gnatbind.
1835 Add entry for exp_sel.o.
1837 * osint.adb Change some Hostparm.OpenVMS checks to
1838 Targparm.OpenVMS_On_Target.
1839 (Object_File_Name): Use target object suffix.
1841 * osint.ads (Object_Suffix): Remove, no longer used.
1842 (Target_Object_Suffix): Initialize with target object suffix.
1844 * rident.ads: Add special exception to license.
1846 * targparm.adb (Get_Target_Parameters): Set the value of
1847 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
1849 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
1851 * targparm.ads: Add special exception to license.
1853 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
1855 (Copy_File): Make sure from file is closed if error on to file
1856 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
1858 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
1859 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
1861 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
1862 target object suffix.
1864 2005-12-09 Jose Ruiz <ruiz@adacore.com>
1865 Quentin Ochem <ochem@adacore.com>
1866 Florian Villoing <villoing@adacore.com>
1868 * a-taster.ads, a-taster.adb: New files.
1870 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
1871 link to the version that does nothing. This way the task termination
1872 routine is not executed twice for the environment task when finishing
1873 because of an unhandled exception.
1875 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
1876 handler because of an unhandled exception.
1878 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
1879 System.Tasking.Utilities instead of that in System.Tasking.Stages.
1881 * s-finimp.adb (initialization code): Modify the soft link for the
1882 finalization of the global list instead of Adafinal.
1884 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
1885 non-tasking version of the soft link for task termination. We do
1886 nothing since if we are using the non-tasking version it
1887 means that the task termination functionality is not used.
1888 (Null_Finalize_Global_List): Add this null version for the procedure
1889 in charge of finalizing the global list for controlled objects.
1890 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
1891 instead for handling run-time termination in a more flexible way.
1892 (Adafinal_NT): This new procedure will take care of finalizing the
1893 global list for controlled objects if needed, but no tasking
1896 * s-tarest.adb (Task_Lock): Do not try to lock again the
1897 Global_Task_Lock if we already own it. Otherwise, we get blocked in
1898 some run-time operations.
1899 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
1900 until all nested locks have been released.
1901 (Task_Wrapper): Call the fall-back task termination handler. It
1902 applies to all tasks but the environment task.
1903 (Finalize_Global_Tasks): Add the call for the task termination
1904 procedure for the environment task.
1905 (Task_Wrapper): suppress warnings around declaration of
1906 Secondary_Stack_Address.
1908 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
1909 moved to the Common_ATCB record.
1910 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
1912 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
1915 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
1916 Fall_Back_Handler, and Specific_Handler.
1918 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
1919 defined in Ada.Task_Termination, to avoid circular dependencies.
1920 (Termination_Handler): Redefine this type here, alredy defined in
1921 Ada.Task_Termination, for avoiding circular dependencies.
1922 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
1923 for storing task termination handlers. In addition,
1924 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
1925 Common_ATCB because it is used by both the regular and the restricted
1927 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
1928 Common_ATCB because it is used by both the regular and the restricted
1930 (Common_ATCB): Added a dynamic task analyzer field.
1932 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
1933 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
1934 (Task_Wrapper): Call the task termination handler. It applies to all
1935 tasks but the environment task.
1936 (Finalize_Global_Tasks): Call the task termination procedure for the
1937 environment task. The call to Finalize_Global_List is now performed
1938 using the soft links mechanism.
1939 (Task_Wrapper): added dynamic stack analysis.
1941 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
1942 potentially blocking operations has been moved from
1943 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
1944 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
1945 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
1946 this run-time check.
1948 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
1949 of task termination procedure.
1950 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
1951 link for the task termination procedure.
1953 * bindusg.adb: (Bindusg): Added documentation for -u option.
1955 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
1956 (Get_Main_C): Add handling of dynamic stack analysis.
1957 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
1959 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
1960 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
1961 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
1963 * opt.ads: Added flags used by dynamic stack measurement.
1964 (Max_Line_Length): Remove (not used anymore)
1966 * s-io.ads, s-io.adb (Standard_Error): new subprogram
1967 (Standart_Output): new subprogram
1968 (Set_Output): new subprogram
1969 (Put): now uses the value of Current_Out to know if the output has to be
1970 send to stderr or stdout.
1972 * s-stausa.ads: Complete implementation.
1974 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
1976 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
1977 list of Ada 05 files.
1978 (GNAT Library Units): Add AltiVec files.
1980 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
1981 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
1982 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
1984 2005-12-09 Nicolas Setton <setton@adacore.com>
1986 * adaint.c (__gnat_locate_regular_file): Return immediately if
1989 2005-12-09 Javier Miranda <miranda@adacore.com>
1990 Hristian Kirtchev <kirtchev@adacore.com>
1992 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
1993 to the specification because the frontend generates code that uses this
1995 (Set_Interface_Table): Add missing assertion.
1996 Update documentation describing the run-time structure.
1997 (Displace): New subprogram that displaces the pointer to the object
1998 to reference one of its secondary dispatch tables.
1999 (IW_Membership): Modified to use the new table of interfaces.
2000 (Inherit_TSD): Modified to use the new table of interfaces.
2001 (Register_Interface_Tag): Use the additional formal to fill the
2002 contents of the new table of interfaces.
2003 (Set_Interface_Table): New subprogram that stores in the TSD the
2004 pointer to the table of interfaces.
2005 (Set_Offset_To_Top): Use the additional formal to save copy of
2006 the offset value in the table of interfaces.
2007 Update structure of GNAT Primary and Secondary dispatch table diagram.
2008 Add comment section on GNAT dispatch table prologue.
2009 (Offset_To_Signature): Update the constant value of the Signature field.
2010 (Dispatch_Table): Update comment on hidden fields in the prologue.
2011 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
2012 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
2013 the type of formal parameter T to Tag, introduce additional assertions.
2014 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
2016 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
2018 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
2019 in all the calls to Expand_Interface_Thunk. Instead of referencing the
2020 record component containing the tag of the secondary dispatch table we
2021 have to use the Offset_To_Top run-time function to get this information;
2022 otherwise if the pointer to the base of the object has been displace
2023 we get a wrong value if we use the 'position attribute.
2025 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
2026 all the calls to Expand_Interface_Thunk.
2027 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
2028 interfaces; hence the call to Set_Interface_Table was clearly wrong.
2029 (Collect_All_Interfaces): Modify the internal subprogram Collect to
2030 ensure that the interfaces implemented by the ancestors are placed
2031 at the header of the generated list.
2032 (Expand_Interface_Conversion): Handle the case in which the displacement
2033 associated with the interface conversion is not statically known. In
2034 this case we generate a call to the new run-time subprogram Displace.
2035 (Make_DT): Generate and fill the new table of interfaces.
2036 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
2037 Get_Tagged_Kind and Set_Tagged_Kind.
2038 (Tagged_Kind): New function that determines the tagged kind of a type
2039 with respect to limitedness and concurrency and returns a reference to
2041 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
2042 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
2043 primary dispatch table for a type.
2044 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
2045 secondary dispatch table respectively of a tagged type.
2047 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
2048 (Expand_Interface_Conversion): New subprogram to indicate if the
2049 displacement of the type conversion is statically known.
2050 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
2052 * rtsfind.ads (RE_Offset_To_Top): New entity
2053 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
2054 accessible to users.
2055 (Re_Displace): New entity
2056 (RE_Interface_Data): New entity
2057 (RE_Set_Interface_Data): New_Entity
2058 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
2059 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
2060 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
2061 RE_TK_Tagged, RE_TK_Task.
2063 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
2064 Init_Secondary_Tags_Internal to allow its use with interface types and
2065 also to generate the code for the new additional actual required
2066 by Set_Offset_To_Top.
2067 (Build_Init_Statements): In case of components associated with abstract
2068 interface types there is no need to generate a call to its IP.
2069 (Freeze_Record_Type): Generate Select Specific Data tables only for
2071 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
2072 the bodies and specifications of the predefined primitive operations
2073 dealing with dispatching selects and abort, 'Callable, 'Terminated only
2074 for concurrent types.
2076 * exp_sel.ads, exp_sel.adb: New files.
2078 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
2079 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
2080 properly protected objects and attach handler in the case of the
2082 Move embeded package Select_Expansion_Utilities into a separate external
2084 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
2085 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
2086 (Build_K, Build_S_Assignment): New subprograms, part of the select
2087 expansion utilities.
2088 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
2089 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
2090 where the trigger is a dispatching procedure of a limited tagged type.
2092 2005-12-09 Olivier Hainque <hainque@adacore.com>
2094 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
2095 pointer initialization values. Make a SAVE_EXPR instead. Add comments
2096 about the use and expansion of SAVE_EXPRs in the various possible
2097 renaming handling cases.
2098 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
2099 abusing DECL_FCONTEXT.
2101 2005-12-09 Matthew Heaney <heaney@adacore.com>
2103 * a-convec.adb (Merge): Added assertions to check whether vector params
2106 * a-coinve.adb (Merge): Added assertions to check whether vector params
2109 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
2111 (Cursor'Read): raises PE
2113 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
2114 to its default value.
2116 * a-cihama.adb: Manually check whether cursor's key and elem are
2119 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
2120 (Merge): Assert that target and source lists are in order
2121 (Swap): Declare non-const temporaries, to pass to Splice
2123 * a-cdlili.ads: (Splice): Changed param name and param mode
2125 * a-cdlili.adb: (Splice): Changed param name and param mode
2126 (Merge): Assert that target and source lists are in order
2127 (Swap): Declare non-const temporaries, to pass to Splice
2129 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
2130 (Write): declare Stream param as not null
2132 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
2133 an exception message.
2135 2005-12-09 Thomas Quinot <quinot@adacore.com>
2136 Robert Dewar <dewar@adacore.com>
2138 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
2139 which is the absolute maximum length we can support.
2141 * frontend.adb: For the processing of configuration pragma files,
2142 remove references to Opt.Max_Line_Length, which is not checked anymore.
2144 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
2147 * scn.adb, scng.adb:
2148 Always check line length against the absolute supported maximum,
2149 Hostparm.Max_Line_Length.
2151 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
2152 value for the maximum line length is Max_Line_Length (not
2153 Column_Number'Last).
2154 Minor error msg update
2155 (Set_Style_Check_Options): New interface returning error msg
2156 Minor code reorganization (processing for 'M' was out of alpha order)
2158 * switch-c.adb: New interface for Set_Style_Check_Options
2160 * stylesw.ads (Set_Style_Check_Options): New interface returning error
2163 2005-12-09 Javier Miranda <miranda@adacore.com>
2165 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
2166 with IP subprogram were only supported if there were limited types.
2168 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
2169 records with IP subprogram were only supported if there were limited
2172 2005-12-09 Olivier Hainque <hainque@adacore.com>
2173 Eric Botcazou <ebotcazou@adacore.com>
2175 * trans.c (tree_transform, emit_check): Adjust calls to
2176 build_call_raise, passing the now expected GNAT_NODE argument.
2178 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
2179 source line information than what the current global locus indicates
2182 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
2183 field has overflowed.
2184 (build_call_raise): Add a GNAT_NODE argument to convey better source
2185 line information than what the current global locus indicates when
2187 (build_component_ref): Adjust call to build_call_raise.
2189 2005-12-09 Pascal Obry <obry@adacore.com>
2191 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
2192 the iterator is quitting iteration on parent directory.
2194 2005-12-09 Javier Miranda <miranda@adacore.com>
2196 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
2197 and the assignment to a class-wide object, before the assignment we
2198 generate a run-time check to ensure that the tag of the Target is
2199 covered by the tag of the source.
2201 2005-12-09 Robert Dewar <dewar@adacore.com>
2203 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
2204 parameter in call to Image_Wide_Character.
2206 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
2207 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
2208 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
2209 annoying FFFE/FFFF inconsistency.
2211 2005-12-09 Robert Dewar <dewar@adacore.com>
2212 Javier Miranda <miranda@adacore.com>
2213 Ed Schonberg <schonberg@adacore.com>
2215 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
2217 (Find_Interface): New subprogram that given a tagged type and one of its
2218 component associated with the secondary table of an abstract interface
2219 type, return the entity associated with such abstract interface type.
2220 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
2221 base type to create anonymous subtype, because entity may be a locally
2222 declared subtype or generic actual.
2223 (Find_Interface): New subprogram that given a tagged type and one of its
2224 component associated with the secondary table of an abstract interface
2225 type, return the entity associated with such abstract interface type.
2227 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
2228 conversion cannot be handled at compile time. In this case we pass this
2229 information to the expander to generate the appropriate code.
2231 2005-12-09 Robert Dewar <dewar@adacore.com>
2232 Ed Schonberg <schonberg@adacore.com>
2233 Gary Dismukes <dismukes@adacore.com>
2234 Javier Miranda <miranda@adacore.com>
2235 Hristian Kirtchev <kirtchev@adacore.com>
2237 * einfo.adb (Itype_Printed): New flag
2238 (Is_Limited_Type): Derived types do not inherit limitedness from
2239 interface progenitors.
2240 (Is_Return_By_Reference_Type): Predicate does not apply to limited
2243 * einfo.ads (Itype_Printed): New flag
2244 Move Is_Wrapper_Package to proper section
2245 Add missing Inline for Is_Volatile
2247 * output.ads, output.adb (Write_Erase_Char): New procedure
2248 (Save/Restore_Output_Buffer): New procedures
2249 (Save/Restore_Output_Buffer): New procedures
2251 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
2252 Add missing support for anonymous access type
2253 (Write_Id): Insert calls to Write_Itype
2254 (Write_Itype): New procedure to output itypes
2256 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
2257 use of "limited" in declaration.
2259 * sinfo.ads, sinfo.adb:
2260 Formal derived types can carry an explicit "limited" indication.
2262 * sem_ch3.adb: Add with and use of Targparm.
2263 (Create_Component): If Frontend_Layout_On_Target is True and the
2264 copied component does not have a known static Esize, then reset
2265 the size and positional fields of the new component.
2266 (Analyze_Component_Declaration): A limited component is
2267 legal within a protected type that implements an interface.
2268 (Collect_Interfaces): Do not add to the list the interfaces that
2269 are implemented by the ancestors.
2270 (Derived_Type_Declaration): If the parent of the full-view is an
2271 interface perform a transformation of the tree to ensure that it has
2272 the same parent than the partial-view. This simplifies the job of the
2273 expander in order to generate the correct object layout, and it is
2274 needed because the list of interfaces of the full-view can be given in
2276 (Process_Full_View): The parent of the full-view does not need to be
2277 a descendant of the parent of the partial view if both parents are
2279 (Analyze_Private_Extension_Declaration): If declaration has an explicit
2280 "limited" the parent must be a limited type.
2281 (Build_Derived_Record_Type): A derived type that is explicitly limited
2282 must have limited ancestor and progenitors.
2283 (Build_Derived_Type): Ditto.
2284 (Process_Full_View): Verify that explicit uses of "limited" in partial
2285 and full declarations are consistent.
2286 (Find_Ancestor_Interface): Remove function.
2287 (Collect_Implemented_Interfaces): New procedure used to gather all
2288 implemented interfaces by a type.
2289 (Contain_Interface): New function used to check whether an interface is
2291 (Find_Hidden_Interface): New function used to determine whether two
2292 lists of interfaces constitute a set equality. If not, the first
2293 differing interface is returned.
2294 (Process_Full_View): Improve the check for the "no hidden interface"
2295 rule as defined by AI-396.
2297 2005-12-09 Robert Dewar <dewar@adacore.com>
2299 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
2300 types, not on record subtypes.
2301 (Freeze_Entity): Code cleanup. Add barrier to the loop
2302 that generates the references for primitive operations. This allows to
2303 remove an unnecessary exception handler.
2304 Code reformatting and comment clean ups.
2306 2005-12-09 Vincent Celier <celier@adacore.com>
2308 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
2309 If GNAT CHECK is called with a project file, but with no
2310 source on the command line, call gnatcheck with all the compilable
2311 sources of the project.
2312 Take into account the new command Check, for gnatcheck. Treat as for
2313 other ASIS tools: take into account project, specific package Check and
2315 For ASIS tools, add the switches in package Compiler for
2316 the invocation of the compiler.
2318 * prj-attr.adb: Add package Check and its attributes
2320 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
2322 * vms_conv.adb (Initialize): Change Params of command Check to
2324 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
2325 Add data for new command Check
2327 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
2329 Add qualifiers for Check command options
2330 (Command_Type): New command Check
2332 2005-12-09 Thomas Quinot <quinot@adacore.com>
2334 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
2335 command line switch overruns the output buffer.
2337 2005-12-09 Robert Dewar <dewar@adacore.com>
2339 * sem_prag.adb: Processing for new pragma Complete_Representation
2340 (Analyze_Pragma, case Debug): Implement two argument form.
2342 * par-prag.adb: Entry for new pragma Complete_Representation
2343 (Prag, case Debug): Recognize two argument form of pragma Debug
2344 New interface for Set_Style_Check_Options.
2346 * sem_ch13.adb: Implement new pragma Complete_Representation.
2348 * snames.adb, snames.ads, snames.h: Entry for new pragma
2349 Complete_Representation.
2351 2005-12-09 Gary Dismukes <dismukes@adacore.com>
2353 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
2354 available user-specified stream attributes on limited parameters to
2355 also test the type directly rather than only its underlying type (for
2356 Ada 95) and, in the case of Ada 2005, to check that the user-specified
2357 attributes are visible at the point of the subprogram declaration.
2358 For Ada 2005, the error message is modified to indicate that the
2359 type's stream attributes must be visible (again, only for -gnat05).
2361 2005-12-09 Ed Schonberg <schonberg@adacore.com>
2363 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
2364 anonymous access types.
2366 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
2367 matching of anonymous access types and anonymous access to subprogram
2368 types. 'R'M 4.9.1 (2/2).
2370 2005-12-09 Ed Schonberg <schonberg@adacore.com>
2372 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
2373 rule prematurely when operands are universal, remaining ambiguities
2374 will be removed during resolution.
2377 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
2378 that are Ada 2005 functions.
2379 (Has_Abstract_Interpretation): Subsidiary to
2380 Remove_Conversions, to remove ambiguities caused by abstract operations
2381 on numeric types when operands are universal.
2383 2005-12-09 Robert Dewar <dewar@adacore.com>
2385 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
2386 for case where spec is categorized.
2388 2005-12-09 Javier Miranda <miranda@adacore.com>
2390 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
2391 types use the corresponding record type. This was not needed before
2392 the implementation of Ada 2005 synchronized types because
2393 concurrent types were never tagged types in Ada 95.
2395 2005-12-09 Ed Schonberg <schonberg@adacore.com>
2397 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
2398 first subtype of the type of the expression to verify that it is a
2401 2005-12-09 Robert Dewar <dewar@adacore.com>
2403 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
2406 2005-12-09 Quentin Ochem <ochem@adacore.com>
2407 Robert Dewar <dewar@adacore.com>
2408 Ed Falis <falis@adacore.com>
2409 Florian Villoing <villoing@adacore.com>
2410 Thomas Quinot <quinot@adacore.com>
2411 Arnaud Charlet <charlet@adacore.com>
2413 * gnat_ugn.texi: Created section "Stack Related Tools"
2414 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
2415 "Stack Related Tools"
2416 Added subsection "Static Stack Usage Analysis"
2417 Added subsection "Dynamic Stack Usage Analysis"
2418 Include documentation of itypes in sprint listing (-gnatG)
2419 Documented gnatbind -D switch (default sec stack size for fixed sec
2421 Added Interrupt_State and Persistent_BSS to list of configuration
2423 Add missing doc for maximum value of nnn in -gnatyMnnn
2425 * gnat_rm.texi: Document the AltiVec binding.
2426 Add documentation for pragma Complete_Representation
2427 Shortened an overly long line (> 79 chars)
2428 Clarify documentation of unchecked conversion in implementation
2430 Document two argument form of pragma Debug
2432 * types.ads (Column_Number): Update documentation.
2434 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
2435 library level Finalize_Storage_Only objects (these are not attached to
2436 any finalization list).
2438 * system-mingw.ads: (Underlying_Priorities): Update comment.
2440 2005-12-09 Robert Dewar <dewar@adacore.com>
2442 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
2443 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
2444 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
2445 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
2446 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
2447 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
2448 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
2449 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
2452 2005-12-09 Robert Dewar <dewar@adacore.com>
2454 * s-vaflop-vms-alpha.adb: (Ne_F): New function
2455 (Ne_G): New function
2457 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
2459 (Rewrite_Comparison): Handle case where operation is not a comparison
2460 and ignore, and also handle type conversion case.
2462 2005-12-09 Thomas Quinot <quinot@adacore.com>
2464 * exp_aggr.ads: Fix typo in comment.
2465 ???-mark Convert_Aggr_In_Assignment as needing documentation.
2467 2005-12-09 Gary Dismukes <dismukes@adacore.com>
2469 * layout.adb: Replace various uses of byte by storage unit throughout.
2470 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
2471 static size, convert to storage units before returning, to conform to
2474 2005-12-09 Matthew Gingell <gingell@adacore.com>
2476 * g-exctra.ads: Fix typo in comment.
2478 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2480 * utils.c: Minor reformatting.
2482 2005-12-09 Robert Dewar <dewar@adacore.com>
2485 Further comment fixes to make the status of the default file clear
2487 * s-bitops.adb: Clarify comment for Bits_Array
2489 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
2491 * Make-lang.in (ada.install-normal): Remove.
2493 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
2495 * Make-lang.in: Remove all dependencies on s-gtype.
2497 2005-12-05 Richard Guenther <rguenther@suse.de>
2499 * utils.c (convert): Use fold_convert where appropriate.
2501 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
2503 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
2506 2005-12-02 Richard Guenther <rguenther@suse.de>
2508 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
2510 2005-12-01 Roger Sayle <roger@eyesopen.com>
2512 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
2515 2005-11-23 Laurent GUERBY <laurent@guerby.net>
2517 * mlib-prj.adb (Build_Library): Initialize Delete.
2519 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
2521 * socket.c: Add extern int h_errno for rtems since networking header
2522 files are not available at this point in a tool bootstrap. Newlib
2523 only has basic C library header files.
2525 2005-11-19 Richard Guenther <rguenther@suse.de>
2526 Roger Sayle <roger@eyesopen.com>
2529 * misc.c (internal_error_function): Don't use vsprintf to format
2530 the error message text, instead use pp_format_text and the new
2531 pretty printer APIs. This allows handling of %qs, %w, etc.
2533 2005-11-18 Laurent GUERBY <laurent@guerby.net>
2536 * Makefile.in: Use s-auxdec-empty for RTEMS.
2538 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2541 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
2542 a temporary if taking the address of something that is neither
2543 reference, declaration, or constant, since the gimplifier
2544 can't handle that case.
2546 2005-11-17 Laurent GUERBY <laurent@guerby.net>
2549 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
2551 2005-11-16 Richard Guenther <rguenther@suse.de>
2553 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
2555 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
2558 * raise-gcc.c: Add missing stdarg.h include.
2560 2005-11-16 Richard Guenther <rguenther@suse.de>
2562 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
2563 (ada/misc.o): Likewise.
2565 2005-11-14 Thomas Quinot <quinot@adacore.com>
2567 * g-soccon.ads: Minor reformatting. Update comments.
2569 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
2570 gain visibility on the declaration of struct timeval.
2572 * g-soccon-freebsd.ads,
2573 g-soccon-darwin.ads,
2578 g-soccon-solaris.ads,
2581 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
2583 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
2584 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
2585 g-soccon-linux-x86.ads: New files.
2587 * g-socthi-mingw.adb:
2588 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
2590 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
2591 (time_t, suseconds_t): New types constructed to match the tv_sec
2592 and tv_usec fields of C struct timeval.
2593 (Timeval): Construct structure in terms of the new types.
2594 (Host_Errno): New function (imported from socket.c), returns last hosts
2597 * g-socthi-vxworks.adb: Add error handling circuitry.
2599 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
2600 components of struct timeval.
2601 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
2602 (Check_Selector): In error conditions, clear internal socket sets to
2603 avoid a memory leak.
2604 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
2605 Send_Timeout, Receive_Timeout.
2607 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
2608 the tv_sec and tv_usec fields of C struct timeval.
2609 (Timeval): Construct structure in terms of the new types.
2610 (Host_Errno): New function (imported from socket.c), returns last hosts
2613 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
2614 hosts database last error code.
2616 * gen-soccon.c: Complete value expansion should not be performed on
2617 TARGET, as it has the form of a math expression, and some components
2618 may be platform-defined macros.
2619 For VxWorks, generate the OK and ERROR values.
2620 New constants giving the sizes of the components of C struct timeval.
2622 2005-11-14 Robert Dewar <dewar@adacore.com>
2623 Ed Schonberg <schonberg@adacore.com>
2627 * types.ads: Include All_Checks in Suppress_Array
2629 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
2630 not(a=b), since we no longer do this rewriting, and hence it is not
2632 (Elaboration_Checks_Suppressed): Add special casing to
2633 deal with different cases of static and dynamic elaboration checks (all
2634 checks does not count in the first case, but does in the second).
2635 (Expr_Known_Valid): Do not assume that the result of any arbitrary
2636 function call is valid, since this is not the case.
2637 (Ensure_Valid): Do not apply validity check to a real literal
2638 in a universal or fixed context
2640 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
2641 elementary types using the operator in standard. It is cleaner not to
2642 modify the programmers intent, especially in the case of floating-point.
2643 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
2644 it did not matter because we always rewrote a/=b to not(a=b).
2645 (Expand_Allocator_Expression): For an allocator expression whose nominal
2646 subtype is an unconstrained packed type, convert the expression to its
2647 actual constrained subtype.
2648 Implement warning for <= or >= where < or > not possible
2649 Fix to Vax_Float tests (too early in many routines, causing premature
2650 Vax_Float expansions.
2652 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
2653 to be used with packages and generic packages as well as with
2655 (Suppress): Set All_Checks, but not Elaboration_Check, for case
2656 of pragma Suppress (All_Checks)
2657 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
2658 a string literal for precise control over warnings.
2659 Avoid raise of pragma in case of unrecognized pragma and just return
2662 * sem_prag.ads: Minor reformatting
2664 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
2665 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
2666 Switch. Do not handle any exception.
2667 Include -gnatwx as part of -gnatg (warn on redundant parens)
2668 Allow optional = after -gnatm
2669 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
2670 longer sets Elaboration_Checks.
2671 Code to set warning mode moved to Sem_Warn
2672 so that it can be shared by pragma processing.
2674 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
2677 * s-taprop-solaris.adb:
2678 Change some <= to =, to avoid new warning
2680 * a-exexda.adb, prj-proc.adb:
2681 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
2682 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
2684 2005-11-14 Robert Dewar <dewar@adacore.com>
2686 * exp_vfpt.adb: Handle /= case
2687 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
2688 so that we do not get duplicate scaling for fixed point conversions.
2690 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
2692 2005-11-14 Matthew Gingell <gingell@adacore.com>
2694 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
2695 Increase default priority on Lynx from 15 to 17, and meet the Ada
2696 requirement that Default_Priority be ((Priority'First +
2697 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
2699 2005-11-14 Vincent Celier <celier@adacore.com>
2701 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
2702 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
2703 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
2704 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
2705 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
2706 mlib-tgt-lynxos.adb (DLL_Prefix): New function
2708 2005-11-14 Doug Rupp <rupp@adacore.com>
2710 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
2713 2005-11-14 Arnaud Charlet <charlet@adacore.com>
2715 * s-traces-default.adb, s-trafor-default.ads,
2716 s-tratas-default.adb: Fix compilation errors.
2718 2005-11-14 Jose Ruiz <ruiz@adacore.com>
2720 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
2721 raising the exception so the memory used is freed.
2723 2005-11-14 Arnaud Charlet <charlet@adacore.com>
2725 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
2726 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
2727 (convert_address): Update comments and list of platforms using this.
2729 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
2732 2005-11-14 Pascal Obry <obry@adacore.com>
2733 Vincent Celier <celier@adacore.com>
2735 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
2738 * memroot.adb: Remove redundant with/use clause on
2739 System.Storage_Elements.
2741 2005-11-14 Arnaud Charlet <charlet@adacore.com>
2743 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
2744 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
2745 related code to a-exexpr.adb
2746 (Save_Occurrence_And_Private): Move GCC EH related code to
2748 (Raise_Current_Excep): Add new variable Id with pragma
2749 volatile, to ensure that the variable lives on stack.
2751 * a-exexpr-gcc.adb, raise-gcc.c: New file.
2753 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
2755 Move GCC EH related code to a-exexpr-gcc.adb
2757 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
2759 Split the Linux version of g-soccon into separate variants for 32 and 64
2761 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
2762 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
2763 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
2764 of host variable $(RANLIB_FLAGS).
2765 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
2766 Code clean up: remove unused/obsolete targets.
2767 (EH_MECHANISM): New variable introduced to differenciate between the
2768 two EH mechanisms statically.
2769 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
2770 (LIBGNAT_OBJS): Add raise-gcc.o
2771 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
2772 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
2773 supports VxWorks 6 RTPs.
2774 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
2775 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
2777 * raise.c: Move all GCC EH-related routines to raise-gcc.c
2779 2005-11-14 Jose Ruiz <ruiz@adacore.com>
2781 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
2782 deferral level, when abort is not allowed, to a later stage (the
2784 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
2785 it will not get changed by the generated code. It was previously done
2788 2005-11-14 Thomas Quinot <quinot@adacore.com>
2789 Olivier Hainque <hainque@adacore.com>
2790 Eric Botcazou <ebotcazou@adacore.com>
2793 Factor common code to build a storage type for an unconstrained object
2794 from a fat or thin pointer type and a constrained object type.
2795 (annotate_value): Handle BIT_AND_EXPR.
2796 (annotate_rep): Don't restrict the back annotation of inherited
2797 components to the type_annotate_only case.
2798 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
2799 we are not defining the type.
2800 <E_Record_Type>: Likewise.
2801 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
2802 to get advantage of the new maybe_stabilize_reference interface, to
2803 ensure that what we reference is indeed stabilized instead of relying
2804 on assumptions on what the stabilizer does.
2805 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
2806 type imported through a limited_with clause, use its non-limited view.
2807 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
2809 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
2810 of #if sections + explicit comparisons of convention identifiers.
2811 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
2812 before early-returning for certain types when code generation is
2814 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
2815 nullification of gnu_expr we do for objects with address clause and
2816 that we are not defining.
2817 (elaborate_expression_1): Do not create constants when creating
2818 variables needed by the debug info: the dwarf2 writer considers that
2819 CONST_DECLs is used only to represent enumeration constants, and emits
2821 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
2822 object with an address clause into an indirect reference, drop the
2823 initializing expression.
2825 (STACK_CHECK_BUILTIN): Delete.
2826 (STACK_CHECK_PROBE_INTERVAL): Likewise.
2827 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
2828 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
2829 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
2830 corresponding to the renamed object as ignored for debugging purposes.
2832 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
2833 related): For a prefix that is a dereference of a fat or thin pointer,
2834 if there is an actual subtype provided by the front-end, use that
2835 subtype to build an actual type with bounds template.
2836 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
2837 is provided by the front-end, use that subtype to compute the size of
2838 the deallocated object.
2839 (gnat_to_gnu): When adding a statement into an elaboration procedure,
2840 check for a potential violation of a No_Elaboration_Code restriction.
2841 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
2842 with extra arguments to control whether to recurse through non-values
2843 and to let the caller know if the stabilization has succeeded.
2844 (gnat_stabilize_reference): Now a simple wrapper around
2845 maybe_stabilize, for common uses without restriction on lvalues and
2846 without need to check for the success indication.
2847 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
2848 pass false instead of 0 as the FORCE argument which is a bool.
2849 (Identifier_to_gnu): Remove checks ensuring that an renamed object
2850 attached to a renaming pointer has been properly stabilized, as no such
2851 object is attached otherwise.
2852 (call_to_gnu): Invoke create_var_decl to create the temporary when the
2853 function uses the "target pointer" return mechanism.
2854 Reinstate conversion of the actual to the type of the formal
2855 parameter before any other specific treatment based on the passing
2856 mechanism. This turns out to be necessary in order for PLACEHOLDER
2857 substitution to work properly when the latter type is unconstrained.
2859 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
2861 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
2862 with extra arguments to control whether to recurse through non-values
2863 and to let the caller know if the stabilization has succeeded.
2865 * utils2.c (gnat_build_constructor): Only sort the fields for possible
2866 static output of record constructor if all the components are constant.
2867 (gnat_build_constructor): For a record type, sort the list of field
2868 initializers in increasing bit position order.
2869 Factor common code to build a storage type for an unconstrained object
2870 from a fat or thin pointer type and a constrained object type.
2871 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
2872 types variants, and process special cases of VIEW_CONVERT expressions
2873 as their NOP_EXPR counterpart to ensure we get to the
2874 CORRESPONDING_VARs associated with CONST_DECls.
2875 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
2876 on the right-hand side.
2878 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
2880 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
2881 are converting back to its original type.
2882 (convert) <JM input>: Fallthrough regular conversion code instead of
2883 extracting the object if converting to a type variant.
2884 (create_var_decl): When a variable has an initializer requiring code
2885 generation and we are at the top level, check for a potential violation
2886 of a No_Elaboration_Code restriction.
2887 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
2888 SIZE and SIZE_UNIT which we need for later back-annotations.
2889 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
2890 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
2891 is an unchecked union.
2892 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
2893 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
2894 main variant, just replace the VIEW_CONVERT_EXPR.
2895 <UNION_TYPE>: Revert 2005-03-02 change.
2897 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
2899 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
2901 2005-11-14 Matthew Heaney <heaney@adacore.com>
2903 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
2904 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
2905 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
2906 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
2907 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
2908 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
2909 Compiles against the spec for ordered maps described in sections
2910 A.18.6 of the most recent (August 2005) AI-302 draft.
2912 2005-11-14 Olivier Hainque <hainque@adacore.com>
2914 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
2915 to ensure bias adjustments take place when need be and to prevent
2916 occurrences of intermediate overflows.
2918 2005-11-14 Matthew Gingell <gingell@adacore.com>
2919 Olivier Hainque <hainque@adacore.com>
2921 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
2924 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
2925 tracebacks on ia64 HP-UX and provide explanatory comment.
2926 Enable backtraces on ia64 GNU/Linux.
2927 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
2928 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
2930 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
2931 Javier Miranda <miranda@adacore.com>
2933 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
2934 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
2935 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
2936 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
2938 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
2939 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
2942 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
2943 subprogram that generates the external name associated with a
2944 secondary dispatch table.
2945 (Get_Secondary_DT_External_Name): New subprogram that generates the
2946 external name associated with a secondary dispatch table.
2948 2005-11-14 Emmanuel Briot <briot@adacore.com>
2950 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
2951 line in the ALI file to include both an instantiation reference, and a
2954 2005-11-14 Vincent Celier <celier@adacore.com>
2956 * clean.adb (Check_Project): Look for Ada code in extending project,
2957 even if Ada is not specified as a language.
2958 Use new function DLL_Prefix for DLL_Name
2959 (Clean_Interface_Copy_Directory): New procedure
2960 (Clean_Library_Directory): New procedure
2961 (Clean_Directory): Remove procedure, no longer used
2962 (Clean_Project): Do not delete any file in an externally built project
2964 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
2965 directory of an extending project, even when there are no Ada source
2967 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
2968 (Set_Ada_Paths.Add.Recursive_Add): Ditto
2970 * mlib-prj.adb (Check_Library): For all library projects, get the
2971 library file timestamp.
2972 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
2973 (Build_Library): Use new function DLL_Prefix for the DLL_Name
2974 (Clean): Remove procedure, no longer used
2975 (Ultimate_Extension_Of): New function
2976 (Build_Library): When cleaning the library directory, only remove an
2977 existing library file and any ALI file of a source of the project.
2978 When cleaning the interface copy directory, remove any source that
2979 could be a source of the project.
2981 * prj.ads, prj.adb (Project_Empty): Add values of new components
2982 Library_TS and All_Imported_Projects.
2983 (Project_Empty): Add values for new components of Project_Data:
2984 Library_ALI_Dir and Display_Library_ALI_Dir
2986 * prj-attr.adb: New project level attribute name Library_ALI_Dir
2988 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
2989 attribute Library_ALI_Dir.
2990 (Check_Library_Attributes): The library directory cannot be the same as
2991 any source directory of the project tree.
2992 (Check_Stand_Alone_Library): The interface copy directory cannot be
2993 the same as any source directory of the project tree.
2995 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
2996 all temporary files.
2998 2005-11-14 Robert Dewar <dewar@adacore.com>
2999 Ed Schonberg <schonberg@adacore.com>
3001 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
3002 (Check_Elab_Call): A call within a protected body is never an
3003 elaboration call, and does not require checking.
3004 (Same_Elaboration_Scope): Take into account protected types for both
3006 (Activate_Elaborate_All_Desirable): New procedure
3008 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
3011 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
3012 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
3014 * lib-writ.ads, lib-writ.adb:
3015 Implement new AD/ED for Elaborate_All/Elaborate desirable
3016 Use new Elaborate_All_Desirable flag in N_With_Clause node
3018 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
3019 N_Free_Statement nodes.
3020 Define new class N_Subprogram_Instantiation
3021 Add Elaborate_Desirable flag to N_With_Clause node
3022 Add N_Delay_Statement (covering two kinds of delay)
3024 * debug.adb: Introduce d.f flag for compiler
3025 Add -da switch for binder
3027 2005-11-14 Ed Schonberg <schonberg@adacore.com>
3028 Cyrille Comar <comar@adacore.com>
3030 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
3031 for task component, in the case of a limited aggregate. The enclosed
3032 object declaration will create it earlier. Otherwise, in the case of a
3033 nested aggregate, the object may appear in the wrong scope.
3034 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
3035 (Gen_Assign): If the component being assigned is an array type and the
3036 expression is itself an aggregate, wrap the assignment in a block to
3037 force finalization actions on the temporary created for each row of the
3039 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
3040 structures are initialized after all discriminants are set so that
3041 they can be accessed even when their offset is dynamic.
3043 2005-11-14 Robert Dewar <dewar@adacore.com>
3044 Hristian Kirtchev <kirtchev@adacore.com>
3046 * sem_attr.adb: Implement Machine_Rounding attribute
3047 (Analyze_Access_Attribute): The access attribute may appear within an
3048 aggregate that has been expanded into a loop.
3049 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
3050 'Terminated whenever the prefix is of a task interface class-wide type.
3051 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
3052 the prefix is of a task interface class-wide type.
3054 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
3057 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
3058 Remove pragma Inline for [Unaligned_]Valid.
3059 Add comments that Valid routines do not work for Vax_Float
3061 * exp_attr.adb: Implement Machine_Rounding attribute
3063 * snames.h: Add entry for Machine_Rounding attribute
3065 2005-11-14 Javier Miranda <miranda@adacore.com>
3066 Robert Dewar <dewar@adacore.com>
3067 Hristian Kirtchev <kirtchev@adacore.com>
3069 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
3070 and related): For a prefix that is an explicit dereference of an
3071 access to unconstrained packed array type, annotate the dereference
3072 with an actual subtype so GIGI can make a correct size computation.
3073 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
3074 'Unrestricted_Access, if the designated type is an interface we
3075 add a type conversion to force the displacement of the pointer
3076 to the secondary dispatch table.
3077 Use Universal_Real instead of Long_Long_Float when we need a high
3078 precision float type for the generated code (prevents gratuitous
3079 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
3080 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
3081 'Terminated for task interface class-wide objects. Generate a call to
3082 the predefined dispatching routine used to retrieve the _task_id from
3083 a task corresponding record.
3084 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
3086 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
3087 (Check_Dispatching_Operation): Protect the frontend againts
3088 previously detected errors.
3090 * Makefile.rtl: Add new instantiations of system.fat_gen
3092 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
3093 Change name of instantiated package for better consistency
3094 with newly added system.fat_gen instantiations.
3096 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
3097 s-fvagfl.ads: New files.
3099 2005-11-14 Cyrille Comar <comar@adacore.com>
3100 Thomas Quinot <quinot@adacore.com>
3102 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
3103 assignment of a value of a tagged type that has been rewritten to a
3104 block statement, it is known by construction that no checks are
3105 necessary for the statements within the block: analyze it with checks
3107 (Expand_N_If_Statement): When killing a dead then-branch in an
3108 if-statement that has elsif_parts, recompute the Current_Value node
3109 for any entity whose value is known from the condition of the first
3111 (Expand_N_Return_Statement): When returning a mutable record, convert
3112 the return value into its actual subtype in order to help the backend
3113 to return the actual size instead of the maximum. This is another
3114 aftermath of not returning mutable records on the sec-stack anymore.
3116 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
3117 handling of error msg for suspicious reverse range iteration.
3118 (Check_Possible_Current_Value_Condition): Move declaration from body to
3119 spec, to allow this subprogram to be called from exp_ch5.
3121 2005-11-14 Thomas Quinot <quinot@adacore.com>
3123 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
3124 generate a set of nested array aggregates instead of a single flat
3125 aggregate for multi-dimensional arrays.
3127 2005-11-14 Pascal Obry <obry@adacore.com>
3129 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
3130 by spawnve is a process handle, no need to convert. Add a parameter
3131 close to control wether the process handle must be closed.
3132 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
3133 a process handle, not need to convert.
3134 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
3136 * g-expect.adb: (Kill): Document the new close parameter.
3137 (Close): Do not release the process handle in the kill there as
3138 waitpid() is using it.
3139 (Send_Signal): Release the process handle.
3141 2005-11-14 Robert Dewar <dewar@adacore.com>
3143 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
3144 need a high precision float type for the generated code (prevents
3145 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
3148 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
3149 need a high precision float type for the generated code (prevents
3150 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
3152 (Expand_Width_Attribute): In configurable run-time, the attribute is not
3153 allowed on non-static enumeration subtypes. Force a load error to emit
3154 the correct diagnostic.
3156 2005-11-14 Thomas Quinot <quinot@adacore.com>
3157 Robert Dewar <dewar@adacore.com>
3158 Ed Schonberg <schonberg@adacore.com>
3160 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
3161 subtype to compute the size of the designated object at run-time,
3162 create such a subtype and store it in the Actual_Designated_Subtype
3163 attribute of the N_Free_Statement.
3164 Generate itype for classwide designated object in both cases of
3165 user-specified storage pool: specific and class-wide, not only in the
3167 Raise CE when trying to set a not null access type object to null.
3168 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
3169 an explicit loop, because freeze nodes make its position variable.
3171 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
3174 2005-11-14 Javier Miranda <miranda@adacore.com>
3176 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
3177 Build_Stream_Procedure): Add the null-excluding attribute to the first
3179 This has no semantic meaning under Ada95 mode but it is a
3180 requirement under Ada05 mode.
3182 * par-ch3.adb (P_Access_Definition): Addition of warning message if
3183 the null exclusion is used under Ada95 mode
3184 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
3185 (P_Access_Definition): Remove assertion that forbids the use of
3186 the null-exclusion feature in Ada95.
3188 2005-11-14 Robert Dewar <dewar@adacore.com>
3190 * impunit.adb: Exclude container helper units not intended for use by
3193 2005-11-14 Ed Schonberg <schonberg@adacore.com>
3195 * freeze.adb (Freeze_Entity): For an access formal that is an access
3196 to subprogram, freeze the anonymous subprogram type at the same time,
3197 to prevent later freezing in the wrong scope, such as the enclosing
3199 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
3200 subprogram whenever available.
3202 2005-11-14 Arnaud Charlet <charlet@adacore.com>
3205 * gnatvsn.ads (Library_Version): Bump to 4.1
3207 2005-11-14 Robert Dewar <dewar@adacore.com>
3209 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
3210 Storage_Offset to avoid wrap around causing invalid results.
3212 2005-11-14 Pascal Obry <obry@adacore.com>
3214 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
3216 (Scan_Bind_Arg): Fail with an error message if -M option is used
3217 on a native compiler.
3219 2005-11-14 Robert Dewar <dewar@adacore.com>
3220 Vincent Celier <celier@adacore.com>
3222 * gprep.adb: Implement -C switch to scan comments
3224 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
3226 * scans.ads: Comment updates (including new use of Tok_Comment in
3229 * opt.ads: Add documentation for flags that are used by gprmake,
3230 currently and in the next version of gprmake.
3231 (Verbosity_Level): New variable
3232 Add Replace_In_Comments switch
3234 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
3236 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
3238 2005-11-14 Arnaud Charlet <charlet@adacore.com>
3240 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
3241 message, friendlier.
3243 2005-11-14 Robert Dewar <dewar@adacore.com>
3245 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
3247 2005-11-14 Doug Rupp <rupp@adacore.com>
3249 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
3251 2005-11-14 Robert Dewar <dewar@adacore.com>
3253 * interfac.ads: Change declarations of IEEE float types so that we no
3254 longer need a separate version of this package for VMS.
3256 2005-11-14 Ed Schonberg <schonberg@adacore.com>
3258 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
3259 internal entity created for the declaration of a child subprogram body
3260 with no spec as coming from source, to generate proper cross-reference
3263 2005-11-14 Vincent Celier <celier@adacore.com>
3265 * make.adb (Compile_Sources): Change verbose message to minimum
3266 verbosity level High for "is in an Ada library", "is a read-only
3267 library" and "is an internal library",
3268 (Create_Binder_Mapping_File): Path name of ALI file for library project
3269 must include the library directory, not the object directory.
3270 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
3271 for new switches -vl, -vm and -vh.
3272 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
3273 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
3274 (Compile_Sources): Do not attempt to compile if an ALI file is missing
3275 in a project that is externally built.
3276 (Compute_All_Imported_Projects): New procedure
3277 (Gnatmake): Check if importing libraries should be regenerated because
3278 at least an imported library is more recent.
3279 (Initialize): For each project compute the list of the projects it
3280 imports directly or indirectly.
3281 (Add_Library_Search_Dir): New procedure, used in place of
3282 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
3283 put in the search paths.
3284 (Add_Source_Search_Dir): New procedure, used in place of
3285 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
3286 put in the search paths.
3287 (Mark_Directory): Resolve the absolute path the directory before marking
3290 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
3291 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
3292 Switch. Do not handle any exception.
3293 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
3294 so that the switch is recognized as valid.
3295 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
3297 2005-11-14 GNAT Script <nobody@adacore.com>
3299 * Make-lang.in: Makefile automatically updated
3301 2005-11-14 Pascal Obry <obry@adacore.com>
3303 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
3305 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
3306 In both cases the last argument was dropped.
3308 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
3310 * namet.h: (Column_Numbe): New type.
3311 (Get_Column_Number): Define to sinput__get_column_number.
3312 (Instantiation): Define to sinput__instantiation.
3313 (Get_Column_Number): Declare.
3314 (Instantiation): Likewise.
3316 2005-11-14 Robert Dewar <dewar@adacore.com>
3318 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
3319 syntax, which could cause compiler hangs.
3321 2005-11-14 Vincent Celier <celier@adacore.com>
3323 * prj-ext.adb: Take into account new environment variable
3324 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
3326 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
3327 normalize its path name, making it absolute and resolving symbolic
3328 links, and replace the original if resolved path is different.
3330 2005-11-14 Vincent Celier <celier@adacore.com>
3332 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
3333 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
3335 2005-11-14 Emmanuel Briot <briot@adacore.com>
3337 * prj-pp.adb (Print): Do not output the with statement if the
3338 associated name is empty, which happens for virtual extending projects.
3339 (Print): Preserve the "extends all" attribute when printing the project.
3341 * prj-tree.ads (String_Value_Of): Add comment about returned value for
3342 a virtual extending project.
3344 2005-11-14 Ed Schonberg <schonberg@adacore.com>
3346 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
3347 rhs of an assignment even if the type is unconstrained, when the
3348 context is non-expanding.
3349 In an inlined body, if the context type is private,
3350 resolve with its full view, which must be a composite type.
3352 2005-11-14 Robert Dewar <dewar@adacore.com>
3353 Ed Schonberg <schonberg@adacore.com>
3355 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
3356 Do not give obsolescent warning on with of subprogram (since we
3358 (Analyze_With_Clause): Add test for obsolescent package
3359 (Install_Context_Clauses): If the unit is the body of a child unit, do
3360 not install twice the private declarations of the parents, to prevent
3361 circular lists of Use_Clauses in a parent.
3362 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
3363 compiling body of child unit.
3364 Use new class N_Subprogram_Instantiation
3365 (Expand_With_Clause): If this is a private with_clause for a child unit,
3366 appearing in the context of a package declaration, then the implicit
3367 with_clauses generated for parent units are private as well.
3368 (License_Check): Do not generate message if with'ed unit is internal
3370 2005-11-14 Gary Dismukes <dismukes@adacore.com>
3371 Ed Schonberg <schonberg@adacore.com>
3372 Thomas Quinot <quinot@adacore.com>
3374 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
3375 names are internal, because they will not have a corresponding partner
3376 in the actual package.
3377 (Analyze_Formal_Package): Move the setting of the formal package spec's
3378 Generic_Parent field so that it occurs prior to analyzing the package,
3379 to allow proper operation of Install_Parent_Private_Declarations.
3380 (Analyze_Package_Instantiation): Set the instantiated package entity's
3381 Package_Instantiation field.
3382 (Get_Package_Instantiation_Node): Move declaration to package spec.
3383 Retrieve the N_Package_Instantiation node when the Package_Instantiation
3385 (Check_Generic_Child_Unit): Within an inlined call, the only possible
3386 instantiation is Unchecked_Conversion, for which no parents are needed.
3387 (Inline_Instance_Body): Deinstall and record the use_clauses for all
3388 parent scopes of a scope being removed prior to inlining an instance
3390 (Analyze_Package_Instantiation): Do not perform front-end inlining when
3391 the current context is itself an instance within a non-instance child
3392 unit, to prevent scope stack errors.
3393 (Save_References): If the node is an aggregate that is an actual in a
3394 call, rewrite as a qualified expression to preserve some type
3395 information, to resolve possible ambiguities in the instance.
3396 (Instance_Parent_Unit): New global variable to record the ultimate
3397 parent unit associated with a generic child unit instance (associated
3398 with the existing Parent_Unit_Visible flag).
3399 (type Instance_Env): New component Instance_Parent_Unit for stacking
3400 parents recorded in the global Instance_Parent_Unit.
3401 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
3403 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
3404 it's not a top-level unit, and only do this if Instance_Parent_Unit is
3405 not already set. Replace test of Is_Child_Unit with test of parent's
3406 scope against package Standard. Add comments and a ??? comment.
3407 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
3408 on a child instance parent to test that the parent equals
3409 Instance_Parent rather than simply checking that the unit is not a
3411 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
3412 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
3413 a formal interface are ancestors of the corresponding actual.
3414 (Validate_Formal_Interface_Type): Additional legality checks.
3415 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
3416 interface types with ancestors.
3417 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
3418 to diagnose attempts to use generic within its own declaration.
3420 2005-11-14 Ed Schonberg <schonberg@adacore.com>
3421 Javier Miranda <miranda@adacore.com>
3423 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
3425 (Build_Private_Derived_Type): The entity of the created full view of the
3426 derived type does not come from source. If after installing the private
3427 declarations of the parent scope the parent is still private, use its
3428 full view to construct the full declaration of the derived type.
3429 (Build_Derived_Record_Type): Relax the condition that controls the
3430 execution of the check that verifies that the partial view and
3431 the full view agree in the set of implemented interfaces. In
3432 addition, this test now only takes into account the progenitors.
3433 (Derive_Interface_Subprograms): No need to derive subprograms
3434 of ancestors that are interfaces.
3435 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
3437 Change name Is_Package to Is_Package_Or_Generic_Package
3438 (Complete_Subprograms_Derivation): Handle the case in which the full
3439 view is a transitive derivation of the ancestor of the partial view.
3440 (Process_Full_View): Rename local subprogram Find_Interface_In_
3441 Descendant to Find_Ancestor_Interface to leave the code more clear.
3442 Remove wrong code that avoids the generation of an error message
3443 when the immediate ancestor of the partial view is an interface.
3444 In addition some minor reorganization of the code has been done to
3445 leave it more clear.
3446 (Analyze_Type_Declaration): If type has previous incomplete tagged
3447 partial view, inherit properly its primitive operations.
3448 (Collect_Interfaces): Make public, for analysis of formal
3450 (Analyze_Interface_Declaration): New procedure for use for regular and
3451 formal interface declarations.
3452 (Build_Derived_Record_Type): Add support for private types to the code
3453 that checks if a tagged type implements abstract interfaces.
3454 (Check_Aliased_Component_Type): The test applies in the spec of an
3456 (Access_Type_Declaration): Clean up declaration of malformed type
3457 declared as an access to its own classwide type, to prevent cascaded
3459 (Collect_Interfaces): For private extensions and for derived task types
3460 and derived protected types, the parent may be an interface that must
3461 be included in the interface list.
3462 (Access_Definition): If the designated type is an interface that may
3463 contain tasks, create Master_Id for it before analyzing the expression
3464 of the declaration, which may be an allocator.
3465 (Record_Type_Declaration): Set properly the interface kind, for use
3466 in allocators, the creation of master id's for task interfaces, etc.
3468 2005-11-14 Javier Miranda <miranda@adacore.com>
3469 Ed Schonberg <schonberg@adacore.com>
3471 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
3472 omitted in case of stream attribute subprograms.
3473 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
3474 appear immediately after a subprogram body, when there is no previous
3475 subprogram declaration.
3476 Change name Is_Package to Is_Package_Or_Generic_Package
3477 (Process_Formals): A non null qualifier on a non null named access
3478 type is not an error, and is a warning only if Redundant_Constructs
3481 2005-11-14 Gary Dismukes <dismukes@adacore.com>
3482 Ed Schonberg <schonberg@adacore.com>
3484 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
3485 nested within Analyze_Package_Specification to install the private
3486 declarations and use clauses within each of the parent units of a
3487 package instance of a generic child package.
3488 (Analyze_Package_Specification): When entering a private part of a
3489 package associated with a generic instance or formal package, the
3490 private declarations of the parent must be installed (by calling new
3491 procedure Install_Parent_Private_Declarations).
3492 Change name Is_Package to Is_Package_Or_Generic_Package
3493 (Preserve_Full_Attributes): For a synchronized type, the corresponding
3494 record is absent in a generic context, which does not indicate a
3497 2005-11-14 Ed Schonberg <schonberg@adacore.com>
3499 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
3500 not try to rewrite a renamed stream attribute, because the operations
3501 on the type may not have been generated.
3502 Handle properly a renaming_as_body generated for a stream operation
3503 whose default is abstract because the object type itself is abstract.
3504 (Find_Type): If the type is incomplete and appears as the prefix of a
3505 'Class reference, it is tagged, and its list of primitive operations
3506 must be initialized properly.
3507 (Chain_Use_Clauses): When chaining the use clauses that appear in the
3508 private declaration of a parent unit, prior to compiling the private
3509 part of a child unit, find on the scope stack the proper parent entity
3510 on which to link the use clause.
3511 (Note_Redundant_Use): Emit a warning when a redundant use clause is
3513 (Analyze_Object_Renaming): An attribute reference is not a legal object
3514 if it is not a function call.
3516 2005-11-14 Robert Dewar <dewar@adacore.com>
3517 Ed Schonberg <schonberg@adacore.com>
3519 * sem_eval.adb: Implement d.f flag
3520 (Subtype_Statically_Match): A generic actual type has unknown
3521 discriminants when the corresponding actual has a similar partial view.
3522 If the routine is called to validate the signature of an inherited
3523 operation in a child instance, the generic actual matches the full view,
3525 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
3526 Ed Schonberg <schonberg@adacore.com>
3527 Robert Dewar <dewar@adacore.com>
3528 Thomas Quinot <quinot@adacore.com>
3530 * sem_res.adb (Resolve_Call): Provide a better error message whenever
3531 a procedure call is used as a select statement trigger and is not an
3532 entry renaming or a primitive of a limited interface.
3533 (Valid_Conversion): If the operand has a single interpretation do not
3534 remove address operations.
3535 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
3536 statement to inhibit warning.
3537 (Resolve_Unary_Op): Do not produce a warning when
3538 processing an expression of the form -(A mod B)
3539 Use Universal_Real instead of Long_Long_Float when we need a high
3540 precision float type for the generated code (prevents gratuitous
3541 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
3542 (Resolve_Concatenation_Arg): Improve error message when argument is an
3543 ambiguous call to a function that returns an array.
3544 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
3545 there is an implicit operator in the given scope if we are within an
3546 instance: legality check has been performed on the generic.
3547 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
3548 after resolving operand, to avoid false warnings on overloaded calls.
3550 2005-11-14 Ed Schonberg <schonberg@adacore.com>
3551 Javier Miranda <miranda@adacore.com>
3555 * sem_type.adb (Covers): In an inlined body, a composite type matches
3556 a private type whose full view is a composite type.
3557 (Interface_Present_In_Ancestor): Protect the frontend against
3558 previously detected errors to ensure that its compilation
3559 with assertions enabled gives the same output that its
3560 compilation without assertions.
3561 (Interface_Present_In_Ancestor): Add support for private types.
3562 Change name In_Actual to In_Generic_Actual (clean up)
3563 (Disambiguate): New predicate In_Actual, to recognize expressions that
3564 appear in the renaming declaration generated for generic actuals, and
3565 which must be resolved in the outer context.
3567 2005-11-14 Robert Dewar <dewar@adacore.com>
3568 Thomas Quinot <quinot@adacore.com>
3569 Hristian Kirtchev <kirtchev@adacore.com>
3570 Ed Schonberg <schonberg@adacore.com>
3572 * sem_util.ads, sem_util.adb: Change name Is_Package to
3573 Is_Package_Or_Generic_Package.
3574 (Check_Obsolescent): New procedure.
3575 (Set_Is_Public): Remove obsolete junk test.
3576 (Set_Public_Status): Do not set Is_Public on an object whose declaration
3577 occurs within a handled_sequence_of_statemets.
3578 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
3579 for a parameterless procedure.
3580 (Enter_Name): Recognize renaming declarations created for private
3581 component of a protected type within protected operations, so that
3582 the source name of the component can be used in the debugger.
3584 2005-11-14 Ed Schonberg <schonberg@adacore.com>
3585 Robert Dewar <dewar@adacore.com>
3587 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
3588 of a generic subprogram are not visible outside the body.
3589 (Set_Warning_Switch): New procedure (code to set warning mode moved
3590 here from Switch.C so that it can be shared by pragma processing.
3591 (Check_References): Special case warning for non-modified non-imported
3593 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
3594 form with a string literal argument
3596 2005-11-14 Javier Miranda <miranda@adacore.com>
3598 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
3600 (Write): Addition of "not null" to the anonymous access.
3601 (Read): Addition of "not null" to the anonymous access.
3602 (Write): Addition of "not null" to the anonymous access.
3604 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
3605 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
3606 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
3607 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
3608 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
3609 "not null" to the anonymous access.
3611 2005-11-14 Robert Dewar <dewar@adacore.com>
3613 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
3616 2005-11-14 Vincent Celier <celier@adacore.com>
3618 * switch.adb (Bad_Switch): New procedure
3619 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
3620 message when in error.
3622 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
3623 Too_Many_Output_Files): Remove declarations, no longer used.
3624 (Scan_Nat): New parameter Switch
3626 (Bad_Switch): New procedure
3628 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
3629 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
3630 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
3631 to Osint.Fail. Do not handle any exception.
3633 2005-11-14 Vincent Celier <celier@adacore.com>
3635 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
3636 designates a non existent directory.
3638 2005-11-14 Robert Dewar <dewar@adacore.com>
3640 * xgnatugn.adb: Replace invalid membership test by 'Valid
3642 2005-11-14 Vincent Celier <celier@adacore.com>
3644 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
3645 there is no object directory.
3647 2005-11-14 Robert Dewar <dewar@adacore.com>
3649 * usage.adb: Minor adjustment to output format, use nn instead of nnn
3650 (so that -gnateInnn does not run into next column)
3652 2005-11-14 Ed Falis <falis@adacore.com>
3654 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
3657 2005-11-14 Cyrille Comar <comar@adacore.com>
3659 * s-chepoo.ads: Add comments on Dereference.
3660 Remove unnecessary inherited abstract primitives.
3663 2005-11-14 Robert Dewar <dewar@adacore.com>
3665 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
3666 node parameter, not needed, since it is available as Declaration_Node.
3668 2005-11-14 Geert Bosch <bosch@adacore.com>
3670 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
3671 grammatically correct.
3673 2005-11-14 Vincent Celier <celier@adacore.com>
3675 * s-fileio.ads: Correct spelling error in comment
3677 2005-11-14 Cyrille Comar <comar@adacore.com>
3678 Robert Dewar <dewar@adacore.com>
3679 Vincent Celier <celier@adacore.com>
3680 Ben Brosgol <brosgol@adacore.com>
3681 Jose Ruiz <ruiz@adacore.com>
3682 Pascal Obry <obry@adacore.com>
3685 Document that -fstack-check is needed for strict compliance with the
3686 Ada 95 Reference Manual.
3687 Correct reference to VAX systems to meet HP guidelines
3688 Add documentation for new gnatmake switches -vl, -vm and -vh
3689 Replace DEC Ada by HP Ada
3690 Replace DIGITAL by HP
3691 Remove empty section on tools in compatibility section
3692 Clarify the Windows convention semantics.
3693 Document the Win32 calling convention.
3694 The Stdcall, Win32 and DLL convention are synonyms.
3695 Add a note in -gnatR description about zero size record components
3696 Note on new >= and <= warnings for -gnatwc
3697 Document that equal sign after -gnatm is optional.
3698 Note that strip is working fine on DLL built with a Library
3699 Project. The restriction apply only to DLL built with gnatdll.
3700 Update section about the way to debug a DLL.
3701 Update information about the DLL convention.
3702 Document -C switch for gnatprep
3703 Document new attribute Library_ALI_Dir
3704 Update elaboration doc to include implicit Elaborate pragmas now
3705 generated for subprogram instantiations.
3706 Document limitation on executable names that include spaces for --GCC,
3707 --GNATBIND, and --GNATLINK switches.
3708 Document that -w causes -gnatws to be added at start of gcc switches
3710 * gnat_rm.texi: Document that -mieee is needed for generating infinite
3711 and NaN values in case of overflow on machines that are not fully
3712 compliant with the IEEE floating-point standard.
3713 Create a section describing the set of compiler options needed for
3714 strict compliance with the Ada 95 Reference Manual.
3715 Add documentation for pragma Obsolescent applied to a package
3716 Clarify potential issues of mixed language programs related to the
3717 I/O buffering enabling in the elaboration of the GNAT runtime.
3718 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
3719 This documentation only patch adds extra documentsion for pragma
3720 Restrictions (No_Elaboration_Code), explaining why it is not possible
3721 to document this restriction in terms of allowed source constructs.
3722 Document string literal form of pragma Warnings
3723 Document new attribute Library_ALI_Dir
3724 Add documentation on stable attributes in project files that was missing
3726 * gnat-style.texi: Indicate that paragraphs within a single comment
3727 should be separated by empty comment lines
3729 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
3732 * bindusg.adb: Minor cleanup, put -m before -M for consistency
3734 2005-11-14 Robert Dewar <dewar@adacore.com>
3736 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
3737 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
3738 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
3739 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
3740 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
3741 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
3742 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
3743 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
3744 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
3745 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
3746 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
3747 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
3748 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
3749 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
3750 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
3751 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
3752 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
3753 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
3754 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
3755 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
3756 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
3757 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
3758 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
3759 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
3760 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
3761 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
3762 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
3763 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
3764 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
3765 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
3766 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
3767 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
3768 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
3769 system-interix.ads, system-solaris-sparc.ads,
3770 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
3771 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
3772 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
3773 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
3774 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
3775 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
3776 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
3777 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
3778 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
3779 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
3780 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
3781 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
3782 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
3783 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
3784 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
3785 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
3786 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
3787 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
3788 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
3789 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
3790 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
3791 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
3792 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
3793 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
3794 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
3795 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
3796 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
3797 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
3798 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
3799 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
3800 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
3801 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
3802 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
3803 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
3804 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
3805 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
3806 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
3807 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
3808 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
3809 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
3810 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
3811 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
3812 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
3813 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
3814 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
3815 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
3816 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
3817 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
3818 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
3819 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
3820 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
3821 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
3822 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
3823 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
3824 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
3825 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
3826 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
3827 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
3828 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
3829 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
3830 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
3831 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
3832 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
3833 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
3834 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
3835 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
3836 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
3837 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
3838 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
3839 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
3840 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
3841 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
3842 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
3843 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
3844 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
3845 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
3846 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
3847 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
3848 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
3849 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
3850 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
3851 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
3852 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
3853 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
3854 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
3855 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
3856 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
3857 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
3858 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
3859 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
3860 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
3861 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
3862 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
3863 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
3864 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
3865 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
3866 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
3867 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
3868 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
3869 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
3870 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
3871 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
3872 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
3873 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
3874 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
3875 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
3876 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
3877 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
3878 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
3879 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
3880 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
3881 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
3882 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
3883 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
3884 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
3885 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
3886 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
3887 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
3888 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
3889 a-numaux-darwin.ads, a-numaux-darwin.adb,
3890 a-swuwha.ads, a-stunha.ads: Minor reformatting
3892 2005-11-14 Robert Dewar <dewar@adacore.com>
3895 * osint-m.adb: Add pragma Elaborate_All for Osint
3897 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
3900 * trans.c (call_to_gnu): Restore statement lost in translation.
3902 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
3904 * init.c: Use the Linux-specific section for the IA-64/Linux target.
3905 (__gnat_adjust_context_for_raise): Add conditional code so that the
3906 IA-64 is also supported.
3908 2005-11-03 James E Wilson <wilson@specifix.com>
3911 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
3912 TREE_OVERFLOW check.
3914 2005-09-21 Olivier Hainque <hainque@adacore.com>
3917 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
3918 as we create them to store a size in bits.
3920 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
3928 * utils2.c (build_return_expr): New helper function.
3929 * gigi.h (build_return_expr): Declare it.
3930 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
3931 of manually building the RETURN_EXPR tree.
3932 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
3933 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
3934 build_binary_op for the "target pointer" case. Use build_return_expr
3935 instead of manually building the RETURN_EXPR tree.
3937 2005-09-16 Laurent GUERBY <laurent@guerby.net>
3940 * s-tpinop.ads: Make this unit Preelaborate.
3942 2005-09-16 Andreas Jaeger <aj@suse.de>
3944 * socket.c: Add string.h for memcpy.
3946 2005-09-05 Arnaud Charlet <charlet@adacore.com>
3948 * dec-io.ads, dec-io.adb: Removed, no longer used.
3950 2005-09-01 Arnaud Charlet <charlet@adacore.com>
3952 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
3954 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
3955 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
3956 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
3957 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
3958 dependent units are Preelaborate.
3959 (Initialize): Call Interrupt_Managemeent.Initialize and
3960 OS_Primitives.Initialize to ensure proper initialization of this unit.
3961 Remove use of System.Soft_Links
3962 Make this unit Preelaborate.
3964 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
3965 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
3966 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
3967 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
3968 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
3969 s-tratas.ads, s-tasinf.ads: Minor reformatting.
3970 Add pragma Preelaborate, since these packages are suitable for this
3974 * s-traent-vms.ads, s-intman-dummy.adb,
3975 s-taprop-dummy.adb: Make this unit Preelaborate.
3977 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
3978 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
3979 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
3980 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
3981 s-intman-solaris.adb, s-intman-irix-athread.adb,
3982 s-intman-irix.adb: Mark this unit Preelaborate.
3983 (Initialize): New procedure.
3986 * s-taspri-linux.ads: Removed.
3988 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
3989 as done by other implementations (e.g. posix).
3991 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
3992 responsible for deferring abort.
3993 Mark this unit Preelaborate.
3995 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
3996 proper initialization of the tasking run-time.
3998 * s-tasdeb.ads: Mark this unit Preelaborate.
3999 (Known_Tasks): Add explicit default value to avoid elaboration code.
4001 * s-inmaop-vms.adb (Elaboration code): Add call to
4002 Interrupt_Management.Initialize since the elaboration code depends on
4003 proper initialization of this package.
4005 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
4006 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
4007 s-osprim-posix.adb: Make this unit Preelaborate.
4009 * a-calend.adb: Add call to OS_Primitives.Initialize
4011 * a-elchha.adb: Update use of Except.Id.Full_Name.
4013 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
4015 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
4016 Move with clauses outside Warnings Off now that dependent units are
4018 Use raise xxx with "..."; Ada 2005 form.
4020 * a-taside.ads, a-taside.adb:
4021 Remove some dependencies, to make it easier to make this unit truly
4023 Rewrite some code to be conformant with Preelaborate rules.
4025 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
4026 marked Preelaborate in the future.
4028 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
4029 these units Preelaborate.
4031 * s-exctab.adb: Update use of Except.Id.Full_Name.
4033 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
4034 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
4035 Set_Exc_Stack_Addr): Removed, no longer used.
4036 Remove reference to *Machine_State_Addr*, no longer needed.
4038 * s-stalib.ads: Mark this unit as Preelaborate[_05].
4039 (Exception_Data): Full_Name is now a System.Address so that this unit
4040 can be made Preelaborate.
4041 Clean up/simplify code thanks to Full_Name being a System.Address.
4042 Remove obsolete pragma Suppress (All_Checks), no longer needed.
4044 * s-taskin.ads, s-taskin.adb:
4045 Move with clauses outside Warnings Off now that dependent units are
4047 Make this unit Preelaborate.
4048 (Initialize): New proceduure, replace elaboration code and makes the
4049 set up of the tasking run-time cleaner.
4050 (Detect_Blocking): Now a function instead of a deferred boolean, to
4051 obey Preelaborate rules.
4053 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
4054 soft links, no longer used.
4056 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
4057 packages are suitable for this categorization.
4059 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
4060 since we compile run-time sources in Ada 2005 mode.
4061 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
4062 avoid having s-taprop*.adb depend on s-soflin and to avoid code
4064 Remove reference to *Machine_State_Addr*, no longer needed.
4066 2005-09-01 Arnaud Charlet <charlet@adacore.com>
4068 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
4069 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
4070 Remove reference to System.Exceptions.
4072 * s-mastop-x86.adb: Removed, no longer used.
4074 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
4076 * a-excach.adb: Minor reformatting.
4078 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
4079 instead fix new warnings that were hidden by this change.
4080 (AAA, ZZZ): Removed, replaced by...
4081 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
4082 are used instead of constants, to help make Ada.Exception truly
4084 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
4085 Raise_Storage_Error): File is now a System.Address, to simplify code.
4086 (Elab code): Removed, no longer used.
4087 (Null_Occurrence): Remove Warnings Off and make this construct
4089 Remove code related to front-end zero cost exception handling, since
4090 it is no longer used.
4091 Remove -gnatL/-gnatZ switches.
4093 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
4094 Update use of Except.Msg.
4096 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
4097 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
4098 to front-end zero cost exception handling, since it is no longer used.
4099 Remove -gnatL/-gnatZ switches.
4101 * lib-writ.ads: Minor reformatting
4104 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
4106 * Make-lang.in: Remove references to s-except.ads
4108 * s-except.ads: Removed, no longer used.
4110 * s-mastop.ads, s-mastop.adb:
4111 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
4112 Remove reference to System.Exceptions.
4114 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
4115 switch-b.adb: Remove code related to front-end zero cost exception
4116 handling, since it is no longer used.
4117 Remove -gnatL/-gnatZ switches.
4119 2005-09-01 Robert Dewar <dewar@adacore.com>
4120 Gary Dismukes <dismukes@adacore.com>
4121 Javier Miranda <miranda@adacore.com>
4123 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
4124 type by valid test and generate warning.
4125 (Tagged_Membership): Generate call to the run-time
4126 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
4127 Change formal name Subtype_Mark to Result_Definition in several calls to
4128 Make_Function_Specification.
4129 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
4130 check for proper accessibility of the operand of a class-wide allocator.
4131 The check can be left out if checks are suppressed or if the expression
4132 has a specific tagged type whose level is known to be safe.
4134 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
4135 generates the run-time check associated with null-excluding entities.
4136 (Expand_N_Return_Statement): Add tests to determine if the accessibility
4137 check on the level of the return expression of a class-wide function
4138 can be elided. The check usually isn't needed if the expression has a
4139 specific type (unless it's a conversion or a formal parameter). Also
4140 add a test for whether accessibility checks are suppressed. Augment
4141 the comments to describe the conditions for performing the check.
4143 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
4144 Javier Miranda <miranda@adacore.com>
4145 Gary Dismukes <dismukes@adacore.com>
4146 Ed Schonberg <schonberg@adacore.com>
4148 * a-tags.adb (IW_Membership): Give support to
4149 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
4150 subprogram has been extended to look for the tag in the ancestors tag
4152 Update the structure of the GNAT Dispatch Table to reflect the
4153 additional two tables used in dispatching selects.
4154 Introduce appropriate array types and record components in
4155 Type_Specific_Data to reflect the two tables.
4156 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
4157 the TSD of a tag, indexed by position.
4158 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
4159 operation kind in the TSD of a tag, indexed by position.
4161 * a-tags.ads: Introduce an enumeration type to capture different
4162 primitive operation kinds. Define a constant reflecting the number of
4163 predefined primitive operations.
4164 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
4165 of an entry wrapper.
4166 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
4167 callable entity of a primitive operation.
4169 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
4170 primitive operations used in dispatching selects for limited
4171 interfaces, limited tagged, task and protected types what implement a
4173 (Freeze_Type): Generate the bodies of the primitive operations used in
4174 dispatching selects for limited tagged, task and protected types that
4175 implement a limited interface. Generate statements to populate the two
4176 auxiliary tables used for dispatching in select statements.
4177 (Freeze_Record_Type): Add call to initialize the dispatch table entries
4178 associated with predefined interface primitive operations.
4179 (Build_Dcheck_Function): Change Set_Subtype_Mark to
4180 Set_Result_Definition.
4181 (Build_Variant_Record_Equality): Change Subtype_Mark to
4183 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
4184 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
4185 (Build_Assignment): Simplify the code that adds the run-time-check.
4186 (Expand_N_Object_Declaration): Code cleanup.
4188 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
4189 entries when there is a protected type that implements a limited
4192 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
4193 common routines used in expansion of dispatching selects.
4194 (Add_Private_Declarations): Select the appropriate protection type when
4195 there is a protected type that implements a limited interface.
4196 (Build_Parameter_Block): Generate a wrapped parameter block.
4197 (Build_Protected_Subprogram_Body): Select the appropriate type for
4198 locking entries when there is a protected type that implements a
4200 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
4201 classified as entry wrappers.
4202 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
4203 asynchronous selects.
4204 (Expand_N_Conditional_Entry_Call): Add support for expansion of
4205 dispatching conditional selects.
4206 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
4207 protection when there is a protected type that implements limited
4209 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
4211 (Extract_Dispatching_Call): Extract the entity of the name of a
4212 dispatching call, the object parameter, actual parameters and
4213 corresponding formals.
4214 (Make_Initialize_Protection): Correct logic of protection initialization
4215 when there is a protected type that implements a limited interface.
4216 (Parameter_Block_Pack): Populate a wrapped parameter block with the
4217 values of actual parameters.
4218 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
4219 block and assign them to the original actual parameters.
4221 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
4222 (Build_Protected_Sub_Specification): Change the type and name of the
4223 last formal to account for the increased variety of protection modes.
4225 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
4226 entities. Used to save the value of the Is_Hidden attribute when the
4227 limited-view is installed.
4228 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
4229 the attribute of procedures classified as entry wrappers.
4230 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
4231 entity of a primitive wrapper.
4232 (Write_Entity_Flags): Output the name and value of the
4233 Is_Primitive_Wrapper attribute.
4234 (Write_Field27_Name): Output the name and entity of the field Wrapped_
4236 (Underlying_Type): If we have an incomplete entity that comes from
4237 the limited view then we return the Underlying_Type of its non-limited
4238 view if it is already available.
4239 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
4240 including operators.
4241 (Write_Field26_Name): Add entry for Overridden_Operation
4242 (Overridden_Operation): New attribute of functions and procedures.
4244 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
4245 predefined position in the dispatch table for the primitive operations
4246 used in dispatching selects.
4247 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
4248 predefined primitive operations and replace it with
4249 Default_Prim_Op_Count.
4250 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
4251 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
4252 the names of the generated primitive operations used in dispatching
4254 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
4255 case of abstract interface types. They will be inherit by the objects
4256 implementing the interface.
4257 (Make_DT): There is no need to inherit the dispatch table of the
4258 ancestor interface for the elaboration of abstract interface types.
4259 The dispatch table will be inherited by the object implementing the
4261 (Copy_Secondary_DTs): Add documentation.
4262 (Validate_Position): Improve this static check in case of
4263 aliased subprograms because aliased subprograms must have
4265 (Init_Predefined_Interface_Primitives): New subprogram that initializes
4266 the entries associated with predefined primitives of all the secondary
4268 (Build_Anonymous_Access_Type): Removed.
4269 (Expand_Interface_Actuals): With the previous cleanup there is no need
4270 to build an anonymous access type. This allows further cleanup in the
4271 code generated by the expander.
4272 (Expand_Interface_Conversion): If the actual is an access type then
4273 build an internal function to handle the displacement. If the actual
4274 is null this function returns null because no displacement is
4275 required; otherwise performs a type conversion that will be
4276 expanded in the code that returns the value of the displaced actual.
4277 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
4278 conversions that have no effect in the generated code because no
4279 displacement is required. Code cleanup; use local variables to
4280 avoid repeated calls to the subprogram directly_designated_type().
4282 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
4283 Classify the primitive operations used in dispatching selects as
4285 (Implements_Limited_Interface): Determine whether some type either
4286 directly implements a limited interface or extends a type that
4287 implements a limited interface.
4288 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
4289 (Expand_Subtype_From_Expr): Do not build actual subtype if the
4290 expression is limited.
4291 (Find_Interface_Tag): Add code to handle class-wide types and
4292 entities from the limited-view.
4294 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
4295 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
4296 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
4297 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
4300 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
4301 of procedure name or prefix that appears as a trigger in a triggering
4304 * uintp.ads: Introduce constants Uint_11 and Uint_13.
4306 2005-09-01 Arnaud Charlet <charlet@adacore.com>
4308 * s-tataat.adb, a-tasatt.adb:
4309 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
4311 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
4312 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
4313 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
4316 2005-09-01 Arnaud Charlet <charlet@adacore.com>
4317 Jose Ruiz <ruiz@adacore.com>
4319 * s-taprop-vxworks.adb:
4320 Move with clauses outside Warnings Off now that dependent units are
4322 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
4323 initialization of this unit.
4324 (Specific): Add new procedures Initialize and Delete so that this
4325 package can be used for VxWorks 5.x and 6.x
4326 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
4327 differences between VxWorks 5.x and 6.x
4329 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
4331 Use only Preelaborate-compatible constructs.
4333 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
4334 Primitives.Operations.
4335 (Delete, Initialize): New procedures.
4337 * s-osinte-vxworks.adb: Body used to handle differences between
4339 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
4341 * s-osinte-vxworks.ads: Minor reformatting.
4342 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
4343 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
4345 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
4346 between Vxworks 5 and 6.
4347 (taskLock, taskUnlock): Removeed, no longer used.
4349 * adaint.c: The wait.h header is not located in the sys directory on
4350 VxWorks when using RTPs.
4351 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
4353 (__gnat_dup): dup is available on Vxworks when using RTPs.
4354 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
4356 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
4358 * expect.c: The wait.h header is not located in the sys directory on
4359 VxWorks when using RTPs.
4361 2005-09-01 Thomas Quinot <quinot@adacore.com>
4363 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
4365 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
4367 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
4368 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
4369 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
4370 g-soccon-freebsd.ads: Add new constants:
4372 SO_RCVTIMEO/SO_SNDTIMEO
4376 Move all target-specific file inclusions and macro definitions to
4377 gsocket.h, in order to ensure that any C code in socket.c will see a
4378 set of constants that is consistent with the contents of g-soccon.ads.
4380 * gsocket.h: Code imported from gen-soccon.c:
4381 Move all target-specific file inclusions and macro definitions to
4382 gsocket.h, in order to ensure that any C code in socket.c will see a set
4383 of constants that is consistent with the contents of g-soccon.ads.
4384 This change also makes gen-soccon self-contained (removing dependencies
4385 upon GCC internal headers).
4387 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
4389 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
4391 * socket.c: Minor reformatting.
4393 2005-09-01 Ed Schonberg <schonberg@adacore.com>
4394 Thomas Quinot <quinot@adacore.com>
4396 * fname-sf.adb, mlib-tgt.ads,
4397 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
4398 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
4399 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
4400 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
4401 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
4402 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
4403 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
4404 makegpr.adb: Remove redundant use_clauses.
4406 2005-09-01 Arnaud Charlet <charlet@adacore.com>
4408 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
4409 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
4410 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
4411 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
4412 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
4413 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
4414 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
4415 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
4416 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
4417 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
4418 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
4419 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
4420 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
4421 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
4422 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
4423 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
4424 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
4425 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
4426 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
4427 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
4428 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
4429 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
4430 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
4431 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
4432 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
4433 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
4434 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
4435 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
4436 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
4437 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
4438 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
4439 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
4440 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
4441 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
4442 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
4443 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
4444 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
4445 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
4446 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
4447 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
4448 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
4449 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
4450 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
4451 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
4452 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
4453 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
4454 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
4455 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
4456 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
4457 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
4458 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
4459 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
4460 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
4461 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
4462 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
4463 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
4464 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
4465 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
4466 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
4467 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
4468 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
4469 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
4470 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
4471 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
4472 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
4473 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
4474 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
4475 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
4476 and always use the no parameter form for consistency.
4478 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
4480 2005-09-01 Robert Dewar <dewar@adacore.com>
4482 * binde.adb: Minor reformatting
4483 (Find_Elab_Order): Output warning if -p used with static elab order
4485 2005-09-01 Robert Dewar <dewar@adacore.com>
4487 * checks.adb (Check_Needed): New procedure, deals with removing checks
4488 based on analysis of short-circuited forms. Also generates warnings for
4489 improper use of non-short-circuited forms.
4492 2005-09-01 Robert Dewar <dewar@adacore.com>
4494 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
4497 2005-09-01 Robert Dewar <dewar@adacore.com>
4499 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
4501 Implement new insertion char < (conditional warning)
4502 * errutil.adb, erroutc.adb: Implement new insertion char <
4503 (conditional warning).
4504 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
4505 (Error_Msg_Warn): New variable for < insertion char.
4506 * prj-nmsc.adb: Implement new errout insertion char < (conditional
4508 (Check_For_Source): Change value of Source_Id only after the current
4509 source has been dealt with.
4511 2005-09-01 Robert Dewar <dewar@adacore.com>
4512 Doug Rupp <rupp@adacore.com>
4514 * exp_attr.adb: Handle vax fpt for 'Valid attribute
4515 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
4516 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
4517 (Valid_D, Valid_F, Valid_G): New functions
4519 2005-09-01 Ed Schonberg <schonberg@adacore.com>
4520 Hristian Kirtchev <kirtchev@adacore.com>
4521 Javier Miranda <miranda@adacore.com>
4523 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
4524 from object notation, the original node is unanalyzed and carries no
4525 semantic information, so that accessiblity checks must be performed on
4526 the type of the actual itself.
4527 (Expand_N_Subprogram_Declaration): Change last actual parameter for
4528 compatibility with Build_Protected_Sub_Specification.
4529 (Check_Overriding_Inherited_Interfaces): Add suport to handle
4530 overloaded primitives.
4531 (Register_Interface_DT_Entry): Use the new name of the formal
4532 the the calls to Expand_Interface_Thunk
4534 * exp_dbug.ads: Augment comments on encoding of protected types to
4535 include the generation of dispatching subprograms when the type
4536 implements at least one interface.
4538 * lib.ads: Extend information in Load_Stack to include whether a given
4539 load comes from a Limited_With_Clause.
4541 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
4542 whether a potential circularity is harmless, because it includes units
4543 loaded through a limited_with clause. Extends previous treatment which
4544 did not handle properly arbitrary combinations of limited and
4545 non-limited clauses.
4547 2005-09-01 Nicolas Setton <setton@adacore.com>
4549 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
4550 to be encoded as typ___XBLU_lowerbound__upperbound instead of
4551 typ___XB_lowerbound__upperbound.
4553 2005-09-01 Thomas Quinot <quinot@adacore.com>
4555 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
4556 dummy access formal for RACW/RAS TypeCode TSS.
4557 (Build_TypeCode_Call): Do not generate dummy null access actual for
4558 calls to the TypeCode TSS.
4560 2005-09-01 Ed Schonberg <schonberg@adacore.com>
4562 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
4563 fully qualified name, to distinguish instances with the same local name.
4565 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
4568 2005-09-01 Robert Dewar <dewar@adacore.com>
4570 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
4573 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
4575 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
4576 (Free): New deallocation procedure for filter elements
4577 (Close): Deallocate any existing filter for the concerned connection
4579 2005-09-01 Laurent Pautet <pautet@adacore.com>
4581 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
4582 position set is provided, we compute one in order to reduce the maximum
4583 length of the keys. This computation first selects a character
4584 position between 1 and the minimum length of the keys in order to
4585 avoid reducing one of the keys to an empty string.
4586 (Initialize, Compute): When the ratio V to K is too low, the algorithm
4587 does not converge. The initialization procedure now comes with a
4588 maximum number of iterations such that when exceeded, an exception is
4589 raised in Compute. The user can initialize this ratio to another value
4591 Reformating and updated headers.
4593 2005-09-01 Javier Miranda <miranda@adacore.com>
4595 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
4596 that given an entity T creates and returns an Itype that duplicates the
4597 contents of T. The returned Itype has the null-exclusion
4598 attribute set to True, and its Etype attribute references T
4599 to keep the association between the two entities.
4600 Update copyright notice
4602 * sem_aggr.adb (Check_Can_Never_Be_Null,
4603 Aggregate_Constraint_Checks, Resolve_Aggregate,
4604 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
4606 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
4608 2005-09-01 Gary Dismukes <dismukes@adacore.com>
4609 Robert Dewar <dewar@adacore.com>
4610 Hristian Kirtchev <kirtchev@adacore.com>
4612 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
4615 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
4617 Call Set_Result_Definition instead of Set_Subtype_Mark.
4618 (P_Subprogram_Specification): Add parsing of anonymous access result
4619 plus null exclusions. Call Set_Result_Definition instead of
4622 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
4623 (P_Access_Type_Definition): Add parsing for an anonymous access result
4624 subtype, plus parsing for null exclusions. Call Set_Result_Definition
4625 instead of Set_Subtype_Mark.
4627 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
4628 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
4629 (Result_Definition): New function for N_Function_Specifications.
4630 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
4631 N_Function_Specification.
4632 (Set_Null_Exclusion_Present): Allow this flag for
4633 N_Function_Specification.
4634 (Set_Result_Definition): New procedure for N_Function_Specifications.
4635 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
4636 and N_Function_Specification.
4638 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
4639 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
4640 Add support for LIMITED NEW for Ada 2005 AI-419
4641 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
4642 syntax for anonymous access results.
4643 Replace Subtype_Mark field by Result_Definition in
4644 N_Function_Specification and N_Access_Definition specs.
4645 Add Null_Exclusion_Present to spec of N_Function_Specification.
4646 (Result_Definition): New function for N_Function_Specification and
4647 N_Access_Function_Definition.
4648 (Set_Result_Definition): New procedure for N_Function_Specification and
4649 N_Access_Function_Definition.
4651 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
4652 Result_Definition for cases of N_Access_Function_Definition and
4653 N_Function_Specification.
4654 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
4656 2005-09-01 Vincent Celier <celier@adacore.com>
4658 * lib-writ.adb: Update Copyright notice
4659 (Write_With_Lines): On platforms where file names are case-insensitive,
4660 record the file names in lower case.
4661 (Write_ALI): For D lines, on platforms where file names are
4662 case-insensitive, record the file names in lower case.
4664 2005-09-01 Ed Schonberg <schonberg@adacore.com>
4665 Emmanuel Briot <briot@adacore.com>
4667 * lib-xref.adb (Output_Overridden_Op): Display information on
4668 overridden operation.
4670 * lib-xref.ads: Add documentation on overridden operations.
4672 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
4675 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
4676 overriding entity information.
4678 2005-09-01 Vincent Celier <celier@adacore.com>
4680 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
4681 including those that are inherited.
4683 2005-09-01 Robert Dewar <dewar@adacore.com>
4685 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
4687 * par-prag.adb: Implement new pragma Debug_Policy
4689 * sem_prag.adb Implement new pragma Debug_Policy
4690 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
4691 Component_Size attribute specification. Give warning for ignored pragma
4694 * snames.h, snames.ads, snames.adb: Introduce entries in
4695 Preset_Names for Name_Disp_Asynchronous_Select,
4696 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
4697 Name_Disp_Timed_Select.
4698 New pragma Debug_Policy
4700 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
4702 Switch -gnata also sets Debug_Pragmas_Enabled
4704 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
4705 handle an explicit -gnata when compiling predefined files.
4707 2005-09-01 Vincent Celier <celier@adacore.com>
4709 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
4710 directories of projects that have no Ada sources.
4712 2005-09-01 Robert Dewar <dewar@adacore.com>
4714 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
4715 (makes a difference for wide characters)
4717 * widechar.adb, widechar.ads:
4718 Add Wide_Char_Byte_Count feature to count chars vs bytes
4720 2005-09-01 Thomas Quinot <quinot@adacore.com>
4721 Ed Schonberg <schonberg@adacore.com>
4722 Robert Dewar <dewar@adacore.com>
4724 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
4725 'Address attribute reference with an overloaded prefix, use the
4726 location of the prefix (not the location of the attribute reference) as
4728 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
4729 a function renaming thereof, is a valid prefix for 'Size (where it is
4730 intepreted as a function call).
4731 (Statically_Denotes_Entity): New predicate to determine whether the
4732 prefix of an array attribute can be considered static.
4735 (Eval_Attr): Fix failure to evaluate Component_Size for
4736 unconstrained arrays (resulted in wrong value in packed case, since
4737 back end cannot handle this case)
4739 2005-09-01 Robert Dewar <dewar@adacore.com>
4741 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
4742 error msgs for most common cases.
4743 Use new errout insertion char < (conditional warning)
4745 2005-09-01 Javier Miranda <miranda@adacore.com>
4746 Ed Schonberg <schonberg@adacore.com>
4748 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
4749 become local to the whole package.
4750 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
4751 the package was already analyzed the new algorithm "replaces" the
4752 real entities by the shadow ones. This is required to ensure that
4753 the order of these entities in the homonym chains does not change;
4754 otherwise we can have undefined references at linking time because
4755 in case of conflicts the external name of the entities will have
4756 a suffix that depends on the order of the entities in the chain.
4757 (Remove_Limited_With_Clause): Complementary code that completes the
4758 new algorithm and replaces the shadow entities by the real ones.
4759 (Install_Limited_Withed_Unit): When unchaining entities before the
4760 installation of the shadow entities, only regular entities of the
4761 public part must be taken into account. This is required to
4762 keep this routine in synch with the work done by Remove_Limited_
4764 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
4765 even if unit is analyzed, because the analysis of the unit is
4766 idempotent in any case, and the limited view of the unit may have to
4767 be installed for proper visibility.
4768 (Expand_Limited_With_Clause): Even if the unit in the implicit
4769 with_clause has been analyzed already, a limited view of the package
4770 must be built for the current context, if it does not exist yet.
4772 2005-09-01 Ed Schonberg <schonberg@adacore.com>
4773 Javier Miranda <miranda@adacore.com>
4774 Gary Dismukes <dismukes@adacore.com>
4776 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
4777 defining entity for the instance body, make a new defining identifier
4778 rather than copying the entity of the spec, to prevent accidental
4779 sharing of the entity list.
4780 (Check_Private_View): When exchanging views of private types, build the
4781 list of exchanged views as a stack, to ensure that on exit the exchanges
4782 are undone in the proper order.
4783 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
4784 Restore the compilation environment in case of instantiation_error.
4785 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
4786 for an anonymous access result.
4787 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
4788 (Formal_Entity): Handle properly the case of a formal package that
4789 denotes a generic package renaming.
4791 2005-09-01 Thomas Quinot <quinot@adacore.com>
4793 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
4794 clause if the array aggregate is surrounded by parentheses.
4796 2005-09-01 Cyrille Comar <comar@adacore.com>
4797 Gary Dismukes <dismukes@adacore.com>
4798 Ed Schonberg <schonberg@adacore.com>
4799 Javier Miranda <miranda@adacore.com>
4801 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
4803 to check if a type is Constrained in cases related to code generation
4804 (rather than semantic checking) since otherwise we do not generate
4805 similar code for mutable private types depending if their
4806 discriminants are visible or not.
4807 (Check_Abstract_Overriding): Do not complain about failure to override
4808 the primitive operations used in dispatching selects since they will
4809 always be overriden at the freeze point of the type.
4810 (Access_Definition): Separate out handling for resetting the scope
4811 of an anonymous access function result type. Retrieve the scope
4812 of the associated function rather than using Current_Scope, which
4813 does not have a consistent value (depends on whether we're in the
4814 middle of analyzing formal parameters). Add ??? comment about
4815 finding a cleaner way to handle the special cases of scope setting.
4816 (Process_Incomplete_Dependents): A protected operation is never a
4817 dispatching operation (only its wrapper may be).
4818 (Build_Derived_Record_Type): In case of tagged private types that
4819 implement interfaces add derivation of predefined primitive
4821 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
4822 by two parameters that are used in case of derivation from abstract
4823 interface types: No_Predefined_Prims is used to avoid the derivation
4824 of predefined primitives from the interface, and Predefined
4825 Prims_Only is used to complete the derivation predefined primitives
4826 in case of private tagged types implementing interfaces.
4827 Fix typo in comments
4828 (Find_Interface_In_Descendant): Protect the frontend against
4829 wrong code with large circularity chains.
4830 (Is_Private_Overriding): Add support for entities overriding interface
4831 subprograms. The test failed because Entities associated with overriden
4832 interface subprograms are always marked as hidden (and used to build
4833 the secondary dispatch table); in this case the overriden entity is
4834 available through the field abstract_interface_alias (cf. override_
4835 dispatching_operation)
4836 (Access_Definition): Set the scope of the type to Current_Scope for the
4837 case of a function with an anonymous access result type.
4838 (Access_Subprogram_Declaration): Handle creation of the type entity for
4839 an access-to-function type with an anonymous access result.
4840 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
4841 in handling for N_Access_Function_Definition.
4842 (Analyze_Subtype_Declaration): Modify the text of error message.
4843 (Derived_Type_Declaration): Modify the text of error message.
4844 (Process_Subtype): Modify the text of error message plus cleanup
4845 of one redundant error message.
4846 (Analyze_Component_Declaration): Code cleanup.
4847 (Analyze_Object_Declaration): Code cleanup.
4848 (Analyze_Subtype_Declaration): Propagate the null-exclusion
4849 attribute in case of access types. Code cleanup.
4850 (Array_Type_Declaration): Code cleanup.
4851 (Process_Discriminants): Create the new null-excluding itype
4852 if required. Code cleanup.
4853 (Process_Subtype): Create the new null-excluding itype if
4854 required. Code cleanup.
4855 (Build_Derived_Record_Type): Code cleanup to avoid calling
4856 twice the subprogram derive_subprograms in case of private
4857 types that implement interfaces. In this particular case the
4858 subprogram Complete_Subprograms_Derivation already does the
4859 job associated with the second call.
4861 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
4862 conversion to the full view when generating an operation for a
4863 discriminant whose type may currently be private.
4865 2005-09-01 Ed Schonberg <schonberg@adacore.com>
4866 Javier Miranda <miranda@adacore.com>
4868 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
4869 V (Obj.F), the rewriting does not involve the indexed component, but
4870 only the selected component itself.
4871 Do not apply the transformation if the analyzed node is an actual of a
4872 call to another subprogram.
4873 (Complete_Object_Operation): Retain the entity of the
4874 dispatching operation in the selector of the rewritten node. The
4875 entity will be used in the expansion of dispatching selects.
4876 (Analyze_One_Call): Improve location of the error message associated
4878 (Analyze_Selected_Component): No need to resolve prefix when it is a
4879 function call, resolution is done when parent node is resolved, as
4881 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
4882 when attempting to resolve a call transformed from its object notation.
4883 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
4884 of the argument list for each interpretation of the operation.
4885 (Try_Object_Operation): The designated type of an access parameter may
4886 be an incomplete type obtained through a limited_with clause, in which
4887 case the primitive operations of the type are retrieved from its full
4889 (Analyze_Call): If this is an indirect call, and the return type of the
4890 access_to_subprogram is incomplete, use its full view if available.
4892 2005-09-01 Javier Miranda <miranda@adacore.com>
4893 Gary Dismukes <dismukes@adacore.com>
4895 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
4896 access types the null-exclusion and access-to-constant attributes must
4898 (Analyze_Return_Statement): When the result type is an anonymous access
4899 type, apply a conversion of the return expression to the access type
4900 to ensure that appropriate accessibility checks are performed.
4901 (Analyze_Return_Type): For the case of an anonymous access result type,
4902 generate the Itype and set Is_Local_Anonymous_Access on the type.
4903 Add ??? placeholder for check to disallow returning a limited object
4904 in Ada 2005 unless it's an aggregate or a result of a function call.
4905 Change calls from Subtype_Mark to Result_Definition.
4906 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
4907 Result_Definition in call to Make_Function_Specification.
4908 (Build_Body_To_Inline): Change Set_Subtype_Mark to
4909 Set_Result_Definition.
4910 (Make_Inequality_Operator): Change formal Subtype_Mark to
4911 Result_Definition in call to Make_Function_Specification.
4912 (Process_Formals): Create the new null-excluding itype if required.
4913 (New_Overloaded_Entity): For an entity overriding an interface primitive
4914 check if the entity also covers other abstract subprograms in the same
4915 scope. This is required to handle the general case, that is, overriding
4916 other interface primitives and overriding abstract subprograms inherited
4917 from some abstract ancestor type.
4918 (New_Overloaded_Entity): For an overriding entity that comes from
4919 source, note the operation that it overrides.
4920 (Check_Conformance, Type_Conformant): Addition of one new formal
4921 to skip controlling formals in the analysis. This is used to
4922 handle overloading of abstract interfaces.
4923 (Base_Types_Match): Add missing case for types imported from
4924 limited-with clauses
4925 (New_Overloaded_Entity): Add barrier to protect the use of
4926 the "alias" attribute.
4928 2005-09-01 Ed Schonberg <schonberg@adacore.com>
4930 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
4931 verify that the procedure and the entry are mode conformant.
4932 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
4933 as a different operator, which is often a cut-and-paste error.
4935 2005-09-01 Javier Miranda <miranda@adacore.com>
4936 Ed Schonberg <schonberg@adacore.com>
4938 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
4939 used in controlling parameters exclude null because it is necessary to
4940 read the tag to dispatch, and null has no tag.
4941 (Override_Dispatching_Operation): If the previous operation is inherited
4942 from an interface, it becomes hidden and does not participate in later
4945 2005-09-01 Javier Miranda <miranda@adacore.com>
4946 Ed Schonberg <schonberg@adacore.com>
4947 Gary Dismukes <dismukes@adacore.com>
4949 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
4950 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
4951 the expander will generate the corresponding run-time check to evaluate
4953 (Resolve_Call): Check for legal type of procedure name or prefix that
4954 appears as a trigger in a triggering alternative.
4955 (Valid_Conversion): If expression is ambiguous and the context involves
4956 an extension of System, remove System.Address interpretations.
4957 (Resolve_Qualified_Expression): Reject the case of a specific-type
4958 qualification applied to a class-wide argument. Enhance comment
4959 to explain checking of Original_Node.
4960 (Resolve_Type_Conversion): The location of the error message was not
4961 general enough to handle the general case and hence it has been removed.
4962 In addition, this patch improves the text of the message.
4963 (Resolve_Type_Conversion): Add missing support for access to interface
4965 (Resolve_Type_Conversion): If the target is a class-wide interface type,
4966 do not expand if the expression is the actual in a call, because proper
4967 expansion will take place when the call itself is expanded.
4968 (Resolve_Allocator): If the context is an unchecked conversion, the
4969 allocator inherits its storage pool, if any, from the target type of
4972 2005-09-01 Ed Schonberg <schonberg@adacore.com>
4973 Javier Miranda <miranda@adacore.com>
4975 * sem_type.adb (Add_One_Interp): If a candidate operation is an
4976 inherited interface operation that has an implementation, use the
4977 implementation to avoid spurious ambiguities.
4978 (Interface_Present_In_Ancestor): In case of concurrent types we can't
4979 use the Corresponding_Record_Typ attribute to look for the interface
4980 because it is set by the expander (and hence it is not always
4981 available). For this reason we traverse the list of interfaces
4982 (available in the parent of the concurrent type).
4983 (Interface_Present_In_Ancestor): Handle entities from the limited view
4985 2005-09-01 Ed Schonberg <schonberg@adacore.com>
4987 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
4988 from the list of required components.
4989 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
4990 primitive procedure of a limited interface with a controlling first
4992 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
4994 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
4995 capture if it is generated in the second operand of a short-circuit
4997 Do not capture values for variables with address clauses.
4998 (Is_Object_Reference): Treat a function call as an object reference only
4999 if its type is not Standard_Void_Type.
5001 2005-09-01 Ed Schonberg <schonberg@adacore.com>
5003 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
5004 to a variable that is statically known to be constant.
5006 2005-09-01 Geert Bosch <bosch@adacore.com>
5007 Robert Dewar <dewar@adacore.com>
5009 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
5010 (VAXGF_Safe_First): Idem.
5012 2005-09-01 Robert Dewar <dewar@adacore.com>
5013 Arnaud Charlet <charlet@adacore.com>
5015 * g-dirope.ads: Minor reformatting
5016 Document that bounds of result of Base_Name match the input index
5018 Add documentation on environment variable syntax for Expand_Path
5020 * gnat_ugn.texi: Update documentation to include mention of -m switches
5021 Document new treatment of wide characters in max line length
5023 Remove -gnatL/-gnatZ switches, no longer used.
5024 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
5027 * gnat_rm.texi: Add doc for two argument form of pragma
5028 Float_Representation.
5029 Add documentation for pragma No_Strict_Aliasing
5030 Add note that explicit component clause overrides pragma Pack.
5031 Add documentation of pragma Debug_Policy
5033 2005-09-01 Matthew Heaney <heaney@adacore.com>
5035 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
5036 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
5037 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
5038 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
5039 draft (Draft 13, August 2005) of Ada Amendment 1.
5041 2005-09-01 Arnaud Charlet <charlet@adacore.com>
5043 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
5044 Note that the platform-specific version of g-soccon.ads for VMS is now
5045 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
5046 really is a package spec).
5047 Replace s-taspri-linux.ads by s-taspri-posix.ads
5048 Remove references to s-mastop-x86.adb
5050 * system-vxworks-xscale.ads: Removed, no longer used.
5051 * s-vxwork-xscale.ads: Removed, no longer used.
5053 2005-09-01 Robert Dewar <dewar@adacore.com>
5055 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
5056 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
5057 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
5058 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
5059 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
5060 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
5061 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
5062 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
5063 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
5064 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
5065 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
5066 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
5067 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
5068 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
5069 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
5070 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
5071 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
5072 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
5073 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
5074 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
5075 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
5077 2005-08-29 Arnaud Charlet <charlet@adacore.com>
5081 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
5083 2005-08-29 Arnaud Charlet <charlet@adacore.com>
5084 Doug Rupp <rupp@adacore.com>
5086 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
5088 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
5089 this code in the GNAT run-time.
5091 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
5094 * init.c (__gnat_error_handler [many]): Mark "msg" as const
5095 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
5097 (__gnat_inside_elab_final_code): Moved here from
5098 Standard_Library and only defined for the compiler.
5099 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
5100 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
5101 using RTPs because directly vectored Interrupt routines are not
5102 supported on this configuration.
5103 (getpid): Do not redefine this function on VxWorks when using RTPs
5104 because this primitive is well supported by the RTP libraries.
5105 (copy_msg): Correct the code that checks for buffer overflow.
5106 Discovered during code reading.
5108 2005-08-29 Olivier Hainque <hainque@adacore.com>
5110 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
5111 a library level mutable variable with an initializer, tell
5112 build_allocator to ignore the initializer's size. It may not be large
5113 enough for all the values that might be assigned to the variable later
5116 2005-08-29 Arnaud Charlet <charlet@adacore.com>
5117 Eric Botcazou <ebotcazou@adacore.com>
5119 * trans.c: Protect < in error msg with quote
5120 Replace GCC_ZCX by Back_End_Exceptions.
5121 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
5122 has been sufficiently aligned in the record.
5124 2005-08-15 James E. Wilson <wilson@specifix.com>
5126 * system-linux-alpha.ads: Change ia64 to alpha.
5128 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
5130 * decl.c, utils.c: Fix comment typos.
5132 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
5134 * decl.c, init.c, initialize.c: Fix comment typos.
5136 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
5138 Make CONSTRUCTOR use VEC to store initializers.
5139 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
5141 * trans.c (extract_values): Likewise.
5142 * utils.c (convert, remove_conversions): Likewise.
5143 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
5144 gnat_build_constructor): Likewise.
5146 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
5148 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
5150 (compare_field_bitpos): Likewise.
5152 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
5154 * utils.c (create_var_decl): Only set DECL_COMMON on
5155 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
5156 VAR_OR_FUNCTION_DECL_P.
5158 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
5160 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
5163 2005-07-07 Pascal Obry <obry@adacore.com>
5165 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
5166 returned type on Windows.
5168 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
5171 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
5172 exception in this case.
5173 Simplify the code as "Image (Image'Range)" = "Image".
5175 2005-07-07 Vincent Celier <celier@adacore.com>
5177 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
5178 the destructor/constructor attributes for <lib>final/<lib>init.
5180 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
5182 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
5184 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
5185 type if the parameter is not passed by copy but reference by default.
5187 2005-07-07 Javier Miranda <miranda@adacore.com>
5189 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
5190 Reimplementation of the support for abstract interface types in order
5191 to leave the code more clear and easy to maintain.
5193 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
5194 abstract interface types in order to leave the code clearer and easier
5197 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
5198 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
5199 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
5200 appropriate entry of the secondary dispatch table.
5201 (Make_DT): Add code to inherit the secondary dispatch tables of
5204 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
5205 implementing both functionalities by means of a common routine, each
5206 routine has its own code.
5208 2005-07-07 Javier Miranda <miranda@adacore.com>
5210 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
5212 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
5215 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
5218 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
5219 use of tag incomplete types.
5221 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
5222 give support to tagged incomplete types.
5224 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
5225 expression is a discriminant reference and its type is private, as can
5226 happen within a stream operation for a mutable record, use the full
5227 view of the type to resolve the case alternatives.
5228 (Analyze_Assignment): Check wrong dereference of incomplete types.
5230 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
5233 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
5236 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
5237 N_Incomplete_Type_Declaration nodes.
5239 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
5240 Tag_Present to give support to tagged incomplete types:
5242 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
5245 2005-07-07 Olivier Hainque <hainque@adacore.com>
5249 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
5250 definitions for the Unwind wrappers in the compiler case.
5252 2005-07-07 Ed Schonberg <schonberg@adacore.com>
5253 Javier Miranda <miranda@adacore.com>
5255 * par-load.adb (Load): If a child unit is loaded through a limited_with
5256 clause, each parent must be loaded as a limited unit as well.
5258 * sem_ch10.adb (Previous_Withed_Unit): Better name for
5259 Check_Withed_Unit. Return true if there is a previous with_clause for
5260 this unit, whether limited or not.
5261 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
5263 (Is_Visible_Through_Renamings): New local subprogram of install_limited
5264 _withed_unit that checks if some package installed through normal with
5265 clauses has a renaming declaration of package whose limited-view is
5266 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
5267 of the current Draft document for Ada 2005.
5268 (Analyze_Context): Complete the list of compilation units that
5269 are allowed to contain limited-with clauses. It also contains
5270 checks that were previously done by Install_Limited_Context_Clauses.
5271 This makes the code more clear and easy to maintain.
5272 (Expand_Limited_With_Clause) It is now a local subprogram of
5273 Install_Limited_Context_Clauses, and contains the code that adds
5274 the implicit limited-with clauses for parents of child units.
5275 This functionality was prevously done by Analyze_Context.
5277 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
5280 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
5281 been erroneously named in a limited-with clause of its own context.
5282 In this case the error has been previously notified by Analyze_Context.
5284 2005-07-07 Ed Schonberg <schonberg@adacore.com>
5286 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
5287 generic package that contains local declarations with the same name.
5288 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
5290 2005-07-07 Bernard Banner <banner@adacore.com>
5292 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
5293 ia64 platform only on platforms that you the GCC unwind library
5294 rather than the system unwind library.
5296 2005-07-07 Thomas Quinot <quinot@adacore.com>
5298 * expect.c: Minor reformatting
5300 2005-07-07 Sergey Rybin <rybin@adacore.com>
5302 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
5305 * gnat_ugn.texi: Add description for new gnatpp option
5308 2005-07-04 Thomas Quinot <quinot@adacore.com>
5310 * g-expect-vms.adb, g-expect.ads, g-expect.adb
5311 (Get_Command_Output): New subprogram to launch a process and get its
5312 standard output as a string.
5314 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
5315 Olivier Hainque <hainque@adacore.com>
5317 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
5318 fetch a code-range descriptor associated with the machine state. On
5319 failure set the machine state's PC to 0; on success, pass the
5320 descriptor to exc_virtual_unwind.
5322 * init.c (Tru64 section): New function __gnat_set_code_loc.
5324 2005-07-04 Vincent Celier <celier@adacore.com>
5326 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
5327 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
5328 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
5329 Remove all auto-initialization code, as this is now done through the
5330 constructor mechanism.
5332 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
5333 __gnat_sals_init_using_constructors): New functions.
5335 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
5336 Linker_Constructor and Linker_Destructor when switch -a is used.
5338 * bindusg.adb: Add line for new switch -a
5340 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
5341 (Gnatbind): When switch -a is used, check if it is allowed
5343 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
5345 2005-07-04 Joel Brobecker <brobecker@adacore.com>
5347 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
5348 This prevents us from hitting a limitation during the debug info
5349 generation when using stabs.
5350 (Prims_Ptr): Likewise.
5352 2005-07-04 Gary Dismukes <dismukes@adacore.com>
5353 Ed Schonberg <schonberg@adacore.com>
5354 Javier Miranda <miranda@adacore.com>
5356 * checks.adb (Null_Exclusion_Static_Checks): In the case of
5357 N_Object_Declaration, only perform the checks if the Object_Definition
5358 is not an Access_Definition.
5360 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
5361 where the parent of an the access definition is an N_Object_Declaration
5362 when determining the Associated_Node_For_Itype and scope of an
5363 anonymous access-to-subprogram type.
5365 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
5366 Corresponding_Spec on the body created for a null procedure. Add ???
5367 comment. Remove New_Copy_Tree call on body argument to
5370 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
5371 discriminants, use the type of the actual as well, because the
5372 discriminants may be read by the called subprogram.
5374 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
5375 access type we do not need to handle non-limited views.
5376 (Build_Derived_Record_Type): Additional check to check that in case of
5377 private types, interfaces are only allowed in private extensions.
5379 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
5381 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
5382 <Pragma_Linker_Destructor>: Likewise.
5384 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
5385 Pragma_Linker_Destructor.
5387 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
5388 ATTR_LINK_DESTRUCTOR.
5389 (static_ctors, static_dtors): New variables.
5391 * misc.c (gnat_expand_body): Output current function as constructor
5392 and destructor if requested.
5394 * par-prag.adb: Add processing for pragma Linker_Constructor and
5397 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
5398 extracted from Check_Interrupt_Or_Attach_Handler.
5399 (Check_Interrupt_Or_Attach_Handler): Invoke it.
5400 Implement pragma Linker_Constructor and Linker_Destructor with the
5401 help of Find_Unique_Parameterless_Procedure.
5402 Replace Name_Alias with Name_Target for pragma Linker_Alias.
5404 * snames.h, snames.ads, snames.adb:
5405 Add Name_Linker_Constructor and Name_Linker_Destructor.
5406 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
5407 * snames.adb: Remove Name_Alias.
5409 * trans.c: Include cgraph.h.
5410 (build_global_cdtor): New function.
5411 (Compilation_Unit_to_gnu): Build global constructor and destructor if
5413 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
5415 (addressable_p) <COMPONENT_REF>: Unconditionally test
5416 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
5418 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
5419 variable if it is external.
5421 (static_ctors, static_dtors): New global variables.
5422 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
5423 <ATTR_LINK_DESTRUCTOR>: Likewise.
5424 (end_subprog_body): Chain function as constructor and destructor
5427 * exp_util.adb (Force_Evaluation): Unconditionally invoke
5428 Remove_Side_Effects with Variable_Ref set to true.
5429 (Remove_Side_Effects): Handle scalar types first. Use a renaming
5430 for non-scalar types even if Variable_Ref is true and for class-wide
5433 2005-07-04 Ed Schonberg <schonberg@adacore.com>
5435 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
5436 to prevent spurious warnings.
5438 2005-07-04 Thomas Quinot <quinot@adacore.com>
5440 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
5441 Itypes. Itypes are really unexpected there.
5442 (Build_TypeCode_Function): Generalise special processing for Itypes to
5443 handle the case of numeric implicit base types as well as enumerated
5446 2005-07-04 Ed Schonberg <schonberg@adacore.com>
5448 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
5449 controlled, indicate the expected type of the dereference that is
5450 created for the call to Deep_Finalize, to prevent spurious errors when
5451 the designated type is private and completed with a derivation from
5452 another private type.
5454 2005-07-04 Vincent Celier <celier@adacore.com>
5456 * make.adb (Change_To_Object_Directory): When unable to change the
5457 current dir to the object directory, output the full path of the
5460 2005-07-04 Matthew Gingell <gingell@adacore.com>
5462 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
5464 * indepsw-linux.adb: Replace by...
5466 * indepsw-gnu.adb: ...this new file
5468 2005-07-04 Vincent Celier <celier@adacore.com>
5470 * mlib-prj.adb (Auto_Initialize): New constant String
5471 (SALs_Use_Constructors): New Boolean function
5472 (Build_Library): Call gnatbind with Auto_Initialize switch when
5473 SALs_Use_Constructors returns True.
5475 * mlib-tgt.ads: Minor reformatting
5477 * mlib-utl.ads: Minor reformatting
5479 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
5481 2005-07-04 Ed Schonberg <schonberg@adacore.com>
5483 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
5484 single protected declarations can have an interface list.
5485 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
5486 with seriously malformed entry declarations, and lead to compilation
5489 2005-07-04 Javier Miranda <miranda@adacore.com>
5491 * par-load.adb: Load the context items in two rounds.
5493 2005-07-04 Robert Dewar <dewar@adacore.com>
5495 * scng.adb: Do not consider Mod used as an attribute to be a keyword
5497 2005-07-04 Ed Schonberg <schonberg@adacore.com>
5498 Javier Miranda <miranda@adacore.com>
5500 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
5501 type extension needs a limited view.
5502 Remove previous restriction on private types available through the
5503 limited-view (only tagged private types were previously allowed).
5504 (Install_Withed_Unit): In the code that implements the
5505 legality rule given in AI-377, exclude a child unit with the name
5506 Standard, because it is a homonym of the Standard environment package.
5508 2005-07-04 Thomas Quinot <quinot@adacore.com>
5510 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
5511 overloaded function call, carry interpretations from the original tree
5514 2005-07-04 Ed Schonberg <schonberg@adacore.com>
5516 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
5517 types check whether some designated type is a limited view, and use
5518 the non-limited view if available.
5520 2005-07-04 Gary Dismukes <dismukes@adacore.com>
5522 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
5523 constraint of full view of a private view T1 if present, when T2 is a
5524 discriminated full view.
5526 2005-07-04 Thomas Quinot <quinot@adacore.com>
5528 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
5529 actual that is a view conversion of a bit packed array reference.
5531 2005-07-04 Ed Schonberg <schonberg@adacore.com>
5533 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
5534 present before checking whether an interface type covers a synchronized
5537 2005-07-04 Ed Schonberg <schonberg@adacore.com>
5539 * sem_util.adb (Is_Object_Reference): An indexed or selected component
5540 whose prefix is an implicit dereference is an object reference. Removes
5541 spurious errors when compiling with -gnatc.
5543 2005-07-04 Robert Dewar <dewar@adacore.com>
5547 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
5549 2005-07-04 Matthew Gingell <gingell@adacore.com>
5551 * tracebak.c: Enable tracebacks on ia64 platforms
5553 2005-07-04 Vincent Celier <celier@adacore.com>
5555 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
5556 the GNAT BIND command, as gnatbind accepts multiples ALI files with
5557 the -L or -n switches.
5559 2005-07-04 Vincent Celier <celier@adacore.com>
5561 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
5562 correctly computed and the main project data is not modified while
5564 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
5565 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
5566 c++linker as this does not work on some platforms.
5568 2005-07-04 Matthew Heaney <heaney@adacore.com>
5570 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
5572 * a-coinve.adb: Perform constraint checks explicitly.
5574 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5575 Thomas Quinot <quinot@adacore.com>
5577 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
5578 new target gen-soccon.
5580 2005-07-04 Robert Dewar <dewar@adacore.com>
5582 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
5584 2005-07-04 Thomas Quinot <quinot@adacore.com>
5586 * g-socket.ads (Check_Selector): Minor rewording of comment.
5588 2005-07-04 Vincent Celier <celier@adacore.com>
5590 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
5592 2005-07-04 Thomas Quinot <quinot@adacore.com>
5594 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
5596 2005-07-04 Sergey Rybin <rybin@adacore.com>
5598 * gnat_ugn.texi: Add description of --eol gnatpp option
5600 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
5601 Thomas Quinot <quinot@adacore.com>
5603 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
5604 if the user wants all calls of a subprogram to be flagged,
5605 independently of whether they are made from within the same unit or
5607 Mention restriction for pragma Linker_Alias on some platforms.
5608 Document pragma Linker_Constructor and Linker_Destructor.
5609 Rewrite documentation of Weak_External, Linker_Section and
5610 Linker_Alias pragmas.
5612 2005-07-04 Arnaud Charlet <charlet@adacore.com>
5614 * s-stausa.ads, s-stausa.adb: New files.
5616 2005-06-30 Kelley Cook
5618 * all files: Update FSF address in copyright headers.
5619 * gen-soccon.co (main): Output new FSF address in generated files.
5621 2005-06-28 Paul Brook <paul@codesourcery.com>
5623 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
5625 2005-06-14 Olivier Hainque <hainque@adacore.com>
5626 Eric Botcazou <ebotcazou@adacore.com>
5628 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
5629 exc_unwind, now that we are generating proper .debug_frame output for
5632 * tracebak.c: Remove the mips-irix section, as we are now using the
5633 s-mastop based unwinder again.
5634 Under SPARC/Solaris, take into account the stack bias to compute the
5635 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
5638 2005-06-14 Doug Rupp <rupp@adacore.com>
5640 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
5642 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
5644 2005-06-14 Pascal Obry <obry@adacore.com>
5646 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
5647 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
5648 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
5651 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
5652 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
5653 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
5654 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
5655 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
5656 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
5657 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
5658 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
5659 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
5660 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
5661 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
5662 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
5663 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
5664 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
5665 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
5666 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
5667 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
5668 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
5669 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
5670 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
5671 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
5672 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
5673 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
5674 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
5675 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
5676 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
5677 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
5678 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
5679 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
5680 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
5681 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
5682 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
5683 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
5684 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
5685 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
5686 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
5687 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
5688 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
5689 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
5690 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
5691 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
5692 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
5693 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
5694 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
5695 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
5696 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
5697 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
5698 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
5699 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
5700 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
5701 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
5702 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
5703 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
5704 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
5705 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
5706 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
5707 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
5708 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
5709 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
5710 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
5711 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
5712 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
5713 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
5714 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
5715 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
5716 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
5717 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
5718 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
5719 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
5720 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
5721 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
5722 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
5723 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
5724 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
5725 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
5726 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
5727 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
5728 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
5729 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
5730 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
5731 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
5732 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
5733 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
5734 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
5735 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
5736 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
5737 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
5738 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
5739 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
5740 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
5741 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
5742 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
5743 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
5744 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
5745 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
5746 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
5747 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
5748 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
5749 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
5750 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
5751 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
5752 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
5753 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
5754 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
5755 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
5756 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
5757 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
5758 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
5759 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
5760 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
5761 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
5762 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
5763 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
5764 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
5765 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
5766 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
5767 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
5768 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
5769 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
5770 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
5771 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
5772 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
5773 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
5774 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
5775 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
5776 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
5777 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
5778 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
5779 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
5780 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
5781 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
5782 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
5783 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
5785 2005-06-14 Jose Ruiz <ruiz@adacore.com>
5786 Arnaud Charlet <charlet@adacore.com>
5788 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
5789 longer protected objects. They have been replaced by lower-level
5790 suspension objects made up by a mutex and a condition variable (or
5791 their equivalent given a particular OS) plus some internal data to
5792 reflect the state of the suspension object.
5793 (Initialize, Finalize): Add this initialization procedure for
5794 Suspension_Object, which is a controlled type.
5795 (Finalize): Add the finalization procedure for Suspension_Object,
5796 which is a controlled type.
5798 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
5799 Ada.Synchronous_Task_Control because there is no longer a need for a
5800 VxWorks specific version of this package. Target dependencies
5801 has been moved to System.Task_Primitives.Operations.
5803 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
5805 (InitializeCriticalSection, EnterCriticalSection,
5806 LeaveCriticalSection, DeleteCriticalSection): Replace the type
5807 pCriticalSection by an anonymous access type so that we avoid problems
5808 of accessibility to local objects.
5810 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
5811 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
5812 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
5813 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
5814 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
5815 set the environment task mask here.
5816 (Current_State): Add this function that returns the state of the
5818 (Set_False): Add this procedure that sets the state of the suspension
5820 (Set_True): Add this procedure that sets the state of the suspension
5821 object to True, releasing the task that was suspended, if any.
5822 (Suspend_Until_True): Add this procedure that blocks the calling task
5823 until the state of the object is True. Program_Error is raised if
5824 another task is already waiting on that suspension object.
5825 (Initialize): Add this procedure for initializing the suspension
5826 object. It initializes the mutex and the condition variable which are
5827 used for synchronization and queuing, and it sets the internal state
5829 (Finalize): Add this procedure for finalizing the suspension object,
5830 destroying the mutex and the condition variable.
5832 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
5833 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
5834 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
5835 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
5836 which provides a low-level abstraction (using operating system
5837 primitives) for Ada.Synchronous_Task_Control.
5838 This object is made up by a mutex (for ensuring mutual exclusion), a
5839 condition variable (for queuing threads until the condition is
5840 signaled), a Boolean (State) indicating whether the object is open,
5841 and a Boolean (Waiting) reflecting whether there is a task already
5842 suspended on this object.
5844 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
5845 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
5846 s-intman-vms.ads, s-intman-mingw.adb,
5847 (Initialize_Interrupts): Removed, no longer used.
5849 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
5850 (Setup_Interrupt_Mask): New procedure.
5852 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
5854 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
5856 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
5857 this is no longer done in the body of s-taprop
5858 (Server_Task): Explicitely test for Pending_Action in case
5859 System.Parameters.No_Abort is True.
5861 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
5862 is no longer done in the body of s-taprop
5864 2005-06-14 Robert Dewar <dewar@adacore.com>
5866 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
5867 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
5868 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
5869 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
5870 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
5871 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
5872 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
5873 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
5874 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
5875 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
5876 system-linux-hppa.ads, system-vms_64.ads,
5877 system-vxworks-alpha.ads: Minor comment update for
5878 AI-362 (unit is Pure).
5880 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
5881 Add pragma Pure_05 for AI-362
5882 Make remaining conversion functions obsolescent in Ada 95
5884 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
5885 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
5886 Add entries for a-wichun and a-zchuni
5887 Add a-widcha a-zchara for AI-395
5888 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
5890 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
5891 Add entries for a-wichun.o and a-zchuni.o
5892 Entries for a-widcha.o and a-zchara.o
5893 Add entry for a-chacon.o
5895 * a-ztenau.adb: Add with of Ada.Characters.Conversions
5897 * a-chacon.ads, a-chacon.adb: New files.
5899 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
5900 categorization violations.
5902 * a-strmap.ads: Add pragma Pure_05 for AI-362
5903 * a-strmap.ads: Add note on implicit categorization for AI-362
5905 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
5907 * par-prag.adb: Dummy entry for pragma Persistent_BSS
5908 Set Ada_Version_Explicit, for implementation of AI-362
5909 Add processing for pragma Pure_05 and Preelaborate_05
5910 Add entry for Assertion_Policy pragma
5912 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
5913 when needed for proper processing of categorization stuff
5916 For several cases, make errors in preealborate units warnings,
5917 instead of errors, if GNAT_Mode is set. For AI-362.
5919 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
5920 preelaborate unit is now warning if in GNAT mode
5922 * s-stoele.ads: Document AI-362 for pragma preelaborate
5924 2005-06-14 Doug Rupp <rupp@adacore.com>
5926 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
5927 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
5928 Default_Exception_Msg_Max_Length: new parameter.
5930 * a-except.ads: (Exception_Msg_Max_Length): Set to
5931 System.Parameters.Default_Exception_Msg_Max_Length
5932 Add pragma Preelaborate_05 for AI-362
5933 Add warnings off to allow categorization violations for AI-362
5935 2005-06-14 Vincent Celier <celier@adacore.com>
5937 * gnatsym.adb: Adapt to modification of package Symbols: procedure
5938 Process is now in package Processing.
5940 * symbols.ads, symbols.adb:
5941 (Processing): New package, containing procedure Process
5943 * symbols-vms-alpha.adb:
5944 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
5946 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
5947 symbols-processing-vms-ia64.adb: New files.
5949 2005-06-14 Pascal Obry <obry@adacore.com>
5951 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
5952 implementation. This new version generates the proper DllMain routine
5953 to initialize the SAL. The DllMain is generated in Ada and compiled
5954 before being added as option to the library build command.
5956 2005-06-14 Doug Rupp <rupp@adacore.com>
5957 Pascal Obry <obry@adacore.com>
5959 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
5960 call to decc$translate_vms.
5961 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
5962 need to remove those quotes before catenating the filename.
5963 (__gnat_locate_exec_on_path): improvements to the Win32 section:
5964 * avoid allocating the memory twice for better efficiency;
5965 * allocate 32K buffer for environment expansion as suggested by MSDN;
5966 * prepend ".;" to the path so that current directory is searched too.
5968 2005-06-14 Robert Dewar <dewar@adacore.com>
5970 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
5971 instead of raising CE (AI-241)
5972 Add warnings off to allow categorization violations for AI-362
5974 2005-06-14 Robert Dewar <dewar@adacore.com>
5976 * ali-util.adb, gnatbind.adb: Remove references to
5977 Force_RM_Elaboration_Order.
5979 * switch-b.adb: Remove recognition of -f switch
5981 2005-06-14 Pascal Obry <obry@adacore.com>
5983 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
5984 implementation which is slightly more efficient.
5986 2005-06-14 Gary Dismukes <dismukes@adacore.com>
5987 Javier Miranda <miranda@adacore.com>
5988 Ed Schonberg <schonberg@adacore.com>
5989 Hristian Kirtchev <kirtchev@adacore.com>
5991 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
5992 allocator's designated type is a class-wide type, and compiling for
5993 Ada 2005, emit a run-time check that the accessibility level of the
5994 type given in the allocator's expression is not deeper than the level
5995 of the allocator's access type.
5997 (Tagged_Membership): Modified to gives support to abstract interface
6000 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
6002 (Descendant_Tag): New predefined function
6003 (Is_Descendant_At_Same_Level): New predefined function
6004 (Get_Access_Level): New private function
6005 (Set_Access_Level): New private procedure
6006 (IW_Membership): New function. Given the tag of an object and the tag
6007 associated with an interface, evaluate if the object implements the
6009 (Register_Interface_Tag): New procedure used to initialize the table of
6010 interfaces used by the IW_Membership function.
6011 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
6012 of the dispatch table.
6013 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
6014 table of interfaces of the parent.
6015 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
6016 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
6017 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
6018 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
6019 Ada 2005 semantics for the new predefined function.
6021 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
6022 call to Descendant_Tag rather than Internal_Tag.
6023 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
6024 the accessibility level of the attribute's Item parameter is not deeper
6025 than the level of the attribute's prefix type. Tag_Error is raised if
6026 the check fails. The check is only emitted for Ada_05.
6027 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
6028 requested stream attribute, use it.
6029 (Expand_N_Attribute_Reference): If the designated type is an interface
6030 then rewrite the referenced object as a conversion to force the
6031 displacement of the pointer to the secondary dispatch table.
6032 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
6033 is a dereference of an object with a constrained partial view.
6035 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
6036 type is a class-wide type, emit a run-time check that the accessibility
6037 level of the returned object is not deeper than the level of the
6038 function's master (only when compiling for Ada 2005).
6040 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
6041 Action_Nb_Arg): Add entries for new Get_Access_Level and
6042 Set_Access_Level routines in these tables.
6043 (Make_DT): Generate a call to set the accessibility level of the
6044 tagged type in its TSD.
6045 (Make_DT): Code cleanup. The functionality of generating all the
6046 secondary dispatch tables has been moved to freeze_record_type.
6047 (Make_Abstract_Interface_DT): Minor code cleanup.
6048 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
6049 this subprogram implements a new algorithm that provides the
6050 same functionality and it is more clear in case of primitives
6051 associated with abstract interfaces.
6052 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
6053 clean up, the functionality of this subprogram is now provided
6054 by Set_All_DT_Position.
6055 (Write_DT): New subprogram: a debugging procedure designed to be called
6056 within gdb to display the dispatch tables associated with a tagged
6058 (Collect_All_Interfaces): New subprogram that collects the whole list
6059 of interfaces that are directly or indirectly implemented by a tagged
6061 (Default_Prim_Op_Position): New subprogram that returns the fixed
6062 position in the dispatch table of the default primitive operations.
6063 (Expand_Interface_Actuals): New subprogram to generate code that
6064 displaces all the actuals corresponding to class-wide interfaces to
6065 reference the interface tag of the actual object.
6066 (Expand_Interface_Conversion): New subprogram. Reference the base of
6067 the object to give access to the interface tag associated with the
6068 secondary dispatch table.
6069 (Expand_Interface_Thunk): New subprogram that generates the code of the
6070 thunk. This is required for compatibility with the C+ ABI.
6071 (Make_Abstract_Interface_DT): New subprogram that generate the
6072 declarations for the secondary dispatch tables associated with an
6074 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
6075 attribute for each primitive operation covering interface subprograms
6076 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
6077 These subprograms were upgraded to give support to abstract interfaces
6079 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
6080 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
6081 RE_Set_Access_Level.
6082 (RE_Unit_Table): Add entries for new Ada.Tags operations.
6083 Add support to call the followig new run-time subprograms:
6084 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
6086 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
6087 match its full declaration when both have an access definition with
6088 statically matching designated subtypes.
6089 (Analyze_Component_Declaration): Delete commented out code that was
6090 incorrectly setting the scope of an anonymous access component's type.
6091 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
6092 an access discriminant when the containing type is nonlimited.
6093 (Make_Incomplete_Type_Declaration): Create an incomplete type
6094 declaration for a record type that includes self-referential access
6096 (Check_Anonymous_Access_Types): Before full analysis of a record type
6097 declaration, create anonymous access types for each self-referential
6099 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
6100 an access component in this context is a Local_Anonymous_Access, for
6101 proper accessibility checks.
6102 (Access_Definition): Set properly the scope of the anonymous access type
6103 created for a stand-alone access object.
6104 (Find_Type_Of_Object): An object declaration may be given with an access
6106 (Complete_Subprograms_Derivation): New subprogram used to complete
6107 type derivation of private tagged types implementing interfaces.
6108 In this case some interface primitives may have been overriden
6109 with the partial-view and, instead of re-calculating them, they
6110 are included in the list of primitive operations of the full-view.
6111 (Build_Derived_Record_Type): Modified to give support to private
6112 types implemening interfaces.
6113 (Access_Definition): Reject ALL on anonymous access types.
6114 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
6115 type derivation to occur at a deeper accessibility level than the
6117 For the case of derivation within a generic body however, disallow the
6118 derivation if the derived type has an ancestor that is a formal type
6119 declared in the formal part of an enclosing generic.
6120 (Analyze_Object_Declaration): For protected objects, remove the check
6121 that they cannot contain interrupt handlers if not declared at library
6123 (Add_Interface_Tag_Components): New subprogram to add the tag components
6124 corresponding to all the abstract interface types implemented by a
6125 record type or a derived record type.
6126 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
6127 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
6128 Process_Full_View, Record_Type_Declaration): Modified to give
6129 support to abstract interface types
6130 (Collect_Interfaces): New subprogram that collects the list of
6131 interfaces that are not already implemented by the ancestors
6132 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
6133 when partial view has no discriminants and full view has defaults.
6134 (Constrain_Access): Reject a constraint on a general access type
6135 if the discriminants of the designated type have defaults.
6136 (Access_Subprogram_Declaration): Associate the Itype node with the inner
6137 full-type declaration or subprogram spec. This is required to handle
6138 nested anonymous declarations.
6139 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
6140 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
6141 Process_Full_View, Record_Type_Declaration): Modified to give
6142 support to abstract interface types
6143 (Derive_Subprograms): Addition of a new formal to indicate if
6144 we are in the case of an abstact-interface derivation
6145 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
6146 to the specification because it is requied to analyze all the
6147 identifiers found in a list of interfaces
6149 * debug.adb: Complete documentation of flag "-gnatdZ"
6151 * exp_ch3.adb: Implement config version of persistent_bss pragma
6152 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
6153 testing for TSS presence to properly enforce visibility rules.
6154 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
6155 Make_Abstract_Interfaces_DT to generate the secondary tables
6156 associated with abstract interfaces.
6157 (Build_Init_Procedure): Modified to initialize all the tags
6159 (Component_Needs_Simple_Initialization): Similar to other tags,
6160 interface tags do not need initialization.
6161 (Freeze_Record_Type): Modified to give support to abstract interface
6163 (Expand_N_Object_Declaration): Do not generate an initialization for
6164 a scalar temporary marked as internal.
6166 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
6167 in-out parameter that is a component in an initialization procedure,
6168 whose constraint might depend on discriminants, and that may be
6169 misaligned because of packing or representation clauses.
6170 (Is_Legal_Copy): New predicate to determine whether a possibly
6171 misaligned in-out actual can actually be passed by copy/return. This
6172 is an error in case the type is by_reference, and a warning if this is
6173 the consequence of a DEC import pragma on the subprogram.
6174 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
6176 (Expand_Inlined_Call): Mark temporary generated for the return value as
6177 internal, so that no useless scalar normalization is generated for it.
6178 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
6179 null procedure can always be inlined.
6180 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
6181 procedure, generate an explicit empty body for it.
6183 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
6184 Given a type implementing an interface, returns the corresponding
6185 access_disp_table value.
6186 (Find_Interface_Tag): New subprogram. Given a type implementing an
6187 interface, returns the record component containing the tag of the
6189 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
6190 previous ones that return the corresponding tag and access_disp_table
6192 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
6193 is a predefined primitive operation.
6194 (Expand_Subtype_From_Expr): If the expression is a selected component
6195 within an initialization procedure, compute its actual subtype, because
6196 the component may depend on the discriminants of the enclosing record.
6198 * i-cpp.ads, i-cpp.adb:
6199 This package has been left available for compatibility with previous
6200 versions of the frontend. As part of the new layout this is now a
6201 dummy package that uses declarations available at a-tags.ads
6203 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
6204 "constant access" and "aliased [constant] access" when not compiling
6206 Suppress Ada 2005 keyword warning if -gnatwY used
6207 (P_Identifier_Declarations): Add support for object declarations with
6209 (Private_Extension_Declaration): Complete the documentation
6210 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
6211 attribute in case of private extension declaration
6212 (P_Type_Declaration): Mark as "abstract" the type declarations
6213 corresponding with protected, synchronized and task interfaces
6214 (P_Declarative_Items): "not" and "overriding" are overriding indicators
6215 for a subprogram or instance declaration.
6217 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
6218 instantiation that is a dispatching operation has controlling access
6219 parameters that are null excluding.
6220 Save and restore Ada_Version_Explicit, for implementation of AI-362
6221 (Validate_Derived_Type_Instance): Add check for abstract interface
6223 (Analyze_Formal_Package): Establish Instantiation source for the copy of
6224 the generic that is created to represent the formal package.
6225 (Analyze_Package_Instantiation): Instantiate body immediately if the
6226 package is a predefined unit that contains inlined subprograms, and
6227 we are compiling for a Configurable_Run_Time.
6228 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
6229 If the program has a null default, generate an empty body for it.
6231 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
6232 error message condition, null procedures are correctly detected now.
6233 (New_Overloaded_Entity): Bypass trivial overriding indicator check
6234 for subprograms in the context of protected types. Instead, the
6235 indicator is examined in Sem_Ch9 while analysing the subprogram
6237 (Check_Overriding_Indicator): Check consistency of overriding indicator
6238 on subprogram stubs as well.
6239 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
6241 (Analize_Subprogram_Specification): When analyzing a subprogram in which
6242 the type of the first formal is a concurrent type, replace this type
6243 by the corresponding record type.
6244 (Analyze_Subprogram_Body): Undo the previous work.
6245 (Analyze_Procedure_Call): If the call has the form Object.Op, the
6246 analysis of the prefix ends up analyzing the call itself, after which
6248 (Has_Interface_Formals): New subprogram subsidiary to analyze
6249 subprogram_specification that returns true if some non
6250 class-wide interface subprogram is found
6251 (New_Overloaded_Entity): Modified to give support to abstract
6253 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
6254 access to subprograms must be recursive.
6255 (Is_Unchecked_Conversion): Improve the test that recognizes
6256 instantiations of Unchecked_Conversion, and allows them in bodies that
6257 are to be inlined by the front-end. When the body comes from an
6258 instantiation, a reference to Unchecked_Conversion will be an
6259 Expanded_Name, even though the body has not been analyzed yet.
6260 Replace Is_Overriding and Not_Overriding in subprogram_indication with
6261 Must_Override and Must_Not_Override, to better express intent of AI.
6262 (Analyze_Subprogram_Body): If an overriding indicator is given, check
6263 that it is consistent with the overrinding status of the subprogram
6265 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
6267 If the subprogram is a null procedure, indicate that it does not need
6270 * sem_disp.adb (Check_Controlling_Type): Give support to entities
6271 available through limited-with clauses.
6272 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
6273 allowed as the last primitive of a tagged type if it has no previous
6275 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
6276 to give support to abstract interface types
6278 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
6279 in the case where the target type is an anonymous access type of an
6280 object or component (that is, when Is_Local_Anonymous_Access is true).
6281 Prevent the special checks for conversions of access discriminants in
6282 the case where the discriminant belongs to a nonlimited type, since
6283 such discriminants have their accessibility level defined in the same
6284 way as a normal component of an anonymous access type.
6285 (Resolve_Allocator): When an allocator's designated type is a class-wide
6286 type, check that the accessibility level of type given in the
6287 allocator's expression or subtype indication is not statically deeper
6288 than the level of the allocator's access type.
6289 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
6290 name in a discriminant constraint of a record component.
6291 (Resolve_Explicit_Dereference): Do not check whether the type is
6292 incomplete when the dereference is a use of an access discriminant in
6293 an initialization procedure.
6294 (Resolve_Type_Conversion): Handle conversions to abstract interface
6296 (Valid_Tagged_Conversion): The conversion of a tagged type to an
6297 abstract interface type is always valid.
6298 (Valid_Conversion): Modified to give support to abstract interface types
6299 (Resolve_Actuals): Enable full error reporting on view conversions
6300 between unrelated by_reference array types.
6301 The rule for view conversions of arrays with aliased components is
6302 weakened in Ada 2005.
6303 Call to obsolescent subprogram is now considered to be a violation of
6304 pragma Restrictions (No_Obsolescent_Features).
6305 (Check_Direct_Boolean_Operator): If the boolean operation has been
6306 constant-folded, there is nothing to check.
6307 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
6308 check on possible violation of restriction No_Direct_Boolean_Operators
6309 until after expansion of operands, to prevent spurious errors when
6310 operation is constant-folded.
6312 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
6313 Has_Compatible_Type): Modified to give support to abstract interface
6315 (Interface_Present_In_Ancestor): New function to theck if some ancestor
6316 of a given type implements a given interface
6318 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
6319 prefix is a parameterless function that returns an access_to_procedure.
6320 (Transform_Object_Operation): Handle properly function calls of the
6321 form Obj.Op (X), which prior to analysis appear as indexed components.
6322 (Analyze_One_Call): Complete the error notification to help new Ada
6324 (Analyze_Allocator): For an allocator without an initial value, where
6325 the designated type has a constrained partial view, a discriminant
6326 constraint is illegal.
6328 2005-06-14 Robert Dewar <dewar@adacore.com>
6330 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
6331 do with treatment of Set_Col when positioned at end of line character.
6333 2005-06-14 Robert Dewar <dewar@adacore.com>
6335 * atree.adb: (Elist*): Protect against uninitialized field
6337 2005-06-14 Ed Schonberg <schonberg@adacore.com>
6339 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
6340 for an attribute reference that returns an access type.
6341 (Apply_Discriminant_Check): No need for check if (designated) type has
6342 constrained partial view.
6344 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
6345 both bound checks, rather than a conjunction.
6346 (Insert_Valid_Check): If the expression is an actual that is an indexed
6347 component of a bit-packed array, force expansion of the packed element
6348 reference, because it is specifically inhibited elsewhere.
6350 2005-06-14 Vincent Celier <celier@adacore.com>
6352 * clean.adb (Clean_Project): Correctly delete executable specified as
6353 absolute path names.
6355 * make.adb (Gnatmake): Allow relative executable path names with
6356 directory information even when project files are used.
6357 (Change_To_Object_Directory): Fail gracefully when unable to change
6358 current working directory to object directory of a project.
6359 (Gnatmake): Remove exception handler that could no longer be exercized
6360 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
6361 may be deallocated by Normalize_Arguments.
6362 (Collect_Arguments): Eliminate empty arguments
6364 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
6365 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
6366 (Check_Project): Return False when Project is No_Project. Return True
6367 when All_Projects is True.
6368 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
6369 All_Projects to True.
6372 2005-06-14 Ed Schonberg <schonberg@adacore.com>
6373 Javier Miranda <miranda@adacore.com>
6374 Thomas Quinot <quinot@adacore.com>
6375 Robert Dewar <dewar@adacore.com>
6376 Hristian Kirtchev <kirtchev@adacore.com>
6377 Gary Dismukes <dismukes@adacore.com>
6379 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
6380 anonymous access types, to indicate that the accessibility level of
6381 the type is determined by that of the enclosing declaration.
6382 (Has_Persistent_BSS): New flag
6383 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
6384 of this attribute with functions.
6385 (Is_Primitive_Wrapper): Remove the barrier.
6386 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
6387 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
6389 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
6390 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
6392 (Is_Pure_Unit_Access_Type): New flag
6393 (Abstract_Interfaces): Complete the assertion to cover all usages.
6394 (Set_Is_Interface): Complete the assertion to cover all usages.
6395 (Is_Primitive_Wrapper): New attribute.
6396 (Is_Obsolescent): Now applies to all entities (though it is only set
6397 for subprograms currently)
6398 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
6399 which solves various problems concerning access subtypes.
6400 (Has_Persistent_BSS): New flag
6401 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
6402 Remove these subprograms because this attribute is currently
6405 Has_Specified_Stream_Input (Flag190)
6406 Has_Specified_Stream_Output (Flag191)
6407 Has_Specified_Stream_Read (Flag192)
6408 Has_Specified_Stream_Write (Flag193)
6409 Present in all type and subtype entities. Set for a given view if the
6410 corresponding stream-oriented attribute has been defined by an
6411 attribute definition clause. When such a clause occurs, a TSS is set
6412 on the underlying full view; the flags are used to track visibility of
6413 the attribute definition clause for partial or incomplete views.
6414 (Is_Pure_Unit_Access_Type): New flag
6415 Clarify use of Is_Internal.
6416 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
6417 internally generated to wrap the invocation of tasks and protected
6418 types that implement interfaces.
6419 (Implementation_Base_Type): Documentation correction
6420 (Is_Obsolescent): Now applies to all entities (though it is only set
6421 for subprograms currently)
6422 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
6423 which solves various problems concerning access subtypes.
6425 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
6426 for examined parameters. Identify unequal parameter list lengths as
6427 non-conformant parameters.
6428 (Overriding_Possible): Do not check for "All" qualifier in declaration
6429 of controlling access parameter, following prescription of AI-404.
6430 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
6431 that build the procedure body that wraps an entry invocation
6432 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
6433 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
6434 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
6435 give support to abstract interface types
6437 * freeze.adb (Freeze_Entity): Issue error message if
6438 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
6439 type has no storage pool (Ada 2005) AI-366.
6440 Also modified to give support to abstract interface types
6441 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
6442 Inline_Always pragma.
6444 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
6445 now begin an entry declaration.
6446 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
6447 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
6448 a subprogram declaration preceded by an overriding indicator.
6449 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
6450 declarations or subprogram declarations preceded by reserved words
6451 "not" or "overriding".
6452 (P_Entry_Declaration): Update comment. Parse and check overriding
6453 indicator, set semantic flags of entry declarations.
6454 (P_Task): New error message in case of private applied
6455 to a task type declaration.
6456 (P_Protected): New error message in case of private applied
6457 to a task type declaration.
6459 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
6460 in which the full view of a type implementing an interface is a
6462 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
6463 Declare_Inherited_Private_Subprograms): If an explicit operation
6464 overrides an operation that is inherited in the private part, mark the
6465 explicit one as overriding, to enable overriding indicator checks.
6466 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
6467 full view to partial view, to simplify handling in back-end.
6469 * sprint.adb: Print interface lists where needed: derived types,
6470 protected types, task types.
6471 output "is null" for null procedures. Part of implementation of
6473 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
6474 relaxation of rules for access types in pure, shared passive partitions.
6476 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
6477 first read discriminants into temporary objects, performing checks on
6478 the read values, then possibly performing discriminant checks on the
6479 actual (if it is constrained), and only finally reading the components
6480 into a constrained temporary object.
6481 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
6482 case of reading discriminants of a mutable record type to recognize
6483 the new form of the code generated by
6484 Build_Mutable_Record_Read_Procedure.
6486 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
6487 of a simple call to Make_TSS_Name.
6488 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
6489 buffer, in order for Is_TSS to work correctly on local TSS names.
6491 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
6492 Is_Local_Anonymous_Access to check legaliy of attributes in the
6493 context of access components and stand-alone access objects.
6494 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
6495 treated as available for a limited private type if there is an
6496 attribute_definition_clause that applies to its full view, but not in
6497 other cases where the attribute is available for the full view
6498 (specifically, the sole fact that the full view is non-limited does not
6499 make the attribute available for the partial view).
6500 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
6501 non-overloaded intrinsic subprogram.
6502 (Check_Stream_Attribute): Reject an attribute reference for an
6503 unavailable stream attribute even if the prefix is not a limited type
6504 (case of a 'Input attribute reference for an abstract, non-classwide
6506 (Stream_Attribute_Available): New function to determine whether a stream
6507 attribute is available at a place.
6508 (Check_Attribute): Use Stream_Attribute_Available instead of just
6509 testing for TSS presence on the implementation base type.
6510 (Analyze_Attribute): Modified to give support to task interfaces.
6511 (Analyze_Access_Attribute): Add error check for use of an Access (or
6512 Unrestricted_Access) attribute with a subprogram marked as
6514 (Analyze_Attribute, case Attribute_Address): Add error check for use of
6515 an Address attribute with a subprogram marked as Inline_Always.
6516 Update Eval_Attribute to handle new value of Width from AI-395
6518 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
6519 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
6520 Factor common code across the stream-oriented attribute circcuits into
6521 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
6522 processing is functionally identical to the previous duplicated one,
6523 except that an expression that denotes an abstract subprogram will now
6524 be rejected, as mandated by AI-195 item 5.
6526 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
6527 Is_Local_Anonymous_Access to apply accessibility checks to access
6528 components and stand-alone access objects.
6529 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
6531 (Is_Potentially_Persistent_Type): New function
6532 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
6533 a heap-object whose type has a constrained partial view, the object is
6534 unconstrained and the component may depend on a discriminant, making its
6537 * sinfo.ads, sinfo.adb
6538 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
6539 (Must_Override): Flag applicable to N_Entry_Declaration.
6540 Indicate that interface_list can appear in single task and single
6541 protected declarations.
6542 Replace Is_Overriding and Not_Overriding with Must_Override and
6543 Must_Not_Override, to better express intent of AI.
6544 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
6545 of an overriding indicator in a subprogram or instance.
6546 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
6547 Add the overriding indicator [[not] overriding] construct to the
6548 following grammar productions:
6550 GENERIC_INSTANTIATION
6551 SUBPROGRAM_SPECIFICATION
6553 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
6554 can start with an overriding indicator.
6556 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
6557 flags accordingly on subrogram specifications or instances.
6560 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
6561 overriding_indicator, if present, is consistent with status of spec.
6562 Improve error message for null-excluding checks on controlling access
6564 (Check_In_Previous_With_Clause): Protect the frontend against
6565 previously reported critical errors in the context clauses.
6566 Save and restore Ada_Version_Explicit, for implementation of AI-362
6567 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
6568 operation verify that controlling formals of the renamed entity that
6569 are access parameters are explicitly non-null.
6570 (Find_Expanded_Name): Improve error message when prefix is an illegal
6571 reference to a private child unit.
6573 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
6574 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
6575 Rewrite to correspond to new wide character names in AI-395
6577 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
6580 2005-06-14 Ed Schonberg <schonberg@adacore.com>
6581 Robert Dewar <dewar@adacore.com>
6583 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
6584 code, not on the bodies of predefined operations, to cut down on
6587 2005-06-14 Ed Schonberg <schonberg@adacore.com>
6589 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
6590 be expanded in place. The size computation does not require a
6591 subtraction, which would raise an exception on a compiler built with
6592 assertions when the upper bound is Integer'first.
6593 (Flatten): For an array of composite components, take into account the
6594 size of the components to determine whether it is safe to expand the
6595 array into a purely positional representation.
6597 2005-06-14 Thomas Quinot <quinot@adacore.com>
6599 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
6600 denoting a formal parameter into account.
6602 2005-06-14 Ed Schonberg <schonberg@adacore.com>
6604 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
6605 the entry_call alternative of a conditional entry call, wrap the
6606 conditional entry call itself.
6608 2005-06-14 Nicolas Setton <setton@adacore.com>
6609 Ed Schonberg <schonberg@adacore.com>
6611 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
6612 the "simple_choice" member in a variant record, in accordance with the
6613 description in the package spec: the information output for a constant
6614 should be "S number", not "SS number".
6615 (Get_Encoded_Name): Return at once if not generating code. Avoids name
6616 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
6618 2005-06-14 Thomas Quinot <quinot@adacore.com>
6620 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
6621 RACW without any primitives, do not generate the if statement for
6622 dispatching by name in the PolyORB/DSA case, as it would be malformed
6623 (it would have an Elsif_Parts list that is not No_List, but with a
6626 2005-06-14 Robert Dewar <dewar@adacore.com>
6628 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
6630 2005-06-14 Jose Ruiz <ruiz@adacore.com>
6632 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
6633 can determine whether pragma Suppress_Exception_Locations is in effect.
6635 * utils2.c (build_call_raise): Do not pass the file name to the
6636 exception handler if pragma Suppress_Exception_Locations is in effect.
6637 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
6639 2005-06-14 Emmanuel Briot <briot@adacore.com>
6641 * g-debpoo.adb (Deallocate, Dereference): Improve output.
6643 2005-06-14 Nicolas Roche <roche@adacore.com>
6645 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
6647 (Next_Level): Fix minor bug in handling of ../dir case
6648 (Read): Add dir separator to Directory name so that "" is understood as
6651 2005-06-14 Pascal Obry <obry@adacore.com>
6653 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
6654 releasing the items.
6656 2005-06-14 Vincent Celier <celier@adacore.com>
6657 Cyrille Comar <comar@adacore.com>
6659 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
6660 with output file descriptor and with output file name.
6661 (Dup, Dup2): Now global procedures as they are used by two subprograms
6662 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
6664 2005-06-14 Thomas Quinot <quinot@adacore.com>
6668 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
6670 (Create_Selector): Bind listening socket used to create the signalling
6671 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
6672 Set listen backlog to 1 to ensure that we detect socket theft by a
6673 failure of our own connect(2) call.
6674 (Check_Selector): Improve documentation of the selector mechanism.
6675 (Broadcast_Inet_Addr): New constant.
6677 2005-06-14 Gary Dismukes <dismukes@adacore.com>
6679 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
6680 type which turns out to be an incomplete and incorrect fix.
6681 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
6682 of the type is declared in a record (for determination of insertion
6684 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
6685 a private type and ensure that the primary entity is used for the type
6686 of the newly created function's V formal by taking the Etype of the
6689 2005-06-14 Javier Miranda <miranda@adacore.com>
6690 Jose Ruiz <ruiz@adacore.com>
6691 Robert Dewar <dewar@adacore.com>
6692 Ed Schonberg <schonberg@adacore.com>
6694 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
6695 that indicates if we are parsing a compilation unit found in a
6696 limited-with clause.
6697 It is use to avoid the circularity check.
6699 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
6700 we are parsing a compilation unit found in a limited-with clause. This
6701 is use to avoid the circularity check.
6703 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
6704 unit as a consequence of parsing a limited-with clause. This is used
6705 to avoid the circularity check.
6707 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
6708 (Analyze_Context): Limited-with clauses are now allowed
6709 in more compilation units.
6710 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
6711 againts previously reported critical errors in context clauses
6712 (Install_Limited_Withed_Unit): Code cleanup plus static detection
6713 of two further errors: renamed subprograms and renamed packages
6714 are not allowed in limited with clauses.
6715 (Install_Siblings): Do not install private_with_clauses on the package
6716 declaration for a non-private child unit.
6717 (Re_Install_Parents): When a parent of the subunit is reinstalled,
6718 reset visibility of child units properly.
6719 (Install_Withed_Unit): When a child unit appears in a with_clause of its
6720 parent, it is immediately visible.
6722 2005-06-14 Ed Schonberg <schonberg@adacore.com>
6723 Emmanuel Briot <briot@adacore.com>
6725 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
6726 declared within an inlined body as referenced, to prevent spurious
6728 (Output_One_Ref): If an entity renames an array component, indicate in
6729 the ALI file that this aliases (renames) the array. Capture as well
6730 function renamings that rename predefined operations.
6731 Add information about generic parent for package and subprogram
6733 (Get_Type_Reference): For a subtype that is the renaming of an actual in
6734 an instantiation, use the first_subtype to ensure that we don't generate
6735 cross-reference information for internal types.
6736 For objects and parameters of a generic private type, retain the '*'
6737 indicator to distinguish such an entity from its type.
6739 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
6740 to store information about instantiated entities.
6742 * ali.adb (Scan_ALI): Add support for parsing the reference to the
6745 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
6746 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
6749 2005-06-10 Doug Rupp <rupp@adacore.com>
6750 Arnaud Charlet <charlet@adacore.com>
6751 Olivier Hainque <hainque@adacore.com>
6752 Jose Ruiz <ruiz@adacore.com>
6754 * Make-lang.in: Add initialize.o when needed.
6755 Remove obsolete references to RT_FLAGS.
6756 Add missing dependencies for sdefault.o
6758 * initialize.c: New file.
6760 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
6761 [VMS] cond_signal_table: Fix problem in declaration.
6762 [VMS] __gnat_error_handler: rewrite.
6763 Move all __gnat_initialize() routines to initialize.c
6764 Specialize the former "hpux" section to "hppa hpux", as this is what the
6765 section really is here for and we now have other hpux ports that need
6767 (__gnat_adjust_context_for_raise) i386-linux: First version of this
6768 function for this target. Adjust PC by one in the machine context. This
6769 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
6770 it is more reliable to do that in the signal handler itself.
6771 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
6772 flags, so that the handler is passed the context structure to adjust
6774 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
6775 SA_SIGINFO sigaction should look like. Call
6776 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
6777 Machine_State_Operations stuff.
6778 Add conditional code so that the x86_64 is also supported.
6780 2005-06-14 Pascal Obry <obry@adacore.com>
6782 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
6785 2005-06-14 Robert Dewar <dewar@adacore.com>
6787 * opt.ads, opt.adb: New flags for persistent_bss mode
6788 Add Ada_Version_Explicit, for implementation of AI-362
6789 Add Assertions_Enabled_Config and associated handling
6790 Needed since setting can be changed with Assertion_Policy pragma
6791 Add new flag Warn_On_Ada_2005_Compatibility
6793 * switch-c.adb: Recognize -gnatwy/Y
6794 Set Ada_Version_Explicit, for implementation of AI-362
6795 The -gnatg switch now includes -gnatyu
6797 * usage.adb: Add -gnatwy/Y
6798 Remove wrong asterisk on -gnatwX line
6799 Add line for -gnatyu switch
6801 2005-06-14 Vincent Celier <celier@adacore.com>
6803 * osint.adb (Add_Default_Search_Dirs): Put source and object
6804 directories of project files before directories coming from
6805 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
6807 2005-06-14 Robert Dewar <dewar@adacore.com>
6811 * par-ch2.adb (Scan_Pragma_Argument): New procedure
6812 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
6814 2005-06-14 Vincent Celier <celier@adacore.com>
6816 * prep.adb (Preprocess): Ignore error when scanning the first token of
6819 2005-06-14 Vincent Celier <celier@adacore.com>
6821 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
6822 (Check_Stand_Alone_Library): If the specified reference symbol file does
6823 not exist, only issue a warning when the symbol policy is not
6824 Controlled. And, when symbol policy is Compliant, set the symbol
6825 policy to Autonomous.
6827 2005-06-14 Vincent Celier <celier@adacore.com>
6829 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
6830 when the project file in a with clause is not the last one, that is the
6831 project file name is followed by a comma.
6832 * prj-pp.adb: (First_With_In_List): New Boolean global variable
6833 (Print): Issue list of project files separated by commas in with clauses
6834 according to the values returned by Is_Not_Last_In_List.
6835 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
6836 (Set_Is_Not_Last_In_List): New procedure
6838 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
6840 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
6842 2005-06-14 Robert Dewar <dewar@adacore.com>
6844 * scng.adb: Add call to new Check_EOF routine
6845 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
6846 Add some comments regarding wide character handling
6848 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
6850 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
6852 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
6853 characters are now considered graphic characters and hence yield false
6856 * nmake.adt: Modify header so that xnmake does not generate output
6857 files with multiple blank lines.
6859 * treeprs.adt: Remove a blank line so that output from xtreeprs does
6860 not have an extra blank line
6862 2005-06-14 Gary Dismukes <dismukes@adacore.com>
6864 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
6865 expression when the component type is an anonymous access type to
6866 ensure that appropriate accessibility checks are done.
6868 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
6869 expression of an assignment when the target object is of an anonymous
6870 access type. This ensures that required accessibility checks are done.
6871 (One_Bound): Move the check for type Universal_Integer to
6873 (Process_Bounds): Check whether the type of the preanalyzed range is
6874 Universal_Integer, and in that case set Typ to Integer_Type prior
6875 to setting the type of the original range and the calls to One_Bound.
6877 2005-06-14 Ed Schonberg <schonberg@adacore.com>
6879 * sem_case.adb (Expand_Others_Choice): Improve warning.
6881 2005-06-14 Ed Schonberg <schonberg@adacore.com>
6883 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
6884 constraint of full view if present, when other type is discriminated.
6885 (Eval_Relational_Op): Recognize tests of pointer values against Null,
6886 when the pointer is known to be non-null, and emit appropriate warning.
6888 2005-06-14 Robert Dewar <dewar@adacore.com>
6889 Ed Schonberg <schonberg@adacore.com>
6893 * sem_prag.adb: Implement pragma Persistent_BSS
6894 Remove obsolete pragma Persistent_Data, Persistent_Object
6895 Set Ada_Version_Explicit, for implementation of AI-362
6896 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
6897 Add processing for pragma Pure_05 and Preelaborate_05
6898 Add processing for Assertion_Policy pragma
6899 Add pragma identifiers for Assert
6900 (Analyze_Pragma, case Assert): Check number of arguments
6901 (Process_Inline): Additional guard against an illegal program, where the
6902 argument of the pragma is undefined, and warnings on redundant
6903 constructs are enabled.
6904 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
6905 Ada_05 to this pragma, specifying that the pragma is only active in
6907 (Check_Arg_Order): New procedure
6908 Add appropriate calls to this procedure throughout
6909 Also throughout, check entity name before doing any other checks
6911 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
6912 Remove obsolete pragma Persistent_Data, Persistent_Object
6913 Add entries for pragma Pure_05 and Preelaborate_05
6914 Add entries for Assertion_Policy pragma and associated names
6915 Add some names for pragma argument processing
6917 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
6919 2005-06-14 Ed Schonberg <schonberg@adacore.com>
6921 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
6922 appears within a negation (either from source or as a rewriting of
6923 inequality) adjust text of warning accordingly.
6925 2005-06-14 Thomas Quinot <quinot@adacore.com>
6927 * s-strxdr.adb: Follow AI95-00132
6929 2005-06-14 Arnaud Charlet <charlet@adacore.com>
6931 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
6933 2005-06-14 Arnaud Charlet <charlet@adacore.com>
6934 Jose Ruiz <ruiz@adacore.com>
6936 * s-tposen.adb, s-tpobop.adb
6937 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
6939 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
6940 there is no violation of the Max_Entry_Queue_Length restriction (if it
6941 has been set); Program_Error is raised otherwise.
6942 (Requeue_Call): Before requeuing the task on the target entry queue we
6943 check that there is no violation of the Max_Entry_Queue_Length
6944 restriction (if it has been set); Program_Error is raised otherwise.
6946 2005-06-14 Robert Dewar <dewar@adacore.com>
6948 * styleg.adb: Fix several remaining problems in -gnatyu switch
6949 Blank line count not reset at start
6950 Scanning outside source buffer in some cases
6951 Confusing message for blanks at end of file
6952 Non-empty blank lines not recognized
6954 * nmake.adt: Modify header so that xnmake does not generate output
6955 files with multiple blank lines.
6957 * treeprs.adt: Remove a blank line so that output from xtreeprs does
6958 not have an extra blank line
6960 2005-06-14 Sergey Rybin <rybin@adacore.com>
6962 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
6964 2005-06-14 Doug Rupp <rupp@adacore.com>
6965 Vincent Celier <celier@adacore.com>
6967 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
6970 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
6971 Remove "Library" command.
6972 Change keyword for style check -gnatyd from NOCRLF to
6974 Remove useless second style check keyword NONE
6975 Remove help documentation for inexistent style check keyword
6977 Add help documentation for style check keywords DOS_LINE_ENDINGS,
6978 UNNECESSARY_BLANK_LINES and XTRA_PARENS
6979 Add UNNECESSARY_BLANK_LINES for -gnatyu
6980 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
6982 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
6984 2005-06-14 Vincent Celier <celier@adacore.com>
6986 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
6987 gprmake was invoked with -d.
6988 (Compile_Sources): If -d was used, output the "completed ..." message
6989 for each compilation.
6990 (Scan_Arg): Recognize new switch -d
6991 When -c and at least one main is specified, set
6992 Unique_Compile to True to guarantee that no other sources will be
6995 2005-06-14 Matthew Heaney <heaney@adacore.com>
6997 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
6998 * a-swuwha.ads, a-swuwha.adb: New files
7000 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
7001 * a-szuzha.ads, a-szuzha.adb: New files.
7003 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
7004 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
7005 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
7006 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
7007 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
7008 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
7009 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
7010 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
7011 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
7012 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
7015 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
7016 Olivier Hainque <hainque@adacore.com>
7017 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7018 Pascal Obry <obry@adacore.com>
7020 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
7022 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
7023 making a temporary around a procedure call because of non-addressable
7025 (process_freeze_entity): If entity is a private type, capture size
7026 information that may have been computed for the full view.
7027 (tree_transform, case N_Allocator): If have initializing expression,
7028 check type for Has_Constrained_Partial_View and pass that to
7030 (tree_transform, case N_Return_Statement): Pass extra arg to
7033 * decl.c (annotate_value): Remove early return if -gnatR is not
7035 (gnat_to_gnu_field): Don't make a packable type for a component clause
7036 if the position is byte aligned, the field is aliased, and the clause
7037 size isn't a multiple of the packable alignment. It serves no useful
7038 purpose packing-wise and would be rejected later on.
7039 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
7042 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
7043 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
7045 (create_concat_name): Idem.
7047 2005-06-10 Robert Dewar <dewar@adacore.com>
7048 Eric Botcazou <ebotcazou@adacore.com>
7049 Ben Brosgol <brosgol@adacore.com>
7050 Cyrille Comar <comar@adacore.com>
7051 Sergey Rybin <rybin@adacore.com>
7052 Pascal Obry <obry@adacore.com>
7054 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
7055 Document second argument (Ada_05) of pragma Obsolescent
7056 Add note that call to subprogram marked with pragma Obsolescent
7057 is now considered to be a violation of program Restrictions
7058 (No_Obsolescent_Features).
7059 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
7060 that only machine-dependent attributes are supported.
7063 Commented out menu lines and empty section for gnatclean examples
7065 Fix some over long lines
7066 Clarify and enhance documentation of ADA_PROJECT_PATH.
7067 Rework section 2.11.2(3) about linking with a non-GNU compiler.
7068 Mention new switch -fcallgraph-info.
7069 Mention new switch -fstack-usage.
7070 For gnatpp, replace '-notab' with '-N' and add this option to Index
7071 Corrected VMS example.
7072 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
7074 Add documentation for -gnatyu switch (unnecessary blank lines)
7075 Document new switch -U for GNAT PRETTY and GNAT METRIC
7076 Add note about Stdcall being handled as C convention on non Windows OS.
7077 Remove some junk typo in description of gnatbind -S switch
7078 Remove reference to Extensions_Allowed pragma
7079 Document the new order of the directories to be searched (source and
7080 object directories of project files before directories in ADA_*_PATH
7081 environment variables.
7083 * g-trasym.ads: Document that IRIX is supported
7085 2005-06-10 Arnaud Charlet <charlet@adacore.com>
7087 * Makefile.in: Add initialize.o when needed.
7088 Adapt to new VMS package body Symbols and subunits
7089 No specialized version of a-sytaco is needed for VxWorks.
7091 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
7092 * a-zchara.ads, a-widcha.ads: New files.
7094 * system-hpux-ia64.ads: New file.
7096 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
7097 is imported from the VxWorks kernel.
7099 2005-06-14 Robert Dewar <dewar@adacore.com>
7101 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
7102 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
7103 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
7104 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
7105 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
7106 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
7107 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
7108 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
7109 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
7110 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
7111 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
7112 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
7114 2005-06-14 Thomas Quinot <quinot@adacore.com>
7116 * xeinfo.adb: Fix typo in comment
7118 2005-06-14 Javier Miranda <miranda@adacore.com>
7120 * repinfo.ads: Fix typo in comment
7122 2005-06-14 Gary Dismukes <dismukes@adacore.com>
7124 * s-finimp.adb (Parent_Tag): Delete this imported function (function
7125 Parent_Tag is now in the visible part of Ada.Tags).
7126 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
7127 using imported function.
7129 2005-06-14 Bernard Banner <banner@adacore.com>
7131 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
7132 also apply for handling support for VxSim 653.
7134 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
7136 * xsnames.adb: Add automatic generation of snames.h.
7138 2005-06-14 Thomas Quinot <quinot@adacore.com>
7140 * gen-soccon.c: Add IP_MULTICAST_IF constant
7141 Minor reformatting and adjustments to prevent warnings.
7143 2005-06-14 Pascal Obry <obry@adacore.com>
7145 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
7147 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
7149 * trans.c (gnat_gimplify_expr): Call
7150 recompute_tree_invarant_for_addr_expr when we change
7151 the operand of the ADDR_EXPR.
7153 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7155 * misc.c: Don't include errors.h.
7157 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7159 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
7161 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
7163 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
7165 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
7167 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
7170 * Makefile.in: Make TGT_LIB behave correctly.
7172 2005-04-23 DJ Delorie <dj@redhat.com>
7174 * misc.c: Adjust warning() callers.
7176 2005-04-16 Laurent GUERBY <laurent@guerby.net>
7179 * a-nudira.adb (Value): Check for valid string.
7180 * a-nuflra.adb (Value): Likewise.
7182 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
7184 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
7186 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
7188 * adaint.c, init.c, tracebak.c: Fix comment typos.
7189 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
7191 2005-04-07 Laurent GUERBY <laurent@guerby.net>
7192 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7194 * Makefile.in: Add make ifeq define for hppa linux tasking support.
7195 * system-hpux.ads: Define Signed_Zeros to be True.
7196 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
7198 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
7200 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
7201 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
7204 2005-03-30 Tom Tromey <tromey@redhat.com>
7206 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
7208 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
7210 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
7212 2005-03-29 Robert Dewar <dewar@adacore.com>
7214 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
7215 fixed-point expression has value that is not a multiple of the Small
7218 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
7220 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
7223 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
7225 2005-03-29 Vincent Celier <celier@adacore.com>
7227 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
7228 (Build_Dynamic_Library.Version_String): Return the empty string when
7229 Lib_Version is empty or when the symbol policy is not Autonomous.
7231 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
7232 a symbol is not in the reference symbol file, increase the Major ID
7233 and set the Minor ID to 0.
7234 Use gsmatch=lequal instead of gsmatch=equal
7236 2005-03-29 Doug Rupp <rupp@adacore.com>
7238 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
7241 2005-03-29 Javier Miranda <miranda@adacore.com>
7243 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
7244 (Inherit_DT): The first formal has been redefined as a Tag.
7245 This allows us the removal of the subprogram Get_TSD.
7246 (TSD): Replace the call to Get_TSD by the actual code.
7248 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
7249 (Make_DT): Upgrade the call to Inherit_TSD according to the
7250 new interface: the first formal is now a Tag.
7252 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
7254 This change allows us to remove the subprogram Get_TSD.
7255 (CPP_Get_TSD): Subprogram removed.
7256 (TSD): Replace the call to CPP_Get_TSD by the actual code.
7258 * rtsfind.ads: Remove support to call the run-time
7261 2005-03-29 Robert Dewar <dewar@adacore.com>
7263 * errutil.adb, errout.adb:
7264 Minor comment updates on Line_Terminator references
7266 * par-ch10.adb: Add ??? comment about line terminator
7268 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
7269 (check dos line terminator).
7270 (Check_Line_Max_Length): New procedure, split off from the existing
7271 Check_Line_Terminator routine. Separating this out allows -gnatyf to
7272 be properly recognized.
7274 * styleg.adb: Add ??? comment for line terminator reference
7276 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
7277 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
7279 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
7280 (check dos line terminator).
7281 (Check_Line_Max_Length): New procedure, split off from the existing
7282 Check_Line_Terminator routine. Separating this out allows -gnatyf to
7283 be properly recognized.
7285 * stylesw.ads, stylesw.adb:
7286 Add handling for new -gnatyd switch (check dos line terminator)
7288 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
7289 Recognize -gnatwb/-gnatwB switches
7290 Include Warn_On_Bad_Fixed_Value for -gnatg
7293 Add line for new -gnatyd switch (check dos line terminator)
7295 * usage.adb: Add lines for -gnatwb/-gnatwB
7297 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
7299 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
7301 * gnat_ugn.texi: Fix overlong lines
7302 Document new -gnatyd switch
7303 Document new -gnatwb/-gnatwB switches
7305 2005-03-29 Ed Schonberg <schonberg@adacore.com>
7307 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
7308 order to retrieve the component list of the type, before examining
7309 individual components.
7311 * sem_type.adb (Covers): Types are compatible if one is the base type
7312 of the other, even though their base types might differ when private
7315 2005-03-29 Thomas Quinot <quinot@adacore.com>
7317 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
7318 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
7319 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
7320 analyzed if expansion is disabled (which could otherwise cause spurious
7321 error messages if expansion has been disabled due to previous
7322 (unrelated) errors).
7324 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
7325 is disabled, the entity denoted by the argument is the access type
7326 itself, not an underlying record type, so there is no need to go back
7327 to the Corresponding_Remote_Type.
7329 2005-03-29 Gary Dismukes <dismukes@adacore.com>
7330 Robert Dewar <dewar@adacore.com>
7332 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
7333 expand a call to an instance of
7334 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
7335 Constructor actual of the instance. A class-wide membership
7336 check is also generated, to ensure that the tag passed to the instance
7337 denotes a type in the class.
7338 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
7339 of Name_Generic_Dispatching_Constructor.
7341 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
7342 05 unit for AI-260-02).
7344 * a-tgdico.ads: New file.
7346 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
7347 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
7349 * snames.ads, snames.adb (Preset_Names): Add entry for
7350 Generic_Dispatching_Constructor.
7354 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
7355 character type cases.
7356 (Analyze_Subprogram_Renaming): Add special handling for
7357 the case of renaming of stream attributes when the renaming denotes a
7358 generic formal subprogram association for an abstract formal subprogram.
7359 Check that the attribute is a primitive stream attribute (and not
7360 a class-wide stream attribute) and then rewrite the attribute name
7361 as the name of the appropriate compiler-generated stream primitive.
7363 2005-03-29 Robert Dewar <dewar@adacore.com>
7365 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
7367 (Is_Possibly_Unaligned_Object): Correct typo that
7368 resulted in inaccurate result for unaligned scalars within records.
7370 2005-03-29 Ed Schonberg <schonberg@adacore.com>
7372 * freeze.adb (Freeze_Record_Type): If the type of the component is an
7373 itype whose parent is controlled and not yet frozen, do not create a
7374 freeze node for the itype if expansion is disabled.
7376 2005-03-29 Vincent Celier <celier@adacore.com>
7378 * make.adb (Gnatmake): Don't fail if the main project file is declared
7379 as having no Ada sources. Do not display message "no sources to
7380 compile" in quiet output.
7382 2005-03-29 Doug Rupp <rupp@adacore.com>
7384 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
7387 2005-03-29 Robert Dewar <dewar@adacore.com>
7389 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
7392 2005-03-29 Robert Dewar <dewar@adacore.com>
7394 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
7395 missing TYPE Improve the error message generated when compiling a
7396 limited interface in Ada83 or Ada95 mode.
7398 2005-03-29 Robert Dewar <dewar@adacore.com>
7400 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
7401 rather than proceed ahead using a junk attribute name.
7403 2005-03-29 Vincent Celier <celier@adacore.com>
7405 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
7407 * prj-part.adb (Parse_Single_Project): Set the location of a project
7408 on its defining identifier, rather than on the reserved word "project".
7410 * prj-proc.adb (Expression): Adapt to the fact that default of external
7411 references may be string expressions, not always literal strings.
7412 (Recursive_Process): Set Display_Name equal to Name
7413 when Location is No_Location, that is when there is no actual file.
7414 Get the Display_Name of the project from the source, when it is not a
7416 (Process): Use the Display_Name in error messages
7418 * prj-strt.adb (External_Reference): Allow default to be string
7419 expressions, not only literal strings.
7421 2005-03-29 Vincent Celier <celier@adacore.com>
7423 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
7424 file and the reference symbol file to be the same file.
7426 2005-03-29 Thomas Quinot <quinot@adacore.com>
7428 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
7429 forbid conversion of a local access-to-subprogram type to a remote one.
7431 * sem_util.adb (Wrong_Type): For a record type that is the expanded
7432 equivalent type for a remote access-to-subprogram type, go back to the
7433 original RAS entity when displaying an error message, so the casing is
7434 the original source casing.
7436 2005-03-29 Robert Dewar <dewar@adacore.com>
7438 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
7441 2005-03-29 Ed Schonberg <schonberg@adacore.com>
7443 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
7444 subtype if code is being pre-analyzed, to prevent un-expanded
7445 references to protected formals, among others.
7446 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
7447 interpretation that can be a call, include the result of the call as a
7448 possible interpretation of the dereference.
7450 * sem_ch5.adb (Process_Bounds): Determine type of range by
7451 pre-analyzing a copy of the original range, and then analyze the range
7452 with the expected type.
7454 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
7455 with an overloaded prefix where not all interpretations yield an
7456 access to subprogram, do not rewrite node as a call.
7457 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
7458 the node as a call once the context identifies the interpretation of
7459 the prefix whose call yields the context type.
7460 (Valid_Conversion): For the case of a conversion between
7461 local access-to-subprogram types, check subtype conformance using
7462 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
7463 detailed error message.
7465 2005-03-29 Ed Schonberg <schonberg@adacore.com>
7467 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
7468 indicator, indicate that the formal can never be null.
7469 (Process_Formals): If a formal has a non_null indicator, insert the
7470 resulting subtype immediately before the enclosing subprogram decl,
7471 and not at the beginning of the corresponding declarative part, to
7472 prevent access before elaboration (Ada2005).
7474 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7477 * utils.c (finish_record_type): Use variable_size when setting sizes.
7479 2005-03-29 Robert Dewar <dewar@adacore.com>
7481 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
7482 guarantee Unix style line terminators for the output files, even when
7485 2005-03-29 Robert Dewar <dewar@adacore.com>
7487 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
7488 buffer if an exception is raised.
7490 2005-03-29 Ed Falis <falis@adacore.com>
7492 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
7495 2005-03-29 Robert Dewar <dewar@adacore.com>
7497 * sem_util.ads: Minor reformatting
7498 * gnat_rm.texi: Minor editing.
7500 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
7502 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
7503 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
7505 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
7507 * adaint.c (__gnat_portable_spawn): Adjust cast.
7509 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
7511 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
7513 2005-03-17 Pascal Obry <obry@adacore.com>
7515 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
7518 * expect.c (__gnat_waitpid): Moved here from adaint.c.
7519 Reimplement under Win32 using Win32 API.
7521 (__gnat_kill) [Win32]: Properly close the process handle before leaving
7524 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
7526 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
7527 (DECL_RENAMED_OBJECT): New accessor macro.
7528 (SET_DECL_RENAMED_OBJECT): New setter macro.
7530 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
7531 object in all cases. Attach the renamed object to the VAR_DECL.
7532 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
7533 field is not prescribed.
7535 * misc.c (gnat_handle_option): Handle -gnatO separately.
7536 (gnat_print_decl) <VAR_DECL>: New case.
7537 Print the DECL_RENAMED_OBJECT node.
7539 * lang.opt: Declare separate -gnatO option.
7541 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
7542 pointer, replace it with the renamed object.
7543 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
7544 pointer type if the source is not a fat pointer type whose underlying
7545 array has the same non-zero alias set as that of the destination array.
7547 2005-03-17 Javier Miranda <miranda@adacore.com>
7549 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
7550 (Get_Inheritance_Depth): Removed.
7551 (Set_Inheritance_Depth): Removed.
7553 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
7554 subprogram Get_Expanded_Name because it is not referenced by the
7557 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
7558 (CPP_Get_Inheritance_Depth): Removed.
7559 (CPP_Set_Inheritance_Depth): Removed.
7561 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
7563 2005-03-17 Robert Dewar <dewar@adacore.com>
7565 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
7566 3, since we now expect GCC 3 to do all the work.
7568 2005-03-17 Javier Miranda <miranda@adacore.com>
7570 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
7571 of one barrier to avoid wrong usage of this attribute.
7573 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
7574 First_Private_Entity.
7576 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
7577 the subprogram against wrong usage.
7578 Adapt the code to traverse the entities in the
7579 scope of a record_type because in addition to its usage regarding
7580 packages, this subprogram is also called by Expand_N_Freeze_Entity
7581 to install the visible declarations of the enclosing scope of a
7582 record_type_with_private to establish the proper visibility before
7583 freezing the entity and related subprograms.
7585 2005-03-17 Ed Schonberg <schonberg@adacore.com>
7587 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
7590 2005-03-17 Thomas Quinot <quinot@adacore.com>
7592 * exp_ch3.adb (Check_Attr): New subprogram.
7593 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
7594 into a new Check_Attr subprogram, in order to provide a more
7595 explanatory error message (including the name of the missing attribute).
7596 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
7597 subprogram determines whether a default implementation exists for a
7598 given stream attribute.
7599 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
7600 Determine whether to generate a default implementation for each stream
7601 attribute separately, as this depends on the specific attribute.
7603 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
7604 limited extension where a stream attribute is missing for a limited
7605 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
7606 generate a bogus reference to the missing attribute to prevent
7607 cascaded errors. Instead, generate a null statement.
7609 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
7610 available for a limited type if it has been specified for an ancestor
7613 2005-03-17 Ed Schonberg <schonberg@adacore.com>
7615 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
7616 entity is an operator.
7618 2005-03-17 Thomas Quinot <quinot@adacore.com>
7620 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
7621 spec, to make this predicate available to other units.
7623 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
7626 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
7627 when no distribution runtime library is available.
7629 * sem_res.adb, sem_dist.adb: Disable expansion of remote
7630 access-to-subprogram types when no distribution runtime library is
7632 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
7633 predicate available to other units.
7635 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
7636 spec, to make this predicate available to other units.
7638 2005-03-17 Vincent Celier <celier@adacore.com>
7640 * make.adb (Insert_Project_Sources): Make sure the Q is always
7643 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
7644 the default for the tree, not the global default naming.
7646 * prj-proc.adb (Recursive_Process): No need to put the default naming
7647 in the project data, it's already there.
7649 2005-03-17 Doug Rupp <rupp@adacore.com>
7651 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
7653 * 5xcrtl.ads: Renamed to...
7654 * s-crtl-vms64.ads: ...this new file
7656 2005-03-17 Robert Dewar <dewar@adacore.com>
7660 * namet.adb (Copy_One_Character): Set proper wide character encoding
7661 for upper half character if we have upper half encoding.
7663 2005-03-17 Robert Dewar <dewar@adacore.com>
7665 * par.adb (Par): Improved msg for attempt to recompile predefined unit
7667 2005-03-17 Thomas Quinot <quinot@adacore.com>
7669 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
7670 tagged limited type, the TSS is a newly built renaming declaration:
7671 insert it using Set_TSS, not Copy_TSS.
7673 2005-03-17 Javier Miranda <miranda@adacore.com>
7675 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
7676 Try_Object_Operation): Analyze the object that is accessible
7677 through the prefix of the subprogram call before we apply
7678 the transformation of the object-operation notation.
7680 2005-03-17 Jose Ruiz <ruiz@adacore.com>
7682 * s-taprob.adb (Initialize_Protection): Initialize the protected
7683 object's owner to Null_Task.
7684 (Lock): If pragma Detect_Blocking is in effect and the caller of this
7685 procedure is already the protected object's owner then Program_Error
7686 is raised. In addition the protected object's owner is updated.
7687 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
7688 of this procedure is already the protected object's owner then
7689 Program_Error is raised.
7690 In addition the protected object's owner is updated.
7691 (Unlock): Remove the ownership of the protected object.
7693 * s-taprob.ads (Protection): Add the field Owner, used to store the
7694 protected object's owner.
7695 This component is needed for detecting one type of potentially blocking
7696 operations (external calls on a protected subprogram with the same
7697 target object as that of the protected action). Document the rest of
7700 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
7701 Initialize the protected object's owner to Null_Task.
7702 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
7703 caller of this procedure is already the protected object's owner then
7704 Program_Error is raised.
7705 Do not raise Program_Error when this procedure is called from a
7707 (Unlock_Entries): Remove the ownership of the protected object.
7708 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
7709 of this procedure is already the protected object's owner then
7710 Program_Error is raised.
7711 Do not raise Program_Error when this procedure is called from
7714 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
7715 used to store the protected object's owner.
7717 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
7718 effect and this procedure (a potentially blocking operation) is called
7719 from whithin a protected action, Program_Error is raised.
7720 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
7721 and this procedure (a potentially blocking operation) is called from
7722 whithin a protected action, Program_Error is raised.
7724 2005-03-17 Vincent Celier <celier@adacore.com>
7725 Nicolas Setton <setton@adacore.com>
7727 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
7728 switch, not supported by the linker on Darwin. Add '_' before
7729 <library>init, as this character is added unconditionally by the
7731 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
7732 correct one ".dylib". This fixes detection of the archive files when
7733 building library projects.
7735 2005-03-17 Vincent Celier <celier@adacore.com>
7737 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
7738 -gnat83, -gnat95 and -gnat05.
7740 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
7742 * gnat_ugn.texi: Document gnatmem restriction
7744 2005-03-17 Thomas Quinot <quinot@adacore.com>
7746 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
7749 2005-03-17 Robert Dewar <dewar@adacore.com>
7751 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
7752 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
7753 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
7755 * casing.adb: Comment improvements
7757 2005-03-17 Pascal Obry <obry@adacore.com>
7759 * g-expect.adb: Minor reformatting.
7761 2005-03-15 Zack Weinberg <zack@codesourcery.com>
7763 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
7764 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
7767 2005-03-15 Vincent Celier <celier@adacore.com>
7769 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
7770 Add new parameter In_Tree to specify the project tree: needed
7771 by the project manager. Adapt to changes in project manager
7772 using new parameter In_Tree.
7774 2005-03-15 Jakub Jelinek <jakub@redhat.com>
7776 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
7777 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
7778 ada/bldtools to avoid make -jN failures.
7780 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
7782 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
7783 to NULL_TREE on entry.
7785 2005-03-15 Robert Dewar <dewar@adacore.com>
7787 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
7788 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
7789 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
7790 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
7791 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
7792 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
7793 system-interix.ads, system-solaris-sparc.ads,
7794 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
7795 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
7796 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7797 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
7798 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
7799 Compiler_System_Version to be False.
7801 * opt.ads: Add new flag Opt.Address_Is_Private
7803 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
7804 Add new parameter Compiler_System_Version to avoid checking for
7805 completeness of parameters when compiler is compiling itself.
7806 Allows old versions of GNAT to be compiled with new compiler.
7808 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
7810 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
7811 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
7813 (Stack_Base_Available): New flag.
7814 (Get_Page_Size): New overloaded functions imported from C.
7815 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
7816 PROT_ON, PROT_OFF): New constants.
7817 (mprotect): New function imported from C.
7818 (pthread_teb_t): New record type.
7820 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
7821 (Create_Task): Account for the Yellow Zone and the guard page.
7823 2005-03-15 Vincent Celier <celier@adacore.com>
7825 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
7826 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
7827 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
7828 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
7829 Library_File_Name_For): Add new parameter In_Tree
7830 to specify the project tree: needed by the project manager.
7831 Adapt to changes in project manager using new parameter In_Tree.
7832 Remove local imports, use functions in System.CRTL.
7834 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
7835 to use the project manager.
7837 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
7838 In_Tree to designate the project tree. Adapt to changes in the project
7839 manager, using In_Tree.
7841 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
7842 Copy_Interface_Sources): Add new parameter In_Tree to specify the
7843 project tree: needed by the project manager.
7844 (Build_Library): Check that Arg'Length >= 6 before checking if it
7845 contains "--RTS=...".
7847 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
7848 Library_File_Name_For): Add new parameter In_Tree to specify the
7849 project tree: needed by the project manager.
7851 * prj.ads, prj.adb: Major modifications to allow several project trees
7852 in memory at the same time.
7853 Change tables to dynamic tables and hash tables to dynamic hash
7854 tables. Move tables and hash tables from Prj.Com (in the visible part)
7855 and Prj.Env (in the private part). Move some constants from the visible
7856 part to the private part. Make other constants deferred.
7857 (Project_Empty): Make it a variable, not a function
7858 (Empty_Project): Add parameter Tree. Returns the data with the default
7859 naming data of the project tree Tree.
7860 (Initialize): After updating Std_Naming_Data, copy its value to the
7861 component Naming of Project Empty.
7862 (Register_Default_Naming_Scheme): Use and update the default naming
7863 component of the project tree, instead of the global variable
7865 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
7866 Tree is not defaulted, return the default naming data of the Tree.
7867 (Initial_Buffer_Size): Constant moved from private part
7868 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
7869 variables initialized in procedure Initialize.
7870 (Add_To_Buffer): Add two in out parameters to replace global variables
7871 Buffer and Buffer_Last.
7872 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
7874 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
7876 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
7877 for the project tree.
7878 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
7879 constant at the beginning of the package spec, so that they cane be used
7880 in subprograms before their full declarations.
7881 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
7882 (Empty_Project): Add parameter of type Project_Node_Ref
7883 (Private_Project_Tree_Data): Add component Default_Naming of type
7885 (Buffer, Buffer_Last): remove global variables
7886 (Add_To_Buffer): Add two in out parameters to replace global variables
7887 Buffer and Buffer_Last.
7888 (Current_Packages_To_Check): Remove global variable
7889 (Empty_Name): Move to private part
7890 (No-Symbols): Make it a constant
7891 (Private_Project_Tree_Data): New type for the private part of the
7893 (Project_Tree_Data): New type for the data of a project tree
7894 (Project_Tree_Ref): New type to designate a project tree
7895 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
7896 for the project tree.
7898 * prj-attr.ads: Add with Table; needed, as package Prj no longer
7899 imports package Table.
7901 * prj-com.adb: Remove empty, no longer needed body
7903 * prj-com.ads: Move most of the content of this package to package Prj.
7905 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
7906 designate the project node tree and Packages_To_Check to replace
7907 global variable Current_Packages_To_Check.
7908 Add new parameters In_Tree and Packages_To_Check to local subprograms,
7909 when needed. Adapt to changes in project manager with project node tree
7912 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
7913 project tree to most subprograms. Move tables and hash tables to
7914 private part of package Prj.
7915 Adapt to changes in project manager using project tree In_Tree.
7917 * prj-makr.adb (Tree): New constant to designate the project node tree
7918 Adapt to change in project manager using project node tree Tree
7920 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
7921 display the Library_Src_Dir and the Library_Dir.
7922 Add new parameter In_Tree to designate the project node tree to most
7923 subprograms. Adapt to changes in the project manager, using project tree
7925 (Check_Naming_Scheme): Do not alter the casing on platforms where
7926 the casing of file names is not significant.
7927 (Check): Add new parameter In_Tree to designate the
7929 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
7930 designate the project tree.
7931 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
7933 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
7934 to replace those that were in the private part of package Prj.
7935 Add new parameter In__Tree to designate the project node tree to most
7936 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
7937 (Post_Parse_Context_Clause): When specifying the project node of a with
7938 clause, indicate that it is a limited with only if there is "limited"
7939 in the with clause, not necessarily when In_Limited is True.
7940 (Parse): Add new parameter In_Tree to designate the project node tree
7942 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
7943 designate the project node tree. Adapt to change in Prj.Tree with
7944 project node tree In_Tree.
7946 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
7947 tree In_Tree in the call to function Empty_Process to give its initial
7948 value to the project data Processed_Data.
7949 Add new parameters In_Tree to designate the project tree and
7950 From_Project_Node_Tree to designate the project node tree to several
7951 subprograms. Adapt to change in project manager with project tree
7952 In_Tree and project node tree From_Project_Node_Tree.
7954 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
7955 to replace those that were in the private part of package Prj.
7956 Add new parameter In_Tree to designate the project node tree to most
7957 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
7959 * prj-tree.ads, prj-tree.adb: Add new parameter of type
7960 Project_Node_Tree_Ref to most subprograms.
7961 Use this new parameter to store project nodes in the designated project
7963 (Project_Node_Tree_Ref): New type to designate a project node tree
7964 (Tree_Private_Part): Change table to dynamic table and hash tables to
7965 dynamic hash tables.
7967 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
7968 the project tree to most subprograms. Adapt to changes in project
7969 manager using project tree In_Tree.
7971 * makegpr.adb (Project_Tree): New constant needed to use project
7974 2005-03-15 Olivier Hainque <hainque@adacore.com>
7976 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
7977 for sigactions with SA_SIGINFO set. Call
7978 __gnat_adjust_context_for_raise before raising, to perform the
7979 potentially required adjustments to the machine context for the GCC
7982 * raise.h (__gnat_adjust_context_for_raise): New prototype.
7984 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
7985 Adjust PC by one in the provided machine context.
7986 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
7987 so that the handler is passed the context structure to adjust prior to
7989 (__gnat_error_handler) HPUX: Adjust the signature to match what an
7990 SA_SIGINFO sigaction should look like. Call
7991 __gnat_adjust_context_for_raise before actually raising.
7992 (__gnat_adjust_context_for_raise): Default noop to help PC
7993 adjustments before raise from signal handlers.
7994 (__gnat_error_handler): Indirectly call a predicate function to
7995 determine if a condition should be resignaled or not.
7996 (__gnat_set_resignal_predicate): User interface to modify the predicate.
7997 (__gnat_default_resignal_p): Default GNAT predicate.
7999 2005-03-15 Doug Rupp <rupp@adacore.com>
8001 * adaint.c: Prefix #include of VMS system header files with vms/
8002 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
8003 Do not define a dummy function "convert_addresses" under Darwin,
8006 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
8009 2005-03-15 Nicolas Setton <setton@adacore.com>
8011 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
8014 2005-03-15 Robert Dewar <dewar@adacore.com>
8016 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
8019 * a-retide.ads: Minor comment changes
8021 2005-03-15 Robert Dewar <dewar@adacore.com>
8023 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
8024 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
8025 Realloc_For_Chunk to private part of package.
8026 New subprograms for AI-301
8028 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
8030 Avoid unnecessary use of Get/Set_Wide_String
8032 2005-03-15 Robert Dewar <dewar@adacore.com>
8036 * a-stunau.ads, a-stunau.adb:
8037 Change interface to allow efficient (and correct) implementation
8038 The previous changes to allow extra space in unbounded strings had
8039 left this interface a bit broken.
8041 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
8043 * g-spipat.ads, g-spipat.adb: New interface for Get_String
8044 Minor reformatting (function specs)
8046 * g-spitbo.adb: New interface for Get_String
8048 * g-spitbo.ads: Minor reformatting
8050 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
8052 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
8054 2005-03-15 Javier Miranda <miranda@adacore.com>
8055 Robert Dewar <dewar@adacore.com>
8056 Thomas Quinot <quinot@adacore.com>
8057 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8059 * atree.ads, atree.adb: Add support for Elist24 field
8061 * atree.h: Fix wrong definition of Field27
8062 Add support for Elist16 field
8063 Add support for Elist24 field
8065 * einfo.ads, einfo.adb (Abstract_Interfaces,
8066 Set_Abstract_Interfaces): New subprograms.
8067 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
8069 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
8070 entities rather than a single node.
8071 (Is_Interface, Set_Is_Interface): New subprogram
8072 (First_Tag_Component): New syntesized attribute
8073 (Next_Tag_Component): New synthesized attribute
8074 (Write_Entity_Flags): Upgraded to write Is_Interface
8075 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
8076 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
8077 (Task_Body_Procedure): New subprogram to read this attribute.
8078 (Set_Task_Body_Procedure): New subprogram to set this attribute.
8079 (Has_Controlled_Component): Now applies to all entities.
8080 This is only a documentation change, since it always worked to apply
8081 this to other than composite types (yielding false), but now this is
8083 Update documentation on Must_Be_Byte_Aligned for new spec
8085 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
8086 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
8087 uses of the Access_Disp_Table attribute to reference the first dispatch
8088 table associated with a tagged type. As
8089 part of the implementation of abstract interface types,
8090 Access_Disp_Table has been redefined to contain a list of dispatch
8091 tables (rather than a single dispatch table).
8092 Similarly, upgrade all the references to Tag_Component by the
8093 new attribute First_Tag_Component.
8094 (Find_Inherited_TSS): Moved to exp_tss.
8095 Clean up test in Expand_N_Object_Declaration for cases
8096 where we need to do a separate assignment of the initial value.
8097 (Expand_N_Object_Declaration): If the expression in the
8098 declaration of a tagged type is an aggregate, no need to generate an
8099 additional tag assignment.
8100 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
8102 Bit packed array ops are only called if operands are known to be
8104 (Component_Equality): When returning an N_Raise_Program_Error statement,
8105 ensure that its Etype is set to Empty to avoid confusing GIGI (which
8106 expects that only expressions have a bona fide type).
8107 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
8108 determine the amount of data to be copied.
8110 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
8111 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
8112 INTERFACE_TYPE_DEFINITION ::=
8113 [limited | task | protected | synchronized] interface
8114 [AND interface_list]
8116 * par-ch3.adb (P_Type_Declaration): Modified to give support to
8118 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
8120 (P_Interface_Type_Definition): New subprogram that parses the new
8121 syntax rule of Ada 2005 interfaces
8122 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
8123 messages by the correct RENAMES (quotes removed).
8125 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
8126 attribute First_Tag_Component.
8128 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
8129 (Interface_List, Set_Interface_List): New subprograms.
8130 (Interface_Present, Set_Interface_Present): New subprograms.
8131 (Limited_Present, Set_Limited_Present): Available also in derived
8132 type definition nodes.
8133 (Protected_Present, Set_Protected_Present): Available also in
8134 record type definition and
8135 derived type definition nodes.
8136 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
8137 (Task_Present, Set_Task_Present): New subprogram.
8138 (Task_Body_Procedure): Removed.
8139 (Set_Task_Body_Procedure): Removed.
8140 These subprogram have been removed because the attribute
8141 Task_Body_Procedure has been moved to the corresponding task type
8142 or task subtype entity to leave a field free to store the list
8143 of interfaces implemented by a task (for AI-345)
8144 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
8145 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
8146 expression flag Do_Range_Check
8147 (Exception_Junk): Change to Flag7 to accomodate above change
8148 (Box_Present, Default_Name, Specification, Set_Box_Present,
8149 Set_Default_Name, Set_Specification): Expand the expression
8150 "X in N_Formal_Subprogram_Declaration" into the corresponding
8151 two comparisons. Required to use the csinfo tool.
8153 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
8154 "with string" given.
8156 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
8159 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
8162 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
8163 attribute Task_Body_Procedure rather than the old semantic field that
8164 was available in the task_type_declaration node.
8166 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
8167 interface type definitions.
8168 (P_Formal_Derived_Type_Definition): Modified to handle the list of
8171 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
8172 task type declaration.
8173 (P_Protected): Modified to handle the list of interfaces in a
8174 protected type declaration.
8176 2005-03-15 Doug Rupp <rupp@adacore.com>
8177 Vincent Celier <celier@adacore.com>
8179 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
8180 (Gen_Output_File_C): Likewise.
8181 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
8183 2005-03-15 Thomas Quinot <quinot@adacore.com>
8185 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
8186 is an N_Raise_Constraint_Error node, create a new copy of it without
8187 going through a call to Duplicate_Subexpr.
8189 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
8190 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8191 Nicolas Setton <setton@adacore.com>
8192 Ed Schonberg <schonberg@adacore.com>
8199 * decl.c (gnat_to_gnu_field): Reject aliased components with a
8200 representation clause that prescribes a size not equal to the rounded
8201 size of their types.
8202 (gnat_to_gnu_entity, case E_Component): Always look at
8203 Original_Record_Component if Present and not the entity.
8204 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
8205 of tagged extension types by not making field for components that are
8207 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
8208 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
8209 expression to the type of the object when the object is constant.
8210 Reverse defer_debug_incomplete_list before traversing it, so that trees
8211 are processed in the order at which they were added to the list. This
8212 order is important when using the stabs debug format.
8213 If we are deferring the output of debug information, also defer this
8214 output for a function return type.
8215 When adding fields to a record, prevent emitting debug information
8216 for incomplete records, emit the information only when the record is
8218 (components_to_record): New parameter defer_debug.
8219 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
8220 (gnat_to_gnu_field_decl): New function.
8221 (substitution_list, annotate_rep): Call it.
8222 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
8223 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
8224 No longer update discriminants to not be a COMPONENT_REF.
8225 (copy_alias_set): Strip padding from input type; also handle
8226 unconstrained arrays properly.
8228 * gigi.h (write_record_type_debug_info): New function.
8229 Convert to use ANSI-style prototypes. Remove unused
8230 declarations for emit_stack_check, elab_all_gnat and
8231 set_second_error_entity.
8232 (gnat_to_gnu_field_decl): New decl.
8234 * utils.c (write_record_type_debug_info): New function.
8235 (finish_record_type): Delegate generation of debug information to
8236 write_record_type_debug_info.
8237 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
8238 (update_pointer_to): Fix pasto.
8239 (convert) <UNION_TYPE>: Accept slight type variations when
8240 converting to an unchecked union type.
8242 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
8243 replace the N_Freeze_Entity with a null statement.
8245 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
8246 within a constrained subcomponent of an enclosing record, place the
8247 freeze nodes in the scope stack entry for the enclosing record.
8248 (Undelay_Type): New Subprogram.
8249 (Set_Small_Size): Pass T, the type to modify; all callers changed.
8250 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
8251 within records; allow them to have freeze nodes if their base types
8254 * exp_util.adb (Remove_Side_Effects): Properly test for
8255 Expansion_Delayed and handle case when it's inside an
8256 N_Qualified_Expression.
8258 * sem_ch3.adb (Derived_Type_Declaration): New predicate
8259 Comes_From_Generic, to recognize accurately that the parent type in a
8260 derived type declaration can be traced back to a formal type, because
8261 it is one or is derived from one, or because its completion is derived
8263 (Constrain_Component_Type): If component comes from source and has no
8264 explicit constraint, no need to constrain in in a subtype of the
8266 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
8267 Minor change to propagate Is_Ada_2005 flag
8269 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
8270 Expansion_Delayed is False.
8271 (assoc_to_constructor): Ignore fields that have a
8272 Corresponding_Discriminant.
8273 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
8274 function returns "by target", dereference the target pointer using the
8275 type of the actual return value.
8276 <all>: Be prepared for a null gnu_result.
8277 (processed_inline_subprograms): Check flag_really_no_inline
8278 instead of flag_no_inline.
8279 (set_second_error_entity): Remove unused function.
8280 (gnat_to_gnu, case N_Selected_Component): Call
8281 gnat_to_gnu_field_decl.
8282 (assoc_to_constructor): Likewise.
8284 2005-03-15 Robert Dewar <dewar@adacore.com>
8285 Ed Schonberg <schonberg@adacore.com>
8286 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8288 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
8289 Must_Be_Byte_Aligned for cases where we do not need to use a
8290 System.Pack_nn unit.
8292 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
8294 Needed now that we do some processing for IN parameters as well. This
8295 may well fix some unrelated errors.
8296 (Expand_Call): Handle case of unaligned objects (in particular those
8297 that come from packed arrays).
8298 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
8299 renamed entity is an inherited operation, re-expand the call using the
8300 original operation, which is the one to call.
8301 Detect attempt to inline parameterless recursive subprogram.
8302 (Represented_As_Scalar): Fix to work properly with private types
8303 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
8304 accurate estimate. Yields True in far fewer cases than before,
8305 improving the quality of code that depends on this test.
8307 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
8308 over both visible and private declarations to remove them from tree,
8309 and mark subprograms declared in package as eliminated, to prevent
8310 spurious use in subsequent compilation of generic units in the context.
8312 * exp_util.ads: Minor cleanup in variable names
8314 * sem_eval.ads, sem_eval.adb: Minor reformatting
8315 (Compile_Time_Known_Bounds): New function
8317 2005-03-15 Ed Schonberg <schonberg@adacore.com>
8319 * exp_ch7.adb (Convert_View): Use base types of underlying types when
8320 determining whether an unchecked conversion is needed for the argument
8321 of an initialization call.
8323 2005-03-15 Ed Schonberg <schonberg@adacore.com>
8325 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
8326 that appears in the instantiation rather than the internal subtype
8327 generated in the wrapper package, to avoid anomalies in gigi when the
8328 target is derived from a private type whose full view is an access type.
8330 2005-03-15 Robert Dewar <dewar@adacore.com>
8332 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
8334 Add documentation to replace the use of this flag
8335 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
8338 2005-03-15 Thomas Quinot <quinot@adacore.com>
8340 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
8341 here from exp_attr so it can be shared between exp_attr and exp_dist.
8342 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
8343 all TSS names, not a subset thereof, and the previous name introduced
8344 an unnecessarily confusion that a distinction might exist between
8345 "OK" TSS names and some "not OK" TSS names.
8347 2005-03-15 Doug Rupp <rupp@adacore.com>
8349 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
8352 2005-03-15 Pascal Obry <obry@adacore.com>
8353 Eric Botcazou <ebotcazou@adacore.com>
8358 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
8359 when IN_RTS. This is to work around a bootstrap path problem.
8361 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
8362 table and pass it to __gnat_install_SEH_handler().
8363 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
8365 * lang.opt: Fix specification of -fRTS=.
8367 2005-03-15 Doug Rupp <rupp@adacore.com>
8368 Bernard Banner <banner@adacore.com>
8369 Vincent Celier <celier@adacore.com>
8370 Arnaud Charlet <charlet@adacore.com>
8373 This change works fine when gnatlib is built from the gcc directory,
8374 but does not work when using the libada Makefile, since GCC_FOR_TARGET
8375 is not passed to ada/Makefile.in, so more work is needed by a
8376 Makefile/configure expert.
8378 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
8379 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
8380 Setup gnatlink switch -M for x86_64 linux, as it is already setup
8382 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
8383 Run ranlib on libgccprefix.a
8384 Define PREFIX_OBJS for Darwin, to build libgccprefix.
8385 (ADA_INCLUDE_SRCS): Split Ada packages.
8387 2005-03-15 Robert Dewar <dewar@adacore.com>
8389 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
8391 * impunit.adb: Add GNAT.UTF_32
8393 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
8395 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
8396 now uses GNAT.UTF_32).
8398 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
8399 capabilities for categorizing characters using Unicode categories
8401 2005-03-15 Ed Schonberg <schonberg@adacore.com>
8403 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
8404 instantiation that has been rewritten as a package body, retrieve spec
8405 to generate proper name for implicit_with_clause.
8406 (Install_Parents): Recognize a parent that is an instantiation but has
8407 been rewritten as a package declaration during analysis.
8409 2005-03-15 Javier Miranda <miranda@adacore.com>
8410 Ed Schonberg <schonberg@adacore.com>
8412 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
8413 parameter reported some error we immediately return. This improves the
8414 behaviour of the frontend in case of errors.
8415 (Install_Parent, Remove_Parent): Introduce new flag
8416 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
8417 ancestor of a generic child unit, when the child is being instantiated.
8418 (Inline_Instance_Body): If we are compiling the private
8419 part or the body of a child unit, restore the proper visibility of the
8420 parents after compiling the instance body.
8422 2005-03-15 Ed Schonberg <schonberg@adacore.com>
8423 Javier Miranda <miranda@adacore.com>
8426 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
8427 of a private type, in which case it is underlying_type that denotes
8428 the proper task. Also modified to use the new entity attribute
8429 that is directly available in the task type and task subtype entities
8430 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
8431 arrays when other dimensions than the first are constrained by
8432 discriminants of an enclosing record.
8433 (Insert_Explicit_Dereference): If the prefix is an indexed component or
8434 a combination of indexed and selected components, find ultimate entity
8435 and generate the appropriate reference for it, to suppress spurious
8437 (Note_Possible_Modification): If an entity name has no entity, return.
8438 (Is_Variable): A function call never denotes a variable.
8439 (Requires_Transient_Scope): For record types, recurse only on
8440 components, not on internal subtypes that may have been generated for
8441 constrained components.
8443 2005-03-15 Ed Schonberg <schonberg@adacore.com>
8445 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
8446 Eliminated as candidates for resolution. Both efficient, and avoids
8447 anomalies with operators declared in deleted code.
8448 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
8449 expansion is disabled (as when compiling a generic) to prevent spurious
8450 warnings on prefixes of selected components.
8452 2005-03-15 Ed Schonberg <schonberg@adacore.com>
8454 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
8455 attached to a list before checking whether it appears in the private
8456 declarations of the current package.
8457 (Make_Inequality_Operator): Insert declaration in proper declarative
8458 list rather than just setting the Parent field, so that
8459 Is_Private_Declaration can handle it properly.
8461 2005-03-15 Ed Schonberg <schonberg@adacore.com>
8463 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
8464 a renaming a body, check that the renamed subprogram in not intrinsic.
8465 (Find_Direct_Name): If several use_visible entities hide
8466 each other, and the context is a predefined file compiled through
8467 rtsfind, keep only the entity that comes from a predefined file.
8469 2005-03-15 Geert Bosch <bosch@adacore.com>
8471 * s-fatgen.adb (Valid): Extend special exceptions to account for long
8472 long float padding to also cover AMD64 and IA64.
8474 2005-03-15 Gary Dismukes <dismukes@adacore.com>
8476 * s-imgwch.adb: Add with and use of Interfaces.
8477 (Img_Wide_Character): Change type of Val to Unsigned_16.
8478 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
8480 2005-03-15 Matthew Gingell <gingell@adacore.com>
8482 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
8484 2005-03-15 Robert Dewar <dewar@adacore.com>
8486 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
8488 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
8490 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
8492 2005-03-15 Robert Dewar <dewar@adacore.com>
8494 * s-bitops.adb, s-bitops.ads,
8495 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
8496 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
8497 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
8498 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
8499 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
8500 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
8501 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
8502 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
8505 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
8507 * utils2.c (build_binary_op): Fix typo.
8509 2005-03-15 Doug Rupp <rupp@adacore.com>
8511 * s-crtl.ads (popen,pclose): New imports.
8513 2005-03-15 Cyrille Comar <comar@adacore.com>
8515 * comperr.adb (Compiler_Abort): remove references to obsolete
8516 procedures in the bug boxes for various GNAT builds.
8518 2005-03-15 Vincent Celier <celier@adacore.com>
8520 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
8522 2005-03-15 Geert Bosch <bosch@adacore.com>
8523 Arnaud Charlet <charlet@adacore.com>
8524 Robert Dewar <dewar@adacore.com>
8525 Cyrille Comar <comar@adacore.com>
8526 Sergey Rybin <rybin@adacore.com>
8528 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
8529 too specific and long-winded to be appropriate for the GNAT User's
8531 Warn about use of GCC switches not documented in the GNAT User's Guide,
8532 as these may cause generated code to not conform to Ada semantics.
8533 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
8534 Add documentation for -gnat95 and -gnat05 switches
8535 Remove paragraph documenting obsolete way to refer to third party
8537 Add a few references to Ada_05 that were missing.
8538 Update documentation on -gnatZ/-gnatL.
8539 Document limitation when using -m64 under Solaris.
8540 Change the "Name Casing" subsection of the pretty-printer section
8541 according to the changes in the dictionary processing.
8543 * gnat_rm.texi: Document the Ada_05 pragma.
8544 Section on record representation clauses describes the new more
8545 relaxed rules about placement of large packed bit array components.
8546 Add documentation of GNAT.UTF_32
8548 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
8550 * misc.c (gnat_post_options): Turn off structural
8553 2005-03-08 Laurent Guerby <laurent@guerby.net>
8555 * system-linux-sparc.ads: Fix typo in previous commit.
8557 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
8558 Laurent Guerby <laurent@guerby.net>
8561 * system-linux-sparc.ads: New.
8562 * Makefile.in: Add sparc linux entry.
8564 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
8566 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
8567 parameters as unused.
8569 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
8570 Partial merge from libada-gnattools-branch:
8572 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
8573 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
8574 into code in gnattools/Makefile.in. Remove direct dependencies on
8575 stamp-tools by tools clauses.
8576 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
8577 * config-lang.in: Add gnattools to $lang_dirs.
8579 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
8582 * utils.c (gnat_type_for_mode): Return null instead of ICE because
8583 we asked for an unknown mode.
8585 2005-02-12 Richard Henderson <rth@redhat.com>
8587 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
8588 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
8590 2005-02-10 Andreas Jaeger <aj@suse.de>
8592 * init.c (__gnat_initialize): Mark parameter as unused.
8594 2005-02-09 Doug Rupp <rupp@adacore.com>
8596 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
8597 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
8599 2005-02-09 Doug Rupp <rupp@adacore.com>
8601 * gnatchop.adb (dup, dup2),
8602 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
8604 * gnatlbr.adb (mkdir),
8605 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
8607 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
8609 2005-02-09 Doug Rupp <rupp@adacore.com>
8611 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
8613 2005-02-09 Robert Dewar <dewar@adacore.com>
8614 Thomas Quinot <quinot@adacore.com>
8615 Javier Miranda <miranda@adacore.com>
8616 Pascal Obry <obry@adacore.com>
8617 Ed Schonberg <schonberg@adacore.com>
8618 Doug Rupp <rupp@adacore.com>
8619 Gary Dismukes <dismukes@adacore.com>
8620 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8622 * g-zstspl.ads: New file.
8624 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
8626 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
8628 Add definition of Wide_Wide_Space for AI-285
8630 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
8631 interface (to support Ada 95 and Ada 2005 units).
8632 Add Unbounded_IO files
8633 Add entries for Wide_Wide packages for AI-285
8634 Add list of containers packages to Ada 2005 unit list
8636 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
8637 support new Unbounded_IO package cleanly.
8639 * g-utf_32.ads, g-utf_32.adb: New files.
8641 * Makefile.rtl: Add entry for g-utf_32
8642 Add new files for Unbounded_IO
8643 Adjust make file for new AI-285 wide wide packages
8644 Add AI-302 containers to the run time.
8646 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
8647 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
8648 subprograms for AI-301.
8650 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
8652 * a-stunau.ads: Minor comment correction
8654 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
8656 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
8657 (Check_RPC): Update to match changes in expanded code.
8658 Clean up unused entity.
8660 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
8661 was not taken into account.
8662 This includes proper initialization with Normalize_Scalars.
8663 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
8664 normalize scalars cases (particularly the latter) to do a better job
8665 of finding invalid representations.
8667 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
8669 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
8672 * exp_dist.adb: Add support for wide wide character type
8673 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
8674 private part, generate stub bodies at the end of the private part,
8675 not the visible part.
8676 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
8678 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
8679 generic wrapper to execute final processing after completing the
8680 expansion of the RPC receiver for an RACW.
8682 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
8683 packages and attributes.
8684 (Preset_Names): Addition of the new reserved words of Ada 2005,
8685 that is interface, overriding and synchronized.
8686 (Get_Pragma_Id): Give support to the use of the new reserved word
8687 "interface" as a pragma name.
8688 (Is_Pragma_Name): Give support to the use of the new reserved word
8689 "interface" as a pragma name.
8690 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
8691 attribute implementation.
8693 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
8694 checks to entities that are output parameters of Asm operations.
8695 Handle the Stream_Size attribute.
8696 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
8698 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
8700 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
8701 for second parameter being 0.0.
8702 Add support for wide wide character type.
8703 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
8705 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
8706 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
8707 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
8708 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
8709 for wide wide character cases.
8711 * cstand.adb: Create entities for Wide_Wide_Character and
8714 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
8715 accordance with AI-258.
8716 Add new declarations for 16/32 bit C character types (Part of AI285)
8718 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
8719 (Obsolescent_Warning): New field
8720 (Rep_Clause): New local subprogram used to share code. Returns the rep
8721 clause for which the name is given in parameter.
8722 (Has_Stream_Size_Clause): New routine.
8723 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
8724 (Address_Clause): Implementation is now using Rep_Clause.
8725 (Alignment_Clause): Idem.
8726 (Size_Clause): Idem.
8728 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
8729 entity in non-Ada 2005 mode and generate warning.
8731 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
8732 (Prag): Code cleanup. Remove old gnat pragma "overriding"
8734 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
8735 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
8736 on the named unit if the pragma is not in the current compilation unit,
8737 so that elaboration calls in the current unit can set up an elaboration
8738 dependency on the named unit, as needed.
8739 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
8740 subprogram as well as for subprograms declared within a package.
8741 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
8744 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
8745 to z) to avoid some instances of duplication for Wide_Wide packages.
8747 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
8750 * scn.adb: Char_Literal_Value field is now a Uint
8752 * scng.adb: Significant rewrite to handle new Ada 2005 features
8753 allowing wide and wide wide characters in program text, e.g. for
8754 identifiers, as described in AI-285.
8755 (Set_Reserved): New procedure, makes setting up keywords cleaner.
8756 (Initialize_Scanner): Register the new reserved words of Ada 2005.
8757 (Scan): Give support to the new reserved words.
8759 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
8760 warning notifying that interface, overriding, and synchronized are
8762 (P_Pragma): Allow the use of the new reserved word "interface" as
8765 * gnatls.adb, gnatbind.adb,
8766 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
8767 identifiers named "interface" to "SAL_Interface".
8769 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
8770 (Structured Exception handling).
8774 (Gen_Main_Ada): Set the default exit code if specified.
8775 (Gen_Main_C): Likewise.
8777 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
8778 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
8780 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
8783 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
8784 has a collision with the new Ada 2005 "interface" reserved word.
8786 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
8787 generate a warning notifying that interface, overriding, and
8788 synchronized are new reserved words.
8790 * scans.ads (Token_Type): Addition of the tokens corresponding to the
8791 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
8792 and Tok_Synchronized.
8794 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
8795 "dispatching" rather than "primitive" operations, since dispatching
8796 calls are now allowed to abstract formal subprograms (which are not
8798 Char_Literal_Value field is now a Uint
8799 (Resolve_Slice): If the prefix is an access to an unconstrained array,
8800 compute the actual subtype of the designated object to impose the proper
8802 (Resolve_Selected_Component): Do not insert an access check if the
8803 prefix is an access type: such a node is expanded into an explicit
8804 dereference, on which the access check is performed anyway. Removes
8805 expensive duplicate checks.
8806 (Resolve_Call): Use new flag Is_Obsolescent and field
8807 Obsolescent_Warning so that pragma Obsolescent works on library
8809 Add support for wide wide character type
8810 (Resolve_Allocator): Replace the error message on wrong null-exclusion
8811 value by a warning message.
8812 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
8813 as fixed-point, and one of the operands is non-static and universal, it
8814 can only be an illegal exponentiation operation, in which case there is
8815 no real value to retrieve.
8817 * exp_strm.adb: Add support for wide wide character type
8818 (Build_Elementary_Input_Call): Compute the size of the stream element by
8819 querying the rep chain to find the Stream_Attribute attribute value.
8820 (Build_Elementary_Write_Call): Ditto.
8822 * sem_aggr.adb: Char_Literal_Value field is now a Uint
8823 Add support for wide wide character type
8824 Replace the error messages on wrong null-exclusion value by warnings
8825 as described in Ada 2005.
8826 (Resolve_Extension_Aggregate): Document the fact that the error
8827 message on class-wide expressions in extensions aggregates.
8829 * sem_case.adb: Add support for wide wide character type
8831 * sem_ch13.adb: Add support for wide wide character type
8832 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
8834 * sem_ch3.adb: Add support for wide wide character type
8835 (Process_Subtype): If constraint is illegal for the type, set Ekind of
8836 now-useless Itype, to prevent cascaded errors on a compiler built
8839 * sem_ch8.adb: Add with and use of Sem_Disp.
8840 (Analyze_Subprogram_Renaming): Replace unclean uses of
8841 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
8842 of Corresponding_Spec to Empty).
8843 (Attribute_Renaming): Replace use of Corresponding_Spec with
8844 Corresponding_ Formal_Spec and simplify condition.
8845 (Use_One_Package): Check that scope of homonym of identifier is defined,
8846 before checking whether it is a wrapper package.
8847 Add support for wide wide character type
8849 * sem_eval.adb: Add support for wide wide character type.
8850 (Eval_Arithmetic_Op): Check for compile time known signed integer
8851 overflow in the non-static case.
8852 (Subtypes_Statically_Match): A formal scalar type and its base type do
8853 not statically match.
8855 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
8856 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
8858 (Unit_Declaration_Node): Ditto.
8859 (Is_Variable_Prefix): For the case of an indexed component whose prefix
8860 has a packed array type, the prefix has been rewritten into a type
8861 conversion. Determine variable-ness from the converted expression.
8862 Handle wide wide character cases.
8864 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
8866 * stringt.ads, stringt.adb: Handle full UTF-32 range.
8867 Remove ["0A"] from comment, since it can look like a line terminator.
8868 Currently we don't permit this, but this is under discussion by the
8869 ARG, and it is easy enough to use a different example.
8871 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
8872 handling UTF-32 encoding for wide wide character.
8873 Implement new brackets coding ["hhhhhhhh"]
8874 Add UTF-8 encodings for full UTF-32 range
8876 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
8878 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
8879 bit range Add full UTF-32 support.
8880 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
8881 notify that constraint error will be raised at run-time
8882 because a null value is assigned to a null-excluding object.
8883 Remove some obsolete declarations and make Char_Code
8886 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
8887 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
8890 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
8891 wrong null-exclusion value by a warning message.
8892 (Enable_Range_Check): Do range check if the prefix is an
8893 explicit dereference whose designated object is an unconstrained array.
8894 Current algorithm for removing duplicate checks is over-eager in this
8897 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
8898 null-exclusion value by a warning message
8900 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
8901 completely. Add support for Uint2 field
8903 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
8904 exp_prag.adb: Char_Literal_Value field is now a Uint.
8906 * exp_util.adb (Insert_Actions): Replace
8907 N_Formal_Subprogram_Declaration by
8908 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
8909 Char_Literal_Value field is now a Uint.
8911 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
8912 defined for subprogram renaming declarations. When set, the field
8913 indicates the defining entity of a corresponding formal subprogram
8914 when the renaming corresponds to a formal subprogram association in an
8916 (Set_Corresponding_Formal_Spec): New procedure to return
8917 Corresponding_Formal_Spec field.
8918 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
8919 (which is now a subtype).
8920 Char_Literal_Value field is now a Uint
8922 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
8923 pointer to the base of the dispatch table.
8924 Minor changes to comments.
8925 (Controlling_Type): New function for determining the tagged type
8926 associated with a tagged primitive subprogram.
8927 (Expand_Dispatching_Call): Add support for a controlling actual that is
8928 directly a value of type Ada.Tag rather than a tagged object.
8930 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
8931 describing the new layout.
8932 (Dispatch_Table): The expander computes the actual array size, allocates
8933 the Dispatch_Table record accordingly, and generates code that displaces
8934 the base of the record after the Typeinfo_Ptr component. The access to
8935 these components is done by means of local functions.
8936 (Offset_To_Top): New function.
8937 (Typeinfo_Ptr): New function.
8938 (Get_TSD): Modified to access the new position of the TSD.
8939 (Set_TSD): Modified to save the TSD in its new position.
8941 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
8942 case of formal abstract subprograms. Add check and message for -gnat05.
8945 * sem_ch12.adb: Add with and use for Sem_Disp.
8946 (Analyze_Associations): Minor change from "=" to "in" for use of
8947 N_Formal_Subtype_Declaration (which is now a subtype).
8948 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
8949 N_Formal_Subtype_Declaration (which is now a subtype).
8950 (Analyze_Formal_Subprogram): Add handling for
8951 N_Formal_Abstract_Subprogram, marking the formal as abstract and
8952 dispatching, setting the controlling status of the formal parameters
8953 and result, and issuing an error if there is no controlling type for
8954 the formal subprogram.
8955 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
8956 which is an unclean use of that field, we set the new field
8957 Corresponding_Formal_Spec to make the formal subprogram available to
8958 processing in Analyze_Subprogram_Declaration.
8959 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
8960 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
8961 Constrained, so that it is is does not statically match its anonymous
8964 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
8965 abstract formal subprograms in error check for functions returning
8966 abstract types. Set scope of new designator for
8967 a parameterless subprogram, so that it is available when checking the
8968 body for nested subprograms, before full analysis of said body.
8969 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
8970 subprogram only if inner one comes from source.
8971 (Analyze_Function_Call): If the call is given in object notation, the
8972 analysis of the name rewrites the node and analyzes it with the proper
8973 argument list. After analyzing the name, if the call has been rewritten
8974 and the result type is set, no further analysis is needed.
8975 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
8976 mark in function specification, in a context where the formals are
8977 visible and hide outer homographs.
8979 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
8980 as the tagged type for the cases of abstract formal subprograms and
8981 renamings of those. Clean up spec comments.
8982 (Check_Dispatching_Context): Add error message to indicate "abstract
8983 procedure", covering the case of a call to a formal abstract procedure
8984 that has statically tagged operands.
8985 (Check_Dispatching_Call): Check for the case of an actual given by
8986 a tag-indeterminate function call whose type is an ancestor of the
8987 containing call's associated tagged type. This situation can occur
8988 for inherited primitives with function defaults. In this case we
8989 use the tagged type's tag directly as the controlling argument for
8991 (Expand_Call): Name change on call to Expand_Dispatch_Call.
8993 * sprint.adb (Sprint_Node_Actual): Split
8994 N_Formal_Subprogram_Declaration into two alternatives for the new
8995 cases N_Formal_Abstract_Subprogram_Declaration and
8996 N_Formal_Concrete_Subprogram_Declaration.
8997 Char_Literal_Value field is now a Uint.
8999 * trans.c: Get rid of junk Uint2 reference.
9000 Char_Literal_Value field is now a Uint.
9001 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
9002 (gigi): Correct third arg to gimplify_body.
9004 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
9005 (TYPE_LANG_FLAG_0): Check for record or union.
9007 * treepr.adb: Char_Literal_Value field is now a Uint
9009 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
9012 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
9013 Add full UTF-32 support
9014 Char_Code is now 32 bits
9016 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
9017 wide character UTF_32 line terminators.
9018 Initialize Main_Source_File to avoid error when no main
9021 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
9022 (Main_Source_File) when no main source has been loaded, to avoid
9025 2005-02-09 Robert Dewar <dewar@adacore.com>
9027 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
9028 Fix name of Set routine
9030 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
9033 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
9034 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
9037 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
9038 forms of Get_Line subprograms for AI-301.
9040 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
9041 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
9042 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
9043 a-stwima.ads: Minor reformatting.
9045 2005-02-09 Doug Rupp <rupp@adacore.com>
9046 Thomas Quinot <quinot@adacore.com>
9048 * adaint.c, adaint.h
9049 [VMS] (to_ptr32): New function.
9050 (MAYBE_TO_PTR32): New macro.
9051 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
9053 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
9054 [VMS] (#define fork()): Remove since unneccessary.
9055 (__gnat_set_close_on_exec): New routine to support
9056 GNAT.OS_Lib.Set_Close_On_Exec.
9058 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
9059 the parent side as close-on-exec so that they are not inherited by the
9062 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
9063 set or clear the FD_CLOEXEC flag on a file descriptor.
9065 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
9066 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9068 Fix for c330001 - PR ada/19386
9071 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
9072 on the field if Pragma Component_Alignment (Storage_Unit).
9073 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
9074 side-effects as if it were a constant; also make SAVE_EXPR to protect
9076 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
9078 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
9079 (components_to_record): Test it.
9080 Fix improper usage of REFERENCE_CLASS_P.
9082 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
9085 * utils2.c: Minor reformatting.
9087 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
9088 handle other cases like RECORD_TYPE.
9090 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
9092 2005-02-09 Ed Schonberg <schonberg@adacore.com>
9094 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
9095 component of an array of arrays in an assignment context, and the
9096 aggregate has component associations that require sliding on
9097 assignment, force reanalysis of the aggregate to generate a temporary
9098 before the assignment.
9099 (Must_Slide): Make global to the package, for use in Gen_Assign.
9101 2005-02-09 Ed Schonberg <schonberg@adacore.com>
9103 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
9104 unchecked union with no inferable discriminants, return a
9105 Raise_Program_Error node, rather than inserting it at the point the
9107 (Expand_Record_Equality, Component_Equality): Handle properly the case
9108 where some subcomponent is an unchecked union whose generated equality
9109 code raises program error.
9111 2005-02-09 Doug Rupp <rupp@adacore.com>
9113 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
9114 [VMS] (#define exit hack): Remove.
9116 2005-02-09 Pascal Obry <obry@adacore.com>
9117 Arnaud Charlet <charlet@adacore.com>
9119 * init.c (__gnat_initialize): Add a new parameter eh which contains the
9120 address of the exception registration. The Win32 version of this
9121 routine calls __gnat_install_SEH_handler() to initialize the SEH
9122 (Structured Exception Handling) handler.
9123 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
9124 SEH (Structured Exception Handling) now.
9125 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
9126 (__gnat_initialize for ppc-vxworks): Adjust comments and the
9127 preprocessor condition protecting the call to the extra eh setup
9128 subprogram, which is only available for the ppc target.
9129 (__gnat_clear_exception_count): replaced reference to
9130 variable taskIdCurrent by call to taskIdSelf(), cleaner.
9132 * seh_init.c: New file.
9134 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
9135 (GNATBIND_OBJS): Idem.
9137 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
9138 routine takes a new parameter (a pointer to the exception registration
9139 for the SEH (Structured Exception Handling) support.
9141 * raise.h: (__gnat_install_SEH_handler): New prototype.
9142 Update copyright notice.
9144 * s-tassta.adb (Task_Wrapper): Declare the exception registration
9145 record and initialize it by calling __gnat_install_SEH_handler.
9147 2005-02-09 Vincent Celier <celier@adacore.com>
9149 * make.adb (Gnatmake): Do not fail when the main project has no object
9152 2005-02-09 Doug Rupp <rupp@adacore.com>
9154 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
9155 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
9156 [VMS]: Add translations for g-enblsp.adb.
9158 * s-asthan-vms.adb: Removed.
9159 * s-asthan-vms-alpha.adb: Added.
9161 2005-02-09 Pascal Obry <obry@adacore.com>
9163 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
9164 (LIBGNAT_OBJS): Add seh_init.o.
9166 2005-02-09 Arnaud Charlet <charlet@adacore.com>
9170 * Makefile.in: Link all gnat tools with -static-libgcc, since
9171 -shared-libgcc is now used by default on some systems (e.g. linux with
9173 Remove references to Makefile.prolog/generic, no longer used.
9175 2005-02-09 Vincent Celier <celier@adacore.com>
9177 * prj-makr.adb (Process_Directory): Put file name in canonical case
9178 before matching against the patterns.
9179 If gnatname has been invoked as <prefix>-gnatname
9180 then invoke the compiler as <prefix>-gcc, not just "gcc".
9182 2005-02-09 Ed Schonberg <schonberg@adacore.com>
9184 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
9185 with expansion disabled. The actual subtype is needed among other
9186 places when the selected component appears in the context of a loop
9187 bound, and denotes a packed array.
9188 (Operator_Check): Always use the first subtype in the
9189 error message, to avoid the appearance of internal base types.
9190 (Transform_Object_Operation): Copy each actual in full
9191 to the parameter associations of the constructed call, rather than
9192 using the shallow copy mechanism of New_Copy_List. This ensures that
9193 the chaining of named associations is done properly.
9194 (Complete_Object_Operation): Rewrite node, rather than
9195 replacing it, so that we can trace back to the original selected
9198 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
9199 and calls that use object notation, if the called function is not
9200 declared in a withed unit, place the elaboration constraint on the
9201 unit in the context that makes the function accessible.
9202 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
9203 imposes an elaboration constraint between two packages.
9205 2005-02-09 Ed Schonberg <schonberg@adacore.com>
9207 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
9208 views of a private type after handling its private dependents, to
9209 maintain proper stack discipline between entry and exit from the
9212 2005-02-09 Cyrille Comar <comar@adacore.com>
9214 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
9217 2005-02-09 Arnaud Charlet <charlet@adacore.com>
9219 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
9220 fields for foreign threads.
9222 2005-02-09 Doug Rupp <rupp@adacore.com>
9224 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
9225 recursion warnings when compiled with -gnatdm.
9227 2005-02-09 Robert Dewar <dewar@adacore.com>
9229 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
9230 Slight fix to documentation of -gnaty with no parameters
9232 * xr_tabls.ads: Add ??? comment for missing overall comment
9234 * xsinfo.adb: Make default file name be sinfo.h, since this is what
9235 we now use by default.
9237 * xsnames.adb: Adjust end of file test to look for five space followed
9238 by '#' instead of six spaces. The format of xsnames.adb was modified
9241 * a-numeri.ads: Add reference to AI-388 for greek letter pi
9244 * clean.adb: Minor reformatting.
9246 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
9247 gnatname.adb: Minor reformatting
9248 Add 2005 to copyright output when utility is run
9250 * csets.adb: Eliminate obsolete comment
9252 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
9255 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
9257 2005-02-09 Sergey Rybin <rybin@adacore.com>
9259 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
9260 the difference between compact and incompact layout and add the record
9261 representation clause to the example illustrating different layouts.
9262 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
9263 component clauses").
9265 2005-02-09 Florian Villoing <villoing@adacore.com>
9267 * gnat_ugn.texi: Fix typos.
9268 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
9270 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
9271 in the generated documentation.
9273 2005-02-09 Arnaud Charlet <charlet@adacore.com>
9275 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
9277 Update linker wrapper when linking with non GNU C++.
9279 2005-02-09 Pascal Obry <obry@adacore.com>
9282 Document the procedure to debug the DllMain routine on Windows.
9283 Add note about -funwind-tables and mixed Ada and C/C++ programming in
9285 Document new BIND qualifer /RETURN_CODES=VMS.
9287 2005-02-09 Ben Brosgol <brosgol@adacore.com>
9289 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
9290 Edited gnatmetric chapter
9292 2005-02-09 Robert Dewar <dewar@adacore.com>
9295 Changes to document new wide wide character support
9297 Update documentation on Normalize_Scalars and Initialize_Scalars
9299 2005-02-09 Pascal Obry <obry@adacore.com>
9301 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
9303 2005-02-09 Jose Ruiz <ruiz@adacore.com>
9305 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
9306 from the VxWorks kernel) that is needed for getting the active
9307 priority of the different tasks.
9309 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
9310 Use a pragma Elaborate_Body in the spec file instead.
9311 Noticed by code reading.
9313 2005-02-09 Thomas Quinot <quinot@adacore.com>
9315 * exp_util.ads: Minor correction in comment.
9317 2005-02-09 Arnaud Charlet <charlet@adacore.com>
9319 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
9320 since this procedure is now too complex to be worth inlining.
9322 2005-02-09 Richard Henderson <rth@redhat.com>
9324 * utils.c (gnat_define_builtin): Remove.
9325 (gnat_install_builtins): Use build_common_builtin_nodes.
9327 2005-02-09 Arnaud Charlet <charlet@adacore.com>
9329 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
9330 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
9331 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
9332 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
9333 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
9334 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
9335 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
9336 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
9337 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
9338 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
9339 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
9340 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
9341 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
9342 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
9343 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
9344 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
9345 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
9346 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
9347 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
9348 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
9349 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
9350 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
9351 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
9352 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
9353 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
9354 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
9355 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
9356 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
9357 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
9358 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
9359 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
9360 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
9361 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
9362 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
9365 2005-01-27 Laurent GUERBY <laurent@guerby.net>
9367 * Makefile.in: Fix a-intnam.ads from previous commit,
9368 add 2005 to copyright.
9369 * a-intman-rtems.ads: Renamed to...
9370 * a-intnam-rtems.ads:
9372 2005-01-27 Laurent GUERBY <laurent@guerby.net>
9374 * Makefile.in: Rename GNAT RTEMS specific files.
9375 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
9376 5rosinte.ads, 5rparame.adb: Replaced by files below.
9377 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
9378 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
9380 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
9381 Laurent GUERBY <laurent@guerby.net>
9384 * 5rosinte.ads: Add No_Key constant.
9385 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
9386 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
9388 2005-01-26 Laurent GUERBY <laurent@guerby.net>
9391 * i-cobol.adb (Valid_Numeric): Handle zero length case.
9393 2005-01-20 Richard Henderson <rth@redhat.com>
9395 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
9396 a-intnam-linux.ads and system-linux-alpha.ads.
9397 * a-intnam-linux-alpha.ads: Remove file.
9398 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
9399 * system-linux-alpha.ads: New file.
9401 2005-01-18 Jakub Jelinek <jakub@redhat.com>
9404 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
9405 set to the new string.
9407 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
9409 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
9412 2005-01-18 Richard Henderson <rth@redhat.com>
9414 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
9415 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
9417 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
9419 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
9421 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
9422 (GCC_ZCX_Support): Likewise.
9424 2005-01-11 Bastian Blank <waldi@debian.org>
9426 * system-linux-s390.ads: Define Preallocated_Stacks.
9427 * system-linux-s390x.ads: Likewise.
9429 2005-01-04 Arnaud Charlet <charlet@adacore.com>
9431 * gnat_ugn.texi: Fix texi errors with null variables.
9433 2005-01-03 Thomas Quinot <quinot@adacore.com>
9435 * gen-soccon.c: New utility program to generate g-soccon.ads
9438 * socket.c, gsocket.h: Split inclusion of system header files into a
9439 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
9441 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
9442 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
9443 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
9444 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
9445 should not be edited by hand anymore, but should be regenerated using
9448 2005-01-03 Robert Dewar <dewar@adacore.com>
9449 Ed Schonberg <schonberg@adacore.com>
9450 Vincent Celier <celier@adacore.com>
9452 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
9453 on/off, since this is an obsolescent feature, for which we now generate
9456 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
9457 warning mode is set and obsolescent usage of this attribute occurs.
9458 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
9459 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
9460 predates, and partly motivates, the adoption of the AI.
9461 Implement new Ada 2005 attribute Mod
9463 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
9466 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
9468 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
9469 pragma restrictions.
9470 New entry for Ada 2005 attribute Mod.
9473 Add recognition of new pragma Restrictions No_Dependence
9474 Recognize restriction No_Obsolescent_Features at parse time
9476 * bcheck.adb: Add circuitry for checking for consistency of
9477 No_Dependence restrictions.
9479 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
9482 * restrict.ads, restrict.adb: Add subprograms to deal with
9483 No_Dependence restrictions.
9485 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
9488 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
9489 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
9491 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
9492 dummy parameter to scng instantiation.
9493 Needed for new restriction No_Obsolescent_Features
9495 * scn.adb: (Obsolescent_Check): New procedure
9496 Needed for new restriction No_Obsolescent_Features
9498 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
9499 specified by AI-285, needed for implementation of AI-388 (adding greek
9500 pi to Ada.Numerics).
9501 Add new generic formal to scng, needed for new restriction
9502 No_Obsolescent_Features.
9504 * s-rident.ads: Add new restriction No_Obsolescent_Features.
9506 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
9508 (Scan_ALI): When finding an unexpected character on an R line, raise
9509 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
9510 Ignore_Errors is True, default restrictions are set and scanning of the
9511 ALI file continues with the next line. Also, when Bad_R_Line is raised
9512 and Ignore_Errors is True, skip to the end of le line.
9514 * sem_ch10.adb: Check that explicit with's do not violate
9515 No_Dependence restrictions.
9516 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
9517 illegal context clauses containing child units of instance.
9519 * sem_prag.adb: Processing and checking for new No_Dependence
9521 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
9522 analyze and check the External argument.
9524 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
9526 2005-01-03 Robert Dewar <dewar@adacore.com>
9528 * atree.adb: Add a fifth component to entities
9529 This allows us to add 32 flags and four new fields
9531 * atree.ads: Add a fifth component to entities
9532 This allows us to add 32 flags and four new fields
9534 * einfo.ads, einfo.adb: Document new fields and new flags now available
9535 Add routines for printing new fields
9537 * treepr.adb: Call routines to print out additional fields if present
9539 2005-01-03 Arnaud Charlet <charlet@adacore.com>
9541 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
9542 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
9544 * Makefile.in: Add support to build shared Ada libraries on solaris x86
9545 Remove gpr2make, replaced by gprmake.
9546 Remove references to gnatmem and libaddr2line.
9547 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
9548 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
9549 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
9550 a-numaux-darwin.ads and a-numaux-darwin.adb
9551 Enable mlib-tgt-lynxos.adb on lynxos.
9553 * Make-lang.in: Remove rules for gpr2make.
9554 When generating sdefault.adb, do not call Relocate_Path
9555 on S3 for function Target_Name, as it is not a path.
9556 Remove references to gnatmem and libaddr2line.
9558 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
9561 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
9563 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
9564 address is incompatible with its base type alignment constraints when
9565 this can be decided statically.
9567 2005-01-03 Olivier Hainque <hainque@adacore.com>
9569 * decl.c (compatible_signatures_p): New function. The intended purpose
9570 is to check if two function signatures for a call-site and a callee are
9571 compatible enough for the call to be valid. The underlying purpose is
9572 to check if a call to a mapped builtin is using the right interface.
9573 The current code actually does not check antyhing - this a placeholder
9574 for future refinements.
9575 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
9576 builtin calls for convention Intrinsic.
9578 * gigi.h (builtin_decl_for): Declare (new function).
9580 * utils.c (gnat_install_builtins): Install the target specific builtins.
9581 (builtin_decl_for): New function, provide a dummy body for now.
9583 2005-01-03 Geert Bosch <bosch@adacore.com>
9585 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
9586 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
9587 (Pred): Implement in terms of Succ.
9589 * trans.c (convert_with_check): Reimplement conversion of float to
9592 2005-01-03 Ed Schonberg <schonberg@adacore.com>
9593 Vincent Celier <celier@adacore.com>
9595 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
9596 bounds can be negative, and must be declared Int, not Nat.
9598 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
9599 array is checked after using the index in the array.
9601 * makegpr.adb (Add_Switches): Check if there is a package for the
9602 processor. If there is no package, do not look for switches.
9604 2005-01-03 Ed Schonberg <schonberg@adacore.com>
9606 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
9607 generation of predefined stream operations (specs and bodies) should
9608 proceed. Under various restrictions these subprograms must not be
9611 2005-01-03 Thomas Quinot <quinot@adacore.com>
9614 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
9615 amount of PCS-specific code in RACW stubs generation.
9616 (Copy_Specification): Set Etype on copied formal parameter entities, as
9617 this information is needed for PolyORB stubs generation.
9618 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
9619 variable Dynamic_Async.
9620 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
9621 (Build_RPC_Receiver_Specification): Make generic again, as recent
9622 changes have allowed RPC receivers to have the same profile for both
9623 variants of the PCS.
9624 Reorganise RPC receiver generation to reduce differences between the
9625 structure of GARLIC and PolyORB RPC receivers.
9626 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
9628 Simplify elaboration code for RCI packages.
9630 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
9631 generation to reduce differences between the structure of GARLIC and
9632 PolyORB RPC receivers.
9634 * s-stratt.adb: Fix typo in comment.
9636 2005-01-03 Thomas Quinot <quinot@adacore.com>
9638 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
9639 copied from Make_Init_Call).
9641 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
9642 reads and assignments on a temporary variable declared with appropriate
9645 2005-01-03 Robert Dewar <dewar@adacore.com>
9647 * i-c.adb (To_C): Raise CE if string is null and Append_Null
9649 2005-01-03 Robert Dewar <dewar@adacore.com>
9651 * i-cstrin.adb (Update): Do not append a null in form called with a
9652 String. This avoids unintended behavior.
9654 2005-01-03 Arnaud Charlet <charlet@adacore.com>
9657 * init.c: Fix warnings on Free BSD section.
9659 2005-01-03 Arnaud Charlet <charlet@adacore.com>
9662 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
9665 2005-01-03 Vincent Celier <celier@adacore.com>
9667 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
9668 libraries when Unique_Compile is True (-u switch).
9671 2005-01-03 Robert Dewar <dewar@adacore.com>
9673 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
9674 upper case letter or underscore after W, as allowed by spec.
9676 2005-01-03 Arnaud Charlet <charlet@adacore.com>
9678 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
9679 darwin port by using proper type definitions from header files.
9680 Use SIGTERM instead of SIGABRT for SIGADAABORT.
9682 2005-01-03 Robert Dewar <dewar@adacore.com>
9684 * par.adb: Enhance error message handling for configuration file
9687 2005-01-03 Robert Dewar <dewar@adacore.com>
9689 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
9690 removed during the previous update (test properly for case of dividing
9691 largest negative number by -1, which generates overflow).
9693 2005-01-03 Ed Schonberg <schonberg@adacore.com>
9694 Sergey Rybin <rybin@adacore.com>
9696 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
9697 to use as the defining identifier for a formal package.
9698 (Remove_Parent): If the instance takes place within (an instance of)
9699 a sibling, preserve private declarations of common parent.
9701 2005-01-03 Ed Schonberg <schonberg@adacore.com>
9703 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
9704 to determine whether one of the operands is a fixed-point type for
9705 which a user-defined multiplication or division operation might be
9708 * sem_res.adb (Valid_Conversion): The legality rules for conversions
9709 of access types are symmetric in Ada 2005: either designated type can
9712 2005-01-03 Vincent Celier <celier@adacore.com>
9714 * s-fileio.adb (Temp_File_Record): Change length of string component
9715 Name from L_tmpnam + 1 to max_path_len + 1.
9717 2005-01-03 Arnaud Charlet <charlet@adacore.com>
9719 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
9720 Self_Id.Deferral_Level = 0.
9721 (Do_Pending_Action): Move this function to the spec.
9723 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
9724 Do_Pending_Action explicitely when needed, in case we're using
9725 No_Abort restrictions.
9727 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
9728 deferral level since it will not get changed by the generated code.
9729 Keeping a default value of 1 would prevent some operations (e.g.
9730 select or delay) to proceed successfully.
9732 2005-01-03 Ben Brosgol <brosgol@adacore.com>
9733 Robert Dewar <dewar@adacore.com>
9734 Cyrille Comar <comar@adacore.com>
9736 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
9737 porting guide chapter (vms version).
9738 Revised doc title (removed "for native platforms") and subtitle.
9739 Add discussion on warning flag for obsolescent features. First we
9740 note that it applies to obsolete GNAT features, which was previously
9741 omitted. Second we contrast the behavior with that of the new
9742 Ada 2005 AI-368 restriction No_Obsolescent_Features.
9743 Preliminary rewriting of GNAT & libraries chapter in order to take
9744 into account default project locations & new project manager
9747 2005-01-03 Robert Dewar <dewar@adacore.com>
9749 * cstand.adb (Create_Operators): Clean up format and documentation of
9750 unary and binary operator result tables. No change in code, just
9751 reformatting and addition of comments.
9753 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
9754 sem_ch2.adb: Minor reformatting
9756 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
9757 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
9758 comments for Tree_Read and Tree_Write.
9760 2005-01-03 Pascal Obry <obry@adacore.com>
9762 * exp_attr.ads: Minor reformatting.
9764 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
9766 * comperr.adb (Compiler_Abort): Add specialized message for GAP
9769 2005-01-03 Ed Schonberg <schonberg@adacore.com>
9771 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
9772 whether the ancestor type is private, as may be the case with nested
9775 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
9778 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
9780 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
9782 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
9783 * utils2.c (build_unary_op): Likewise.
9785 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9787 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
9789 2004-12-19 Richard Henderson <rth@redhat.com>
9791 * trans.c (gigi): Update gimplify_body call.
9793 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
9795 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
9797 2004-12-07 Ed Falis <falis@adacore.com>
9799 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
9800 current task being suspended.
9802 * init.c (__gnat_clear_exception): added to reset VxWorks exception
9804 (__gnat_map_signal): removed test for current task being suspended.
9806 2004-12-07 Gary Dismukes <dismukes@adacore.com>
9808 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
9809 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
9810 targets (such as AAMP).
9812 2004-12-07 Ed Schonberg <schonberg@adacore.com>
9814 * atree.adb (Visit_Itype): Create a new name for the generated itype,
9815 because the back-end may otherwise treat it as a redefinition of the
9818 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
9820 * back_end.adb (Scan_Back_End_Switches): Accept --param.
9822 * lang-specs.h: Accept --param.
9824 2004-12-07 Vincent Celier <celier@adacore.com>
9826 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
9827 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
9828 Current_Body_Suffix => Ada_Body_Suffix).
9829 Take into account Externally_Built attribute.
9831 * clean.adb (In_Extension_Chain): Always return False when one of the
9832 parameter is No_Project.
9833 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
9834 Ada_Language_Index).
9835 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
9836 Process_Languages for procedure Parse).
9838 * gnatcmd.adb (Carg_Switches): New table.
9839 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
9840 Adapt to name changes in package Prj (Current_Spec_Suffix =>
9841 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
9843 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
9844 Header_Num and function Hash are now declared in package Prj,
9847 * prj.adb (Suffix_Of): New function.
9848 (Set (Suffix)): New procedure.
9849 (Hash): One function moved from Prj.Com
9850 (Is_Present, Language_Processing_Data_Of): New functions
9851 (Set): Two new procedures
9852 (Add_Language_Name, Display_Language_Name): New procedures
9854 * prj.ads: (Suffix_Of): New function
9855 (Set (Suffix)): New procedure
9856 Add several types and tables for multi-language support.
9857 (Header_Num): Type moved from Prj.Com
9858 (Hash): Two functions moved from Prj.Com
9859 (Is_Present, Language_Processing_Data_Of): New functions
9860 (Set): Two new procedures
9861 (Add_Language_Name, Display_Language_Name): New procedures
9862 (Naming): Component name changes:
9863 Current_Spec_Suffix => Ada_Spec_Suffix,
9864 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
9865 Impl_Suffixes, Supp_Suffixes.
9866 (Project_Data): New components: Externally_Built, Supp_Languages,
9867 First_Language_Processing, Supp_Language_Processing, Default_Linker,
9868 Default_Linker_Path.
9870 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
9871 new package Language_Processing with its attributes (Compiler_Driver,
9872 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
9873 Binder_Driver, Default_Linker).
9875 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
9876 (Header_Num): Type moved to package Prj
9878 * prj-env.adb: Adapt to name changes in package Prj
9879 (Current_Spec_Suffix => Ada_Spec_Suffix,
9880 Current_Body_Suffix => Ada_Body_Suffix).
9882 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
9883 default to the project path, except the "-" is one of the directories
9884 in env var ADA_PROJECT_PATH.
9885 (Current_Project_Path): Global variable, replacing Project_Path
9886 that was in the body of Prj.Part.
9887 (Project_Path): New function
9888 (Set_Project_Path): New procedure
9889 Initialize Current_Project_Path during elaboration of the package
9890 Remove dependency on Prj.Com, no longer needed
9892 * prj-ext.ads (Project_Path): New function
9893 (Set_Project_Path): New procedure
9895 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
9896 suffix is defined for language <lang>.
9897 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
9898 accessing directly the components of Naming.
9899 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
9900 Reorganise of this package.
9901 Break procedure Check in several procedures.
9903 * prj-nmsc.ads: Replace all procedures (Ada_Check,
9904 Other_Languages_Check and Language_Independent_Check) with a single
9907 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
9908 Process_Languages, no longer needed.
9910 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
9911 Current_Project_Path.
9912 Remove elaboration code, moved to the body of Prj.Ext
9913 Use new function Prj.Ext.Project_Path instead of old variable
9915 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
9916 When comparing with project paths on the stack, first put the resolved
9917 path in canonical case.
9918 (Parse_Single_Project): Set the path name of the project file in the
9919 tree to the normalized path.
9921 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
9922 parameter Process_Languages, no longer needed.
9923 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
9924 Other_Languages_Check.
9926 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
9927 to store the resolved canonical path of the project file.
9928 Remove dependency to Prj.Com, no longer needed
9930 * prj-util.adb: Adapt to name changes in package Prj
9931 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
9934 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
9935 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
9936 Externally_Built, Include_Option, Language_Processing.
9938 * makegpr.adb: Numerous changes due to changes in packages
9941 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
9942 default to the project path, except whe "-" is one of the directories
9943 in env var ADA_PROJECT_PATH.
9944 (Gnatls): In verbose mode, add the new section "Project Search Path:"
9946 2004-12-07 Robert Dewar <dewar@adacore.com>
9948 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
9950 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
9953 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
9954 flag. No longer needed now that we handle this in gnat1drv.adb.
9956 * repinfo.ads: Minor reformatting
9958 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9959 Olivier Hainque <hainque@adacore.com>
9960 Eric Botcazou <ebotcazou@adacore.com>
9962 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
9963 TYPE_SIZE_UNIT of result type if SIZE is not specified.
9964 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
9965 of a bitfield, which we know is useless and causes trouble because of
9966 alignment implications.
9968 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
9970 (process_attributes): Clear DECL_COMMON again when a section attribute
9972 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
9973 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
9974 (create_field_decl): Special case ADDRESSABLE negative to mean
9975 "no bitfield creation", to be used by make_aligning_type. Don't
9976 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
9977 fields claimed addressable still have to be bitfields. Use
9978 value_factor_p instead of a raw binop construction to check for the
9979 position's alignment.
9981 2004-12-07 Geert Bosch <bosch@adacore.com>
9983 * eval_fat.adb: Revert previous change.
9985 2004-12-07 Thomas Quinot <quinot@adacore.com>
9986 Ed Schonberg <schonberg@adacore.com>
9988 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
9989 with an implicit dereference as its prefix, use
9990 Insert_Explicit_Dereference instead of merely rewriting the prefix into
9991 an explicit dereference. This ensures that a reference to the original
9992 prefix is generated, if appropriate.
9994 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
9995 dereference is rewritten to an explicit one, generate a reference to
9996 the entity denoted by its prefix using the original prefix node, so
9997 the dereference can be properly recorded as a read of the denoted
9998 access value, if appropriate.
10000 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
10001 emitting 'assigned but never read' warning on a variable on the basis
10002 that it has an access type.
10003 (Check_References): Emit unreferenced warning when the scope is a
10006 2004-12-07 Robert Dewar <dewar@adacore.com>
10007 Ed Schonberg <schonberg@adacore.com>
10009 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
10012 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
10013 leaving call unchanged.
10014 This deals with the case where the pragma Import specified
10015 an external name, to be handled by the back end.
10017 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
10018 subprogram which is Imported with convention Intrinsic if an
10019 External_Name argument is specified.
10020 (Process_Import_Or_Interface): Properly diagnose link name argument.
10021 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
10022 with Sem_Ch6.Cannot_Inline.
10023 (Process_Inline): Provide separate warning for inapplicable inline
10025 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
10026 treatment is uniform on different targets.
10028 2004-12-07 Ed Schonberg <schonberg@adacore.com>
10030 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
10031 construct is rewritten, preserve end label to permit source navigation.
10033 2004-12-07 Thomas Quinot <quinot@adacore.com>
10035 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
10036 Specific_Build_Stub_Target): New subprograms.
10037 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
10038 the PCS implementation used, using the above PCS-customized subprograms.
10039 Minor reformatting.
10040 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
10041 for generation of DSA code targeted to the PolyORB PCS.
10042 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
10043 implementation of the partition communication subsystem in ancillary
10045 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
10046 PolyORB_Support.Build_Stub_Type): New subrograms containing the
10047 PCS-specific part of Add_Stub_Type.
10048 (Insert_Partition_Check): Use runtime library function to perform
10051 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
10052 (RE_Same_Partition): New entity, from s-parint.
10054 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
10056 2004-12-07 Gary Dismukes <dismukes@adacore.com>
10058 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
10059 Output the copyright message on a separate line from the version
10062 2004-12-07 Joel Brobecker <brobecker@adacore.com>
10064 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
10065 compile-time warning.
10067 2004-12-07 Robert Dewar <dewar@adacore.com>
10069 * g-regpat.adb: (Match): Change a misuse of or to or else
10071 2004-12-07 Ed Schonberg <schonberg@adacore.com>
10074 (Generate_Reference): Handle properly a reference to an entry formal,
10075 when an accept statement has a pragma Unreferenced for it.
10077 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
10078 and the Has_Pragma_Unreferenced flag for each formal before analyzing
10079 the body, to ensure that warnings are properly emitted for each accept
10080 statement of a given task entry.
10082 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
10084 * Makefile.in: Add support for foreign threads on VMS.
10086 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10088 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
10090 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
10092 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
10094 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
10096 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
10098 2004-12-07 Robert Dewar <dewar@adacore.com>
10100 * nlists.adb (Prepend_Debug): Remove parameters and nest within
10102 (Remove_Next_Debug): Same fix
10104 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
10105 maintain back pointers now, though we did not used to, and comments
10107 (Prepend): Remove pragma Inline.
10108 (Remove_Next): Same cleanup
10110 2004-12-07 Thomas Quinot <quinot@adacore.com>
10112 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
10113 used to record an implicit dereference as a read operation on its
10114 prefix when operating under -gnatc. Necessary to avoid spurious
10115 'variable assigned but never read' warnings in that mode.
10116 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
10117 is a non-overloaded implicit dereference, call the above subprogram to
10118 ensure proper recording of references.
10120 2004-12-07 Gary Dismukes <dismukes@adacore.com>
10122 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
10123 to be resolved later as part of Analyze_Iteration_Scheme's call to
10126 2004-12-07 Ed Schonberg <schonberg@adacore.com>
10128 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
10129 prefix is not a scalar type, place error message on prefix, not on
10132 2004-12-07 Bernard Banner <banner@adacore.com>
10134 * vxaddr2line.adb: Add support for x86 vxworks
10136 2004-12-07 Thomas Quinot <quinot@adacore.com>
10138 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
10139 documentation of the behaviour of these functions when passed an IP
10140 address that has no record in the system hosts database and no reverse
10143 * cstand.adb, a-tags.ads: Fix typos in comment.
10145 2004-12-07 Robert Dewar <dewar@adacore.com>
10147 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
10148 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
10149 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
10150 s-poosiz.ads: Minor reformatting
10152 * make.adb: Minor reformatting
10153 Add some ??? comments asking for more comments
10155 * s-poosiz.adb: Minor reformatting
10156 Add comments on alignment requirement
10158 * sinfo.ads: Remove obsolete comment and fix typo.
10160 2004-12-07 Vincent Celier <celier@adacore.com>
10161 Sergey Rybin <rybin@adacore.com>
10163 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
10164 Files" with the new tool and package names.
10165 Reformatting to suppress most of the warnings for line too long
10166 Document the new section "Project Search Path:" in the output of
10168 Add gnatmetric section
10170 2004-12-07 Vincent Celier <celier@adacore.com>
10172 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
10173 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
10174 and -eit to -ept. Added qualifier
10175 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
10177 2004-11-27 Andreas Schwab <schwab@suse.de>
10179 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
10181 2004-11-25 Arnaud Charlet <charlet@adacore.com>
10183 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
10184 internal implementation unit GNAT.Sockets.Thin,
10185 as their usage for sockets is non-portable (using the read and write
10186 functions from the system runtime library is fine on UNIX but won't
10187 work under Windows).
10189 * mingw32.h: Update copyright notice.
10191 2004-11-25 Arnaud Charlet <charlet@adacore.com>
10193 * ada-tree.h: Minor reformatting of previous change to avoid lines
10194 longer than 79 characters.
10196 2004-11-25 Olivier Hainque <hainque@adacore.com>
10198 * tb-gcc.c: GCC infrastructure based implementation of
10201 2004-11-24 Steven Bosscher <stevenb@suse.de>
10203 * misc.c (gnat_post_options): Don't clear
10204 flag_inline_functions.
10206 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
10209 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
10212 2004-11-21 Andreas Jaeger <aj@suse.de>
10214 * stylesw.adb: Change Style_Check_Subprogram_Order to
10215 Style_Check_Order_Subprograms.
10217 2004-11-18 Arnaud Charlet <charlet@adacore.com>
10219 * adaint.h, adaint.c
10220 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
10222 Add also a cast to kill another warning.
10223 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
10224 parameter with the priority class of the parent process instead of
10225 always using the NORMAL_PRIORITY_CLASS.
10226 (__gnat_dup): New function.
10227 (__gnat_dup2): New function.
10228 (__gnat_is_symbolic_link): Enable the effective body of this
10229 function when __APPLE__ is defined.
10231 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
10234 2004-11-18 Olivier Hainque <hainque@adacore.com>
10236 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
10237 address of which may be used to represent "others" and "all others"
10238 choices in exception tables, instead of the current harcoded
10239 (void *)0 and (void *)1.
10240 (Setup_Exception): Do nothing in the GNAT SJLJ case.
10242 * gigi.h (others_decl, all_others_decl): New decls representing the
10243 new Others_Value and All_Others_Value objects.
10244 (struct attrib): Rename "arg" component as "args", since GCC expects a
10245 list of arguments in there.
10247 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
10248 corresponding objects exported by a-exexpr, instead of hardcoded dummy
10251 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
10252 others_decl and all_others_decl instead of hardcoded dummy addresses
10253 to represent "others" and "all others" choices, which is cleaner and
10254 more flexible with respect to the possible eh pointer encoding policies.
10256 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
10257 (process_attributes): Account for the naming change of the "args"
10258 attribute list entry component.
10260 * decl.c (build_attr_list): Rename into prepend_attributes to allow
10261 cumulating attributes for different entities into a single list.
10262 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
10263 attributes for the current entity and propagate first subtype
10264 attributes to other subtypes.
10265 <E_Procedure>: Attribute arguments are attr->args and not
10266 attr->arg any more.
10267 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
10268 argument provided, as this is what GCC expects. Use NULL_TREE instead
10271 2004-11-18 Robert Dewar <dewar@adacore.com>
10273 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
10274 Minor reformatting througout (including new function specs)
10275 Add ??? comments asking for clarification.
10277 2004-11-18 Thomas Quinot <quinot@adacore.com>
10279 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
10280 incomplete duplicate implementation of this subprogram from butil.
10282 2004-11-18 Thomas Quinot <quinot@adacore.com>
10284 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
10285 procedures factors the common processing for building an RPC receiver
10286 for an RCI package or an RACW type.
10287 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
10288 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
10289 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
10291 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
10293 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
10295 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
10296 distribution subprogram identifiers that are either subprogram numbers
10298 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
10299 string distribution identifiers assigned to a given subprogram.
10300 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
10301 (Add_RAS_Dereference_TSS): Add comments.
10302 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
10303 is not referenced yet because it will be used by the PolyORB DSA
10305 (Insert_Partition_Check): Remove fossile code.
10306 (First_RCI_Subprogram_Id): Document this constant.
10307 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
10309 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
10310 replaced with calls to Get_Library_Unit_Name_String. Previously there
10311 were several instances of the same code in different locations in the
10312 compiler; this checkin completes the replacement of all of these
10313 instances with calls to a common subprogram.
10314 Minor reformatting.
10316 * sem_dist.adb: Remove comment noting that RPC receiver generation
10317 should be disabled for RACWs that implement RASs.
10318 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
10320 * sem_util.ads, sem_util.adb (Has_Stream): New function
10321 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
10322 qualified name of a library unit into the name buffer.
10323 (Note_Possible_Modification): Generate a reference only
10324 if the context comes from source.
10326 * snames.ads (PCS_Names): New subtype corresponding to names of
10327 supported implementations of the Partition Communication Subsystem
10328 (PCS) (i.e. the runtime library support modules for the distributed
10331 2004-11-18 Robert Dewar <dewar@adacore.com>
10332 Ed Schonberg <schonberg@adacore.com>
10334 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
10335 (Has_Rep_Pragma): New function
10336 (Has_Attribute_Definition_Clause): New function
10337 (Record_Rep_Pragma): Moved here from sem_ch13.adb
10338 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
10340 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
10342 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
10343 (Expand_Pragma_Psect_Object): New procedure
10344 These procedures contain the revised and cleaned up processing for
10345 these two pragmas. This processing was formerly in Sem_Prag, but
10346 is more appropriately moved here. The cleanup involves making sure
10347 that the pragmas are properly attached to the tree, and that no
10348 nodes are improperly shared.
10350 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
10351 pragmas to Exp_Prag, which is more appropriate.
10352 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
10353 check for duplicates Remove use of Is_Psected flag, no longer needed.
10354 Use new Make_String_Literal function with string.
10356 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
10357 that are functions return universal values, that have to be converted
10358 to the context type.
10359 Use new Make_String_Literal function with string.
10360 (Get_Stream_Convert_Pragma): New function, replaces the use of
10361 Get_Rep_Pragma, which had to be kludged to work in this case.
10363 * freeze.adb: Use new Has_Rep_Pragma function
10365 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
10366 function with string.
10367 Use new Has_Rep_Pragma function.
10369 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
10372 2004-11-18 Robert Dewar <dewar@adacore.com>
10374 * errout.ads, errout.adb: (First_Sloc): New function
10376 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
10377 check (-gnatyx) instead of being included as a redundant construct
10380 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
10381 Style_Check_Order_Subprograms.
10383 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
10384 stylesw.adb: Add Style_Check_Xtra_Parens
10386 * usage.adb: Add line for -gnatyx (check extra parens)
10388 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
10390 2004-11-18 Ed Schonberg <schonberg@adacore.com>
10391 Robert Dewar <dewar@adacore.com>
10393 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
10394 discriminant of a constrained subtype, analyze the copy of the
10395 corresponding constraint, because in some cases it may be only
10396 partially analyzed.
10397 Removes long-lived ??? comments.
10399 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
10400 handled controlled or secondary-stack expressions within the
10401 iteration_scheme of a loop.
10403 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
10404 bounds that may contain functions calls, to prevent memory leaks when
10405 the bound contains a call to a function that uses the secondary stack.
10406 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
10407 generate temporaries for loop bounds that might contain function calls
10408 that require secondary stack and/or finalization actions.
10410 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
10411 selected component and the selector is overloadable (not just a
10412 function) treat as function call, Analyze_Call will disambiguate if
10414 (Analyze_Selected_Component): Do not generate an actual subtype for the
10415 selected component if expansion is disabled. The actual subtype is only
10416 needed for constraint checks.
10417 (Analyze_Allocator): If restriction No_Streams is set, then do
10418 not permit objects to be declared of a stream type, or of a
10419 composite type containing a stream.
10421 * restrict.ads: Remove the a-stream entry from Unit_Array, since
10422 No_Streams no longer prohibits with'ing this package.
10424 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
10425 discriminants, but the parent base has unknown discriminants, there is
10426 no discriminant constraint to inherit. Such a discrepancy can arise
10427 when the actual for a formal type with unknown discriminants is a
10428 similar private type whose full view has discriminants.
10429 (Analyze_Object_Declaration): If restriction No_Streams is set, then
10430 do not permit objects to be declared of a stream type, or of a
10431 composite type containing a stream.
10433 2004-11-18 Ed Schonberg <schonberg@adacore.com>
10435 * exp_dbug.ads: Update documentation to reflect simpler encoding for
10436 protected operations.
10438 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
10439 generated name, it complicates decoding in gdb and hinders debugging
10440 of protected operations.
10441 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
10442 flag for the protected entry barrier function.
10443 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
10444 flag for the protected entry function.
10446 2004-11-18 Nicolas Setton <setton@adacore.com>
10448 * expect.c: Define __unix__ when __APPLE__ is defined.
10450 * Makefile.in: Inform the value of the variable GMEM_LIB in the
10451 Darwin-specific section.
10453 * lang-specs.h: Change the placement of the %1 marker.
10454 Works around the fact that gcc adds -fPIC by default under Darwin.
10456 2004-11-18 Ed Schonberg <schonberg@adacore.com>
10458 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
10459 type of the object with the packed array type, set the Analyzed flag
10460 on the object if it is an entity or simple indexed component, to avoid
10461 spurious type errors.
10463 2004-11-18 Gary Dismukes <dismukes@adacore.com>
10465 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
10466 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
10467 separate line from the version message.
10469 2004-11-18 Ed Falis <falis@adacore.com>
10471 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
10473 (init_float): Eliminate initialization of floating point status for
10474 AE653. The instructions have no effect for vThreads.
10476 2004-11-18 Vincent Celier <celier@adacore.com>
10478 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
10479 gnatbind is invoked with -shared.
10481 2004-11-18 Jose Ruiz <ruiz@adacore.com>
10483 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
10484 for Detect_Blocking which is redundant with the check done within the
10485 procedure Protected_Single_Entry_Call.
10486 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
10487 Detect_Blocking which is redundant with the check done within the
10488 procedure Protected_Single_Entry_Call.
10490 2004-11-18 Vincent Celier <celier@adacore.com>
10492 * makegpr.adb (Compile): Put the compiling switches (in package
10493 Compiler and on the command line) immediately after "-c", instead of
10494 at the end of the command line invocation of the compiler, when
10495 compiling a non-Ada file.
10496 (Build_Global_Archive): When there is no need to rebuild the archive,
10497 set Global_Archive_Exists, so that the archive is passed to the linker
10500 2004-11-18 Robert Dewar <dewar@adacore.com>
10501 Sergey Rybin <rybin@adacore.com>
10504 Remove extra paren check from list of checks for redundant constructs
10505 Add documentation of new -gnatyx style check (check extra parens)
10506 Remove paragraph about gnatelim debug options.
10508 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
10509 objects rather than forbidding dependencies on the package Ada.Streams.
10511 * sinfo.ads: Add ??? note that we should document pragmas passed to
10514 * g-expect.ads: Fix a few typos in the comments.
10516 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
10518 * misc.c (gnat_handle_option): Use %< and %> for quoting in
10521 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10523 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
10525 2004-11-07 Andreas Schwab <schwab@suse.de>
10527 * Makefile.in (install-gnatlib): Remove spurious hyphen.
10529 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
10532 * Makefile.in (darwin): Set soext to .dylib.
10534 2004-10-26 Vincent Celier <celier@gnat.com>
10535 Thomas Quinot <quinot@act-europe.fr>
10537 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
10538 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
10539 there is no use of GNAT.Sockets.Constants.
10540 Remove remaining pragma Import for C_Write
10541 Remove C_Read and C_Write from internal implementation unit
10542 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
10543 the read and write functions from the system runtime library is fine
10544 on UNIX but won't work under Windows).
10546 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
10547 (Check_Selector): Use C_Recv instead of C_Read.
10548 Selectors are the GNAT.Sockets abstraction to perform a select()
10549 call on a set of descriptors. To allow abortion of an ongoing
10550 select operation, some data is written to a dedicated socket that
10551 is always monitored.
10552 Under Windows, the write and read library functions cannot operate
10553 on sockets, so we need to use send and recv instead, which is portable
10554 across all supported platforms.
10556 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
10557 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
10558 (using the read and write functions from the system runtime library is
10559 fine on UNIX but won't work under Windows).
10561 2004-10-26 Nicolas Setton <setton@act-europe.fr>
10563 * mlib-tgt-darwin.adb: New file.
10565 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
10566 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
10567 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
10568 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
10571 * Makefile.in: Add support for building shared libraries under Darwin.
10572 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
10573 the low level EH init subprogram to be called from __gnat_initialize.
10575 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
10576 indicates which options to pass to the archive indexer.
10578 * mlib-utl.adb: Add support for calling ranlib with additional
10579 options. This is needed for instance under Mac OS X.
10580 (Ranlib_Options): New global variable, used to store the potential
10581 options to pass to ranlib.
10582 (Ar): Use Ranlib_Options when spawning ranlib.
10583 (Initialize): Set the value of ranlib option.
10585 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
10587 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
10588 instead of 8K, to reflect the real potential needs for stack-checking
10591 2004-10-26 Pascal Obry <obry@gnat.com>
10593 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
10595 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
10596 Windows only the initial thread stack size can be set so it is good to
10597 start we a low stack size.
10598 The OS will adjust the size as needed.
10600 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
10601 Nicolas Setton <setton@act-europe.fr>
10603 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
10604 "__unix__" instead of "unix".
10605 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
10606 sections were just mistakenly ignored. The former is
10607 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
10608 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
10609 of hpux. This prevents an unwanted definition of the symbol
10610 convert_addresses in adaint.o.
10612 2004-10-26 Gary Dismukes <dismukes@gnat.com>
10614 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
10615 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
10617 2004-10-26 Cyrille Comar <comar@act-europe.fr>
10619 * a-filico.ads, a-filico.adb: fix incorrect header.
10621 2004-10-26 Javier Miranda <miranda@gnat.com>
10623 * a-ststio.ads: Fix typo in identifier
10625 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
10627 * sem_ch4.adb: Minor reformatting.
10629 2004-10-26 Ed Schonberg <schonberg@gnat.com>
10631 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
10632 enabled, check the result of unary and binary operations when the
10633 expression is the right-hand side of an assignment.
10635 2004-10-26 Vincent Celier <celier@gnat.com>
10637 * clean.adb (Delete): Do not output warnings when in quiet output and
10638 not in verbose mode.
10639 (Force_Deletions): New Boolean flag, defaulted to False
10640 (Delete): Only delete a file if it is writable, and when
10641 Force_Deletions is True.
10642 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
10643 (Usage): Line for new switch -f
10644 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
10647 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
10649 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
10650 JM type only if its size matches that of the wrapper. When a size is
10651 prescribed and the field is not aliased, remove the wrapper of a JM
10652 type only if the size is not greater than that of the packed array.
10653 (gnat_to_gnu_entity): Change the extension of packed array wrappers
10656 2004-10-26 Geert Bosch <bosch@gnat.com>
10658 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
10659 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
10660 (Pred): Implement in terms of Succ.
10662 2004-10-26 Ed Schonberg <schonberg@gnat.com>
10664 * exp_aggr.adb (Safe_Component): An aggregate component that is an
10665 unchecked conversion is safe for in-place use if the expression of the
10666 conversion is safe.
10667 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
10668 be expandable in place even if the aggregate does not come from source.
10669 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
10670 designated object of an allocator in place, rather than building it
10671 first on the stack. The previous scheme forces a full copy of the array,
10672 and may be altogether unsusable if the size of the array is too large
10673 for stack allocation.
10675 2004-10-26 Robert Dewar <dewar@gnat.com>
10677 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
10678 compares if the component is atomic.
10680 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
10681 array assignment if the component type is atomic.
10683 2004-10-26 Ed Schonberg <schonberg@gnat.com>
10684 Eric Botcazou <ebotcazou@act-europe.fr>
10686 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
10687 is aliased and is a by_reference type, do not pass by copy.
10688 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
10689 detect whether the call is in the right side of an assignment or
10690 the expression of an object declaration. Recurse on component
10691 association within aggregates.
10692 Call it in the condition that determines whether the temporary is
10693 necessary for correct stack-checking.
10695 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
10697 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
10698 RACW_Type, used in the PolyORB version.
10699 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
10700 version and the GARLIC version.
10702 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
10703 Rename RCI_Info to RCI_Locator for better consistency between the
10704 GARLIC and PolyORB versions of the distributed systems annex.
10705 (DSA_Implementation_Name): This enumeration lists the possible
10706 implementations of the Partition Communication Subsystem for the
10707 Distributed Systems Annex (DSA). The three available implementations
10708 are the dummy stub implementation (No_DSA), and two versions based on
10709 two different distribution runtime libraries: GARLIC and PolyORB. Both
10710 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
10712 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
10715 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
10716 between the GARLIC and PolyORB versions of the distributed systems
10718 Remove RE_Unbounded_Reclaim_Pool since it is unused.
10720 2004-10-26 Gary Dismukes <dismukes@gnat.com>
10722 * gnat1drv.adb: Suppress calling the back end when
10723 Frontend_Layout_On_Target is true.
10725 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
10727 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
10728 Set_Read_Only): New subprograms.
10729 These new routines allow the user to set or unset the Owner execute
10730 and Owner write permission flags on a file.
10732 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
10733 GNAT.OS_Lib.Set_Executable instead of rolling our own.
10735 2004-10-26 Matthew Gingell <gingell@gnat.com>
10737 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
10739 2004-10-26 Pascal Obry <obry@gnat.com>
10741 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
10742 memory before the faulting page we properly test the process read
10743 access for this address using appropriate Win32 routine.
10744 (HPUX sections): guard with "__hpux__" instead of "hpux".
10746 2004-10-26 Robert Dewar <dewar@gnat.com>
10748 * lib-xref.adb (Generate_Reference): Don't complain about reference to
10749 entry parameter if pragma Unreferenced set, since we do not properly
10750 handle the case of multiple parameters.
10752 2004-10-26 Vincent Celier <celier@gnat.com>
10754 * prj-env.adb: (Contains_ALI_Files): New Boolean function
10755 (Ada_Objects_Path.Add): For a library project, add to the object path
10756 the library directory only if there is no object directory or if the
10757 library directory contains ALI files.
10758 (Set_Ada_Paths.Add.Recursive_Add): Ditto
10760 2004-10-26 Vincent Celier <celier@gnat.com>
10762 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
10763 extension of library projects.
10765 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
10766 path defaults to ".:<prefix>/lib/gnat".
10767 (Parse): For an extending all project, allow direct import of a project
10768 that is virtually extended.
10770 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
10771 the specified name is directly imported, return its ID. Otherwise, if
10772 an extension of this project is imported, return the ID of the
10775 2004-10-26 Robert Dewar <dewar@gnat.com>
10777 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
10778 (Sub3): New procedure, used by Scaled_Divide
10779 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
10780 correct more than one instance of failure to propagate carries
10782 (Double_Divide): Handle overflow case of largest negative number
10783 divided by minus one.
10785 * s-arit64.ads (Double_Divide): Document that overflow can occur in
10786 the case of a quotient value out of range.
10789 2004-10-26 Robert Dewar <dewar@gnat.com>
10791 * s-bitops.adb (Bit_Eq): Remove redundant check.
10793 * s-bitops.ads: Minor comment updates
10794 Change some occurrences of Address to System.Address
10796 * s-carsi8.ads: Fix minor cut-and-paste error in comments
10798 2004-10-26 Ed Schonberg <schonberg@gnat.com>
10800 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
10801 accessibility check to prefix that is a protected operation.
10803 2004-10-26 Ed Schonberg <schonberg@gnat.com>
10805 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
10806 empty, post message on stub.
10808 2004-10-26 Ed Schonberg <schonberg@gnat.com>
10809 Javier Miranda <miranda@gnat.com>
10811 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
10812 current instance appears within a unit that is directly in the context
10814 Used to determine whether the body of the instance should be analyzed
10815 immediately after its spec, to make its subprogram bodies available
10816 for front-end inlining.
10817 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
10818 constraint is not allowed on the component type (AARM 12.5.3(3))
10820 2004-10-26 Cyrille Comar <comar@act-europe.fr>
10822 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
10823 'Storage_Pool): enhance, document & limit detection of non-sharable
10826 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
10828 * s-pooglo.ads: Add more documentation now that this pool is properly
10831 2004-10-26 Ed Schonberg <schonberg@gnat.com>
10833 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
10834 or protected type with discriminants, do not constrain the
10835 corresponding record type if the subtype declaration has no
10836 discriminant constraints. This can be the case in source code, or in
10837 the subtype declaration created to rename an actual type within an
10840 2004-10-26 Ed Schonberg <schonberg@gnat.com>
10842 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
10843 different kind of stub (possibly wrong name for file), do not check
10845 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
10846 includes call to some function that returns an unconstrained type, do
10849 2004-10-26 Ed Schonberg <schonberg@gnat.com>
10851 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
10852 appear in the code for the main unit. Dependencies among units in the
10853 context of the main unit are established when those other units are
10854 compiled. Otherwise spurious elaboration constraints can generate
10855 incorrect elaboration circularities.
10857 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
10858 Ed Schonberg <schonberg@gnat.com>
10860 * sem_util.adb (Is_Aliased_View): Defend against the case where this
10861 subprogram is called with a parameter that is not an object name. This
10862 situation arises for some cases of illegal code, which is diagnosed
10863 later, and in this case it is wrong to call Is_Aliased, as that might
10864 cause a compiler crash.
10865 (Explain_Limited_Type): Refine previous fix to include
10866 inherited components of derived types, to provide complete information.
10868 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
10869 is the prival for a protected object.
10870 It is necessary to mark this entity as a variable, in addition to
10871 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
10872 modified to avoid checking the Aliased flag on entities that are not
10873 objects. (Checking that flag for non-objects is erroneous and could
10874 lead to a compiler crash).
10876 2004-10-26 Robert Dewar <dewar@gnat.com>
10878 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
10879 X_Frac = 0.5, then we know that the number X must be positive.
10880 (Succ): Remove the same redundant test, and also fix the primary test
10881 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
10883 (Decompose): Add fuller comments to spec
10885 2004-10-26 Pascal Obry <obry@gnat.com>
10887 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
10888 validity (process must have read access). Set to 0 in all other cases.
10889 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
10890 violation on Win32.
10891 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
10892 segmentation violation.
10894 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
10896 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
10897 whose type is a constructed subtype of an aliased object with an
10898 unconstrained nominal subtype, convert the actual to the constructed
10899 subtype before taking its address.
10901 2004-10-26 Vincent Celier <celier@gnat.com>
10903 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
10904 (Is_Path_Name_Case_Sensitive): New function
10906 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
10907 (Base_Name, Simple_Name, Current_Directory, Compose,
10908 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
10911 2004-10-26 Cyrille Comar <comar@act-europe.fr>
10912 Vasiliy Fofanov <fofanov@act-europe.fr>
10913 Vincent Celier <celier@gnat.com>
10915 * gnat_ugn.texi: Generalize "finding memory problems" section into a
10916 "memory management issues" section and document some of the useful
10917 memory pools provided as part of the GNAT library.
10918 Remove "virtual" from declaration of A::method2 in
10919 the simple example of Ada/C++ mixed system.
10920 Library Projects may be virtually extended: their virtual extensions
10921 are not Library Projects.
10922 Added section on extending project hierarchies.
10924 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10926 * adaint.c (__gnat_get_libraries_from_registry): Cast value
10928 (__gnat_portable_spawn): Remove const.
10930 * mingw32.h (MAXPATHLEN): Check for previous definition.
10932 2004-10-17 Matthias Klose <doko@debian.org>
10934 * gnatvsn.ads: Set gnat library version to 4.0.
10936 2004-10-05 Vincent Celier <celier@gnat.com>
10938 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
10940 2004-10-04 Laurent GUERBY <laurent@guerby.net>
10943 * Makefile.in: Define and use RANLIB_FLAGS.
10945 2004-10-04 Pascal Obry <obry@gnat.com>
10947 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
10948 other x86 platforms).
10950 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
10952 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
10953 in general and triggers stack alignment adjustment for thread entry
10954 points on targets where this is necessary.
10956 2004-10-04 Bernard Banner <banner@gnat.com>
10960 * Makefile.in: Add section for powerpc linux
10961 Add variant i-vxwork-x86.ads
10963 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
10965 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
10967 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
10968 table registration calls when need be. Ensures no reference to the crt
10969 ctors symbol are issued in the SJLJ case, which avoids possible
10970 undefined symbol errors in the case of modules to be statically linked
10973 2004-10-04 Javier Miranda <miranda@gnat.com>
10975 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
10976 in-line the code corresponding to subprogram Analyze_Actuals. In
10977 addition, analyze the actuals only in case of subprogram call.
10979 2004-10-04 Ed Falis <falis@gnat.com>
10981 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
10983 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
10985 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
10986 in the documentation.
10988 2004-10-04 Robert Dewar <dewar@gnat.com>
10990 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
10992 (Analyze_Block_Statement): Add circuitry to detect following dead code
10993 (Check_Unreachable_Code): Handle case of block exit
10995 2004-10-04 Robert Dewar <dewar@gnat.com>
10997 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
10998 (XMatchD): Avoid warning for Logic_Error call
11000 2004-10-04 Robert Dewar <dewar@gnat.com>
11002 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
11003 consider expressions buried within a procedure actual to be an actual.
11004 This caused some blowups with uses of packed slices within a procedure
11007 2004-10-04 Robert Dewar <dewar@gnat.com>
11009 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
11010 longer need to be initialized to zero.
11011 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
11012 initialized to zero.
11014 * checks.adb (Expr_Known_Valid): Packed arrays are now always
11015 considered valid, even if the representation is modular. That's correct
11016 now that we no longer initialize packed modular arrays to zero.
11018 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
11019 suffixes. These are now documented as the only cases in which the
11020 debugger ignores outer records.
11021 Previously, the spec allowed arbitrary suffixes for this purpose.
11022 Change name of LJM to JM for packed array pad records
11023 Create separate section on packed array handling, and add a whole new
11024 set of comments to this section describing the situation with packed
11025 modular types and justification requirements depending on endianness.
11027 2004-10-04 Robert Dewar <dewar@gnat.com>
11029 * a-except.adb: Add a comment for last change
11031 * einfo.ads: Minor spelling correction in comment
11033 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
11035 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
11038 * sem_util.ads: Minor comment update
11040 2004-10-04 Ed Schonberg <schonberg@gnat.com>
11042 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
11043 Inline_Always when in Configurable_Run_Time mode.
11045 * sem_prag.adb (Process_Convention): If entity is an inherited
11046 subprogram, apply convention to parent subprogram if in same scope.
11047 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
11048 when in Configurable_Run_Time mode.
11050 2004-10-04 Ed Schonberg <schonberg@gnat.com>
11052 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
11053 class_wide type after component list has been inherited.
11055 2004-10-04 Ed Schonberg <schonberg@gnat.com>
11057 * sem_ch12.adb (Check_Generic_Actuals): New predicate
11058 Denotes_Previous_Actual, to handle properly the case of a private
11059 actual that is also the component type of a subsequent array actual.
11060 The visibility status of the first actual is not affected when the
11061 second is installed.
11062 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
11063 make fully recursive the treatment of formals of packages declared
11065 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
11066 the above on exit from an instantiation.
11067 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
11068 current instantiation which is now complete.
11069 (Analyze_Package_Instantiation): No instantiated body is needed if the
11070 main unit is generic. Efficient, and avoid anomalies when a instance
11071 appears in a package accessed through rtsfind.
11073 2004-10-04 Ed Schonberg <schonberg@gnat.com>
11075 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
11076 do not generate a declaration for a temporary if the call is part of a
11077 library-level instantiation.
11079 2004-10-04 Ed Schonberg <schonberg@gnat.com>
11081 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
11082 searching for a limited component to flag.
11084 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
11085 expansion of Input, to account for the fact that the implicit call
11086 generated by the attribute reference must freeze the user-defined
11087 stream subprogram. This is only relevant to 'Input, because it can
11088 appear in an object declaration, prior to the body of the subprogram.
11090 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
11091 expansion can proceed and further errors uncovered.
11092 (Minor clean up): Fix cases of using | instead of \ for continuation
11095 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11097 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
11099 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
11100 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
11101 Use gcc_assert and gcc_unreachable.
11103 * decl.c (gnat_to_gnu_entity, case object): Check and process a
11104 specified alignment before validating size.
11105 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
11106 stripped-down declaration for the type of the inner field when making
11109 * utils.c (finish_record_type): Do not compute the size in units
11110 incrementally. Instead compute it once for the rep clause case.
11111 Use gcc_assert and gcc_unreachable.
11113 2004-10-04 Vincent Celier <celier@gnat.com>
11115 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
11117 (Is_Valid_Path_Name): Take '/' as a directory separator.
11119 2004-10-04 Vincent Celier <celier@gnat.com>
11121 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
11122 (Extended_Project) only if Extended_Project is defined, to avoid
11124 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
11126 (Parse_Single_Project): Ditto.
11128 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
11129 Add_To_Project_Path for virtual projects.
11131 2004-10-04 Vincent Celier <celier@gnat.com>
11133 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
11134 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
11135 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
11136 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
11137 parameter Options_2.
11139 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
11140 Build_Dynamic_Library with an empty Options_2.
11142 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
11145 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
11146 directory separator, if any.
11147 (Gprmake): Do not allow mains on the command line for library projects.
11148 Do not attempt to link when the project is a library project.
11149 (Library_Opts): New table to store Library_Options.
11150 (Build_Library): If Library_Options is specified, pass these options
11151 when building a shared library.
11153 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
11155 * s-tposen.adb (Service_Entry): The object must be always unlocked at
11156 the end of this procedure now that the unlock operation was inserted
11159 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
11161 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
11162 corresponding to the Preallocated_Stacks flags in System.
11163 (Get_Target_Parameters): Including the processing for
11164 Preallocated_Stacks.
11166 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
11167 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
11168 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
11169 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
11170 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
11171 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
11172 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
11173 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
11174 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
11175 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
11176 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
11177 used to signal whether the compiler creates the required stacks and
11178 descriptors for the different tasks (when True) or it is done by the
11179 underlying operating system at run time (when False).
11180 It is initially set to False in all targets.
11182 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
11183 if it is supported by the target.
11184 (Make_Task_Create_Call): Pass the stack address if it has been
11185 previously created. Otherwise pass a Null_Address.
11187 * snames.adb: Add _stack.
11189 * snames.ads: Add Name_uStack. Required to allow the expander to
11190 statically allocated task stacks.
11192 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
11193 Stack_Address argument.
11194 Check that its value is equal to Null_Address because this target does
11195 not support the static stack allocation.
11197 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
11199 * usage.adb: Change "pragma inline" to "pragma Inline" in information
11202 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
11204 * exp_dist.adb: Split declaration of asynchronous flag out of
11205 Add_RACW_Read_Attribute.
11206 Minor reformatting for better alignment with PolyORB version.
11207 Store the entity for the asynchronous flag of an RACW, rather than the
11208 expression, in the asynchronous flags table. This will allow this flag
11209 to be used in other subprograms beside Add_RACW_Read_Attribute.
11211 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
11213 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
11214 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
11215 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
11216 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
11217 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
11218 sockets constant MSG_NOSIGNAL (Linux-specific).
11219 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
11220 all Send operations.
11221 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
11222 from trigerring SIGPIPE.
11223 Rename components to avoid clash with Ada 2005 possible reserved
11225 (Check_Selector): When the select system call returns with an error
11226 condition, propagate Socket_Error to the caller.
11228 2004-10-01 Jan Hubicka <jh@suse.cz>
11230 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
11232 2004-09-23 Robert Dewar <dewar@gnat.com>
11236 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
11237 instead do this at freeze time (we won't do it if there is an address
11239 Change "pragma inline" to "pragma Inline" in information and error
11241 Minor reformatting.
11243 * freeze.adb (Check_Address_Clause): Remove previous change, not the
11244 right way of doing things after all.
11245 (Freeze_Entity): For object, set Is_Public for imported entities
11246 unless there is an address clause present.
11248 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
11250 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
11251 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
11252 ensures proper handling of types with rep clauses, which might have
11253 their TYPE_SIZE set already.
11255 2004-09-21 Robert Dewar <dewar@gnat.com>
11257 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
11258 packed array types in both little- and big-endian cases. This change
11259 ensures that we no longer count on the unused bits being initialized
11260 for such types (and in particular ensures that equality testing will
11261 only read the relevant bits).
11262 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
11263 These changes mean that we no longer need to initialize small packed
11265 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
11266 optimization to an LJM field as to its parent field.
11268 * ada-tree.h, trans.c, utils.c, utils2.c:
11269 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
11271 2004-09-20 Jan Hubicka <jh@suse.cz>
11273 * utils.c (gnat_finalize): Remove.
11274 (end_subprog_body): Directly call cgraph_finalize_function;
11275 do not lower the nested functions.
11277 2004-09-20 Robert Dewar <dewar@gnat.com>
11281 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
11282 if an address clause is present, since that means that the Import
11285 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
11287 * 5tsystem.ads: Removed, no longer used.
11289 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
11290 Zack Weinberg <zack@codesourcery.com>
11292 * ada-tree.def: Use tree_code_class enumeration constants
11293 instead of code letters.
11294 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
11295 Update for new tree-class enumeration constants.
11297 2004-09-17 Vincent Celier <celier@gnat.com>
11299 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
11300 capabilities of the general project manager.
11302 2004-09-09 Vincent Celier <celier@gnat.com>
11304 * a-direct.ads: Add pragma Ada_05
11305 (Directory_Entry_Type): Give default value to component Kind to avoid
11306 not initialized warnings.
11308 * a-direct.adb (Current_Directory): Remove directory separator at the
11310 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
11311 an existing directory.
11312 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
11313 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
11314 Convert the result to File_Size.
11316 * prj.ads: (Project_Error): New exception
11318 * prj-attr.adb: Except in procedure Initialize, Fail comes from
11319 Prj.Com, not from Osint.
11320 (Attrs, Package_Attributes): Tables moved to private part of spec
11321 (Add_Attribute, Add_Unknown_Package): Moved to new child package
11323 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
11324 Prj.Project_Error after call to Fail.
11325 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
11326 Fail. Check that package name is not already in use.
11328 * prj-attr.ads: Comment updates to indicate that all subprograms may be
11329 used by tools, not only by the project manager, and to indicate that
11330 exception Prj.Prj_Error may be raised in case of problem.
11331 (Add_Unknown_Package, Add_Attribute): Moved to new child package
11333 (Attrs, Package_Attributes): Table instantiations moved from the body to
11334 the private part to be accessible from Prj.Attr.PM body.
11336 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
11337 from new package Prj.Attr.PM.
11338 (Parse_Attribute_Declaration): Call Add_Attribute from new package
11341 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
11343 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
11344 instead of Elaboration_Checks).
11346 * a-calend.adb: Minor reformatting
11348 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11350 * gigi.h (maybe_pad_type): New declaration.
11351 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
11353 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
11355 * cuintp.c: Convert to use buildN.
11357 * decl.c (maybe_pad_type): No longer static.
11358 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
11360 Convert to use buildN.
11362 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
11363 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
11364 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
11366 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
11367 (gnat_gimplify_expr, case ADDR_EXPR): New case.
11368 Convert to use buildN.
11370 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
11371 TREE_READONLY for const.
11372 Convert to use buildN.
11374 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
11375 (create_var_decl): Refine when TREE_STATIC is set.
11376 Convert to use buildN.
11378 2004-09-09 Gary Dismukes <dismukes@gnat.com>
11380 * gnat_ugn.texi: Delete text relating to checking of ali and object
11383 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
11386 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
11388 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
11389 pragmas recognized by GNAT.
11391 * gnat_rm.texi: Document pragma Detect_Blocking.
11393 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
11394 raise Program_Error if called from a protected operation.
11396 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
11397 the protected action nesting level.
11398 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
11399 protected action nesting level.
11400 (Unlock): When pragma Detect_Blocking is active decrease the protected
11401 action nesting level.
11403 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
11404 Protected_Action_Nesting.
11406 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
11407 Common_ATCB record. It contains the dynamic level of protected action
11408 nesting for each task. It is needed for checking whether potentially
11409 blocking operations are called from protected operations.
11410 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
11411 Detect_Blocking is active or not in the partition.
11413 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
11414 raise Program_Error if called from a protected operation.
11415 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
11416 Program_Error if called from a protected operation.
11417 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
11418 Program_Error if called from a protected operation.
11420 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
11421 raise Program_Error if called from a protected operation.
11423 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
11424 raise Program_Error if called from a protected operation, and increase
11425 the protected action nesting level.
11426 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
11427 Program_Error if called from a protected operation, and increase the
11428 protected action nesting level.
11429 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
11430 protected action nesting level.
11432 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
11433 raise Program_Error if called from a protected operation, and increase
11434 the protected action nesting level.
11435 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
11436 Program_Error if called from a protected operation, and increase the
11437 protected action nesting level.
11438 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
11439 raise Program_Error if called from a protected operation.
11440 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
11441 active, raise Program_Error if called from a protected operation.
11442 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
11443 protected action nesting level.
11445 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
11446 insertion of the statement raising Program_Error. The run time
11447 contains the required machinery for handling that.
11449 * sem_util.ads: Change comment associated to procedure
11450 Check_Potentially_Blocking_Operation.
11451 This procedure does not insert a call for raising the exception because
11452 that is currently done by the run time.
11454 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
11456 * init.c: Add the global variable __gl_detect_blocking that indicates
11457 whether pragma Detect_Blocking is active (1) or not (0). Needed for
11458 making the pragma available at run time.
11459 (__gnat_set_globals): Pass and update the detect_blocking parameter.
11461 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
11462 pragma Detect_Blocking is active.
11464 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
11466 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
11467 DB is found in the ali file. Any unit compiled with pragma
11468 Detect_Blocking active forces its effect in the whole partition.
11470 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
11471 Detect_Blocking is active and delay is called from a protected
11474 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
11475 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
11476 Detect_Blocking is active (0 otherwise).
11477 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
11478 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
11481 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
11483 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
11484 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
11487 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
11488 (Register_Receiving_Stub): Add Subp_Info formal parameter.
11489 Update API in placeholder implemetation of s-parint to reflect changes
11490 in distribution runtime library.
11492 * sem_ch3.adb (Expand_Derived_Record): Rename to
11493 Expand_Record_Extension.
11495 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
11496 primitive operations of potentially distributed object types that have
11497 non-controlling anonymous access formals.
11499 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
11501 New implementation of expansion for remote access-to-subprogram types,
11502 based on the RACW infrastructure.
11503 This version of sem_dist is compatible with PolyORB/DSA as well as
11506 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
11507 Asynchrronous that applies to a remote access-to-subprogram type, mark
11508 the underlying RACW type as asynchronous.
11510 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
11511 __gnat_using_gnu_linker to 1.
11513 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
11514 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
11515 GNAT.Perfect_Hash_Generators, and remove the empty
11516 GNAT.Perfect_Hash package.
11518 * atree.adb: Minor reformatting
11520 * exp_ch3.adb (Expand_Derived_Record): Rename to
11521 Expand_Record_Extension.
11522 (Build_Record_Init_Proc.Build_Assignment): The default expression in
11523 a component declaration must remain attached at that point in the
11524 tree so New_Copy_Tree copies it if the enclosing record type is derived.
11525 It is therefore necessary to take a copy of the expression when building
11526 the corresponding assignment statement in the init proc.
11527 As a side effect, in the case of a derived record type, we now see the
11528 original expression, without any rewriting that could have occurred
11529 during expansion of the ancestor type's init proc, and we do not need
11530 to go back to Original_Node.
11532 * exp_ch3.ads (Expand_Derived_Record): Rename to
11533 Expand_Record_Extension.
11535 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
11536 Returns the RACW type used to implement a remote access-to-subprogram
11538 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
11539 New subprograms. Used to create a proxy tagged object for a remote
11540 subprogram. The proxy object is used as the designated object
11541 for RAS values on the same partition (unless All_Calls_Remote applies).
11542 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
11543 System.Partition_Interface.Get_Unique_Remote_Pointer.
11544 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
11545 Renamed from Add_RAS_*_Attribute.
11546 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
11548 New implementation of expansion for remote access-to-subprogram types,
11549 based on the RACW infrastructure.
11551 * exp_dist.ads (Copy_Specification): Update comment to note that this
11552 function can copy the specification from either a subprogram
11553 specification or an access-to-subprogram type definition.
11555 2004-09-09 Ed Schonberg <schonberg@gnat.com>
11557 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
11558 in an instance, between an explicit subprogram an one inherited from a
11559 type derived from an actual.
11561 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
11562 add a polling call if the subprogram is to be inlined by the back-end,
11563 to avoid repeated calls with multiple inlinings.
11565 * checks.adb (Apply_Alignment_Check): If the expression in the address
11566 clause is a call whose name is not a static entity (e.g. a dispatching
11567 call), treat as dynamic.
11569 2004-09-09 Robert Dewar <dewar@gnat.com>
11571 * g-trasym.ads: Minor reformatting
11573 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
11574 packed arrays, since unused bits are expected to be zero for a
11577 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
11579 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
11582 2004-09-09 Pascal Obry <obry@gnat.com>
11584 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
11585 enable map file generation. Add the right option to generate the map
11586 file if Map_File is set to True.
11588 * gnatdll.adb (Gen_Map_File): New variable.
11589 (Syntax): Add info about new -m (Map_File) option.
11590 (Parse_Command_Line): Add support for -m option.
11591 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
11592 Minor reformatting.
11594 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
11596 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
11597 new gnatdist implementation.
11598 Define a subpackage isolating the output routines specific to this
11601 2004-09-09 Joel Brobecker <brobecker@gnat.com>
11603 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
11605 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
11607 2004-09-09 Cyrille Comar <comar@act-europe.fr>
11609 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
11612 * opt.ads: Add Ada_Version_Runtime constant used to decide which
11613 version of the language is used to compile the run time.
11615 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
11617 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
11618 of variable length temporaries for function return now that the
11619 back-end and gigi support it.
11621 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11623 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
11625 * trans.c (struct stmt_group): Delete field GLOBAL.
11626 (gnat_init_stmt_group): Do not initialize it.
11627 (call_to_gnu): Use save_expr, not protect_multiple_eval.
11628 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
11629 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
11630 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
11631 (start_stmt_group): Likewise.
11632 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
11634 * utils2.c (ggc.h): Include.
11635 (build_call_raise): Call build_int_cst, not build_int_2.
11637 * utils.c (gnat_init_decl_processing): Fix arg to
11638 build_common_tree_nodes.
11639 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
11640 (gnat_define_builtin): Set built_in_decls.
11641 (init_gigi_decls): Call build_int_cst, not build_int_2.
11643 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
11644 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
11645 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
11646 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
11647 SET_TYPE_MODULE): Use them.
11648 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
11649 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
11650 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
11651 SET_TYPE_ADA_SIZE): Likewise.
11652 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
11653 (DECL_CONST_CORRESPONDING_VAR,
11654 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
11655 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
11656 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
11657 (TYPE_RM_SIZE_NUM): New macro.
11658 (TYPE_RM_SIZE): Modified to use above.
11660 * cuintp.c: (build_cst_from_int): New function.
11661 (UI_To_gnu): Use it.
11663 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
11664 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
11665 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
11666 MIN_EXPR for the size, copy it into new.
11668 2004-09-01 Robert Dewar <dewar@gnat.com>
11670 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
11671 packed indexed component where array is an IN OUT formal. This
11672 generated garbage code previously.
11674 * gnat_ugn.texi: Document -fverbose-asm
11676 * gnat-style.texi: Minor updates (note that boolean constants and
11677 variables are joined with AND/OR rather than short circuit forms).
11679 2004-09-01 Ed Schonberg <schonberg@gnat.com>
11681 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
11682 it is an upward conversion of an untagged type with no representation
11685 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
11687 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
11688 System.Partition_Interface.
11690 * checks.adb (Apply_Access_Checks): Do not generate checks when
11691 expander is not active (but check for unset reference to prefix of
11694 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
11695 pragma Debug as an if statement with a constant condition, for
11696 consistent treatment of entity references contained within the
11697 enclosed procedure call.
11699 2004-09-01 Vincent Celier <celier@gnat.com>
11701 * bindgen.adb: (Set_EA_Last): New procedure
11702 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
11704 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
11705 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
11706 linked without errors.
11707 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
11709 (Gen_Exception_Table_C): Correct same bugs
11711 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
11713 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
11714 on Windows, make sure that the drive letter is in upper case.
11716 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
11717 Windows, when the drive letter is added and Case_Sensitive is True, the
11718 drive letter is forced to upper case.
11720 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
11721 to Options_2 for the call to MLib.Utl.Gcc.
11723 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
11724 directory separator when defining BASE_DIR.
11726 2004-09-01 Pascal Obry <obry@gnat.com>
11728 * gprcmd.adb (Extend): Do not output trailing directory separator. This
11729 is not needed and it confuses Windows GNU/make which does not report
11730 directory terminated by a slash as a directory.
11731 (gprcmd): Idem for "pwd" internal command.
11733 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
11734 target names rewrite to fix regressions with recent version of
11735 GNU/make. Starting with GNU/make 3.80 the pipe character was not
11736 handled properly anymore.
11738 2004-09-01 Andreas Schwab <schwab@suse.de>
11740 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
11741 * raise.c [!IN_RTS]: Undef abort.
11743 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
11745 * utils2.c (build_allocator): Use ssize_int.
11747 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
11749 2004-08-27 Andreas Schwab <schwab@suse.de>
11751 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
11753 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
11754 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11756 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
11758 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
11760 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
11761 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
11762 * utils.c (init_gigi_decls): Likewise.
11763 * utils2.c (build_call_raise, build_allocator): Likewise.
11765 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
11767 * utils.c (gnat_init_decl_processing): Adjust
11768 build_common_tree_nodes call.
11770 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
11772 * utils2.c (build_allocator): Use build_int_cst for negative
11775 2004-08-18 Richard Henderson <rth@redhat.com>
11777 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
11779 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
11781 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
11783 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
11784 (gnat_to_gnu): Likewise.
11786 2004-08-16 Pascal Obry <obry@gnat.com>
11788 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
11789 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
11790 option and not mdll anymore. Update comment.
11792 2004-08-16 Pascal Obry <obry@gnat.com>
11794 * bld.adb (Put_Include_Project): Properly handle directory separators
11797 2004-08-16 Ed Schonberg <schonberg@gnat.com>
11799 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
11800 decreasing the number of allocated junk nodes while searching for the
11801 appropriate subprogram.
11803 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
11805 * cuintp.c (UI_To_gnu): Use build_int_cst..
11806 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
11807 * utils.c (init_gigi_decls): Likewise.
11808 * utils2.c (build_call_raise): Likewise.
11810 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
11812 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
11813 for a global aliased object with a variable size and an unconstrained
11814 nominal subtype, pretend there is no initializer if the one we have is
11815 incomplete, and avoid referencing an inexistant component in there. The
11816 part we have will be rebuilt anyway and the reference may confuse
11817 further operations.
11819 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
11821 * einfo.ads: Minor reformatting
11823 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
11824 restrictions in the ALI if we only want to warn about violations.
11826 2004-08-13 Vincent Celier <celier@gnat.com>
11828 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
11829 when creating a new Unit_Record in table Units.
11831 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
11832 that are violated, if any.
11834 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
11835 add directory separator if path already ends with a directory separator.
11837 2004-08-13 Ed Schonberg <schonberg@gnat.com>
11839 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
11840 unit, this is an attempt to inline a construct that is not available in
11841 the current restricted mode, so abort rather than trying to continue.
11843 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
11844 discriminants that rename those of the parent, recover names of
11845 original discriminants for the constraint on the full view of the
11847 (Complete_Private_Subtype): Do not create a subtype declaration if the
11848 subtype is an itype.
11850 * gnat_rm.texi: Added section on implementation of discriminated
11851 records with default values for discriminants.
11853 2004-08-13 Ed Schonberg <schonberg@gnat.com>
11856 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
11857 the second operand is overloaded.
11859 2004-08-10 Richard Henderson <rth@redhat.com>
11861 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
11862 add __builtin_alloca.
11864 2004-08-10 Richard Henderson <rth@redhat.com>
11866 * config-lang.in (boot_language): Yes.
11868 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
11870 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
11871 from complaining on potential uninitialized reference.
11872 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
11873 new specification and test explicitly for non-zero return value.
11875 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
11876 returning C.int, to avoid using a derived boolean type.
11878 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
11879 Duplicate_Subexpr_No_Checks in preference to direct use of
11880 Remove_Side_Effects and New_Copy_Tree.
11881 Clear Comes_From_Source on prefix of 'Size attribute reference.
11883 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
11884 g-socthi-vxworks.adb: Change calls to
11885 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
11886 and test explicitly for non-zero return value.
11888 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
11889 (Is_Socket_In_Set): Declare imported function as returning C.int, to
11890 avoid using a derived boolean type.
11892 2004-08-09 Albert Lee <lee@gnat.com>
11894 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
11896 2004-08-09 Pascal Obry <obry@gnat.com>
11898 * gnat_ugn.texi: Document new way to build DLLs on Windows using
11899 GCC's -shared option.
11901 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
11902 Options_2 parameter (options put after object files).
11904 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
11906 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
11907 ignore overflows on low and high bounds of an index to also account for
11908 differences in signedness between sizetype and gnu_index_subtype.
11909 These are as legitimate as the ones caused by a lower TYPE_PRECISION
11912 2004-08-09 Robert Dewar <dewar@gnat.com>
11914 * s-solita.ads, s-solita.adb: Minor reformatting
11916 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
11917 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
11918 obsolescent section
11919 Add note that No_Implicit_Conditionals does not suppress
11920 run time constraint checks.
11922 * vms_conv.ads: Minor reformatting
11924 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
11925 and necessary for following change).
11926 (Mark): Return new format Mark_Id containing sec stack address
11927 (Release): Use sec stack address from Mark_Id avoiding Self call
11929 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
11930 pointer (cleanup and necessary for following change).
11931 Define Mark_Id as record containing address of secondary stack, that way
11932 Release does not need to find the stack again, decreasing the number of
11933 calls to Self and improving efficiency.
11935 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
11937 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
11938 case variable into the individual case branches when possible.
11940 * sem_ch11.adb: Minor reformatting
11942 * prj.ads: Correct spelling of suffixs
11944 * prj-nmsc.adb: Minor reformatting
11945 Correct spelling suffixs throughout (also in identifiers)
11947 * freeze.adb: Minor spelling correction
11949 * exp_ch2.adb: Cleanups to handling of Current_Value
11950 (no functional effect).
11952 * bld.adb: Correct spelling of suffixs
11954 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
11956 2004-08-09 Ed Schonberg <schonberg@gnat.com>
11960 * sem_ch7.adb (Install_Private_Declarations): In the body of the
11961 package or of a child, private entities are both immediately_visible
11964 2004-08-09 Ed Schonberg <schonberg@gnat.com>
11966 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
11967 there are no range checks on the value of the literal.
11969 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
11970 wrapped is the triggering alternative of an asynchronous select, action
11971 statements mustbe inserted before the select itself.
11973 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
11974 case where the prefix is a protected function call.
11975 (Resolve_Attribute, case 'Access): The attribute reference on a
11976 subprogram is legal in a generic body if the subprogram is declared
11979 2004-08-09 Vincent Celier <celier@gnat.com>
11981 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
11982 languages, otherwise building the library may fail with unresolved
11984 (Compile_Sources): Do not build libraries if -c switch is used
11986 * gnatlink.adb (Process_Args): New switches -M and -Mmap
11987 (Write_Usage): If map file creation is supported, output new switches
11989 (Gnatlink): When -M is specified, add the necessary switch(es) to the
11990 gcc call, when supported.
11992 * Makefile.in: Added indepsw.o to the object list for gnatlink
11993 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
11995 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
11996 indepsw.adb, indepsw.ads: New files.
11998 2004-08-09 Bernard Banner <banner@gnat.com>
12000 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
12002 * Makefile.in: add section for vxworks x86
12004 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
12006 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
12007 per-object constrained components where the discriminant is of an
12009 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
12010 the parent initialization procedure for derived Unchecked_Unions.
12011 Instead, derived Unchecked_Unions build their own initialization
12013 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
12014 Check the body of the subprogram for details.
12015 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
12016 functions for derived Unchecked_Union types by introducing a condition.
12017 Allow the creation of TSS equality functions for Unchecked_Unions.
12018 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
12019 Add formal parameter Discr to function signature. Discr is used to
12020 control the generated case statement for Unchecked_Union types.
12021 (Make_Eq_If): Rename formal parameter Node to E in function signature.
12023 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
12025 Check the body of the subprogram for details.
12026 (Expand_Composite_Equality): Augment composite type equality to include
12027 correct handling of Unchecked_Union components.
12028 (Expand_N_In): Add condition to detect illegal membership tests when the
12029 subtype mark is a constrained Unchecked_Union and the expression lacks
12030 inferable discriminants, and build a Raise_Program_Error node.
12031 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
12032 to detect types that contain components of unconstrained Unchecked_Union
12033 subtype. Add condition to detect equality between types that have an
12034 unconstrained Unchecked_Union component, and build a Raise_Program_Error
12035 node. Add condition to detect equality between Unchecked_Union types
12036 that lack inferable discriminants, and build a Raise_Program_Error node.
12037 Otherwise build a TSS equality function call.
12038 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
12039 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
12040 with the operand lacking inferable discriminants, and build a Raise_
12041 Program_Error node.
12042 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
12043 composite equality.
12044 (Has_Inferable_Discriminants): Implement new predicate for objects and
12045 expressions of Unchecked_Union type. Check the body of subprogram for
12047 (Has_Unconstrained_UU_Components): Add function
12048 Component_Is_Unconstrained_UU. It is used to detect whether a single
12049 component is of an unconstrained Unchecked_Union subtype. Add function
12050 Variant_Is_Unconstrained_UU. It is used to detect whether a single
12051 component inside a variant is of an unconstrained Unchecked_Union type.
12053 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
12054 inferred discriminant values. Add condition to generate a case
12055 statement with an inferred discriminant as the switch.
12056 (Make_Component_List_Assign): Introduce a Boolean flag that determines
12057 the behaviour of the subprogram in the presence of an Unchecked_Union.
12058 Add condition to trigger the usage of the inferred discriminant value
12059 as the generated case statement switch.
12060 (Make_Field_Assign): Introduce a Boolean flag that determines the
12061 behaviour of the subprogram in the presence of an Unchecked_Union. Add
12062 condition to trigger the usage of the inferred discriminant value as
12063 the right-hand side of the generated assignment.
12065 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
12066 parameter generation when dealing with Unchecked_Unions.
12068 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
12069 checks for Unchecked_Unions.
12071 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
12073 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
12074 Raise_Program_Error nodes for the execution of Read and Write
12075 attributes of Unchecked_Union types and the execution of Input and
12076 Output attributes of Unchecked_Union types that lack default
12077 discriminant values.
12079 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
12080 Unchecked_Union. Add procedure Check_Component. It is used to inspect
12081 per-object constrained components of Unchecked_Unions for being
12082 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
12083 check individual components withing a variant.
12085 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
12086 comparison of Unchecked_Unions.
12087 (Resolve_Equality_OP): Remove guard that prevents equality between
12090 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
12091 of component subtypes for Unchecked_Union components.
12092 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
12093 since it is the actual subtype.
12095 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
12096 pass of Unchecked_Union subtypes as generic actuals to formal types
12097 that lack known_discriminant_parts or that are derived Unchecked_Union
12098 types, and do nothing. In any other case, produce an error message.
12100 * sem_ch3.adb (Analyze_Component_Declaration): Add function
12101 Contains_POC. It determines whether a constraint uses the discriminant
12102 of an enclosing record type.
12103 Add condition to detect per-object constrained component and set the
12105 (Derived_Type_Declaration): Remove guard that prevents derivation from
12106 Unchecked_Union types.
12107 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
12110 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
12111 references to Unchecked_Union discriminants.
12113 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
12114 formal generation when dealing with Unchecked_Unions.
12115 (Set_Actual_Subtypes): Add condition to prevent generation of actual
12116 subtypes for Unchecked_Unions.
12118 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
12119 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
12120 completions of discriminated partial views by Unchecked_Unions and
12121 produce an error message.
12123 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12125 * trans.c (struct stmt_group): New field, GLOBAL.
12126 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
12127 (struct elab_info): New struct.
12128 (elab_info_list, gnu_elab_proc_stack): New variables.
12129 (Compilation_Unit_to_gnu): New procedure.
12130 (gigi): Call it and also handle elaboration procs we've saved.
12131 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
12132 global field from parent.
12133 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
12134 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
12135 (start_stmt_group): Initialize global field from parent.
12136 (add_decl_expr): Set to global for current statement group.
12137 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
12140 * utils.c (global_bindings_p): True when no current_function_decl; no
12141 longer check current_binding_level.
12143 2004-08-09 Ben Brosgol <brosgol@gnat.com>
12145 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
12148 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
12150 2004-08-06 Andreas Schwab <schwab@suse.de>
12152 * utils.c (gnat_define_builtin): Remove second parameter of
12154 (begin_subprog_body): Likewise.
12156 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
12158 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
12159 optimization, not supported by the tree-ssa back-end.
12161 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
12163 * s-mastop-irix.adb: Update comments.
12165 * a-except.adb (Exception_Information): Raise Constraint_Error if
12166 exception Id is Null_Id.
12167 This is required behavior, which is more reliably and clearly checked
12168 at the top level interface level.
12170 2004-07-26 Javier Miranda <miranda@gnat.com>
12172 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
12173 call if a component has no default_expression and the box is used.
12175 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
12176 default_expression and you use box, it behaves as if you had declared a
12177 stand-alone object.
12178 (Resolve_Record_Aggregate): If a component has no default_expression and
12179 you use box, it behaves as if you had declared a stand-alone object.
12181 * sem_ch10.adb (Install_Siblings): Do not make visible the private
12182 entities of private-with siblings.
12184 2004-07-26 Ed Schonberg <schonberg@gnat.com>
12186 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
12187 for a component of an itype, set the parent pointer for analysis,
12188 there is no list in which to insert it.
12190 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
12191 bona-fide renamings, not for inherited operations.
12193 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
12194 actual for a formal that is an access parameter, create local
12195 finalization list even if the expression is not an aggregate.
12197 2004-07-26 Ed Schonberg <schonberg@gnat.com>
12200 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
12201 Diagnose properly illegal subprogram renamings that are library units.
12203 2004-07-26 Ed Schonberg <schonberg@gnat.com>
12206 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
12207 conversion rewritten as an unchecked conversion, check that original
12208 expression is a variable.
12210 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
12211 unchecked_conversion, create new node rather than rewriting in place,
12212 to preserve original construct.
12214 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12216 * gigi.h (gnat_expand_body): Deleted.
12218 * Make-lang.in: (trans.o): Depends on function.h.
12220 * misc.c: (gnat_expand_body): Moved to here.
12222 * trans.c (gnat_expand_body_1): Deleted.
12223 (gnat_expand_body): Moved from here.
12224 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
12225 (add_stmt): Check for marked visited with global_bindings_p.
12226 (gnat_gimplify_expr, case COMPONENT_REF): New case.
12227 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
12229 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
12230 VIEW_CONVERT_EXPR if not operation type.
12232 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
12235 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
12236 changes: reformatting of negation operators, removing unneeded
12237 inequality comparison with zero, converting equality comparisons with
12238 zero to negations, changing int/0/1 to bool/false/true, replace calls
12239 to gigi_abort with abort, and various other similar changes.
12241 2004-07-26 Vincent Celier <celier@gnat.com>
12243 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
12246 * make.adb (Gnatmake): Fail when a library is not present and there is
12247 no object directory.
12249 * mlib-prj.adb (Check_Library): No need to check if the library needs
12250 to be rebuilt if there is no object directory, hence no object files
12251 to build the library.
12253 * opt.ads (Setup_Projects): New Boolean flag.
12255 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
12257 Create directory when Kind /= "" and in "gnat setup". Report error if
12258 directory cannot be created.
12259 (Ada_Check): Create library interface copy dir if it does not exist
12260 and we are in "gnat setup".
12261 (Find_Sources): No error if in "gnat setup" and no Ada sources were
12263 (Language_Independent_Check): Create object directory, exec directory
12264 and/or library directory if they do not exist and we are in
12267 * vms_conv.ads: (Command_Type): New command Setup.
12269 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
12271 * vms_data.ads: Add qualifiers/switches for new built-in command
12274 2004-07-25 Richard Henderson <rth@redhat.com>
12276 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
12277 DECL_IGNORED_P on RESULT_DECL.
12279 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
12281 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
12282 allocation and potentially overflowing update with
12283 Tailored_Exception_Information. Use the sec-stack free procedural
12284 interface to output Exception_Information instead.
12286 * a-except.adb (To_Stderr): New subprogram for character, and string
12287 version moved from a-exextr to be visible from other separate units.
12288 (Tailored_Exception_Information): Remove the procedural version,
12289 previously used by the default Last_Chance_Handler and not any more.
12290 Adjust various comments.
12292 * a-exexda.adb: Generalize the exception information procedural
12293 interface, to minimize the use of secondary stack and the need for
12294 local buffers when the info is to be output to stderr:
12295 (Address_Image): Removed.
12296 (Append_Info_Character): New subprogram, checking for overflows and
12297 outputing to stderr if buffer to fill is of length 0.
12298 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
12299 (Append_Info_Address, Append_Info_Exception_Name,
12300 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
12301 Append_Info_Basic_Exception_Traceback,
12302 Append_Info_Exception_Information): New subprograms.
12303 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
12304 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
12305 Exception_Info_Maxlength, Exception_Name_Length,
12306 Exception_Message_Length): New subprograms.
12307 (Exception_Information): Use Append_Info_Exception_Information.
12308 (Tailored_Exception_Information): Use
12309 Append_Info_Basic_Exception_Information.
12310 Export services for the default Last_Chance_Handler.
12312 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
12313 other separate units.
12315 2004-07-20 Vincent Celier <celier@gnat.com>
12317 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
12319 2004-07-20 Ed Schonberg <schonberg@gnat.com>
12321 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
12322 emit itype references for the designated types of component types that
12323 are declared outside of the full record declaration, and that may
12324 denote a partial view of that record type.
12326 2004-07-20 Ed Schonberg <schonberg@gnat.com>
12329 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
12330 which is the designated type in an access component declaration, to the
12331 list of incomplete dependents of the parent type, to avoid elaboration
12332 issues with out-of-scope subtypes.
12333 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
12334 full view of the parent.
12336 2004-07-20 Ed Schonberg <schonberg@gnat.com>
12339 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
12340 entities that are hidden, such as references to generic actuals
12341 outside an instance.
12343 2004-07-20 Javier Miranda <miranda@gnat.com>
12345 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
12346 support to the new notation.
12347 (Analyze_Selected_Component): Add call to Try_Object_Operation.
12349 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
12351 * s-taprob.adb: Adding the elaboration code required for initializing
12352 the tasking soft links that are common to the full and the restricted
12355 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
12356 restricted run time has been moved to the package
12357 System.Soft_Links.Tasking.
12359 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
12360 restricted run time has been moved to the package
12361 System.Soft_Links.Tasking.
12363 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
12365 * s-solita.ads, s-solita.adb: New files.
12367 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12369 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
12370 Case_Statement_to_gnu): Split off from gnat_to_gnu.
12371 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
12372 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
12373 Exception_Handler_to_gnu_zcx): Likewise.
12375 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
12377 * gigi.h (builtin_function): Declare.
12379 2004-07-15 Robert Dewar <dewar@gnat.com>
12381 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
12384 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
12385 access values as an example of a warning.
12387 * gnat_rm.texi: Document new attribute Has_Access_Values
12389 * gnat-style.texi: Document that box comments belong on nested
12392 * sem_util.ads (Has_Access_Values): Improved documentation
12394 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
12396 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
12397 (Process_Interface_Name): Call to this new procedure
12398 (Set_Extended_Import_Export_External_Name): Call to this new procedure
12400 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
12402 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
12404 * einfo.ads: Minor comment typo fixed
12406 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
12408 * snames.adb: Add _atcb.
12410 * snames.ads: Add Name_uATCB.
12412 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
12413 (in the expanded code) when using the restricted run time.
12415 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
12416 a in parameter in order to allow ATCBs to be preallocated (in the
12419 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
12420 order to allow ATCBs to be preallocated. In case of error, the ATCB is
12421 deallocated in System.Tasking.Stages.
12423 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
12424 order to allow ATCBs to be preallocated.
12426 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
12427 here. It was previously done in Initialize_ATCB.
12429 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
12431 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
12432 Restricted run time.
12434 * exp_ch3.adb: When using the Restricted run time, pass the
12435 preallocated Ada_Task_Control_Block when creating a task.
12437 2004-07-15 Ed Schonberg <schonberg@gnat.com>
12439 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
12440 function call that is itself an actual in an enclosing call, diagnose
12441 problem here rather than assuming that resolution will catch it.
12443 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
12444 the local copy of a generic unit for a formal package, and the generic
12445 is a child unit, install private part of ancestors before compiling
12446 private part of spec.
12448 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
12449 use scope entities rather than tree structures, to handle properly
12450 parent units that are instances rewritten as bodies for inlining
12453 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
12454 Remove_Parents): Handle properly a parent unit that is an
12455 instantiation, when the unit has been rewritten as a body for inlining
12458 * par.adb (Goto_List): Global variable to collect goto statements in a
12459 given unit, for use in detecting natural loops.
12461 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
12462 use in detecting natural loops.
12464 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
12465 backwards goto's, and rewrite as a infinite loop, to improve locality
12468 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
12469 subcomponent that includes an indexed reference, to prevent the
12470 generation of copies that would miscompile the desired assignment
12472 (Build_Task_Image_Decls): Add a numeric suffix to
12473 generated name for string variable, to avoid spurious conflicts with
12474 the name of the type of a single protected object.
12476 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
12477 loop with an explicit exit statement, to avoid generating an
12478 out-of-range value with 'Succ leading to spurious constraint_errors
12479 when compiling with -gnatVo.
12481 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
12483 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
12484 might not be analyzed yet, even if its Etype is already set (case of an
12485 unchecked conversion built using Unchecked_Convert_To, for example).
12486 If the prefix has already been analyzed, this will be a nop anyway.
12488 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
12489 controller type, or an assignment of a record type with controlled
12490 components, copy only user data, and leave the finalization chain
12491 pointers untouched.
12493 2004-07-15 Vincent Celier <celier@gnat.com>
12495 * make.adb (Collect_Arguments): Improve error message when attempting
12496 to compile a source not part of any project, when -x is not used.
12498 * prj.ads: (Defined_Variable_Kind): New subtype
12500 * prj-attr.adb (Register_New_Package): Two new procedures to register
12501 a package with or without its attributes.
12502 (Register_New_Attribute): Mew procedure to register a new attribute in a
12504 New attribute oriented subprograms: Attribute_Node_Id_Of,
12505 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
12506 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
12508 New package oriented subprograms: Package_Node_Id_Of,
12509 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
12511 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
12513 (Package_Node_Id): Now a private, self initialized type
12514 (Register_New_Package): New procedure to register a package with its
12516 New attribute oriented subprograms: Attribute_Node_Id_Of,
12517 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
12518 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
12520 New package oriented subprograms: Package_Node_Id_Of,
12521 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
12523 * prj-dect.adb (Parse_Attribute_Declaration,
12524 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
12526 * prj-makr.adb (Make): Parse existing project file before creating
12527 other files. Fail if there was an error during parsing.
12529 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
12530 new spec of Prj.Attr.
12532 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
12533 to new spec of Prj.Attr.
12535 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12537 * utils2.c: Fix typo in comment.
12539 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12541 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
12542 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
12544 2004-07-14 Andreas Schwab <schwab@suse.de>
12546 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
12548 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12550 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
12552 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
12555 * misc.c (gnat_types_compatible_p): New function.
12556 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
12557 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
12559 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
12560 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
12561 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
12562 (mark_visited): Don't mark dummy type.
12563 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
12564 parameter, we must remove any LJM building from GNU_NAME.
12565 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
12566 (pos_to_constructor): Use int_const_binop.
12567 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
12570 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
12571 (gnat_pushlevel): Set TREE_USE on BLOCK node.
12572 (gnat_install_builtins): Add __builtin_memset.
12574 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
12576 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
12577 for a renaming, stabilize the initialization expression if we are at a
12578 local level. At the local level, uses of the renaming may be performed
12579 by a direct dereference of the initializing expression, and we don't
12580 want possible variables there to be evaluated for every use.
12582 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
12583 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
12584 them on the way. Account for the fact that we may introduce side
12585 effects in the process.
12587 2004-07-13 Richard Henderson <rth@redhat.com>
12589 * misc.c (default_pass_by_ref): Use pass_by_reference.
12591 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
12593 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
12594 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
12596 2004-07-08 Richard Henderson <rth@redhat.com>
12598 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
12601 2004-07-06 Vincent Celier <celier@gnat.com>
12603 * vms_conv.ads: Minor reformatting.
12604 Alphabetical order for enumerated values of type Command_Type, to have
12605 the command in alphabetical order for the usage.
12607 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
12608 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
12610 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
12612 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
12613 (Add_Archive_Path): Only add the global archive if there is one.
12614 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
12615 or not any object file to put in the global archive, and don't build
12616 a global archive if there is none.
12617 (X_Switches): New table
12618 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
12619 in the X_Switches table, if any.
12620 (Initialize): Make sure the X_Switches table is empty
12621 (Scan_Arg): Record -X switches in table X_Switches
12623 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
12625 * make.adb: Minor comment fix
12627 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
12628 invoked with directory information, add the directory in front of the
12631 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
12632 invoked with directory information, add the directory in front of the
12635 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
12636 when Keep_Temporary_Files is False.
12637 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
12638 directory information, add the directory in front of the path.
12639 When not on VMS, handle new switch -dn before the command to set
12640 Keep_Temporary_Files to True.
12641 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
12644 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
12645 invoked with directory information, add the directory in front of the
12648 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
12650 * snames.ads, snames.adb (Name_Stub): New name for the distributed
12653 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
12654 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
12656 * g-socket.adb (To_Timeval): Fix incorrect conversion of
12657 Selector_Duration to Timeval for the case of 0.0.
12659 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
12660 documentation from Evolve_And_Then.
12662 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
12664 * s-taprop-tru64.adb, s-taprop-os2.adb,
12665 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
12667 2004-07-06 Robert Dewar <dewar@gnat.com>
12669 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
12670 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
12671 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
12672 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
12673 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
12674 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
12675 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
12676 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
12677 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
12678 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
12679 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
12680 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
12681 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
12682 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
12683 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
12684 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
12685 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
12686 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
12687 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
12688 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
12689 vms_data.ads: Minor reformatting,
12690 Fix bad box comment format.
12692 * gnat_rm.texi: Fix minor grammatical error
12694 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
12696 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
12697 more cases of discriminated records to be recognized as not needing a
12699 (Has_Access_Values): New function.
12701 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
12703 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
12704 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
12705 with LRM terminology).
12706 Change terminology in comments primitive type => elementary type.
12708 2004-07-06 Ed Schonberg <schonberg@gnat.com>
12711 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
12712 parameters do not impose any requirements on the presence of a body.
12714 2004-07-06 Ed Schonberg <schonberg@gnat.com>
12717 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
12718 compilation unit and is in an open scope at the point of instantiation,
12719 assume that a body may be present later.
12721 2004-07-06 Ed Schonberg <schonberg@gnat.com>
12723 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
12724 Improve error message when specified size is not supported.
12726 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
12727 is never a primitive operation.
12729 2004-07-05 Andreas Schwab <schwab@suse.de>
12731 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
12732 RECORD_OR_UNION_CHECK.
12733 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
12735 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
12737 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
12738 dependency on xgnatugn, instead build it via a submake.
12739 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
12741 2004-07-04 Richard Henderson <rth@redhat.com>
12743 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
12745 2004-07-01 Richard Henderson <rth@redhat.com>
12747 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
12748 * utils.c (max_size): Likewise.
12750 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12752 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
12753 and rest_of_type_compilation; add arg to create_*_decl.
12754 (annotate_decl_with_node): Deleted.
12755 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
12756 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
12757 (get_current_block_context, gnat_pushdecl): New declarations.
12758 (gnat_init_stmt_group): Likewise.
12759 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
12760 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
12761 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
12762 (gnat_init): Call gnat_init_stmt_group.
12763 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
12764 (gnu_pending_elaboration_list): Deleted.
12765 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
12766 (gigi): Rearrange initialization calls and move some to last above.
12767 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
12768 Delete calls to add_decl_expr; add arg to create_*_decl.
12769 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
12770 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
12771 begin_subprog_body and call it.
12772 Don't push and pop ggc context.
12773 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
12774 (add_stmt): Remove handling of DECL_EXPR from here.
12775 If not in function, mark visited.
12776 (add_decl_expr): Put global at top level.
12777 Check for cases of DECL_INITIAL we have to handle here.
12778 (process_type): Add extra arg to create_type_decl.
12779 (build_unit_elab): Rework to just gimplify.
12780 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
12781 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
12782 (get_pending_elaborations, pending_elaborations_p): Likewise.
12783 (push_pending_elaborations, pop_pending_elaborations): Likewise.
12784 (get_elaboration_location, insert_elaboration_list): Likewise.
12785 (gnat_binding_level): Renamed from ada_binding_level.
12786 (init_gnat_to_gnu): Don't clear pending_elaborations.
12787 (global_bindings_p): Treat as global if no current_binding_level.
12788 (set_current_block_context): New function.
12789 (gnat_pushdecl): Renamed from pushdecl; major rework.
12790 All callers changed.
12791 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
12792 (finish_record_type): Call call pushdecl for stub decl.
12793 (function_nesting_depth): Deleted.
12794 (begin_subprog_body): Delete obsolete code.
12795 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
12797 2004-06-28 Robert Dewar <dewar@gnat.com>
12799 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12800 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
12801 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
12802 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
12803 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
12805 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
12806 deal with problem of inefficient slices on machines with strict
12807 alignment, when the slice is a component of a composite.
12809 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
12810 machines, we need the check there as well.
12812 2004-06-28 Ed Schonberg <schonberg@gnat.com>
12814 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
12815 determine safe copying direction for overlapping slice assignments
12816 when component is controlled.
12818 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
12819 formal derived type in the actual for a formal package are visible in
12820 the enclosing instance.
12822 2004-06-28 Ed Schonberg <schonberg@gnat.com>
12825 * sem_util.adb (Trace_Components): Diagnose properly an illegal
12826 circularity involving a private type whose completion includes a
12827 self-referential component.
12828 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
12829 renaming or an instantiation from an implicit derived operation.
12831 2004-06-28 Pascal Obry <obry@gnat.com>
12833 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
12835 (Library_File_Name_For): Idem.
12837 2004-06-28 Matthew Gingell <gingell@gnat.com>
12839 * g-traceb.ads: Add explanatory note on the format of addresses
12840 expected by addr2line.
12842 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
12844 * Makefile.in: Force debugging information on s-tasdeb.adb,
12845 a-except.adb and s-assert.adb needed by the debugger.
12847 2004-06-28 Vincent Celier <celier@gnat.com>
12849 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
12853 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
12855 * prj.adb: Minor reformatting
12856 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
12858 * prj.ads: Comment updates
12860 (Project_Data): Change Flag1 to Need_To_Build_Lib.
12861 Remove Flag2: not used.
12863 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
12866 * gnat_ugn.texi: Put a "null;" declaration in one project file example
12868 * gnat_rm.texi: Document Empty declarations "null;".
12870 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
12871 front of the linker options.
12872 (Link_Foreign): Put the global archives and the libraries in front of
12873 the linker options.
12875 2004-06-28 Javier Miranda <miranda@gnat.com>
12877 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
12878 (RTU_Loaded): Code cleanup
12879 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
12880 withed predefined units.
12882 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
12883 explicitly withed predefined units.
12884 Fix typo in comment
12886 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
12887 explicitly withed predefined units.
12889 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12891 * ada-tree.def (DECL_STMT): Deleted.
12892 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
12893 (DECL_STMT_VAR): Deleted.
12894 * decl.c: add_decl_stmt now add_decl_expr.
12895 * gigi.h: Likewise.
12896 * trans.c: Likewise.
12897 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
12898 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
12899 (add_stmt): Only handle padded type here.
12900 (add_stmt_with_node): Allow gnat_node to not be present.
12901 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
12902 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
12903 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
12904 make a SAVE_EXPR for the entire fat pointer.
12905 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
12906 (create_index_type): Make a DECL_EXPR.
12907 (end_subprog_body): Don't call allocate_struct_function here but
12910 2004-06-25 Pascal Obry <obry@gnat.com>
12912 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
12913 Relocatable from Build_Dynamic_Library call.
12915 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
12916 Relocatable are now synonym.
12918 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
12920 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
12921 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
12924 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
12925 Lib_Address and Relocatable.
12926 (Default_DLL_Address): Removed.
12928 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12929 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
12930 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
12931 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
12932 (Default_DLL_Address): Removed.
12934 * mlib-tgt-mingw.adb: Ditto.
12935 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
12937 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
12938 the initial thread stack size.
12940 * a-strmap.ads: Move package L to private part as it is not used in
12941 the spec. Found while reading code.
12943 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
12945 * tracebak.c: Introduce support for a GCC infrastructure based
12946 implementation of __gnat_backtrace.
12948 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
12949 any more. Use accessors instead. This eases maintenance and relaxes
12950 some alignment constraints.
12951 (_GNAT_Exception structure): Remove the Ada specific fields
12952 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
12954 (is_handled_by, __gnat_eh_personality): Replace component references to
12955 exception structure by use of the new accessors.
12957 * init.c (__gnat_initialize): Adjust comments to match the just
12958 reverted meaning of the -static link-time option.
12960 * adaint.c (convert_addresses): Arrange not to define a stub for
12961 mips-irix any more, as we now want to rely on a real version from a
12962 recent libaddr2line.
12964 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
12965 the personality routine can use them and not have to rely on a C
12966 counterpart of the record anymore. This simplifies maintenance and
12967 relaxes the constraint of having Standard'Maximum_Alignment match
12969 Update comments, and add a section on the common header alignment issue.
12971 2004-06-25 Geert Bosch <bosch@gnat.com>
12973 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
12974 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
12976 2004-06-25 Robert Dewar <dewar@gnat.com>
12978 * gnat_rm.texi: Fix section on component clauses to indicate that the
12979 restriction on byte boundary placement still applies for bit packed
12981 Add comment on stack usage from Initialize_Scalars
12983 * gnat_ugn.texi: Add documentation for -gnatyLnnn
12985 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
12986 limiting nesting level.
12988 * usage.adb: Add line for -gnatyLnnn switch
12990 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
12991 sem_ch13.adb, exp_aggr.adb: Minor reformatting
12993 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
12994 type as well as on the subtype. This corrects a problem in freeze in
12995 setting alignments of atomic types.
12997 * sem_eval.ads: Minor comment typo fixed
12999 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
13000 level. Minor reformatting.
13002 * fname.adb (Is_Predefined_File_Name): Require a letter after the
13003 minus sign. This means that file names like a--b.adb will not be
13004 considered predefined.
13006 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
13007 record Test new flag and give diagnostic for bad component clause.
13008 (Freeze_Entity): Set alignment of array from component alignment in
13009 cases where this is safe to do.
13011 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
13014 * cstand.adb: (Create_Standard): Set alignment of String to 1
13016 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
13018 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
13019 code in the common constrained array cases.
13021 * a-storio.adb: Change implementation to avoid possible alignment
13022 problems on machines requiring strict alignment (data should be moved
13023 as type Buffer, not type Elmt).
13025 * checks.adb (Apply_Array_Size_Check): Improve these checks by
13026 killing the overflow checks which we really do not need (64-bits is
13029 2004-06-25 Vincent Celier <celier@gnat.com>
13031 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
13032 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
13033 inconditionally for the main project.
13034 (Recursive_Add_Archives.Add_Archive_Path): New procedure
13035 (Link_Executables.Check_Time_Stamps): New procedure
13036 (Link_Executables.Link_Foreign): New procedure
13037 Changes made to reduce nesting level of this package
13038 (Check): New procedure
13039 (Add_Switches): When not in quiet output, check that a switch is not
13040 the concatenation of several valid switches. If it is, issue a warning.
13041 (Build_Global_Archive): If the global archive is rebuilt, linking need
13043 (Compile_Sources): Rebuilding a library archive does not imply
13044 rebuilding the global archive.
13045 (Build_Global_Archive): New procedure
13046 (Build_Library): New name for Build_Archive, now only for library
13048 (Check_Archive_Builder): New procedure
13049 (Create_Global_Archive_Dependency_File): New procedure
13050 (Gprmake): Call Build_Global_Archive before linking
13051 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
13053 (Scan_Arg): Display the Copyright notice when -v is used
13055 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
13058 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
13060 Add new GNAT LIST qualifier /FILES=
13061 Added qualifier /DIRECTORY= to GNAT METRIC
13062 Added qualifier /FILES= to GNAT METRIC
13063 Added qualifier /FILES to GNAT PRETTY
13065 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
13066 to take into account both versions of the switch.
13068 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
13069 always be the last switch to the gcc driver. Disable switch storing so
13070 that switches automatically added by the gcc driver are not put in the
13073 * prj.adb (Project_Empty): Take into account changes in components of
13076 * prj.ads (Languages_Processed): New enumaration value All_Languages.
13078 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
13079 used. Split Boolean component Ada_Sources_Present in two Boolean
13080 components Ada_Sources_Present and Other_Sources_Present.
13083 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
13084 instead of Sources_Present.
13085 (Set_Ada_Paths.Add.Recursive_Add): Ditto
13087 * prj-nmsc.adb: Minor reformatting
13088 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
13089 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
13090 Check_Ada_Naming_Scheme.
13091 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
13094 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
13096 Make sure that all cycles where there is at least one "limited with"
13098 (Parse_Single_Project): New Boolean parameter In_Limited
13100 * prj-proc.adb (Recursive_Check): When Process_Languages is
13101 All_Languages, call first Prj.Nmsc.Ada_Check, then
13102 Prj.Nmsc.Other_Languages_Check.
13104 * prj-proc.adb (Process): Use Ada_Sources_Present or
13105 Other_Sources_Present (instead of Sources_Present) depending on
13108 * lang-specs.h: Keep -g and -m switches in the same order, and as the
13111 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
13112 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
13114 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
13117 * lib.ads (Disable_Switch_Storing): New procedure.
13119 * make.adb: Modifications to reduce nesting level of this package.
13120 (Check_Standard_Library): New procedure
13121 (Gnatmake.Check_Mains): New procedure
13122 (Gnatmake.Create_Binder_Mapping_File): New procedure
13123 (Compile_Sources.Compile): Add switch -gnatez as the last option
13124 (Display): Never display -gnatez
13126 * Makefile.generic:
13127 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
13129 * gnatcmd.adb (Check_Project): New function
13130 (Process_Link): New procedure to reduce nesting depth
13131 (Check_Files): New procedure to reduce the nesting depth.
13132 For GNAT METRIC, include the inherited sources in extending projects.
13133 (GNATCmd): When GNAT LS is invoked with a project file and no files,
13134 add the list of files from the sources of the project file. If this list
13135 is too long, put it in a temp text files and use switch -files=
13136 (Delete_Temp_Config_Files): Delete the temp text file that contains
13137 a list of source for gnatpp or gnatmetric, if one has been created.
13138 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
13139 in the project file is too large, create a temporary text file that
13140 list them and pass it to the tool with "-files=<temp text file>".
13141 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
13143 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
13144 generated file is in not in Ada.
13146 * gnatls.adb: Remove all parameters And_Save that are no longer used.
13147 (Scan_Ls_Arg): Add processing for -files=
13148 (Usage): Add line for -files=
13150 * g-os_lib.adb (On_Windows): New global constant Boolean flag
13151 (Normalize_Pathname): When on Windows and the path starts with a
13152 directory separator, make sure that the resulting path will start with
13155 * clean.adb (Clean_Archive): New procedure
13156 (Clean_Project): When there is non-Ada code, delete the global archive,
13157 the archive dependency files, the object files and their dependency
13158 files, if they exist.
13159 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
13161 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
13163 * sinfo.ads: Fix typo in comment.
13165 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
13166 the TSS for remote access-to-subprogram types, since these TSS are
13167 always present once the type has been analyzed.
13168 (RAS_E_Dereference): Same.
13170 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
13171 reference raises Bad_Attribute, mark the reference as analyzed so the
13172 node (and any children resulting from rewrites that could have occurred
13173 during the analysis that ultimately failed) is not analyzed again.
13175 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
13177 * exp_dist.adb: Minor comment fix.
13179 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
13180 type is an anonymous access type, no unchecked deallocation of the
13181 allocated object can occur. If the object is controlled, attach it with
13182 a count of 1. This allows attachment to the Global_Final_List, if
13183 no other relevant list is available.
13184 (Get_Allocator_Final_List): For an anonymous access type that is
13185 the type of a discriminant or record component, the corresponding
13186 finalisation list is the one of the scope of the type.
13188 2004-06-25 Ed Schonberg <schonberg@gnat.com>
13190 * sem_ch3.adb (Replace_Type): When computing the signature of an
13191 inherited subprogram, use the first subtype if the derived type
13192 declaration has no constraint.
13194 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
13195 before applying previous optimization. Minor code cleanup.
13197 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
13198 placed at the beginning of an unpacked record without explicit
13199 alignment, a slice of it will be aligned and does not need a copy when
13202 2004-06-25 Ed Schonberg <schonberg@gnat.com>
13206 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
13207 reference is written with expressions mimicking parameters.
13209 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
13212 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
13213 STEP 2a. The constraints of a full type declaration of a derived record
13214 type are checked for conformance with those declared in the
13215 corresponding private extension declaration. The message
13216 "not conformant with previous declaration" is emitted if an error is
13219 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
13221 * g-traceb.ads: Document the need for -E binder switch in the spec.
13223 * g-trasym.ads: Document the need for -E binder switch in the spec.
13225 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
13227 * sem_prag.adb: Add handling of pragma Detect_Blocking.
13229 * snames.h, snames.ads, snames.adb: Add entry for pragma
13232 * s-rident.ads: Change reference to pragma Detect_Blocking.
13234 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
13237 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
13238 to indicate whether pragma Detect_Blocking is active.
13240 * par-prag.adb: Add entry for pragma Detect_Blocking.
13242 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
13243 of not handling WITH.
13244 Note that this replaces the previous update which was incorrect.
13246 2004-06-25 Javier Miranda <miranda@gnat.com>
13248 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
13249 use-clauses to have a clean environment.
13251 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
13252 the installation of the use-clauses to stablish a clean environment in
13253 case of compilation of a separate unit; otherwise the call to
13254 use_one_package is protected by the barrier Applicable_Use.
13256 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
13257 the installation of the use-clauses to stablish a clean environment in
13258 case of compilation of a separate unit.
13259 (End_Use_Clauses): Minor comment cleanup.
13261 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
13263 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
13265 2004-06-23 Richard Henderson <rth@redhat.com>
13267 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
13269 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13271 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
13272 now bool instead of int.
13273 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
13274 * trans.c (gnu_switch_label_stack): New function.
13275 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
13276 elaboration of renamed entity returns.
13277 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
13278 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
13279 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
13280 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
13281 DECL_SIZE_UNIT and simplify variable-sized case.
13282 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
13283 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
13284 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
13285 (build_unit_elab): Disable for now.
13286 * utils.c (mark_visited): New function.
13287 (pushdecl): Walk tree to call it for global decl.
13288 (update_pointer_to): Update all variants of pointer and ref types.
13289 Add arg to COMPONENT_REF.
13290 (convert): Likewise.
13291 Move check for converting between variants lower down.
13292 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
13293 (build_allocator): Don't force type of MODIFY_EXPR.
13294 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
13295 put_var_into_stack.
13297 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13299 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
13300 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
13301 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
13303 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
13304 all callers changed.
13305 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
13306 the way that EXIT_STMT finds the loop label.
13307 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
13308 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
13309 (add_stmt): Use annotate_with_locus insted of setting directly.
13310 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
13311 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
13312 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
13313 (build_vms_descriptor): Add extra args to ARRAY_REF.
13314 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
13315 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
13317 (build_binary_op): Don't make explicit CONVERT_EXPR.
13318 Add extra rgs to ARRAY_REF.
13320 2004-06-14 Pascal Obry <obry@gnat.com>
13322 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
13323 Windows. Fix minor typo.
13325 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
13326 which is now supported on Windows. With this implementation using the
13327 Library Project feature is no different on Windows than on UNIX.
13329 2004-06-14 Vincent Celier <celier@gnat.com>
13331 * makegpr.adb (Compile_Sources): Nothing to do when there are no
13334 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
13336 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
13337 found, show the project name and the path of the previously parsed
13340 2004-06-14 Ed Schonberg <schonberg@gnat.com>
13342 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
13343 array, avoid copying the actual before the call.
13345 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
13347 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
13348 Instead, allocate memory on worst-case alignment assumptions, and then
13349 return an aligned address within the allocated zone.
13351 2004-06-14 Robert Dewar <dewar@gnat.com>
13353 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
13354 elab entities in predefined units in No_Run_Time_Mode.
13355 (Gen_Adainit_C): Same fix
13356 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
13357 units in No_Run_Time_Mode
13358 (Gen_Elab_Calls_C): Same fix
13360 * symbols-vms-alpha.adb: Minor reformatting
13362 * g-debpoo.ads: Minor reformatting
13364 * lib.adb (In_Same_Extended_Unit): Version working on node id's
13366 * lib.ads (In_Same_Extended_Unit): Version working on node id's
13368 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
13371 * make.adb: Minor reformatting
13373 * par-ch12.adb: Minor reformatting
13375 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
13377 * prj-strt.adb: Minor reformatting
13379 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
13382 * sem_attr.adb: Minor reformatting
13384 * sem_ch7.adb: Minor reformatting
13386 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
13387 for type in the same unit as the object declaration.
13389 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
13390 static string expressions and not just string literals.
13392 (Set_Warning): Reset restriction warning flag for restriction pragma
13393 Implement pragma Profile_Warnings
13394 Implement pragma Profile (Restricted)
13395 Give obolescent messages for old restrictions and pragmas
13397 * snames.h, snames.ads, snames.adb: Add new entry for pragma
13400 * s-rident.ads: Add declarations for restrictions required by profile
13401 Restricted and profile Ravenscar.
13403 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
13405 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
13406 configuration pragmas.
13408 2004-06-11 Vincent Celier <celier@gnat.com>
13410 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
13411 gnatsym, when symbol policy is Restricted.
13413 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
13414 gnatsym, when symbol policy is Restricted.
13416 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
13417 read the symbol file.
13418 (Finalize): Fail in symbol policy Restricted if a symbol in the original
13419 symbol file is not in the object files. Do not create a new symbol file
13420 when symbol policy is Restricted.
13422 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
13425 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
13427 (Usage): Line for new switch -R
13429 * make.adb (Initialize): When the platform is not VMS, add the
13430 directory where gnatmake is invoked in the front of the path, if
13431 gnatmake is invoked with directory information. Change the Scan_Args
13432 while loop to a for loop.
13433 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
13434 if Depth is equal or greater than the proposed depth, there is nothing
13436 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
13439 * prj.ads: Add new symbol policy Restricted.
13441 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
13442 with the new parameters Check_All_Labels and Case_Location.
13444 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
13445 (Library_Symbol_File needs to be defined).
13447 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
13448 and Case_Location If Check_All_Labels is True, check that all values of
13449 the string type are used, and output warning(s) if they are not.
13451 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
13454 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
13456 * gnat_ugn.texi: Update documentation about the library directory in
13459 * makegpr.adb (Display_Command): In verbose mode, also display the
13460 value of the CPATH env var, when the compiler is gcc.
13461 (Initialize): Change the Scan_Args while loop to a for loop
13462 (Compile_Individual_Sources): Change directory to object directory
13463 before compilations.
13465 * symbols.ads: New symbol policy Restricted.
13467 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
13469 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
13470 is now taken care of internally in the Exception_Propagation package
13471 and does not require clients assistance any more.
13473 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
13474 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
13475 functions. Helpers to maintain a predicate required in the handling of
13476 occurrence transfer between tasks.
13477 This is now handled internally and does not require clients assistance
13478 for the setup/propagate separation anymore.
13479 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
13480 allocation strategy, handle the Setup_And_Not_Propagated predicate and
13483 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
13484 raise_after_setup, now that everything is handled internally within the
13485 setup/propagation engine.
13487 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
13489 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
13490 Add additional conditions for the case of an actual being a simple
13491 name or literal. Improve inlining by preventing the generation
13492 of temporaries with a short lifetime (one use).
13494 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
13498 * einfo.ads: Minor comment updates for Has_Completion and
13499 E_Constant list of flags.
13501 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
13502 and constant redeclarations now set the Has_Completion flag of their
13503 defining identifiers.
13505 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
13506 Inspect_Deferred_Constant_Completion.
13507 Used to detect private deferred constants that have not been completed
13508 either by a constant redeclaration or pragma Import. Emits error message
13509 "constant declaration requires initialization expression".
13511 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
13512 completes a deferred constant.
13514 2004-06-11 Geert Bosch <bosch@gnat.com>
13516 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
13518 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
13519 calculating exponent for scaling denormal numbers.
13520 (Leading_Part): Properly raise Constraint_Error for zero or negative
13522 (Remainder): Properly raise Constraint_Error for zero divisor.
13524 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
13526 * sem_util.adb: Minor reformatting.
13528 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
13529 dereference when accessing the entry parameter record.
13530 (Check_Array_Type): Always check for possible implicit dereference.
13531 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
13532 Abort if a pointer is still present (denoting that an implicit
13533 dereference was left in the tree by the front-end).
13535 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
13536 dereference when accessing the entry parameter record.
13537 (Check_Array_Type): Always check for possible implicit dereference.
13538 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
13539 Abort if a pointer is still present (denoting that an implicit
13540 dereference was left in the tree by the front-end).
13542 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
13544 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
13545 message, like the compiler itself does. Easier to parse the output.
13547 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
13549 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
13550 be base names, and not includes directories.
13552 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
13554 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
13555 so that dependencies are properly taken into account by make.
13557 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
13560 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
13561 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
13563 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
13565 * Makefile.in (install-gnatlib): install target-specific run-time files.
13567 * Make-lang.in: Remove obsolete targets.
13569 2004-06-11 Ed Schonberg <schonberg@gnat.com>
13571 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
13572 specification, to catch misuses of program unit names.
13574 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
13575 superfluous conversions in an instance.
13577 2004-06-11 Ed Schonberg <schonberg@gnat.com>
13581 * sem_ch12.adb (Save_References): If operator node has been folded to
13582 enumeration literal, associated_node must be discarded.
13584 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
13586 * s-stchop-vxworks.adb: Add required pragma Convention to
13587 Task_Descriptor because it is updated by a C function.
13589 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
13593 * Makefile.in: Remove target specific SO_OPT on IRIX
13595 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13597 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
13598 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
13599 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
13600 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
13601 (STMT_STMT, USE_STMT): New statement codes.
13602 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
13603 * ada-tree.h: Reflect above changes.
13604 (struct tree_loop_id): Deleted.
13605 (union lang_tree_node, struct lang_decl, struct lang_type):
13606 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
13607 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
13608 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
13609 (IS_ADA_STMT): New macro.
13610 * decl.c (annotate_decl_with_node): New function.
13611 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
13612 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
13613 Call add_stmt_with_node to do needed assignments.
13614 Add call to update setjmp buffer directly, not via EXPR_STMT.
13615 (maybe_variable): Argment GNAT_NODE deleted.
13616 * gigi.h (maybe_variable): Likewise.
13617 (make_transform, add_stmt_with_node, set_block_for_group): New.
13618 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
13619 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
13620 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
13621 (set_lineno, set_lineno_from_sloc): Likewise.
13622 (record_code_position, insert_code_for): Likewise.
13623 (gnat_poplevel): Now returns void.
13624 (end_subprog_body): Now takes argument.
13625 * misc.c (cgraph.h, tree-inline.h): New includes.
13626 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
13627 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
13628 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
13629 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
13630 (gnat_parse_file): Don't set immediate_size_expand.
13631 Call cgraph functions.
13632 (gnat_expand_expr): Remove most cases.
13633 (record_code_position, insert_code_for): Remove from here.
13634 * trans.c (toplev.h, tree-gimple.h): Now included.
13635 (discard_file_names): Deleted.
13636 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
13637 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
13638 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
13639 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
13640 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
13641 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
13642 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
13643 (set_block_for_group, add_stmt_list): Likewise.
13644 (start_stmt_group): Renamed from start_block_stmt.
13645 (end_stmt_group): Likewise, from end_block_stmt.
13646 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
13647 (gigi): Don't set discard_file_names or call set_lineno.
13648 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
13649 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
13650 Numerous changes throughout to reflect new names and complete
13651 function-at-a-time implementation.
13652 (gnat_expand_stmt): Delete or comment out all cases.
13653 (process_inlined_subprograms): Use add_stmt.
13654 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
13655 call set_lineno; also remove unneeded block handling.
13656 (process_type): Remove unneeded block handling.
13657 (build_unit_elab): Remove calls to deleted functions.
13658 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
13659 (tree-dump.h): Likewise.
13660 (struct ada_binding_level): Add field jmpbuf_decl.
13661 (gnat_define_builtin, gnat_install_builtins): New.
13662 (gnat_gimplify_function, gnat_finalize): Likewise.
13663 (gnat_poplevel): No longer return BLOCK, set it instead.
13664 Remove code dealing with nested functions.
13665 (gnat_init_decl_processing): Also set size_type_node.
13666 Call gnat_install_builtins.
13667 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
13668 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
13669 Remove special-case for "main".
13670 (end_subprog_body): Add arg and rework for tree-ssa.
13671 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
13672 Add case for BOOLEAN_TYPE.
13673 * utils2.c (rtl.h): Now include.
13674 (build_call_raise): Test Debug_Flag_NN directly.
13675 (build_call_alloc_dealloc): Don't use local stack allocation for now.
13676 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
13677 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
13679 2004-06-07 Robert Dewar <dewar@gnat.com>
13681 * a-direct.ads, einfo.ads: Minor comment updates
13683 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
13684 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
13685 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
13686 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
13687 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
13689 * s-interr-sigaction.adb: Remove unreferenced variable
13690 (Attached_Interrupts). Minor reformatting.
13691 Avoid use of variable I (replace by J).
13693 * par-ch10.adb: Fix text of one error message
13695 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
13696 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
13697 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
13698 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
13699 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
13700 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
13701 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
13702 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
13703 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
13704 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
13705 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
13708 2004-06-07 Doug Rupp <rupp@gnat.com>
13710 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
13712 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
13714 * mlib-tgt-vms-ia64.adb: New file.
13716 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
13717 Add mlib-tgt-vms-ia64.adb
13718 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
13719 Move to alpha specific ifeq section.
13720 Add VMS specific versions of symbols.adb
13721 Renaming of 5q vms files.
13723 * 5qsystem.ads renamed to system-vms_64.ads.
13725 2004-06-07 Vincent Celier <celier@gnat.com>
13727 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
13728 explain that when a time of day corresponding to the non existing hour
13729 on the day switching to DST is specified, Split may return a different
13732 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
13735 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
13736 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
13738 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
13740 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
13741 the linking options.
13742 (Build_Library.Check_Libs): On VMS, if there is a dependency on
13743 g-trasym.ads, set Gtrasymobj_Needed to True.
13745 * prj-attr.adb: Add new package Metrics for gnatmetric
13747 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
13748 canonical case to take into account files with upper case characters on
13750 (Ada_Check): Load the reference symbol file name in the name buffer to
13751 check it, not the symbol file name.
13753 * snames.ads, snames.adb: Add standard name Metrics (name of project
13754 file package for gnatmetric).
13756 * vms_conv.ads: Add Metric to Comment_Type
13758 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
13760 * vms_data.ads: Add qualifiers for GNAT METRIC
13762 * makegpr.adb (Link_Executables): Take into account the switches
13763 specified in package Linker of the main project.
13765 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
13767 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
13768 the index of the last element is Units.Last, not Units.Table'Last
13769 (which is usually not a valid index within the actually allocated
13770 storage for the table).
13772 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
13773 determines whether to generate a call to a checked storage pool
13774 Dereference action.
13775 Generate such a call only for a dereference that either comes from
13776 source, or is the result of rewriting a dereference that comes from
13779 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
13781 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
13783 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
13785 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
13786 file level, elaborate the stride for inner dimensions in alignment
13789 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
13792 2004-06-07 Javier Miranda <miranda@gnat.com>
13794 * exp_ch6.adb: Correct wrong modification in previous patch
13796 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
13798 * g-trasym.ads: Corrected comment to properly reflect level of support
13801 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
13803 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
13804 includes case of a variable referenced on the left hand side of an
13805 assignment, therefore remove redundant code. Variables and prefixes of
13806 indexed or selected components are now marked as referenced on left
13807 hand side. Warnings are now properly emitted when variables or prefixes
13808 are assigned but not read.
13810 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
13811 left hand side referenced variables. Private access types do not
13812 produce the warning "variable ... is assigned but never read".
13813 Add also additional checks to left hand side referenced variables.
13814 Aliased, renamed objects and access types do not produce the warning
13815 "variable ... is assigned but never read" since other entities may read
13816 the memory location.
13818 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
13820 * Makefile.in: In the powerpc/vxworks-specific section, restore
13821 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
13824 2004-06-07 Ed Schonberg <schonberg@gnat.com>
13826 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
13827 predefined operators.
13828 Removes spurious type errors from g-trasym-vms.adb.
13830 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
13831 distinct from the operator appearing in the source, call appropriate
13832 routine to insert conversions when needed, and complete resolution of
13834 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
13835 interpretations for rewritten right operand.
13836 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
13837 the other operand is overloaded and the context is a type conversion.
13839 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13841 * ada-tree.def (BLOCK_STMT): Now has two operands.
13844 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
13846 * gigi.h: (gnat_poplevel): Now returns a tree.
13848 * trans.c (end_block_stmt): Add arg; all callers changed.
13849 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
13850 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
13851 (add_stmt): Set TREE_TYPE.
13852 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
13853 (gnat_expand_stmt, case BREAK_STMT): New case.
13855 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
13857 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
13859 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
13860 procedure Set_Stack_Size that is not needed.
13862 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
13864 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
13865 used for gnatpp input file and for the files upon which it depends
13867 2004-06-07 Ben Brosgol <brosgol@gnat.com>
13869 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
13871 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
13873 * gnatvsn.ads: Bump version numbers appropriately.
13874 Add new build type.
13876 2004-06-07 Pascal Obry <obry@gnat.com>
13878 * gnat_ugn.texi: Improve comments about imported names and link names
13879 on Windows. Add a note about the requirement to use -k gnatdll's option
13880 when working with a DLL which has stripped stdcall symbols (no @nn
13883 2004-05-27 Vincent Celier <celier@gnat.com>
13885 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
13886 COMMENTS_LAYOUT=UNTOUCHED
13888 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
13889 symbols-vms-alpha.adb
13891 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
13893 * sem.ads: Clarify documentation on checks suppression.
13895 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
13897 2004-05-27 Ed Schonberg <schonberg@gnat.com>
13899 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
13900 the case of multiple derivations.
13901 (Is_Object_Reference): For a selected component, verify that the prefix
13902 is itself an object and not a value.
13904 * sem_ch12.adb (Same_Instantiated_Constant): New name for
13905 Same_Instantiated_Entity.
13906 (Same_Instantiated_Variable): Subsidiary to
13907 Check_Formal_Package_Instance, to recognize actuals for in-out generic
13908 formals that are obtained from a previous formal package.
13909 (Instantiate_Subprogram_Body): Emit proper error when
13910 generating code and the proper body of a stub is missing.
13912 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
13913 has a universal interpretation, do the disambiguation here.
13915 * exp_ch4.adb (Expand_N_Type_Conversion,
13916 Expand_N_Unchecked_Type_Conversion): Special handling when target type
13917 is Address, to avoid typing anomalies when Address is a visible integer
13920 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
13921 to determine whether a subprogram should not be marked Pure, even when
13922 declared in a pure package.
13924 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
13926 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
13928 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
13929 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
13930 Update the documentation about the Ravenscar profile, following the
13931 definition found in AI-249.
13933 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
13934 setting the Profile (Ravenscar). This must be done in addition to
13935 setting the required restrictions.
13937 * rtsfind.ads: Add the set of operations defined in package
13940 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
13943 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
13945 lang-specs.h: Always require -c or -S and always redirect to /dev/null
13946 if -gnatc or -gnats is passed.
13948 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
13950 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
13951 a significant reference. Warnings are now properly emitted when a
13952 discriminated type is not referenced.
13954 * lib-xref.adb (Generate_Reference): A deferred constant completion,
13955 record representation clause or record type discriminant does not
13956 produce a reference to its corresponding entity. Warnings are now
13957 properly emitted when deferred constants and record types are not
13960 2004-05-27 Geert Bosch <bosch@gnat.com>
13962 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
13963 Fixes ACATS Annex G tests.
13965 2004-05-27 Robert Dewar <dewar@gnat.com>
13967 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
13970 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
13972 * s-interr.adb (Server_Task): Take into account case of early return
13973 from sigwait under e.g. linux.
13975 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
13977 * gnat_ugn.texi: Add description for the new gnatpp options:
13978 -rnb - replace the original source without creating its backup copy
13979 -c0 - do not format comments
13981 2004-05-24 Geert Bosch <bosch@gnat.com>
13983 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
13984 with 192 bits of precision, sufficient to reduce a double-extended
13985 arguments X with a maximum relative error of T'Machine_Epsilon, for X
13986 in -2.0**32 .. 2.0**32.
13987 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
13988 reduction by the processor, which only uses a 68-bit approximation of
13990 (Tan): Always reduce arguments and compute function either using
13991 the processor's fptan instruction, or by dividing sin and cos as needed.
13993 2004-05-24 Doug Rupp <rupp@gnat.com>
13995 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
13996 gcc error on 32/64 bit VMS.
13998 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
14000 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
14001 since this is what we get for stack overflows although not documented
14003 Document the issues which may require adjustments to our signal
14006 2004-05-24 Ed Schonberg <schonberg@gnat.com>
14008 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
14009 enclosing dynamic scope if the instantiation is within a generic unit.
14011 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
14013 * exp_dbug.ads: Fix typo.
14015 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
14016 Rename it to its proper name: system-linux-ia64.ads
14017 (stamp-gnatlib1): Remove extra target specific run time files when
14018 setting up the rts directory.
14020 2004-05-24 Javier Miranda <miranda@gnat.com>
14022 * einfo.ads, einfo.adb (Limited_Views): Removed.
14023 (Limited_View): New attribute that replaces the previous one. It is
14024 now a bona fide package with the limited-view list through the
14025 first_entity and first_private attributes.
14027 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
14028 limited-private-with clause.
14029 (Install_Limited_Withed_Unit): Install the private declarations of a
14030 limited-private-withed package. Update the installation of the shadow
14031 entities according to the new structure (see Build_Limited_Views)
14032 (Build_Limited_Views): Replace the previous implementation of the
14033 limited view by a package entity that references the first shadow
14034 entity plus the first shadow private entity (required for limited-
14035 private-with clause)
14036 (New_Internal_Shadow_Entity): Code cleanup.
14037 (Remove_Limited_With_Clause): Update the implementation to undo the
14038 new work carried out by Build_Limited_Views.
14039 (Build_Chain): Complete documentation.
14040 Replace Ada0Y by Ada 0Y in comments
14043 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
14044 types the level of accessibility depends on the enclosing type
14047 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
14048 entities. Complete documentation of previous change.
14050 2004-05-24 Robert Dewar <dewar@gnat.com>
14052 * namet.adb: Minor reformatting
14053 Avoid use of name I (replace by J)
14054 Minor code restructuring
14056 * sem_ch6.adb: Minor reformatting
14058 * lib-writ.adb: Do not set restriction as active if this is a
14059 Restriction_Warning case.
14061 * sem_prag.adb: Reset restriction warning flag if real pragma
14062 restriction encountered.
14064 * s-htable.adb: Minor reformatting
14065 Change rotate count to 3 in Hash (improves hash for small strings)
14067 * 5qsystem.ads: Add comments for type Address (no literals allowed).
14069 * gnat_ugn.texi: Add new section of documentation "Code Generation
14070 Control", which describes the use of -m switches.
14072 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
14074 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
14075 through the DECL_INITIAL for renamed variables.
14077 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
14079 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
14081 2004-05-19 Joel Brobecker <brobecker@gnat.com>
14083 * exp_dbug.ads: Correct comments concerning handling of overloading,
14084 since we no longer use $ anymore.
14086 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
14088 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
14089 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
14090 with illegal subunits.
14092 2004-05-19 Ed Schonberg <schonberg@gnat.com>
14094 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
14095 body with front-end inlining enabled, check whether an inline pragma
14096 appears immediately after the body and applies to it.
14098 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
14099 enabled and the pragma appears after the body of the subprogram.
14101 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14103 Part of function-at-a-time conversion
14105 * misc.c (adjust_decl_rtl): Deleted.
14106 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
14109 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
14110 (add_decl_stmt, add_stmt, block_has_vars): New functions.
14111 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
14113 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
14114 when making a decl.
14115 (gnat_to_gnu_entity): Likewise.
14116 Use add_stmt to update setjmp buffer.
14117 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
14119 No longer call adjust_decl_rtl.
14120 (DECL_INIT_BY_ASSIGN_P): New macro.
14121 (DECL_STMT_VAR): Likewise.
14123 * trans.c (gigi): Call start_block_stmt to make the outermost
14125 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
14126 Call start_block_stmt and end_block_stmt temporarily.
14127 Use gnat_expand_stmt instead of expand_expr_stmt.
14128 (add_decl_stmt): New function.
14129 (tree_transform): Call it.
14130 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
14131 (end_block_stmt): Set type and NULL_STMT.
14132 (gnat_expand_stmt): Make recursize call instead of calling
14134 (gnat_expand_stmt, case DECL_STMT): New case.
14135 (set_lineno_from_sloc): Do nothing if global.
14136 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
14137 (start_block_stmt, add_stmt, end_block_stmt): New functions.
14138 (build_block_stmt): Call them.
14139 (gnat_to_code): Don't expand NULL_STMT.
14140 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
14142 (tree_transform): Likewise.
14143 (tree_transform, case N_Null_Statement): Return NULL_STMT.
14144 (gnat_expand_stmt, case NULL_STMT): New case.
14145 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
14148 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
14151 * utils.c (create_var_decl): Do not call expand_decl or
14153 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
14154 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
14156 (struct e_stack): Add chain_next to GTY.
14157 (struct binding_level): Deleted.
14158 (struct ada_binding_level): New struct.
14159 (free_block_chain): New.
14160 (global_binding_level, clear_binding_level): Deleted.
14161 (global_bindings_p): Rework to see if no chain.
14162 (kept_level_p, set_block): Deleted.
14163 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
14164 new data structure and work directly on BLOCK node.
14165 (gnat_poplevel): Similarly.
14166 (get_decls): Look at BLOCK_VARS.
14167 (insert_block): Work directly on BLOCK node.
14168 (block_has_var): New function.
14169 (pushdecl): Rework for new binding structures.
14170 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
14172 (build_subprog_body): Likewise.
14173 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
14175 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
14177 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
14178 (DECL_STMT_VAR): Likewise.
14180 2004-05-17 Robert Dewar <dewar@gnat.com>
14182 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
14185 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
14186 of restriction synonyums by using
14187 Restrict.Process_Restriction_Synonyms.
14189 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
14191 * s-restri.ads (Tasking_Allowed): Correct missing comment
14193 * s-rident.ads: Add entries for restriction synonyms
14195 * ali.adb: Fix some problems with badly formatted ALI files that can
14196 result in infinite loops.
14198 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
14199 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
14200 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
14201 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
14202 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
14203 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
14204 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
14205 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
14206 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
14207 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
14208 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
14209 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
14210 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
14211 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
14212 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
14213 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
14214 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
14215 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
14216 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
14217 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
14218 to Task_Id (minor cleanup).
14220 2004-05-17 Vincent Celier <celier@gnat.com>
14222 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
14223 directory separator.
14225 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
14226 project being extended, if Languages is not declared in extending
14229 2004-05-17 Javier Miranda <miranda@gnat.com>
14231 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
14232 limited view of a visible sibling.
14234 2004-05-14 Robert Dewar <dewar@gnat.com>
14236 * gnat_ugn.texi: Minor change to -gnatS documentation
14238 * sprint.adb: Remove some instances of Assert (False) and for this
14239 purpose replace them by output of a ??? string.
14241 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
14244 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
14245 flag processing. This was suppressing required dependencies in
14246 No_Run_Time mode and is not needed since the binder does not generate
14247 references for things in libgnat anyway.
14249 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
14252 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
14254 * gnat_ugn.texi: Document AIX-specific issue with initialization of
14257 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
14258 action for the case of an actual parameter in an init proc call.
14260 2004-05-14 Ed Schonberg <schonberg@gnat.com>
14262 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
14263 subtype, check visible entities in base type.
14265 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
14266 actions if the object is a renaming.
14268 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
14269 Check_Formal_Package_Instance, to determine more precisely when the
14270 formal and the actual denote the same entity.
14272 2004-05-14 Javier Miranda <miranda@gnat.com>
14274 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
14276 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
14277 corresponding to a private_with must be removed from visibility; it
14278 will be made visible later, just before we analyze the private part of
14280 (Check_Private_Child_Unit): Allow private_with clauses in public
14282 (Install_Siblings): Make visible the private entities of private-withed
14284 (Install_Withed_Unit): Do not install the private withed unit if we
14285 are compiling a package declaration and the Private_With_OK flag was
14286 not set by the caller. These declarations will be installed later,
14287 just before we analyze the private part of the package.
14289 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
14290 during the evaluation of the expression that initializes the object,
14291 decorate it with the expected type to avoid cascade errors.
14294 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
14295 subprogram we have to install the private_with clauses after its
14296 specification has been analyzed (as documented in AI-262.TXT).
14298 * sem_ch8.adb (Has_Private_With): New function. Determines if the
14299 current compilation unit has a private with on a given entity.
14300 (Find_Direct_Name): Detect the Beaujolais problem described in
14303 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
14304 provides the functionality of the function Is_Ancestor that was
14305 previously available in sem_ch10. It has been renamed to avoid
14308 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
14310 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14312 * utils.c (build_vms_descriptor): Use SImode pointers.
14314 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
14316 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
14318 2004-05-14 GNAT Script <nobody@gnat.com>
14320 * Make-lang.in: Makefile automatically updated
14322 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
14324 Renaming of target specific files for clarity
14326 * Makefile.in: Rename GNAT target specific files.
14328 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
14329 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
14330 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
14331 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
14332 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
14333 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
14334 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
14335 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
14336 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
14337 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
14338 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
14339 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
14340 51osinte.adb, 51osinte.ads, 51system.ads,
14341 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
14342 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
14343 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
14344 56tpopsp.adb, 57system.ads, 58system.ads,
14345 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
14346 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
14347 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
14348 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
14349 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
14350 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
14351 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
14352 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
14353 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
14354 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
14355 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
14356 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
14357 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
14358 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
14359 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
14360 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
14361 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
14362 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
14363 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
14364 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
14365 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
14366 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
14367 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
14368 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
14369 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
14370 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
14371 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
14372 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
14373 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
14374 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
14375 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
14376 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
14377 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
14378 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
14379 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
14380 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
14381 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
14382 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
14383 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
14384 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
14386 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
14387 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
14388 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
14389 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
14390 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
14391 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
14392 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
14393 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
14394 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
14395 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
14396 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
14397 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
14398 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
14399 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
14400 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
14401 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
14402 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
14403 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
14404 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
14405 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
14406 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
14407 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
14408 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
14409 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
14410 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
14411 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
14412 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
14413 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
14414 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
14415 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
14416 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
14417 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
14418 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
14419 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
14420 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
14421 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
14422 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
14423 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
14424 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
14425 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
14426 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
14427 s-osinte-vms.ads, s-osinte-vxworks.adb,
14428 s-osinte-vxworks.ads, s-osprim-mingw.adb,
14429 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
14430 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
14431 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
14432 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
14433 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
14434 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
14435 s-stchop-vxworks.adb, s-taprop-dummy.adb,
14436 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
14437 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
14438 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
14439 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
14440 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
14441 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
14442 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
14443 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
14444 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
14445 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
14446 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
14447 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
14448 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
14449 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
14450 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
14451 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
14452 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
14453 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
14454 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
14455 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
14456 system-irix-o32.ads, system-linux-x86_64.ads,
14457 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
14458 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
14459 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
14460 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
14461 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
14462 system-vxworks-mips.ads, system-vxworks-ppc.ads,
14463 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
14466 2004-05-13 Zack Weinberg <zack@codesourcery.com>
14468 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
14470 2004-05-13 Diego Novillo <dnovillo@redhat.com>
14472 Merge from tree-ssa-20020619-branch.
14474 * config-lang.in (boot_language, build_by_default): Set
14476 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
14477 (max_size): Add static chain op for call_expr.
14479 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
14482 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
14484 2004-05-11 Roger Sayle <roger@eyesopen.com>
14486 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
14489 2004-05-10 Doug Rupp <rupp@gnat.com>
14491 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
14494 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
14496 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
14498 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
14499 Fixes undefined symbols in IA64 gnatlib.
14501 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
14503 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
14504 Short_Address). This will be moved to system.auxdec.
14506 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
14508 * sem_util.adb: Replace test for presence of a node that is always
14509 present with a call to Discard_Node.
14511 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
14512 Analyze on the library unit node after generation of distribution stub
14513 constructs. The call was a no-op because Unit_Node has already been
14514 Analyzed, and the tree fragments for the distribution stubs are
14515 analyzed as they are inserted in Exp_Dist.
14516 Update comment regarding to distribution stubs to reflect that we
14517 do not generate stub in separate files anymore.
14519 * einfo.ads: Clarify the fact that a tagged private type has the
14520 E_Record_Type_With_Private Ekind.
14522 * erroutc.adb: Minor reformatting
14524 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
14525 values if line length is increased using -gnatyM (noticed during code
14528 * eval_fat.adb: Minor reformatting
14529 Put spaces around exponentiation operator
14531 2004-05-10 Ed Schonberg <schonberg@gnat.com>
14534 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
14535 has been rewritten as an explicit dereference, retrieve type of
14536 original node to check for possibly unconstrained record type.
14538 2004-05-10 Ed Schonberg <schonberg@gnat.com>
14540 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
14541 overriding, use the operation of the parent unconditionally.
14543 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
14544 operation when either operand is a literal, to avoid further
14547 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
14548 overridden by a previous explicit declaration, mark the previous entity
14551 * sem_disp.adb (Check_Dispatching_Operation): New predicate
14552 Is_Visibly_Controlled, to determine whether a declaration of a
14553 primitive control operation for a derived type overrides an inherited
14554 one. Add warning if the explicit declaration does not override.
14556 2004-05-10 Vincent Celier <celier@gnat.com>
14558 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
14559 some cases when the sources are no longer present.
14561 * make.adb (Collect_Arguments): Fail if an external source, not part
14562 of any project need to be compiled, when switch -x has not been
14565 * makeusg.adb: Document new switch -x
14567 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
14568 defaulted to False.
14570 * switch-m.adb (Scan_Make_Switches): New switch -x
14572 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
14573 gnatmake switch -x.
14575 * gnat_ugn.texi: Document new gnatmake switch -x
14577 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
14579 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
14581 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
14582 (process_attributes): Likewise.
14584 2004-05-10 Joel Brobecker <brobecker@gnat.com>
14586 * s-inmaop.ads: Fix spelling mistake in one of the comments.
14588 2004-05-10 Robert Dewar <dewar@gnat.com>
14590 * gnat_ugn.texi: Document that for config pragma files, the maximum
14591 line length is always 32767.
14593 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
14594 literals is now allowed.
14596 * gnat-style.texi: Remove statement about splitting long lines before
14597 an operator rather than after, since we do not follow this rule at all.
14598 Clarify rule (really lack of rule) for spaces around exponentiation
14600 * sem_elim.adb: Allow concatenation of string literals as well as a
14601 single string literal for pragma arguments.
14603 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
14605 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
14606 written for append case.
14608 * frontend.adb: Changes to avoid checking max line length in config
14611 * g-os_lib.ads: Minor reformatting
14613 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
14614 wrong in any case. Instead use standard value. Noticed during code
14617 * opt.ads (Max_Line_Length): New field, used to implement removal of
14618 limitation on length of lines when scanning config pragma files.
14620 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
14621 makeutl.ads, makeutl.adb: Minor reformatting
14623 * scn.adb: Do not check line length while scanning config pragma files
14624 Do not check line length while scanning out license information
14626 * scng.adb: Changes to avoid line length checks while parsing config
14629 2004-05-10 GNAT Script <nobody@gnat.com>
14631 * Make-lang.in: Makefile automatically updated
14633 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
14635 * osint.adb (Find_Program_Name): Fix handling of VMS version
14638 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
14640 * g-os_lib.ads (Invalid_Time): New constant
14642 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
14643 return OS_Time instead of time_t to match what is imported by Ada.
14644 Now return -1 if the file doesn't exist, instead of a random value
14646 2004-05-05 Robert Dewar <dewar@gnat.com>
14648 * usage.adb: Add line for -gnatR?s switch
14650 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
14652 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
14653 and for Match (Data_First, Data_last)
14655 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
14656 written when we are dealing with multi-unit files.
14658 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
14660 * Makefile.in: Remove unused targets and variables.
14662 2004-05-05 Vincent Celier <celier@gnat.com>
14664 * switch-m.adb: New gnatmake switch -eI
14666 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
14667 of new gnatmake switch -eInnn.
14669 * makegpr.adb: Take into account new parameters Index and Src_Index in
14672 * clean.adb: Implement support for multi-unit sources, including new
14675 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
14678 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
14679 (Extract_From_Q): New out parameter Index
14680 (Mark, Is_Marked): Subprograms moved to Makeutl
14681 (Switches_Of): New parameter Source_Index
14682 (Add_Switch): New parameter Index
14683 (Check): New parameter Source_Index
14684 (Collect_Arguments): New parameter Source_Index
14685 (Collect_Arguments_And_Compile): New parameter Source_Index
14686 (Compile): New parameter Source_Index
14687 Put subprograms in alphabetical order
14688 Add support for multi-source sources, including in project files.
14690 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
14691 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
14694 * makeusg.adb: New gnatmake switch -eInnn
14696 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
14699 * opt.ads (Main_Index): New variable, defaulted to 0.
14701 * osint.ads, osinte.adb (Add_File): New parameter Index
14702 (Current_Source_Index): New function
14704 * prj.adb: Take into account new components Index and Src_Index
14706 * prj.ads (String_Element): New component Index
14707 (Variable_Value): New component Index
14708 (Array_Element): New component Src_Index
14710 * prj-attr.adb: Indicate that optional index may be specified for
14711 attributes Main, Executable, Spec, Body and some of Switches.
14713 * prj-attr.ads (Attribute_Kind): New values for optional indexes
14714 (Attribute_Record): New component Optional_Index
14716 * prj-com.ads (File_Name_Data): New component Index
14718 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
14720 * prj-env.adb (Put): Output optional index
14722 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
14723 attributes Spec and Body.
14725 * prj-nmsc.adb: Process optional indexes
14727 * prj-pp.adb: Ouput "at" for optional indexes
14729 * prj-proc.adb: Take into account optional indexes
14731 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
14732 Optional_Index. For string literal,
14733 process optional index when Optional_Index is True.
14734 (Parse_Expresion): New Boolean parameter Optional_Index
14736 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
14737 (Set_Source_Index_Of): New procedure
14739 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
14742 * prj-util.ads (Executable_Of): New parameter Index
14743 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
14744 New parameter Src_Index, defaulted to 0.
14746 2004-05-05 Ed Schonberg <schonberg@gnat.com>
14749 * sem_ch3.adb (Access_Definition): If this is an access parameter
14750 whose designated type is imported through a limited_with clause, do
14751 not add the enclosing subprogram to the list of private dependents of
14754 2004-05-05 Ed Schonberg <schonberg@gnat.com>
14757 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
14758 a limited_with clause, and the other is its non-limited view.
14760 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
14762 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
14764 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
14765 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
14766 Stand.Boolean_Literals to produce references to entities
14767 Standard_False and Standard_True from compile-time computed boolean
14770 * stand.ads (Boolean_Literals): New variable, provides the entity
14771 values for False and True, for use by the expander.
14773 2004-05-05 Doug Rupp <rupp@gnat.com>
14775 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
14776 5vinmaop.adb: Unchecked convert Short_Address vice Address
14778 * adaint.c, raise.c: Caste CRTL function return value
14779 to avoid gcc error on 32/64 bit IVMS.
14781 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
14784 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
14786 * 5qsystem.ads (Address): Declare as Long_Integer
14787 (Short_Address): Declare as 32 bit subtype of Address
14788 Declare abstract address operations to avoid gratuitous ambiguities.
14790 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
14792 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
14793 instead of the old Boolean_Entry_Barriers.
14794 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
14796 2004-05-05 GNAT Script <nobody@gnat.com>
14798 * Make-lang.in: Makefile automatically updated
14800 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
14802 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
14804 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
14808 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
14809 alone. Replacing object references by literals is inappropriate in a
14810 so low level context.
14812 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
14814 * a-exexpr.adb: Add comments
14816 2004-05-03 Joel Brobecker <brobecker@gnat.com>
14818 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
14819 declare the Ancestor_Tags array in Type_Specific_Data with a small size
14820 without risking a bounds check error when accessing one of its
14822 (Type_Specific_Data): Define Ancestor_Tags as a small array.
14823 This prevents us from hitting a limitation during the debug info
14824 generation when using stabs.
14826 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
14828 This prevents us from hitting a limitation during the debug info
14829 generation when using stabs.
14831 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
14833 lang-specs.h: Remove -gnatz* from specs.
14835 2004-05-03 Vincent Celier <celier@gnat.com>
14837 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
14839 * Make-lang.in, Makefile.in: Add gprmake
14841 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
14843 * sem_aggr.adb: Fix typo in comment.
14845 2004-05-03 Robert Dewar <dewar@gnat.com>
14847 * make.adb: Minor reformatting
14849 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
14851 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
14852 so that it works when address is not a private type.
14854 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
14855 properly with rewritten unchecked conversions. This prevents
14856 order-of-elaboration issues that can otherwise arise.
14857 (Minimum_Size): Don't check size of access types under VMS
14859 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
14860 interpretations of integer literals as type System.Address.
14862 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
14863 (Is_Descendent_Of): New function
14865 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
14867 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
14868 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
14869 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
14871 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
14872 of the old Max_Entry_Queue_Depth.
14874 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
14875 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
14876 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
14878 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
14879 New entry for proper handling of Max_Entry_Queue_Depth.
14880 New entry for proper handling of No_Dynamic_Interrupts.
14882 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
14883 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
14884 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
14885 the GNAT specific restriction Max_Entry_Queue_Depth.
14886 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
14887 the GNAT specific restriction No_Dynamic_Interrupts.
14889 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
14890 instead of the old Boolean_Entry_Barriers.
14891 Use the new restriction No_Dynamic_Attachment instead of the old
14892 No_Dynamic_Interrupts.
14894 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
14895 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
14897 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
14898 of the old Max_Entry_Queue_Depth.
14900 2004-05-03 GNAT Script <nobody@gnat.com>
14902 * Make-lang.in: Makefile automatically updated
14904 2004-04-29 Ed Schonberg <schonberg@gnat.com>
14906 * checks.adb (Enable_Range_Check): If the prefix of an index component
14907 is an access to an unconstrained array, perform check unconditionally.
14909 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14911 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
14914 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
14916 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
14917 alternate stack setting. There was no support for the tasking cases
14918 and the changes eventually caused a number of side-effect failures in
14919 the non-tasking case too.
14921 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
14923 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
14926 2004-04-29 Vincent Celier <celier@gnat.com>
14928 * make.adb (Gnatmake): Increase max size of argument array for
14929 gnatbind for the potential addition of -F.
14930 If there are Stand-Alone Library projects, invoke gnatbind with -F to
14931 be sure that elaboration flags will be checked.
14933 * switch-c.adb: Correct call to Scan_Pos for -gnateI
14935 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
14937 * sem_warn.adb (Check_References): Move '<access-variable> may be
14938 null' warning out of under Warn_On_No_Value_Assigned.
14940 2004-04-29 Ed Falis <falis@gnat.com>
14942 * gnat_ugn.texi: Fixed texi error
14944 2004-04-29 Robert Dewar <dewar@gnat.com>
14946 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
14947 abstract operations if they come from predefined files.
14949 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
14952 * s-addope.adb: Correct obvious error in mod function
14954 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
14956 * Makefile.in: Add target pairs for powerpc darwin*
14959 * a-intnam-darwin.ads, s-osinte-darwin.adb,
14960 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
14962 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
14964 * Makefile.in: Add target macro definitions for s390*-linux*.
14965 * system-linux-s390.ads: New file.
14966 * system-linux-s390x.ads: New file.
14968 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
14970 * gnat_ugn.texi: Correct argument to @setfilename.
14972 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
14974 * a-exexpr.adb (Unwind_Word): New data type.
14975 (Unwind_Exception): Use it as type of Private1 and Private2.
14977 * raise.c (db_action_for): Fix debug printf.
14979 2004-04-27 Ed Schonberg <schonberg@gnat.com>
14981 * a-wtmoio.ads: Formal type must be a modular type, not a signed
14984 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14986 * decl.c (gnat_to_gnu_entity, case object): Call
14987 __builtin_update_setjmp_buf.
14989 * gigi.h (update_setjmp_buf): Deleted.
14990 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
14992 * misc.c: (update_setjmp_buf): Deleted.
14994 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
14995 around block of RTL.
14997 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
14999 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
15001 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
15002 subprogram for which no pragma All_Calls_Remote applies, store the
15003 address of the real subprogram in the underlying record type, so local
15004 dereferences do not go through the PCS.
15006 2004-04-26 Robert Dewar <dewar@gnat.com>
15008 * i-c.ads: Add some type qualifications to avoid ambiguities when
15009 compiling with s-auxdec.ads and a non-private address type.
15011 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
15013 * Makefile.rtl: Fix error in previous check-in:
15014 Add s-addope.o to non tasking object list (rather than tasking object
15017 2004-04-26 Javier Miranda <miranda@gnat.com>
15019 * sem_aggr.adb: Fix typo in comments
15020 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
15021 Required to check the null-exclusion attribute.
15023 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
15024 case of anonymous access types in record and array components. For a
15025 component definition the level is the same of the enclosing composite
15028 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
15029 that are anonymous access types the level of accessibility depends on
15030 the enclosing type declaration. In order to have this information, set
15031 the scope of the anonymous access type to the enclosing record type
15033 (Array_Type_Declaration): In case of components that are anonymous
15034 access types the level of accessibility depends on the enclosing type
15035 declaration. In order to have this information, set the scope of the
15036 anonymous access type to the enclosing array type declaration.
15038 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
15041 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
15042 renaming of anonymous access-to-constant types allowed if and only if
15043 the renamed object is access-to-constant.
15045 * sem_util.adb (Type_Access_Level): In case of anonymous access types
15046 that are component_definition or discriminants of a nonlimited type,
15047 the level is the same as that of the enclosing component type.
15049 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
15051 * sem_elim.adb: Some minor code reorganization from code reading. Fix
15052 misprint in the function name (File_Name_Match).
15054 2004-04-23 Laurent GUERBY <laurent@guerby.net>
15056 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
15059 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15061 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
15063 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
15065 * adaint.c (__gnat_try_lock): No longer requires that the parent
15066 directory be writable, the directory itself is enough.
15067 (gnat_is_absolute_path): Change profile, so that the call from
15068 GNAT.OS_Lib can be made more efficient.
15070 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
15071 from GNAT.OS_Lib can be made more efficient.
15073 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
15074 one copy of the file name. Found by code reading.
15076 2004-04-23 Vincent Celier <celier@gnat.com>
15078 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
15079 Correct documentation on gnatmake switches transmitted to the compiler
15081 * ali.ads: Minor comment fix
15083 2004-04-23 Javier Miranda <miranda@gnat.com>
15085 * sem_ch6.adb: (Confirming Types): Code cleanup
15087 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
15088 subprogram types: E_Anonymous_Access_Subprogram_Type and
15089 E_Anonymous_Access_Protected_Subprogram_Type.
15091 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
15093 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
15094 whether a pragma All_Calls_Remote applies to the subprogram on which
15096 No functional change is introduced by this revision; the new parameter
15097 will be used to allow calls to local RCI subprograms to be optimized
15098 to not use the PCS in the case where no pragma All_Calls_Remote applies,
15099 as is already done in the PolyORB implementation of the DSA.
15101 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
15102 whether a pragma All_Calls_Remote applies to the subprogram on which
15104 No functional change is introduced by this revision; the new parameter
15105 will be used to allow calls to local RCI subprograms to be optimized
15106 to not use the PCS in the case where no pragma All_Calls_Remote applies,
15107 as is already done in the PolyORB implementation of the DSA.
15109 2004-04-23 Robert Dewar <dewar@gnat.com>
15111 * Makefile.rtl: Add entry for s-addope.o in run time library list
15112 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
15113 * s-addope.ads, s-addope.adb: New files.
15115 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
15116 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
15117 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
15118 System.Address to be non-private and signed.
15120 * sem_elim.adb: Minor reformatting (fairly extensive)
15121 Some minor code reorganization from code reading
15122 Add a couple of ??? comments
15124 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15126 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
15127 (tree_transform, case N_If_Statement): Remove non-determinism.
15129 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
15131 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
15133 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
15134 Eliminate' section.
15136 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
15137 no longer used as a parameter name for Eliminate pragma).
15139 2004-04-22 Laurent GUERBY <laurent@guerby.net>
15141 PR optimization/14984
15142 PR optimization/14985
15143 * trans.c (gigi): Fix non determinism leading to bootstrap
15144 comparison failures.
15146 2004-04-21 Pascal Obry <obry@gnat.com>
15148 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
15149 passed to spawnvp() to properly handle program pathname with spaces on
15152 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
15154 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
15155 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
15156 unlocked in case of exceptions.
15158 2004-04-21 Joel Brobecker <brobecker@gnat.com>
15160 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
15161 This function does not exist anymore.
15163 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
15165 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
15167 * link.c: Move variables to the __gnat name space.
15169 * Makefile.in: list link.o explicitly when needed.
15171 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
15173 2004-04-21 Javier Miranda <miranda@gnat.com>
15175 * einfo.adb (Original_Access_Type): New subprogram
15176 (Set_Original_Access_Type): New subprogram
15177 (Write_Field21_Name): Write the name of the new field
15179 * einfo.ads (Original_Access_Type): New field present in access to
15181 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
15182 E_Anonymous_Access_Protected_Subprogram_Type.
15184 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
15187 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
15188 to anonymous access to subprogram types.
15190 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
15191 to subprogram types.
15193 * sem_ch3.adb (Access_Definition): Complete decoration of entities
15194 corresponding to anonymous access to subprogram types.
15195 (Analyze_Component_Declaration): Add new actual to the call to
15196 subprogram replace_anonymous_access_to_protected_subprogram.
15197 (Array_Type_Declaration): Add new actual to the call to subprogram
15198 replace_anonymous_access_to_protected_subprogram.
15199 (Process_Discriminants): Add new actual to the call to subprogram
15200 replace_anonymous_access_to_protected_subprogram.
15201 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
15203 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
15206 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
15207 access to subprogram types.
15209 * sem_util.adb (Has_Declarations): Addition of package_specification
15212 2004-04-21 Ed Schonberg <schonberg@gnat.com>
15214 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
15215 inlined flags to renamed entity only if in current unit.
15217 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
15219 * s-parint.ads: Add DSA implementation marker.
15221 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
15222 value of System.Partition_Interface.DSA_Implementation to determine
15223 what version of the distributed systems annex is available (no
15224 implementation, GLADE, or PolyORB).
15226 2004-04-21 Joel Brobecker <brobecker@gnat.com>
15228 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
15230 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15232 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
15233 with new type if alias sets differ.
15234 Fixes ACATS c41103b.
15236 2004-04-21 Vincent Celier <celier@gnat.com>
15238 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
15239 Add array Lang_Args for the language specific compiling argument
15242 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
15244 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
15246 * gnat_rm.texi: Update the descripton of the Eliminate pragma
15247 according to the recent changes in the format of the parameters of the
15248 pragma (replacing Homonym_Number with Source_Location).
15250 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
15252 * 5isystem.ads: Removed, unused.
15254 * gnat_rm.texi: Redo 1.13 change.
15256 2004-04-19 Robert Dewar <dewar@gnat.com>
15258 * s-stoele.ads: Clean up definition of Storage_Offset (the new
15259 definition is cleaner, avoids the kludge of explicit Standard operator
15260 references, and also is consistent with a visible System.Address with
15261 no visible operations.
15263 * s-geveop.adb: Add declarations to avoid assumption of visible
15264 operations on type System.Address (since these might not be available
15265 if Address is a non-private type for which the operations
15266 are made abstract).
15268 * sem_eval.adb: Minor reformatting
15270 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
15271 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
15272 reformatting (new function spec format).
15274 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
15275 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
15276 s-caun64.adb: Add declarations to avoid assumption of visible
15277 operations on type System.Address (since these might not be available
15278 if Address is a non-private type for which the operations are made
15281 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
15283 * exp_intr.adb: Minor comment update
15285 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
15287 * 5omastop.adb: Add declarations to avoid assumption of visible
15288 operations on type System.Address (since these might not be available
15289 if Address is a non-private type for which the operations
15290 are made abstract).
15292 2004-04-19 Vincent Celier <celier@gnat.com>
15294 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
15296 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
15299 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
15301 Call Check with Process_Languages.
15302 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
15303 with Process_Languages.
15304 (Recursive_Check): New Boolean parameter Process_Languages. Call
15305 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
15308 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
15310 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
15311 parameter Ada_Main, defaulted to True.
15312 Check for Ada specific characteristics only when Ada_Main is True.
15314 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
15316 * prj.adb: (Project_Empty): Add new Project_Data components.
15318 * prj.ads: New types and tables for non Ada languages.
15319 (Project_Data): New components Languages, Impl_Suffixes,
15320 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
15321 Include_Path, Include_Data_Set.
15323 * prj-env.ads, prj-env.adb: Minor reformatting
15325 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
15326 Put subprograms in alphabetical order
15328 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
15329 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
15332 * mlib-prj.adb: Back out modification in last version, as they are
15334 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
15336 * make.adb: (Mains): Moved to package Makeutl
15337 (Linker_Opts): Moved to package Makeutl
15338 (Is_External_Assignment): Moved to package Makeutl
15339 (Test_If_Relative_Path): Moved to package Makeutl
15340 (Gnatmake): Move sorting of linker options to function
15341 Makeutl.Linker_Options_Switches.
15343 * makeutl.ads, makeutl.adb: New files.
15345 * Makefile.in: Add makeutl.o to the object files for gnatmake
15347 * makeusg.adb: Add line for new switch -eL.
15349 * gnatls.adb (Image): New function.
15350 (Output_Unit): If in verbose mode, output the list of restrictions
15351 specified by pragmas Restrictions.
15353 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
15356 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
15357 needed, to put it in the range 1970 (included) - 2026 (excluded).
15358 (Time_Of): Do not shift Unix_Min_Year (1970).
15359 Shift the date by multiple of 56 years, if needed, to put it in the
15360 range 1970 (included) - 2026 (excluded).
15362 * adaint.h, adaint.c (__gnat_set_executable): New function.
15364 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15366 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
15367 and pop GC context.
15368 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
15369 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
15370 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
15371 (tree_transform, case N_Code_Statement): Likewise.
15372 (gnat_expand_stmt, case LABEL_STMT): Don't look at
15373 LABEL_STMT_FIRST_IN_EH.
15374 (gnat_expand_stmt, case ASM_STMT): New case.
15376 * utils2.c (build_unary_op): Properly set TREE_READONLY of
15377 UNCONSTRAINED_ARRAY_REF.
15379 * utils.c (poplevel): Temporarily push/pop GC context around inline
15380 function expansion.
15382 * decl.c (maybe_variable): Properly set TREE_READONLY of
15383 UNCONSTRAINED_ARRAY_REF.
15384 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
15386 * ada-tree.def: (ASM_STMT): New.
15388 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
15389 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
15390 ASM_STMT_INPUT): New.
15391 (ASM_STMT_CLOBBER): Likewise.
15393 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
15395 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
15396 general rcheck mechanism to raise Program_Error for E.4(18), instead
15397 of a custom raiser in System.Partition_Interface.
15398 Part of general cleanup work before PolyORB integration.
15400 * snames.ads, snames.adb: Add new runtime library entities and names
15403 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
15405 (Build_Subprogram_Id): New subprogram provided by exp_dist
15406 Code reorganisation in preparation for PolyORB integration.
15408 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
15410 (Build_Subprogram_Id): New subprogram provided by exp_dist
15412 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
15413 actual parameter types for call to dereference of an
15414 access-to-subprogram type.
15416 * rtsfind.ads: Add new runtime library entities and names for PolyORB
15419 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
15420 instead, which has the same behaviour here since we never pass it a
15423 * link.c (run_path_option, Solaris case): Use -Wl, as for other
15426 * Makefile.in: adjust object file lists for gnatlink and gnatmake
15427 to account for new dependency upon Interfaces.C.Strings + link.o
15428 For x86 FreeBSD, use 86numaux.
15430 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
15431 from Mlib.Tgt to Mlib.
15433 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
15434 target-independent.
15436 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
15437 target-specific versions of this subprogram, now implemented as a
15438 target-independent function in Mlib.
15440 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
15441 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
15442 (Linker_Library_Path_Option): Remove target-specific versions of this
15443 subprogram, now implemented as a target-independent function in Mlib.
15445 * atree.adb: (Allocate_Initialize_Node): New subprogram.
15446 Factors out node table slots allocation.
15447 (Fix_Parents): New subprogram.
15448 Encapsulate the pattern of fixing up parent pointers for syntactic
15449 children of a rewritten node.
15450 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
15451 (Rewrite): Use New_Copy when creating saved copy of original node.
15452 (Replace): Use Copy_Node to copy nodes.
15454 2004-04-19 Javier Miranda <miranda@gnat.com>
15456 * sprint.adb (Sprint_Node_Actual): Give support to the new
15457 Access_To_Subprogram node available in Access_Definition nodes. In
15458 addition, give support to the AI-231 node fields: null-exclusion,
15459 all-present, constant-present.
15461 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
15463 * sinfo.ads, sinfo.adb:
15464 New field Access_To_Subprogram_Definition in Access_Definition nodes
15466 * sem_ch6.adb (Process_Formals): Move here the code that creates and
15467 decorates internal subtype declaration corresponding to the
15468 null-excluding formal. This code was previously in Set_Actual_Subtypes.
15469 In addition, carry out some code cleanup on this code. In case of
15470 access to protected subprogram call
15471 Replace_Anonymous_Access_To_Protected_Subprogram.
15472 (Set_Actual_Subtypes): Code cleanup.
15474 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
15475 Find_Type in case of anonymous access renamings. Add warning in case of
15476 null-excluding attribute used in anonymous access renaming.
15478 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
15481 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
15483 (Access_Definition): In case of anonymous access to subprograms call
15484 the corresponding semantic routine to decorate the node.
15485 (Access_Subprogram_Declaration): Addition of some comments indicating
15486 some code that probably should be added here. Detected by comparison
15487 with the access_definition subprogram.
15488 (Analyze_Component_Declaration): In case of access to protected
15489 subprogram call Replace_Anonymous_Access_To_Protected.
15490 (Array_Type_Declaration): In case of access to protected subprogram call
15491 Replace_Anonymous_Access_To_Protected_Subprogram.
15492 (Process_Discriminants): In case of access to protected subprogram call
15493 Replace_Anonymous_Access_To_Protected_Subprogram.
15495 * par.adb (P_Access_Definition): New formal that indicates if the
15496 null-exclusion part was present.
15497 (P_Access_Type_Definition): New formal that indicates if the caller has
15498 already parsed the null-excluding part.
15500 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
15501 (P_Identifier_Declarations): Code cleanup and give support to renamings
15502 of anonymous access to subprogram types.
15503 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
15504 (P_Array_Type_Definition): Give support to AI-254.
15505 (P_Component_Items): Give support to AI-254.
15506 (P_Access_Definition): New formal that indicates if the header was
15507 already parsed by the caller.
15508 (P_Access_Type_Definition): New formal that indicates if the caller has
15509 already parsed the null-excluding part.
15511 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
15512 call to P_Access_Definition.
15514 2004-04-19 Geert Bosch <bosch@gnat.com>
15516 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
15517 the delicate semantics of floating-point to integer conversion.
15518 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
15520 * eval_fat.adb (Machine_Mantissa): Moved to spec.
15521 (Machine_Radix): New function.
15523 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
15525 (Machine_Radix): New function also for use in conversion checks.
15527 2004-04-19 Ed Schonberg <schonberg@gnat.com>
15529 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
15531 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
15532 to decorate the access-to-protected subprogram and the equivalent type.
15534 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
15535 to anonymous access to subprogram types.
15537 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
15538 constant-folding, for legality checks in contexts that require an RM
15541 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
15542 temporary but stack checking is not enabled, increment serial number
15543 to so that symbol generation is consistent with and without stack
15546 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
15547 independent on whether stack checking is enabled, caller must check
15548 the corresponding flag.
15550 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
15552 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
15553 parent if it has discriminants.
15554 (Build_Derived_Private_Type): Constructed full view does
15555 not come from source.
15556 (Process_Discriminants): Default discriminants on a tagged type are
15557 legal if this is the internal completion of a private untagged
15560 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
15561 no constraint checks, because it corresponds to an existing object.
15563 * sem_prag.adb (Process_Convention): Pragma applies
15564 only to subprograms in the same declarative part, i.e. the same unit,
15565 not the same scope.
15567 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
15568 ignore type mismatch on a numeric conversion if expression comes from
15571 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
15573 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
15574 Homonym_Number parameter, add processing for Source_Location parameter
15576 (Check_Eliminated): Remove the check for homonym numbers, add the check
15577 for source location traces.
15579 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
15580 with Arg_Source_Location corresponding to the changes in the format of
15583 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
15584 Eliminate pragma corresponding to the changes in the format of the
15585 pragma: Homonym_Number is replaced with Source_Location, two ways of
15586 distinguishing homonyms are mutially-exclusive.
15588 2004-04-19 Joel Brobecker <brobecker@gnat.com>
15590 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
15592 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
15593 No_Dollar_In_Label, no longer necessary, as it is always True.
15594 (Strip_Suffixes): Likewise.
15596 2004-04-19 Gary Dismukes <dismukes@gnat.com>
15598 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
15599 modulus for compatibility with size clause on targets with 16-bit
15602 * layout.adb (Discrimify): In the case of private types, set Vtyp to
15603 full type to fix type mismatches on calls to size functions for
15604 discriminant-dependent array components.
15606 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
15608 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
15611 2004-04-19 Pascal Obry <obry@gnat.com>
15613 * mdll-utl.adb (Locate): New version is idempotent.
15615 2004-04-17 Laurent Guerby <laurent@guerby.net>
15617 PR ada/14988 (partial)
15618 * impunit.adb: Fix typo.
15620 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
15622 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
15623 and install-rts-cert targets. Remove all gnatlib and gnattools
15624 targets and all other rts-* targets (moved to libada). Remove (now)
15625 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
15626 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
15628 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15630 * trans.c (tree_transform): Shortcut returning error_mark_node for
15631 statements in annotate_only_mode.
15632 (tree_transform, case N_Label, case N_Return_Statement,
15633 N_Goto_Statement): Make statement tree instead of generating code.
15634 (tree_transform, case N_Assignment_Statement): No longer check
15635 type_annotate_only.
15636 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
15638 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
15640 (gnat_to_gnu): Collect any RTL generated and deal with it.
15641 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
15642 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
15643 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
15645 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
15647 * ada-tree.def (EXPR_STMT): Fix typo in name.
15648 (BLOCK_STMT, IF_STMT): New nodes.
15650 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
15651 LABEL_STMT_FIRST_IN_EH): New macros.
15652 (RETURN_STMT_EXPR): Likewise.
15654 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
15655 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
15657 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
15659 * atree.ads: Correct documentation on extended nodes.
15661 * link.c: Set run_path_option for FreeBSD.
15663 2004-04-08 Vincent Celier <celier@gnat.com>
15665 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
15666 one of the ALI file, do not link with DEC lib.
15668 * par.adb Remove the last two characters ("%s" or "%b") when checking
15669 if a language defined unit may be recompiled.
15671 2004-04-08 Ed Schonberg <schonberg@gnat.com>
15673 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
15674 removal of abstract operation leaves no possible interpretation for
15677 * sem_eval.adb (Eval_Qualified_Expression): Use
15678 Set_Raises_Constraint_Error on node when needed, so that it does not
15679 get optimized away by subsequent optimizations.
15681 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
15682 operands even when they are not wrapped in a type conversion.
15684 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
15686 * sem_prag.adb (Set_Exported): Warn about making static as result of
15687 export only when the export is coming from source. This may be not
15688 be true e.g. on VMS where we expand export pragmas for exception codes
15689 together with imported or exported exceptions, and we don't want the
15690 user to be warned about something he didn't write.
15692 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
15694 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
15695 duplication between normal entities and those declared as renamings.
15696 No functional change.
15698 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
15699 inline functions returning an unconstrained result.
15701 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
15703 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
15704 conform to what other front-ends do.
15706 2004-04-08 Doug Rupp <rupp@gnat.com>
15708 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
15711 2004-04-06 Pascal Obry <obry@gnat.com>
15713 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
15715 * osint.adb (Program_Name): Do not look past a directory separator.
15717 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
15719 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
15721 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
15722 requirement for preserving a copy of the original assignment node.
15724 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
15726 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
15728 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
15731 2004-04-06 Ed Schonberg <schonberg@gnat.com>
15733 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
15734 operator calls in functional notation, and apply
15735 Universal_Interpretation to operands, not to their type.
15737 2004-04-06 Robert Dewar <dewar@gnat.com>
15739 * 5wdirval.adb: Minor reformatting
15741 2004-04-06 Ed Falis <falis@gnat.com>
15743 * gnat_rm.texi: Improve a reference to the GCC manual
15745 2004-04-05 Vincent Celier <celier@gnat.com>
15747 * adaint.h, adaint.c: Add function __gnat_named_file_length
15749 * impunit.adb: Add Ada.Directories to the list
15751 * Makefile.in: Add VMS and Windows versions of
15752 Ada.Directories.Validity package body.
15754 * Makefile.rtl: Add a-direct and a-dirval
15756 * mlib-tgt.ads: Minor comment update.
15758 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
15759 a-direct.ads, a-direct.adb: New files.
15761 2004-04-05 Vincent Celier <celier@gnat.com>
15764 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
15765 just to the compiler.
15767 2004-04-05 Robert Dewar <dewar@gnat.com>
15769 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
15770 returned string is 1.
15772 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
15774 * eval_fat.ads: Minor reformatting
15776 * g-curexc.ads: Document that lower bound of returned string values
15779 * gnatlink.adb: Add ??? comment for previous change
15780 (need to document why this is VMS specific)
15782 * s-stoele.ads: Minor reformatting
15784 * tbuild.ads: Minor reformatting throughout (new function specs)
15786 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
15789 * scng.adb: Minor reformatting
15791 2004-04-05 Geert Bosch <bosch@gnat.com>
15793 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
15794 (Leading_Part): Still perform truncation to machine number if the
15795 specified radix_digits is greater or equal to machine_mantissa.
15797 2004-04-05 Javier Miranda <miranda@gnat.com>
15799 * par-ch3.adb: Complete documentation of previous change
15800 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
15801 (aliased must appear before constant).
15803 * par-ch4.adb: Complete documentation of previous change.
15805 * par-ch6.adb: Complete documentation of previous change.
15807 * sinfo.ads: Fix typo in commment.
15809 2004-04-05 Ed Schonberg <schonberg@gnat.com>
15811 * sem_ch3.adb (Inherit_Components): If derived type is private and has
15812 stored discriminants, use its discriminants to constrain parent type,
15813 as is done for non-private derived record types.
15815 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
15816 Ada 2005 AI-310: an abstract non-dispatching operation is not a
15817 candidate interpretation in an overloaded call.
15819 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
15820 expression is Null and target type is not an access type (e.g. a
15821 non-private address type).
15823 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
15825 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
15826 statement whose right-hand side is an inlined call, save a copy of the
15827 original assignment subtree to preserve enough consistency for
15828 Analyze_Assignment to proceed.
15830 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
15831 complete assignment subtree which is now unnecessary, as the expansion
15832 of inlined call has been improved to preserve a consistent assignment
15833 tree. Note_Possible_Modification must be called only
15834 after checks have been applied, or else unnecessary checks will
15837 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
15838 of explicit dereferences that do not Come_From_Source:
15839 - be selective on cases where we must go back to the dereferenced
15840 pointer (an assignment to an implicit dereference must not be
15841 recorded as modifying the pointer);
15842 - do not rely on Original_Node being present (Analyze_Assignment
15843 calls Note_Possible_Modification on a copied tree).
15845 * sem_warn.adb (Check_References): When an unset reference to a pointer
15846 that is never assigned is encountered, prefer '<pointer> may be null'
15847 warning over '<pointer> is never assigned a value'.
15849 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
15851 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
15854 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
15856 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
15857 libexc. We currently don't reference anything in this library and
15858 linking it in triggers linker warnings we don't want to see.
15860 * init.c: Update comments.
15862 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15864 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
15865 * utils.c (create_field_decl): Likewise.
15866 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
15868 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
15870 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
15871 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
15872 Add info directory entry and category.
15874 2004-04-02 Jan Hubicka <jh@suse.cz>
15876 * utils.c: Include function.h
15877 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
15879 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
15882 * Make-lang.in: Clean up generation of documentation
15884 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
15886 * xgnatug.adb: Removed, replaced by xgnatugn.adb
15888 * xgnatugn.adb: Replaces xgnatug.adb
15890 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
15892 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
15894 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
15895 gnat_ug_wnt.texi: Removed.
15897 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
15899 * utils2.c: Update copyright notice.
15901 2004-04-01 Robert Dewar <dewar@gnat.com>
15903 * checks.adb: Minor reformatting throughout
15904 Note that prev checkin added RM reference to alignment warning
15906 2004-04-01 Ed Schonberg <schonberg@gnat.com>
15908 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
15909 non-static when building aggregate for bit-packed array.
15911 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
15912 function call that is itself the actual in a procedure call, build
15915 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
15916 a string literal, create a temporary for it, constant folding only
15917 handles scalars here.
15919 2004-04-01 Vincent Celier <celier@gnat.com>
15921 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
15922 Error_Msg_SP): New empty procedures to instantiate the Scanner.
15923 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
15925 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
15926 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
15927 and get the checksum.
15929 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
15931 Increase the Marking_Label at the end of the Multiple_Main_Loop,
15932 instead of at the beginning.
15934 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
15936 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
15939 * osint.ads (Multi_Unit_Index_Character): New Character global variable
15941 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
15944 * par.adb: Remove test on file name to detect language defined units.
15945 Add test on unit name, after parsing, to detect language defined units
15946 that are not compiled with -gnatg (except System.RPC and its children)
15948 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
15949 following units without style checking.
15951 * switch-c.adb: Change -gnatC to -gnateI
15953 * usage.adb: Document new switch -gnateInnn
15955 * scng.adb (Accumulate_Token_Checksum): New procedure
15956 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
15957 word or literal number.
15958 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
15961 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
15964 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
15965 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
15966 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
15967 5vtpopde.adb: Add missing 'constant' keywords.
15969 2004-04-01 Javier Miranda <miranda@gnat.com>
15971 * par-ch4.adb: (P_Allocator): Code cleanup
15973 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
15976 * sinfo.ads: Complete documentation of previous change
15978 2004-04-01 Pascal Obry <obry@gnat.com>
15980 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
15981 only on VMS. This special handling was done because an old GNU/ld bug
15982 on Windows which has been fixed.
15984 2004-04-01 GNAT Script <nobody@gnat.com>
15986 * Make-lang.in: Makefile automatically updated
15988 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15990 * decl.c (gnat_to_gnu_entity, make_type_from_size):
15991 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
15992 * trans.c (tree_transform, convert_with_check): Likewise.
15993 * utils.c (gnat_signed_or_unsigned_type): Likewise.
15994 (build_vms_descriptor, unchecked_convert): Likewise.
15995 * utils2.c (nonbinary_modular_operation): Likewise.
15997 2004-03-29 Javier Miranda <miranda@gnat.com>
15999 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
16000 (Install_Null_Excluding_Check): Local subprogram that determines whether
16001 an access node requires a runtime access check and if so inserts the
16002 appropriate run-time check.
16003 (Apply_Access_Check): Call Install_Null_Excluding check if required
16004 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
16006 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
16008 * einfo.ads: Fix typo in comment
16010 * exp_ch3.adb (Build_Assignment): Generate conversion to the
16011 null-excluding type to force the corresponding run-time check.
16012 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
16013 type to force the corresponding run-time check.
16015 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
16016 the null-excluding type to force the corresponding run-time check.
16018 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
16019 case of access types unless they have the null-excluding attribute.
16021 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
16024 * exp_util.ads: Fix typo in comment
16026 * par.adb (P_Null_Exclusion): New subprogram
16027 (P_Subtype_Indication): New formal that indicates if the null-excluding
16028 part has been scanned-out and it was present
16030 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
16032 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
16033 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
16034 type to force the corresponding run-time check
16035 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
16037 (Resolve_Array_Aggregate): Carry out some static checks
16038 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
16040 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
16041 attribute must be set only if specified by means of the null-excluding
16042 part. In addition, we must also propagate the access-constant attribute
16044 (Access_Subprogram_Declaration, Access_Type_Declaration,
16045 Analyze_Component_Declaration, Analyze_Object_Declaration,
16046 Array_Type_Declaration, Process_Discriminants,
16047 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
16048 and carry out some static checks.
16049 (Build_Derived_Access_Type): Set the null-excluding attribute
16050 (Derived_Type_Declaration, Process_Subtype): Carry out some static
16053 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
16055 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
16057 * sem_ch6.adb (Process_Formals): Carry out some static checks.
16058 (Set_Actual_Subtypes): Generate null-excluding subtype if the
16059 null-excluding part was present; it is not required to be done here in
16060 case of anonymous access types.
16061 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
16064 * sem_res.adb (Resolve_Actuals): Carry out some static check
16065 (Resolve_Null): Allow null in anonymous access
16067 * sinfo.adb: New subprogram Null_Exclusion_Present
16068 All_Present and Constant_Present available on access_definition nodes
16070 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
16071 object_declaration, derived_type_definition, component_definition,
16072 discriminant_specification, access_to_object_definition,
16073 access_function_definition, allocator, access_procedure_definition,
16074 access_definition, parameter_specification, All_Present and
16075 Constant_Present flags available on access_definition nodes.
16077 2004-03-29 Robert Dewar <dewar@gnat.com>
16079 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
16080 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
16081 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
16082 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
16083 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
16084 sem_prag.adb: Updates to handle multiple units/file
16086 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
16088 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
16089 sem_util.adb: Minor reformatting
16091 * sem_ch12.adb: Add comment for previous change
16093 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
16095 * osint.adb (Executable_Prefix): Set Exec_Name to the current
16096 executable name when not initialized. Otherwise, use its current value.
16098 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
16099 initialize it to another executable name than the current one. This
16100 allows to configure paths for an executable name (gnatmake) different
16101 from the current one (gnatdist).
16103 2004-03-29 Ed Schonberg <schonberg@gnat.com>
16105 * exp_ch6.adb (Expand_Call): A call to a function declared in the
16106 current unit cannot be inlined if it appears in the body of a withed
16107 unit, to avoid order of elaboration problems in gigi.
16109 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
16110 information for protected (wrapper) operation as well, to simplify gdb
16113 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
16114 protected body, indicate that the entity for the generated spec comes
16115 from source, to ensure that references are properly generated for it.
16116 (Build_Body_To_Inline): Do not inline a function that returns a
16119 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
16120 apply convention to homonyms that are declared explicitly.
16122 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
16123 that renames an equality operator and the operands are overloaded,
16124 resolve them with the declared formal types, before rewriting as an
16127 2004-03-29 GNAT Script <nobody@gnat.com>
16129 * Make-lang.in: Makefile automatically updated
16131 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
16133 * memtrack.adb: Log realloc calls, which are treated as free followed
16136 2004-03-25 Vincent Celier <celier@gnat.com>
16138 * prj-makr.adb (Process_Directories): Detect when a file contains
16139 several units. Do not include such files in the config pragmas or
16140 in the naming scheme.
16142 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
16143 Resolve links only when not in Trusted_Mode.
16144 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
16145 Do not resolve links for the display names.
16147 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
16148 resolve links when computing the display names.
16150 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
16152 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
16153 attribute reference does not denote a subtype, it can be any
16154 expression that has a classwide type, potentially after an implicit
16155 dereference. In particular, the prefix can be a view conversion for
16156 a classwide type (for which Is_Object_Reference holds), but it can
16157 also be a value conversion for an access-to-classwide type. In the
16158 latter case, there is an implicit dereference, and the original node
16159 for the prefix does not verify Is_Object_Reference.
16161 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
16162 conversion of a discriminant-dependent component of a mutable object
16165 2004-03-25 Ed Schonberg <schonberg@gnat.com>
16167 * freeze.adb (Freeze_Entity): When an inherited subprogram is
16168 inherited, has convention C, and has unconstrained array parameters,
16169 place the corresponding warning on the derived type declaration rather
16170 than the original subprogram.
16172 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
16173 indication on renaming declaration, if formal has a box and actual
16176 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
16177 determine whether to generate an implicit or explicit reference to
16178 the renamed entity.
16180 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
16181 subprogram renaming comes from a defaulted formal subprogram in an
16184 2004-03-25 Gary Dismukes <dismukes@gnat.com>
16186 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
16187 value expressions to ensure that calls within a component definition
16188 will be checked (since those are evaluated during the record type's
16191 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
16193 * s-tpobop.adb: Code clean up:
16194 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
16196 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
16198 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
16200 * Makefile.in: Clean up in the ravenscar run time.
16202 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16204 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
16205 of No_Strict_Aliasing to build_pointer_type_for_mode.
16206 * utils.c (update_pointer_to): Walk pointer and ref chains.
16208 2004-03-22 Cyrille Comar <comar@act-europe.fr>
16210 * ali.ads: Fix Comment about Dynamic_Elab.
16212 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
16213 Has_RACW, Is_Generic, etc.)
16214 (Output_Object, Gnatls): Take into account ALI files not attached to
16217 2004-03-22 Vincent Celier <celier@gnat.com>
16219 * gprep.adb: Change all String_Access to Name_Id
16220 (Is_ASCII_Letter): new function
16221 (Double_File_Name_Buffer): New procedure
16222 (Preprocess_Infile_Name): New procedure
16223 (Process_Files): New procedure
16224 (Gnatprep): Check if output and input are existing directories.
16225 Call Process_Files to do the real job.
16227 2004-03-22 Robert Dewar <dewar@gnat.com>
16229 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
16230 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
16232 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
16234 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
16235 case when the source contains only comments.
16237 2004-03-22 Ed Schonberg <schonberg@gnat.com>
16239 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
16240 declaration for a child subprogram body that acts as a spec, indicate
16241 that the entity in the declaration needs debugging information.
16243 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
16244 full view if the subtype is created for a constrained record component;
16245 gigi has enough information to construct the record, and there is no
16246 place in the tree for the declaration.
16248 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
16249 serial number for the dummy body that is built for analysis, to avoid
16250 inconsistencies in the generation of internal names when compiling
16253 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
16255 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
16258 2004-03-22 GNAT Script <nobody@gnat.com>
16260 * Make-lang.in: Makefile automatically updated
16262 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16264 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
16265 * trans.c (tree_transform, emit_index_check): Likewise.
16266 * utils.c (build_template): Likewise.
16267 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
16268 (maybe_unconstrained_array, unchecked_convert): Likewise.
16269 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
16270 (build_unary_op): Likewise.
16271 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
16272 (fill_vms_descriptor): Likewise.
16273 (build_call_alloc_dealloc): Likewise.
16275 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
16277 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
16280 * gnat_ug.texi: Add info directory category and entry.
16281 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
16282 gnat_ug_wnt.texi: Regenerate.
16284 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
16286 * ada-tree.h: Update copyright notice.
16287 Minor reformatting.
16289 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
16291 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
16292 as regular exception objects and not as mere integers representing the
16293 condition code. The latter approach required some dynamics to mask off
16294 severity bits, which did not fit well into the GCC table based model.
16295 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
16296 exception data objects. We don't it and it would conflict with the other
16297 external symbol we have to generate for such exceptions.
16299 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
16300 the special code for VMS exceptions, since these are now represented
16301 as regular exceptions objects.
16303 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16305 * decl.c (debug_no_type_hash): Remove.
16306 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
16307 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
16309 2004-03-19 Laurent Guerby <laurent@guerby.net>
16311 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
16312 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
16314 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16316 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
16317 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
16318 (TYPE_RM_SIZE_INT): Directly use type.values.
16319 (TREE_LOOP_ID): Clean up check.
16320 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
16321 TYPE_VALUES, not TYPE_FIELDS.
16322 * trans.c (convert_with_check): Delay access of bounds of basetype
16323 until sure is numeric.
16325 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
16327 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
16330 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
16331 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
16332 Specific.Set instead of direct call to e.g pthread_setspecific.
16334 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
16336 * adaint.c: Update comments.
16338 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
16339 GNATLIB_SHARED for FreeBSD.
16341 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
16343 * init.c [VxWorks]: Do not fix the stack size for the environment task.
16344 When needed (stack checking) the stack size is retrieved
16345 from the VxWorks kernel.
16347 * Makefile.in: Flag -nostdinc is required when building the run time
16348 for avoiding looking for files in the base compiler.
16349 Add the VxWorks specific version of the package body for
16350 System.Stack_checking.Operations (5zstchop.adb).
16352 * Make-lang.in: Add the object file for
16353 System.Stack_Checking.Operations.
16355 * Makefile.rtl: Add object file for the package
16356 System.Stack_Checking.Operations.
16358 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
16360 * s-stache.ads, s-stache.adb: Move the operations related to stack
16361 checking from this package to package System.Stack_Checking.Operations.
16362 This way, stack checking operations are only linked in the final
16363 executable when using the -fstack-check flag.
16365 2004-03-18 Doug Rupp <rupp@gnat.com>
16367 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
16370 * 5qsystem.ads, 5xcrtl.ads: New files.
16372 2004-03-18 Vincent Celier <celier@gnat.com>
16374 * prj.adb (Reset): Reset hash table Files_Htable
16376 * prj-env.adb (Source_Paths, Object_Paths): New tables.
16377 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
16378 the procedures Add_To_Path_File.
16379 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
16380 making sure that each directory is present only once and, for object
16381 dirs, when a directory already present is added, the duplicate is
16382 removed and the directory is always put as the last in the table.
16383 Write the path files at the end of these accumulations.
16385 * prj-nmsc.adb (Record_Source): Add source file name in hash table
16386 Files_Htable for all sources.
16388 * prj-proc.adb (Process): Remove restrictions between not directly
16389 related extending projects.
16391 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
16393 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
16394 (Find_Sources): Minor speed optimization.
16396 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
16397 parameter Trusted_Mode.
16399 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
16401 * scn.adb (Determine_License): Take into account a degenerated case
16402 when the source contains only comments.
16404 2004-03-18 Ed Schonberg <schonberg@gnat.com>
16406 * sem_warn.adb (Check_References): For a warning on a selected
16407 component that does not come from source, locate an uninitialized
16408 component of the record type to produce a more precise error message.
16410 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
16412 * 3zsoccon.ads: Fix multicast options.
16414 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
16417 2004-03-15 Robert Dewar <dewar@gnat.com>
16419 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
16420 pragma used for a private type.
16422 * lib-xref.adb (Generate_Reference): Do not generate warning if
16423 reference is in a different unit from the pragma Unreferenced.
16425 * 5vtpopde.adb: Minor reformatting
16426 Fix casing of To_Task_ID
16428 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
16429 flag if we have an unchecked conversion to an access type in the same
16432 2004-03-15 Geert Bosch <bosch@gnat.com>
16434 * a-ngcoty.adb (Modulus): In alternate formula for large real or
16435 imaginary parts, use Double precision throughout.
16437 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
16438 we want to be able to compile run-time with -gnata for testing, but
16439 this may also be instantiated in user code that is compiled with -gnata.
16441 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
16443 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
16444 codes. Having a separate type for this is useful to enforce consistency
16445 throughout the various run-time units.
16446 (Exception_Data): Use Exception_Code for Import_Code.
16448 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
16449 Natural and Integer in various places.
16450 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
16451 with the severity bits masked off.
16452 (Register_VMS_Exception): Handle the additional exception data pointer
16455 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
16456 component, now reflected by an exported accessor.
16457 (is_handled_by): New routine to compute whether the propagated
16458 occurrence matches some handler choice specification. Extracted out of
16459 get_action_description_for, and expanded to take care of the VMS
16461 (get_action_description_for): Use is_handled_by instead of an explicit
16462 complex condition to decide if the current choice at hand catches the
16463 propagated occurrence.
16465 * raise.h (Exception_Code): New type for C.
16467 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
16468 System.Standard_Library.Exception_Code, to allow references from the
16469 pragma import/export expander.
16471 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
16472 New accessors to allow easy access to GNAT exception data
16474 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
16475 redundant Handled_By_Others component, helper for the personality
16476 routine which will now be able to call the appropriate exception data
16479 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
16480 component of Standard_Exception_Type to be the closest possible to
16481 Exception_Code in System.Standard_Library, that we cannot get at this
16482 point. Expand a ??? comment to notify that this type node should
16483 probably be rewritten later on.
16485 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
16486 registration call to include a pointer to the exception object in the
16489 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
16490 instead of int and explicit bitmasks.
16492 2004-03-15 Vincent Celier <celier@gnat.com>
16494 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
16495 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
16497 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
16498 longer needed now that it is in the spec of
16499 System.Tasking.Task_Attributes.
16501 * adaint.h, adaint.c: (__gnat_create_output_file): New function
16503 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
16505 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
16507 * make.adb (Gnatmake): Do not check the executable suffix; it is being
16508 taken care of in Scan_Make_Arg.
16509 (Scan_Make_Arg): Add the executable suffix only if the argument
16510 following -o, in canonical case, does not end with the executable
16511 suffix. When in verbose mode and executable file name does not end
16512 with executable suffix, output the executable name, in canonical case.
16514 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
16515 to avoid warnings when instantiating Ada.Task_Attributes.
16518 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
16519 in the correct order.
16521 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
16522 redirect standard output and error to a file for the invocation of the
16523 compiler, then read the file.
16525 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
16526 directory, instead of the Value.
16527 (Find_Source_Dirs): Remove useless code & comments.
16529 2004-03-15 Ed Schonberg <schonberg@gnat.com>
16531 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
16532 tagged type is inherited, and the parent operation is not frozen yet,
16533 force generation of a freeze node for the inherited operation, so the
16534 corresponding dispatch entry is properly initialized.
16535 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
16536 when looking for user-defined equality operation.
16538 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
16539 boolean when locating primitive equality of tagged component.
16541 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
16542 bit-aligned field and the right-hand side a string literal, introduce
16543 a temporary before expanding assignment into a loop.
16545 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
16546 priority in full, to ensure that any expanded subepxressions of it are
16547 elaborated in the scope of the init_proc.
16549 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
16550 after object declaration, skipping over code that may have been
16551 generated for validity checks.
16553 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
16554 discriminants, ignore the known discriminants of its full view, if
16555 any, to check legality.
16557 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
16558 component if type has unknown discriminants.
16559 (Analyze_Private_Extension_Declaration): Discriminant constraint is
16560 null if type has unknown discriminants.
16562 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
16563 for end label when present.
16565 * s-fileio.adb (Open): When called with a C_Stream, use given name for
16566 temporary file, rather than an empty string.
16568 2004-03-15 Ed Falis <falis@gnat.com>
16570 * s-thread.adb: Removed, no longer used.
16572 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16574 * decl.c (target.h): Now include.
16575 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
16576 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
16577 (validate_size): For POINTER_TYPE, get smallest size permitted on
16580 * fe.h: Sort Einfo decls and add Set_Mechanism.
16582 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
16583 (ada/decl.o): Depends on target.h.
16585 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
16586 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
16588 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
16590 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
16592 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
16593 Insert_Dereference_Action when rewriting an implicit dereference into
16594 an explicit one, this will be taken care of during expansion of the
16595 explicit dereference.
16596 (Expand_N_Slice): Same. Always do the rewriting, even for the case
16597 of non-packed slices, since the dereference action generated by
16598 expansion of the explicit dereference is needed in any case.
16599 (Expand_N_Selected_Component): When rewriting an implicit dereference,
16600 analyze and resolve the rewritten explicit dereference so it is seen
16602 (Insert_Dereference_Action): This procedure is now called only for the
16603 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
16604 dereferences that do not come from source (including explicit
16605 dereferences resulting from rewriting implicit ones), but do not
16606 recursively insert a check for the dereference nodes contained within
16608 (Insert_Dereference_Action): Clarify and correct comment.
16610 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
16613 Move language detection to the top level.
16614 * config-lang.in: Build by default.
16616 2004-03-05 Robert Dewar <dewar@gnat.com>
16618 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
16620 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
16621 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
16622 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
16623 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
16624 unchecked conversion to spec to avoid warnings.
16626 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
16629 * 7stpopsp.adb: Correct casing in To_Task_ID call
16631 * a-strsea.ads, a-strsea.adb: Minor reformatting
16633 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
16635 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
16636 Adjust Max_Msg_Length to be clearly large enough.
16638 * fe.h: Define In_Same_Source_Unit
16640 * osint.adb: Add pragma Warnings Off to suppress warnings
16641 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
16644 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
16646 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
16648 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
16650 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
16652 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
16654 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
16655 node. We now do generate them for gcc back end.
16657 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
16660 * sinput-c.adb: Fix bad name in header.
16661 Add pragma Warnings Off to suppress aliasing warning.
16663 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
16665 * snames.h, snames.ads, snames.adb: Add entry for pragma
16666 No_Strict_Aliasing.
16668 2004-03-05 Vincent Celier <celier@gnat.com>
16670 * prj-com.ads: Add hash table Files_Htable to check when a file name
16671 is already a source of another project.
16673 * prj-nmsc.adb (Record_Source): Before recording a new source, check
16674 if its file name is not already a source of another project. Report an
16677 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
16678 source file name, call gnatpp with all the sources of the main project.
16680 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
16683 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
16684 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
16685 /RUNTIME_SYSTEM=, converted to --RTS=
16686 /NOTABS, converted to -notabs
16688 2004-03-05 Pascal Obry <obry@gnat.com>
16690 * make.adb: Minor reformatting.
16692 2004-03-05 Ed Schonberg <schonberg@gnat.com>
16694 Part of implemention of AI-262.
16695 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
16697 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
16700 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
16701 when component type is a partially constrained class-wide subtype.
16702 (Constrain_Discriminated_Type): If parent type has unknown
16703 discriminants, a constraint is illegal, even if full view has
16705 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
16706 with unknown discriminants whose full view is a discriminated record.
16708 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
16709 flag, to handle properly derivations of tagged types with unknown
16711 (Analyze_Package_Spec, Analyze_Package_Body): Install
16712 Private_With_Clauses before analyzing private part or body.
16714 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
16715 Has_Discriminants can be true for a given type (documentation).
16717 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
16719 * s-restri.ads: Fix license (GPL->GMGPL).
16721 * s-tassta.adb: Minor reformatting.
16723 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
16724 by calls to Exit_One_ATC_Level, since additional clean up is performed
16727 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
16728 by calls to Exit_One_ATC_Level, since additional clean up is performed
16731 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16733 * trans.c: Reflect GCC changes to fix bootstrap problem.
16734 Add warning for suspicious aliasing unchecked conversion.
16736 2004-03-05 GNAT Script <nobody@gnat.com>
16738 * Make-lang.in: Makefile automatically updated
16740 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
16742 * ali.adb (Read_Instantiation_Instance): Do not modify the
16743 current_file_num when reading information about instantiations, since
16744 this corrupts files in later references.
16746 2004-03-02 Vincent Celier <celier@gnat.com>
16748 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
16749 before checking if it is read-only.
16751 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
16752 of SRC_DIRS and eliminate duplicates.
16754 * gprcmd.adb: Replace command "path" with command "path_sep" to return
16755 the path separator.
16756 (Usage): Document path_sep
16758 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
16759 C++ compiler. No need for a script.
16760 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
16761 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
16764 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
16765 where there are Ada sources.
16766 (Set_Ada_Paths): Only add to the include path the source dirs of project
16768 (Add_To_Path): Add the Display_Values of the directories, not their
16771 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
16774 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
16776 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
16777 Value is canonicalized.
16778 (Language_Independent_Check): Do not copy Value to Display_Value when
16779 canonicalizing Value.
16781 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
16782 path to find limited with cycles.
16783 (Parse_Single_Project): Use canonical cased path to find the end of a
16786 2004-03-02 Ed Schonberg <schonberg@gnat.com>
16788 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
16789 and not a child unit.
16791 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
16792 appear in a with_clause.
16794 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
16795 only happen in type_annotate mode, do not try to elaborate it.
16797 * exp_util.adb (Force_Evaluation): If expression is a selected
16798 component on the left of an assignment, use a renaming rather than a
16799 temporary to remove side effects.
16801 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
16802 inlined instance body, which is analyzed before the end of the
16805 2004-03-02 Robert Dewar <dewar@gnat.com>
16807 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
16808 sem_ch4.adb: Use new feature for substitution of keywords in VMS
16810 * errout.ads, errout.adb: Implement new circuit for substitution of
16813 * sem_case.adb (Analyze_Choices): Place message properly when case is
16814 a subtype reference rather than an explicit range.
16816 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
16818 2004-03-02 Doug Rupp <rupp@gnat.com>
16820 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
16822 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
16824 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
16826 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16828 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
16831 2004-02-25 Robert Dewar <dewar@gnat.com>
16833 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
16834 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
16835 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
16836 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
16837 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
16838 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
16839 the defining instance of the type to avoid aliasing problems.
16840 Fix copyright header. Fix bad comments in package header.
16842 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
16844 2004-02-25 Ed Schonberg <schonberg@gnat.com>
16846 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
16847 rewritten as references when aliased through an address clause.
16849 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
16850 whether call can be interpreted as an indirect call to the result of a
16851 parameterless function call returning an access subprogram.
16853 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
16856 * exp_ch7.adb (Make_Clean): Remove generation of calls to
16857 Unlock[_Entries], since this is now done by Service_Entries directly.
16859 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
16861 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
16862 Requeue_Call for better code readability. Change spec and update calls:
16863 PO_Service_Entries now unlock the PO on exit.
16864 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
16865 PO_Service_Entries.
16867 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
16869 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
16871 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
16873 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
16874 protected subprogram call and analyzing the result of such expanding
16875 in case when the called protected subprogram is eliminated.
16877 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
16880 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
16882 * Makefile.in: Clean ups.
16884 2004-02-23 Ed Schonberg <schonberg@gnat.com>
16886 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
16887 protected operations if original subprogram is flagged as eliminated.
16888 (Expand_N_Subprogram_Body): For a protected operation, create
16889 discriminals for next operation before checking whether the operation
16892 * exp_ch9.adb (Expand_N_Protected_Body,
16893 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
16894 for internal protected operations if the original subprogram is
16897 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
16898 declared in a single protected object.
16900 2004-02-23 Vincent Celier <celier@gnat.com>
16902 * prj-attr.adb: Make attribute Builder'Executable an associative array,
16903 case insensitive if file names are case insensitive, instead of a
16904 standard associative array.
16906 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
16907 them as case insensitive on platforms where the file names are case
16910 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
16911 project file has already been parsed that canonical path are compared.
16913 2004-02-23 Robert Dewar <dewar@gnat.com>
16915 * sinput-c.ads: Correct bad unit title in header
16917 * freeze.adb: Minor reformatting
16919 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16921 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
16922 nonaddressable COMPONENT_REF that is removing padding that we are
16923 taking the address of, take the address of the padded record instead
16924 if item is variable size.
16926 2004-02-20 Robert Dewar <dewar@gnat.com>
16928 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
16930 2004-02-20 Ed Schonberg <schonberg@gnat.com>
16932 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
16933 itype references for the constrained designated type of a component
16934 whose base type is already frozen.
16936 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
16938 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
16939 avoid GCC warnings.
16941 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
16943 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
16944 identifier for a phantom package that rewrites the formal package
16945 declaration with a box. The Add semantic decorations for the defining
16946 identifier from the original node (that represents the formal package).
16948 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
16950 * Make-lang.in (ada/stamp-sdefault): Use the top level
16953 2004-02-19 Richard Henderson <rth@redhat.com>
16955 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
16957 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
16959 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
16960 Scan_ALI can be used for multiple ALI files without reinitializing
16963 2004-02-18 Robert Dewar <dewar@gnat.com>
16965 * debug.adb: Minor reformatting.
16967 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16969 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
16970 to zero if there is an address clause.
16972 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
16974 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
16976 2004-02-18 Gary Dismukes <dismukes@gnat.com>
16978 * layout.adb (Layout_Component_List): Revise generation of call to
16979 discriminant-checking function to pass selections of all of the type's
16980 discriminants rather than just the variant-controlling discriminant.
16982 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
16984 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
16985 fail in the current setup and triggers spurious system error messages.
16986 Pretend it occurred and failed instead.
16988 2004-02-18 Vincent Celier <celier@gnat.com>
16990 * bld.adb: Mark FLDFLAGS as saved
16991 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
16992 it is not the root project. Put each directory to be
16993 extended between double quotes to prevent it to be expanded on Windows.
16994 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
16995 the project file. Set them back to their initial values if they have not
16996 been set in the project file.
16998 * gprcmd.adb: (Gprdebug, Debug): New global variables
16999 (Display_Command): New procedure
17000 (Usage): Document new command "linkopts"
17001 Call Display_Command when env var GPRDEBUG has the value "TRUE"
17002 Implement new command "linkopts"
17003 Remove quotes that may be around arguments for "extend"
17004 Always call Normalize_Pathname with arguments formatted for the platform
17006 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
17007 Change @echo to @$(display) in target clean to be able to clean silently
17009 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
17011 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
17014 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
17015 = Extending_All when current project is an extending all project.
17017 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
17018 set to True only for LINK command, after Unix switch -o.
17019 (Process_Arguments): Set Output_File_Expected to True for LINK command
17020 after Unix switch -o. When Output_File_Expected is True, never add an
17021 extension to a file name.
17023 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
17024 option file name, only to the --for-linker= switch.
17025 (Option_File_Name): If option file name do not end with ".opt", append
17028 2004-02-18 GNAT Script <nobody@gnat.com>
17030 * Make-lang.in: Makefile automatically updated
17032 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
17034 * Make-lang.in (stamp-sdefault): Do not depend on
17037 2004-02-12 Zack Weinberg <zack@codesourcery.com>
17039 * config-lang.in: Disable Ada by default until probe logic for
17040 a bootstrap Ada compiler can be moved to the top level configure
17043 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
17045 * decl.c (components_to_record): Don't claim that the internal fields
17046 we make to hold the variant parts are semantically addressable, because
17049 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
17050 adjust the comment describing the modular type form when we can use it.
17051 (Install_PAT): Account for the Esiz renaming.
17053 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
17054 sc_onstack context indication before raising the exception to which
17055 the signal is mapped. Allows better handling of later signals possibly
17056 triggered by the resumed user code if the exception is handled.
17058 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
17060 * 5zinit.adb: Removed, no longer used.
17062 2004-02-12 Robert Dewar <dewar@gnat.com>
17064 * ali.adb: Remove separating space between parameters on R line. Makes
17065 format consistent with format used by the binder for Set_Globals call.
17067 * atree.ads, atree.adb: Minor reformatting (new function header format)
17069 * bindgen.adb: Add Run-Time Globals documentation section containing
17070 detailed documentation of the globals passed from the binder file to
17073 * gnatls.adb: Minor reformatting
17075 * init.c (__gnat_set_globals): Add note pointing to documentation in
17078 * lib-writ.ads, lib-writ.adb: Remove separating space between
17079 parameters on R line.
17080 Makes format consistent with format used by the binder for Set_Globals
17083 * osint.ads: Add 2004 to copyright notice
17086 * snames.ads: Correct capitalization of FIFO_Within_Priorities
17087 Noticed during code reading, documentation issue only
17089 * usage.adb: Remove junk line for obsolete C switch
17090 Noticed during code reading
17092 2004-02-12 Vincent Celier <celier@gnat.com>
17094 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
17095 extend for each directory, so that multiple /** directories are
17096 extended individually.
17097 (Recursive_Process): Set the default for LANGUAGES to ada
17099 * gprcmd.adb: Define new command "ignore", to do nothing.
17100 Implement new comment "path".
17102 * Makefile.generic: Suppress output when SILENT is set
17103 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
17104 used, so that the correct compiler is invoked.
17105 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
17106 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
17108 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
17110 * Makefile.in: Clean ups and remove obsolete targets.
17112 2004-02-12 Ed Schonberg <schonberg@gnat.com>
17114 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
17115 predicate declared in exp_util.
17117 * exp_util.adb: Add comments.
17119 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
17120 visibility before compiling context of the subunit.
17122 * sem_res.adb (Check_Parameterless_Call): If the context expects a
17123 value but the name is a procedure, do not attempt to analyze as a call,
17124 in order to obtain more telling diagnostics.
17126 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
17127 'Access on parameterless function calls.
17128 (Normalize_Actuals): For a parameterless function call with missing
17129 actuals, defer diagnostic until resolution of enclosing call.
17131 * sem_util.adb (Wrong_Type): If the context type is an access to
17132 subprogram and the expression is a procedure name, suggest a missing
17135 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
17136 Nathanael Nerode <neroden@gcc.gnu.org>
17138 PR ada/6637, PR ada/5911
17139 Merge with libada-branch:
17140 * config-lang.in: Build libada only when ada is built.
17142 2004-02-09 Ed Schonberg <schonberg@gnat.com>
17144 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
17145 for a tagged type, verify that both formals have the same type.
17147 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
17148 temporary when the formal is an in-parameter and the actual a possibly
17151 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
17152 when expansion is disabled, to ensure proper name capture with
17153 overloaded literals. Condition can be of any boolean type, resolve
17156 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
17157 renaming is for a formal subprogram with a default operator name, and
17158 there is a usable operator that is visible at the point of
17161 2004-02-09 Robert Dewar <dewar@gnat.com>
17163 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
17164 rewrite to ignore errors in ali files, intended to allow tools downward
17165 compatibility with new versions of ali files.
17167 * ali.ads: Add new parameter Ignore_Errors
17169 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
17170 duplicating the error message giving the file with restrictions.
17172 * debug.adb: Add debug flag I for gnatbind
17174 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
17175 operators for the case where the operator is a defining operator.
17177 * exp_ch3.adb: Minor reformatting (new function spec format).
17179 * exp_ch4.adb: Add comment for previous change, and make minor
17180 adjustment to loop to always check for improper loop termination.
17181 Minor reformatting throughout (new function spec format).
17183 * gnatbind.adb: Implement -di debug flag for gnatbind
17185 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
17187 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
17189 * lib-load.adb: Fix bad assertion.
17190 Found by testing and code reading.
17191 Minor reformatting.
17193 * lib-load.ads: Minor reformatting.
17195 * lib-writ.adb: There is only one R line now.
17197 * lib-writ.ads: Add documentation on making downward compatible changes
17198 to ali files so old tools work with new ali files.
17199 There is only one R line now.
17200 Add documentation on format incompatibilities (with special GPS note)
17202 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
17204 * par-load.adb: Minor reformatting
17206 * sem_ch8.adb: Fix to error message from last update
17207 Minor reformatting and restructuring of code from last update
17209 * par-prag.adb, snames.adb, snames.ads, snames.h,
17210 sem_prag.adb: Implement pragma Profile.
17212 * stylesw.adb: Implement -gnatyN switch to turn off all style check
17215 * usage.adb: Add line for -gnatyN switch
17217 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
17219 2004-02-09 Albert Lee <lee@gnat.com>
17221 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
17223 2004-02-09 Ed Schonberg <schonberg@gnat.com>
17225 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
17228 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
17229 is nested in an instance that is not frozen yet, to avoid
17230 order-of-elaboration problems in gigi.
17232 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
17233 body the attribute is legal.
17235 2004-02-09 Robert Dewar <dewar@gnat.com>
17237 * s-rident.ads: Minor comment correction
17239 * targparm.adb: Remove dependence on uintp completely. There was
17240 always a bug in Make in that it called Targparm before initializing
17241 the Uint package. The old code appeared to get away with this, but
17242 the new code did not! This caused an assertion error in gnatmake.
17244 * targparm.ads: Fix bad comment, restriction pragmas with parameters
17245 are indeed fully supported.
17247 2004-02-06 Alan Modra <amodra@bigpond.net.au>
17249 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
17251 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
17253 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
17254 with targetm.calls.promote_prototypes.
17256 2004-02-04 Robert Dewar <dewar@gnat.com>
17258 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
17259 ali.ads, gprcmd.adb: Minor reformatting
17261 * bindgen.adb: Output restrictions string for new style restrictions
17264 * impunit.adb: Add s-rident.ads (System.Rident) and
17265 s-restri (System.Restrictions)
17267 * lib-writ.adb: Fix bug in writing restrictions string (last few
17270 * s-restri.ads, s-restri.adb: Change name Restrictions to
17271 Run_Time_Restrictions to avoid conflict with package name.
17272 Add circuit to read and acquire run time restrictions.
17274 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
17276 * restrict.ads, restrict.adb: Use the new restriction
17277 No_Task_Attributes_Package instead of the old No_Task_Attributes.
17279 * sem_prag.adb: No_Task_Attributes is a synonym of
17280 No_Task_Attributes_Package.
17282 * snames.ads, snames.adb: New entry for proper handling of
17283 No_Task_Attributes.
17285 * s-rident.ads: Adding restriction No_Task_Attributes_Package
17286 (AI-00249) that supersedes the GNAT specific restriction
17287 No_Task_Attributes.
17289 2004-02-04 Ed Schonberg <schonberg@gnat.com>
17292 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
17293 body, an identifier may be wrapped in an unchecked conversion.
17295 2004-02-04 Vincent Celier <celier@gnat.com>
17297 * lib-writ.ads: Comment update for the W lines
17299 * bld.adb: (Expression): An empty string list is static
17301 * fname-uf.adb: Minor comment update
17303 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
17305 * gnatbind.adb: Initialize Cumulative_Restrictions with the
17306 restrictions on the target.
17308 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
17310 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
17313 2004-02-02 Arnaud Charlet <charlet@gnat.com>
17315 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
17317 2004-02-02 Vincent Celier <celier@gnat.com>
17319 * gprcmd.adb (Check_Args): If condition is false, print the invoked
17320 comment before the usage.
17321 Gprcmd: Fail when command is not recognized.
17322 (Usage): Document command "prefix"
17324 * g-md5.adb (Digest): Process last block.
17325 (Update): Do not process last block. Store remaining characters and
17328 * g-md5.ads (Update): Document that several call to update are
17329 equivalent to one call with the concatenated string.
17330 (Context): Add fields to allow new Update behaviour.
17332 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
17333 defaulted to False.
17334 When May_Fail is True and no existing file can be found, return No_File.
17336 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
17339 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
17340 spec file name instead on the W line.
17342 2004-02-02 Robert Dewar <dewar@gnat.com>
17344 * ali.adb: Read and acquire info from new format restrictions lines
17346 * bcheck.adb: Add circuits for checking restrictions with parameters
17348 * bindgen.adb: Output dummy restrictions data
17349 To be changed later
17351 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
17352 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
17353 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
17354 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
17355 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
17357 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
17358 the warning message on access to possibly uninitialized variable S)
17359 Minor changes for new restrictions handling.
17361 * gnatbind.adb: Minor reformatting
17362 Minor changes for new restrictions handling
17363 Move circuit for -r processing here from bcheck (cleaner)
17365 * gnatcmd.adb, gnatlink.adb: Minor reformatting
17367 * lib-writ.adb: Output new format restrictions lines
17369 * lib-writ.ads: Document new R format lines for new restrictions
17372 * s-restri.ads/adb: New files
17374 * Makefile.rtl: Add entry for s-restri.ads/adb
17376 * par-ch3.adb: Fix bad error messages starting with upper case letter
17379 * restrict.adb: Major rewrite throughout for new restrictions handling
17380 Major point is to handle restrictions with parameters
17382 * restrict.ads: Major changes in interface to handle restrictions with
17383 parameters. Also generally simplifies setting of restrictions.
17385 * snames.ads/adb: New entry for proper handling of No_Requeue
17387 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
17388 restriction counting.
17389 Other minor changes for new restrictions handling
17391 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
17392 Restriction_Warnings now allows full parameter notation
17393 Major rewrite of Restrictions for new restrictions handling
17395 2004-02-02 Javier Miranda <miranda@gnat.com>
17397 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
17398 syntax rule for object renaming declarations.
17399 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
17400 component definitions.
17402 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
17404 (Array_Type_Declaration): Give support to access components. In addition
17405 it was also modified to reflect the name of the object in anonymous
17406 array types. The old code did not take into account that it is possible
17407 to have an unconstrained anonymous array with an initial value.
17408 (Check_Or_Process_Discriminants): Allow access discriminant in
17410 (Process_Discriminants): Allow access discriminant in non-limited types
17411 Initialize the new Access_Definition field in N_Object_Renaming_Decl
17412 node. Change Ada0Y to Ada 0Y in comments
17414 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
17415 equality operators.
17416 Change Ada0Y to Ada 0Y in comments
17418 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
17419 renamings Change Ada0Y to Ada 0Y in comments
17421 * sem_type.adb (Find_Unique_Type): Give support to the equality
17422 operators for universal access types
17423 Change Ada0Y to Ada 0Y in comments
17425 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
17427 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
17429 (N_Object_Renaming_Declaration): Addition of Access_Definition field
17430 Change Ada0Y to Ada 0Y in comments
17432 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
17433 component definition and object renaming nodes
17434 Change Ada0Y to Ada 0Y in comments
17436 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
17438 * restrict.adb: Use the new restriction identifier
17439 No_Requeue_Statements instead of the old No_Requeue for defining the
17440 restricted profile.
17442 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
17443 No_Requeue_Statements.
17445 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
17446 that supersedes the GNAT specific restriction No_Requeue. The later is
17447 kept for backward compatibility.
17449 2004-02-02 Ed Schonberg <schonberg@gnat.com>
17451 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
17452 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
17453 pragma and fix incorrect ones.
17455 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
17456 warning if the pragma is redundant.
17458 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
17460 * 5staprop.adb: Add missing 'constant' keywords.
17462 * Makefile.in: use consistent value for SYMLIB on
17463 platforms where libaddr2line is supported.
17465 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17467 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
17470 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
17472 * init.c (__gnat_install_handler): Setup an alternate stack for signal
17473 handlers in the environment thread. This allows proper propagation of
17474 an exception on stack overflows in this thread even when the builtin
17475 ABI stack-checking scheme is used without support for a stack reserve
17478 * utils.c (create_field_decl): Augment the head comment about bitfield
17479 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
17480 here, because the former is not accurate enough at this point.
17481 Let finish_record_type decide instead.
17482 Don't make a bitfield if the field is to be addressable.
17483 Always set a size for the field if the record is packed, to ensure the
17484 checks for bitfield creation are triggered.
17485 (finish_record_type): During last pass over the fields, clear
17486 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
17487 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
17488 from DECL_BIT_FIELD.
17490 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
17492 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
17493 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
17494 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
17496 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17498 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
17500 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
17501 (ZCX_By_Default): Likewise.
17502 (Front_End_ZCX_Support): Likewise.
17504 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
17505 (Initialize_Lock): Mark Level unreferenced.
17506 (Sleep): Mark Reason unreferenced.
17507 (Timed_Sleep): Likewise.
17508 (Wakeup): Likewise.
17509 (Exit_Task): Use Result.
17510 (Check_No_Locks): Mark Self_ID unreferenced.
17512 * 5gtasinf.adb (New_Sproc): Make Attr constant.
17513 (Bound_Thread_Attributes): Make Sproc constant.
17514 (New_Bound_Thread_Attributes): Likewise.
17516 2004-01-26 Ed Schonberg <schonberg@gnat.com>
17518 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
17519 one-dimensional array an slice assignments, when component type is
17522 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
17523 component type is controlled, and control_actions are in effect, use
17524 TSS procedure rather than generating inline code.
17526 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
17527 arrays with controlled components.
17529 2004-01-26 Vincent Celier <celier@gnat.com>
17531 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
17532 command line for the non VMS case.
17534 * gnatlink.adb (Process_Binder_File): When building object file, if
17535 GNU linker is used, put all object paths between quotes, to prevent ld
17536 error when there are unusual characters (such as '!') in the paths.
17538 * Makefile.generic: When there are sources in Ada and the main is in
17539 C/C++, invoke gnatmake with -B, instead of -z.
17541 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
17542 from VMS_Conversion.
17543 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
17544 specification of argument file on the command line.
17546 2004-01-26 Bernard Banner <banner@gnat.com>
17548 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
17550 2004-01-26 Ed Schonberg <schonberg@gnat.com>
17552 * snames.adb: Update copyright notice.
17553 Add info on slice assignment for controlled arrays.
17555 2004-01-23 Robert Dewar <dewar@gnat.com>
17557 * exp_aggr.adb: Minor reformatting
17559 * exp_ch9.adb: Minor code clean up
17561 Fix bad character in comment
17564 * targparm.adb (Get_Target_Parameters): Give clean abort error on
17565 unexpected end of file, along with more detailed message.
17567 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17569 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
17572 * decl.c (copy_alias_set): New function.
17573 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
17575 2004-01-23 Doug Rupp <rupp@gnat.com>
17577 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
17578 lib$${file} in case subsequent character is not a separator.
17580 2004-01-23 Vincent Celier <celier@gnat.com>
17582 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
17583 when the GCC version is at least 3.
17585 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
17586 Remove all "Opt.", to prepare for opt split
17588 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
17589 Extends_All. Set to True when the project parsed is an extending all
17590 project. Fails for importing an extending all project only when the
17591 imported project is an extending all project.
17592 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
17593 depending on the value of Extends_All returned.
17595 * prj-proc.adb (Process): Check that no project shares its object
17596 directory with a project that extends it, directly or indirectly,
17597 including a virtual project.
17598 Check that no project extended by another project shares its object
17599 directory with another also extended project.
17601 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
17602 Kind = N_With_Clause
17604 * prj-tree.ads: Minor reformatting
17605 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
17607 2004-01-23 Ed Schonberg <schonberg@gnat.com>
17609 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
17610 applies to a type with an incomplete view, use full view in Name of
17611 clause, for consistency with uses of Get_Attribute_Definition_Clause.
17613 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
17615 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
17616 SCHED_RR, since other values are not supported by this policy.
17617 (Initialize): Move initialization of mutex attribute to package
17618 elaboration, to prevent early access to this variable.
17620 * Makefile.in: Remove mention of Makefile.adalib, unused.
17622 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
17623 1ssecsta.ads: Removed, unused.
17625 2004-01-21 Javier Miranda <miranda@gnat.com>
17627 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
17628 entity if already built in the current scope.
17630 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
17631 reminder in internal scopes. Required for nested limited aggregates.
17633 2004-01-21 Doug Rupp <rupp@gnat.com>
17635 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
17636 VMS. Replace all occurences of libgnat- and libgnarl- with
17637 libgnat$(hyphen) and libgnarl$(hyphen).
17638 Fixed shared library build problem on VMS.
17640 2004-01-21 Robert Dewar <dewar@gnat.com>
17642 * mlib-prj.adb: Minor reformatting
17644 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
17646 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
17647 'constant' keywords for declaration of pointers that are not modified.
17649 * exp_pakd.adb: Fix English in comment.
17651 2004-01-21 Ed Schonberg <schonberg@gnat.com>
17654 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
17655 copy all attributes of the parent, including the foreign language
17658 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
17661 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
17662 for 'delay until' statement.
17664 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
17666 * Make-lang.in: Replace $(docdir) with doc.
17667 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
17668 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
17669 to use consistent MAKEINFO rule.
17670 (ada.man, ada.srcman): Dummy entry.
17671 (ADA_INFOFILES): Define.
17672 (ada.info, ada.srcinfo): New rules.
17674 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
17676 * utils.c: Update copyright notice, missed in previous change.
17678 2004-01-19 Vincent Celier <celier@gnat.com>
17680 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
17681 args if Bind is True. Set First_ALI, if not already done.
17682 (Build_Library): For Stand Alone Libraries, extract from one ALI file
17683 an eventual --RTS switch, for gnatbind, and all backend switches +
17684 --RTS, for linking.
17686 2004-01-19 Robert Dewar <dewar@gnat.com>
17688 * sem_attr.adb, memtrack.adb: Minor reformatting
17690 2004-01-19 Ed Schonberg <schonberg@gnat.com>
17692 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
17693 that rename enumeration literals. This is properly done in sem_eval.
17695 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
17696 to functions that rename enumeration literals.
17698 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
17699 functions that rename enumeration literals.
17701 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
17703 * Make-lang.in (utils.o): Depend on target.h.
17704 * utils.c: Include target.h.
17705 (process_attributes): Use targetm.have_named_sections instead
17706 of ASM_OUTPUT_SECTION_NAME.
17708 2004-01-16 Andreas Jaeger <aj@suse.de>
17710 * Makefile.in: Add $(DESTDIR).
17712 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
17714 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
17715 also when not defining if a Size clause applies. That information is
17718 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
17720 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
17721 symbolic links for the shared gnat run time when needed.
17723 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
17725 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
17726 for writing, and terminate with an error message if not.
17728 2004-01-15 Ed Schonberg <schonberg@gnat.com>
17730 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
17731 warning on an access to subprogram in an instance, when the target
17732 type is declared in the same generic unit.
17733 (Eval_Attribute): If 'access is known to fail accessibility check,
17734 rewrite as a raise statement.
17736 2004-01-15 GNAT Script <nobody@gnat.com>
17738 * Make-lang.in: Makefile automatically updated
17740 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
17742 * Make-lang.in (ada.srcextra): Dummy entry.
17744 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
17746 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
17748 2004-01-13 Ed Schonberg <schonberg@gnat.com>
17750 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
17751 components that are initialized with aggregates.
17753 2004-01-13 Vincent Celier <celier@gnat.com>
17755 * gnatlink.adb (Process_Binder_File): To find directory of shared
17756 libgcc, if "gcc-lib" is not a subdirectory, look for the last
17757 subdirectory "lib" in the path of the shared libgnat or libgnarl.
17759 * make.adb (Gnatmake): If GCC version is at least 3, link with
17760 -shared-libgcc, when there is at least one shared library project.
17762 * opt.ads (GCC_Version): New integer constant.
17764 * adaint.c (get_gcc_version): New function.
17766 2004-01-13 Robert Dewar <dewar@gnat.com>
17768 * sem_dist.adb, sem_res.adb, sem_util.adb,
17769 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
17770 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
17772 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
17774 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
17775 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
17778 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
17780 * misc.c: Remove trailing spaces.
17781 Update copyright notice missed in previous change.
17784 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
17787 * Makefile.generic: Update copyright.
17788 Add license notice.
17790 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
17791 of prefix/share/make.
17793 * Makefile.prolog: Update copyright.
17794 Add license notice.
17796 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
17798 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
17799 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
17800 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
17803 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
17806 2004-01-12 Javier Miranda <miranda@gnat.com>
17808 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
17809 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
17810 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
17811 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
17812 Component_Definition node.
17814 2004-01-12 Ed Falis <falis@gnat.com>
17816 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
17818 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
17820 * link.c: Change default libgnat kind to STATIC for FreeBSD.
17822 2004-01-12 Bernard Banner <banner@gnat.com>
17824 * Makefile.in: map 86numaux to a-numaux for x86_64
17826 2004-01-12 Ed Schonberg <schonberg@gnat.com>
17828 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
17829 generated to rename a generic actual, go to the actual itself, the
17830 subtype is not a user-visible entity.
17832 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
17833 part is a private subtype, reset the visibility of its full view, if
17834 any, to be consistent.
17837 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
17838 to use a generic package G as a formal package for another generic
17841 2004-01-12 Robert Dewar <dewar@gnat.com>
17843 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
17845 * usage.adb: Remove mention of obsolete -gnatwb switch
17846 Noticed during code reading
17848 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
17850 * 1ssecsta.adb: Minor changes for -gnatwa warnings
17852 2004-01-12 GNAT Script <nobody@gnat.com>
17854 * Make-lang.in: Makefile automatically updated
17856 2004-01-09 Mark Mitchell <mark@codesourcery.com>
17858 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
17860 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17862 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
17864 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
17866 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
17867 Update comment and copyright date.
17868 * stamp-xgnatug: Delete.
17870 2004-01-05 Robert Dewar <dewar@gnat.com>
17872 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
17873 be modified by the binder generated main program if the -D switch is
17876 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
17877 imported functions (since now we expect this to be done for imported
17880 * 5vtaprop.adb: Add several ??? for sections requiring more comments
17881 Minor reformatting throughout
17883 * 5zinit.adb: Minor reformatting
17884 Add 2004 to copyright date
17885 Minor changes to avoid -gnatwa warnings
17886 Correct some instances of using OR instead of OR ELSE (noted while
17887 doing reformatting)
17889 * sprint.adb: Minor updates to avoid -gnatwa warnings
17891 * s-secsta.ads, s-secsta.adb:
17892 (SS_Get_Max): New function to obtain high water mark for ss stack
17893 Default_Secondary_Stack is not a constant since it may be modified by
17894 the binder generated main program if the -D switch is used.
17896 * switch-b.adb: New -Dnnn switch for binder
17899 Make -gnatg imply all warnings currently in -gnatwa
17901 * vms_conv.adb: Minor reformatting
17902 Add 2004 to copyright notice
17903 Add 2004 to printed copyright notice
17905 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
17906 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
17907 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
17908 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
17909 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
17910 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
17911 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
17912 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
17913 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
17914 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
17915 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
17916 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
17917 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
17918 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
17919 checks.adb, clean.adb, cstand.adb, einfo.ads,
17920 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
17921 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
17922 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
17923 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
17924 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
17925 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
17926 Minor reformatting and code clean ups.
17927 Minor changes to prevent -gnatwa warnings
17929 * ali.adb: Minor reformatting and cleanup of code
17930 Acquire new SS indication of secondary stack use from ali files
17932 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
17933 (since now we expect this to be done for imported functions)
17935 * bindgen.adb: Generate call to modify default secondary stack size if
17938 * bindusg.adb: Add line for new -D switch
17940 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
17941 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
17942 Add circuitry for both records and arrays to avoid gigi
17943 processing if the type involved has non-bit-aligned components
17945 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
17946 N_String_Literal node always references an E_String_Literal_Subtype
17947 entity. This may not be true in the future.
17948 (Possible_Bit_Aligned_Component): Move processing of
17949 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
17951 * exp_ch6.adb (Expand_Thread_Body): Pick up
17952 Default_Secondary_Stack_Size as variable so that we get value modified
17953 by possible -Dnnn binder parameter.
17955 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
17956 (Type_May_Have_Bit_Aligned_Components): New function.
17958 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
17959 (Type_May_Have_Bit_Aligned_Components): New function.
17961 * fe.h: (Set_Identifier_Casing): Fix prototype.
17962 Add declaration for Sem_Elim.Eliminate_Error_Msg.
17963 Minor reformatting.
17965 * freeze.adb (Freeze_Entity): Add RM reference to error message about
17966 importing constant atomic/volatile objects.
17967 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
17968 unless explicit Pure_Function pragma given, to avoid insidious bug of
17969 call to non-pure imported function getting eliminated.
17971 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
17972 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
17973 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
17974 Add 2004 to printed copyright notice
17976 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
17979 * Makefile.rtl: Add entry for g-sestin.o
17980 g-sestin.ads: New file.
17982 * mdll.adb: Minor changes to avoid -gnatwa warnings
17984 * mlib-tgt.adb: Minor reformatting
17986 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
17987 New switch Sec_Stack_Used (GNAT, GNATBIND)
17988 Make Default_Secondary_Stack_Size a variable instead of a constant,
17989 so that it can be modified by the new -Dnnn bind switch.
17991 * rtsfind.adb (Load_Fail): Give full error message in configurable
17992 run-time mode if all_errors mode is set. This was not done in the case
17993 of a file not found, which was an oversight.
17994 Note if secondary stack unit is used by compiler.
17996 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
17997 ineffective elaborate all pragmas on non-visible packages (this
17998 happened when a renamed subprogram was called). Now the elaborate all
17999 always goes on the package containing the renaming rather than the one
18000 containing the renamed subprogram.
18002 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
18003 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
18005 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
18006 has an Etype that references an E_String_Literal.
18007 (Eval_String_Literal): Avoid assumption that N_String_Literal node
18008 always references an E_String_Literal_Subtype entity. This may not
18009 be true in the future.
18011 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
18014 * sem_res.adb (Resolve): Specialize msg for function name used in proc
18017 2004-01-05 Ed Falis <falis@gnat.com>
18019 * g-debuti.adb: Replaced direct boolean operator with short-circuit
18022 2004-01-05 Vincent Celier <celier@gnat.com>
18024 * bld.adb: Minor comment updates
18025 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
18028 * make.adb (Gnatmake): Special process for files to compile/check when
18029 -B is specified. Fail when there are only foreign mains in attribute
18030 Main of the project file and -B is not specified. Do not skip bind/link
18031 steps when -B is specified.
18033 * makeusg.adb: Document new switch -B
18035 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
18037 * switch-m.adb: (Scan_Make_Switches): Process -B switch
18039 * vms_data.ads: Add new GNAT PRETTY qualifier
18040 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
18042 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18044 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
18047 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
18048 Set_Identifier_Casing.
18050 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
18051 has size that overflows.
18053 2004-01-05 Gary Dismukes <dismukes@gnat.com>
18055 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
18056 -gnatwa warning on static condition.
18058 2004-01-05 Doug Rupp <rupp@gnat.com>
18060 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
18062 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
18064 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
18065 all attributes, including read-only attribute.
18067 2004-01-05 Pascal Obry <obry@gnat.com>
18069 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
18070 library naming scheme.
18072 * mlib-prj.adb (Build_Library): Generate different names for the static
18073 or dynamic version of the GNAT runtime. This is needed to support the
18074 new shared library naming scheme.
18075 (Process_Binder_File): Add detection of shared library in binder file
18076 based on the new naming scheme.
18078 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
18079 scheme for the shared runtime libraries.
18082 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
18084 (install-gnatlib): Do not create symlinks for shared libraries.
18085 (gnatlib-shared-default): Idem.
18086 (gnatlib-shared-dual-win32): New target. Not used for now as the
18087 auto-import feature does not support arrays/records.
18088 (gnatlib-shared-win32): Do not create copy for the shared libraries.
18089 (gnatlib-shared-vms): Fix shared runtime libraries names.
18091 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
18092 dependent runtime shared library name.
18094 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
18096 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
18099 2004-01-05 Ed Schonberg <schonberg@gnat.com>
18101 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
18102 protected objects when allocator has a subtype indication, not a
18103 qualified expression. Note that qualified expressions may have to be
18104 checked when limited aggregates are implemented.
18106 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
18107 pure, emit warning.
18108 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
18109 subprogram is imported, remove warning.
18111 2004-01-05 Geert Bosch <bosch@gnat.com>
18113 * s-poosiz.adb: Update copyright notice.
18114 (Allocate): Use Task_Lock to protect against concurrent access.
18115 (Deallocate): Likewise.
18117 2004-01-05 Joel Brobecker <brobecker@gnat.com>
18119 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
18122 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
18124 * gnat_ug.texi: Force a CVS commit by updating copyright.
18125 * gnat_ug_vxw.texi: Regenerate.
18126 * gnat_ug_wnt.texi: Regenerate.
18127 * gnat_ug_vms.texi: Regenerate.
18128 * gnat_ug_unx.texi: Regenerate.
18130 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
18132 * trans.c: Remove uses of "register" specifier in
18133 declarations of local variables.
18135 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
18137 * stamp-xgnatug: New stamp file.
18138 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
18139 (ada/doctools/xgnatug): Add $(build_exeext).
18140 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
18141 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
18143 2003-12-17 Ed Falis <falis@gnat.com>
18145 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
18148 * a-exextr.adb: Add context clause for
18149 Ada.Exceptions.Last_Chance_Handler.
18151 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
18153 * cstand.adb (Create_Standard): Change the way how the declaration of
18154 the Duration type is created (making it the same way as it is for all
18155 the other standard types).
18157 2003-12-17 Robert Dewar <dewar@gnat.com>
18159 * s-crtl.ads: Fix header format
18160 Change Pure to Preelaborate
18162 2003-12-17 Ed Schonberg <schonberg@gnat.com>
18164 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
18165 the expression type only if it is declared in the current unit.
18167 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
18168 are universal and already analyzed, as can occur in constrained
18169 subcomponents that depend on discriminants, when one constraint is a
18172 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
18173 type Any_Fixed is legal as the argument of a conversion, if only one
18174 fixed-point type is in context.
18176 2003-12-17 GNAT Script <nobody@gnat.com>
18178 * Make-lang.in: Makefile automatically updated
18180 2003-12-15 Robert Dewar <dewar@gnat.com>
18182 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
18185 2003-12-15 Vincent Celier <celier@gnat.com>
18187 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
18188 (Gnatchop): Do not set failure status when reporting the number of
18191 2003-12-15 Doug Rupp <rupp@gnat.com>
18193 * s-ctrl.ads: New file.
18195 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
18197 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
18198 (GNATBIND_OBJS): Add ada/s-crtl.o.
18200 * Makefile.in [VMS]: Clean up ifeq rules.
18202 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
18203 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
18204 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
18205 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
18206 s-tasdeb.adb: Update copyright.
18207 Import System.CRTL.
18208 Make minor modifications to use System.CRTL declared functions instead
18209 of importing locally.
18211 2003-12-15 GNAT Script <nobody@gnat.com>
18213 * Make-lang.in: Makefile automatically updated
18215 2003-12-11 Ed Falis <falis@gnat.com>
18217 * 5zinit.adb: Clean up.
18219 * 5zintman.adb (Notify_Exception): replaced case statement with a call
18220 to __gnat_map_signal, imported from init.c to support
18221 signal -> exception mappings that depend on the vxWorks version.
18224 Created and exported __gnat_map_signal to support signal -> exception
18225 mapping that is dependent on the VxWorks version.
18226 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
18228 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
18230 * 5wosinte.ads: Link with -mthreads switch.
18232 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
18234 * init.c (__gnat_install_handler [NetBSD]): Set
18235 __gnat_handler_installed, as done on all other platforms.
18236 Remove duplicated code.
18238 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
18240 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
18242 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
18244 * sinfo.ads: Fix inconsistent example code in comment.
18246 2003-12-11 Robert Dewar <dewar@gnat.com>
18248 * a-tiinau.adb: Add a couple of comments
18250 * sem_ch3.adb: Minor reformatting
18253 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
18254 Minor reformatting throughout
18256 2003-12-11 Ed Schonberg <schonberg@gnat.com>
18258 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
18259 bounds of a loop, create a separate block in order to generate proper
18260 cleanup actions to prevent memory leaks.
18262 * sem_res.adb (Resolve_Call): After a call to
18263 Establish_Transient_Scope, the call may be rewritten and relocated, in
18264 which case no further processing is needed.
18266 * sem_util.adb: (Wrong_Type): Refine previous fix.
18267 Fixes ACATS regressions.
18271 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
18274 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
18276 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
18277 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
18280 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
18283 2003-12-08 Robert Dewar <dewar@gnat.com>
18285 * 7sintman.adb: Minor reformatting
18287 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
18288 standard linker options to get standard libraries linked. We now plan
18289 to provide dummy versions of these libraries to match the appropriate
18290 configurable run-time (e.g. if a library is not needed at all, provide
18291 a dummy empty library).
18293 * targparm.ads: Configurable_Run_Time mode no longer affects linker
18294 options (-L parameters and standard libraries). What we plan to do is
18295 to provide dummy libraries where the libraries are not required.
18297 * gnatbind.adb: Minor comment improvement
18299 2003-12-08 Javier Miranda <miranda@gnat.com>
18301 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
18302 aggregate in the parent. Otherwise constants with limited aggregates
18303 are not supported. Add new formal to pass the component type (Ctype).
18304 It is required to call the corresponding IP subprogram in case of
18305 default initialized components.
18306 (Gen_Assign): In case of default-initialized component, generate a
18307 call to the IP subprogram associated with the component.
18308 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
18309 of aggregate with default initialized components.
18310 (Has_Default_Init_Comps): Improve implementation to recursively check
18311 all the present expressions.
18313 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
18314 to indicate that the initialization call corresponds to a
18315 default-initialized component of an aggregate.
18316 In case of default initialized aggregate with tasks this parameter is
18317 used to generate a null string (this is just a workaround that must be
18318 improved later). In case of discriminants, this parameter is used to
18319 generate a selected component node that gives access to the discriminant
18322 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
18323 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
18324 allocated aggregates with default-initialized components.
18326 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
18327 the box notation is used in positional aggregates.
18329 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
18331 * lib.ads: Fix typo in comment
18333 2003-12-08 Vincent Celier <celier@gnat.com>
18335 * prj.adb (Project_Empty): New component Unkept_Comments
18336 (Scan): Remove procedure; moved to Prj.Err.
18338 * prj.ads (Project_Data): New Boolean component Unkept_Comments
18339 (Scan): Remove procedure; moved to Prj.Err.
18341 * prj-dect.adb: Manage comments for the different declarations.
18343 * prj-part.adb (With_Record): New component Node
18344 (Parse): New Boolean parameter Store_Comments, defaulted to False.
18345 Set the scanner to return ends of line and comments as tokens, if
18346 Store_Comments is True.
18347 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
18348 comments are associated with these nodes. Store the node IDs in the
18350 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
18352 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
18353 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
18354 current project. Call Tree.Restore afterwards. Set the various nodes
18355 for comment storage (Next_End, End_Of_Line, Previous_Line,
18358 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
18359 defaulted to False.
18361 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
18362 to False. When Truncated is True, truncate the string, never go to the
18364 (Write_End_Of_Line_Comment): New procedure
18365 (Print): Process comments for nodes N_With_Clause,
18366 N_Package_Declaration, N_String_Type_Declaration,
18367 N_Attribute_Declaration, N_Typed_Variable_Declaration,
18368 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
18369 Process nodes N_Comment.
18371 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
18372 without comments and there are some comments, set the flag
18373 Unkept_Comments to True.
18374 (Scan): If there are comments, set the flag Unkept_Comments to True and
18375 clear the comments.
18376 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
18377 (Next_End_Nodes: New table
18378 (Comment_Zones_Of): New function
18379 (Scan): New procedure; moved from Prj. Accumulate comments in the
18380 Comments table and set end of line comments, comments after, after end
18382 (Add_Comments): New procedure
18383 (Save, Restore, Seset_State): New procedures
18384 (There_Are_Unkept_Comments): New function
18385 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
18386 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
18388 (First_Comment_After, First_Comment_After_End): New functions
18389 (First_Comment_Before, First_Comment_Before_End): New functions
18390 (Next_Comment): New function
18391 (End_Of_Line_Comment, Follows_Empty_Line,
18392 Is_Followed_By_Empty_Line): New functions
18393 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
18394 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
18395 (Set_Next_Comment): New procedure
18396 (Default_Project_Node): Associate comment before if the node can store
18399 * scans.ads (Token_Type): New enumeration value Tok_Comment
18400 (Comment_Id): New global variable
18402 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
18403 defaulted to False.
18404 (Scan): Store position of start of comment. If comments are tokens, set
18405 Comment_Id and set Token to Tok_Comment when scanning a comment.
18406 (Set_Comment_As_Token): New procedure
18408 * sinput-p.adb: Update Copyright notice
18409 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
18410 that no longer exists.
18412 2003-12-08 Javier Miranda <miranda@gnat.com>
18414 * sem_aggr.adb: Add dependence on Exp_Tss package
18415 Correct typo in comment
18416 (Resolve_Aggregate): In case of array aggregates set the estimated
18417 type of the aggregate before calling resolve. This is needed to know
18418 the name of the corresponding IP in case of limited array aggregates.
18419 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
18420 in case of default initialized array components.
18422 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
18423 types. Required to give support to limited aggregates in generic
18426 2003-12-08 Ed Schonberg <schonberg@gnat.com>
18428 * sem_ch3.adb (Check_Initialization): For legality purposes, an
18429 inlined body functions like an instantiation.
18430 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
18431 until bounds are analyzed, to diagnose premature use of type.
18433 * sem_util.adb (Wrong_Type): Improve error message when the type of
18434 the expression is used prematurely.
18436 2003-12-08 GNAT Script <nobody@gnat.com>
18438 * Make-lang.in: Makefile automatically updated
18440 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
18442 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
18443 they are automatically generated by Make-lang.in and cause nothing but
18444 maintenance troubles.
18446 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
18448 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
18449 version of this unit).
18451 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
18453 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
18454 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
18455 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
18456 the body of System.Interrupt_Management common to several targets.
18457 Update copyright notice when appropriate.
18459 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
18462 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
18463 to ensure that the kernel fills in the interrupted context structure
18464 before calling a signal handler, which is necessary to be able to
18465 unwind past it. Update the copyright notice.
18467 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
18469 * a-elchha.ads: New file.
18471 * a-elchha.adb: New default last chance handler. Contents taken from
18472 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
18474 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
18475 is moved to a-elchha.adb to provide a target-independent default last
18478 * Makefile.rtl: Add a-elchha.o
18480 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
18482 2003-12-05 Ed Schonberg <schonberg@gnat.com>
18484 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
18485 declared in an instance, do not inline the call if the instance is not
18486 frozen yet, to prevent order of elaboration problems.
18488 * sem_prag.adb: Add comments for previous fix.
18490 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
18492 * g-table.adb: Use the right variable in Set_Item.
18493 Update copyright notice.
18495 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
18497 * Makefile.in: Remove unused rules.
18499 2003-12-05 Vincent Celier <celier@gnat.com>
18501 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
18502 -nostdlib. Not needed here after all.
18504 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
18508 * adaint.h, adaint.c, g-os_lib.ads:
18509 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
18510 on some platforms (including FreeBSD), it is a 64 bit value.
18511 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
18513 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
18515 * gnatvsn.ads (Library_Version): Now contain only the relevant
18517 (Verbose_Library_Version): New constant.
18519 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
18520 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
18521 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
18523 * gnatlbr.adb: Clean up: replace Library_Version by
18524 Verbose_Library_Version.
18526 * make.adb, lib-writ.adb, exp_attr.adb:
18527 Clean up: replace Library_Version by Verbose_Library_Version.
18529 * 5lintman.adb: Removed.
18532 Update and simplify computation of LIBRARY_VERSION.
18533 Fix computation of GSMATCH_VERSION.
18534 5lintman.adb is no longer used: replaced by 7sintman.adb.
18536 2003-12-03 Robert Dewar <dewar@gnat.com>
18539 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
18540 name. Modified to consider small non-bit-packed arrays as troublesome
18541 and in need of component-by-component assigment expansion.
18543 2003-12-03 Vincent Celier <celier@gnat.com>
18545 * lang-specs.h: Process nostdlib as nostdinc
18547 * back_end.adb: Update Copyright notice
18548 (Scan_Compiler_Arguments): Process -nostdlib directly.
18550 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
18553 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
18554 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
18555 included in HIE_NONE_TARGET_PAIRS.
18557 2003-12-03 Ed Schonberg <schonberg@gnat.com>
18560 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
18561 is legal in an instance, because legality is cheched in the template.
18564 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
18565 appplied to an unchecked conversion of a formal parameter.
18568 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
18571 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
18573 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
18574 routines. The second one is new functionality to deal with backtracing
18575 through signal handlers.
18576 (unwind): Split into the two separate subroutines above.
18577 Update the documentation, and deal properly with sizeof (REG) different
18578 from sizeof (void*).
18580 2003-12-01 Nicolas Setton <setton@act-europe.fr>
18582 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
18583 so that the debugger can reliably access the value of the parameter,
18584 and therefore is able to display the exception name when an exception
18585 breakpoint is reached.
18587 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
18589 * fmap.adb: Fix typo in warning message.
18591 * g-socket.ads, g-socket.adb: Make Free a visible instance of
18592 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
18594 2003-12-01 Vincent Celier <celier@gnat.com>
18596 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
18598 (Build_Library): Get the switches only if Default_Switches is declared
18601 2003-12-01 Ed Schonberg <schonberg@gnat.com>
18603 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
18604 actuals that are indexed components, reanalyze actual to ensure that
18605 packed array references are properly expanded.
18607 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
18608 attempted assignment to a discriminant.
18610 2003-12-01 Robert Dewar <dewar@gnat.com>
18612 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
18615 * switch-c.adb: Minor reformatting of comments
18617 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
18619 * Makefile.in: Clean ups.
18621 2003-12-01 GNAT Script <nobody@gnat.com>
18623 * Make-lang.in: Makefile automatically updated
18625 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
18627 * 5wsystem.ads: Disable zero cost exception, not ready yet.
18629 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
18631 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
18632 to force serialization.
18634 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
18636 * g-socket.ads, g-socket.adb:
18637 Clarify documentation of function Stream. Introduce a Free procedure
18638 to release the returned Stream once it becomes unused.
18640 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
18642 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
18644 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
18645 since NT 4 cannot handle timeout values that are too large,
18646 e.g. DWORD'Last - 1.
18648 2003-11-26 Ed Schonberg <schonberg@gnat.com>
18651 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
18652 in procedure calls and whose expansion must be deferred.
18654 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
18658 (Build_Derived_Array_Type): Create operator for unconstrained type
18659 if ancestor is unconstrained.
18661 2003-11-26 Vincent Celier <celier@gnat.com>
18663 * make.adb (Project_Object_Directory): New global variable
18664 (Change_To_Object_Directory): New procedure
18665 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
18666 of Change_Dir directly. Do not change working directory to object
18667 directory of main project after each compilation.
18668 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
18670 Change to object directory of main project before binding step.
18671 (Initialize): Initialize Project_Object_Directory to No_Project
18674 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
18675 binding a Stand-Alone Library.
18677 * output.adb: Update Copyright notice
18678 (Write_Char): Output buffer when full
18680 2003-11-26 Robert Dewar <dewar@gnat.com>
18682 * sem_ch13.adb: (Check_Size): Reset size if size is too small
18685 (Check_Size): Fix documentation to include bit-packed array case
18687 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
18689 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
18691 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
18693 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
18696 * utils.c (init_gigi_decls): Change name of built-in setjmp to
18697 __builtin_setjmp, since this is apparently needed by recent
18700 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18702 * adadecode.c: Only include ctype.h if not IN_GCC.
18703 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
18705 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
18708 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
18709 signals and interrupts.
18711 * 5zintman.ads: New File.
18713 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
18714 add exception signals to the set of unmasked signals.
18717 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
18718 between signals and interrupts.
18719 Add to Unblocked_Signal_Mask the set of signals that are in
18723 Adding a check to see whether the Interrupt_ID we want to unmask is in
18724 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
18725 reason is that the index type of the Keep_Unmasked array is not always
18726 Interrupt_ID; it may be a subtype of Interrupt_ID.
18728 2003-11-24 Gary Dismukes <dismukes@gnat.com>
18731 (Remove_Side_Effects): Condition constantness of object created for a
18732 an unchecked type conversion on the constantness of the expression
18733 to ensure the correct value for 'Constrained when passing components
18734 of view-converted class-wide objects.
18736 2003-11-24 Robert Dewar <dewar@gnat.com>
18738 * par-load.adb (Load): Improve handling of misspelled and missing units
18739 Removes several cases of compilation abandoned messages
18741 * lib.adb: (Remove_Unit): New procedure
18743 * lib.ads: (Remove_Unit): New procedure
18745 * lib-load.adb: Minor reformatting
18747 2003-11-24 Vincent Celier <celier@gnat.com>
18750 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
18751 (Marking_Label): Label to mark processed source files. Incremented for
18753 (Gnatmake): Increase Marking_Labet for each executable
18754 (Is_Marked): Compare against marking label
18755 (Mark): Mark with marking label
18757 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
18760 Move the declaration of the TSD for System.Threads to System.Soft_Links.
18763 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
18764 (rts-cert): build a single relocatable object for the run-time lib.
18767 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
18770 Use gnatls rather than gcc to obtain the location of GNAT RTL for
18773 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
18775 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
18776 can not use it as before (that is, as a variable) when dumping it into
18777 the tree file. Add a local variable to store the result of this
18778 function and to be used as the string to be written into the tree.
18780 * scn.adb (Initialize_Scanner): Add comments explaining the recent
18783 * sinput.adb (Source_First, Source_Last): In case of
18784 Internal_Source_File, replace returning attributes of
18785 Internal_Source_Ptr (which is wrong) with returning attributes of
18788 2003-11-24 Ed Schonberg <schonberg@gnat.com>
18791 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
18792 used for implicit concatenation operators.
18796 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
18797 task bodies that are in the scope of a Suppress pragma.
18798 (Check_A Call): Use the flag to prevent spurious elaboration checks.
18800 * sinfo.ads, sinfo.adb:
18801 New flag No_Elaboration_Check on function/procedure calls, to properly
18802 suppress checks on calls in task bodies that are within a local suppress
18806 (Expand_Concatenate_Other): Use the proper integer type for the
18807 expression for the upper bound, to avoid universal_integer computations
18810 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
18812 * .cvsignore: Delete.
18814 2003-11-21 Andreas Schwab <schwab@suse.de>
18816 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
18818 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
18820 * 5wsystem.ads: Enable zero cost exception.
18822 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
18824 * 5ztiitho.adb: Remove an unreferenced variable.
18826 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
18828 * adaint.c: For FreeBSD, use mkstemp.
18830 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
18832 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
18834 2003-11-21 Robert Dewar <dewar@gnat.com>
18836 * bld.adb: Remove useless USE of gnatvsn
18838 * gnatchop.adb: Minor reformatting
18839 Clean up version handling to be more consistent
18841 * gnatxref.adb: Minor reformatting
18843 * gprcmd.adb: Minor reformatting
18844 Fix output of copyright to be more consistent with other tools
18846 2003-11-21 Vincent Celier <celier@gnat.com>
18848 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
18850 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
18852 * atree.adb (Initialize): Add initializations for global variables
18853 used in New_Copy_Tree.
18855 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
18856 Internal_Source_File as the actual).
18857 Put the set of statements creating Any_Character before the set of
18858 statements creating Any_Array to have Any_Character fully initialized
18859 when it is used in creating Any_Array.
18861 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
18862 not call Scan in case if the actual is Internal_Source_File
18863 Add 2003 to copyright note.
18865 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
18866 processing Internal_Source_File.
18868 * types.ads: Add the constant Internal_Source_File representing the
18869 source buffer for artificial source-code-like strings created within
18870 the compiler (the definition of Source_File_Index is changed).
18872 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
18874 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
18875 56system.ads: New file, FreeBSD version.
18877 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
18879 * Make-lang.in (ada.extraclean): Delete.
18881 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
18883 * gnatmem.adb: Clean up verbose output.
18885 * gprcmd.adb: Change copyright to FSF.
18887 2003-11-19 Vincent Celier <celier@gnat.com>
18889 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
18890 and Version (ignored).
18892 * symbols.ads: (Policy): New type
18893 (Initialize): New parameter Reference, Symbol_Policy and
18895 Remove parameter Force.
18896 Minor reformatting.
18898 * snames.ads, snames.adbadb: New standard names
18899 Library_Reference_Symbol_File and Library_Symbol_Policy
18902 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
18906 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
18908 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
18910 * prj.adb: (Project_Empty): New component Symbol_Data
18912 * prj.ads: (Policy, Symbol_Record): New types
18913 (Project_Data): New component Symbol_Data
18916 New attributes Library_Symbol_File, Library_Symbol_Policy and
18917 Library_Reference_Symbol_File.
18920 (Ada_Check): When project is a Stand-Alone library project, process
18921 attribute Library_Symbol_File, Library_Symbol_Policy and
18922 Library_Reference_Symbol_File.
18924 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
18925 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
18926 5sml-tgt.adb (Build_Dynamic_Library): New parameter
18927 Symbol_Data (ignored).
18929 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
18930 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
18931 functions Option_File_Name and Version_String. Set new options of
18932 gnatsym related to symbol file, symbol policy and reference symbol
18936 Extensive modifications to take into account the reference symbol file,
18937 the symbol policy, the library version and to put in the symbol file the
18938 minor and major IDs.
18940 * bld.adb (Process_Declarative_Items): Put second argument of
18941 gprcmd to_absolute between single quotes, to avoid problems with
18944 * bld-io.adb: Update Copyright notice.
18945 (Flush): Remove last character of a line, if it is a back slash, to
18946 avoid make problems.
18949 Implement new scheme with reference symbol file and symbol policy.
18951 * g-os_lib.ads: (Is_Directory): Clarify comment
18953 2003-11-19 Robert Dewar <dewar@gnat.com>
18955 * atree.adb: Move New_Copy_Tree global variables to head of package
18957 * errout.adb: Minor reformatting
18959 2003-11-19 Javier Miranda <miranda@gnat.com>
18961 * sem_ch4.adb: (Diagnose_Call): Improve error message.
18962 Add reference to Ada0Y (AI-50217)
18964 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
18965 sem_util.adb: Add reference to AI-50217
18967 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
18969 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
18971 * sem_aggr.adb: Complete documentation of AI-287 changes
18973 * par-ch4.adb: Document previous changes.
18975 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
18976 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
18979 * exp_aggr.adb: Add references to AI-287 in previous changes
18981 2003-11-19 Ed Schonberg <schonberg@gnat.com>
18984 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
18985 in the rewriting is the result of an inlined call.
18987 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
18988 parameter is a type conversion, use original node to construct the
18989 post-call assignment, because expression may have been rewritten, e.g.
18990 if it is a packed array.
18993 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
18994 body, just as it is in an instance.
18995 Categorization routines
18997 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
18998 Instantiate_Object): Set proper sloc reference for message on missing
19001 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
19003 * Makefile.in: Add FreeBSD libgnat pairs.
19005 * usage.adb: Fix typo in usage message.
19007 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
19009 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
19010 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
19011 pragma Thread_Body.
19012 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
19014 * s-thread.adb: This file is now a dummy implementation of
19017 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
19019 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
19021 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
19023 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
19024 instanciation references in the parent type description.
19026 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19028 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
19030 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
19031 TYPE_PRECISION directly from esize.
19033 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
19036 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
19038 * init.c: Initialization routines for FreeBSD
19040 * link.c: Link info for FreeBSD
19042 * sysdep.c: Add the case of FreeBSD
19044 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
19046 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
19047 already called in System.Threads.
19049 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
19050 environment task, as it has been moved to System.Threads.Initialization.
19052 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
19054 * adaint.c (__gnatlib_install_locks): Only reference
19055 __gnat_install_locks on VMS, since other platforms can avoid using
19056 --enable-threads=gnat
19058 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19060 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
19062 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
19063 TYPE_PACKED_ARRAY_TYPE_P.
19064 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
19066 Part of PR ada/12806
19067 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
19068 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
19070 2003-11-17 Vincent Celier <celier@gnat.com>
19072 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
19074 Do not set exit status to Failure when Warning is True.
19075 (Gnatchop): Make errors "no compilation units found" and
19076 "no source files written" warnings only.
19078 * make.adb (Gnatmake): When using a project file, set
19079 Look_In_Primary_Dir to False.
19080 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
19081 and Local_Configuration_Pragmas in the project where they are declared
19082 not an extending project which might have inherited them.
19084 * osint.adb (Locate_File): If Name is already an absolute path, do not
19085 look for a directory.
19087 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
19088 -gnats (Check_Syntax) is used, issue only a warning, not an error.
19090 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
19091 in objects of type Variable_Value.
19093 * prj.ads: (Variable_Value): New component Project
19095 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
19096 is in a project extended by Project.
19098 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
19099 Project of Variable_Values to this new parameter value.
19100 (Expression): Set component Project of Variable_Values.
19101 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
19102 Set the component Project in array elements.
19104 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
19106 * errout.adb: (Initialize): Add initialization for error nodes.
19108 * sem_ch12.adb (Initialize): Add missing initializations for
19109 Exchanged_Views and Hidden_Entities.
19111 2003-11-17 Ed Schonberg <schonberg@gnat.com>
19113 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
19114 already instantiated tree for use in subsequent inlining.
19115 (Analyze_Associations, Instantiate_Formal_Subprogram,
19116 Instantiate_Object): improve error message for mismatch in
19119 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
19120 instantiations of subprograms declared in instances.
19122 2003-11-17 Javier Miranda <miranda@gnat.com>
19124 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
19125 executed only under the Extensions_Allowed flag.
19127 2003-11-17 Robert Dewar <dewar@gnat.com>
19129 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
19131 (Address_Image): Fix bug of returning 0x instead of 0x0
19132 Minor reformatting (function specs).
19134 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
19135 (missed case of 33-63)
19137 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
19139 * s-thread.adb: Add comments for pragma Restriction
19141 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
19142 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
19144 2003-11-17 Ed Falis <falis@gnat.com>
19146 * s-thread.adb: Added No_Tasking restriction for this implementation.
19148 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
19150 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
19151 instanciation references in the parent type description.
19153 2003-11-17 GNAT Script <nobody@gnat.com>
19155 * Make-lang.in: Makefile automatically updated
19157 2003-11-16 Jason Merrill <jason@redhat.com>
19159 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
19160 and TAGS files that include them for each front end.
19162 2003-11-14 Andreas Jaeger <aj@suse.de>
19164 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
19165 is the canonical version.
19166 * misc.c (gnat_handle_option): Likewise.
19168 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
19170 * 5nsystem.ads: New file for x86_64-linux-gnu.
19172 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
19174 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
19176 * comperr.adb: Fix logic in previous change.
19178 2003-11-13 Vincent Celier <celier@gnat.com>
19180 * 5bml-tgt.adb (Build_Dynamic_Library): Use
19181 Osint.Include_Dir_Default_Prefix instead of
19182 Sdefault.Include_Dir_Default_Name.
19184 * gnatlbr.adb: Update Copyright notice
19185 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
19186 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
19187 instead of Sdefault.Object_Dir_Default_Name
19190 (Process_Binder_File): Never suppress the option following -Xlinker
19193 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
19194 Sdefault.Object_Dir_Default_Name.
19196 * osint.ads, osint.adb:
19197 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
19198 Minor reformatting.
19200 * vms_conv.ads: Minor reformating
19201 Remove GNAT STANDARD and GNAT PSTA
19204 Allow GNAT MAKE to have several files on the command line.
19205 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
19206 Sdefault.Object_Dir_Default_Name.
19208 Remove data for GNAT STANDARD
19211 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
19212 Remove data for GNAT STANDARD
19213 Remove options and documentation for -gnatwb/-gnatwB: these warning
19214 options no longer exist.
19216 2003-11-13 Ed Falis <falis@gnat.com>
19218 * 5zthrini.adb: (Init_RTS): Made visible
19221 (Register): Removed unnecessary call to taskVarGet that checked whether
19222 an ATSD was already set as a task var for the argument thread.
19225 Updated comment to reflect that this is a VxWorks version
19226 Added context clause for System.Threads.Initialization
19227 Added call to System.Threads.Initialization.Init_RTS
19229 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
19232 (Init_RTS): New procedure, for the initialization of the run-time lib.
19235 Remove dependancy on System.Init, so that this file can be used in the
19236 AE653 sequential run-time lib.
19238 2003-11-13 Robert Dewar <dewar@gnat.com>
19240 * bindgen.adb: Minor reformatting
19242 2003-11-13 Ed Schonberg <schonberg@gnat.com>
19245 (Apply_Discriminant_Check): Do no apply check if target type is derived
19246 from source type with no applicable constraint.
19249 (Ensure_System_Dependency): Do not apply the style checks that may have
19250 been specified for the main unit.
19253 (Find_Selected_Component): Further improvement in error message, with
19257 (Resolve): Handle properly the case of an illegal overloaded protected
19260 2003-11-13 Javier Miranda <miranda@gnat.com>
19263 (Has_Default_Init_Comps): New function to check the presence of
19264 default initialization in an aggregate.
19265 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
19266 extension aggregate of a limited record. In addition, a new formal
19267 was added to do not initialize the record controller (if any) during
19268 this recursive expansion of ancestors.
19269 (Init_Controller): Add support for limited record components.
19270 (Expand_Record_Aggregate): In case of default initialized components
19271 convert the aggregate into a set of assignments.
19273 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
19274 describing the new syntax.
19275 Nothing else needed to be done because this subprogram delegates part of
19276 its work to P_Precord_Or_Array_Component_Association.
19277 (P_Record_Or_Array_Component_Association): Give support to the new
19278 syntax for default initialization of components.
19281 (Resolve_Aggregate): Relax the strictness of the frontend in case of
19282 limited aggregates.
19283 (Resolve_Record_Aggregate): Give support to default initialized
19285 (Get_Value): In case of default initialized components, duplicate
19286 the corresponding default expression (from the record type
19287 declaration). In case of default initialization in the *others*
19288 choice, do not check that all components have the same type.
19289 (Resolve_Extension_Aggregate): Give support to limited extension
19293 (Check_Initialization): Relax the strictness of the front-end in case
19294 of aggregate and extension aggregates. This test is now done in
19295 Get_Value in a per-component manner.
19297 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
19298 expression corresponds to a limited aggregate. This test is now done
19301 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
19304 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
19305 present in an N_Component_Association node
19307 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
19309 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
19310 type-conformant entry only if they are homographs.
19312 2003-11-13 GNAT Script <nobody@gnat.com>
19314 * Make-lang.in: Makefile automatically updated
19316 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19318 * adadecode.c: Use <> form of include for ctype.h.
19319 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
19321 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19323 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
19324 Works around PR middle-end/6552.
19326 2003-11-10 Ed Falis <falis@gnat.com>
19328 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
19330 * 5zinit.adb: (Install_Handler): Moved back to spec
19331 (Install_Signal_Handlers): Deleted
19333 * 5zthrini.adb: Added context clause for System.Storage_Elements
19334 (Register): Only handles creation of taskVar; initialization moved to
19336 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
19337 Added declaration of environment task secondary stack and
19340 * s-thread.adb: Implement bodies for thread body processing
19343 Added comment identifying supported targets for pragma Thread_Body.
19345 2003-11-10 Pascal Obry <obry@gnat.com>
19347 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
19351 (Open): Properly check for string length before copying into the buffer.
19352 Raises Name_Error if buffer is too small. Note that this was a potential
19355 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
19357 * bindgen.adb, comperr.adb: Code clean ups.
19358 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
19360 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
19362 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
19364 2003-11-10 Vincent Celier <celier@gnat.com>
19367 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
19370 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
19372 * prj.adb: (Project_Empty): Add new boolean component Virtual
19374 * prj.ads: (Virtual_Prefix): New constant string
19375 (Project_Data): New boolean component Virtual
19377 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
19378 a library project is extended by a virtual extending project.
19381 Modifications throughout to implement extending-all project, including:
19382 (Virtual_Hash, Processed_Hash): New hash tables
19383 (Create_Virtual_Extending_Project): New procedure
19384 (Look_For_Virtual_Projects_For): New procedure
19387 (Process): After checking the projects, if main project is an
19388 extending-all project, set the object directory of all virtual extending
19389 project to the object directory of the main project.
19390 Adjust error message when a virtual extending project has the same
19391 object directory as an project being extended.
19392 (Recursive_Process): If name starts with the virtual prefix, set Virtual
19393 to True in the project data.
19396 (Default_Project_Node): Add new boolean component Extending_All
19397 (Is_Extending_All): New function
19398 (Set_Is_Extending_All): New procedure
19400 * prj-tree.ads: (Is_Extending_All): New function
19401 (Set_Is_Extending_All): New procedure
19402 (Project_Node_Record): New boolean component Extending_All
19404 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
19407 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
19409 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
19410 "gprcmd prefix" to define it.
19412 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
19414 * einfo.ads: Fix a typo and remove an extraneous word in comments.
19417 (Create_Dummy_Package_Unit): Set the scope of the entity for the
19418 created dummy package to Standard_Standard, not to itself, to
19419 defend other parts of the front-end against encoutering a cycle in
19423 (Analyze_With_Clause): When setting the entities for the successive
19424 N_Expanded_Names that constitute the name of a child unit, do not
19425 attempt to go further than Standard_Standard in the chain of scopes.
19426 This case arises from the placeholder units created by
19427 Create_Dummy_Package_Unit in the case of a with_clause for a
19428 nonexistent child unit.
19430 2003-11-10 Ed Schonberg <schonberg@gnat.com>
19433 (Expand_Thread_Body): Place subprogram on scope stack, so that new
19434 declarations are given the proper scope.
19437 (Check_Expr_Constants): Reject an expression that contains a constant
19438 created during expansion, and that appears after the object to which
19439 the address clause applies.
19441 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
19442 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
19443 that uses 'Range of a function call with controlled components, so
19444 that the function result can be finalized before starting the loop.
19447 (Find_Selected_Component): Improve error message when prefix is
19448 an implicit dereference of an incomplete type.
19450 2003-11-10 Robert Dewar <dewar@gnat.com>
19452 * opt.ads: New Print_Standard flag for -gnatS switch
19454 * sem_ch13.adb: Remove some additional checks for unaligned arrays
19456 * cstand.adb (Create_Standard): Print out package standard if -gnatS
19459 * debug.adb: Update doc for -gnatds to discuss relationship with new
19462 * sinfo.adb: Add new field Entity_Or_Associated_Node
19464 * sinfo.ads: Add new field Entity_Or_Associated_Node
19465 Update documentation for Associated_Node and Entity fields to clarify
19466 relationship and usage.
19469 (Write_Id): Properly process Associated_Node field in generic template
19472 Recognize new -gnatS switch for printing package Standard
19473 This replaces gnatpsta
19476 Add line for new -gnatS switch for printing package Standard
19477 This replaces gnatpsta
19479 2003-11-10 Andreas Jaeger <aj@suse.de>
19481 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
19484 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
19486 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
19489 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
19491 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
19494 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
19496 * sysdep.c: Add handling of cygwin.
19498 2003-11-10 GNAT Script <nobody@gnat.com>
19500 * Make-lang.in: Makefile automatically updated
19502 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
19505 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
19506 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
19507 Replace GNAT_ROOT by GCC_ROOT.
19509 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
19511 2003-11-06 Zack Weinberg <zack@codesourcery.com>
19513 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
19514 and update for changed meaning of GET_MODE_BITSIZE.
19516 2003-11-04 Doug Rupp <rupp@gnat.com>
19518 * sysdep.c: Problem discovered during IA64 VMS port.
19519 [VMS] #include <unixio.h> to get proper prototypes.
19522 Issues discovered/problems fixed during IA64 VMS port.
19523 [VMS] #define _POSIX_EXIT for proper semantics.
19524 [VMS] #include <unixio.h> for proper prototypes.
19525 [VMS] (fork): #define IA64 version.
19526 (__gnat_os_exit): Remove unnecessary VMS specific code.
19528 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19530 Part of PR ada/12806
19532 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
19536 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
19539 * targtyps.c, decl.c, misc.c,
19540 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
19541 routines to work around change in FP sizing semantics in GCC.
19544 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
19546 * gigi.h: (enumerate_modes): New function.
19548 * Make-lang.in: (ada/misc.o): Add real.h.
19550 * misc.c: (enumerate_modes): New function.
19552 2003-11-04 Robert Dewar <dewar@gnat.com>
19554 * 3vtrasym.adb: Minor reformatting
19555 Use terminology encoded/decoded name, rather than C++ specific notion
19556 of mangling (this is the terminology used throughout GNAT).
19558 * einfo.h: Regenerated
19560 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
19563 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
19565 * par-prag.adb: Add dummy entry for Thread_Body pragma
19568 Add entries for System.Threads entities for thread body processing
19571 (Analyze_Pragma, Access attributes): Check these are not applied to a
19572 thread body, since this is not permitted
19574 * sem_prag.adb: Add processing for Thread_Body pragma.
19578 (Resolve_Call): Check for incorrect attempt to call a thread body
19579 procedure with a direct call.
19581 * snames.ads, snames.adb: Add entry for Thread_Body pragma
19582 Add names associated with thread body expansion
19584 * snames.h: Add entry for Thread_Body pragma
19586 * s-thread.adb: Add entries for thread body processing
19587 These are dummy bodies so far
19589 * s-thread.ads: Add documentation on thread body handling.
19590 Add entries for thread body processing.
19592 2003-11-04 Javier Miranda <miranda@gnat.com>
19595 (Build_Limited_Views): Return after posting an error in case of limited
19596 with_clause on subprograms, generics, instances or generic renamings
19597 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
19598 on subprograms, generics, instances or generic renamings
19600 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
19602 * raise.c (setup_to_install): Correct mistake in last revision; two
19603 arguments out of order.
19605 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
19606 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
19607 notice, missed in previous change.
19608 Remove trailing blanks and other style errors introduced in previous
19611 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
19613 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
19614 rid of the wrapper for a LJM type, ensuring we don't do that if the
19615 field is addressable. This avoids potential low level type view
19616 mismatches later on, for instance in a by-reference argument passing
19619 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19621 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
19622 aligned at byte boundary.
19624 2003-11-04 Joel Brobecker <brobecker@gnat.com>
19626 * decl.c (components_to_record): Do not delete the empty variants from
19627 the end of the union type.
19629 2003-11-04 Ed Schonberg <schonberg@gnat.com>
19631 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
19632 operation for a derived type, an explicit declaration may use a local
19633 subtype of Boolean.
19635 2003-11-04 Vincent Celier <celier@gnat.com>
19637 * make.adb (Gnatmake): Allow main sources on the command line with a
19638 library project when it is only for compilation (no binding or
19641 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19643 * Makefile.in: Remove many duplicate variables.
19645 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
19647 * Make-lang.in (dvi): Move targets to $(docobjdir).
19648 (gnat_ug_vms.dvi): Simplify rule and adjust target.
19649 (gnat_ug_wnt.dvi): Likewise.
19650 (gnat_ug_unx.dvi): Likewise.
19651 (gnat_ug_vxw.dvi): Likewise.
19652 (gnat_rm.dvi): Likewise.
19653 (gnat-style.dvi): Likewise.
19655 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
19657 * gigi.h: Missed commit from update for C90.
19659 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
19661 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
19663 2003-10-31 Andreas Schwab <schwab@suse.de>
19665 * raise.c (get_action_description_for): Fix typo in last change.
19667 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
19670 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
19671 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
19673 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
19675 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
19676 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
19677 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
19678 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
19679 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
19681 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
19684 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
19685 numbers when symbol name is too long.
19687 2003-10-30 Ed Falis <falis@gnat.com>
19689 * g-signal.ads, g-signal.adb: New files
19691 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
19693 * Makefile.rtl: Introduce GNAT.Signals
19695 2003-10-30 Robert Dewar <dewar@gnat.com>
19697 * freeze.adb: Minor reformatting
19699 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
19701 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
19702 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
19703 New handling of Id_Check parameter to improve recognition of keywords
19704 used as identifiers.
19705 Update copyright notice to include 2003
19707 2003-10-29 Robert Dewar <dewar@gnat.com>
19709 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
19710 sem_ch10.adb: Minor reformatting
19712 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
19713 (Expand_Assign_Record): Test right hand side for bit unaligned as well
19715 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
19717 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
19718 Support for TBK$SYMBOLIZE-based symbolic traceback.
19720 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
19723 Revert previous change, that did not work well when pragma No_Run_Time
19724 was used in conjunction with a run-time other than ZFP.
19726 2003-10-29 Vincent Celier <celier@gnat.com>
19729 (Gnatmake): When there are no Ada mains in attribute Main, disable the
19730 bind and link steps only is switch -z is not used.
19732 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
19734 * Makefile.generic: Remove duplicated setting of CC.
19736 * Makefile.prolog: Set CC to gcc by default, to override make's
19739 * einfo.h: Regenerated.
19741 2003-10-29 Ed Schonberg <schonberg@gnat.com>
19743 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
19744 current body, after compiling subunit.
19746 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
19747 when in deleted code, because gigi needs properly ordered freeze
19748 actions to annotate types.
19750 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
19751 prevent the premature freezing of record type that contains
19752 subcomponents with a private type that does not yet have a completion.
19754 2003-10-29 Javier Miranda <miranda@gnat.com>
19757 (Analyze_Package_Instantiation): Check that instances can not be used in
19758 limited with_clauses.
19761 (Analyze_Package_Renaming): Check that limited withed packages cannot
19762 be renamed. Improve text on error messages related to limited
19765 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
19767 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
19768 Update copyright notice.
19770 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
19771 (Install_Limited_Context_Clauses): New subprogram that isolates all the
19772 checks required for limited context_clauses and installs the limited
19774 (Install_Limited_Withed_Unit): Complete its documentation.
19775 (Analyze_Context): Check that limited with_clauses are only allowed in
19777 (Install_Context): Call Install_Limited_Context_Clauses after the
19778 parents have been installed.
19779 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
19780 package as 'From_With_Type'; this mark indicates that the limited view
19781 is installed. Used to check bad usages of limited with_clauses.
19782 (Build_Limited_Views): Do not add shadow entities to the scope's list
19783 of entities. Do not add real entities to the Non_Limited_Views chain.
19784 Improve error notification.
19785 (Remove_Context_Clauses): Remove context clauses in two phases:
19786 limited views first and regular views later (to maintain the
19788 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
19789 its visible entities.
19791 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
19793 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
19794 with any type that Is_Fixed_Point_Type.
19796 * sinfo.ads: Fix documentation for Associated_Node attribute.
19798 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
19800 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
19801 both '-gnatc' and '-gnatt' are specified.
19803 * atree.adb (Initialize): Add initialization for Node_Count (set to
19806 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19808 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
19809 do not consider as Pure.
19811 Part of implementation of function-at-a-time:
19813 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
19814 (tree_transform): Add new argument to build_component_ref.
19815 (tree_transform, case N_Assignment_Statement): Make and return an
19817 (tree_transform): If result IS_STMT, set flags and return it.
19818 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
19820 * utils2.c (build_simple_component_ref, build_component_ref): Add new
19822 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
19823 (build_allocator): Likewise.
19825 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
19826 Add new arg to build_component_ref.
19827 (maybe_unconstrained_array, unchecked_convert): Likewise.
19829 * ada-tree.def (EXPR_STMT): New code.
19831 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
19833 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
19834 build_component_ref calls.
19836 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
19838 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
19839 (build_component_ref): Add new argument, NO_FOLD_P.
19841 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
19843 * Makefile.generic: Add missing substitution on object_deps handling.
19846 * Make-lang.in (check-ada): Enable ACATS test suite.
19848 2003-10-27 Robert Dewar <dewar@gnat.com>
19851 (Freeze_Array_Type): We do not need an initialization routine for types
19852 derived from String or Wide_String. They should be treated the same
19853 as String and Wide_String themselves. This caused problems with the
19854 use of Initialize_Scalars.
19857 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
19858 composites. This allows use of component clauses that are not byte
19862 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
19863 is an attempt to pack an array of atomic objects.
19865 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
19867 2003-10-27 Pascal Obry <obry@gnat.com>
19870 (Basename): Check for drive letters in a pathname only on DOS based OS.
19872 2003-10-27 Vincent Celier <celier@gnat.com>
19875 (Gnatmake): When unable to change dir to the object dir, display the
19876 content of the parent dir of the obj dir, to try to understand why this
19879 2003-10-27 GNAT Script <nobody@gnat.com>
19881 * Make-lang.in: Makefile automatically updated
19883 2003-10-27 Ed Schonberg <schonberg@gnat.com>
19886 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
19887 should not be done in Save/Restore_Scope_Stack, because it is performed
19891 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
19892 whether use clauses should be removed/restored.
19895 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
19896 whether use clauses should be removed/restored.
19898 2003-10-26 Andreas Jaeger <aj@suse.de>
19900 * Makefile.in: Remove duplicated lines.
19902 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
19904 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
19905 minimize the differences with ACT tree.
19907 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
19908 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
19909 Gnatvsn.Gnat_Static_Version_String to reduce differences between
19912 2003-10-24 Pascal Obry <obry@gnat.com>
19914 * adadecode.c (ostrcpy): New function.
19915 (__gnat_decode): Use ostrcpy of strcpy.
19916 (has_prefix): Set first parameter a const.
19917 (has_suffix): Set first parameter a const.
19918 Update copyright notice. Fix source name in header.
19919 Removes a trailing space.
19922 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
19925 Remove the test against being in No_Run_Time_Mode before generating a
19926 call to Register_Tag. It is redundant with the test against the
19927 availability of the function Register_Tag.
19929 2003-10-24 Vincent Celier <celier@gnat.com>
19931 * g-catiio.adb: (Month_Name): Correct spelling of February
19933 * make.adb: (Mains): New package
19934 (Initialize): Call Mains.Delete
19935 (Gnatmake): Check that each main on the command line is a source of a
19936 project file and, if there are several mains, each of them is a source
19937 of the same project file.
19938 (Gnatmake): When a foreign language is specified in attribute Languages,
19939 no main is specified on the command line and attribute Mains is not
19940 empty, only build the Ada main. If there is no Ada main, just compile
19941 the Ada sources and their closure.
19942 (Gnatmake): If a main is specified on the command line with directory
19943 information, check that the source exists and, if it does, that the path
19944 is the actual path of a source of a project.
19947 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
19948 Full_Path is True, return the full path instead of the simple file name.
19949 (Project_Of): New function
19952 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
19953 defaulted to False.
19954 (Project_Of): New function
19956 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
19958 * Makefile.generic:
19959 Ensure objects of main project are always checked and rebuilt if needed.
19960 Set CC to gcc by default.
19961 Prepare new handling of link by creating a global archive (not activated
19964 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
19965 stringt.h: Update copyright notice. Remove trailing blanks.
19966 Fix source name in header.
19968 2003-10-24 Robert Dewar <dewar@gnat.com>
19970 * sem_ch12.adb: Minor reformatting
19973 Minor reformatting (including new function return style throughout)
19976 Minor reformatting (including new function return style throughout)
19978 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
19980 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
19981 stringt.h: Update copyright notice. Remove trailing blanks.
19982 Fix source name in header.
19984 2003-10-24 GNAT Script <nobody@gnat.com>
19986 * Make-lang.in: Makefile automatically updated
19988 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
19990 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
19991 stringt.h: Convert to ISO C90 declarations and definitions.
19993 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
19996 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
19997 External_Tag attribute definition clauses.
19999 2003-10-23 Ed Schonberg <schonberg@gnat.com>
20002 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
20003 child unit, generate a fully qualified name to avoid spurious errors
20004 when the context contains renamings of different child units with
20005 the same simple name.
20007 * exp_dbug.ads: Add documentation on name qualification for renamings
20010 2003-10-23 Robert Dewar <dewar@gnat.com>
20012 * g-regpat.ads, g-regpat.adb: Minor reformatting
20014 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
20016 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
20018 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20020 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
20023 * urealp.h: (Machine): Update to proper definition.
20025 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
20027 * init.c, adaint.c: Minor reformatting.
20029 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
20031 * adaint.c (w32_epoch_offset): Define static const at file level.
20032 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
20033 rather than t_create, t_access in call to GetFileTime. Use union
20034 to convert between FILETIME and unsigned long long.
20035 (__gnat_file_time_name): Test for invalid file handle.
20036 (__gnat_set_filetime_name): Support win32 targets using
20037 w32api SetFileTime.
20039 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
20041 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
20043 * ctrl_c.c (__gnat_int_handler): Remove declaration.
20045 * decl.c (creat_concat_name): Const-ify prefix.
20047 * adaint.c: Include ctype.h if __MINGW32__.
20048 (__gnat_readlink): Mark arguments as possibly unused.
20049 (__gnat_symlink): Likewise.
20050 (__gnat_is_symbolic_link): Likewise.
20051 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
20053 (__gnat_file_time_name): Don't declare struct stat statbuf when
20055 (__gnat_is_absolute_path): Add parenthesis around condition of
20056 'if' statement to avoid warning.
20057 (__gnat_plist_init): Specify void as parameter.
20058 (plist_enter): Likewise.
20059 (plist_leave): Likewise.
20060 (remove_handle): Make static. Initialize prev.
20062 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
20064 * Makefile.in: Disable build of gnatpsta. PR ada/10110.
20065 * cstreams.c (__gnat_full_name): Minor improvements and clean up
20066 of previous change.
20068 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20070 * tracebak.c (MAX): Avoid redefinition warning.
20072 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
20073 Change msg to const char *.
20074 (__gnat_install_handler): Remove ss, unused.
20075 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
20077 * cstreams.c (__gnat_full_name): Declare p only when used.
20078 (__gnat_full_name) [sgi] Return buffer.
20080 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
20082 * mingw32.h: New file.
20083 * gnat_wrapper.adb: New file.
20085 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
20087 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
20088 string match a pre compiled regular expression (the corresponding
20089 version of the function working on a raw regular expression)
20090 Fix typos in various comments
20091 Update copyright notice in spec
20093 2003-10-21 Gary Dismukes <dismukes@gnat.com>
20096 (Component_Needs_Simple_Initialization): Return False when the type is a
20097 packed bit array. Revise spec comments to document this case.
20100 (Expand_Pragma_Import): Set any expression on the imported object to
20101 empty to avoid initializing imported objects (in particular this
20102 covers the case of zero-initialization of bit arrays).
20103 Update copyright notice.
20105 2003-10-21 Ed Schonberg <schonberg@gnat.com>
20108 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
20109 a subunit is missing.
20110 (Instantiate_Subprogram_Body): If body of function is missing, set type
20111 of return expression explicitly in dummy body, to prevent cascaded
20112 errors when a subunit is missing.
20116 (Access_Subprogram_Declaration): Verify that return type is valid.
20120 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
20125 (Corresponding_Discriminant): If the scope of the discriminant is a
20126 private type without discriminant, use its full view.
20129 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
20131 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
20132 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
20133 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
20134 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
20135 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
20136 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
20137 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
20138 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
20139 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
20140 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
20141 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
20142 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
20143 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
20144 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
20145 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
20146 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
20147 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
20148 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
20149 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
20150 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
20151 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
20152 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
20153 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
20154 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
20155 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
20156 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
20157 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
20158 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
20159 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
20160 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
20161 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
20162 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
20163 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
20164 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
20165 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
20166 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
20167 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
20168 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
20169 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
20170 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
20171 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
20172 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
20173 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
20174 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
20175 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
20176 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
20177 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
20178 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
20179 vms_conv.ads, vms_conv.adb, vms_data.ads,
20180 vxaddr2line.adb: Files added. Merge with ACT tree.
20182 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
20183 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
20184 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
20185 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
20186 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
20187 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
20188 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
20189 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
20190 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
20191 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
20193 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
20194 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
20195 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
20196 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
20197 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
20198 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
20199 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
20200 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
20201 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
20202 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
20203 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
20204 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
20205 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
20206 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
20207 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
20208 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
20209 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
20210 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
20211 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
20212 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
20213 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
20214 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
20215 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
20216 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
20217 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
20218 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
20219 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
20220 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
20221 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
20222 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
20223 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
20224 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
20225 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
20226 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
20227 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
20228 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
20229 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
20230 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
20231 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
20232 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
20233 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
20234 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
20235 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
20236 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
20237 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
20238 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
20239 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
20240 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
20241 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
20242 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
20243 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
20244 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
20245 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
20246 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
20247 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
20248 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
20249 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
20250 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
20251 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
20252 checks.adb, checks.ads, cio.c, comperr.adb,
20253 comperr.ads, csets.adb, cstand.adb, cstreams.c,
20254 debug_a.adb, debug_a.ads, debug.adb, decl.c,
20255 einfo.adb, einfo.ads, errout.adb, errout.ads,
20256 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
20257 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
20258 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
20259 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
20260 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
20261 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
20262 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
20263 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
20264 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
20265 fe.h, fmap.adb, fmap.ads, fname.adb,
20266 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
20267 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
20268 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
20269 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
20270 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
20271 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
20272 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
20273 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
20274 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
20275 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
20276 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
20277 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
20278 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
20279 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
20280 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
20281 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
20282 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
20283 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
20284 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
20285 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
20286 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
20287 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
20288 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
20289 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
20290 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
20291 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
20292 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
20293 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
20294 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
20295 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
20296 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
20297 layout.adb, lib.adb, lib.ads, lib-list.adb,
20298 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
20299 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
20300 link.c, live.adb, make.adb, make.ads,
20301 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
20302 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
20303 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
20304 misc.c, mkdir.c, mlib.adb, mlib.ads,
20305 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
20306 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
20307 namet.adb, namet.ads, namet.h, nlists.ads,
20308 nlists.h, nmake.adt, opt.adb, opt.ads,
20309 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
20310 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
20311 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
20312 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
20313 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
20314 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
20315 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
20316 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
20317 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
20318 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
20319 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
20320 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
20321 prj-util.adb, prj-util.ads, raise.c, raise.h,
20322 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
20323 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
20324 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
20325 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
20326 scans.ads, scn.adb, scn.ads, s-crc32.adb,
20327 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
20328 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
20329 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
20330 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
20331 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
20332 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
20333 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
20334 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
20335 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
20336 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
20337 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
20338 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
20339 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
20340 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
20341 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
20342 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
20343 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
20344 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
20345 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
20346 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
20347 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
20348 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
20349 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
20350 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
20351 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
20352 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
20353 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
20354 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
20355 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
20356 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
20357 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
20358 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
20359 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
20360 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
20361 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
20362 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
20363 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
20364 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
20365 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
20366 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
20367 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
20368 stringt.adb, stringt.ads, stringt.h, style.ads,
20369 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
20370 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
20371 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
20372 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
20373 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
20374 table.adb, table.ads, targparm.adb, targparm.ads,
20375 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
20376 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
20377 ttypes.ads, types.ads, types.h, uintp.adb,
20378 uintp.ads, uintp.h, uname.adb, urealp.adb,
20379 urealp.ads, urealp.h, usage.adb, utils2.c,
20380 utils.c, validsw.adb, validsw.ads, widechar.adb,
20381 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
20382 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
20383 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
20384 gnatvsn.ads: Merge with ACT tree.
20386 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
20388 2003-10-20 Mark Mitchell <mark@codesourcery.com>
20390 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
20391 (gnat_ug_vmx.info): Likewise.
20392 (gnat_ug_vxw.info): Likewise.
20393 (gnat_ug_wnt.info): Likewise.
20394 (gnat_rm.info): Likewise.
20395 (gnat-style.info): Likewise.
20397 * Make-lang.in (ada.install-info): Remove target.
20398 (info): New target.
20399 (install-info): Likewise.
20400 (gnat_ug_unx.info): Simplify rule.
20401 (gnat_ug_vmx.info): Likewise.
20402 (gnat_ug_vxw.info): Likewise.
20403 (gnat_ug_wnt.info): Likewise.
20404 (gnat_rm.info): Likewise.
20405 (gnat-style.info): Likewise.
20407 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
20409 * Make-lang.in: Replace uses of $(target_alias) with
20410 $(target_noncanonical).
20411 * ada/Makefile.in: Remove unused mention of $(target_alias).
20413 2003-10-06 Mark Mitchell <mark@codesourcery.com>
20415 * Make-lang.in (ada.info): Replace with ...
20417 (ada.dvi): Replace with ...
20420 2003-09-29 Zack Weinberg <zack@codesourcery.com>
20422 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
20423 initialize dconstp5 and dconstmp5.
20425 2003-09-28 Richard Henderson <rth@redhat.com>
20427 * trans.c (tree_transform): Update call to expand_asm_operands.
20429 2003-09-21 Richard Henderson <rth@redhat.com>
20431 * trans.c, utils.c: Revert.
20433 2003-09-21 Richard Henderson <rth@redhat.com>
20435 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
20438 2003-09-04 Michael Matz <matz@suse.de>
20440 * misc.c: Include "target.h".
20441 * Make-lang.in (misc.o): Add dependency on target.h.
20443 2003-09-03 DJ Delorie <dj@redhat.com>
20445 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
20448 2003-08-30 Zack Weinberg <zack@codesourcery.com>
20450 * Makefile.in: Update substitutions to match changes to
20451 configure. Use include directives instead of @-insertions
20452 to read in host and target fragments. Add a rule to
20453 regenerate ada/Makefile.
20455 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
20457 * lang-options.h: Remove.
20458 * lang.opt: Add help text.
20460 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
20462 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
20465 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
20467 * misc.c (gnat_handle_option): Don't handle filenames.
20469 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
20471 * Make-lang.in: Replace PWD with PWD_COMMAND.
20472 * Makefile.adalib: Likewise.
20473 * Makefile.in: Likewise.
20475 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
20477 * misc.c (gnat_argv): Revert last change.
20478 (gnat_handle_option, gnat_init_options): Copy arguments.
20480 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
20482 * misc.c (gnat_argv): Make const.
20484 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
20486 * misc.c (save_argc, save_argv): Keep non-static!
20488 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
20490 * misc.c (save_argc, save_argv): Make static.
20491 (gnat_init_options): New prototype.
20492 (gnat_init_options): Update.
20494 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
20496 * gnat_ug.texi: Remove unlikely characters from @vars.
20497 * gnat_ug_vms.texi: Regenerate.
20499 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
20501 * misc.c (record_code_position): Adjust emit_note call.
20503 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
20505 * misc.c (gnat_handle_option): Don't check for missing arguments.
20507 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
20509 * utils.c (end_subprog_body): Adjust expand_function_end call.
20511 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
20513 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
20516 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
20518 * lang.opt: Declare Ada.
20519 * misc.c (gnat_init_options): Update.
20521 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
20523 * utils.c (begin_subprog_body): Adjust init_function_start call.
20525 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
20527 * Make-lang.in: Update to use options.c and options.h.
20528 * misc.c: Include options.h not aoptions.h.
20529 (gnat_handle_option): Abort on unrecognized switch.
20530 (gnat_init_options): Request Ada switches.
20532 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
20534 * lang.opt: Add -Wall.
20535 * misc.c (gnat_handle_option): Handle it.
20537 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
20539 * misc.c (gnat_handle_option): Fix warnings.
20541 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
20543 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
20545 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
20547 * Make-lang.in: Update to handle command-line options.
20548 * lang.opt: New file.
20549 * misc.c: Include aoptions.h.
20550 (cl_options_count, cl_options): Remove.
20551 (gnat_handle_option): New.
20552 (gnat_decode_option): Remove.
20553 (LANG_HOOKS_DECODE_OPTION): Remove.
20554 (LANG_HOOKS_HANDLE_OPTION): Override.
20556 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
20558 * init.c, misc.c, trans.c, utils.c: Remove dead code.
20560 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
20562 * Makefile.in: Replace "host_canonical" with "host" for autoconf
20565 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
20567 * Make-lang.in: Update.
20568 * misc.c: Include opts.h. Define cl_options_count and cl_options.
20570 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
20572 * misc.c (gnat_init_options): Update.
20574 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
20576 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
20577 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
20578 __attribute__ ((__unused__)).
20580 2003-06-05 Jan Hubicka <jh@suse.cz>
20582 * Make-lang.in: Add support for stageprofile and stagefeedback
20584 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
20586 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
20587 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
20589 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
20591 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
20592 Remove non-VMS directive.
20593 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
20595 (Examples of gnatls Usage): Remove VMS alternative.
20597 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
20600 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
20601 and turn ZCX_By_Default back to False since the underlying support
20602 is not quite there yet.
20604 2003-06-01 Andreas Jaeger <aj@suse.de>
20606 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
20607 and ROUND_TYPE_SIZE_UNIT.
20609 2003-05-22 Geert Bosch <bosch@gnat.com>
20611 * gnat_rm.texi : Remove reference to Ada Core Technologies.
20613 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
20615 * trans.c (tree_transform): Use location_t and input_location
20617 (build_unit_elab): Likewise.
20618 * utils.c (create_label_decl): Likewise.
20620 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
20622 * trans.c (tree_transform, build_unit_elab,
20623 set_lineno): Rename lineno to input_line.
20624 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
20625 end_subprog_body): Likewise.
20626 * utils2.c (build_call_raise): Likewise.
20628 2003-05-01 Laurent Guerby <guerby@acm.org>
20631 * 5iosinte.ads: Increase pthread_cond_t size to match recent
20632 LinuxThread and NPTL version, merge from ACT.
20634 2003-04-28 Zack Weinberg <zack@codesourcery.com>
20636 * utils.c (convert): No need to clear TREE_CST_RTL.
20638 2003-04-23 Geert Bosch <bosch@gnat.com>
20640 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
20641 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
20642 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
20643 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
20644 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
20645 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
20646 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
20647 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
20648 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
20649 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
20650 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
20651 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
20652 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
20653 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
20654 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
20655 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
20656 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
20657 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
20658 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
20659 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
20660 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
20661 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
20662 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
20663 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
20664 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
20665 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
20666 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
20667 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
20668 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
20669 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
20670 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
20671 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
20672 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
20673 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
20674 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
20675 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
20676 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
20677 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
20678 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
20679 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
20680 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
20681 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
20682 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
20683 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
20684 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
20685 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
20686 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
20687 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
20688 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
20689 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
20690 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
20691 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
20692 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
20693 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
20694 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
20695 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
20696 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
20697 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
20698 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
20699 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
20700 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
20701 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
20702 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
20703 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
20704 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
20705 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
20706 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
20707 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
20708 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
20709 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
20710 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
20711 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
20712 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
20713 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
20714 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
20715 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
20716 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
20717 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
20718 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
20719 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
20720 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
20721 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
20722 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
20723 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
20724 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
20725 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
20726 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
20727 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
20728 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
20729 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
20730 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
20731 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
20732 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
20733 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
20734 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
20735 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
20736 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
20737 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
20738 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
20739 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
20740 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
20741 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
20742 ali.adb, ali.ads, alloc.ads, argv.c,
20743 atree.adb, atree.ads, atree.h, aux-io.c,
20744 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
20745 binde.adb, binde.ads, binderr.adb, binderr.ads,
20746 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
20747 butil.adb, butil.ads, cal.c, calendar.ads,
20748 casing.adb, casing.ads, ceinfo.adb, checks.adb,
20749 checks.ads, cio.c, comperr.adb, comperr.ads,
20750 config-lang.in, csets.adb, csets.ads, csinfo.adb,
20751 cstand.adb, cstand.ads, cuintp.c, debug.adb,
20752 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
20753 dec-io.ads, dec.ads, deftarg.c, directio.ads,
20754 einfo.adb, einfo.ads, elists.adb, elists.ads,
20755 elists.h, errno.c, errout.adb, errout.ads,
20756 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
20757 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
20758 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
20759 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
20760 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
20761 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
20762 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
20763 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
20764 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
20765 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
20766 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
20767 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
20768 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
20769 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
20770 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
20771 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
20772 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
20773 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
20774 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
20775 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
20776 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
20777 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
20778 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
20779 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
20780 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
20781 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
20782 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
20783 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
20784 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
20785 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
20786 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
20787 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
20788 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
20789 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
20790 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
20791 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
20792 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
20793 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
20794 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
20795 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
20796 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
20797 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
20798 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
20799 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
20800 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
20801 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
20802 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
20803 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
20804 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
20805 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
20806 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
20807 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
20808 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
20809 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
20810 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
20811 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
20812 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
20813 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
20814 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
20815 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
20816 lib.adb, lib.ads, live.adb, live.ads,
20817 machcode.ads, make.adb, make.ads, makeusg.adb,
20818 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
20819 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
20820 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
20821 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
20822 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
20823 mlib.ads, namet.adb, namet.ads, nlists.adb,
20824 nlists.ads, opt.adb, opt.ads, osint-b.adb,
20825 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
20826 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
20827 osint.ads, output.adb, output.ads, par-ch10.adb,
20828 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
20829 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
20830 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
20831 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
20832 par-tchk.adb, par-util.adb, par.adb, par.ads,
20833 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
20834 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
20835 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
20836 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
20837 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
20838 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
20839 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
20840 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
20841 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
20842 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
20843 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
20844 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
20845 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
20846 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
20847 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
20848 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
20849 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
20850 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
20851 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
20852 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
20853 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
20854 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
20855 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
20856 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
20857 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
20858 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
20859 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
20860 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
20861 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
20862 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
20863 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
20864 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
20865 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
20866 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
20867 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
20868 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
20869 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
20870 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
20871 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
20872 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
20873 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
20874 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
20875 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
20876 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
20877 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
20878 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
20879 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
20880 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
20881 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
20882 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
20883 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
20884 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
20885 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
20886 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
20887 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
20888 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
20889 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
20890 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
20891 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
20892 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
20893 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
20894 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
20895 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
20896 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
20897 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
20898 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
20899 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
20900 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
20901 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
20902 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
20903 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
20904 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
20905 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
20906 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
20907 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
20908 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
20909 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
20910 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
20911 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
20912 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
20913 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
20914 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
20915 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
20916 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
20917 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
20918 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
20919 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
20920 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
20921 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
20922 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
20923 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
20924 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
20925 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
20926 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
20927 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
20928 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
20929 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
20930 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
20931 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
20932 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
20933 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
20934 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
20935 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
20936 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
20937 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
20938 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
20939 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
20940 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
20941 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
20942 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
20943 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
20944 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
20945 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
20946 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
20947 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
20948 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
20949 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
20950 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
20951 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
20952 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
20953 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
20954 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
20955 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
20956 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
20957 snames.ads, sprint.adb, sprint.ads, stand.adb,
20958 stand.ads, stringt.adb, stringt.ads, style.adb,
20959 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
20960 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
20961 switch-m.ads, switch.adb, switch.ads, system.ads,
20962 table.adb, table.ads, targparm.adb, targparm.ads,
20963 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
20964 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
20965 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
20966 ttypef.ads, ttypes.ads, types.adb, types.ads,
20967 uintp.adb, uintp.ads, uname.adb, uname.ads,
20968 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
20969 usage.adb, usage.ads, validsw.adb, validsw.ads,
20970 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
20971 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
20972 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
20973 formatting and other trivial changes from ACT.
20975 2003-04-12 Zack Weinberg <zack@codesourcery.com>
20977 * gigi.h, utils2.c (build_constructor):
20978 Rename gnat_build_constructor. Use build_constructor.
20979 * decl.c (gnat_to_gnu_entity)
20980 * trans.c (tree_transform, pos_to_constructor, extract_values)
20981 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
20982 (unchecked_convert)
20983 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
20984 (fill_vms_descriptor):
20987 2003-04-06 Zack Weinberg <zack@codesourcery.com>
20989 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
20990 * misc.c (gnat_tree_size): New function.
20991 (LANG_HOOKS_TREE_SIZE): Override.
20993 2003-04-03 Jason Merrill <jason@redhat.com>
20995 * misc.c (gnat_adjust_rli): #if 0.
20997 2003-03-31 Geert Bosch <bosch@gnat.com>
21000 * link.c : Fix misspelled "const" keyword
21002 2003-03-23 Mark Mitchell <mark@codesourcery.com>
21005 * utils2.c: Adjust calls to put_var_into_stack.
21007 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
21009 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
21011 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
21013 * misc.c (gnat_init): Update for new prototype.
21015 2003-03-05 Olivier Hainque <hainque@gnat.com>
21018 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
21019 warning, and fix return type for the IN_RTS && !SJLJ case.
21021 2003-03-04 Tom Tromey <tromey@redhat.com>
21023 * Make-lang.in (ada.tags): New target.
21025 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
21028 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
21029 wrapper, which name remains constant whatever underlying GCC
21032 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
21033 the stable interface needed for a-except.
21035 2003-03-02 Andreas Jaeger <aj@suse.de>
21037 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
21038 gnat_ug_wnt.texi: Regenerate.
21040 2003-03-02 Laurent Guerby <guerby@acm.org>
21042 * Makefile.in (install-gnatlib): Match previous change there
21045 2003-02-28 Andreas Schwab <schwab@suse.de>
21047 * Make-lang.in (install-gnatlib): Change to ada directory before
21048 running make instead of using ada/Makefile directly.
21050 2003-02-18 Ben Elliston <bje@redhat.com>
21052 Part of fix for PR ada/9406
21053 * gnat_ug.texi (Binder output file): Grammar fix.
21055 2003-02-18 Ben Elliston <bje@redhat.com>
21058 * 5qtaprop.adb (Sleep): Fix typo in comment.
21060 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
21062 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
21063 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
21064 gnat_ug_wnt.texi: Regenerate.
21066 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
21068 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
21069 be created if necessary.
21070 (ada.install-common): Let $(DESTDIR)$(bindir) be created
21071 if necessary. Remove erroneous and redundant gnatchop
21072 installation commands. Test for gnatdll before attempting
21074 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
21075 and gnatdll from all plausible locations.
21077 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
21079 * utils2.c (build_unary_op): Don't check flag_volatile.
21080 * gnat_ug.texi: Remove -fvolatile from example.
21081 * gnat_ug_vxw.texi: Likewise.
21083 2003-01-29 Laurent Guerby <guerby@acm.org>
21086 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
21087 * Makefile.in: match previous change.
21088 * Make-lang.in: match previous change.
21090 2003-01-29 Joel Sherrill <joel@OARcorp.com>
21092 * 5rosinte.ads: Add SIGXCPU.
21093 * 5rtpopsp.adb: New file.
21094 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
21095 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
21096 specific file 5rtpopsp.adb.
21097 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
21098 is likely needed for all newlib targets.
21099 * init.c: Add RTEMS specific version of __gnat_initialize().
21101 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21103 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
21105 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21107 * init.c (__gnat_error_handler): Make msg const.
21109 * gmem.c (convert_addresses): Move declaration ...
21110 * adaint.h: ... here.
21111 * adaint.c (convert_addresses): Adapt addrs type to match
21114 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
21116 2003-01-24 Andreas Schwab <schwab@suse.de>
21118 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
21119 size_t to avoid warning.
21121 2003-01-21 Zack Weinberg <zack@codesourcery.com>
21123 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
21125 2003-01-09 Geoffrey Keating <geoffk@apple.com>
21127 * gnat_rm.texi: Remove RCS version number.
21129 * ada-tree.h (union lang_tree_node): Add chain_next option.
21131 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
21133 * Make-lang.in (ada.install-info, ada.install-common,
21134 ada.uninstall): Prepend $(DESTDIR) to the destination
21135 directory in all (un)installation commands.
21136 * Makefile.in (install-gnatlib, install-rts): Ditto.
21138 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
21140 * gnat_rm.texi, gnat_ug.texi: Use @copying.
21141 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
21142 gnat_ug_wnt.texi: Regenerate.
21144 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
21146 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
21148 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
21149 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
21150 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
21151 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
21152 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
21153 $(srcdir)/doc/include/gcc-common.texi.
21155 2002-12-15 Geert Bosch <bosch@gnat.com>
21157 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
21159 2002-12-14 Geert Bosch <bosch@gnat.com>
21161 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
21162 case of a body created for a Renaming_As_Body, on which
21163 conformance checks are not performed. Fixes PR ada/5690.
21165 2002-11-30 Zack Weinberg <zack@codesourcery.com>
21167 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
21168 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
21169 not already included.
21170 * Make-lang.in: Update dependencies.
21172 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
21173 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
21174 solution to buffer overflow bug on GNU/Linux.
21176 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
21177 Closes PR ada/5856 and PR ada/6919 !
21178 * bindgen.adb: Remove all references to Public_Version.
21179 * comperr.adb: Remove all references to Public_Version and
21180 GNATPRO_Version; correct bug reporting instructions.
21181 * comperr.ads: Change to match bug box.
21182 * gnatvsn.ads: Remove all references to Public version and
21185 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
21187 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
21191 * config-lang.in: Remove diff_excludes.
21193 2002-11-05 Graham Stott <graham.stott@btinternet.com>
21195 * trans.c (gnu_pending_elaboration_lists): New GC root.
21196 (build_unit_elab): Use..
21198 2002-10-30 Geert Bosch <bosch@gnat.com>
21200 * misc.c : Include optabs.h
21202 * Make-lang.in (misc.o): Add dependency on optabs.h
21204 2002-10-29 Geert Bosch <bosch@gnat.com>
21206 * Make-lang.in (gnatbind): Depend on CONFIG_H
21208 2002-10-29 Geert bosch <bosch@gnat.com>
21210 * misc.c: Unrevert misc.c (1.13)
21212 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
21214 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
21215 maintainership comments.
21217 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
21219 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
21220 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
21221 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
21222 7staprop.adb: Correct statements in comments about
21223 maintainership of GNAT.
21226 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
21227 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
21228 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
21229 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
21230 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
21231 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
21232 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
21233 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
21234 comments about maintainership of GNAT.
21236 PR ada/6919 (forward port of patch for PR ada/5904)
21237 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
21238 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
21239 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
21240 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
21241 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
21242 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
21243 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
21244 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
21245 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
21246 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
21247 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
21248 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
21249 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
21250 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
21251 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
21252 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
21253 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
21254 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
21255 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
21256 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
21257 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
21258 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
21259 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
21260 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
21261 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
21262 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
21263 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
21264 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
21265 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
21266 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
21267 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
21268 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
21269 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
21270 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
21271 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
21272 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
21273 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
21274 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
21275 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
21276 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
21277 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
21278 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
21279 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
21280 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
21281 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
21282 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
21283 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
21284 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
21285 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
21286 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
21287 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
21288 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
21289 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
21290 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
21291 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
21292 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
21293 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
21294 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
21295 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
21296 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
21297 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
21298 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
21299 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
21300 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
21301 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
21302 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
21303 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
21304 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
21305 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
21306 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
21307 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
21308 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
21309 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
21310 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
21311 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
21312 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
21313 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
21314 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
21315 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
21316 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
21317 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
21318 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
21319 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
21320 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
21321 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
21322 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
21323 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
21324 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
21325 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
21326 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
21327 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
21328 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
21329 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
21330 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
21331 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
21332 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
21333 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
21334 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
21335 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
21336 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
21337 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
21338 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
21339 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
21340 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
21341 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
21342 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
21343 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
21344 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
21345 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
21346 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
21347 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
21348 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
21349 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
21350 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
21351 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
21352 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
21353 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
21354 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
21355 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
21356 par-endh.adb par-labl.adb par-load.adb par-prag.adb
21357 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
21358 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
21359 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
21360 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
21361 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
21362 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
21363 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
21364 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
21365 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
21366 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
21367 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
21368 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
21369 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
21370 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
21371 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
21372 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
21373 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
21374 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
21375 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
21376 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
21377 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
21378 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
21379 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
21380 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
21381 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
21382 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
21383 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
21384 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
21385 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
21386 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
21387 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
21388 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
21389 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
21390 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
21391 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
21392 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
21393 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
21394 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
21395 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
21396 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
21397 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
21398 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
21399 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
21400 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
21401 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
21402 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
21403 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
21404 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
21405 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
21406 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
21407 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
21408 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
21409 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
21410 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
21411 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
21412 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
21413 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
21414 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
21415 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
21416 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
21417 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
21418 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
21419 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
21420 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
21421 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
21422 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
21423 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
21424 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
21425 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
21426 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
21427 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
21428 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
21429 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
21430 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
21431 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
21432 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
21433 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
21434 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
21435 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
21436 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
21437 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
21438 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
21439 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
21440 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
21441 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
21442 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
21443 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
21444 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
21445 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
21446 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
21447 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
21448 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
21449 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
21450 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
21451 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
21452 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
21453 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
21454 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
21455 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
21456 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
21457 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
21458 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
21459 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
21460 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
21461 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
21462 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
21463 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
21464 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
21465 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
21466 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
21467 stringt.ads stringt.h style.adb style.ads stylesw.adb
21468 stylesw.ads switch.adb switch.ads sysdep.c system.ads
21469 table.adb table.ads targparm.adb targparm.ads targtyps.c
21470 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
21471 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
21472 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
21473 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
21474 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
21475 usage.ads utils.c utils2.c validsw.adb validsw.ads
21476 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
21477 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
21478 xtreeprs.adb: Correct statements in comments about maintainership
21481 2002-09-23 Zack Weinberg <zack@codesourcery.com>
21483 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
21484 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
21485 * gnatvsn.ads: Gnat_Version_String is now a function.
21486 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
21487 copy the C version_string into a String and return it.
21488 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
21489 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
21490 Remove pragma Ident (Gnat_Version_String). If this was the
21491 sole use of package Gnatvsn, remove the with statement too.
21492 * gnat1drv.adb: Tweak -gnatv output.
21494 2002-09-17 Richard Henderson <rth@redhat.com>
21496 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
21497 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
21498 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
21499 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
21500 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
21501 and real_2expN instead of a loop.
21502 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
21503 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
21505 2002-08-25 Andre Leis <a.leis@gmx.net>
21506 David Billinghurst (David.Billinghurst@riotinto.com>
21508 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
21510 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21512 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
21513 Remove $(CONFIG_H) dependency.
21515 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
21517 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
21519 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21521 * adadecode.c (ada_demangle): Use xstrdup in lieu of
21523 * misc.c (gnat_decode_option): Likewise.
21525 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
21527 * make.adb (Add_Switch): Make Generic_Position a procedure. The
21528 function approach did not work well because of a side effect (the
21529 function call could reallocate the table which was being indexed
21530 using its result). Fixes ada/4851. [RESURRECTED]
21532 2002-07-01 Roger Sayle <roger@eyesopen.com>
21534 * ada/utils.c (builtin_function): Accept an additional parameter.
21536 2002-06-28 Andreas Jaeger <aj@suse.de>
21539 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
21542 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21544 * Makefile.in (SHELL): Set to @SHELL@.
21546 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21548 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
21549 array size calculation.
21551 2002-06-04 Andreas Jaeger <aj@suse.de>
21553 * Make-lang.in (gnatbind): Readd rule that has been lost in last
21556 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
21558 Merge from pch-branch:
21560 * config-lang.in (gtfiles): Add ada-tree.h.
21561 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
21562 (SET_TYPE_MODULUS): New.
21563 (SET_TYPE_INDEX): New.
21564 (SET_TYPE_DIGITS_VALUE): New.
21565 (SET_TYPE_RM_SIZE): New.
21566 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
21567 (SET_TYPE_ADA_SIZE): New.
21568 (SET_TYPE_ACTUAL_BOUNDS): New.
21569 (SET_DECL_CONST_CORRESPONDING_VAR): New.
21570 (SET_DECL_ORIGINAL_FIELD): New.
21571 (TREE_LOOP_ID): Correct typo.
21572 * decl.c: Use new macros.
21573 * utils.c: Include debug.h, use new macros.
21574 * utils2.c: Use new macros.
21576 * ada-tree.h: Update all macros for new tree description.
21577 (struct tree_loop_id): New.
21578 (union lang_tree_node): New.
21579 (struct lang_decl): New.
21580 (struct lang_type): New.
21581 * misc.c (gnat_mark_tree): Delete.
21582 (LANG_HOOKS_MARK_TREE): Delete.
21583 * trans.c (tree_transform): No longer any need to cast
21586 * utils.c (struct language_function): New dummy structure.
21588 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
21589 (misc.o): Likewise.
21590 (utils.o): Likewise; also gtype-ada.h.
21591 * Make-lang.in (gnat1): Add dependency on s-gtype.
21592 (gnatbind): Add dependency on $(CONFIG_H).
21593 * utils.c: Correct last #include.
21594 (stuct e_stack): Remove unnecessary 'static'.
21595 (mark_e_stack): Remove unused prototype.
21597 * scn-nlit.adb: Remove whitespace after version number to
21598 keep lines under 80 chars.
21599 * snames.adb: Likewise.
21600 * treepr.ads: Likewise.
21602 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
21603 (misc.o): Likewise.
21604 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
21605 * config-lang.in (gtfiles): New.
21606 * decl.c: Use gengtype for roots.
21607 * gigi.h: Use gengtype for roots.
21608 * trans.c: Use gengtype for roots.
21609 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
21611 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
21613 * misc.c (gnat_init): Adjust setting of internal_error_function.
21615 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
21617 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
21618 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
21619 gnat_ug_wnt.texi: Regenerate.
21621 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
21623 * 5ntaprop.adb (with System.OS_Primitives): Remove.
21625 * cstreams.c (max_path_len): Move from here ...
21626 * adaint.c (__gnat_max_path_len): ... to here.
21627 * adaint.c (__gnat_max_path_len): Declare.
21628 * g-dirope.adb (Max_Path): Adjust.
21629 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
21630 * i-cstrea.ads (max_path_len): Adjust.
21631 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
21632 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
21634 * Makefile.in, Make-lang.in: Documentation is now built in
21635 Make-lang.in. Store Info and generated Texinfo files in the
21637 * gnat_ug.texi: Remove CVS keywords, correct version number.
21638 Set file name correctly.
21640 * gnat_ug_*.texi: Add.
21641 * .cvsignore: Ignore generated Texinfo files.
21643 2002-05-30 Zack Weinberg <zack@codesourcery.com>
21645 * ada.h: Add MI guard macro.
21646 (SUBTYPE): Define constants with an anonymous enum, not static
21648 (IN): Cast constants to appropriate type before use.
21650 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
21652 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
21655 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21657 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
21658 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
21659 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
21660 (ALL_ADA_CFLAGS): Likewise.
21661 (ADA_INCLUDES): Likewise.
21662 Adapt for new working dir.
21663 (GNATBIND): Use Makefile.in version.
21664 (.SUFFIXES): Copy from Makefile.in.
21665 (ada-warn): Define.
21666 (.adb.o, .ads.o): Copy from Makefile.in.
21667 Added $(OUTPUT_OPTION).
21668 (GNAT1_C_OBJS): Moved from Makefile.in.
21669 Prefix with ada subdir.
21670 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
21671 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
21672 Adapt for new working dir.
21673 (EXTRA_GNATBIND_OBJS): Likewise.
21674 (ADA_BACKEND): Moved from Makefile.in.
21675 Renamed to avoid conflict with global BACKEND.
21677 (TARGET_ADA_SRCS): Moved from Makefile.in.
21678 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
21680 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
21681 (ada_extra_files): Moved from Makefile.in.
21682 Prefix with ada subdir.
21683 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
21684 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
21685 (ada/nmake.ads): Likewise.
21686 (update-sources): Moved from Makefile.in.
21687 Prefix with ada subdir.
21688 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
21689 (ADA_TREE_H): Likewise.
21690 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
21691 (ada/memtrack.o): Likewise.
21692 (ada/adadecode.o): Likewise.
21693 Update dependencies.
21694 (ada/adaint.o): New.
21695 (ada/argv.o): Moved from Makefile.in.
21696 Prefix with ada subdir.
21697 Update dependencies.
21698 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
21699 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
21700 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
21701 Prefix with ada subdir.
21702 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
21703 (GNAT DEPENDENCIES): Regenerate.
21704 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
21705 toplevel Makefile.in.
21706 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
21707 (TARGET_ADA_SRCS): Removed.
21708 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
21709 (GNATBIND_OBJS): Likewise.
21710 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
21711 (BACKEND): Removed.
21712 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
21713 (TREE_H): Likewise.
21714 (ada_extra_files): Likewise.
21715 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
21716 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
21717 (update-sources): Likewise.
21718 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
21719 (ADA_TREE_H): Likewise.
21720 (adadecoce.o): Likewise.
21721 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
21722 (GNAT DEPENDENCIES): Likewise.
21724 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21726 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
21727 * Makefile.in: Likewise.
21729 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21731 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
21732 Restore $(CONFIG_H) and prefix.o dependencies.
21733 (ada.stage[1-4]): Depend on stage?-start.
21735 * Makefile.in (b_gnatb.c): Depend on interfac.o.
21737 2002-05-02 Jim Wilson <wilson@redhat.com>
21739 * utils.c (finish_record_type): Change record_size to record_type.
21741 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
21743 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
21744 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
21745 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
21747 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
21749 * misc.c (gnat_parse_file): Update.
21751 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
21753 * misc.c (gnat_init): Don't set lang_attribute_common.
21755 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
21757 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
21759 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
21761 * gnat_ug.texi: New file.
21763 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
21764 instead of gfdl.texi
21766 * xgnatug.adb, ug_words: New files.
21768 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
21769 gnat_rm and gnat-style manuals.
21771 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
21773 * gigi.h (incomplete_type_error): Remove.
21774 * utils.c (incomplete_type_error): Remove.
21776 2002-04-16 Mark Mitchell <mark@codesourcery.com>
21778 * trans.c (tree_transform): Add has_scope argument to
21779 expand_start_stmt_expr.
21781 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
21783 * gigi.h (truthvalue_conversion): Rename.
21784 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
21785 * trans.c (tree_transform): Update.
21786 * utils2.c (truthvalue_conversion): Rename, update.
21787 (build_binary_op, build_unary_op): Update.
21789 2002-04-04 Laurent Guerby <guerby@acm.org>
21791 * make.adb: Implement -margs, remove restriction about file name placement.
21792 * makeusg.adb: Documentation update.
21793 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
21794 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
21796 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
21798 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
21799 (builtin_function): Similarly.
21801 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
21803 * decl.c (gnat_to_gnu_entity): Update.
21804 * gigi.h (mark_addressable): Rename.
21805 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
21806 * trans.c (tree_transform): Update.
21807 * utils.c (create_var_decl): Update.
21808 * util2.c (build_binary_op, build_unary_op,
21809 fill_vms_descriptor): Update.
21810 (mark_addressable): Rename, update.
21812 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
21814 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
21816 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
21817 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
21818 * trans.c (tree_transform, convert_with_check): Update.
21819 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
21822 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
21824 * gigi.h (finish_incomplete_decl): Rename.
21825 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
21826 * utils.c (gnat_init_decl_processing): Don't set hook.
21827 (finish_incomplete_decl): Rename.
21829 2002-03-29 Andreas Schwab <schwab@suse.de>
21831 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
21834 2001-03-28 Robert Dewar <dewar@gnat.com>
21837 (Remove_Checks): New procedure
21840 (Remove_Checks): New procedure
21843 Use new Duplicate_Subexpr functions
21844 (Duplicate_Subexpr_No_Checks): New procedure
21845 (Duplicate_Subexpr_No_Checks_Orig): New procedure
21846 (Duplicate_Subexpr): Restore original form (checks duplicated)
21847 (Duplicate_Subexpr): Call Remove_Checks
21850 (Duplicate_Subexpr_No_Checks): New procedure
21851 (Duplicate_Subexpr_No_Checks_Orig): New procedure
21852 Add 2002 to copyright notice
21854 * sem_util.adb: Use new Duplicate_Subexpr functions
21857 (Eval_Indexed_Component): This is the place to call
21858 Constant_Array_Ref and to replace the value. We simply merge
21859 the code of this function in here, since it is now no longer
21860 used elsewhere. This fixes the problem of the back end not
21861 realizing we were clever enough to see that this was
21863 (Expr_Val): Remove call to Constant_Array_Ref
21864 (Expr_Rep_Val): Remove call to Constant_Array_Ref
21866 (Constant_Array_Ref): Deal with string literals (patch
21867 suggested by Zack Weinberg on the gcc list)
21869 2001-03-28 Ed Schonberg <schonber@gnat.com>
21871 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
21872 Duplicate_Subexpr_Move_Checks.
21874 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
21875 Duplicate_Subexpr_Move_Checks.
21877 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
21878 value of array exists before retrieving it (it may a private
21879 protected component in a function).
21881 2002-03-28 Geert Bosch <bosch@gnat.com>
21883 * prj-pp.adb : New file.
21885 * prj-pp.ads : New file.
21887 2002-03-28 Andreas Jaeger <aj@suse.de>
21889 * Makefile.in (stamp-sdefault): Fix path for Makefile.
21891 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
21893 * misc.c (gnat_expand_expr): Move prototype.
21895 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
21897 * misc.c (insert_default_attributes): Remove.
21899 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
21901 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
21902 (gnat_init): Don't set hook.
21903 (gnat_expand_expr): Fix prototype.
21905 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
21907 * misc.c (ggc_p): Remove.
21909 2002-03-27 Geert Bosch <bosch@gnat.com>
21911 * prj-makr.ads, prj-makr.adb : New files.
21913 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
21915 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
21916 (lang_mark_tree): Make static, rename.
21918 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
21920 * misc.c (maybe_build_cleanup): Remove.
21922 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
21924 * gigi.h (yyparse): Remove.
21926 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
21928 * gnat_rm.texi: Sync with ACT version.
21929 (From Ben Brosgol <brosgol@gnat.com>)
21931 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
21933 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
21934 (gnat_init): Remove old hook.
21936 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
21938 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
21939 (yyparse): Rename gnat_parse_file.
21941 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
21943 Delete all lines containing "$Revision:".
21944 * xeinfo.adb: Don't look for revision numbers.
21945 * xnmake.adb: Likewise.
21946 * xsinfo.adb: Likewise.
21947 * xsnames.adb: Likewise.
21948 * xtreeprs.adb: Likewise.
21950 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21952 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
21953 gnat_tree_code_name): Delete.
21954 (tree_code_type, tree_code_length, tree_code_name): Define.
21955 (gnat_init): Don't try to copy into the various tree_code
21958 2002-03-11 Richard Henderson <rth@redhat.com>
21960 * Makefile.in (.NOTPARALLEL): Add fake tag.
21962 2002-03-07 Geert Bosch <bosch@gnat.com>
21964 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
21965 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
21966 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
21967 switch-m.adb, switch-m.ads : New files.
21969 2002-03-07 Geert Bosch <bosch@gnat.com>
21971 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
21972 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
21973 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
21974 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
21975 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
21976 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
21977 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
21978 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
21979 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
21980 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
21981 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
21982 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
21983 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
21984 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
21985 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
21986 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
21987 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
21988 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
21989 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
21990 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
21991 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
21992 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
21993 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
21994 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
21995 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
21996 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
21997 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
21998 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
21999 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
22000 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
22001 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
22002 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
22003 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
22004 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
22005 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
22006 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
22007 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
22008 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
22009 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
22010 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
22011 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
22012 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
22013 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
22014 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
22015 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
22016 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
22017 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
22018 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
22019 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
22020 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
22021 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
22022 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
22023 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
22024 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
22025 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
22026 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
22027 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
22028 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
22029 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
22030 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
22031 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
22032 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
22033 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
22034 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
22035 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
22036 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
22037 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
22038 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
22039 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
22040 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
22041 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
22042 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
22043 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
22044 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
22045 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
22046 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
22047 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
22048 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
22049 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
22050 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
22051 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
22052 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
22053 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
22054 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
22055 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
22056 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
22057 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
22058 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
22059 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
22060 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
22061 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
22062 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
22063 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
22064 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
22065 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
22066 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
22067 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
22069 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
22070 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
22071 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
22072 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
22074 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
22075 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
22077 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
22078 to mdll-fil.ad[bs] and mdll-util.ad[bs]
22080 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
22081 from mdllfile.ad[bs] and mdlltool.ad[bs]
22083 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22085 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
22086 lieu of explicit sizeof/sizeof.
22088 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
22090 * misc.c (copy_lang_decl): Remove.
22092 2002-02-27 Zack Weinberg <zack@codesourcery.com>
22094 * misc.c: Delete traditional-mode-related code copied from the
22095 C front end but not used, or used only to permit the compiler
22098 2002-02-07 Richard Henderson <rth@redhat.com>
22100 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
22101 * adaint.h (__gnat_to_gm_time): Update prototype.
22103 2002-01-30 Richard Henderson <rth@redhat.com>
22105 * trans.c (tree_transform) [N_Loop_Statement]: Use
22106 expand_exit_loop_top_cond.
22108 2001-12-23 Richard Henderson <rth@redhat.com>
22110 * utils.c (end_subprog_body): Push GC context around
22111 rest_of_compilation for nested functions.
22113 2001-12-23 Richard Henderson <rth@redhat.com>
22115 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
22117 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
22119 * gnat-style.texi (Declarations and Types): Remove ancient style
22120 rule which was mandated by code generation issues.
22122 * gnat-style.texi (header): Add @dircategory, @direntry.
22123 (title page): Remove date.
22124 (general) Add @./@: where approriate, and two spaces after the
22125 full stop at the end of a sentence. Use @samp markup when
22126 referring concrete lexical entities (keywords, attribute names
22127 etc.), and @syntax for ARM grammar elements. Use @r for English
22128 text in comments. Use @emph for emphasis. Change "if-statements"
22129 etc. to "if statements" (without @samp). Break long lines. Make
22130 casing of section names consistent.
22131 (Identifiers): Use @samp markup for variable names.
22132 (Comments): Use @samp markup for comment characters. Line-end
22133 comments may follow any Ada code, not just statements. Fix
22134 misspelling of "Integer" as "integer".
22135 (Loop statements): Do not use variable name "I", use "J".
22136 (Subprogram Declarations): Document alignment.
22137 (Subprogram Bodies, Block statements): Document empty line before
22140 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
22142 * make.adb (Add_Switch): Make Generic_Position a procedure. The
22143 function approach did not work well because of a side effect (the
22144 function call could reallocate the table which was being indexed
22145 using its result). Fixes ada/4851.
22147 2001-12-19 Robert Dewar <dewar@gnat.com>
22149 * bindgen.adb: Minor reformatting
22151 * cstand.adb: Minor reformatting
22153 * fmap.adb: Minor reformatting
22154 Change name from Add for Add_To_File_Map (Add is much too generic)
22155 Change Path_Name_Of to Mapped_Path_Name
22156 Change File_Name_Of to Mapped_File_Name
22157 Fix copyright dates in header
22160 Change name from Add for Add_To_File_Map (Add is much too generic)
22161 Change Path_Name_Of to Mapped_Path_Name
22162 Change File_Name_Of to Mapped_File_Name
22163 Fix copyright dates in header
22165 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
22166 Add use clause for Fmap.
22168 * make.adb: Minor reformatting
22170 * osint.adb: Minor reformatting. Change of names in Fmap.
22171 Add use clause for Fmap.
22173 * prj-env.adb: Minor reformatting
22175 * prj-env.ads: Minor reformatting
22177 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
22178 error found (there were odd exceptions to this general rule in
22179 -gnatec/-gnatem processing)
22181 2001-12-19 Olivier Hainque <hainque@gnat.com>
22183 * raise.c (__gnat_eh_personality): Exception handling personality
22184 routine for Ada. Still in rough state, inspired from the C++ version
22185 and still containing a bunch of debugging artifacts.
22186 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
22187 inspired from the C++ library.
22189 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
22190 exception handling integration.
22192 2001-12-19 Arnaud Charlet <charlet@gnat.com>
22194 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
22195 (HIE_SOURCES): Add s-secsta.ad{s,b}.
22196 (HIE_OBJS): Add s-fat*.o
22197 (RAVEN_SOURCES): Remove files that are no longer required. Add
22198 interrupt handling files.
22199 (RAVEN_MOD): Removed, no longer needed.
22201 2001-12-19 Robert Dewar <dewar@gnat.com>
22203 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
22204 Add 2001 to copyright date
22206 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
22207 need to force universal inlining for these cases.
22209 2001-12-19 Arnaud Charlet <charlet@gnat.com>
22211 * s-taprob.adb: Minor clean ups so that this unit can be used in
22214 * exp_ch7.adb: Allow use of secondary stack in HI mode.
22215 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
22217 2001-12-19 Vincent Celier <celier@gnat.com>
22219 * prj-tree.ads (Project_Node_Record): Add comments for components
22220 Pkg_Id and Case_Insensitive.
22222 2001-12-19 Pascal Obry <obry@gnat.com>
22224 * g-socket.adb: Minor reformatting. Found while reading code.
22226 2001-12-19 Robert Dewar <dewar@gnat.com>
22228 * prj-tree.ads: Minor reformatting
22230 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
22232 * config-lang.in (diff_excludes): Remove.
22234 2001-12-17 Ed Schonberg <schonber@gnat.com>
22236 * sem_res.adb (Resolve_Selected_Component): do not generate a
22237 discriminant check if the selected component is a component of
22238 the argument of an initialization procedure.
22240 * trans.c (tree_transform, case of arithmetic operators): If result
22241 type is private, the gnu_type is the base type of the full view,
22242 given that the full view itself may be a subtype.
22244 2001-12-17 Robert Dewar <dewar@gnat.com>
22246 * sem_res.adb: Minor reformatting
22248 * trans.c (tree_transform, case N_Real_Literal): Add missing third
22249 parameter in call to Machine (unknown horrible effects from this
22252 * urealp.h: Add definition of Round_Even for call to Machine
22253 Add third parameter for Machine
22255 2001-12-17 Ed Schonberg <schonber@gnat.com>
22257 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
22258 predefined units in No_Run_Time mode.
22260 2001-12-17 Richard Kenner <kenner@gnat.com>
22262 * misc.c (insn-codes.h): Now include.
22264 2001-12-17 Olivier Hainque <hainque@gnat.com>
22266 * a-except.adb: Preparation work for future integration of the GCC 3
22267 exception handling mechanism
22268 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
22269 to factorize previous code sequences and make them externally callable,
22270 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
22271 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
22272 Use the new notification routines.
22274 2001-12-17 Emmanuel Briot <briot@gnat.com>
22276 * prj-tree.ads (First_Choice_Of): Document the when others case
22278 2001-12-17 Arnaud Charlet <charlet@gnat.com>
22280 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
22281 HI-E mode, in order to support Ravenscar profile properly.
22283 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
22284 mode on 32 bits targets.
22286 2001-12-17 Vincent Celier <celier@gnat.com>
22288 * fmap.adb: Initial version.
22290 * fmap.ads: Initial version.
22292 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
22293 If search is successfully done, add to mapping.
22295 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
22298 (Gnatmake): Add new local variable Mapping_File_Name.
22299 Create mapping file when using project file(s).
22300 Delete mapping file before exiting.
22302 * opt.ads (Mapping_File_Name): New variable
22304 * osint.adb (Find_File): Use path name found in mapping, if any.
22306 * prj-env.adb (Create_Mapping_File): New procedure
22308 * prj-env.ads (Create_Mapping_File): New procedure.
22310 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
22313 * usage.adb: Add entry for new switch -gnatem.
22315 * Makefile.in: Add dependencies for fmap.o.
22317 2001-12-17 Ed Schonberg <schonber@gnat.com>
22319 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
22320 is a package instantiation rewritten as a package body.
22321 (Install_Withed_Unit): Undo previous change, now redundant.
22323 2001-12-17 Gary Dismukes <dismukes@gnat.com>
22326 (Compute_Length): Move conversion to Unsigned to callers.
22327 (Get_Max_Size): Convert Len expression to Unsigned after calls to
22328 Compute_Length and Determine_Range.
22329 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
22330 Compute_Length and Determine_Range.
22331 Above changes fix problem with length computation for supernull arrays
22332 where Max (Len, 0) wasn't getting applied due to the Unsigned
22333 conversion used by Compute_Length.
22335 2001-12-17 Arnaud Charlet <charlet@gnat.com>
22338 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
22339 System.Secondary_Stack.
22340 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
22342 Remove unused entity RE_Exception_Data.
22344 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
22346 * rident.ads (No_Secondary_Stack): New restriction.
22348 2001-12-17 Joel Brobecker <brobecke@gnat.com>
22350 * gnat_rm.texi: Fix minor typos. Found while reading the section
22351 regarding "Bit_Order Clauses" that was sent to a customer.
22352 Very interesting documentation!
22354 2001-12-17 Robert Dewar <dewar@gnat.com>
22356 * sem_case.adb (Choice_Image): Avoid creating improper character
22357 literal names by using the routine Set_Character_Literal_Name. This
22358 fixes bombs in certain error message cases.
22360 2001-12-17 Arnaud Charlet <charlet@gnat.com>
22362 * a-reatim.adb: Minor reformatting.
22364 2001-12-17 Ed Schonberg <schonber@gnat.com>
22366 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
22367 case where the formal is an extension of another formal in the current
22368 unit or in a parent generic unit.
22370 2001-12-17 Arnaud Charlet <charlet@gnat.com>
22372 * s-tposen.adb: Update comments. Minor reformatting.
22373 Minor code clean up.
22375 * s-tarest.adb: Update comments. Minor code reorganization.
22377 2001-12-17 Gary Dismukes <dismukes@gnat.com>
22379 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
22382 2001-12-17 Robert Dewar <dewar@gnat.com>
22384 * exp_attr.adb: Minor reformatting
22386 2001-12-17 Ed Schonberg <schonber@gnat.com>
22388 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
22389 derivations nested within a child unit: verify that the parent
22390 type is declared in an outer scope.
22392 2001-12-17 Robert Dewar <dewar@gnat.com>
22394 * sem_ch12.adb: Minor reformatting
22396 2001-12-17 Ed Schonberg <schonber@gnat.com>
22398 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
22399 warning if current unit is a predefined one, from which bodies may
22402 2001-12-17 Robert Dewar <dewar@gnat.com>
22404 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
22405 Fix header format. Add 2001 to copyright date.
22407 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
22408 which caused CE during compilation if checks were enabled.
22410 2001-12-17 Vincent Celier <celier@gnat.com>
22413 (Switches_Of): New function
22414 (Test_If_Relative_Path): New procedure
22415 (Add_Switches): Use new function Switches_Of
22416 (Collect_Arguments_And_Compile): Use new function Switches_Of.
22417 When using a project file, test if there are any relative
22418 search path. Fail if there are any.
22419 (Gnatmake): Only add switches for the primary directory when not using
22420 a project file. When using a project file, change directory to the
22421 object directory of the main project file. When using a project file,
22422 test if there are any relative search path. Fail if there are any.
22423 When using a project file, fail if specified executable is relative
22424 path with directory information, and prepend executable, if not
22425 specified as an absolute path, with the exec directory. Make sure
22426 that only one -o switch is transmitted to the linker.
22428 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
22431 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
22432 when using a non standard naming scheme.
22433 (Check_Ada_Naming_Scheme): Make sure that error messages
22434 do not raise exceptions.
22435 (Is_Illegal_Append): Return True if there is no dot in the suffix.
22436 (Language_Independent_Check): Check the exec directory.
22438 * prj.adb (Project_Empty): Add new component Exec_Directory
22441 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
22442 (Project_Data): Add component Exec_Directory
22444 * snames.adb: Updated to match snames.ads revision 1.215
22446 * snames.ads: Added Exec_Dir
22448 2001-12-17 Robert Dewar <dewar@gnat.com>
22450 * make.adb: Minor reformatting
22452 * prj-nmsc.adb: Minor reformatting
22454 * snames.adb: Updated to match snames.ads
22456 * snames.ads: Alphebetize entries for project file
22458 2001-12-17 Ed Schonberg <schonber@gnat.com>
22460 * trans.c (process_freeze_entity): Do nothing if the entity is a
22461 subprogram that was already elaborated.
22463 2001-12-17 Richard Kenner <kenner@gnat.com>
22465 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
22466 and Esize if object is referenced via pointer.
22468 2001-12-17 Ed Schonberg <schonber@gnat.com>
22470 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
22471 is discrete before analyzing choices.
22473 2001-12-17 Joel Brobecker <brobecke@gnat.com>
22475 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
22476 containing the name of the Ada Main Program. This string is mainly
22477 intended for the debugger.
22478 (Gen_Output_File_C): Do the equivalent change when generating a C file.
22480 2001-12-17 Robert Dewar <dewar@gnat.com>
22482 * ali.adb: Set new Dummy_Entry field in dependency entry
22484 * ali.ads: Add Dummy_Entry field to source dependency table
22486 * bcheck.adb (Check_Consistency): Ignore dummy D lines
22488 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
22490 * lib-writ.ads: Document dummy D lines for missing files.
22492 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
22494 2001-12-17 Robert Dewar <dewar@gnat.com>
22496 * ali.adb: Type reference does not reset current file.
22498 * ali.adb: Recognize and scan renaming reference
22500 * ali.ads: Add spec for storing renaming references.
22502 * lib-xref.ads: Add documentation for handling of renaming references
22504 * lib-xref.adb: Implement output of renaming reference.
22507 (Determine_Range): Document local variables
22508 (Determine_Range): Make sure Hbound is initialized. It looks as though
22509 there could be a real problem here with an uninitialized reference
22510 to Hbound, but no actual example of failure has been found.
22512 2001-12-17 Laurent Pautet <pautet@gnat.com>
22515 Fix comment of Shutdown_Socket and Close_Socket. These functions
22516 should not fail silently because if they are called twice, this
22517 probably means that there is a race condition in the user program.
22518 Anyway, this behaviour is consistent with the rest of this unit.
22519 When an error occurs, an exception is raised with the error message
22520 as exception message.
22522 2001-12-17 Robert Dewar <dewar@gnat.com>
22524 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
22525 that it happens before modification of Sloc values for -gnatD.
22527 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
22528 so that it happens before modification of Sloc values for -gnatD.
22530 * switch.adb: Minor reformatting
22532 2001-12-15 Richard Henderson <rth@redhat.com>
22534 * sem_ch7.adb: Wrap comment.
22536 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
22538 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
22539 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
22540 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
22541 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
22542 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
22543 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
22544 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
22545 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
22546 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
22547 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
22548 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
22549 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
22550 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
22551 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
22552 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
22553 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
22554 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
22555 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
22556 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
22557 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
22558 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
22559 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
22560 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
22561 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
22564 2001-12-14 Vincent Celier <celier@gnat.com>
22566 * osint.adb(Create_Debug_File): When an object file is specified,
22567 put the .dg file in the same directory as the object file.
22569 2001-12-14 Robert Dewar <dewar@gnat.com>
22571 * osint.adb: Minor reformatting
22573 * lib-xref.adb (Output_Instantiation): New procedure to generate
22574 instantiation references.
22576 * lib-xref.ads: Add documentation of handling of generic references.
22578 * ali.adb (Read_Instantiation_Ref): New procedure to read
22579 instantiation references
22581 * ali.ads: Add spec for storing instantiation references
22583 * bindusg.adb: Minor reformatting
22585 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
22587 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
22589 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
22591 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
22595 Add 2001 to copyright date
22596 Add entry for Latin-5 (Cyrillic ISO-8859-5)
22598 2001-12-14 Matt Gingell <gingell@gnat.com>
22600 * adaint.c: mktemp is a macro on Lynx and can not be used as an
22603 2001-12-14 Richard Kenner <kenner@gnat.com>
22605 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
22606 if operand is CONSTRUCTOR.
22608 2001-12-14 Ed Schonberg <schonber@gnat.com>
22610 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
22611 before emiting check on right-hand side, so that exception information
22614 2001-12-14 Richard Kenner <kenner@gnat.com>
22616 * utils.c (create_var_decl): Throw away initializing expression
22617 if just annotating types and non-constant.
22619 2001-12-14 Vincent Celier <celier@gnat.com>
22621 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
22624 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
22626 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
22628 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
22630 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
22632 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
22634 * ChangeLog: Remove piece of diff output.
22636 2001-12-14 Geert Bosch <bosch@gnat.com>
22638 * config-lang.in: Update copyright notice
22640 * layout.adb: Remove commented out code.
22642 * mdllfile.ads: Update copyright notice. Fix header format.
22644 * sem_case.ads: Likewise.
22646 * sem_ch3.adb: Minor reformatting.
22648 2001-12-12 Geert Bosch <bosch@gnat.com>
22650 * freeze.ads: Update copyright date.
22652 * g-comlin.ads: Minor reformatting.
22654 * gnat-style.texi: Fix typo.
22656 2001-12-12 Geert Bosch <bosch@gnat.com>
22658 * einfo.h: Regenerate.
22660 2001-12-12 Ed Schonberg <schonber@gnat.com>
22662 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
22663 on known node types, rather than untyped fields. Further cleanups.
22665 2001-12-12 Robert Dewar <dewar@gnat.com>
22668 (Save_Entity_Descendant): Minor comment update.
22669 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
22670 of an N_Attribute_Reference node. As per note below, this does not
22671 eliminate need for Associated_Node in attribute ref nodes.
22672 (Associated_Node): Documentation explicitly mentions attribute
22673 reference nodes, since this field is used in such nodes.
22675 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
22677 2001-12-12 Robert Dewar <dewar@gnat.com>
22679 * s-stalib.adb: Add more comments on with statements being needed
22681 * par-ch12.adb: Minor reformatting
22683 * prj-dect.ads: Fix copyright header
22685 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
22686 inputs fit in 32 bits, but the result still overflows.
22688 * s-fatgen.ads: Minor comment improvement
22690 2001-12-12 Ed Schonberg <schonber@gnat.com>
22692 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
22693 formal derived type, look for an inherited component from the full
22694 view of the parent, if any.
22696 2001-12-12 Robert Dewar <dewar@gnat.com>
22698 * checks.ads (Apply_Alignment_Check): New procedure.
22700 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
22701 ensure that the alignment of objects with address clauses is
22702 appropriate, and raise PE if not.
22704 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
22705 Exp_Pakd.Known_Aligned_Enough
22707 * mdllfile.ads: Minor reformatting
22709 * mlib-fil.ads: Minor reformatting
22711 2001-12-12 Ed Schonberg <schonber@gnat.com>
22713 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
22714 fix to any component reference if enclosing record has non-standard
22717 2001-12-12 Vincent Celier <celier@gnat.com>
22719 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
22722 2001-12-12 Ed Schonberg <schonber@gnat.com>
22724 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
22727 2001-12-12 Robert Dewar <dewar@gnat.com>
22729 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
22731 2001-12-12 Emmanuel Briot <briot@gnat.com>
22733 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
22734 and it adds dependencies to system.io.
22736 2001-12-12 Pascal Obry <obry@gnat.com>
22738 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
22741 2001-12-11 Ed Schonberg <schonber@gnat.com>
22743 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
22744 that is the parent of other generics, the instance body replaces the
22745 instance node. Retrieve the instance of the spec, which is the one
22746 that is visible in clients and within the body.
22748 2001-12-11 Vincent Celier <celier@gnat.com>
22750 * gnatmain.adb: Initial version.
22752 * gnatmain.ads: Initial version.
22754 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
22756 * snames.adb: Updated to match snames.ads.
22758 * snames.ads: Added Gnatstub.
22760 2001-12-11 Vincent Celier <celier@gnat.com>
22762 * prj-attr.adb (Initialization_Data): Change name from
22763 Initialisation_Data.
22765 2001-12-11 Emmanuel Briot <briot@gnat.com>
22767 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
22768 + and * applied to backslashed expressions like \r.
22770 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
22772 * g-os_lib.ads: String_List type added, Argument_List type is now
22773 subtype of String_List.
22775 2001-12-11 Robert Dewar <dewar@gnat.com>
22777 * g-os_lib.ads: Change copyright to FSF
22778 Add comments for String_List type
22780 2001-12-11 Vincent Celier <celier@gnat.com>
22782 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
22783 string to the buffer).
22785 2001-12-11 Ed Schonberg <schonber@gnat.com>
22787 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
22790 * sem_attr.adb: Simplify previous fix for Address.
22791 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
22792 to avoid anomalies where the bound of the type appears to raise
22795 2001-12-11 Robert Dewar <dewar@gnat.com>
22797 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
22800 2001-12-11 Ed Schonberg <schonber@gnat.com>
22802 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
22803 renamed unit before checking for recursive instantiations.
22805 2001-12-11 Emmanuel Briot <briot@gnat.com>
22807 * prj.ads: Add comments for some of the fields.
22809 2001-12-11 Robert Dewar <dewar@gnat.com>
22811 * lib-xref.adb (Output_Refs): Don't output type references outside
22812 the main unit if they are not otherwise referenced.
22814 2001-12-11 Ed Schonberg <schonber@gnat.com>
22816 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
22817 code and diagnose additional illegal uses
22819 * sem_util.adb (Is_Object_Reference): An indexed component is an
22820 object only if the prefix is.
22822 2001-12-11 Vincent Celier <celier@gnat.com>
22824 * g-diopit.adb: Initial version.
22826 * g-diopit.ads: Initial version.
22829 (Expand_Path): Avoid use of Unbounded_String
22830 (Find, Wildcard_Iterator): Moved to child package Iteration
22832 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
22834 2001-12-11 Robert Dewar <dewar@gnat.com>
22836 * sem_attr.adb: Minor reformatting
22838 2001-12-11 Ed Schonberg <schonber@gnat.com>
22840 * sem_ch3.adb: Clarify some ???.
22842 2001-12-11 Robert Dewar <dewar@gnat.com>
22844 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
22845 Exp_Pakd.Known_Aligned_Enough
22847 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
22848 version is moved to Exp_Ch13.
22850 2001-12-11 Robert Dewar <dewar@gnat.com>
22852 * einfo.ads: Minor reformatting
22854 * exp_ch5.adb: Add comment for previous.change
22856 * ali.adb: New interface for extended typeref stuff.
22858 * ali.ads: New interface for typeref stuff.
22860 * checks.adb (Apply_Alignment_Check): New procedure.
22862 * debug.adb: Add -gnatdM for modified ALI output
22864 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
22866 * lib-xref.adb: Extend generation of <..> notation to cover
22867 subtype/object types. Note that this is a complete rewrite,
22868 getting rid of the very nasty quadratic algorithm previously
22869 used for derived type output.
22871 * lib-xref.ads: Extend description of <..> notation to cover
22872 subtype/object types. Uses {..} for these other cases.
22873 Also use (..) for pointer types.
22875 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
22877 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
22878 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
22880 2001-12-11 Vincent Celier <celier@gnat.com>
22883 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
22884 Changed /BIND_ONLY to /ACTIONS=BIND
22885 Changed /LINK_ONLY to /ACTIONS=LINK
22887 2001-12-11 Ed Schonberg <schonber@gnat.com>
22889 * sem_ch8.adb (Find_Selected_Component): improved search for a
22890 candidate package in case of error.
22892 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
22893 chain back on scope stack before reinstalling use clauses.
22895 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
22896 is enabled, do not kill the code for the condition, to preserve
22899 2001-12-11 Robert Dewar <dewar@gnat.com>
22901 * checks.adb (Insert_Valid_Check): Apply validity check to expression
22902 of conversion, not to result of conversion.
22904 2001-12-11 Ed Schonberg <schonber@gnat.com>
22906 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
22907 before freezing parent. If the declarations are mutually recursive,
22908 an access to the current record type may be frozen before the
22909 derivation is complete.
22911 2001-12-05 Vincent Celier <celier@gnat.com>
22913 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
22914 -c /COMPILE_ONLY, -l /LINK_ONLY
22917 (Bind_Only): New Flag
22918 (Link_Only): New flag
22920 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
22923 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
22926 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
22927 (Gnatmake): Set the step flags. Only perform a step if the
22928 corresponding step flag is True.
22929 (Scan_Make_Arg): Reset the bind and link step flags when -u
22930 or -gnatc has been specified.
22932 2001-12-05 Ed Schonberg <schonber@gnat.com>
22934 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
22935 get bounds from right operand.
22937 * sem_eval.adb: Minor reformatting
22939 * exp_util.adb (Make_Literal_Range): use bound of literal rather
22940 than Index'First, its lower bound may be different from 1.
22942 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
22945 2001-12-05 Vincent Celier <celier@gnat.com>
22947 * prj-nmsc.adb Minor reformatting
22949 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
22950 set and libraries are not supported.
22952 2001-12-05 Ed Schonberg <schonber@gnat.com>
22954 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
22955 private view explicitly, so the back-end can treat as a global
22958 2001-12-05 Ed Schonberg <schonber@gnat.com>
22960 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
22961 unit, always replace instance node with new body, for ASIS use.
22963 2001-12-05 Vincent Celier <celier@gnat.com>
22965 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
22966 libraries are not supported and both attributes Library_Name and
22967 Library_Dir are specified.
22969 * prj-proc.adb (Expression): Set location of Result to location of
22972 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
22973 (prj-nmsc is now importing MLib.Tgt)
22975 * prj-proc.adb: Put the change indicated above that was forgotten.
22977 2001-12-05 Robert Dewar <dewar@gnat.com>
22979 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
22981 2001-12-05 Ed Schonberg <schonber@gnat.com>
22983 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
22984 constraint, introduce explicit subtype declaration and derive from it.
22986 * sem_ch3.adb: Minor reformatting
22988 2001-12-05 Robert Dewar <dewar@gnat.com>
22990 * checks.adb (Determine_Range): Increase cache size for checks.
22993 * exp_ch6.adb: Minor reformatting
22994 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
22995 a parameter whose root type is System.Address, since treating such
22996 subprograms as pure in the code generator is almost surely a mistake
22997 that will lead to unexpected results.
22999 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
23000 change handling of conversions.
23002 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
23004 2001-12-05 Ed Schonberg <schonber@gnat.com>
23006 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
23007 aggregate with static wrong size, attach generated Raise node to
23010 2001-12-05 Robert Dewar <dewar@gnat.com>
23012 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
23013 Fixes compilation abandoned bomb in B24009B.
23015 2001-12-05 Ed Schonberg <schonber@gnat.com>
23018 Document use of Associated_Node on Selected_Components.
23019 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
23020 to clarify use of untyped descendant fields.
23022 2001-12-05 Robert Dewar <dewar@gnat.com>
23024 * prj-dect.ads: Add ??? comment
23025 Add 2001 to copyright notice (was not done in after all)
23027 * prj-part.adb: Minor reformatting. Reword one awkward error message.
23029 * prj.ads: Minor reformatting throughout, and add some ??? comments
23031 * snames.ads: Minor reformatting
23033 2001-12-05 Geert Bosch <bosch@gnat.com>
23035 * snames.adb: Autoupdate
23037 2001-12-05 Vincent Celier <celier@gnat.com>
23039 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
23041 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
23043 * prj-env.adb: Minor comment changes (modifying -> extends).
23045 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
23047 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
23050 * prj.adb (Initialize): Change Modifying to Extends.
23052 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
23054 * prj.ads: Minor comment change (Modifying -> extending).
23056 * snames.ads: Change modifying to extends.
23058 2001-12-05 Robert Dewar <dewar@gnat.com>
23060 * sem_warn.adb: Remove stuff for conditionals, we are not going to
23063 * sem_warn.ads: Remove stuff for conditionals, we are not going to
23064 do this after all. Add 2001 to copyright notice
23066 2001-12-04 Geert Bosch <bosch@gnat.com>
23068 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
23070 2001-12-04 Robert Dewar <dewar@gnat.com>
23072 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
23073 location if we already have errors. Stops some cases of cascaded
23076 * errout.adb: Improve comment.
23078 2001-12-04 Robert Dewar <dewar@gnat.com>
23081 (Analyze_Formal_Type_Definition): Defend against Error.
23082 (Analyze_Formal_Subprogram): Defend against Error.
23084 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
23085 remove following semicolon if present. Removes cascaded error.
23087 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
23090 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
23091 exceptions equals 0.
23092 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
23093 Fixes PIWG E tests (which have to be run with -gnatL).
23095 2001-12-04 Robert Dewar <dewar@gnat.com>
23097 * einfo.ads: Minor reformatting
23099 2001-12-04 Ed Schonberg <schonber@gnat.com>
23101 * einfo.ads: Block_Node points to the identifier of the block, not to
23102 the block node itself, to preserve the link when the block is
23103 rewritten, e.g. within an if-statement with a static condition.
23105 * inline.adb (Cleanup_Scopes): recover block statement from block
23106 entity using new meaning of Block_Node.
23108 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
23109 identifier of block node, rather than to node itself.
23111 2001-12-04 Gary Dismukes <dismukes@gnat.com>
23114 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
23115 (Discrimify): Go back to setting the Etypes of the selected component
23116 because the Vname component does not exist at this point and will
23117 fail name resolution. Also set Analyzed.
23118 Remove with and use of Sem_Res.
23120 2001-12-04 Arnaud Charlet <charlet@gnat.com>
23122 * Makefile.in: (HIE_SOURCES): add s-fat*.
23124 2001-12-04 Robert Dewar <dewar@gnat.com>
23127 (Compile_Time_Known_Attribute): New procedure.
23128 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
23129 proper range check.
23131 2001-12-04 Ed Schonberg <schonber@gnat.com>
23133 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
23134 processing discriminants to diagnose illegal default values.
23136 2001-12-04 Ed Schonberg <schonber@gnat.com>
23138 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
23139 access discriminant within a type extension that constrains its
23140 parent discriminants.
23142 2001-12-04 Ed Schonberg <schonber@gnat.com>
23144 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
23145 is malformed, use instance of Any_Id to allow analysis to proceed.
23147 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
23148 type definition is illegal.
23149 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
23152 2001-12-04 Ed Schonberg <schonber@gnat.com>
23154 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
23157 2001-12-04 Robert Dewar <dewar@gnat.com>
23159 * errout.adb: Minor reformatting
23161 2001-12-04 Robert Dewar <dewar@gnat.com>
23163 * exp_util.adb: Minor reformatting from last change
23165 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
23166 which is a rewriting of an expression, traverse the original
23167 expression to remove warnings that may have been posted on it.
23169 2001-12-04 Ed Schonberg <schonber@gnat.com>
23171 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
23172 record that has other packed components.
23174 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
23176 * adaint.c: Minor cleanups.
23178 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
23180 * adaint.c: Do not use utime.h on vxworks.
23182 2001-12-04 Arnaud Charlet <charlet@gnat.com>
23184 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
23185 more confusion than it solves.
23187 2001-12-04 Geert bosch <bosch@gnat.com>
23189 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
23191 2001-12-04 Geert Bosch <bosch@gnat.com>
23193 * Makefile.in (update-sources): New target.
23194 For use by gcc_release script.
23196 2001-12-04 Ed Schonberg <schonber@gnat.com>
23198 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
23199 a configuration pragma, it is now legal wherever a pragma can appear.
23201 2001-12-04 Zack Weinberg <zack@codesourcery.com>
23203 * Makefile.in: Don't set ALL. Delete @cross_defines@,
23204 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
23205 is now @CROSS@ -DIN_GCC; update comment.
23207 2001-12-04 Robert Dewar <dewar@gnat.com>
23209 * einfo.adb (Has_Pragma_Pure_Function): New flag.
23210 Fix problem that stopped ceinfo from working
23212 * einfo.ads (Has_Pragma_Pure_Function): New flag.
23214 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
23216 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
23219 (File_Time_Stamp): New procedure.
23220 (Preserve_Mode): New boolean.
23221 (Write_Unit): Pass time stamp.
23222 Implement -p switch (preserve time stamps).
23224 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
23226 * gnatchop.adb: Do usage info for -p switch
23228 * adaint.h (__gnat_set_file_time_name): New function
23230 * adaint.c (__gnat_set_file_time_name): Implement
23232 * adaint.h: Fix typo
23234 2001-12-03 Robert Dewar <dewar@gnat.com>
23236 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
23237 have Associated_Node.
23239 2001-12-03 Robert Dewar <dewar@gnat.com>
23241 * prj-proc.adb: Minor reformatting
23243 * make.adb: Minor reformatting
23245 2001-12-03 Geert Bosch <bosch@gnat.com>
23247 * make.adb: Minor reformatting.
23249 2001-12-03 Robert Dewar <dewar@gnat.com>
23251 * sem_ch12.adb: Minor reformatting
23253 2001-12-03 Ed Schonberg <schonber@gnat.com>
23255 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
23256 push Standard on the stack before analyzing the instance body,
23257 in order to have a clean visibility environment.
23259 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
23261 2001-12-03 Ed Schonberg <schonber@gnat.com>
23263 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
23264 instantiation of a body that contains an inlined body.
23266 2001-12-03 Ed Schonberg <schonber@gnat.com>
23269 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
23270 to prevent freezing within formal packages.
23271 (Freeze_Subprogram_Body): If body comes from another instance that
23272 appeared before its own body, place freeze node at end of current
23273 declarative part, to prevent a back-end crash.
23274 (Inline_Instance_Body): Handle properly a package instance within
23275 a subprogram instance that is a child unit.
23277 2001-12-01 Graham Stott <grahams@redhat.com>
23279 * Makefile.in (misc.o): Add missing $(srcdir) prefix
23280 and add optabs.h dependency.
23282 * misc.c: Include optabs.h
23283 (gnat_tree_code_type): Make static and const.
23284 (gnat_tree_code_length): Likewise.
23285 (gnat_tree_code_name): Likewise.
23286 (update_setjmp_buf): Obtain operands mode from insn_data.
23288 2001-11-29 Richard Henderson <rth@redhat.com>
23290 * init.c: Remove obsolete dwarf2 frame.h section.
23292 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
23294 * Make-lang.in (ada.generated-manpages): New dummy target.
23296 2001-11-29 Ed Schonberg <schonber@gnat.com>
23298 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
23299 into Command, an array conversion is illegal here. Uncovered by
23302 2001-11-28 Geert Bosch <bosch@gnat.com>
23304 * init.c: Minor whitespace changes.
23306 2001-11-28 Doug Rupp <rupp@gnat.com>
23308 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
23311 2001-11-28 Zack Weinberg <zack@codesourcery.com>
23313 * misc.c (gnat_expand_constant): Move declaration above
23314 definition of lang_hooks.
23315 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
23316 (gnat_init): lang_expand_constant no longer exists.
23318 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
23319 always have vprintf.
23320 (gnat_init): Always call set_internal_error_function.
23322 2001-11-27 Andreas Jaeger <aj@suse.de>
23324 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
23326 2001-11-27 Laurent Guerby <guerby@acm.org>
23328 * Makefile.in: Regenerate Ada dependencies.
23330 2001-11-26 Richard Henderson <rth@redhat.com>
23332 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
23333 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
23334 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
23336 2001-11-25 Laurent Guerby <guerby@acm.org>
23338 * sysdep.c (rts_get_*): Fix style.
23340 2001-11-19 Laurent Guerby <guerby@acm.org>
23342 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
23343 since it is of no apparent use and cause warnings.
23345 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
23347 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
23349 (gnat_init): Don't return NULL.
23350 (finish_parse): Remove.
23352 2001-11-17 Laurent Guerby <guerby@acm.org>
23354 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
23355 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
23356 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
23357 * lang-spec.h: Add missing struct field to silence warnings.
23358 * sysdep.c (rts_get_*): Provide K&R prototype.
23359 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
23360 * traceback.c (Unlock_Task, Lock_Task): Likewise.
23361 * tracebak.c (__gnat_backtrace): Remove unused variable.
23362 * utils.c (end_subprog_body): Move to K&R style.
23364 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23366 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
23368 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
23370 * misc.c (gnat_init): Change prototype. Include the
23371 functionality of the old init_parse and init_decl_processing.
23372 (gnat_init_decl_processing): New prototype.
23373 (init_parse): Remove.
23374 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
23376 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
23378 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
23379 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
23380 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
23381 set_yydebug): Remove.
23383 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
23385 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
23386 (struct lang_hooks): Constify.
23387 (language_string, lang_identify): Remove.
23388 * utils.c (init_decl_processing): Update.
23390 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
23392 * misc.c: Include langhooks-def.h.
23393 * Makefile.in: Update.
23395 2001-10-30 Robert Dewar <dewar@gnat.com>
23398 (Check_Identifier): Rewrite circuit to be compatible with use of letters
23399 in the upper half of ASCII.
23400 (Check_Identifier): Minor reformatting
23402 2001-10-30 Geert Bosch <bosch@gnat.com>
23404 * (Associated_Node, Set_Associated_Node): Do not check for
23407 2001-10-30 Robert Dewar <dewar@gnat.com>
23409 * a-reatim.ads: Minor reformatting
23411 2001-10-30 Robert Dewar <dewar@gnat.com>
23413 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
23414 undocumented declarations.
23416 2001-10-30 Pascal Obry <obry@gnat.com>
23418 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
23419 to the binder and linker.
23422 * mdll.ads: Fix layout. Update copyright notice.
23424 * mdll.adb: Fix layout. Update copyright notice.
23426 2001-10-30 Robert Dewar <dewar@gnat.com>
23428 * usage.adb: Minor fix to output for -gnaty.
23430 2001-10-30 Ed Schonberg <schonber@gnat.com>
23432 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
23433 to accommodate all its possible values.
23435 * a-reatim.adb (Split): Special-case handling of Time_Span_First
23436 and of small absolute values of T.
23438 2001-10-30 Richard Kenner <kenner@gnat.com>
23440 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
23441 set_mem_attributes since not needed and wrong if RESULT if a REG;
23442 fixes ACATS failures.
23444 2001-10-30 Geert Bosch <bosch@gnat.com>
23446 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
23447 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
23449 2001-10-30 Robert Dewar <dewar@gnat.com>
23451 * bindusg.adb: Undocument -f switch.
23453 * gnatcmd.adb: Remove /FULL_ELABORATION.
23455 * opt.ads (Force_RM_Elaboration_Order): Document that this is
23458 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
23460 * gnatbind.adb: Minor update of warning msg.
23462 2001-10-30 Vincent Celier <celier@gnat.com>
23464 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
23465 for project file switches (-P (/PROJECT_FILE=),
23466 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
23469 2001-10-30 Geert Bosch <bosch@gnat.com>
23471 * decl.c: Minor whitespace fixes.
23473 2001-10-30 Richard Kenner <kenner@gnat.com>
23475 * utils2.c (build_allocator): Test for SIZE overflow in array case too
23477 2001-10-30 Geert Bosch <bosch@gnat.com>
23479 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
23480 Found due to GCC 3.0 warning of using uninitialized value.
23483 (Get_Max_Size): Use variant record for tracking value/expression.
23484 Makes logic clearer and prevents warnings for uninitialized variables.
23485 (Layout_Array_Type): Use variant record for tracking value/expression.
23486 Makes logic clearer and prevents warnings for uninitialized variables.
23488 2001-10-30 Robert Dewar <dewar@gnat.com>
23490 * lib.adb: Minor reformatting
23492 * s-taprop.ads: Minor reformatting
23494 2001-10-29 Laurent Guerby <guerby@acm.org>
23497 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
23499 (_gnat_error_handler): Make MSG const.
23501 2001-10-29 Richard Kenner <kenner@gnat.com>
23503 * sysdep.c: Fix localtime_r problem on LynxOS.
23504 Also remove #elif to avoid warnings.
23506 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
23509 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
23511 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
23513 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
23514 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
23515 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
23516 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
23517 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
23518 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
23519 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
23520 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
23521 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
23522 types.ads, urealp.adb: Fix spelling errors.
23524 2001-10-27 Laurent Guerby <guerby@acm.org>
23526 * trans.c (gigi): Fix non determinism leading to bootstrap
23527 comparison failures for debugging information.
23529 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
23531 * gnat_rm.texi: Use @./@: where appropriate.
23533 2001-10-26 Robert Dewar <dewar@gnat.com>
23535 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
23537 2001-10-26 Richard Kenner <kenner@gnat.com>
23539 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
23541 2001-10-26 Richard Kenner <kenner@gnat.com>
23543 * decl.c (validate_size): Modify message for bad size to avoid
23544 implication that compiler is modifying the size.
23546 2001-10-26 Robert Dewar <dewar@gnat.com>
23548 * prj-util.adb: Minor reformatting. Fix bad header format.
23550 2001-10-26 Robert Dewar <dewar@gnat.com>
23552 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
23554 * sinfo.ads: Clarify use of Associated_Node (documentation only).
23556 * sem_ch12.adb: Change Node4 to Associated_Node. Change
23557 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
23558 much more narrowly in places where needed. These are cleanups.
23560 2001-10-26 Joel Brobecker <brobecke@gnat.com>
23562 * 5zosinte.ads (null_pthread): new constant.
23565 (Initialize_TCB): Initialize thread ID to null, to be able to verify
23566 later that this field has been set.
23567 (Finalize_TCB): ditto.
23568 (Suspend_Task): Verify that the thread ID is not null before using it.
23569 (Resume_Task): ditto.
23572 (Resume_All_Tasks): Lock the tasks list before using it.
23573 (Suspend_All_Tasks): ditto.
23575 2001-10-26 Richard Kenner <kenner@gnat.com>
23577 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
23578 Make constant variant of designated type for Is_Access_Constant.
23579 Call update_pointer_to with main variant.
23581 * trans.c (process_freeze_entity, process_type):
23582 Call update_pointer_to on main variant.
23584 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
23585 If main variant, update all other variants.
23587 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
23590 2001-10-26 Robert Dewar <dewar@gnat.com>
23592 * prj-util.adb: Minor reformatting
23594 2001-10-26 Robert Dewar <dewar@gnat.com>
23596 * prj-util.adb: Minor reformatting
23598 2001-10-26 Robert Dewar <dewar@gnat.com>
23600 * prj-attr.adb: Minor reformatting throughout
23602 2001-10-26 Robert Dewar <dewar@gnat.com>
23604 * prj-attr.ads: Minor reformatting
23605 Add ??? comment (this whole spec has almost no comments)
23607 2001-10-26 Vincent Celier <celier@gnat.com>
23609 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
23610 ("//") that precede the drive letter on Interix.
23612 2001-10-26 Geert Bosch <bosch@gnat.com>
23614 * gnat_rm.texi: Add GNAT Reference Manual.
23616 2001-10-25 Robert Dewar <dewar@gnat.com>
23618 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
23619 is Error. Similar change for other renaming cases.
23621 2001-10-25 Robert Dewar <dewar@gnat.com>
23623 * s-atacco.ads: Add pragma Inline_Always for functions.
23624 Fix header format. Add copyright 2001
23626 2001-10-25 Ed Schonberg <schonber@gnat.com>
23628 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
23629 return Error rather than Empty so that analysis can proceed.
23631 2001-10-25 Ed Schonberg <schonber@gnat.com>
23633 * sem_util.adb (Enter_Name): better handling of cascaded error
23634 messages when a unit appears in its own context.
23636 2001-10-25 Ed Schonberg <schonber@gnat.com>
23638 * sem_util.adb (Defining_Entity): in case of error, attach created
23639 entity to specification, so that semantic analysis can proceed.
23641 2001-10-25 Robert Dewar <dewar@gnat.com>
23644 (Defining_Entity): Deal with Error.
23645 (Process_End_Label): Deal with bad end label for.
23647 2001-10-25 Ed Schonberg <schonber@gnat.com>
23649 * sem_elab.adb (Check_A_Call): refine message when call is in an
23650 instance but callee is not declared in the generic unit.
23652 2001-10-25 Ed Schonberg <schonber@gnat.com>
23654 * sem_elab.adb (Check_A_Call): check for renaming before finding the
23655 enclosing unit, which may already be different from the calling unit.
23657 2001-10-25 Geert Bosch <bosch@gnat.com>
23659 * 4gintnam.ads: fix header format.
23661 2001-10-25 Ed Schonberg <schonber@gnat.com>
23663 * sem_res.adb (Resolve_Call): if the call is actually an indexing
23664 operation on the result of a parameterless call, perform elaboration
23665 check after the node has been properly rewritten.
23667 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
23668 inlined within the generic tree, the defining identifier is not a
23671 2001-10-25 Ed Schonberg <schonber@gnat.com>
23673 * sem_res.adb (Resolve): special-case resolution of Null in an
23674 instance or an inlined body to avoid view conflicts.
23676 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
23677 compatibility by retrieving the access type of the generic copy.
23679 2001-10-25 Robert Dewar <dewar@gnat.com>
23682 (Analyze_Number_Declaration): Handle error expression.
23683 (Signed_Integer_Type_Declaration): Handle error bound.
23684 (Analyze_Subtype_Indication): Handle error range.
23686 * sem_util.adb (Get_Index_Bounds): Check for Error.
23688 2001-10-25 Robert Dewar <dewar@gnat.com>
23690 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
23691 in no run time mode.
23693 2001-10-25 Pascal Obry <obry@gnat.com>
23695 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
23696 mode case for ALLOC case.
23698 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
23699 all platforms. Improvement of last change.
23701 2001-10-25 Robert Dewar <dewar@gnat.com>
23703 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
23705 2001-10-25 Geert Bosch <bosch@gnat.com>
23707 * osint.adb (Is_Relative): Remove duplicate.
23709 2001-10-25 Pascal Obry <obry@gnat.com>
23711 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
23712 pathnames in UNIX and DOS style with drive letter.
23713 (Is_Relative): new routine.
23715 * osint.adb: Minor reformatting
23717 * osint.adb (Is_Relative): implementation using
23718 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
23720 2001-10-25 Pascal Obry <obry@gnat.com>
23722 * g-dirope.adb (Basename): correctly compute offset between the
23723 original Path and the translated one.
23725 * g-dirope.adb: (Base_Name): add some comments.
23727 2001-10-25 Robert Dewar <dewar@gnat.com>
23729 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
23730 in HIE mode, avoids compilation abandoned message
23732 * exp_imgv.adb: Correct typo in previous change
23734 * exp_imgv.adb: Correct typo in previous change (not my day!)
23736 2001-10-25 Robert Dewar <dewar@gnat.com>
23738 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
23740 2001-10-25 Pascal Obry <obry@gnat.com>
23742 * g-awk.ads: Move all pragma inlines next to the routine
23743 declarations. This is more uniform with other GNAT spec.
23745 2001-10-22 Geert Bosch <bosch@gnat.com>
23747 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
23749 2001-10-19 Geert Bosch <bosch@gnat.com>
23751 * Makefile.in (tools, gnattools): Remove gnatmem.
23753 2001-10-17 Richard Henderson <rth@redhat.com>
23755 * Makefile.in (misc.o): Depend on langhooks.h.
23756 * misc.c: Include it.
23757 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
23758 (LANG_HOOKS_DECODE_OPTION): New.
23759 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
23761 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
23763 * trans.c (tree_transform): Adjust to recent change in
23764 expand_asm_operands to implement named asm operands.
23766 2001-10-11 Ed Schonberg <schonber@gnat.com>
23768 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
23769 renaming of discriminant for mutable record type.
23771 2001-10-11 Robert Dewar <dewar@gnat.com>
23773 * validsw.adb: Properly save -gnatVn status.
23775 2001-10-11 Robert Dewar <dewar@gnat.com>
23777 * usage.adb: Add lines for V switch.
23779 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
23780 (/VALIDITY_CHECKING).
23782 2001-10-11 Ed Schonberg <schonber@gnat.com>
23784 * sem_type.adb (Add_One_Interp): an operator for a type declared in
23785 an extension of System is known to be visible.
23787 2001-10-11 Ed Schonberg <schonber@gnat.com>
23789 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
23790 properly. Fixes regression on ACATS C34005G.
23792 2001-10-11 Robert Dewar <dewar@gnat.com>
23794 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
23795 loop in generic instance, since this is likely not very useful.
23797 2001-10-11 Robert Dewar <dewar@gnat.com>
23799 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
23800 the error message for high integrity mode.
23802 * rtsfind.adb (RTE): Give message if we try to find an entity that
23803 is not available in high integrity mode.
23806 (OK_To_Use_In_HIE_Mode): New array.
23807 (RTE): May return Empty in high integrity mode.
23809 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
23810 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
23812 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
23813 unit if not inlined always and in no runtime mode. Fixes problem
23814 caused by new Rtsfind changes.
23816 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
23819 * rtsfind.adb (RTE): Make sure we do not try to load unit after
23820 giving message for entity not available in high integrity mode.
23822 2001-10-11 Pascal Obry <obry@gnat.com>
23824 * impunit.adb: Add GNAT.CRC32.
23826 2001-10-11 Ed Schonberg <schonber@gnat.com>
23828 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
23829 properly the case where one universal operand in a non-static
23830 exponentiation of a real literal.
23832 2001-10-11 Ed Schonberg <schonber@gnat.com>
23834 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
23835 clause, return the gobal finalization list, for lack of anthing else.
23837 2001-10-11 Ed Schonberg <schonber@gnat.com>
23839 * exp_ch7.adb (Make_Transient_Block): if statement is within
23840 exception handler, always use new transient scope to place Clean
23843 2001-10-11 Pascal Obry <obry@gnat.com>
23846 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
23847 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
23848 (GNATLS_RTL_OBJS): add g-crc32.o
23849 (GNATMAKE_RTL_OBJS): add g-crc32.o
23852 (CRC_Match): new function.
23853 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
23854 instead of the previous simple checksum algorithm.
23855 (Time_Stamp_Mismatch): use CRC_Match for comparison.
23856 (Set_Source_Table): idem.
23859 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
23860 instead of simple checksum.
23861 (CRC_Match): new function.
23862 (CRC_Error): new constant.
23864 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
23865 a CRC now and not a simple checksum. A CRC uses lower-case hex
23866 letters, fixes ambiguity in parsing.
23868 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
23869 is what this variable will store.
23871 * bcheck.adb: Change reference to chechsum in comments by CRC.
23872 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
23873 rename All_Checksum_Match to All_CRC_Match. Change due to API
23874 renaming since now GNAT does not use a simple checksum but a
23875 CRC using GNAT.CRC32.
23877 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
23878 now and not anymore a simple checksum.
23880 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
23883 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
23886 (Restore_Scan_State): rename Checksum to CRC.
23887 (Save_Scan_State): idem.
23891 (Checksum): rename to CRC.
23892 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
23894 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
23895 GNAT.CRC32). Update copyright notice.
23897 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
23898 GNAT.CRC32). Update copyright notice.
23901 (Accumulate_Checksum): removed.
23902 (Update): new procedure. Add a wide-character into the CRC.
23905 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
23906 (Load_File): fix initialization of S (change Source_Checksum to
23909 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
23910 Source_CRC in S initialization.
23912 * sinput.adb (Source_Checksum): renamed to Source_CRC.
23914 * sinput.ads (Source_Checksum): renamed to Source_CRC.
23915 Update comments for the CRC.
23917 * types.adb (Hex): Use lowercase for the letter part.
23919 * types.ads (Get_Hex_String): Returns the hexadecimal representation
23920 for a word. This is currently used only for CRC. In previous version,
23921 the checksum was using a representation with all letter being
23922 upper-case. With the new implementation (using CRC) we do not remove
23923 the 32th bit of the CRC, so we can have an upper-case starting letter
23924 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
23925 It is ambigous since the CRC was optional and could be followed by
23926 options like EB, EE. So now this routines uses lower-case letter for
23927 the hexadecimal representation. Strange enough only lower case letters
23928 where checked in Scan_ALI (even if this was not a possible case).
23930 * gnatvsn.ads (Library_Version): changed to 3.15a.
23932 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
23935 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
23938 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
23939 Add 2001 to copyright notice
23940 (Accumulate_Checksum): Modify to use System.CRC32.
23942 * ali-util.ads: Redo changes of previous revision to continue to use
23943 the word Checksum. Add 2001 to copyright notice.
23945 * ali.adb: Undo some of previous changes, not needed.
23946 Keep the change for lower case letters in the checksum.
23948 * ali.ads: Undo previous change not needed.
23950 * bcheck.adb: Undo most of previous change, not needed.
23951 But do use Checksums_Match for checksum comparison.
23953 * gnatls.adb: Undo most of previous change, not needed.
23954 But do use Checksums_Match for comparing checksums.
23956 * lib-load.adb: Undo previous change, not needed.
23958 * lib-writ.adb: Undo previous change, not needed.
23960 * lib-writ.ads: Document that checksums use lower case,
23961 not upper case letters.
23963 * scans.adb: Undo previous change, not needed
23965 * scans.ads: Undo previous change, not needed.
23967 * scn-nlit.adb: Undo previous changes, not needed.
23969 * scn-slit.adb: Undo previous change, not needed. Fix header format.
23972 (Accumulate_Checksum): Use System.CRC32.
23973 (Initialize_Checksum): New procedure.
23974 Remove other changes of previous revision.
23976 * sinput-p.adb: Undo previous change, not needed.
23978 * sinput.adb: Undo previous change, not needed.
23980 * sinput-l.adb: Undo previous change, not needed.
23982 * sinput.ads: Undo previous change, not needed. Keep only comment
23983 on new checksum algorithm
23985 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
23986 Also remove a-tags and a-stream from GNAT sources.
23988 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
23990 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
23992 2001-10-11 Geert Bosch <bosch@gnat.com>
23994 * einfo.h: Regenerate.
23996 * nmake.ads: Regenerate.
23998 * nmake.adb: Regenerate.
24000 * sinfo.h: Regenerate.
24002 * treeprs.adb: Regenerate.
24004 2001-10-10 Geert Bosch <bosch@gnat.com>
24006 * gnat-style.texi: New file describing coding guidelines for Ada.
24008 2001-10-10 Ed Schonberg <schonber@gnat.com>
24010 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
24013 2001-10-10 Geert Bosch <bosch@gnat.com>
24015 * snames.ads: Add new names for project facility.
24017 * snames.adb: Update to reflect snames.ads changes.
24019 * snames.h: Update to reflect snames.ads changes.
24021 2001-10-10 Vincent Celier <celier@gnat.com>
24024 (Add_Switches): reflect the changes for the switches attributes
24025 Default_Switches indexed by the programming language,
24026 Switches indexed by the file name.
24027 (Collect_Arguments_And_Compile): Idem.
24028 Reflect the attribute name changes.
24031 (Initialisation_Data): Change the names of some packages and
24033 (Initialize): process case insensitive associative arrays.
24036 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
24039 (Parse_Attribute_Declaration): For case insensitive associative
24040 arrays, set the index string to lower case.
24043 Reflect the changes of the project attributes.
24046 Replace Check_Naming_Scheme by Ada_Check and
24047 Language_Independent_Check.
24050 Replaced Check_Naming_Scheme by 2 procedures:
24051 Ada_Check and Language_Independent_Check.
24054 (Process_Declarative_Items): For case-insensitive associative
24055 arrays, set the index string to lower case.
24056 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
24057 Prj.Nmsc.Check_Naming_Scheme.
24060 (Case_Insensitive): New function
24061 (Set_Case_Insensitive): New procedure
24064 (Case_Insensitive): New function
24065 (Set_Case_Insensitive): New procedure
24066 (Project_Node_Record): New flag Case_Insensitive.
24069 (Value_Of): new function to get the string value of a single
24070 string variable or attribute.
24073 (Value_Of): new function to get the string value of a single
24074 string variable or attribute.
24077 (Ada_Default_Spec_Suffix): New function
24078 (Ada_Default_Impl_Suffix): New function
24079 Change definitions of several constants to reflect
24080 new components of record types.
24083 (Naming_Data): Change several components to reflect new
24084 elements of naming schemes.
24085 (Project_Data): New flags Sources_Present and
24086 Language_Independent_Checked.
24087 (Ada_Default_Spec_Suffix): New function.
24088 (Ada_Default_Impl_Suffix): New function.
24091 Modification of predefined names for project manager: added
24092 Implementation, Specification_Exceptions, Implementation_Exceptions,
24093 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
24094 Default_Switches, _Languages, Builder, Cross_Reference,
24095 Finder. Removed Body_Part, Specification_Append, Body_Append,
24096 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
24099 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
24102 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
24103 not that it is Nil_Variable_Value.
24105 * prj.ads: Add ??? for uncommented declarations
24107 2001-10-10 Ed Schonberg <schonber@gnat.com>
24109 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
24110 constant, do not indicate possible modification, so that gigi can
24111 treat it as a bona fide constant.
24113 2001-10-10 Robert Dewar <dewar@gnat.com>
24115 * sem_prag.adb: Add processing for pragma External.
24117 * snames.ads: Add entry for pragma External.
24119 * par-prag.adb: Add pragma External.
24121 * snames.adb: Updated to match snames.ads.
24123 2001-10-10 Ed Schonberg <schonber@gnat.com>
24125 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
24126 a dynamic task if the allocator appears in an indexed assignment
24127 or selected component assignment.
24129 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
24130 For a dynamic task in an assignment statement, use target of
24131 assignment to generate meaningful name.
24133 2001-10-10 Ed Schonberg <schonber@gnat.com>
24135 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
24138 * einfo.ads: Body_Entity is also defined for generic package.
24139 Documentation change only
24141 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
24142 others_choice for a discriminated component initialization,
24143 convert discriminant references into the corresponding discriminals.
24145 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
24146 only if original type is private and expression has to be wrapped
24150 (Apply_Constraint_Check): Do not perform length check
24151 if expression is an aggregate with only an others_choice.
24152 (Length_N_Cond): two references to the same in_parameter
24153 (typically the discriminal in an init_proc) denote the same value.
24154 Two useful optimization uncovered by bugfixes above.
24156 2001-10-10 Robert Dewar <dewar@gnat.com>
24158 * xeinfo.adb: Change int to char in translation of enumeration types.
24159 This fixes a problem in the C representation of component alignment.
24160 Add 2001 to copyright notice
24162 2001-10-10 Richard Kenner <kenner@gnat.com>
24164 * decl.c: (validate_size): Do check size of object of integral type
24165 if it is a packed array type.
24167 2001-10-10 Richard Kenner <kenner@gnat.com>
24169 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
24170 VAR_DECL for constant if not Is_Public but -O0.
24172 2001-10-10 Richard Kenner <kenner@gnat.com>
24174 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
24176 2001-10-10 Geert Bosch <bosch@gnat.com>
24178 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
24179 use '/' as switch character, allowing for absolute file names.
24181 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
24183 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
24186 2001-10-08 Geert Bosch <bosch@gnat.com>
24188 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
24189 Automatically build utilities when files need to be regenerated.
24191 2001-10-08 Geert Bosch <bosch@gnat.com>
24193 * xsnames.adb: New utility for updating snames.ads and snames.adb
24195 2001-10-08 Zack Weinberg <zack@codesourcery.com>
24197 * Make-lang.in (ADAFLAGS): Add -W -Wall.
24198 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
24199 (gnat1): Also depend on attribs.o.
24200 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
24201 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
24202 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
24203 (ADAFLAGS): Add -W -Wall.
24204 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
24207 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
24208 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
24209 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
24210 Use $(ADAC), not $(CC), as compilation command.
24212 (gnattools): Depend directly on tools to build, don't use
24214 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
24216 * einfo.h, sinfo.h: New files (autogenerated).
24218 2001-10-08 Richard Henderson <rth@redhat.com>
24220 * comperr.adb (Abort_In_Progress): New.
24221 (Compiler_Abort): Use it to prevent recursion.
24223 2001-10-08 Robert Dewar <dewar@gnat.com>
24225 * atree.adb: Set Error_Posted in Error node, helps error recovery.
24227 * par-endh.adb (Output_End_Expected): We should also not test
24228 Error_Posted on the Error node, since now it is always set.
24230 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
24231 to help error recovery. Part of general work on 9407-004.
24233 * par.adb: Add ??? for misuse of error
24236 (Resolve): Defend against Error, fixes 9407-003.
24237 (Resolve_Discrete_Subtype_Indication): Defend against Error.
24239 * sinfo.ads (N_Error): Now has Etype field (which will be set
24240 to Any_Type to help error recovery).
24242 2001-10-08 Richard Kenner (kenner@gnat.com)
24244 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
24245 Consistently set MEM attributes from expression; fixes
24246 bootstrap failure on x86.
24248 2001-10-08 Geert Bosch (bosch@gnat.com)
24250 * 5oosinte.adb: Add 2001 to copyright notice.
24252 2001-10-08 Geert Bosch (bosch@gnat.com)
24254 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
24256 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
24258 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
24260 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
24262 2001-10-05 Geert Bosch (bosch@gnat.com)
24264 * adaint.h: Small formatting fix.
24266 2001-10-04 Geert Bosch <bosch@gnat.com>
24268 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
24269 Arg is int, not FILE *, in dummy version of functions.
24271 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
24272 Arg is int, not FILE *.
24274 2001-10-04 Geert Bosch <bosch@gnat.com>
24276 * 3lsoccon.ads: Added file, missed with initial check ins.
24278 * 4lintnam.ads: Fix header format.
24279 Change Linux to GNU/Linux.
24281 * 5iosinte.adb: Change Linux to GNU/Linux.
24283 * 5iosinte.ads: Change Linux to GNU/Linux.
24285 * 5itaprop.adb: Change Linux to GNU/Linux.
24287 * 5itaspri.ads: Change Linux to GNU/Linux.
24288 Update copyright notice.
24290 * 5lintman.adb: Change Linux to GNU/Linux.
24292 * 5lml-tgt.adb: Change Linux to GNU/Linux.
24294 * 5losinte.ads: Change Linux to GNU/Linux.
24296 * 5lsystem.ads: Change Linux to GNU/Linux.
24298 * 5qosinte.adb: Change Linux to GNU/Linux.
24300 * 5qosinte.ads: Change Linux to GNU/Linux.
24302 * 5qparame.ads: Change Linux to GNU/Linux.
24304 * 5qtaprop.adb: Change Linux to GNU/Linux.
24306 * 5qtaspri.ads: Change Linux to GNU/Linux.
24307 Add 2001 to copyright notice.
24309 * 5vintman.ads: Change Linux to GNU/Linux.
24310 Fix header format. Add 2001 to copyright notice.
24312 * g-soccon.ads: Change Linux to GNU/Linux.
24314 * g-trasym.ads: Change Linux to GNU/Linux.
24315 Add 2001 to copyright notice.
24317 * memtrack.adb: Change Linux to GNU/Linux.
24319 * s-intman.ads: Change Linux to GNU/Linux.
24320 Add 2001 to copyright notice. Fix header format.
24322 * s-stache.adb: Change Linux to GNU/Linux.
24324 * adaint.c: Change Linux to GNU/Linux.
24326 * cio.c: Change Linux to GNU/Linux.
24328 * cstreams.c: Change Linux to GNU/Linux.
24330 * init.c: Change Linux to GNU/Linux.
24332 * gmem.c: Change Linux to GNU/Linux.
24334 * tracebak.c: Change Linux to GNU/Linux.
24337 2001-10-02 Geert Bosch <bosch@gnat.com>
24339 * misc.c (insert_default_attributes): Add dummy version.