1 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
5 * config-lang.in (gtfiles): Add ada-tree.h.
6 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
7 (SET_TYPE_MODULUS): New.
9 (SET_TYPE_DIGITS_VALUE): New.
10 (SET_TYPE_RM_SIZE): New.
11 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
12 (SET_TYPE_ADA_SIZE): New.
13 (SET_TYPE_ACTUAL_BOUNDS): New.
14 (SET_DECL_CONST_CORRESPONDING_VAR): New.
15 (SET_DECL_ORIGINAL_FIELD): New.
16 (TREE_LOOP_ID): Correct typo.
17 * decl.c: Use new macros.
18 * utils.c: Include debug.h, use new macros.
19 * utils2.c: Use new macros.
21 * ada-tree.h: Update all macros for new tree description.
22 (struct tree_loop_id): New.
23 (union lang_tree_node): New.
24 (struct lang_decl): New.
25 (struct lang_type): New.
26 * misc.c (gnat_mark_tree): Delete.
27 (LANG_HOOKS_MARK_TREE): Delete.
28 * trans.c (tree_transform): No longer any need to cast
31 * utils.c (struct language_function): New dummy structure.
33 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
35 (utils.o): Likewise; also gtype-ada.h.
36 * Make-lang.in (gnat1): Add dependency on s-gtype.
37 (gnatbind): Add dependency on $(CONFIG_H).
38 * utils.c: Correct last #include.
39 (stuct e_stack): Remove unnecessary 'static'.
40 (mark_e_stack): Remove unused prototype.
42 * scn-nlit.adb: Remove whitespace after version number to
43 keep lines under 80 chars.
44 * snames.adb: Likewise.
45 * treepr.ads: Likewise.
47 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
49 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
50 * config-lang.in (gtfiles): New.
51 * decl.c: Use gengtype for roots.
52 * gigi.h: Use gengtype for roots.
53 * trans.c: Use gengtype for roots.
54 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
56 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
58 * misc.c (gnat_init): Adjust setting of internal_error_function.
60 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
62 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
63 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
64 gnat_ug_wnt.texi: Regenerate.
66 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
68 * 5ntaprop.adb (with System.OS_Primitives): Remove.
70 * cstreams.c (max_path_len): Move from here ...
71 * adaint.c (__gnat_max_path_len): ... to here.
72 * adaint.c (__gnat_max_path_len): Declare.
73 * g-dirope.adb (Max_Path): Adjust.
74 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
75 * i-cstrea.ads (max_path_len): Adjust.
76 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
77 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
79 * Makefile.in, Make-lang.in: Documentation is now built in
80 Make-lang.in. Store Info and generated Texinfo files in the
82 * gnat_ug.texi: Remove CVS keywords, correct version number.
83 Set file name correctly.
85 * gnat_ug_*.texi: Add.
86 * .cvsignore: Ignore generated Texinfo files.
88 2002-05-30 Zack Weinberg <zack@codesourcery.com>
90 * ada.h: Add MI guard macro.
91 (SUBTYPE): Define constants with an anonymous enum, not static
93 (IN): Cast constants to appropriate type before use.
95 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
97 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
100 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
102 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
103 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
104 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
105 (ALL_ADA_CFLAGS): Likewise.
106 (ADA_INCLUDES): Likewise.
107 Adapt for new working dir.
108 (GNATBIND): Use Makefile.in version.
109 (.SUFFIXES): Copy from Makefile.in.
111 (.adb.o, .ads.o): Copy from Makefile.in.
112 Added $(OUTPUT_OPTION).
113 (GNAT1_C_OBJS): Moved from Makefile.in.
114 Prefix with ada subdir.
115 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
116 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
117 Adapt for new working dir.
118 (EXTRA_GNATBIND_OBJS): Likewise.
119 (ADA_BACKEND): Moved from Makefile.in.
120 Renamed to avoid conflict with global BACKEND.
122 (TARGET_ADA_SRCS): Moved from Makefile.in.
123 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
125 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
126 (ada_extra_files): Moved from Makefile.in.
127 Prefix with ada subdir.
128 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
129 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
130 (ada/nmake.ads): Likewise.
131 (update-sources): Moved from Makefile.in.
132 Prefix with ada subdir.
133 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
134 (ADA_TREE_H): Likewise.
135 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
136 (ada/memtrack.o): Likewise.
137 (ada/adadecode.o): Likewise.
140 (ada/argv.o): Moved from Makefile.in.
141 Prefix with ada subdir.
143 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
144 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
145 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
146 Prefix with ada subdir.
147 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
148 (GNAT DEPENDENCIES): Regenerate.
149 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
150 toplevel Makefile.in.
151 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
152 (TARGET_ADA_SRCS): Removed.
153 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
154 (GNATBIND_OBJS): Likewise.
155 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
157 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
159 (ada_extra_files): Likewise.
160 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
161 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
162 (update-sources): Likewise.
163 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
164 (ADA_TREE_H): Likewise.
165 (adadecoce.o): Likewise.
166 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
167 (GNAT DEPENDENCIES): Likewise.
169 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
171 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
172 * Makefile.in: Likewise.
174 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
176 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
177 Restore $(CONFIG_H) and prefix.o dependencies.
178 (ada.stage[1-4]): Depend on stage?-start.
180 * Makefile.in (b_gnatb.c): Depend on interfac.o.
182 2002-05-02 Jim Wilson <wilson@redhat.com>
184 * utils.c (finish_record_type): Change record_size to record_type.
186 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
188 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
189 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
190 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
192 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
194 * misc.c (gnat_parse_file): Update.
196 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
198 * misc.c (gnat_init): Don't set lang_attribute_common.
200 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
202 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
204 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
206 * gnat_ug.texi: New file.
208 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
211 * xgnatug.adb, ug_words: New files.
213 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
214 gnat_rm and gnat-style manuals.
216 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
218 * gigi.h (incomplete_type_error): Remove.
219 * utils.c (incomplete_type_error): Remove.
221 2002-04-16 Mark Mitchell <mark@codesourcery.com>
223 * trans.c (tree_transform): Add has_scope argument to
224 expand_start_stmt_expr.
226 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
228 * gigi.h (truthvalue_conversion): Rename.
229 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
230 * trans.c (tree_transform): Update.
231 * utils2.c (truthvalue_conversion): Rename, update.
232 (build_binary_op, build_unary_op): Update.
234 2002-04-04 Laurent Guerby <guerby@acm.org>
236 * make.adb: Implement -margs, remove restriction about file name placement.
237 * makeusg.adb: Documentation update.
238 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
239 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
241 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
243 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
244 (builtin_function): Similarly.
246 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
248 * decl.c (gnat_to_gnu_entity): Update.
249 * gigi.h (mark_addressable): Rename.
250 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
251 * trans.c (tree_transform): Update.
252 * utils.c (create_var_decl): Update.
253 * util2.c (build_binary_op, build_unary_op,
254 fill_vms_descriptor): Update.
255 (mark_addressable): Rename, update.
257 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
259 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
261 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
262 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
263 * trans.c (tree_transform, convert_with_check): Update.
264 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
267 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
269 * gigi.h (finish_incomplete_decl): Rename.
270 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
271 * utils.c (gnat_init_decl_processing): Don't set hook.
272 (finish_incomplete_decl): Rename.
274 2002-03-29 Andreas Schwab <schwab@suse.de>
276 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
279 2001-03-28 Robert Dewar <dewar@gnat.com>
282 (Remove_Checks): New procedure
285 (Remove_Checks): New procedure
288 Use new Duplicate_Subexpr functions
289 (Duplicate_Subexpr_No_Checks): New procedure
290 (Duplicate_Subexpr_No_Checks_Orig): New procedure
291 (Duplicate_Subexpr): Restore original form (checks duplicated)
292 (Duplicate_Subexpr): Call Remove_Checks
295 (Duplicate_Subexpr_No_Checks): New procedure
296 (Duplicate_Subexpr_No_Checks_Orig): New procedure
297 Add 2002 to copyright notice
299 * sem_util.adb: Use new Duplicate_Subexpr functions
302 (Eval_Indexed_Component): This is the place to call
303 Constant_Array_Ref and to replace the value. We simply merge
304 the code of this function in here, since it is now no longer
305 used elsewhere. This fixes the problem of the back end not
306 realizing we were clever enough to see that this was
308 (Expr_Val): Remove call to Constant_Array_Ref
309 (Expr_Rep_Val): Remove call to Constant_Array_Ref
311 (Constant_Array_Ref): Deal with string literals (patch
312 suggested by Zack Weinberg on the gcc list)
314 2001-03-28 Ed Schonberg <schonber@gnat.com>
316 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
317 Duplicate_Subexpr_Move_Checks.
319 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
320 Duplicate_Subexpr_Move_Checks.
322 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
323 value of array exists before retrieving it (it may a private
324 protected component in a function).
326 2002-03-28 Geert Bosch <bosch@gnat.com>
328 * prj-pp.adb : New file.
330 * prj-pp.ads : New file.
332 2002-03-28 Andreas Jaeger <aj@suse.de>
334 * Makefile.in (stamp-sdefault): Fix path for Makefile.
336 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
338 * misc.c (gnat_expand_expr): Move prototype.
340 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
342 * misc.c (insert_default_attributes): Remove.
344 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
346 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
347 (gnat_init): Don't set hook.
348 (gnat_expand_expr): Fix prototype.
350 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
352 * misc.c (ggc_p): Remove.
354 2002-03-27 Geert Bosch <bosch@gnat.com>
356 * prj-makr.ads, prj-makr.adb : New files.
358 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
360 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
361 (lang_mark_tree): Make static, rename.
363 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
365 * misc.c (maybe_build_cleanup): Remove.
367 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
369 * gigi.h (yyparse): Remove.
371 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
373 * gnat_rm.texi: Sync with ACT version.
374 (From Ben Brosgol <brosgol@gnat.com>)
376 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
378 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
379 (gnat_init): Remove old hook.
381 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
383 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
384 (yyparse): Rename gnat_parse_file.
386 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
388 Delete all lines containing "$Revision:".
389 * xeinfo.adb: Don't look for revision numbers.
390 * xnmake.adb: Likewise.
391 * xsinfo.adb: Likewise.
392 * xsnames.adb: Likewise.
393 * xtreeprs.adb: Likewise.
395 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
397 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
398 gnat_tree_code_name): Delete.
399 (tree_code_type, tree_code_length, tree_code_name): Define.
400 (gnat_init): Don't try to copy into the various tree_code
403 2002-03-11 Richard Henderson <rth@redhat.com>
405 * Makefile.in (.NOTPARALLEL): Add fake tag.
407 2002-03-07 Geert Bosch <bosch@gnat.com>
409 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
410 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
411 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
412 switch-m.adb, switch-m.ads : New files.
414 2002-03-07 Geert Bosch <bosch@gnat.com>
416 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
417 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
418 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
419 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
420 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
421 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
422 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
423 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
424 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
425 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
426 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
427 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
428 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
429 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
430 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
431 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
432 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
433 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
434 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
435 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
436 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
437 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
438 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
439 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
440 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
441 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
442 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
443 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
444 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
445 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
446 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
447 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
448 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
449 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
450 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
451 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
452 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
453 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
454 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
455 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
456 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
457 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
458 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
459 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
460 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
461 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
462 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
463 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
464 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
465 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
466 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
467 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
468 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
469 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
470 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
471 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
472 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
473 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
474 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
475 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
476 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
477 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
478 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
479 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
480 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
481 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
482 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
483 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
484 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
485 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
486 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
487 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
488 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
489 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
490 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
491 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
492 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
493 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
494 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
495 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
496 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
497 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
498 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
499 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
500 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
501 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
502 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
503 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
504 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
505 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
506 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
507 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
508 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
509 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
510 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
511 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
512 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
514 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
515 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
516 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
517 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
519 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
520 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
522 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
523 to mdll-fil.ad[bs] and mdll-util.ad[bs]
525 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
526 from mdllfile.ad[bs] and mdlltool.ad[bs]
528 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
530 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
531 lieu of explicit sizeof/sizeof.
533 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
535 * misc.c (copy_lang_decl): Remove.
537 2002-02-27 Zack Weinberg <zack@codesourcery.com>
539 * misc.c: Delete traditional-mode-related code copied from the
540 C front end but not used, or used only to permit the compiler
543 2002-02-07 Richard Henderson <rth@redhat.com>
545 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
546 * adaint.h (__gnat_to_gm_time): Update prototype.
548 2002-01-30 Richard Henderson <rth@redhat.com>
550 * trans.c (tree_transform) [N_Loop_Statement]: Use
551 expand_exit_loop_top_cond.
553 2001-12-23 Richard Henderson <rth@redhat.com>
555 * utils.c (end_subprog_body): Push GC context around
556 rest_of_compilation for nested functions.
558 2001-12-23 Richard Henderson <rth@redhat.com>
560 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
562 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
564 * gnat-style.texi (Declarations and Types): Remove ancient style
565 rule which was mandated by code generation issues.
567 * gnat-style.texi (header): Add @dircategory, @direntry.
568 (title page): Remove date.
569 (general) Add @./@: where approriate, and two spaces after the
570 full stop at the end of a sentence. Use @samp markup when
571 referring concrete lexical entities (keywords, attribute names
572 etc.), and @syntax for ARM grammar elements. Use @r for English
573 text in comments. Use @emph for emphasis. Change "if-statements"
574 etc. to "if statements" (without @samp). Break long lines. Make
575 casing of section names consistent.
576 (Identifiers): Use @samp markup for variable names.
577 (Comments): Use @samp markup for comment characters. Line-end
578 comments may follow any Ada code, not just statements. Fix
579 misspelling of "Integer" as "integer".
580 (Loop statements): Do not use variable name "I", use "J".
581 (Subprogram Declarations): Document alignment.
582 (Subprogram Bodies, Block statements): Document empty line before
585 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
587 * make.adb (Add_Switch): Make Generic_Position a procedure. The
588 function approach did not work well because of a side effect (the
589 function call could reallocate the table which was being indexed
590 using its result). Fixes ada/4851.
592 2001-12-19 Robert Dewar <dewar@gnat.com>
594 * bindgen.adb: Minor reformatting
596 * cstand.adb: Minor reformatting
598 * fmap.adb: Minor reformatting
599 Change name from Add for Add_To_File_Map (Add is much too generic)
600 Change Path_Name_Of to Mapped_Path_Name
601 Change File_Name_Of to Mapped_File_Name
602 Fix copyright dates in header
605 Change name from Add for Add_To_File_Map (Add is much too generic)
606 Change Path_Name_Of to Mapped_Path_Name
607 Change File_Name_Of to Mapped_File_Name
608 Fix copyright dates in header
610 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
611 Add use clause for Fmap.
613 * make.adb: Minor reformatting
615 * osint.adb: Minor reformatting. Change of names in Fmap.
616 Add use clause for Fmap.
618 * prj-env.adb: Minor reformatting
620 * prj-env.ads: Minor reformatting
622 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
623 error found (there were odd exceptions to this general rule in
624 -gnatec/-gnatem processing)
626 2001-12-19 Olivier Hainque <hainque@gnat.com>
628 * raise.c (__gnat_eh_personality): Exception handling personality
629 routine for Ada. Still in rough state, inspired from the C++ version
630 and still containing a bunch of debugging artifacts.
631 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
632 inspired from the C++ library.
634 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
635 exception handling integration.
637 2001-12-19 Arnaud Charlet <charlet@gnat.com>
639 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
640 (HIE_SOURCES): Add s-secsta.ad{s,b}.
641 (HIE_OBJS): Add s-fat*.o
642 (RAVEN_SOURCES): Remove files that are no longer required. Add
643 interrupt handling files.
644 (RAVEN_MOD): Removed, no longer needed.
646 2001-12-19 Robert Dewar <dewar@gnat.com>
648 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
649 Add 2001 to copyright date
651 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
652 need to force universal inlining for these cases.
654 2001-12-19 Arnaud Charlet <charlet@gnat.com>
656 * s-taprob.adb: Minor clean ups so that this unit can be used in
659 * exp_ch7.adb: Allow use of secondary stack in HI mode.
660 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
662 2001-12-19 Vincent Celier <celier@gnat.com>
664 * prj-tree.ads (Project_Node_Record): Add comments for components
665 Pkg_Id and Case_Insensitive.
667 2001-12-19 Pascal Obry <obry@gnat.com>
669 * g-socket.adb: Minor reformatting. Found while reading code.
671 2001-12-19 Robert Dewar <dewar@gnat.com>
673 * prj-tree.ads: Minor reformatting
675 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
677 * config-lang.in (diff_excludes): Remove.
679 2001-12-17 Ed Schonberg <schonber@gnat.com>
681 * sem_res.adb (Resolve_Selected_Component): do not generate a
682 discriminant check if the selected component is a component of
683 the argument of an initialization procedure.
685 * trans.c (tree_transform, case of arithmetic operators): If result
686 type is private, the gnu_type is the base type of the full view,
687 given that the full view itself may be a subtype.
689 2001-12-17 Robert Dewar <dewar@gnat.com>
691 * sem_res.adb: Minor reformatting
693 * trans.c (tree_transform, case N_Real_Literal): Add missing third
694 parameter in call to Machine (unknown horrible effects from this
697 * urealp.h: Add definition of Round_Even for call to Machine
698 Add third parameter for Machine
700 2001-12-17 Ed Schonberg <schonber@gnat.com>
702 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
703 predefined units in No_Run_Time mode.
705 2001-12-17 Richard Kenner <kenner@gnat.com>
707 * misc.c (insn-codes.h): Now include.
709 2001-12-17 Olivier Hainque <hainque@gnat.com>
711 * a-except.adb: Preparation work for future integration of the GCC 3
712 exception handling mechanism
713 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
714 to factorize previous code sequences and make them externally callable,
715 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
716 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
717 Use the new notification routines.
719 2001-12-17 Emmanuel Briot <briot@gnat.com>
721 * prj-tree.ads (First_Choice_Of): Document the when others case
723 2001-12-17 Arnaud Charlet <charlet@gnat.com>
725 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
726 HI-E mode, in order to support Ravenscar profile properly.
728 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
729 mode on 32 bits targets.
731 2001-12-17 Vincent Celier <celier@gnat.com>
733 * fmap.adb: Initial version.
735 * fmap.ads: Initial version.
737 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
738 If search is successfully done, add to mapping.
740 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
743 (Gnatmake): Add new local variable Mapping_File_Name.
744 Create mapping file when using project file(s).
745 Delete mapping file before exiting.
747 * opt.ads (Mapping_File_Name): New variable
749 * osint.adb (Find_File): Use path name found in mapping, if any.
751 * prj-env.adb (Create_Mapping_File): New procedure
753 * prj-env.ads (Create_Mapping_File): New procedure.
755 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
758 * usage.adb: Add entry for new switch -gnatem.
760 * Makefile.in: Add dependencies for fmap.o.
762 2001-12-17 Ed Schonberg <schonber@gnat.com>
764 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
765 is a package instantiation rewritten as a package body.
766 (Install_Withed_Unit): Undo previous change, now redundant.
768 2001-12-17 Gary Dismukes <dismukes@gnat.com>
771 (Compute_Length): Move conversion to Unsigned to callers.
772 (Get_Max_Size): Convert Len expression to Unsigned after calls to
773 Compute_Length and Determine_Range.
774 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
775 Compute_Length and Determine_Range.
776 Above changes fix problem with length computation for supernull arrays
777 where Max (Len, 0) wasn't getting applied due to the Unsigned
778 conversion used by Compute_Length.
780 2001-12-17 Arnaud Charlet <charlet@gnat.com>
783 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
784 System.Secondary_Stack.
785 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
787 Remove unused entity RE_Exception_Data.
789 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
791 * rident.ads (No_Secondary_Stack): New restriction.
793 2001-12-17 Joel Brobecker <brobecke@gnat.com>
795 * gnat_rm.texi: Fix minor typos. Found while reading the section
796 regarding "Bit_Order Clauses" that was sent to a customer.
797 Very interesting documentation!
799 2001-12-17 Robert Dewar <dewar@gnat.com>
801 * sem_case.adb (Choice_Image): Avoid creating improper character
802 literal names by using the routine Set_Character_Literal_Name. This
803 fixes bombs in certain error message cases.
805 2001-12-17 Arnaud Charlet <charlet@gnat.com>
807 * a-reatim.adb: Minor reformatting.
809 2001-12-17 Ed Schonberg <schonber@gnat.com>
811 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
812 case where the formal is an extension of another formal in the current
813 unit or in a parent generic unit.
815 2001-12-17 Arnaud Charlet <charlet@gnat.com>
817 * s-tposen.adb: Update comments. Minor reformatting.
820 * s-tarest.adb: Update comments. Minor code reorganization.
822 2001-12-17 Gary Dismukes <dismukes@gnat.com>
824 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
827 2001-12-17 Robert Dewar <dewar@gnat.com>
829 * exp_attr.adb: Minor reformatting
831 2001-12-17 Ed Schonberg <schonber@gnat.com>
833 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
834 derivations nested within a child unit: verify that the parent
835 type is declared in an outer scope.
837 2001-12-17 Robert Dewar <dewar@gnat.com>
839 * sem_ch12.adb: Minor reformatting
841 2001-12-17 Ed Schonberg <schonber@gnat.com>
843 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
844 warning if current unit is a predefined one, from which bodies may
847 2001-12-17 Robert Dewar <dewar@gnat.com>
849 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
850 Fix header format. Add 2001 to copyright date.
852 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
853 which caused CE during compilation if checks were enabled.
855 2001-12-17 Vincent Celier <celier@gnat.com>
858 (Switches_Of): New function
859 (Test_If_Relative_Path): New procedure
860 (Add_Switches): Use new function Switches_Of
861 (Collect_Arguments_And_Compile): Use new function Switches_Of.
862 When using a project file, test if there are any relative
863 search path. Fail if there are any.
864 (Gnatmake): Only add switches for the primary directory when not using
865 a project file. When using a project file, change directory to the
866 object directory of the main project file. When using a project file,
867 test if there are any relative search path. Fail if there are any.
868 When using a project file, fail if specified executable is relative
869 path with directory information, and prepend executable, if not
870 specified as an absolute path, with the exec directory. Make sure
871 that only one -o switch is transmitted to the linker.
873 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
876 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
877 when using a non standard naming scheme.
878 (Check_Ada_Naming_Scheme): Make sure that error messages
879 do not raise exceptions.
880 (Is_Illegal_Append): Return True if there is no dot in the suffix.
881 (Language_Independent_Check): Check the exec directory.
883 * prj.adb (Project_Empty): Add new component Exec_Directory
886 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
887 (Project_Data): Add component Exec_Directory
889 * snames.adb: Updated to match snames.ads revision 1.215
891 * snames.ads: Added Exec_Dir
893 2001-12-17 Robert Dewar <dewar@gnat.com>
895 * make.adb: Minor reformatting
897 * prj-nmsc.adb: Minor reformatting
899 * snames.adb: Updated to match snames.ads
901 * snames.ads: Alphebetize entries for project file
903 2001-12-17 Ed Schonberg <schonber@gnat.com>
905 * trans.c (process_freeze_entity): Do nothing if the entity is a
906 subprogram that was already elaborated.
908 2001-12-17 Richard Kenner <kenner@gnat.com>
910 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
911 and Esize if object is referenced via pointer.
913 2001-12-17 Ed Schonberg <schonber@gnat.com>
915 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
916 is discrete before analyzing choices.
918 2001-12-17 Joel Brobecker <brobecke@gnat.com>
920 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
921 containing the name of the Ada Main Program. This string is mainly
922 intended for the debugger.
923 (Gen_Output_File_C): Do the equivalent change when generating a C file.
925 2001-12-17 Robert Dewar <dewar@gnat.com>
927 * ali.adb: Set new Dummy_Entry field in dependency entry
929 * ali.ads: Add Dummy_Entry field to source dependency table
931 * bcheck.adb (Check_Consistency): Ignore dummy D lines
933 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
935 * lib-writ.ads: Document dummy D lines for missing files.
937 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
939 2001-12-17 Robert Dewar <dewar@gnat.com>
941 * ali.adb: Type reference does not reset current file.
943 * ali.adb: Recognize and scan renaming reference
945 * ali.ads: Add spec for storing renaming references.
947 * lib-xref.ads: Add documentation for handling of renaming references
949 * lib-xref.adb: Implement output of renaming reference.
952 (Determine_Range): Document local variables
953 (Determine_Range): Make sure Hbound is initialized. It looks as though
954 there could be a real problem here with an uninitialized reference
955 to Hbound, but no actual example of failure has been found.
957 2001-12-17 Laurent Pautet <pautet@gnat.com>
960 Fix comment of Shutdown_Socket and Close_Socket. These functions
961 should not fail silently because if they are called twice, this
962 probably means that there is a race condition in the user program.
963 Anyway, this behaviour is consistent with the rest of this unit.
964 When an error occurs, an exception is raised with the error message
965 as exception message.
967 2001-12-17 Robert Dewar <dewar@gnat.com>
969 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
970 that it happens before modification of Sloc values for -gnatD.
972 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
973 so that it happens before modification of Sloc values for -gnatD.
975 * switch.adb: Minor reformatting
977 2001-12-15 Richard Henderson <rth@redhat.com>
979 * sem_ch7.adb: Wrap comment.
981 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
983 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
984 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
985 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
986 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
987 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
988 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
989 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
990 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
991 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
992 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
993 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
994 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
995 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
996 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
997 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
998 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
999 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
1000 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
1001 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
1002 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
1003 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
1004 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
1005 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
1006 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
1009 2001-12-14 Vincent Celier <celier@gnat.com>
1011 * osint.adb(Create_Debug_File): When an object file is specified,
1012 put the .dg file in the same directory as the object file.
1014 2001-12-14 Robert Dewar <dewar@gnat.com>
1016 * osint.adb: Minor reformatting
1018 * lib-xref.adb (Output_Instantiation): New procedure to generate
1019 instantiation references.
1021 * lib-xref.ads: Add documentation of handling of generic references.
1023 * ali.adb (Read_Instantiation_Ref): New procedure to read
1024 instantiation references
1026 * ali.ads: Add spec for storing instantiation references
1028 * bindusg.adb: Minor reformatting
1030 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
1032 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
1034 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
1036 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
1040 Add 2001 to copyright date
1041 Add entry for Latin-5 (Cyrillic ISO-8859-5)
1043 2001-12-14 Matt Gingell <gingell@gnat.com>
1045 * adaint.c: mktemp is a macro on Lynx and can not be used as an
1048 2001-12-14 Richard Kenner <kenner@gnat.com>
1050 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
1051 if operand is CONSTRUCTOR.
1053 2001-12-14 Ed Schonberg <schonber@gnat.com>
1055 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
1056 before emiting check on right-hand side, so that exception information
1059 2001-12-14 Richard Kenner <kenner@gnat.com>
1061 * utils.c (create_var_decl): Throw away initializing expression
1062 if just annotating types and non-constant.
1064 2001-12-14 Vincent Celier <celier@gnat.com>
1066 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
1069 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
1071 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
1073 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
1075 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
1077 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
1079 * ChangeLog: Remove piece of diff output.
1081 2001-12-14 Geert Bosch <bosch@gnat.com>
1083 * config-lang.in: Update copyright notice
1085 * layout.adb: Remove commented out code.
1087 * mdllfile.ads: Update copyright notice. Fix header format.
1089 * sem_case.ads: Likewise.
1091 * sem_ch3.adb: Minor reformatting.
1093 2001-12-12 Geert Bosch <bosch@gnat.com>
1095 * freeze.ads: Update copyright date.
1097 * g-comlin.ads: Minor reformatting.
1099 * gnat-style.texi: Fix typo.
1101 2001-12-12 Geert Bosch <bosch@gnat.com>
1103 * einfo.h: Regenerate.
1105 2001-12-12 Ed Schonberg <schonber@gnat.com>
1107 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
1108 on known node types, rather than untyped fields. Further cleanups.
1110 2001-12-12 Robert Dewar <dewar@gnat.com>
1113 (Save_Entity_Descendant): Minor comment update.
1114 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
1115 of an N_Attribute_Reference node. As per note below, this does not
1116 eliminate need for Associated_Node in attribute ref nodes.
1117 (Associated_Node): Documentation explicitly mentions attribute
1118 reference nodes, since this field is used in such nodes.
1120 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
1122 2001-12-12 Robert Dewar <dewar@gnat.com>
1124 * s-stalib.adb: Add more comments on with statements being needed
1126 * par-ch12.adb: Minor reformatting
1128 * prj-dect.ads: Fix copyright header
1130 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
1131 inputs fit in 32 bits, but the result still overflows.
1133 * s-fatgen.ads: Minor comment improvement
1135 2001-12-12 Ed Schonberg <schonber@gnat.com>
1137 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
1138 formal derived type, look for an inherited component from the full
1139 view of the parent, if any.
1141 2001-12-12 Robert Dewar <dewar@gnat.com>
1143 * checks.ads (Apply_Alignment_Check): New procedure.
1145 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
1146 ensure that the alignment of objects with address clauses is
1147 appropriate, and raise PE if not.
1149 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
1150 Exp_Pakd.Known_Aligned_Enough
1152 * mdllfile.ads: Minor reformatting
1154 * mlib-fil.ads: Minor reformatting
1156 2001-12-12 Ed Schonberg <schonber@gnat.com>
1158 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
1159 fix to any component reference if enclosing record has non-standard
1162 2001-12-12 Vincent Celier <celier@gnat.com>
1164 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
1167 2001-12-12 Ed Schonberg <schonber@gnat.com>
1169 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
1172 2001-12-12 Robert Dewar <dewar@gnat.com>
1174 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
1176 2001-12-12 Emmanuel Briot <briot@gnat.com>
1178 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
1179 and it adds dependencies to system.io.
1181 2001-12-12 Pascal Obry <obry@gnat.com>
1183 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
1186 2001-12-11 Ed Schonberg <schonber@gnat.com>
1188 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
1189 that is the parent of other generics, the instance body replaces the
1190 instance node. Retrieve the instance of the spec, which is the one
1191 that is visible in clients and within the body.
1193 2001-12-11 Vincent Celier <celier@gnat.com>
1195 * gnatmain.adb: Initial version.
1197 * gnatmain.ads: Initial version.
1199 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
1201 * snames.adb: Updated to match snames.ads.
1203 * snames.ads: Added Gnatstub.
1205 2001-12-11 Vincent Celier <celier@gnat.com>
1207 * prj-attr.adb (Initialization_Data): Change name from
1208 Initialisation_Data.
1210 2001-12-11 Emmanuel Briot <briot@gnat.com>
1212 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
1213 + and * applied to backslashed expressions like \r.
1215 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
1217 * g-os_lib.ads: String_List type added, Argument_List type is now
1218 subtype of String_List.
1220 2001-12-11 Robert Dewar <dewar@gnat.com>
1222 * g-os_lib.ads: Change copyright to FSF
1223 Add comments for String_List type
1225 2001-12-11 Vincent Celier <celier@gnat.com>
1227 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
1228 string to the buffer).
1230 2001-12-11 Ed Schonberg <schonber@gnat.com>
1232 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
1235 * sem_attr.adb: Simplify previous fix for Address.
1236 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
1237 to avoid anomalies where the bound of the type appears to raise
1240 2001-12-11 Robert Dewar <dewar@gnat.com>
1242 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
1245 2001-12-11 Ed Schonberg <schonber@gnat.com>
1247 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
1248 renamed unit before checking for recursive instantiations.
1250 2001-12-11 Emmanuel Briot <briot@gnat.com>
1252 * prj.ads: Add comments for some of the fields.
1254 2001-12-11 Robert Dewar <dewar@gnat.com>
1256 * lib-xref.adb (Output_Refs): Don't output type references outside
1257 the main unit if they are not otherwise referenced.
1259 2001-12-11 Ed Schonberg <schonber@gnat.com>
1261 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
1262 code and diagnose additional illegal uses
1264 * sem_util.adb (Is_Object_Reference): An indexed component is an
1265 object only if the prefix is.
1267 2001-12-11 Vincent Celier <celier@gnat.com>
1269 * g-diopit.adb: Initial version.
1271 * g-diopit.ads: Initial version.
1274 (Expand_Path): Avoid use of Unbounded_String
1275 (Find, Wildcard_Iterator): Moved to child package Iteration
1277 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
1279 2001-12-11 Robert Dewar <dewar@gnat.com>
1281 * sem_attr.adb: Minor reformatting
1283 2001-12-11 Ed Schonberg <schonber@gnat.com>
1285 * sem_ch3.adb: Clarify some ???.
1287 2001-12-11 Robert Dewar <dewar@gnat.com>
1289 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
1290 Exp_Pakd.Known_Aligned_Enough
1292 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
1293 version is moved to Exp_Ch13.
1295 2001-12-11 Robert Dewar <dewar@gnat.com>
1297 * einfo.ads: Minor reformatting
1299 * exp_ch5.adb: Add comment for previous.change
1301 * ali.adb: New interface for extended typeref stuff.
1303 * ali.ads: New interface for typeref stuff.
1305 * checks.adb (Apply_Alignment_Check): New procedure.
1307 * debug.adb: Add -gnatdM for modified ALI output
1309 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
1311 * lib-xref.adb: Extend generation of <..> notation to cover
1312 subtype/object types. Note that this is a complete rewrite,
1313 getting rid of the very nasty quadratic algorithm previously
1314 used for derived type output.
1316 * lib-xref.ads: Extend description of <..> notation to cover
1317 subtype/object types. Uses {..} for these other cases.
1318 Also use (..) for pointer types.
1320 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
1322 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
1323 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
1325 2001-12-11 Vincent Celier <celier@gnat.com>
1328 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
1329 Changed /BIND_ONLY to /ACTIONS=BIND
1330 Changed /LINK_ONLY to /ACTIONS=LINK
1332 2001-12-11 Ed Schonberg <schonber@gnat.com>
1334 * sem_ch8.adb (Find_Selected_Component): improved search for a
1335 candidate package in case of error.
1337 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
1338 chain back on scope stack before reinstalling use clauses.
1340 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
1341 is enabled, do not kill the code for the condition, to preserve
1344 2001-12-11 Robert Dewar <dewar@gnat.com>
1346 * checks.adb (Insert_Valid_Check): Apply validity check to expression
1347 of conversion, not to result of conversion.
1349 2001-12-11 Ed Schonberg <schonber@gnat.com>
1351 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
1352 before freezing parent. If the declarations are mutually recursive,
1353 an access to the current record type may be frozen before the
1354 derivation is complete.
1356 2001-12-05 Vincent Celier <celier@gnat.com>
1358 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
1359 -c /COMPILE_ONLY, -l /LINK_ONLY
1362 (Bind_Only): New Flag
1363 (Link_Only): New flag
1365 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
1368 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
1371 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
1372 (Gnatmake): Set the step flags. Only perform a step if the
1373 corresponding step flag is True.
1374 (Scan_Make_Arg): Reset the bind and link step flags when -u
1375 or -gnatc has been specified.
1377 2001-12-05 Ed Schonberg <schonber@gnat.com>
1379 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
1380 get bounds from right operand.
1382 * sem_eval.adb: Minor reformatting
1384 * exp_util.adb (Make_Literal_Range): use bound of literal rather
1385 than Index'First, its lower bound may be different from 1.
1387 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
1390 2001-12-05 Vincent Celier <celier@gnat.com>
1392 * prj-nmsc.adb Minor reformatting
1394 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
1395 set and libraries are not supported.
1397 2001-12-05 Ed Schonberg <schonber@gnat.com>
1399 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
1400 private view explicitly, so the back-end can treat as a global
1403 2001-12-05 Ed Schonberg <schonber@gnat.com>
1405 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
1406 unit, always replace instance node with new body, for ASIS use.
1408 2001-12-05 Vincent Celier <celier@gnat.com>
1410 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
1411 libraries are not supported and both attributes Library_Name and
1412 Library_Dir are specified.
1414 * prj-proc.adb (Expression): Set location of Result to location of
1417 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
1418 (prj-nmsc is now importing MLib.Tgt)
1420 * prj-proc.adb: Put the change indicated above that was forgotten.
1422 2001-12-05 Robert Dewar <dewar@gnat.com>
1424 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
1426 2001-12-05 Ed Schonberg <schonber@gnat.com>
1428 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
1429 constraint, introduce explicit subtype declaration and derive from it.
1431 * sem_ch3.adb: Minor reformatting
1433 2001-12-05 Robert Dewar <dewar@gnat.com>
1435 * checks.adb (Determine_Range): Increase cache size for checks.
1438 * exp_ch6.adb: Minor reformatting
1439 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
1440 a parameter whose root type is System.Address, since treating such
1441 subprograms as pure in the code generator is almost surely a mistake
1442 that will lead to unexpected results.
1444 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
1445 change handling of conversions.
1447 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
1449 2001-12-05 Ed Schonberg <schonber@gnat.com>
1451 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
1452 aggregate with static wrong size, attach generated Raise node to
1455 2001-12-05 Robert Dewar <dewar@gnat.com>
1457 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
1458 Fixes compilation abandoned bomb in B24009B.
1460 2001-12-05 Ed Schonberg <schonber@gnat.com>
1463 Document use of Associated_Node on Selected_Components.
1464 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
1465 to clarify use of untyped descendant fields.
1467 2001-12-05 Robert Dewar <dewar@gnat.com>
1469 * prj-dect.ads: Add ??? comment
1470 Add 2001 to copyright notice (was not done in after all)
1472 * prj-part.adb: Minor reformatting. Reword one awkward error message.
1474 * prj.ads: Minor reformatting throughout, and add some ??? comments
1476 * snames.ads: Minor reformatting
1478 2001-12-05 Geert Bosch <bosch@gnat.com>
1480 * snames.adb: Autoupdate
1482 2001-12-05 Vincent Celier <celier@gnat.com>
1484 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
1486 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
1488 * prj-env.adb: Minor comment changes (modifying -> extends).
1490 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
1492 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
1495 * prj.adb (Initialize): Change Modifying to Extends.
1497 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
1499 * prj.ads: Minor comment change (Modifying -> extending).
1501 * snames.ads: Change modifying to extends.
1503 2001-12-05 Robert Dewar <dewar@gnat.com>
1505 * sem_warn.adb: Remove stuff for conditionals, we are not going to
1508 * sem_warn.ads: Remove stuff for conditionals, we are not going to
1509 do this after all. Add 2001 to copyright notice
1511 2001-12-04 Geert Bosch <bosch@gnat.com>
1513 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
1515 2001-12-04 Robert Dewar <dewar@gnat.com>
1517 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
1518 location if we already have errors. Stops some cases of cascaded
1521 * errout.adb: Improve comment.
1523 2001-12-04 Robert Dewar <dewar@gnat.com>
1526 (Analyze_Formal_Type_Definition): Defend against Error.
1527 (Analyze_Formal_Subprogram): Defend against Error.
1529 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
1530 remove following semicolon if present. Removes cascaded error.
1532 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
1535 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
1536 exceptions equals 0.
1537 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
1538 Fixes PIWG E tests (which have to be run with -gnatL).
1540 2001-12-04 Robert Dewar <dewar@gnat.com>
1542 * einfo.ads: Minor reformatting
1544 2001-12-04 Ed Schonberg <schonber@gnat.com>
1546 * einfo.ads: Block_Node points to the identifier of the block, not to
1547 the block node itself, to preserve the link when the block is
1548 rewritten, e.g. within an if-statement with a static condition.
1550 * inline.adb (Cleanup_Scopes): recover block statement from block
1551 entity using new meaning of Block_Node.
1553 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
1554 identifier of block node, rather than to node itself.
1556 2001-12-04 Gary Dismukes <dismukes@gnat.com>
1559 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
1560 (Discrimify): Go back to setting the Etypes of the selected component
1561 because the Vname component does not exist at this point and will
1562 fail name resolution. Also set Analyzed.
1563 Remove with and use of Sem_Res.
1565 2001-12-04 Arnaud Charlet <charlet@gnat.com>
1567 * Makefile.in: (HIE_SOURCES): add s-fat*.
1569 2001-12-04 Robert Dewar <dewar@gnat.com>
1572 (Compile_Time_Known_Attribute): New procedure.
1573 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
1576 2001-12-04 Ed Schonberg <schonber@gnat.com>
1578 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
1579 processing discriminants to diagnose illegal default values.
1581 2001-12-04 Ed Schonberg <schonber@gnat.com>
1583 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
1584 access discriminant within a type extension that constrains its
1585 parent discriminants.
1587 2001-12-04 Ed Schonberg <schonber@gnat.com>
1589 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
1590 is malformed, use instance of Any_Id to allow analysis to proceed.
1592 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
1593 type definition is illegal.
1594 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
1597 2001-12-04 Ed Schonberg <schonber@gnat.com>
1599 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
1602 2001-12-04 Robert Dewar <dewar@gnat.com>
1604 * errout.adb: Minor reformatting
1606 2001-12-04 Robert Dewar <dewar@gnat.com>
1608 * exp_util.adb: Minor reformatting from last change
1610 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
1611 which is a rewriting of an expression, traverse the original
1612 expression to remove warnings that may have been posted on it.
1614 2001-12-04 Ed Schonberg <schonber@gnat.com>
1616 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
1617 record that has other packed components.
1619 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
1621 * adaint.c: Minor cleanups.
1623 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
1625 * adaint.c: Do not use utime.h on vxworks.
1627 2001-12-04 Arnaud Charlet <charlet@gnat.com>
1629 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
1630 more confusion than it solves.
1632 2001-12-04 Geert bosch <bosch@gnat.com>
1634 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
1636 2001-12-04 Geert Bosch <bosch@gnat.com>
1638 * Makefile.in (update-sources): New target.
1639 For use by gcc_release script.
1641 2001-12-04 Ed Schonberg <schonber@gnat.com>
1643 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
1644 a configuration pragma, it is now legal wherever a pragma can appear.
1646 2001-12-04 Zack Weinberg <zack@codesourcery.com>
1648 * Makefile.in: Don't set ALL. Delete @cross_defines@,
1649 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
1650 is now @CROSS@ -DIN_GCC; update comment.
1652 2001-12-04 Robert Dewar <dewar@gnat.com>
1654 * einfo.adb (Has_Pragma_Pure_Function): New flag.
1655 Fix problem that stopped ceinfo from working
1657 * einfo.ads (Has_Pragma_Pure_Function): New flag.
1659 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
1661 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
1664 (File_Time_Stamp): New procedure.
1665 (Preserve_Mode): New boolean.
1666 (Write_Unit): Pass time stamp.
1667 Implement -p switch (preserve time stamps).
1669 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
1671 * gnatchop.adb: Do usage info for -p switch
1673 * adaint.h (__gnat_set_file_time_name): New function
1675 * adaint.c (__gnat_set_file_time_name): Implement
1677 * adaint.h: Fix typo
1679 2001-12-03 Robert Dewar <dewar@gnat.com>
1681 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
1682 have Associated_Node.
1684 2001-12-03 Robert Dewar <dewar@gnat.com>
1686 * prj-proc.adb: Minor reformatting
1688 * make.adb: Minor reformatting
1690 2001-12-03 Geert Bosch <bosch@gnat.com>
1692 * make.adb: Minor reformatting.
1694 2001-12-03 Robert Dewar <dewar@gnat.com>
1696 * sem_ch12.adb: Minor reformatting
1698 2001-12-03 Ed Schonberg <schonber@gnat.com>
1700 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
1701 push Standard on the stack before analyzing the instance body,
1702 in order to have a clean visibility environment.
1704 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
1706 2001-12-03 Ed Schonberg <schonber@gnat.com>
1708 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
1709 instantiation of a body that contains an inlined body.
1711 2001-12-03 Ed Schonberg <schonber@gnat.com>
1714 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
1715 to prevent freezing within formal packages.
1716 (Freeze_Subprogram_Body): If body comes from another instance that
1717 appeared before its own body, place freeze node at end of current
1718 declarative part, to prevent a back-end crash.
1719 (Inline_Instance_Body): Handle properly a package instance within
1720 a subprogram instance that is a child unit.
1722 2001-12-01 Graham Stott <grahams@redhat.com>
1724 * Makefile.in (misc.o): Add missing $(srcdir) prefix
1725 and add optabs.h dependency.
1727 * misc.c: Include optabs.h
1728 (gnat_tree_code_type): Make static and const.
1729 (gnat_tree_code_length): Likewise.
1730 (gnat_tree_code_name): Likewise.
1731 (update_setjmp_buf): Obtain operands mode from insn_data.
1733 2001-11-29 Richard Henderson <rth@redhat.com>
1735 * init.c: Remove obsolete dwarf2 frame.h section.
1737 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
1739 * Make-lang.in (ada.generated-manpages): New dummy target.
1741 2001-11-29 Ed Schonberg <schonber@gnat.com>
1743 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
1744 into Command, an array conversion is illegal here. Uncovered by
1747 2001/11/28 Geert Bosch <bosch@gnat.com>
1749 * init.c: Minor whitespace changes.
1751 2001-11-28 Doug Rupp <rupp@gnat.com>
1753 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
1756 2001-11-28 Zack Weinberg <zack@codesourcery.com>
1758 * misc.c (gnat_expand_constant): Move declaration above
1759 definition of lang_hooks.
1760 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
1761 (gnat_init): lang_expand_constant no longer exists.
1763 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
1764 always have vprintf.
1765 (gnat_init): Always call set_internal_error_function.
1767 2001-11-27 Andreas Jaeger <aj@suse.de>
1769 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
1771 2001-11-27 Laurent Guerby <guerby@acm.org>
1773 * Makefile.in: Regenerate Ada dependencies.
1775 2001-11-26 Richard Henderson <rth@redhat.com>
1777 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
1778 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
1779 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
1781 2001-11-25 Laurent Guerby <guerby@acm.org>
1783 * sysdep.c (rts_get_*): Fix style.
1785 2001-11-19 Laurent Guerby <guerby@acm.org>
1787 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
1788 since it is of no apparent use and cause warnings.
1790 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
1792 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
1794 (gnat_init): Don't return NULL.
1795 (finish_parse): Remove.
1797 2001-11-17 Laurent Guerby <guerby@acm.org>
1799 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
1800 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
1801 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
1802 * lang-spec.h: Add missing struct field to silence warnings.
1803 * sysdep.c (rts_get_*): Provide K&R prototype.
1804 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
1805 * traceback.c (Unlock_Task, Lock_Task): Likewise.
1806 * tracebak.c (__gnat_backtrace): Remove unused variable.
1807 * utils.c (end_subprog_body): Move to K&R style.
1809 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1811 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
1813 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
1815 * misc.c (gnat_init): Change prototype. Include the
1816 functionality of the old init_parse and init_decl_processing.
1817 (gnat_init_decl_processing): New prototype.
1818 (init_parse): Remove.
1819 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
1821 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
1823 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
1824 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
1825 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
1826 set_yydebug): Remove.
1828 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
1830 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
1831 (struct lang_hooks): Constify.
1832 (language_string, lang_identify): Remove.
1833 * utils.c (init_decl_processing): Update.
1835 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
1837 * misc.c: Include langhooks-def.h.
1838 * Makefile.in: Update.
1840 2001-10-30 Robert Dewar <dewar@gnat.com>
1843 (Check_Identifier): Rewrite circuit to be compatible with use of letters
1844 in the upper half of ASCII.
1845 (Check_Identifier): Minor reformatting
1847 2001-10-30 Geert Bosch <bosch@gnat.com>
1849 * (Associated_Node, Set_Associated_Node): Do not check for
1852 2001-10-30 Robert Dewar <dewar@gnat.com>
1854 * a-reatim.ads: Minor reformatting
1856 2001-10-30 Robert Dewar <dewar@gnat.com>
1858 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
1859 undocumented declarations.
1861 2001-10-30 Pascal Obry <obry@gnat.com>
1863 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
1864 to the binder and linker.
1867 * mdll.ads: Fix layout. Update copyright notice.
1869 * mdll.adb: Fix layout. Update copyright notice.
1871 2001-10-30 Robert Dewar <dewar@gnat.com>
1873 * usage.adb: Minor fix to output for -gnaty.
1875 2001-10-30 Ed Schonberg <schonber@gnat.com>
1877 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
1878 to accommodate all its possible values.
1880 * a-reatim.adb (Split): Special-case handling of Time_Span_First
1881 and of small absolute values of T.
1883 2001-10-30 Richard Kenner <kenner@gnat.com>
1885 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
1886 set_mem_attributes since not needed and wrong if RESULT if a REG;
1887 fixes ACATS failures.
1889 2001-10-30 Geert Bosch <bosch@gnat.com>
1891 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
1892 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
1894 2001-10-30 Robert Dewar <dewar@gnat.com>
1896 * bindusg.adb: Undocument -f switch.
1898 * gnatcmd.adb: Remove /FULL_ELABORATION.
1900 * opt.ads (Force_RM_Elaboration_Order): Document that this is
1903 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
1905 * gnatbind.adb: Minor update of warning msg.
1907 2001-10-30 Vincent Celier <celier@gnat.com>
1909 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
1910 for project file switches (-P (/PROJECT_FILE=),
1911 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
1914 2001-10-30 Geert Bosch <bosch@gnat.com>
1916 * decl.c: Minor whitespace fixes.
1918 2001-10-30 Richard Kenner <kenner@gnat.com>
1920 * utils2.c (build_allocator): Test for SIZE overflow in array case too
1922 2001-10-30 Geert Bosch <bosch@gnat.com>
1924 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
1925 Found due to GCC 3.0 warning of using uninitialized value.
1928 (Get_Max_Size): Use variant record for tracking value/expression.
1929 Makes logic clearer and prevents warnings for uninitialized variables.
1930 (Layout_Array_Type): Use variant record for tracking value/expression.
1931 Makes logic clearer and prevents warnings for uninitialized variables.
1933 2001-10-30 Robert Dewar <dewar@gnat.com>
1935 * lib.adb: Minor reformatting
1937 * s-taprop.ads: Minor reformatting
1939 2001-10-29 Laurent Guerby <guerby@acm.org>
1942 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
1944 (_gnat_error_handler): Make MSG const.
1946 2001-10-29 Richard Kenner <kenner@gnat.com>
1948 * sysdep.c: Fix localtime_r problem on LynxOS.
1949 Also remove #elif to avoid warnings.
1951 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
1954 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
1956 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
1958 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
1959 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
1960 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
1961 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
1962 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
1963 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
1964 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
1965 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
1966 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
1967 types.ads, urealp.adb: Fix spelling errors.
1969 2001-10-27 Laurent Guerby <guerby@acm.org>
1971 * trans.c (gigi): Fix non determinism leading to bootstrap
1972 comparison failures for debugging information.
1974 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
1976 * gnat_rm.texi: Use @./@: where appropriate.
1978 2001-10-26 Robert Dewar <dewar@gnat.com>
1980 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
1982 2001-10-26 Richard Kenner <kenner@gnat.com>
1984 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
1986 2001-10-26 Richard Kenner <kenner@gnat.com>
1988 * decl.c (validate_size): Modify message for bad size to avoid
1989 implication that compiler is modifying the size.
1991 2001-10-26 Robert Dewar <dewar@gnat.com>
1993 * prj-util.adb: Minor reformatting. Fix bad header format.
1995 2001-10-26 Robert Dewar <dewar@gnat.com>
1997 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
1999 * sinfo.ads: Clarify use of Associated_Node (documentation only).
2001 * sem_ch12.adb: Change Node4 to Associated_Node. Change
2002 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
2003 much more narrowly in places where needed. These are cleanups.
2005 2001-10-26 Joel Brobecker <brobecke@gnat.com>
2007 * 5zosinte.ads (null_pthread): new constant.
2010 (Initialize_TCB): Initialize thread ID to null, to be able to verify
2011 later that this field has been set.
2012 (Finalize_TCB): ditto.
2013 (Suspend_Task): Verify that the thread ID is not null before using it.
2014 (Resume_Task): ditto.
2017 (Resume_All_Tasks): Lock the tasks list before using it.
2018 (Suspend_All_Tasks): ditto.
2020 2001-10-26 Richard Kenner <kenner@gnat.com>
2022 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
2023 Make constant variant of designated type for Is_Access_Constant.
2024 Call update_pointer_to with main variant.
2026 * trans.c (process_freeze_entity, process_type):
2027 Call update_pointer_to on main variant.
2029 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
2030 If main variant, update all other variants.
2032 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
2035 2001-10-26 Robert Dewar <dewar@gnat.com>
2037 * prj-util.adb: Minor reformatting
2039 2001-10-26 Robert Dewar <dewar@gnat.com>
2041 * prj-util.adb: Minor reformatting
2043 2001-10-26 Robert Dewar <dewar@gnat.com>
2045 * prj-attr.adb: Minor reformatting throughout
2047 2001-10-26 Robert Dewar <dewar@gnat.com>
2049 * prj-attr.ads: Minor reformatting
2050 Add ??? comment (this whole spec has almost no comments)
2052 2001-10-26 Vincent Celier <celier@gnat.com>
2054 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
2055 ("//") that precede the drive letter on Interix.
2057 2001-10-26 Geert Bosch <bosch@gnat.com>
2059 * gnat_rm.texi: Add GNAT Reference Manual.
2061 2001-10-25 Robert Dewar <dewar@gnat.com>
2063 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
2064 is Error. Similar change for other renaming cases.
2066 2001-10-25 Robert Dewar <dewar@gnat.com>
2068 * s-atacco.ads: Add pragma Inline_Always for functions.
2069 Fix header format. Add copyright 2001
2071 2001-10-25 Ed Schonberg <schonber@gnat.com>
2073 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
2074 return Error rather than Empty so that analysis can proceed.
2076 2001-10-25 Ed Schonberg <schonber@gnat.com>
2078 * sem_util.adb (Enter_Name): better handling of cascaded error
2079 messages when a unit appears in its own context.
2081 2001-10-25 Ed Schonberg <schonber@gnat.com>
2083 * sem_util.adb (Defining_Entity): in case of error, attach created
2084 entity to specification, so that semantic analysis can proceed.
2086 2001-10-25 Robert Dewar <dewar@gnat.com>
2089 (Defining_Entity): Deal with Error.
2090 (Process_End_Label): Deal with bad end label for.
2092 2001-10-25 Ed Schonberg <schonber@gnat.com>
2094 * sem_elab.adb (Check_A_Call): refine message when call is in an
2095 instance but callee is not declared in the generic unit.
2097 2001-10-25 Ed Schonberg <schonber@gnat.com>
2099 * sem_elab.adb (Check_A_Call): check for renaming before finding the
2100 enclosing unit, which may already be different from the calling unit.
2102 2001-10-25 Geert Bosch <bosch@gnat.com>
2104 * 4gintnam.ads: fix header format.
2106 2001-10-25 Ed Schonberg <schonber@gnat.com>
2108 * sem_res.adb (Resolve_Call): if the call is actually an indexing
2109 operation on the result of a parameterless call, perform elaboration
2110 check after the node has been properly rewritten.
2112 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
2113 inlined within the generic tree, the defining identifier is not a
2116 2001-10-25 Ed Schonberg <schonber@gnat.com>
2118 * sem_res.adb (Resolve): special-case resolution of Null in an
2119 instance or an inlined body to avoid view conflicts.
2121 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
2122 compatibility by retrieving the access type of the generic copy.
2124 2001-10-25 Robert Dewar <dewar@gnat.com>
2127 (Analyze_Number_Declaration): Handle error expression.
2128 (Signed_Integer_Type_Declaration): Handle error bound.
2129 (Analyze_Subtype_Indication): Handle error range.
2131 * sem_util.adb (Get_Index_Bounds): Check for Error.
2133 2001-10-25 Robert Dewar <dewar@gnat.com>
2135 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
2136 in no run time mode.
2138 2001-10-25 Pascal Obry <obry@gnat.com>
2140 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
2141 mode case for ALLOC case.
2143 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
2144 all platforms. Improvement of last change.
2146 2001-10-25 Robert Dewar <dewar@gnat.com>
2148 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
2150 2001-10-25 Geert Bosch <bosch@gnat.com>
2152 * osint.adb (Is_Relative): Remove duplicate.
2154 2001-10-25 Pascal Obry <obry@gnat.com>
2156 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
2157 pathnames in UNIX and DOS style with drive letter.
2158 (Is_Relative): new routine.
2160 * osint.adb: Minor reformatting
2162 * osint.adb (Is_Relative): implementation using
2163 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
2165 2001-10-25 Pascal Obry <obry@gnat.com>
2167 * g-dirope.adb (Basename): correctly compute offset between the
2168 original Path and the translated one.
2170 * g-dirope.adb: (Base_Name): add some comments.
2172 2001-10-25 Robert Dewar <dewar@gnat.com>
2174 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
2175 in HIE mode, avoids compilation abandoned message
2177 * exp_imgv.adb: Correct typo in previous change
2179 * exp_imgv.adb: Correct typo in previous change (not my day!)
2181 2001-10-25 Robert Dewar <dewar@gnat.com>
2183 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
2185 2001-10-25 Pascal Obry <obry@gnat.com>
2187 * g-awk.ads: Move all pragma inlines next to the routine
2188 declarations. This is more uniform with other GNAT spec.
2190 2001-10-22 Geert Bosch <bosch@gnat.com>
2192 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
2194 2001-10-19 Geert Bosch <bosch@gnat.com>
2196 * Makefile.in (tools, gnattools): Remove gnatmem.
2198 2001-10-17 Richard Henderson <rth@redhat.com>
2200 * Makefile.in (misc.o): Depend on langhooks.h.
2201 * misc.c: Include it.
2202 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
2203 (LANG_HOOKS_DECODE_OPTION): New.
2204 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
2206 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
2208 * trans.c (tree_transform): Adjust to recent change in
2209 expand_asm_operands to implement named asm operands.
2211 2001-10-11 Ed Schonberg <schonber@gnat.com>
2213 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
2214 renaming of discriminant for mutable record type.
2216 2001-10-11 Robert Dewar <dewar@gnat.com>
2218 * validsw.adb: Properly save -gnatVn status.
2220 2001-10-11 Robert Dewar <dewar@gnat.com>
2222 * usage.adb: Add lines for V switch.
2224 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
2225 (/VALIDITY_CHECKING).
2227 2001-10-11 Ed Schonberg <schonber@gnat.com>
2229 * sem_type.adb (Add_One_Interp): an operator for a type declared in
2230 an extension of System is known to be visible.
2232 2001-10-11 Ed Schonberg <schonber@gnat.com>
2234 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
2235 properly. Fixes regression on ACATS C34005G.
2237 2001-10-11 Robert Dewar <dewar@gnat.com>
2239 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
2240 loop in generic instance, since this is likely not very useful.
2242 2001-10-11 Robert Dewar <dewar@gnat.com>
2244 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
2245 the error message for high integrity mode.
2247 * rtsfind.adb (RTE): Give message if we try to find an entity that
2248 is not available in high integrity mode.
2251 (OK_To_Use_In_HIE_Mode): New array.
2252 (RTE): May return Empty in high integrity mode.
2254 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
2255 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
2257 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
2258 unit if not inlined always and in no runtime mode. Fixes problem
2259 caused by new Rtsfind changes.
2261 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
2264 * rtsfind.adb (RTE): Make sure we do not try to load unit after
2265 giving message for entity not available in high integrity mode.
2267 2001-10-11 Pascal Obry <obry@gnat.com>
2269 * impunit.adb: Add GNAT.CRC32.
2271 2001-10-11 Ed Schonberg <schonber@gnat.com>
2273 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
2274 properly the case where one universal operand in a non-static
2275 exponentiation of a real literal.
2277 2001-10-11 Ed Schonberg <schonber@gnat.com>
2279 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
2280 clause, return the gobal finalization list, for lack of anthing else.
2282 2001-10-11 Ed Schonberg <schonber@gnat.com>
2284 * exp_ch7.adb (Make_Transient_Block): if statement is within
2285 exception handler, always use new transient scope to place Clean
2288 2001-10-11 Pascal Obry <obry@gnat.com>
2291 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
2292 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
2293 (GNATLS_RTL_OBJS): add g-crc32.o
2294 (GNATMAKE_RTL_OBJS): add g-crc32.o
2297 (CRC_Match): new function.
2298 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
2299 instead of the previous simple checksum algorithm.
2300 (Time_Stamp_Mismatch): use CRC_Match for comparison.
2301 (Set_Source_Table): idem.
2304 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
2305 instead of simple checksum.
2306 (CRC_Match): new function.
2307 (CRC_Error): new constant.
2309 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
2310 a CRC now and not a simple checksum. A CRC uses lower-case hex
2311 letters, fixes ambiguity in parsing.
2313 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
2314 is what this variable will store.
2316 * bcheck.adb: Change reference to chechsum in comments by CRC.
2317 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
2318 rename All_Checksum_Match to All_CRC_Match. Change due to API
2319 renaming since now GNAT does not use a simple checksum but a
2320 CRC using GNAT.CRC32.
2322 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
2323 now and not anymore a simple checksum.
2325 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
2328 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
2331 (Restore_Scan_State): rename Checksum to CRC.
2332 (Save_Scan_State): idem.
2336 (Checksum): rename to CRC.
2337 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
2339 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
2340 GNAT.CRC32). Update copyright notice.
2342 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
2343 GNAT.CRC32). Update copyright notice.
2346 (Accumulate_Checksum): removed.
2347 (Update): new procedure. Add a wide-character into the CRC.
2350 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
2351 (Load_File): fix initialization of S (change Source_Checksum to
2354 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
2355 Source_CRC in S initialization.
2357 * sinput.adb (Source_Checksum): renamed to Source_CRC.
2359 * sinput.ads (Source_Checksum): renamed to Source_CRC.
2360 Update comments for the CRC.
2362 * types.adb (Hex): Use lowercase for the letter part.
2364 * types.ads (Get_Hex_String): Returns the hexadecimal representation
2365 for a word. This is currently used only for CRC. In previous version,
2366 the checksum was using a representation with all letter being
2367 upper-case. With the new implementation (using CRC) we do not remove
2368 the 32th bit of the CRC, so we can have an upper-case starting letter
2369 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
2370 It is ambigous since the CRC was optional and could be followed by
2371 options like EB, EE. So now this routines uses lower-case letter for
2372 the hexadecimal representation. Strange enough only lower case letters
2373 where checked in Scan_ALI (even if this was not a possible case).
2375 * gnatvsn.ads (Library_Version): changed to 3.15a.
2377 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
2380 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
2383 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
2384 Add 2001 to copyright notice
2385 (Accumulate_Checksum): Modify to use System.CRC32.
2387 * ali-util.ads: Redo changes of previous revision to continue to use
2388 the word Checksum. Add 2001 to copyright notice.
2390 * ali.adb: Undo some of previous changes, not needed.
2391 Keep the change for lower case letters in the checksum.
2393 * ali.ads: Undo previous change not needed.
2395 * bcheck.adb: Undo most of previous change, not needed.
2396 But do use Checksums_Match for checksum comparison.
2398 * gnatls.adb: Undo most of previous change, not needed.
2399 But do use Checksums_Match for comparing checksums.
2401 * lib-load.adb: Undo previous change, not needed.
2403 * lib-writ.adb: Undo previous change, not needed.
2405 * lib-writ.ads: Document that checksums use lower case,
2406 not upper case letters.
2408 * scans.adb: Undo previous change, not needed
2410 * scans.ads: Undo previous change, not needed.
2412 * scn-nlit.adb: Undo previous changes, not needed.
2414 * scn-slit.adb: Undo previous change, not needed. Fix header format.
2417 (Accumulate_Checksum): Use System.CRC32.
2418 (Initialize_Checksum): New procedure.
2419 Remove other changes of previous revision.
2421 * sinput-p.adb: Undo previous change, not needed.
2423 * sinput.adb: Undo previous change, not needed.
2425 * sinput-l.adb: Undo previous change, not needed.
2427 * sinput.ads: Undo previous change, not needed. Keep only comment
2428 on new checksum algorithm
2430 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
2431 Also remove a-tags and a-stream from GNAT sources.
2433 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
2435 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
2437 2001-10-11 Geert Bosch <bosch@gnat.com>
2439 * einfo.h: Regenerate.
2441 * nmake.ads: Regenerate.
2443 * nmake.adb: Regenerate.
2445 * sinfo.h: Regenerate.
2447 * treeprs.adb: Regenerate.
2449 2001-10-10 Geert Bosch <bosch@gnat.com>
2451 * gnat-style.texi: New file describing coding guidelines for Ada.
2453 2001-10-10 Ed Schonberg <schonber@gnat.com>
2455 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
2458 2001-10-10 Geert Bosch <bosch@gnat.com>
2460 * snames.ads: Add new names for project facility.
2462 * snames.adb: Update to reflect snames.ads changes.
2464 * snames.h: Update to reflect snames.ads changes.
2466 2001-10-10 Vincent Celier <celier@gnat.com>
2469 (Add_Switches): reflect the changes for the switches attributes
2470 Default_Switches indexed by the programming language,
2471 Switches indexed by the file name.
2472 (Collect_Arguments_And_Compile): Idem.
2473 Reflect the attribute name changes.
2476 (Initialisation_Data): Change the names of some packages and
2478 (Initialize): process case insensitive associative arrays.
2481 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
2484 (Parse_Attribute_Declaration): For case insensitive associative
2485 arrays, set the index string to lower case.
2488 Reflect the changes of the project attributes.
2491 Replace Check_Naming_Scheme by Ada_Check and
2492 Language_Independent_Check.
2495 Replaced Check_Naming_Scheme by 2 procedures:
2496 Ada_Check and Language_Independent_Check.
2499 (Process_Declarative_Items): For case-insensitive associative
2500 arrays, set the index string to lower case.
2501 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
2502 Prj.Nmsc.Check_Naming_Scheme.
2505 (Case_Insensitive): New function
2506 (Set_Case_Insensitive): New procedure
2509 (Case_Insensitive): New function
2510 (Set_Case_Insensitive): New procedure
2511 (Project_Node_Record): New flag Case_Insensitive.
2514 (Value_Of): new function to get the string value of a single
2515 string variable or attribute.
2518 (Value_Of): new function to get the string value of a single
2519 string variable or attribute.
2522 (Ada_Default_Spec_Suffix): New function
2523 (Ada_Default_Impl_Suffix): New function
2524 Change definitions of several constants to reflect
2525 new components of record types.
2528 (Naming_Data): Change several components to reflect new
2529 elements of naming schemes.
2530 (Project_Data): New flags Sources_Present and
2531 Language_Independent_Checked.
2532 (Ada_Default_Spec_Suffix): New function.
2533 (Ada_Default_Impl_Suffix): New function.
2536 Modification of predefined names for project manager: added
2537 Implementation, Specification_Exceptions, Implementation_Exceptions,
2538 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
2539 Default_Switches, _Languages, Builder, Cross_Reference,
2540 Finder. Removed Body_Part, Specification_Append, Body_Append,
2541 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
2544 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
2547 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
2548 not that it is Nil_Variable_Value.
2550 * prj.ads: Add ??? for uncommented declarations
2552 2001-10-10 Ed Schonberg <schonber@gnat.com>
2554 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
2555 constant, do not indicate possible modification, so that gigi can
2556 treat it as a bona fide constant.
2558 2001-10-10 Robert Dewar <dewar@gnat.com>
2560 * sem_prag.adb: Add processing for pragma External.
2562 * snames.ads: Add entry for pragma External.
2564 * par-prag.adb: Add pragma External.
2566 * snames.adb: Updated to match snames.ads.
2568 2001-10-10 Ed Schonberg <schonber@gnat.com>
2570 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
2571 a dynamic task if the allocator appears in an indexed assignment
2572 or selected component assignment.
2574 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
2575 For a dynamic task in an assignment statement, use target of
2576 assignment to generate meaningful name.
2578 2001-10-10 Ed Schonberg <schonber@gnat.com>
2580 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
2583 * einfo.ads: Body_Entity is also defined for generic package.
2584 Documentation change only
2586 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
2587 others_choice for a discriminated component initialization,
2588 convert discriminant references into the corresponding discriminals.
2590 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
2591 only if original type is private and expression has to be wrapped
2595 (Apply_Constraint_Check): Do not perform length check
2596 if expression is an aggregate with only an others_choice.
2597 (Length_N_Cond): two references to the same in_parameter
2598 (typically the discriminal in an init_proc) denote the same value.
2599 Two useful optimization uncovered by bugfixes above.
2601 2001-10-10 Robert Dewar <dewar@gnat.com>
2603 * xeinfo.adb: Change int to char in translation of enumeration types.
2604 This fixes a problem in the C representation of component alignment.
2605 Add 2001 to copyright notice
2607 2001-10-10 Richard Kenner <kenner@gnat.com>
2609 * decl.c: (validate_size): Do check size of object of integral type
2610 if it is a packed array type.
2612 2001-10-10 Richard Kenner <kenner@gnat.com>
2614 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
2615 VAR_DECL for constant if not Is_Public but -O0.
2617 2001-10-10 Richard Kenner <kenner@gnat.com>
2619 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
2621 2001-10-10 Geert Bosch <bosch@gnat.com>
2623 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
2624 use '/' as switch character, allowing for absolute file names.
2626 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
2628 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
2631 2001-10-08 Geert Bosch <bosch@gnat.com>
2633 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
2634 Automatically build utilities when files need to be regenerated.
2636 2001-10-08 Geert Bosch <bosch@gnat.com>
2638 * xsnames.adb: New utility for updating snames.ads and snames.adb
2640 2001-10-08 Zack Weinberg <zack@codesourcery.com>
2642 * Make-lang.in (ADAFLAGS): Add -W -Wall.
2643 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
2644 (gnat1): Also depend on attribs.o.
2645 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
2646 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
2647 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
2648 (ADAFLAGS): Add -W -Wall.
2649 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
2652 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
2653 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
2654 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
2655 Use $(ADAC), not $(CC), as compilation command.
2657 (gnattools): Depend directly on tools to build, don't use
2659 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
2661 * einfo.h, sinfo.h: New files (autogenerated).
2663 2001-10-08 Richard Henderson <rth@redhat.com>
2665 * comperr.adb (Abort_In_Progress): New.
2666 (Compiler_Abort): Use it to prevent recursion.
2668 2001-10-08 Robert Dewar <dewar@gnat.com>
2670 * atree.adb: Set Error_Posted in Error node, helps error recovery.
2672 * par-endh.adb (Output_End_Expected): We should also not test
2673 Error_Posted on the Error node, since now it is always set.
2675 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
2676 to help error recovery. Part of general work on 9407-004.
2678 * par.adb: Add ??? for misuse of error
2681 (Resolve): Defend against Error, fixes 9407-003.
2682 (Resolve_Discrete_Subtype_Indication): Defend against Error.
2684 * sinfo.ads (N_Error): Now has Etype field (which will be set
2685 to Any_Type to help error recovery).
2687 2001-10-08 Richard Kenner (kenner@gnat.com)
2689 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
2690 Consistently set MEM attributes from expression; fixes
2691 bootstrap failure on x86.
2693 2001-10-08 Geert Bosch (bosch@gnat.com)
2695 * 5oosinte.adb: Add 2001 to copyright notice.
2697 2001-10-08 Geert Bosch (bosch@gnat.com)
2699 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
2701 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
2703 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
2705 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
2707 2001-10-05 Geert Bosch (bosch@gnat.com)
2709 * adaint.h: Small formatting fix.
2711 2001-10-04 Geert Bosch <bosch@gnat.com>
2713 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
2714 Arg is int, not FILE *, in dummy version of functions.
2716 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
2717 Arg is int, not FILE *.
2719 2001-10-04 Geert Bosch <bosch@gnat.com>
2721 * 3lsoccon.ads: Added file, missed with initial check ins.
2723 * 4lintnam.ads: Fix header format.
2724 Change Linux to GNU/Linux.
2726 * 5iosinte.adb: Change Linux to GNU/Linux.
2728 * 5iosinte.ads: Change Linux to GNU/Linux.
2730 * 5itaprop.adb: Change Linux to GNU/Linux.
2732 * 5itaspri.ads: Change Linux to GNU/Linux.
2733 Update copyright notice.
2735 * 5lintman.adb: Change Linux to GNU/Linux.
2737 * 5lml-tgt.adb: Change Linux to GNU/Linux.
2739 * 5losinte.ads: Change Linux to GNU/Linux.
2741 * 5lsystem.ads: Change Linux to GNU/Linux.
2743 * 5qosinte.adb: Change Linux to GNU/Linux.
2745 * 5qosinte.ads: Change Linux to GNU/Linux.
2747 * 5qparame.ads: Change Linux to GNU/Linux.
2749 * 5qtaprop.adb: Change Linux to GNU/Linux.
2751 * 5qtaspri.ads: Change Linux to GNU/Linux.
2752 Add 2001 to copyright notice.
2754 * 5vintman.ads: Change Linux to GNU/Linux.
2755 Fix header format. Add 2001 to copyright notice.
2757 * g-soccon.ads: Change Linux to GNU/Linux.
2759 * g-trasym.ads: Change Linux to GNU/Linux.
2760 Add 2001 to copyright notice.
2762 * memtrack.adb: Change Linux to GNU/Linux.
2764 * s-intman.ads: Change Linux to GNU/Linux.
2765 Add 2001 to copyright notice. Fix header format.
2767 * s-stache.adb: Change Linux to GNU/Linux.
2769 * adaint.c: Change Linux to GNU/Linux.
2771 * cio.c: Change Linux to GNU/Linux.
2773 * cstreams.c: Change Linux to GNU/Linux.
2775 * init.c: Change Linux to GNU/Linux.
2777 * gmem.c: Change Linux to GNU/Linux.
2779 * tracebak.c: Change Linux to GNU/Linux.
2782 2001-10-02 Geert Bosch <bosch@gnat.com>
2784 * misc.c (insert_default_attributes): Add dummy version.