1 2007-05-13 Release Manager
5 2007-03-04 ric Botcazou <ebotcazou@adacore.com>
8 * lang.opt: Accept -ftree-vrp for Ada.
9 * misc.c (OPT_ftree_vrp): New case.
10 (gnat_post_options): Disable Tree-VRP unless explicitly turned on.
12 2007-02-28 Andreas Schwab <schwab@suse.de>
14 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
15 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
16 (doc/gnat-style.info): Likewise.
18 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
20 * gnat-style.texi: Standardize title page.
21 * gnat_rm.texi: Likewise.
22 * gnat_ugn.texi: Likewise.
24 2007-02-21 Ed Schonberg <schonberg@adacore.com>
27 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
28 untagged derived type, add hidden components to keep discriminant
29 layout consistent, when a given discriminant of the derived type
30 constraints several discriminants of the parent type.
32 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
35 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
36 * decl.c (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB
37 flag in addition to TREE_READONLY to assert the constantness of
38 variables for elaboration purposes.
39 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
40 if the initializer takes into account the padding.
41 Set DECL_READONLY_ONCE_ELAB flag on variables originally TREE_READONLY
42 but whose elaboration cannot be performed statically.
44 2006-10-16 Brooks Moses <bmoses@stanford.edu>
46 * Makefile.in: Add TEXI2PDF definition.
47 * Make-lang.in: Add "ada.pdf" target.
49 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
51 * decl.c, utils.c: Fix comment typos.
52 * utils.c: Fix a typo.
54 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
56 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
57 on "pure" Ada subprograms if SJLJ exceptions are used.
58 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
59 on the declaration node of JMPBUF_SAVE.
60 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
61 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
62 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
64 2006-08-20 Laurent GUERBY <laurent@guerby.net>
67 g-socket.adb (Bind_Socket): Call Set_Address.
69 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
72 * decl.c (same_discriminant_p): New static function.
73 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
74 subtype and we have discriminants, fix up the COMPONENT_REFs
75 for the discriminants to make them reference the corresponding
76 fields of the parent subtype after it has been built.
78 2006-09-15 Roger Sayle <roger@eyesopen.com>
81 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
82 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
84 2006-09-13 Olivier Hainque <hainque@adacore.com>
87 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
88 of a SAVE_EXPR, just make the operand addressable/not-readonly and
89 let the common gimplifier code make and propagate a temporary copy.
90 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
91 out/in-out actuals and defer setting the addressable/readonly bits
94 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
97 * decl.c (components_to_record): Defer emitting debug info for the
98 record type associated with the variant until after we are sure to
101 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
104 * gigi.h (gnat_internal_attribute_table): Declare.
105 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
106 * utils.c (gnat_internal_attribute_table): New global variable.
107 (builtin_function): Always call decl_attributes on the builtin.
108 (handle_const_attribute): New static function.
109 (handle_nothrow_attribute): Likewise.
111 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
113 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
115 2006-06-23 Olivier Hainque <hainque@adacore.com>
117 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
118 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
120 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
121 Eric Botcazou <ebotcazou@adacore.com>
124 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
125 check-gnat into check-acats.
127 2006-06-17 Karl Berry <karl@gnu.org>
129 * gnat-style.texi (@dircategory): Use "Software development"
130 instead of "Programming", following the Free Software Directory.
132 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
135 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
137 2006-06-06 Laurent GUERBY <laurent@guerby.net>
140 * mlib-utl.adb: Use Program_Name.
142 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
144 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
145 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
146 trans.c, utils.c: Fix comment typos. Follow spelling
148 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
151 2006-05-19 Nicolas Setton <setton@adacore.com>
153 * misc.c (gnat_dwarf_name): New function.
154 (LANG_HOOKS_DWARF_NAME): Define to it.
156 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
158 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
159 (ada/misc.o): Likewise.
160 (ada/utils.o): Likewise.
162 2006-04-08 Aurelien Jarno <aurel32@debian.org>
164 * Makefile.in: Add Ada support for GNU/kFreeBSD.
165 * s-osinte-kfreebsd-gnu.ads: New file.
167 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
169 * Make-lang.in: Rename docdir to gcc_docdir.
171 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
173 * gigi.h (get_ada_base_type): Delete.
174 * utils2.c (get_ada_base_type): Likewise.
175 * trans.c (convert_with_check): Operate in the real base type.
177 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
179 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
181 2006-03-02 Richard Sandiford <richard@codesourcery.com>
183 * utils.c (create_var_decl): Use have_global_bss_p when deciding
184 whether to make the decl common.
186 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
188 * Make-lang.in (Ada): Remove
191 2006-02-17 Ed Schonberg <schonberg@adacore.com>
193 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
194 aggregate, check the interpretations of the other operand to find one
195 that may be a boolean array.
197 (Analyze_Selected_Component): Fix flow-of-control typo in case where
198 the prefix is a private extension.
200 2006-02-17 Eric Botcazou <botcazou@adacore.com>
203 * utils2.c (find_common_type): If both input types are BLKmode and
204 have the same constant size, keep using the first one.
206 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
208 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
210 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
212 2006-02-17 Jose Ruiz <ruiz@adacore.com>
214 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
215 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
216 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
217 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
218 Abort_Defer/Undefer pairs to avoid the possibility of a task being
219 aborted while owning a lock.
221 2006-02-17 Javier Miranda <miranda@adacore.com>
222 Robert Dewar <dewar@adacore.com>
224 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
225 through an access to class-wide interface we force the displacement of
226 the pointer to the allocated object to reference the corresponding
227 secondary dispatch table.
228 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
229 if Long_Shifts are supported on the target, even if 64 bit divides
230 are not supported (configurable run time mode).
231 (Expand_N_Type_Conversion): Do validity check if validity checks on
232 operands are enabled.
233 (Expand_N_Qualified_Expression): Do validity check if validity checks
234 on operands are enabled.
236 2006-02-17 Ed Schonberg <schonberg@adacore.com>
238 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
239 must be materialized when the renamed expression is an explicit
242 2006-02-17 Ed Schonberg <schonberg@adacore.com>
244 * freeze.adb (Statically_Discriminated_Components): Return false if
245 the bounds of the type of the discriminant are not static expressions.
247 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
248 the bounds of the discriminant type are not static.
250 2006-02-17 Robert Dewar <dewar@adacore.com>
252 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
253 then we close To if it is valid.
255 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
257 * init.c (facility_resignal_table): new array
258 (__gnat_default_resignal_p): enhance default predicate to resignal if
259 VMS condition has one of the predefined facility codes.
261 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
263 * Makefile.in: Use VMS64 specialized versions of several units in
264 Interfaces.C hierarchy to be compatible with HP C default size choices.
265 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
267 2006-02-17 Ed Schonberg <schonberg@adacore.com>
269 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
270 instantiation, the corresponding entity is the related_instance of the
271 wrapper package created for the instance.
273 2006-02-17 Ed Schonberg <schonberg@adacore.com>
275 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
276 the current instance is nested within another instance in a child unit.
278 2006-02-17 Javier Miranda <miranda@adacore.com>
279 Ed Schonberg <schonberg@adacore.com>
281 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
282 type we cannot inherit the primitive operations; we inherit the
283 Corresponding_Record_Type (which has the list of primitive operations).
284 (Check_Anonymous_Access_Types): When creating anonymous access types for
285 access components, use Rewrite in order to preserve the tree structure,
287 (Analyze_Object_Declaration): For limited types with access
288 discriminants with defaults initialized by an aggregate, obtain
289 subtype from aggregate as for other mutable types.
290 (Derived_Type_Declaration): If the derived type is a limited interface,
291 set the corresponding flag (Is_Limited_Record is not sufficient).
293 2006-02-17 Ed Schonberg <schonberg@adacore.com>
295 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
296 to inline a function that returns an unconstrained type, the return
297 expression must be the first variable declared in the body of the
300 2006-02-17 Javier Miranda <miranda@adacore.com>
302 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
303 abstract interface type, the static analysis is not enough to know if
304 the interface is implemented or not by the source tagged type. Hence
305 we must pass the work to the expander to generate the required code to
306 evaluate the conversion at run-time.
307 (Resolve_Equality_Op): Do not apply previous
308 transformation if expansion is disasbled, to prevent anomalies when
309 locating global references in a generic unit.
311 2006-02-17 Vincent Celier <celier@adacore.com>
313 * snames.ads, snames.adb: New standard names for new project attributes:
314 archive_builder, archive_indexer, compiler_pic_option,
315 config_body_file_name, config_body_file_name_pattern,
316 config_file_switches, config_file_unique, config_spec_file_name,
317 config_spec_file_name_pattern, default_builder_switches,
318 default_global_compiler_switches, default_language,
319 dependency_file_kind, global_compiler_switches, include_path,
320 include_path_file, language_kind, linker_executable_option,
321 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
322 roots, runtime_project.
324 2006-02-17 Matthew Heaney <heaney@adacore.com>
326 * a-convec.ads, a-convec.adb:
327 (operator "&"): handle potential overflow for large index types
328 (Insert): removed Contraint_Error when using large index types
329 (Insert_Space): removed Constraint_Error for large index types
330 (Length): moved constraint check from Length to Insert
332 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
334 Explicit raise statements now include an exception message.
335 (operator "&"): handle potential overflow for large index types
336 (Insert): removed Contraint_Error when using large index types
337 (Insert_Space): removed Constraint_Error for large index types
338 (Length): moved constraint check from Length to Insert
340 2006-02-17 Robert Dewar <dewar@adacore.com>
342 * s-wchcnv.adb: Document handling of [ on output (we do not change
343 this to ["5B"] and the new comments say why not.
346 Add note for -gnatVo that this now includes the cases of type
347 conversions and qualified expressions.
348 Add comments on handling of brackets encoding for Text_IO
350 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
351 Thomas Quinot <quinot@adacore.com>
352 Robert Dewar <dewar@adacore.com>
353 Javier Miranda <miranda@adacore.com>
355 * expander.adb: Fix typo in comment
357 * exp_pakd.adb: Fix typo
358 Minor comment reformatting.
360 * g-dyntab.adb: Minor reformatting
362 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
363 aliased subprograms to look for the abstract interface subprogram.
365 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
367 * env.c (__gnat_setenv): Use size_t.
368 (__gnat_unsetenv): Likewise.
369 (__gnat_clearenv): Likewise.
371 2006-02-16 Arnaud Charlet <charlet@adacore.com>
373 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
375 2006-02-13 Arnaud Charlet <charlet@adacore.com>
377 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
378 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
379 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
380 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
381 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
382 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
383 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
384 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
385 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
388 2006-02-13 Jose Ruiz <ruiz@adacore.com>
390 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
391 protection against race conditions is not needed.
392 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
394 (Set_Specific_Handler): Add mutual exclusive access to the specific
396 (Specific_Handler): Add mutual exclusive access for retrieving the
399 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
402 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
403 Fall_Back_Handler and Specific_Handler.
405 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
406 termination handlers.
407 Set two different owerflow depending on the maximal stack size.
409 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
410 protection against race conditions is not needed when executing the
411 task termination handler.
413 2006-02-13 Robert Dewar <dewar@adacore.com>
415 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
416 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
417 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
418 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
419 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
420 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
421 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
422 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
423 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
424 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
425 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
426 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
427 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
428 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
429 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
430 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
431 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
432 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
433 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
434 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
435 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
436 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
437 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
438 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
439 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
440 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
441 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
442 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
443 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
444 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
445 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
446 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
447 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
448 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
451 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
453 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
454 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
455 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
456 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
457 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
458 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
459 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
460 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
461 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
463 2006-02-13 Arnaud Charlet <charlet@adacore.com>
465 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
466 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
467 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
468 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
469 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
470 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
471 replaced by anonymous access type.
472 (pthread_sigmask): Now take an access sigset_t
474 * s-osinte-hpux.ads: Ditto.
475 (pthread_mutex_t, pthread_cond_t): Update definitions to support
476 properly 32 and 64 bit ABIs.
478 2006-02-13 Pascal Obry <obry@adacore.com>
480 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
481 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
482 s-taprop-linux.adb, s-taprop-solaris.adb,
483 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
484 adjustement is already done when calling this routine.
486 2006-02-13 Pascal Obry <obry@adacore.com>
488 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
489 table to take advantage of the 16 priority levels available on Windows
490 2000 and XP. On NT4 there are only 7 priority levels, this is properly
491 supported by this new mapping.
493 2006-02-13 Nicolas Setton <setton@adacore.com>
495 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
496 (get_encoding): New subprogram. Extracts the encodings from an encoded
499 2006-02-13 Pascal Obry <obry@adacore.com>
500 Nicolas Roche <roche@adacore.com>
501 Arnaud Charlet <charlet@adacore.com>
503 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
505 (__gnat_try_lock): Add unicode support by using a specific section on
507 (__gnat_get_current_dir): Idem.
508 (__gnat_open_read): Idem.
509 (__gnat_open_rw): Idem.
510 (__gnat_open_create): Idem.
511 (__gnat_create_output_file): Idem.
512 (__gnat_open_append): Idem.
513 (__gnat_open_new): Idem.
514 (__gnat_file_time_name): Idem.
515 (__gnat_set_file_time_name): Idem.
517 (win32_no_block_spawn): Idem.
518 (__gnat_locate_exec_on_path): Idem.
519 (__gnat_opendir): New routine.
520 (__gnat_closedir): Idem.
521 (__gnat_readdir): Add new parameter length (pointer to int). Update
522 implementation to use it and add specific Win32 code for Unicode
524 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
525 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
526 (convert_addresses): Do not define this dummy routine on VMS.
528 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
529 runtime Unicode support will be activated.
530 (S2WS): String to Wide-String conversion. This version just copy a
531 string in non Unicode version.
532 (WS2S): Wide-String to String conversion. This version just copy a
533 string in non Unicode version.
535 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
536 (Open): Now import __gnat_opendir from adaint.c.
537 (Read): Change the implementation to support unicode characters. It is
538 not possible to use strlen() on Windows as this version supports only
539 standard ASCII characters. So the length of the directory entry is now
540 returned from the imported __gnat_readdir routine.
541 Update copyright notice.
543 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
544 (opendir): Moved to adaint.c.
546 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
547 (Get_Directory): Fix wrong indexing.
548 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
549 __gnat_getenv from env.c
550 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
553 * env.h, env.c: New file.
555 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
556 adaint.c by __gnat_getenv from env.c
558 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
559 adaint.c by __gnat_getenv from env.c
561 * Make-lang.in: Add env.o in the list of C object needed by gnat1
565 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
566 Olivier Hainque <hainque@adacore.com>
567 Eric Botcazou <ebotcazou@adacore.com>
569 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
571 * gigi.h (value_factor_p): Add prototype and description, now public.
573 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
574 promotion for field with rep clause if the associated size was proven
576 Expand comments describing attempts to use a packable type.
577 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
578 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
579 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
580 necessary since these are not different types and pointers may
581 actually designate any subtype in this hierarchy.
582 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
583 discriminants but put them into record only if not Unchecked_Union;
584 pass flag to components_to_record showing Unchecked_Union.
585 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
586 components before variants; don't set TYPE_UNCHECKED_UNION_P.
587 (components_to_record): New argument UNCHECKED_UNION.
588 Remove special case code for Unchecked_Union and instead use main code
592 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the
593 aligning variable with the expression being built, only its inner
596 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
597 emit_sequence_entry_statements.
598 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
599 (establish_gnat_vms_condition_handler): Move before
600 Subprogram_Body_to_gnu.
601 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
602 for a subprogram if it has a foreign convention or is exported.
603 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
604 substituted for a CONST_DECL.
605 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
606 Etype to assoc_to_constructor.
607 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
608 discriminants of Unchecked_Union.
609 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
610 don't need cluttering preprocessor directives.
611 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
612 condition handler as current in the compiled function.
613 (body_with_handlers_p): New function. Tell whether a given sequence of
614 statements node is attached to a package or subprogram body and involves
615 exception handlers possibly nested within inner block statements.
616 (emit_sequence_entry_statements): New function, to emit special
617 statements on entry of sequences when necessary. Establish GNAT
618 condition handler in the proper cases for VMS.
619 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
620 emit_sequence_entry_statements.
622 * utils2.c (find_common_type): If both input types are BLKmode and
623 have a constant size, use the smaller one.
624 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
627 * utils.c (value_factor_p): Make public, to allow uses from other gigi
629 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
630 (convert, case UNION_TYPE): Remove special treatment for unchecked
634 (update_pointer_to): Update variants of pointer types to
635 unconstrained arrays by attaching the list of fields of the main
638 2006-02-13 Arnaud Charlet <charlet@adacore.com>
639 Robert Dewar <dewar@adacore.com>
641 * a-exexpr.adb, a-exexpr-gcc.adb
642 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
643 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
644 Remove code unused for exception propagation for the compiler itself
645 from a-except.adb and update to still share separate packages.
647 * a-except.ads, a-except.adb: Ditto.
648 Add comments that this version is now used only by the compiler and
649 other basic tools. The full version that includes the Ada 2005 stuff
650 is in separate files a-except-2005.ads/adb. The reason is that we do
651 not want to cause bootstrap problems with compilers not recognizing
653 Add exception reason code PE_Implicit_Return
654 Add new exception reason code (Null Exception_Id)
656 * a-except-2005.adb, a-except-2005.ads: New files.
658 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
660 * s-wchcon.adb: New file.
662 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
663 (traceback.o deps): Likewise.
664 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
665 Activate build of GMEM instrumentation library on VMS targets.
666 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
667 Use a-except-2005.ads/adb for all run-time library builds unless
669 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
670 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
671 Use s-parame.adb on all native platforms.
672 Use s-parame-vxworks.adb on all vxworks platforms.
673 Add env.c env.h in LIBGNAT_SRCS
674 Add env.o in LIBGNAT_OBJS
675 (GNATMAKE_OBJS): Remove ctrl_c.o object.
676 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
677 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
678 supports VxWorks 6 RTPs.
679 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
680 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
682 * types.h, types.ads (Terminate_Program): New exception
683 Add comment on modifying multiple versions of a-except.adb when the
684 table of exception reasons is modified.
685 Add exception reason code PE_Implicit_Return
686 Add new exception reason code (Null Exception_Id)
688 * clean.adb (Initialize): Get the target parameters before checking
689 if target is OpenVMS. Move the OpenVMS specific code here from package
690 body elaboration code.
692 2006-02-13 Thomas Quinot <quinot@adacore.com>
693 Vincent Celier <celier@adacore.com>
694 Robert Dewar <dewar@adacore.com>
696 * ali-util.adb (Get_File_Checksum): Update to account for change in
697 profile of Initialize_Scanner.
699 * gprep.adb (Gnatprep): Update to account for change in profile of
701 (Process_One_File): Same.
703 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
704 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
705 that behaviour using the new Unit information recorded in the source
706 files table, rather than going through all units every time.
707 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
708 (Get_Source_Unit): Same.
710 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
711 change in profile of Initialize_Scanner.
712 (Prepare_To_Preprocess): Same.
714 * lib.ads: Fix typo in comment (templace -> template).
716 * prj-part.adb (Parse_Single_Project): Update to account for change in
717 profile of Initialize_Scanner.
719 * scn.adb (Initialize_Scanner): Account for change in profile of
720 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
721 Also record the association of the given Source_File_Index to the
722 corresponding Unit_Number_Type.
724 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
726 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
727 Remove Unit formal for generic scanner: this formal
728 is only relevant to Scn (the scanner instance used to parse Ada source
729 files), not to other instances. Update comment accordingly.
730 (Scan): Use new function Snames.Is_Keyword_Name.
732 * sinfo-cn.adb: Fix typo in comment.
734 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
737 * sinput.ads (Source_File_Record): New component Unit, used to capture
738 the unit identifier (if any) associated to a source file.
740 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
741 Unit in Source_File_Record.
743 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
744 in profile of Initialize_Scanner.
746 * scans.adb (Initialize_Ada_Keywords): New procedure
748 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
749 Ada keywords in the Namet table, without the need to call
752 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
753 (Is_Keyword_Name): New function
755 * snames.ads: Add subtype Configuration_Pragma_Names
756 Add pragma Ada_2005 (synonym for Ada_05)
757 (Is_Keyword_Name): New function
759 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
761 2006-02-13 Arnaud Charlet <charlet@adacore.com>
763 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
766 * a-stwima.adb (To_Set): Add extra check when N = 0.
768 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
770 2006-02-13 Arnaud Charlet <charlet@adacore.com>
772 * s-parame-mingw.adb, s-parame-linux.adb,
773 s-parame-solaris.adb: Removed, replaced by s-parame.adb
775 * s-parame-vxworks.ads: Fix typo.
777 * s-parame-vxworks.adb: New file.
779 * s-parame.adb: Version now used by all native platforms.
780 (Default_Stack_Size): Use 2 megs for default stack size and use
781 __gl_default_stack_size when available.
782 (Minimum_Stack_Size): Use 12K.
784 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
785 (Create_Task): Refine implementation taking advantage of the XP stack
786 size support. On XP, we now create the thread using the flag
787 STACK_SIZE_PARAM_IS_A_RESERVATION.
789 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
791 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
792 XP and 0 on older Windows versions.
794 * interfac-vms.ads: Removed, no longer used.
796 2006-02-13 Matthew Heaney <heaney@adacore.com>
798 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
799 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
800 a-cohase.adb: All explicit raise statements now include an exception
803 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
804 (Update_Element_Preserving_Key): renamed op to just Update_Element.
805 Explicit raise statements now include an exception message
807 * a-cihase.ads, a-cohase.ads: Removed comment.
809 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
810 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
811 a-szbzha.adb, a-szfzha.ads: New files.
813 2006-02-13 Matthew Heaney <heaney@adacore.com>
815 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
818 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
820 * lang.opt: Wvariadic-macros: New option.
821 Wold-style-definition: Likewise.
822 Wmissing-format-attribute: Likewise.
824 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
825 -Wold-style-definition and -Wmissing-format-attribute.
827 2006-02-13 Robert Dewar <dewar@adacore.com>
829 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
831 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
833 2006-02-13 Nicolas Roche <roche@adacore.com>
835 * a-envvar.adb, a-envvar.ads: New files.
837 2006-02-13 Douglas Rupp <rupp@adacore.com>
839 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
841 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
843 2006-02-13 Pat Rogers <rogers@adacore.com>
845 * a-rttiev.adb, a-rttiev.ads: New files.
847 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
849 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
850 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
852 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
854 2006-02-13 Robert Dewar <dewar@adacore.com>
856 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
857 sem_case.adb: Minor code reorganization (not Present should be No)
859 2006-02-13 Geert Bosch <bosch@adacore.com>
860 Gary Dismukes <dismukes@adacore.com>
862 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
863 0, since the lower bound of the actual string may be greater than one.
866 (Put): Fix condition to raise Layout_Error when invalid
869 2006-02-13 Vincent Celier <celier@adacore.com>
871 * back_end.adb (Scan_Compiler_Arguments): Check if
872 Search_Directory_Present is True and, if it is, add the argument in
873 the source search directory path.
875 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
876 Search_Directory_Present to True.
878 2006-02-13 Joel Brobecker <brobecke@adacore.com>
880 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
881 volatile, to tell the compiler to preserve this variable at any level
883 (Gen_Versions_Ada): Temporarily work around codegen bug.
885 2006-02-13 Vincent Celier <celier@adacore.com>
887 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
888 gcc to link with option -shared-libgcc.
889 (Gnatlink): Remove duplicate switches -shared-libgcc
891 2006-02-13 Robert Dewar <dewar@adacore.com>
893 * gnatvsn.ads (Current_Year): New constant, used to easily update
894 copyright on all GNAT tools.
896 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
899 2006-02-13 Robert Dewar <dewar@adacore.com>
901 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
902 after hyphen (small aesthetic change useful for a range of numbers
904 Suppress range checks for a couple of assignments which otherwise
905 cause validity checks with validity checking turned on.
907 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
908 Improvement in error message for object.
909 (Rep_Item_Too_Late): Remove '!' in warning message.
911 2006-02-13 Robert Dewar <dewar@adacore.com>
912 Eric Botcazou <ebotcazou@adacore.com>
914 * err_vars.ads: Suppress range checks for a couple of assignments
915 which otherwise cause validity checks with validity checking turned on.
918 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
919 Make message unconditional if it is a warning.
920 (Error_Msg_NEL): Always output warning messages.
921 Suppress range checks for a couple of assignments which otherwise
922 cause validity checks with validity checking turned on.
924 * errout.ads (Message Insertion Characters): Document that '!' is
925 implied by '?' in error messages.
927 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
928 (Gnat1drv): Use a goto to end of main subprogram instead of
929 Exit_Program (E_Success) so that finalization can occur normally.
931 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
933 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
936 2006-02-13 Vincent Celier <celier@adacore.com>
938 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
939 Unchecked_Conversion functions.
940 (Modification_Time): Use direct conversion of OS_Time to Calendar time
941 when OpenVMS returns False.
943 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
944 a-dirval.adb (OpenVMS): New Boolean function
946 2006-02-13 Ed Schonberg <schonberg@adacore.com>
947 Thomas Quinot <quinot@adacore.com>
949 * checks.adb (Build_Discriminant_Checks): If the expression being
950 checks is an aggregate retrieve the values of its discriminants to
951 generate the check, rather than creating a temporary and a reference
953 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
954 (Install_Null_Excluding_Check): Ditto
955 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
956 not for the renamed object, so that the actual itype is attached in the
959 2006-02-13 Robert Dewar <dewar@adacore.com>
960 Vincent Celier <celier@adacore.com>
962 * debug.adb: Eliminate numeric switches for binder/gnatmake
964 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
965 switches for the compiler.
966 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
967 (Scan_Make_Switches): When failing with an illegal switch, output an
968 error message with the full switch.
969 Eliminate numeric switches for binder/gnatmake
971 * switch.ads, switch.adb (Bad_Switch): New procedure
973 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
974 Remove 0-9 as debug flag character possibilities
975 -d is now controlling the primary stack size when its value is a
976 positive. Also add checks against invalid values, and support for kb,
977 mb. Ditto for -D switch.
979 2006-02-13 Robert Dewar <dewar@adacore.com>
980 Serguei Rybin <rybin@adacore.com>
982 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
983 save/restore routines.
984 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
985 were not always properly handled previously.
986 Since we are changing the tree format anyway, also get rid of the
987 junk obsolete Immediate_Errors flag.
988 (Tree_Read): Change the way of reading Tree_Version_String - now we
989 read the version string from the tree even if its length is not the
990 same as the length of the version string computed from Gnatvsn.
991 (Search_Directory_Present): New Boolean flag for the compiler.
992 Define Tree_Version_String as a dynamic string.
993 (Default_Stack_Size): new variable, used to handle switch -d.
996 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
998 Add pragma Ada_2005 (synonym for Ada_05)
999 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
1000 were not always properly handled previously.
1002 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
1003 explicit Ada_95 to Ada_2005.
1005 2006-02-13 Javier Miranda <miranda@adacore.com>
1006 Robert Dewar <dewar@adacore.com>
1007 Ed Schonberg <schonberg@adacore.com>
1009 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
1010 against errors in the source program: a private types for which the
1011 corresponding full type declaration is missing and pragma CPP_Virtual
1013 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
1014 (Is_Known_Null): New flag
1015 (Has_Pragma_Pure): New flag
1016 (No_Return): Present in all entities, set only for procedures
1017 (Is_Limited_Type): A type whose ancestor is an interface is limited if
1018 explicitly declared limited.
1019 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
1020 entities. Only used for component marked Is_Tag. If present it stores
1021 the Offset_To_Top function used to provide this value in tagged types
1022 whose ancestor has discriminants.
1024 * exp_ch2.adb: Update status of new Is_Known_Null flag
1026 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
1028 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
1029 the categorization sense if Is_Pure was set by pragma Pure_Function.
1031 2006-02-13 Quentin Ochem <ochem@adacore.com>
1032 Olivier Hainque <hainque@adacore.com>
1034 * bindusg.adb: Updated documentation for -d and -D switches.
1036 * raise.h (__gnat_set_globals): added new parameter for
1039 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
1040 (__gnat_handle_vms_condition): Adjust context before raise.
1041 (__gnat_install_handler): Restore the global vector setup for GCC
1042 versions before 3.4, as the frame based circtuitry is not available
1044 (__gnat_set_globals): added a parameter default_stack_size
1045 (__gl_default_stack_size): new variable.
1047 2006-02-13 Ed Schonberg <schonberg@adacore.com>
1049 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
1050 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
1051 does not exist in the Ada RM.
1052 (Compatible_Int_Bounds): Determine whether two integer range bounds
1053 are of equal length and have the same start and end values.
1054 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
1055 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
1056 aggregate when it is part of an object declaration.
1057 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
1058 constrains discriminants of its parent, add explicitly the discriminant
1059 constraints of the ancestor by retrieving them from the
1060 stored_constraint of the parent.
1062 2006-02-13 Robert Dewar <dewar@adacore.com>
1064 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
1065 attribute Mechanism_Code is applied to renamed subprogram, modify
1066 prefix to point to base subprogram.
1067 Max/Min attributes now violate Restriction No_Implicit_Conditionals
1069 * sinfo.ads: Document that Mechanism_Code cannot be applied to
1070 renamed subprograms so that the front-end must replace the prefix
1073 2006-02-13 Javier Miranda <miranda@adacore.com>
1074 Gary Dismukes <dismukes@adacore.com>
1076 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
1077 availability of RE_Interface_Tag.
1078 (Build_Initialization_Call): Fix wrong access to the discriminant value.
1079 (Freeze_Record_Type): Do not generate the tables associated with
1080 timed and conditional dispatching calls through synchronized
1081 interfaces if compiling under No_Dispatching_Calls restriction.
1082 When compiling for Ada 2005, for a nonabstract
1083 type with a null extension, call Make_Controlling_Function_Wrappers
1084 and insert the wrapper function declarations and bodies (the latter
1085 being appended as freeze actions).
1086 (Predefined_Primitive_Bodies): Do not generate the bodies of the
1087 predefined primitives associated with timed and conditional
1088 dispatching calls through synchronized interfaces if we are
1089 compiling under No_Dispatching_Calls.
1090 (Build_Init_Procedure): Use RTE_Available to check if a run-time
1091 service is available before generating a call.
1092 (Make_Controlling_Function_Wrappers): New procedure.
1093 (Expand_N_Full_Type_Declaration): Create a class-wide master for
1094 access-to-limited-interfaces because they can be used to reference
1095 tasks that implement such limited interface.
1096 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
1097 procedure spec and body of the Offset_To_Top function that is generated
1098 when the parent of a type with discriminants has secondary dispatch
1100 (Init_Secondary_Tags): Handle the case in which the parent of the type
1101 containing secondary dispatch tables has discriminants to generate the
1102 correct arguments to call Set_Offset_To_Top.
1103 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
1105 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
1106 Add Wide_[Wide_]Expanded_Name.
1107 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
1108 the same functionality of Get_Prim_Op_Address but applied to predefined
1109 primitive operations because the pointers to the predefined primitives
1110 are now saved in a separate table.
1111 (Parent_Size): Modified to get access to the separate table of primitive
1112 operations or the parent type.
1113 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
1114 functionality of Set_Prim_Op_Address but applied to predefined primitive
1116 (Set_Signature): New subprogram used to store the signature of a DT.
1117 (Displace): If the Offset_To_Top value is not static then call the
1118 function generated by the expander to get such value; otherwise use
1119 the value stored in the table of interfaces.
1120 (Offset_To_Top): The type of the actual has been changed to Address to
1121 give the correct support to tagged types with discriminants. In this
1122 case this value is stored just immediately after the tag field.
1123 (Set_Offset_To_Top): Two new formals have been added to indicate if the
1124 offset_to_top value is static and hence pass this value to the run-time
1125 to store it in the table of interfaces, or else if this value is dynamic
1126 and then pass to the run-time the address of a function that is
1127 generated by the expander to provide this value for each object of the
1130 * rtsfind.ads (Default_Prin_Op_Count): Removed.
1131 (Default_Prim_Op_Count): New entity
1132 (Get_Predefined_Prim_Op_Address): New entity
1133 (Set_Predefined_Prim_Op_Address): New entity
1134 (RE_Set_Signature): New entity
1136 2006-02-13 Thomas Quinot <quinot@adacore.com>
1137 Ed Schonberg <schonberg@adacore.com>
1139 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
1140 Make_Adjust_Call done for a newly-allocated object.
1142 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
1143 in a subprogram are wrapped in a cleanup block, indicate that the
1144 subprogram contains an inner block with an exception handler.
1145 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
1146 Adjust call is for a newly-allocated object. In that case we must not
1147 assume that the finalization list chain pointers are correct (since they
1148 come from a bit-for-bit copy of the original object's pointers) so if
1149 the attach level would otherwise be zero (no change), we set it to 4
1150 instead to cause the pointers to be reset to null.
1152 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
1153 reset chain pointers to null.
1155 2006-02-13 Ed Schonberg <schonberg@adacore.com>
1157 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
1158 string, and the context requires a loop for the assignment (e.g.
1159 because the left-hand side is packed), generate a unique name for the
1160 temporary that holds the string, to prevent spurious name clashes.
1162 2006-02-13 Ed Schonberg <schonberg@adacore.com>
1163 Javier Miranda <miranda@adacore.com>
1164 Robert Dewar <dewar@adacore.com>
1165 Gary Dismukes <dismukes@adacore.com>
1167 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
1168 return unconstrained arrays.
1170 (Expand_Call): An indirect call through an access parameter of a
1171 protected operation is not a protected call.
1172 Add circuit to raise CE in Ada 2005 mode following call
1174 (Register_DT_Entry): Do nothing if
1175 the run-time does not give support to abstract interfaces.
1176 (Freeze_Subprogram): In case of dispatching operations, do not generate
1177 code to register the operation in the dispatch table if the source
1178 is compiled with No_Dispatching_Calls.
1179 (Register_Predefined_DT_Entry): Generate code that calls the new
1180 run-time subprogram Set_Predefined_Prim_Op_Address instead of
1181 Set_Prim_Op_Address.
1183 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
1184 on array assignments if the right-hand side is a function call that has
1185 been inlined. Check is performed on the assignment in the block.
1186 (Process_Bounds): If bounds and range are overloaded, apply preference
1187 rule for root operations to disambiguate, and diagnose true ambiguity.
1188 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
1189 a tag-indeterminate right-hand side even when Expander_Active is True.
1190 Needed to ensure that dispatching calls to T'Input are allowed and
1191 get the tag of the target class-wide object.
1193 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
1194 an inherited primitive operation that already overrides several
1195 abstract interface primitives. For transitivity, the new entity must
1196 also override all the abstract interface primitives covered by the
1197 inherited overriden primitive.
1198 Emit warning if new entity differs from homograph in same scope only in
1199 that one has an access parameter and the other one has a parameter of
1200 a general access type with the same designated type, at the same
1201 position in the signature.
1202 (Make_Inequality_Operator): Use source locations of parameters and
1203 subtype marks from corresponding equality operator when creating the
1204 tree structure for the implicit declaration of "/=". This does not
1205 change anything in behaviour except that the decoration of the
1206 components of the subtree created for "/=" allows ASIS to get the
1207 string images of the corresponding identifiers.
1208 (Analyze_Return_Statement): Remove '!' in warning message.
1209 (Check_Statement_Sequence): Likewise.
1210 (Analyze_Subprogram_Body): For an access parameter whose designated type
1211 is an incomplete type imported through a limited_with clause, use the
1212 type of the corresponding formal in the body.
1213 (Check_Returns): Implicit return in No_Return procedure now raises
1214 Program_Error with a compile time warning, instead of beging illegal.
1215 (Has_Single_Return): Function returning unconstrained type cannot be
1216 inlined if expression in unique return statement is not an identifier.
1217 (Build_Body_To_Inline): It is possible to inline a function call that
1218 returns an unconstrained type if all return statements in the function
1219 return the same local variable. Subsidiary procedure Has_Single_Return
1220 verifies that the body conforms to this restriction.
1222 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
1223 same type, and one of them is of an anonymous access type, convert
1224 the other operand to it, so that this is a valid binary operation for
1226 (Resolve_Type_Conversion): Handle subtypes of protected types and
1227 task types when accessing to the corresponding record type.
1228 (Resolve_Allocator): Add '\' in 2-line warning message.
1229 Remove '!' in warning message.
1230 (Resolve_Call): Add '\' in 2-line warning message.
1231 (Valid_Conversion): Likewise.
1232 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
1233 resulting type may be an access type with an implicit dereference.
1234 Obtain the proper component from the designated type.
1235 (Make_Call_Into_Operator): Handle properly a call to predefined equality
1236 given by an expanded name with prefix Standard, when the operands are
1237 of an anonymous access type.
1238 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
1239 Explicit_Dereference and Resolve_Selected_Component, to verify that the
1240 prefix of the expression is not of an incomplete type. Allows full
1241 diagnoses of all semantic errors.
1242 (Resolve_Actuals): If the actual is an allocator whose directly
1243 designated type is a class-wide interface we build an anonymous
1244 access type to use it as the type of the allocator. Later, when
1245 the subprogram call is expanded, if the interface has a secondary
1246 dispatch table the expander will add a type conversion to force
1247 the displacement of the pointer.
1248 (Resolve_Call): If a function that returns an unconstrained type is
1249 marked Inlined_Always and inlined, the call will be inlined and does
1250 not require the creation of a transient scope.
1251 (Check_Direct_Boolean_Op): Removed
1252 (Resolve_Comparison_Op): Remove call to above
1253 (Resolve_Equality_Op): Remove call to above
1254 (Resolve_Logical_Op): Inline above, since this is only call.
1255 (Valid_Conversion): Handle properly conversions between arrays of
1256 convertible anonymous access types.
1259 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
1260 the literal in an unchecked conversion, because GCC 4.x needs a static
1261 value for a string bound.
1263 2006-02-13 Ed Schonberg <schonberg@adacore.com>
1264 Hristian Kirtchev <kirtchev@adacore.com>
1266 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
1267 components of the corresponding record, take into account component
1268 definitions that are access definitions.
1269 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
1270 procedure is not considered a dispatching call and will be expanded
1273 2006-02-13 Javier Miranda <miranda@adacore.com>
1275 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
1276 controlling argument of the dispatching call is an abstract interface
1277 class-wide type then we use it directly.
1278 Check No_Dispatching_Calls restriction.
1279 (Default_Prim_Op_Position): Remove the code that looks for the last
1280 entity in the list of aliased subprograms. This code was wrong in
1282 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
1283 when the source is compiled with the No_Dispatching_Calls restriction.
1284 (Init_Predefined_Interface_Primitives): No need to inherit primitives
1285 if we are compiling with restriction No_Dispatching_Calls.
1286 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
1287 subprograms if we are compiling under No_Dispatching_Calls restriction.
1288 (Make_DT): Generate a dispatch table with a single dummy entry if
1289 we are compiling with the No_Dispatching_Calls restriction. In
1290 addition, in this case we don't generate code that calls to the
1291 following run-time subprograms: Set_Type_Kind, Inherit_DT.
1292 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
1293 of this subprogram if compiling with the No_Dispatching_Calls
1295 (Expand_Type_Conversion): Instead of using the actual parameter,
1296 the argument passed as parameter to the conversion function was
1297 erroneously referenced by the expander.
1298 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
1299 Set_Predefined_Primitive_Op_Address and Set_Signature.
1300 (Expand_Dispatching_Call): Generate call to
1301 Get_Predefined_Prim_Op_Address for predefined primitives.
1302 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
1303 predefined primitives.
1304 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
1305 primitives we reserve one dummy entry to ensure that the tag does not
1306 point to some memory that is associated with some other object. In
1307 addition, remove all the old code that generated the assignments
1308 associated with the signature of the dispatch table and replace them
1309 by a call to the new subprogram Set_Signature.
1310 (Set_All_DT_Position): Change the algorithm because now we have a
1311 separate dispatch table associated with predefined primitive operations.
1312 (Expand_Interface_Conversion): In case of non-static offset_to_top
1313 add explicit dereference to get access to the object after the call
1314 to displace the pointer to the object.
1315 (Expand_Interface_Thunk): Modify the generation of the actual used
1316 in the calls to the run-time function Offset_To_Top to fulfil its
1318 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
1320 2006-02-13 Ed Schonberg <schonberg@adacore.com>
1322 * exp_dist.adb (Copy_Specification): For access parameters, copy
1323 Null_Exclusion flag, which will have been set for stream subprograms
1326 2006-02-13 Pascal Obry <obry@adacore.com>
1328 * expect.c (__gnat_expect_portable_execvp): New implementation. The
1329 previous implementation was using the C runtime spawnve routine but
1330 the corresponding wait was using directly the Win32 API. This was
1331 causing some times a lock when waiting for an event using
1332 WaitForSingleObject in __gnat_waitpid. This new implementation uses
1333 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
1334 API fixes this problem.
1336 2006-02-13 Robert Dewar <dewar@adacore.com>
1338 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
1341 2006-02-13 Thomas Quinot <quinot@adacore.com>
1343 * exp_pakd.ads: Fix typos in comments.
1345 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
1346 array reference that is an explicit dereference, mark the converted
1347 (packed) array reference as analyzed to prevent a forthcoming
1348 reanalysis from resetting its type to the original (non-packed) array
1351 2006-02-13 Ed Schonberg <schonberg@adacore.com>
1352 Javier Miranda <miranda@adacore.com>
1353 Eric Botcazou <ebotcazou@adacore.com>
1355 * exp_util.ads, exp_util.adb (Find_Prim_Op,
1356 Is_Predefined_Primitive_Operation): When
1357 searching for the predefined equality operator, verify that operands
1359 (Is_Predefined_Dispatching_Operation): Remove the code that looks
1360 for the last entity in the list of aliased subprograms. This code
1361 was wrong in case of renamings.
1362 (Set_Renamed_Subprogram): New procedure
1363 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
1364 Exp_Type constant computed when entering this subprogram.
1365 (Known_Null): New function
1366 (OK_To_Do_Constant_Replacement): New function
1367 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
1368 (Side_Effect_Free): An attribute reference 'Input is not free of
1369 side effect, unlike other attributes that are functions. (from code
1371 (Remove_Side_Effects): Expressions that involve packed arrays or records
1372 are copied at the point of reference, and therefore must be marked as
1373 renamings of objects.
1374 (Is_Predefined_Dispatching_Operation): Return false if the operation is
1375 not a dispatching operation.
1378 (Remove_Side_Effects): Lift enclosing type conversion nodes for
1379 elementary types in all cases.
1381 2006-02-13 Javier Miranda <miranda@adacore.com>
1383 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
1384 task types when accessing to the corresponding record type.
1385 Remove '!' in warning message.
1387 2006-02-13 Olivier Hainque <hainque@adacore.com>
1389 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
1390 to avoid useless and space inefficient overalignments on targets where
1391 Max_Alignment is larger than 16.
1393 2006-02-13 Pascal Obry <obry@adacore.com>
1395 * g-catiio.adb (Sec_Number): New type used to compute the number of
1396 seconds since 1-1-1970.
1397 (Image) [Natural]: The parameter was an Integer, as we can't deal with
1398 negative numbers (years, months...) it is better to have a Natural here.
1400 (Image) [Number]: Change parameter from Long_Integer to Number.
1401 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
1402 overflow for dates past year 2038.
1404 2006-02-13 Matthew Heaney <heaney@adacore.com>
1406 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
1409 2006-02-13 Arnaud Charlet <charlet@adacore.com>
1411 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
1413 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
1414 finalization can occur normally.
1416 2006-02-13 Vincent Celier <celier@adacore.com>
1418 * gnatcmd.adb (Rules_Switches): New table
1419 (Add_To_Rules_Switches): New procedure
1420 (GNATCmd): For command CHECK, put all options following "-rules" in the
1421 Rules_Switches table. Append these -rules switches after the -cargs
1424 2006-02-13 Robert Dewar <dewar@adacore.com>
1426 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
1427 These two cases were generating incorrect output, and if this unit
1428 was built with checks on, generated a discriminant mismatch constraint
1431 2006-02-13 Ed Schonberg <schonberg@adacore.com>
1432 Robert Dewar <dewar@adacore.com>
1434 * lib-xref.adb (Get_Type_Reference): For a private type whose full
1435 view is an array type, indicate the component type as well, for
1436 navigation purposes.
1437 (Generate_Reference): Don't consider array ref on LHS to be a case
1438 of violating pragma Unreferenced.
1439 Do not give Ada 2005 warning except on real reference.
1441 2006-02-13 Vincent Celier <celier@adacore.com>
1443 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
1444 main source, add switch -mdebug-main=_ada_ so that the executable can
1445 be debugged by the standard VMS debugger.
1446 (Gnatmake): Set No_Main_Subprogram to True when there is no main
1447 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
1448 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
1449 of the last source, as the binding and linking phases are never
1451 Set all executable obsolete when rebuilding a library.
1453 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
1456 2006-02-13 Javier Miranda <miranda@adacore.com>
1459 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
1460 code to improve the error message reported when the program has
1461 declarations of abstract interface types and it is not compiled with
1463 (P_Access_Definition): Reorganize the code to improve the error
1464 message reported when the new Ada 2005 syntax for anonymous
1465 access types is used and the program is not compiled with the
1468 2006-02-13 Robert Dewar <dewar@adacore.com>
1470 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
1471 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
1474 2006-02-13 Javier Miranda <miranda@adacore.com>
1476 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
1477 against source containing syntax errors.
1479 2006-02-13 Vincent Celier <celier@adacore.com>
1481 * prj.adb (Reset): Initialize the first element of table Namings with
1482 the standard naming data.
1484 2006-02-13 Vincent Celier <celier@adacore.com>
1486 * prj.ads (Error_Warning): New enumeration type
1488 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
1489 unknown, use the location of the project to report the error.
1490 (When_No_Sources): New global variable
1491 (Report_No_Ada_Sources): New procedure
1492 (Check): New parameter When_No_Sources. Set value of global variable
1494 (Find_Sources): Call Report_No_Ada_Sources when appropriate
1495 (Get_Sources_From_File): Ditto
1496 (Warn_If_Not_Sources): Better warning messages indicating the unit name
1499 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
1500 Call Prj.Proc.Process with parameter When_No_Sources.
1502 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
1503 Call Recursive_Check with parameter When_No_Sources.
1504 (Recursive_Check): New parameter When_No_Sources. Call itself and
1505 Prj.Nmsc.Check with parameter When_No_Sources.
1506 (Process): New parameter When_No_Sources. Call Check with parameter
1508 (Copy_Package_Declarations): New procedure to copy renamed parameters
1509 and setting the location of the declared attributes to the location
1510 of the renamed package.
1511 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
1514 2006-02-13 Vincent Celier <celier@adacore.com>
1516 * prj-makr.adb (Make): Preserve the comments from the original project
1518 When removing nodes (attributes Source_Dirs, Source_Files,
1519 Source_List_File and package Naming), save the comments and attach the
1520 saved comments to the newly created nodes.
1521 Do not add a with clause for the naming package if one already exists.
1523 2006-02-13 Javier Miranda <miranda@adacore.com>
1524 Gary Dismukes <dismukes@adacore.com>
1525 Robert Dewar <dewar@adacore.com>
1527 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
1529 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
1530 aliased entities to look for the overriden abstract interface
1532 (Is_Interface_Subprogram): Complete documentation.
1533 (Check_Dispatching_Operation): Do not generate code to register the
1534 operation in the dispatch table if the source is compiled with
1535 restriction No_Dispatching_Calls.
1536 (Override_Dispatching_Operation): Check for illegal attempt to override
1537 No_Return procedure with procedure that is not No_Return
1538 (Check_Dispatching_Call): Suppress the check for an abstract operation
1539 when the original node of an actual is a tag-indeterminate attribute
1540 call, since the attribute, which must be 'Input, can never be abstract.
1541 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
1542 call to the Input attribute (even when rewritten).
1543 (Propagate_Tag): Augment comment to indicate the possibility of a call
1544 to an Input attribute.
1546 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
1547 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
1549 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
1550 No_Wide_Characters is no longer partition-wide
1551 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
1554 2006-02-13 Douglas Rupp <rupp@adacore.com>
1556 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
1558 2006-02-13 Javier Miranda <miranda@adacore.com>
1560 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
1561 handles default-initialized components to keep separate the management
1562 of this feature but also avoid the unrequired resolution and
1563 expansion of components that do not have partially initialized
1565 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
1566 (Check_Bounds): Likewise.
1567 (Check_Length): Likewise.
1569 2006-02-13 Javier Miranda <miranda@adacore.com>
1570 Ed Schonberg <schonberg@adacore.com>
1572 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
1573 abstract interface type call analyze_and_resolve to expand the type
1574 conversion into the corresponding displacement of the
1575 reference to the base of the object.
1576 (Eval_Attribute, case Width): For systems where IEEE extended precision
1577 is supported, the maximum exponent occupies 4 decimal digits.
1578 (Accessibility_Message): Add '\' in 2-line warning message.
1579 (Resolve_Attribute): Likewise.
1580 (case Attribute_Access): Significantly revise checks
1581 for illegal access-to-subprogram Access attributes to properly enforce
1582 the rules of 3.10.2(32/2).
1583 Diagnose use of current instance with an illegal attribute.
1585 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
1587 (Enclosing_Generic_Unit): New function to return a node's innermost
1588 enclosing generic declaration node.
1589 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
1590 (Type_Access_Level): The accessibility level of anonymous acccess types
1591 associated with discriminants is that of the current instance of the
1592 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
1593 (Compile_Time_Constraint_Error): Handle case of conditional expression.
1594 (Kill_Current_Values_For_Entity): New function
1595 (Enter_Name): Change formal type to Entity_Id
1597 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
1598 Ed Schonberg <schonberg@adacore.com>
1599 Gary Dismukes <dismukes@adacore.com>
1601 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
1602 Analyze_Compilation_Unit.
1603 Detect and warn on redundant with clauses detected in a package spec
1604 and/or body when -gnatwr is used.
1605 (Analyze_Context): Analyze config pragmas before other items
1606 (Install_Context_Items): Don't analyze config pragmas here
1607 (Install_Limited_Withed_Unit): Set limited entity of package in
1608 with_clause so that cross-reference information or warning messages on
1609 unused packages can be properly generated
1610 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
1611 has Error_Posted set. Prevent infinite loops in illegal programs.
1612 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
1613 to the point of the error test requiring the current unit to be private.
1614 This ensures that private with clauses are not exempted from the basic
1615 checking for being a descendant of the same library unit parent as a
1616 withed private descendant unit.
1617 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
1618 handle private with clauses properly, as well as to account for cases
1619 where the withed unit is a public descendant of a private ancestor
1620 (in which case the current unit must be a descendant of the private
1621 ancestor's parent). The spec comments were updated accordingly. Also,
1622 the old error message in this subprogram was replaced with error
1623 messages that mirror the errors tested and reported by
1624 Check_Private_Child_Unit.
1625 Parameter and variable names improved for readability.
1626 (Install_Limited_Context_Clauses): Remove test for a withed unit being
1627 private as the precondition for calling
1628 Check_Private_Limited_Withed_Unit since that subprogram has been
1629 revised to test public units as well as private units.
1631 2006-02-13 Thomas Quinot <quinot@adacore.com>
1632 Robert Dewar <dewar@adacore.com>
1633 Ed Schonberg <schonberg@adacore.com>
1634 Javier Miranda <miranda@adacore.com>
1636 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
1637 that Scope_Stack.First = 1.
1638 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
1639 were not always properly handled previously.
1640 (Formal_Entity): Complete rewrite, to handle properly some complex case
1641 with multiple levels of parametrization by formal packages.
1642 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
1643 to the corresponding derived type declaration for proper semantics.
1645 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
1646 (Check_Component): Enforce restriction on components of
1647 unchecked_unions: a component in a variant cannot contain tasks or
1649 (Unchecked_Union): Allow nested variants and multiple discriminants, to
1651 Add pragma Ada_2005 (synonym for Ada_05)
1652 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
1653 were not always properly handled previously.
1654 Document that pragma Propagate_Exceptions has no effect
1655 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
1656 (Set_Convention_From_Pragma): Check that if a convention is
1657 specified for a dispatching operation, then it must be
1658 consistent with the existing convention for the operation.
1659 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
1660 longer required to specify an vtable-ptr component in the record. For
1661 compatibility reasons we leave the support for the previous definition.
1662 (Analyze_Pragma, case No_Return): Allow multiple arguments
1664 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
1665 non-overrideen inherited operation with a controlling result as
1666 illegal only its implicit declaration comes from the derived type
1667 declaration of its result's type.
1668 (Check_Possible_Deferred_Completion): Relocate the object definition
1669 node of the subtype indication of a deferred constant completion rather
1670 than directly analyzing it. The analysis of the generated subtype will
1671 correctly decorate the GNAT tree.
1672 (Record_Type_Declaration): Check whether this is a declaration for a
1673 limited derived record before analyzing components.
1674 (Analyze_Component_Declaration): Diagnose record types not explicitly
1675 declared limited when a component has a limited type.
1676 (Build_Derived_Record_Type): Code reorganization to check if some of
1677 the inherited subprograms of a tagged type cover interface primitives.
1678 This check was missing in case of a full-type associated with a private
1680 (Constant_Redeclaration): Check that the subtypes of the partial and the
1681 full view of a constrained deferred constant statically match.
1682 (Mentions_T): A reference to the current type in an anonymous access
1683 component declaration must be an entity name.
1684 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
1685 class_wide type to refer to full type, not to the incomplete one.
1686 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
1687 available. Required to give support to the certified run-time.
1688 (Analyze_Component_Declaration): In case of anonymous access components
1689 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
1690 (Process_Discriminants): For an access discriminant, use the
1691 discriminant specification as the associated_node_for_itype, to
1692 simplify accessibility checks.
1694 2006-02-13 Ed Schonberg <schonberg@adacore.com>
1695 Javier Miranda <miranda@adacore.com>
1697 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
1698 abstract interpretations on an operator, remove interpretations that
1699 yield Address or a type derived from it, if one of the operands is an
1701 (Try_Object_Operation.Try_Primitive_Operation,
1702 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
1703 location when creating the new reference to a primitive or class-wide
1704 operation as a part of rewriting a subprogram call.
1705 (Try_Primitive_Operations): If context requires a function, collect all
1706 interpretations after the first match, because there may be primitive
1707 operations of the same type with the same profile and different return
1708 types. From code reading.
1709 (Try_Primitive_Operation): Use the node kind to choose the proper
1710 operation when a function and a procedure have the same parameter
1712 (Complete_Object_Operation): If formal is an access parameter and prefix
1713 is an object, rewrite as an Access reference, to match signature of
1714 primitive operation.
1715 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
1716 by an expanded name with prefix Standard, when the operands are of an
1717 anonymous access type.
1718 (Remove_Abstract_Operations): If the operation is abstract because it is
1719 inherited by a user-defined type derived from Address, remove it as
1720 well from the set of candidate interpretations of an overloaded node.
1721 (Analyze_Membership_Op): Membership test not applicable to cpp-class
1724 2006-02-13 Bob Duff <duff@adacore.com>
1726 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
1727 redundant use clauses.
1728 In particular, if the scope of two use clauses overlaps, but one is not
1729 entirely included in the other, we should not warn. This can happen
1730 with nested packages.
1731 (Analyze_Subprogram_Renaming): Protect the compiler against previously
1732 reported errors. The bug was reported when the compiler was built
1733 with assertions enabled.
1734 (Find_Type): If the node is a 'Class reference and the prefix is a
1735 synchronized type without a corresponding record, return the type
1738 2006-02-13 Javier Miranda <miranda@adacore.com>
1740 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
1741 if this is the full-declaration associated with a private declaration
1742 that implement interfaces, then the private type declaration must be
1744 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
1745 as aliased. The use of the 'access attribute is not available for such
1746 object (for this purpose the object should be explicitly marked as
1747 aliased, but being an anonymous type this is not possible).
1749 2006-02-13 Ed Schonberg <schonberg@adacore.com>
1750 Robert Dewar <dewar@adacore.com>
1752 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
1753 compilation unit is an elaboration scope.
1754 (Add_Task_Proc): Add '\' in 2-line warning message.
1755 (Activate_All_Desirable): Deal with case of unit with'ed by parent
1757 2006-02-13 Ed Schonberg <schonberg@adacore.com>
1758 Javier Miranda <miranda@adacore.com>
1760 * sem_type.adb (Write_Overloads): Improve display of candidate
1762 (Add_One_Interp): Do not add to the list of interpretations aliased
1763 entities corresponding with an abstract interface type that is an
1764 immediate ancestor of a tagged type; otherwise we have a dummy
1765 conflict between this entity and the aliased entity.
1766 (Disambiguate): The predefined equality on universal_access is not
1767 usable if there is a user-defined equality with the proper signature,
1768 declared in the same declarative part as the designated type.
1769 (Find_Unique_Type): The universal_access equality operator defined under
1770 AI-230 does not cover pool specific access types.
1771 (Covers): If one of the types is a generic actual subtype, check whether
1772 it matches the partial view of the other type.
1774 2006-02-13 Thomas Quinot <quinot@adacore.com>
1776 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
1777 line. This is necessary to allow In_Extended_Main_Unit to provide
1778 correct results for itypes while writing out expanded source.
1779 (Close_File): No need to update the source_index_table here since it's
1780 now done for each line.
1782 2006-02-13 Ed Schonberg <schonberg@adacore.com>
1783 Robert Dewar <dewar@adacore.com>
1785 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
1786 preserve the source unit where the itype is declared, and prevent a
1788 (Note_Implicit_Run_Time_Call): New procedure
1789 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
1792 * sprint.ads: Document use of $ for implicit run time routine call
1794 2006-02-13 Quentin Ochem <ochem@adacore.com>
1796 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
1799 2006-02-13 Bob Duff <duff@adacore.com>
1801 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
1802 Scan_Unsigned, so we do not scan leading blanks and sign twice.
1803 Integer'Value("- 5") and Integer'Value("-+5") now correctly
1804 raise Constraint_Error.
1806 * s-vallli.adb (Scan_Long_Long_Integer): Call
1807 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
1808 do not scan leading blanks and sign twice.
1809 Integer'Value("- 5") and Integer'Value("-+5") now correctly
1810 raise Constraint_Error.
1812 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
1813 Scan_Long_Long_Unsigned): Split out most of the processing from
1814 Scan_Long_Long_Unsigned out into
1815 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
1816 This prevents scanning leading blanks and sign twice.
1817 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
1820 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
1821 out most of the processing from Scan_Unsigned out into
1822 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
1823 This prevents scanning leading blanks and sign twice.
1825 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
1826 use with Modular'Value attribute.
1827 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
1830 2006-02-13 Robert Dewar <dewar@adacore.com>
1832 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
1834 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
1836 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
1837 (PPC VxWorks): Likewise.
1838 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
1839 (forced_callee): Make non-inlinable and non-pure.
1840 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
1842 2006-02-13 Arnaud Charlet <charlet@adacore.com>
1843 Ben Brosgol <brosgol@adacore.com>
1844 Robert Dewar <dewar@adacore.com>
1846 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
1848 Document that gnatbind -M option is for cross environments only.
1849 Added description of using gnatmem to trace gnat rtl allocs and deallocs
1850 Add note on use of $ to label implicit run time calls
1851 Add documentation for -gnatyI (check mode IN)
1852 Updated chapter on compatibility with HP Ada
1854 Ran spell and corrected errors
1855 Add documentation for gnatbind -d and rework documentation of -D
1857 Add subprogram/data elimination section.
1858 Minor editing of annex A.
1859 Add section for gnatcheck.
1860 Add documentation for restriction No_Dispatching_Calls
1861 Add documentation for pragma Ada_2005
1862 Remove mention of obsolete pragma Propagate_Exceptions
1863 Document that pragma Unreferenced can appear after DO in ACCEPT
1864 Clarify Pure_Function for library level units
1865 Mention Max/Min in connection with No_Implicit_Conditionals
1866 No_Wide_Characters restriction is no longer partition-wide
1867 Add a nice example for Universal_Literal_String attribute
1868 Document that pragma No_Return can take multiple arguments
1870 * ug_words: Added entry for gnatcheck
1872 * g-ctrl_c.ads (Install_Handler): Enhance comments
1874 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
1876 * g-trasym.ads: Add documentation on how to do off line symbolic
1877 traceback computation.
1879 * s-fatgen.adb: Add comments for Unaligned_Valid
1881 * stand.ads: Fix typo in comment
1883 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1885 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
1887 2006-02-06 Roger Sayle <roger@eyesopen.com>
1889 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
1891 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1894 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
1895 implementation that calls __main.
1897 2006-01-25 Peter O'Gorman <peter@pogma.com>
1900 * Makefile.in (GCC_LINK): Remove quotes.
1901 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
1904 (powerpc-darwin): Pass -shared-libgcc when building shared library.
1906 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1909 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
1911 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1913 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
1915 2005-12-12 Arnaud Charlet <charlet@adacore.com>
1917 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
1920 2005-12-12 Arnaud Charlet <charlet@adacore.com>
1922 * Make-lang.in: Update dependencies
1924 2005-12-12 Arnaud Charlet <charlet@adacore.com>
1926 * Make-lang.in: Add rule for ada/exp_sel.o
1928 2005-12-12 Arnaud Charlet <charlet@adacore.com>
1930 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
1932 2005-12-09 Arnaud Charlet <charlet@adacore.com>
1934 * gnatvsn.ads (Library_Version): Bump to version 4.2
1935 (ASIS_Version_Number): Bumped.
1937 2005-12-09 Doug Rupp <rupp@adacore.com>
1939 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
1940 Ada bind file prefix on VMS from b$ to b__.
1941 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
1944 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
1945 Targparm.OpenVMS_On_Target.
1946 (Object_Suffix): Initialize with target object suffix.
1947 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
1949 * butil.adb: Change some Hostparm.OpenVMS checks to
1950 Targparm.OpenVMS_On_Target.
1952 * clean.adb: Change some Hostparm.OpenVMS checks to
1953 Targparm.OpenVMS_On_Target.
1954 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
1955 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
1956 Ada bind file prefix on VMS from b$ to b__.
1958 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
1959 --GCC so that Get_Target_Parameters can find system.ads.
1960 (Gnatlink): Call Get_Target_Parameters in mainline.
1961 Initialize standard packages for Targparm.
1962 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
1963 (Process_Args): Also Check for object files with target object
1965 (Make_Binder_File_Names): Create with target object extension.
1966 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
1969 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
1970 Targparm.OpenVMS_On_Target.
1971 ({declaration},Build_Library,Check_Library): Change Ada bind file
1972 prefix on VMS from b$ to b__.
1974 * osint-b.adb: Change some Hostparm.OpenVMS checks to
1975 Targparm.OpenVMS_On_Target.
1976 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
1979 * targext.c: New file.
1981 * Makefile.in: add support for vxworks653 builds
1982 (../../vxaddr2line): gnatlink with targext.o.
1983 (TOOLS_LIBS): Move targext.o to precede libgnat.
1984 (init.o, initialize.o): Minor clean up in dependencies.
1985 (GNATLINK_OBJS): Add targparm.o, snames.o
1986 Add rules fo building targext.o and linking it explicitly with all
1988 Also add targext.o to gnatlib.
1990 * Make-lang.in: Add rules for building targext.o and linking it in
1991 with gnat1 and gnatbind.
1992 Add entry for exp_sel.o.
1994 * osint.adb Change some Hostparm.OpenVMS checks to
1995 Targparm.OpenVMS_On_Target.
1996 (Object_File_Name): Use target object suffix.
1998 * osint.ads (Object_Suffix): Remove, no longer used.
1999 (Target_Object_Suffix): Initialize with target object suffix.
2001 * rident.ads: Add special exception to license.
2003 * targparm.adb (Get_Target_Parameters): Set the value of
2004 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
2006 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
2008 * targparm.ads: Add special exception to license.
2010 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
2012 (Copy_File): Make sure from file is closed if error on to file
2013 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
2015 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
2016 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
2018 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
2019 target object suffix.
2021 2005-12-09 Jose Ruiz <ruiz@adacore.com>
2022 Quentin Ochem <ochem@adacore.com>
2023 Florian Villoing <villoing@adacore.com>
2025 * a-taster.ads, a-taster.adb: New files.
2027 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
2028 link to the version that does nothing. This way the task termination
2029 routine is not executed twice for the environment task when finishing
2030 because of an unhandled exception.
2032 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
2033 handler because of an unhandled exception.
2035 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
2036 System.Tasking.Utilities instead of that in System.Tasking.Stages.
2038 * s-finimp.adb (initialization code): Modify the soft link for the
2039 finalization of the global list instead of Adafinal.
2041 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
2042 non-tasking version of the soft link for task termination. We do
2043 nothing since if we are using the non-tasking version it
2044 means that the task termination functionality is not used.
2045 (Null_Finalize_Global_List): Add this null version for the procedure
2046 in charge of finalizing the global list for controlled objects.
2047 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
2048 instead for handling run-time termination in a more flexible way.
2049 (Adafinal_NT): This new procedure will take care of finalizing the
2050 global list for controlled objects if needed, but no tasking
2053 * s-tarest.adb (Task_Lock): Do not try to lock again the
2054 Global_Task_Lock if we already own it. Otherwise, we get blocked in
2055 some run-time operations.
2056 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
2057 until all nested locks have been released.
2058 (Task_Wrapper): Call the fall-back task termination handler. It
2059 applies to all tasks but the environment task.
2060 (Finalize_Global_Tasks): Add the call for the task termination
2061 procedure for the environment task.
2062 (Task_Wrapper): suppress warnings around declaration of
2063 Secondary_Stack_Address.
2065 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
2066 moved to the Common_ATCB record.
2067 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
2069 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
2072 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
2073 Fall_Back_Handler, and Specific_Handler.
2075 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
2076 defined in Ada.Task_Termination, to avoid circular dependencies.
2077 (Termination_Handler): Redefine this type here, alredy defined in
2078 Ada.Task_Termination, for avoiding circular dependencies.
2079 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
2080 for storing task termination handlers. In addition,
2081 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
2082 Common_ATCB because it is used by both the regular and the restricted
2084 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
2085 Common_ATCB because it is used by both the regular and the restricted
2087 (Common_ATCB): Added a dynamic task analyzer field.
2089 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
2090 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
2091 (Task_Wrapper): Call the task termination handler. It applies to all
2092 tasks but the environment task.
2093 (Finalize_Global_Tasks): Call the task termination procedure for the
2094 environment task. The call to Finalize_Global_List is now performed
2095 using the soft links mechanism.
2096 (Task_Wrapper): added dynamic stack analysis.
2098 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
2099 potentially blocking operations has been moved from
2100 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
2101 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
2102 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
2103 this run-time check.
2105 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
2106 of task termination procedure.
2107 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
2108 link for the task termination procedure.
2110 * bindusg.adb: (Bindusg): Added documentation for -u option.
2112 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
2113 (Get_Main_C): Add handling of dynamic stack analysis.
2114 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
2116 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
2117 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
2118 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
2120 * opt.ads: Added flags used by dynamic stack measurement.
2121 (Max_Line_Length): Remove (not used anymore)
2123 * s-io.ads, s-io.adb (Standard_Error): new subprogram
2124 (Standart_Output): new subprogram
2125 (Set_Output): new subprogram
2126 (Put): now uses the value of Current_Out to know if the output has to be
2127 send to stderr or stdout.
2129 * s-stausa.ads: Complete implementation.
2131 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
2133 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
2134 list of Ada 05 files.
2135 (GNAT Library Units): Add AltiVec files.
2137 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
2138 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
2139 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
2141 2005-12-09 Nicolas Setton <setton@adacore.com>
2143 * adaint.c (__gnat_locate_regular_file): Return immediately if
2146 2005-12-09 Javier Miranda <miranda@adacore.com>
2147 Hristian Kirtchev <kirtchev@adacore.com>
2149 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
2150 to the specification because the frontend generates code that uses this
2152 (Set_Interface_Table): Add missing assertion.
2153 Update documentation describing the run-time structure.
2154 (Displace): New subprogram that displaces the pointer to the object
2155 to reference one of its secondary dispatch tables.
2156 (IW_Membership): Modified to use the new table of interfaces.
2157 (Inherit_TSD): Modified to use the new table of interfaces.
2158 (Register_Interface_Tag): Use the additional formal to fill the
2159 contents of the new table of interfaces.
2160 (Set_Interface_Table): New subprogram that stores in the TSD the
2161 pointer to the table of interfaces.
2162 (Set_Offset_To_Top): Use the additional formal to save copy of
2163 the offset value in the table of interfaces.
2164 Update structure of GNAT Primary and Secondary dispatch table diagram.
2165 Add comment section on GNAT dispatch table prologue.
2166 (Offset_To_Signature): Update the constant value of the Signature field.
2167 (Dispatch_Table): Update comment on hidden fields in the prologue.
2168 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
2169 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
2170 the type of formal parameter T to Tag, introduce additional assertions.
2171 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
2173 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
2175 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
2176 in all the calls to Expand_Interface_Thunk. Instead of referencing the
2177 record component containing the tag of the secondary dispatch table we
2178 have to use the Offset_To_Top run-time function to get this information;
2179 otherwise if the pointer to the base of the object has been displace
2180 we get a wrong value if we use the 'position attribute.
2182 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
2183 all the calls to Expand_Interface_Thunk.
2184 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
2185 interfaces; hence the call to Set_Interface_Table was clearly wrong.
2186 (Collect_All_Interfaces): Modify the internal subprogram Collect to
2187 ensure that the interfaces implemented by the ancestors are placed
2188 at the header of the generated list.
2189 (Expand_Interface_Conversion): Handle the case in which the displacement
2190 associated with the interface conversion is not statically known. In
2191 this case we generate a call to the new run-time subprogram Displace.
2192 (Make_DT): Generate and fill the new table of interfaces.
2193 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
2194 Get_Tagged_Kind and Set_Tagged_Kind.
2195 (Tagged_Kind): New function that determines the tagged kind of a type
2196 with respect to limitedness and concurrency and returns a reference to
2198 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
2199 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
2200 primary dispatch table for a type.
2201 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
2202 secondary dispatch table respectively of a tagged type.
2204 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
2205 (Expand_Interface_Conversion): New subprogram to indicate if the
2206 displacement of the type conversion is statically known.
2207 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
2209 * rtsfind.ads (RE_Offset_To_Top): New entity
2210 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
2211 accessible to users.
2212 (Re_Displace): New entity
2213 (RE_Interface_Data): New entity
2214 (RE_Set_Interface_Data): New_Entity
2215 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
2216 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
2217 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
2218 RE_TK_Tagged, RE_TK_Task.
2220 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
2221 Init_Secondary_Tags_Internal to allow its use with interface types and
2222 also to generate the code for the new additional actual required
2223 by Set_Offset_To_Top.
2224 (Build_Init_Statements): In case of components associated with abstract
2225 interface types there is no need to generate a call to its IP.
2226 (Freeze_Record_Type): Generate Select Specific Data tables only for
2228 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
2229 the bodies and specifications of the predefined primitive operations
2230 dealing with dispatching selects and abort, 'Callable, 'Terminated only
2231 for concurrent types.
2233 * exp_sel.ads, exp_sel.adb: New files.
2235 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
2236 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
2237 properly protected objects and attach handler in the case of the
2239 Move embeded package Select_Expansion_Utilities into a separate external
2241 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
2242 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
2243 (Build_K, Build_S_Assignment): New subprograms, part of the select
2244 expansion utilities.
2245 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
2246 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
2247 where the trigger is a dispatching procedure of a limited tagged type.
2249 2005-12-09 Olivier Hainque <hainque@adacore.com>
2251 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
2252 pointer initialization values. Make a SAVE_EXPR instead. Add comments
2253 about the use and expansion of SAVE_EXPRs in the various possible
2254 renaming handling cases.
2255 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
2256 abusing DECL_FCONTEXT.
2258 2005-12-09 Matthew Heaney <heaney@adacore.com>
2260 * a-convec.adb (Merge): Added assertions to check whether vector params
2263 * a-coinve.adb (Merge): Added assertions to check whether vector params
2266 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
2268 (Cursor'Read): raises PE
2270 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
2271 to its default value.
2273 * a-cihama.adb: Manually check whether cursor's key and elem are
2276 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
2277 (Merge): Assert that target and source lists are in order
2278 (Swap): Declare non-const temporaries, to pass to Splice
2280 * a-cdlili.ads: (Splice): Changed param name and param mode
2282 * a-cdlili.adb: (Splice): Changed param name and param mode
2283 (Merge): Assert that target and source lists are in order
2284 (Swap): Declare non-const temporaries, to pass to Splice
2286 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
2287 (Write): declare Stream param as not null
2289 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
2290 an exception message.
2292 2005-12-09 Thomas Quinot <quinot@adacore.com>
2293 Robert Dewar <dewar@adacore.com>
2295 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
2296 which is the absolute maximum length we can support.
2298 * frontend.adb: For the processing of configuration pragma files,
2299 remove references to Opt.Max_Line_Length, which is not checked anymore.
2301 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
2304 * scn.adb, scng.adb:
2305 Always check line length against the absolute supported maximum,
2306 Hostparm.Max_Line_Length.
2308 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
2309 value for the maximum line length is Max_Line_Length (not
2310 Column_Number'Last).
2311 Minor error msg update
2312 (Set_Style_Check_Options): New interface returning error msg
2313 Minor code reorganization (processing for 'M' was out of alpha order)
2315 * switch-c.adb: New interface for Set_Style_Check_Options
2317 * stylesw.ads (Set_Style_Check_Options): New interface returning error
2320 2005-12-09 Javier Miranda <miranda@adacore.com>
2322 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
2323 with IP subprogram were only supported if there were limited types.
2325 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
2326 records with IP subprogram were only supported if there were limited
2329 2005-12-09 Olivier Hainque <hainque@adacore.com>
2330 Eric Botcazou <ebotcazou@adacore.com>
2332 * trans.c (tree_transform, emit_check): Adjust calls to
2333 build_call_raise, passing the now expected GNAT_NODE argument.
2335 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
2336 source line information than what the current global locus indicates
2339 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
2340 field has overflowed.
2341 (build_call_raise): Add a GNAT_NODE argument to convey better source
2342 line information than what the current global locus indicates when
2344 (build_component_ref): Adjust call to build_call_raise.
2346 2005-12-09 Pascal Obry <obry@adacore.com>
2348 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
2349 the iterator is quitting iteration on parent directory.
2351 2005-12-09 Javier Miranda <miranda@adacore.com>
2353 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
2354 and the assignment to a class-wide object, before the assignment we
2355 generate a run-time check to ensure that the tag of the Target is
2356 covered by the tag of the source.
2358 2005-12-09 Robert Dewar <dewar@adacore.com>
2360 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
2361 parameter in call to Image_Wide_Character.
2363 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
2364 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
2365 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
2366 annoying FFFE/FFFF inconsistency.
2368 2005-12-09 Robert Dewar <dewar@adacore.com>
2369 Javier Miranda <miranda@adacore.com>
2370 Ed Schonberg <schonberg@adacore.com>
2372 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
2374 (Find_Interface): New subprogram that given a tagged type and one of its
2375 component associated with the secondary table of an abstract interface
2376 type, return the entity associated with such abstract interface type.
2377 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
2378 base type to create anonymous subtype, because entity may be a locally
2379 declared subtype or generic actual.
2380 (Find_Interface): New subprogram that given a tagged type and one of its
2381 component associated with the secondary table of an abstract interface
2382 type, return the entity associated with such abstract interface type.
2384 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
2385 conversion cannot be handled at compile time. In this case we pass this
2386 information to the expander to generate the appropriate code.
2388 2005-12-09 Robert Dewar <dewar@adacore.com>
2389 Ed Schonberg <schonberg@adacore.com>
2390 Gary Dismukes <dismukes@adacore.com>
2391 Javier Miranda <miranda@adacore.com>
2392 Hristian Kirtchev <kirtchev@adacore.com>
2394 * einfo.adb (Itype_Printed): New flag
2395 (Is_Limited_Type): Derived types do not inherit limitedness from
2396 interface progenitors.
2397 (Is_Return_By_Reference_Type): Predicate does not apply to limited
2400 * einfo.ads (Itype_Printed): New flag
2401 Move Is_Wrapper_Package to proper section
2402 Add missing Inline for Is_Volatile
2404 * output.ads, output.adb (Write_Erase_Char): New procedure
2405 (Save/Restore_Output_Buffer): New procedures
2406 (Save/Restore_Output_Buffer): New procedures
2408 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
2409 Add missing support for anonymous access type
2410 (Write_Id): Insert calls to Write_Itype
2411 (Write_Itype): New procedure to output itypes
2413 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
2414 use of "limited" in declaration.
2416 * sinfo.ads, sinfo.adb:
2417 Formal derived types can carry an explicit "limited" indication.
2419 * sem_ch3.adb: Add with and use of Targparm.
2420 (Create_Component): If Frontend_Layout_On_Target is True and the
2421 copied component does not have a known static Esize, then reset
2422 the size and positional fields of the new component.
2423 (Analyze_Component_Declaration): A limited component is
2424 legal within a protected type that implements an interface.
2425 (Collect_Interfaces): Do not add to the list the interfaces that
2426 are implemented by the ancestors.
2427 (Derived_Type_Declaration): If the parent of the full-view is an
2428 interface perform a transformation of the tree to ensure that it has
2429 the same parent than the partial-view. This simplifies the job of the
2430 expander in order to generate the correct object layout, and it is
2431 needed because the list of interfaces of the full-view can be given in
2433 (Process_Full_View): The parent of the full-view does not need to be
2434 a descendant of the parent of the partial view if both parents are
2436 (Analyze_Private_Extension_Declaration): If declaration has an explicit
2437 "limited" the parent must be a limited type.
2438 (Build_Derived_Record_Type): A derived type that is explicitly limited
2439 must have limited ancestor and progenitors.
2440 (Build_Derived_Type): Ditto.
2441 (Process_Full_View): Verify that explicit uses of "limited" in partial
2442 and full declarations are consistent.
2443 (Find_Ancestor_Interface): Remove function.
2444 (Collect_Implemented_Interfaces): New procedure used to gather all
2445 implemented interfaces by a type.
2446 (Contain_Interface): New function used to check whether an interface is
2448 (Find_Hidden_Interface): New function used to determine whether two
2449 lists of interfaces constitute a set equality. If not, the first
2450 differing interface is returned.
2451 (Process_Full_View): Improve the check for the "no hidden interface"
2452 rule as defined by AI-396.
2454 2005-12-09 Robert Dewar <dewar@adacore.com>
2456 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
2457 types, not on record subtypes.
2458 (Freeze_Entity): Code cleanup. Add barrier to the loop
2459 that generates the references for primitive operations. This allows to
2460 remove an unnecessary exception handler.
2461 Code reformatting and comment clean ups.
2463 2005-12-09 Vincent Celier <celier@adacore.com>
2465 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
2466 If GNAT CHECK is called with a project file, but with no
2467 source on the command line, call gnatcheck with all the compilable
2468 sources of the project.
2469 Take into account the new command Check, for gnatcheck. Treat as for
2470 other ASIS tools: take into account project, specific package Check and
2472 For ASIS tools, add the switches in package Compiler for
2473 the invocation of the compiler.
2475 * prj-attr.adb: Add package Check and its attributes
2477 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
2479 * vms_conv.adb (Initialize): Change Params of command Check to
2481 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
2482 Add data for new command Check
2484 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
2486 Add qualifiers for Check command options
2487 (Command_Type): New command Check
2489 2005-12-09 Thomas Quinot <quinot@adacore.com>
2491 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
2492 command line switch overruns the output buffer.
2494 2005-12-09 Robert Dewar <dewar@adacore.com>
2496 * sem_prag.adb: Processing for new pragma Complete_Representation
2497 (Analyze_Pragma, case Debug): Implement two argument form.
2499 * par-prag.adb: Entry for new pragma Complete_Representation
2500 (Prag, case Debug): Recognize two argument form of pragma Debug
2501 New interface for Set_Style_Check_Options.
2503 * sem_ch13.adb: Implement new pragma Complete_Representation.
2505 * snames.adb, snames.ads, snames.h: Entry for new pragma
2506 Complete_Representation.
2508 2005-12-09 Gary Dismukes <dismukes@adacore.com>
2510 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
2511 available user-specified stream attributes on limited parameters to
2512 also test the type directly rather than only its underlying type (for
2513 Ada 95) and, in the case of Ada 2005, to check that the user-specified
2514 attributes are visible at the point of the subprogram declaration.
2515 For Ada 2005, the error message is modified to indicate that the
2516 type's stream attributes must be visible (again, only for -gnat05).
2518 2005-12-09 Ed Schonberg <schonberg@adacore.com>
2520 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
2521 anonymous access types.
2523 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
2524 matching of anonymous access types and anonymous access to subprogram
2525 types. 'R'M 4.9.1 (2/2).
2527 2005-12-09 Ed Schonberg <schonberg@adacore.com>
2529 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
2530 rule prematurely when operands are universal, remaining ambiguities
2531 will be removed during resolution.
2534 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
2535 that are Ada 2005 functions.
2536 (Has_Abstract_Interpretation): Subsidiary to
2537 Remove_Conversions, to remove ambiguities caused by abstract operations
2538 on numeric types when operands are universal.
2540 2005-12-09 Robert Dewar <dewar@adacore.com>
2542 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
2543 for case where spec is categorized.
2545 2005-12-09 Javier Miranda <miranda@adacore.com>
2547 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
2548 types use the corresponding record type. This was not needed before
2549 the implementation of Ada 2005 synchronized types because
2550 concurrent types were never tagged types in Ada 95.
2552 2005-12-09 Ed Schonberg <schonberg@adacore.com>
2554 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
2555 first subtype of the type of the expression to verify that it is a
2558 2005-12-09 Robert Dewar <dewar@adacore.com>
2560 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
2563 2005-12-09 Quentin Ochem <ochem@adacore.com>
2564 Robert Dewar <dewar@adacore.com>
2565 Ed Falis <falis@adacore.com>
2566 Florian Villoing <villoing@adacore.com>
2567 Thomas Quinot <quinot@adacore.com>
2568 Arnaud Charlet <charlet@adacore.com>
2570 * gnat_ugn.texi: Created section "Stack Related Tools"
2571 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
2572 "Stack Related Tools"
2573 Added subsection "Static Stack Usage Analysis"
2574 Added subsection "Dynamic Stack Usage Analysis"
2575 Include documentation of itypes in sprint listing (-gnatG)
2576 Documented gnatbind -D switch (default sec stack size for fixed sec
2578 Added Interrupt_State and Persistent_BSS to list of configuration
2580 Add missing doc for maximum value of nnn in -gnatyMnnn
2582 * gnat_rm.texi: Document the AltiVec binding.
2583 Add documentation for pragma Complete_Representation
2584 Shortened an overly long line (> 79 chars)
2585 Clarify documentation of unchecked conversion in implementation
2587 Document two argument form of pragma Debug
2589 * types.ads (Column_Number): Update documentation.
2591 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
2592 library level Finalize_Storage_Only objects (these are not attached to
2593 any finalization list).
2595 * system-mingw.ads: (Underlying_Priorities): Update comment.
2597 2005-12-09 Robert Dewar <dewar@adacore.com>
2599 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
2600 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
2601 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
2602 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
2603 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
2604 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
2605 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
2606 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
2609 2005-12-09 Robert Dewar <dewar@adacore.com>
2611 * s-vaflop-vms-alpha.adb: (Ne_F): New function
2612 (Ne_G): New function
2614 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
2616 (Rewrite_Comparison): Handle case where operation is not a comparison
2617 and ignore, and also handle type conversion case.
2619 2005-12-09 Thomas Quinot <quinot@adacore.com>
2621 * exp_aggr.ads: Fix typo in comment.
2622 ???-mark Convert_Aggr_In_Assignment as needing documentation.
2624 2005-12-09 Gary Dismukes <dismukes@adacore.com>
2626 * layout.adb: Replace various uses of byte by storage unit throughout.
2627 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
2628 static size, convert to storage units before returning, to conform to
2631 2005-12-09 Matthew Gingell <gingell@adacore.com>
2633 * g-exctra.ads: Fix typo in comment.
2635 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2637 * utils.c: Minor reformatting.
2639 2005-12-09 Robert Dewar <dewar@adacore.com>
2642 Further comment fixes to make the status of the default file clear
2644 * s-bitops.adb: Clarify comment for Bits_Array
2646 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
2648 * Make-lang.in (ada.install-normal): Remove.
2650 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
2652 * Make-lang.in: Remove all dependencies on s-gtype.
2654 2005-12-05 Richard Guenther <rguenther@suse.de>
2656 * utils.c (convert): Use fold_convert where appropriate.
2658 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
2660 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
2663 2005-12-02 Richard Guenther <rguenther@suse.de>
2665 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
2667 2005-12-01 Roger Sayle <roger@eyesopen.com>
2669 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
2672 2005-11-23 Laurent GUERBY <laurent@guerby.net>
2674 * mlib-prj.adb (Build_Library): Initialize Delete.
2676 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
2678 * socket.c: Add extern int h_errno for rtems since networking header
2679 files are not available at this point in a tool bootstrap. Newlib
2680 only has basic C library header files.
2682 2005-11-19 Richard Guenther <rguenther@suse.de>
2683 Roger Sayle <roger@eyesopen.com>
2686 * misc.c (internal_error_function): Don't use vsprintf to format
2687 the error message text, instead use pp_format_text and the new
2688 pretty printer APIs. This allows handling of %qs, %w, etc.
2690 2005-11-18 Laurent GUERBY <laurent@guerby.net>
2693 * Makefile.in: Use s-auxdec-empty for RTEMS.
2695 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2698 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
2699 a temporary if taking the address of something that is neither
2700 reference, declaration, or constant, since the gimplifier
2701 can't handle that case.
2703 2005-11-17 Laurent GUERBY <laurent@guerby.net>
2706 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
2708 2005-11-16 Richard Guenther <rguenther@suse.de>
2710 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
2712 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
2715 * raise-gcc.c: Add missing stdarg.h include.
2717 2005-11-16 Richard Guenther <rguenther@suse.de>
2719 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
2720 (ada/misc.o): Likewise.
2722 2005-11-14 Thomas Quinot <quinot@adacore.com>
2724 * g-soccon.ads: Minor reformatting. Update comments.
2726 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
2727 gain visibility on the declaration of struct timeval.
2729 * g-soccon-freebsd.ads,
2730 g-soccon-darwin.ads,
2735 g-soccon-solaris.ads,
2738 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
2740 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
2741 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
2742 g-soccon-linux-x86.ads: New files.
2744 * g-socthi-mingw.adb:
2745 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
2747 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
2748 (time_t, suseconds_t): New types constructed to match the tv_sec
2749 and tv_usec fields of C struct timeval.
2750 (Timeval): Construct structure in terms of the new types.
2751 (Host_Errno): New function (imported from socket.c), returns last hosts
2754 * g-socthi-vxworks.adb: Add error handling circuitry.
2756 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
2757 components of struct timeval.
2758 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
2759 (Check_Selector): In error conditions, clear internal socket sets to
2760 avoid a memory leak.
2761 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
2762 Send_Timeout, Receive_Timeout.
2764 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
2765 the tv_sec and tv_usec fields of C struct timeval.
2766 (Timeval): Construct structure in terms of the new types.
2767 (Host_Errno): New function (imported from socket.c), returns last hosts
2770 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
2771 hosts database last error code.
2773 * gen-soccon.c: Complete value expansion should not be performed on
2774 TARGET, as it has the form of a math expression, and some components
2775 may be platform-defined macros.
2776 For VxWorks, generate the OK and ERROR values.
2777 New constants giving the sizes of the components of C struct timeval.
2779 2005-11-14 Robert Dewar <dewar@adacore.com>
2780 Ed Schonberg <schonberg@adacore.com>
2783 * types.ads: Include All_Checks in Suppress_Array
2785 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
2786 not(a=b), since we no longer do this rewriting, and hence it is not
2788 (Elaboration_Checks_Suppressed): Add special casing to
2789 deal with different cases of static and dynamic elaboration checks (all
2790 checks does not count in the first case, but does in the second).
2791 (Expr_Known_Valid): Do not assume that the result of any arbitrary
2792 function call is valid, since this is not the case.
2793 (Ensure_Valid): Do not apply validity check to a real literal
2794 in a universal or fixed context
2796 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
2797 elementary types using the operator in standard. It is cleaner not to
2798 modify the programmers intent, especially in the case of floating-point.
2799 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
2800 it did not matter because we always rewrote a/=b to not(a=b).
2801 (Expand_Allocator_Expression): For an allocator expression whose nominal
2802 subtype is an unconstrained packed type, convert the expression to its
2803 actual constrained subtype.
2804 Implement warning for <= or >= where < or > not possible
2805 Fix to Vax_Float tests (too early in many routines, causing premature
2806 Vax_Float expansions.
2808 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
2809 to be used with packages and generic packages as well as with
2811 (Suppress): Set All_Checks, but not Elaboration_Check, for case
2812 of pragma Suppress (All_Checks)
2813 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
2814 a string literal for precise control over warnings.
2815 Avoid raise of pragma in case of unrecognized pragma and just return
2818 * sem_prag.ads: Minor reformatting
2820 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
2821 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
2822 Switch. Do not handle any exception.
2823 Include -gnatwx as part of -gnatg (warn on redundant parens)
2824 Allow optional = after -gnatm
2825 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
2826 longer sets Elaboration_Checks.
2827 Code to set warning mode moved to Sem_Warn
2828 so that it can be shared by pragma processing.
2830 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
2833 * s-taprop-solaris.adb:
2834 Change some <= to =, to avoid new warning
2836 * a-exexda.adb, prj-proc.adb:
2837 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
2838 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
2840 2005-11-14 Robert Dewar <dewar@adacore.com>
2842 * exp_vfpt.adb: Handle /= case
2843 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
2844 so that we do not get duplicate scaling for fixed point conversions.
2846 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
2848 2005-11-14 Matthew Gingell <gingell@adacore.com>
2850 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
2851 Increase default priority on Lynx from 15 to 17, and meet the Ada
2852 requirement that Default_Priority be ((Priority'First +
2853 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
2855 2005-11-14 Vincent Celier <celier@adacore.com>
2857 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
2858 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
2859 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
2860 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
2861 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
2862 mlib-tgt-lynxos.adb (DLL_Prefix): New function
2864 2005-11-14 Doug Rupp <rupp@adacore.com>
2866 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
2869 2005-11-14 Arnaud Charlet <charlet@adacore.com>
2871 * s-traces-default.adb, s-trafor-default.ads,
2872 s-tratas-default.adb: Fix compilation errors.
2874 2005-11-14 Jose Ruiz <ruiz@adacore.com>
2876 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
2877 raising the exception so the memory used is freed.
2879 2005-11-14 Arnaud Charlet <charlet@adacore.com>
2881 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
2882 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
2883 (convert_address): Update comments and list of platforms using this.
2885 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
2888 2005-11-14 Pascal Obry <obry@adacore.com>
2889 Vincent Celier <celier@adacore.com>
2891 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
2894 * memroot.adb: Remove redundant with/use clause on
2895 System.Storage_Elements.
2897 2005-11-14 Arnaud Charlet <charlet@adacore.com>
2899 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
2900 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
2901 related code to a-exexpr.adb
2902 (Save_Occurrence_And_Private): Move GCC EH related code to
2904 (Raise_Current_Excep): Add new variable Id with pragma
2905 volatile, to ensure that the variable lives on stack.
2907 * a-exexpr-gcc.adb, raise-gcc.c: New file.
2909 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
2911 Move GCC EH related code to a-exexpr-gcc.adb
2913 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
2915 Split the Linux version of g-soccon into separate variants for 32 and 64
2917 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
2918 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
2919 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
2920 of host variable $(RANLIB_FLAGS).
2921 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
2922 Code clean up: remove unused/obsolete targets.
2923 (EH_MECHANISM): New variable introduced to differenciate between the
2924 two EH mechanisms statically.
2925 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
2926 (LIBGNAT_OBJS): Add raise-gcc.o
2927 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
2928 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
2929 supports VxWorks 6 RTPs.
2930 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
2931 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
2933 * raise.c: Move all GCC EH-related routines to raise-gcc.c
2935 2005-11-14 Jose Ruiz <ruiz@adacore.com>
2937 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
2938 deferral level, when abort is not allowed, to a later stage (the
2940 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
2941 it will not get changed by the generated code. It was previously done
2944 2005-11-14 Thomas Quinot <quinot@adacore.com>
2945 Olivier Hainque <hainque@adacore.com>
2946 Eric Botcazou <ebotcazou@adacore.com>
2949 Factor common code to build a storage type for an unconstrained object
2950 from a fat or thin pointer type and a constrained object type.
2951 (annotate_value): Handle BIT_AND_EXPR.
2952 (annotate_rep): Don't restrict the back annotation of inherited
2953 components to the type_annotate_only case.
2954 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
2955 we are not defining the type.
2956 <E_Record_Type>: Likewise.
2957 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
2958 to get advantage of the new maybe_stabilize_reference interface, to
2959 ensure that what we reference is indeed stabilized instead of relying
2960 on assumptions on what the stabilizer does.
2961 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
2962 type imported through a limited_with clause, use its non-limited view.
2963 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
2965 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
2966 of #if sections + explicit comparisons of convention identifiers.
2967 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
2968 before early-returning for certain types when code generation is
2970 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
2971 nullification of gnu_expr we do for objects with address clause and
2972 that we are not defining.
2973 (elaborate_expression_1): Do not create constants when creating
2974 variables needed by the debug info: the dwarf2 writer considers that
2975 CONST_DECLs is used only to represent enumeration constants, and emits
2977 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
2978 object with an address clause into an indirect reference, drop the
2979 initializing expression.
2981 (STACK_CHECK_BUILTIN): Delete.
2982 (STACK_CHECK_PROBE_INTERVAL): Likewise.
2983 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
2984 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
2985 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
2986 corresponding to the renamed object as ignored for debugging purposes.
2988 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
2989 related): For a prefix that is a dereference of a fat or thin pointer,
2990 if there is an actual subtype provided by the front-end, use that
2991 subtype to build an actual type with bounds template.
2992 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
2993 is provided by the front-end, use that subtype to compute the size of
2994 the deallocated object.
2995 (gnat_to_gnu): When adding a statement into an elaboration procedure,
2996 check for a potential violation of a No_Elaboration_Code restriction.
2997 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
2998 with extra arguments to control whether to recurse through non-values
2999 and to let the caller know if the stabilization has succeeded.
3000 (gnat_stabilize_reference): Now a simple wrapper around
3001 maybe_stabilize, for common uses without restriction on lvalues and
3002 without need to check for the success indication.
3003 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
3004 pass false instead of 0 as the FORCE argument which is a bool.
3005 (Identifier_to_gnu): Remove checks ensuring that an renamed object
3006 attached to a renaming pointer has been properly stabilized, as no such
3007 object is attached otherwise.
3008 (call_to_gnu): Invoke create_var_decl to create the temporary when the
3009 function uses the "target pointer" return mechanism.
3010 Reinstate conversion of the actual to the type of the formal
3011 parameter before any other specific treatment based on the passing
3012 mechanism. This turns out to be necessary in order for PLACEHOLDER
3013 substitution to work properly when the latter type is unconstrained.
3015 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
3017 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
3018 with extra arguments to control whether to recurse through non-values
3019 and to let the caller know if the stabilization has succeeded.
3021 * utils2.c (gnat_build_constructor): Only sort the fields for possible
3022 static output of record constructor if all the components are constant.
3023 (gnat_build_constructor): For a record type, sort the list of field
3024 initializers in increasing bit position order.
3025 Factor common code to build a storage type for an unconstrained object
3026 from a fat or thin pointer type and a constrained object type.
3027 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
3028 types variants, and process special cases of VIEW_CONVERT expressions
3029 as their NOP_EXPR counterpart to ensure we get to the
3030 CORRESPONDING_VARs associated with CONST_DECls.
3031 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
3032 on the right-hand side.
3034 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
3036 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
3037 are converting back to its original type.
3038 (convert) <JM input>: Fallthrough regular conversion code instead of
3039 extracting the object if converting to a type variant.
3040 (create_var_decl): When a variable has an initializer requiring code
3041 generation and we are at the top level, check for a potential violation
3042 of a No_Elaboration_Code restriction.
3043 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
3044 SIZE and SIZE_UNIT which we need for later back-annotations.
3045 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
3046 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
3047 is an unchecked union.
3048 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
3049 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
3050 main variant, just replace the VIEW_CONVERT_EXPR.
3051 <UNION_TYPE>: Revert 2005-03-02 change.
3053 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
3055 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
3057 2005-11-14 Matthew Heaney <heaney@adacore.com>
3059 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
3060 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
3061 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
3062 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
3063 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
3064 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
3065 Compiles against the spec for ordered maps described in sections
3066 A.18.6 of the most recent (August 2005) AI-302 draft.
3068 2005-11-14 Olivier Hainque <hainque@adacore.com>
3070 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
3071 to ensure bias adjustments take place when need be and to prevent
3072 occurrences of intermediate overflows.
3074 2005-11-14 Matthew Gingell <gingell@adacore.com>
3075 Olivier Hainque <hainque@adacore.com>
3077 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
3080 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
3081 tracebacks on ia64 HP-UX and provide explanatory comment.
3082 Enable backtraces on ia64 GNU/Linux.
3083 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
3084 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
3086 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
3087 Javier Miranda <miranda@adacore.com>
3089 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
3090 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
3091 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
3092 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
3094 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
3095 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
3098 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
3099 subprogram that generates the external name associated with a
3100 secondary dispatch table.
3101 (Get_Secondary_DT_External_Name): New subprogram that generates the
3102 external name associated with a secondary dispatch table.
3104 2005-11-14 Emmanuel Briot <briot@adacore.com>
3106 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
3107 line in the ALI file to include both an instantiation reference, and a
3110 2005-11-14 Vincent Celier <celier@adacore.com>
3112 * clean.adb (Check_Project): Look for Ada code in extending project,
3113 even if Ada is not specified as a language.
3114 Use new function DLL_Prefix for DLL_Name
3115 (Clean_Interface_Copy_Directory): New procedure
3116 (Clean_Library_Directory): New procedure
3117 (Clean_Directory): Remove procedure, no longer used
3118 (Clean_Project): Do not delete any file in an externally built project
3120 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
3121 directory of an extending project, even when there are no Ada source
3123 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
3124 (Set_Ada_Paths.Add.Recursive_Add): Ditto
3126 * mlib-prj.adb (Check_Library): For all library projects, get the
3127 library file timestamp.
3128 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
3129 (Build_Library): Use new function DLL_Prefix for the DLL_Name
3130 (Clean): Remove procedure, no longer used
3131 (Ultimate_Extension_Of): New function
3132 (Build_Library): When cleaning the library directory, only remove an
3133 existing library file and any ALI file of a source of the project.
3134 When cleaning the interface copy directory, remove any source that
3135 could be a source of the project.
3137 * prj.ads, prj.adb (Project_Empty): Add values of new components
3138 Library_TS and All_Imported_Projects.
3139 (Project_Empty): Add values for new components of Project_Data:
3140 Library_ALI_Dir and Display_Library_ALI_Dir
3142 * prj-attr.adb: New project level attribute name Library_ALI_Dir
3144 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
3145 attribute Library_ALI_Dir.
3146 (Check_Library_Attributes): The library directory cannot be the same as
3147 any source directory of the project tree.
3148 (Check_Stand_Alone_Library): The interface copy directory cannot be
3149 the same as any source directory of the project tree.
3151 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
3152 all temporary files.
3154 2005-11-14 Robert Dewar <dewar@adacore.com>
3155 Ed Schonberg <schonberg@adacore.com>
3157 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
3158 (Check_Elab_Call): A call within a protected body is never an
3159 elaboration call, and does not require checking.
3160 (Same_Elaboration_Scope): Take into account protected types for both
3162 (Activate_Elaborate_All_Desirable): New procedure
3164 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
3167 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
3168 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
3170 * lib-writ.ads, lib-writ.adb:
3171 Implement new AD/ED for Elaborate_All/Elaborate desirable
3172 Use new Elaborate_All_Desirable flag in N_With_Clause node
3174 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
3175 N_Free_Statement nodes.
3176 Define new class N_Subprogram_Instantiation
3177 Add Elaborate_Desirable flag to N_With_Clause node
3178 Add N_Delay_Statement (covering two kinds of delay)
3180 * debug.adb: Introduce d.f flag for compiler
3181 Add -da switch for binder
3183 2005-11-14 Ed Schonberg <schonberg@adacore.com>
3184 Cyrille Comar <comar@adacore.com>
3186 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
3187 for task component, in the case of a limited aggregate. The enclosed
3188 object declaration will create it earlier. Otherwise, in the case of a
3189 nested aggregate, the object may appear in the wrong scope.
3190 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
3191 (Gen_Assign): If the component being assigned is an array type and the
3192 expression is itself an aggregate, wrap the assignment in a block to
3193 force finalization actions on the temporary created for each row of the
3195 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
3196 structures are initialized after all discriminants are set so that
3197 they can be accessed even when their offset is dynamic.
3199 2005-11-14 Robert Dewar <dewar@adacore.com>
3200 Hristian Kirtchev <kirtchev@adacore.com>
3202 * sem_attr.adb: Implement Machine_Rounding attribute
3203 (Analyze_Access_Attribute): The access attribute may appear within an
3204 aggregate that has been expanded into a loop.
3205 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
3206 'Terminated whenever the prefix is of a task interface class-wide type.
3207 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
3208 the prefix is of a task interface class-wide type.
3210 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
3213 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
3214 Remove pragma Inline for [Unaligned_]Valid.
3215 Add comments that Valid routines do not work for Vax_Float
3217 * exp_attr.adb: Implement Machine_Rounding attribute
3219 * snames.h: Add entry for Machine_Rounding attribute
3221 2005-11-14 Javier Miranda <miranda@adacore.com>
3222 Robert Dewar <dewar@adacore.com>
3223 Hristian Kirtchev <kirtchev@adacore.com>
3225 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
3226 and related): For a prefix that is an explicit dereference of an
3227 access to unconstrained packed array type, annotate the dereference
3228 with an actual subtype so GIGI can make a correct size computation.
3229 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
3230 'Unrestricted_Access, if the designated type is an interface we
3231 add a type conversion to force the displacement of the pointer
3232 to the secondary dispatch table.
3233 Use Universal_Real instead of Long_Long_Float when we need a high
3234 precision float type for the generated code (prevents gratuitous
3235 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
3236 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
3237 'Terminated for task interface class-wide objects. Generate a call to
3238 the predefined dispatching routine used to retrieve the _task_id from
3239 a task corresponding record.
3240 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
3242 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
3243 (Check_Dispatching_Operation): Protect the frontend againts
3244 previously detected errors.
3246 * Makefile.rtl: Add new instantiations of system.fat_gen
3248 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
3249 Change name of instantiated package for better consistency
3250 with newly added system.fat_gen instantiations.
3252 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
3253 s-fvagfl.ads: New files.
3255 2005-11-14 Cyrille Comar <comar@adacore.com>
3256 Thomas Quinot <quinot@adacore.com>
3258 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
3259 assignment of a value of a tagged type that has been rewritten to a
3260 block statement, it is known by construction that no checks are
3261 necessary for the statements within the block: analyze it with checks
3263 (Expand_N_If_Statement): When killing a dead then-branch in an
3264 if-statement that has elsif_parts, recompute the Current_Value node
3265 for any entity whose value is known from the condition of the first
3267 (Expand_N_Return_Statement): When returning a mutable record, convert
3268 the return value into its actual subtype in order to help the backend
3269 to return the actual size instead of the maximum. This is another
3270 aftermath of not returning mutable records on the sec-stack anymore.
3272 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
3273 handling of error msg for suspicious reverse range iteration.
3274 (Check_Possible_Current_Value_Condition): Move declaration from body to
3275 spec, to allow this subprogram to be called from exp_ch5.
3277 2005-11-14 Thomas Quinot <quinot@adacore.com>
3279 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
3280 generate a set of nested array aggregates instead of a single flat
3281 aggregate for multi-dimensional arrays.
3283 2005-11-14 Pascal Obry <obry@adacore.com>
3285 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
3286 by spawnve is a process handle, no need to convert. Add a parameter
3287 close to control wether the process handle must be closed.
3288 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
3289 a process handle, not need to convert.
3290 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
3292 * g-expect.adb: (Kill): Document the new close parameter.
3293 (Close): Do not release the process handle in the kill there as
3294 waitpid() is using it.
3295 (Send_Signal): Release the process handle.
3297 2005-11-14 Robert Dewar <dewar@adacore.com>
3299 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
3300 need a high precision float type for the generated code (prevents
3301 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
3304 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
3305 need a high precision float type for the generated code (prevents
3306 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
3308 (Expand_Width_Attribute): In configurable run-time, the attribute is not
3309 allowed on non-static enumeration subtypes. Force a load error to emit
3310 the correct diagnostic.
3312 2005-11-14 Thomas Quinot <quinot@adacore.com>
3313 Robert Dewar <dewar@adacore.com>
3314 Ed Schonberg <schonberg@adacore.com>
3316 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
3317 subtype to compute the size of the designated object at run-time,
3318 create such a subtype and store it in the Actual_Designated_Subtype
3319 attribute of the N_Free_Statement.
3320 Generate itype for classwide designated object in both cases of
3321 user-specified storage pool: specific and class-wide, not only in the
3323 Raise CE when trying to set a not null access type object to null.
3324 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
3325 an explicit loop, because freeze nodes make its position variable.
3327 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
3330 2005-11-14 Javier Miranda <miranda@adacore.com>
3332 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
3333 Build_Stream_Procedure): Add the null-excluding attribute to the first
3335 This has no semantic meaning under Ada95 mode but it is a
3336 requirement under Ada05 mode.
3338 * par-ch3.adb (P_Access_Definition): Addition of warning message if
3339 the null exclusion is used under Ada95 mode
3340 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
3341 (P_Access_Definition): Remove assertion that forbids the use of
3342 the null-exclusion feature in Ada95.
3344 2005-11-14 Robert Dewar <dewar@adacore.com>
3346 * impunit.adb: Exclude container helper units not intended for use by
3349 2005-11-14 Ed Schonberg <schonberg@adacore.com>
3351 * freeze.adb (Freeze_Entity): For an access formal that is an access
3352 to subprogram, freeze the anonymous subprogram type at the same time,
3353 to prevent later freezing in the wrong scope, such as the enclosing
3355 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
3356 subprogram whenever available.
3358 2005-11-14 Arnaud Charlet <charlet@adacore.com>
3361 * gnatvsn.ads (Library_Version): Bump to 4.1
3363 2005-11-14 Robert Dewar <dewar@adacore.com>
3365 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
3366 Storage_Offset to avoid wrap around causing invalid results.
3368 2005-11-14 Pascal Obry <obry@adacore.com>
3370 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
3372 (Scan_Bind_Arg): Fail with an error message if -M option is used
3373 on a native compiler.
3375 2005-11-14 Robert Dewar <dewar@adacore.com>
3376 Vincent Celier <celier@adacore.com>
3378 * gprep.adb: Implement -C switch to scan comments
3380 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
3382 * scans.ads: Comment updates (including new use of Tok_Comment in
3385 * opt.ads: Add documentation for flags that are used by gprmake,
3386 currently and in the next version of gprmake.
3387 (Verbosity_Level): New variable
3388 Add Replace_In_Comments switch
3390 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
3392 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
3394 2005-11-14 Arnaud Charlet <charlet@adacore.com>
3396 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
3397 message, friendlier.
3399 2005-11-14 Robert Dewar <dewar@adacore.com>
3401 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
3403 2005-11-14 Doug Rupp <rupp@adacore.com>
3405 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
3407 2005-11-14 Robert Dewar <dewar@adacore.com>
3409 * interfac.ads: Change declarations of IEEE float types so that we no
3410 longer need a separate version of this package for VMS.
3412 2005-11-14 Ed Schonberg <schonberg@adacore.com>
3414 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
3415 internal entity created for the declaration of a child subprogram body
3416 with no spec as coming from source, to generate proper cross-reference
3419 2005-11-14 Vincent Celier <celier@adacore.com>
3421 * make.adb (Compile_Sources): Change verbose message to minimum
3422 verbosity level High for "is in an Ada library", "is a read-only
3423 library" and "is an internal library",
3424 (Create_Binder_Mapping_File): Path name of ALI file for library project
3425 must include the library directory, not the object directory.
3426 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
3427 for new switches -vl, -vm and -vh.
3428 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
3429 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
3430 (Compile_Sources): Do not attempt to compile if an ALI file is missing
3431 in a project that is externally built.
3432 (Compute_All_Imported_Projects): New procedure
3433 (Gnatmake): Check if importing libraries should be regenerated because
3434 at least an imported library is more recent.
3435 (Initialize): For each project compute the list of the projects it
3436 imports directly or indirectly.
3437 (Add_Library_Search_Dir): New procedure, used in place of
3438 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
3439 put in the search paths.
3440 (Add_Source_Search_Dir): New procedure, used in place of
3441 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
3442 put in the search paths.
3443 (Mark_Directory): Resolve the absolute path the directory before marking
3446 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
3447 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
3448 Switch. Do not handle any exception.
3449 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
3450 so that the switch is recognized as valid.
3451 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
3453 2005-11-14 GNAT Script <nobody@adacore.com>
3455 * Make-lang.in: Makefile automatically updated
3457 2005-11-14 Pascal Obry <obry@adacore.com>
3459 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
3461 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
3462 In both cases the last argument was dropped.
3464 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
3466 * namet.h: (Column_Numbe): New type.
3467 (Get_Column_Number): Define to sinput__get_column_number.
3468 (Instantiation): Define to sinput__instantiation.
3469 (Get_Column_Number): Declare.
3470 (Instantiation): Likewise.
3472 2005-11-14 Robert Dewar <dewar@adacore.com>
3474 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
3475 syntax, which could cause compiler hangs.
3477 2005-11-14 Vincent Celier <celier@adacore.com>
3479 * prj-ext.adb: Take into account new environment variable
3480 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
3482 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
3483 normalize its path name, making it absolute and resolving symbolic
3484 links, and replace the original if resolved path is different.
3486 2005-11-14 Vincent Celier <celier@adacore.com>
3488 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
3489 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
3491 2005-11-14 Emmanuel Briot <briot@adacore.com>
3493 * prj-pp.adb (Print): Do not output the with statement if the
3494 associated name is empty, which happens for virtual extending projects.
3495 (Print): Preserve the "extends all" attribute when printing the project.
3497 * prj-tree.ads (String_Value_Of): Add comment about returned value for
3498 a virtual extending project.
3500 2005-11-14 Ed Schonberg <schonberg@adacore.com>
3502 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
3503 rhs of an assignment even if the type is unconstrained, when the
3504 context is non-expanding.
3505 In an inlined body, if the context type is private,
3506 resolve with its full view, which must be a composite type.
3508 2005-11-14 Robert Dewar <dewar@adacore.com>
3509 Ed Schonberg <schonberg@adacore.com>
3511 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
3512 Do not give obsolescent warning on with of subprogram (since we
3514 (Analyze_With_Clause): Add test for obsolescent package
3515 (Install_Context_Clauses): If the unit is the body of a child unit, do
3516 not install twice the private declarations of the parents, to prevent
3517 circular lists of Use_Clauses in a parent.
3518 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
3519 compiling body of child unit.
3520 Use new class N_Subprogram_Instantiation
3521 (Expand_With_Clause): If this is a private with_clause for a child unit,
3522 appearing in the context of a package declaration, then the implicit
3523 with_clauses generated for parent units are private as well.
3524 (License_Check): Do not generate message if with'ed unit is internal
3526 2005-11-14 Gary Dismukes <dismukes@adacore.com>
3527 Ed Schonberg <schonberg@adacore.com>
3528 Thomas Quinot <quinot@adacore.com>
3530 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
3531 names are internal, because they will not have a corresponding partner
3532 in the actual package.
3533 (Analyze_Formal_Package): Move the setting of the formal package spec's
3534 Generic_Parent field so that it occurs prior to analyzing the package,
3535 to allow proper operation of Install_Parent_Private_Declarations.
3536 (Analyze_Package_Instantiation): Set the instantiated package entity's
3537 Package_Instantiation field.
3538 (Get_Package_Instantiation_Node): Move declaration to package spec.
3539 Retrieve the N_Package_Instantiation node when the Package_Instantiation
3541 (Check_Generic_Child_Unit): Within an inlined call, the only possible
3542 instantiation is Unchecked_Conversion, for which no parents are needed.
3543 (Inline_Instance_Body): Deinstall and record the use_clauses for all
3544 parent scopes of a scope being removed prior to inlining an instance
3546 (Analyze_Package_Instantiation): Do not perform front-end inlining when
3547 the current context is itself an instance within a non-instance child
3548 unit, to prevent scope stack errors.
3549 (Save_References): If the node is an aggregate that is an actual in a
3550 call, rewrite as a qualified expression to preserve some type
3551 information, to resolve possible ambiguities in the instance.
3552 (Instance_Parent_Unit): New global variable to record the ultimate
3553 parent unit associated with a generic child unit instance (associated
3554 with the existing Parent_Unit_Visible flag).
3555 (type Instance_Env): New component Instance_Parent_Unit for stacking
3556 parents recorded in the global Instance_Parent_Unit.
3557 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
3559 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
3560 it's not a top-level unit, and only do this if Instance_Parent_Unit is
3561 not already set. Replace test of Is_Child_Unit with test of parent's
3562 scope against package Standard. Add comments and a ??? comment.
3563 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
3564 on a child instance parent to test that the parent equals
3565 Instance_Parent rather than simply checking that the unit is not a
3567 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
3568 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
3569 a formal interface are ancestors of the corresponding actual.
3570 (Validate_Formal_Interface_Type): Additional legality checks.
3571 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
3572 interface types with ancestors.
3573 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
3574 to diagnose attempts to use generic within its own declaration.
3576 2005-11-14 Ed Schonberg <schonberg@adacore.com>
3577 Javier Miranda <miranda@adacore.com>
3579 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
3581 (Build_Private_Derived_Type): The entity of the created full view of the
3582 derived type does not come from source. If after installing the private
3583 declarations of the parent scope the parent is still private, use its
3584 full view to construct the full declaration of the derived type.
3585 (Build_Derived_Record_Type): Relax the condition that controls the
3586 execution of the check that verifies that the partial view and
3587 the full view agree in the set of implemented interfaces. In
3588 addition, this test now only takes into account the progenitors.
3589 (Derive_Interface_Subprograms): No need to derive subprograms
3590 of ancestors that are interfaces.
3591 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
3593 Change name Is_Package to Is_Package_Or_Generic_Package
3594 (Complete_Subprograms_Derivation): Handle the case in which the full
3595 view is a transitive derivation of the ancestor of the partial view.
3596 (Process_Full_View): Rename local subprogram Find_Interface_In_
3597 Descendant to Find_Ancestor_Interface to leave the code more clear.
3598 Remove wrong code that avoids the generation of an error message
3599 when the immediate ancestor of the partial view is an interface.
3600 In addition some minor reorganization of the code has been done to
3601 leave it more clear.
3602 (Analyze_Type_Declaration): If type has previous incomplete tagged
3603 partial view, inherit properly its primitive operations.
3604 (Collect_Interfaces): Make public, for analysis of formal
3606 (Analyze_Interface_Declaration): New procedure for use for regular and
3607 formal interface declarations.
3608 (Build_Derived_Record_Type): Add support for private types to the code
3609 that checks if a tagged type implements abstract interfaces.
3610 (Check_Aliased_Component_Type): The test applies in the spec of an
3612 (Access_Type_Declaration): Clean up declaration of malformed type
3613 declared as an access to its own classwide type, to prevent cascaded
3615 (Collect_Interfaces): For private extensions and for derived task types
3616 and derived protected types, the parent may be an interface that must
3617 be included in the interface list.
3618 (Access_Definition): If the designated type is an interface that may
3619 contain tasks, create Master_Id for it before analyzing the expression
3620 of the declaration, which may be an allocator.
3621 (Record_Type_Declaration): Set properly the interface kind, for use
3622 in allocators, the creation of master id's for task interfaces, etc.
3624 2005-11-14 Javier Miranda <miranda@adacore.com>
3625 Ed Schonberg <schonberg@adacore.com>
3627 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
3628 omitted in case of stream attribute subprograms.
3629 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
3630 appear immediately after a subprogram body, when there is no previous
3631 subprogram declaration.
3632 Change name Is_Package to Is_Package_Or_Generic_Package
3633 (Process_Formals): A non null qualifier on a non null named access
3634 type is not an error, and is a warning only if Redundant_Constructs
3637 2005-11-14 Gary Dismukes <dismukes@adacore.com>
3638 Ed Schonberg <schonberg@adacore.com>
3640 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
3641 nested within Analyze_Package_Specification to install the private
3642 declarations and use clauses within each of the parent units of a
3643 package instance of a generic child package.
3644 (Analyze_Package_Specification): When entering a private part of a
3645 package associated with a generic instance or formal package, the
3646 private declarations of the parent must be installed (by calling new
3647 procedure Install_Parent_Private_Declarations).
3648 Change name Is_Package to Is_Package_Or_Generic_Package
3649 (Preserve_Full_Attributes): For a synchronized type, the corresponding
3650 record is absent in a generic context, which does not indicate a
3653 2005-11-14 Ed Schonberg <schonberg@adacore.com>
3655 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
3656 not try to rewrite a renamed stream attribute, because the operations
3657 on the type may not have been generated.
3658 Handle properly a renaming_as_body generated for a stream operation
3659 whose default is abstract because the object type itself is abstract.
3660 (Find_Type): If the type is incomplete and appears as the prefix of a
3661 'Class reference, it is tagged, and its list of primitive operations
3662 must be initialized properly.
3663 (Chain_Use_Clauses): When chaining the use clauses that appear in the
3664 private declaration of a parent unit, prior to compiling the private
3665 part of a child unit, find on the scope stack the proper parent entity
3666 on which to link the use clause.
3667 (Note_Redundant_Use): Emit a warning when a redundant use clause is
3669 (Analyze_Object_Renaming): An attribute reference is not a legal object
3670 if it is not a function call.
3672 2005-11-14 Robert Dewar <dewar@adacore.com>
3673 Ed Schonberg <schonberg@adacore.com>
3675 * sem_eval.adb: Implement d.f flag
3676 (Subtype_Statically_Match): A generic actual type has unknown
3677 discriminants when the corresponding actual has a similar partial view.
3678 If the routine is called to validate the signature of an inherited
3679 operation in a child instance, the generic actual matches the full view,
3681 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
3682 Ed Schonberg <schonberg@adacore.com>
3683 Robert Dewar <dewar@adacore.com>
3684 Thomas Quinot <quinot@adacore.com>
3686 * sem_res.adb (Resolve_Call): Provide a better error message whenever
3687 a procedure call is used as a select statement trigger and is not an
3688 entry renaming or a primitive of a limited interface.
3689 (Valid_Conversion): If the operand has a single interpretation do not
3690 remove address operations.
3691 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
3692 statement to inhibit warning.
3693 (Resolve_Unary_Op): Do not produce a warning when
3694 processing an expression of the form -(A mod B)
3695 Use Universal_Real instead of Long_Long_Float when we need a high
3696 precision float type for the generated code (prevents gratuitous
3697 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
3698 (Resolve_Concatenation_Arg): Improve error message when argument is an
3699 ambiguous call to a function that returns an array.
3700 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
3701 there is an implicit operator in the given scope if we are within an
3702 instance: legality check has been performed on the generic.
3703 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
3704 after resolving operand, to avoid false warnings on overloaded calls.
3706 2005-11-14 Ed Schonberg <schonberg@adacore.com>
3707 Javier Miranda <miranda@adacore.com>
3710 * sem_type.adb (Covers): In an inlined body, a composite type matches
3711 a private type whose full view is a composite type.
3712 (Interface_Present_In_Ancestor): Protect the frontend against
3713 previously detected errors to ensure that its compilation
3714 with assertions enabled gives the same output that its
3715 compilation without assertions.
3716 (Interface_Present_In_Ancestor): Add support for private types.
3717 Change name In_Actual to In_Generic_Actual (clean up)
3718 (Disambiguate): New predicate In_Actual, to recognize expressions that
3719 appear in the renaming declaration generated for generic actuals, and
3720 which must be resolved in the outer context.
3722 2005-11-14 Robert Dewar <dewar@adacore.com>
3723 Thomas Quinot <quinot@adacore.com>
3724 Hristian Kirtchev <kirtchev@adacore.com>
3725 Ed Schonberg <schonberg@adacore.com>
3727 * sem_util.ads, sem_util.adb: Change name Is_Package to
3728 Is_Package_Or_Generic_Package.
3729 (Check_Obsolescent): New procedure.
3730 (Set_Is_Public): Remove obsolete junk test.
3731 (Set_Public_Status): Do not set Is_Public on an object whose declaration
3732 occurs within a handled_sequence_of_statemets.
3733 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
3734 for a parameterless procedure.
3735 (Enter_Name): Recognize renaming declarations created for private
3736 component of a protected type within protected operations, so that
3737 the source name of the component can be used in the debugger.
3739 2005-11-14 Ed Schonberg <schonberg@adacore.com>
3740 Robert Dewar <dewar@adacore.com>
3742 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
3743 of a generic subprogram are not visible outside the body.
3744 (Set_Warning_Switch): New procedure (code to set warning mode moved
3745 here from Switch.C so that it can be shared by pragma processing.
3746 (Check_References): Special case warning for non-modified non-imported
3748 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
3749 form with a string literal argument
3751 2005-11-14 Javier Miranda <miranda@adacore.com>
3753 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
3755 (Write): Addition of "not null" to the anonymous access.
3756 (Read): Addition of "not null" to the anonymous access.
3757 (Write): Addition of "not null" to the anonymous access.
3759 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
3760 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
3761 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
3762 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
3763 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
3764 "not null" to the anonymous access.
3766 2005-11-14 Robert Dewar <dewar@adacore.com>
3768 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
3771 2005-11-14 Vincent Celier <celier@adacore.com>
3773 * switch.adb (Bad_Switch): New procedure
3774 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
3775 message when in error.
3777 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
3778 Too_Many_Output_Files): Remove declarations, no longer used.
3779 (Scan_Nat): New parameter Switch
3781 (Bad_Switch): New procedure
3783 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
3784 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
3785 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
3786 to Osint.Fail. Do not handle any exception.
3788 2005-11-14 Vincent Celier <celier@adacore.com>
3790 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
3791 designates a non existent directory.
3793 2005-11-14 Robert Dewar <dewar@adacore.com>
3795 * xgnatugn.adb: Replace invalid membership test by 'Valid
3797 2005-11-14 Vincent Celier <celier@adacore.com>
3799 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
3800 there is no object directory.
3802 2005-11-14 Robert Dewar <dewar@adacore.com>
3804 * usage.adb: Minor adjustment to output format, use nn instead of nnn
3805 (so that -gnateInnn does not run into next column)
3807 2005-11-14 Ed Falis <falis@adacore.com>
3809 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
3812 2005-11-14 Cyrille Comar <comar@adacore.com>
3814 * s-chepoo.ads: Add comments on Dereference.
3815 Remove unnecessary inherited abstract primitives.
3818 2005-11-14 Robert Dewar <dewar@adacore.com>
3820 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
3821 node parameter, not needed, since it is available as Declaration_Node.
3823 2005-11-14 Geert Bosch <bosch@adacore.com>
3825 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
3826 grammatically correct.
3828 2005-11-14 Vincent Celier <celier@adacore.com>
3830 * s-fileio.ads: Correct spelling error in comment
3832 2005-11-14 Cyrille Comar <comar@adacore.com>
3833 Robert Dewar <dewar@adacore.com>
3834 Vincent Celier <celier@adacore.com>
3835 Ben Brosgol <brosgol@adacore.com>
3836 Jose Ruiz <ruiz@adacore.com>
3837 Pascal Obry <obry@adacore.com>
3840 Document that -fstack-check is needed for strict compliance with the
3841 Ada 95 Reference Manual.
3842 Correct reference to VAX systems to meet HP guidelines
3843 Add documentation for new gnatmake switches -vl, -vm and -vh
3844 Replace DEC Ada by HP Ada
3845 Replace DIGITAL by HP
3846 Remove empty section on tools in compatibility section
3847 Clarify the Windows convention semantics.
3848 Document the Win32 calling convention.
3849 The Stdcall, Win32 and DLL convention are synonyms.
3850 Add a note in -gnatR description about zero size record components
3851 Note on new >= and <= warnings for -gnatwc
3852 Document that equal sign after -gnatm is optional.
3853 Note that strip is working fine on DLL built with a Library
3854 Project. The restriction apply only to DLL built with gnatdll.
3855 Update section about the way to debug a DLL.
3856 Update information about the DLL convention.
3857 Document -C switch for gnatprep
3858 Document new attribute Library_ALI_Dir
3859 Update elaboration doc to include implicit Elaborate pragmas now
3860 generated for subprogram instantiations.
3861 Document limitation on executable names that include spaces for --GCC,
3862 --GNATBIND, and --GNATLINK switches.
3863 Document that -w causes -gnatws to be added at start of gcc switches
3865 * gnat_rm.texi: Document that -mieee is needed for generating infinite
3866 and NaN values in case of overflow on machines that are not fully
3867 compliant with the IEEE floating-point standard.
3868 Create a section describing the set of compiler options needed for
3869 strict compliance with the Ada 95 Reference Manual.
3870 Add documentation for pragma Obsolescent applied to a package
3871 Clarify potential issues of mixed language programs related to the
3872 I/O buffering enabling in the elaboration of the GNAT runtime.
3873 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
3874 This documentation only patch adds extra documentsion for pragma
3875 Restrictions (No_Elaboration_Code), explaining why it is not possible
3876 to document this restriction in terms of allowed source constructs.
3877 Document string literal form of pragma Warnings
3878 Document new attribute Library_ALI_Dir
3879 Add documentation on stable attributes in project files that was missing
3881 * gnat-style.texi: Indicate that paragraphs within a single comment
3882 should be separated by empty comment lines
3884 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
3887 * bindusg.adb: Minor cleanup, put -m before -M for consistency
3889 2005-11-14 Robert Dewar <dewar@adacore.com>
3891 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
3892 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
3893 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
3894 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
3895 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
3896 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
3897 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
3898 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
3899 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
3900 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
3901 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
3902 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
3903 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
3904 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
3905 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
3906 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
3907 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
3908 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
3909 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
3910 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
3911 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
3912 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
3913 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
3914 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
3915 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
3916 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
3917 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
3918 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
3919 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
3920 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
3921 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
3922 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
3923 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
3924 system-interix.ads, system-solaris-sparc.ads,
3925 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
3926 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
3927 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
3928 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
3929 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
3930 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
3931 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
3932 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
3933 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
3934 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
3935 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
3936 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
3937 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
3938 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
3939 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
3940 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
3941 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
3942 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
3943 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
3944 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
3945 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
3946 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
3947 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
3948 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
3949 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
3950 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
3951 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
3952 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
3953 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
3954 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
3955 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
3956 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
3957 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
3958 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
3959 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
3960 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
3961 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
3962 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
3963 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
3964 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
3965 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
3966 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
3967 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
3968 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
3969 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
3970 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
3971 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
3972 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
3973 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
3974 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
3975 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
3976 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
3977 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
3978 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
3979 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
3980 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
3981 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
3982 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
3983 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
3984 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
3985 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
3986 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
3987 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
3988 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
3989 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
3990 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
3991 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
3992 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
3993 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
3994 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
3995 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
3996 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
3997 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
3998 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
3999 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
4000 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
4001 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
4002 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
4003 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
4004 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
4005 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
4006 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
4007 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
4008 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
4009 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
4010 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
4011 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
4012 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
4013 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
4014 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
4015 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
4016 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
4017 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
4018 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
4019 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
4020 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
4021 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
4022 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
4023 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
4024 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
4025 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
4026 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
4027 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
4028 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
4029 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
4030 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
4031 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
4032 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
4033 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
4034 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
4035 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
4036 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
4037 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
4038 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
4039 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
4040 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
4041 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
4042 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
4043 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
4044 a-numaux-darwin.ads, a-numaux-darwin.adb,
4045 a-swuwha.ads, a-stunha.ads: Minor reformatting
4047 2005-11-14 Robert Dewar <dewar@adacore.com>
4050 * osint-m.adb: Add pragma Elaborate_All for Osint
4052 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
4055 * trans.c (call_to_gnu): Restore statement lost in translation.
4057 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
4059 * init.c: Use the Linux-specific section for the IA-64/Linux target.
4060 (__gnat_adjust_context_for_raise): Add conditional code so that the
4061 IA-64 is also supported.
4063 2005-11-03 James E Wilson <wilson@specifix.com>
4066 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
4067 TREE_OVERFLOW check.
4069 2005-09-21 Olivier Hainque <hainque@adacore.com>
4072 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
4073 as we create them to store a size in bits.
4075 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
4083 * utils2.c (build_return_expr): New helper function.
4084 * gigi.h (build_return_expr): Declare it.
4085 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
4086 of manually building the RETURN_EXPR tree.
4087 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
4088 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
4089 build_binary_op for the "target pointer" case. Use build_return_expr
4090 instead of manually building the RETURN_EXPR tree.
4092 2005-09-16 Laurent GUERBY <laurent@guerby.net>
4095 * s-tpinop.ads: Make this unit Preelaborate.
4097 2005-09-16 Andreas Jaeger <aj@suse.de>
4099 * socket.c: Add string.h for memcpy.
4101 2005-09-05 Arnaud Charlet <charlet@adacore.com>
4103 * dec-io.ads, dec-io.adb: Removed, no longer used.
4105 2005-09-01 Arnaud Charlet <charlet@adacore.com>
4107 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
4109 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
4110 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
4111 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
4112 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
4113 dependent units are Preelaborate.
4114 (Initialize): Call Interrupt_Managemeent.Initialize and
4115 OS_Primitives.Initialize to ensure proper initialization of this unit.
4116 Remove use of System.Soft_Links
4117 Make this unit Preelaborate.
4119 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
4120 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
4121 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
4122 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
4123 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
4124 s-tratas.ads, s-tasinf.ads: Minor reformatting.
4125 Add pragma Preelaborate, since these packages are suitable for this
4129 * s-traent-vms.ads, s-intman-dummy.adb,
4130 s-taprop-dummy.adb: Make this unit Preelaborate.
4132 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
4133 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
4134 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
4135 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
4136 s-intman-solaris.adb, s-intman-irix-athread.adb,
4137 s-intman-irix.adb: Mark this unit Preelaborate.
4138 (Initialize): New procedure.
4141 * s-taspri-linux.ads: Removed.
4143 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
4144 as done by other implementations (e.g. posix).
4146 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
4147 responsible for deferring abort.
4148 Mark this unit Preelaborate.
4150 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
4151 proper initialization of the tasking run-time.
4153 * s-tasdeb.ads: Mark this unit Preelaborate.
4154 (Known_Tasks): Add explicit default value to avoid elaboration code.
4156 * s-inmaop-vms.adb (Elaboration code): Add call to
4157 Interrupt_Management.Initialize since the elaboration code depends on
4158 proper initialization of this package.
4160 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
4161 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
4162 s-osprim-posix.adb: Make this unit Preelaborate.
4164 * a-calend.adb: Add call to OS_Primitives.Initialize
4166 * a-elchha.adb: Update use of Except.Id.Full_Name.
4168 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
4170 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
4171 Move with clauses outside Warnings Off now that dependent units are
4173 Use raise xxx with "..."; Ada 2005 form.
4175 * a-taside.ads, a-taside.adb:
4176 Remove some dependencies, to make it easier to make this unit truly
4178 Rewrite some code to be conformant with Preelaborate rules.
4180 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
4181 marked Preelaborate in the future.
4183 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
4184 these units Preelaborate.
4186 * s-exctab.adb: Update use of Except.Id.Full_Name.
4188 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
4189 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
4190 Set_Exc_Stack_Addr): Removed, no longer used.
4191 Remove reference to *Machine_State_Addr*, no longer needed.
4193 * s-stalib.ads: Mark this unit as Preelaborate[_05].
4194 (Exception_Data): Full_Name is now a System.Address so that this unit
4195 can be made Preelaborate.
4196 Clean up/simplify code thanks to Full_Name being a System.Address.
4197 Remove obsolete pragma Suppress (All_Checks), no longer needed.
4199 * s-taskin.ads, s-taskin.adb:
4200 Move with clauses outside Warnings Off now that dependent units are
4202 Make this unit Preelaborate.
4203 (Initialize): New proceduure, replace elaboration code and makes the
4204 set up of the tasking run-time cleaner.
4205 (Detect_Blocking): Now a function instead of a deferred boolean, to
4206 obey Preelaborate rules.
4208 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
4209 soft links, no longer used.
4211 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
4212 packages are suitable for this categorization.
4214 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
4215 since we compile run-time sources in Ada 2005 mode.
4216 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
4217 avoid having s-taprop*.adb depend on s-soflin and to avoid code
4219 Remove reference to *Machine_State_Addr*, no longer needed.
4221 2005-09-01 Arnaud Charlet <charlet@adacore.com>
4223 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
4224 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
4225 Remove reference to System.Exceptions.
4227 * s-mastop-x86.adb: Removed, no longer used.
4229 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
4231 * a-excach.adb: Minor reformatting.
4233 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
4234 instead fix new warnings that were hidden by this change.
4235 (AAA, ZZZ): Removed, replaced by...
4236 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
4237 are used instead of constants, to help make Ada.Exception truly
4239 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
4240 Raise_Storage_Error): File is now a System.Address, to simplify code.
4241 (Elab code): Removed, no longer used.
4242 (Null_Occurrence): Remove Warnings Off and make this construct
4244 Remove code related to front-end zero cost exception handling, since
4245 it is no longer used.
4246 Remove -gnatL/-gnatZ switches.
4248 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
4249 Update use of Except.Msg.
4251 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
4252 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
4253 to front-end zero cost exception handling, since it is no longer used.
4254 Remove -gnatL/-gnatZ switches.
4256 * lib-writ.ads: Minor reformatting
4259 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
4261 * Make-lang.in: Remove references to s-except.ads
4263 * s-except.ads: Removed, no longer used.
4265 * s-mastop.ads, s-mastop.adb:
4266 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
4267 Remove reference to System.Exceptions.
4269 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
4270 switch-b.adb: Remove code related to front-end zero cost exception
4271 handling, since it is no longer used.
4272 Remove -gnatL/-gnatZ switches.
4274 2005-09-01 Robert Dewar <dewar@adacore.com>
4275 Gary Dismukes <dismukes@adacore.com>
4276 Javier Miranda <miranda@adacore.com>
4278 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
4279 type by valid test and generate warning.
4280 (Tagged_Membership): Generate call to the run-time
4281 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
4282 Change formal name Subtype_Mark to Result_Definition in several calls to
4283 Make_Function_Specification.
4284 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
4285 check for proper accessibility of the operand of a class-wide allocator.
4286 The check can be left out if checks are suppressed or if the expression
4287 has a specific tagged type whose level is known to be safe.
4289 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
4290 generates the run-time check associated with null-excluding entities.
4291 (Expand_N_Return_Statement): Add tests to determine if the accessibility
4292 check on the level of the return expression of a class-wide function
4293 can be elided. The check usually isn't needed if the expression has a
4294 specific type (unless it's a conversion or a formal parameter). Also
4295 add a test for whether accessibility checks are suppressed. Augment
4296 the comments to describe the conditions for performing the check.
4298 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
4299 Javier Miranda <miranda@adacore.com>
4300 Gary Dismukes <dismukes@adacore.com>
4301 Ed Schonberg <schonberg@adacore.com>
4303 * a-tags.adb (IW_Membership): Give support to
4304 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
4305 subprogram has been extended to look for the tag in the ancestors tag
4307 Update the structure of the GNAT Dispatch Table to reflect the
4308 additional two tables used in dispatching selects.
4309 Introduce appropriate array types and record components in
4310 Type_Specific_Data to reflect the two tables.
4311 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
4312 the TSD of a tag, indexed by position.
4313 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
4314 operation kind in the TSD of a tag, indexed by position.
4316 * a-tags.ads: Introduce an enumeration type to capture different
4317 primitive operation kinds. Define a constant reflecting the number of
4318 predefined primitive operations.
4319 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
4320 of an entry wrapper.
4321 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
4322 callable entity of a primitive operation.
4324 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
4325 primitive operations used in dispatching selects for limited
4326 interfaces, limited tagged, task and protected types what implement a
4328 (Freeze_Type): Generate the bodies of the primitive operations used in
4329 dispatching selects for limited tagged, task and protected types that
4330 implement a limited interface. Generate statements to populate the two
4331 auxiliary tables used for dispatching in select statements.
4332 (Freeze_Record_Type): Add call to initialize the dispatch table entries
4333 associated with predefined interface primitive operations.
4334 (Build_Dcheck_Function): Change Set_Subtype_Mark to
4335 Set_Result_Definition.
4336 (Build_Variant_Record_Equality): Change Subtype_Mark to
4338 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
4339 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
4340 (Build_Assignment): Simplify the code that adds the run-time-check.
4341 (Expand_N_Object_Declaration): Code cleanup.
4343 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
4344 entries when there is a protected type that implements a limited
4347 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
4348 common routines used in expansion of dispatching selects.
4349 (Add_Private_Declarations): Select the appropriate protection type when
4350 there is a protected type that implements a limited interface.
4351 (Build_Parameter_Block): Generate a wrapped parameter block.
4352 (Build_Protected_Subprogram_Body): Select the appropriate type for
4353 locking entries when there is a protected type that implements a
4355 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
4356 classified as entry wrappers.
4357 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
4358 asynchronous selects.
4359 (Expand_N_Conditional_Entry_Call): Add support for expansion of
4360 dispatching conditional selects.
4361 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
4362 protection when there is a protected type that implements limited
4364 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
4366 (Extract_Dispatching_Call): Extract the entity of the name of a
4367 dispatching call, the object parameter, actual parameters and
4368 corresponding formals.
4369 (Make_Initialize_Protection): Correct logic of protection initialization
4370 when there is a protected type that implements a limited interface.
4371 (Parameter_Block_Pack): Populate a wrapped parameter block with the
4372 values of actual parameters.
4373 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
4374 block and assign them to the original actual parameters.
4376 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
4377 (Build_Protected_Sub_Specification): Change the type and name of the
4378 last formal to account for the increased variety of protection modes.
4380 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
4381 entities. Used to save the value of the Is_Hidden attribute when the
4382 limited-view is installed.
4383 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
4384 the attribute of procedures classified as entry wrappers.
4385 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
4386 entity of a primitive wrapper.
4387 (Write_Entity_Flags): Output the name and value of the
4388 Is_Primitive_Wrapper attribute.
4389 (Write_Field27_Name): Output the name and entity of the field Wrapped_
4391 (Underlying_Type): If we have an incomplete entity that comes from
4392 the limited view then we return the Underlying_Type of its non-limited
4393 view if it is already available.
4394 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
4395 including operators.
4396 (Write_Field26_Name): Add entry for Overridden_Operation
4397 (Overridden_Operation): New attribute of functions and procedures.
4399 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
4400 predefined position in the dispatch table for the primitive operations
4401 used in dispatching selects.
4402 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
4403 predefined primitive operations and replace it with
4404 Default_Prim_Op_Count.
4405 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
4406 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
4407 the names of the generated primitive operations used in dispatching
4409 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
4410 case of abstract interface types. They will be inherit by the objects
4411 implementing the interface.
4412 (Make_DT): There is no need to inherit the dispatch table of the
4413 ancestor interface for the elaboration of abstract interface types.
4414 The dispatch table will be inherited by the object implementing the
4416 (Copy_Secondary_DTs): Add documentation.
4417 (Validate_Position): Improve this static check in case of
4418 aliased subprograms because aliased subprograms must have
4420 (Init_Predefined_Interface_Primitives): New subprogram that initializes
4421 the entries associated with predefined primitives of all the secondary
4423 (Build_Anonymous_Access_Type): Removed.
4424 (Expand_Interface_Actuals): With the previous cleanup there is no need
4425 to build an anonymous access type. This allows further cleanup in the
4426 code generated by the expander.
4427 (Expand_Interface_Conversion): If the actual is an access type then
4428 build an internal function to handle the displacement. If the actual
4429 is null this function returns null because no displacement is
4430 required; otherwise performs a type conversion that will be
4431 expanded in the code that returns the value of the displaced actual.
4432 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
4433 conversions that have no effect in the generated code because no
4434 displacement is required. Code cleanup; use local variables to
4435 avoid repeated calls to the subprogram directly_designated_type().
4437 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
4438 Classify the primitive operations used in dispatching selects as
4440 (Implements_Limited_Interface): Determine whether some type either
4441 directly implements a limited interface or extends a type that
4442 implements a limited interface.
4443 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
4444 (Expand_Subtype_From_Expr): Do not build actual subtype if the
4445 expression is limited.
4446 (Find_Interface_Tag): Add code to handle class-wide types and
4447 entities from the limited-view.
4449 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
4450 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
4451 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
4452 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
4455 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
4456 of procedure name or prefix that appears as a trigger in a triggering
4459 * uintp.ads: Introduce constants Uint_11 and Uint_13.
4461 2005-09-01 Arnaud Charlet <charlet@adacore.com>
4463 * s-tataat.adb, a-tasatt.adb:
4464 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
4466 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
4467 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
4468 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
4471 2005-09-01 Arnaud Charlet <charlet@adacore.com>
4472 Jose Ruiz <ruiz@adacore.com>
4474 * s-taprop-vxworks.adb:
4475 Move with clauses outside Warnings Off now that dependent units are
4477 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
4478 initialization of this unit.
4479 (Specific): Add new procedures Initialize and Delete so that this
4480 package can be used for VxWorks 5.x and 6.x
4481 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
4482 differences between VxWorks 5.x and 6.x
4484 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
4486 Use only Preelaborate-compatible constructs.
4488 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
4489 Primitives.Operations.
4490 (Delete, Initialize): New procedures.
4492 * s-osinte-vxworks.adb: Body used to handle differences between
4494 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
4496 * s-osinte-vxworks.ads: Minor reformatting.
4497 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
4498 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
4500 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
4501 between Vxworks 5 and 6.
4502 (taskLock, taskUnlock): Removeed, no longer used.
4504 * adaint.c: The wait.h header is not located in the sys directory on
4505 VxWorks when using RTPs.
4506 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
4508 (__gnat_dup): dup is available on Vxworks when using RTPs.
4509 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
4511 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
4513 * expect.c: The wait.h header is not located in the sys directory on
4514 VxWorks when using RTPs.
4516 2005-09-01 Thomas Quinot <quinot@adacore.com>
4518 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
4520 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
4522 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
4523 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
4524 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
4525 g-soccon-freebsd.ads: Add new constants:
4527 SO_RCVTIMEO/SO_SNDTIMEO
4531 Move all target-specific file inclusions and macro definitions to
4532 gsocket.h, in order to ensure that any C code in socket.c will see a
4533 set of constants that is consistent with the contents of g-soccon.ads.
4535 * gsocket.h: Code imported from gen-soccon.c:
4536 Move all target-specific file inclusions and macro definitions to
4537 gsocket.h, in order to ensure that any C code in socket.c will see a set
4538 of constants that is consistent with the contents of g-soccon.ads.
4539 This change also makes gen-soccon self-contained (removing dependencies
4540 upon GCC internal headers).
4542 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
4544 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
4546 * socket.c: Minor reformatting.
4548 2005-09-01 Ed Schonberg <schonberg@adacore.com>
4549 Thomas Quinot <quinot@adacore.com>
4551 * fname-sf.adb, mlib-tgt.ads,
4552 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
4553 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
4554 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
4555 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
4556 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
4557 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
4558 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
4559 makegpr.adb: Remove redundant use_clauses.
4561 2005-09-01 Arnaud Charlet <charlet@adacore.com>
4563 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
4564 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
4565 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
4566 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
4567 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
4568 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
4569 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
4570 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
4571 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
4572 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
4573 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
4574 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
4575 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
4576 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
4577 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
4578 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
4579 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
4580 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
4581 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
4582 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
4583 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
4584 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
4585 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
4586 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
4587 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
4588 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
4589 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
4590 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
4591 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
4592 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
4593 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
4594 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
4595 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
4596 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
4597 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
4598 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
4599 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
4600 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
4601 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
4602 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
4603 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
4604 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
4605 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
4606 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
4607 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
4608 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
4609 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
4610 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
4611 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
4612 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
4613 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
4614 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
4615 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
4616 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
4617 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
4618 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
4619 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
4620 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
4621 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
4622 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
4623 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
4624 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
4625 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
4626 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
4627 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
4628 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
4629 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
4630 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
4631 and always use the no parameter form for consistency.
4633 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
4635 2005-09-01 Robert Dewar <dewar@adacore.com>
4637 * binde.adb: Minor reformatting
4638 (Find_Elab_Order): Output warning if -p used with static elab order
4640 2005-09-01 Robert Dewar <dewar@adacore.com>
4642 * checks.adb (Check_Needed): New procedure, deals with removing checks
4643 based on analysis of short-circuited forms. Also generates warnings for
4644 improper use of non-short-circuited forms.
4647 2005-09-01 Robert Dewar <dewar@adacore.com>
4649 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
4652 2005-09-01 Robert Dewar <dewar@adacore.com>
4654 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
4656 Implement new insertion char < (conditional warning)
4657 * errutil.adb, erroutc.adb: Implement new insertion char <
4658 (conditional warning).
4659 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
4660 (Error_Msg_Warn): New variable for < insertion char.
4661 * prj-nmsc.adb: Implement new errout insertion char < (conditional
4663 (Check_For_Source): Change value of Source_Id only after the current
4664 source has been dealt with.
4666 2005-09-01 Robert Dewar <dewar@adacore.com>
4667 Doug Rupp <rupp@adacore.com>
4669 * exp_attr.adb: Handle vax fpt for 'Valid attribute
4670 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
4671 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
4672 (Valid_D, Valid_F, Valid_G): New functions
4674 2005-09-01 Ed Schonberg <schonberg@adacore.com>
4675 Hristian Kirtchev <kirtchev@adacore.com>
4676 Javier Miranda <miranda@adacore.com>
4678 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
4679 from object notation, the original node is unanalyzed and carries no
4680 semantic information, so that accessiblity checks must be performed on
4681 the type of the actual itself.
4682 (Expand_N_Subprogram_Declaration): Change last actual parameter for
4683 compatibility with Build_Protected_Sub_Specification.
4684 (Check_Overriding_Inherited_Interfaces): Add suport to handle
4685 overloaded primitives.
4686 (Register_Interface_DT_Entry): Use the new name of the formal
4687 the the calls to Expand_Interface_Thunk
4689 * exp_dbug.ads: Augment comments on encoding of protected types to
4690 include the generation of dispatching subprograms when the type
4691 implements at least one interface.
4693 * lib.ads: Extend information in Load_Stack to include whether a given
4694 load comes from a Limited_With_Clause.
4696 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
4697 whether a potential circularity is harmless, because it includes units
4698 loaded through a limited_with clause. Extends previous treatment which
4699 did not handle properly arbitrary combinations of limited and
4700 non-limited clauses.
4702 2005-09-01 Nicolas Setton <setton@adacore.com>
4704 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
4705 to be encoded as typ___XBLU_lowerbound__upperbound instead of
4706 typ___XB_lowerbound__upperbound.
4708 2005-09-01 Thomas Quinot <quinot@adacore.com>
4710 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
4711 dummy access formal for RACW/RAS TypeCode TSS.
4712 (Build_TypeCode_Call): Do not generate dummy null access actual for
4713 calls to the TypeCode TSS.
4715 2005-09-01 Ed Schonberg <schonberg@adacore.com>
4717 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
4718 fully qualified name, to distinguish instances with the same local name.
4720 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
4723 2005-09-01 Robert Dewar <dewar@adacore.com>
4725 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
4728 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
4730 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
4731 (Free): New deallocation procedure for filter elements
4732 (Close): Deallocate any existing filter for the concerned connection
4734 2005-09-01 Laurent Pautet <pautet@adacore.com>
4736 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
4737 position set is provided, we compute one in order to reduce the maximum
4738 length of the keys. This computation first selects a character
4739 position between 1 and the minimum length of the keys in order to
4740 avoid reducing one of the keys to an empty string.
4741 (Initialize, Compute): When the ratio V to K is too low, the algorithm
4742 does not converge. The initialization procedure now comes with a
4743 maximum number of iterations such that when exceeded, an exception is
4744 raised in Compute. The user can initialize this ratio to another value
4746 Reformating and updated headers.
4748 2005-09-01 Javier Miranda <miranda@adacore.com>
4750 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
4751 that given an entity T creates and returns an Itype that duplicates the
4752 contents of T. The returned Itype has the null-exclusion
4753 attribute set to True, and its Etype attribute references T
4754 to keep the association between the two entities.
4755 Update copyright notice
4757 * sem_aggr.adb (Check_Can_Never_Be_Null,
4758 Aggregate_Constraint_Checks, Resolve_Aggregate,
4759 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
4761 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
4763 2005-09-01 Gary Dismukes <dismukes@adacore.com>
4764 Robert Dewar <dewar@adacore.com>
4765 Hristian Kirtchev <kirtchev@adacore.com>
4767 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
4770 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
4772 Call Set_Result_Definition instead of Set_Subtype_Mark.
4773 (P_Subprogram_Specification): Add parsing of anonymous access result
4774 plus null exclusions. Call Set_Result_Definition instead of
4777 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
4778 (P_Access_Type_Definition): Add parsing for an anonymous access result
4779 subtype, plus parsing for null exclusions. Call Set_Result_Definition
4780 instead of Set_Subtype_Mark.
4782 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
4783 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
4784 (Result_Definition): New function for N_Function_Specifications.
4785 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
4786 N_Function_Specification.
4787 (Set_Null_Exclusion_Present): Allow this flag for
4788 N_Function_Specification.
4789 (Set_Result_Definition): New procedure for N_Function_Specifications.
4790 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
4791 and N_Function_Specification.
4793 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
4794 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
4795 Add support for LIMITED NEW for Ada 2005 AI-419
4796 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
4797 syntax for anonymous access results.
4798 Replace Subtype_Mark field by Result_Definition in
4799 N_Function_Specification and N_Access_Definition specs.
4800 Add Null_Exclusion_Present to spec of N_Function_Specification.
4801 (Result_Definition): New function for N_Function_Specification and
4802 N_Access_Function_Definition.
4803 (Set_Result_Definition): New procedure for N_Function_Specification and
4804 N_Access_Function_Definition.
4806 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
4807 Result_Definition for cases of N_Access_Function_Definition and
4808 N_Function_Specification.
4809 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
4811 2005-09-01 Vincent Celier <celier@adacore.com>
4813 * lib-writ.adb: Update Copyright notice
4814 (Write_With_Lines): On platforms where file names are case-insensitive,
4815 record the file names in lower case.
4816 (Write_ALI): For D lines, on platforms where file names are
4817 case-insensitive, record the file names in lower case.
4819 2005-09-01 Ed Schonberg <schonberg@adacore.com>
4820 Emmanuel Briot <briot@adacore.com>
4822 * lib-xref.adb (Output_Overridden_Op): Display information on
4823 overridden operation.
4825 * lib-xref.ads: Add documentation on overridden operations.
4827 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
4830 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
4831 overriding entity information.
4833 2005-09-01 Vincent Celier <celier@adacore.com>
4835 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
4836 including those that are inherited.
4838 2005-09-01 Robert Dewar <dewar@adacore.com>
4840 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
4842 * par-prag.adb: Implement new pragma Debug_Policy
4844 * sem_prag.adb Implement new pragma Debug_Policy
4845 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
4846 Component_Size attribute specification. Give warning for ignored pragma
4849 * snames.h, snames.ads, snames.adb: Introduce entries in
4850 Preset_Names for Name_Disp_Asynchronous_Select,
4851 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
4852 Name_Disp_Timed_Select.
4853 New pragma Debug_Policy
4855 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
4857 Switch -gnata also sets Debug_Pragmas_Enabled
4859 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
4860 handle an explicit -gnata when compiling predefined files.
4862 2005-09-01 Vincent Celier <celier@adacore.com>
4864 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
4865 directories of projects that have no Ada sources.
4867 2005-09-01 Robert Dewar <dewar@adacore.com>
4869 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
4870 (makes a difference for wide characters)
4872 * widechar.adb, widechar.ads:
4873 Add Wide_Char_Byte_Count feature to count chars vs bytes
4875 2005-09-01 Thomas Quinot <quinot@adacore.com>
4876 Ed Schonberg <schonberg@adacore.com>
4877 Robert Dewar <dewar@adacore.com>
4879 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
4880 'Address attribute reference with an overloaded prefix, use the
4881 location of the prefix (not the location of the attribute reference) as
4883 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
4884 a function renaming thereof, is a valid prefix for 'Size (where it is
4885 intepreted as a function call).
4886 (Statically_Denotes_Entity): New predicate to determine whether the
4887 prefix of an array attribute can be considered static.
4890 (Eval_Attr): Fix failure to evaluate Component_Size for
4891 unconstrained arrays (resulted in wrong value in packed case, since
4892 back end cannot handle this case)
4894 2005-09-01 Robert Dewar <dewar@adacore.com>
4896 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
4897 error msgs for most common cases.
4898 Use new errout insertion char < (conditional warning)
4900 2005-09-01 Javier Miranda <miranda@adacore.com>
4901 Ed Schonberg <schonberg@adacore.com>
4903 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
4904 become local to the whole package.
4905 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
4906 the package was already analyzed the new algorithm "replaces" the
4907 real entities by the shadow ones. This is required to ensure that
4908 the order of these entities in the homonym chains does not change;
4909 otherwise we can have undefined references at linking time because
4910 in case of conflicts the external name of the entities will have
4911 a suffix that depends on the order of the entities in the chain.
4912 (Remove_Limited_With_Clause): Complementary code that completes the
4913 new algorithm and replaces the shadow entities by the real ones.
4914 (Install_Limited_Withed_Unit): When unchaining entities before the
4915 installation of the shadow entities, only regular entities of the
4916 public part must be taken into account. This is required to
4917 keep this routine in synch with the work done by Remove_Limited_
4919 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
4920 even if unit is analyzed, because the analysis of the unit is
4921 idempotent in any case, and the limited view of the unit may have to
4922 be installed for proper visibility.
4923 (Expand_Limited_With_Clause): Even if the unit in the implicit
4924 with_clause has been analyzed already, a limited view of the package
4925 must be built for the current context, if it does not exist yet.
4927 2005-09-01 Ed Schonberg <schonberg@adacore.com>
4928 Javier Miranda <miranda@adacore.com>
4929 Gary Dismukes <dismukes@adacore.com>
4931 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
4932 defining entity for the instance body, make a new defining identifier
4933 rather than copying the entity of the spec, to prevent accidental
4934 sharing of the entity list.
4935 (Check_Private_View): When exchanging views of private types, build the
4936 list of exchanged views as a stack, to ensure that on exit the exchanges
4937 are undone in the proper order.
4938 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
4939 Restore the compilation environment in case of instantiation_error.
4940 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
4941 for an anonymous access result.
4942 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
4943 (Formal_Entity): Handle properly the case of a formal package that
4944 denotes a generic package renaming.
4946 2005-09-01 Thomas Quinot <quinot@adacore.com>
4948 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
4949 clause if the array aggregate is surrounded by parentheses.
4951 2005-09-01 Cyrille Comar <comar@adacore.com>
4952 Gary Dismukes <dismukes@adacore.com>
4953 Ed Schonberg <schonberg@adacore.com>
4954 Javier Miranda <miranda@adacore.com>
4956 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
4958 to check if a type is Constrained in cases related to code generation
4959 (rather than semantic checking) since otherwise we do not generate
4960 similar code for mutable private types depending if their
4961 discriminants are visible or not.
4962 (Check_Abstract_Overriding): Do not complain about failure to override
4963 the primitive operations used in dispatching selects since they will
4964 always be overriden at the freeze point of the type.
4965 (Access_Definition): Separate out handling for resetting the scope
4966 of an anonymous access function result type. Retrieve the scope
4967 of the associated function rather than using Current_Scope, which
4968 does not have a consistent value (depends on whether we're in the
4969 middle of analyzing formal parameters). Add ??? comment about
4970 finding a cleaner way to handle the special cases of scope setting.
4971 (Process_Incomplete_Dependents): A protected operation is never a
4972 dispatching operation (only its wrapper may be).
4973 (Build_Derived_Record_Type): In case of tagged private types that
4974 implement interfaces add derivation of predefined primitive
4976 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
4977 by two parameters that are used in case of derivation from abstract
4978 interface types: No_Predefined_Prims is used to avoid the derivation
4979 of predefined primitives from the interface, and Predefined
4980 Prims_Only is used to complete the derivation predefined primitives
4981 in case of private tagged types implementing interfaces.
4982 Fix typo in comments
4983 (Find_Interface_In_Descendant): Protect the frontend against
4984 wrong code with large circularity chains.
4985 (Is_Private_Overriding): Add support for entities overriding interface
4986 subprograms. The test failed because Entities associated with overriden
4987 interface subprograms are always marked as hidden (and used to build
4988 the secondary dispatch table); in this case the overriden entity is
4989 available through the field abstract_interface_alias (cf. override_
4990 dispatching_operation)
4991 (Access_Definition): Set the scope of the type to Current_Scope for the
4992 case of a function with an anonymous access result type.
4993 (Access_Subprogram_Declaration): Handle creation of the type entity for
4994 an access-to-function type with an anonymous access result.
4995 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
4996 in handling for N_Access_Function_Definition.
4997 (Analyze_Subtype_Declaration): Modify the text of error message.
4998 (Derived_Type_Declaration): Modify the text of error message.
4999 (Process_Subtype): Modify the text of error message plus cleanup
5000 of one redundant error message.
5001 (Analyze_Component_Declaration): Code cleanup.
5002 (Analyze_Object_Declaration): Code cleanup.
5003 (Analyze_Subtype_Declaration): Propagate the null-exclusion
5004 attribute in case of access types. Code cleanup.
5005 (Array_Type_Declaration): Code cleanup.
5006 (Process_Discriminants): Create the new null-excluding itype
5007 if required. Code cleanup.
5008 (Process_Subtype): Create the new null-excluding itype if
5009 required. Code cleanup.
5010 (Build_Derived_Record_Type): Code cleanup to avoid calling
5011 twice the subprogram derive_subprograms in case of private
5012 types that implement interfaces. In this particular case the
5013 subprogram Complete_Subprograms_Derivation already does the
5014 job associated with the second call.
5016 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
5017 conversion to the full view when generating an operation for a
5018 discriminant whose type may currently be private.
5020 2005-09-01 Ed Schonberg <schonberg@adacore.com>
5021 Javier Miranda <miranda@adacore.com>
5023 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
5024 V (Obj.F), the rewriting does not involve the indexed component, but
5025 only the selected component itself.
5026 Do not apply the transformation if the analyzed node is an actual of a
5027 call to another subprogram.
5028 (Complete_Object_Operation): Retain the entity of the
5029 dispatching operation in the selector of the rewritten node. The
5030 entity will be used in the expansion of dispatching selects.
5031 (Analyze_One_Call): Improve location of the error message associated
5033 (Analyze_Selected_Component): No need to resolve prefix when it is a
5034 function call, resolution is done when parent node is resolved, as
5036 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
5037 when attempting to resolve a call transformed from its object notation.
5038 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
5039 of the argument list for each interpretation of the operation.
5040 (Try_Object_Operation): The designated type of an access parameter may
5041 be an incomplete type obtained through a limited_with clause, in which
5042 case the primitive operations of the type are retrieved from its full
5044 (Analyze_Call): If this is an indirect call, and the return type of the
5045 access_to_subprogram is incomplete, use its full view if available.
5047 2005-09-01 Javier Miranda <miranda@adacore.com>
5048 Gary Dismukes <dismukes@adacore.com>
5050 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
5051 access types the null-exclusion and access-to-constant attributes must
5053 (Analyze_Return_Statement): When the result type is an anonymous access
5054 type, apply a conversion of the return expression to the access type
5055 to ensure that appropriate accessibility checks are performed.
5056 (Analyze_Return_Type): For the case of an anonymous access result type,
5057 generate the Itype and set Is_Local_Anonymous_Access on the type.
5058 Add ??? placeholder for check to disallow returning a limited object
5059 in Ada 2005 unless it's an aggregate or a result of a function call.
5060 Change calls from Subtype_Mark to Result_Definition.
5061 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
5062 Result_Definition in call to Make_Function_Specification.
5063 (Build_Body_To_Inline): Change Set_Subtype_Mark to
5064 Set_Result_Definition.
5065 (Make_Inequality_Operator): Change formal Subtype_Mark to
5066 Result_Definition in call to Make_Function_Specification.
5067 (Process_Formals): Create the new null-excluding itype if required.
5068 (New_Overloaded_Entity): For an entity overriding an interface primitive
5069 check if the entity also covers other abstract subprograms in the same
5070 scope. This is required to handle the general case, that is, overriding
5071 other interface primitives and overriding abstract subprograms inherited
5072 from some abstract ancestor type.
5073 (New_Overloaded_Entity): For an overriding entity that comes from
5074 source, note the operation that it overrides.
5075 (Check_Conformance, Type_Conformant): Addition of one new formal
5076 to skip controlling formals in the analysis. This is used to
5077 handle overloading of abstract interfaces.
5078 (Base_Types_Match): Add missing case for types imported from
5079 limited-with clauses
5080 (New_Overloaded_Entity): Add barrier to protect the use of
5081 the "alias" attribute.
5083 2005-09-01 Ed Schonberg <schonberg@adacore.com>
5085 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
5086 verify that the procedure and the entry are mode conformant.
5087 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
5088 as a different operator, which is often a cut-and-paste error.
5090 2005-09-01 Javier Miranda <miranda@adacore.com>
5091 Ed Schonberg <schonberg@adacore.com>
5093 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
5094 used in controlling parameters exclude null because it is necessary to
5095 read the tag to dispatch, and null has no tag.
5096 (Override_Dispatching_Operation): If the previous operation is inherited
5097 from an interface, it becomes hidden and does not participate in later
5100 2005-09-01 Javier Miranda <miranda@adacore.com>
5101 Ed Schonberg <schonberg@adacore.com>
5102 Gary Dismukes <dismukes@adacore.com>
5104 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
5105 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
5106 the expander will generate the corresponding run-time check to evaluate
5108 (Resolve_Call): Check for legal type of procedure name or prefix that
5109 appears as a trigger in a triggering alternative.
5110 (Valid_Conversion): If expression is ambiguous and the context involves
5111 an extension of System, remove System.Address interpretations.
5112 (Resolve_Qualified_Expression): Reject the case of a specific-type
5113 qualification applied to a class-wide argument. Enhance comment
5114 to explain checking of Original_Node.
5115 (Resolve_Type_Conversion): The location of the error message was not
5116 general enough to handle the general case and hence it has been removed.
5117 In addition, this patch improves the text of the message.
5118 (Resolve_Type_Conversion): Add missing support for access to interface
5120 (Resolve_Type_Conversion): If the target is a class-wide interface type,
5121 do not expand if the expression is the actual in a call, because proper
5122 expansion will take place when the call itself is expanded.
5123 (Resolve_Allocator): If the context is an unchecked conversion, the
5124 allocator inherits its storage pool, if any, from the target type of
5127 2005-09-01 Ed Schonberg <schonberg@adacore.com>
5128 Javier Miranda <miranda@adacore.com>
5130 * sem_type.adb (Add_One_Interp): If a candidate operation is an
5131 inherited interface operation that has an implementation, use the
5132 implementation to avoid spurious ambiguities.
5133 (Interface_Present_In_Ancestor): In case of concurrent types we can't
5134 use the Corresponding_Record_Typ attribute to look for the interface
5135 because it is set by the expander (and hence it is not always
5136 available). For this reason we traverse the list of interfaces
5137 (available in the parent of the concurrent type).
5138 (Interface_Present_In_Ancestor): Handle entities from the limited view
5140 2005-09-01 Ed Schonberg <schonberg@adacore.com>
5142 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
5143 from the list of required components.
5144 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
5145 primitive procedure of a limited interface with a controlling first
5147 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
5149 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
5150 capture if it is generated in the second operand of a short-circuit
5152 Do not capture values for variables with address clauses.
5153 (Is_Object_Reference): Treat a function call as an object reference only
5154 if its type is not Standard_Void_Type.
5156 2005-09-01 Ed Schonberg <schonberg@adacore.com>
5158 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
5159 to a variable that is statically known to be constant.
5161 2005-09-01 Geert Bosch <bosch@adacore.com>
5162 Robert Dewar <dewar@adacore.com>
5164 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
5165 (VAXGF_Safe_First): Idem.
5167 2005-09-01 Robert Dewar <dewar@adacore.com>
5168 Arnaud Charlet <charlet@adacore.com>
5170 * g-dirope.ads: Minor reformatting
5171 Document that bounds of result of Base_Name match the input index
5173 Add documentation on environment variable syntax for Expand_Path
5175 * gnat_ugn.texi: Update documentation to include mention of -m switches
5176 Document new treatment of wide characters in max line length
5178 Remove -gnatL/-gnatZ switches, no longer used.
5179 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
5182 * gnat_rm.texi: Add doc for two argument form of pragma
5183 Float_Representation.
5184 Add documentation for pragma No_Strict_Aliasing
5185 Add note that explicit component clause overrides pragma Pack.
5186 Add documentation of pragma Debug_Policy
5188 2005-09-01 Matthew Heaney <heaney@adacore.com>
5190 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
5191 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
5192 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
5193 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
5194 draft (Draft 13, August 2005) of Ada Amendment 1.
5196 2005-09-01 Arnaud Charlet <charlet@adacore.com>
5198 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
5199 Note that the platform-specific version of g-soccon.ads for VMS is now
5200 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
5201 really is a package spec).
5202 Replace s-taspri-linux.ads by s-taspri-posix.ads
5203 Remove references to s-mastop-x86.adb
5205 * system-vxworks-xscale.ads: Removed, no longer used.
5206 * s-vxwork-xscale.ads: Removed, no longer used.
5208 2005-09-01 Robert Dewar <dewar@adacore.com>
5210 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
5211 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
5212 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
5213 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
5214 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
5215 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
5216 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
5217 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
5218 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
5219 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
5220 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
5221 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
5222 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
5223 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
5224 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
5225 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
5226 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
5227 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
5228 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
5229 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
5230 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
5232 2005-08-29 Arnaud Charlet <charlet@adacore.com>
5236 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
5238 2005-08-29 Arnaud Charlet <charlet@adacore.com>
5239 Doug Rupp <rupp@adacore.com>
5241 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
5243 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
5244 this code in the GNAT run-time.
5246 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
5249 * init.c (__gnat_error_handler [many]): Mark "msg" as const
5250 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
5252 (__gnat_inside_elab_final_code): Moved here from
5253 Standard_Library and only defined for the compiler.
5254 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
5255 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
5256 using RTPs because directly vectored Interrupt routines are not
5257 supported on this configuration.
5258 (getpid): Do not redefine this function on VxWorks when using RTPs
5259 because this primitive is well supported by the RTP libraries.
5260 (copy_msg): Correct the code that checks for buffer overflow.
5261 Discovered during code reading.
5263 2005-08-29 Olivier Hainque <hainque@adacore.com>
5265 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
5266 a library level mutable variable with an initializer, tell
5267 build_allocator to ignore the initializer's size. It may not be large
5268 enough for all the values that might be assigned to the variable later
5271 2005-08-29 Arnaud Charlet <charlet@adacore.com>
5272 Eric Botcazou <ebotcazou@adacore.com>
5274 * trans.c: Protect < in error msg with quote
5275 Replace GCC_ZCX by Back_End_Exceptions.
5276 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
5277 has been sufficiently aligned in the record.
5279 2005-08-15 James E. Wilson <wilson@specifix.com>
5281 * system-linux-alpha.ads: Change ia64 to alpha.
5283 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
5285 * decl.c, utils.c: Fix comment typos.
5287 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
5289 * decl.c, init.c, initialize.c: Fix comment typos.
5291 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
5293 Make CONSTRUCTOR use VEC to store initializers.
5294 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
5296 * trans.c (extract_values): Likewise.
5297 * utils.c (convert, remove_conversions): Likewise.
5298 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
5299 gnat_build_constructor): Likewise.
5301 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
5303 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
5305 (compare_field_bitpos): Likewise.
5307 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
5309 * utils.c (create_var_decl): Only set DECL_COMMON on
5310 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
5311 VAR_OR_FUNCTION_DECL_P.
5313 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
5315 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
5318 2005-07-07 Pascal Obry <obry@adacore.com>
5320 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
5321 returned type on Windows.
5323 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
5326 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
5327 exception in this case.
5328 Simplify the code as "Image (Image'Range)" = "Image".
5330 2005-07-07 Vincent Celier <celier@adacore.com>
5332 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
5333 the destructor/constructor attributes for <lib>final/<lib>init.
5335 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
5337 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
5339 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
5340 type if the parameter is not passed by copy but reference by default.
5342 2005-07-07 Javier Miranda <miranda@adacore.com>
5344 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
5345 Reimplementation of the support for abstract interface types in order
5346 to leave the code more clear and easy to maintain.
5348 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
5349 abstract interface types in order to leave the code clearer and easier
5352 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
5353 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
5354 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
5355 appropriate entry of the secondary dispatch table.
5356 (Make_DT): Add code to inherit the secondary dispatch tables of
5359 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
5360 implementing both functionalities by means of a common routine, each
5361 routine has its own code.
5363 2005-07-07 Javier Miranda <miranda@adacore.com>
5365 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
5367 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
5370 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
5373 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
5374 use of tag incomplete types.
5376 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
5377 give support to tagged incomplete types.
5379 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
5380 expression is a discriminant reference and its type is private, as can
5381 happen within a stream operation for a mutable record, use the full
5382 view of the type to resolve the case alternatives.
5383 (Analyze_Assignment): Check wrong dereference of incomplete types.
5385 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
5388 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
5391 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
5392 N_Incomplete_Type_Declaration nodes.
5394 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
5395 Tag_Present to give support to tagged incomplete types:
5397 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
5400 2005-07-07 Olivier Hainque <hainque@adacore.com>
5403 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
5404 definitions for the Unwind wrappers in the compiler case.
5406 2005-07-07 Ed Schonberg <schonberg@adacore.com>
5407 Javier Miranda <miranda@adacore.com>
5409 * par-load.adb (Load): If a child unit is loaded through a limited_with
5410 clause, each parent must be loaded as a limited unit as well.
5412 * sem_ch10.adb (Previous_Withed_Unit): Better name for
5413 Check_Withed_Unit. Return true if there is a previous with_clause for
5414 this unit, whether limited or not.
5415 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
5417 (Is_Visible_Through_Renamings): New local subprogram of install_limited
5418 _withed_unit that checks if some package installed through normal with
5419 clauses has a renaming declaration of package whose limited-view is
5420 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
5421 of the current Draft document for Ada 2005.
5422 (Analyze_Context): Complete the list of compilation units that
5423 are allowed to contain limited-with clauses. It also contains
5424 checks that were previously done by Install_Limited_Context_Clauses.
5425 This makes the code more clear and easy to maintain.
5426 (Expand_Limited_With_Clause) It is now a local subprogram of
5427 Install_Limited_Context_Clauses, and contains the code that adds
5428 the implicit limited-with clauses for parents of child units.
5429 This functionality was prevously done by Analyze_Context.
5431 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
5434 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
5435 been erroneously named in a limited-with clause of its own context.
5436 In this case the error has been previously notified by Analyze_Context.
5438 2005-07-07 Ed Schonberg <schonberg@adacore.com>
5440 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
5441 generic package that contains local declarations with the same name.
5442 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
5444 2005-07-07 Bernard Banner <banner@adacore.com>
5446 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
5447 ia64 platform only on platforms that you the GCC unwind library
5448 rather than the system unwind library.
5450 2005-07-07 Thomas Quinot <quinot@adacore.com>
5452 * expect.c: Minor reformatting
5454 2005-07-07 Sergey Rybin <rybin@adacore.com>
5456 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
5459 * gnat_ugn.texi: Add description for new gnatpp option
5462 2005-07-04 Thomas Quinot <quinot@adacore.com>
5464 * g-expect-vms.adb, g-expect.ads, g-expect.adb
5465 (Get_Command_Output): New subprogram to launch a process and get its
5466 standard output as a string.
5468 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
5469 Olivier Hainque <hainque@adacore.com>
5471 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
5472 fetch a code-range descriptor associated with the machine state. On
5473 failure set the machine state's PC to 0; on success, pass the
5474 descriptor to exc_virtual_unwind.
5476 * init.c (Tru64 section): New function __gnat_set_code_loc.
5478 2005-07-04 Vincent Celier <celier@adacore.com>
5480 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
5481 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
5482 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
5483 Remove all auto-initialization code, as this is now done through the
5484 constructor mechanism.
5486 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
5487 __gnat_sals_init_using_constructors): New functions.
5489 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
5490 Linker_Constructor and Linker_Destructor when switch -a is used.
5492 * bindusg.adb: Add line for new switch -a
5494 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
5495 (Gnatbind): When switch -a is used, check if it is allowed
5497 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
5499 2005-07-04 Joel Brobecker <brobecker@adacore.com>
5501 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
5502 This prevents us from hitting a limitation during the debug info
5503 generation when using stabs.
5504 (Prims_Ptr): Likewise.
5506 2005-07-04 Gary Dismukes <dismukes@adacore.com>
5507 Ed Schonberg <schonberg@adacore.com>
5508 Javier Miranda <miranda@adacore.com>
5510 * checks.adb (Null_Exclusion_Static_Checks): In the case of
5511 N_Object_Declaration, only perform the checks if the Object_Definition
5512 is not an Access_Definition.
5514 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
5515 where the parent of an the access definition is an N_Object_Declaration
5516 when determining the Associated_Node_For_Itype and scope of an
5517 anonymous access-to-subprogram type.
5519 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
5520 Corresponding_Spec on the body created for a null procedure. Add ???
5521 comment. Remove New_Copy_Tree call on body argument to
5524 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
5525 discriminants, use the type of the actual as well, because the
5526 discriminants may be read by the called subprogram.
5528 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
5529 access type we do not need to handle non-limited views.
5530 (Build_Derived_Record_Type): Additional check to check that in case of
5531 private types, interfaces are only allowed in private extensions.
5533 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
5535 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
5536 <Pragma_Linker_Destructor>: Likewise.
5538 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
5539 Pragma_Linker_Destructor.
5541 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
5542 ATTR_LINK_DESTRUCTOR.
5543 (static_ctors, static_dtors): New variables.
5545 * misc.c (gnat_expand_body): Output current function as constructor
5546 and destructor if requested.
5548 * par-prag.adb: Add processing for pragma Linker_Constructor and
5551 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
5552 extracted from Check_Interrupt_Or_Attach_Handler.
5553 (Check_Interrupt_Or_Attach_Handler): Invoke it.
5554 Implement pragma Linker_Constructor and Linker_Destructor with the
5555 help of Find_Unique_Parameterless_Procedure.
5556 Replace Name_Alias with Name_Target for pragma Linker_Alias.
5558 * snames.h, snames.ads, snames.adb:
5559 Add Name_Linker_Constructor and Name_Linker_Destructor.
5560 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
5561 * snames.adb: Remove Name_Alias.
5563 * trans.c: Include cgraph.h.
5564 (build_global_cdtor): New function.
5565 (Compilation_Unit_to_gnu): Build global constructor and destructor if
5567 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
5569 (addressable_p) <COMPONENT_REF>: Unconditionally test
5570 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
5572 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
5573 variable if it is external.
5575 (static_ctors, static_dtors): New global variables.
5576 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
5577 <ATTR_LINK_DESTRUCTOR>: Likewise.
5578 (end_subprog_body): Chain function as constructor and destructor
5581 * exp_util.adb (Force_Evaluation): Unconditionally invoke
5582 Remove_Side_Effects with Variable_Ref set to true.
5583 (Remove_Side_Effects): Handle scalar types first. Use a renaming
5584 for non-scalar types even if Variable_Ref is true and for class-wide
5587 2005-07-04 Ed Schonberg <schonberg@adacore.com>
5589 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
5590 to prevent spurious warnings.
5592 2005-07-04 Thomas Quinot <quinot@adacore.com>
5594 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
5595 Itypes. Itypes are really unexpected there.
5596 (Build_TypeCode_Function): Generalise special processing for Itypes to
5597 handle the case of numeric implicit base types as well as enumerated
5600 2005-07-04 Ed Schonberg <schonberg@adacore.com>
5602 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
5603 controlled, indicate the expected type of the dereference that is
5604 created for the call to Deep_Finalize, to prevent spurious errors when
5605 the designated type is private and completed with a derivation from
5606 another private type.
5608 2005-07-04 Vincent Celier <celier@adacore.com>
5610 * make.adb (Change_To_Object_Directory): When unable to change the
5611 current dir to the object directory, output the full path of the
5614 2005-07-04 Matthew Gingell <gingell@adacore.com>
5616 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
5618 * indepsw-linux.adb: Replace by...
5620 * indepsw-gnu.adb: ...this new file
5622 2005-07-04 Vincent Celier <celier@adacore.com>
5624 * mlib-prj.adb (Auto_Initialize): New constant String
5625 (SALs_Use_Constructors): New Boolean function
5626 (Build_Library): Call gnatbind with Auto_Initialize switch when
5627 SALs_Use_Constructors returns True.
5629 * mlib-tgt.ads: Minor reformatting
5631 * mlib-utl.ads: Minor reformatting
5633 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
5635 2005-07-04 Ed Schonberg <schonberg@adacore.com>
5637 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
5638 single protected declarations can have an interface list.
5639 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
5640 with seriously malformed entry declarations, and lead to compilation
5643 2005-07-04 Javier Miranda <miranda@adacore.com>
5645 * par-load.adb: Load the context items in two rounds.
5647 2005-07-04 Robert Dewar <dewar@adacore.com>
5649 * scng.adb: Do not consider Mod used as an attribute to be a keyword
5651 2005-07-04 Ed Schonberg <schonberg@adacore.com>
5652 Javier Miranda <miranda@adacore.com>
5654 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
5655 type extension needs a limited view.
5656 Remove previous restriction on private types available through the
5657 limited-view (only tagged private types were previously allowed).
5658 (Install_Withed_Unit): In the code that implements the
5659 legality rule given in AI-377, exclude a child unit with the name
5660 Standard, because it is a homonym of the Standard environment package.
5662 2005-07-04 Thomas Quinot <quinot@adacore.com>
5664 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
5665 overloaded function call, carry interpretations from the original tree
5668 2005-07-04 Ed Schonberg <schonberg@adacore.com>
5670 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
5671 types check whether some designated type is a limited view, and use
5672 the non-limited view if available.
5674 2005-07-04 Gary Dismukes <dismukes@adacore.com>
5676 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
5677 constraint of full view of a private view T1 if present, when T2 is a
5678 discriminated full view.
5680 2005-07-04 Thomas Quinot <quinot@adacore.com>
5682 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
5683 actual that is a view conversion of a bit packed array reference.
5685 2005-07-04 Ed Schonberg <schonberg@adacore.com>
5687 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
5688 present before checking whether an interface type covers a synchronized
5691 2005-07-04 Ed Schonberg <schonberg@adacore.com>
5693 * sem_util.adb (Is_Object_Reference): An indexed or selected component
5694 whose prefix is an implicit dereference is an object reference. Removes
5695 spurious errors when compiling with -gnatc.
5697 2005-07-04 Robert Dewar <dewar@adacore.com>
5700 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
5702 2005-07-04 Matthew Gingell <gingell@adacore.com>
5704 * tracebak.c: Enable tracebacks on ia64 platforms
5706 2005-07-04 Vincent Celier <celier@adacore.com>
5708 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
5709 the GNAT BIND command, as gnatbind accepts multiples ALI files with
5710 the -L or -n switches.
5712 2005-07-04 Vincent Celier <celier@adacore.com>
5714 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
5715 correctly computed and the main project data is not modified while
5717 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
5718 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
5719 c++linker as this does not work on some platforms.
5721 2005-07-04 Matthew Heaney <heaney@adacore.com>
5723 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
5725 * a-coinve.adb: Perform constraint checks explicitly.
5727 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5728 Thomas Quinot <quinot@adacore.com>
5730 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
5731 new target gen-soccon.
5733 2005-07-04 Robert Dewar <dewar@adacore.com>
5735 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
5737 2005-07-04 Thomas Quinot <quinot@adacore.com>
5739 * g-socket.ads (Check_Selector): Minor rewording of comment.
5741 2005-07-04 Vincent Celier <celier@adacore.com>
5743 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
5745 2005-07-04 Thomas Quinot <quinot@adacore.com>
5747 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
5749 2005-07-04 Sergey Rybin <rybin@adacore.com>
5751 * gnat_ugn.texi: Add description of --eol gnatpp option
5753 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
5754 Thomas Quinot <quinot@adacore.com>
5756 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
5757 if the user wants all calls of a subprogram to be flagged,
5758 independently of whether they are made from within the same unit or
5760 Mention restriction for pragma Linker_Alias on some platforms.
5761 Document pragma Linker_Constructor and Linker_Destructor.
5762 Rewrite documentation of Weak_External, Linker_Section and
5763 Linker_Alias pragmas.
5765 2005-07-04 Arnaud Charlet <charlet@adacore.com>
5767 * s-stausa.ads, s-stausa.adb: New files.
5769 2005-06-30 Kelley Cook
5771 * all files: Update FSF address in copyright headers.
5772 * gen-soccon.co (main): Output new FSF address in generated files.
5774 2005-06-28 Paul Brook <paul@codesourcery.com>
5776 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
5778 2005-06-14 Olivier Hainque <hainque@adacore.com>
5779 Eric Botcazou <ebotcazou@adacore.com>
5781 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
5782 exc_unwind, now that we are generating proper .debug_frame output for
5785 * tracebak.c: Remove the mips-irix section, as we are now using the
5786 s-mastop based unwinder again.
5787 Under SPARC/Solaris, take into account the stack bias to compute the
5788 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
5791 2005-06-14 Doug Rupp <rupp@adacore.com>
5793 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
5795 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
5797 2005-06-14 Pascal Obry <obry@adacore.com>
5799 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
5800 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
5801 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
5804 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
5805 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
5806 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
5807 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
5808 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
5809 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
5810 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
5811 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
5812 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
5813 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
5814 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
5815 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
5816 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
5817 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
5818 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
5819 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
5820 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
5821 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
5822 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
5823 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
5824 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
5825 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
5826 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
5827 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
5828 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
5829 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
5830 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
5831 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
5832 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
5833 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
5834 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
5835 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
5836 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
5837 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
5838 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
5839 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
5840 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
5841 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
5842 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
5843 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
5844 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
5845 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
5846 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
5847 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
5848 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
5849 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
5850 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
5851 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
5852 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
5853 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
5854 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
5855 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
5856 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
5857 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
5858 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
5859 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
5860 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
5861 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
5862 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
5863 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
5864 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
5865 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
5866 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
5867 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
5868 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
5869 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
5870 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
5871 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
5872 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
5873 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
5874 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
5875 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
5876 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
5877 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
5878 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
5879 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
5880 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
5881 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
5882 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
5883 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
5884 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
5885 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
5886 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
5887 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
5888 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
5889 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
5890 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
5891 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
5892 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
5893 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
5894 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
5895 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
5896 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
5897 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
5898 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
5899 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
5900 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
5901 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
5902 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
5903 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
5904 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
5905 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
5906 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
5907 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
5908 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
5909 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
5910 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
5911 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
5912 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
5913 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
5914 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
5915 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
5916 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
5917 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
5918 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
5919 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
5920 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
5921 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
5922 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
5923 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
5924 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
5925 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
5926 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
5927 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
5928 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
5929 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
5930 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
5931 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
5932 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
5933 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
5934 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
5935 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
5936 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
5938 2005-06-14 Jose Ruiz <ruiz@adacore.com>
5939 Arnaud Charlet <charlet@adacore.com>
5941 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
5942 longer protected objects. They have been replaced by lower-level
5943 suspension objects made up by a mutex and a condition variable (or
5944 their equivalent given a particular OS) plus some internal data to
5945 reflect the state of the suspension object.
5946 (Initialize, Finalize): Add this initialization procedure for
5947 Suspension_Object, which is a controlled type.
5948 (Finalize): Add the finalization procedure for Suspension_Object,
5949 which is a controlled type.
5951 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
5952 Ada.Synchronous_Task_Control because there is no longer a need for a
5953 VxWorks specific version of this package. Target dependencies
5954 has been moved to System.Task_Primitives.Operations.
5956 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
5958 (InitializeCriticalSection, EnterCriticalSection,
5959 LeaveCriticalSection, DeleteCriticalSection): Replace the type
5960 pCriticalSection by an anonymous access type so that we avoid problems
5961 of accessibility to local objects.
5963 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
5964 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
5965 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
5966 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
5967 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
5968 set the environment task mask here.
5969 (Current_State): Add this function that returns the state of the
5971 (Set_False): Add this procedure that sets the state of the suspension
5973 (Set_True): Add this procedure that sets the state of the suspension
5974 object to True, releasing the task that was suspended, if any.
5975 (Suspend_Until_True): Add this procedure that blocks the calling task
5976 until the state of the object is True. Program_Error is raised if
5977 another task is already waiting on that suspension object.
5978 (Initialize): Add this procedure for initializing the suspension
5979 object. It initializes the mutex and the condition variable which are
5980 used for synchronization and queuing, and it sets the internal state
5982 (Finalize): Add this procedure for finalizing the suspension object,
5983 destroying the mutex and the condition variable.
5985 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
5986 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
5987 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
5988 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
5989 which provides a low-level abstraction (using operating system
5990 primitives) for Ada.Synchronous_Task_Control.
5991 This object is made up by a mutex (for ensuring mutual exclusion), a
5992 condition variable (for queuing threads until the condition is
5993 signaled), a Boolean (State) indicating whether the object is open,
5994 and a Boolean (Waiting) reflecting whether there is a task already
5995 suspended on this object.
5997 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
5998 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
5999 s-intman-vms.ads, s-intman-mingw.adb,
6000 (Initialize_Interrupts): Removed, no longer used.
6002 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
6003 (Setup_Interrupt_Mask): New procedure.
6005 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
6007 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
6009 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
6010 this is no longer done in the body of s-taprop
6011 (Server_Task): Explicitely test for Pending_Action in case
6012 System.Parameters.No_Abort is True.
6014 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
6015 is no longer done in the body of s-taprop
6017 2005-06-14 Robert Dewar <dewar@adacore.com>
6019 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
6020 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
6021 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
6022 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
6023 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
6024 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
6025 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
6026 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
6027 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
6028 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
6029 system-linux-hppa.ads, system-vms_64.ads,
6030 system-vxworks-alpha.ads: Minor comment update for
6031 AI-362 (unit is Pure).
6033 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
6034 Add pragma Pure_05 for AI-362
6035 Make remaining conversion functions obsolescent in Ada 95
6037 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
6038 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
6039 Add entries for a-wichun and a-zchuni
6040 Add a-widcha a-zchara for AI-395
6041 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
6043 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
6044 Add entries for a-wichun.o and a-zchuni.o
6045 Entries for a-widcha.o and a-zchara.o
6046 Add entry for a-chacon.o
6048 * a-ztenau.adb: Add with of Ada.Characters.Conversions
6050 * a-chacon.ads, a-chacon.adb: New files.
6052 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
6053 categorization violations.
6055 * a-strmap.ads: Add pragma Pure_05 for AI-362
6056 * a-strmap.ads: Add note on implicit categorization for AI-362
6058 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
6060 * par-prag.adb: Dummy entry for pragma Persistent_BSS
6061 Set Ada_Version_Explicit, for implementation of AI-362
6062 Add processing for pragma Pure_05 and Preelaborate_05
6063 Add entry for Assertion_Policy pragma
6065 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
6066 when needed for proper processing of categorization stuff
6069 For several cases, make errors in preealborate units warnings,
6070 instead of errors, if GNAT_Mode is set. For AI-362.
6072 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
6073 preelaborate unit is now warning if in GNAT mode
6075 * s-stoele.ads: Document AI-362 for pragma preelaborate
6077 2005-06-14 Doug Rupp <rupp@adacore.com>
6079 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
6080 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
6081 Default_Exception_Msg_Max_Length: new parameter.
6083 * a-except.ads: (Exception_Msg_Max_Length): Set to
6084 System.Parameters.Default_Exception_Msg_Max_Length
6085 Add pragma Preelaborate_05 for AI-362
6086 Add warnings off to allow categorization violations for AI-362
6088 2005-06-14 Vincent Celier <celier@adacore.com>
6090 * gnatsym.adb: Adapt to modification of package Symbols: procedure
6091 Process is now in package Processing.
6093 * symbols.ads, symbols.adb:
6094 (Processing): New package, containing procedure Process
6096 * symbols-vms-alpha.adb:
6097 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
6099 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
6100 symbols-processing-vms-ia64.adb: New files.
6102 2005-06-14 Pascal Obry <obry@adacore.com>
6104 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
6105 implementation. This new version generates the proper DllMain routine
6106 to initialize the SAL. The DllMain is generated in Ada and compiled
6107 before being added as option to the library build command.
6109 2005-06-14 Doug Rupp <rupp@adacore.com>
6110 Pascal Obry <obry@adacore.com>
6112 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
6113 call to decc$translate_vms.
6114 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
6115 need to remove those quotes before catenating the filename.
6116 (__gnat_locate_exec_on_path): improvements to the Win32 section:
6117 * avoid allocating the memory twice for better efficiency;
6118 * allocate 32K buffer for environment expansion as suggested by MSDN;
6119 * prepend ".;" to the path so that current directory is searched too.
6121 2005-06-14 Robert Dewar <dewar@adacore.com>
6123 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
6124 instead of raising CE (AI-241)
6125 Add warnings off to allow categorization violations for AI-362
6127 2005-06-14 Robert Dewar <dewar@adacore.com>
6129 * ali-util.adb, gnatbind.adb: Remove references to
6130 Force_RM_Elaboration_Order.
6132 * switch-b.adb: Remove recognition of -f switch
6134 2005-06-14 Pascal Obry <obry@adacore.com>
6136 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
6137 implementation which is slightly more efficient.
6139 2005-06-14 Gary Dismukes <dismukes@adacore.com>
6140 Javier Miranda <miranda@adacore.com>
6141 Ed Schonberg <schonberg@adacore.com>
6142 Hristian Kirtchev <kirtchev@adacore.com>
6144 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
6145 allocator's designated type is a class-wide type, and compiling for
6146 Ada 2005, emit a run-time check that the accessibility level of the
6147 type given in the allocator's expression is not deeper than the level
6148 of the allocator's access type.
6150 (Tagged_Membership): Modified to gives support to abstract interface
6153 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
6155 (Descendant_Tag): New predefined function
6156 (Is_Descendant_At_Same_Level): New predefined function
6157 (Get_Access_Level): New private function
6158 (Set_Access_Level): New private procedure
6159 (IW_Membership): New function. Given the tag of an object and the tag
6160 associated with an interface, evaluate if the object implements the
6162 (Register_Interface_Tag): New procedure used to initialize the table of
6163 interfaces used by the IW_Membership function.
6164 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
6165 of the dispatch table.
6166 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
6167 table of interfaces of the parent.
6168 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
6169 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
6170 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
6171 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
6172 Ada 2005 semantics for the new predefined function.
6174 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
6175 call to Descendant_Tag rather than Internal_Tag.
6176 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
6177 the accessibility level of the attribute's Item parameter is not deeper
6178 than the level of the attribute's prefix type. Tag_Error is raised if
6179 the check fails. The check is only emitted for Ada_05.
6180 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
6181 requested stream attribute, use it.
6182 (Expand_N_Attribute_Reference): If the designated type is an interface
6183 then rewrite the referenced object as a conversion to force the
6184 displacement of the pointer to the secondary dispatch table.
6185 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
6186 is a dereference of an object with a constrained partial view.
6188 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
6189 type is a class-wide type, emit a run-time check that the accessibility
6190 level of the returned object is not deeper than the level of the
6191 function's master (only when compiling for Ada 2005).
6193 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
6194 Action_Nb_Arg): Add entries for new Get_Access_Level and
6195 Set_Access_Level routines in these tables.
6196 (Make_DT): Generate a call to set the accessibility level of the
6197 tagged type in its TSD.
6198 (Make_DT): Code cleanup. The functionality of generating all the
6199 secondary dispatch tables has been moved to freeze_record_type.
6200 (Make_Abstract_Interface_DT): Minor code cleanup.
6201 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
6202 this subprogram implements a new algorithm that provides the
6203 same functionality and it is more clear in case of primitives
6204 associated with abstract interfaces.
6205 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
6206 clean up, the functionality of this subprogram is now provided
6207 by Set_All_DT_Position.
6208 (Write_DT): New subprogram: a debugging procedure designed to be called
6209 within gdb to display the dispatch tables associated with a tagged
6211 (Collect_All_Interfaces): New subprogram that collects the whole list
6212 of interfaces that are directly or indirectly implemented by a tagged
6214 (Default_Prim_Op_Position): New subprogram that returns the fixed
6215 position in the dispatch table of the default primitive operations.
6216 (Expand_Interface_Actuals): New subprogram to generate code that
6217 displaces all the actuals corresponding to class-wide interfaces to
6218 reference the interface tag of the actual object.
6219 (Expand_Interface_Conversion): New subprogram. Reference the base of
6220 the object to give access to the interface tag associated with the
6221 secondary dispatch table.
6222 (Expand_Interface_Thunk): New subprogram that generates the code of the
6223 thunk. This is required for compatibility with the C+ ABI.
6224 (Make_Abstract_Interface_DT): New subprogram that generate the
6225 declarations for the secondary dispatch tables associated with an
6227 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
6228 attribute for each primitive operation covering interface subprograms
6229 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
6230 These subprograms were upgraded to give support to abstract interfaces
6232 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
6233 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
6234 RE_Set_Access_Level.
6235 (RE_Unit_Table): Add entries for new Ada.Tags operations.
6236 Add support to call the followig new run-time subprograms:
6237 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
6239 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
6240 match its full declaration when both have an access definition with
6241 statically matching designated subtypes.
6242 (Analyze_Component_Declaration): Delete commented out code that was
6243 incorrectly setting the scope of an anonymous access component's type.
6244 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
6245 an access discriminant when the containing type is nonlimited.
6246 (Make_Incomplete_Type_Declaration): Create an incomplete type
6247 declaration for a record type that includes self-referential access
6249 (Check_Anonymous_Access_Types): Before full analysis of a record type
6250 declaration, create anonymous access types for each self-referential
6252 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
6253 an access component in this context is a Local_Anonymous_Access, for
6254 proper accessibility checks.
6255 (Access_Definition): Set properly the scope of the anonymous access type
6256 created for a stand-alone access object.
6257 (Find_Type_Of_Object): An object declaration may be given with an access
6259 (Complete_Subprograms_Derivation): New subprogram used to complete
6260 type derivation of private tagged types implementing interfaces.
6261 In this case some interface primitives may have been overriden
6262 with the partial-view and, instead of re-calculating them, they
6263 are included in the list of primitive operations of the full-view.
6264 (Build_Derived_Record_Type): Modified to give support to private
6265 types implemening interfaces.
6266 (Access_Definition): Reject ALL on anonymous access types.
6267 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
6268 type derivation to occur at a deeper accessibility level than the
6270 For the case of derivation within a generic body however, disallow the
6271 derivation if the derived type has an ancestor that is a formal type
6272 declared in the formal part of an enclosing generic.
6273 (Analyze_Object_Declaration): For protected objects, remove the check
6274 that they cannot contain interrupt handlers if not declared at library
6276 (Add_Interface_Tag_Components): New subprogram to add the tag components
6277 corresponding to all the abstract interface types implemented by a
6278 record type or a derived record type.
6279 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
6280 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
6281 Process_Full_View, Record_Type_Declaration): Modified to give
6282 support to abstract interface types
6283 (Collect_Interfaces): New subprogram that collects the list of
6284 interfaces that are not already implemented by the ancestors
6285 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
6286 when partial view has no discriminants and full view has defaults.
6287 (Constrain_Access): Reject a constraint on a general access type
6288 if the discriminants of the designated type have defaults.
6289 (Access_Subprogram_Declaration): Associate the Itype node with the inner
6290 full-type declaration or subprogram spec. This is required to handle
6291 nested anonymous declarations.
6292 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
6293 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
6294 Process_Full_View, Record_Type_Declaration): Modified to give
6295 support to abstract interface types
6296 (Derive_Subprograms): Addition of a new formal to indicate if
6297 we are in the case of an abstact-interface derivation
6298 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
6299 to the specification because it is requied to analyze all the
6300 identifiers found in a list of interfaces
6302 * debug.adb: Complete documentation of flag "-gnatdZ"
6304 * exp_ch3.adb: Implement config version of persistent_bss pragma
6305 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
6306 testing for TSS presence to properly enforce visibility rules.
6307 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
6308 Make_Abstract_Interfaces_DT to generate the secondary tables
6309 associated with abstract interfaces.
6310 (Build_Init_Procedure): Modified to initialize all the tags
6312 (Component_Needs_Simple_Initialization): Similar to other tags,
6313 interface tags do not need initialization.
6314 (Freeze_Record_Type): Modified to give support to abstract interface
6316 (Expand_N_Object_Declaration): Do not generate an initialization for
6317 a scalar temporary marked as internal.
6319 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
6320 in-out parameter that is a component in an initialization procedure,
6321 whose constraint might depend on discriminants, and that may be
6322 misaligned because of packing or representation clauses.
6323 (Is_Legal_Copy): New predicate to determine whether a possibly
6324 misaligned in-out actual can actually be passed by copy/return. This
6325 is an error in case the type is by_reference, and a warning if this is
6326 the consequence of a DEC import pragma on the subprogram.
6327 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
6329 (Expand_Inlined_Call): Mark temporary generated for the return value as
6330 internal, so that no useless scalar normalization is generated for it.
6331 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
6332 null procedure can always be inlined.
6333 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
6334 procedure, generate an explicit empty body for it.
6336 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
6337 Given a type implementing an interface, returns the corresponding
6338 access_disp_table value.
6339 (Find_Interface_Tag): New subprogram. Given a type implementing an
6340 interface, returns the record component containing the tag of the
6342 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
6343 previous ones that return the corresponding tag and access_disp_table
6345 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
6346 is a predefined primitive operation.
6347 (Expand_Subtype_From_Expr): If the expression is a selected component
6348 within an initialization procedure, compute its actual subtype, because
6349 the component may depend on the discriminants of the enclosing record.
6351 * i-cpp.ads, i-cpp.adb:
6352 This package has been left available for compatibility with previous
6353 versions of the frontend. As part of the new layout this is now a
6354 dummy package that uses declarations available at a-tags.ads
6356 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
6357 "constant access" and "aliased [constant] access" when not compiling
6359 Suppress Ada 2005 keyword warning if -gnatwY used
6360 (P_Identifier_Declarations): Add support for object declarations with
6362 (Private_Extension_Declaration): Complete the documentation
6363 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
6364 attribute in case of private extension declaration
6365 (P_Type_Declaration): Mark as "abstract" the type declarations
6366 corresponding with protected, synchronized and task interfaces
6367 (P_Declarative_Items): "not" and "overriding" are overriding indicators
6368 for a subprogram or instance declaration.
6370 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
6371 instantiation that is a dispatching operation has controlling access
6372 parameters that are null excluding.
6373 Save and restore Ada_Version_Explicit, for implementation of AI-362
6374 (Validate_Derived_Type_Instance): Add check for abstract interface
6376 (Analyze_Formal_Package): Establish Instantiation source for the copy of
6377 the generic that is created to represent the formal package.
6378 (Analyze_Package_Instantiation): Instantiate body immediately if the
6379 package is a predefined unit that contains inlined subprograms, and
6380 we are compiling for a Configurable_Run_Time.
6381 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
6382 If the program has a null default, generate an empty body for it.
6384 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
6385 error message condition, null procedures are correctly detected now.
6386 (New_Overloaded_Entity): Bypass trivial overriding indicator check
6387 for subprograms in the context of protected types. Instead, the
6388 indicator is examined in Sem_Ch9 while analysing the subprogram
6390 (Check_Overriding_Indicator): Check consistency of overriding indicator
6391 on subprogram stubs as well.
6392 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
6394 (Analize_Subprogram_Specification): When analyzing a subprogram in which
6395 the type of the first formal is a concurrent type, replace this type
6396 by the corresponding record type.
6397 (Analyze_Subprogram_Body): Undo the previous work.
6398 (Analyze_Procedure_Call): If the call has the form Object.Op, the
6399 analysis of the prefix ends up analyzing the call itself, after which
6401 (Has_Interface_Formals): New subprogram subsidiary to analyze
6402 subprogram_specification that returns true if some non
6403 class-wide interface subprogram is found
6404 (New_Overloaded_Entity): Modified to give support to abstract
6406 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
6407 access to subprograms must be recursive.
6408 (Is_Unchecked_Conversion): Improve the test that recognizes
6409 instantiations of Unchecked_Conversion, and allows them in bodies that
6410 are to be inlined by the front-end. When the body comes from an
6411 instantiation, a reference to Unchecked_Conversion will be an
6412 Expanded_Name, even though the body has not been analyzed yet.
6413 Replace Is_Overriding and Not_Overriding in subprogram_indication with
6414 Must_Override and Must_Not_Override, to better express intent of AI.
6415 (Analyze_Subprogram_Body): If an overriding indicator is given, check
6416 that it is consistent with the overrinding status of the subprogram
6418 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
6420 If the subprogram is a null procedure, indicate that it does not need
6423 * sem_disp.adb (Check_Controlling_Type): Give support to entities
6424 available through limited-with clauses.
6425 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
6426 allowed as the last primitive of a tagged type if it has no previous
6428 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
6429 to give support to abstract interface types
6431 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
6432 in the case where the target type is an anonymous access type of an
6433 object or component (that is, when Is_Local_Anonymous_Access is true).
6434 Prevent the special checks for conversions of access discriminants in
6435 the case where the discriminant belongs to a nonlimited type, since
6436 such discriminants have their accessibility level defined in the same
6437 way as a normal component of an anonymous access type.
6438 (Resolve_Allocator): When an allocator's designated type is a class-wide
6439 type, check that the accessibility level of type given in the
6440 allocator's expression or subtype indication is not statically deeper
6441 than the level of the allocator's access type.
6442 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
6443 name in a discriminant constraint of a record component.
6444 (Resolve_Explicit_Dereference): Do not check whether the type is
6445 incomplete when the dereference is a use of an access discriminant in
6446 an initialization procedure.
6447 (Resolve_Type_Conversion): Handle conversions to abstract interface
6449 (Valid_Tagged_Conversion): The conversion of a tagged type to an
6450 abstract interface type is always valid.
6451 (Valid_Conversion): Modified to give support to abstract interface types
6452 (Resolve_Actuals): Enable full error reporting on view conversions
6453 between unrelated by_reference array types.
6454 The rule for view conversions of arrays with aliased components is
6455 weakened in Ada 2005.
6456 Call to obsolescent subprogram is now considered to be a violation of
6457 pragma Restrictions (No_Obsolescent_Features).
6458 (Check_Direct_Boolean_Operator): If the boolean operation has been
6459 constant-folded, there is nothing to check.
6460 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
6461 check on possible violation of restriction No_Direct_Boolean_Operators
6462 until after expansion of operands, to prevent spurious errors when
6463 operation is constant-folded.
6465 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
6466 Has_Compatible_Type): Modified to give support to abstract interface
6468 (Interface_Present_In_Ancestor): New function to theck if some ancestor
6469 of a given type implements a given interface
6471 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
6472 prefix is a parameterless function that returns an access_to_procedure.
6473 (Transform_Object_Operation): Handle properly function calls of the
6474 form Obj.Op (X), which prior to analysis appear as indexed components.
6475 (Analyze_One_Call): Complete the error notification to help new Ada
6477 (Analyze_Allocator): For an allocator without an initial value, where
6478 the designated type has a constrained partial view, a discriminant
6479 constraint is illegal.
6481 2005-06-14 Robert Dewar <dewar@adacore.com>
6483 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
6484 do with treatment of Set_Col when positioned at end of line character.
6486 2005-06-14 Robert Dewar <dewar@adacore.com>
6488 * atree.adb: (Elist*): Protect against uninitialized field
6490 2005-06-14 Ed Schonberg <schonberg@adacore.com>
6492 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
6493 for an attribute reference that returns an access type.
6494 (Apply_Discriminant_Check): No need for check if (designated) type has
6495 constrained partial view.
6497 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
6498 both bound checks, rather than a conjunction.
6499 (Insert_Valid_Check): If the expression is an actual that is an indexed
6500 component of a bit-packed array, force expansion of the packed element
6501 reference, because it is specifically inhibited elsewhere.
6503 2005-06-14 Vincent Celier <celier@adacore.com>
6505 * clean.adb (Clean_Project): Correctly delete executable specified as
6506 absolute path names.
6508 * make.adb (Gnatmake): Allow relative executable path names with
6509 directory information even when project files are used.
6510 (Change_To_Object_Directory): Fail gracefully when unable to change
6511 current working directory to object directory of a project.
6512 (Gnatmake): Remove exception handler that could no longer be exercized
6513 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
6514 may be deallocated by Normalize_Arguments.
6515 (Collect_Arguments): Eliminate empty arguments
6517 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
6518 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
6519 (Check_Project): Return False when Project is No_Project. Return True
6520 when All_Projects is True.
6521 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
6522 All_Projects to True.
6525 2005-06-14 Ed Schonberg <schonberg@adacore.com>
6526 Javier Miranda <miranda@adacore.com>
6527 Thomas Quinot <quinot@adacore.com>
6528 Robert Dewar <dewar@adacore.com>
6529 Hristian Kirtchev <kirtchev@adacore.com>
6530 Gary Dismukes <dismukes@adacore.com>
6532 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
6533 anonymous access types, to indicate that the accessibility level of
6534 the type is determined by that of the enclosing declaration.
6535 (Has_Persistent_BSS): New flag
6536 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
6537 of this attribute with functions.
6538 (Is_Primitive_Wrapper): Remove the barrier.
6539 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
6540 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
6542 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
6543 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
6545 (Is_Pure_Unit_Access_Type): New flag
6546 (Abstract_Interfaces): Complete the assertion to cover all usages.
6547 (Set_Is_Interface): Complete the assertion to cover all usages.
6548 (Is_Primitive_Wrapper): New attribute.
6549 (Is_Obsolescent): Now applies to all entities (though it is only set
6550 for subprograms currently)
6551 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
6552 which solves various problems concerning access subtypes.
6553 (Has_Persistent_BSS): New flag
6554 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
6555 Remove these subprograms because this attribute is currently
6558 Has_Specified_Stream_Input (Flag190)
6559 Has_Specified_Stream_Output (Flag191)
6560 Has_Specified_Stream_Read (Flag192)
6561 Has_Specified_Stream_Write (Flag193)
6562 Present in all type and subtype entities. Set for a given view if the
6563 corresponding stream-oriented attribute has been defined by an
6564 attribute definition clause. When such a clause occurs, a TSS is set
6565 on the underlying full view; the flags are used to track visibility of
6566 the attribute definition clause for partial or incomplete views.
6567 (Is_Pure_Unit_Access_Type): New flag
6568 Clarify use of Is_Internal.
6569 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
6570 internally generated to wrap the invocation of tasks and protected
6571 types that implement interfaces.
6572 (Implementation_Base_Type): Documentation correction
6573 (Is_Obsolescent): Now applies to all entities (though it is only set
6574 for subprograms currently)
6575 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
6576 which solves various problems concerning access subtypes.
6578 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
6579 for examined parameters. Identify unequal parameter list lengths as
6580 non-conformant parameters.
6581 (Overriding_Possible): Do not check for "All" qualifier in declaration
6582 of controlling access parameter, following prescription of AI-404.
6583 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
6584 that build the procedure body that wraps an entry invocation
6585 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
6586 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
6587 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
6588 give support to abstract interface types
6590 * freeze.adb (Freeze_Entity): Issue error message if
6591 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
6592 type has no storage pool (Ada 2005) AI-366.
6593 Also modified to give support to abstract interface types
6594 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
6595 Inline_Always pragma.
6597 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
6598 now begin an entry declaration.
6599 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
6600 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
6601 a subprogram declaration preceded by an overriding indicator.
6602 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
6603 declarations or subprogram declarations preceded by reserved words
6604 "not" or "overriding".
6605 (P_Entry_Declaration): Update comment. Parse and check overriding
6606 indicator, set semantic flags of entry declarations.
6607 (P_Task): New error message in case of private applied
6608 to a task type declaration.
6609 (P_Protected): New error message in case of private applied
6610 to a task type declaration.
6612 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
6613 in which the full view of a type implementing an interface is a
6615 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
6616 Declare_Inherited_Private_Subprograms): If an explicit operation
6617 overrides an operation that is inherited in the private part, mark the
6618 explicit one as overriding, to enable overriding indicator checks.
6619 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
6620 full view to partial view, to simplify handling in back-end.
6622 * sprint.adb: Print interface lists where needed: derived types,
6623 protected types, task types.
6624 output "is null" for null procedures. Part of implementation of
6626 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
6627 relaxation of rules for access types in pure, shared passive partitions.
6629 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
6630 first read discriminants into temporary objects, performing checks on
6631 the read values, then possibly performing discriminant checks on the
6632 actual (if it is constrained), and only finally reading the components
6633 into a constrained temporary object.
6634 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
6635 case of reading discriminants of a mutable record type to recognize
6636 the new form of the code generated by
6637 Build_Mutable_Record_Read_Procedure.
6639 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
6640 of a simple call to Make_TSS_Name.
6641 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
6642 buffer, in order for Is_TSS to work correctly on local TSS names.
6644 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
6645 Is_Local_Anonymous_Access to check legaliy of attributes in the
6646 context of access components and stand-alone access objects.
6647 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
6648 treated as available for a limited private type if there is an
6649 attribute_definition_clause that applies to its full view, but not in
6650 other cases where the attribute is available for the full view
6651 (specifically, the sole fact that the full view is non-limited does not
6652 make the attribute available for the partial view).
6653 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
6654 non-overloaded intrinsic subprogram.
6655 (Check_Stream_Attribute): Reject an attribute reference for an
6656 unavailable stream attribute even if the prefix is not a limited type
6657 (case of a 'Input attribute reference for an abstract, non-classwide
6659 (Stream_Attribute_Available): New function to determine whether a stream
6660 attribute is available at a place.
6661 (Check_Attribute): Use Stream_Attribute_Available instead of just
6662 testing for TSS presence on the implementation base type.
6663 (Analyze_Attribute): Modified to give support to task interfaces.
6664 (Analyze_Access_Attribute): Add error check for use of an Access (or
6665 Unrestricted_Access) attribute with a subprogram marked as
6667 (Analyze_Attribute, case Attribute_Address): Add error check for use of
6668 an Address attribute with a subprogram marked as Inline_Always.
6669 Update Eval_Attribute to handle new value of Width from AI-395
6671 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
6672 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
6673 Factor common code across the stream-oriented attribute circcuits into
6674 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
6675 processing is functionally identical to the previous duplicated one,
6676 except that an expression that denotes an abstract subprogram will now
6677 be rejected, as mandated by AI-195 item 5.
6679 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
6680 Is_Local_Anonymous_Access to apply accessibility checks to access
6681 components and stand-alone access objects.
6682 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
6684 (Is_Potentially_Persistent_Type): New function
6685 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
6686 a heap-object whose type has a constrained partial view, the object is
6687 unconstrained and the component may depend on a discriminant, making its
6690 * sinfo.ads, sinfo.adb
6691 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
6692 (Must_Override): Flag applicable to N_Entry_Declaration.
6693 Indicate that interface_list can appear in single task and single
6694 protected declarations.
6695 Replace Is_Overriding and Not_Overriding with Must_Override and
6696 Must_Not_Override, to better express intent of AI.
6697 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
6698 of an overriding indicator in a subprogram or instance.
6699 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
6700 Add the overriding indicator [[not] overriding] construct to the
6701 following grammar productions:
6703 GENERIC_INSTANTIATION
6704 SUBPROGRAM_SPECIFICATION
6706 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
6707 can start with an overriding indicator.
6709 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
6710 flags accordingly on subrogram specifications or instances.
6713 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
6714 overriding_indicator, if present, is consistent with status of spec.
6715 Improve error message for null-excluding checks on controlling access
6717 (Check_In_Previous_With_Clause): Protect the frontend against
6718 previously reported critical errors in the context clauses.
6719 Save and restore Ada_Version_Explicit, for implementation of AI-362
6720 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
6721 operation verify that controlling formals of the renamed entity that
6722 are access parameters are explicitly non-null.
6723 (Find_Expanded_Name): Improve error message when prefix is an illegal
6724 reference to a private child unit.
6726 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
6727 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
6728 Rewrite to correspond to new wide character names in AI-395
6730 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
6733 2005-06-14 Ed Schonberg <schonberg@adacore.com>
6734 Robert Dewar <dewar@adacore.com>
6736 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
6737 code, not on the bodies of predefined operations, to cut down on
6740 2005-06-14 Ed Schonberg <schonberg@adacore.com>
6742 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
6743 be expanded in place. The size computation does not require a
6744 subtraction, which would raise an exception on a compiler built with
6745 assertions when the upper bound is Integer'first.
6746 (Flatten): For an array of composite components, take into account the
6747 size of the components to determine whether it is safe to expand the
6748 array into a purely positional representation.
6750 2005-06-14 Thomas Quinot <quinot@adacore.com>
6752 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
6753 denoting a formal parameter into account.
6755 2005-06-14 Ed Schonberg <schonberg@adacore.com>
6757 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
6758 the entry_call alternative of a conditional entry call, wrap the
6759 conditional entry call itself.
6761 2005-06-14 Nicolas Setton <setton@adacore.com>
6762 Ed Schonberg <schonberg@adacore.com>
6764 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
6765 the "simple_choice" member in a variant record, in accordance with the
6766 description in the package spec: the information output for a constant
6767 should be "S number", not "SS number".
6768 (Get_Encoded_Name): Return at once if not generating code. Avoids name
6769 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
6771 2005-06-14 Thomas Quinot <quinot@adacore.com>
6773 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
6774 RACW without any primitives, do not generate the if statement for
6775 dispatching by name in the PolyORB/DSA case, as it would be malformed
6776 (it would have an Elsif_Parts list that is not No_List, but with a
6779 2005-06-14 Robert Dewar <dewar@adacore.com>
6781 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
6783 2005-06-14 Jose Ruiz <ruiz@adacore.com>
6785 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
6786 can determine whether pragma Suppress_Exception_Locations is in effect.
6788 * utils2.c (build_call_raise): Do not pass the file name to the
6789 exception handler if pragma Suppress_Exception_Locations is in effect.
6790 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
6792 2005-06-14 Emmanuel Briot <briot@adacore.com>
6794 * g-debpoo.adb (Deallocate, Dereference): Improve output.
6796 2005-06-14 Nicolas Roche <roche@adacore.com>
6798 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
6800 (Next_Level): Fix minor bug in handling of ../dir case
6801 (Read): Add dir separator to Directory name so that "" is understood as
6804 2005-06-14 Pascal Obry <obry@adacore.com>
6806 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
6807 releasing the items.
6809 2005-06-14 Vincent Celier <celier@adacore.com>
6810 Cyrille Comar <comar@adacore.com>
6812 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
6813 with output file descriptor and with output file name.
6814 (Dup, Dup2): Now global procedures as they are used by two subprograms
6815 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
6817 2005-06-14 Thomas Quinot <quinot@adacore.com>
6820 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
6822 (Create_Selector): Bind listening socket used to create the signalling
6823 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
6824 Set listen backlog to 1 to ensure that we detect socket theft by a
6825 failure of our own connect(2) call.
6826 (Check_Selector): Improve documentation of the selector mechanism.
6827 (Broadcast_Inet_Addr): New constant.
6829 2005-06-14 Gary Dismukes <dismukes@adacore.com>
6831 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
6832 type which turns out to be an incomplete and incorrect fix.
6833 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
6834 of the type is declared in a record (for determination of insertion
6836 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
6837 a private type and ensure that the primary entity is used for the type
6838 of the newly created function's V formal by taking the Etype of the
6841 2005-06-14 Javier Miranda <miranda@adacore.com>
6842 Jose Ruiz <ruiz@adacore.com>
6843 Robert Dewar <dewar@adacore.com>
6844 Ed Schonberg <schonberg@adacore.com>
6846 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
6847 that indicates if we are parsing a compilation unit found in a
6848 limited-with clause.
6849 It is use to avoid the circularity check.
6851 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
6852 we are parsing a compilation unit found in a limited-with clause. This
6853 is use to avoid the circularity check.
6855 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
6856 unit as a consequence of parsing a limited-with clause. This is used
6857 to avoid the circularity check.
6859 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
6860 (Analyze_Context): Limited-with clauses are now allowed
6861 in more compilation units.
6862 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
6863 againts previously reported critical errors in context clauses
6864 (Install_Limited_Withed_Unit): Code cleanup plus static detection
6865 of two further errors: renamed subprograms and renamed packages
6866 are not allowed in limited with clauses.
6867 (Install_Siblings): Do not install private_with_clauses on the package
6868 declaration for a non-private child unit.
6869 (Re_Install_Parents): When a parent of the subunit is reinstalled,
6870 reset visibility of child units properly.
6871 (Install_Withed_Unit): When a child unit appears in a with_clause of its
6872 parent, it is immediately visible.
6874 2005-06-14 Ed Schonberg <schonberg@adacore.com>
6875 Emmanuel Briot <briot@adacore.com>
6877 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
6878 declared within an inlined body as referenced, to prevent spurious
6880 (Output_One_Ref): If an entity renames an array component, indicate in
6881 the ALI file that this aliases (renames) the array. Capture as well
6882 function renamings that rename predefined operations.
6883 Add information about generic parent for package and subprogram
6885 (Get_Type_Reference): For a subtype that is the renaming of an actual in
6886 an instantiation, use the first_subtype to ensure that we don't generate
6887 cross-reference information for internal types.
6888 For objects and parameters of a generic private type, retain the '*'
6889 indicator to distinguish such an entity from its type.
6891 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
6892 to store information about instantiated entities.
6894 * ali.adb (Scan_ALI): Add support for parsing the reference to the
6897 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
6898 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
6901 2005-06-10 Doug Rupp <rupp@adacore.com>
6902 Arnaud Charlet <charlet@adacore.com>
6903 Olivier Hainque <hainque@adacore.com>
6904 Jose Ruiz <ruiz@adacore.com>
6906 * Make-lang.in: Add initialize.o when needed.
6907 Remove obsolete references to RT_FLAGS.
6908 Add missing dependencies for sdefault.o
6910 * initialize.c: New file.
6912 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
6913 [VMS] cond_signal_table: Fix problem in declaration.
6914 [VMS] __gnat_error_handler: rewrite.
6915 Move all __gnat_initialize() routines to initialize.c
6916 Specialize the former "hpux" section to "hppa hpux", as this is what the
6917 section really is here for and we now have other hpux ports that need
6919 (__gnat_adjust_context_for_raise) i386-linux: First version of this
6920 function for this target. Adjust PC by one in the machine context. This
6921 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
6922 it is more reliable to do that in the signal handler itself.
6923 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
6924 flags, so that the handler is passed the context structure to adjust
6926 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
6927 SA_SIGINFO sigaction should look like. Call
6928 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
6929 Machine_State_Operations stuff.
6930 Add conditional code so that the x86_64 is also supported.
6932 2005-06-14 Pascal Obry <obry@adacore.com>
6934 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
6937 2005-06-14 Robert Dewar <dewar@adacore.com>
6939 * opt.ads, opt.adb: New flags for persistent_bss mode
6940 Add Ada_Version_Explicit, for implementation of AI-362
6941 Add Assertions_Enabled_Config and associated handling
6942 Needed since setting can be changed with Assertion_Policy pragma
6943 Add new flag Warn_On_Ada_2005_Compatibility
6945 * switch-c.adb: Recognize -gnatwy/Y
6946 Set Ada_Version_Explicit, for implementation of AI-362
6947 The -gnatg switch now includes -gnatyu
6949 * usage.adb: Add -gnatwy/Y
6950 Remove wrong asterisk on -gnatwX line
6951 Add line for -gnatyu switch
6953 2005-06-14 Vincent Celier <celier@adacore.com>
6955 * osint.adb (Add_Default_Search_Dirs): Put source and object
6956 directories of project files before directories coming from
6957 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
6959 2005-06-14 Robert Dewar <dewar@adacore.com>
6962 * par-ch2.adb (Scan_Pragma_Argument): New procedure
6963 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
6965 2005-06-14 Vincent Celier <celier@adacore.com>
6967 * prep.adb (Preprocess): Ignore error when scanning the first token of
6970 2005-06-14 Vincent Celier <celier@adacore.com>
6972 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
6973 (Check_Stand_Alone_Library): If the specified reference symbol file does
6974 not exist, only issue a warning when the symbol policy is not
6975 Controlled. And, when symbol policy is Compliant, set the symbol
6976 policy to Autonomous.
6978 2005-06-14 Vincent Celier <celier@adacore.com>
6980 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
6981 when the project file in a with clause is not the last one, that is the
6982 project file name is followed by a comma.
6983 * prj-pp.adb: (First_With_In_List): New Boolean global variable
6984 (Print): Issue list of project files separated by commas in with clauses
6985 according to the values returned by Is_Not_Last_In_List.
6986 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
6987 (Set_Is_Not_Last_In_List): New procedure
6989 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
6991 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
6993 2005-06-14 Robert Dewar <dewar@adacore.com>
6995 * scng.adb: Add call to new Check_EOF routine
6996 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
6997 Add some comments regarding wide character handling
6999 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
7001 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
7003 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
7004 characters are now considered graphic characters and hence yield false
7007 * nmake.adt: Modify header so that xnmake does not generate output
7008 files with multiple blank lines.
7010 * treeprs.adt: Remove a blank line so that output from xtreeprs does
7011 not have an extra blank line
7013 2005-06-14 Gary Dismukes <dismukes@adacore.com>
7015 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
7016 expression when the component type is an anonymous access type to
7017 ensure that appropriate accessibility checks are done.
7019 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
7020 expression of an assignment when the target object is of an anonymous
7021 access type. This ensures that required accessibility checks are done.
7022 (One_Bound): Move the check for type Universal_Integer to
7024 (Process_Bounds): Check whether the type of the preanalyzed range is
7025 Universal_Integer, and in that case set Typ to Integer_Type prior
7026 to setting the type of the original range and the calls to One_Bound.
7028 2005-06-14 Ed Schonberg <schonberg@adacore.com>
7030 * sem_case.adb (Expand_Others_Choice): Improve warning.
7032 2005-06-14 Ed Schonberg <schonberg@adacore.com>
7034 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
7035 constraint of full view if present, when other type is discriminated.
7036 (Eval_Relational_Op): Recognize tests of pointer values against Null,
7037 when the pointer is known to be non-null, and emit appropriate warning.
7039 2005-06-14 Robert Dewar <dewar@adacore.com>
7040 Ed Schonberg <schonberg@adacore.com>
7043 * sem_prag.adb: Implement pragma Persistent_BSS
7044 Remove obsolete pragma Persistent_Data, Persistent_Object
7045 Set Ada_Version_Explicit, for implementation of AI-362
7046 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
7047 Add processing for pragma Pure_05 and Preelaborate_05
7048 Add processing for Assertion_Policy pragma
7049 Add pragma identifiers for Assert
7050 (Analyze_Pragma, case Assert): Check number of arguments
7051 (Process_Inline): Additional guard against an illegal program, where the
7052 argument of the pragma is undefined, and warnings on redundant
7053 constructs are enabled.
7054 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
7055 Ada_05 to this pragma, specifying that the pragma is only active in
7057 (Check_Arg_Order): New procedure
7058 Add appropriate calls to this procedure throughout
7059 Also throughout, check entity name before doing any other checks
7061 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
7062 Remove obsolete pragma Persistent_Data, Persistent_Object
7063 Add entries for pragma Pure_05 and Preelaborate_05
7064 Add entries for Assertion_Policy pragma and associated names
7065 Add some names for pragma argument processing
7067 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
7069 2005-06-14 Ed Schonberg <schonberg@adacore.com>
7071 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
7072 appears within a negation (either from source or as a rewriting of
7073 inequality) adjust text of warning accordingly.
7075 2005-06-14 Thomas Quinot <quinot@adacore.com>
7077 * s-strxdr.adb: Follow AI95-00132
7079 2005-06-14 Arnaud Charlet <charlet@adacore.com>
7081 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
7083 2005-06-14 Arnaud Charlet <charlet@adacore.com>
7084 Jose Ruiz <ruiz@adacore.com>
7086 * s-tposen.adb, s-tpobop.adb
7087 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
7089 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
7090 there is no violation of the Max_Entry_Queue_Length restriction (if it
7091 has been set); Program_Error is raised otherwise.
7092 (Requeue_Call): Before requeuing the task on the target entry queue we
7093 check that there is no violation of the Max_Entry_Queue_Length
7094 restriction (if it has been set); Program_Error is raised otherwise.
7096 2005-06-14 Robert Dewar <dewar@adacore.com>
7098 * styleg.adb: Fix several remaining problems in -gnatyu switch
7099 Blank line count not reset at start
7100 Scanning outside source buffer in some cases
7101 Confusing message for blanks at end of file
7102 Non-empty blank lines not recognized
7104 * nmake.adt: Modify header so that xnmake does not generate output
7105 files with multiple blank lines.
7107 * treeprs.adt: Remove a blank line so that output from xtreeprs does
7108 not have an extra blank line
7110 2005-06-14 Sergey Rybin <rybin@adacore.com>
7112 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
7114 2005-06-14 Doug Rupp <rupp@adacore.com>
7115 Vincent Celier <celier@adacore.com>
7117 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
7120 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
7121 Remove "Library" command.
7122 Change keyword for style check -gnatyd from NOCRLF to
7124 Remove useless second style check keyword NONE
7125 Remove help documentation for inexistent style check keyword
7127 Add help documentation for style check keywords DOS_LINE_ENDINGS,
7128 UNNECESSARY_BLANK_LINES and XTRA_PARENS
7129 Add UNNECESSARY_BLANK_LINES for -gnatyu
7130 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
7132 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
7134 2005-06-14 Vincent Celier <celier@adacore.com>
7136 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
7137 gprmake was invoked with -d.
7138 (Compile_Sources): If -d was used, output the "completed ..." message
7139 for each compilation.
7140 (Scan_Arg): Recognize new switch -d
7141 When -c and at least one main is specified, set
7142 Unique_Compile to True to guarantee that no other sources will be
7145 2005-06-14 Matthew Heaney <heaney@adacore.com>
7147 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
7148 * a-swuwha.ads, a-swuwha.adb: New files
7150 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
7151 * a-szuzha.ads, a-szuzha.adb: New files.
7153 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
7154 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
7155 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
7156 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
7157 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
7158 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
7159 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
7160 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
7161 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
7162 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
7165 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
7166 Olivier Hainque <hainque@adacore.com>
7167 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7168 Pascal Obry <obry@adacore.com>
7170 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
7172 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
7173 making a temporary around a procedure call because of non-addressable
7175 (process_freeze_entity): If entity is a private type, capture size
7176 information that may have been computed for the full view.
7177 (tree_transform, case N_Allocator): If have initializing expression,
7178 check type for Has_Constrained_Partial_View and pass that to
7180 (tree_transform, case N_Return_Statement): Pass extra arg to
7183 * decl.c (annotate_value): Remove early return if -gnatR is not
7185 (gnat_to_gnu_field): Don't make a packable type for a component clause
7186 if the position is byte aligned, the field is aliased, and the clause
7187 size isn't a multiple of the packable alignment. It serves no useful
7188 purpose packing-wise and would be rejected later on.
7189 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
7192 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
7193 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
7195 (create_concat_name): Idem.
7197 2005-06-10 Robert Dewar <dewar@adacore.com>
7198 Eric Botcazou <ebotcazou@adacore.com>
7199 Ben Brosgol <brosgol@adacore.com>
7200 Cyrille Comar <comar@adacore.com>
7201 Sergey Rybin <rybin@adacore.com>
7202 Pascal Obry <obry@adacore.com>
7204 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
7205 Document second argument (Ada_05) of pragma Obsolescent
7206 Add note that call to subprogram marked with pragma Obsolescent
7207 is now considered to be a violation of program Restrictions
7208 (No_Obsolescent_Features).
7209 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
7210 that only machine-dependent attributes are supported.
7213 Commented out menu lines and empty section for gnatclean examples
7215 Fix some over long lines
7216 Clarify and enhance documentation of ADA_PROJECT_PATH.
7217 Rework section 2.11.2(3) about linking with a non-GNU compiler.
7218 Mention new switch -fcallgraph-info.
7219 Mention new switch -fstack-usage.
7220 For gnatpp, replace '-notab' with '-N' and add this option to Index
7221 Corrected VMS example.
7222 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
7224 Add documentation for -gnatyu switch (unnecessary blank lines)
7225 Document new switch -U for GNAT PRETTY and GNAT METRIC
7226 Add note about Stdcall being handled as C convention on non Windows OS.
7227 Remove some junk typo in description of gnatbind -S switch
7228 Remove reference to Extensions_Allowed pragma
7229 Document the new order of the directories to be searched (source and
7230 object directories of project files before directories in ADA_*_PATH
7231 environment variables.
7233 * g-trasym.ads: Document that IRIX is supported
7235 2005-06-10 Arnaud Charlet <charlet@adacore.com>
7237 * Makefile.in: Add initialize.o when needed.
7238 Adapt to new VMS package body Symbols and subunits
7239 No specialized version of a-sytaco is needed for VxWorks.
7241 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
7242 * a-zchara.ads, a-widcha.ads: New files.
7244 * system-hpux-ia64.ads: New file.
7246 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
7247 is imported from the VxWorks kernel.
7249 2005-06-14 Robert Dewar <dewar@adacore.com>
7251 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
7252 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
7253 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
7254 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
7255 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
7256 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
7257 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
7258 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
7259 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
7260 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
7261 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
7262 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
7264 2005-06-14 Thomas Quinot <quinot@adacore.com>
7266 * xeinfo.adb: Fix typo in comment
7268 2005-06-14 Javier Miranda <miranda@adacore.com>
7270 * repinfo.ads: Fix typo in comment
7272 2005-06-14 Gary Dismukes <dismukes@adacore.com>
7274 * s-finimp.adb (Parent_Tag): Delete this imported function (function
7275 Parent_Tag is now in the visible part of Ada.Tags).
7276 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
7277 using imported function.
7279 2005-06-14 Bernard Banner <banner@adacore.com>
7281 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
7282 also apply for handling support for VxSim 653.
7284 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
7286 * xsnames.adb: Add automatic generation of snames.h.
7288 2005-06-14 Thomas Quinot <quinot@adacore.com>
7290 * gen-soccon.c: Add IP_MULTICAST_IF constant
7291 Minor reformatting and adjustments to prevent warnings.
7293 2005-06-14 Pascal Obry <obry@adacore.com>
7295 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
7297 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
7299 * trans.c (gnat_gimplify_expr): Call
7300 recompute_tree_invarant_for_addr_expr when we change
7301 the operand of the ADDR_EXPR.
7303 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7305 * misc.c: Don't include errors.h.
7307 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7309 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
7311 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
7313 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
7315 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
7317 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
7320 * Makefile.in: Make TGT_LIB behave correctly.
7322 2005-04-23 DJ Delorie <dj@redhat.com>
7324 * misc.c: Adjust warning() callers.
7326 2005-04-16 Laurent GUERBY <laurent@guerby.net>
7329 * a-nudira.adb (Value): Check for valid string.
7330 * a-nuflra.adb (Value): Likewise.
7332 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
7334 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
7336 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
7338 * adaint.c, init.c, tracebak.c: Fix comment typos.
7339 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
7341 2005-04-07 Laurent GUERBY <laurent@guerby.net>
7342 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7344 * Makefile.in: Add make ifeq define for hppa linux tasking support.
7345 * system-hpux.ads: Define Signed_Zeros to be True.
7346 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
7348 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
7350 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
7351 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
7354 2005-03-30 Tom Tromey <tromey@redhat.com>
7356 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
7358 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
7360 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
7362 2005-03-29 Robert Dewar <dewar@adacore.com>
7364 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
7365 fixed-point expression has value that is not a multiple of the Small
7368 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
7370 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
7373 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
7375 2005-03-29 Vincent Celier <celier@adacore.com>
7377 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
7378 (Build_Dynamic_Library.Version_String): Return the empty string when
7379 Lib_Version is empty or when the symbol policy is not Autonomous.
7381 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
7382 a symbol is not in the reference symbol file, increase the Major ID
7383 and set the Minor ID to 0.
7384 Use gsmatch=lequal instead of gsmatch=equal
7386 2005-03-29 Doug Rupp <rupp@adacore.com>
7388 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
7391 2005-03-29 Javier Miranda <miranda@adacore.com>
7393 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
7394 (Inherit_DT): The first formal has been redefined as a Tag.
7395 This allows us the removal of the subprogram Get_TSD.
7396 (TSD): Replace the call to Get_TSD by the actual code.
7398 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
7399 (Make_DT): Upgrade the call to Inherit_TSD according to the
7400 new interface: the first formal is now a Tag.
7402 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
7404 This change allows us to remove the subprogram Get_TSD.
7405 (CPP_Get_TSD): Subprogram removed.
7406 (TSD): Replace the call to CPP_Get_TSD by the actual code.
7408 * rtsfind.ads: Remove support to call the run-time
7411 2005-03-29 Robert Dewar <dewar@adacore.com>
7413 * errutil.adb, errout.adb:
7414 Minor comment updates on Line_Terminator references
7416 * par-ch10.adb: Add ??? comment about line terminator
7418 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
7419 (check dos line terminator).
7420 (Check_Line_Max_Length): New procedure, split off from the existing
7421 Check_Line_Terminator routine. Separating this out allows -gnatyf to
7422 be properly recognized.
7424 * styleg.adb: Add ??? comment for line terminator reference
7426 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
7427 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
7429 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
7430 (check dos line terminator).
7431 (Check_Line_Max_Length): New procedure, split off from the existing
7432 Check_Line_Terminator routine. Separating this out allows -gnatyf to
7433 be properly recognized.
7435 * stylesw.ads, stylesw.adb:
7436 Add handling for new -gnatyd switch (check dos line terminator)
7438 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
7439 Recognize -gnatwb/-gnatwB switches
7440 Include Warn_On_Bad_Fixed_Value for -gnatg
7443 Add line for new -gnatyd switch (check dos line terminator)
7445 * usage.adb: Add lines for -gnatwb/-gnatwB
7447 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
7449 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
7451 * gnat_ugn.texi: Fix overlong lines
7452 Document new -gnatyd switch
7453 Document new -gnatwb/-gnatwB switches
7455 2005-03-29 Ed Schonberg <schonberg@adacore.com>
7457 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
7458 order to retrieve the component list of the type, before examining
7459 individual components.
7461 * sem_type.adb (Covers): Types are compatible if one is the base type
7462 of the other, even though their base types might differ when private
7465 2005-03-29 Thomas Quinot <quinot@adacore.com>
7467 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
7468 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
7469 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
7470 analyzed if expansion is disabled (which could otherwise cause spurious
7471 error messages if expansion has been disabled due to previous
7472 (unrelated) errors).
7474 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
7475 is disabled, the entity denoted by the argument is the access type
7476 itself, not an underlying record type, so there is no need to go back
7477 to the Corresponding_Remote_Type.
7479 2005-03-29 Gary Dismukes <dismukes@adacore.com>
7480 Robert Dewar <dewar@adacore.com>
7482 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
7483 expand a call to an instance of
7484 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
7485 Constructor actual of the instance. A class-wide membership
7486 check is also generated, to ensure that the tag passed to the instance
7487 denotes a type in the class.
7488 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
7489 of Name_Generic_Dispatching_Constructor.
7491 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
7492 05 unit for AI-260-02).
7494 * a-tgdico.ads: New file.
7496 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
7497 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
7499 * snames.ads, snames.adb (Preset_Names): Add entry for
7500 Generic_Dispatching_Constructor.
7503 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
7504 character type cases.
7505 (Analyze_Subprogram_Renaming): Add special handling for
7506 the case of renaming of stream attributes when the renaming denotes a
7507 generic formal subprogram association for an abstract formal subprogram.
7508 Check that the attribute is a primitive stream attribute (and not
7509 a class-wide stream attribute) and then rewrite the attribute name
7510 as the name of the appropriate compiler-generated stream primitive.
7512 2005-03-29 Robert Dewar <dewar@adacore.com>
7514 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
7516 (Is_Possibly_Unaligned_Object): Correct typo that
7517 resulted in inaccurate result for unaligned scalars within records.
7519 2005-03-29 Ed Schonberg <schonberg@adacore.com>
7521 * freeze.adb (Freeze_Record_Type): If the type of the component is an
7522 itype whose parent is controlled and not yet frozen, do not create a
7523 freeze node for the itype if expansion is disabled.
7525 2005-03-29 Vincent Celier <celier@adacore.com>
7527 * make.adb (Gnatmake): Don't fail if the main project file is declared
7528 as having no Ada sources. Do not display message "no sources to
7529 compile" in quiet output.
7531 2005-03-29 Doug Rupp <rupp@adacore.com>
7533 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
7536 2005-03-29 Robert Dewar <dewar@adacore.com>
7538 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
7541 2005-03-29 Robert Dewar <dewar@adacore.com>
7543 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
7544 missing TYPE Improve the error message generated when compiling a
7545 limited interface in Ada83 or Ada95 mode.
7547 2005-03-29 Robert Dewar <dewar@adacore.com>
7549 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
7550 rather than proceed ahead using a junk attribute name.
7552 2005-03-29 Vincent Celier <celier@adacore.com>
7554 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
7556 * prj-part.adb (Parse_Single_Project): Set the location of a project
7557 on its defining identifier, rather than on the reserved word "project".
7559 * prj-proc.adb (Expression): Adapt to the fact that default of external
7560 references may be string expressions, not always literal strings.
7561 (Recursive_Process): Set Display_Name equal to Name
7562 when Location is No_Location, that is when there is no actual file.
7563 Get the Display_Name of the project from the source, when it is not a
7565 (Process): Use the Display_Name in error messages
7567 * prj-strt.adb (External_Reference): Allow default to be string
7568 expressions, not only literal strings.
7570 2005-03-29 Vincent Celier <celier@adacore.com>
7572 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
7573 file and the reference symbol file to be the same file.
7575 2005-03-29 Thomas Quinot <quinot@adacore.com>
7577 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
7578 forbid conversion of a local access-to-subprogram type to a remote one.
7580 * sem_util.adb (Wrong_Type): For a record type that is the expanded
7581 equivalent type for a remote access-to-subprogram type, go back to the
7582 original RAS entity when displaying an error message, so the casing is
7583 the original source casing.
7585 2005-03-29 Robert Dewar <dewar@adacore.com>
7587 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
7590 2005-03-29 Ed Schonberg <schonberg@adacore.com>
7592 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
7593 subtype if code is being pre-analyzed, to prevent un-expanded
7594 references to protected formals, among others.
7595 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
7596 interpretation that can be a call, include the result of the call as a
7597 possible interpretation of the dereference.
7599 * sem_ch5.adb (Process_Bounds): Determine type of range by
7600 pre-analyzing a copy of the original range, and then analyze the range
7601 with the expected type.
7603 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
7604 with an overloaded prefix where not all interpretations yield an
7605 access to subprogram, do not rewrite node as a call.
7606 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
7607 the node as a call once the context identifies the interpretation of
7608 the prefix whose call yields the context type.
7609 (Valid_Conversion): For the case of a conversion between
7610 local access-to-subprogram types, check subtype conformance using
7611 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
7612 detailed error message.
7614 2005-03-29 Ed Schonberg <schonberg@adacore.com>
7616 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
7617 indicator, indicate that the formal can never be null.
7618 (Process_Formals): If a formal has a non_null indicator, insert the
7619 resulting subtype immediately before the enclosing subprogram decl,
7620 and not at the beginning of the corresponding declarative part, to
7621 prevent access before elaboration (Ada2005).
7623 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7626 * utils.c (finish_record_type): Use variable_size when setting sizes.
7628 2005-03-29 Robert Dewar <dewar@adacore.com>
7630 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
7631 guarantee Unix style line terminators for the output files, even when
7634 2005-03-29 Robert Dewar <dewar@adacore.com>
7636 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
7637 buffer if an exception is raised.
7639 2005-03-29 Ed Falis <falis@adacore.com>
7641 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
7644 2005-03-29 Robert Dewar <dewar@adacore.com>
7646 * sem_util.ads: Minor reformatting
7647 * gnat_rm.texi: Minor editing.
7649 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
7651 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
7652 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
7654 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
7656 * adaint.c (__gnat_portable_spawn): Adjust cast.
7658 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
7660 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
7662 2005-03-17 Pascal Obry <obry@adacore.com>
7664 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
7667 * expect.c (__gnat_waitpid): Moved here from adaint.c.
7668 Reimplement under Win32 using Win32 API.
7670 (__gnat_kill) [Win32]: Properly close the process handle before leaving
7673 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
7675 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
7676 (DECL_RENAMED_OBJECT): New accessor macro.
7677 (SET_DECL_RENAMED_OBJECT): New setter macro.
7679 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
7680 object in all cases. Attach the renamed object to the VAR_DECL.
7681 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
7682 field is not prescribed.
7684 * misc.c (gnat_handle_option): Handle -gnatO separately.
7685 (gnat_print_decl) <VAR_DECL>: New case.
7686 Print the DECL_RENAMED_OBJECT node.
7688 * lang.opt: Declare separate -gnatO option.
7690 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
7691 pointer, replace it with the renamed object.
7692 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
7693 pointer type if the source is not a fat pointer type whose underlying
7694 array has the same non-zero alias set as that of the destination array.
7696 2005-03-17 Javier Miranda <miranda@adacore.com>
7698 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
7699 (Get_Inheritance_Depth): Removed.
7700 (Set_Inheritance_Depth): Removed.
7702 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
7703 subprogram Get_Expanded_Name because it is not referenced by the
7706 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
7707 (CPP_Get_Inheritance_Depth): Removed.
7708 (CPP_Set_Inheritance_Depth): Removed.
7710 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
7712 2005-03-17 Robert Dewar <dewar@adacore.com>
7714 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
7715 3, since we now expect GCC 3 to do all the work.
7717 2005-03-17 Javier Miranda <miranda@adacore.com>
7719 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
7720 of one barrier to avoid wrong usage of this attribute.
7722 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
7723 First_Private_Entity.
7725 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
7726 the subprogram against wrong usage.
7727 Adapt the code to traverse the entities in the
7728 scope of a record_type because in addition to its usage regarding
7729 packages, this subprogram is also called by Expand_N_Freeze_Entity
7730 to install the visible declarations of the enclosing scope of a
7731 record_type_with_private to establish the proper visibility before
7732 freezing the entity and related subprograms.
7734 2005-03-17 Ed Schonberg <schonberg@adacore.com>
7736 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
7739 2005-03-17 Thomas Quinot <quinot@adacore.com>
7741 * exp_ch3.adb (Check_Attr): New subprogram.
7742 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
7743 into a new Check_Attr subprogram, in order to provide a more
7744 explanatory error message (including the name of the missing attribute).
7745 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
7746 subprogram determines whether a default implementation exists for a
7747 given stream attribute.
7748 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
7749 Determine whether to generate a default implementation for each stream
7750 attribute separately, as this depends on the specific attribute.
7752 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
7753 limited extension where a stream attribute is missing for a limited
7754 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
7755 generate a bogus reference to the missing attribute to prevent
7756 cascaded errors. Instead, generate a null statement.
7758 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
7759 available for a limited type if it has been specified for an ancestor
7762 2005-03-17 Ed Schonberg <schonberg@adacore.com>
7764 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
7765 entity is an operator.
7767 2005-03-17 Thomas Quinot <quinot@adacore.com>
7769 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
7770 spec, to make this predicate available to other units.
7772 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
7775 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
7776 when no distribution runtime library is available.
7778 * sem_res.adb, sem_dist.adb: Disable expansion of remote
7779 access-to-subprogram types when no distribution runtime library is
7781 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
7782 predicate available to other units.
7784 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
7785 spec, to make this predicate available to other units.
7787 2005-03-17 Vincent Celier <celier@adacore.com>
7789 * make.adb (Insert_Project_Sources): Make sure the Q is always
7792 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
7793 the default for the tree, not the global default naming.
7795 * prj-proc.adb (Recursive_Process): No need to put the default naming
7796 in the project data, it's already there.
7798 2005-03-17 Doug Rupp <rupp@adacore.com>
7800 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
7802 * 5xcrtl.ads: Renamed to...
7803 * s-crtl-vms64.ads: ...this new file
7805 2005-03-17 Robert Dewar <dewar@adacore.com>
7808 * namet.adb (Copy_One_Character): Set proper wide character encoding
7809 for upper half character if we have upper half encoding.
7811 2005-03-17 Robert Dewar <dewar@adacore.com>
7813 * par.adb (Par): Improved msg for attempt to recompile predefined unit
7815 2005-03-17 Thomas Quinot <quinot@adacore.com>
7817 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
7818 tagged limited type, the TSS is a newly built renaming declaration:
7819 insert it using Set_TSS, not Copy_TSS.
7821 2005-03-17 Javier Miranda <miranda@adacore.com>
7823 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
7824 Try_Object_Operation): Analyze the object that is accessible
7825 through the prefix of the subprogram call before we apply
7826 the transformation of the object-operation notation.
7828 2005-03-17 Jose Ruiz <ruiz@adacore.com>
7830 * s-taprob.adb (Initialize_Protection): Initialize the protected
7831 object's owner to Null_Task.
7832 (Lock): If pragma Detect_Blocking is in effect and the caller of this
7833 procedure is already the protected object's owner then Program_Error
7834 is raised. In addition the protected object's owner is updated.
7835 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
7836 of this procedure is already the protected object's owner then
7837 Program_Error is raised.
7838 In addition the protected object's owner is updated.
7839 (Unlock): Remove the ownership of the protected object.
7841 * s-taprob.ads (Protection): Add the field Owner, used to store the
7842 protected object's owner.
7843 This component is needed for detecting one type of potentially blocking
7844 operations (external calls on a protected subprogram with the same
7845 target object as that of the protected action). Document the rest of
7848 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
7849 Initialize the protected object's owner to Null_Task.
7850 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
7851 caller of this procedure is already the protected object's owner then
7852 Program_Error is raised.
7853 Do not raise Program_Error when this procedure is called from a
7855 (Unlock_Entries): Remove the ownership of the protected object.
7856 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
7857 of this procedure is already the protected object's owner then
7858 Program_Error is raised.
7859 Do not raise Program_Error when this procedure is called from
7862 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
7863 used to store the protected object's owner.
7865 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
7866 effect and this procedure (a potentially blocking operation) is called
7867 from whithin a protected action, Program_Error is raised.
7868 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
7869 and this procedure (a potentially blocking operation) is called from
7870 whithin a protected action, Program_Error is raised.
7872 2005-03-17 Vincent Celier <celier@adacore.com>
7873 Nicolas Setton <setton@adacore.com>
7875 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
7876 switch, not supported by the linker on Darwin. Add '_' before
7877 <library>init, as this character is added unconditionally by the
7879 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
7880 correct one ".dylib". This fixes detection of the archive files when
7881 building library projects.
7883 2005-03-17 Vincent Celier <celier@adacore.com>
7885 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
7886 -gnat83, -gnat95 and -gnat05.
7888 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
7890 * gnat_ugn.texi: Document gnatmem restriction
7892 2005-03-17 Thomas Quinot <quinot@adacore.com>
7894 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
7897 2005-03-17 Robert Dewar <dewar@adacore.com>
7899 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
7900 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
7901 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
7903 * casing.adb: Comment improvements
7905 2005-03-17 Pascal Obry <obry@adacore.com>
7907 * g-expect.adb: Minor reformatting.
7909 2005-03-15 Zack Weinberg <zack@codesourcery.com>
7911 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
7912 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
7915 2005-03-15 Vincent Celier <celier@adacore.com>
7917 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
7918 Add new parameter In_Tree to specify the project tree: needed
7919 by the project manager. Adapt to changes in project manager
7920 using new parameter In_Tree.
7922 2005-03-15 Jakub Jelinek <jakub@redhat.com>
7924 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
7925 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
7926 ada/bldtools to avoid make -jN failures.
7928 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
7930 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
7931 to NULL_TREE on entry.
7933 2005-03-15 Robert Dewar <dewar@adacore.com>
7935 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
7936 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
7937 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
7938 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
7939 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
7940 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
7941 system-interix.ads, system-solaris-sparc.ads,
7942 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
7943 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
7944 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7945 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
7946 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
7947 Compiler_System_Version to be False.
7949 * opt.ads: Add new flag Opt.Address_Is_Private
7951 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
7952 Add new parameter Compiler_System_Version to avoid checking for
7953 completeness of parameters when compiler is compiling itself.
7954 Allows old versions of GNAT to be compiled with new compiler.
7956 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
7958 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
7959 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
7961 (Stack_Base_Available): New flag.
7962 (Get_Page_Size): New overloaded functions imported from C.
7963 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
7964 PROT_ON, PROT_OFF): New constants.
7965 (mprotect): New function imported from C.
7966 (pthread_teb_t): New record type.
7968 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
7969 (Create_Task): Account for the Yellow Zone and the guard page.
7971 2005-03-15 Vincent Celier <celier@adacore.com>
7973 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
7974 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
7975 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
7976 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
7977 Library_File_Name_For): Add new parameter In_Tree
7978 to specify the project tree: needed by the project manager.
7979 Adapt to changes in project manager using new parameter In_Tree.
7980 Remove local imports, use functions in System.CRTL.
7982 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
7983 to use the project manager.
7985 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
7986 In_Tree to designate the project tree. Adapt to changes in the project
7987 manager, using In_Tree.
7989 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
7990 Copy_Interface_Sources): Add new parameter In_Tree to specify the
7991 project tree: needed by the project manager.
7992 (Build_Library): Check that Arg'Length >= 6 before checking if it
7993 contains "--RTS=...".
7995 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
7996 Library_File_Name_For): Add new parameter In_Tree to specify the
7997 project tree: needed by the project manager.
7999 * prj.ads, prj.adb: Major modifications to allow several project trees
8000 in memory at the same time.
8001 Change tables to dynamic tables and hash tables to dynamic hash
8002 tables. Move tables and hash tables from Prj.Com (in the visible part)
8003 and Prj.Env (in the private part). Move some constants from the visible
8004 part to the private part. Make other constants deferred.
8005 (Project_Empty): Make it a variable, not a function
8006 (Empty_Project): Add parameter Tree. Returns the data with the default
8007 naming data of the project tree Tree.
8008 (Initialize): After updating Std_Naming_Data, copy its value to the
8009 component Naming of Project Empty.
8010 (Register_Default_Naming_Scheme): Use and update the default naming
8011 component of the project tree, instead of the global variable
8013 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
8014 Tree is not defaulted, return the default naming data of the Tree.
8015 (Initial_Buffer_Size): Constant moved from private part
8016 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
8017 variables initialized in procedure Initialize.
8018 (Add_To_Buffer): Add two in out parameters to replace global variables
8019 Buffer and Buffer_Last.
8020 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
8022 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
8024 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
8025 for the project tree.
8026 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
8027 constant at the beginning of the package spec, so that they cane be used
8028 in subprograms before their full declarations.
8029 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
8030 (Empty_Project): Add parameter of type Project_Node_Ref
8031 (Private_Project_Tree_Data): Add component Default_Naming of type
8033 (Buffer, Buffer_Last): remove global variables
8034 (Add_To_Buffer): Add two in out parameters to replace global variables
8035 Buffer and Buffer_Last.
8036 (Current_Packages_To_Check): Remove global variable
8037 (Empty_Name): Move to private part
8038 (No-Symbols): Make it a constant
8039 (Private_Project_Tree_Data): New type for the private part of the
8041 (Project_Tree_Data): New type for the data of a project tree
8042 (Project_Tree_Ref): New type to designate a project tree
8043 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
8044 for the project tree.
8046 * prj-attr.ads: Add with Table; needed, as package Prj no longer
8047 imports package Table.
8049 * prj-com.adb: Remove empty, no longer needed body
8051 * prj-com.ads: Move most of the content of this package to package Prj.
8053 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
8054 designate the project node tree and Packages_To_Check to replace
8055 global variable Current_Packages_To_Check.
8056 Add new parameters In_Tree and Packages_To_Check to local subprograms,
8057 when needed. Adapt to changes in project manager with project node tree
8060 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
8061 project tree to most subprograms. Move tables and hash tables to
8062 private part of package Prj.
8063 Adapt to changes in project manager using project tree In_Tree.
8065 * prj-makr.adb (Tree): New constant to designate the project node tree
8066 Adapt to change in project manager using project node tree Tree
8068 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
8069 display the Library_Src_Dir and the Library_Dir.
8070 Add new parameter In_Tree to designate the project node tree to most
8071 subprograms. Adapt to changes in the project manager, using project tree
8073 (Check_Naming_Scheme): Do not alter the casing on platforms where
8074 the casing of file names is not significant.
8075 (Check): Add new parameter In_Tree to designate the
8077 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
8078 designate the project tree.
8079 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
8081 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
8082 to replace those that were in the private part of package Prj.
8083 Add new parameter In__Tree to designate the project node tree to most
8084 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
8085 (Post_Parse_Context_Clause): When specifying the project node of a with
8086 clause, indicate that it is a limited with only if there is "limited"
8087 in the with clause, not necessarily when In_Limited is True.
8088 (Parse): Add new parameter In_Tree to designate the project node tree
8090 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
8091 designate the project node tree. Adapt to change in Prj.Tree with
8092 project node tree In_Tree.
8094 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
8095 tree In_Tree in the call to function Empty_Process to give its initial
8096 value to the project data Processed_Data.
8097 Add new parameters In_Tree to designate the project tree and
8098 From_Project_Node_Tree to designate the project node tree to several
8099 subprograms. Adapt to change in project manager with project tree
8100 In_Tree and project node tree From_Project_Node_Tree.
8102 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
8103 to replace those that were in the private part of package Prj.
8104 Add new parameter In_Tree to designate the project node tree to most
8105 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
8107 * prj-tree.ads, prj-tree.adb: Add new parameter of type
8108 Project_Node_Tree_Ref to most subprograms.
8109 Use this new parameter to store project nodes in the designated project
8111 (Project_Node_Tree_Ref): New type to designate a project node tree
8112 (Tree_Private_Part): Change table to dynamic table and hash tables to
8113 dynamic hash tables.
8115 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
8116 the project tree to most subprograms. Adapt to changes in project
8117 manager using project tree In_Tree.
8119 * makegpr.adb (Project_Tree): New constant needed to use project
8122 2005-03-15 Olivier Hainque <hainque@adacore.com>
8124 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
8125 for sigactions with SA_SIGINFO set. Call
8126 __gnat_adjust_context_for_raise before raising, to perform the
8127 potentially required adjustments to the machine context for the GCC
8130 * raise.h (__gnat_adjust_context_for_raise): New prototype.
8132 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
8133 Adjust PC by one in the provided machine context.
8134 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
8135 so that the handler is passed the context structure to adjust prior to
8137 (__gnat_error_handler) HPUX: Adjust the signature to match what an
8138 SA_SIGINFO sigaction should look like. Call
8139 __gnat_adjust_context_for_raise before actually raising.
8140 (__gnat_adjust_context_for_raise): Default noop to help PC
8141 adjustments before raise from signal handlers.
8142 (__gnat_error_handler): Indirectly call a predicate function to
8143 determine if a condition should be resignaled or not.
8144 (__gnat_set_resignal_predicate): User interface to modify the predicate.
8145 (__gnat_default_resignal_p): Default GNAT predicate.
8147 2005-03-15 Doug Rupp <rupp@adacore.com>
8149 * adaint.c: Prefix #include of VMS system header files with vms/
8150 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
8151 Do not define a dummy function "convert_addresses" under Darwin,
8154 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
8157 2005-03-15 Nicolas Setton <setton@adacore.com>
8159 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
8162 2005-03-15 Robert Dewar <dewar@adacore.com>
8164 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
8167 * a-retide.ads: Minor comment changes
8169 2005-03-15 Robert Dewar <dewar@adacore.com>
8171 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
8172 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
8173 Realloc_For_Chunk to private part of package.
8174 New subprograms for AI-301
8176 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
8178 Avoid unnecessary use of Get/Set_Wide_String
8180 2005-03-15 Robert Dewar <dewar@adacore.com>
8183 * a-stunau.ads, a-stunau.adb:
8184 Change interface to allow efficient (and correct) implementation
8185 The previous changes to allow extra space in unbounded strings had
8186 left this interface a bit broken.
8188 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
8190 * g-spipat.ads, g-spipat.adb: New interface for Get_String
8191 Minor reformatting (function specs)
8193 * g-spitbo.adb: New interface for Get_String
8195 * g-spitbo.ads: Minor reformatting
8197 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
8199 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
8201 2005-03-15 Javier Miranda <miranda@adacore.com>
8202 Robert Dewar <dewar@adacore.com>
8203 Thomas Quinot <quinot@adacore.com>
8204 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8206 * atree.ads, atree.adb: Add support for Elist24 field
8208 * atree.h: Fix wrong definition of Field27
8209 Add support for Elist16 field
8210 Add support for Elist24 field
8212 * einfo.ads, einfo.adb (Abstract_Interfaces,
8213 Set_Abstract_Interfaces): New subprograms.
8214 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
8216 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
8217 entities rather than a single node.
8218 (Is_Interface, Set_Is_Interface): New subprogram
8219 (First_Tag_Component): New syntesized attribute
8220 (Next_Tag_Component): New synthesized attribute
8221 (Write_Entity_Flags): Upgraded to write Is_Interface
8222 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
8223 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
8224 (Task_Body_Procedure): New subprogram to read this attribute.
8225 (Set_Task_Body_Procedure): New subprogram to set this attribute.
8226 (Has_Controlled_Component): Now applies to all entities.
8227 This is only a documentation change, since it always worked to apply
8228 this to other than composite types (yielding false), but now this is
8230 Update documentation on Must_Be_Byte_Aligned for new spec
8232 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
8233 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
8234 uses of the Access_Disp_Table attribute to reference the first dispatch
8235 table associated with a tagged type. As
8236 part of the implementation of abstract interface types,
8237 Access_Disp_Table has been redefined to contain a list of dispatch
8238 tables (rather than a single dispatch table).
8239 Similarly, upgrade all the references to Tag_Component by the
8240 new attribute First_Tag_Component.
8241 (Find_Inherited_TSS): Moved to exp_tss.
8242 Clean up test in Expand_N_Object_Declaration for cases
8243 where we need to do a separate assignment of the initial value.
8244 (Expand_N_Object_Declaration): If the expression in the
8245 declaration of a tagged type is an aggregate, no need to generate an
8246 additional tag assignment.
8247 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
8249 Bit packed array ops are only called if operands are known to be
8251 (Component_Equality): When returning an N_Raise_Program_Error statement,
8252 ensure that its Etype is set to Empty to avoid confusing GIGI (which
8253 expects that only expressions have a bona fide type).
8254 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
8255 determine the amount of data to be copied.
8257 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
8258 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
8259 INTERFACE_TYPE_DEFINITION ::=
8260 [limited | task | protected | synchronized] interface
8261 [AND interface_list]
8263 * par-ch3.adb (P_Type_Declaration): Modified to give support to
8265 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
8267 (P_Interface_Type_Definition): New subprogram that parses the new
8268 syntax rule of Ada 2005 interfaces
8269 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
8270 messages by the correct RENAMES (quotes removed).
8272 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
8273 attribute First_Tag_Component.
8275 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
8276 (Interface_List, Set_Interface_List): New subprograms.
8277 (Interface_Present, Set_Interface_Present): New subprograms.
8278 (Limited_Present, Set_Limited_Present): Available also in derived
8279 type definition nodes.
8280 (Protected_Present, Set_Protected_Present): Available also in
8281 record type definition and
8282 derived type definition nodes.
8283 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
8284 (Task_Present, Set_Task_Present): New subprogram.
8285 (Task_Body_Procedure): Removed.
8286 (Set_Task_Body_Procedure): Removed.
8287 These subprogram have been removed because the attribute
8288 Task_Body_Procedure has been moved to the corresponding task type
8289 or task subtype entity to leave a field free to store the list
8290 of interfaces implemented by a task (for AI-345)
8291 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
8292 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
8293 expression flag Do_Range_Check
8294 (Exception_Junk): Change to Flag7 to accomodate above change
8295 (Box_Present, Default_Name, Specification, Set_Box_Present,
8296 Set_Default_Name, Set_Specification): Expand the expression
8297 "X in N_Formal_Subprogram_Declaration" into the corresponding
8298 two comparisons. Required to use the csinfo tool.
8300 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
8301 "with string" given.
8303 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
8306 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
8309 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
8310 attribute Task_Body_Procedure rather than the old semantic field that
8311 was available in the task_type_declaration node.
8313 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
8314 interface type definitions.
8315 (P_Formal_Derived_Type_Definition): Modified to handle the list of
8318 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
8319 task type declaration.
8320 (P_Protected): Modified to handle the list of interfaces in a
8321 protected type declaration.
8323 2005-03-15 Doug Rupp <rupp@adacore.com>
8324 Vincent Celier <celier@adacore.com>
8326 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
8327 (Gen_Output_File_C): Likewise.
8328 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
8330 2005-03-15 Thomas Quinot <quinot@adacore.com>
8332 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
8333 is an N_Raise_Constraint_Error node, create a new copy of it without
8334 going through a call to Duplicate_Subexpr.
8336 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
8337 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8338 Nicolas Setton <setton@adacore.com>
8339 Ed Schonberg <schonberg@adacore.com>
8345 * decl.c (gnat_to_gnu_field): Reject aliased components with a
8346 representation clause that prescribes a size not equal to the rounded
8347 size of their types.
8348 (gnat_to_gnu_entity, case E_Component): Always look at
8349 Original_Record_Component if Present and not the entity.
8350 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
8351 of tagged extension types by not making field for components that are
8353 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
8354 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
8355 expression to the type of the object when the object is constant.
8356 Reverse defer_debug_incomplete_list before traversing it, so that trees
8357 are processed in the order at which they were added to the list. This
8358 order is important when using the stabs debug format.
8359 If we are deferring the output of debug information, also defer this
8360 output for a function return type.
8361 When adding fields to a record, prevent emitting debug information
8362 for incomplete records, emit the information only when the record is
8364 (components_to_record): New parameter defer_debug.
8365 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
8366 (gnat_to_gnu_field_decl): New function.
8367 (substitution_list, annotate_rep): Call it.
8368 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
8369 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
8370 No longer update discriminants to not be a COMPONENT_REF.
8371 (copy_alias_set): Strip padding from input type; also handle
8372 unconstrained arrays properly.
8374 * gigi.h (write_record_type_debug_info): New function.
8375 Convert to use ANSI-style prototypes. Remove unused
8376 declarations for emit_stack_check, elab_all_gnat and
8377 set_second_error_entity.
8378 (gnat_to_gnu_field_decl): New decl.
8380 * utils.c (write_record_type_debug_info): New function.
8381 (finish_record_type): Delegate generation of debug information to
8382 write_record_type_debug_info.
8383 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
8384 (update_pointer_to): Fix pasto.
8385 (convert) <UNION_TYPE>: Accept slight type variations when
8386 converting to an unchecked union type.
8388 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
8389 replace the N_Freeze_Entity with a null statement.
8391 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
8392 within a constrained subcomponent of an enclosing record, place the
8393 freeze nodes in the scope stack entry for the enclosing record.
8394 (Undelay_Type): New Subprogram.
8395 (Set_Small_Size): Pass T, the type to modify; all callers changed.
8396 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
8397 within records; allow them to have freeze nodes if their base types
8400 * exp_util.adb (Remove_Side_Effects): Properly test for
8401 Expansion_Delayed and handle case when it's inside an
8402 N_Qualified_Expression.
8404 * sem_ch3.adb (Derived_Type_Declaration): New predicate
8405 Comes_From_Generic, to recognize accurately that the parent type in a
8406 derived type declaration can be traced back to a formal type, because
8407 it is one or is derived from one, or because its completion is derived
8409 (Constrain_Component_Type): If component comes from source and has no
8410 explicit constraint, no need to constrain in in a subtype of the
8412 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
8413 Minor change to propagate Is_Ada_2005 flag
8415 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
8416 Expansion_Delayed is False.
8417 (assoc_to_constructor): Ignore fields that have a
8418 Corresponding_Discriminant.
8419 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
8420 function returns "by target", dereference the target pointer using the
8421 type of the actual return value.
8422 <all>: Be prepared for a null gnu_result.
8423 (processed_inline_subprograms): Check flag_really_no_inline
8424 instead of flag_no_inline.
8425 (set_second_error_entity): Remove unused function.
8426 (gnat_to_gnu, case N_Selected_Component): Call
8427 gnat_to_gnu_field_decl.
8428 (assoc_to_constructor): Likewise.
8430 2005-03-15 Robert Dewar <dewar@adacore.com>
8431 Ed Schonberg <schonberg@adacore.com>
8432 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8434 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
8435 Must_Be_Byte_Aligned for cases where we do not need to use a
8436 System.Pack_nn unit.
8438 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
8440 Needed now that we do some processing for IN parameters as well. This
8441 may well fix some unrelated errors.
8442 (Expand_Call): Handle case of unaligned objects (in particular those
8443 that come from packed arrays).
8444 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
8445 renamed entity is an inherited operation, re-expand the call using the
8446 original operation, which is the one to call.
8447 Detect attempt to inline parameterless recursive subprogram.
8448 (Represented_As_Scalar): Fix to work properly with private types
8449 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
8450 accurate estimate. Yields True in far fewer cases than before,
8451 improving the quality of code that depends on this test.
8453 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
8454 over both visible and private declarations to remove them from tree,
8455 and mark subprograms declared in package as eliminated, to prevent
8456 spurious use in subsequent compilation of generic units in the context.
8458 * exp_util.ads: Minor cleanup in variable names
8460 * sem_eval.ads, sem_eval.adb: Minor reformatting
8461 (Compile_Time_Known_Bounds): New function
8463 2005-03-15 Ed Schonberg <schonberg@adacore.com>
8465 * exp_ch7.adb (Convert_View): Use base types of underlying types when
8466 determining whether an unchecked conversion is needed for the argument
8467 of an initialization call.
8469 2005-03-15 Ed Schonberg <schonberg@adacore.com>
8471 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
8472 that appears in the instantiation rather than the internal subtype
8473 generated in the wrapper package, to avoid anomalies in gigi when the
8474 target is derived from a private type whose full view is an access type.
8476 2005-03-15 Robert Dewar <dewar@adacore.com>
8478 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
8480 Add documentation to replace the use of this flag
8481 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
8484 2005-03-15 Thomas Quinot <quinot@adacore.com>
8486 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
8487 here from exp_attr so it can be shared between exp_attr and exp_dist.
8488 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
8489 all TSS names, not a subset thereof, and the previous name introduced
8490 an unnecessarily confusion that a distinction might exist between
8491 "OK" TSS names and some "not OK" TSS names.
8493 2005-03-15 Doug Rupp <rupp@adacore.com>
8495 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
8498 2005-03-15 Pascal Obry <obry@adacore.com>
8499 Eric Botcazou <ebotcazou@adacore.com>
8503 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
8504 when IN_RTS. This is to work around a bootstrap path problem.
8506 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
8507 table and pass it to __gnat_install_SEH_handler().
8508 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
8510 * lang.opt: Fix specification of -fRTS=.
8512 2005-03-15 Doug Rupp <rupp@adacore.com>
8513 Bernard Banner <banner@adacore.com>
8514 Vincent Celier <celier@adacore.com>
8515 Arnaud Charlet <charlet@adacore.com>
8518 This change works fine when gnatlib is built from the gcc directory,
8519 but does not work when using the libada Makefile, since GCC_FOR_TARGET
8520 is not passed to ada/Makefile.in, so more work is needed by a
8521 Makefile/configure expert.
8523 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
8524 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
8525 Setup gnatlink switch -M for x86_64 linux, as it is already setup
8527 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
8528 Run ranlib on libgccprefix.a
8529 Define PREFIX_OBJS for Darwin, to build libgccprefix.
8530 (ADA_INCLUDE_SRCS): Split Ada packages.
8532 2005-03-15 Robert Dewar <dewar@adacore.com>
8534 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
8536 * impunit.adb: Add GNAT.UTF_32
8538 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
8540 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
8541 now uses GNAT.UTF_32).
8543 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
8544 capabilities for categorizing characters using Unicode categories
8546 2005-03-15 Ed Schonberg <schonberg@adacore.com>
8548 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
8549 instantiation that has been rewritten as a package body, retrieve spec
8550 to generate proper name for implicit_with_clause.
8551 (Install_Parents): Recognize a parent that is an instantiation but has
8552 been rewritten as a package declaration during analysis.
8554 2005-03-15 Javier Miranda <miranda@adacore.com>
8555 Ed Schonberg <schonberg@adacore.com>
8557 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
8558 parameter reported some error we immediately return. This improves the
8559 behaviour of the frontend in case of errors.
8560 (Install_Parent, Remove_Parent): Introduce new flag
8561 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
8562 ancestor of a generic child unit, when the child is being instantiated.
8563 (Inline_Instance_Body): If we are compiling the private
8564 part or the body of a child unit, restore the proper visibility of the
8565 parents after compiling the instance body.
8567 2005-03-15 Ed Schonberg <schonberg@adacore.com>
8568 Javier Miranda <miranda@adacore.com>
8571 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
8572 of a private type, in which case it is underlying_type that denotes
8573 the proper task. Also modified to use the new entity attribute
8574 that is directly available in the task type and task subtype entities
8575 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
8576 arrays when other dimensions than the first are constrained by
8577 discriminants of an enclosing record.
8578 (Insert_Explicit_Dereference): If the prefix is an indexed component or
8579 a combination of indexed and selected components, find ultimate entity
8580 and generate the appropriate reference for it, to suppress spurious
8582 (Note_Possible_Modification): If an entity name has no entity, return.
8583 (Is_Variable): A function call never denotes a variable.
8584 (Requires_Transient_Scope): For record types, recurse only on
8585 components, not on internal subtypes that may have been generated for
8586 constrained components.
8588 2005-03-15 Ed Schonberg <schonberg@adacore.com>
8590 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
8591 Eliminated as candidates for resolution. Both efficient, and avoids
8592 anomalies with operators declared in deleted code.
8593 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
8594 expansion is disabled (as when compiling a generic) to prevent spurious
8595 warnings on prefixes of selected components.
8597 2005-03-15 Ed Schonberg <schonberg@adacore.com>
8599 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
8600 attached to a list before checking whether it appears in the private
8601 declarations of the current package.
8602 (Make_Inequality_Operator): Insert declaration in proper declarative
8603 list rather than just setting the Parent field, so that
8604 Is_Private_Declaration can handle it properly.
8606 2005-03-15 Ed Schonberg <schonberg@adacore.com>
8608 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
8609 a renaming a body, check that the renamed subprogram in not intrinsic.
8610 (Find_Direct_Name): If several use_visible entities hide
8611 each other, and the context is a predefined file compiled through
8612 rtsfind, keep only the entity that comes from a predefined file.
8614 2005-03-15 Geert Bosch <bosch@adacore.com>
8616 * s-fatgen.adb (Valid): Extend special exceptions to account for long
8617 long float padding to also cover AMD64 and IA64.
8619 2005-03-15 Gary Dismukes <dismukes@adacore.com>
8621 * s-imgwch.adb: Add with and use of Interfaces.
8622 (Img_Wide_Character): Change type of Val to Unsigned_16.
8623 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
8625 2005-03-15 Matthew Gingell <gingell@adacore.com>
8627 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
8629 2005-03-15 Robert Dewar <dewar@adacore.com>
8631 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
8633 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
8635 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
8637 2005-03-15 Robert Dewar <dewar@adacore.com>
8639 * s-bitops.adb, s-bitops.ads,
8640 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
8641 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
8642 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
8643 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
8644 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
8645 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
8646 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
8647 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
8650 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
8652 * utils2.c (build_binary_op): Fix typo.
8654 2005-03-15 Doug Rupp <rupp@adacore.com>
8656 * s-crtl.ads (popen,pclose): New imports.
8658 2005-03-15 Cyrille Comar <comar@adacore.com>
8660 * comperr.adb (Compiler_Abort): remove references to obsolete
8661 procedures in the bug boxes for various GNAT builds.
8663 2005-03-15 Vincent Celier <celier@adacore.com>
8665 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
8667 2005-03-15 Geert Bosch <bosch@adacore.com>
8668 Arnaud Charlet <charlet@adacore.com>
8669 Robert Dewar <dewar@adacore.com>
8670 Cyrille Comar <comar@adacore.com>
8671 Sergey Rybin <rybin@adacore.com>
8673 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
8674 too specific and long-winded to be appropriate for the GNAT User's
8676 Warn about use of GCC switches not documented in the GNAT User's Guide,
8677 as these may cause generated code to not conform to Ada semantics.
8678 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
8679 Add documentation for -gnat95 and -gnat05 switches
8680 Remove paragraph documenting obsolete way to refer to third party
8682 Add a few references to Ada_05 that were missing.
8683 Update documentation on -gnatZ/-gnatL.
8684 Document limitation when using -m64 under Solaris.
8685 Change the "Name Casing" subsection of the pretty-printer section
8686 according to the changes in the dictionary processing.
8688 * gnat_rm.texi: Document the Ada_05 pragma.
8689 Section on record representation clauses describes the new more
8690 relaxed rules about placement of large packed bit array components.
8691 Add documentation of GNAT.UTF_32
8693 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
8695 * misc.c (gnat_post_options): Turn off structural
8698 2005-03-08 Laurent Guerby <laurent@guerby.net>
8700 * system-linux-sparc.ads: Fix typo in previous commit.
8702 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
8703 Laurent Guerby <laurent@guerby.net>
8706 * system-linux-sparc.ads: New.
8707 * Makefile.in: Add sparc linux entry.
8709 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
8711 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
8712 parameters as unused.
8714 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
8715 Partial merge from libada-gnattools-branch:
8717 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
8718 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
8719 into code in gnattools/Makefile.in. Remove direct dependencies on
8720 stamp-tools by tools clauses.
8721 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
8722 * config-lang.in: Add gnattools to $lang_dirs.
8724 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
8727 * utils.c (gnat_type_for_mode): Return null instead of ICE because
8728 we asked for an unknown mode.
8730 2005-02-12 Richard Henderson <rth@redhat.com>
8732 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
8733 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
8735 2005-02-10 Andreas Jaeger <aj@suse.de>
8737 * init.c (__gnat_initialize): Mark parameter as unused.
8739 2005-02-09 Doug Rupp <rupp@adacore.com>
8741 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
8742 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
8744 2005-02-09 Doug Rupp <rupp@adacore.com>
8746 * gnatchop.adb (dup, dup2),
8747 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
8749 * gnatlbr.adb (mkdir),
8750 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
8752 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
8754 2005-02-09 Doug Rupp <rupp@adacore.com>
8756 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
8758 2005-02-09 Robert Dewar <dewar@adacore.com>
8759 Thomas Quinot <quinot@adacore.com>
8760 Javier Miranda <miranda@adacore.com>
8761 Pascal Obry <obry@adacore.com>
8762 Ed Schonberg <schonberg@adacore.com>
8763 Doug Rupp <rupp@adacore.com>
8764 Gary Dismukes <dismukes@adacore.com>
8765 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8767 * g-zstspl.ads: New file.
8769 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
8771 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
8773 Add definition of Wide_Wide_Space for AI-285
8775 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
8776 interface (to support Ada 95 and Ada 2005 units).
8777 Add Unbounded_IO files
8778 Add entries for Wide_Wide packages for AI-285
8779 Add list of containers packages to Ada 2005 unit list
8781 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
8782 support new Unbounded_IO package cleanly.
8784 * g-utf_32.ads, g-utf_32.adb: New files.
8786 * Makefile.rtl: Add entry for g-utf_32
8787 Add new files for Unbounded_IO
8788 Adjust make file for new AI-285 wide wide packages
8789 Add AI-302 containers to the run time.
8791 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
8792 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
8793 subprograms for AI-301.
8795 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
8797 * a-stunau.ads: Minor comment correction
8799 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
8801 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
8802 (Check_RPC): Update to match changes in expanded code.
8803 Clean up unused entity.
8805 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
8806 was not taken into account.
8807 This includes proper initialization with Normalize_Scalars.
8808 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
8809 normalize scalars cases (particularly the latter) to do a better job
8810 of finding invalid representations.
8812 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
8814 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
8817 * exp_dist.adb: Add support for wide wide character type
8818 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
8819 private part, generate stub bodies at the end of the private part,
8820 not the visible part.
8821 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
8823 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
8824 generic wrapper to execute final processing after completing the
8825 expansion of the RPC receiver for an RACW.
8827 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
8828 packages and attributes.
8829 (Preset_Names): Addition of the new reserved words of Ada 2005,
8830 that is interface, overriding and synchronized.
8831 (Get_Pragma_Id): Give support to the use of the new reserved word
8832 "interface" as a pragma name.
8833 (Is_Pragma_Name): Give support to the use of the new reserved word
8834 "interface" as a pragma name.
8835 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
8836 attribute implementation.
8838 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
8839 checks to entities that are output parameters of Asm operations.
8840 Handle the Stream_Size attribute.
8841 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
8843 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
8845 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
8846 for second parameter being 0.0.
8847 Add support for wide wide character type.
8848 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
8850 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
8851 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
8852 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
8853 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
8854 for wide wide character cases.
8856 * cstand.adb: Create entities for Wide_Wide_Character and
8859 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
8860 accordance with AI-258.
8861 Add new declarations for 16/32 bit C character types (Part of AI285)
8863 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
8864 (Obsolescent_Warning): New field
8865 (Rep_Clause): New local subprogram used to share code. Returns the rep
8866 clause for which the name is given in parameter.
8867 (Has_Stream_Size_Clause): New routine.
8868 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
8869 (Address_Clause): Implementation is now using Rep_Clause.
8870 (Alignment_Clause): Idem.
8871 (Size_Clause): Idem.
8873 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
8874 entity in non-Ada 2005 mode and generate warning.
8876 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
8877 (Prag): Code cleanup. Remove old gnat pragma "overriding"
8879 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
8880 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
8881 on the named unit if the pragma is not in the current compilation unit,
8882 so that elaboration calls in the current unit can set up an elaboration
8883 dependency on the named unit, as needed.
8884 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
8885 subprogram as well as for subprograms declared within a package.
8886 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
8889 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
8890 to z) to avoid some instances of duplication for Wide_Wide packages.
8892 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
8895 * scn.adb: Char_Literal_Value field is now a Uint
8897 * scng.adb: Significant rewrite to handle new Ada 2005 features
8898 allowing wide and wide wide characters in program text, e.g. for
8899 identifiers, as described in AI-285.
8900 (Set_Reserved): New procedure, makes setting up keywords cleaner.
8901 (Initialize_Scanner): Register the new reserved words of Ada 2005.
8902 (Scan): Give support to the new reserved words.
8904 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
8905 warning notifying that interface, overriding, and synchronized are
8907 (P_Pragma): Allow the use of the new reserved word "interface" as
8910 * gnatls.adb, gnatbind.adb,
8911 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
8912 identifiers named "interface" to "SAL_Interface".
8914 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
8915 (Structured Exception handling).
8919 (Gen_Main_Ada): Set the default exit code if specified.
8920 (Gen_Main_C): Likewise.
8922 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
8923 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
8925 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
8928 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
8929 has a collision with the new Ada 2005 "interface" reserved word.
8931 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
8932 generate a warning notifying that interface, overriding, and
8933 synchronized are new reserved words.
8935 * scans.ads (Token_Type): Addition of the tokens corresponding to the
8936 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
8937 and Tok_Synchronized.
8939 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
8940 "dispatching" rather than "primitive" operations, since dispatching
8941 calls are now allowed to abstract formal subprograms (which are not
8943 Char_Literal_Value field is now a Uint
8944 (Resolve_Slice): If the prefix is an access to an unconstrained array,
8945 compute the actual subtype of the designated object to impose the proper
8947 (Resolve_Selected_Component): Do not insert an access check if the
8948 prefix is an access type: such a node is expanded into an explicit
8949 dereference, on which the access check is performed anyway. Removes
8950 expensive duplicate checks.
8951 (Resolve_Call): Use new flag Is_Obsolescent and field
8952 Obsolescent_Warning so that pragma Obsolescent works on library
8954 Add support for wide wide character type
8955 (Resolve_Allocator): Replace the error message on wrong null-exclusion
8956 value by a warning message.
8957 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
8958 as fixed-point, and one of the operands is non-static and universal, it
8959 can only be an illegal exponentiation operation, in which case there is
8960 no real value to retrieve.
8962 * exp_strm.adb: Add support for wide wide character type
8963 (Build_Elementary_Input_Call): Compute the size of the stream element by
8964 querying the rep chain to find the Stream_Attribute attribute value.
8965 (Build_Elementary_Write_Call): Ditto.
8967 * sem_aggr.adb: Char_Literal_Value field is now a Uint
8968 Add support for wide wide character type
8969 Replace the error messages on wrong null-exclusion value by warnings
8970 as described in Ada 2005.
8971 (Resolve_Extension_Aggregate): Document the fact that the error
8972 message on class-wide expressions in extensions aggregates.
8974 * sem_case.adb: Add support for wide wide character type
8976 * sem_ch13.adb: Add support for wide wide character type
8977 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
8979 * sem_ch3.adb: Add support for wide wide character type
8980 (Process_Subtype): If constraint is illegal for the type, set Ekind of
8981 now-useless Itype, to prevent cascaded errors on a compiler built
8984 * sem_ch8.adb: Add with and use of Sem_Disp.
8985 (Analyze_Subprogram_Renaming): Replace unclean uses of
8986 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
8987 of Corresponding_Spec to Empty).
8988 (Attribute_Renaming): Replace use of Corresponding_Spec with
8989 Corresponding_ Formal_Spec and simplify condition.
8990 (Use_One_Package): Check that scope of homonym of identifier is defined,
8991 before checking whether it is a wrapper package.
8992 Add support for wide wide character type
8994 * sem_eval.adb: Add support for wide wide character type.
8995 (Eval_Arithmetic_Op): Check for compile time known signed integer
8996 overflow in the non-static case.
8997 (Subtypes_Statically_Match): A formal scalar type and its base type do
8998 not statically match.
9000 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
9001 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
9003 (Unit_Declaration_Node): Ditto.
9004 (Is_Variable_Prefix): For the case of an indexed component whose prefix
9005 has a packed array type, the prefix has been rewritten into a type
9006 conversion. Determine variable-ness from the converted expression.
9007 Handle wide wide character cases.
9009 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
9011 * stringt.ads, stringt.adb: Handle full UTF-32 range.
9012 Remove ["0A"] from comment, since it can look like a line terminator.
9013 Currently we don't permit this, but this is under discussion by the
9014 ARG, and it is easy enough to use a different example.
9016 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
9017 handling UTF-32 encoding for wide wide character.
9018 Implement new brackets coding ["hhhhhhhh"]
9019 Add UTF-8 encodings for full UTF-32 range
9021 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
9023 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
9024 bit range Add full UTF-32 support.
9025 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
9026 notify that constraint error will be raised at run-time
9027 because a null value is assigned to a null-excluding object.
9028 Remove some obsolete declarations and make Char_Code
9031 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
9032 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
9035 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
9036 wrong null-exclusion value by a warning message.
9037 (Enable_Range_Check): Do range check if the prefix is an
9038 explicit dereference whose designated object is an unconstrained array.
9039 Current algorithm for removing duplicate checks is over-eager in this
9042 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
9043 null-exclusion value by a warning message
9045 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
9046 completely. Add support for Uint2 field
9048 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
9049 exp_prag.adb: Char_Literal_Value field is now a Uint.
9051 * exp_util.adb (Insert_Actions): Replace
9052 N_Formal_Subprogram_Declaration by
9053 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
9054 Char_Literal_Value field is now a Uint.
9056 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
9057 defined for subprogram renaming declarations. When set, the field
9058 indicates the defining entity of a corresponding formal subprogram
9059 when the renaming corresponds to a formal subprogram association in an
9061 (Set_Corresponding_Formal_Spec): New procedure to return
9062 Corresponding_Formal_Spec field.
9063 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
9064 (which is now a subtype).
9065 Char_Literal_Value field is now a Uint
9067 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
9068 pointer to the base of the dispatch table.
9069 Minor changes to comments.
9070 (Controlling_Type): New function for determining the tagged type
9071 associated with a tagged primitive subprogram.
9072 (Expand_Dispatching_Call): Add support for a controlling actual that is
9073 directly a value of type Ada.Tag rather than a tagged object.
9075 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
9076 describing the new layout.
9077 (Dispatch_Table): The expander computes the actual array size, allocates
9078 the Dispatch_Table record accordingly, and generates code that displaces
9079 the base of the record after the Typeinfo_Ptr component. The access to
9080 these components is done by means of local functions.
9081 (Offset_To_Top): New function.
9082 (Typeinfo_Ptr): New function.
9083 (Get_TSD): Modified to access the new position of the TSD.
9084 (Set_TSD): Modified to save the TSD in its new position.
9086 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
9087 case of formal abstract subprograms. Add check and message for -gnat05.
9090 * sem_ch12.adb: Add with and use for Sem_Disp.
9091 (Analyze_Associations): Minor change from "=" to "in" for use of
9092 N_Formal_Subtype_Declaration (which is now a subtype).
9093 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
9094 N_Formal_Subtype_Declaration (which is now a subtype).
9095 (Analyze_Formal_Subprogram): Add handling for
9096 N_Formal_Abstract_Subprogram, marking the formal as abstract and
9097 dispatching, setting the controlling status of the formal parameters
9098 and result, and issuing an error if there is no controlling type for
9099 the formal subprogram.
9100 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
9101 which is an unclean use of that field, we set the new field
9102 Corresponding_Formal_Spec to make the formal subprogram available to
9103 processing in Analyze_Subprogram_Declaration.
9104 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
9105 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
9106 Constrained, so that it is is does not statically match its anonymous
9109 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
9110 abstract formal subprograms in error check for functions returning
9111 abstract types. Set scope of new designator for
9112 a parameterless subprogram, so that it is available when checking the
9113 body for nested subprograms, before full analysis of said body.
9114 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
9115 subprogram only if inner one comes from source.
9116 (Analyze_Function_Call): If the call is given in object notation, the
9117 analysis of the name rewrites the node and analyzes it with the proper
9118 argument list. After analyzing the name, if the call has been rewritten
9119 and the result type is set, no further analysis is needed.
9120 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
9121 mark in function specification, in a context where the formals are
9122 visible and hide outer homographs.
9124 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
9125 as the tagged type for the cases of abstract formal subprograms and
9126 renamings of those. Clean up spec comments.
9127 (Check_Dispatching_Context): Add error message to indicate "abstract
9128 procedure", covering the case of a call to a formal abstract procedure
9129 that has statically tagged operands.
9130 (Check_Dispatching_Call): Check for the case of an actual given by
9131 a tag-indeterminate function call whose type is an ancestor of the
9132 containing call's associated tagged type. This situation can occur
9133 for inherited primitives with function defaults. In this case we
9134 use the tagged type's tag directly as the controlling argument for
9136 (Expand_Call): Name change on call to Expand_Dispatch_Call.
9138 * sprint.adb (Sprint_Node_Actual): Split
9139 N_Formal_Subprogram_Declaration into two alternatives for the new
9140 cases N_Formal_Abstract_Subprogram_Declaration and
9141 N_Formal_Concrete_Subprogram_Declaration.
9142 Char_Literal_Value field is now a Uint.
9144 * trans.c: Get rid of junk Uint2 reference.
9145 Char_Literal_Value field is now a Uint.
9146 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
9147 (gigi): Correct third arg to gimplify_body.
9149 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
9150 (TYPE_LANG_FLAG_0): Check for record or union.
9152 * treepr.adb: Char_Literal_Value field is now a Uint
9154 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
9157 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
9158 Add full UTF-32 support
9159 Char_Code is now 32 bits
9161 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
9162 wide character UTF_32 line terminators.
9163 Initialize Main_Source_File to avoid error when no main
9166 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
9167 (Main_Source_File) when no main source has been loaded, to avoid
9170 2005-02-09 Robert Dewar <dewar@adacore.com>
9172 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
9173 Fix name of Set routine
9175 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
9178 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
9179 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
9182 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
9183 forms of Get_Line subprograms for AI-301.
9185 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
9186 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
9187 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
9188 a-stwima.ads: Minor reformatting.
9190 2005-02-09 Doug Rupp <rupp@adacore.com>
9191 Thomas Quinot <quinot@adacore.com>
9193 * adaint.c, adaint.h
9194 [VMS] (to_ptr32): New function.
9195 (MAYBE_TO_PTR32): New macro.
9196 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
9198 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
9199 [VMS] (#define fork()): Remove since unneccessary.
9200 (__gnat_set_close_on_exec): New routine to support
9201 GNAT.OS_Lib.Set_Close_On_Exec.
9203 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
9204 the parent side as close-on-exec so that they are not inherited by the
9207 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
9208 set or clear the FD_CLOEXEC flag on a file descriptor.
9210 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
9211 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9215 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
9216 on the field if Pragma Component_Alignment (Storage_Unit).
9217 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
9218 side-effects as if it were a constant; also make SAVE_EXPR to protect
9220 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
9222 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
9223 (components_to_record): Test it.
9224 Fix improper usage of REFERENCE_CLASS_P.
9226 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
9229 * utils2.c: Minor reformatting.
9231 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
9232 handle other cases like RECORD_TYPE.
9234 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
9236 2005-02-09 Ed Schonberg <schonberg@adacore.com>
9238 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
9239 component of an array of arrays in an assignment context, and the
9240 aggregate has component associations that require sliding on
9241 assignment, force reanalysis of the aggregate to generate a temporary
9242 before the assignment.
9243 (Must_Slide): Make global to the package, for use in Gen_Assign.
9245 2005-02-09 Ed Schonberg <schonberg@adacore.com>
9247 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
9248 unchecked union with no inferable discriminants, return a
9249 Raise_Program_Error node, rather than inserting it at the point the
9251 (Expand_Record_Equality, Component_Equality): Handle properly the case
9252 where some subcomponent is an unchecked union whose generated equality
9253 code raises program error.
9255 2005-02-09 Doug Rupp <rupp@adacore.com>
9257 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
9258 [VMS] (#define exit hack): Remove.
9260 2005-02-09 Pascal Obry <obry@adacore.com>
9261 Arnaud Charlet <charlet@adacore.com>
9263 * init.c (__gnat_initialize): Add a new parameter eh which contains the
9264 address of the exception registration. The Win32 version of this
9265 routine calls __gnat_install_SEH_handler() to initialize the SEH
9266 (Structured Exception Handling) handler.
9267 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
9268 SEH (Structured Exception Handling) now.
9269 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
9270 (__gnat_initialize for ppc-vxworks): Adjust comments and the
9271 preprocessor condition protecting the call to the extra eh setup
9272 subprogram, which is only available for the ppc target.
9273 (__gnat_clear_exception_count): replaced reference to
9274 variable taskIdCurrent by call to taskIdSelf(), cleaner.
9276 * seh_init.c: New file.
9278 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
9279 (GNATBIND_OBJS): Idem.
9281 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
9282 routine takes a new parameter (a pointer to the exception registration
9283 for the SEH (Structured Exception Handling) support.
9285 * raise.h: (__gnat_install_SEH_handler): New prototype.
9286 Update copyright notice.
9288 * s-tassta.adb (Task_Wrapper): Declare the exception registration
9289 record and initialize it by calling __gnat_install_SEH_handler.
9291 2005-02-09 Vincent Celier <celier@adacore.com>
9293 * make.adb (Gnatmake): Do not fail when the main project has no object
9296 2005-02-09 Doug Rupp <rupp@adacore.com>
9298 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
9299 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
9300 [VMS]: Add translations for g-enblsp.adb.
9302 * s-asthan-vms.adb: Removed.
9303 * s-asthan-vms-alpha.adb: Added.
9305 2005-02-09 Pascal Obry <obry@adacore.com>
9307 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
9308 (LIBGNAT_OBJS): Add seh_init.o.
9310 2005-02-09 Arnaud Charlet <charlet@adacore.com>
9313 * Makefile.in: Link all gnat tools with -static-libgcc, since
9314 -shared-libgcc is now used by default on some systems (e.g. linux with
9316 Remove references to Makefile.prolog/generic, no longer used.
9318 2005-02-09 Vincent Celier <celier@adacore.com>
9320 * prj-makr.adb (Process_Directory): Put file name in canonical case
9321 before matching against the patterns.
9322 If gnatname has been invoked as <prefix>-gnatname
9323 then invoke the compiler as <prefix>-gcc, not just "gcc".
9325 2005-02-09 Ed Schonberg <schonberg@adacore.com>
9327 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
9328 with expansion disabled. The actual subtype is needed among other
9329 places when the selected component appears in the context of a loop
9330 bound, and denotes a packed array.
9331 (Operator_Check): Always use the first subtype in the
9332 error message, to avoid the appearance of internal base types.
9333 (Transform_Object_Operation): Copy each actual in full
9334 to the parameter associations of the constructed call, rather than
9335 using the shallow copy mechanism of New_Copy_List. This ensures that
9336 the chaining of named associations is done properly.
9337 (Complete_Object_Operation): Rewrite node, rather than
9338 replacing it, so that we can trace back to the original selected
9341 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
9342 and calls that use object notation, if the called function is not
9343 declared in a withed unit, place the elaboration constraint on the
9344 unit in the context that makes the function accessible.
9345 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
9346 imposes an elaboration constraint between two packages.
9348 2005-02-09 Ed Schonberg <schonberg@adacore.com>
9350 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
9351 views of a private type after handling its private dependents, to
9352 maintain proper stack discipline between entry and exit from the
9355 2005-02-09 Cyrille Comar <comar@adacore.com>
9357 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
9360 2005-02-09 Arnaud Charlet <charlet@adacore.com>
9362 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
9363 fields for foreign threads.
9365 2005-02-09 Doug Rupp <rupp@adacore.com>
9367 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
9368 recursion warnings when compiled with -gnatdm.
9370 2005-02-09 Robert Dewar <dewar@adacore.com>
9372 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
9373 Slight fix to documentation of -gnaty with no parameters
9375 * xr_tabls.ads: Add ??? comment for missing overall comment
9377 * xsinfo.adb: Make default file name be sinfo.h, since this is what
9378 we now use by default.
9380 * xsnames.adb: Adjust end of file test to look for five space followed
9381 by '#' instead of six spaces. The format of xsnames.adb was modified
9384 * a-numeri.ads: Add reference to AI-388 for greek letter pi
9387 * clean.adb: Minor reformatting.
9389 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
9390 gnatname.adb: Minor reformatting
9391 Add 2005 to copyright output when utility is run
9393 * csets.adb: Eliminate obsolete comment
9395 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
9398 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
9400 2005-02-09 Sergey Rybin <rybin@adacore.com>
9402 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
9403 the difference between compact and incompact layout and add the record
9404 representation clause to the example illustrating different layouts.
9405 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
9406 component clauses").
9408 2005-02-09 Florian Villoing <villoing@adacore.com>
9410 * gnat_ugn.texi: Fix typos.
9411 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
9413 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
9414 in the generated documentation.
9416 2005-02-09 Arnaud Charlet <charlet@adacore.com>
9418 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
9420 Update linker wrapper when linking with non GNU C++.
9422 2005-02-09 Pascal Obry <obry@adacore.com>
9425 Document the procedure to debug the DllMain routine on Windows.
9426 Add note about -funwind-tables and mixed Ada and C/C++ programming in
9428 Document new BIND qualifer /RETURN_CODES=VMS.
9430 2005-02-09 Ben Brosgol <brosgol@adacore.com>
9432 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
9433 Edited gnatmetric chapter
9435 2005-02-09 Robert Dewar <dewar@adacore.com>
9438 Changes to document new wide wide character support
9440 Update documentation on Normalize_Scalars and Initialize_Scalars
9442 2005-02-09 Pascal Obry <obry@adacore.com>
9444 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
9446 2005-02-09 Jose Ruiz <ruiz@adacore.com>
9448 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
9449 from the VxWorks kernel) that is needed for getting the active
9450 priority of the different tasks.
9452 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
9453 Use a pragma Elaborate_Body in the spec file instead.
9454 Noticed by code reading.
9456 2005-02-09 Thomas Quinot <quinot@adacore.com>
9458 * exp_util.ads: Minor correction in comment.
9460 2005-02-09 Arnaud Charlet <charlet@adacore.com>
9462 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
9463 since this procedure is now too complex to be worth inlining.
9465 2005-02-09 Richard Henderson <rth@redhat.com>
9467 * utils.c (gnat_define_builtin): Remove.
9468 (gnat_install_builtins): Use build_common_builtin_nodes.
9470 2005-02-09 Arnaud Charlet <charlet@adacore.com>
9472 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
9473 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
9474 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
9475 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
9476 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
9477 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
9478 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
9479 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
9480 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
9481 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
9482 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
9483 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
9484 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
9485 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
9486 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
9487 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
9488 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
9489 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
9490 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
9491 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
9492 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
9493 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
9494 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
9495 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
9496 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
9497 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
9498 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
9499 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
9500 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
9501 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
9502 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
9503 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
9504 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
9505 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
9508 2005-01-27 Laurent GUERBY <laurent@guerby.net>
9510 * Makefile.in: Fix a-intnam.ads from previous commit,
9511 add 2005 to copyright.
9512 * a-intman-rtems.ads: Renamed to...
9513 * a-intnam-rtems.ads:
9515 2005-01-27 Laurent GUERBY <laurent@guerby.net>
9517 * Makefile.in: Rename GNAT RTEMS specific files.
9518 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
9519 5rosinte.ads, 5rparame.adb: Replaced by files below.
9520 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
9521 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
9523 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
9524 Laurent GUERBY <laurent@guerby.net>
9527 * 5rosinte.ads: Add No_Key constant.
9528 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
9529 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
9531 2005-01-26 Laurent GUERBY <laurent@guerby.net>
9534 * i-cobol.adb (Valid_Numeric): Handle zero length case.
9536 2005-01-20 Richard Henderson <rth@redhat.com>
9538 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
9539 a-intnam-linux.ads and system-linux-alpha.ads.
9540 * a-intnam-linux-alpha.ads: Remove file.
9541 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
9542 * system-linux-alpha.ads: New file.
9544 2005-01-18 Jakub Jelinek <jakub@redhat.com>
9547 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
9548 set to the new string.
9550 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
9552 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
9555 2005-01-18 Richard Henderson <rth@redhat.com>
9557 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
9558 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
9560 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
9562 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
9564 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
9565 (GCC_ZCX_Support): Likewise.
9567 2005-01-11 Bastian Blank <waldi@debian.org>
9569 * system-linux-s390.ads: Define Preallocated_Stacks.
9570 * system-linux-s390x.ads: Likewise.
9572 2005-01-04 Arnaud Charlet <charlet@adacore.com>
9574 * gnat_ugn.texi: Fix texi errors with null variables.
9576 2005-01-03 Thomas Quinot <quinot@adacore.com>
9578 * gen-soccon.c: New utility program to generate g-soccon.ads
9581 * socket.c, gsocket.h: Split inclusion of system header files into a
9582 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
9584 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
9585 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
9586 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
9587 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
9588 should not be edited by hand anymore, but should be regenerated using
9591 2005-01-03 Robert Dewar <dewar@adacore.com>
9592 Ed Schonberg <schonberg@adacore.com>
9593 Vincent Celier <celier@adacore.com>
9595 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
9596 on/off, since this is an obsolescent feature, for which we now generate
9599 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
9600 warning mode is set and obsolescent usage of this attribute occurs.
9601 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
9602 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
9603 predates, and partly motivates, the adoption of the AI.
9604 Implement new Ada 2005 attribute Mod
9606 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
9609 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
9611 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
9612 pragma restrictions.
9613 New entry for Ada 2005 attribute Mod.
9616 Add recognition of new pragma Restrictions No_Dependence
9617 Recognize restriction No_Obsolescent_Features at parse time
9619 * bcheck.adb: Add circuitry for checking for consistency of
9620 No_Dependence restrictions.
9622 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
9625 * restrict.ads, restrict.adb: Add subprograms to deal with
9626 No_Dependence restrictions.
9628 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
9631 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
9632 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
9634 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
9635 dummy parameter to scng instantiation.
9636 Needed for new restriction No_Obsolescent_Features
9638 * scn.adb: (Obsolescent_Check): New procedure
9639 Needed for new restriction No_Obsolescent_Features
9641 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
9642 specified by AI-285, needed for implementation of AI-388 (adding greek
9643 pi to Ada.Numerics).
9644 Add new generic formal to scng, needed for new restriction
9645 No_Obsolescent_Features.
9647 * s-rident.ads: Add new restriction No_Obsolescent_Features.
9649 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
9651 (Scan_ALI): When finding an unexpected character on an R line, raise
9652 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
9653 Ignore_Errors is True, default restrictions are set and scanning of the
9654 ALI file continues with the next line. Also, when Bad_R_Line is raised
9655 and Ignore_Errors is True, skip to the end of le line.
9657 * sem_ch10.adb: Check that explicit with's do not violate
9658 No_Dependence restrictions.
9659 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
9660 illegal context clauses containing child units of instance.
9662 * sem_prag.adb: Processing and checking for new No_Dependence
9664 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
9665 analyze and check the External argument.
9667 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
9669 2005-01-03 Robert Dewar <dewar@adacore.com>
9671 * atree.adb: Add a fifth component to entities
9672 This allows us to add 32 flags and four new fields
9674 * atree.ads: Add a fifth component to entities
9675 This allows us to add 32 flags and four new fields
9677 * einfo.ads, einfo.adb: Document new fields and new flags now available
9678 Add routines for printing new fields
9680 * treepr.adb: Call routines to print out additional fields if present
9682 2005-01-03 Arnaud Charlet <charlet@adacore.com>
9684 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
9685 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
9687 * Makefile.in: Add support to build shared Ada libraries on solaris x86
9688 Remove gpr2make, replaced by gprmake.
9689 Remove references to gnatmem and libaddr2line.
9690 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
9691 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
9692 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
9693 a-numaux-darwin.ads and a-numaux-darwin.adb
9694 Enable mlib-tgt-lynxos.adb on lynxos.
9696 * Make-lang.in: Remove rules for gpr2make.
9697 When generating sdefault.adb, do not call Relocate_Path
9698 on S3 for function Target_Name, as it is not a path.
9699 Remove references to gnatmem and libaddr2line.
9701 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
9704 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
9706 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
9707 address is incompatible with its base type alignment constraints when
9708 this can be decided statically.
9710 2005-01-03 Olivier Hainque <hainque@adacore.com>
9712 * decl.c (compatible_signatures_p): New function. The intended purpose
9713 is to check if two function signatures for a call-site and a callee are
9714 compatible enough for the call to be valid. The underlying purpose is
9715 to check if a call to a mapped builtin is using the right interface.
9716 The current code actually does not check antyhing - this a placeholder
9717 for future refinements.
9718 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
9719 builtin calls for convention Intrinsic.
9721 * gigi.h (builtin_decl_for): Declare (new function).
9723 * utils.c (gnat_install_builtins): Install the target specific builtins.
9724 (builtin_decl_for): New function, provide a dummy body for now.
9726 2005-01-03 Geert Bosch <bosch@adacore.com>
9728 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
9729 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
9730 (Pred): Implement in terms of Succ.
9732 * trans.c (convert_with_check): Reimplement conversion of float to
9735 2005-01-03 Ed Schonberg <schonberg@adacore.com>
9736 Vincent Celier <celier@adacore.com>
9738 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
9739 bounds can be negative, and must be declared Int, not Nat.
9741 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
9742 array is checked after using the index in the array.
9744 * makegpr.adb (Add_Switches): Check if there is a package for the
9745 processor. If there is no package, do not look for switches.
9747 2005-01-03 Ed Schonberg <schonberg@adacore.com>
9749 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
9750 generation of predefined stream operations (specs and bodies) should
9751 proceed. Under various restrictions these subprograms must not be
9754 2005-01-03 Thomas Quinot <quinot@adacore.com>
9757 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
9758 amount of PCS-specific code in RACW stubs generation.
9759 (Copy_Specification): Set Etype on copied formal parameter entities, as
9760 this information is needed for PolyORB stubs generation.
9761 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
9762 variable Dynamic_Async.
9763 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
9764 (Build_RPC_Receiver_Specification): Make generic again, as recent
9765 changes have allowed RPC receivers to have the same profile for both
9766 variants of the PCS.
9767 Reorganise RPC receiver generation to reduce differences between the
9768 structure of GARLIC and PolyORB RPC receivers.
9769 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
9771 Simplify elaboration code for RCI packages.
9773 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
9774 generation to reduce differences between the structure of GARLIC and
9775 PolyORB RPC receivers.
9777 * s-stratt.adb: Fix typo in comment.
9779 2005-01-03 Thomas Quinot <quinot@adacore.com>
9781 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
9782 copied from Make_Init_Call).
9784 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
9785 reads and assignments on a temporary variable declared with appropriate
9788 2005-01-03 Robert Dewar <dewar@adacore.com>
9790 * i-c.adb (To_C): Raise CE if string is null and Append_Null
9792 2005-01-03 Robert Dewar <dewar@adacore.com>
9794 * i-cstrin.adb (Update): Do not append a null in form called with a
9795 String. This avoids unintended behavior.
9797 2005-01-03 Arnaud Charlet <charlet@adacore.com>
9800 * init.c: Fix warnings on Free BSD section.
9802 2005-01-03 Arnaud Charlet <charlet@adacore.com>
9805 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
9808 2005-01-03 Vincent Celier <celier@adacore.com>
9810 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
9811 libraries when Unique_Compile is True (-u switch).
9814 2005-01-03 Robert Dewar <dewar@adacore.com>
9816 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
9817 upper case letter or underscore after W, as allowed by spec.
9819 2005-01-03 Arnaud Charlet <charlet@adacore.com>
9821 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
9822 darwin port by using proper type definitions from header files.
9823 Use SIGTERM instead of SIGABRT for SIGADAABORT.
9825 2005-01-03 Robert Dewar <dewar@adacore.com>
9827 * par.adb: Enhance error message handling for configuration file
9830 2005-01-03 Robert Dewar <dewar@adacore.com>
9832 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
9833 removed during the previous update (test properly for case of dividing
9834 largest negative number by -1, which generates overflow).
9836 2005-01-03 Ed Schonberg <schonberg@adacore.com>
9837 Sergey Rybin <rybin@adacore.com>
9839 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
9840 to use as the defining identifier for a formal package.
9841 (Remove_Parent): If the instance takes place within (an instance of)
9842 a sibling, preserve private declarations of common parent.
9844 2005-01-03 Ed Schonberg <schonberg@adacore.com>
9846 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
9847 to determine whether one of the operands is a fixed-point type for
9848 which a user-defined multiplication or division operation might be
9851 * sem_res.adb (Valid_Conversion): The legality rules for conversions
9852 of access types are symmetric in Ada 2005: either designated type can
9855 2005-01-03 Vincent Celier <celier@adacore.com>
9857 * s-fileio.adb (Temp_File_Record): Change length of string component
9858 Name from L_tmpnam + 1 to max_path_len + 1.
9860 2005-01-03 Arnaud Charlet <charlet@adacore.com>
9862 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
9863 Self_Id.Deferral_Level = 0.
9864 (Do_Pending_Action): Move this function to the spec.
9866 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
9867 Do_Pending_Action explicitely when needed, in case we're using
9868 No_Abort restrictions.
9870 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
9871 deferral level since it will not get changed by the generated code.
9872 Keeping a default value of 1 would prevent some operations (e.g.
9873 select or delay) to proceed successfully.
9875 2005-01-03 Ben Brosgol <brosgol@adacore.com>
9876 Robert Dewar <dewar@adacore.com>
9877 Cyrille Comar <comar@adacore.com>
9879 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
9880 porting guide chapter (vms version).
9881 Revised doc title (removed "for native platforms") and subtitle.
9882 Add discussion on warning flag for obsolescent features. First we
9883 note that it applies to obsolete GNAT features, which was previously
9884 omitted. Second we contrast the behavior with that of the new
9885 Ada 2005 AI-368 restriction No_Obsolescent_Features.
9886 Preliminary rewriting of GNAT & libraries chapter in order to take
9887 into account default project locations & new project manager
9890 2005-01-03 Robert Dewar <dewar@adacore.com>
9892 * cstand.adb (Create_Operators): Clean up format and documentation of
9893 unary and binary operator result tables. No change in code, just
9894 reformatting and addition of comments.
9896 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
9897 sem_ch2.adb: Minor reformatting
9899 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
9900 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
9901 comments for Tree_Read and Tree_Write.
9903 2005-01-03 Pascal Obry <obry@adacore.com>
9905 * exp_attr.ads: Minor reformatting.
9907 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
9909 * comperr.adb (Compiler_Abort): Add specialized message for GAP
9912 2005-01-03 Ed Schonberg <schonberg@adacore.com>
9914 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
9915 whether the ancestor type is private, as may be the case with nested
9918 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
9921 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
9923 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
9925 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
9926 * utils2.c (build_unary_op): Likewise.
9928 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9930 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
9932 2004-12-19 Richard Henderson <rth@redhat.com>
9934 * trans.c (gigi): Update gimplify_body call.
9936 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
9938 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
9940 2004-12-07 Ed Falis <falis@adacore.com>
9942 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
9943 current task being suspended.
9945 * init.c (__gnat_clear_exception): added to reset VxWorks exception
9947 (__gnat_map_signal): removed test for current task being suspended.
9949 2004-12-07 Gary Dismukes <dismukes@adacore.com>
9951 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
9952 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
9953 targets (such as AAMP).
9955 2004-12-07 Ed Schonberg <schonberg@adacore.com>
9957 * atree.adb (Visit_Itype): Create a new name for the generated itype,
9958 because the back-end may otherwise treat it as a redefinition of the
9961 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
9963 * back_end.adb (Scan_Back_End_Switches): Accept --param.
9965 * lang-specs.h: Accept --param.
9967 2004-12-07 Vincent Celier <celier@adacore.com>
9969 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
9970 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
9971 Current_Body_Suffix => Ada_Body_Suffix).
9972 Take into account Externally_Built attribute.
9974 * clean.adb (In_Extension_Chain): Always return False when one of the
9975 parameter is No_Project.
9976 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
9977 Ada_Language_Index).
9978 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
9979 Process_Languages for procedure Parse).
9981 * gnatcmd.adb (Carg_Switches): New table.
9982 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
9983 Adapt to name changes in package Prj (Current_Spec_Suffix =>
9984 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
9986 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
9987 Header_Num and function Hash are now declared in package Prj,
9990 * prj.adb (Suffix_Of): New function.
9991 (Set (Suffix)): New procedure.
9992 (Hash): One function moved from Prj.Com
9993 (Is_Present, Language_Processing_Data_Of): New functions
9994 (Set): Two new procedures
9995 (Add_Language_Name, Display_Language_Name): New procedures
9997 * prj.ads: (Suffix_Of): New function
9998 (Set (Suffix)): New procedure
9999 Add several types and tables for multi-language support.
10000 (Header_Num): Type moved from Prj.Com
10001 (Hash): Two functions moved from Prj.Com
10002 (Is_Present, Language_Processing_Data_Of): New functions
10003 (Set): Two new procedures
10004 (Add_Language_Name, Display_Language_Name): New procedures
10005 (Naming): Component name changes:
10006 Current_Spec_Suffix => Ada_Spec_Suffix,
10007 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
10008 Impl_Suffixes, Supp_Suffixes.
10009 (Project_Data): New components: Externally_Built, Supp_Languages,
10010 First_Language_Processing, Supp_Language_Processing, Default_Linker,
10011 Default_Linker_Path.
10013 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
10014 new package Language_Processing with its attributes (Compiler_Driver,
10015 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
10016 Binder_Driver, Default_Linker).
10018 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
10019 (Header_Num): Type moved to package Prj
10021 * prj-env.adb: Adapt to name changes in package Prj
10022 (Current_Spec_Suffix => Ada_Spec_Suffix,
10023 Current_Body_Suffix => Ada_Body_Suffix).
10025 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
10026 default to the project path, except the "-" is one of the directories
10027 in env var ADA_PROJECT_PATH.
10028 (Current_Project_Path): Global variable, replacing Project_Path
10029 that was in the body of Prj.Part.
10030 (Project_Path): New function
10031 (Set_Project_Path): New procedure
10032 Initialize Current_Project_Path during elaboration of the package
10033 Remove dependency on Prj.Com, no longer needed
10035 * prj-ext.ads (Project_Path): New function
10036 (Set_Project_Path): New procedure
10038 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
10039 suffix is defined for language <lang>.
10040 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
10041 accessing directly the components of Naming.
10042 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
10043 Reorganise of this package.
10044 Break procedure Check in several procedures.
10046 * prj-nmsc.ads: Replace all procedures (Ada_Check,
10047 Other_Languages_Check and Language_Independent_Check) with a single
10050 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
10051 Process_Languages, no longer needed.
10053 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
10054 Current_Project_Path.
10055 Remove elaboration code, moved to the body of Prj.Ext
10056 Use new function Prj.Ext.Project_Path instead of old variable
10058 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
10059 When comparing with project paths on the stack, first put the resolved
10060 path in canonical case.
10061 (Parse_Single_Project): Set the path name of the project file in the
10062 tree to the normalized path.
10064 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
10065 parameter Process_Languages, no longer needed.
10066 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
10067 Other_Languages_Check.
10069 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
10070 to store the resolved canonical path of the project file.
10071 Remove dependency to Prj.Com, no longer needed
10073 * prj-util.adb: Adapt to name changes in package Prj
10074 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
10077 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
10078 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
10079 Externally_Built, Include_Option, Language_Processing.
10081 * makegpr.adb: Numerous changes due to changes in packages
10084 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
10085 default to the project path, except whe "-" is one of the directories
10086 in env var ADA_PROJECT_PATH.
10087 (Gnatls): In verbose mode, add the new section "Project Search Path:"
10089 2004-12-07 Robert Dewar <dewar@adacore.com>
10091 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
10093 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
10096 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
10097 flag. No longer needed now that we handle this in gnat1drv.adb.
10099 * repinfo.ads: Minor reformatting
10101 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10102 Olivier Hainque <hainque@adacore.com>
10103 Eric Botcazou <ebotcazou@adacore.com>
10105 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
10106 TYPE_SIZE_UNIT of result type if SIZE is not specified.
10107 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
10108 of a bitfield, which we know is useless and causes trouble because of
10109 alignment implications.
10111 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
10113 (process_attributes): Clear DECL_COMMON again when a section attribute
10115 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
10116 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
10117 (create_field_decl): Special case ADDRESSABLE negative to mean
10118 "no bitfield creation", to be used by make_aligning_type. Don't
10119 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
10120 fields claimed addressable still have to be bitfields. Use
10121 value_factor_p instead of a raw binop construction to check for the
10122 position's alignment.
10124 2004-12-07 Geert Bosch <bosch@adacore.com>
10126 * eval_fat.adb: Revert previous change.
10128 2004-12-07 Thomas Quinot <quinot@adacore.com>
10129 Ed Schonberg <schonberg@adacore.com>
10131 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
10132 with an implicit dereference as its prefix, use
10133 Insert_Explicit_Dereference instead of merely rewriting the prefix into
10134 an explicit dereference. This ensures that a reference to the original
10135 prefix is generated, if appropriate.
10137 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
10138 dereference is rewritten to an explicit one, generate a reference to
10139 the entity denoted by its prefix using the original prefix node, so
10140 the dereference can be properly recorded as a read of the denoted
10141 access value, if appropriate.
10143 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
10144 emitting 'assigned but never read' warning on a variable on the basis
10145 that it has an access type.
10146 (Check_References): Emit unreferenced warning when the scope is a
10149 2004-12-07 Robert Dewar <dewar@adacore.com>
10150 Ed Schonberg <schonberg@adacore.com>
10152 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
10155 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
10156 leaving call unchanged.
10157 This deals with the case where the pragma Import specified
10158 an external name, to be handled by the back end.
10160 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
10161 subprogram which is Imported with convention Intrinsic if an
10162 External_Name argument is specified.
10163 (Process_Import_Or_Interface): Properly diagnose link name argument.
10164 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
10165 with Sem_Ch6.Cannot_Inline.
10166 (Process_Inline): Provide separate warning for inapplicable inline
10168 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
10169 treatment is uniform on different targets.
10171 2004-12-07 Ed Schonberg <schonberg@adacore.com>
10173 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
10174 construct is rewritten, preserve end label to permit source navigation.
10176 2004-12-07 Thomas Quinot <quinot@adacore.com>
10178 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
10179 Specific_Build_Stub_Target): New subprograms.
10180 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
10181 the PCS implementation used, using the above PCS-customized subprograms.
10182 Minor reformatting.
10183 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
10184 for generation of DSA code targeted to the PolyORB PCS.
10185 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
10186 implementation of the partition communication subsystem in ancillary
10188 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
10189 PolyORB_Support.Build_Stub_Type): New subrograms containing the
10190 PCS-specific part of Add_Stub_Type.
10191 (Insert_Partition_Check): Use runtime library function to perform
10194 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
10195 (RE_Same_Partition): New entity, from s-parint.
10197 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
10199 2004-12-07 Gary Dismukes <dismukes@adacore.com>
10201 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
10202 Output the copyright message on a separate line from the version
10205 2004-12-07 Joel Brobecker <brobecker@adacore.com>
10207 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
10208 compile-time warning.
10210 2004-12-07 Robert Dewar <dewar@adacore.com>
10212 * g-regpat.adb: (Match): Change a misuse of or to or else
10214 2004-12-07 Ed Schonberg <schonberg@adacore.com>
10217 (Generate_Reference): Handle properly a reference to an entry formal,
10218 when an accept statement has a pragma Unreferenced for it.
10220 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
10221 and the Has_Pragma_Unreferenced flag for each formal before analyzing
10222 the body, to ensure that warnings are properly emitted for each accept
10223 statement of a given task entry.
10225 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
10227 * Makefile.in: Add support for foreign threads on VMS.
10229 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10231 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
10233 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
10235 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
10237 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
10239 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
10241 2004-12-07 Robert Dewar <dewar@adacore.com>
10243 * nlists.adb (Prepend_Debug): Remove parameters and nest within
10245 (Remove_Next_Debug): Same fix
10247 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
10248 maintain back pointers now, though we did not used to, and comments
10250 (Prepend): Remove pragma Inline.
10251 (Remove_Next): Same cleanup
10253 2004-12-07 Thomas Quinot <quinot@adacore.com>
10255 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
10256 used to record an implicit dereference as a read operation on its
10257 prefix when operating under -gnatc. Necessary to avoid spurious
10258 'variable assigned but never read' warnings in that mode.
10259 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
10260 is a non-overloaded implicit dereference, call the above subprogram to
10261 ensure proper recording of references.
10263 2004-12-07 Gary Dismukes <dismukes@adacore.com>
10265 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
10266 to be resolved later as part of Analyze_Iteration_Scheme's call to
10269 2004-12-07 Ed Schonberg <schonberg@adacore.com>
10271 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
10272 prefix is not a scalar type, place error message on prefix, not on
10275 2004-12-07 Bernard Banner <banner@adacore.com>
10277 * vxaddr2line.adb: Add support for x86 vxworks
10279 2004-12-07 Thomas Quinot <quinot@adacore.com>
10281 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
10282 documentation of the behaviour of these functions when passed an IP
10283 address that has no record in the system hosts database and no reverse
10286 * cstand.adb, a-tags.ads: Fix typos in comment.
10288 2004-12-07 Robert Dewar <dewar@adacore.com>
10290 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
10291 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
10292 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
10293 s-poosiz.ads: Minor reformatting
10295 * make.adb: Minor reformatting
10296 Add some ??? comments asking for more comments
10298 * s-poosiz.adb: Minor reformatting
10299 Add comments on alignment requirement
10301 * sinfo.ads: Remove obsolete comment and fix typo.
10303 2004-12-07 Vincent Celier <celier@adacore.com>
10304 Sergey Rybin <rybin@adacore.com>
10306 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
10307 Files" with the new tool and package names.
10308 Reformatting to suppress most of the warnings for line too long
10309 Document the new section "Project Search Path:" in the output of
10311 Add gnatmetric section
10313 2004-12-07 Vincent Celier <celier@adacore.com>
10315 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
10316 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
10317 and -eit to -ept. Added qualifier
10318 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
10320 2004-11-27 Andreas Schwab <schwab@suse.de>
10322 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
10324 2004-11-25 Arnaud Charlet <charlet@adacore.com>
10326 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
10327 internal implementation unit GNAT.Sockets.Thin,
10328 as their usage for sockets is non-portable (using the read and write
10329 functions from the system runtime library is fine on UNIX but won't
10330 work under Windows).
10332 * mingw32.h: Update copyright notice.
10334 2004-11-25 Arnaud Charlet <charlet@adacore.com>
10336 * ada-tree.h: Minor reformatting of previous change to avoid lines
10337 longer than 79 characters.
10339 2004-11-25 Olivier Hainque <hainque@adacore.com>
10341 * tb-gcc.c: GCC infrastructure based implementation of
10344 2004-11-24 Steven Bosscher <stevenb@suse.de>
10346 * misc.c (gnat_post_options): Don't clear
10347 flag_inline_functions.
10349 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
10352 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
10355 2004-11-21 Andreas Jaeger <aj@suse.de>
10357 * stylesw.adb: Change Style_Check_Subprogram_Order to
10358 Style_Check_Order_Subprograms.
10360 2004-11-18 Arnaud Charlet <charlet@adacore.com>
10362 * adaint.h, adaint.c
10363 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
10365 Add also a cast to kill another warning.
10366 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
10367 parameter with the priority class of the parent process instead of
10368 always using the NORMAL_PRIORITY_CLASS.
10369 (__gnat_dup): New function.
10370 (__gnat_dup2): New function.
10371 (__gnat_is_symbolic_link): Enable the effective body of this
10372 function when __APPLE__ is defined.
10374 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
10377 2004-11-18 Olivier Hainque <hainque@adacore.com>
10379 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
10380 address of which may be used to represent "others" and "all others"
10381 choices in exception tables, instead of the current harcoded
10382 (void *)0 and (void *)1.
10383 (Setup_Exception): Do nothing in the GNAT SJLJ case.
10385 * gigi.h (others_decl, all_others_decl): New decls representing the
10386 new Others_Value and All_Others_Value objects.
10387 (struct attrib): Rename "arg" component as "args", since GCC expects a
10388 list of arguments in there.
10390 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
10391 corresponding objects exported by a-exexpr, instead of hardcoded dummy
10394 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
10395 others_decl and all_others_decl instead of hardcoded dummy addresses
10396 to represent "others" and "all others" choices, which is cleaner and
10397 more flexible with respect to the possible eh pointer encoding policies.
10399 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
10400 (process_attributes): Account for the naming change of the "args"
10401 attribute list entry component.
10403 * decl.c (build_attr_list): Rename into prepend_attributes to allow
10404 cumulating attributes for different entities into a single list.
10405 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
10406 attributes for the current entity and propagate first subtype
10407 attributes to other subtypes.
10408 <E_Procedure>: Attribute arguments are attr->args and not
10409 attr->arg any more.
10410 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
10411 argument provided, as this is what GCC expects. Use NULL_TREE instead
10414 2004-11-18 Robert Dewar <dewar@adacore.com>
10416 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
10417 Minor reformatting througout (including new function specs)
10418 Add ??? comments asking for clarification.
10420 2004-11-18 Thomas Quinot <quinot@adacore.com>
10422 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
10423 incomplete duplicate implementation of this subprogram from butil.
10425 2004-11-18 Thomas Quinot <quinot@adacore.com>
10427 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
10428 procedures factors the common processing for building an RPC receiver
10429 for an RCI package or an RACW type.
10430 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
10431 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
10432 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
10434 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
10436 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
10438 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
10439 distribution subprogram identifiers that are either subprogram numbers
10441 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
10442 string distribution identifiers assigned to a given subprogram.
10443 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
10444 (Add_RAS_Dereference_TSS): Add comments.
10445 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
10446 is not referenced yet because it will be used by the PolyORB DSA
10448 (Insert_Partition_Check): Remove fossile code.
10449 (First_RCI_Subprogram_Id): Document this constant.
10450 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
10452 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
10453 replaced with calls to Get_Library_Unit_Name_String. Previously there
10454 were several instances of the same code in different locations in the
10455 compiler; this checkin completes the replacement of all of these
10456 instances with calls to a common subprogram.
10457 Minor reformatting.
10459 * sem_dist.adb: Remove comment noting that RPC receiver generation
10460 should be disabled for RACWs that implement RASs.
10461 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
10463 * sem_util.ads, sem_util.adb (Has_Stream): New function
10464 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
10465 qualified name of a library unit into the name buffer.
10466 (Note_Possible_Modification): Generate a reference only
10467 if the context comes from source.
10469 * snames.ads (PCS_Names): New subtype corresponding to names of
10470 supported implementations of the Partition Communication Subsystem
10471 (PCS) (i.e. the runtime library support modules for the distributed
10474 2004-11-18 Robert Dewar <dewar@adacore.com>
10475 Ed Schonberg <schonberg@adacore.com>
10477 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
10478 (Has_Rep_Pragma): New function
10479 (Has_Attribute_Definition_Clause): New function
10480 (Record_Rep_Pragma): Moved here from sem_ch13.adb
10481 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
10483 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
10485 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
10486 (Expand_Pragma_Psect_Object): New procedure
10487 These procedures contain the revised and cleaned up processing for
10488 these two pragmas. This processing was formerly in Sem_Prag, but
10489 is more appropriately moved here. The cleanup involves making sure
10490 that the pragmas are properly attached to the tree, and that no
10491 nodes are improperly shared.
10493 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
10494 pragmas to Exp_Prag, which is more appropriate.
10495 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
10496 check for duplicates Remove use of Is_Psected flag, no longer needed.
10497 Use new Make_String_Literal function with string.
10499 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
10500 that are functions return universal values, that have to be converted
10501 to the context type.
10502 Use new Make_String_Literal function with string.
10503 (Get_Stream_Convert_Pragma): New function, replaces the use of
10504 Get_Rep_Pragma, which had to be kludged to work in this case.
10506 * freeze.adb: Use new Has_Rep_Pragma function
10508 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
10509 function with string.
10510 Use new Has_Rep_Pragma function.
10512 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
10515 2004-11-18 Robert Dewar <dewar@adacore.com>
10517 * errout.ads, errout.adb: (First_Sloc): New function
10519 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
10520 check (-gnatyx) instead of being included as a redundant construct
10523 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
10524 Style_Check_Order_Subprograms.
10526 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
10527 stylesw.adb: Add Style_Check_Xtra_Parens
10529 * usage.adb: Add line for -gnatyx (check extra parens)
10531 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
10533 2004-11-18 Ed Schonberg <schonberg@adacore.com>
10534 Robert Dewar <dewar@adacore.com>
10536 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
10537 discriminant of a constrained subtype, analyze the copy of the
10538 corresponding constraint, because in some cases it may be only
10539 partially analyzed.
10540 Removes long-lived ??? comments.
10542 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
10543 handled controlled or secondary-stack expressions within the
10544 iteration_scheme of a loop.
10546 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
10547 bounds that may contain functions calls, to prevent memory leaks when
10548 the bound contains a call to a function that uses the secondary stack.
10549 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
10550 generate temporaries for loop bounds that might contain function calls
10551 that require secondary stack and/or finalization actions.
10553 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
10554 selected component and the selector is overloadable (not just a
10555 function) treat as function call, Analyze_Call will disambiguate if
10557 (Analyze_Selected_Component): Do not generate an actual subtype for the
10558 selected component if expansion is disabled. The actual subtype is only
10559 needed for constraint checks.
10560 (Analyze_Allocator): If restriction No_Streams is set, then do
10561 not permit objects to be declared of a stream type, or of a
10562 composite type containing a stream.
10564 * restrict.ads: Remove the a-stream entry from Unit_Array, since
10565 No_Streams no longer prohibits with'ing this package.
10567 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
10568 discriminants, but the parent base has unknown discriminants, there is
10569 no discriminant constraint to inherit. Such a discrepancy can arise
10570 when the actual for a formal type with unknown discriminants is a
10571 similar private type whose full view has discriminants.
10572 (Analyze_Object_Declaration): If restriction No_Streams is set, then
10573 do not permit objects to be declared of a stream type, or of a
10574 composite type containing a stream.
10576 2004-11-18 Ed Schonberg <schonberg@adacore.com>
10578 * exp_dbug.ads: Update documentation to reflect simpler encoding for
10579 protected operations.
10581 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
10582 generated name, it complicates decoding in gdb and hinders debugging
10583 of protected operations.
10584 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
10585 flag for the protected entry barrier function.
10586 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
10587 flag for the protected entry function.
10589 2004-11-18 Nicolas Setton <setton@adacore.com>
10591 * expect.c: Define __unix__ when __APPLE__ is defined.
10593 * Makefile.in: Inform the value of the variable GMEM_LIB in the
10594 Darwin-specific section.
10596 * lang-specs.h: Change the placement of the %1 marker.
10597 Works around the fact that gcc adds -fPIC by default under Darwin.
10599 2004-11-18 Ed Schonberg <schonberg@adacore.com>
10601 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
10602 type of the object with the packed array type, set the Analyzed flag
10603 on the object if it is an entity or simple indexed component, to avoid
10604 spurious type errors.
10606 2004-11-18 Gary Dismukes <dismukes@adacore.com>
10608 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
10609 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
10610 separate line from the version message.
10612 2004-11-18 Ed Falis <falis@adacore.com>
10614 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
10616 (init_float): Eliminate initialization of floating point status for
10617 AE653. The instructions have no effect for vThreads.
10619 2004-11-18 Vincent Celier <celier@adacore.com>
10621 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
10622 gnatbind is invoked with -shared.
10624 2004-11-18 Jose Ruiz <ruiz@adacore.com>
10626 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
10627 for Detect_Blocking which is redundant with the check done within the
10628 procedure Protected_Single_Entry_Call.
10629 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
10630 Detect_Blocking which is redundant with the check done within the
10631 procedure Protected_Single_Entry_Call.
10633 2004-11-18 Vincent Celier <celier@adacore.com>
10635 * makegpr.adb (Compile): Put the compiling switches (in package
10636 Compiler and on the command line) immediately after "-c", instead of
10637 at the end of the command line invocation of the compiler, when
10638 compiling a non-Ada file.
10639 (Build_Global_Archive): When there is no need to rebuild the archive,
10640 set Global_Archive_Exists, so that the archive is passed to the linker
10643 2004-11-18 Robert Dewar <dewar@adacore.com>
10644 Sergey Rybin <rybin@adacore.com>
10647 Remove extra paren check from list of checks for redundant constructs
10648 Add documentation of new -gnatyx style check (check extra parens)
10649 Remove paragraph about gnatelim debug options.
10651 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
10652 objects rather than forbidding dependencies on the package Ada.Streams.
10654 * sinfo.ads: Add ??? note that we should document pragmas passed to
10657 * g-expect.ads: Fix a few typos in the comments.
10659 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
10661 * misc.c (gnat_handle_option): Use %< and %> for quoting in
10664 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10666 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
10668 2004-11-07 Andreas Schwab <schwab@suse.de>
10670 * Makefile.in (install-gnatlib): Remove spurious hyphen.
10672 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
10675 * Makefile.in (darwin): Set soext to .dylib.
10677 2004-10-26 Vincent Celier <celier@gnat.com>
10678 Thomas Quinot <quinot@act-europe.fr>
10680 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
10681 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
10682 there is no use of GNAT.Sockets.Constants.
10683 Remove remaining pragma Import for C_Write
10684 Remove C_Read and C_Write from internal implementation unit
10685 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
10686 the read and write functions from the system runtime library is fine
10687 on UNIX but won't work under Windows).
10689 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
10690 (Check_Selector): Use C_Recv instead of C_Read.
10691 Selectors are the GNAT.Sockets abstraction to perform a select()
10692 call on a set of descriptors. To allow abortion of an ongoing
10693 select operation, some data is written to a dedicated socket that
10694 is always monitored.
10695 Under Windows, the write and read library functions cannot operate
10696 on sockets, so we need to use send and recv instead, which is portable
10697 across all supported platforms.
10699 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
10700 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
10701 (using the read and write functions from the system runtime library is
10702 fine on UNIX but won't work under Windows).
10704 2004-10-26 Nicolas Setton <setton@act-europe.fr>
10706 * mlib-tgt-darwin.adb: New file.
10708 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
10709 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
10710 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
10711 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
10714 * Makefile.in: Add support for building shared libraries under Darwin.
10715 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
10716 the low level EH init subprogram to be called from __gnat_initialize.
10718 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
10719 indicates which options to pass to the archive indexer.
10721 * mlib-utl.adb: Add support for calling ranlib with additional
10722 options. This is needed for instance under Mac OS X.
10723 (Ranlib_Options): New global variable, used to store the potential
10724 options to pass to ranlib.
10725 (Ar): Use Ranlib_Options when spawning ranlib.
10726 (Initialize): Set the value of ranlib option.
10728 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
10730 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
10731 instead of 8K, to reflect the real potential needs for stack-checking
10734 2004-10-26 Pascal Obry <obry@gnat.com>
10736 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
10738 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
10739 Windows only the initial thread stack size can be set so it is good to
10740 start we a low stack size.
10741 The OS will adjust the size as needed.
10743 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
10744 Nicolas Setton <setton@act-europe.fr>
10746 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
10747 "__unix__" instead of "unix".
10748 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
10749 sections were just mistakenly ignored. The former is
10750 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
10751 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
10752 of hpux. This prevents an unwanted definition of the symbol
10753 convert_addresses in adaint.o.
10755 2004-10-26 Gary Dismukes <dismukes@gnat.com>
10757 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
10758 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
10760 2004-10-26 Cyrille Comar <comar@act-europe.fr>
10762 * a-filico.ads, a-filico.adb: fix incorrect header.
10764 2004-10-26 Javier Miranda <miranda@gnat.com>
10766 * a-ststio.ads: Fix typo in identifier
10768 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
10770 * sem_ch4.adb: Minor reformatting.
10772 2004-10-26 Ed Schonberg <schonberg@gnat.com>
10774 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
10775 enabled, check the result of unary and binary operations when the
10776 expression is the right-hand side of an assignment.
10778 2004-10-26 Vincent Celier <celier@gnat.com>
10780 * clean.adb (Delete): Do not output warnings when in quiet output and
10781 not in verbose mode.
10782 (Force_Deletions): New Boolean flag, defaulted to False
10783 (Delete): Only delete a file if it is writable, and when
10784 Force_Deletions is True.
10785 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
10786 (Usage): Line for new switch -f
10787 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
10790 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
10792 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
10793 JM type only if its size matches that of the wrapper. When a size is
10794 prescribed and the field is not aliased, remove the wrapper of a JM
10795 type only if the size is not greater than that of the packed array.
10796 (gnat_to_gnu_entity): Change the extension of packed array wrappers
10799 2004-10-26 Geert Bosch <bosch@gnat.com>
10801 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
10802 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
10803 (Pred): Implement in terms of Succ.
10805 2004-10-26 Ed Schonberg <schonberg@gnat.com>
10807 * exp_aggr.adb (Safe_Component): An aggregate component that is an
10808 unchecked conversion is safe for in-place use if the expression of the
10809 conversion is safe.
10810 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
10811 be expandable in place even if the aggregate does not come from source.
10812 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
10813 designated object of an allocator in place, rather than building it
10814 first on the stack. The previous scheme forces a full copy of the array,
10815 and may be altogether unsusable if the size of the array is too large
10816 for stack allocation.
10818 2004-10-26 Robert Dewar <dewar@gnat.com>
10820 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
10821 compares if the component is atomic.
10823 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
10824 array assignment if the component type is atomic.
10826 2004-10-26 Ed Schonberg <schonberg@gnat.com>
10827 Eric Botcazou <ebotcazou@act-europe.fr>
10829 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
10830 is aliased and is a by_reference type, do not pass by copy.
10831 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
10832 detect whether the call is in the right side of an assignment or
10833 the expression of an object declaration. Recurse on component
10834 association within aggregates.
10835 Call it in the condition that determines whether the temporary is
10836 necessary for correct stack-checking.
10838 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
10840 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
10841 RACW_Type, used in the PolyORB version.
10842 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
10843 version and the GARLIC version.
10845 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
10846 Rename RCI_Info to RCI_Locator for better consistency between the
10847 GARLIC and PolyORB versions of the distributed systems annex.
10848 (DSA_Implementation_Name): This enumeration lists the possible
10849 implementations of the Partition Communication Subsystem for the
10850 Distributed Systems Annex (DSA). The three available implementations
10851 are the dummy stub implementation (No_DSA), and two versions based on
10852 two different distribution runtime libraries: GARLIC and PolyORB. Both
10853 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
10855 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
10858 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
10859 between the GARLIC and PolyORB versions of the distributed systems
10861 Remove RE_Unbounded_Reclaim_Pool since it is unused.
10863 2004-10-26 Gary Dismukes <dismukes@gnat.com>
10865 * gnat1drv.adb: Suppress calling the back end when
10866 Frontend_Layout_On_Target is true.
10868 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
10870 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
10871 Set_Read_Only): New subprograms.
10872 These new routines allow the user to set or unset the Owner execute
10873 and Owner write permission flags on a file.
10875 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
10876 GNAT.OS_Lib.Set_Executable instead of rolling our own.
10878 2004-10-26 Matthew Gingell <gingell@gnat.com>
10880 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
10882 2004-10-26 Pascal Obry <obry@gnat.com>
10884 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
10885 memory before the faulting page we properly test the process read
10886 access for this address using appropriate Win32 routine.
10887 (HPUX sections): guard with "__hpux__" instead of "hpux".
10889 2004-10-26 Robert Dewar <dewar@gnat.com>
10891 * lib-xref.adb (Generate_Reference): Don't complain about reference to
10892 entry parameter if pragma Unreferenced set, since we do not properly
10893 handle the case of multiple parameters.
10895 2004-10-26 Vincent Celier <celier@gnat.com>
10897 * prj-env.adb: (Contains_ALI_Files): New Boolean function
10898 (Ada_Objects_Path.Add): For a library project, add to the object path
10899 the library directory only if there is no object directory or if the
10900 library directory contains ALI files.
10901 (Set_Ada_Paths.Add.Recursive_Add): Ditto
10903 2004-10-26 Vincent Celier <celier@gnat.com>
10905 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
10906 extension of library projects.
10908 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
10909 path defaults to ".:<prefix>/lib/gnat".
10910 (Parse): For an extending all project, allow direct import of a project
10911 that is virtually extended.
10913 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
10914 the specified name is directly imported, return its ID. Otherwise, if
10915 an extension of this project is imported, return the ID of the
10918 2004-10-26 Robert Dewar <dewar@gnat.com>
10920 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
10921 (Sub3): New procedure, used by Scaled_Divide
10922 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
10923 correct more than one instance of failure to propagate carries
10925 (Double_Divide): Handle overflow case of largest negative number
10926 divided by minus one.
10928 * s-arit64.ads (Double_Divide): Document that overflow can occur in
10929 the case of a quotient value out of range.
10932 2004-10-26 Robert Dewar <dewar@gnat.com>
10934 * s-bitops.adb (Bit_Eq): Remove redundant check.
10936 * s-bitops.ads: Minor comment updates
10937 Change some occurrences of Address to System.Address
10939 * s-carsi8.ads: Fix minor cut-and-paste error in comments
10941 2004-10-26 Ed Schonberg <schonberg@gnat.com>
10943 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
10944 accessibility check to prefix that is a protected operation.
10946 2004-10-26 Ed Schonberg <schonberg@gnat.com>
10948 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
10949 empty, post message on stub.
10951 2004-10-26 Ed Schonberg <schonberg@gnat.com>
10952 Javier Miranda <miranda@gnat.com>
10954 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
10955 current instance appears within a unit that is directly in the context
10957 Used to determine whether the body of the instance should be analyzed
10958 immediately after its spec, to make its subprogram bodies available
10959 for front-end inlining.
10960 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
10961 constraint is not allowed on the component type (AARM 12.5.3(3))
10963 2004-10-26 Cyrille Comar <comar@act-europe.fr>
10965 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
10966 'Storage_Pool): enhance, document & limit detection of non-sharable
10969 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
10971 * s-pooglo.ads: Add more documentation now that this pool is properly
10974 2004-10-26 Ed Schonberg <schonberg@gnat.com>
10976 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
10977 or protected type with discriminants, do not constrain the
10978 corresponding record type if the subtype declaration has no
10979 discriminant constraints. This can be the case in source code, or in
10980 the subtype declaration created to rename an actual type within an
10983 2004-10-26 Ed Schonberg <schonberg@gnat.com>
10985 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
10986 different kind of stub (possibly wrong name for file), do not check
10988 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
10989 includes call to some function that returns an unconstrained type, do
10992 2004-10-26 Ed Schonberg <schonberg@gnat.com>
10994 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
10995 appear in the code for the main unit. Dependencies among units in the
10996 context of the main unit are established when those other units are
10997 compiled. Otherwise spurious elaboration constraints can generate
10998 incorrect elaboration circularities.
11000 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
11001 Ed Schonberg <schonberg@gnat.com>
11003 * sem_util.adb (Is_Aliased_View): Defend against the case where this
11004 subprogram is called with a parameter that is not an object name. This
11005 situation arises for some cases of illegal code, which is diagnosed
11006 later, and in this case it is wrong to call Is_Aliased, as that might
11007 cause a compiler crash.
11008 (Explain_Limited_Type): Refine previous fix to include
11009 inherited components of derived types, to provide complete information.
11011 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
11012 is the prival for a protected object.
11013 It is necessary to mark this entity as a variable, in addition to
11014 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
11015 modified to avoid checking the Aliased flag on entities that are not
11016 objects. (Checking that flag for non-objects is erroneous and could
11017 lead to a compiler crash).
11019 2004-10-26 Robert Dewar <dewar@gnat.com>
11021 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
11022 X_Frac = 0.5, then we know that the number X must be positive.
11023 (Succ): Remove the same redundant test, and also fix the primary test
11024 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
11026 (Decompose): Add fuller comments to spec
11028 2004-10-26 Pascal Obry <obry@gnat.com>
11030 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
11031 validity (process must have read access). Set to 0 in all other cases.
11032 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
11033 violation on Win32.
11034 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
11035 segmentation violation.
11037 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
11039 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
11040 whose type is a constructed subtype of an aliased object with an
11041 unconstrained nominal subtype, convert the actual to the constructed
11042 subtype before taking its address.
11044 2004-10-26 Vincent Celier <celier@gnat.com>
11046 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
11047 (Is_Path_Name_Case_Sensitive): New function
11049 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
11050 (Base_Name, Simple_Name, Current_Directory, Compose,
11051 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
11054 2004-10-26 Cyrille Comar <comar@act-europe.fr>
11055 Vasiliy Fofanov <fofanov@act-europe.fr>
11056 Vincent Celier <celier@gnat.com>
11058 * gnat_ugn.texi: Generalize "finding memory problems" section into a
11059 "memory management issues" section and document some of the useful
11060 memory pools provided as part of the GNAT library.
11061 Remove "virtual" from declaration of A::method2 in
11062 the simple example of Ada/C++ mixed system.
11063 Library Projects may be virtually extended: their virtual extensions
11064 are not Library Projects.
11065 Added section on extending project hierarchies.
11067 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
11069 * adaint.c (__gnat_get_libraries_from_registry): Cast value
11071 (__gnat_portable_spawn): Remove const.
11073 * mingw32.h (MAXPATHLEN): Check for previous definition.
11075 2004-10-17 Matthias Klose <doko@debian.org>
11077 * gnatvsn.ads: Set gnat library version to 4.0.
11079 2004-10-05 Vincent Celier <celier@gnat.com>
11081 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
11083 2004-10-04 Laurent GUERBY <laurent@guerby.net>
11086 * Makefile.in: Define and use RANLIB_FLAGS.
11088 2004-10-04 Pascal Obry <obry@gnat.com>
11090 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
11091 other x86 platforms).
11093 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
11095 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
11096 in general and triggers stack alignment adjustment for thread entry
11097 points on targets where this is necessary.
11099 2004-10-04 Bernard Banner <banner@gnat.com>
11102 * Makefile.in: Add section for powerpc linux
11103 Add variant i-vxwork-x86.ads
11105 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
11107 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
11109 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
11110 table registration calls when need be. Ensures no reference to the crt
11111 ctors symbol are issued in the SJLJ case, which avoids possible
11112 undefined symbol errors in the case of modules to be statically linked
11115 2004-10-04 Javier Miranda <miranda@gnat.com>
11117 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
11118 in-line the code corresponding to subprogram Analyze_Actuals. In
11119 addition, analyze the actuals only in case of subprogram call.
11121 2004-10-04 Ed Falis <falis@gnat.com>
11123 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
11125 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
11127 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
11128 in the documentation.
11130 2004-10-04 Robert Dewar <dewar@gnat.com>
11132 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
11134 (Analyze_Block_Statement): Add circuitry to detect following dead code
11135 (Check_Unreachable_Code): Handle case of block exit
11137 2004-10-04 Robert Dewar <dewar@gnat.com>
11139 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
11140 (XMatchD): Avoid warning for Logic_Error call
11142 2004-10-04 Robert Dewar <dewar@gnat.com>
11144 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
11145 consider expressions buried within a procedure actual to be an actual.
11146 This caused some blowups with uses of packed slices within a procedure
11149 2004-10-04 Robert Dewar <dewar@gnat.com>
11151 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
11152 longer need to be initialized to zero.
11153 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
11154 initialized to zero.
11156 * checks.adb (Expr_Known_Valid): Packed arrays are now always
11157 considered valid, even if the representation is modular. That's correct
11158 now that we no longer initialize packed modular arrays to zero.
11160 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
11161 suffixes. These are now documented as the only cases in which the
11162 debugger ignores outer records.
11163 Previously, the spec allowed arbitrary suffixes for this purpose.
11164 Change name of LJM to JM for packed array pad records
11165 Create separate section on packed array handling, and add a whole new
11166 set of comments to this section describing the situation with packed
11167 modular types and justification requirements depending on endianness.
11169 2004-10-04 Robert Dewar <dewar@gnat.com>
11171 * a-except.adb: Add a comment for last change
11173 * einfo.ads: Minor spelling correction in comment
11175 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
11177 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
11180 * sem_util.ads: Minor comment update
11182 2004-10-04 Ed Schonberg <schonberg@gnat.com>
11184 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
11185 Inline_Always when in Configurable_Run_Time mode.
11187 * sem_prag.adb (Process_Convention): If entity is an inherited
11188 subprogram, apply convention to parent subprogram if in same scope.
11189 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
11190 when in Configurable_Run_Time mode.
11192 2004-10-04 Ed Schonberg <schonberg@gnat.com>
11194 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
11195 class_wide type after component list has been inherited.
11197 2004-10-04 Ed Schonberg <schonberg@gnat.com>
11199 * sem_ch12.adb (Check_Generic_Actuals): New predicate
11200 Denotes_Previous_Actual, to handle properly the case of a private
11201 actual that is also the component type of a subsequent array actual.
11202 The visibility status of the first actual is not affected when the
11203 second is installed.
11204 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
11205 make fully recursive the treatment of formals of packages declared
11207 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
11208 the above on exit from an instantiation.
11209 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
11210 current instantiation which is now complete.
11211 (Analyze_Package_Instantiation): No instantiated body is needed if the
11212 main unit is generic. Efficient, and avoid anomalies when a instance
11213 appears in a package accessed through rtsfind.
11215 2004-10-04 Ed Schonberg <schonberg@gnat.com>
11217 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
11218 do not generate a declaration for a temporary if the call is part of a
11219 library-level instantiation.
11221 2004-10-04 Ed Schonberg <schonberg@gnat.com>
11223 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
11224 searching for a limited component to flag.
11226 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
11227 expansion of Input, to account for the fact that the implicit call
11228 generated by the attribute reference must freeze the user-defined
11229 stream subprogram. This is only relevant to 'Input, because it can
11230 appear in an object declaration, prior to the body of the subprogram.
11232 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
11233 expansion can proceed and further errors uncovered.
11234 (Minor clean up): Fix cases of using | instead of \ for continuation
11237 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11239 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
11241 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
11242 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
11243 Use gcc_assert and gcc_unreachable.
11245 * decl.c (gnat_to_gnu_entity, case object): Check and process a
11246 specified alignment before validating size.
11247 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
11248 stripped-down declaration for the type of the inner field when making
11251 * utils.c (finish_record_type): Do not compute the size in units
11252 incrementally. Instead compute it once for the rep clause case.
11253 Use gcc_assert and gcc_unreachable.
11255 2004-10-04 Vincent Celier <celier@gnat.com>
11257 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
11259 (Is_Valid_Path_Name): Take '/' as a directory separator.
11261 2004-10-04 Vincent Celier <celier@gnat.com>
11263 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
11264 (Extended_Project) only if Extended_Project is defined, to avoid
11266 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
11268 (Parse_Single_Project): Ditto.
11270 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
11271 Add_To_Project_Path for virtual projects.
11273 2004-10-04 Vincent Celier <celier@gnat.com>
11275 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
11276 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
11277 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
11278 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
11279 parameter Options_2.
11281 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
11282 Build_Dynamic_Library with an empty Options_2.
11284 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
11287 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
11288 directory separator, if any.
11289 (Gprmake): Do not allow mains on the command line for library projects.
11290 Do not attempt to link when the project is a library project.
11291 (Library_Opts): New table to store Library_Options.
11292 (Build_Library): If Library_Options is specified, pass these options
11293 when building a shared library.
11295 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
11297 * s-tposen.adb (Service_Entry): The object must be always unlocked at
11298 the end of this procedure now that the unlock operation was inserted
11301 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
11303 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
11304 corresponding to the Preallocated_Stacks flags in System.
11305 (Get_Target_Parameters): Including the processing for
11306 Preallocated_Stacks.
11308 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
11309 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
11310 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
11311 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
11312 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
11313 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
11314 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
11315 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
11316 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
11317 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
11318 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
11319 used to signal whether the compiler creates the required stacks and
11320 descriptors for the different tasks (when True) or it is done by the
11321 underlying operating system at run time (when False).
11322 It is initially set to False in all targets.
11324 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
11325 if it is supported by the target.
11326 (Make_Task_Create_Call): Pass the stack address if it has been
11327 previously created. Otherwise pass a Null_Address.
11329 * snames.adb: Add _stack.
11331 * snames.ads: Add Name_uStack. Required to allow the expander to
11332 statically allocated task stacks.
11334 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
11335 Stack_Address argument.
11336 Check that its value is equal to Null_Address because this target does
11337 not support the static stack allocation.
11339 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
11341 * usage.adb: Change "pragma inline" to "pragma Inline" in information
11344 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
11346 * exp_dist.adb: Split declaration of asynchronous flag out of
11347 Add_RACW_Read_Attribute.
11348 Minor reformatting for better alignment with PolyORB version.
11349 Store the entity for the asynchronous flag of an RACW, rather than the
11350 expression, in the asynchronous flags table. This will allow this flag
11351 to be used in other subprograms beside Add_RACW_Read_Attribute.
11353 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
11355 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
11356 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
11357 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
11358 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
11359 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
11360 sockets constant MSG_NOSIGNAL (Linux-specific).
11361 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
11362 all Send operations.
11363 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
11364 from trigerring SIGPIPE.
11365 Rename components to avoid clash with Ada 2005 possible reserved
11367 (Check_Selector): When the select system call returns with an error
11368 condition, propagate Socket_Error to the caller.
11370 2004-10-01 Jan Hubicka <jh@suse.cz>
11372 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
11374 2004-09-23 Robert Dewar <dewar@gnat.com>
11377 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
11378 instead do this at freeze time (we won't do it if there is an address
11380 Change "pragma inline" to "pragma Inline" in information and error
11382 Minor reformatting.
11384 * freeze.adb (Check_Address_Clause): Remove previous change, not the
11385 right way of doing things after all.
11386 (Freeze_Entity): For object, set Is_Public for imported entities
11387 unless there is an address clause present.
11389 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
11391 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
11392 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
11393 ensures proper handling of types with rep clauses, which might have
11394 their TYPE_SIZE set already.
11396 2004-09-21 Robert Dewar <dewar@gnat.com>
11398 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
11399 packed array types in both little- and big-endian cases. This change
11400 ensures that we no longer count on the unused bits being initialized
11401 for such types (and in particular ensures that equality testing will
11402 only read the relevant bits).
11403 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
11404 These changes mean that we no longer need to initialize small packed
11406 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
11407 optimization to an LJM field as to its parent field.
11409 * ada-tree.h, trans.c, utils.c, utils2.c:
11410 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
11412 2004-09-20 Jan Hubicka <jh@suse.cz>
11414 * utils.c (gnat_finalize): Remove.
11415 (end_subprog_body): Directly call cgraph_finalize_function;
11416 do not lower the nested functions.
11418 2004-09-20 Robert Dewar <dewar@gnat.com>
11421 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
11422 if an address clause is present, since that means that the Import
11425 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
11427 * 5tsystem.ads: Removed, no longer used.
11429 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
11430 Zack Weinberg <zack@codesourcery.com>
11432 * ada-tree.def: Use tree_code_class enumeration constants
11433 instead of code letters.
11434 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
11435 Update for new tree-class enumeration constants.
11437 2004-09-17 Vincent Celier <celier@gnat.com>
11439 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
11440 capabilities of the general project manager.
11442 2004-09-09 Vincent Celier <celier@gnat.com>
11444 * a-direct.ads: Add pragma Ada_05
11445 (Directory_Entry_Type): Give default value to component Kind to avoid
11446 not initialized warnings.
11448 * a-direct.adb (Current_Directory): Remove directory separator at the
11450 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
11451 an existing directory.
11452 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
11453 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
11454 Convert the result to File_Size.
11456 * prj.ads: (Project_Error): New exception
11458 * prj-attr.adb: Except in procedure Initialize, Fail comes from
11459 Prj.Com, not from Osint.
11460 (Attrs, Package_Attributes): Tables moved to private part of spec
11461 (Add_Attribute, Add_Unknown_Package): Moved to new child package
11463 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
11464 Prj.Project_Error after call to Fail.
11465 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
11466 Fail. Check that package name is not already in use.
11468 * prj-attr.ads: Comment updates to indicate that all subprograms may be
11469 used by tools, not only by the project manager, and to indicate that
11470 exception Prj.Prj_Error may be raised in case of problem.
11471 (Add_Unknown_Package, Add_Attribute): Moved to new child package
11473 (Attrs, Package_Attributes): Table instantiations moved from the body to
11474 the private part to be accessible from Prj.Attr.PM body.
11476 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
11477 from new package Prj.Attr.PM.
11478 (Parse_Attribute_Declaration): Call Add_Attribute from new package
11481 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
11483 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
11484 instead of Elaboration_Checks).
11486 * a-calend.adb: Minor reformatting
11488 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11490 * gigi.h (maybe_pad_type): New declaration.
11491 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
11493 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
11495 * cuintp.c: Convert to use buildN.
11497 * decl.c (maybe_pad_type): No longer static.
11498 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
11500 Convert to use buildN.
11502 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
11503 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
11504 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
11506 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
11507 (gnat_gimplify_expr, case ADDR_EXPR): New case.
11508 Convert to use buildN.
11510 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
11511 TREE_READONLY for const.
11512 Convert to use buildN.
11514 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
11515 (create_var_decl): Refine when TREE_STATIC is set.
11516 Convert to use buildN.
11518 2004-09-09 Gary Dismukes <dismukes@gnat.com>
11520 * gnat_ugn.texi: Delete text relating to checking of ali and object
11523 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
11526 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
11528 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
11529 pragmas recognized by GNAT.
11531 * gnat_rm.texi: Document pragma Detect_Blocking.
11533 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
11534 raise Program_Error if called from a protected operation.
11536 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
11537 the protected action nesting level.
11538 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
11539 protected action nesting level.
11540 (Unlock): When pragma Detect_Blocking is active decrease the protected
11541 action nesting level.
11543 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
11544 Protected_Action_Nesting.
11546 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
11547 Common_ATCB record. It contains the dynamic level of protected action
11548 nesting for each task. It is needed for checking whether potentially
11549 blocking operations are called from protected operations.
11550 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
11551 Detect_Blocking is active or not in the partition.
11553 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
11554 raise Program_Error if called from a protected operation.
11555 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
11556 Program_Error if called from a protected operation.
11557 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
11558 Program_Error if called from a protected operation.
11560 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
11561 raise Program_Error if called from a protected operation.
11563 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
11564 raise Program_Error if called from a protected operation, and increase
11565 the protected action nesting level.
11566 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
11567 Program_Error if called from a protected operation, and increase the
11568 protected action nesting level.
11569 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
11570 protected action nesting level.
11572 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
11573 raise Program_Error if called from a protected operation, and increase
11574 the protected action nesting level.
11575 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
11576 Program_Error if called from a protected operation, and increase the
11577 protected action nesting level.
11578 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
11579 raise Program_Error if called from a protected operation.
11580 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
11581 active, raise Program_Error if called from a protected operation.
11582 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
11583 protected action nesting level.
11585 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
11586 insertion of the statement raising Program_Error. The run time
11587 contains the required machinery for handling that.
11589 * sem_util.ads: Change comment associated to procedure
11590 Check_Potentially_Blocking_Operation.
11591 This procedure does not insert a call for raising the exception because
11592 that is currently done by the run time.
11594 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
11596 * init.c: Add the global variable __gl_detect_blocking that indicates
11597 whether pragma Detect_Blocking is active (1) or not (0). Needed for
11598 making the pragma available at run time.
11599 (__gnat_set_globals): Pass and update the detect_blocking parameter.
11601 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
11602 pragma Detect_Blocking is active.
11604 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
11606 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
11607 DB is found in the ali file. Any unit compiled with pragma
11608 Detect_Blocking active forces its effect in the whole partition.
11610 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
11611 Detect_Blocking is active and delay is called from a protected
11614 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
11615 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
11616 Detect_Blocking is active (0 otherwise).
11617 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
11618 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
11621 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
11623 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
11624 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
11627 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
11628 (Register_Receiving_Stub): Add Subp_Info formal parameter.
11629 Update API in placeholder implemetation of s-parint to reflect changes
11630 in distribution runtime library.
11632 * sem_ch3.adb (Expand_Derived_Record): Rename to
11633 Expand_Record_Extension.
11635 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
11636 primitive operations of potentially distributed object types that have
11637 non-controlling anonymous access formals.
11639 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
11641 New implementation of expansion for remote access-to-subprogram types,
11642 based on the RACW infrastructure.
11643 This version of sem_dist is compatible with PolyORB/DSA as well as
11646 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
11647 Asynchrronous that applies to a remote access-to-subprogram type, mark
11648 the underlying RACW type as asynchronous.
11650 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
11651 __gnat_using_gnu_linker to 1.
11653 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
11654 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
11655 GNAT.Perfect_Hash_Generators, and remove the empty
11656 GNAT.Perfect_Hash package.
11658 * atree.adb: Minor reformatting
11660 * exp_ch3.adb (Expand_Derived_Record): Rename to
11661 Expand_Record_Extension.
11662 (Build_Record_Init_Proc.Build_Assignment): The default expression in
11663 a component declaration must remain attached at that point in the
11664 tree so New_Copy_Tree copies it if the enclosing record type is derived.
11665 It is therefore necessary to take a copy of the expression when building
11666 the corresponding assignment statement in the init proc.
11667 As a side effect, in the case of a derived record type, we now see the
11668 original expression, without any rewriting that could have occurred
11669 during expansion of the ancestor type's init proc, and we do not need
11670 to go back to Original_Node.
11672 * exp_ch3.ads (Expand_Derived_Record): Rename to
11673 Expand_Record_Extension.
11675 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
11676 Returns the RACW type used to implement a remote access-to-subprogram
11678 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
11679 New subprograms. Used to create a proxy tagged object for a remote
11680 subprogram. The proxy object is used as the designated object
11681 for RAS values on the same partition (unless All_Calls_Remote applies).
11682 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
11683 System.Partition_Interface.Get_Unique_Remote_Pointer.
11684 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
11685 Renamed from Add_RAS_*_Attribute.
11686 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
11688 New implementation of expansion for remote access-to-subprogram types,
11689 based on the RACW infrastructure.
11691 * exp_dist.ads (Copy_Specification): Update comment to note that this
11692 function can copy the specification from either a subprogram
11693 specification or an access-to-subprogram type definition.
11695 2004-09-09 Ed Schonberg <schonberg@gnat.com>
11697 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
11698 in an instance, between an explicit subprogram an one inherited from a
11699 type derived from an actual.
11701 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
11702 add a polling call if the subprogram is to be inlined by the back-end,
11703 to avoid repeated calls with multiple inlinings.
11705 * checks.adb (Apply_Alignment_Check): If the expression in the address
11706 clause is a call whose name is not a static entity (e.g. a dispatching
11707 call), treat as dynamic.
11709 2004-09-09 Robert Dewar <dewar@gnat.com>
11711 * g-trasym.ads: Minor reformatting
11713 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
11714 packed arrays, since unused bits are expected to be zero for a
11717 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
11719 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
11722 2004-09-09 Pascal Obry <obry@gnat.com>
11724 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
11725 enable map file generation. Add the right option to generate the map
11726 file if Map_File is set to True.
11728 * gnatdll.adb (Gen_Map_File): New variable.
11729 (Syntax): Add info about new -m (Map_File) option.
11730 (Parse_Command_Line): Add support for -m option.
11731 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
11732 Minor reformatting.
11734 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
11736 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
11737 new gnatdist implementation.
11738 Define a subpackage isolating the output routines specific to this
11741 2004-09-09 Joel Brobecker <brobecker@gnat.com>
11743 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
11745 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
11747 2004-09-09 Cyrille Comar <comar@act-europe.fr>
11749 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
11752 * opt.ads: Add Ada_Version_Runtime constant used to decide which
11753 version of the language is used to compile the run time.
11755 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
11757 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
11758 of variable length temporaries for function return now that the
11759 back-end and gigi support it.
11761 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11763 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
11765 * trans.c (struct stmt_group): Delete field GLOBAL.
11766 (gnat_init_stmt_group): Do not initialize it.
11767 (call_to_gnu): Use save_expr, not protect_multiple_eval.
11768 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
11769 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
11770 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
11771 (start_stmt_group): Likewise.
11772 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
11774 * utils2.c (ggc.h): Include.
11775 (build_call_raise): Call build_int_cst, not build_int_2.
11777 * utils.c (gnat_init_decl_processing): Fix arg to
11778 build_common_tree_nodes.
11779 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
11780 (gnat_define_builtin): Set built_in_decls.
11781 (init_gigi_decls): Call build_int_cst, not build_int_2.
11783 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
11784 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
11785 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
11786 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
11787 SET_TYPE_MODULE): Use them.
11788 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
11789 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
11790 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
11791 SET_TYPE_ADA_SIZE): Likewise.
11792 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
11793 (DECL_CONST_CORRESPONDING_VAR,
11794 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
11795 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
11796 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
11797 (TYPE_RM_SIZE_NUM): New macro.
11798 (TYPE_RM_SIZE): Modified to use above.
11800 * cuintp.c: (build_cst_from_int): New function.
11801 (UI_To_gnu): Use it.
11803 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
11804 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
11805 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
11806 MIN_EXPR for the size, copy it into new.
11808 2004-09-01 Robert Dewar <dewar@gnat.com>
11810 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
11811 packed indexed component where array is an IN OUT formal. This
11812 generated garbage code previously.
11814 * gnat_ugn.texi: Document -fverbose-asm
11816 * gnat-style.texi: Minor updates (note that boolean constants and
11817 variables are joined with AND/OR rather than short circuit forms).
11819 2004-09-01 Ed Schonberg <schonberg@gnat.com>
11821 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
11822 it is an upward conversion of an untagged type with no representation
11825 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
11827 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
11828 System.Partition_Interface.
11830 * checks.adb (Apply_Access_Checks): Do not generate checks when
11831 expander is not active (but check for unset reference to prefix of
11834 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
11835 pragma Debug as an if statement with a constant condition, for
11836 consistent treatment of entity references contained within the
11837 enclosed procedure call.
11839 2004-09-01 Vincent Celier <celier@gnat.com>
11841 * bindgen.adb: (Set_EA_Last): New procedure
11842 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
11844 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
11845 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
11846 linked without errors.
11847 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
11849 (Gen_Exception_Table_C): Correct same bugs
11851 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
11853 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
11854 on Windows, make sure that the drive letter is in upper case.
11856 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
11857 Windows, when the drive letter is added and Case_Sensitive is True, the
11858 drive letter is forced to upper case.
11860 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
11861 to Options_2 for the call to MLib.Utl.Gcc.
11863 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
11864 directory separator when defining BASE_DIR.
11866 2004-09-01 Pascal Obry <obry@gnat.com>
11868 * gprcmd.adb (Extend): Do not output trailing directory separator. This
11869 is not needed and it confuses Windows GNU/make which does not report
11870 directory terminated by a slash as a directory.
11871 (gprcmd): Idem for "pwd" internal command.
11873 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
11874 target names rewrite to fix regressions with recent version of
11875 GNU/make. Starting with GNU/make 3.80 the pipe character was not
11876 handled properly anymore.
11878 2004-09-01 Andreas Schwab <schwab@suse.de>
11880 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
11881 * raise.c [!IN_RTS]: Undef abort.
11883 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
11885 * utils2.c (build_allocator): Use ssize_int.
11887 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
11889 2004-08-27 Andreas Schwab <schwab@suse.de>
11891 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
11893 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
11894 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11896 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
11898 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
11900 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
11901 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
11902 * utils.c (init_gigi_decls): Likewise.
11903 * utils2.c (build_call_raise, build_allocator): Likewise.
11905 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
11907 * utils.c (gnat_init_decl_processing): Adjust
11908 build_common_tree_nodes call.
11910 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
11912 * utils2.c (build_allocator): Use build_int_cst for negative
11915 2004-08-18 Richard Henderson <rth@redhat.com>
11917 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
11919 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
11921 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
11923 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
11924 (gnat_to_gnu): Likewise.
11926 2004-08-16 Pascal Obry <obry@gnat.com>
11928 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
11929 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
11930 option and not mdll anymore. Update comment.
11932 2004-08-16 Pascal Obry <obry@gnat.com>
11934 * bld.adb (Put_Include_Project): Properly handle directory separators
11937 2004-08-16 Ed Schonberg <schonberg@gnat.com>
11939 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
11940 decreasing the number of allocated junk nodes while searching for the
11941 appropriate subprogram.
11943 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
11945 * cuintp.c (UI_To_gnu): Use build_int_cst..
11946 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
11947 * utils.c (init_gigi_decls): Likewise.
11948 * utils2.c (build_call_raise): Likewise.
11950 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
11952 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
11953 for a global aliased object with a variable size and an unconstrained
11954 nominal subtype, pretend there is no initializer if the one we have is
11955 incomplete, and avoid referencing an inexistant component in there. The
11956 part we have will be rebuilt anyway and the reference may confuse
11957 further operations.
11959 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
11961 * einfo.ads: Minor reformatting
11963 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
11964 restrictions in the ALI if we only want to warn about violations.
11966 2004-08-13 Vincent Celier <celier@gnat.com>
11968 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
11969 when creating a new Unit_Record in table Units.
11971 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
11972 that are violated, if any.
11974 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
11975 add directory separator if path already ends with a directory separator.
11977 2004-08-13 Ed Schonberg <schonberg@gnat.com>
11979 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
11980 unit, this is an attempt to inline a construct that is not available in
11981 the current restricted mode, so abort rather than trying to continue.
11983 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
11984 discriminants that rename those of the parent, recover names of
11985 original discriminants for the constraint on the full view of the
11987 (Complete_Private_Subtype): Do not create a subtype declaration if the
11988 subtype is an itype.
11990 * gnat_rm.texi: Added section on implementation of discriminated
11991 records with default values for discriminants.
11993 2004-08-13 Ed Schonberg <schonberg@gnat.com>
11996 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
11997 the second operand is overloaded.
11999 2004-08-10 Richard Henderson <rth@redhat.com>
12001 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
12002 add __builtin_alloca.
12004 2004-08-10 Richard Henderson <rth@redhat.com>
12006 * config-lang.in (boot_language): Yes.
12008 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
12010 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
12011 from complaining on potential uninitialized reference.
12012 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
12013 new specification and test explicitly for non-zero return value.
12015 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
12016 returning C.int, to avoid using a derived boolean type.
12018 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
12019 Duplicate_Subexpr_No_Checks in preference to direct use of
12020 Remove_Side_Effects and New_Copy_Tree.
12021 Clear Comes_From_Source on prefix of 'Size attribute reference.
12023 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
12024 g-socthi-vxworks.adb: Change calls to
12025 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
12026 and test explicitly for non-zero return value.
12028 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
12029 (Is_Socket_In_Set): Declare imported function as returning C.int, to
12030 avoid using a derived boolean type.
12032 2004-08-09 Albert Lee <lee@gnat.com>
12034 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
12036 2004-08-09 Pascal Obry <obry@gnat.com>
12038 * gnat_ugn.texi: Document new way to build DLLs on Windows using
12039 GCC's -shared option.
12041 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
12042 Options_2 parameter (options put after object files).
12044 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
12046 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
12047 ignore overflows on low and high bounds of an index to also account for
12048 differences in signedness between sizetype and gnu_index_subtype.
12049 These are as legitimate as the ones caused by a lower TYPE_PRECISION
12052 2004-08-09 Robert Dewar <dewar@gnat.com>
12054 * s-solita.ads, s-solita.adb: Minor reformatting
12056 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
12057 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
12058 obsolescent section
12059 Add note that No_Implicit_Conditionals does not suppress
12060 run time constraint checks.
12062 * vms_conv.ads: Minor reformatting
12064 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
12065 and necessary for following change).
12066 (Mark): Return new format Mark_Id containing sec stack address
12067 (Release): Use sec stack address from Mark_Id avoiding Self call
12069 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
12070 pointer (cleanup and necessary for following change).
12071 Define Mark_Id as record containing address of secondary stack, that way
12072 Release does not need to find the stack again, decreasing the number of
12073 calls to Self and improving efficiency.
12075 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
12077 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
12078 case variable into the individual case branches when possible.
12080 * sem_ch11.adb: Minor reformatting
12082 * prj.ads: Correct spelling of suffixs
12084 * prj-nmsc.adb: Minor reformatting
12085 Correct spelling suffixs throughout (also in identifiers)
12087 * freeze.adb: Minor spelling correction
12089 * exp_ch2.adb: Cleanups to handling of Current_Value
12090 (no functional effect).
12092 * bld.adb: Correct spelling of suffixs
12094 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
12096 2004-08-09 Ed Schonberg <schonberg@gnat.com>
12099 * sem_ch7.adb (Install_Private_Declarations): In the body of the
12100 package or of a child, private entities are both immediately_visible
12103 2004-08-09 Ed Schonberg <schonberg@gnat.com>
12105 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
12106 there are no range checks on the value of the literal.
12108 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
12109 wrapped is the triggering alternative of an asynchronous select, action
12110 statements mustbe inserted before the select itself.
12112 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
12113 case where the prefix is a protected function call.
12114 (Resolve_Attribute, case 'Access): The attribute reference on a
12115 subprogram is legal in a generic body if the subprogram is declared
12118 2004-08-09 Vincent Celier <celier@gnat.com>
12120 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
12121 languages, otherwise building the library may fail with unresolved
12123 (Compile_Sources): Do not build libraries if -c switch is used
12125 * gnatlink.adb (Process_Args): New switches -M and -Mmap
12126 (Write_Usage): If map file creation is supported, output new switches
12128 (Gnatlink): When -M is specified, add the necessary switch(es) to the
12129 gcc call, when supported.
12131 * Makefile.in: Added indepsw.o to the object list for gnatlink
12132 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
12134 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
12135 indepsw.adb, indepsw.ads: New files.
12137 2004-08-09 Bernard Banner <banner@gnat.com>
12139 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
12141 * Makefile.in: add section for vxworks x86
12143 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
12145 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
12146 per-object constrained components where the discriminant is of an
12148 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
12149 the parent initialization procedure for derived Unchecked_Unions.
12150 Instead, derived Unchecked_Unions build their own initialization
12152 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
12153 Check the body of the subprogram for details.
12154 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
12155 functions for derived Unchecked_Union types by introducing a condition.
12156 Allow the creation of TSS equality functions for Unchecked_Unions.
12157 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
12158 Add formal parameter Discr to function signature. Discr is used to
12159 control the generated case statement for Unchecked_Union types.
12160 (Make_Eq_If): Rename formal parameter Node to E in function signature.
12162 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
12164 Check the body of the subprogram for details.
12165 (Expand_Composite_Equality): Augment composite type equality to include
12166 correct handling of Unchecked_Union components.
12167 (Expand_N_In): Add condition to detect illegal membership tests when the
12168 subtype mark is a constrained Unchecked_Union and the expression lacks
12169 inferable discriminants, and build a Raise_Program_Error node.
12170 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
12171 to detect types that contain components of unconstrained Unchecked_Union
12172 subtype. Add condition to detect equality between types that have an
12173 unconstrained Unchecked_Union component, and build a Raise_Program_Error
12174 node. Add condition to detect equality between Unchecked_Union types
12175 that lack inferable discriminants, and build a Raise_Program_Error node.
12176 Otherwise build a TSS equality function call.
12177 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
12178 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
12179 with the operand lacking inferable discriminants, and build a Raise_
12180 Program_Error node.
12181 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
12182 composite equality.
12183 (Has_Inferable_Discriminants): Implement new predicate for objects and
12184 expressions of Unchecked_Union type. Check the body of subprogram for
12186 (Has_Unconstrained_UU_Components): Add function
12187 Component_Is_Unconstrained_UU. It is used to detect whether a single
12188 component is of an unconstrained Unchecked_Union subtype. Add function
12189 Variant_Is_Unconstrained_UU. It is used to detect whether a single
12190 component inside a variant is of an unconstrained Unchecked_Union type.
12192 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
12193 inferred discriminant values. Add condition to generate a case
12194 statement with an inferred discriminant as the switch.
12195 (Make_Component_List_Assign): Introduce a Boolean flag that determines
12196 the behaviour of the subprogram in the presence of an Unchecked_Union.
12197 Add condition to trigger the usage of the inferred discriminant value
12198 as the generated case statement switch.
12199 (Make_Field_Assign): Introduce a Boolean flag that determines the
12200 behaviour of the subprogram in the presence of an Unchecked_Union. Add
12201 condition to trigger the usage of the inferred discriminant value as
12202 the right-hand side of the generated assignment.
12204 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
12205 parameter generation when dealing with Unchecked_Unions.
12207 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
12208 checks for Unchecked_Unions.
12210 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
12212 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
12213 Raise_Program_Error nodes for the execution of Read and Write
12214 attributes of Unchecked_Union types and the execution of Input and
12215 Output attributes of Unchecked_Union types that lack default
12216 discriminant values.
12218 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
12219 Unchecked_Union. Add procedure Check_Component. It is used to inspect
12220 per-object constrained components of Unchecked_Unions for being
12221 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
12222 check individual components withing a variant.
12224 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
12225 comparison of Unchecked_Unions.
12226 (Resolve_Equality_OP): Remove guard that prevents equality between
12229 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
12230 of component subtypes for Unchecked_Union components.
12231 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
12232 since it is the actual subtype.
12234 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
12235 pass of Unchecked_Union subtypes as generic actuals to formal types
12236 that lack known_discriminant_parts or that are derived Unchecked_Union
12237 types, and do nothing. In any other case, produce an error message.
12239 * sem_ch3.adb (Analyze_Component_Declaration): Add function
12240 Contains_POC. It determines whether a constraint uses the discriminant
12241 of an enclosing record type.
12242 Add condition to detect per-object constrained component and set the
12244 (Derived_Type_Declaration): Remove guard that prevents derivation from
12245 Unchecked_Union types.
12246 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
12249 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
12250 references to Unchecked_Union discriminants.
12252 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
12253 formal generation when dealing with Unchecked_Unions.
12254 (Set_Actual_Subtypes): Add condition to prevent generation of actual
12255 subtypes for Unchecked_Unions.
12257 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
12258 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
12259 completions of discriminated partial views by Unchecked_Unions and
12260 produce an error message.
12262 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12264 * trans.c (struct stmt_group): New field, GLOBAL.
12265 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
12266 (struct elab_info): New struct.
12267 (elab_info_list, gnu_elab_proc_stack): New variables.
12268 (Compilation_Unit_to_gnu): New procedure.
12269 (gigi): Call it and also handle elaboration procs we've saved.
12270 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
12271 global field from parent.
12272 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
12273 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
12274 (start_stmt_group): Initialize global field from parent.
12275 (add_decl_expr): Set to global for current statement group.
12276 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
12279 * utils.c (global_bindings_p): True when no current_function_decl; no
12280 longer check current_binding_level.
12282 2004-08-09 Ben Brosgol <brosgol@gnat.com>
12284 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
12287 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
12289 2004-08-06 Andreas Schwab <schwab@suse.de>
12291 * utils.c (gnat_define_builtin): Remove second parameter of
12293 (begin_subprog_body): Likewise.
12295 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
12297 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
12298 optimization, not supported by the tree-ssa back-end.
12300 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
12302 * s-mastop-irix.adb: Update comments.
12304 * a-except.adb (Exception_Information): Raise Constraint_Error if
12305 exception Id is Null_Id.
12306 This is required behavior, which is more reliably and clearly checked
12307 at the top level interface level.
12309 2004-07-26 Javier Miranda <miranda@gnat.com>
12311 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
12312 call if a component has no default_expression and the box is used.
12314 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
12315 default_expression and you use box, it behaves as if you had declared a
12316 stand-alone object.
12317 (Resolve_Record_Aggregate): If a component has no default_expression and
12318 you use box, it behaves as if you had declared a stand-alone object.
12320 * sem_ch10.adb (Install_Siblings): Do not make visible the private
12321 entities of private-with siblings.
12323 2004-07-26 Ed Schonberg <schonberg@gnat.com>
12325 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
12326 for a component of an itype, set the parent pointer for analysis,
12327 there is no list in which to insert it.
12329 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
12330 bona-fide renamings, not for inherited operations.
12332 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
12333 actual for a formal that is an access parameter, create local
12334 finalization list even if the expression is not an aggregate.
12336 2004-07-26 Ed Schonberg <schonberg@gnat.com>
12339 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
12340 Diagnose properly illegal subprogram renamings that are library units.
12342 2004-07-26 Ed Schonberg <schonberg@gnat.com>
12345 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
12346 conversion rewritten as an unchecked conversion, check that original
12347 expression is a variable.
12349 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
12350 unchecked_conversion, create new node rather than rewriting in place,
12351 to preserve original construct.
12353 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12355 * gigi.h (gnat_expand_body): Deleted.
12357 * Make-lang.in: (trans.o): Depends on function.h.
12359 * misc.c: (gnat_expand_body): Moved to here.
12361 * trans.c (gnat_expand_body_1): Deleted.
12362 (gnat_expand_body): Moved from here.
12363 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
12364 (add_stmt): Check for marked visited with global_bindings_p.
12365 (gnat_gimplify_expr, case COMPONENT_REF): New case.
12366 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
12368 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
12369 VIEW_CONVERT_EXPR if not operation type.
12371 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
12374 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
12375 changes: reformatting of negation operators, removing unneeded
12376 inequality comparison with zero, converting equality comparisons with
12377 zero to negations, changing int/0/1 to bool/false/true, replace calls
12378 to gigi_abort with abort, and various other similar changes.
12380 2004-07-26 Vincent Celier <celier@gnat.com>
12382 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
12385 * make.adb (Gnatmake): Fail when a library is not present and there is
12386 no object directory.
12388 * mlib-prj.adb (Check_Library): No need to check if the library needs
12389 to be rebuilt if there is no object directory, hence no object files
12390 to build the library.
12392 * opt.ads (Setup_Projects): New Boolean flag.
12394 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
12396 Create directory when Kind /= "" and in "gnat setup". Report error if
12397 directory cannot be created.
12398 (Ada_Check): Create library interface copy dir if it does not exist
12399 and we are in "gnat setup".
12400 (Find_Sources): No error if in "gnat setup" and no Ada sources were
12402 (Language_Independent_Check): Create object directory, exec directory
12403 and/or library directory if they do not exist and we are in
12406 * vms_conv.ads: (Command_Type): New command Setup.
12408 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
12410 * vms_data.ads: Add qualifiers/switches for new built-in command
12413 2004-07-25 Richard Henderson <rth@redhat.com>
12415 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
12416 DECL_IGNORED_P on RESULT_DECL.
12418 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
12420 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
12421 allocation and potentially overflowing update with
12422 Tailored_Exception_Information. Use the sec-stack free procedural
12423 interface to output Exception_Information instead.
12425 * a-except.adb (To_Stderr): New subprogram for character, and string
12426 version moved from a-exextr to be visible from other separate units.
12427 (Tailored_Exception_Information): Remove the procedural version,
12428 previously used by the default Last_Chance_Handler and not any more.
12429 Adjust various comments.
12431 * a-exexda.adb: Generalize the exception information procedural
12432 interface, to minimize the use of secondary stack and the need for
12433 local buffers when the info is to be output to stderr:
12434 (Address_Image): Removed.
12435 (Append_Info_Character): New subprogram, checking for overflows and
12436 outputing to stderr if buffer to fill is of length 0.
12437 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
12438 (Append_Info_Address, Append_Info_Exception_Name,
12439 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
12440 Append_Info_Basic_Exception_Traceback,
12441 Append_Info_Exception_Information): New subprograms.
12442 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
12443 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
12444 Exception_Info_Maxlength, Exception_Name_Length,
12445 Exception_Message_Length): New subprograms.
12446 (Exception_Information): Use Append_Info_Exception_Information.
12447 (Tailored_Exception_Information): Use
12448 Append_Info_Basic_Exception_Information.
12449 Export services for the default Last_Chance_Handler.
12451 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
12452 other separate units.
12454 2004-07-20 Vincent Celier <celier@gnat.com>
12456 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
12458 2004-07-20 Ed Schonberg <schonberg@gnat.com>
12460 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
12461 emit itype references for the designated types of component types that
12462 are declared outside of the full record declaration, and that may
12463 denote a partial view of that record type.
12465 2004-07-20 Ed Schonberg <schonberg@gnat.com>
12468 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
12469 which is the designated type in an access component declaration, to the
12470 list of incomplete dependents of the parent type, to avoid elaboration
12471 issues with out-of-scope subtypes.
12472 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
12473 full view of the parent.
12475 2004-07-20 Ed Schonberg <schonberg@gnat.com>
12478 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
12479 entities that are hidden, such as references to generic actuals
12480 outside an instance.
12482 2004-07-20 Javier Miranda <miranda@gnat.com>
12484 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
12485 support to the new notation.
12486 (Analyze_Selected_Component): Add call to Try_Object_Operation.
12488 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
12490 * s-taprob.adb: Adding the elaboration code required for initializing
12491 the tasking soft links that are common to the full and the restricted
12494 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
12495 restricted run time has been moved to the package
12496 System.Soft_Links.Tasking.
12498 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
12499 restricted run time has been moved to the package
12500 System.Soft_Links.Tasking.
12502 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
12504 * s-solita.ads, s-solita.adb: New files.
12506 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12508 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
12509 Case_Statement_to_gnu): Split off from gnat_to_gnu.
12510 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
12511 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
12512 Exception_Handler_to_gnu_zcx): Likewise.
12514 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
12516 * gigi.h (builtin_function): Declare.
12518 2004-07-15 Robert Dewar <dewar@gnat.com>
12520 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
12523 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
12524 access values as an example of a warning.
12526 * gnat_rm.texi: Document new attribute Has_Access_Values
12528 * gnat-style.texi: Document that box comments belong on nested
12531 * sem_util.ads (Has_Access_Values): Improved documentation
12533 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
12535 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
12536 (Process_Interface_Name): Call to this new procedure
12537 (Set_Extended_Import_Export_External_Name): Call to this new procedure
12539 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
12541 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
12543 * einfo.ads: Minor comment typo fixed
12545 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
12547 * snames.adb: Add _atcb.
12549 * snames.ads: Add Name_uATCB.
12551 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
12552 (in the expanded code) when using the restricted run time.
12554 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
12555 a in parameter in order to allow ATCBs to be preallocated (in the
12558 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
12559 order to allow ATCBs to be preallocated. In case of error, the ATCB is
12560 deallocated in System.Tasking.Stages.
12562 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
12563 order to allow ATCBs to be preallocated.
12565 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
12566 here. It was previously done in Initialize_ATCB.
12568 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
12570 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
12571 Restricted run time.
12573 * exp_ch3.adb: When using the Restricted run time, pass the
12574 preallocated Ada_Task_Control_Block when creating a task.
12576 2004-07-15 Ed Schonberg <schonberg@gnat.com>
12578 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
12579 function call that is itself an actual in an enclosing call, diagnose
12580 problem here rather than assuming that resolution will catch it.
12582 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
12583 the local copy of a generic unit for a formal package, and the generic
12584 is a child unit, install private part of ancestors before compiling
12585 private part of spec.
12587 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
12588 use scope entities rather than tree structures, to handle properly
12589 parent units that are instances rewritten as bodies for inlining
12592 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
12593 Remove_Parents): Handle properly a parent unit that is an
12594 instantiation, when the unit has been rewritten as a body for inlining
12597 * par.adb (Goto_List): Global variable to collect goto statements in a
12598 given unit, for use in detecting natural loops.
12600 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
12601 use in detecting natural loops.
12603 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
12604 backwards goto's, and rewrite as a infinite loop, to improve locality
12607 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
12608 subcomponent that includes an indexed reference, to prevent the
12609 generation of copies that would miscompile the desired assignment
12611 (Build_Task_Image_Decls): Add a numeric suffix to
12612 generated name for string variable, to avoid spurious conflicts with
12613 the name of the type of a single protected object.
12615 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
12616 loop with an explicit exit statement, to avoid generating an
12617 out-of-range value with 'Succ leading to spurious constraint_errors
12618 when compiling with -gnatVo.
12620 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
12622 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
12623 might not be analyzed yet, even if its Etype is already set (case of an
12624 unchecked conversion built using Unchecked_Convert_To, for example).
12625 If the prefix has already been analyzed, this will be a nop anyway.
12627 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
12628 controller type, or an assignment of a record type with controlled
12629 components, copy only user data, and leave the finalization chain
12630 pointers untouched.
12632 2004-07-15 Vincent Celier <celier@gnat.com>
12634 * make.adb (Collect_Arguments): Improve error message when attempting
12635 to compile a source not part of any project, when -x is not used.
12637 * prj.ads: (Defined_Variable_Kind): New subtype
12639 * prj-attr.adb (Register_New_Package): Two new procedures to register
12640 a package with or without its attributes.
12641 (Register_New_Attribute): Mew procedure to register a new attribute in a
12643 New attribute oriented subprograms: Attribute_Node_Id_Of,
12644 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
12645 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
12647 New package oriented subprograms: Package_Node_Id_Of,
12648 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
12650 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
12652 (Package_Node_Id): Now a private, self initialized type
12653 (Register_New_Package): New procedure to register a package with its
12655 New attribute oriented subprograms: Attribute_Node_Id_Of,
12656 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
12657 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
12659 New package oriented subprograms: Package_Node_Id_Of,
12660 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
12662 * prj-dect.adb (Parse_Attribute_Declaration,
12663 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
12665 * prj-makr.adb (Make): Parse existing project file before creating
12666 other files. Fail if there was an error during parsing.
12668 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
12669 new spec of Prj.Attr.
12671 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
12672 to new spec of Prj.Attr.
12674 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12676 * utils2.c: Fix typo in comment.
12678 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12680 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
12681 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
12683 2004-07-14 Andreas Schwab <schwab@suse.de>
12685 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
12687 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12689 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
12691 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
12694 * misc.c (gnat_types_compatible_p): New function.
12695 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
12696 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
12698 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
12699 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
12700 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
12701 (mark_visited): Don't mark dummy type.
12702 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
12703 parameter, we must remove any LJM building from GNU_NAME.
12704 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
12705 (pos_to_constructor): Use int_const_binop.
12706 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
12709 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
12710 (gnat_pushlevel): Set TREE_USE on BLOCK node.
12711 (gnat_install_builtins): Add __builtin_memset.
12713 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
12715 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
12716 for a renaming, stabilize the initialization expression if we are at a
12717 local level. At the local level, uses of the renaming may be performed
12718 by a direct dereference of the initializing expression, and we don't
12719 want possible variables there to be evaluated for every use.
12721 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
12722 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
12723 them on the way. Account for the fact that we may introduce side
12724 effects in the process.
12726 2004-07-13 Richard Henderson <rth@redhat.com>
12728 * misc.c (default_pass_by_ref): Use pass_by_reference.
12730 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
12732 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
12733 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
12735 2004-07-08 Richard Henderson <rth@redhat.com>
12737 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
12740 2004-07-06 Vincent Celier <celier@gnat.com>
12742 * vms_conv.ads: Minor reformatting.
12743 Alphabetical order for enumerated values of type Command_Type, to have
12744 the command in alphabetical order for the usage.
12746 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
12747 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
12749 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
12751 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
12752 (Add_Archive_Path): Only add the global archive if there is one.
12753 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
12754 or not any object file to put in the global archive, and don't build
12755 a global archive if there is none.
12756 (X_Switches): New table
12757 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
12758 in the X_Switches table, if any.
12759 (Initialize): Make sure the X_Switches table is empty
12760 (Scan_Arg): Record -X switches in table X_Switches
12762 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
12764 * make.adb: Minor comment fix
12766 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
12767 invoked with directory information, add the directory in front of the
12770 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
12771 invoked with directory information, add the directory in front of the
12774 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
12775 when Keep_Temporary_Files is False.
12776 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
12777 directory information, add the directory in front of the path.
12778 When not on VMS, handle new switch -dn before the command to set
12779 Keep_Temporary_Files to True.
12780 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
12783 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
12784 invoked with directory information, add the directory in front of the
12787 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
12789 * snames.ads, snames.adb (Name_Stub): New name for the distributed
12792 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
12793 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
12795 * g-socket.adb (To_Timeval): Fix incorrect conversion of
12796 Selector_Duration to Timeval for the case of 0.0.
12798 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
12799 documentation from Evolve_And_Then.
12801 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
12803 * s-taprop-tru64.adb, s-taprop-os2.adb,
12804 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
12806 2004-07-06 Robert Dewar <dewar@gnat.com>
12808 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
12809 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
12810 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
12811 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
12812 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
12813 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
12814 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
12815 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
12816 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
12817 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
12818 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
12819 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
12820 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
12821 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
12822 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
12823 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
12824 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
12825 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
12826 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
12827 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
12828 vms_data.ads: Minor reformatting,
12829 Fix bad box comment format.
12831 * gnat_rm.texi: Fix minor grammatical error
12833 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
12835 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
12836 more cases of discriminated records to be recognized as not needing a
12838 (Has_Access_Values): New function.
12840 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
12842 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
12843 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
12844 with LRM terminology).
12845 Change terminology in comments primitive type => elementary type.
12847 2004-07-06 Ed Schonberg <schonberg@gnat.com>
12850 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
12851 parameters do not impose any requirements on the presence of a body.
12853 2004-07-06 Ed Schonberg <schonberg@gnat.com>
12856 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
12857 compilation unit and is in an open scope at the point of instantiation,
12858 assume that a body may be present later.
12860 2004-07-06 Ed Schonberg <schonberg@gnat.com>
12862 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
12863 Improve error message when specified size is not supported.
12865 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
12866 is never a primitive operation.
12868 2004-07-05 Andreas Schwab <schwab@suse.de>
12870 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
12871 RECORD_OR_UNION_CHECK.
12872 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
12874 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
12876 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
12877 dependency on xgnatugn, instead build it via a submake.
12878 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
12880 2004-07-04 Richard Henderson <rth@redhat.com>
12882 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
12884 2004-07-01 Richard Henderson <rth@redhat.com>
12886 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
12887 * utils.c (max_size): Likewise.
12889 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12891 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
12892 and rest_of_type_compilation; add arg to create_*_decl.
12893 (annotate_decl_with_node): Deleted.
12894 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
12895 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
12896 (get_current_block_context, gnat_pushdecl): New declarations.
12897 (gnat_init_stmt_group): Likewise.
12898 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
12899 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
12900 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
12901 (gnat_init): Call gnat_init_stmt_group.
12902 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
12903 (gnu_pending_elaboration_list): Deleted.
12904 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
12905 (gigi): Rearrange initialization calls and move some to last above.
12906 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
12907 Delete calls to add_decl_expr; add arg to create_*_decl.
12908 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
12909 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
12910 begin_subprog_body and call it.
12911 Don't push and pop ggc context.
12912 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
12913 (add_stmt): Remove handling of DECL_EXPR from here.
12914 If not in function, mark visited.
12915 (add_decl_expr): Put global at top level.
12916 Check for cases of DECL_INITIAL we have to handle here.
12917 (process_type): Add extra arg to create_type_decl.
12918 (build_unit_elab): Rework to just gimplify.
12919 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
12920 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
12921 (get_pending_elaborations, pending_elaborations_p): Likewise.
12922 (push_pending_elaborations, pop_pending_elaborations): Likewise.
12923 (get_elaboration_location, insert_elaboration_list): Likewise.
12924 (gnat_binding_level): Renamed from ada_binding_level.
12925 (init_gnat_to_gnu): Don't clear pending_elaborations.
12926 (global_bindings_p): Treat as global if no current_binding_level.
12927 (set_current_block_context): New function.
12928 (gnat_pushdecl): Renamed from pushdecl; major rework.
12929 All callers changed.
12930 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
12931 (finish_record_type): Call call pushdecl for stub decl.
12932 (function_nesting_depth): Deleted.
12933 (begin_subprog_body): Delete obsolete code.
12934 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
12936 2004-06-28 Robert Dewar <dewar@gnat.com>
12938 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12939 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
12940 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
12941 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
12942 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
12944 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
12945 deal with problem of inefficient slices on machines with strict
12946 alignment, when the slice is a component of a composite.
12948 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
12949 machines, we need the check there as well.
12951 2004-06-28 Ed Schonberg <schonberg@gnat.com>
12953 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
12954 determine safe copying direction for overlapping slice assignments
12955 when component is controlled.
12957 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
12958 formal derived type in the actual for a formal package are visible in
12959 the enclosing instance.
12961 2004-06-28 Ed Schonberg <schonberg@gnat.com>
12964 * sem_util.adb (Trace_Components): Diagnose properly an illegal
12965 circularity involving a private type whose completion includes a
12966 self-referential component.
12967 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
12968 renaming or an instantiation from an implicit derived operation.
12970 2004-06-28 Pascal Obry <obry@gnat.com>
12972 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
12974 (Library_File_Name_For): Idem.
12976 2004-06-28 Matthew Gingell <gingell@gnat.com>
12978 * g-traceb.ads: Add explanatory note on the format of addresses
12979 expected by addr2line.
12981 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
12983 * Makefile.in: Force debugging information on s-tasdeb.adb,
12984 a-except.adb and s-assert.adb needed by the debugger.
12986 2004-06-28 Vincent Celier <celier@gnat.com>
12988 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
12992 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
12994 * prj.adb: Minor reformatting
12995 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
12997 * prj.ads: Comment updates
12999 (Project_Data): Change Flag1 to Need_To_Build_Lib.
13000 Remove Flag2: not used.
13002 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
13005 * gnat_ugn.texi: Put a "null;" declaration in one project file example
13007 * gnat_rm.texi: Document Empty declarations "null;".
13009 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
13010 front of the linker options.
13011 (Link_Foreign): Put the global archives and the libraries in front of
13012 the linker options.
13014 2004-06-28 Javier Miranda <miranda@gnat.com>
13016 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
13017 (RTU_Loaded): Code cleanup
13018 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
13019 withed predefined units.
13021 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
13022 explicitly withed predefined units.
13023 Fix typo in comment
13025 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
13026 explicitly withed predefined units.
13028 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13030 * ada-tree.def (DECL_STMT): Deleted.
13031 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
13032 (DECL_STMT_VAR): Deleted.
13033 * decl.c: add_decl_stmt now add_decl_expr.
13034 * gigi.h: Likewise.
13035 * trans.c: Likewise.
13036 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
13037 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
13038 (add_stmt): Only handle padded type here.
13039 (add_stmt_with_node): Allow gnat_node to not be present.
13040 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
13041 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
13042 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
13043 make a SAVE_EXPR for the entire fat pointer.
13044 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
13045 (create_index_type): Make a DECL_EXPR.
13046 (end_subprog_body): Don't call allocate_struct_function here but
13049 2004-06-25 Pascal Obry <obry@gnat.com>
13051 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
13052 Relocatable from Build_Dynamic_Library call.
13054 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
13055 Relocatable are now synonym.
13057 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
13059 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
13060 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
13063 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
13064 Lib_Address and Relocatable.
13065 (Default_DLL_Address): Removed.
13067 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
13068 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
13069 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
13070 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
13071 (Default_DLL_Address): Removed.
13073 * mlib-tgt-mingw.adb: Ditto.
13074 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
13076 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
13077 the initial thread stack size.
13079 * a-strmap.ads: Move package L to private part as it is not used in
13080 the spec. Found while reading code.
13082 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
13084 * tracebak.c: Introduce support for a GCC infrastructure based
13085 implementation of __gnat_backtrace.
13087 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
13088 any more. Use accessors instead. This eases maintenance and relaxes
13089 some alignment constraints.
13090 (_GNAT_Exception structure): Remove the Ada specific fields
13091 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
13093 (is_handled_by, __gnat_eh_personality): Replace component references to
13094 exception structure by use of the new accessors.
13096 * init.c (__gnat_initialize): Adjust comments to match the just
13097 reverted meaning of the -static link-time option.
13099 * adaint.c (convert_addresses): Arrange not to define a stub for
13100 mips-irix any more, as we now want to rely on a real version from a
13101 recent libaddr2line.
13103 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
13104 the personality routine can use them and not have to rely on a C
13105 counterpart of the record anymore. This simplifies maintenance and
13106 relaxes the constraint of having Standard'Maximum_Alignment match
13108 Update comments, and add a section on the common header alignment issue.
13110 2004-06-25 Geert Bosch <bosch@gnat.com>
13112 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
13113 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
13115 2004-06-25 Robert Dewar <dewar@gnat.com>
13117 * gnat_rm.texi: Fix section on component clauses to indicate that the
13118 restriction on byte boundary placement still applies for bit packed
13120 Add comment on stack usage from Initialize_Scalars
13122 * gnat_ugn.texi: Add documentation for -gnatyLnnn
13124 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
13125 limiting nesting level.
13127 * usage.adb: Add line for -gnatyLnnn switch
13129 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
13130 sem_ch13.adb, exp_aggr.adb: Minor reformatting
13132 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
13133 type as well as on the subtype. This corrects a problem in freeze in
13134 setting alignments of atomic types.
13136 * sem_eval.ads: Minor comment typo fixed
13138 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
13139 level. Minor reformatting.
13141 * fname.adb (Is_Predefined_File_Name): Require a letter after the
13142 minus sign. This means that file names like a--b.adb will not be
13143 considered predefined.
13145 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
13146 record Test new flag and give diagnostic for bad component clause.
13147 (Freeze_Entity): Set alignment of array from component alignment in
13148 cases where this is safe to do.
13150 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
13153 * cstand.adb: (Create_Standard): Set alignment of String to 1
13155 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
13157 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
13158 code in the common constrained array cases.
13160 * a-storio.adb: Change implementation to avoid possible alignment
13161 problems on machines requiring strict alignment (data should be moved
13162 as type Buffer, not type Elmt).
13164 * checks.adb (Apply_Array_Size_Check): Improve these checks by
13165 killing the overflow checks which we really do not need (64-bits is
13168 2004-06-25 Vincent Celier <celier@gnat.com>
13170 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
13171 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
13172 inconditionally for the main project.
13173 (Recursive_Add_Archives.Add_Archive_Path): New procedure
13174 (Link_Executables.Check_Time_Stamps): New procedure
13175 (Link_Executables.Link_Foreign): New procedure
13176 Changes made to reduce nesting level of this package
13177 (Check): New procedure
13178 (Add_Switches): When not in quiet output, check that a switch is not
13179 the concatenation of several valid switches. If it is, issue a warning.
13180 (Build_Global_Archive): If the global archive is rebuilt, linking need
13182 (Compile_Sources): Rebuilding a library archive does not imply
13183 rebuilding the global archive.
13184 (Build_Global_Archive): New procedure
13185 (Build_Library): New name for Build_Archive, now only for library
13187 (Check_Archive_Builder): New procedure
13188 (Create_Global_Archive_Dependency_File): New procedure
13189 (Gprmake): Call Build_Global_Archive before linking
13190 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
13192 (Scan_Arg): Display the Copyright notice when -v is used
13194 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
13197 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
13199 Add new GNAT LIST qualifier /FILES=
13200 Added qualifier /DIRECTORY= to GNAT METRIC
13201 Added qualifier /FILES= to GNAT METRIC
13202 Added qualifier /FILES to GNAT PRETTY
13204 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
13205 to take into account both versions of the switch.
13207 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
13208 always be the last switch to the gcc driver. Disable switch storing so
13209 that switches automatically added by the gcc driver are not put in the
13212 * prj.adb (Project_Empty): Take into account changes in components of
13215 * prj.ads (Languages_Processed): New enumaration value All_Languages.
13217 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
13218 used. Split Boolean component Ada_Sources_Present in two Boolean
13219 components Ada_Sources_Present and Other_Sources_Present.
13222 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
13223 instead of Sources_Present.
13224 (Set_Ada_Paths.Add.Recursive_Add): Ditto
13226 * prj-nmsc.adb: Minor reformatting
13227 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
13228 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
13229 Check_Ada_Naming_Scheme.
13230 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
13233 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
13235 Make sure that all cycles where there is at least one "limited with"
13237 (Parse_Single_Project): New Boolean parameter In_Limited
13239 * prj-proc.adb (Recursive_Check): When Process_Languages is
13240 All_Languages, call first Prj.Nmsc.Ada_Check, then
13241 Prj.Nmsc.Other_Languages_Check.
13243 * prj-proc.adb (Process): Use Ada_Sources_Present or
13244 Other_Sources_Present (instead of Sources_Present) depending on
13247 * lang-specs.h: Keep -g and -m switches in the same order, and as the
13250 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
13251 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
13253 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
13256 * lib.ads (Disable_Switch_Storing): New procedure.
13258 * make.adb: Modifications to reduce nesting level of this package.
13259 (Check_Standard_Library): New procedure
13260 (Gnatmake.Check_Mains): New procedure
13261 (Gnatmake.Create_Binder_Mapping_File): New procedure
13262 (Compile_Sources.Compile): Add switch -gnatez as the last option
13263 (Display): Never display -gnatez
13265 * Makefile.generic:
13266 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
13268 * gnatcmd.adb (Check_Project): New function
13269 (Process_Link): New procedure to reduce nesting depth
13270 (Check_Files): New procedure to reduce the nesting depth.
13271 For GNAT METRIC, include the inherited sources in extending projects.
13272 (GNATCmd): When GNAT LS is invoked with a project file and no files,
13273 add the list of files from the sources of the project file. If this list
13274 is too long, put it in a temp text files and use switch -files=
13275 (Delete_Temp_Config_Files): Delete the temp text file that contains
13276 a list of source for gnatpp or gnatmetric, if one has been created.
13277 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
13278 in the project file is too large, create a temporary text file that
13279 list them and pass it to the tool with "-files=<temp text file>".
13280 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
13282 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
13283 generated file is in not in Ada.
13285 * gnatls.adb: Remove all parameters And_Save that are no longer used.
13286 (Scan_Ls_Arg): Add processing for -files=
13287 (Usage): Add line for -files=
13289 * g-os_lib.adb (On_Windows): New global constant Boolean flag
13290 (Normalize_Pathname): When on Windows and the path starts with a
13291 directory separator, make sure that the resulting path will start with
13294 * clean.adb (Clean_Archive): New procedure
13295 (Clean_Project): When there is non-Ada code, delete the global archive,
13296 the archive dependency files, the object files and their dependency
13297 files, if they exist.
13298 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
13300 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
13302 * sinfo.ads: Fix typo in comment.
13304 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
13305 the TSS for remote access-to-subprogram types, since these TSS are
13306 always present once the type has been analyzed.
13307 (RAS_E_Dereference): Same.
13309 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
13310 reference raises Bad_Attribute, mark the reference as analyzed so the
13311 node (and any children resulting from rewrites that could have occurred
13312 during the analysis that ultimately failed) is not analyzed again.
13314 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
13316 * exp_dist.adb: Minor comment fix.
13318 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
13319 type is an anonymous access type, no unchecked deallocation of the
13320 allocated object can occur. If the object is controlled, attach it with
13321 a count of 1. This allows attachment to the Global_Final_List, if
13322 no other relevant list is available.
13323 (Get_Allocator_Final_List): For an anonymous access type that is
13324 the type of a discriminant or record component, the corresponding
13325 finalisation list is the one of the scope of the type.
13327 2004-06-25 Ed Schonberg <schonberg@gnat.com>
13329 * sem_ch3.adb (Replace_Type): When computing the signature of an
13330 inherited subprogram, use the first subtype if the derived type
13331 declaration has no constraint.
13333 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
13334 before applying previous optimization. Minor code cleanup.
13336 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
13337 placed at the beginning of an unpacked record without explicit
13338 alignment, a slice of it will be aligned and does not need a copy when
13341 2004-06-25 Ed Schonberg <schonberg@gnat.com>
13345 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
13346 reference is written with expressions mimicking parameters.
13348 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
13351 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
13352 STEP 2a. The constraints of a full type declaration of a derived record
13353 type are checked for conformance with those declared in the
13354 corresponding private extension declaration. The message
13355 "not conformant with previous declaration" is emitted if an error is
13358 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
13360 * g-traceb.ads: Document the need for -E binder switch in the spec.
13362 * g-trasym.ads: Document the need for -E binder switch in the spec.
13364 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
13366 * sem_prag.adb: Add handling of pragma Detect_Blocking.
13368 * snames.h, snames.ads, snames.adb: Add entry for pragma
13371 * s-rident.ads: Change reference to pragma Detect_Blocking.
13373 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
13376 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
13377 to indicate whether pragma Detect_Blocking is active.
13379 * par-prag.adb: Add entry for pragma Detect_Blocking.
13381 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
13382 of not handling WITH.
13383 Note that this replaces the previous update which was incorrect.
13385 2004-06-25 Javier Miranda <miranda@gnat.com>
13387 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
13388 use-clauses to have a clean environment.
13390 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
13391 the installation of the use-clauses to stablish a clean environment in
13392 case of compilation of a separate unit; otherwise the call to
13393 use_one_package is protected by the barrier Applicable_Use.
13395 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
13396 the installation of the use-clauses to stablish a clean environment in
13397 case of compilation of a separate unit.
13398 (End_Use_Clauses): Minor comment cleanup.
13400 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
13402 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
13404 2004-06-23 Richard Henderson <rth@redhat.com>
13406 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
13408 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13410 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
13411 now bool instead of int.
13412 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
13413 * trans.c (gnu_switch_label_stack): New function.
13414 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
13415 elaboration of renamed entity returns.
13416 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
13417 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
13418 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
13419 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
13420 DECL_SIZE_UNIT and simplify variable-sized case.
13421 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
13422 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
13423 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
13424 (build_unit_elab): Disable for now.
13425 * utils.c (mark_visited): New function.
13426 (pushdecl): Walk tree to call it for global decl.
13427 (update_pointer_to): Update all variants of pointer and ref types.
13428 Add arg to COMPONENT_REF.
13429 (convert): Likewise.
13430 Move check for converting between variants lower down.
13431 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
13432 (build_allocator): Don't force type of MODIFY_EXPR.
13433 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
13434 put_var_into_stack.
13436 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13438 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
13439 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
13440 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
13442 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
13443 all callers changed.
13444 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
13445 the way that EXIT_STMT finds the loop label.
13446 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
13447 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
13448 (add_stmt): Use annotate_with_locus insted of setting directly.
13449 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
13450 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
13451 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
13452 (build_vms_descriptor): Add extra args to ARRAY_REF.
13453 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
13454 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
13456 (build_binary_op): Don't make explicit CONVERT_EXPR.
13457 Add extra rgs to ARRAY_REF.
13459 2004-06-14 Pascal Obry <obry@gnat.com>
13461 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
13462 Windows. Fix minor typo.
13464 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
13465 which is now supported on Windows. With this implementation using the
13466 Library Project feature is no different on Windows than on UNIX.
13468 2004-06-14 Vincent Celier <celier@gnat.com>
13470 * makegpr.adb (Compile_Sources): Nothing to do when there are no
13473 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
13475 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
13476 found, show the project name and the path of the previously parsed
13479 2004-06-14 Ed Schonberg <schonberg@gnat.com>
13481 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
13482 array, avoid copying the actual before the call.
13484 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
13486 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
13487 Instead, allocate memory on worst-case alignment assumptions, and then
13488 return an aligned address within the allocated zone.
13490 2004-06-14 Robert Dewar <dewar@gnat.com>
13492 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
13493 elab entities in predefined units in No_Run_Time_Mode.
13494 (Gen_Adainit_C): Same fix
13495 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
13496 units in No_Run_Time_Mode
13497 (Gen_Elab_Calls_C): Same fix
13499 * symbols-vms-alpha.adb: Minor reformatting
13501 * g-debpoo.ads: Minor reformatting
13503 * lib.adb (In_Same_Extended_Unit): Version working on node id's
13505 * lib.ads (In_Same_Extended_Unit): Version working on node id's
13507 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
13510 * make.adb: Minor reformatting
13512 * par-ch12.adb: Minor reformatting
13514 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
13516 * prj-strt.adb: Minor reformatting
13518 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
13521 * sem_attr.adb: Minor reformatting
13523 * sem_ch7.adb: Minor reformatting
13525 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
13526 for type in the same unit as the object declaration.
13528 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
13529 static string expressions and not just string literals.
13531 (Set_Warning): Reset restriction warning flag for restriction pragma
13532 Implement pragma Profile_Warnings
13533 Implement pragma Profile (Restricted)
13534 Give obolescent messages for old restrictions and pragmas
13536 * snames.h, snames.ads, snames.adb: Add new entry for pragma
13539 * s-rident.ads: Add declarations for restrictions required by profile
13540 Restricted and profile Ravenscar.
13542 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
13544 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
13545 configuration pragmas.
13547 2004-06-11 Vincent Celier <celier@gnat.com>
13549 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
13550 gnatsym, when symbol policy is Restricted.
13552 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
13553 gnatsym, when symbol policy is Restricted.
13555 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
13556 read the symbol file.
13557 (Finalize): Fail in symbol policy Restricted if a symbol in the original
13558 symbol file is not in the object files. Do not create a new symbol file
13559 when symbol policy is Restricted.
13561 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
13564 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
13566 (Usage): Line for new switch -R
13568 * make.adb (Initialize): When the platform is not VMS, add the
13569 directory where gnatmake is invoked in the front of the path, if
13570 gnatmake is invoked with directory information. Change the Scan_Args
13571 while loop to a for loop.
13572 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
13573 if Depth is equal or greater than the proposed depth, there is nothing
13575 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
13578 * prj.ads: Add new symbol policy Restricted.
13580 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
13581 with the new parameters Check_All_Labels and Case_Location.
13583 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
13584 (Library_Symbol_File needs to be defined).
13586 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
13587 and Case_Location If Check_All_Labels is True, check that all values of
13588 the string type are used, and output warning(s) if they are not.
13590 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
13593 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
13595 * gnat_ugn.texi: Update documentation about the library directory in
13598 * makegpr.adb (Display_Command): In verbose mode, also display the
13599 value of the CPATH env var, when the compiler is gcc.
13600 (Initialize): Change the Scan_Args while loop to a for loop
13601 (Compile_Individual_Sources): Change directory to object directory
13602 before compilations.
13604 * symbols.ads: New symbol policy Restricted.
13606 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
13608 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
13609 is now taken care of internally in the Exception_Propagation package
13610 and does not require clients assistance any more.
13612 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
13613 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
13614 functions. Helpers to maintain a predicate required in the handling of
13615 occurrence transfer between tasks.
13616 This is now handled internally and does not require clients assistance
13617 for the setup/propagate separation anymore.
13618 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
13619 allocation strategy, handle the Setup_And_Not_Propagated predicate and
13622 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
13623 raise_after_setup, now that everything is handled internally within the
13624 setup/propagation engine.
13626 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
13628 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
13629 Add additional conditions for the case of an actual being a simple
13630 name or literal. Improve inlining by preventing the generation
13631 of temporaries with a short lifetime (one use).
13633 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
13636 * einfo.ads: Minor comment updates for Has_Completion and
13637 E_Constant list of flags.
13639 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
13640 and constant redeclarations now set the Has_Completion flag of their
13641 defining identifiers.
13643 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
13644 Inspect_Deferred_Constant_Completion.
13645 Used to detect private deferred constants that have not been completed
13646 either by a constant redeclaration or pragma Import. Emits error message
13647 "constant declaration requires initialization expression".
13649 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
13650 completes a deferred constant.
13652 2004-06-11 Geert Bosch <bosch@gnat.com>
13654 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
13656 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
13657 calculating exponent for scaling denormal numbers.
13658 (Leading_Part): Properly raise Constraint_Error for zero or negative
13660 (Remainder): Properly raise Constraint_Error for zero divisor.
13662 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
13664 * sem_util.adb: Minor reformatting.
13666 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
13667 dereference when accessing the entry parameter record.
13668 (Check_Array_Type): Always check for possible implicit dereference.
13669 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
13670 Abort if a pointer is still present (denoting that an implicit
13671 dereference was left in the tree by the front-end).
13673 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
13674 dereference when accessing the entry parameter record.
13675 (Check_Array_Type): Always check for possible implicit dereference.
13676 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
13677 Abort if a pointer is still present (denoting that an implicit
13678 dereference was left in the tree by the front-end).
13680 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
13682 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
13683 message, like the compiler itself does. Easier to parse the output.
13685 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
13687 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
13688 be base names, and not includes directories.
13690 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
13692 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
13693 so that dependencies are properly taken into account by make.
13695 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
13698 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
13699 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
13701 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
13703 * Makefile.in (install-gnatlib): install target-specific run-time files.
13705 * Make-lang.in: Remove obsolete targets.
13707 2004-06-11 Ed Schonberg <schonberg@gnat.com>
13709 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
13710 specification, to catch misuses of program unit names.
13712 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
13713 superfluous conversions in an instance.
13715 2004-06-11 Ed Schonberg <schonberg@gnat.com>
13718 * sem_ch12.adb (Save_References): If operator node has been folded to
13719 enumeration literal, associated_node must be discarded.
13721 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
13723 * s-stchop-vxworks.adb: Add required pragma Convention to
13724 Task_Descriptor because it is updated by a C function.
13726 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
13729 * Makefile.in: Remove target specific SO_OPT on IRIX
13731 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13733 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
13734 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
13735 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
13736 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
13737 (STMT_STMT, USE_STMT): New statement codes.
13738 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
13739 * ada-tree.h: Reflect above changes.
13740 (struct tree_loop_id): Deleted.
13741 (union lang_tree_node, struct lang_decl, struct lang_type):
13742 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
13743 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
13744 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
13745 (IS_ADA_STMT): New macro.
13746 * decl.c (annotate_decl_with_node): New function.
13747 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
13748 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
13749 Call add_stmt_with_node to do needed assignments.
13750 Add call to update setjmp buffer directly, not via EXPR_STMT.
13751 (maybe_variable): Argment GNAT_NODE deleted.
13752 * gigi.h (maybe_variable): Likewise.
13753 (make_transform, add_stmt_with_node, set_block_for_group): New.
13754 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
13755 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
13756 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
13757 (set_lineno, set_lineno_from_sloc): Likewise.
13758 (record_code_position, insert_code_for): Likewise.
13759 (gnat_poplevel): Now returns void.
13760 (end_subprog_body): Now takes argument.
13761 * misc.c (cgraph.h, tree-inline.h): New includes.
13762 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
13763 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
13764 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
13765 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
13766 (gnat_parse_file): Don't set immediate_size_expand.
13767 Call cgraph functions.
13768 (gnat_expand_expr): Remove most cases.
13769 (record_code_position, insert_code_for): Remove from here.
13770 * trans.c (toplev.h, tree-gimple.h): Now included.
13771 (discard_file_names): Deleted.
13772 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
13773 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
13774 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
13775 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
13776 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
13777 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
13778 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
13779 (set_block_for_group, add_stmt_list): Likewise.
13780 (start_stmt_group): Renamed from start_block_stmt.
13781 (end_stmt_group): Likewise, from end_block_stmt.
13782 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
13783 (gigi): Don't set discard_file_names or call set_lineno.
13784 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
13785 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
13786 Numerous changes throughout to reflect new names and complete
13787 function-at-a-time implementation.
13788 (gnat_expand_stmt): Delete or comment out all cases.
13789 (process_inlined_subprograms): Use add_stmt.
13790 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
13791 call set_lineno; also remove unneeded block handling.
13792 (process_type): Remove unneeded block handling.
13793 (build_unit_elab): Remove calls to deleted functions.
13794 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
13795 (tree-dump.h): Likewise.
13796 (struct ada_binding_level): Add field jmpbuf_decl.
13797 (gnat_define_builtin, gnat_install_builtins): New.
13798 (gnat_gimplify_function, gnat_finalize): Likewise.
13799 (gnat_poplevel): No longer return BLOCK, set it instead.
13800 Remove code dealing with nested functions.
13801 (gnat_init_decl_processing): Also set size_type_node.
13802 Call gnat_install_builtins.
13803 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
13804 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
13805 Remove special-case for "main".
13806 (end_subprog_body): Add arg and rework for tree-ssa.
13807 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
13808 Add case for BOOLEAN_TYPE.
13809 * utils2.c (rtl.h): Now include.
13810 (build_call_raise): Test Debug_Flag_NN directly.
13811 (build_call_alloc_dealloc): Don't use local stack allocation for now.
13812 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
13813 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
13815 2004-06-07 Robert Dewar <dewar@gnat.com>
13817 * a-direct.ads, einfo.ads: Minor comment updates
13819 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
13820 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
13821 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
13822 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
13823 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
13825 * s-interr-sigaction.adb: Remove unreferenced variable
13826 (Attached_Interrupts). Minor reformatting.
13827 Avoid use of variable I (replace by J).
13829 * par-ch10.adb: Fix text of one error message
13831 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
13832 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
13833 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
13834 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
13835 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
13836 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
13837 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
13838 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
13839 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
13840 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
13841 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
13844 2004-06-07 Doug Rupp <rupp@gnat.com>
13846 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
13848 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
13850 * mlib-tgt-vms-ia64.adb: New file.
13852 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
13853 Add mlib-tgt-vms-ia64.adb
13854 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
13855 Move to alpha specific ifeq section.
13856 Add VMS specific versions of symbols.adb
13857 Renaming of 5q vms files.
13859 * 5qsystem.ads renamed to system-vms_64.ads.
13861 2004-06-07 Vincent Celier <celier@gnat.com>
13863 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
13864 explain that when a time of day corresponding to the non existing hour
13865 on the day switching to DST is specified, Split may return a different
13868 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
13871 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
13872 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
13874 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
13876 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
13877 the linking options.
13878 (Build_Library.Check_Libs): On VMS, if there is a dependency on
13879 g-trasym.ads, set Gtrasymobj_Needed to True.
13881 * prj-attr.adb: Add new package Metrics for gnatmetric
13883 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
13884 canonical case to take into account files with upper case characters on
13886 (Ada_Check): Load the reference symbol file name in the name buffer to
13887 check it, not the symbol file name.
13889 * snames.ads, snames.adb: Add standard name Metrics (name of project
13890 file package for gnatmetric).
13892 * vms_conv.ads: Add Metric to Comment_Type
13894 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
13896 * vms_data.ads: Add qualifiers for GNAT METRIC
13898 * makegpr.adb (Link_Executables): Take into account the switches
13899 specified in package Linker of the main project.
13901 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
13903 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
13904 the index of the last element is Units.Last, not Units.Table'Last
13905 (which is usually not a valid index within the actually allocated
13906 storage for the table).
13908 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
13909 determines whether to generate a call to a checked storage pool
13910 Dereference action.
13911 Generate such a call only for a dereference that either comes from
13912 source, or is the result of rewriting a dereference that comes from
13915 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
13917 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
13919 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
13921 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
13922 file level, elaborate the stride for inner dimensions in alignment
13925 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
13928 2004-06-07 Javier Miranda <miranda@gnat.com>
13930 * exp_ch6.adb: Correct wrong modification in previous patch
13932 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
13934 * g-trasym.ads: Corrected comment to properly reflect level of support
13937 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
13939 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
13940 includes case of a variable referenced on the left hand side of an
13941 assignment, therefore remove redundant code. Variables and prefixes of
13942 indexed or selected components are now marked as referenced on left
13943 hand side. Warnings are now properly emitted when variables or prefixes
13944 are assigned but not read.
13946 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
13947 left hand side referenced variables. Private access types do not
13948 produce the warning "variable ... is assigned but never read".
13949 Add also additional checks to left hand side referenced variables.
13950 Aliased, renamed objects and access types do not produce the warning
13951 "variable ... is assigned but never read" since other entities may read
13952 the memory location.
13954 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
13956 * Makefile.in: In the powerpc/vxworks-specific section, restore
13957 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
13960 2004-06-07 Ed Schonberg <schonberg@gnat.com>
13962 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
13963 predefined operators.
13964 Removes spurious type errors from g-trasym-vms.adb.
13966 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
13967 distinct from the operator appearing in the source, call appropriate
13968 routine to insert conversions when needed, and complete resolution of
13970 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
13971 interpretations for rewritten right operand.
13972 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
13973 the other operand is overloaded and the context is a type conversion.
13975 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13977 * ada-tree.def (BLOCK_STMT): Now has two operands.
13980 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
13982 * gigi.h: (gnat_poplevel): Now returns a tree.
13984 * trans.c (end_block_stmt): Add arg; all callers changed.
13985 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
13986 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
13987 (add_stmt): Set TREE_TYPE.
13988 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
13989 (gnat_expand_stmt, case BREAK_STMT): New case.
13991 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
13993 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
13995 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
13996 procedure Set_Stack_Size that is not needed.
13998 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
14000 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
14001 used for gnatpp input file and for the files upon which it depends
14003 2004-06-07 Ben Brosgol <brosgol@gnat.com>
14005 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
14007 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
14009 * gnatvsn.ads: Bump version numbers appropriately.
14010 Add new build type.
14012 2004-06-07 Pascal Obry <obry@gnat.com>
14014 * gnat_ugn.texi: Improve comments about imported names and link names
14015 on Windows. Add a note about the requirement to use -k gnatdll's option
14016 when working with a DLL which has stripped stdcall symbols (no @nn
14019 2004-05-27 Vincent Celier <celier@gnat.com>
14021 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
14022 COMMENTS_LAYOUT=UNTOUCHED
14024 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
14025 symbols-vms-alpha.adb
14027 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
14029 * sem.ads: Clarify documentation on checks suppression.
14031 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
14033 2004-05-27 Ed Schonberg <schonberg@gnat.com>
14035 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
14036 the case of multiple derivations.
14037 (Is_Object_Reference): For a selected component, verify that the prefix
14038 is itself an object and not a value.
14040 * sem_ch12.adb (Same_Instantiated_Constant): New name for
14041 Same_Instantiated_Entity.
14042 (Same_Instantiated_Variable): Subsidiary to
14043 Check_Formal_Package_Instance, to recognize actuals for in-out generic
14044 formals that are obtained from a previous formal package.
14045 (Instantiate_Subprogram_Body): Emit proper error when
14046 generating code and the proper body of a stub is missing.
14048 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
14049 has a universal interpretation, do the disambiguation here.
14051 * exp_ch4.adb (Expand_N_Type_Conversion,
14052 Expand_N_Unchecked_Type_Conversion): Special handling when target type
14053 is Address, to avoid typing anomalies when Address is a visible integer
14056 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
14057 to determine whether a subprogram should not be marked Pure, even when
14058 declared in a pure package.
14060 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
14062 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
14064 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
14065 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
14066 Update the documentation about the Ravenscar profile, following the
14067 definition found in AI-249.
14069 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
14070 setting the Profile (Ravenscar). This must be done in addition to
14071 setting the required restrictions.
14073 * rtsfind.ads: Add the set of operations defined in package
14076 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
14079 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
14081 lang-specs.h: Always require -c or -S and always redirect to /dev/null
14082 if -gnatc or -gnats is passed.
14084 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
14086 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
14087 a significant reference. Warnings are now properly emitted when a
14088 discriminated type is not referenced.
14090 * lib-xref.adb (Generate_Reference): A deferred constant completion,
14091 record representation clause or record type discriminant does not
14092 produce a reference to its corresponding entity. Warnings are now
14093 properly emitted when deferred constants and record types are not
14096 2004-05-27 Geert Bosch <bosch@gnat.com>
14098 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
14099 Fixes ACATS Annex G tests.
14101 2004-05-27 Robert Dewar <dewar@gnat.com>
14103 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
14106 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
14108 * s-interr.adb (Server_Task): Take into account case of early return
14109 from sigwait under e.g. linux.
14111 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
14113 * gnat_ugn.texi: Add description for the new gnatpp options:
14114 -rnb - replace the original source without creating its backup copy
14115 -c0 - do not format comments
14117 2004-05-24 Geert Bosch <bosch@gnat.com>
14119 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
14120 with 192 bits of precision, sufficient to reduce a double-extended
14121 arguments X with a maximum relative error of T'Machine_Epsilon, for X
14122 in -2.0**32 .. 2.0**32.
14123 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
14124 reduction by the processor, which only uses a 68-bit approximation of
14126 (Tan): Always reduce arguments and compute function either using
14127 the processor's fptan instruction, or by dividing sin and cos as needed.
14129 2004-05-24 Doug Rupp <rupp@gnat.com>
14131 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
14132 gcc error on 32/64 bit VMS.
14134 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
14136 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
14137 since this is what we get for stack overflows although not documented
14139 Document the issues which may require adjustments to our signal
14142 2004-05-24 Ed Schonberg <schonberg@gnat.com>
14144 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
14145 enclosing dynamic scope if the instantiation is within a generic unit.
14147 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
14149 * exp_dbug.ads: Fix typo.
14151 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
14152 Rename it to its proper name: system-linux-ia64.ads
14153 (stamp-gnatlib1): Remove extra target specific run time files when
14154 setting up the rts directory.
14156 2004-05-24 Javier Miranda <miranda@gnat.com>
14158 * einfo.ads, einfo.adb (Limited_Views): Removed.
14159 (Limited_View): New attribute that replaces the previous one. It is
14160 now a bona fide package with the limited-view list through the
14161 first_entity and first_private attributes.
14163 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
14164 limited-private-with clause.
14165 (Install_Limited_Withed_Unit): Install the private declarations of a
14166 limited-private-withed package. Update the installation of the shadow
14167 entities according to the new structure (see Build_Limited_Views)
14168 (Build_Limited_Views): Replace the previous implementation of the
14169 limited view by a package entity that references the first shadow
14170 entity plus the first shadow private entity (required for limited-
14171 private-with clause)
14172 (New_Internal_Shadow_Entity): Code cleanup.
14173 (Remove_Limited_With_Clause): Update the implementation to undo the
14174 new work carried out by Build_Limited_Views.
14175 (Build_Chain): Complete documentation.
14176 Replace Ada0Y by Ada 0Y in comments
14179 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
14180 types the level of accessibility depends on the enclosing type
14183 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
14184 entities. Complete documentation of previous change.
14186 2004-05-24 Robert Dewar <dewar@gnat.com>
14188 * namet.adb: Minor reformatting
14189 Avoid use of name I (replace by J)
14190 Minor code restructuring
14192 * sem_ch6.adb: Minor reformatting
14194 * lib-writ.adb: Do not set restriction as active if this is a
14195 Restriction_Warning case.
14197 * sem_prag.adb: Reset restriction warning flag if real pragma
14198 restriction encountered.
14200 * s-htable.adb: Minor reformatting
14201 Change rotate count to 3 in Hash (improves hash for small strings)
14203 * 5qsystem.ads: Add comments for type Address (no literals allowed).
14205 * gnat_ugn.texi: Add new section of documentation "Code Generation
14206 Control", which describes the use of -m switches.
14208 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
14210 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
14211 through the DECL_INITIAL for renamed variables.
14213 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
14215 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
14217 2004-05-19 Joel Brobecker <brobecker@gnat.com>
14219 * exp_dbug.ads: Correct comments concerning handling of overloading,
14220 since we no longer use $ anymore.
14222 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
14224 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
14225 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
14226 with illegal subunits.
14228 2004-05-19 Ed Schonberg <schonberg@gnat.com>
14230 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
14231 body with front-end inlining enabled, check whether an inline pragma
14232 appears immediately after the body and applies to it.
14234 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
14235 enabled and the pragma appears after the body of the subprogram.
14237 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14239 Part of function-at-a-time conversion
14241 * misc.c (adjust_decl_rtl): Deleted.
14242 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
14245 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
14246 (add_decl_stmt, add_stmt, block_has_vars): New functions.
14247 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
14249 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
14250 when making a decl.
14251 (gnat_to_gnu_entity): Likewise.
14252 Use add_stmt to update setjmp buffer.
14253 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
14255 No longer call adjust_decl_rtl.
14256 (DECL_INIT_BY_ASSIGN_P): New macro.
14257 (DECL_STMT_VAR): Likewise.
14259 * trans.c (gigi): Call start_block_stmt to make the outermost
14261 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
14262 Call start_block_stmt and end_block_stmt temporarily.
14263 Use gnat_expand_stmt instead of expand_expr_stmt.
14264 (add_decl_stmt): New function.
14265 (tree_transform): Call it.
14266 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
14267 (end_block_stmt): Set type and NULL_STMT.
14268 (gnat_expand_stmt): Make recursize call instead of calling
14270 (gnat_expand_stmt, case DECL_STMT): New case.
14271 (set_lineno_from_sloc): Do nothing if global.
14272 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
14273 (start_block_stmt, add_stmt, end_block_stmt): New functions.
14274 (build_block_stmt): Call them.
14275 (gnat_to_code): Don't expand NULL_STMT.
14276 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
14278 (tree_transform): Likewise.
14279 (tree_transform, case N_Null_Statement): Return NULL_STMT.
14280 (gnat_expand_stmt, case NULL_STMT): New case.
14281 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
14284 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
14287 * utils.c (create_var_decl): Do not call expand_decl or
14289 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
14290 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
14292 (struct e_stack): Add chain_next to GTY.
14293 (struct binding_level): Deleted.
14294 (struct ada_binding_level): New struct.
14295 (free_block_chain): New.
14296 (global_binding_level, clear_binding_level): Deleted.
14297 (global_bindings_p): Rework to see if no chain.
14298 (kept_level_p, set_block): Deleted.
14299 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
14300 new data structure and work directly on BLOCK node.
14301 (gnat_poplevel): Similarly.
14302 (get_decls): Look at BLOCK_VARS.
14303 (insert_block): Work directly on BLOCK node.
14304 (block_has_var): New function.
14305 (pushdecl): Rework for new binding structures.
14306 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
14308 (build_subprog_body): Likewise.
14309 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
14311 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
14313 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
14314 (DECL_STMT_VAR): Likewise.
14316 2004-05-17 Robert Dewar <dewar@gnat.com>
14318 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
14321 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
14322 of restriction synonyums by using
14323 Restrict.Process_Restriction_Synonyms.
14325 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
14327 * s-restri.ads (Tasking_Allowed): Correct missing comment
14329 * s-rident.ads: Add entries for restriction synonyms
14331 * ali.adb: Fix some problems with badly formatted ALI files that can
14332 result in infinite loops.
14334 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
14335 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
14336 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
14337 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
14338 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
14339 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
14340 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
14341 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
14342 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
14343 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
14344 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
14345 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
14346 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
14347 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
14348 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
14349 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
14350 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
14351 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
14352 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
14353 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
14354 to Task_Id (minor cleanup).
14356 2004-05-17 Vincent Celier <celier@gnat.com>
14358 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
14359 directory separator.
14361 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
14362 project being extended, if Languages is not declared in extending
14365 2004-05-17 Javier Miranda <miranda@gnat.com>
14367 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
14368 limited view of a visible sibling.
14370 2004-05-14 Robert Dewar <dewar@gnat.com>
14372 * gnat_ugn.texi: Minor change to -gnatS documentation
14374 * sprint.adb: Remove some instances of Assert (False) and for this
14375 purpose replace them by output of a ??? string.
14377 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
14380 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
14381 flag processing. This was suppressing required dependencies in
14382 No_Run_Time mode and is not needed since the binder does not generate
14383 references for things in libgnat anyway.
14385 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
14388 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
14390 * gnat_ugn.texi: Document AIX-specific issue with initialization of
14393 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
14394 action for the case of an actual parameter in an init proc call.
14396 2004-05-14 Ed Schonberg <schonberg@gnat.com>
14398 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
14399 subtype, check visible entities in base type.
14401 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
14402 actions if the object is a renaming.
14404 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
14405 Check_Formal_Package_Instance, to determine more precisely when the
14406 formal and the actual denote the same entity.
14408 2004-05-14 Javier Miranda <miranda@gnat.com>
14410 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
14412 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
14413 corresponding to a private_with must be removed from visibility; it
14414 will be made visible later, just before we analyze the private part of
14416 (Check_Private_Child_Unit): Allow private_with clauses in public
14418 (Install_Siblings): Make visible the private entities of private-withed
14420 (Install_Withed_Unit): Do not install the private withed unit if we
14421 are compiling a package declaration and the Private_With_OK flag was
14422 not set by the caller. These declarations will be installed later,
14423 just before we analyze the private part of the package.
14425 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
14426 during the evaluation of the expression that initializes the object,
14427 decorate it with the expected type to avoid cascade errors.
14430 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
14431 subprogram we have to install the private_with clauses after its
14432 specification has been analyzed (as documented in AI-262.TXT).
14434 * sem_ch8.adb (Has_Private_With): New function. Determines if the
14435 current compilation unit has a private with on a given entity.
14436 (Find_Direct_Name): Detect the Beaujolais problem described in
14439 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
14440 provides the functionality of the function Is_Ancestor that was
14441 previously available in sem_ch10. It has been renamed to avoid
14444 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
14446 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14448 * utils.c (build_vms_descriptor): Use SImode pointers.
14450 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
14452 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
14454 2004-05-14 GNAT Script <nobody@gnat.com>
14456 * Make-lang.in: Makefile automatically updated
14458 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
14460 Renaming of target specific files for clarity
14462 * Makefile.in: Rename GNAT target specific files.
14464 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
14465 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
14466 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
14467 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
14468 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
14469 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
14470 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
14471 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
14472 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
14473 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
14474 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
14475 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
14476 51osinte.adb, 51osinte.ads, 51system.ads,
14477 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
14478 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
14479 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
14480 56tpopsp.adb, 57system.ads, 58system.ads,
14481 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
14482 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
14483 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
14484 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
14485 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
14486 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
14487 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
14488 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
14489 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
14490 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
14491 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
14492 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
14493 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
14494 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
14495 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
14496 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
14497 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
14498 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
14499 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
14500 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
14501 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
14502 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
14503 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
14504 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
14505 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
14506 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
14507 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
14508 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
14509 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
14510 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
14511 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
14512 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
14513 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
14514 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
14515 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
14516 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
14517 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
14518 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
14519 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
14520 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
14522 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
14523 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
14524 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
14525 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
14526 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
14527 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
14528 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
14529 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
14530 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
14531 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
14532 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
14533 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
14534 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
14535 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
14536 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
14537 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
14538 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
14539 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
14540 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
14541 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
14542 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
14543 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
14544 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
14545 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
14546 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
14547 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
14548 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
14549 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
14550 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
14551 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
14552 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
14553 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
14554 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
14555 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
14556 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
14557 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
14558 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
14559 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
14560 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
14561 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
14562 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
14563 s-osinte-vms.ads, s-osinte-vxworks.adb,
14564 s-osinte-vxworks.ads, s-osprim-mingw.adb,
14565 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
14566 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
14567 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
14568 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
14569 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
14570 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
14571 s-stchop-vxworks.adb, s-taprop-dummy.adb,
14572 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
14573 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
14574 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
14575 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
14576 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
14577 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
14578 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
14579 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
14580 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
14581 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
14582 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
14583 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
14584 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
14585 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
14586 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
14587 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
14588 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
14589 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
14590 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
14591 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
14592 system-irix-o32.ads, system-linux-x86_64.ads,
14593 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
14594 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
14595 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
14596 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
14597 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
14598 system-vxworks-mips.ads, system-vxworks-ppc.ads,
14599 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
14602 2004-05-13 Zack Weinberg <zack@codesourcery.com>
14604 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
14606 2004-05-13 Diego Novillo <dnovillo@redhat.com>
14608 Merge from tree-ssa-20020619-branch.
14610 * config-lang.in (boot_language, build_by_default): Set
14612 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
14613 (max_size): Add static chain op for call_expr.
14615 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
14618 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
14620 2004-05-11 Roger Sayle <roger@eyesopen.com>
14622 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
14625 2004-05-10 Doug Rupp <rupp@gnat.com>
14627 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
14630 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
14632 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
14634 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
14635 Fixes undefined symbols in IA64 gnatlib.
14637 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
14639 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
14640 Short_Address). This will be moved to system.auxdec.
14642 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
14644 * sem_util.adb: Replace test for presence of a node that is always
14645 present with a call to Discard_Node.
14647 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
14648 Analyze on the library unit node after generation of distribution stub
14649 constructs. The call was a no-op because Unit_Node has already been
14650 Analyzed, and the tree fragments for the distribution stubs are
14651 analyzed as they are inserted in Exp_Dist.
14652 Update comment regarding to distribution stubs to reflect that we
14653 do not generate stub in separate files anymore.
14655 * einfo.ads: Clarify the fact that a tagged private type has the
14656 E_Record_Type_With_Private Ekind.
14658 * erroutc.adb: Minor reformatting
14660 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
14661 values if line length is increased using -gnatyM (noticed during code
14664 * eval_fat.adb: Minor reformatting
14665 Put spaces around exponentiation operator
14667 2004-05-10 Ed Schonberg <schonberg@gnat.com>
14670 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
14671 has been rewritten as an explicit dereference, retrieve type of
14672 original node to check for possibly unconstrained record type.
14674 2004-05-10 Ed Schonberg <schonberg@gnat.com>
14676 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
14677 overriding, use the operation of the parent unconditionally.
14679 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
14680 operation when either operand is a literal, to avoid further
14683 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
14684 overridden by a previous explicit declaration, mark the previous entity
14687 * sem_disp.adb (Check_Dispatching_Operation): New predicate
14688 Is_Visibly_Controlled, to determine whether a declaration of a
14689 primitive control operation for a derived type overrides an inherited
14690 one. Add warning if the explicit declaration does not override.
14692 2004-05-10 Vincent Celier <celier@gnat.com>
14694 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
14695 some cases when the sources are no longer present.
14697 * make.adb (Collect_Arguments): Fail if an external source, not part
14698 of any project need to be compiled, when switch -x has not been
14701 * makeusg.adb: Document new switch -x
14703 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
14704 defaulted to False.
14706 * switch-m.adb (Scan_Make_Switches): New switch -x
14708 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
14709 gnatmake switch -x.
14711 * gnat_ugn.texi: Document new gnatmake switch -x
14713 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
14715 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
14717 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
14718 (process_attributes): Likewise.
14720 2004-05-10 Joel Brobecker <brobecker@gnat.com>
14722 * s-inmaop.ads: Fix spelling mistake in one of the comments.
14724 2004-05-10 Robert Dewar <dewar@gnat.com>
14726 * gnat_ugn.texi: Document that for config pragma files, the maximum
14727 line length is always 32767.
14729 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
14730 literals is now allowed.
14732 * gnat-style.texi: Remove statement about splitting long lines before
14733 an operator rather than after, since we do not follow this rule at all.
14734 Clarify rule (really lack of rule) for spaces around exponentiation
14736 * sem_elim.adb: Allow concatenation of string literals as well as a
14737 single string literal for pragma arguments.
14739 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
14741 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
14742 written for append case.
14744 * frontend.adb: Changes to avoid checking max line length in config
14747 * g-os_lib.ads: Minor reformatting
14749 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
14750 wrong in any case. Instead use standard value. Noticed during code
14753 * opt.ads (Max_Line_Length): New field, used to implement removal of
14754 limitation on length of lines when scanning config pragma files.
14756 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
14757 makeutl.ads, makeutl.adb: Minor reformatting
14759 * scn.adb: Do not check line length while scanning config pragma files
14760 Do not check line length while scanning out license information
14762 * scng.adb: Changes to avoid line length checks while parsing config
14765 2004-05-10 GNAT Script <nobody@gnat.com>
14767 * Make-lang.in: Makefile automatically updated
14769 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
14771 * osint.adb (Find_Program_Name): Fix handling of VMS version
14774 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
14776 * g-os_lib.ads (Invalid_Time): New constant
14778 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
14779 return OS_Time instead of time_t to match what is imported by Ada.
14780 Now return -1 if the file doesn't exist, instead of a random value
14782 2004-05-05 Robert Dewar <dewar@gnat.com>
14784 * usage.adb: Add line for -gnatR?s switch
14786 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
14788 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
14789 and for Match (Data_First, Data_last)
14791 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
14792 written when we are dealing with multi-unit files.
14794 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
14796 * Makefile.in: Remove unused targets and variables.
14798 2004-05-05 Vincent Celier <celier@gnat.com>
14800 * switch-m.adb: New gnatmake switch -eI
14802 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
14803 of new gnatmake switch -eInnn.
14805 * makegpr.adb: Take into account new parameters Index and Src_Index in
14808 * clean.adb: Implement support for multi-unit sources, including new
14811 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
14814 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
14815 (Extract_From_Q): New out parameter Index
14816 (Mark, Is_Marked): Subprograms moved to Makeutl
14817 (Switches_Of): New parameter Source_Index
14818 (Add_Switch): New parameter Index
14819 (Check): New parameter Source_Index
14820 (Collect_Arguments): New parameter Source_Index
14821 (Collect_Arguments_And_Compile): New parameter Source_Index
14822 (Compile): New parameter Source_Index
14823 Put subprograms in alphabetical order
14824 Add support for multi-source sources, including in project files.
14826 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
14827 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
14830 * makeusg.adb: New gnatmake switch -eInnn
14832 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
14835 * opt.ads (Main_Index): New variable, defaulted to 0.
14837 * osint.ads, osinte.adb (Add_File): New parameter Index
14838 (Current_Source_Index): New function
14840 * prj.adb: Take into account new components Index and Src_Index
14842 * prj.ads (String_Element): New component Index
14843 (Variable_Value): New component Index
14844 (Array_Element): New component Src_Index
14846 * prj-attr.adb: Indicate that optional index may be specified for
14847 attributes Main, Executable, Spec, Body and some of Switches.
14849 * prj-attr.ads (Attribute_Kind): New values for optional indexes
14850 (Attribute_Record): New component Optional_Index
14852 * prj-com.ads (File_Name_Data): New component Index
14854 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
14856 * prj-env.adb (Put): Output optional index
14858 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
14859 attributes Spec and Body.
14861 * prj-nmsc.adb: Process optional indexes
14863 * prj-pp.adb: Ouput "at" for optional indexes
14865 * prj-proc.adb: Take into account optional indexes
14867 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
14868 Optional_Index. For string literal,
14869 process optional index when Optional_Index is True.
14870 (Parse_Expresion): New Boolean parameter Optional_Index
14872 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
14873 (Set_Source_Index_Of): New procedure
14875 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
14878 * prj-util.ads (Executable_Of): New parameter Index
14879 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
14880 New parameter Src_Index, defaulted to 0.
14882 2004-05-05 Ed Schonberg <schonberg@gnat.com>
14885 * sem_ch3.adb (Access_Definition): If this is an access parameter
14886 whose designated type is imported through a limited_with clause, do
14887 not add the enclosing subprogram to the list of private dependents of
14890 2004-05-05 Ed Schonberg <schonberg@gnat.com>
14893 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
14894 a limited_with clause, and the other is its non-limited view.
14896 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
14898 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
14900 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
14901 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
14902 Stand.Boolean_Literals to produce references to entities
14903 Standard_False and Standard_True from compile-time computed boolean
14906 * stand.ads (Boolean_Literals): New variable, provides the entity
14907 values for False and True, for use by the expander.
14909 2004-05-05 Doug Rupp <rupp@gnat.com>
14911 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
14912 5vinmaop.adb: Unchecked convert Short_Address vice Address
14914 * adaint.c, raise.c: Caste CRTL function return value
14915 to avoid gcc error on 32/64 bit IVMS.
14917 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
14920 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
14922 * 5qsystem.ads (Address): Declare as Long_Integer
14923 (Short_Address): Declare as 32 bit subtype of Address
14924 Declare abstract address operations to avoid gratuitous ambiguities.
14926 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
14928 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
14929 instead of the old Boolean_Entry_Barriers.
14930 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
14932 2004-05-05 GNAT Script <nobody@gnat.com>
14934 * Make-lang.in: Makefile automatically updated
14936 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
14938 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
14940 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
14943 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
14944 alone. Replacing object references by literals is inappropriate in a
14945 so low level context.
14947 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
14949 * a-exexpr.adb: Add comments
14951 2004-05-03 Joel Brobecker <brobecker@gnat.com>
14953 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
14954 declare the Ancestor_Tags array in Type_Specific_Data with a small size
14955 without risking a bounds check error when accessing one of its
14957 (Type_Specific_Data): Define Ancestor_Tags as a small array.
14958 This prevents us from hitting a limitation during the debug info
14959 generation when using stabs.
14961 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
14963 This prevents us from hitting a limitation during the debug info
14964 generation when using stabs.
14966 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
14968 lang-specs.h: Remove -gnatz* from specs.
14970 2004-05-03 Vincent Celier <celier@gnat.com>
14972 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
14974 * Make-lang.in, Makefile.in: Add gprmake
14976 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
14978 * sem_aggr.adb: Fix typo in comment.
14980 2004-05-03 Robert Dewar <dewar@gnat.com>
14982 * make.adb: Minor reformatting
14984 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
14986 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
14987 so that it works when address is not a private type.
14989 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
14990 properly with rewritten unchecked conversions. This prevents
14991 order-of-elaboration issues that can otherwise arise.
14992 (Minimum_Size): Don't check size of access types under VMS
14994 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
14995 interpretations of integer literals as type System.Address.
14997 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
14998 (Is_Descendent_Of): New function
15000 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
15002 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
15003 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
15004 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
15006 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
15007 of the old Max_Entry_Queue_Depth.
15009 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
15010 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
15011 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
15013 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
15014 New entry for proper handling of Max_Entry_Queue_Depth.
15015 New entry for proper handling of No_Dynamic_Interrupts.
15017 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
15018 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
15019 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
15020 the GNAT specific restriction Max_Entry_Queue_Depth.
15021 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
15022 the GNAT specific restriction No_Dynamic_Interrupts.
15024 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
15025 instead of the old Boolean_Entry_Barriers.
15026 Use the new restriction No_Dynamic_Attachment instead of the old
15027 No_Dynamic_Interrupts.
15029 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
15030 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
15032 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
15033 of the old Max_Entry_Queue_Depth.
15035 2004-05-03 GNAT Script <nobody@gnat.com>
15037 * Make-lang.in: Makefile automatically updated
15039 2004-04-29 Ed Schonberg <schonberg@gnat.com>
15041 * checks.adb (Enable_Range_Check): If the prefix of an index component
15042 is an access to an unconstrained array, perform check unconditionally.
15044 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15046 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
15049 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
15051 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
15052 alternate stack setting. There was no support for the tasking cases
15053 and the changes eventually caused a number of side-effect failures in
15054 the non-tasking case too.
15056 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
15058 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
15061 2004-04-29 Vincent Celier <celier@gnat.com>
15063 * make.adb (Gnatmake): Increase max size of argument array for
15064 gnatbind for the potential addition of -F.
15065 If there are Stand-Alone Library projects, invoke gnatbind with -F to
15066 be sure that elaboration flags will be checked.
15068 * switch-c.adb: Correct call to Scan_Pos for -gnateI
15070 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
15072 * sem_warn.adb (Check_References): Move '<access-variable> may be
15073 null' warning out of under Warn_On_No_Value_Assigned.
15075 2004-04-29 Ed Falis <falis@gnat.com>
15077 * gnat_ugn.texi: Fixed texi error
15079 2004-04-29 Robert Dewar <dewar@gnat.com>
15081 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
15082 abstract operations if they come from predefined files.
15084 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
15087 * s-addope.adb: Correct obvious error in mod function
15089 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
15091 * Makefile.in: Add target pairs for powerpc darwin*
15094 * a-intnam-darwin.ads, s-osinte-darwin.adb,
15095 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
15097 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
15099 * Makefile.in: Add target macro definitions for s390*-linux*.
15100 * system-linux-s390.ads: New file.
15101 * system-linux-s390x.ads: New file.
15103 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
15105 * gnat_ugn.texi: Correct argument to @setfilename.
15107 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
15109 * a-exexpr.adb (Unwind_Word): New data type.
15110 (Unwind_Exception): Use it as type of Private1 and Private2.
15112 * raise.c (db_action_for): Fix debug printf.
15114 2004-04-27 Ed Schonberg <schonberg@gnat.com>
15116 * a-wtmoio.ads: Formal type must be a modular type, not a signed
15119 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15121 * decl.c (gnat_to_gnu_entity, case object): Call
15122 __builtin_update_setjmp_buf.
15124 * gigi.h (update_setjmp_buf): Deleted.
15125 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
15127 * misc.c: (update_setjmp_buf): Deleted.
15129 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
15130 around block of RTL.
15132 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
15134 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
15136 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
15137 subprogram for which no pragma All_Calls_Remote applies, store the
15138 address of the real subprogram in the underlying record type, so local
15139 dereferences do not go through the PCS.
15141 2004-04-26 Robert Dewar <dewar@gnat.com>
15143 * i-c.ads: Add some type qualifications to avoid ambiguities when
15144 compiling with s-auxdec.ads and a non-private address type.
15146 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
15148 * Makefile.rtl: Fix error in previous check-in:
15149 Add s-addope.o to non tasking object list (rather than tasking object
15152 2004-04-26 Javier Miranda <miranda@gnat.com>
15154 * sem_aggr.adb: Fix typo in comments
15155 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
15156 Required to check the null-exclusion attribute.
15158 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
15159 case of anonymous access types in record and array components. For a
15160 component definition the level is the same of the enclosing composite
15163 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
15164 that are anonymous access types the level of accessibility depends on
15165 the enclosing type declaration. In order to have this information, set
15166 the scope of the anonymous access type to the enclosing record type
15168 (Array_Type_Declaration): In case of components that are anonymous
15169 access types the level of accessibility depends on the enclosing type
15170 declaration. In order to have this information, set the scope of the
15171 anonymous access type to the enclosing array type declaration.
15173 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
15176 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
15177 renaming of anonymous access-to-constant types allowed if and only if
15178 the renamed object is access-to-constant.
15180 * sem_util.adb (Type_Access_Level): In case of anonymous access types
15181 that are component_definition or discriminants of a nonlimited type,
15182 the level is the same as that of the enclosing component type.
15184 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
15186 * sem_elim.adb: Some minor code reorganization from code reading. Fix
15187 misprint in the function name (File_Name_Match).
15189 2004-04-23 Laurent GUERBY <laurent@guerby.net>
15191 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
15194 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15196 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
15198 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
15200 * adaint.c (__gnat_try_lock): No longer requires that the parent
15201 directory be writable, the directory itself is enough.
15202 (gnat_is_absolute_path): Change profile, so that the call from
15203 GNAT.OS_Lib can be made more efficient.
15205 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
15206 from GNAT.OS_Lib can be made more efficient.
15208 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
15209 one copy of the file name. Found by code reading.
15211 2004-04-23 Vincent Celier <celier@gnat.com>
15213 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
15214 Correct documentation on gnatmake switches transmitted to the compiler
15216 * ali.ads: Minor comment fix
15218 2004-04-23 Javier Miranda <miranda@gnat.com>
15220 * sem_ch6.adb: (Confirming Types): Code cleanup
15222 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
15223 subprogram types: E_Anonymous_Access_Subprogram_Type and
15224 E_Anonymous_Access_Protected_Subprogram_Type.
15226 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
15228 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
15229 whether a pragma All_Calls_Remote applies to the subprogram on which
15231 No functional change is introduced by this revision; the new parameter
15232 will be used to allow calls to local RCI subprograms to be optimized
15233 to not use the PCS in the case where no pragma All_Calls_Remote applies,
15234 as is already done in the PolyORB implementation of the DSA.
15236 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
15237 whether a pragma All_Calls_Remote applies to the subprogram on which
15239 No functional change is introduced by this revision; the new parameter
15240 will be used to allow calls to local RCI subprograms to be optimized
15241 to not use the PCS in the case where no pragma All_Calls_Remote applies,
15242 as is already done in the PolyORB implementation of the DSA.
15244 2004-04-23 Robert Dewar <dewar@gnat.com>
15246 * Makefile.rtl: Add entry for s-addope.o in run time library list
15247 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
15248 * s-addope.ads, s-addope.adb: New files.
15250 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
15251 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
15252 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
15253 System.Address to be non-private and signed.
15255 * sem_elim.adb: Minor reformatting (fairly extensive)
15256 Some minor code reorganization from code reading
15257 Add a couple of ??? comments
15259 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15261 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
15262 (tree_transform, case N_If_Statement): Remove non-determinism.
15264 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
15266 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
15268 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
15269 Eliminate' section.
15271 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
15272 no longer used as a parameter name for Eliminate pragma).
15274 2004-04-22 Laurent GUERBY <laurent@guerby.net>
15276 PR optimization/14984
15277 PR optimization/14985
15278 * trans.c (gigi): Fix non determinism leading to bootstrap
15279 comparison failures.
15281 2004-04-21 Pascal Obry <obry@gnat.com>
15283 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
15284 passed to spawnvp() to properly handle program pathname with spaces on
15287 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
15289 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
15290 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
15291 unlocked in case of exceptions.
15293 2004-04-21 Joel Brobecker <brobecker@gnat.com>
15295 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
15296 This function does not exist anymore.
15298 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
15300 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
15302 * link.c: Move variables to the __gnat name space.
15304 * Makefile.in: list link.o explicitly when needed.
15306 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
15308 2004-04-21 Javier Miranda <miranda@gnat.com>
15310 * einfo.adb (Original_Access_Type): New subprogram
15311 (Set_Original_Access_Type): New subprogram
15312 (Write_Field21_Name): Write the name of the new field
15314 * einfo.ads (Original_Access_Type): New field present in access to
15316 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
15317 E_Anonymous_Access_Protected_Subprogram_Type.
15319 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
15322 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
15323 to anonymous access to subprogram types.
15325 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
15326 to subprogram types.
15328 * sem_ch3.adb (Access_Definition): Complete decoration of entities
15329 corresponding to anonymous access to subprogram types.
15330 (Analyze_Component_Declaration): Add new actual to the call to
15331 subprogram replace_anonymous_access_to_protected_subprogram.
15332 (Array_Type_Declaration): Add new actual to the call to subprogram
15333 replace_anonymous_access_to_protected_subprogram.
15334 (Process_Discriminants): Add new actual to the call to subprogram
15335 replace_anonymous_access_to_protected_subprogram.
15336 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
15338 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
15341 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
15342 access to subprogram types.
15344 * sem_util.adb (Has_Declarations): Addition of package_specification
15347 2004-04-21 Ed Schonberg <schonberg@gnat.com>
15349 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
15350 inlined flags to renamed entity only if in current unit.
15352 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
15354 * s-parint.ads: Add DSA implementation marker.
15356 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
15357 value of System.Partition_Interface.DSA_Implementation to determine
15358 what version of the distributed systems annex is available (no
15359 implementation, GLADE, or PolyORB).
15361 2004-04-21 Joel Brobecker <brobecker@gnat.com>
15363 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
15365 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15367 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
15368 with new type if alias sets differ.
15369 Fixes ACATS c41103b.
15371 2004-04-21 Vincent Celier <celier@gnat.com>
15373 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
15374 Add array Lang_Args for the language specific compiling argument
15377 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
15379 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
15381 * gnat_rm.texi: Update the descripton of the Eliminate pragma
15382 according to the recent changes in the format of the parameters of the
15383 pragma (replacing Homonym_Number with Source_Location).
15385 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
15387 * 5isystem.ads: Removed, unused.
15389 * gnat_rm.texi: Redo 1.13 change.
15391 2004-04-19 Robert Dewar <dewar@gnat.com>
15393 * s-stoele.ads: Clean up definition of Storage_Offset (the new
15394 definition is cleaner, avoids the kludge of explicit Standard operator
15395 references, and also is consistent with a visible System.Address with
15396 no visible operations.
15398 * s-geveop.adb: Add declarations to avoid assumption of visible
15399 operations on type System.Address (since these might not be available
15400 if Address is a non-private type for which the operations
15401 are made abstract).
15403 * sem_eval.adb: Minor reformatting
15405 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
15406 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
15407 reformatting (new function spec format).
15409 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
15410 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
15411 s-caun64.adb: Add declarations to avoid assumption of visible
15412 operations on type System.Address (since these might not be available
15413 if Address is a non-private type for which the operations are made
15416 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
15418 * exp_intr.adb: Minor comment update
15420 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
15422 * 5omastop.adb: Add declarations to avoid assumption of visible
15423 operations on type System.Address (since these might not be available
15424 if Address is a non-private type for which the operations
15425 are made abstract).
15427 2004-04-19 Vincent Celier <celier@gnat.com>
15429 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
15431 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
15434 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
15436 Call Check with Process_Languages.
15437 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
15438 with Process_Languages.
15439 (Recursive_Check): New Boolean parameter Process_Languages. Call
15440 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
15443 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
15445 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
15446 parameter Ada_Main, defaulted to True.
15447 Check for Ada specific characteristics only when Ada_Main is True.
15449 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
15451 * prj.adb: (Project_Empty): Add new Project_Data components.
15453 * prj.ads: New types and tables for non Ada languages.
15454 (Project_Data): New components Languages, Impl_Suffixes,
15455 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
15456 Include_Path, Include_Data_Set.
15458 * prj-env.ads, prj-env.adb: Minor reformatting
15460 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
15461 Put subprograms in alphabetical order
15463 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
15464 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
15467 * mlib-prj.adb: Back out modification in last version, as they are
15469 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
15471 * make.adb: (Mains): Moved to package Makeutl
15472 (Linker_Opts): Moved to package Makeutl
15473 (Is_External_Assignment): Moved to package Makeutl
15474 (Test_If_Relative_Path): Moved to package Makeutl
15475 (Gnatmake): Move sorting of linker options to function
15476 Makeutl.Linker_Options_Switches.
15478 * makeutl.ads, makeutl.adb: New files.
15480 * Makefile.in: Add makeutl.o to the object files for gnatmake
15482 * makeusg.adb: Add line for new switch -eL.
15484 * gnatls.adb (Image): New function.
15485 (Output_Unit): If in verbose mode, output the list of restrictions
15486 specified by pragmas Restrictions.
15488 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
15491 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
15492 needed, to put it in the range 1970 (included) - 2026 (excluded).
15493 (Time_Of): Do not shift Unix_Min_Year (1970).
15494 Shift the date by multiple of 56 years, if needed, to put it in the
15495 range 1970 (included) - 2026 (excluded).
15497 * adaint.h, adaint.c (__gnat_set_executable): New function.
15499 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15501 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
15502 and pop GC context.
15503 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
15504 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
15505 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
15506 (tree_transform, case N_Code_Statement): Likewise.
15507 (gnat_expand_stmt, case LABEL_STMT): Don't look at
15508 LABEL_STMT_FIRST_IN_EH.
15509 (gnat_expand_stmt, case ASM_STMT): New case.
15511 * utils2.c (build_unary_op): Properly set TREE_READONLY of
15512 UNCONSTRAINED_ARRAY_REF.
15514 * utils.c (poplevel): Temporarily push/pop GC context around inline
15515 function expansion.
15517 * decl.c (maybe_variable): Properly set TREE_READONLY of
15518 UNCONSTRAINED_ARRAY_REF.
15519 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
15521 * ada-tree.def: (ASM_STMT): New.
15523 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
15524 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
15525 ASM_STMT_INPUT): New.
15526 (ASM_STMT_CLOBBER): Likewise.
15528 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
15530 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
15531 general rcheck mechanism to raise Program_Error for E.4(18), instead
15532 of a custom raiser in System.Partition_Interface.
15533 Part of general cleanup work before PolyORB integration.
15535 * snames.ads, snames.adb: Add new runtime library entities and names
15538 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
15540 (Build_Subprogram_Id): New subprogram provided by exp_dist
15541 Code reorganisation in preparation for PolyORB integration.
15543 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
15545 (Build_Subprogram_Id): New subprogram provided by exp_dist
15547 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
15548 actual parameter types for call to dereference of an
15549 access-to-subprogram type.
15551 * rtsfind.ads: Add new runtime library entities and names for PolyORB
15554 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
15555 instead, which has the same behaviour here since we never pass it a
15558 * link.c (run_path_option, Solaris case): Use -Wl, as for other
15561 * Makefile.in: adjust object file lists for gnatlink and gnatmake
15562 to account for new dependency upon Interfaces.C.Strings + link.o
15563 For x86 FreeBSD, use 86numaux.
15565 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
15566 from Mlib.Tgt to Mlib.
15568 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
15569 target-independent.
15571 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
15572 target-specific versions of this subprogram, now implemented as a
15573 target-independent function in Mlib.
15575 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
15576 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
15577 (Linker_Library_Path_Option): Remove target-specific versions of this
15578 subprogram, now implemented as a target-independent function in Mlib.
15580 * atree.adb: (Allocate_Initialize_Node): New subprogram.
15581 Factors out node table slots allocation.
15582 (Fix_Parents): New subprogram.
15583 Encapsulate the pattern of fixing up parent pointers for syntactic
15584 children of a rewritten node.
15585 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
15586 (Rewrite): Use New_Copy when creating saved copy of original node.
15587 (Replace): Use Copy_Node to copy nodes.
15589 2004-04-19 Javier Miranda <miranda@gnat.com>
15591 * sprint.adb (Sprint_Node_Actual): Give support to the new
15592 Access_To_Subprogram node available in Access_Definition nodes. In
15593 addition, give support to the AI-231 node fields: null-exclusion,
15594 all-present, constant-present.
15596 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
15598 * sinfo.ads, sinfo.adb:
15599 New field Access_To_Subprogram_Definition in Access_Definition nodes
15601 * sem_ch6.adb (Process_Formals): Move here the code that creates and
15602 decorates internal subtype declaration corresponding to the
15603 null-excluding formal. This code was previously in Set_Actual_Subtypes.
15604 In addition, carry out some code cleanup on this code. In case of
15605 access to protected subprogram call
15606 Replace_Anonymous_Access_To_Protected_Subprogram.
15607 (Set_Actual_Subtypes): Code cleanup.
15609 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
15610 Find_Type in case of anonymous access renamings. Add warning in case of
15611 null-excluding attribute used in anonymous access renaming.
15613 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
15616 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
15618 (Access_Definition): In case of anonymous access to subprograms call
15619 the corresponding semantic routine to decorate the node.
15620 (Access_Subprogram_Declaration): Addition of some comments indicating
15621 some code that probably should be added here. Detected by comparison
15622 with the access_definition subprogram.
15623 (Analyze_Component_Declaration): In case of access to protected
15624 subprogram call Replace_Anonymous_Access_To_Protected.
15625 (Array_Type_Declaration): In case of access to protected subprogram call
15626 Replace_Anonymous_Access_To_Protected_Subprogram.
15627 (Process_Discriminants): In case of access to protected subprogram call
15628 Replace_Anonymous_Access_To_Protected_Subprogram.
15630 * par.adb (P_Access_Definition): New formal that indicates if the
15631 null-exclusion part was present.
15632 (P_Access_Type_Definition): New formal that indicates if the caller has
15633 already parsed the null-excluding part.
15635 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
15636 (P_Identifier_Declarations): Code cleanup and give support to renamings
15637 of anonymous access to subprogram types.
15638 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
15639 (P_Array_Type_Definition): Give support to AI-254.
15640 (P_Component_Items): Give support to AI-254.
15641 (P_Access_Definition): New formal that indicates if the header was
15642 already parsed by the caller.
15643 (P_Access_Type_Definition): New formal that indicates if the caller has
15644 already parsed the null-excluding part.
15646 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
15647 call to P_Access_Definition.
15649 2004-04-19 Geert Bosch <bosch@gnat.com>
15651 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
15652 the delicate semantics of floating-point to integer conversion.
15653 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
15655 * eval_fat.adb (Machine_Mantissa): Moved to spec.
15656 (Machine_Radix): New function.
15658 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
15660 (Machine_Radix): New function also for use in conversion checks.
15662 2004-04-19 Ed Schonberg <schonberg@gnat.com>
15664 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
15666 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
15667 to decorate the access-to-protected subprogram and the equivalent type.
15669 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
15670 to anonymous access to subprogram types.
15672 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
15673 constant-folding, for legality checks in contexts that require an RM
15676 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
15677 temporary but stack checking is not enabled, increment serial number
15678 to so that symbol generation is consistent with and without stack
15681 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
15682 independent on whether stack checking is enabled, caller must check
15683 the corresponding flag.
15685 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
15687 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
15688 parent if it has discriminants.
15689 (Build_Derived_Private_Type): Constructed full view does
15690 not come from source.
15691 (Process_Discriminants): Default discriminants on a tagged type are
15692 legal if this is the internal completion of a private untagged
15695 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
15696 no constraint checks, because it corresponds to an existing object.
15698 * sem_prag.adb (Process_Convention): Pragma applies
15699 only to subprograms in the same declarative part, i.e. the same unit,
15700 not the same scope.
15702 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
15703 ignore type mismatch on a numeric conversion if expression comes from
15706 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
15708 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
15709 Homonym_Number parameter, add processing for Source_Location parameter
15711 (Check_Eliminated): Remove the check for homonym numbers, add the check
15712 for source location traces.
15714 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
15715 with Arg_Source_Location corresponding to the changes in the format of
15718 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
15719 Eliminate pragma corresponding to the changes in the format of the
15720 pragma: Homonym_Number is replaced with Source_Location, two ways of
15721 distinguishing homonyms are mutially-exclusive.
15723 2004-04-19 Joel Brobecker <brobecker@gnat.com>
15725 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
15727 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
15728 No_Dollar_In_Label, no longer necessary, as it is always True.
15729 (Strip_Suffixes): Likewise.
15731 2004-04-19 Gary Dismukes <dismukes@gnat.com>
15733 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
15734 modulus for compatibility with size clause on targets with 16-bit
15737 * layout.adb (Discrimify): In the case of private types, set Vtyp to
15738 full type to fix type mismatches on calls to size functions for
15739 discriminant-dependent array components.
15741 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
15743 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
15746 2004-04-19 Pascal Obry <obry@gnat.com>
15748 * mdll-utl.adb (Locate): New version is idempotent.
15750 2004-04-17 Laurent Guerby <laurent@guerby.net>
15752 PR ada/14988 (partial)
15753 * impunit.adb: Fix typo.
15755 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
15757 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
15758 and install-rts-cert targets. Remove all gnatlib and gnattools
15759 targets and all other rts-* targets (moved to libada). Remove (now)
15760 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
15761 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
15763 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15765 * trans.c (tree_transform): Shortcut returning error_mark_node for
15766 statements in annotate_only_mode.
15767 (tree_transform, case N_Label, case N_Return_Statement,
15768 N_Goto_Statement): Make statement tree instead of generating code.
15769 (tree_transform, case N_Assignment_Statement): No longer check
15770 type_annotate_only.
15771 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
15773 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
15775 (gnat_to_gnu): Collect any RTL generated and deal with it.
15776 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
15777 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
15778 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
15780 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
15782 * ada-tree.def (EXPR_STMT): Fix typo in name.
15783 (BLOCK_STMT, IF_STMT): New nodes.
15785 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
15786 LABEL_STMT_FIRST_IN_EH): New macros.
15787 (RETURN_STMT_EXPR): Likewise.
15789 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
15790 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
15792 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
15794 * atree.ads: Correct documentation on extended nodes.
15796 * link.c: Set run_path_option for FreeBSD.
15798 2004-04-08 Vincent Celier <celier@gnat.com>
15800 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
15801 one of the ALI file, do not link with DEC lib.
15803 * par.adb Remove the last two characters ("%s" or "%b") when checking
15804 if a language defined unit may be recompiled.
15806 2004-04-08 Ed Schonberg <schonberg@gnat.com>
15808 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
15809 removal of abstract operation leaves no possible interpretation for
15812 * sem_eval.adb (Eval_Qualified_Expression): Use
15813 Set_Raises_Constraint_Error on node when needed, so that it does not
15814 get optimized away by subsequent optimizations.
15816 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
15817 operands even when they are not wrapped in a type conversion.
15819 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
15821 * sem_prag.adb (Set_Exported): Warn about making static as result of
15822 export only when the export is coming from source. This may be not
15823 be true e.g. on VMS where we expand export pragmas for exception codes
15824 together with imported or exported exceptions, and we don't want the
15825 user to be warned about something he didn't write.
15827 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
15829 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
15830 duplication between normal entities and those declared as renamings.
15831 No functional change.
15833 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
15834 inline functions returning an unconstrained result.
15836 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
15838 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
15839 conform to what other front-ends do.
15841 2004-04-08 Doug Rupp <rupp@gnat.com>
15843 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
15846 2004-04-06 Pascal Obry <obry@gnat.com>
15848 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
15850 * osint.adb (Program_Name): Do not look past a directory separator.
15852 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
15854 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
15856 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
15857 requirement for preserving a copy of the original assignment node.
15859 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
15861 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
15863 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
15866 2004-04-06 Ed Schonberg <schonberg@gnat.com>
15868 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
15869 operator calls in functional notation, and apply
15870 Universal_Interpretation to operands, not to their type.
15872 2004-04-06 Robert Dewar <dewar@gnat.com>
15874 * 5wdirval.adb: Minor reformatting
15876 2004-04-06 Ed Falis <falis@gnat.com>
15878 * gnat_rm.texi: Improve a reference to the GCC manual
15880 2004-04-05 Vincent Celier <celier@gnat.com>
15882 * adaint.h, adaint.c: Add function __gnat_named_file_length
15884 * impunit.adb: Add Ada.Directories to the list
15886 * Makefile.in: Add VMS and Windows versions of
15887 Ada.Directories.Validity package body.
15889 * Makefile.rtl: Add a-direct and a-dirval
15891 * mlib-tgt.ads: Minor comment update.
15893 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
15894 a-direct.ads, a-direct.adb: New files.
15896 2004-04-05 Vincent Celier <celier@gnat.com>
15899 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
15900 just to the compiler.
15902 2004-04-05 Robert Dewar <dewar@gnat.com>
15904 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
15905 returned string is 1.
15907 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
15909 * eval_fat.ads: Minor reformatting
15911 * g-curexc.ads: Document that lower bound of returned string values
15914 * gnatlink.adb: Add ??? comment for previous change
15915 (need to document why this is VMS specific)
15917 * s-stoele.ads: Minor reformatting
15919 * tbuild.ads: Minor reformatting throughout (new function specs)
15921 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
15924 * scng.adb: Minor reformatting
15926 2004-04-05 Geert Bosch <bosch@gnat.com>
15928 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
15929 (Leading_Part): Still perform truncation to machine number if the
15930 specified radix_digits is greater or equal to machine_mantissa.
15932 2004-04-05 Javier Miranda <miranda@gnat.com>
15934 * par-ch3.adb: Complete documentation of previous change
15935 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
15936 (aliased must appear before constant).
15938 * par-ch4.adb: Complete documentation of previous change.
15940 * par-ch6.adb: Complete documentation of previous change.
15942 * sinfo.ads: Fix typo in commment.
15944 2004-04-05 Ed Schonberg <schonberg@gnat.com>
15946 * sem_ch3.adb (Inherit_Components): If derived type is private and has
15947 stored discriminants, use its discriminants to constrain parent type,
15948 as is done for non-private derived record types.
15950 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
15951 Ada 2005 AI-310: an abstract non-dispatching operation is not a
15952 candidate interpretation in an overloaded call.
15954 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
15955 expression is Null and target type is not an access type (e.g. a
15956 non-private address type).
15958 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
15960 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
15961 statement whose right-hand side is an inlined call, save a copy of the
15962 original assignment subtree to preserve enough consistency for
15963 Analyze_Assignment to proceed.
15965 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
15966 complete assignment subtree which is now unnecessary, as the expansion
15967 of inlined call has been improved to preserve a consistent assignment
15968 tree. Note_Possible_Modification must be called only
15969 after checks have been applied, or else unnecessary checks will
15972 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
15973 of explicit dereferences that do not Come_From_Source:
15974 - be selective on cases where we must go back to the dereferenced
15975 pointer (an assignment to an implicit dereference must not be
15976 recorded as modifying the pointer);
15977 - do not rely on Original_Node being present (Analyze_Assignment
15978 calls Note_Possible_Modification on a copied tree).
15980 * sem_warn.adb (Check_References): When an unset reference to a pointer
15981 that is never assigned is encountered, prefer '<pointer> may be null'
15982 warning over '<pointer> is never assigned a value'.
15984 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
15986 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
15989 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
15991 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
15992 libexc. We currently don't reference anything in this library and
15993 linking it in triggers linker warnings we don't want to see.
15995 * init.c: Update comments.
15997 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15999 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
16000 * utils.c (create_field_decl): Likewise.
16001 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
16003 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
16005 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
16006 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
16007 Add info directory entry and category.
16009 2004-04-02 Jan Hubicka <jh@suse.cz>
16011 * utils.c: Include function.h
16012 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
16014 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
16017 * Make-lang.in: Clean up generation of documentation
16019 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
16021 * xgnatug.adb: Removed, replaced by xgnatugn.adb
16023 * xgnatugn.adb: Replaces xgnatug.adb
16025 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
16027 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
16029 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
16030 gnat_ug_wnt.texi: Removed.
16032 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
16034 * utils2.c: Update copyright notice.
16036 2004-04-01 Robert Dewar <dewar@gnat.com>
16038 * checks.adb: Minor reformatting throughout
16039 Note that prev checkin added RM reference to alignment warning
16041 2004-04-01 Ed Schonberg <schonberg@gnat.com>
16043 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
16044 non-static when building aggregate for bit-packed array.
16046 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
16047 function call that is itself the actual in a procedure call, build
16050 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
16051 a string literal, create a temporary for it, constant folding only
16052 handles scalars here.
16054 2004-04-01 Vincent Celier <celier@gnat.com>
16056 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
16057 Error_Msg_SP): New empty procedures to instantiate the Scanner.
16058 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
16060 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
16061 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
16062 and get the checksum.
16064 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
16066 Increase the Marking_Label at the end of the Multiple_Main_Loop,
16067 instead of at the beginning.
16069 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
16071 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
16074 * osint.ads (Multi_Unit_Index_Character): New Character global variable
16076 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
16079 * par.adb: Remove test on file name to detect language defined units.
16080 Add test on unit name, after parsing, to detect language defined units
16081 that are not compiled with -gnatg (except System.RPC and its children)
16083 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
16084 following units without style checking.
16086 * switch-c.adb: Change -gnatC to -gnateI
16088 * usage.adb: Document new switch -gnateInnn
16090 * scng.adb (Accumulate_Token_Checksum): New procedure
16091 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
16092 word or literal number.
16093 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
16096 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
16099 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
16100 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
16101 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
16102 5vtpopde.adb: Add missing 'constant' keywords.
16104 2004-04-01 Javier Miranda <miranda@gnat.com>
16106 * par-ch4.adb: (P_Allocator): Code cleanup
16108 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
16111 * sinfo.ads: Complete documentation of previous change
16113 2004-04-01 Pascal Obry <obry@gnat.com>
16115 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
16116 only on VMS. This special handling was done because an old GNU/ld bug
16117 on Windows which has been fixed.
16119 2004-04-01 GNAT Script <nobody@gnat.com>
16121 * Make-lang.in: Makefile automatically updated
16123 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16125 * decl.c (gnat_to_gnu_entity, make_type_from_size):
16126 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
16127 * trans.c (tree_transform, convert_with_check): Likewise.
16128 * utils.c (gnat_signed_or_unsigned_type): Likewise.
16129 (build_vms_descriptor, unchecked_convert): Likewise.
16130 * utils2.c (nonbinary_modular_operation): Likewise.
16132 2004-03-29 Javier Miranda <miranda@gnat.com>
16134 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
16135 (Install_Null_Excluding_Check): Local subprogram that determines whether
16136 an access node requires a runtime access check and if so inserts the
16137 appropriate run-time check.
16138 (Apply_Access_Check): Call Install_Null_Excluding check if required
16139 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
16141 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
16143 * einfo.ads: Fix typo in comment
16145 * exp_ch3.adb (Build_Assignment): Generate conversion to the
16146 null-excluding type to force the corresponding run-time check.
16147 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
16148 type to force the corresponding run-time check.
16150 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
16151 the null-excluding type to force the corresponding run-time check.
16153 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
16154 case of access types unless they have the null-excluding attribute.
16156 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
16159 * exp_util.ads: Fix typo in comment
16161 * par.adb (P_Null_Exclusion): New subprogram
16162 (P_Subtype_Indication): New formal that indicates if the null-excluding
16163 part has been scanned-out and it was present
16165 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
16167 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
16168 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
16169 type to force the corresponding run-time check
16170 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
16172 (Resolve_Array_Aggregate): Carry out some static checks
16173 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
16175 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
16176 attribute must be set only if specified by means of the null-excluding
16177 part. In addition, we must also propagate the access-constant attribute
16179 (Access_Subprogram_Declaration, Access_Type_Declaration,
16180 Analyze_Component_Declaration, Analyze_Object_Declaration,
16181 Array_Type_Declaration, Process_Discriminants,
16182 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
16183 and carry out some static checks.
16184 (Build_Derived_Access_Type): Set the null-excluding attribute
16185 (Derived_Type_Declaration, Process_Subtype): Carry out some static
16188 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
16190 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
16192 * sem_ch6.adb (Process_Formals): Carry out some static checks.
16193 (Set_Actual_Subtypes): Generate null-excluding subtype if the
16194 null-excluding part was present; it is not required to be done here in
16195 case of anonymous access types.
16196 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
16199 * sem_res.adb (Resolve_Actuals): Carry out some static check
16200 (Resolve_Null): Allow null in anonymous access
16202 * sinfo.adb: New subprogram Null_Exclusion_Present
16203 All_Present and Constant_Present available on access_definition nodes
16205 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
16206 object_declaration, derived_type_definition, component_definition,
16207 discriminant_specification, access_to_object_definition,
16208 access_function_definition, allocator, access_procedure_definition,
16209 access_definition, parameter_specification, All_Present and
16210 Constant_Present flags available on access_definition nodes.
16212 2004-03-29 Robert Dewar <dewar@gnat.com>
16214 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
16215 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
16216 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
16217 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
16218 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
16219 sem_prag.adb: Updates to handle multiple units/file
16221 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
16223 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
16224 sem_util.adb: Minor reformatting
16226 * sem_ch12.adb: Add comment for previous change
16228 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
16230 * osint.adb (Executable_Prefix): Set Exec_Name to the current
16231 executable name when not initialized. Otherwise, use its current value.
16233 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
16234 initialize it to another executable name than the current one. This
16235 allows to configure paths for an executable name (gnatmake) different
16236 from the current one (gnatdist).
16238 2004-03-29 Ed Schonberg <schonberg@gnat.com>
16240 * exp_ch6.adb (Expand_Call): A call to a function declared in the
16241 current unit cannot be inlined if it appears in the body of a withed
16242 unit, to avoid order of elaboration problems in gigi.
16244 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
16245 information for protected (wrapper) operation as well, to simplify gdb
16248 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
16249 protected body, indicate that the entity for the generated spec comes
16250 from source, to ensure that references are properly generated for it.
16251 (Build_Body_To_Inline): Do not inline a function that returns a
16254 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
16255 apply convention to homonyms that are declared explicitly.
16257 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
16258 that renames an equality operator and the operands are overloaded,
16259 resolve them with the declared formal types, before rewriting as an
16262 2004-03-29 GNAT Script <nobody@gnat.com>
16264 * Make-lang.in: Makefile automatically updated
16266 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
16268 * memtrack.adb: Log realloc calls, which are treated as free followed
16271 2004-03-25 Vincent Celier <celier@gnat.com>
16273 * prj-makr.adb (Process_Directories): Detect when a file contains
16274 several units. Do not include such files in the config pragmas or
16275 in the naming scheme.
16277 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
16278 Resolve links only when not in Trusted_Mode.
16279 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
16280 Do not resolve links for the display names.
16282 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
16283 resolve links when computing the display names.
16285 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
16287 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
16288 attribute reference does not denote a subtype, it can be any
16289 expression that has a classwide type, potentially after an implicit
16290 dereference. In particular, the prefix can be a view conversion for
16291 a classwide type (for which Is_Object_Reference holds), but it can
16292 also be a value conversion for an access-to-classwide type. In the
16293 latter case, there is an implicit dereference, and the original node
16294 for the prefix does not verify Is_Object_Reference.
16296 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
16297 conversion of a discriminant-dependent component of a mutable object
16300 2004-03-25 Ed Schonberg <schonberg@gnat.com>
16302 * freeze.adb (Freeze_Entity): When an inherited subprogram is
16303 inherited, has convention C, and has unconstrained array parameters,
16304 place the corresponding warning on the derived type declaration rather
16305 than the original subprogram.
16307 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
16308 indication on renaming declaration, if formal has a box and actual
16311 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
16312 determine whether to generate an implicit or explicit reference to
16313 the renamed entity.
16315 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
16316 subprogram renaming comes from a defaulted formal subprogram in an
16319 2004-03-25 Gary Dismukes <dismukes@gnat.com>
16321 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
16322 value expressions to ensure that calls within a component definition
16323 will be checked (since those are evaluated during the record type's
16326 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
16328 * s-tpobop.adb: Code clean up:
16329 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
16331 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
16333 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
16335 * Makefile.in: Clean up in the ravenscar run time.
16337 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16339 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
16340 of No_Strict_Aliasing to build_pointer_type_for_mode.
16341 * utils.c (update_pointer_to): Walk pointer and ref chains.
16343 2004-03-22 Cyrille Comar <comar@act-europe.fr>
16345 * ali.ads: Fix Comment about Dynamic_Elab.
16347 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
16348 Has_RACW, Is_Generic, etc.)
16349 (Output_Object, Gnatls): Take into account ALI files not attached to
16352 2004-03-22 Vincent Celier <celier@gnat.com>
16354 * gprep.adb: Change all String_Access to Name_Id
16355 (Is_ASCII_Letter): new function
16356 (Double_File_Name_Buffer): New procedure
16357 (Preprocess_Infile_Name): New procedure
16358 (Process_Files): New procedure
16359 (Gnatprep): Check if output and input are existing directories.
16360 Call Process_Files to do the real job.
16362 2004-03-22 Robert Dewar <dewar@gnat.com>
16364 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
16365 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
16367 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
16369 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
16370 case when the source contains only comments.
16372 2004-03-22 Ed Schonberg <schonberg@gnat.com>
16374 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
16375 declaration for a child subprogram body that acts as a spec, indicate
16376 that the entity in the declaration needs debugging information.
16378 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
16379 full view if the subtype is created for a constrained record component;
16380 gigi has enough information to construct the record, and there is no
16381 place in the tree for the declaration.
16383 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
16384 serial number for the dummy body that is built for analysis, to avoid
16385 inconsistencies in the generation of internal names when compiling
16388 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
16390 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
16393 2004-03-22 GNAT Script <nobody@gnat.com>
16395 * Make-lang.in: Makefile automatically updated
16397 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16399 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
16400 * trans.c (tree_transform, emit_index_check): Likewise.
16401 * utils.c (build_template): Likewise.
16402 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
16403 (maybe_unconstrained_array, unchecked_convert): Likewise.
16404 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
16405 (build_unary_op): Likewise.
16406 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
16407 (fill_vms_descriptor): Likewise.
16408 (build_call_alloc_dealloc): Likewise.
16410 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
16412 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
16415 * gnat_ug.texi: Add info directory category and entry.
16416 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
16417 gnat_ug_wnt.texi: Regenerate.
16419 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
16421 * ada-tree.h: Update copyright notice.
16422 Minor reformatting.
16424 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
16426 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
16427 as regular exception objects and not as mere integers representing the
16428 condition code. The latter approach required some dynamics to mask off
16429 severity bits, which did not fit well into the GCC table based model.
16430 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
16431 exception data objects. We don't it and it would conflict with the other
16432 external symbol we have to generate for such exceptions.
16434 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
16435 the special code for VMS exceptions, since these are now represented
16436 as regular exceptions objects.
16438 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16440 * decl.c (debug_no_type_hash): Remove.
16441 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
16442 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
16444 2004-03-19 Laurent Guerby <laurent@guerby.net>
16446 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
16447 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
16449 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16451 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
16452 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
16453 (TYPE_RM_SIZE_INT): Directly use type.values.
16454 (TREE_LOOP_ID): Clean up check.
16455 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
16456 TYPE_VALUES, not TYPE_FIELDS.
16457 * trans.c (convert_with_check): Delay access of bounds of basetype
16458 until sure is numeric.
16460 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
16462 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
16465 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
16466 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
16467 Specific.Set instead of direct call to e.g pthread_setspecific.
16469 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
16471 * adaint.c: Update comments.
16473 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
16474 GNATLIB_SHARED for FreeBSD.
16476 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
16478 * init.c [VxWorks]: Do not fix the stack size for the environment task.
16479 When needed (stack checking) the stack size is retrieved
16480 from the VxWorks kernel.
16482 * Makefile.in: Flag -nostdinc is required when building the run time
16483 for avoiding looking for files in the base compiler.
16484 Add the VxWorks specific version of the package body for
16485 System.Stack_checking.Operations (5zstchop.adb).
16487 * Make-lang.in: Add the object file for
16488 System.Stack_Checking.Operations.
16490 * Makefile.rtl: Add object file for the package
16491 System.Stack_Checking.Operations.
16493 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
16495 * s-stache.ads, s-stache.adb: Move the operations related to stack
16496 checking from this package to package System.Stack_Checking.Operations.
16497 This way, stack checking operations are only linked in the final
16498 executable when using the -fstack-check flag.
16500 2004-03-18 Doug Rupp <rupp@gnat.com>
16502 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
16505 * 5qsystem.ads, 5xcrtl.ads: New files.
16507 2004-03-18 Vincent Celier <celier@gnat.com>
16509 * prj.adb (Reset): Reset hash table Files_Htable
16511 * prj-env.adb (Source_Paths, Object_Paths): New tables.
16512 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
16513 the procedures Add_To_Path_File.
16514 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
16515 making sure that each directory is present only once and, for object
16516 dirs, when a directory already present is added, the duplicate is
16517 removed and the directory is always put as the last in the table.
16518 Write the path files at the end of these accumulations.
16520 * prj-nmsc.adb (Record_Source): Add source file name in hash table
16521 Files_Htable for all sources.
16523 * prj-proc.adb (Process): Remove restrictions between not directly
16524 related extending projects.
16526 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
16528 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
16529 (Find_Sources): Minor speed optimization.
16531 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
16532 parameter Trusted_Mode.
16534 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
16536 * scn.adb (Determine_License): Take into account a degenerated case
16537 when the source contains only comments.
16539 2004-03-18 Ed Schonberg <schonberg@gnat.com>
16541 * sem_warn.adb (Check_References): For a warning on a selected
16542 component that does not come from source, locate an uninitialized
16543 component of the record type to produce a more precise error message.
16545 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
16547 * 3zsoccon.ads: Fix multicast options.
16549 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
16552 2004-03-15 Robert Dewar <dewar@gnat.com>
16554 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
16555 pragma used for a private type.
16557 * lib-xref.adb (Generate_Reference): Do not generate warning if
16558 reference is in a different unit from the pragma Unreferenced.
16560 * 5vtpopde.adb: Minor reformatting
16561 Fix casing of To_Task_ID
16563 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
16564 flag if we have an unchecked conversion to an access type in the same
16567 2004-03-15 Geert Bosch <bosch@gnat.com>
16569 * a-ngcoty.adb (Modulus): In alternate formula for large real or
16570 imaginary parts, use Double precision throughout.
16572 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
16573 we want to be able to compile run-time with -gnata for testing, but
16574 this may also be instantiated in user code that is compiled with -gnata.
16576 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
16578 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
16579 codes. Having a separate type for this is useful to enforce consistency
16580 throughout the various run-time units.
16581 (Exception_Data): Use Exception_Code for Import_Code.
16583 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
16584 Natural and Integer in various places.
16585 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
16586 with the severity bits masked off.
16587 (Register_VMS_Exception): Handle the additional exception data pointer
16590 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
16591 component, now reflected by an exported accessor.
16592 (is_handled_by): New routine to compute whether the propagated
16593 occurrence matches some handler choice specification. Extracted out of
16594 get_action_description_for, and expanded to take care of the VMS
16596 (get_action_description_for): Use is_handled_by instead of an explicit
16597 complex condition to decide if the current choice at hand catches the
16598 propagated occurrence.
16600 * raise.h (Exception_Code): New type for C.
16602 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
16603 System.Standard_Library.Exception_Code, to allow references from the
16604 pragma import/export expander.
16606 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
16607 New accessors to allow easy access to GNAT exception data
16609 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
16610 redundant Handled_By_Others component, helper for the personality
16611 routine which will now be able to call the appropriate exception data
16614 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
16615 component of Standard_Exception_Type to be the closest possible to
16616 Exception_Code in System.Standard_Library, that we cannot get at this
16617 point. Expand a ??? comment to notify that this type node should
16618 probably be rewritten later on.
16620 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
16621 registration call to include a pointer to the exception object in the
16624 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
16625 instead of int and explicit bitmasks.
16627 2004-03-15 Vincent Celier <celier@gnat.com>
16629 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
16630 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
16632 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
16633 longer needed now that it is in the spec of
16634 System.Tasking.Task_Attributes.
16636 * adaint.h, adaint.c: (__gnat_create_output_file): New function
16638 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
16640 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
16642 * make.adb (Gnatmake): Do not check the executable suffix; it is being
16643 taken care of in Scan_Make_Arg.
16644 (Scan_Make_Arg): Add the executable suffix only if the argument
16645 following -o, in canonical case, does not end with the executable
16646 suffix. When in verbose mode and executable file name does not end
16647 with executable suffix, output the executable name, in canonical case.
16649 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
16650 to avoid warnings when instantiating Ada.Task_Attributes.
16653 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
16654 in the correct order.
16656 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
16657 redirect standard output and error to a file for the invocation of the
16658 compiler, then read the file.
16660 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
16661 directory, instead of the Value.
16662 (Find_Source_Dirs): Remove useless code & comments.
16664 2004-03-15 Ed Schonberg <schonberg@gnat.com>
16666 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
16667 tagged type is inherited, and the parent operation is not frozen yet,
16668 force generation of a freeze node for the inherited operation, so the
16669 corresponding dispatch entry is properly initialized.
16670 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
16671 when looking for user-defined equality operation.
16673 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
16674 boolean when locating primitive equality of tagged component.
16676 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
16677 bit-aligned field and the right-hand side a string literal, introduce
16678 a temporary before expanding assignment into a loop.
16680 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
16681 priority in full, to ensure that any expanded subepxressions of it are
16682 elaborated in the scope of the init_proc.
16684 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
16685 after object declaration, skipping over code that may have been
16686 generated for validity checks.
16688 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
16689 discriminants, ignore the known discriminants of its full view, if
16690 any, to check legality.
16692 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
16693 component if type has unknown discriminants.
16694 (Analyze_Private_Extension_Declaration): Discriminant constraint is
16695 null if type has unknown discriminants.
16697 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
16698 for end label when present.
16700 * s-fileio.adb (Open): When called with a C_Stream, use given name for
16701 temporary file, rather than an empty string.
16703 2004-03-15 Ed Falis <falis@gnat.com>
16705 * s-thread.adb: Removed, no longer used.
16707 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16709 * decl.c (target.h): Now include.
16710 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
16711 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
16712 (validate_size): For POINTER_TYPE, get smallest size permitted on
16715 * fe.h: Sort Einfo decls and add Set_Mechanism.
16717 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
16718 (ada/decl.o): Depends on target.h.
16720 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
16721 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
16723 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
16725 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
16727 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
16728 Insert_Dereference_Action when rewriting an implicit dereference into
16729 an explicit one, this will be taken care of during expansion of the
16730 explicit dereference.
16731 (Expand_N_Slice): Same. Always do the rewriting, even for the case
16732 of non-packed slices, since the dereference action generated by
16733 expansion of the explicit dereference is needed in any case.
16734 (Expand_N_Selected_Component): When rewriting an implicit dereference,
16735 analyze and resolve the rewritten explicit dereference so it is seen
16737 (Insert_Dereference_Action): This procedure is now called only for the
16738 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
16739 dereferences that do not come from source (including explicit
16740 dereferences resulting from rewriting implicit ones), but do not
16741 recursively insert a check for the dereference nodes contained within
16743 (Insert_Dereference_Action): Clarify and correct comment.
16745 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
16748 Move language detection to the top level.
16749 * config-lang.in: Build by default.
16751 2004-03-05 Robert Dewar <dewar@gnat.com>
16753 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
16755 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
16756 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
16757 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
16758 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
16759 unchecked conversion to spec to avoid warnings.
16761 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
16764 * 7stpopsp.adb: Correct casing in To_Task_ID call
16766 * a-strsea.ads, a-strsea.adb: Minor reformatting
16768 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
16770 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
16771 Adjust Max_Msg_Length to be clearly large enough.
16773 * fe.h: Define In_Same_Source_Unit
16775 * osint.adb: Add pragma Warnings Off to suppress warnings
16776 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
16779 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
16781 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
16783 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
16785 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
16787 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
16789 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
16790 node. We now do generate them for gcc back end.
16792 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
16795 * sinput-c.adb: Fix bad name in header.
16796 Add pragma Warnings Off to suppress aliasing warning.
16798 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
16800 * snames.h, snames.ads, snames.adb: Add entry for pragma
16801 No_Strict_Aliasing.
16803 2004-03-05 Vincent Celier <celier@gnat.com>
16805 * prj-com.ads: Add hash table Files_Htable to check when a file name
16806 is already a source of another project.
16808 * prj-nmsc.adb (Record_Source): Before recording a new source, check
16809 if its file name is not already a source of another project. Report an
16812 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
16813 source file name, call gnatpp with all the sources of the main project.
16815 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
16818 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
16819 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
16820 /RUNTIME_SYSTEM=, converted to --RTS=
16821 /NOTABS, converted to -notabs
16823 2004-03-05 Pascal Obry <obry@gnat.com>
16825 * make.adb: Minor reformatting.
16827 2004-03-05 Ed Schonberg <schonberg@gnat.com>
16829 Part of implemention of AI-262.
16830 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
16832 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
16835 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
16836 when component type is a partially constrained class-wide subtype.
16837 (Constrain_Discriminated_Type): If parent type has unknown
16838 discriminants, a constraint is illegal, even if full view has
16840 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
16841 with unknown discriminants whose full view is a discriminated record.
16843 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
16844 flag, to handle properly derivations of tagged types with unknown
16846 (Analyze_Package_Spec, Analyze_Package_Body): Install
16847 Private_With_Clauses before analyzing private part or body.
16849 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
16850 Has_Discriminants can be true for a given type (documentation).
16852 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
16854 * s-restri.ads: Fix license (GPL->GMGPL).
16856 * s-tassta.adb: Minor reformatting.
16858 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
16859 by calls to Exit_One_ATC_Level, since additional clean up is performed
16862 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
16863 by calls to Exit_One_ATC_Level, since additional clean up is performed
16866 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16868 * trans.c: Reflect GCC changes to fix bootstrap problem.
16869 Add warning for suspicious aliasing unchecked conversion.
16871 2004-03-05 GNAT Script <nobody@gnat.com>
16873 * Make-lang.in: Makefile automatically updated
16875 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
16877 * ali.adb (Read_Instantiation_Instance): Do not modify the
16878 current_file_num when reading information about instantiations, since
16879 this corrupts files in later references.
16881 2004-03-02 Vincent Celier <celier@gnat.com>
16883 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
16884 before checking if it is read-only.
16886 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
16887 of SRC_DIRS and eliminate duplicates.
16889 * gprcmd.adb: Replace command "path" with command "path_sep" to return
16890 the path separator.
16891 (Usage): Document path_sep
16893 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
16894 C++ compiler. No need for a script.
16895 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
16896 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
16899 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
16900 where there are Ada sources.
16901 (Set_Ada_Paths): Only add to the include path the source dirs of project
16903 (Add_To_Path): Add the Display_Values of the directories, not their
16906 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
16909 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
16911 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
16912 Value is canonicalized.
16913 (Language_Independent_Check): Do not copy Value to Display_Value when
16914 canonicalizing Value.
16916 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
16917 path to find limited with cycles.
16918 (Parse_Single_Project): Use canonical cased path to find the end of a
16921 2004-03-02 Ed Schonberg <schonberg@gnat.com>
16923 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
16924 and not a child unit.
16926 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
16927 appear in a with_clause.
16929 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
16930 only happen in type_annotate mode, do not try to elaborate it.
16932 * exp_util.adb (Force_Evaluation): If expression is a selected
16933 component on the left of an assignment, use a renaming rather than a
16934 temporary to remove side effects.
16936 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
16937 inlined instance body, which is analyzed before the end of the
16940 2004-03-02 Robert Dewar <dewar@gnat.com>
16942 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
16943 sem_ch4.adb: Use new feature for substitution of keywords in VMS
16945 * errout.ads, errout.adb: Implement new circuit for substitution of
16948 * sem_case.adb (Analyze_Choices): Place message properly when case is
16949 a subtype reference rather than an explicit range.
16951 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
16953 2004-03-02 Doug Rupp <rupp@gnat.com>
16955 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
16957 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
16959 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
16961 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16963 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
16966 2004-02-25 Robert Dewar <dewar@gnat.com>
16968 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
16969 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
16970 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
16971 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
16972 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
16973 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
16974 the defining instance of the type to avoid aliasing problems.
16975 Fix copyright header. Fix bad comments in package header.
16977 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
16979 2004-02-25 Ed Schonberg <schonberg@gnat.com>
16981 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
16982 rewritten as references when aliased through an address clause.
16984 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
16985 whether call can be interpreted as an indirect call to the result of a
16986 parameterless function call returning an access subprogram.
16988 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
16991 * exp_ch7.adb (Make_Clean): Remove generation of calls to
16992 Unlock[_Entries], since this is now done by Service_Entries directly.
16994 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
16996 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
16997 Requeue_Call for better code readability. Change spec and update calls:
16998 PO_Service_Entries now unlock the PO on exit.
16999 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
17000 PO_Service_Entries.
17002 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
17004 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
17006 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
17008 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
17009 protected subprogram call and analyzing the result of such expanding
17010 in case when the called protected subprogram is eliminated.
17012 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
17015 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
17017 * Makefile.in: Clean ups.
17019 2004-02-23 Ed Schonberg <schonberg@gnat.com>
17021 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
17022 protected operations if original subprogram is flagged as eliminated.
17023 (Expand_N_Subprogram_Body): For a protected operation, create
17024 discriminals for next operation before checking whether the operation
17027 * exp_ch9.adb (Expand_N_Protected_Body,
17028 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
17029 for internal protected operations if the original subprogram is
17032 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
17033 declared in a single protected object.
17035 2004-02-23 Vincent Celier <celier@gnat.com>
17037 * prj-attr.adb: Make attribute Builder'Executable an associative array,
17038 case insensitive if file names are case insensitive, instead of a
17039 standard associative array.
17041 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
17042 them as case insensitive on platforms where the file names are case
17045 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
17046 project file has already been parsed that canonical path are compared.
17048 2004-02-23 Robert Dewar <dewar@gnat.com>
17050 * sinput-c.ads: Correct bad unit title in header
17052 * freeze.adb: Minor reformatting
17054 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17056 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
17057 nonaddressable COMPONENT_REF that is removing padding that we are
17058 taking the address of, take the address of the padded record instead
17059 if item is variable size.
17061 2004-02-20 Robert Dewar <dewar@gnat.com>
17063 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
17065 2004-02-20 Ed Schonberg <schonberg@gnat.com>
17067 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
17068 itype references for the constrained designated type of a component
17069 whose base type is already frozen.
17071 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
17073 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
17074 avoid GCC warnings.
17076 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
17078 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
17079 identifier for a phantom package that rewrites the formal package
17080 declaration with a box. The Add semantic decorations for the defining
17081 identifier from the original node (that represents the formal package).
17083 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
17085 * Make-lang.in (ada/stamp-sdefault): Use the top level
17088 2004-02-19 Richard Henderson <rth@redhat.com>
17090 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
17092 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
17094 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
17095 Scan_ALI can be used for multiple ALI files without reinitializing
17098 2004-02-18 Robert Dewar <dewar@gnat.com>
17100 * debug.adb: Minor reformatting.
17102 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17104 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
17105 to zero if there is an address clause.
17107 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
17109 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
17111 2004-02-18 Gary Dismukes <dismukes@gnat.com>
17113 * layout.adb (Layout_Component_List): Revise generation of call to
17114 discriminant-checking function to pass selections of all of the type's
17115 discriminants rather than just the variant-controlling discriminant.
17117 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
17119 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
17120 fail in the current setup and triggers spurious system error messages.
17121 Pretend it occurred and failed instead.
17123 2004-02-18 Vincent Celier <celier@gnat.com>
17125 * bld.adb: Mark FLDFLAGS as saved
17126 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
17127 it is not the root project. Put each directory to be
17128 extended between double quotes to prevent it to be expanded on Windows.
17129 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
17130 the project file. Set them back to their initial values if they have not
17131 been set in the project file.
17133 * gprcmd.adb: (Gprdebug, Debug): New global variables
17134 (Display_Command): New procedure
17135 (Usage): Document new command "linkopts"
17136 Call Display_Command when env var GPRDEBUG has the value "TRUE"
17137 Implement new command "linkopts"
17138 Remove quotes that may be around arguments for "extend"
17139 Always call Normalize_Pathname with arguments formatted for the platform
17141 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
17142 Change @echo to @$(display) in target clean to be able to clean silently
17144 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
17146 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
17149 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
17150 = Extending_All when current project is an extending all project.
17152 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
17153 set to True only for LINK command, after Unix switch -o.
17154 (Process_Arguments): Set Output_File_Expected to True for LINK command
17155 after Unix switch -o. When Output_File_Expected is True, never add an
17156 extension to a file name.
17158 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
17159 option file name, only to the --for-linker= switch.
17160 (Option_File_Name): If option file name do not end with ".opt", append
17163 2004-02-18 GNAT Script <nobody@gnat.com>
17165 * Make-lang.in: Makefile automatically updated
17167 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
17169 * Make-lang.in (stamp-sdefault): Do not depend on
17172 2004-02-12 Zack Weinberg <zack@codesourcery.com>
17174 * config-lang.in: Disable Ada by default until probe logic for
17175 a bootstrap Ada compiler can be moved to the top level configure
17178 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
17180 * decl.c (components_to_record): Don't claim that the internal fields
17181 we make to hold the variant parts are semantically addressable, because
17184 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
17185 adjust the comment describing the modular type form when we can use it.
17186 (Install_PAT): Account for the Esiz renaming.
17188 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
17189 sc_onstack context indication before raising the exception to which
17190 the signal is mapped. Allows better handling of later signals possibly
17191 triggered by the resumed user code if the exception is handled.
17193 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
17195 * 5zinit.adb: Removed, no longer used.
17197 2004-02-12 Robert Dewar <dewar@gnat.com>
17199 * ali.adb: Remove separating space between parameters on R line. Makes
17200 format consistent with format used by the binder for Set_Globals call.
17202 * atree.ads, atree.adb: Minor reformatting (new function header format)
17204 * bindgen.adb: Add Run-Time Globals documentation section containing
17205 detailed documentation of the globals passed from the binder file to
17208 * gnatls.adb: Minor reformatting
17210 * init.c (__gnat_set_globals): Add note pointing to documentation in
17213 * lib-writ.ads, lib-writ.adb: Remove separating space between
17214 parameters on R line.
17215 Makes format consistent with format used by the binder for Set_Globals
17218 * osint.ads: Add 2004 to copyright notice
17221 * snames.ads: Correct capitalization of FIFO_Within_Priorities
17222 Noticed during code reading, documentation issue only
17224 * usage.adb: Remove junk line for obsolete C switch
17225 Noticed during code reading
17227 2004-02-12 Vincent Celier <celier@gnat.com>
17229 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
17230 extend for each directory, so that multiple /** directories are
17231 extended individually.
17232 (Recursive_Process): Set the default for LANGUAGES to ada
17234 * gprcmd.adb: Define new command "ignore", to do nothing.
17235 Implement new comment "path".
17237 * Makefile.generic: Suppress output when SILENT is set
17238 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
17239 used, so that the correct compiler is invoked.
17240 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
17241 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
17243 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
17245 * Makefile.in: Clean ups and remove obsolete targets.
17247 2004-02-12 Ed Schonberg <schonberg@gnat.com>
17249 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
17250 predicate declared in exp_util.
17252 * exp_util.adb: Add comments.
17254 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
17255 visibility before compiling context of the subunit.
17257 * sem_res.adb (Check_Parameterless_Call): If the context expects a
17258 value but the name is a procedure, do not attempt to analyze as a call,
17259 in order to obtain more telling diagnostics.
17261 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
17262 'Access on parameterless function calls.
17263 (Normalize_Actuals): For a parameterless function call with missing
17264 actuals, defer diagnostic until resolution of enclosing call.
17266 * sem_util.adb (Wrong_Type): If the context type is an access to
17267 subprogram and the expression is a procedure name, suggest a missing
17270 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
17271 Nathanael Nerode <neroden@gcc.gnu.org>
17275 Merge with libada-branch:
17276 * config-lang.in: Build libada only when ada is built.
17278 2004-02-09 Ed Schonberg <schonberg@gnat.com>
17280 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
17281 for a tagged type, verify that both formals have the same type.
17283 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
17284 temporary when the formal is an in-parameter and the actual a possibly
17287 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
17288 when expansion is disabled, to ensure proper name capture with
17289 overloaded literals. Condition can be of any boolean type, resolve
17292 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
17293 renaming is for a formal subprogram with a default operator name, and
17294 there is a usable operator that is visible at the point of
17297 2004-02-09 Robert Dewar <dewar@gnat.com>
17299 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
17300 rewrite to ignore errors in ali files, intended to allow tools downward
17301 compatibility with new versions of ali files.
17303 * ali.ads: Add new parameter Ignore_Errors
17305 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
17306 duplicating the error message giving the file with restrictions.
17308 * debug.adb: Add debug flag I for gnatbind
17310 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
17311 operators for the case where the operator is a defining operator.
17313 * exp_ch3.adb: Minor reformatting (new function spec format).
17315 * exp_ch4.adb: Add comment for previous change, and make minor
17316 adjustment to loop to always check for improper loop termination.
17317 Minor reformatting throughout (new function spec format).
17319 * gnatbind.adb: Implement -di debug flag for gnatbind
17321 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
17323 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
17325 * lib-load.adb: Fix bad assertion.
17326 Found by testing and code reading.
17327 Minor reformatting.
17329 * lib-load.ads: Minor reformatting.
17331 * lib-writ.adb: There is only one R line now.
17333 * lib-writ.ads: Add documentation on making downward compatible changes
17334 to ali files so old tools work with new ali files.
17335 There is only one R line now.
17336 Add documentation on format incompatibilities (with special GPS note)
17338 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
17340 * par-load.adb: Minor reformatting
17342 * sem_ch8.adb: Fix to error message from last update
17343 Minor reformatting and restructuring of code from last update
17345 * par-prag.adb, snames.adb, snames.ads, snames.h,
17346 sem_prag.adb: Implement pragma Profile.
17348 * stylesw.adb: Implement -gnatyN switch to turn off all style check
17351 * usage.adb: Add line for -gnatyN switch
17353 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
17355 2004-02-09 Albert Lee <lee@gnat.com>
17357 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
17359 2004-02-09 Ed Schonberg <schonberg@gnat.com>
17361 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
17364 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
17365 is nested in an instance that is not frozen yet, to avoid
17366 order-of-elaboration problems in gigi.
17368 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
17369 body the attribute is legal.
17371 2004-02-09 Robert Dewar <dewar@gnat.com>
17373 * s-rident.ads: Minor comment correction
17375 * targparm.adb: Remove dependence on uintp completely. There was
17376 always a bug in Make in that it called Targparm before initializing
17377 the Uint package. The old code appeared to get away with this, but
17378 the new code did not! This caused an assertion error in gnatmake.
17380 * targparm.ads: Fix bad comment, restriction pragmas with parameters
17381 are indeed fully supported.
17383 2004-02-06 Alan Modra <amodra@bigpond.net.au>
17385 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
17387 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
17389 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
17390 with targetm.calls.promote_prototypes.
17392 2004-02-04 Robert Dewar <dewar@gnat.com>
17394 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
17395 ali.ads, gprcmd.adb: Minor reformatting
17397 * bindgen.adb: Output restrictions string for new style restrictions
17400 * impunit.adb: Add s-rident.ads (System.Rident) and
17401 s-restri (System.Restrictions)
17403 * lib-writ.adb: Fix bug in writing restrictions string (last few
17406 * s-restri.ads, s-restri.adb: Change name Restrictions to
17407 Run_Time_Restrictions to avoid conflict with package name.
17408 Add circuit to read and acquire run time restrictions.
17410 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
17412 * restrict.ads, restrict.adb: Use the new restriction
17413 No_Task_Attributes_Package instead of the old No_Task_Attributes.
17415 * sem_prag.adb: No_Task_Attributes is a synonym of
17416 No_Task_Attributes_Package.
17418 * snames.ads, snames.adb: New entry for proper handling of
17419 No_Task_Attributes.
17421 * s-rident.ads: Adding restriction No_Task_Attributes_Package
17422 (AI-00249) that supersedes the GNAT specific restriction
17423 No_Task_Attributes.
17425 2004-02-04 Ed Schonberg <schonberg@gnat.com>
17428 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
17429 body, an identifier may be wrapped in an unchecked conversion.
17431 2004-02-04 Vincent Celier <celier@gnat.com>
17433 * lib-writ.ads: Comment update for the W lines
17435 * bld.adb: (Expression): An empty string list is static
17437 * fname-uf.adb: Minor comment update
17439 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
17441 * gnatbind.adb: Initialize Cumulative_Restrictions with the
17442 restrictions on the target.
17444 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
17446 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
17449 2004-02-02 Arnaud Charlet <charlet@gnat.com>
17451 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
17453 2004-02-02 Vincent Celier <celier@gnat.com>
17455 * gprcmd.adb (Check_Args): If condition is false, print the invoked
17456 comment before the usage.
17457 Gprcmd: Fail when command is not recognized.
17458 (Usage): Document command "prefix"
17460 * g-md5.adb (Digest): Process last block.
17461 (Update): Do not process last block. Store remaining characters and
17464 * g-md5.ads (Update): Document that several call to update are
17465 equivalent to one call with the concatenated string.
17466 (Context): Add fields to allow new Update behaviour.
17468 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
17469 defaulted to False.
17470 When May_Fail is True and no existing file can be found, return No_File.
17472 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
17475 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
17476 spec file name instead on the W line.
17478 2004-02-02 Robert Dewar <dewar@gnat.com>
17480 * ali.adb: Read and acquire info from new format restrictions lines
17482 * bcheck.adb: Add circuits for checking restrictions with parameters
17484 * bindgen.adb: Output dummy restrictions data
17485 To be changed later
17487 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
17488 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
17489 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
17490 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
17491 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
17493 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
17494 the warning message on access to possibly uninitialized variable S)
17495 Minor changes for new restrictions handling.
17497 * gnatbind.adb: Minor reformatting
17498 Minor changes for new restrictions handling
17499 Move circuit for -r processing here from bcheck (cleaner)
17501 * gnatcmd.adb, gnatlink.adb: Minor reformatting
17503 * lib-writ.adb: Output new format restrictions lines
17505 * lib-writ.ads: Document new R format lines for new restrictions
17508 * s-restri.ads/adb: New files
17510 * Makefile.rtl: Add entry for s-restri.ads/adb
17512 * par-ch3.adb: Fix bad error messages starting with upper case letter
17515 * restrict.adb: Major rewrite throughout for new restrictions handling
17516 Major point is to handle restrictions with parameters
17518 * restrict.ads: Major changes in interface to handle restrictions with
17519 parameters. Also generally simplifies setting of restrictions.
17521 * snames.ads/adb: New entry for proper handling of No_Requeue
17523 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
17524 restriction counting.
17525 Other minor changes for new restrictions handling
17527 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
17528 Restriction_Warnings now allows full parameter notation
17529 Major rewrite of Restrictions for new restrictions handling
17531 2004-02-02 Javier Miranda <miranda@gnat.com>
17533 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
17534 syntax rule for object renaming declarations.
17535 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
17536 component definitions.
17538 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
17540 (Array_Type_Declaration): Give support to access components. In addition
17541 it was also modified to reflect the name of the object in anonymous
17542 array types. The old code did not take into account that it is possible
17543 to have an unconstrained anonymous array with an initial value.
17544 (Check_Or_Process_Discriminants): Allow access discriminant in
17546 (Process_Discriminants): Allow access discriminant in non-limited types
17547 Initialize the new Access_Definition field in N_Object_Renaming_Decl
17548 node. Change Ada0Y to Ada 0Y in comments
17550 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
17551 equality operators.
17552 Change Ada0Y to Ada 0Y in comments
17554 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
17555 renamings Change Ada0Y to Ada 0Y in comments
17557 * sem_type.adb (Find_Unique_Type): Give support to the equality
17558 operators for universal access types
17559 Change Ada0Y to Ada 0Y in comments
17561 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
17563 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
17565 (N_Object_Renaming_Declaration): Addition of Access_Definition field
17566 Change Ada0Y to Ada 0Y in comments
17568 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
17569 component definition and object renaming nodes
17570 Change Ada0Y to Ada 0Y in comments
17572 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
17574 * restrict.adb: Use the new restriction identifier
17575 No_Requeue_Statements instead of the old No_Requeue for defining the
17576 restricted profile.
17578 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
17579 No_Requeue_Statements.
17581 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
17582 that supersedes the GNAT specific restriction No_Requeue. The later is
17583 kept for backward compatibility.
17585 2004-02-02 Ed Schonberg <schonberg@gnat.com>
17587 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
17588 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
17589 pragma and fix incorrect ones.
17591 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
17592 warning if the pragma is redundant.
17594 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
17596 * 5staprop.adb: Add missing 'constant' keywords.
17598 * Makefile.in: use consistent value for SYMLIB on
17599 platforms where libaddr2line is supported.
17601 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17603 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
17606 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
17608 * init.c (__gnat_install_handler): Setup an alternate stack for signal
17609 handlers in the environment thread. This allows proper propagation of
17610 an exception on stack overflows in this thread even when the builtin
17611 ABI stack-checking scheme is used without support for a stack reserve
17614 * utils.c (create_field_decl): Augment the head comment about bitfield
17615 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
17616 here, because the former is not accurate enough at this point.
17617 Let finish_record_type decide instead.
17618 Don't make a bitfield if the field is to be addressable.
17619 Always set a size for the field if the record is packed, to ensure the
17620 checks for bitfield creation are triggered.
17621 (finish_record_type): During last pass over the fields, clear
17622 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
17623 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
17624 from DECL_BIT_FIELD.
17626 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
17628 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
17629 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
17630 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
17632 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17634 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
17636 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
17637 (ZCX_By_Default): Likewise.
17638 (Front_End_ZCX_Support): Likewise.
17640 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
17641 (Initialize_Lock): Mark Level unreferenced.
17642 (Sleep): Mark Reason unreferenced.
17643 (Timed_Sleep): Likewise.
17644 (Wakeup): Likewise.
17645 (Exit_Task): Use Result.
17646 (Check_No_Locks): Mark Self_ID unreferenced.
17648 * 5gtasinf.adb (New_Sproc): Make Attr constant.
17649 (Bound_Thread_Attributes): Make Sproc constant.
17650 (New_Bound_Thread_Attributes): Likewise.
17652 2004-01-26 Ed Schonberg <schonberg@gnat.com>
17654 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
17655 one-dimensional array an slice assignments, when component type is
17658 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
17659 component type is controlled, and control_actions are in effect, use
17660 TSS procedure rather than generating inline code.
17662 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
17663 arrays with controlled components.
17665 2004-01-26 Vincent Celier <celier@gnat.com>
17667 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
17668 command line for the non VMS case.
17670 * gnatlink.adb (Process_Binder_File): When building object file, if
17671 GNU linker is used, put all object paths between quotes, to prevent ld
17672 error when there are unusual characters (such as '!') in the paths.
17674 * Makefile.generic: When there are sources in Ada and the main is in
17675 C/C++, invoke gnatmake with -B, instead of -z.
17677 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
17678 from VMS_Conversion.
17679 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
17680 specification of argument file on the command line.
17682 2004-01-26 Bernard Banner <banner@gnat.com>
17684 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
17686 2004-01-26 Ed Schonberg <schonberg@gnat.com>
17688 * snames.adb: Update copyright notice.
17689 Add info on slice assignment for controlled arrays.
17691 2004-01-23 Robert Dewar <dewar@gnat.com>
17693 * exp_aggr.adb: Minor reformatting
17695 * exp_ch9.adb: Minor code clean up
17697 Fix bad character in comment
17700 * targparm.adb (Get_Target_Parameters): Give clean abort error on
17701 unexpected end of file, along with more detailed message.
17703 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17705 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
17708 * decl.c (copy_alias_set): New function.
17709 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
17711 2004-01-23 Doug Rupp <rupp@gnat.com>
17713 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
17714 lib$${file} in case subsequent character is not a separator.
17716 2004-01-23 Vincent Celier <celier@gnat.com>
17718 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
17719 when the GCC version is at least 3.
17721 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
17722 Remove all "Opt.", to prepare for opt split
17724 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
17725 Extends_All. Set to True when the project parsed is an extending all
17726 project. Fails for importing an extending all project only when the
17727 imported project is an extending all project.
17728 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
17729 depending on the value of Extends_All returned.
17731 * prj-proc.adb (Process): Check that no project shares its object
17732 directory with a project that extends it, directly or indirectly,
17733 including a virtual project.
17734 Check that no project extended by another project shares its object
17735 directory with another also extended project.
17737 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
17738 Kind = N_With_Clause
17740 * prj-tree.ads: Minor reformatting
17741 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
17743 2004-01-23 Ed Schonberg <schonberg@gnat.com>
17745 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
17746 applies to a type with an incomplete view, use full view in Name of
17747 clause, for consistency with uses of Get_Attribute_Definition_Clause.
17749 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
17751 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
17752 SCHED_RR, since other values are not supported by this policy.
17753 (Initialize): Move initialization of mutex attribute to package
17754 elaboration, to prevent early access to this variable.
17756 * Makefile.in: Remove mention of Makefile.adalib, unused.
17758 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
17759 1ssecsta.ads: Removed, unused.
17761 2004-01-21 Javier Miranda <miranda@gnat.com>
17763 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
17764 entity if already built in the current scope.
17766 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
17767 reminder in internal scopes. Required for nested limited aggregates.
17769 2004-01-21 Doug Rupp <rupp@gnat.com>
17771 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
17772 VMS. Replace all occurences of libgnat- and libgnarl- with
17773 libgnat$(hyphen) and libgnarl$(hyphen).
17774 Fixed shared library build problem on VMS.
17776 2004-01-21 Robert Dewar <dewar@gnat.com>
17778 * mlib-prj.adb: Minor reformatting
17780 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
17782 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
17783 'constant' keywords for declaration of pointers that are not modified.
17785 * exp_pakd.adb: Fix English in comment.
17787 2004-01-21 Ed Schonberg <schonberg@gnat.com>
17790 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
17791 copy all attributes of the parent, including the foreign language
17794 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
17797 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
17798 for 'delay until' statement.
17800 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
17802 * Make-lang.in: Replace $(docdir) with doc.
17803 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
17804 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
17805 to use consistent MAKEINFO rule.
17806 (ada.man, ada.srcman): Dummy entry.
17807 (ADA_INFOFILES): Define.
17808 (ada.info, ada.srcinfo): New rules.
17810 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
17812 * utils.c: Update copyright notice, missed in previous change.
17814 2004-01-19 Vincent Celier <celier@gnat.com>
17816 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
17817 args if Bind is True. Set First_ALI, if not already done.
17818 (Build_Library): For Stand Alone Libraries, extract from one ALI file
17819 an eventual --RTS switch, for gnatbind, and all backend switches +
17820 --RTS, for linking.
17822 2004-01-19 Robert Dewar <dewar@gnat.com>
17824 * sem_attr.adb, memtrack.adb: Minor reformatting
17826 2004-01-19 Ed Schonberg <schonberg@gnat.com>
17828 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
17829 that rename enumeration literals. This is properly done in sem_eval.
17831 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
17832 to functions that rename enumeration literals.
17834 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
17835 functions that rename enumeration literals.
17837 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
17839 * Make-lang.in (utils.o): Depend on target.h.
17840 * utils.c: Include target.h.
17841 (process_attributes): Use targetm.have_named_sections instead
17842 of ASM_OUTPUT_SECTION_NAME.
17844 2004-01-16 Andreas Jaeger <aj@suse.de>
17846 * Makefile.in: Add $(DESTDIR).
17848 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
17850 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
17851 also when not defining if a Size clause applies. That information is
17854 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
17856 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
17857 symbolic links for the shared gnat run time when needed.
17859 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
17861 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
17862 for writing, and terminate with an error message if not.
17864 2004-01-15 Ed Schonberg <schonberg@gnat.com>
17866 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
17867 warning on an access to subprogram in an instance, when the target
17868 type is declared in the same generic unit.
17869 (Eval_Attribute): If 'access is known to fail accessibility check,
17870 rewrite as a raise statement.
17872 2004-01-15 GNAT Script <nobody@gnat.com>
17874 * Make-lang.in: Makefile automatically updated
17876 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
17878 * Make-lang.in (ada.srcextra): Dummy entry.
17880 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
17882 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
17884 2004-01-13 Ed Schonberg <schonberg@gnat.com>
17886 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
17887 components that are initialized with aggregates.
17889 2004-01-13 Vincent Celier <celier@gnat.com>
17891 * gnatlink.adb (Process_Binder_File): To find directory of shared
17892 libgcc, if "gcc-lib" is not a subdirectory, look for the last
17893 subdirectory "lib" in the path of the shared libgnat or libgnarl.
17895 * make.adb (Gnatmake): If GCC version is at least 3, link with
17896 -shared-libgcc, when there is at least one shared library project.
17898 * opt.ads (GCC_Version): New integer constant.
17900 * adaint.c (get_gcc_version): New function.
17902 2004-01-13 Robert Dewar <dewar@gnat.com>
17904 * sem_dist.adb, sem_res.adb, sem_util.adb,
17905 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
17906 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
17908 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
17910 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
17911 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
17914 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
17916 * misc.c: Remove trailing spaces.
17917 Update copyright notice missed in previous change.
17920 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
17923 * Makefile.generic: Update copyright.
17924 Add license notice.
17926 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
17927 of prefix/share/make.
17929 * Makefile.prolog: Update copyright.
17930 Add license notice.
17932 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
17934 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
17935 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
17936 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
17939 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
17942 2004-01-12 Javier Miranda <miranda@gnat.com>
17944 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
17945 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
17946 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
17947 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
17948 Component_Definition node.
17950 2004-01-12 Ed Falis <falis@gnat.com>
17952 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
17954 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
17956 * link.c: Change default libgnat kind to STATIC for FreeBSD.
17958 2004-01-12 Bernard Banner <banner@gnat.com>
17960 * Makefile.in: map 86numaux to a-numaux for x86_64
17962 2004-01-12 Ed Schonberg <schonberg@gnat.com>
17964 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
17965 generated to rename a generic actual, go to the actual itself, the
17966 subtype is not a user-visible entity.
17968 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
17969 part is a private subtype, reset the visibility of its full view, if
17970 any, to be consistent.
17973 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
17974 to use a generic package G as a formal package for another generic
17977 2004-01-12 Robert Dewar <dewar@gnat.com>
17979 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
17981 * usage.adb: Remove mention of obsolete -gnatwb switch
17982 Noticed during code reading
17984 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
17986 * 1ssecsta.adb: Minor changes for -gnatwa warnings
17988 2004-01-12 GNAT Script <nobody@gnat.com>
17990 * Make-lang.in: Makefile automatically updated
17992 2004-01-09 Mark Mitchell <mark@codesourcery.com>
17994 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
17996 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17998 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
18000 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
18002 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
18003 Update comment and copyright date.
18004 * stamp-xgnatug: Delete.
18006 2004-01-05 Robert Dewar <dewar@gnat.com>
18008 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
18009 be modified by the binder generated main program if the -D switch is
18012 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
18013 imported functions (since now we expect this to be done for imported
18016 * 5vtaprop.adb: Add several ??? for sections requiring more comments
18017 Minor reformatting throughout
18019 * 5zinit.adb: Minor reformatting
18020 Add 2004 to copyright date
18021 Minor changes to avoid -gnatwa warnings
18022 Correct some instances of using OR instead of OR ELSE (noted while
18023 doing reformatting)
18025 * sprint.adb: Minor updates to avoid -gnatwa warnings
18027 * s-secsta.ads, s-secsta.adb:
18028 (SS_Get_Max): New function to obtain high water mark for ss stack
18029 Default_Secondary_Stack is not a constant since it may be modified by
18030 the binder generated main program if the -D switch is used.
18032 * switch-b.adb: New -Dnnn switch for binder
18035 Make -gnatg imply all warnings currently in -gnatwa
18037 * vms_conv.adb: Minor reformatting
18038 Add 2004 to copyright notice
18039 Add 2004 to printed copyright notice
18041 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
18042 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
18043 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
18044 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
18045 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
18046 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
18047 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
18048 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
18049 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
18050 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
18051 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
18052 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
18053 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
18054 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
18055 checks.adb, clean.adb, cstand.adb, einfo.ads,
18056 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
18057 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
18058 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
18059 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
18060 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
18061 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
18062 Minor reformatting and code clean ups.
18063 Minor changes to prevent -gnatwa warnings
18065 * ali.adb: Minor reformatting and cleanup of code
18066 Acquire new SS indication of secondary stack use from ali files
18068 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
18069 (since now we expect this to be done for imported functions)
18071 * bindgen.adb: Generate call to modify default secondary stack size if
18074 * bindusg.adb: Add line for new -D switch
18076 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
18077 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
18078 Add circuitry for both records and arrays to avoid gigi
18079 processing if the type involved has non-bit-aligned components
18081 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
18082 N_String_Literal node always references an E_String_Literal_Subtype
18083 entity. This may not be true in the future.
18084 (Possible_Bit_Aligned_Component): Move processing of
18085 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
18087 * exp_ch6.adb (Expand_Thread_Body): Pick up
18088 Default_Secondary_Stack_Size as variable so that we get value modified
18089 by possible -Dnnn binder parameter.
18091 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
18092 (Type_May_Have_Bit_Aligned_Components): New function.
18094 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
18095 (Type_May_Have_Bit_Aligned_Components): New function.
18097 * fe.h: (Set_Identifier_Casing): Fix prototype.
18098 Add declaration for Sem_Elim.Eliminate_Error_Msg.
18099 Minor reformatting.
18101 * freeze.adb (Freeze_Entity): Add RM reference to error message about
18102 importing constant atomic/volatile objects.
18103 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
18104 unless explicit Pure_Function pragma given, to avoid insidious bug of
18105 call to non-pure imported function getting eliminated.
18107 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
18108 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
18109 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
18110 Add 2004 to printed copyright notice
18112 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
18115 * Makefile.rtl: Add entry for g-sestin.o
18116 g-sestin.ads: New file.
18118 * mdll.adb: Minor changes to avoid -gnatwa warnings
18120 * mlib-tgt.adb: Minor reformatting
18122 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
18123 New switch Sec_Stack_Used (GNAT, GNATBIND)
18124 Make Default_Secondary_Stack_Size a variable instead of a constant,
18125 so that it can be modified by the new -Dnnn bind switch.
18127 * rtsfind.adb (Load_Fail): Give full error message in configurable
18128 run-time mode if all_errors mode is set. This was not done in the case
18129 of a file not found, which was an oversight.
18130 Note if secondary stack unit is used by compiler.
18132 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
18133 ineffective elaborate all pragmas on non-visible packages (this
18134 happened when a renamed subprogram was called). Now the elaborate all
18135 always goes on the package containing the renaming rather than the one
18136 containing the renamed subprogram.
18138 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
18139 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
18141 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
18142 has an Etype that references an E_String_Literal.
18143 (Eval_String_Literal): Avoid assumption that N_String_Literal node
18144 always references an E_String_Literal_Subtype entity. This may not
18145 be true in the future.
18147 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
18150 * sem_res.adb (Resolve): Specialize msg for function name used in proc
18153 2004-01-05 Ed Falis <falis@gnat.com>
18155 * g-debuti.adb: Replaced direct boolean operator with short-circuit
18158 2004-01-05 Vincent Celier <celier@gnat.com>
18160 * bld.adb: Minor comment updates
18161 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
18164 * make.adb (Gnatmake): Special process for files to compile/check when
18165 -B is specified. Fail when there are only foreign mains in attribute
18166 Main of the project file and -B is not specified. Do not skip bind/link
18167 steps when -B is specified.
18169 * makeusg.adb: Document new switch -B
18171 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
18173 * switch-m.adb: (Scan_Make_Switches): Process -B switch
18175 * vms_data.ads: Add new GNAT PRETTY qualifier
18176 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
18178 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18180 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
18183 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
18184 Set_Identifier_Casing.
18186 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
18187 has size that overflows.
18189 2004-01-05 Gary Dismukes <dismukes@gnat.com>
18191 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
18192 -gnatwa warning on static condition.
18194 2004-01-05 Doug Rupp <rupp@gnat.com>
18196 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
18198 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
18200 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
18201 all attributes, including read-only attribute.
18203 2004-01-05 Pascal Obry <obry@gnat.com>
18205 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
18206 library naming scheme.
18208 * mlib-prj.adb (Build_Library): Generate different names for the static
18209 or dynamic version of the GNAT runtime. This is needed to support the
18210 new shared library naming scheme.
18211 (Process_Binder_File): Add detection of shared library in binder file
18212 based on the new naming scheme.
18214 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
18215 scheme for the shared runtime libraries.
18218 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
18220 (install-gnatlib): Do not create symlinks for shared libraries.
18221 (gnatlib-shared-default): Idem.
18222 (gnatlib-shared-dual-win32): New target. Not used for now as the
18223 auto-import feature does not support arrays/records.
18224 (gnatlib-shared-win32): Do not create copy for the shared libraries.
18225 (gnatlib-shared-vms): Fix shared runtime libraries names.
18227 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
18228 dependent runtime shared library name.
18230 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
18232 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
18235 2004-01-05 Ed Schonberg <schonberg@gnat.com>
18237 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
18238 protected objects when allocator has a subtype indication, not a
18239 qualified expression. Note that qualified expressions may have to be
18240 checked when limited aggregates are implemented.
18242 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
18243 pure, emit warning.
18244 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
18245 subprogram is imported, remove warning.
18247 2004-01-05 Geert Bosch <bosch@gnat.com>
18249 * s-poosiz.adb: Update copyright notice.
18250 (Allocate): Use Task_Lock to protect against concurrent access.
18251 (Deallocate): Likewise.
18253 2004-01-05 Joel Brobecker <brobecker@gnat.com>
18255 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
18258 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
18260 * gnat_ug.texi: Force a CVS commit by updating copyright.
18261 * gnat_ug_vxw.texi: Regenerate.
18262 * gnat_ug_wnt.texi: Regenerate.
18263 * gnat_ug_vms.texi: Regenerate.
18264 * gnat_ug_unx.texi: Regenerate.
18266 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
18268 * trans.c: Remove uses of "register" specifier in
18269 declarations of local variables.
18271 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
18273 * stamp-xgnatug: New stamp file.
18274 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
18275 (ada/doctools/xgnatug): Add $(build_exeext).
18276 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
18277 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
18279 2003-12-17 Ed Falis <falis@gnat.com>
18281 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
18284 * a-exextr.adb: Add context clause for
18285 Ada.Exceptions.Last_Chance_Handler.
18287 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
18289 * cstand.adb (Create_Standard): Change the way how the declaration of
18290 the Duration type is created (making it the same way as it is for all
18291 the other standard types).
18293 2003-12-17 Robert Dewar <dewar@gnat.com>
18295 * s-crtl.ads: Fix header format
18296 Change Pure to Preelaborate
18298 2003-12-17 Ed Schonberg <schonberg@gnat.com>
18300 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
18301 the expression type only if it is declared in the current unit.
18303 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
18304 are universal and already analyzed, as can occur in constrained
18305 subcomponents that depend on discriminants, when one constraint is a
18308 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
18309 type Any_Fixed is legal as the argument of a conversion, if only one
18310 fixed-point type is in context.
18312 2003-12-17 GNAT Script <nobody@gnat.com>
18314 * Make-lang.in: Makefile automatically updated
18316 2003-12-15 Robert Dewar <dewar@gnat.com>
18318 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
18321 2003-12-15 Vincent Celier <celier@gnat.com>
18323 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
18324 (Gnatchop): Do not set failure status when reporting the number of
18327 2003-12-15 Doug Rupp <rupp@gnat.com>
18329 * s-ctrl.ads: New file.
18331 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
18333 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
18334 (GNATBIND_OBJS): Add ada/s-crtl.o.
18336 * Makefile.in [VMS]: Clean up ifeq rules.
18338 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
18339 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
18340 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
18341 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
18342 s-tasdeb.adb: Update copyright.
18343 Import System.CRTL.
18344 Make minor modifications to use System.CRTL declared functions instead
18345 of importing locally.
18347 2003-12-15 GNAT Script <nobody@gnat.com>
18349 * Make-lang.in: Makefile automatically updated
18351 2003-12-11 Ed Falis <falis@gnat.com>
18353 * 5zinit.adb: Clean up.
18355 * 5zintman.adb (Notify_Exception): replaced case statement with a call
18356 to __gnat_map_signal, imported from init.c to support
18357 signal -> exception mappings that depend on the vxWorks version.
18360 Created and exported __gnat_map_signal to support signal -> exception
18361 mapping that is dependent on the VxWorks version.
18362 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
18364 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
18366 * 5wosinte.ads: Link with -mthreads switch.
18368 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
18370 * init.c (__gnat_install_handler [NetBSD]): Set
18371 __gnat_handler_installed, as done on all other platforms.
18372 Remove duplicated code.
18374 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
18376 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
18378 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
18380 * sinfo.ads: Fix inconsistent example code in comment.
18382 2003-12-11 Robert Dewar <dewar@gnat.com>
18384 * a-tiinau.adb: Add a couple of comments
18386 * sem_ch3.adb: Minor reformatting
18389 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
18390 Minor reformatting throughout
18392 2003-12-11 Ed Schonberg <schonberg@gnat.com>
18394 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
18395 bounds of a loop, create a separate block in order to generate proper
18396 cleanup actions to prevent memory leaks.
18398 * sem_res.adb (Resolve_Call): After a call to
18399 Establish_Transient_Scope, the call may be rewritten and relocated, in
18400 which case no further processing is needed.
18402 * sem_util.adb: (Wrong_Type): Refine previous fix.
18403 Fixes ACATS regressions.
18406 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
18409 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
18411 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
18412 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
18415 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
18418 2003-12-08 Robert Dewar <dewar@gnat.com>
18420 * 7sintman.adb: Minor reformatting
18422 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
18423 standard linker options to get standard libraries linked. We now plan
18424 to provide dummy versions of these libraries to match the appropriate
18425 configurable run-time (e.g. if a library is not needed at all, provide
18426 a dummy empty library).
18428 * targparm.ads: Configurable_Run_Time mode no longer affects linker
18429 options (-L parameters and standard libraries). What we plan to do is
18430 to provide dummy libraries where the libraries are not required.
18432 * gnatbind.adb: Minor comment improvement
18434 2003-12-08 Javier Miranda <miranda@gnat.com>
18436 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
18437 aggregate in the parent. Otherwise constants with limited aggregates
18438 are not supported. Add new formal to pass the component type (Ctype).
18439 It is required to call the corresponding IP subprogram in case of
18440 default initialized components.
18441 (Gen_Assign): In case of default-initialized component, generate a
18442 call to the IP subprogram associated with the component.
18443 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
18444 of aggregate with default initialized components.
18445 (Has_Default_Init_Comps): Improve implementation to recursively check
18446 all the present expressions.
18448 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
18449 to indicate that the initialization call corresponds to a
18450 default-initialized component of an aggregate.
18451 In case of default initialized aggregate with tasks this parameter is
18452 used to generate a null string (this is just a workaround that must be
18453 improved later). In case of discriminants, this parameter is used to
18454 generate a selected component node that gives access to the discriminant
18457 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
18458 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
18459 allocated aggregates with default-initialized components.
18461 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
18462 the box notation is used in positional aggregates.
18464 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
18466 * lib.ads: Fix typo in comment
18468 2003-12-08 Vincent Celier <celier@gnat.com>
18470 * prj.adb (Project_Empty): New component Unkept_Comments
18471 (Scan): Remove procedure; moved to Prj.Err.
18473 * prj.ads (Project_Data): New Boolean component Unkept_Comments
18474 (Scan): Remove procedure; moved to Prj.Err.
18476 * prj-dect.adb: Manage comments for the different declarations.
18478 * prj-part.adb (With_Record): New component Node
18479 (Parse): New Boolean parameter Store_Comments, defaulted to False.
18480 Set the scanner to return ends of line and comments as tokens, if
18481 Store_Comments is True.
18482 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
18483 comments are associated with these nodes. Store the node IDs in the
18485 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
18487 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
18488 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
18489 current project. Call Tree.Restore afterwards. Set the various nodes
18490 for comment storage (Next_End, End_Of_Line, Previous_Line,
18493 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
18494 defaulted to False.
18496 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
18497 to False. When Truncated is True, truncate the string, never go to the
18499 (Write_End_Of_Line_Comment): New procedure
18500 (Print): Process comments for nodes N_With_Clause,
18501 N_Package_Declaration, N_String_Type_Declaration,
18502 N_Attribute_Declaration, N_Typed_Variable_Declaration,
18503 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
18504 Process nodes N_Comment.
18506 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
18507 without comments and there are some comments, set the flag
18508 Unkept_Comments to True.
18509 (Scan): If there are comments, set the flag Unkept_Comments to True and
18510 clear the comments.
18511 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
18512 (Next_End_Nodes: New table
18513 (Comment_Zones_Of): New function
18514 (Scan): New procedure; moved from Prj. Accumulate comments in the
18515 Comments table and set end of line comments, comments after, after end
18517 (Add_Comments): New procedure
18518 (Save, Restore, Seset_State): New procedures
18519 (There_Are_Unkept_Comments): New function
18520 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
18521 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
18523 (First_Comment_After, First_Comment_After_End): New functions
18524 (First_Comment_Before, First_Comment_Before_End): New functions
18525 (Next_Comment): New function
18526 (End_Of_Line_Comment, Follows_Empty_Line,
18527 Is_Followed_By_Empty_Line): New functions
18528 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
18529 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
18530 (Set_Next_Comment): New procedure
18531 (Default_Project_Node): Associate comment before if the node can store
18534 * scans.ads (Token_Type): New enumeration value Tok_Comment
18535 (Comment_Id): New global variable
18537 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
18538 defaulted to False.
18539 (Scan): Store position of start of comment. If comments are tokens, set
18540 Comment_Id and set Token to Tok_Comment when scanning a comment.
18541 (Set_Comment_As_Token): New procedure
18543 * sinput-p.adb: Update Copyright notice
18544 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
18545 that no longer exists.
18547 2003-12-08 Javier Miranda <miranda@gnat.com>
18549 * sem_aggr.adb: Add dependence on Exp_Tss package
18550 Correct typo in comment
18551 (Resolve_Aggregate): In case of array aggregates set the estimated
18552 type of the aggregate before calling resolve. This is needed to know
18553 the name of the corresponding IP in case of limited array aggregates.
18554 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
18555 in case of default initialized array components.
18557 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
18558 types. Required to give support to limited aggregates in generic
18561 2003-12-08 Ed Schonberg <schonberg@gnat.com>
18563 * sem_ch3.adb (Check_Initialization): For legality purposes, an
18564 inlined body functions like an instantiation.
18565 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
18566 until bounds are analyzed, to diagnose premature use of type.
18568 * sem_util.adb (Wrong_Type): Improve error message when the type of
18569 the expression is used prematurely.
18571 2003-12-08 GNAT Script <nobody@gnat.com>
18573 * Make-lang.in: Makefile automatically updated
18575 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
18577 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
18578 they are automatically generated by Make-lang.in and cause nothing but
18579 maintenance troubles.
18581 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
18583 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
18584 version of this unit).
18586 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
18588 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
18589 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
18590 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
18591 the body of System.Interrupt_Management common to several targets.
18592 Update copyright notice when appropriate.
18594 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
18597 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
18598 to ensure that the kernel fills in the interrupted context structure
18599 before calling a signal handler, which is necessary to be able to
18600 unwind past it. Update the copyright notice.
18602 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
18604 * a-elchha.ads: New file.
18606 * a-elchha.adb: New default last chance handler. Contents taken from
18607 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
18609 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
18610 is moved to a-elchha.adb to provide a target-independent default last
18613 * Makefile.rtl: Add a-elchha.o
18615 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
18617 2003-12-05 Ed Schonberg <schonberg@gnat.com>
18619 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
18620 declared in an instance, do not inline the call if the instance is not
18621 frozen yet, to prevent order of elaboration problems.
18623 * sem_prag.adb: Add comments for previous fix.
18625 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
18627 * g-table.adb: Use the right variable in Set_Item.
18628 Update copyright notice.
18630 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
18632 * Makefile.in: Remove unused rules.
18634 2003-12-05 Vincent Celier <celier@gnat.com>
18636 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
18637 -nostdlib. Not needed here after all.
18639 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
18642 * adaint.h, adaint.c, g-os_lib.ads:
18643 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
18644 on some platforms (including FreeBSD), it is a 64 bit value.
18645 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
18647 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
18649 * gnatvsn.ads (Library_Version): Now contain only the relevant
18651 (Verbose_Library_Version): New constant.
18653 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
18654 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
18655 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
18657 * gnatlbr.adb: Clean up: replace Library_Version by
18658 Verbose_Library_Version.
18660 * make.adb, lib-writ.adb, exp_attr.adb:
18661 Clean up: replace Library_Version by Verbose_Library_Version.
18663 * 5lintman.adb: Removed.
18666 Update and simplify computation of LIBRARY_VERSION.
18667 Fix computation of GSMATCH_VERSION.
18668 5lintman.adb is no longer used: replaced by 7sintman.adb.
18670 2003-12-03 Robert Dewar <dewar@gnat.com>
18673 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
18674 name. Modified to consider small non-bit-packed arrays as troublesome
18675 and in need of component-by-component assigment expansion.
18677 2003-12-03 Vincent Celier <celier@gnat.com>
18679 * lang-specs.h: Process nostdlib as nostdinc
18681 * back_end.adb: Update Copyright notice
18682 (Scan_Compiler_Arguments): Process -nostdlib directly.
18684 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
18687 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
18688 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
18689 included in HIE_NONE_TARGET_PAIRS.
18691 2003-12-03 Ed Schonberg <schonberg@gnat.com>
18694 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
18695 is legal in an instance, because legality is cheched in the template.
18698 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
18699 appplied to an unchecked conversion of a formal parameter.
18702 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
18705 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
18707 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
18708 routines. The second one is new functionality to deal with backtracing
18709 through signal handlers.
18710 (unwind): Split into the two separate subroutines above.
18711 Update the documentation, and deal properly with sizeof (REG) different
18712 from sizeof (void*).
18714 2003-12-01 Nicolas Setton <setton@act-europe.fr>
18716 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
18717 so that the debugger can reliably access the value of the parameter,
18718 and therefore is able to display the exception name when an exception
18719 breakpoint is reached.
18721 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
18723 * fmap.adb: Fix typo in warning message.
18725 * g-socket.ads, g-socket.adb: Make Free a visible instance of
18726 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
18728 2003-12-01 Vincent Celier <celier@gnat.com>
18730 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
18732 (Build_Library): Get the switches only if Default_Switches is declared
18735 2003-12-01 Ed Schonberg <schonberg@gnat.com>
18737 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
18738 actuals that are indexed components, reanalyze actual to ensure that
18739 packed array references are properly expanded.
18741 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
18742 attempted assignment to a discriminant.
18744 2003-12-01 Robert Dewar <dewar@gnat.com>
18746 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
18749 * switch-c.adb: Minor reformatting of comments
18751 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
18753 * Makefile.in: Clean ups.
18755 2003-12-01 GNAT Script <nobody@gnat.com>
18757 * Make-lang.in: Makefile automatically updated
18759 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
18761 * 5wsystem.ads: Disable zero cost exception, not ready yet.
18763 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
18765 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
18766 to force serialization.
18768 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
18770 * g-socket.ads, g-socket.adb:
18771 Clarify documentation of function Stream. Introduce a Free procedure
18772 to release the returned Stream once it becomes unused.
18774 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
18776 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
18778 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
18779 since NT 4 cannot handle timeout values that are too large,
18780 e.g. DWORD'Last - 1.
18782 2003-11-26 Ed Schonberg <schonberg@gnat.com>
18785 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
18786 in procedure calls and whose expansion must be deferred.
18788 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
18792 (Build_Derived_Array_Type): Create operator for unconstrained type
18793 if ancestor is unconstrained.
18795 2003-11-26 Vincent Celier <celier@gnat.com>
18797 * make.adb (Project_Object_Directory): New global variable
18798 (Change_To_Object_Directory): New procedure
18799 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
18800 of Change_Dir directly. Do not change working directory to object
18801 directory of main project after each compilation.
18802 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
18804 Change to object directory of main project before binding step.
18805 (Initialize): Initialize Project_Object_Directory to No_Project
18808 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
18809 binding a Stand-Alone Library.
18811 * output.adb: Update Copyright notice
18812 (Write_Char): Output buffer when full
18814 2003-11-26 Robert Dewar <dewar@gnat.com>
18816 * sem_ch13.adb: (Check_Size): Reset size if size is too small
18819 (Check_Size): Fix documentation to include bit-packed array case
18821 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
18823 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
18825 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
18827 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
18830 * utils.c (init_gigi_decls): Change name of built-in setjmp to
18831 __builtin_setjmp, since this is apparently needed by recent
18834 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18836 * adadecode.c: Only include ctype.h if not IN_GCC.
18837 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
18839 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
18842 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
18843 signals and interrupts.
18845 * 5zintman.ads: New File.
18847 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
18848 add exception signals to the set of unmasked signals.
18851 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
18852 between signals and interrupts.
18853 Add to Unblocked_Signal_Mask the set of signals that are in
18857 Adding a check to see whether the Interrupt_ID we want to unmask is in
18858 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
18859 reason is that the index type of the Keep_Unmasked array is not always
18860 Interrupt_ID; it may be a subtype of Interrupt_ID.
18862 2003-11-24 Gary Dismukes <dismukes@gnat.com>
18865 (Remove_Side_Effects): Condition constantness of object created for a
18866 an unchecked type conversion on the constantness of the expression
18867 to ensure the correct value for 'Constrained when passing components
18868 of view-converted class-wide objects.
18870 2003-11-24 Robert Dewar <dewar@gnat.com>
18872 * par-load.adb (Load): Improve handling of misspelled and missing units
18873 Removes several cases of compilation abandoned messages
18875 * lib.adb: (Remove_Unit): New procedure
18877 * lib.ads: (Remove_Unit): New procedure
18879 * lib-load.adb: Minor reformatting
18881 2003-11-24 Vincent Celier <celier@gnat.com>
18884 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
18885 (Marking_Label): Label to mark processed source files. Incremented for
18887 (Gnatmake): Increase Marking_Labet for each executable
18888 (Is_Marked): Compare against marking label
18889 (Mark): Mark with marking label
18891 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
18894 Move the declaration of the TSD for System.Threads to System.Soft_Links.
18897 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
18898 (rts-cert): build a single relocatable object for the run-time lib.
18901 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
18904 Use gnatls rather than gcc to obtain the location of GNAT RTL for
18907 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
18909 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
18910 can not use it as before (that is, as a variable) when dumping it into
18911 the tree file. Add a local variable to store the result of this
18912 function and to be used as the string to be written into the tree.
18914 * scn.adb (Initialize_Scanner): Add comments explaining the recent
18917 * sinput.adb (Source_First, Source_Last): In case of
18918 Internal_Source_File, replace returning attributes of
18919 Internal_Source_Ptr (which is wrong) with returning attributes of
18922 2003-11-24 Ed Schonberg <schonberg@gnat.com>
18925 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
18926 used for implicit concatenation operators.
18930 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
18931 task bodies that are in the scope of a Suppress pragma.
18932 (Check_A Call): Use the flag to prevent spurious elaboration checks.
18934 * sinfo.ads, sinfo.adb:
18935 New flag No_Elaboration_Check on function/procedure calls, to properly
18936 suppress checks on calls in task bodies that are within a local suppress
18940 (Expand_Concatenate_Other): Use the proper integer type for the
18941 expression for the upper bound, to avoid universal_integer computations
18944 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
18946 * .cvsignore: Delete.
18948 2003-11-21 Andreas Schwab <schwab@suse.de>
18950 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
18952 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
18954 * 5wsystem.ads: Enable zero cost exception.
18956 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
18958 * 5ztiitho.adb: Remove an unreferenced variable.
18960 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
18962 * adaint.c: For FreeBSD, use mkstemp.
18964 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
18966 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
18968 2003-11-21 Robert Dewar <dewar@gnat.com>
18970 * bld.adb: Remove useless USE of gnatvsn
18972 * gnatchop.adb: Minor reformatting
18973 Clean up version handling to be more consistent
18975 * gnatxref.adb: Minor reformatting
18977 * gprcmd.adb: Minor reformatting
18978 Fix output of copyright to be more consistent with other tools
18980 2003-11-21 Vincent Celier <celier@gnat.com>
18982 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
18984 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
18986 * atree.adb (Initialize): Add initializations for global variables
18987 used in New_Copy_Tree.
18989 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
18990 Internal_Source_File as the actual).
18991 Put the set of statements creating Any_Character before the set of
18992 statements creating Any_Array to have Any_Character fully initialized
18993 when it is used in creating Any_Array.
18995 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
18996 not call Scan in case if the actual is Internal_Source_File
18997 Add 2003 to copyright note.
18999 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
19000 processing Internal_Source_File.
19002 * types.ads: Add the constant Internal_Source_File representing the
19003 source buffer for artificial source-code-like strings created within
19004 the compiler (the definition of Source_File_Index is changed).
19006 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
19008 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
19009 56system.ads: New file, FreeBSD version.
19011 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
19013 * Make-lang.in (ada.extraclean): Delete.
19015 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
19017 * gnatmem.adb: Clean up verbose output.
19019 * gprcmd.adb: Change copyright to FSF.
19021 2003-11-19 Vincent Celier <celier@gnat.com>
19023 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
19024 and Version (ignored).
19026 * symbols.ads: (Policy): New type
19027 (Initialize): New parameter Reference, Symbol_Policy and
19029 Remove parameter Force.
19030 Minor reformatting.
19032 * snames.ads, snames.adbadb: New standard names
19033 Library_Reference_Symbol_File and Library_Symbol_Policy
19036 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
19040 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
19042 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
19044 * prj.adb: (Project_Empty): New component Symbol_Data
19046 * prj.ads: (Policy, Symbol_Record): New types
19047 (Project_Data): New component Symbol_Data
19050 New attributes Library_Symbol_File, Library_Symbol_Policy and
19051 Library_Reference_Symbol_File.
19054 (Ada_Check): When project is a Stand-Alone library project, process
19055 attribute Library_Symbol_File, Library_Symbol_Policy and
19056 Library_Reference_Symbol_File.
19058 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
19059 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
19060 5sml-tgt.adb (Build_Dynamic_Library): New parameter
19061 Symbol_Data (ignored).
19063 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
19064 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
19065 functions Option_File_Name and Version_String. Set new options of
19066 gnatsym related to symbol file, symbol policy and reference symbol
19070 Extensive modifications to take into account the reference symbol file,
19071 the symbol policy, the library version and to put in the symbol file the
19072 minor and major IDs.
19074 * bld.adb (Process_Declarative_Items): Put second argument of
19075 gprcmd to_absolute between single quotes, to avoid problems with
19078 * bld-io.adb: Update Copyright notice.
19079 (Flush): Remove last character of a line, if it is a back slash, to
19080 avoid make problems.
19083 Implement new scheme with reference symbol file and symbol policy.
19085 * g-os_lib.ads: (Is_Directory): Clarify comment
19087 2003-11-19 Robert Dewar <dewar@gnat.com>
19089 * atree.adb: Move New_Copy_Tree global variables to head of package
19091 * errout.adb: Minor reformatting
19093 2003-11-19 Javier Miranda <miranda@gnat.com>
19095 * sem_ch4.adb: (Diagnose_Call): Improve error message.
19096 Add reference to Ada0Y (AI-50217)
19098 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
19099 sem_util.adb: Add reference to AI-50217
19101 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
19103 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
19105 * sem_aggr.adb: Complete documentation of AI-287 changes
19107 * par-ch4.adb: Document previous changes.
19109 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
19110 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
19113 * exp_aggr.adb: Add references to AI-287 in previous changes
19115 2003-11-19 Ed Schonberg <schonberg@gnat.com>
19118 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
19119 in the rewriting is the result of an inlined call.
19121 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
19122 parameter is a type conversion, use original node to construct the
19123 post-call assignment, because expression may have been rewritten, e.g.
19124 if it is a packed array.
19127 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
19128 body, just as it is in an instance.
19129 Categorization routines
19131 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
19132 Instantiate_Object): Set proper sloc reference for message on missing
19135 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
19137 * Makefile.in: Add FreeBSD libgnat pairs.
19139 * usage.adb: Fix typo in usage message.
19141 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
19143 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
19144 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
19145 pragma Thread_Body.
19146 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
19148 * s-thread.adb: This file is now a dummy implementation of
19151 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
19153 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
19155 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
19157 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
19158 instanciation references in the parent type description.
19160 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19162 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
19164 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
19165 TYPE_PRECISION directly from esize.
19167 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
19170 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
19172 * init.c: Initialization routines for FreeBSD
19174 * link.c: Link info for FreeBSD
19176 * sysdep.c: Add the case of FreeBSD
19178 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
19180 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
19181 already called in System.Threads.
19183 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
19184 environment task, as it has been moved to System.Threads.Initialization.
19186 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
19188 * adaint.c (__gnatlib_install_locks): Only reference
19189 __gnat_install_locks on VMS, since other platforms can avoid using
19190 --enable-threads=gnat
19192 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19194 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
19196 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
19197 TYPE_PACKED_ARRAY_TYPE_P.
19198 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
19200 Part of PR ada/12806
19201 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
19202 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
19204 2003-11-17 Vincent Celier <celier@gnat.com>
19206 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
19208 Do not set exit status to Failure when Warning is True.
19209 (Gnatchop): Make errors "no compilation units found" and
19210 "no source files written" warnings only.
19212 * make.adb (Gnatmake): When using a project file, set
19213 Look_In_Primary_Dir to False.
19214 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
19215 and Local_Configuration_Pragmas in the project where they are declared
19216 not an extending project which might have inherited them.
19218 * osint.adb (Locate_File): If Name is already an absolute path, do not
19219 look for a directory.
19221 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
19222 -gnats (Check_Syntax) is used, issue only a warning, not an error.
19224 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
19225 in objects of type Variable_Value.
19227 * prj.ads: (Variable_Value): New component Project
19229 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
19230 is in a project extended by Project.
19232 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
19233 Project of Variable_Values to this new parameter value.
19234 (Expression): Set component Project of Variable_Values.
19235 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
19236 Set the component Project in array elements.
19238 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
19240 * errout.adb: (Initialize): Add initialization for error nodes.
19242 * sem_ch12.adb (Initialize): Add missing initializations for
19243 Exchanged_Views and Hidden_Entities.
19245 2003-11-17 Ed Schonberg <schonberg@gnat.com>
19247 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
19248 already instantiated tree for use in subsequent inlining.
19249 (Analyze_Associations, Instantiate_Formal_Subprogram,
19250 Instantiate_Object): improve error message for mismatch in
19253 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
19254 instantiations of subprograms declared in instances.
19256 2003-11-17 Javier Miranda <miranda@gnat.com>
19258 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
19259 executed only under the Extensions_Allowed flag.
19261 2003-11-17 Robert Dewar <dewar@gnat.com>
19263 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
19265 (Address_Image): Fix bug of returning 0x instead of 0x0
19266 Minor reformatting (function specs).
19268 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
19269 (missed case of 33-63)
19271 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
19273 * s-thread.adb: Add comments for pragma Restriction
19275 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
19276 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
19278 2003-11-17 Ed Falis <falis@gnat.com>
19280 * s-thread.adb: Added No_Tasking restriction for this implementation.
19282 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
19284 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
19285 instanciation references in the parent type description.
19287 2003-11-17 GNAT Script <nobody@gnat.com>
19289 * Make-lang.in: Makefile automatically updated
19291 2003-11-16 Jason Merrill <jason@redhat.com>
19293 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
19294 and TAGS files that include them for each front end.
19296 2003-11-14 Andreas Jaeger <aj@suse.de>
19298 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
19299 is the canonical version.
19300 * misc.c (gnat_handle_option): Likewise.
19302 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
19304 * 5nsystem.ads: New file for x86_64-linux-gnu.
19306 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
19308 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
19310 * comperr.adb: Fix logic in previous change.
19312 2003-11-13 Vincent Celier <celier@gnat.com>
19314 * 5bml-tgt.adb (Build_Dynamic_Library): Use
19315 Osint.Include_Dir_Default_Prefix instead of
19316 Sdefault.Include_Dir_Default_Name.
19318 * gnatlbr.adb: Update Copyright notice
19319 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
19320 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
19321 instead of Sdefault.Object_Dir_Default_Name
19324 (Process_Binder_File): Never suppress the option following -Xlinker
19327 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
19328 Sdefault.Object_Dir_Default_Name.
19330 * osint.ads, osint.adb:
19331 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
19332 Minor reformatting.
19334 * vms_conv.ads: Minor reformating
19335 Remove GNAT STANDARD and GNAT PSTA
19338 Allow GNAT MAKE to have several files on the command line.
19339 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
19340 Sdefault.Object_Dir_Default_Name.
19342 Remove data for GNAT STANDARD
19345 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
19346 Remove data for GNAT STANDARD
19347 Remove options and documentation for -gnatwb/-gnatwB: these warning
19348 options no longer exist.
19350 2003-11-13 Ed Falis <falis@gnat.com>
19352 * 5zthrini.adb: (Init_RTS): Made visible
19355 (Register): Removed unnecessary call to taskVarGet that checked whether
19356 an ATSD was already set as a task var for the argument thread.
19359 Updated comment to reflect that this is a VxWorks version
19360 Added context clause for System.Threads.Initialization
19361 Added call to System.Threads.Initialization.Init_RTS
19363 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
19366 (Init_RTS): New procedure, for the initialization of the run-time lib.
19369 Remove dependancy on System.Init, so that this file can be used in the
19370 AE653 sequential run-time lib.
19372 2003-11-13 Robert Dewar <dewar@gnat.com>
19374 * bindgen.adb: Minor reformatting
19376 2003-11-13 Ed Schonberg <schonberg@gnat.com>
19379 (Apply_Discriminant_Check): Do no apply check if target type is derived
19380 from source type with no applicable constraint.
19383 (Ensure_System_Dependency): Do not apply the style checks that may have
19384 been specified for the main unit.
19387 (Find_Selected_Component): Further improvement in error message, with
19391 (Resolve): Handle properly the case of an illegal overloaded protected
19394 2003-11-13 Javier Miranda <miranda@gnat.com>
19397 (Has_Default_Init_Comps): New function to check the presence of
19398 default initialization in an aggregate.
19399 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
19400 extension aggregate of a limited record. In addition, a new formal
19401 was added to do not initialize the record controller (if any) during
19402 this recursive expansion of ancestors.
19403 (Init_Controller): Add support for limited record components.
19404 (Expand_Record_Aggregate): In case of default initialized components
19405 convert the aggregate into a set of assignments.
19407 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
19408 describing the new syntax.
19409 Nothing else needed to be done because this subprogram delegates part of
19410 its work to P_Precord_Or_Array_Component_Association.
19411 (P_Record_Or_Array_Component_Association): Give support to the new
19412 syntax for default initialization of components.
19415 (Resolve_Aggregate): Relax the strictness of the frontend in case of
19416 limited aggregates.
19417 (Resolve_Record_Aggregate): Give support to default initialized
19419 (Get_Value): In case of default initialized components, duplicate
19420 the corresponding default expression (from the record type
19421 declaration). In case of default initialization in the *others*
19422 choice, do not check that all components have the same type.
19423 (Resolve_Extension_Aggregate): Give support to limited extension
19427 (Check_Initialization): Relax the strictness of the front-end in case
19428 of aggregate and extension aggregates. This test is now done in
19429 Get_Value in a per-component manner.
19431 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
19432 expression corresponds to a limited aggregate. This test is now done
19435 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
19438 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
19439 present in an N_Component_Association node
19441 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
19443 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
19444 type-conformant entry only if they are homographs.
19446 2003-11-13 GNAT Script <nobody@gnat.com>
19448 * Make-lang.in: Makefile automatically updated
19450 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19452 * adadecode.c: Use <> form of include for ctype.h.
19453 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
19455 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19457 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
19458 Works around PR middle-end/6552.
19460 2003-11-10 Ed Falis <falis@gnat.com>
19462 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
19464 * 5zinit.adb: (Install_Handler): Moved back to spec
19465 (Install_Signal_Handlers): Deleted
19467 * 5zthrini.adb: Added context clause for System.Storage_Elements
19468 (Register): Only handles creation of taskVar; initialization moved to
19470 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
19471 Added declaration of environment task secondary stack and
19474 * s-thread.adb: Implement bodies for thread body processing
19477 Added comment identifying supported targets for pragma Thread_Body.
19479 2003-11-10 Pascal Obry <obry@gnat.com>
19481 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
19485 (Open): Properly check for string length before copying into the buffer.
19486 Raises Name_Error if buffer is too small. Note that this was a potential
19489 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
19491 * bindgen.adb, comperr.adb: Code clean ups.
19492 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
19494 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
19496 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
19498 2003-11-10 Vincent Celier <celier@gnat.com>
19501 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
19504 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
19506 * prj.adb: (Project_Empty): Add new boolean component Virtual
19508 * prj.ads: (Virtual_Prefix): New constant string
19509 (Project_Data): New boolean component Virtual
19511 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
19512 a library project is extended by a virtual extending project.
19515 Modifications throughout to implement extending-all project, including:
19516 (Virtual_Hash, Processed_Hash): New hash tables
19517 (Create_Virtual_Extending_Project): New procedure
19518 (Look_For_Virtual_Projects_For): New procedure
19521 (Process): After checking the projects, if main project is an
19522 extending-all project, set the object directory of all virtual extending
19523 project to the object directory of the main project.
19524 Adjust error message when a virtual extending project has the same
19525 object directory as an project being extended.
19526 (Recursive_Process): If name starts with the virtual prefix, set Virtual
19527 to True in the project data.
19530 (Default_Project_Node): Add new boolean component Extending_All
19531 (Is_Extending_All): New function
19532 (Set_Is_Extending_All): New procedure
19534 * prj-tree.ads: (Is_Extending_All): New function
19535 (Set_Is_Extending_All): New procedure
19536 (Project_Node_Record): New boolean component Extending_All
19538 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
19541 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
19543 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
19544 "gprcmd prefix" to define it.
19546 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
19548 * einfo.ads: Fix a typo and remove an extraneous word in comments.
19551 (Create_Dummy_Package_Unit): Set the scope of the entity for the
19552 created dummy package to Standard_Standard, not to itself, to
19553 defend other parts of the front-end against encoutering a cycle in
19557 (Analyze_With_Clause): When setting the entities for the successive
19558 N_Expanded_Names that constitute the name of a child unit, do not
19559 attempt to go further than Standard_Standard in the chain of scopes.
19560 This case arises from the placeholder units created by
19561 Create_Dummy_Package_Unit in the case of a with_clause for a
19562 nonexistent child unit.
19564 2003-11-10 Ed Schonberg <schonberg@gnat.com>
19567 (Expand_Thread_Body): Place subprogram on scope stack, so that new
19568 declarations are given the proper scope.
19571 (Check_Expr_Constants): Reject an expression that contains a constant
19572 created during expansion, and that appears after the object to which
19573 the address clause applies.
19575 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
19576 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
19577 that uses 'Range of a function call with controlled components, so
19578 that the function result can be finalized before starting the loop.
19581 (Find_Selected_Component): Improve error message when prefix is
19582 an implicit dereference of an incomplete type.
19584 2003-11-10 Robert Dewar <dewar@gnat.com>
19586 * opt.ads: New Print_Standard flag for -gnatS switch
19588 * sem_ch13.adb: Remove some additional checks for unaligned arrays
19590 * cstand.adb (Create_Standard): Print out package standard if -gnatS
19593 * debug.adb: Update doc for -gnatds to discuss relationship with new
19596 * sinfo.adb: Add new field Entity_Or_Associated_Node
19598 * sinfo.ads: Add new field Entity_Or_Associated_Node
19599 Update documentation for Associated_Node and Entity fields to clarify
19600 relationship and usage.
19603 (Write_Id): Properly process Associated_Node field in generic template
19606 Recognize new -gnatS switch for printing package Standard
19607 This replaces gnatpsta
19610 Add line for new -gnatS switch for printing package Standard
19611 This replaces gnatpsta
19613 2003-11-10 Andreas Jaeger <aj@suse.de>
19615 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
19618 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
19620 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
19623 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
19625 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
19628 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
19630 * sysdep.c: Add handling of cygwin.
19632 2003-11-10 GNAT Script <nobody@gnat.com>
19634 * Make-lang.in: Makefile automatically updated
19636 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
19639 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
19640 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
19641 Replace GNAT_ROOT by GCC_ROOT.
19643 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
19645 2003-11-06 Zack Weinberg <zack@codesourcery.com>
19647 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
19648 and update for changed meaning of GET_MODE_BITSIZE.
19650 2003-11-04 Doug Rupp <rupp@gnat.com>
19652 * sysdep.c: Problem discovered during IA64 VMS port.
19653 [VMS] #include <unixio.h> to get proper prototypes.
19656 Issues discovered/problems fixed during IA64 VMS port.
19657 [VMS] #define _POSIX_EXIT for proper semantics.
19658 [VMS] #include <unixio.h> for proper prototypes.
19659 [VMS] (fork): #define IA64 version.
19660 (__gnat_os_exit): Remove unnecessary VMS specific code.
19662 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19664 Part of PR ada/12806
19665 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
19669 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
19672 * targtyps.c, decl.c, misc.c,
19673 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
19674 routines to work around change in FP sizing semantics in GCC.
19677 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
19679 * gigi.h: (enumerate_modes): New function.
19681 * Make-lang.in: (ada/misc.o): Add real.h.
19683 * misc.c: (enumerate_modes): New function.
19685 2003-11-04 Robert Dewar <dewar@gnat.com>
19687 * 3vtrasym.adb: Minor reformatting
19688 Use terminology encoded/decoded name, rather than C++ specific notion
19689 of mangling (this is the terminology used throughout GNAT).
19691 * einfo.h: Regenerated
19693 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
19696 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
19698 * par-prag.adb: Add dummy entry for Thread_Body pragma
19701 Add entries for System.Threads entities for thread body processing
19704 (Analyze_Pragma, Access attributes): Check these are not applied to a
19705 thread body, since this is not permitted
19707 * sem_prag.adb: Add processing for Thread_Body pragma.
19711 (Resolve_Call): Check for incorrect attempt to call a thread body
19712 procedure with a direct call.
19714 * snames.ads, snames.adb: Add entry for Thread_Body pragma
19715 Add names associated with thread body expansion
19717 * snames.h: Add entry for Thread_Body pragma
19719 * s-thread.adb: Add entries for thread body processing
19720 These are dummy bodies so far
19722 * s-thread.ads: Add documentation on thread body handling.
19723 Add entries for thread body processing.
19725 2003-11-04 Javier Miranda <miranda@gnat.com>
19728 (Build_Limited_Views): Return after posting an error in case of limited
19729 with_clause on subprograms, generics, instances or generic renamings
19730 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
19731 on subprograms, generics, instances or generic renamings
19733 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
19735 * raise.c (setup_to_install): Correct mistake in last revision; two
19736 arguments out of order.
19738 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
19739 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
19740 notice, missed in previous change.
19741 Remove trailing blanks and other style errors introduced in previous
19744 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
19746 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
19747 rid of the wrapper for a LJM type, ensuring we don't do that if the
19748 field is addressable. This avoids potential low level type view
19749 mismatches later on, for instance in a by-reference argument passing
19752 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19754 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
19755 aligned at byte boundary.
19757 2003-11-04 Joel Brobecker <brobecker@gnat.com>
19759 * decl.c (components_to_record): Do not delete the empty variants from
19760 the end of the union type.
19762 2003-11-04 Ed Schonberg <schonberg@gnat.com>
19764 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
19765 operation for a derived type, an explicit declaration may use a local
19766 subtype of Boolean.
19768 2003-11-04 Vincent Celier <celier@gnat.com>
19770 * make.adb (Gnatmake): Allow main sources on the command line with a
19771 library project when it is only for compilation (no binding or
19774 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19776 * Makefile.in: Remove many duplicate variables.
19778 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
19780 * Make-lang.in (dvi): Move targets to $(docobjdir).
19781 (gnat_ug_vms.dvi): Simplify rule and adjust target.
19782 (gnat_ug_wnt.dvi): Likewise.
19783 (gnat_ug_unx.dvi): Likewise.
19784 (gnat_ug_vxw.dvi): Likewise.
19785 (gnat_rm.dvi): Likewise.
19786 (gnat-style.dvi): Likewise.
19788 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
19790 * gigi.h: Missed commit from update for C90.
19792 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
19794 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
19796 2003-10-31 Andreas Schwab <schwab@suse.de>
19798 * raise.c (get_action_description_for): Fix typo in last change.
19800 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
19803 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
19804 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
19806 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
19808 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
19809 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
19810 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
19811 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
19812 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
19814 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
19817 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
19818 numbers when symbol name is too long.
19820 2003-10-30 Ed Falis <falis@gnat.com>
19822 * g-signal.ads, g-signal.adb: New files
19824 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
19826 * Makefile.rtl: Introduce GNAT.Signals
19828 2003-10-30 Robert Dewar <dewar@gnat.com>
19830 * freeze.adb: Minor reformatting
19832 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
19834 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
19835 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
19836 New handling of Id_Check parameter to improve recognition of keywords
19837 used as identifiers.
19838 Update copyright notice to include 2003
19840 2003-10-29 Robert Dewar <dewar@gnat.com>
19842 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
19843 sem_ch10.adb: Minor reformatting
19845 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
19846 (Expand_Assign_Record): Test right hand side for bit unaligned as well
19848 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
19850 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
19851 Support for TBK$SYMBOLIZE-based symbolic traceback.
19853 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
19856 Revert previous change, that did not work well when pragma No_Run_Time
19857 was used in conjunction with a run-time other than ZFP.
19859 2003-10-29 Vincent Celier <celier@gnat.com>
19862 (Gnatmake): When there are no Ada mains in attribute Main, disable the
19863 bind and link steps only is switch -z is not used.
19865 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
19867 * Makefile.generic: Remove duplicated setting of CC.
19869 * Makefile.prolog: Set CC to gcc by default, to override make's
19872 * einfo.h: Regenerated.
19874 2003-10-29 Ed Schonberg <schonberg@gnat.com>
19876 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
19877 current body, after compiling subunit.
19879 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
19880 when in deleted code, because gigi needs properly ordered freeze
19881 actions to annotate types.
19883 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
19884 prevent the premature freezing of record type that contains
19885 subcomponents with a private type that does not yet have a completion.
19887 2003-10-29 Javier Miranda <miranda@gnat.com>
19890 (Analyze_Package_Instantiation): Check that instances can not be used in
19891 limited with_clauses.
19894 (Analyze_Package_Renaming): Check that limited withed packages cannot
19895 be renamed. Improve text on error messages related to limited
19898 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
19900 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
19901 Update copyright notice.
19903 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
19904 (Install_Limited_Context_Clauses): New subprogram that isolates all the
19905 checks required for limited context_clauses and installs the limited
19907 (Install_Limited_Withed_Unit): Complete its documentation.
19908 (Analyze_Context): Check that limited with_clauses are only allowed in
19910 (Install_Context): Call Install_Limited_Context_Clauses after the
19911 parents have been installed.
19912 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
19913 package as 'From_With_Type'; this mark indicates that the limited view
19914 is installed. Used to check bad usages of limited with_clauses.
19915 (Build_Limited_Views): Do not add shadow entities to the scope's list
19916 of entities. Do not add real entities to the Non_Limited_Views chain.
19917 Improve error notification.
19918 (Remove_Context_Clauses): Remove context clauses in two phases:
19919 limited views first and regular views later (to maintain the
19921 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
19922 its visible entities.
19924 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
19926 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
19927 with any type that Is_Fixed_Point_Type.
19929 * sinfo.ads: Fix documentation for Associated_Node attribute.
19931 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
19933 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
19934 both '-gnatc' and '-gnatt' are specified.
19936 * atree.adb (Initialize): Add initialization for Node_Count (set to
19939 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19941 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
19942 do not consider as Pure.
19944 Part of implementation of function-at-a-time:
19946 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
19947 (tree_transform): Add new argument to build_component_ref.
19948 (tree_transform, case N_Assignment_Statement): Make and return an
19950 (tree_transform): If result IS_STMT, set flags and return it.
19951 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
19953 * utils2.c (build_simple_component_ref, build_component_ref): Add new
19955 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
19956 (build_allocator): Likewise.
19958 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
19959 Add new arg to build_component_ref.
19960 (maybe_unconstrained_array, unchecked_convert): Likewise.
19962 * ada-tree.def (EXPR_STMT): New code.
19964 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
19966 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
19967 build_component_ref calls.
19969 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
19971 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
19972 (build_component_ref): Add new argument, NO_FOLD_P.
19974 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
19976 * Makefile.generic: Add missing substitution on object_deps handling.
19979 * Make-lang.in (check-ada): Enable ACATS test suite.
19981 2003-10-27 Robert Dewar <dewar@gnat.com>
19984 (Freeze_Array_Type): We do not need an initialization routine for types
19985 derived from String or Wide_String. They should be treated the same
19986 as String and Wide_String themselves. This caused problems with the
19987 use of Initialize_Scalars.
19990 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
19991 composites. This allows use of component clauses that are not byte
19995 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
19996 is an attempt to pack an array of atomic objects.
19998 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
20000 2003-10-27 Pascal Obry <obry@gnat.com>
20003 (Basename): Check for drive letters in a pathname only on DOS based OS.
20005 2003-10-27 Vincent Celier <celier@gnat.com>
20008 (Gnatmake): When unable to change dir to the object dir, display the
20009 content of the parent dir of the obj dir, to try to understand why this
20012 2003-10-27 GNAT Script <nobody@gnat.com>
20014 * Make-lang.in: Makefile automatically updated
20016 2003-10-27 Ed Schonberg <schonberg@gnat.com>
20019 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
20020 should not be done in Save/Restore_Scope_Stack, because it is performed
20024 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
20025 whether use clauses should be removed/restored.
20028 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
20029 whether use clauses should be removed/restored.
20031 2003-10-26 Andreas Jaeger <aj@suse.de>
20033 * Makefile.in: Remove duplicated lines.
20035 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
20037 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
20038 minimize the differences with ACT tree.
20040 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
20041 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
20042 Gnatvsn.Gnat_Static_Version_String to reduce differences between
20045 2003-10-24 Pascal Obry <obry@gnat.com>
20048 * adadecode.c (ostrcpy): New function.
20049 (__gnat_decode): Use ostrcpy of strcpy.
20050 (has_prefix): Set first parameter a const.
20051 (has_suffix): Set first parameter a const.
20052 Update copyright notice. Fix source name in header.
20053 Removes a trailing space.
20055 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
20058 Remove the test against being in No_Run_Time_Mode before generating a
20059 call to Register_Tag. It is redundant with the test against the
20060 availability of the function Register_Tag.
20062 2003-10-24 Vincent Celier <celier@gnat.com>
20064 * g-catiio.adb: (Month_Name): Correct spelling of February
20066 * make.adb: (Mains): New package
20067 (Initialize): Call Mains.Delete
20068 (Gnatmake): Check that each main on the command line is a source of a
20069 project file and, if there are several mains, each of them is a source
20070 of the same project file.
20071 (Gnatmake): When a foreign language is specified in attribute Languages,
20072 no main is specified on the command line and attribute Mains is not
20073 empty, only build the Ada main. If there is no Ada main, just compile
20074 the Ada sources and their closure.
20075 (Gnatmake): If a main is specified on the command line with directory
20076 information, check that the source exists and, if it does, that the path
20077 is the actual path of a source of a project.
20080 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
20081 Full_Path is True, return the full path instead of the simple file name.
20082 (Project_Of): New function
20085 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
20086 defaulted to False.
20087 (Project_Of): New function
20089 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
20091 * Makefile.generic:
20092 Ensure objects of main project are always checked and rebuilt if needed.
20093 Set CC to gcc by default.
20094 Prepare new handling of link by creating a global archive (not activated
20097 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
20098 stringt.h: Update copyright notice. Remove trailing blanks.
20099 Fix source name in header.
20101 2003-10-24 Robert Dewar <dewar@gnat.com>
20103 * sem_ch12.adb: Minor reformatting
20106 Minor reformatting (including new function return style throughout)
20109 Minor reformatting (including new function return style throughout)
20111 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
20113 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
20114 stringt.h: Update copyright notice. Remove trailing blanks.
20115 Fix source name in header.
20117 2003-10-24 GNAT Script <nobody@gnat.com>
20119 * Make-lang.in: Makefile automatically updated
20121 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
20123 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
20124 stringt.h: Convert to ISO C90 declarations and definitions.
20126 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
20129 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
20130 External_Tag attribute definition clauses.
20132 2003-10-23 Ed Schonberg <schonberg@gnat.com>
20135 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
20136 child unit, generate a fully qualified name to avoid spurious errors
20137 when the context contains renamings of different child units with
20138 the same simple name.
20140 * exp_dbug.ads: Add documentation on name qualification for renamings
20143 2003-10-23 Robert Dewar <dewar@gnat.com>
20145 * g-regpat.ads, g-regpat.adb: Minor reformatting
20147 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
20149 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
20151 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20153 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
20156 * urealp.h: (Machine): Update to proper definition.
20158 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
20160 * init.c, adaint.c: Minor reformatting.
20162 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
20164 * adaint.c (w32_epoch_offset): Define static const at file level.
20165 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
20166 rather than t_create, t_access in call to GetFileTime. Use union
20167 to convert between FILETIME and unsigned long long.
20168 (__gnat_file_time_name): Test for invalid file handle.
20169 (__gnat_set_filetime_name): Support win32 targets using
20170 w32api SetFileTime.
20172 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
20174 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
20176 * ctrl_c.c (__gnat_int_handler): Remove declaration.
20178 * decl.c (creat_concat_name): Const-ify prefix.
20180 * adaint.c: Include ctype.h if __MINGW32__.
20181 (__gnat_readlink): Mark arguments as possibly unused.
20182 (__gnat_symlink): Likewise.
20183 (__gnat_is_symbolic_link): Likewise.
20184 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
20186 (__gnat_file_time_name): Don't declare struct stat statbuf when
20188 (__gnat_is_absolute_path): Add parenthesis around condition of
20189 'if' statement to avoid warning.
20190 (__gnat_plist_init): Specify void as parameter.
20191 (plist_enter): Likewise.
20192 (plist_leave): Likewise.
20193 (remove_handle): Make static. Initialize prev.
20195 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
20198 * Makefile.in: Disable build of gnatpsta.
20199 * cstreams.c (__gnat_full_name): Minor improvements and clean up
20200 of previous change.
20202 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20204 * tracebak.c (MAX): Avoid redefinition warning.
20206 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
20207 Change msg to const char *.
20208 (__gnat_install_handler): Remove ss, unused.
20209 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
20211 * cstreams.c (__gnat_full_name): Declare p only when used.
20212 (__gnat_full_name) [sgi] Return buffer.
20214 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
20216 * mingw32.h: New file.
20217 * gnat_wrapper.adb: New file.
20219 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
20221 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
20222 string match a pre compiled regular expression (the corresponding
20223 version of the function working on a raw regular expression)
20224 Fix typos in various comments
20225 Update copyright notice in spec
20227 2003-10-21 Gary Dismukes <dismukes@gnat.com>
20230 (Component_Needs_Simple_Initialization): Return False when the type is a
20231 packed bit array. Revise spec comments to document this case.
20234 (Expand_Pragma_Import): Set any expression on the imported object to
20235 empty to avoid initializing imported objects (in particular this
20236 covers the case of zero-initialization of bit arrays).
20237 Update copyright notice.
20239 2003-10-21 Ed Schonberg <schonberg@gnat.com>
20242 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
20243 a subunit is missing.
20244 (Instantiate_Subprogram_Body): If body of function is missing, set type
20245 of return expression explicitly in dummy body, to prevent cascaded
20246 errors when a subunit is missing.
20250 (Access_Subprogram_Declaration): Verify that return type is valid.
20254 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
20259 (Corresponding_Discriminant): If the scope of the discriminant is a
20260 private type without discriminant, use its full view.
20263 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
20265 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
20266 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
20267 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
20268 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
20269 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
20270 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
20271 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
20272 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
20273 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
20274 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
20275 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
20276 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
20277 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
20278 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
20279 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
20280 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
20281 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
20282 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
20283 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
20284 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
20285 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
20286 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
20287 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
20288 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
20289 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
20290 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
20291 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
20292 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
20293 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
20294 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
20295 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
20296 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
20297 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
20298 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
20299 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
20300 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
20301 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
20302 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
20303 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
20304 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
20305 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
20306 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
20307 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
20308 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
20309 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
20310 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
20311 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
20312 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
20313 vms_conv.ads, vms_conv.adb, vms_data.ads,
20314 vxaddr2line.adb: Files added. Merge with ACT tree.
20316 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
20317 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
20318 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
20319 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
20320 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
20321 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
20322 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
20323 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
20324 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
20325 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
20327 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
20328 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
20329 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
20330 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
20331 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
20332 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
20333 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
20334 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
20335 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
20336 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
20337 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
20338 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
20339 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
20340 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
20341 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
20342 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
20343 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
20344 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
20345 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
20346 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
20347 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
20348 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
20349 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
20350 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
20351 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
20352 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
20353 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
20354 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
20355 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
20356 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
20357 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
20358 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
20359 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
20360 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
20361 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
20362 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
20363 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
20364 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
20365 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
20366 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
20367 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
20368 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
20369 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
20370 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
20371 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
20372 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
20373 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
20374 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
20375 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
20376 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
20377 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
20378 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
20379 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
20380 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
20381 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
20382 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
20383 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
20384 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
20385 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
20386 checks.adb, checks.ads, cio.c, comperr.adb,
20387 comperr.ads, csets.adb, cstand.adb, cstreams.c,
20388 debug_a.adb, debug_a.ads, debug.adb, decl.c,
20389 einfo.adb, einfo.ads, errout.adb, errout.ads,
20390 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
20391 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
20392 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
20393 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
20394 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
20395 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
20396 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
20397 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
20398 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
20399 fe.h, fmap.adb, fmap.ads, fname.adb,
20400 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
20401 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
20402 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
20403 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
20404 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
20405 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
20406 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
20407 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
20408 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
20409 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
20410 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
20411 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
20412 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
20413 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
20414 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
20415 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
20416 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
20417 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
20418 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
20419 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
20420 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
20421 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
20422 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
20423 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
20424 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
20425 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
20426 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
20427 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
20428 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
20429 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
20430 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
20431 layout.adb, lib.adb, lib.ads, lib-list.adb,
20432 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
20433 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
20434 link.c, live.adb, make.adb, make.ads,
20435 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
20436 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
20437 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
20438 misc.c, mkdir.c, mlib.adb, mlib.ads,
20439 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
20440 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
20441 namet.adb, namet.ads, namet.h, nlists.ads,
20442 nlists.h, nmake.adt, opt.adb, opt.ads,
20443 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
20444 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
20445 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
20446 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
20447 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
20448 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
20449 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
20450 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
20451 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
20452 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
20453 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
20454 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
20455 prj-util.adb, prj-util.ads, raise.c, raise.h,
20456 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
20457 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
20458 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
20459 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
20460 scans.ads, scn.adb, scn.ads, s-crc32.adb,
20461 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
20462 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
20463 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
20464 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
20465 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
20466 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
20467 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
20468 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
20469 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
20470 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
20471 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
20472 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
20473 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
20474 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
20475 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
20476 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
20477 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
20478 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
20479 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
20480 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
20481 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
20482 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
20483 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
20484 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
20485 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
20486 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
20487 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
20488 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
20489 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
20490 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
20491 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
20492 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
20493 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
20494 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
20495 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
20496 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
20497 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
20498 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
20499 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
20500 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
20501 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
20502 stringt.adb, stringt.ads, stringt.h, style.ads,
20503 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
20504 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
20505 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
20506 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
20507 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
20508 table.adb, table.ads, targparm.adb, targparm.ads,
20509 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
20510 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
20511 ttypes.ads, types.ads, types.h, uintp.adb,
20512 uintp.ads, uintp.h, uname.adb, urealp.adb,
20513 urealp.ads, urealp.h, usage.adb, utils2.c,
20514 utils.c, validsw.adb, validsw.ads, widechar.adb,
20515 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
20516 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
20517 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
20518 gnatvsn.ads: Merge with ACT tree.
20520 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
20522 2003-10-20 Mark Mitchell <mark@codesourcery.com>
20524 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
20525 (gnat_ug_vmx.info): Likewise.
20526 (gnat_ug_vxw.info): Likewise.
20527 (gnat_ug_wnt.info): Likewise.
20528 (gnat_rm.info): Likewise.
20529 (gnat-style.info): Likewise.
20531 * Make-lang.in (ada.install-info): Remove target.
20532 (info): New target.
20533 (install-info): Likewise.
20534 (gnat_ug_unx.info): Simplify rule.
20535 (gnat_ug_vmx.info): Likewise.
20536 (gnat_ug_vxw.info): Likewise.
20537 (gnat_ug_wnt.info): Likewise.
20538 (gnat_rm.info): Likewise.
20539 (gnat-style.info): Likewise.
20541 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
20543 * Make-lang.in: Replace uses of $(target_alias) with
20544 $(target_noncanonical).
20545 * ada/Makefile.in: Remove unused mention of $(target_alias).
20547 2003-10-06 Mark Mitchell <mark@codesourcery.com>
20549 * Make-lang.in (ada.info): Replace with ...
20551 (ada.dvi): Replace with ...
20554 2003-09-29 Zack Weinberg <zack@codesourcery.com>
20556 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
20557 initialize dconstp5 and dconstmp5.
20559 2003-09-28 Richard Henderson <rth@redhat.com>
20561 * trans.c (tree_transform): Update call to expand_asm_operands.
20563 2003-09-21 Richard Henderson <rth@redhat.com>
20565 * trans.c, utils.c: Revert.
20567 2003-09-21 Richard Henderson <rth@redhat.com>
20569 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
20572 2003-09-04 Michael Matz <matz@suse.de>
20574 * misc.c: Include "target.h".
20575 * Make-lang.in (misc.o): Add dependency on target.h.
20577 2003-09-03 DJ Delorie <dj@redhat.com>
20579 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
20582 2003-08-30 Zack Weinberg <zack@codesourcery.com>
20584 * Makefile.in: Update substitutions to match changes to
20585 configure. Use include directives instead of @-insertions
20586 to read in host and target fragments. Add a rule to
20587 regenerate ada/Makefile.
20589 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
20591 * lang-options.h: Remove.
20592 * lang.opt: Add help text.
20594 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
20596 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
20599 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
20601 * misc.c (gnat_handle_option): Don't handle filenames.
20603 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
20605 * Make-lang.in: Replace PWD with PWD_COMMAND.
20606 * Makefile.adalib: Likewise.
20607 * Makefile.in: Likewise.
20609 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
20611 * misc.c (gnat_argv): Revert last change.
20612 (gnat_handle_option, gnat_init_options): Copy arguments.
20614 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
20616 * misc.c (gnat_argv): Make const.
20618 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
20620 * misc.c (save_argc, save_argv): Keep non-static!
20622 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
20624 * misc.c (save_argc, save_argv): Make static.
20625 (gnat_init_options): New prototype.
20626 (gnat_init_options): Update.
20628 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
20630 * gnat_ug.texi: Remove unlikely characters from @vars.
20631 * gnat_ug_vms.texi: Regenerate.
20633 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
20635 * misc.c (record_code_position): Adjust emit_note call.
20637 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
20639 * misc.c (gnat_handle_option): Don't check for missing arguments.
20641 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
20643 * utils.c (end_subprog_body): Adjust expand_function_end call.
20645 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
20647 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
20650 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
20652 * lang.opt: Declare Ada.
20653 * misc.c (gnat_init_options): Update.
20655 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
20657 * utils.c (begin_subprog_body): Adjust init_function_start call.
20659 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
20661 * Make-lang.in: Update to use options.c and options.h.
20662 * misc.c: Include options.h not aoptions.h.
20663 (gnat_handle_option): Abort on unrecognized switch.
20664 (gnat_init_options): Request Ada switches.
20666 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
20668 * lang.opt: Add -Wall.
20669 * misc.c (gnat_handle_option): Handle it.
20671 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
20673 * misc.c (gnat_handle_option): Fix warnings.
20675 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
20677 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
20679 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
20681 * Make-lang.in: Update to handle command-line options.
20682 * lang.opt: New file.
20683 * misc.c: Include aoptions.h.
20684 (cl_options_count, cl_options): Remove.
20685 (gnat_handle_option): New.
20686 (gnat_decode_option): Remove.
20687 (LANG_HOOKS_DECODE_OPTION): Remove.
20688 (LANG_HOOKS_HANDLE_OPTION): Override.
20690 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
20692 * init.c, misc.c, trans.c, utils.c: Remove dead code.
20694 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
20696 * Makefile.in: Replace "host_canonical" with "host" for autoconf
20699 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
20701 * Make-lang.in: Update.
20702 * misc.c: Include opts.h. Define cl_options_count and cl_options.
20704 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
20706 * misc.c (gnat_init_options): Update.
20708 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
20710 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
20711 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
20712 __attribute__ ((__unused__)).
20714 2003-06-05 Jan Hubicka <jh@suse.cz>
20716 * Make-lang.in: Add support for stageprofile and stagefeedback
20718 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
20720 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
20721 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
20723 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
20725 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
20726 Remove non-VMS directive.
20727 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
20729 (Examples of gnatls Usage): Remove VMS alternative.
20731 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
20734 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
20735 and turn ZCX_By_Default back to False since the underlying support
20736 is not quite there yet.
20738 2003-06-01 Andreas Jaeger <aj@suse.de>
20740 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
20741 and ROUND_TYPE_SIZE_UNIT.
20743 2003-05-22 Geert Bosch <bosch@gnat.com>
20745 * gnat_rm.texi : Remove reference to Ada Core Technologies.
20747 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
20749 * trans.c (tree_transform): Use location_t and input_location
20751 (build_unit_elab): Likewise.
20752 * utils.c (create_label_decl): Likewise.
20754 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
20756 * trans.c (tree_transform, build_unit_elab,
20757 set_lineno): Rename lineno to input_line.
20758 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
20759 end_subprog_body): Likewise.
20760 * utils2.c (build_call_raise): Likewise.
20762 2003-05-01 Laurent Guerby <guerby@acm.org>
20765 * 5iosinte.ads: Increase pthread_cond_t size to match recent
20766 LinuxThread and NPTL version, merge from ACT.
20768 2003-04-28 Zack Weinberg <zack@codesourcery.com>
20770 * utils.c (convert): No need to clear TREE_CST_RTL.
20772 2003-04-23 Geert Bosch <bosch@gnat.com>
20774 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
20775 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
20776 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
20777 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
20778 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
20779 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
20780 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
20781 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
20782 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
20783 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
20784 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
20785 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
20786 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
20787 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
20788 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
20789 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
20790 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
20791 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
20792 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
20793 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
20794 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
20795 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
20796 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
20797 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
20798 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
20799 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
20800 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
20801 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
20802 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
20803 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
20804 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
20805 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
20806 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
20807 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
20808 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
20809 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
20810 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
20811 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
20812 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
20813 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
20814 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
20815 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
20816 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
20817 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
20818 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
20819 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
20820 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
20821 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
20822 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
20823 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
20824 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
20825 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
20826 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
20827 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
20828 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
20829 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
20830 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
20831 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
20832 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
20833 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
20834 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
20835 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
20836 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
20837 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
20838 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
20839 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
20840 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
20841 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
20842 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
20843 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
20844 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
20845 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
20846 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
20847 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
20848 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
20849 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
20850 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
20851 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
20852 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
20853 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
20854 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
20855 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
20856 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
20857 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
20858 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
20859 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
20860 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
20861 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
20862 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
20863 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
20864 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
20865 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
20866 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
20867 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
20868 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
20869 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
20870 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
20871 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
20872 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
20873 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
20874 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
20875 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
20876 ali.adb, ali.ads, alloc.ads, argv.c,
20877 atree.adb, atree.ads, atree.h, aux-io.c,
20878 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
20879 binde.adb, binde.ads, binderr.adb, binderr.ads,
20880 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
20881 butil.adb, butil.ads, cal.c, calendar.ads,
20882 casing.adb, casing.ads, ceinfo.adb, checks.adb,
20883 checks.ads, cio.c, comperr.adb, comperr.ads,
20884 config-lang.in, csets.adb, csets.ads, csinfo.adb,
20885 cstand.adb, cstand.ads, cuintp.c, debug.adb,
20886 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
20887 dec-io.ads, dec.ads, deftarg.c, directio.ads,
20888 einfo.adb, einfo.ads, elists.adb, elists.ads,
20889 elists.h, errno.c, errout.adb, errout.ads,
20890 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
20891 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
20892 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
20893 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
20894 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
20895 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
20896 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
20897 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
20898 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
20899 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
20900 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
20901 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
20902 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
20903 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
20904 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
20905 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
20906 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
20907 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
20908 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
20909 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
20910 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
20911 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
20912 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
20913 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
20914 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
20915 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
20916 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
20917 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
20918 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
20919 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
20920 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
20921 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
20922 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
20923 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
20924 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
20925 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
20926 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
20927 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
20928 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
20929 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
20930 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
20931 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
20932 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
20933 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
20934 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
20935 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
20936 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
20937 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
20938 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
20939 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
20940 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
20941 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
20942 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
20943 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
20944 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
20945 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
20946 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
20947 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
20948 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
20949 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
20950 lib.adb, lib.ads, live.adb, live.ads,
20951 machcode.ads, make.adb, make.ads, makeusg.adb,
20952 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
20953 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
20954 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
20955 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
20956 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
20957 mlib.ads, namet.adb, namet.ads, nlists.adb,
20958 nlists.ads, opt.adb, opt.ads, osint-b.adb,
20959 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
20960 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
20961 osint.ads, output.adb, output.ads, par-ch10.adb,
20962 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
20963 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
20964 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
20965 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
20966 par-tchk.adb, par-util.adb, par.adb, par.ads,
20967 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
20968 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
20969 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
20970 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
20971 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
20972 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
20973 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
20974 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
20975 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
20976 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
20977 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
20978 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
20979 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
20980 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
20981 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
20982 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
20983 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
20984 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
20985 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
20986 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
20987 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
20988 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
20989 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
20990 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
20991 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
20992 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
20993 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
20994 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
20995 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
20996 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
20997 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
20998 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
20999 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
21000 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
21001 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
21002 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
21003 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
21004 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
21005 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
21006 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
21007 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
21008 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
21009 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
21010 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
21011 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
21012 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
21013 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
21014 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
21015 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
21016 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
21017 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
21018 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
21019 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
21020 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
21021 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
21022 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
21023 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
21024 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
21025 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
21026 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
21027 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
21028 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
21029 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
21030 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
21031 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
21032 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
21033 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
21034 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
21035 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
21036 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
21037 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
21038 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
21039 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
21040 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
21041 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
21042 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
21043 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
21044 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
21045 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
21046 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
21047 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
21048 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
21049 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
21050 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
21051 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
21052 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
21053 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
21054 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
21055 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
21056 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
21057 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
21058 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
21059 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
21060 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
21061 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
21062 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
21063 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
21064 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
21065 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
21066 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
21067 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
21068 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
21069 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
21070 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
21071 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
21072 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
21073 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
21074 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
21075 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
21076 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
21077 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
21078 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
21079 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
21080 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
21081 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
21082 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
21083 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
21084 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
21085 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
21086 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
21087 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
21088 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
21089 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
21090 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
21091 snames.ads, sprint.adb, sprint.ads, stand.adb,
21092 stand.ads, stringt.adb, stringt.ads, style.adb,
21093 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
21094 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
21095 switch-m.ads, switch.adb, switch.ads, system.ads,
21096 table.adb, table.ads, targparm.adb, targparm.ads,
21097 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
21098 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
21099 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
21100 ttypef.ads, ttypes.ads, types.adb, types.ads,
21101 uintp.adb, uintp.ads, uname.adb, uname.ads,
21102 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
21103 usage.adb, usage.ads, validsw.adb, validsw.ads,
21104 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
21105 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
21106 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
21107 formatting and other trivial changes from ACT.
21109 2003-04-12 Zack Weinberg <zack@codesourcery.com>
21111 * gigi.h, utils2.c (build_constructor):
21112 Rename gnat_build_constructor. Use build_constructor.
21113 * decl.c (gnat_to_gnu_entity)
21114 * trans.c (tree_transform, pos_to_constructor, extract_values)
21115 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
21116 (unchecked_convert)
21117 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
21118 (fill_vms_descriptor):
21121 2003-04-06 Zack Weinberg <zack@codesourcery.com>
21123 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
21124 * misc.c (gnat_tree_size): New function.
21125 (LANG_HOOKS_TREE_SIZE): Override.
21127 2003-04-03 Jason Merrill <jason@redhat.com>
21129 * misc.c (gnat_adjust_rli): #if 0.
21131 2003-03-31 Geert Bosch <bosch@gnat.com>
21134 * link.c : Fix misspelled "const" keyword
21136 2003-03-23 Mark Mitchell <mark@codesourcery.com>
21139 * utils2.c: Adjust calls to put_var_into_stack.
21141 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
21143 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
21145 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
21147 * misc.c (gnat_init): Update for new prototype.
21149 2003-03-05 Olivier Hainque <hainque@gnat.com>
21152 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
21153 warning, and fix return type for the IN_RTS && !SJLJ case.
21155 2003-03-04 Tom Tromey <tromey@redhat.com>
21157 * Make-lang.in (ada.tags): New target.
21159 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
21162 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
21163 wrapper, which name remains constant whatever underlying GCC
21166 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
21167 the stable interface needed for a-except.
21169 2003-03-02 Andreas Jaeger <aj@suse.de>
21171 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
21172 gnat_ug_wnt.texi: Regenerate.
21174 2003-03-02 Laurent Guerby <guerby@acm.org>
21176 * Makefile.in (install-gnatlib): Match previous change there
21179 2003-02-28 Andreas Schwab <schwab@suse.de>
21181 * Make-lang.in (install-gnatlib): Change to ada directory before
21182 running make instead of using ada/Makefile directly.
21184 2003-02-18 Ben Elliston <bje@redhat.com>
21186 Part of PR ada/9406
21187 * gnat_ug.texi (Binder output file): Grammar fix.
21189 2003-02-18 Ben Elliston <bje@redhat.com>
21192 * 5qtaprop.adb (Sleep): Fix typo in comment.
21194 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
21196 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
21197 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
21198 gnat_ug_wnt.texi: Regenerate.
21200 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
21202 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
21203 be created if necessary.
21204 (ada.install-common): Let $(DESTDIR)$(bindir) be created
21205 if necessary. Remove erroneous and redundant gnatchop
21206 installation commands. Test for gnatdll before attempting
21208 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
21209 and gnatdll from all plausible locations.
21211 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
21213 * utils2.c (build_unary_op): Don't check flag_volatile.
21214 * gnat_ug.texi: Remove -fvolatile from example.
21215 * gnat_ug_vxw.texi: Likewise.
21217 2003-01-29 Laurent Guerby <guerby@acm.org>
21220 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
21221 * Makefile.in: match previous change.
21222 * Make-lang.in: match previous change.
21224 2003-01-29 Joel Sherrill <joel@OARcorp.com>
21226 * 5rosinte.ads: Add SIGXCPU.
21227 * 5rtpopsp.adb: New file.
21228 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
21229 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
21230 specific file 5rtpopsp.adb.
21231 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
21232 is likely needed for all newlib targets.
21233 * init.c: Add RTEMS specific version of __gnat_initialize().
21235 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21237 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
21239 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21241 * init.c (__gnat_error_handler): Make msg const.
21243 * gmem.c (convert_addresses): Move declaration ...
21244 * adaint.h: ... here.
21245 * adaint.c (convert_addresses): Adapt addrs type to match
21248 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
21250 2003-01-24 Andreas Schwab <schwab@suse.de>
21252 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
21253 size_t to avoid warning.
21255 2003-01-21 Zack Weinberg <zack@codesourcery.com>
21257 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
21259 2003-01-09 Geoffrey Keating <geoffk@apple.com>
21261 * gnat_rm.texi: Remove RCS version number.
21263 * ada-tree.h (union lang_tree_node): Add chain_next option.
21265 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
21267 * Make-lang.in (ada.install-info, ada.install-common,
21268 ada.uninstall): Prepend $(DESTDIR) to the destination
21269 directory in all (un)installation commands.
21270 * Makefile.in (install-gnatlib, install-rts): Ditto.
21272 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
21274 * gnat_rm.texi, gnat_ug.texi: Use @copying.
21275 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
21276 gnat_ug_wnt.texi: Regenerate.
21278 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
21280 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
21282 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
21283 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
21284 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
21285 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
21286 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
21287 $(srcdir)/doc/include/gcc-common.texi.
21289 2002-12-15 Geert Bosch <bosch@gnat.com>
21291 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
21293 2002-12-14 Geert Bosch <bosch@gnat.com>
21296 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
21297 case of a body created for a Renaming_As_Body, on which
21298 conformance checks are not performed.
21300 2002-11-30 Zack Weinberg <zack@codesourcery.com>
21302 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
21303 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
21304 not already included.
21305 * Make-lang.in: Update dependencies.
21307 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
21308 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
21309 solution to buffer overflow bug on GNU/Linux.
21311 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
21315 * bindgen.adb: Remove all references to Public_Version.
21316 * comperr.adb: Remove all references to Public_Version and
21317 GNATPRO_Version; correct bug reporting instructions.
21318 * comperr.ads: Change to match bug box.
21319 * gnatvsn.ads: Remove all references to Public version and
21322 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
21325 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
21329 * config-lang.in: Remove diff_excludes.
21331 2002-11-05 Graham Stott <graham.stott@btinternet.com>
21334 * trans.c (gnu_pending_elaboration_lists): New GC root.
21335 (build_unit_elab): Use..
21337 2002-10-30 Geert Bosch <bosch@gnat.com>
21340 * misc.c : Include optabs.h
21342 * Make-lang.in (misc.o): Add dependency on optabs.h
21344 2002-10-29 Geert Bosch <bosch@gnat.com>
21347 * Make-lang.in (gnatbind): Depend on CONFIG_H
21349 2002-10-29 Geert bosch <bosch@gnat.com>
21352 * misc.c: Unrevert misc.c (1.13)
21354 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
21356 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
21357 maintainership comments.
21359 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
21362 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
21363 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
21364 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
21365 7staprop.adb: Correct statements in comments about
21366 maintainership of GNAT.
21369 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
21370 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
21371 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
21372 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
21373 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
21374 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
21375 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
21376 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
21377 comments about maintainership of GNAT.
21379 PR ada/6919 (forward port of patch for PR ada/5904)
21380 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
21381 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
21382 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
21383 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
21384 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
21385 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
21386 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
21387 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
21388 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
21389 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
21390 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
21391 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
21392 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
21393 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
21394 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
21395 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
21396 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
21397 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
21398 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
21399 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
21400 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
21401 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
21402 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
21403 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
21404 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
21405 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
21406 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
21407 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
21408 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
21409 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
21410 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
21411 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
21412 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
21413 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
21414 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
21415 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
21416 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
21417 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
21418 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
21419 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
21420 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
21421 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
21422 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
21423 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
21424 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
21425 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
21426 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
21427 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
21428 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
21429 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
21430 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
21431 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
21432 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
21433 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
21434 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
21435 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
21436 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
21437 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
21438 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
21439 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
21440 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
21441 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
21442 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
21443 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
21444 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
21445 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
21446 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
21447 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
21448 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
21449 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
21450 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
21451 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
21452 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
21453 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
21454 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
21455 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
21456 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
21457 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
21458 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
21459 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
21460 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
21461 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
21462 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
21463 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
21464 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
21465 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
21466 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
21467 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
21468 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
21469 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
21470 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
21471 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
21472 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
21473 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
21474 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
21475 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
21476 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
21477 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
21478 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
21479 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
21480 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
21481 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
21482 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
21483 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
21484 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
21485 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
21486 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
21487 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
21488 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
21489 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
21490 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
21491 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
21492 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
21493 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
21494 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
21495 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
21496 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
21497 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
21498 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
21499 par-endh.adb par-labl.adb par-load.adb par-prag.adb
21500 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
21501 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
21502 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
21503 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
21504 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
21505 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
21506 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
21507 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
21508 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
21509 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
21510 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
21511 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
21512 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
21513 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
21514 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
21515 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
21516 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
21517 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
21518 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
21519 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
21520 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
21521 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
21522 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
21523 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
21524 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
21525 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
21526 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
21527 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
21528 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
21529 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
21530 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
21531 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
21532 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
21533 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
21534 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
21535 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
21536 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
21537 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
21538 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
21539 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
21540 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
21541 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
21542 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
21543 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
21544 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
21545 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
21546 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
21547 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
21548 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
21549 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
21550 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
21551 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
21552 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
21553 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
21554 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
21555 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
21556 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
21557 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
21558 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
21559 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
21560 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
21561 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
21562 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
21563 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
21564 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
21565 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
21566 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
21567 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
21568 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
21569 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
21570 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
21571 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
21572 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
21573 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
21574 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
21575 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
21576 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
21577 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
21578 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
21579 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
21580 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
21581 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
21582 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
21583 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
21584 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
21585 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
21586 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
21587 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
21588 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
21589 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
21590 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
21591 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
21592 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
21593 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
21594 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
21595 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
21596 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
21597 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
21598 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
21599 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
21600 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
21601 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
21602 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
21603 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
21604 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
21605 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
21606 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
21607 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
21608 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
21609 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
21610 stringt.ads stringt.h style.adb style.ads stylesw.adb
21611 stylesw.ads switch.adb switch.ads sysdep.c system.ads
21612 table.adb table.ads targparm.adb targparm.ads targtyps.c
21613 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
21614 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
21615 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
21616 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
21617 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
21618 usage.ads utils.c utils2.c validsw.adb validsw.ads
21619 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
21620 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
21621 xtreeprs.adb: Correct statements in comments about maintainership
21624 2002-09-23 Zack Weinberg <zack@codesourcery.com>
21626 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
21627 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
21628 * gnatvsn.ads: Gnat_Version_String is now a function.
21629 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
21630 copy the C version_string into a String and return it.
21631 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
21632 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
21633 Remove pragma Ident (Gnat_Version_String). If this was the
21634 sole use of package Gnatvsn, remove the with statement too.
21635 * gnat1drv.adb: Tweak -gnatv output.
21637 2002-09-17 Richard Henderson <rth@redhat.com>
21639 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
21640 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
21641 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
21642 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
21643 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
21644 and real_2expN instead of a loop.
21645 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
21646 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
21648 2002-08-25 Andre Leis <a.leis@gmx.net>
21649 David Billinghurst (David.Billinghurst@riotinto.com>
21651 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
21653 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21655 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
21656 Remove $(CONFIG_H) dependency.
21658 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
21660 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
21662 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21664 * adadecode.c (ada_demangle): Use xstrdup in lieu of
21666 * misc.c (gnat_decode_option): Likewise.
21668 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
21670 * make.adb (Add_Switch): Make Generic_Position a procedure. The
21671 function approach did not work well because of a side effect (the
21672 function call could reallocate the table which was being indexed
21673 using its result). Fixes ada/4851. [RESURRECTED]
21675 2002-07-01 Roger Sayle <roger@eyesopen.com>
21677 * ada/utils.c (builtin_function): Accept an additional parameter.
21679 2002-06-28 Andreas Jaeger <aj@suse.de>
21682 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
21685 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21687 * Makefile.in (SHELL): Set to @SHELL@.
21689 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21691 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
21692 array size calculation.
21694 2002-06-04 Andreas Jaeger <aj@suse.de>
21696 * Make-lang.in (gnatbind): Readd rule that has been lost in last
21699 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
21701 Merge from pch-branch:
21703 * config-lang.in (gtfiles): Add ada-tree.h.
21704 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
21705 (SET_TYPE_MODULUS): New.
21706 (SET_TYPE_INDEX): New.
21707 (SET_TYPE_DIGITS_VALUE): New.
21708 (SET_TYPE_RM_SIZE): New.
21709 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
21710 (SET_TYPE_ADA_SIZE): New.
21711 (SET_TYPE_ACTUAL_BOUNDS): New.
21712 (SET_DECL_CONST_CORRESPONDING_VAR): New.
21713 (SET_DECL_ORIGINAL_FIELD): New.
21714 (TREE_LOOP_ID): Correct typo.
21715 * decl.c: Use new macros.
21716 * utils.c: Include debug.h, use new macros.
21717 * utils2.c: Use new macros.
21719 * ada-tree.h: Update all macros for new tree description.
21720 (struct tree_loop_id): New.
21721 (union lang_tree_node): New.
21722 (struct lang_decl): New.
21723 (struct lang_type): New.
21724 * misc.c (gnat_mark_tree): Delete.
21725 (LANG_HOOKS_MARK_TREE): Delete.
21726 * trans.c (tree_transform): No longer any need to cast
21729 * utils.c (struct language_function): New dummy structure.
21731 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
21732 (misc.o): Likewise.
21733 (utils.o): Likewise; also gtype-ada.h.
21734 * Make-lang.in (gnat1): Add dependency on s-gtype.
21735 (gnatbind): Add dependency on $(CONFIG_H).
21736 * utils.c: Correct last #include.
21737 (stuct e_stack): Remove unnecessary 'static'.
21738 (mark_e_stack): Remove unused prototype.
21740 * scn-nlit.adb: Remove whitespace after version number to
21741 keep lines under 80 chars.
21742 * snames.adb: Likewise.
21743 * treepr.ads: Likewise.
21745 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
21746 (misc.o): Likewise.
21747 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
21748 * config-lang.in (gtfiles): New.
21749 * decl.c: Use gengtype for roots.
21750 * gigi.h: Use gengtype for roots.
21751 * trans.c: Use gengtype for roots.
21752 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
21754 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
21756 * misc.c (gnat_init): Adjust setting of internal_error_function.
21758 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
21760 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
21761 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
21762 gnat_ug_wnt.texi: Regenerate.
21764 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
21766 * 5ntaprop.adb (with System.OS_Primitives): Remove.
21768 * cstreams.c (max_path_len): Move from here ...
21769 * adaint.c (__gnat_max_path_len): ... to here.
21770 * adaint.c (__gnat_max_path_len): Declare.
21771 * g-dirope.adb (Max_Path): Adjust.
21772 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
21773 * i-cstrea.ads (max_path_len): Adjust.
21774 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
21775 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
21777 * Makefile.in, Make-lang.in: Documentation is now built in
21778 Make-lang.in. Store Info and generated Texinfo files in the
21780 * gnat_ug.texi: Remove CVS keywords, correct version number.
21781 Set file name correctly.
21783 * gnat_ug_*.texi: Add.
21784 * .cvsignore: Ignore generated Texinfo files.
21786 2002-05-30 Zack Weinberg <zack@codesourcery.com>
21788 * ada.h: Add MI guard macro.
21789 (SUBTYPE): Define constants with an anonymous enum, not static
21791 (IN): Cast constants to appropriate type before use.
21793 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
21795 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
21798 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21800 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
21801 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
21802 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
21803 (ALL_ADA_CFLAGS): Likewise.
21804 (ADA_INCLUDES): Likewise.
21805 Adapt for new working dir.
21806 (GNATBIND): Use Makefile.in version.
21807 (.SUFFIXES): Copy from Makefile.in.
21808 (ada-warn): Define.
21809 (.adb.o, .ads.o): Copy from Makefile.in.
21810 Added $(OUTPUT_OPTION).
21811 (GNAT1_C_OBJS): Moved from Makefile.in.
21812 Prefix with ada subdir.
21813 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
21814 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
21815 Adapt for new working dir.
21816 (EXTRA_GNATBIND_OBJS): Likewise.
21817 (ADA_BACKEND): Moved from Makefile.in.
21818 Renamed to avoid conflict with global BACKEND.
21820 (TARGET_ADA_SRCS): Moved from Makefile.in.
21821 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
21823 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
21824 (ada_extra_files): Moved from Makefile.in.
21825 Prefix with ada subdir.
21826 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
21827 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
21828 (ada/nmake.ads): Likewise.
21829 (update-sources): Moved from Makefile.in.
21830 Prefix with ada subdir.
21831 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
21832 (ADA_TREE_H): Likewise.
21833 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
21834 (ada/memtrack.o): Likewise.
21835 (ada/adadecode.o): Likewise.
21836 Update dependencies.
21837 (ada/adaint.o): New.
21838 (ada/argv.o): Moved from Makefile.in.
21839 Prefix with ada subdir.
21840 Update dependencies.
21841 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
21842 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
21843 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
21844 Prefix with ada subdir.
21845 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
21846 (GNAT DEPENDENCIES): Regenerate.
21847 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
21848 toplevel Makefile.in.
21849 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
21850 (TARGET_ADA_SRCS): Removed.
21851 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
21852 (GNATBIND_OBJS): Likewise.
21853 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
21854 (BACKEND): Removed.
21855 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
21856 (TREE_H): Likewise.
21857 (ada_extra_files): Likewise.
21858 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
21859 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
21860 (update-sources): Likewise.
21861 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
21862 (ADA_TREE_H): Likewise.
21863 (adadecoce.o): Likewise.
21864 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
21865 (GNAT DEPENDENCIES): Likewise.
21867 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21869 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
21870 * Makefile.in: Likewise.
21872 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21874 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
21875 Restore $(CONFIG_H) and prefix.o dependencies.
21876 (ada.stage[1-4]): Depend on stage?-start.
21878 * Makefile.in (b_gnatb.c): Depend on interfac.o.
21880 2002-05-02 Jim Wilson <wilson@redhat.com>
21882 * utils.c (finish_record_type): Change record_size to record_type.
21884 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
21886 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
21887 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
21888 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
21890 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
21892 * misc.c (gnat_parse_file): Update.
21894 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
21896 * misc.c (gnat_init): Don't set lang_attribute_common.
21898 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
21900 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
21902 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
21904 * gnat_ug.texi: New file.
21906 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
21907 instead of gfdl.texi
21909 * xgnatug.adb, ug_words: New files.
21911 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
21912 gnat_rm and gnat-style manuals.
21914 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
21916 * gigi.h (incomplete_type_error): Remove.
21917 * utils.c (incomplete_type_error): Remove.
21919 2002-04-16 Mark Mitchell <mark@codesourcery.com>
21921 * trans.c (tree_transform): Add has_scope argument to
21922 expand_start_stmt_expr.
21924 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
21926 * gigi.h (truthvalue_conversion): Rename.
21927 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
21928 * trans.c (tree_transform): Update.
21929 * utils2.c (truthvalue_conversion): Rename, update.
21930 (build_binary_op, build_unary_op): Update.
21932 2002-04-04 Laurent Guerby <guerby@acm.org>
21934 * make.adb: Implement -margs, remove restriction about file name placement.
21935 * makeusg.adb: Documentation update.
21936 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
21937 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
21939 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
21941 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
21942 (builtin_function): Similarly.
21944 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
21946 * decl.c (gnat_to_gnu_entity): Update.
21947 * gigi.h (mark_addressable): Rename.
21948 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
21949 * trans.c (tree_transform): Update.
21950 * utils.c (create_var_decl): Update.
21951 * util2.c (build_binary_op, build_unary_op,
21952 fill_vms_descriptor): Update.
21953 (mark_addressable): Rename, update.
21955 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
21957 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
21959 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
21960 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
21961 * trans.c (tree_transform, convert_with_check): Update.
21962 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
21965 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
21967 * gigi.h (finish_incomplete_decl): Rename.
21968 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
21969 * utils.c (gnat_init_decl_processing): Don't set hook.
21970 (finish_incomplete_decl): Rename.
21972 2002-03-29 Andreas Schwab <schwab@suse.de>
21974 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
21977 2001-03-28 Robert Dewar <dewar@gnat.com>
21980 (Remove_Checks): New procedure
21983 (Remove_Checks): New procedure
21986 Use new Duplicate_Subexpr functions
21987 (Duplicate_Subexpr_No_Checks): New procedure
21988 (Duplicate_Subexpr_No_Checks_Orig): New procedure
21989 (Duplicate_Subexpr): Restore original form (checks duplicated)
21990 (Duplicate_Subexpr): Call Remove_Checks
21993 (Duplicate_Subexpr_No_Checks): New procedure
21994 (Duplicate_Subexpr_No_Checks_Orig): New procedure
21995 Add 2002 to copyright notice
21997 * sem_util.adb: Use new Duplicate_Subexpr functions
22000 (Eval_Indexed_Component): This is the place to call
22001 Constant_Array_Ref and to replace the value. We simply merge
22002 the code of this function in here, since it is now no longer
22003 used elsewhere. This fixes the problem of the back end not
22004 realizing we were clever enough to see that this was
22006 (Expr_Val): Remove call to Constant_Array_Ref
22007 (Expr_Rep_Val): Remove call to Constant_Array_Ref
22009 (Constant_Array_Ref): Deal with string literals (patch
22010 suggested by Zack Weinberg on the gcc list)
22012 2001-03-28 Ed Schonberg <schonber@gnat.com>
22014 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
22015 Duplicate_Subexpr_Move_Checks.
22017 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
22018 Duplicate_Subexpr_Move_Checks.
22020 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
22021 value of array exists before retrieving it (it may a private
22022 protected component in a function).
22024 2002-03-28 Geert Bosch <bosch@gnat.com>
22026 * prj-pp.adb : New file.
22028 * prj-pp.ads : New file.
22030 2002-03-28 Andreas Jaeger <aj@suse.de>
22032 * Makefile.in (stamp-sdefault): Fix path for Makefile.
22034 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
22036 * misc.c (gnat_expand_expr): Move prototype.
22038 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
22040 * misc.c (insert_default_attributes): Remove.
22042 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
22044 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
22045 (gnat_init): Don't set hook.
22046 (gnat_expand_expr): Fix prototype.
22048 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
22050 * misc.c (ggc_p): Remove.
22052 2002-03-27 Geert Bosch <bosch@gnat.com>
22054 * prj-makr.ads, prj-makr.adb : New files.
22056 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
22058 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
22059 (lang_mark_tree): Make static, rename.
22061 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
22063 * misc.c (maybe_build_cleanup): Remove.
22065 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
22067 * gigi.h (yyparse): Remove.
22069 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
22071 * gnat_rm.texi: Sync with ACT version.
22072 (From Ben Brosgol <brosgol@gnat.com>)
22074 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
22076 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
22077 (gnat_init): Remove old hook.
22079 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
22081 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
22082 (yyparse): Rename gnat_parse_file.
22084 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
22086 Delete all lines containing "$Revision:".
22087 * xeinfo.adb: Don't look for revision numbers.
22088 * xnmake.adb: Likewise.
22089 * xsinfo.adb: Likewise.
22090 * xsnames.adb: Likewise.
22091 * xtreeprs.adb: Likewise.
22093 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22095 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
22096 gnat_tree_code_name): Delete.
22097 (tree_code_type, tree_code_length, tree_code_name): Define.
22098 (gnat_init): Don't try to copy into the various tree_code
22101 2002-03-11 Richard Henderson <rth@redhat.com>
22103 * Makefile.in (.NOTPARALLEL): Add fake tag.
22105 2002-03-07 Geert Bosch <bosch@gnat.com>
22107 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
22108 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
22109 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
22110 switch-m.adb, switch-m.ads : New files.
22112 2002-03-07 Geert Bosch <bosch@gnat.com>
22114 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
22115 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
22116 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
22117 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
22118 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
22119 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
22120 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
22121 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
22122 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
22123 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
22124 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
22125 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
22126 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
22127 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
22128 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
22129 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
22130 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
22131 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
22132 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
22133 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
22134 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
22135 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
22136 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
22137 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
22138 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
22139 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
22140 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
22141 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
22142 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
22143 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
22144 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
22145 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
22146 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
22147 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
22148 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
22149 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
22150 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
22151 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
22152 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
22153 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
22154 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
22155 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
22156 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
22157 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
22158 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
22159 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
22160 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
22161 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
22162 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
22163 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
22164 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
22165 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
22166 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
22167 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
22168 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
22169 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
22170 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
22171 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
22172 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
22173 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
22174 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
22175 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
22176 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
22177 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
22178 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
22179 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
22180 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
22181 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
22182 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
22183 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
22184 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
22185 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
22186 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
22187 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
22188 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
22189 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
22190 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
22191 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
22192 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
22193 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
22194 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
22195 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
22196 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
22197 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
22198 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
22199 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
22200 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
22201 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
22202 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
22203 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
22204 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
22205 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
22206 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
22207 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
22208 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
22209 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
22210 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
22212 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
22213 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
22214 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
22215 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
22217 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
22218 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
22220 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
22221 to mdll-fil.ad[bs] and mdll-util.ad[bs]
22223 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
22224 from mdllfile.ad[bs] and mdlltool.ad[bs]
22226 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22228 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
22229 lieu of explicit sizeof/sizeof.
22231 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
22233 * misc.c (copy_lang_decl): Remove.
22235 2002-02-27 Zack Weinberg <zack@codesourcery.com>
22237 * misc.c: Delete traditional-mode-related code copied from the
22238 C front end but not used, or used only to permit the compiler
22241 2002-02-07 Richard Henderson <rth@redhat.com>
22243 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
22244 * adaint.h (__gnat_to_gm_time): Update prototype.
22246 2002-01-30 Richard Henderson <rth@redhat.com>
22248 * trans.c (tree_transform) [N_Loop_Statement]: Use
22249 expand_exit_loop_top_cond.
22251 2001-12-23 Richard Henderson <rth@redhat.com>
22253 * utils.c (end_subprog_body): Push GC context around
22254 rest_of_compilation for nested functions.
22256 2001-12-23 Richard Henderson <rth@redhat.com>
22258 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
22260 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
22262 * gnat-style.texi (Declarations and Types): Remove ancient style
22263 rule which was mandated by code generation issues.
22265 * gnat-style.texi (header): Add @dircategory, @direntry.
22266 (title page): Remove date.
22267 (general) Add @./@: where approriate, and two spaces after the
22268 full stop at the end of a sentence. Use @samp markup when
22269 referring concrete lexical entities (keywords, attribute names
22270 etc.), and @syntax for ARM grammar elements. Use @r for English
22271 text in comments. Use @emph for emphasis. Change "if-statements"
22272 etc. to "if statements" (without @samp). Break long lines. Make
22273 casing of section names consistent.
22274 (Identifiers): Use @samp markup for variable names.
22275 (Comments): Use @samp markup for comment characters. Line-end
22276 comments may follow any Ada code, not just statements. Fix
22277 misspelling of "Integer" as "integer".
22278 (Loop statements): Do not use variable name "I", use "J".
22279 (Subprogram Declarations): Document alignment.
22280 (Subprogram Bodies, Block statements): Document empty line before
22283 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
22285 * make.adb (Add_Switch): Make Generic_Position a procedure. The
22286 function approach did not work well because of a side effect (the
22287 function call could reallocate the table which was being indexed
22288 using its result). Fixes ada/4851.
22290 2001-12-19 Robert Dewar <dewar@gnat.com>
22292 * bindgen.adb: Minor reformatting
22294 * cstand.adb: Minor reformatting
22296 * fmap.adb: Minor reformatting
22297 Change name from Add for Add_To_File_Map (Add is much too generic)
22298 Change Path_Name_Of to Mapped_Path_Name
22299 Change File_Name_Of to Mapped_File_Name
22300 Fix copyright dates in header
22303 Change name from Add for Add_To_File_Map (Add is much too generic)
22304 Change Path_Name_Of to Mapped_Path_Name
22305 Change File_Name_Of to Mapped_File_Name
22306 Fix copyright dates in header
22308 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
22309 Add use clause for Fmap.
22311 * make.adb: Minor reformatting
22313 * osint.adb: Minor reformatting. Change of names in Fmap.
22314 Add use clause for Fmap.
22316 * prj-env.adb: Minor reformatting
22318 * prj-env.ads: Minor reformatting
22320 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
22321 error found (there were odd exceptions to this general rule in
22322 -gnatec/-gnatem processing)
22324 2001-12-19 Olivier Hainque <hainque@gnat.com>
22326 * raise.c (__gnat_eh_personality): Exception handling personality
22327 routine for Ada. Still in rough state, inspired from the C++ version
22328 and still containing a bunch of debugging artifacts.
22329 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
22330 inspired from the C++ library.
22332 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
22333 exception handling integration.
22335 2001-12-19 Arnaud Charlet <charlet@gnat.com>
22337 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
22338 (HIE_SOURCES): Add s-secsta.ad{s,b}.
22339 (HIE_OBJS): Add s-fat*.o
22340 (RAVEN_SOURCES): Remove files that are no longer required. Add
22341 interrupt handling files.
22342 (RAVEN_MOD): Removed, no longer needed.
22344 2001-12-19 Robert Dewar <dewar@gnat.com>
22346 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
22347 Add 2001 to copyright date
22349 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
22350 need to force universal inlining for these cases.
22352 2001-12-19 Arnaud Charlet <charlet@gnat.com>
22354 * s-taprob.adb: Minor clean ups so that this unit can be used in
22357 * exp_ch7.adb: Allow use of secondary stack in HI mode.
22358 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
22360 2001-12-19 Vincent Celier <celier@gnat.com>
22362 * prj-tree.ads (Project_Node_Record): Add comments for components
22363 Pkg_Id and Case_Insensitive.
22365 2001-12-19 Pascal Obry <obry@gnat.com>
22367 * g-socket.adb: Minor reformatting. Found while reading code.
22369 2001-12-19 Robert Dewar <dewar@gnat.com>
22371 * prj-tree.ads: Minor reformatting
22373 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
22375 * config-lang.in (diff_excludes): Remove.
22377 2001-12-17 Ed Schonberg <schonber@gnat.com>
22379 * sem_res.adb (Resolve_Selected_Component): do not generate a
22380 discriminant check if the selected component is a component of
22381 the argument of an initialization procedure.
22383 * trans.c (tree_transform, case of arithmetic operators): If result
22384 type is private, the gnu_type is the base type of the full view,
22385 given that the full view itself may be a subtype.
22387 2001-12-17 Robert Dewar <dewar@gnat.com>
22389 * sem_res.adb: Minor reformatting
22391 * trans.c (tree_transform, case N_Real_Literal): Add missing third
22392 parameter in call to Machine (unknown horrible effects from this
22395 * urealp.h: Add definition of Round_Even for call to Machine
22396 Add third parameter for Machine
22398 2001-12-17 Ed Schonberg <schonber@gnat.com>
22400 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
22401 predefined units in No_Run_Time mode.
22403 2001-12-17 Richard Kenner <kenner@gnat.com>
22405 * misc.c (insn-codes.h): Now include.
22407 2001-12-17 Olivier Hainque <hainque@gnat.com>
22409 * a-except.adb: Preparation work for future integration of the GCC 3
22410 exception handling mechanism
22411 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
22412 to factorize previous code sequences and make them externally callable,
22413 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
22414 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
22415 Use the new notification routines.
22417 2001-12-17 Emmanuel Briot <briot@gnat.com>
22419 * prj-tree.ads (First_Choice_Of): Document the when others case
22421 2001-12-17 Arnaud Charlet <charlet@gnat.com>
22423 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
22424 HI-E mode, in order to support Ravenscar profile properly.
22426 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
22427 mode on 32 bits targets.
22429 2001-12-17 Vincent Celier <celier@gnat.com>
22431 * fmap.adb: Initial version.
22433 * fmap.ads: Initial version.
22435 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
22436 If search is successfully done, add to mapping.
22438 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
22441 (Gnatmake): Add new local variable Mapping_File_Name.
22442 Create mapping file when using project file(s).
22443 Delete mapping file before exiting.
22445 * opt.ads (Mapping_File_Name): New variable
22447 * osint.adb (Find_File): Use path name found in mapping, if any.
22449 * prj-env.adb (Create_Mapping_File): New procedure
22451 * prj-env.ads (Create_Mapping_File): New procedure.
22453 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
22456 * usage.adb: Add entry for new switch -gnatem.
22458 * Makefile.in: Add dependencies for fmap.o.
22460 2001-12-17 Ed Schonberg <schonber@gnat.com>
22462 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
22463 is a package instantiation rewritten as a package body.
22464 (Install_Withed_Unit): Undo previous change, now redundant.
22466 2001-12-17 Gary Dismukes <dismukes@gnat.com>
22469 (Compute_Length): Move conversion to Unsigned to callers.
22470 (Get_Max_Size): Convert Len expression to Unsigned after calls to
22471 Compute_Length and Determine_Range.
22472 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
22473 Compute_Length and Determine_Range.
22474 Above changes fix problem with length computation for supernull arrays
22475 where Max (Len, 0) wasn't getting applied due to the Unsigned
22476 conversion used by Compute_Length.
22478 2001-12-17 Arnaud Charlet <charlet@gnat.com>
22481 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
22482 System.Secondary_Stack.
22483 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
22485 Remove unused entity RE_Exception_Data.
22487 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
22489 * rident.ads (No_Secondary_Stack): New restriction.
22491 2001-12-17 Joel Brobecker <brobecke@gnat.com>
22493 * gnat_rm.texi: Fix minor typos. Found while reading the section
22494 regarding "Bit_Order Clauses" that was sent to a customer.
22495 Very interesting documentation!
22497 2001-12-17 Robert Dewar <dewar@gnat.com>
22499 * sem_case.adb (Choice_Image): Avoid creating improper character
22500 literal names by using the routine Set_Character_Literal_Name. This
22501 fixes bombs in certain error message cases.
22503 2001-12-17 Arnaud Charlet <charlet@gnat.com>
22505 * a-reatim.adb: Minor reformatting.
22507 2001-12-17 Ed Schonberg <schonber@gnat.com>
22509 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
22510 case where the formal is an extension of another formal in the current
22511 unit or in a parent generic unit.
22513 2001-12-17 Arnaud Charlet <charlet@gnat.com>
22515 * s-tposen.adb: Update comments. Minor reformatting.
22516 Minor code clean up.
22518 * s-tarest.adb: Update comments. Minor code reorganization.
22520 2001-12-17 Gary Dismukes <dismukes@gnat.com>
22522 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
22525 2001-12-17 Robert Dewar <dewar@gnat.com>
22527 * exp_attr.adb: Minor reformatting
22529 2001-12-17 Ed Schonberg <schonber@gnat.com>
22531 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
22532 derivations nested within a child unit: verify that the parent
22533 type is declared in an outer scope.
22535 2001-12-17 Robert Dewar <dewar@gnat.com>
22537 * sem_ch12.adb: Minor reformatting
22539 2001-12-17 Ed Schonberg <schonber@gnat.com>
22541 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
22542 warning if current unit is a predefined one, from which bodies may
22545 2001-12-17 Robert Dewar <dewar@gnat.com>
22547 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
22548 Fix header format. Add 2001 to copyright date.
22550 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
22551 which caused CE during compilation if checks were enabled.
22553 2001-12-17 Vincent Celier <celier@gnat.com>
22556 (Switches_Of): New function
22557 (Test_If_Relative_Path): New procedure
22558 (Add_Switches): Use new function Switches_Of
22559 (Collect_Arguments_And_Compile): Use new function Switches_Of.
22560 When using a project file, test if there are any relative
22561 search path. Fail if there are any.
22562 (Gnatmake): Only add switches for the primary directory when not using
22563 a project file. When using a project file, change directory to the
22564 object directory of the main project file. When using a project file,
22565 test if there are any relative search path. Fail if there are any.
22566 When using a project file, fail if specified executable is relative
22567 path with directory information, and prepend executable, if not
22568 specified as an absolute path, with the exec directory. Make sure
22569 that only one -o switch is transmitted to the linker.
22571 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
22574 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
22575 when using a non standard naming scheme.
22576 (Check_Ada_Naming_Scheme): Make sure that error messages
22577 do not raise exceptions.
22578 (Is_Illegal_Append): Return True if there is no dot in the suffix.
22579 (Language_Independent_Check): Check the exec directory.
22581 * prj.adb (Project_Empty): Add new component Exec_Directory
22584 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
22585 (Project_Data): Add component Exec_Directory
22587 * snames.adb: Updated to match snames.ads revision 1.215
22589 * snames.ads: Added Exec_Dir
22591 2001-12-17 Robert Dewar <dewar@gnat.com>
22593 * make.adb: Minor reformatting
22595 * prj-nmsc.adb: Minor reformatting
22597 * snames.adb: Updated to match snames.ads
22599 * snames.ads: Alphebetize entries for project file
22601 2001-12-17 Ed Schonberg <schonber@gnat.com>
22603 * trans.c (process_freeze_entity): Do nothing if the entity is a
22604 subprogram that was already elaborated.
22606 2001-12-17 Richard Kenner <kenner@gnat.com>
22608 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
22609 and Esize if object is referenced via pointer.
22611 2001-12-17 Ed Schonberg <schonber@gnat.com>
22613 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
22614 is discrete before analyzing choices.
22616 2001-12-17 Joel Brobecker <brobecke@gnat.com>
22618 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
22619 containing the name of the Ada Main Program. This string is mainly
22620 intended for the debugger.
22621 (Gen_Output_File_C): Do the equivalent change when generating a C file.
22623 2001-12-17 Robert Dewar <dewar@gnat.com>
22625 * ali.adb: Set new Dummy_Entry field in dependency entry
22627 * ali.ads: Add Dummy_Entry field to source dependency table
22629 * bcheck.adb (Check_Consistency): Ignore dummy D lines
22631 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
22633 * lib-writ.ads: Document dummy D lines for missing files.
22635 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
22637 2001-12-17 Robert Dewar <dewar@gnat.com>
22639 * ali.adb: Type reference does not reset current file.
22641 * ali.adb: Recognize and scan renaming reference
22643 * ali.ads: Add spec for storing renaming references.
22645 * lib-xref.ads: Add documentation for handling of renaming references
22647 * lib-xref.adb: Implement output of renaming reference.
22650 (Determine_Range): Document local variables
22651 (Determine_Range): Make sure Hbound is initialized. It looks as though
22652 there could be a real problem here with an uninitialized reference
22653 to Hbound, but no actual example of failure has been found.
22655 2001-12-17 Laurent Pautet <pautet@gnat.com>
22658 Fix comment of Shutdown_Socket and Close_Socket. These functions
22659 should not fail silently because if they are called twice, this
22660 probably means that there is a race condition in the user program.
22661 Anyway, this behaviour is consistent with the rest of this unit.
22662 When an error occurs, an exception is raised with the error message
22663 as exception message.
22665 2001-12-17 Robert Dewar <dewar@gnat.com>
22667 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
22668 that it happens before modification of Sloc values for -gnatD.
22670 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
22671 so that it happens before modification of Sloc values for -gnatD.
22673 * switch.adb: Minor reformatting
22675 2001-12-15 Richard Henderson <rth@redhat.com>
22677 * sem_ch7.adb: Wrap comment.
22679 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
22681 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
22682 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
22683 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
22684 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
22685 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
22686 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
22687 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
22688 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
22689 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
22690 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
22691 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
22692 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
22693 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
22694 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
22695 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
22696 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
22697 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
22698 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
22699 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
22700 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
22701 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
22702 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
22703 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
22704 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
22707 2001-12-14 Vincent Celier <celier@gnat.com>
22709 * osint.adb(Create_Debug_File): When an object file is specified,
22710 put the .dg file in the same directory as the object file.
22712 2001-12-14 Robert Dewar <dewar@gnat.com>
22714 * osint.adb: Minor reformatting
22716 * lib-xref.adb (Output_Instantiation): New procedure to generate
22717 instantiation references.
22719 * lib-xref.ads: Add documentation of handling of generic references.
22721 * ali.adb (Read_Instantiation_Ref): New procedure to read
22722 instantiation references
22724 * ali.ads: Add spec for storing instantiation references
22726 * bindusg.adb: Minor reformatting
22728 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
22730 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
22732 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
22734 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
22738 Add 2001 to copyright date
22739 Add entry for Latin-5 (Cyrillic ISO-8859-5)
22741 2001-12-14 Matt Gingell <gingell@gnat.com>
22743 * adaint.c: mktemp is a macro on Lynx and can not be used as an
22746 2001-12-14 Richard Kenner <kenner@gnat.com>
22748 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
22749 if operand is CONSTRUCTOR.
22751 2001-12-14 Ed Schonberg <schonber@gnat.com>
22753 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
22754 before emiting check on right-hand side, so that exception information
22757 2001-12-14 Richard Kenner <kenner@gnat.com>
22759 * utils.c (create_var_decl): Throw away initializing expression
22760 if just annotating types and non-constant.
22762 2001-12-14 Vincent Celier <celier@gnat.com>
22764 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
22767 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
22769 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
22771 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
22773 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
22775 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
22777 * ChangeLog: Remove piece of diff output.
22779 2001-12-14 Geert Bosch <bosch@gnat.com>
22781 * config-lang.in: Update copyright notice
22783 * layout.adb: Remove commented out code.
22785 * mdllfile.ads: Update copyright notice. Fix header format.
22787 * sem_case.ads: Likewise.
22789 * sem_ch3.adb: Minor reformatting.
22791 2001-12-12 Geert Bosch <bosch@gnat.com>
22793 * freeze.ads: Update copyright date.
22795 * g-comlin.ads: Minor reformatting.
22797 * gnat-style.texi: Fix typo.
22799 2001-12-12 Geert Bosch <bosch@gnat.com>
22801 * einfo.h: Regenerate.
22803 2001-12-12 Ed Schonberg <schonber@gnat.com>
22805 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
22806 on known node types, rather than untyped fields. Further cleanups.
22808 2001-12-12 Robert Dewar <dewar@gnat.com>
22811 (Save_Entity_Descendant): Minor comment update.
22812 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
22813 of an N_Attribute_Reference node. As per note below, this does not
22814 eliminate need for Associated_Node in attribute ref nodes.
22815 (Associated_Node): Documentation explicitly mentions attribute
22816 reference nodes, since this field is used in such nodes.
22818 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
22820 2001-12-12 Robert Dewar <dewar@gnat.com>
22822 * s-stalib.adb: Add more comments on with statements being needed
22824 * par-ch12.adb: Minor reformatting
22826 * prj-dect.ads: Fix copyright header
22828 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
22829 inputs fit in 32 bits, but the result still overflows.
22831 * s-fatgen.ads: Minor comment improvement
22833 2001-12-12 Ed Schonberg <schonber@gnat.com>
22835 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
22836 formal derived type, look for an inherited component from the full
22837 view of the parent, if any.
22839 2001-12-12 Robert Dewar <dewar@gnat.com>
22841 * checks.ads (Apply_Alignment_Check): New procedure.
22843 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
22844 ensure that the alignment of objects with address clauses is
22845 appropriate, and raise PE if not.
22847 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
22848 Exp_Pakd.Known_Aligned_Enough
22850 * mdllfile.ads: Minor reformatting
22852 * mlib-fil.ads: Minor reformatting
22854 2001-12-12 Ed Schonberg <schonber@gnat.com>
22856 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
22857 fix to any component reference if enclosing record has non-standard
22860 2001-12-12 Vincent Celier <celier@gnat.com>
22862 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
22865 2001-12-12 Ed Schonberg <schonber@gnat.com>
22867 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
22870 2001-12-12 Robert Dewar <dewar@gnat.com>
22872 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
22874 2001-12-12 Emmanuel Briot <briot@gnat.com>
22876 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
22877 and it adds dependencies to system.io.
22879 2001-12-12 Pascal Obry <obry@gnat.com>
22881 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
22884 2001-12-11 Ed Schonberg <schonber@gnat.com>
22886 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
22887 that is the parent of other generics, the instance body replaces the
22888 instance node. Retrieve the instance of the spec, which is the one
22889 that is visible in clients and within the body.
22891 2001-12-11 Vincent Celier <celier@gnat.com>
22893 * gnatmain.adb: Initial version.
22895 * gnatmain.ads: Initial version.
22897 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
22899 * snames.adb: Updated to match snames.ads.
22901 * snames.ads: Added Gnatstub.
22903 2001-12-11 Vincent Celier <celier@gnat.com>
22905 * prj-attr.adb (Initialization_Data): Change name from
22906 Initialisation_Data.
22908 2001-12-11 Emmanuel Briot <briot@gnat.com>
22910 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
22911 + and * applied to backslashed expressions like \r.
22913 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
22915 * g-os_lib.ads: String_List type added, Argument_List type is now
22916 subtype of String_List.
22918 2001-12-11 Robert Dewar <dewar@gnat.com>
22920 * g-os_lib.ads: Change copyright to FSF
22921 Add comments for String_List type
22923 2001-12-11 Vincent Celier <celier@gnat.com>
22925 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
22926 string to the buffer).
22928 2001-12-11 Ed Schonberg <schonber@gnat.com>
22930 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
22933 * sem_attr.adb: Simplify previous fix for Address.
22934 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
22935 to avoid anomalies where the bound of the type appears to raise
22938 2001-12-11 Robert Dewar <dewar@gnat.com>
22940 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
22943 2001-12-11 Ed Schonberg <schonber@gnat.com>
22945 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
22946 renamed unit before checking for recursive instantiations.
22948 2001-12-11 Emmanuel Briot <briot@gnat.com>
22950 * prj.ads: Add comments for some of the fields.
22952 2001-12-11 Robert Dewar <dewar@gnat.com>
22954 * lib-xref.adb (Output_Refs): Don't output type references outside
22955 the main unit if they are not otherwise referenced.
22957 2001-12-11 Ed Schonberg <schonber@gnat.com>
22959 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
22960 code and diagnose additional illegal uses
22962 * sem_util.adb (Is_Object_Reference): An indexed component is an
22963 object only if the prefix is.
22965 2001-12-11 Vincent Celier <celier@gnat.com>
22967 * g-diopit.adb: Initial version.
22969 * g-diopit.ads: Initial version.
22972 (Expand_Path): Avoid use of Unbounded_String
22973 (Find, Wildcard_Iterator): Moved to child package Iteration
22975 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
22977 2001-12-11 Robert Dewar <dewar@gnat.com>
22979 * sem_attr.adb: Minor reformatting
22981 2001-12-11 Ed Schonberg <schonber@gnat.com>
22983 * sem_ch3.adb: Clarify some ???.
22985 2001-12-11 Robert Dewar <dewar@gnat.com>
22987 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
22988 Exp_Pakd.Known_Aligned_Enough
22990 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
22991 version is moved to Exp_Ch13.
22993 2001-12-11 Robert Dewar <dewar@gnat.com>
22995 * einfo.ads: Minor reformatting
22997 * exp_ch5.adb: Add comment for previous.change
22999 * ali.adb: New interface for extended typeref stuff.
23001 * ali.ads: New interface for typeref stuff.
23003 * checks.adb (Apply_Alignment_Check): New procedure.
23005 * debug.adb: Add -gnatdM for modified ALI output
23007 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
23009 * lib-xref.adb: Extend generation of <..> notation to cover
23010 subtype/object types. Note that this is a complete rewrite,
23011 getting rid of the very nasty quadratic algorithm previously
23012 used for derived type output.
23014 * lib-xref.ads: Extend description of <..> notation to cover
23015 subtype/object types. Uses {..} for these other cases.
23016 Also use (..) for pointer types.
23018 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
23020 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
23021 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
23023 2001-12-11 Vincent Celier <celier@gnat.com>
23026 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
23027 Changed /BIND_ONLY to /ACTIONS=BIND
23028 Changed /LINK_ONLY to /ACTIONS=LINK
23030 2001-12-11 Ed Schonberg <schonber@gnat.com>
23032 * sem_ch8.adb (Find_Selected_Component): improved search for a
23033 candidate package in case of error.
23035 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
23036 chain back on scope stack before reinstalling use clauses.
23038 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
23039 is enabled, do not kill the code for the condition, to preserve
23042 2001-12-11 Robert Dewar <dewar@gnat.com>
23044 * checks.adb (Insert_Valid_Check): Apply validity check to expression
23045 of conversion, not to result of conversion.
23047 2001-12-11 Ed Schonberg <schonber@gnat.com>
23049 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
23050 before freezing parent. If the declarations are mutually recursive,
23051 an access to the current record type may be frozen before the
23052 derivation is complete.
23054 2001-12-05 Vincent Celier <celier@gnat.com>
23056 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
23057 -c /COMPILE_ONLY, -l /LINK_ONLY
23060 (Bind_Only): New Flag
23061 (Link_Only): New flag
23063 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
23066 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
23069 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
23070 (Gnatmake): Set the step flags. Only perform a step if the
23071 corresponding step flag is True.
23072 (Scan_Make_Arg): Reset the bind and link step flags when -u
23073 or -gnatc has been specified.
23075 2001-12-05 Ed Schonberg <schonber@gnat.com>
23077 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
23078 get bounds from right operand.
23080 * sem_eval.adb: Minor reformatting
23082 * exp_util.adb (Make_Literal_Range): use bound of literal rather
23083 than Index'First, its lower bound may be different from 1.
23085 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
23088 2001-12-05 Vincent Celier <celier@gnat.com>
23090 * prj-nmsc.adb Minor reformatting
23092 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
23093 set and libraries are not supported.
23095 2001-12-05 Ed Schonberg <schonber@gnat.com>
23097 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
23098 private view explicitly, so the back-end can treat as a global
23101 2001-12-05 Ed Schonberg <schonber@gnat.com>
23103 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
23104 unit, always replace instance node with new body, for ASIS use.
23106 2001-12-05 Vincent Celier <celier@gnat.com>
23108 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
23109 libraries are not supported and both attributes Library_Name and
23110 Library_Dir are specified.
23112 * prj-proc.adb (Expression): Set location of Result to location of
23115 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
23116 (prj-nmsc is now importing MLib.Tgt)
23118 * prj-proc.adb: Put the change indicated above that was forgotten.
23120 2001-12-05 Robert Dewar <dewar@gnat.com>
23122 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
23124 2001-12-05 Ed Schonberg <schonber@gnat.com>
23126 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
23127 constraint, introduce explicit subtype declaration and derive from it.
23129 * sem_ch3.adb: Minor reformatting
23131 2001-12-05 Robert Dewar <dewar@gnat.com>
23133 * checks.adb (Determine_Range): Increase cache size for checks.
23136 * exp_ch6.adb: Minor reformatting
23137 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
23138 a parameter whose root type is System.Address, since treating such
23139 subprograms as pure in the code generator is almost surely a mistake
23140 that will lead to unexpected results.
23142 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
23143 change handling of conversions.
23145 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
23147 2001-12-05 Ed Schonberg <schonber@gnat.com>
23149 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
23150 aggregate with static wrong size, attach generated Raise node to
23153 2001-12-05 Robert Dewar <dewar@gnat.com>
23155 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
23156 Fixes compilation abandoned bomb in B24009B.
23158 2001-12-05 Ed Schonberg <schonber@gnat.com>
23161 Document use of Associated_Node on Selected_Components.
23162 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
23163 to clarify use of untyped descendant fields.
23165 2001-12-05 Robert Dewar <dewar@gnat.com>
23167 * prj-dect.ads: Add ??? comment
23168 Add 2001 to copyright notice (was not done in after all)
23170 * prj-part.adb: Minor reformatting. Reword one awkward error message.
23172 * prj.ads: Minor reformatting throughout, and add some ??? comments
23174 * snames.ads: Minor reformatting
23176 2001-12-05 Geert Bosch <bosch@gnat.com>
23178 * snames.adb: Autoupdate
23180 2001-12-05 Vincent Celier <celier@gnat.com>
23182 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
23184 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
23186 * prj-env.adb: Minor comment changes (modifying -> extends).
23188 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
23190 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
23193 * prj.adb (Initialize): Change Modifying to Extends.
23195 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
23197 * prj.ads: Minor comment change (Modifying -> extending).
23199 * snames.ads: Change modifying to extends.
23201 2001-12-05 Robert Dewar <dewar@gnat.com>
23203 * sem_warn.adb: Remove stuff for conditionals, we are not going to
23206 * sem_warn.ads: Remove stuff for conditionals, we are not going to
23207 do this after all. Add 2001 to copyright notice
23209 2001-12-04 Geert Bosch <bosch@gnat.com>
23211 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
23213 2001-12-04 Robert Dewar <dewar@gnat.com>
23215 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
23216 location if we already have errors. Stops some cases of cascaded
23219 * errout.adb: Improve comment.
23221 2001-12-04 Robert Dewar <dewar@gnat.com>
23224 (Analyze_Formal_Type_Definition): Defend against Error.
23225 (Analyze_Formal_Subprogram): Defend against Error.
23227 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
23228 remove following semicolon if present. Removes cascaded error.
23230 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
23233 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
23234 exceptions equals 0.
23235 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
23236 Fixes PIWG E tests (which have to be run with -gnatL).
23238 2001-12-04 Robert Dewar <dewar@gnat.com>
23240 * einfo.ads: Minor reformatting
23242 2001-12-04 Ed Schonberg <schonber@gnat.com>
23244 * einfo.ads: Block_Node points to the identifier of the block, not to
23245 the block node itself, to preserve the link when the block is
23246 rewritten, e.g. within an if-statement with a static condition.
23248 * inline.adb (Cleanup_Scopes): recover block statement from block
23249 entity using new meaning of Block_Node.
23251 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
23252 identifier of block node, rather than to node itself.
23254 2001-12-04 Gary Dismukes <dismukes@gnat.com>
23257 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
23258 (Discrimify): Go back to setting the Etypes of the selected component
23259 because the Vname component does not exist at this point and will
23260 fail name resolution. Also set Analyzed.
23261 Remove with and use of Sem_Res.
23263 2001-12-04 Arnaud Charlet <charlet@gnat.com>
23265 * Makefile.in: (HIE_SOURCES): add s-fat*.
23267 2001-12-04 Robert Dewar <dewar@gnat.com>
23270 (Compile_Time_Known_Attribute): New procedure.
23271 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
23272 proper range check.
23274 2001-12-04 Ed Schonberg <schonber@gnat.com>
23276 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
23277 processing discriminants to diagnose illegal default values.
23279 2001-12-04 Ed Schonberg <schonber@gnat.com>
23281 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
23282 access discriminant within a type extension that constrains its
23283 parent discriminants.
23285 2001-12-04 Ed Schonberg <schonber@gnat.com>
23287 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
23288 is malformed, use instance of Any_Id to allow analysis to proceed.
23290 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
23291 type definition is illegal.
23292 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
23295 2001-12-04 Ed Schonberg <schonber@gnat.com>
23297 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
23300 2001-12-04 Robert Dewar <dewar@gnat.com>
23302 * errout.adb: Minor reformatting
23304 2001-12-04 Robert Dewar <dewar@gnat.com>
23306 * exp_util.adb: Minor reformatting from last change
23308 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
23309 which is a rewriting of an expression, traverse the original
23310 expression to remove warnings that may have been posted on it.
23312 2001-12-04 Ed Schonberg <schonber@gnat.com>
23314 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
23315 record that has other packed components.
23317 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
23319 * adaint.c: Minor cleanups.
23321 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
23323 * adaint.c: Do not use utime.h on vxworks.
23325 2001-12-04 Arnaud Charlet <charlet@gnat.com>
23327 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
23328 more confusion than it solves.
23330 2001-12-04 Geert bosch <bosch@gnat.com>
23332 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
23334 2001-12-04 Geert Bosch <bosch@gnat.com>
23336 * Makefile.in (update-sources): New target.
23337 For use by gcc_release script.
23339 2001-12-04 Ed Schonberg <schonber@gnat.com>
23341 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
23342 a configuration pragma, it is now legal wherever a pragma can appear.
23344 2001-12-04 Zack Weinberg <zack@codesourcery.com>
23346 * Makefile.in: Don't set ALL. Delete @cross_defines@,
23347 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
23348 is now @CROSS@ -DIN_GCC; update comment.
23350 2001-12-04 Robert Dewar <dewar@gnat.com>
23352 * einfo.adb (Has_Pragma_Pure_Function): New flag.
23353 Fix problem that stopped ceinfo from working
23355 * einfo.ads (Has_Pragma_Pure_Function): New flag.
23357 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
23359 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
23362 (File_Time_Stamp): New procedure.
23363 (Preserve_Mode): New boolean.
23364 (Write_Unit): Pass time stamp.
23365 Implement -p switch (preserve time stamps).
23367 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
23369 * gnatchop.adb: Do usage info for -p switch
23371 * adaint.h (__gnat_set_file_time_name): New function
23373 * adaint.c (__gnat_set_file_time_name): Implement
23375 * adaint.h: Fix typo
23377 2001-12-03 Robert Dewar <dewar@gnat.com>
23379 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
23380 have Associated_Node.
23382 2001-12-03 Robert Dewar <dewar@gnat.com>
23384 * prj-proc.adb: Minor reformatting
23386 * make.adb: Minor reformatting
23388 2001-12-03 Geert Bosch <bosch@gnat.com>
23390 * make.adb: Minor reformatting.
23392 2001-12-03 Robert Dewar <dewar@gnat.com>
23394 * sem_ch12.adb: Minor reformatting
23396 2001-12-03 Ed Schonberg <schonber@gnat.com>
23398 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
23399 push Standard on the stack before analyzing the instance body,
23400 in order to have a clean visibility environment.
23402 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
23404 2001-12-03 Ed Schonberg <schonber@gnat.com>
23406 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
23407 instantiation of a body that contains an inlined body.
23409 2001-12-03 Ed Schonberg <schonber@gnat.com>
23412 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
23413 to prevent freezing within formal packages.
23414 (Freeze_Subprogram_Body): If body comes from another instance that
23415 appeared before its own body, place freeze node at end of current
23416 declarative part, to prevent a back-end crash.
23417 (Inline_Instance_Body): Handle properly a package instance within
23418 a subprogram instance that is a child unit.
23420 2001-12-01 Graham Stott <grahams@redhat.com>
23422 * Makefile.in (misc.o): Add missing $(srcdir) prefix
23423 and add optabs.h dependency.
23425 * misc.c: Include optabs.h
23426 (gnat_tree_code_type): Make static and const.
23427 (gnat_tree_code_length): Likewise.
23428 (gnat_tree_code_name): Likewise.
23429 (update_setjmp_buf): Obtain operands mode from insn_data.
23431 2001-11-29 Richard Henderson <rth@redhat.com>
23433 * init.c: Remove obsolete dwarf2 frame.h section.
23435 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
23437 * Make-lang.in (ada.generated-manpages): New dummy target.
23439 2001-11-29 Ed Schonberg <schonber@gnat.com>
23441 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
23442 into Command, an array conversion is illegal here. Uncovered by
23445 2001-11-28 Geert Bosch <bosch@gnat.com>
23447 * init.c: Minor whitespace changes.
23449 2001-11-28 Doug Rupp <rupp@gnat.com>
23451 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
23454 2001-11-28 Zack Weinberg <zack@codesourcery.com>
23456 * misc.c (gnat_expand_constant): Move declaration above
23457 definition of lang_hooks.
23458 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
23459 (gnat_init): lang_expand_constant no longer exists.
23461 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
23462 always have vprintf.
23463 (gnat_init): Always call set_internal_error_function.
23465 2001-11-27 Andreas Jaeger <aj@suse.de>
23467 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
23469 2001-11-27 Laurent Guerby <guerby@acm.org>
23471 * Makefile.in: Regenerate Ada dependencies.
23473 2001-11-26 Richard Henderson <rth@redhat.com>
23475 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
23476 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
23477 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
23479 2001-11-25 Laurent Guerby <guerby@acm.org>
23481 * sysdep.c (rts_get_*): Fix style.
23483 2001-11-19 Laurent Guerby <guerby@acm.org>
23485 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
23486 since it is of no apparent use and cause warnings.
23488 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
23490 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
23492 (gnat_init): Don't return NULL.
23493 (finish_parse): Remove.
23495 2001-11-17 Laurent Guerby <guerby@acm.org>
23497 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
23498 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
23499 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
23500 * lang-spec.h: Add missing struct field to silence warnings.
23501 * sysdep.c (rts_get_*): Provide K&R prototype.
23502 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
23503 * traceback.c (Unlock_Task, Lock_Task): Likewise.
23504 * tracebak.c (__gnat_backtrace): Remove unused variable.
23505 * utils.c (end_subprog_body): Move to K&R style.
23507 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23509 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
23511 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
23513 * misc.c (gnat_init): Change prototype. Include the
23514 functionality of the old init_parse and init_decl_processing.
23515 (gnat_init_decl_processing): New prototype.
23516 (init_parse): Remove.
23517 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
23519 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
23521 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
23522 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
23523 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
23524 set_yydebug): Remove.
23526 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
23528 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
23529 (struct lang_hooks): Constify.
23530 (language_string, lang_identify): Remove.
23531 * utils.c (init_decl_processing): Update.
23533 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
23535 * misc.c: Include langhooks-def.h.
23536 * Makefile.in: Update.
23538 2001-10-30 Robert Dewar <dewar@gnat.com>
23541 (Check_Identifier): Rewrite circuit to be compatible with use of letters
23542 in the upper half of ASCII.
23543 (Check_Identifier): Minor reformatting
23545 2001-10-30 Geert Bosch <bosch@gnat.com>
23547 * (Associated_Node, Set_Associated_Node): Do not check for
23550 2001-10-30 Robert Dewar <dewar@gnat.com>
23552 * a-reatim.ads: Minor reformatting
23554 2001-10-30 Robert Dewar <dewar@gnat.com>
23556 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
23557 undocumented declarations.
23559 2001-10-30 Pascal Obry <obry@gnat.com>
23561 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
23562 to the binder and linker.
23565 * mdll.ads: Fix layout. Update copyright notice.
23567 * mdll.adb: Fix layout. Update copyright notice.
23569 2001-10-30 Robert Dewar <dewar@gnat.com>
23571 * usage.adb: Minor fix to output for -gnaty.
23573 2001-10-30 Ed Schonberg <schonber@gnat.com>
23575 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
23576 to accommodate all its possible values.
23578 * a-reatim.adb (Split): Special-case handling of Time_Span_First
23579 and of small absolute values of T.
23581 2001-10-30 Richard Kenner <kenner@gnat.com>
23583 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
23584 set_mem_attributes since not needed and wrong if RESULT if a REG;
23585 fixes ACATS failures.
23587 2001-10-30 Geert Bosch <bosch@gnat.com>
23589 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
23590 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
23592 2001-10-30 Robert Dewar <dewar@gnat.com>
23594 * bindusg.adb: Undocument -f switch.
23596 * gnatcmd.adb: Remove /FULL_ELABORATION.
23598 * opt.ads (Force_RM_Elaboration_Order): Document that this is
23601 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
23603 * gnatbind.adb: Minor update of warning msg.
23605 2001-10-30 Vincent Celier <celier@gnat.com>
23607 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
23608 for project file switches (-P (/PROJECT_FILE=),
23609 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
23612 2001-10-30 Geert Bosch <bosch@gnat.com>
23614 * decl.c: Minor whitespace fixes.
23616 2001-10-30 Richard Kenner <kenner@gnat.com>
23618 * utils2.c (build_allocator): Test for SIZE overflow in array case too
23620 2001-10-30 Geert Bosch <bosch@gnat.com>
23622 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
23623 Found due to GCC 3.0 warning of using uninitialized value.
23626 (Get_Max_Size): Use variant record for tracking value/expression.
23627 Makes logic clearer and prevents warnings for uninitialized variables.
23628 (Layout_Array_Type): Use variant record for tracking value/expression.
23629 Makes logic clearer and prevents warnings for uninitialized variables.
23631 2001-10-30 Robert Dewar <dewar@gnat.com>
23633 * lib.adb: Minor reformatting
23635 * s-taprop.ads: Minor reformatting
23637 2001-10-29 Laurent Guerby <guerby@acm.org>
23640 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
23642 (_gnat_error_handler): Make MSG const.
23644 2001-10-29 Richard Kenner <kenner@gnat.com>
23646 * sysdep.c: Fix localtime_r problem on LynxOS.
23647 Also remove #elif to avoid warnings.
23649 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
23652 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
23654 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
23656 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
23657 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
23658 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
23659 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
23660 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
23661 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
23662 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
23663 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
23664 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
23665 types.ads, urealp.adb: Fix spelling errors.
23667 2001-10-27 Laurent Guerby <guerby@acm.org>
23669 * trans.c (gigi): Fix non determinism leading to bootstrap
23670 comparison failures for debugging information.
23672 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
23674 * gnat_rm.texi: Use @./@: where appropriate.
23676 2001-10-26 Robert Dewar <dewar@gnat.com>
23678 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
23680 2001-10-26 Richard Kenner <kenner@gnat.com>
23682 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
23684 2001-10-26 Richard Kenner <kenner@gnat.com>
23686 * decl.c (validate_size): Modify message for bad size to avoid
23687 implication that compiler is modifying the size.
23689 2001-10-26 Robert Dewar <dewar@gnat.com>
23691 * prj-util.adb: Minor reformatting. Fix bad header format.
23693 2001-10-26 Robert Dewar <dewar@gnat.com>
23695 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
23697 * sinfo.ads: Clarify use of Associated_Node (documentation only).
23699 * sem_ch12.adb: Change Node4 to Associated_Node. Change
23700 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
23701 much more narrowly in places where needed. These are cleanups.
23703 2001-10-26 Joel Brobecker <brobecke@gnat.com>
23705 * 5zosinte.ads (null_pthread): new constant.
23708 (Initialize_TCB): Initialize thread ID to null, to be able to verify
23709 later that this field has been set.
23710 (Finalize_TCB): ditto.
23711 (Suspend_Task): Verify that the thread ID is not null before using it.
23712 (Resume_Task): ditto.
23715 (Resume_All_Tasks): Lock the tasks list before using it.
23716 (Suspend_All_Tasks): ditto.
23718 2001-10-26 Richard Kenner <kenner@gnat.com>
23720 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
23721 Make constant variant of designated type for Is_Access_Constant.
23722 Call update_pointer_to with main variant.
23724 * trans.c (process_freeze_entity, process_type):
23725 Call update_pointer_to on main variant.
23727 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
23728 If main variant, update all other variants.
23730 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
23733 2001-10-26 Robert Dewar <dewar@gnat.com>
23735 * prj-util.adb: Minor reformatting
23737 2001-10-26 Robert Dewar <dewar@gnat.com>
23739 * prj-util.adb: Minor reformatting
23741 2001-10-26 Robert Dewar <dewar@gnat.com>
23743 * prj-attr.adb: Minor reformatting throughout
23745 2001-10-26 Robert Dewar <dewar@gnat.com>
23747 * prj-attr.ads: Minor reformatting
23748 Add ??? comment (this whole spec has almost no comments)
23750 2001-10-26 Vincent Celier <celier@gnat.com>
23752 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
23753 ("//") that precede the drive letter on Interix.
23755 2001-10-26 Geert Bosch <bosch@gnat.com>
23757 * gnat_rm.texi: Add GNAT Reference Manual.
23759 2001-10-25 Robert Dewar <dewar@gnat.com>
23761 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
23762 is Error. Similar change for other renaming cases.
23764 2001-10-25 Robert Dewar <dewar@gnat.com>
23766 * s-atacco.ads: Add pragma Inline_Always for functions.
23767 Fix header format. Add copyright 2001
23769 2001-10-25 Ed Schonberg <schonber@gnat.com>
23771 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
23772 return Error rather than Empty so that analysis can proceed.
23774 2001-10-25 Ed Schonberg <schonber@gnat.com>
23776 * sem_util.adb (Enter_Name): better handling of cascaded error
23777 messages when a unit appears in its own context.
23779 2001-10-25 Ed Schonberg <schonber@gnat.com>
23781 * sem_util.adb (Defining_Entity): in case of error, attach created
23782 entity to specification, so that semantic analysis can proceed.
23784 2001-10-25 Robert Dewar <dewar@gnat.com>
23787 (Defining_Entity): Deal with Error.
23788 (Process_End_Label): Deal with bad end label for.
23790 2001-10-25 Ed Schonberg <schonber@gnat.com>
23792 * sem_elab.adb (Check_A_Call): refine message when call is in an
23793 instance but callee is not declared in the generic unit.
23795 2001-10-25 Ed Schonberg <schonber@gnat.com>
23797 * sem_elab.adb (Check_A_Call): check for renaming before finding the
23798 enclosing unit, which may already be different from the calling unit.
23800 2001-10-25 Geert Bosch <bosch@gnat.com>
23802 * 4gintnam.ads: fix header format.
23804 2001-10-25 Ed Schonberg <schonber@gnat.com>
23806 * sem_res.adb (Resolve_Call): if the call is actually an indexing
23807 operation on the result of a parameterless call, perform elaboration
23808 check after the node has been properly rewritten.
23810 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
23811 inlined within the generic tree, the defining identifier is not a
23814 2001-10-25 Ed Schonberg <schonber@gnat.com>
23816 * sem_res.adb (Resolve): special-case resolution of Null in an
23817 instance or an inlined body to avoid view conflicts.
23819 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
23820 compatibility by retrieving the access type of the generic copy.
23822 2001-10-25 Robert Dewar <dewar@gnat.com>
23825 (Analyze_Number_Declaration): Handle error expression.
23826 (Signed_Integer_Type_Declaration): Handle error bound.
23827 (Analyze_Subtype_Indication): Handle error range.
23829 * sem_util.adb (Get_Index_Bounds): Check for Error.
23831 2001-10-25 Robert Dewar <dewar@gnat.com>
23833 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
23834 in no run time mode.
23836 2001-10-25 Pascal Obry <obry@gnat.com>
23838 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
23839 mode case for ALLOC case.
23841 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
23842 all platforms. Improvement of last change.
23844 2001-10-25 Robert Dewar <dewar@gnat.com>
23846 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
23848 2001-10-25 Geert Bosch <bosch@gnat.com>
23850 * osint.adb (Is_Relative): Remove duplicate.
23852 2001-10-25 Pascal Obry <obry@gnat.com>
23854 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
23855 pathnames in UNIX and DOS style with drive letter.
23856 (Is_Relative): new routine.
23858 * osint.adb: Minor reformatting
23860 * osint.adb (Is_Relative): implementation using
23861 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
23863 2001-10-25 Pascal Obry <obry@gnat.com>
23865 * g-dirope.adb (Basename): correctly compute offset between the
23866 original Path and the translated one.
23868 * g-dirope.adb: (Base_Name): add some comments.
23870 2001-10-25 Robert Dewar <dewar@gnat.com>
23872 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
23873 in HIE mode, avoids compilation abandoned message
23875 * exp_imgv.adb: Correct typo in previous change
23877 * exp_imgv.adb: Correct typo in previous change (not my day!)
23879 2001-10-25 Robert Dewar <dewar@gnat.com>
23881 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
23883 2001-10-25 Pascal Obry <obry@gnat.com>
23885 * g-awk.ads: Move all pragma inlines next to the routine
23886 declarations. This is more uniform with other GNAT spec.
23888 2001-10-22 Geert Bosch <bosch@gnat.com>
23890 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
23892 2001-10-19 Geert Bosch <bosch@gnat.com>
23894 * Makefile.in (tools, gnattools): Remove gnatmem.
23896 2001-10-17 Richard Henderson <rth@redhat.com>
23898 * Makefile.in (misc.o): Depend on langhooks.h.
23899 * misc.c: Include it.
23900 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
23901 (LANG_HOOKS_DECODE_OPTION): New.
23902 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
23904 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
23906 * trans.c (tree_transform): Adjust to recent change in
23907 expand_asm_operands to implement named asm operands.
23909 2001-10-11 Ed Schonberg <schonber@gnat.com>
23911 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
23912 renaming of discriminant for mutable record type.
23914 2001-10-11 Robert Dewar <dewar@gnat.com>
23916 * validsw.adb: Properly save -gnatVn status.
23918 2001-10-11 Robert Dewar <dewar@gnat.com>
23920 * usage.adb: Add lines for V switch.
23922 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
23923 (/VALIDITY_CHECKING).
23925 2001-10-11 Ed Schonberg <schonber@gnat.com>
23927 * sem_type.adb (Add_One_Interp): an operator for a type declared in
23928 an extension of System is known to be visible.
23930 2001-10-11 Ed Schonberg <schonber@gnat.com>
23932 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
23933 properly. Fixes regression on ACATS C34005G.
23935 2001-10-11 Robert Dewar <dewar@gnat.com>
23937 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
23938 loop in generic instance, since this is likely not very useful.
23940 2001-10-11 Robert Dewar <dewar@gnat.com>
23942 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
23943 the error message for high integrity mode.
23945 * rtsfind.adb (RTE): Give message if we try to find an entity that
23946 is not available in high integrity mode.
23949 (OK_To_Use_In_HIE_Mode): New array.
23950 (RTE): May return Empty in high integrity mode.
23952 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
23953 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
23955 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
23956 unit if not inlined always and in no runtime mode. Fixes problem
23957 caused by new Rtsfind changes.
23959 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
23962 * rtsfind.adb (RTE): Make sure we do not try to load unit after
23963 giving message for entity not available in high integrity mode.
23965 2001-10-11 Pascal Obry <obry@gnat.com>
23967 * impunit.adb: Add GNAT.CRC32.
23969 2001-10-11 Ed Schonberg <schonber@gnat.com>
23971 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
23972 properly the case where one universal operand in a non-static
23973 exponentiation of a real literal.
23975 2001-10-11 Ed Schonberg <schonber@gnat.com>
23977 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
23978 clause, return the gobal finalization list, for lack of anthing else.
23980 2001-10-11 Ed Schonberg <schonber@gnat.com>
23982 * exp_ch7.adb (Make_Transient_Block): if statement is within
23983 exception handler, always use new transient scope to place Clean
23986 2001-10-11 Pascal Obry <obry@gnat.com>
23989 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
23990 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
23991 (GNATLS_RTL_OBJS): add g-crc32.o
23992 (GNATMAKE_RTL_OBJS): add g-crc32.o
23995 (CRC_Match): new function.
23996 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
23997 instead of the previous simple checksum algorithm.
23998 (Time_Stamp_Mismatch): use CRC_Match for comparison.
23999 (Set_Source_Table): idem.
24002 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
24003 instead of simple checksum.
24004 (CRC_Match): new function.
24005 (CRC_Error): new constant.
24007 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
24008 a CRC now and not a simple checksum. A CRC uses lower-case hex
24009 letters, fixes ambiguity in parsing.
24011 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
24012 is what this variable will store.
24014 * bcheck.adb: Change reference to chechsum in comments by CRC.
24015 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
24016 rename All_Checksum_Match to All_CRC_Match. Change due to API
24017 renaming since now GNAT does not use a simple checksum but a
24018 CRC using GNAT.CRC32.
24020 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
24021 now and not anymore a simple checksum.
24023 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
24026 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
24029 (Restore_Scan_State): rename Checksum to CRC.
24030 (Save_Scan_State): idem.
24034 (Checksum): rename to CRC.
24035 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
24037 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
24038 GNAT.CRC32). Update copyright notice.
24040 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
24041 GNAT.CRC32). Update copyright notice.
24044 (Accumulate_Checksum): removed.
24045 (Update): new procedure. Add a wide-character into the CRC.
24048 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
24049 (Load_File): fix initialization of S (change Source_Checksum to
24052 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
24053 Source_CRC in S initialization.
24055 * sinput.adb (Source_Checksum): renamed to Source_CRC.
24057 * sinput.ads (Source_Checksum): renamed to Source_CRC.
24058 Update comments for the CRC.
24060 * types.adb (Hex): Use lowercase for the letter part.
24062 * types.ads (Get_Hex_String): Returns the hexadecimal representation
24063 for a word. This is currently used only for CRC. In previous version,
24064 the checksum was using a representation with all letter being
24065 upper-case. With the new implementation (using CRC) we do not remove
24066 the 32th bit of the CRC, so we can have an upper-case starting letter
24067 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
24068 It is ambigous since the CRC was optional and could be followed by
24069 options like EB, EE. So now this routines uses lower-case letter for
24070 the hexadecimal representation. Strange enough only lower case letters
24071 where checked in Scan_ALI (even if this was not a possible case).
24073 * gnatvsn.ads (Library_Version): changed to 3.15a.
24075 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
24078 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
24081 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
24082 Add 2001 to copyright notice
24083 (Accumulate_Checksum): Modify to use System.CRC32.
24085 * ali-util.ads: Redo changes of previous revision to continue to use
24086 the word Checksum. Add 2001 to copyright notice.
24088 * ali.adb: Undo some of previous changes, not needed.
24089 Keep the change for lower case letters in the checksum.
24091 * ali.ads: Undo previous change not needed.
24093 * bcheck.adb: Undo most of previous change, not needed.
24094 But do use Checksums_Match for checksum comparison.
24096 * gnatls.adb: Undo most of previous change, not needed.
24097 But do use Checksums_Match for comparing checksums.
24099 * lib-load.adb: Undo previous change, not needed.
24101 * lib-writ.adb: Undo previous change, not needed.
24103 * lib-writ.ads: Document that checksums use lower case,
24104 not upper case letters.
24106 * scans.adb: Undo previous change, not needed
24108 * scans.ads: Undo previous change, not needed.
24110 * scn-nlit.adb: Undo previous changes, not needed.
24112 * scn-slit.adb: Undo previous change, not needed. Fix header format.
24115 (Accumulate_Checksum): Use System.CRC32.
24116 (Initialize_Checksum): New procedure.
24117 Remove other changes of previous revision.
24119 * sinput-p.adb: Undo previous change, not needed.
24121 * sinput.adb: Undo previous change, not needed.
24123 * sinput-l.adb: Undo previous change, not needed.
24125 * sinput.ads: Undo previous change, not needed. Keep only comment
24126 on new checksum algorithm
24128 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
24129 Also remove a-tags and a-stream from GNAT sources.
24131 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
24133 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
24135 2001-10-11 Geert Bosch <bosch@gnat.com>
24137 * einfo.h: Regenerate.
24139 * nmake.ads: Regenerate.
24141 * nmake.adb: Regenerate.
24143 * sinfo.h: Regenerate.
24145 * treeprs.adb: Regenerate.
24147 2001-10-10 Geert Bosch <bosch@gnat.com>
24149 * gnat-style.texi: New file describing coding guidelines for Ada.
24151 2001-10-10 Ed Schonberg <schonber@gnat.com>
24153 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
24156 2001-10-10 Geert Bosch <bosch@gnat.com>
24158 * snames.ads: Add new names for project facility.
24160 * snames.adb: Update to reflect snames.ads changes.
24162 * snames.h: Update to reflect snames.ads changes.
24164 2001-10-10 Vincent Celier <celier@gnat.com>
24167 (Add_Switches): reflect the changes for the switches attributes
24168 Default_Switches indexed by the programming language,
24169 Switches indexed by the file name.
24170 (Collect_Arguments_And_Compile): Idem.
24171 Reflect the attribute name changes.
24174 (Initialisation_Data): Change the names of some packages and
24176 (Initialize): process case insensitive associative arrays.
24179 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
24182 (Parse_Attribute_Declaration): For case insensitive associative
24183 arrays, set the index string to lower case.
24186 Reflect the changes of the project attributes.
24189 Replace Check_Naming_Scheme by Ada_Check and
24190 Language_Independent_Check.
24193 Replaced Check_Naming_Scheme by 2 procedures:
24194 Ada_Check and Language_Independent_Check.
24197 (Process_Declarative_Items): For case-insensitive associative
24198 arrays, set the index string to lower case.
24199 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
24200 Prj.Nmsc.Check_Naming_Scheme.
24203 (Case_Insensitive): New function
24204 (Set_Case_Insensitive): New procedure
24207 (Case_Insensitive): New function
24208 (Set_Case_Insensitive): New procedure
24209 (Project_Node_Record): New flag Case_Insensitive.
24212 (Value_Of): new function to get the string value of a single
24213 string variable or attribute.
24216 (Value_Of): new function to get the string value of a single
24217 string variable or attribute.
24220 (Ada_Default_Spec_Suffix): New function
24221 (Ada_Default_Impl_Suffix): New function
24222 Change definitions of several constants to reflect
24223 new components of record types.
24226 (Naming_Data): Change several components to reflect new
24227 elements of naming schemes.
24228 (Project_Data): New flags Sources_Present and
24229 Language_Independent_Checked.
24230 (Ada_Default_Spec_Suffix): New function.
24231 (Ada_Default_Impl_Suffix): New function.
24234 Modification of predefined names for project manager: added
24235 Implementation, Specification_Exceptions, Implementation_Exceptions,
24236 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
24237 Default_Switches, _Languages, Builder, Cross_Reference,
24238 Finder. Removed Body_Part, Specification_Append, Body_Append,
24239 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
24242 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
24245 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
24246 not that it is Nil_Variable_Value.
24248 * prj.ads: Add ??? for uncommented declarations
24250 2001-10-10 Ed Schonberg <schonber@gnat.com>
24252 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
24253 constant, do not indicate possible modification, so that gigi can
24254 treat it as a bona fide constant.
24256 2001-10-10 Robert Dewar <dewar@gnat.com>
24258 * sem_prag.adb: Add processing for pragma External.
24260 * snames.ads: Add entry for pragma External.
24262 * par-prag.adb: Add pragma External.
24264 * snames.adb: Updated to match snames.ads.
24266 2001-10-10 Ed Schonberg <schonber@gnat.com>
24268 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
24269 a dynamic task if the allocator appears in an indexed assignment
24270 or selected component assignment.
24272 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
24273 For a dynamic task in an assignment statement, use target of
24274 assignment to generate meaningful name.
24276 2001-10-10 Ed Schonberg <schonber@gnat.com>
24278 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
24281 * einfo.ads: Body_Entity is also defined for generic package.
24282 Documentation change only
24284 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
24285 others_choice for a discriminated component initialization,
24286 convert discriminant references into the corresponding discriminals.
24288 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
24289 only if original type is private and expression has to be wrapped
24293 (Apply_Constraint_Check): Do not perform length check
24294 if expression is an aggregate with only an others_choice.
24295 (Length_N_Cond): two references to the same in_parameter
24296 (typically the discriminal in an init_proc) denote the same value.
24297 Two useful optimization uncovered by bugfixes above.
24299 2001-10-10 Robert Dewar <dewar@gnat.com>
24301 * xeinfo.adb: Change int to char in translation of enumeration types.
24302 This fixes a problem in the C representation of component alignment.
24303 Add 2001 to copyright notice
24305 2001-10-10 Richard Kenner <kenner@gnat.com>
24307 * decl.c: (validate_size): Do check size of object of integral type
24308 if it is a packed array type.
24310 2001-10-10 Richard Kenner <kenner@gnat.com>
24312 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
24313 VAR_DECL for constant if not Is_Public but -O0.
24315 2001-10-10 Richard Kenner <kenner@gnat.com>
24317 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
24319 2001-10-10 Geert Bosch <bosch@gnat.com>
24321 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
24322 use '/' as switch character, allowing for absolute file names.
24324 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
24326 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
24329 2001-10-08 Geert Bosch <bosch@gnat.com>
24331 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
24332 Automatically build utilities when files need to be regenerated.
24334 2001-10-08 Geert Bosch <bosch@gnat.com>
24336 * xsnames.adb: New utility for updating snames.ads and snames.adb
24338 2001-10-08 Zack Weinberg <zack@codesourcery.com>
24340 * Make-lang.in (ADAFLAGS): Add -W -Wall.
24341 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
24342 (gnat1): Also depend on attribs.o.
24343 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
24344 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
24345 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
24346 (ADAFLAGS): Add -W -Wall.
24347 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
24350 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
24351 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
24352 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
24353 Use $(ADAC), not $(CC), as compilation command.
24355 (gnattools): Depend directly on tools to build, don't use
24357 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
24359 * einfo.h, sinfo.h: New files (autogenerated).
24361 2001-10-08 Richard Henderson <rth@redhat.com>
24363 * comperr.adb (Abort_In_Progress): New.
24364 (Compiler_Abort): Use it to prevent recursion.
24366 2001-10-08 Robert Dewar <dewar@gnat.com>
24368 * atree.adb: Set Error_Posted in Error node, helps error recovery.
24370 * par-endh.adb (Output_End_Expected): We should also not test
24371 Error_Posted on the Error node, since now it is always set.
24373 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
24374 to help error recovery. Part of general work on 9407-004.
24376 * par.adb: Add ??? for misuse of error
24379 (Resolve): Defend against Error, fixes 9407-003.
24380 (Resolve_Discrete_Subtype_Indication): Defend against Error.
24382 * sinfo.ads (N_Error): Now has Etype field (which will be set
24383 to Any_Type to help error recovery).
24385 2001-10-08 Richard Kenner (kenner@gnat.com)
24387 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
24388 Consistently set MEM attributes from expression; fixes
24389 bootstrap failure on x86.
24391 2001-10-08 Geert Bosch (bosch@gnat.com)
24393 * 5oosinte.adb: Add 2001 to copyright notice.
24395 2001-10-08 Geert Bosch (bosch@gnat.com)
24397 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
24399 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
24401 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
24403 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
24405 2001-10-05 Geert Bosch (bosch@gnat.com)
24407 * adaint.h: Small formatting fix.
24409 2001-10-04 Geert Bosch <bosch@gnat.com>
24411 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
24412 Arg is int, not FILE *, in dummy version of functions.
24414 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
24415 Arg is int, not FILE *.
24417 2001-10-04 Geert Bosch <bosch@gnat.com>
24419 * 3lsoccon.ads: Added file, missed with initial check ins.
24421 * 4lintnam.ads: Fix header format.
24422 Change Linux to GNU/Linux.
24424 * 5iosinte.adb: Change Linux to GNU/Linux.
24426 * 5iosinte.ads: Change Linux to GNU/Linux.
24428 * 5itaprop.adb: Change Linux to GNU/Linux.
24430 * 5itaspri.ads: Change Linux to GNU/Linux.
24431 Update copyright notice.
24433 * 5lintman.adb: Change Linux to GNU/Linux.
24435 * 5lml-tgt.adb: Change Linux to GNU/Linux.
24437 * 5losinte.ads: Change Linux to GNU/Linux.
24439 * 5lsystem.ads: Change Linux to GNU/Linux.
24441 * 5qosinte.adb: Change Linux to GNU/Linux.
24443 * 5qosinte.ads: Change Linux to GNU/Linux.
24445 * 5qparame.ads: Change Linux to GNU/Linux.
24447 * 5qtaprop.adb: Change Linux to GNU/Linux.
24449 * 5qtaspri.ads: Change Linux to GNU/Linux.
24450 Add 2001 to copyright notice.
24452 * 5vintman.ads: Change Linux to GNU/Linux.
24453 Fix header format. Add 2001 to copyright notice.
24455 * g-soccon.ads: Change Linux to GNU/Linux.
24457 * g-trasym.ads: Change Linux to GNU/Linux.
24458 Add 2001 to copyright notice.
24460 * memtrack.adb: Change Linux to GNU/Linux.
24462 * s-intman.ads: Change Linux to GNU/Linux.
24463 Add 2001 to copyright notice. Fix header format.
24465 * s-stache.adb: Change Linux to GNU/Linux.
24467 * adaint.c: Change Linux to GNU/Linux.
24469 * cio.c: Change Linux to GNU/Linux.
24471 * cstreams.c: Change Linux to GNU/Linux.
24473 * init.c: Change Linux to GNU/Linux.
24475 * gmem.c: Change Linux to GNU/Linux.
24477 * tracebak.c: Change Linux to GNU/Linux.
24480 2001-10-02 Geert Bosch <bosch@gnat.com>
24482 * misc.c (insert_default_attributes): Add dummy version.