]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
* pexecute.c (pexecute): Cast string litrals to char *.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
eb0379c1 12005-07-12 Ben Elliston <bje@au.ibm.com>
2
3 * pexecute.c (pexecute): Cast string litrals to char *.
4 * regex.c (re_comp): Cast a call to gettext() to char *.
5
e744e148 62005-07-07 Kelley Cook <kcook@gcc.gnu.org>
7
8 * config.table: Delete file. Move former contents into ...
9 * configure.ac: ... here and escape any brackets for m4.
10 * Makefile.in (config.status): Remove dependency on config.table.
11 * configure: Regenerate.
12
1140cb51 132005-07-07 Kelley Cook <kcook@gcc.gnu.org>
14
15 * config.in: Regenerate for 6/20 change.
16
d01e2a38 172005-07-03 Steve Ellcey <sje@cup.hp.com>
18
19 PR other/13906
20 * md5.c (md5_process_bytes): Check alignment.
21
d8d90ee3 222005-07-01 Ian Lance Taylor <ian@airs.com>
23
24 PR other/22268
25 * cp-demangle.c (d_expr_primary): Don't run off the end of the
26 string while looking for the end of a literal value.
27 * testsuite/demangle-expected: Add test case.
28
a55dc2cd 292005-06-30 Daniel Berlin <dberlin@dberlin.org>
30
31 * hashtab.c (EMPTY_ENTRY): Moved and renamed.
32 (DELETED_ENTRY): Ditto.
33
28cc9eac 342005-06-20 Geoffrey Keating <geoffk@apple.com>
35
36 * strverscmp.c: New.
37 * Makefile.in (CFILES): Add strverscmp.c.
38 (CONFIGURED_OFILES): Add strverscmp.o.
39 (strverscmp.o): New rule.
40 (stamp-functions): Add $(srcdir) to files in source directory.
41 * configure.ac (funcs): Add strverscmp.
42 (AC_CHECK_FUNCS): Add strverscmp.
43 * configure: Regenerate.
44 * functions.texi: Regenerate.
45
71f27b28 462005-05-28 Eli Zaretskii <eliz@gnu.org>
47
48 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
49 * config.in, configure: Regenerate.
50
e63e3841 512005-05-25 Richard Henderson <rth@redhat.com>
52
53 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
54 (d_make_comp, d_print_comp): Likewise.
55 (d_special_name): Generate one.
56 * testsuite/demangle-expected: Add a hidden alias test.
57
f2d737fc 582005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
59
60 * configure.ac: Check declarations for calloc(), getenv(),
71f27b28 61 malloc(), realloc() and sbrk().
f2d737fc 62 * config.in: Regenerate.
63 * configure: Likewise.
64
65 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
66 instead of xmalloc.
67 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
68 * concat.c (liiberty_concat_ptr): Surround definition with an
69 extern "C" block, if __cplusplus.
70 (concat): Use XNEWVEC instead of xmalloc.
71 (reconcat): Likewise.
72 * cp-demangle.c (struct d_print_template): Rename member
71f27b28 73 "template" to "template_decl". Adjust use throughout the file.
f2d737fc 74 (d_print_resize): Properly cast return value of realloc().
75 (cplus_demangle_print): Same for malloc().
76 (d_demangle): Likewise.
77 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
78 "typename" to "type_name".
79 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
80 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
81 (demangle_template_value_parm): Likewise.
82 (demangle_template): Likewise.
83 (recursively_demangle): Likewise.
84 (do_hpacc_template_literal): Likewise.
85 (do_arg): Likewise.
86 (remember_type): Likewise.
87 (remember_Ktype): Likewise.
88 (register_Btype): Likewise.
89 (string_need): Use XRESIZEVEC instead of xrealloc().
90 * dyn-string.c (dyn_string_init): Use XNEWVEC.
91 (dyn_string_new): Use XNEW.
92 (dyn_string_resize): Use XRESIZEVEC.
93 * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
94 * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
95 Otherwise include <stdlib.h>.
96 (exchange): Cast return value of malloc().
97 * hashtab.c (htab_size): Define as both macro and non-inline
98 function.
99 (htab_elements): Likewise.
100 * getpwd.c (getpwd): Use XNEWVEC.
101 (htab_create_alloc_ex): Use C90 prototype-style.
102 * lrealpath.c (lrealpath): Appropriately cast return value of
71f27b28 103 malloc().
f2d737fc 104 * make-relative-prefix.c (save_string): Likewise.
105 * make-temp-file.c (try_dir): Rename from "try". Adjust use in
106 the file.
107 (choose_tmpdir): Use XNEWVEC.
108 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
109 * pex-common.c (pex_init_common): Use XNEW.
110 (pex_add_remove): Use XRESIZEVEC.
111 (pex_run): Likewise.
112 (pex_get_status_and_time): Likewise.
113 * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
114 * pex-msdos.c (pex_init): Use XNEW.
115 (pex_msdos_exec_child): Likewise.
116 (pex_msdos_exec_child): Use XRESIZEVEC.
117 * pex-unix.c (pex_wait): Use XNEW.
118 * pex-win32.c (fix_argv): Use XNEWVEC.
119 * pexecute.c (pwait): Likewise.
120 * setenv.c (setenv): Properly cast return value of malloc().
121 * sigsetmask.c (sigsetmask): Rename local variables "old" and
122 "new" to "old_sig" and "new_sig".
123 * sort.c (main): Use XNEWVEC.
124 * spaces.c (spaces): Cast return value of malloc().
125 * strndup.c (strndup): Likewise.
126 * ternary.c (ternary_insert): Use XNEW.
127 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
128 with an extern "C" block if __cplusplus.
129 * xstrdup.c (xstrdup): Cast return value of memcpy().
130 * xstrerror.c (strerror): Enclose declaration in an extern "C"
131 block if __cplusplus.
132 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
133
77f60c55 1342005-05-16 Andreas Jaeger <aj@suse.de>
135
136 * getpwd.c: Remove unneeded prototype getcwd and move getwd so
137 that it's only declared if needed.
138
139 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
140 defined.
141
3162cb3f 1422005-05-15 Andreas Jaeger <aj@suse.de>
143
144 * functions.texi: Regenerated.
145
f38e64b5 1462005-05-15 Eli Zaretskii <eliz@gnu.org>
147
148 * pexecute.txh: Enclose multi-word data types in @deftypefn in
149 braces. Minor wording fixes. Use --- for em-dash. Use
150 @enumerate in enumerated lists.
151
282c3769 152 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
153 braces.
154
34539791 1552005-05-11 Eli Zaretskii <eliz@gnu.org>
156
157 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
158 sys/stat.h.
159 (pex_init): Fix last argument to pex_init_common.
160 (pex_djgpp_exec_child): Remove leading underscore from _open,
161 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
162 which is undeclared, with `executable', which was unused. Remove
163 unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
164 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
165
1954c0c7 1662005-05-11 Paul Brook <paul@codesourcery.com>
167
168 * Makefile.in: Regenerate dependencies.
169
95b8d1bc 1702005-05-10 Nick Clifton <nickc@redhat.com>
171
172 * Update the address and phone number of the FSF organization in
173 the GPL notices in the following files:
174 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
175 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
176 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
177 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
178 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
179 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
180 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
181 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
182 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
183 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
184 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
185 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
186 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
187
1fe0ca55 1882005-05-06 Kelley Cook <kcook@gcc.gnu.org>
189
190 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
191 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
192 * configure: Regenerate.
193
1aa028ef 1942005-05-06 Kelley Cook <kcook@gcc.gnu.org>
195
196 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
197 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
198 * aclocal.m4: Don't include accross.m4.
199 * configure, config.in: Regenerate.
200
243fbe73 2012005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
202
203 * fopen_unlocked.c (unlock_std_streams): New.
f38e64b5 204
243fbe73 205 * functions.texi: Regenerate.
206
bb06f0f5 2072005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
208
209 * fopen_unlocked.c (unlock_stream): New.
210 Consolidate unlocking code into a helper function.
211
212 * functions.texi: Regenerate.
213
9459c273 2142005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
215
216 * asprintf.c: Include config.h.
217 * basename.c: Likewise.
218 * fdmatch.c: Likewise.
219 * hex.c: Likewise.
220 * lbasename.c: Likewise.
221 * spaces.c: Likewise.
222 * xatexit.c:Likewise.
f38e64b5 223 * configure.ac: Do check declarations for basename, ffs, asprintf
9459c273 224 and vasprintf for real.
225 * configure: Regenerate.
226
c1d4708b 2272005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
228
f38e64b5 229 * argv.c (dupargv): Allocate space of argv[argc], not
6486ecc3 230 sizeof(char *) of that amount. Cast result to char *.
c1d4708b 231
fd436e77 2322005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
233
234 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
f38e64b5 235 Replace not with negate.
fd436e77 236
71077444 2372005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
238
239 * configure.ac: Check declarations for basename, ffs, asprintf,
240 vasprintf.
241 * configure: Regenerate.
242 * config.in: Likewise.
243
35f4c956 2442005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
245
246 * Makefile.in (CFILES): Add fopen_unlocked.c.
247 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
248 Regenerate dependencies.
249
250 * configure.ac: Check for stdio_ext.h and __fsetlocking.
251
252 * fopen_unlocked.c: New file.
253
254 * functions.texi, configure, config.in: Regenerate.
255
0e10155a 2562005-04-04 Ian Lance Taylor <ian@airs.com>
257
258 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
259 declaration before statement.
260
8e1547da 2612005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
262
943c390a 263 * bcmp.c: Fix warnings and implement using memcmp.
264 * bcopy.c: Fix warnings.
265 * bzero.c: Fix warnings and implement using memset.
266
8e1547da 267 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
268 -Wstrict-prototypes.
269 * configure, config.in: Regenerate.
270
271 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
272 warnings and reconcile interfaces with relevant standards.
273
d24fd8a0 2742005-04-02 Ian Lance Taylor <ian@airs.com>
275
276 * cp-demangle.c: Update copyright.
277
f2ccbede 2782005-03-31 Joseph S. Myers <joseph@codesourcery.com>
279
280 * gettimeofday.c: Add "Supplemental" to @deftypefn.
281 * functions.texi: Regenerate.
282
22683dca 2832005-03-28 Ian Lance Taylor <ian@airs.com>
284
285 * pex-common.c: New file.
286 * pex-one.c: New file.
287 * pexecute.c: New file.
288 * pex-common.h: Include <stdio.h>.
289 (struct pex_obj): Define.
290 (struct pex_funcs): Define.
291 (pex_init_common): Declare.
292 * pex-unix.c: Rewrite.
293 * pex-win32.c: Rewrite.
294 * pex-djgpp.c: Rewrite.
295 * pex-msdos.c: Rewrite.
296 * testsuite/text-pexecute.c: New file.
297 * pexecute.txh: Rewrite.
298 * configure.ac: Check for wait3 and wait4. Set CHECK to
299 really-check rather than check-cplus-dem.
300 * functions.texi: Rebuild.
301 * Makefile.in: Rebuild dependencies.
302 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
303 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
304 * testsuite/Makefile.in (really-check): New target.
305 (check-pexecute, test-pexecute): New targets.
306 * configure: Rebuild.
307
0bd5e4e1 3082005-03-28 Mark Kettenis <kettenis@gnu.org>
f38e64b5 309
0bd5e4e1 310 * unlink-if-ordinary.c: Include <sys/types.h>.
311
320d4d0a 3122005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
313
314 Convert libiberty to use ISO C prototype style 7/n.
315 * regex.c (PARAMS): Remove definition.
316 (PREFIX): Unconditionaly define using ISO C ## operator.
f38e64b5 317 (init_syntax_once, extract_number, extract_number_and_incr,
320d4d0a 318 print_fastmap, print_partial_compiled_pattern,
f38e64b5 319 print_compiled_pattern, print_double_string, printchar,
320d4d0a 320 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
321 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
f38e64b5 322 at_begline_loc_p, at_endline_p, group_in_compile_stack,
323 insert_space, wcs_compile_range, byte_compile_range,
324 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
325 re_set_registers, re_search, re_search_2, re_search_3, re_match,
320d4d0a 326 re_match_2, count_mbs_length, wcs_re_match_2_internal,
327 byte_re_match_2_internal, group_match_null_string_p,
328 alt_match_null_string_p, common_op_match_null_string_p,
f38e64b5 329 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
320d4d0a 330 regexec, regerror, regfree): Use ISO C prototype style.
331 * partition.c: (elem_compare): Likewise.
332 * cp-demangle.c (print_usage): Likewise.
333
f8d9d6a0 3342005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
335
336 Convert libiberty to use ISO C prototype style 5/n.
337 * random.c (srandom, initstate, setstate, random): Use ISO C
f38e64b5 338 prototypes.
f8d9d6a0 339 * putenv.c (putenv): Likewise.
340 * physmem.c (physmem_available, physmem_total, main): Likewise.
341 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
342 * pex-unix.c (pexecute, pwait): Likewise.
343 * pex-msdos.c (pexecute, pwait): Likewise.
344 * pex-djgpp.c (pexecute, pwait): Likewise.
f38e64b5 345 * partition.c (partition_new, partition_delete, partition_union)
f8d9d6a0 346 (elem_compare, partition_print): Likewise.
f38e64b5 347 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
348 _obstack_allocated_p, _obstack_free, obstack_free,
f8d9d6a0 349 _obstack_memory_used, print_and_abort, obstack_next_free,
350 obstack_object_size, obstack_base): Likewise. Remove codes
351 predicated on !defined(__STDC__).
f38e64b5 352 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
f8d9d6a0 353 objalloc_free_block): Use ISO C prototypes.
354 * mkstemps.c (mkstemps): Likewise.
355 * memset.c (memset): Likewise.
356 * mempcpy.c (mempcpy): Likewise.
357 * rename.c (rename): Likewise.
358 * rindex.c (rindex): Likewise.
359 * setenv.c (setenv, unsetenv): Likewise.
360 * sigsetmask.c (sigsetmask): Likewise.
361 * snprintf.c (snprintf): Likewise.
f38e64b5 362 * sort.c (sort_pointers, xmalloc): Likewise.
f8d9d6a0 363 * spaces.c (spaces): Likewise.
f38e64b5 364 * splay-tree.c (splay_tree_delete_helper,
365 splay_tree_splay_helper, splay_tree_splay,
f8d9d6a0 366 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
f38e64b5 367 splay_tree_new, splay_tree_xmalloc_allocate,
f8d9d6a0 368 splay_tree_new_with_allocator, splay_tree_delete,
f38e64b5 369 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
370 splay_tree_max, splay_tree_min, splay_tree_predecessor,
371 splay_tree_successor, splay_tree_foreach,
f8d9d6a0 372 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
373 * stpcpy.c (stpcpy): Likewise.
374 * stpncpy.c (stpncpy): Likewise.
375 * strcasecmp.c (strcasecmp): Likewise.
376 * strchr.c (strchr): Likewise.
377 * strdup.c (strdup): Likewise.
378
cd72df1f 3792005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
380
381 Convert libiberty to use ISO C prototype style 6/n.
f38e64b5 382 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
cd72df1f 383 strtoerrno, main): Use ISO C prototype style.
384 * strncasecmp.c (strncasecmp): Likewise.
385 * strncmp.c (strncmp): Likewise.
386 * strndup.c (strndup): Likewise.
387 * strrchr.c (strrchr): Likewise.
f38e64b5 388 * strsignal.c (init_signal_tables, signo_max, strsignal,
cd72df1f 389 strsigno, strtosigno, psignal, main): Likewise.
390 * strstr.c (strstr): Likewise.
391 * strtod.c (strtod, atof): Likewise.
392 * strtol.c (strtol): Likewise.
393 * strtoul.c (strtoul): Likewise.
f38e64b5 394 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
cd72df1f 395 ternary_recursivesearch): Likewise.
396 * tmpnam.c (tmpnam): Likewise.
397 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
398 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
399 * vfork.c (vfork): Likewise.
400 * vfprintf.c (vfprintf): Likewise.
401 * vprintf.c (vprintf): Likewise.
402 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
403 * vsprintf.c (vsprintf): Likewise.
404 * waitpid.c (waitpid): Likewise.
405 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
406 * xexit.c (xexit): Likewise.
f38e64b5 407 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
cd72df1f 408 xcalloc, xrealloc): Likewise.
409 * xmemdup.c (xmemdup): Likewise.
410 * xstrdup.c (xstrdup): Likewise.
411 * xstrerror.c (xstrerror): Likewise.
412 * xstrndup.c (xstrndup): Likewise.
413
53f5a998 4142005-03-27 Andreas Jaeger <aj@suse.de>
415
416 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
417 flags.
418 * configure: Regenerated.
419
84565a75 4202005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
421
422 * getopt1.c (getopt_long_only): Fix thinko.
423
8858115e 4242005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
425
426 Convert libiberty to use ISO C prototype style 4/n.
53f5a998 427 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
428 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
429 htab_create_alloc, htab_set_functions_ex, htab_create,
430 htab_try_create, htab_delete, htab_empty,
431 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
432 htab_find, htab_find_slot_with_hash, htab_find_slot,
433 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
434 htab_traverse_noresize, htab_traverse, htab_collisions,
8858115e 435 htab_hash_string, iterative_hash): Use ISO C prototype.
436 * hex.c (hex_init): Likewise.
437 * index.c (index): Likewise.
53f5a998 438 * insque.c (insque, remque): Likewise.
8858115e 439 * lbasename.c (lbasename): Likewise.
440 * lrealpath.c (lrealpath): Likewise.
53f5a998 441 * make-relative-prefix.c (save_string, split_directories,
8858115e 442 free_split_directories, make_relative_prefix): Likewise.
53f5a998 443 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
444 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
8858115e 445 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
446 * memchr.c (memchr): Likewise.
447 * memcpy.c (memcpy): Likewise.
448 * memmove.c (memmove): Likewise.
449 * gettimeofday.c (gettimeofday): Likewise.
450 * getruntime.c (get_run_time): Likewise.
451 * getpwd.c (getpwd, getpwd): Likewise.
452 * getpagesize.c (getpagesize): Likewise.
453 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
53f5a998 454 * getopt.c (my_index, exchange, _getopt_initialize,
8858115e 455 _getopt_internal, getopt, main): Likewise.
456 * getcwd.c (getcwd): Likewise.
457 * fnmatch.c (fnmatch): Likewise.
53f5a998 458 * floatformat.c (floatformat_always_valid,
459 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
460 put_field, floatformat_from_double, floatformat_is_valid,
8858115e 461 ieee_test, main): Likewise.
53f5a998 462 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
463 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
464 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
465 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
466 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
467 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
468 fibheap_link, fibheap_cut, fibheap_cascading_cut,
8858115e 469 fibnode_insert_after, fibnode_remove): Likewise.
470 * ffs.c (ffs): Likewise.
471 * fdmatch.c (fdmatch): Likewise.
53f5a998 472 * dyn-string.c (dyn_string_init, dyn_string_new,
473 dyn_string_delete, dyn_string_release, dyn_string_resize,
474 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
475 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
476 dyn_string_insert_cstr, dyn_string_insert_char,
477 dyn_string_append, dyn_string_append_cstr,
8858115e 478 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
53f5a998 479 Likewise.
8858115e 480
79e4e63f 4812005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
482
483 Convert libiberty to use ISO C prototype style 3/n.
53f5a998 484 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
485 consume_count_with_underscores, code_for_qualifier,
486 qualifier_string, demangle_qualifier, cplus_demangle_opname,
487 cplus_mangle_opname, cplus_demangle_set_style,
488 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
79e4e63f 489 ada_demangle, internal_cplus_demangle, squangle_mop_up,
53f5a998 490 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
491 delete_work_stuff, mop_up, demangle_signature,
492 demangle_method_args, demangle_template_template_parm,
493 demangle_expression, demangle_integral_value,
494 demangle_real_value, demangle_template_value_parm,
495 demangle_template, arm_pt, demangle_arm_hp_template,
496 demangle_class_name, demangle_class, iterate_demangle_function,
497 demangle_prefix, gnu_special, recursively_demangle, arm_special,
498 demangle_qualified, get_count, do_type, demangle_fund_type,
499 do_hpacc_template_const_value, do_hpacc_template_literal,
500 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
501 register_Btype, remember_Btype, forget_B_and_K_types,
502 forget_types, demangle_args, demangle_nested_args,
503 demangle_function_name, string_need, string_delete, string_init,
504 string_clear, string_empty, string_append, string_appends,
79e4e63f 505 string_appendn, string_prepend, string_prepends, string_prependn,
506 string_append_template_idx): Use ISO C prootype style.
507 * cp-demint.c (cplus_demangle_fill_component,
53f5a998 508 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
79e4e63f 509 cplus_demangle_v3_components): Likewise.
510
d94aaf66 5112005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
512
513 Convert libiberty to use ISO C prototype style 2/n.
514 * cp-demangle.h: Remove uses of PARAMS.
515 * cp-demangle.c: Likewise.
53f5a998 516 (d_dump, cplus_demangle_fill_name,
517 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
518 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
519 d_make_builtin_type, d_make_operator, d_make_extended_operator,
520 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
521 cplus_demangle_mangled_name, has_return_type,
522 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
523 d_prefix, d_unqualified_name, d_source_name, d_number,
524 d_identifier, d_operator_name, d_special_name, d_call_offset,
525 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
526 d_function_type, d_bare_function_type, d_class_enum_type,
527 d_array_type, d_pointer_to_member_type, d_template_param,
528 d_template_args, d_template_arg, d_expression, d_expr_primary,
529 d_local_name, d_discriminator, d_add_substitution,
530 d_substitution, d_print_resize, d_print_append_char,
531 d_print_append_buffer, d_print_error, cplus_demangle_print,
532 d_print_comp, d_print_java_identifier, d_print_mod_list,
533 d_print_mod, d_print_function_type, d_print_array_type,
534 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
535 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
d94aaf66 536 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
53f5a998 537 print_usage, main):
d94aaf66 538
5392005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
540
541 Convert libiberty to ISO C prototype style 1/n.
542 * _doprnt.c: Remove conditional #include <varargs.h> on
543 ANSI_PROTOTYPES as the latter is always assumed.
544 (_doprnt, checkit, main): Use ISO C prototype.
545 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
546 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
53f5a998 547 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
d94aaf66 548 * atexit.c (atexit): Likewise
549 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
53f5a998 550 (asprintf): Use ISO C prototype.
d94aaf66 551 * basename.c (basename): Likewise
552 * bcmp.c (bcmp): Likewise.
553 * bcopy.c (bcopy): Likewise.
554 * bzero.c (bzero): Likewise.
555 * bsearch.c (bsearch): Likewise. Improve const-correctness.
556 * choose-temp.c (choose_temp_base): Likewise.
557 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
558 (calloc): Use ISO C prototype.
559 * clock.c (clock): Likewise.
560 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
53f5a998 561 (vconcat_length, vconcat_copy, concat_length, concat_copy,
d94aaf66 562 concat_copy2, concat, reconcat, main): Use ISO C prototype.
563 * copysign.c (copysign): Likewise.
564
a2ef32b0 5652005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
566
567 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
568 (REQUIRED_OFILES): Add xstrndup.o.
569 (CONFIGURED_OFILES): Add strndup.o.
570 Regenerate dependencies.
571
572 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
573
574 * strndup.c, xstrndup.c: New.
575
576 * config.in, configure, functions.texi: Regenerate.
577
1cf8f41f 5782005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
579
580 * xmemdup.c, xstrdup.c: Expose the tail call.
581
5a24a79a 5822005-03-09 Mark Mitchell <mark@codesourcery.com>
583
584 * configure.ac (funcs): Add gettimeofday.
585 * configure: Regenerated.
586 * gettimeofday.c: New file.
587 * Makefile.in (CFILES): Add gettimeofday.
588 (CONFIGURED_OFILES): Add gettimeofday.o.
589 (./gettimeofday.o): New rule.
590
b3165cc0 5912005-03-09 Ian Lance Taylor <ian@airs.com>
592
593 * pex-os2.c: Remove.
594 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
595 * Makefile.in (CFILES): Remove pex-os2.c.
596 (CONFIGURED_OFILES): Remove pex-os2.o.
597 (pex-os2.o): Remove target.
598 * configure: Rebuild.
599
376d874c 6002005-03-07 Ian Lance Taylor <ian@airs.com>
601
602 * mpw-config.in: Remove.
603 * mpw-make.sed: Remove.
604 * mpw.c: Remove.
605 * Makefile.in (CFILES): Remove pex-mpw.c.
606 (CONFIGURED_OFILES): Remove pex-mpw.o.
607 (mpw.o, pex-mpw.o): Remove targets.
608 * maint-tool (undoc): Remove reference to mpw.c.
609
40aad480 6102005-03-06 DJ Delorie <dj@redhat.com>
611
612 * configure.ac (target_header_dir): vfork is a stub under djgpp.
613 * configure: Regenerated.
614
4e0e2181 6152005-03-01 Jan Beulich <jbeulich@novell.com>
616
617 * Makefile.in (CFILES): Add unlink-if-ordinary.c
618 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
619 Add dependencies and rule for unlink-if-ordinary.o.
620 * unlink-if-ordinary.c: New.
621
9d3fdb75 6222005-03-01 Ben Elliston <bje@au.ibm.com>
623
624 * hashtab.c (htab_find_slot_with_hash): Make function
625 documentation clearer.
626
d9de0b06 6272005-02-13 Jason Merrill <jason@redhat.com>
628
629 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
630 arguments.
631
4fed4555 6322005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
633
634 * hex.c (hex_value): Group 'unsigned int' together to get correct
635 markup.
636 * functions.texi: Regenerated.
53f5a998 637
a1ba1d98 6382004-12-27 H.J. Lu <hongjiu.lu@intel.com>
639
640 * Makefile.in: Undo to 2004-12-17.
641 * aclocal.m4: Likewise.
642 * config.table: Likewise.
643 * configure.ac: Likewise.
644 * maint-tool: Likewise.
645 * configure: Likewise.
646
c6af84ca 6472004-12-19 H.J. Lu <hongjiu.lu@intel.com>
648
649 PR bootstrap/19072
650 * Makefile.in (enable_shared): New substitute.
651 (LTTARGETLIB): New.
652 (PREFIXTARGETLIB): New.
653 (LTTESTLIB): New.
654 (PREFIXTESTLIB): New.
655 (CCLD): New.
656 (LINK): New.
657 ($(TARGETLIB)): Use $(LINK) to create libraries and create
658 targets by hand.
659 ($(TESTLIB)): Likewise.
660 (mostlyclean): Don't remove .libs. Remove the libtool object
661 directory.
662
663 * config.table (enable_shared): Removed.
664
665 * configure.ac (enable_static): Set to yes.
666 (AC_PROG_LIBTOOL): Removed.
667 (AM_DISABLE_SHARED): Uncommented.
668 (AM_PROG_LIBTOOL): Likewise.
669 (LIBOBJS): Add `./' to avoid VPATH.
670 (LTLIBOBJS): Likewise.
671 (enable_shared): Substitute.
672 * configure: Regenerated.
673
0bc5435c 6742004-12-18 H.J. Lu <hongjiu.lu@intel.com>
675
676 * Makefile.in (top_builddir): Set to `.'.
677 (OUTPUT_OPTION): Removed.
678 (LIBTOOL): New.
679 (LTLIBOBJS): New.
680 (EXTRA_LTOFILES): New.
681 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
682 (all): Remove stamp-picdir.
683 (LTCOMPILE): New.
684 (.c.lo): New rule.
685 (REQUIRED_LTOFILES): New.
686 (CONFIGURED_LTOFILES): New.
687 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
688 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
689 (stamp-picdir): Completely removed.
690 (maint-missing): Pass $(REQUIRED_LTOFILES)
691 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
692 $(CONFIGURED_OFILES)
693 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
694 $(CONFIGURED_LTOFILES).
695 (mostlyclean): Also remove *.lo .libs.
696 Run "make maint-deps".
697
698 * aclocal.m4: Include ../libtool.m4.
699
700 * config.table: Don't check --enable-shared.
701
702 * configure.ac (AC_PROG_LIBTOOL): Add.
703 (AC_PROG_CC_C_O): Removed.
704 (OUTPUT_OPTION): Removed.
705 (NO_MINUS_C_MINUS_O): Removed.
706 (ltpexecute): New substitute.
707 (LIBOBJS): Cleanup.
708 * configure: Regenerated.
709
710 * maint-tool: Updated for .lo/libtool.
711
4927c18d 7122004-12-11 Ben Elliston <bje@au.ibm.com>
713
714 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
715 * configure: Regenerate.
716 * config.in: Likewise.
717
7fcf5937 7182004-12-07 DJ Delorie <dj@redhat.com>
719
720 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
721 that recursion (and thus large stack space) is not needed.
722
8682c630 7232004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
724
725 * pex-unix.c: Fix the spelling of longjmp.
726
0aef8b79 7272004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
728
729 PR other/18623
730 * cp-demangle.c (d_call_offset): Remove useless local variables
731 offset and virtual_offset.
732 * cplus-dem.c (ada_demangle): Remove useless local variable
733 at_start_name.
734 (demangle_template): Remove useless local variable start.
735
ad1a4db8 7362004-11-19 Roger Sayle <roger@eyesopen.com>
737
738 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
739 "ansidecl.h" to avoid redeclaration errors with native compilers.
740 * regex.c: Protect config.h from multiple inclusion.
741
f6069ff0 7422004-11-12 Mike Stump <mrs@apple.com>
743
52ae5fe7 744 * Makefile.in (libiberty.html): Fix html generation.
745
6f2cd531 7462004-09-08 Adam Nemet <anemet@lnxw.com>
747
748 * vasprintf.c: Accept __va_copy in addition to va_copy.
749
53f5a998 7502004-09-03 Paolo Bonzini <bonzini@gnu.org>
b279e2c1 751
752 * configure: Regenerate.
753
53f5a998 7542004-09-02 Paolo Bonzini <bonzini@gnu.org>
ee0c04f5 755
756 * configure.ac: Do not enable multilibs for build-side libiberty.
757
53f5a998 7582004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
c295e612 759
760 * lrealpath.c (lrealpath): Add _WIN32 support.
761
78f7fe68 7622004-06-28 Zack Weinberg <zack@codesourcery.com>
763
764 * cp-demangle.h: Declare cplus_demangle_operators,
765 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
766 cplus_demangle_type as static if IN_GLIBCPP_V3.
767
a2e044d6 7682004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
769
770 PR other/16240
771 * cp-demangle.c (d_expr_primary): Check for a failure return from
772 cplus_demangle_type.
16795cfb 773 * testsuite/demangle-expected: Add test case.
a2e044d6 774
155c5d86 7752004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
776
777 * pex-win32.c (fix_argv): Expand comment.
778
428b4753 7792004-05-25 Daniel Jacobowitz <drow@false.org>
780
781 * Makefile.in: Add .NOEXPORT.
782
767efd18 7832004-04-29 Douglas B Rupp <rupp@gnat.com>
784
785 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
786 copyright.
787
b6b1fbb6 7882004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
789
790 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
791 * configure: Regenerate.
792
6c13736f 7932004-04-22 Richard Henderson <rth@redhat.com>
794
795 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
796 (CHAR_BIT): Provide default.
797 (struct prime_ent, prime_tab): New.
798 (higher_prime_index): Rename from higher_prime_number, return index.
799 (htab_mod_1): New.
800 (htab_mod, htab_mod_m2): Use it.
801 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
802 (htab_expand): Likewise.
803 * configure.ac: Check for stdint.h.
804 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
805 * config.in, configure: Rebuild.
806
4d0c11d1 8072004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
808
809 * strerror.c: Include config.h, and redefine sys_nerr and
810 sys_errlist, before including ansidecl.h and libiberty.h.
811
14c235d9 8122004-04-13 Jeff Law <law@redhat.com>
813
814 * hashtab.c (htab_remove_elt_with_hash): New function.
815 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
816
dd070f65 8172004-03-31 Richard Henderson <rth@redhat.com>
818
819 * hashtab.c (htab_size): Move to top of file; mark inline.
820 (htab_elements): Likewise.
821 (htab_mod, htab_mod_m2): New.
822 (htab_delete): Refactor htab->size and htab->entries.
823 (htab_empty): Likewise.
824 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
825 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
826 (htab_clear_slot): Use htab_size, htab_elements.
827 (htab_traverse_noresize, htab_traverse): Likewise.
828
fa714a54 8292004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
830
e1e51a4a 831 * pex-unix.c (pexecute): Use vfork instead of fork, with
832 appropriate changes to make this safe.
833 * pex-common.h (STDERR_FILE_NO): Define.
834
fa714a54 835 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
836 an 80 column screen. Run maint-deps.
837
7f759422 8382004-03-09 Kelley Cook <kcook@gcc.gnu.org>
839
840 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
841 * acconfig.h: Delete redundant file.
842 * config.in: Regenerate.
843 * configure: Regenerate.
844
ac09b42b 8452004-03-09 Hans-Peter Nilsson <hp@axis.com>
846
847 * configure: Regenerate for config/accross.m4 correction.
848
daf4fdb0 8492004-03-07 Andreas Jaeger <aj@suse.de>
850
851 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
852 prototypes.
853 (main): Initialize style.
854
6ff4434d 8552004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
856
a86aec34 857 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
858 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
859 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
860 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
861 short types to D_PRINT_DEFAULT. Change other integer types to use
862 new D_PRINT_* values where appropriate. Change float types to
863 D_PRINT_FLOAT.
864 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
865 values.
866 * testsuite/demangle-expected: Adjust two test cases.
867
868 * cp-demangle.c (d_print_function_type): Print a space before the
869 parenthesis around the function type in more cases.
870 * testsuite/demangle-expected: Adjust one test case.
871
1649ae17 872 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
873 parentheses around a cast.
874 * testsuite/demangle-expected: Adjust two test cases to match new
875 output.
876
d87adc77 877 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
878
6ff4434d 879 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
880 push more than one of the same CV-qualifier on the top of the
881 stack.
882 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
883 move the CV-qualifiers to apply to the element type instead.
884 (d_print_array_type): When checking the modifiers, keep looking
885 past ones which have been printed already.
886 * testsuite/demangle-expected: Add three test cases.
887
0765a988 8882004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
889
f356b171 890 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
891 empty string correctly.
892
dbe9febb 893 * cp-demangle.c (__cxa_demangle): It is not an error if status is
894 not NULL. It is an error if the mangled name is the same as a
895 built-in type name.
896 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
897 than cplus_demangle_v3.
898
0765a988 899 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
900 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
901
b8f2aeef 9022004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
903
904 * regex.c: Include <ansidecl.h>.
905 (regcomp): Cast i to int.
906 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
907
bcf8d2c0 9082004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
909
910 * configure.ac: Add m4_pattern_allow(LIBOBJS).
911 * configure: Regenerate.
912
acecd7dc 9132004-01-22 DJ Delorie <dj@redhat.com>
914
915 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
916 with explicit build rules.
917 (VPATH): Remove.
918 (.c.o): Poison.
919 * configure.ac (pexecute, LIBOBJS): Add ./ .
920 * maint-tool: Build dependencies with explicit rules.
921
37350d39 9222004-01-15 Kazu Hirata <kazu@cs.umass.edu>
923
924 * strdup.c (strdup): Constify the argument.
925
2ee927a4 9262004-01-14 Loren J. Rittle <ljrittle@acm.org>
927
928 * Makefile.in (distclean): Remove config.cache.
929
a79e1701 9302004-01-13 Daniel Jacobowitz <drow@mvista.com>
931
932 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
933 takes two parameters.
934 * cp-demint.c (cplus_demangle_fill_component): Likewise.
935
f95cb811 9362004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
937
938 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
939 defined, rename some functions which are to become static via
940 #define.
941 (CP_STATIC_IF_GLIBCPP_V3): Define.
942 (struct d_operator_info): Move definition to cp-demangle.h, and
943 rename to demangle_operator_info. Change all uses.
944 (enum d_builtin_type_print): Move definition to cp-demangle.h.
945 (struct d_builtin_type_info): Move definition to cp-demangle.h,
946 and rename to demangle_builtin_type_info. Change all uses.
947 (enum d_comp_type): Move definition to include/demangle.h, and
948 rename to demangle_component_type, and change all enums to start
949 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
950 (struct d_comp): Move definition to include/demangle.h, and rename
951 to demangle_component. Change all uses.
952 (struct d_info): Move definition to cp-demangle.h.
953 (cplus_demangle_fill_name): New function.
954 (cplus_demangle_fill_extended_operator): New function.
955 (cplus_demangle_fill_ctor): New function.
956 (cplus_demangle_fill_dtor): New function.
957 (d_make_empty): Remove type parameter. Change all callers.
958 (d_make_name): Use cplus_demangle_fill_name.
959 (d_make_extended_operator): Use
960 cplus_demangle_fill_extended_operator.
961 (d_make_ctor): Use cplus_demangle_fill_ctor.
962 (d_make_dtor): Use cplus_demangle_fill_dtor.
963 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
964 non-static by default. Change all callers.
965 (cplus_demangle_operators): Rename from d_operators. Change all
966 uses. Make non-static by default. Add sentinel at end of array.
967 (d_operator_name): Adjust initialization of high for new sentinel
968 in cplus_demangle_operators.
969 (cplus_demangle_builtin_types): Rename from d_builtin_types.
970 Change all uses. Make non-static by default. Change initializer
971 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
972 (cplus_demangle_type): Rename from d_type. Make non-static by
973 default. Change all callers.
974 (cplus_demangle_init_info): Rename from d_init_info. Make
975 non-static by default. Change all callers.
976 * cp-demangle.h: New file.
977 * cp-demint.c: New file.
978 * Makefile.in: Rebuild dependencies.
979 (CFILES): Add cp-demint.c.
980 (REQUIRED_OFILES): Add cp-demint.o.
981
a1e9c76c 9822004-01-09 Kelley Cook <kcook@gcc.gnu.org>
983
984 * configure.in: Rename file to ...
985 * configure.ac: ... this.
986 * Makefile.in: Update a comment for above change.
987 * README: Likewise.
988 * config.in: Regenerate.
989
f2c17d01 9902004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
991
992 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
993 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
994 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
995 demangling template parameters.
996 * testsuite/test-demangle.c (fail): New static function.
997 (main): Support new options in input file: --no-params,
998 --is-v3-ctor, and --is-v3-dtor.
999 * testsuite/demangle-expected: Add --no-params to most tests, and
1000 add the correct result when parameters are not demangled. Add
1001 some simple tests for V3 constructor/destructor recognition.
1002
a5731f2a 10032003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1004
1005 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
1006
7b2b97f9 10072003-12-22 Daniel Jacobowitz <drow@mvista.com>
1008
1009 PR debug/13272
1010 * Makefile.in (lbasename.o): Depend on filenames.h.
1011 * lbasename.c: Include "filenames.h" instead of defining
1012 its macros locally.
1013
2c0843db 10142003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
1015
1016 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
1017 dynamic arrays.
1018 (struct d_operator_info): Add len field.
1019 (struct d_builtin_type_info): Add len and java_len fields.
1020 (struct d_standard_sub_info): Add simple_len, full_len, and
1021 set_last_name_len fields.
1022 (struct d_comp): Add len field to s_string.
1023 (struct d_info): Add send, did_subs, and expansion fields.
1024 (d_append_string_constant): Define.
1025 (d_append_string): Remove. Change all users to use
1026 d_append_string_constant or d_append_buffer instead.
1027 (d_make_sub): Add len parameter. Change all callers.
1028 (d_name): Increase expansion when substituting std::.
1029 (d_unqualified_name): Increase expansion for an operator.
1030 (d_number): Don't use multiplication for negative numbers.
1031 (d_identifier): Make sure there are enough characters in the
1032 string for the specified length. Adjust expansion for an
1033 anonymous namespace.
1034 (d_operators): Initialize len field.
1035 (d_special_name, d_ctor_dtor_name): Increase expansion.
1036 (d_builtin_types): Initialize len and java_len fields.
1037 (d_type): Increase expansion for a builtin type.
1038 (d_cv_qualifiers): Increase expansion for each qualifier.
1039 (d_bare_function_type): Decrease expansion when removing single
1040 void parameter.
1041 (d_template_param): Increment did_subs.
1042 (d_expression): Increase expansion for an operator.
1043 (d_expr_primary): Decrease expansion for a type we will print
1044 specially.
1045 (standard_subs): Initialize new fields.
1046 (d_substitution): Increment did_subs when doing a normal
1047 substitution. Increase expansion for a special substitution.
1048 (d_print): Add estimate parameter. Change all callers.
1049 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
1050 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
1051 (d_print_java_identifier): Rename from d_print_identifier. Handle
1052 only Java case. Change caller.
1053 (d_init_info): Change return type to void. Change all callers.
1054 Initialize send, did_subs, and expansion fields. Do not
1055 initialize comps and subs fields.
1056 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
1057 arrays on stack. Make an estimate of the length of the demangled
1058 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
1059 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
1060 subs arrays on stack.
1061
abe6933a 10622003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
1063
1064 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
1065 after the identifier.
1066 * testsuite/demangle-expected: Add test case.
1067
77097adf 10682003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
1069
1070 Fix for PR c++/13447:
1071 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
1072 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
1073 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
1074 D_COMP_QUAL_NAME.
1075 (is_ctor_or_dtor): Likewise.
1076 (d_local_name): Use D_COMP_LOCAL_NAME rather than
1077 D_COMP_QUAL_NAME.
1078 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
1079 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
1080 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
1081 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
1082 * testsuite/demangle-expected: Add two test cases.
1083
1084 * cp-demangle.c (d_print_function_type): Clear the global modifier
1085 list when printing the modifiers, not just when printing the
1086 function parameters.
1087 * testsuite/demangle-expected: Add two test cases.
1088
08d5ae10 10892003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1090
8ef443ab 1091 * cp-demangle.c (d_print_function_type): Print the function
1092 parameters with no modifiers.
1093 * testsuite/demangle-expected: Add test case.
1094
08d5ae10 1095 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
1096 expect that we've read the entire string.
1097 (is_ctor_or_dtor): Don't expect that we've read the entire
1098 string--reverse patch of 2003-11-29.
1099
11037b2e 11002003-12-15 Brendan Kehoe <brendan@zen.org>
1101
1102 * libiberty/Makefile.in (floatformat.o): Add dependency on
1103 config.h to accompany change of 2003-12-03.
1104
b69d25f7 11052003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1106
1107 Fix handling of constructor/destructor of standard substitution:
1108 * cp-demangle.c (struct d_standard_sub_info): Define.
1109 (d_substitution): Add prefix argument. Change all callers.
1110 Rework handling of standard substitutions to print full name when
1111 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
1112 * testsuite/demangle-expected: Add test case.
1113
1114 Fix handling of negative literal constants:
1115 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
1116 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
1117 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
1118 (d_print_comp): Handle D_COMP_LITERAL_NEG.
1119 * testsuite/demangle-expected: Add test case.
1120
3c87c5c3 11212003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
1122
1123 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
1124 (d_last_char): Define new macro.
1125 (d_make_name): Reject an empty name.
1126 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
1127 (d_substitution, d_print_identifier): Likewise.
1128 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
1129 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
1130 (d_print_mod) Use new d_last_char macro.
1131 (d_print_cast): Use new d_last_char macro.
1132 (is_ctor_or_dtor): Don't leak memory.
1133
1134 Fix handling of member function modifiers:
1135 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
1136 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
1137 (d_dump): Dump new d_comp_type values.
1138 (d_make_comp): Accept new d_comp_type values.
1139 (has_return_type): Only accept _THIS variants of qualifiers.
1140 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
1141 qualifiers.
1142 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
1143 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
1144 qualifiers and printing them at the end, add _THIS qualifiers to
1145 the modifier list.
1146 (d_print_comp) [D_COMP_*_THIS]: New cases.
1147 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
1148 qualifiers.
1149 (d_print_mod_list): Add suffix parameter. Change all callers.
1150 Keep walking the list even if the current modifier has been
1151 printed.
1152 (d_print_mod): Handle new _THIS qualifiers.
1153 (d_print_function_type): Handle new _THIS qualifiers when deciding
1154 whether to print a parenthesis. Put a space before the
1155 parenthesis in some cases. Call d_print_mod_list again at the
1156 end, passing suffix as 1.
1157 (is_ctor_or_dtor): Look for new _THIS qualifiers.
1158 * testsuite/demangle-expected: Add test case.
1159
1160 Fix for PR gcc/13304:
1161 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
1162 before the '<' is itself a '<', insert a space.
1163 (d_print_cast): Likewise.
1164 * testsuite/demangle-expected: Add test case.
1165
1166 Fix for PR gcc/13244:
1167 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
1168 which uses the '>' operator in an extra layer of parens.
1169 * testsuite/demangle-expected: Add test case.
1170
fa152dff 11712003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
1172
1173 * floatformat.c: Include "config.h" and <string.h> if available.
1174 (INFINITY, NAN): Define if not defined by <math.h>.
1175 (floatformat_to_double): Handle NaN, infinity, and denormalized
1176 numbers.
1177 (floatformat_from_double): Likewise.
1178 (ieee_test): In debugging code, use little endian rather than big
1179 endian. Correct tests to handle NaN and to check correct sign of
1180 zero. Omit m68k extended test.
1181 (main): Add more debugging cases.
1182
72983aaa 11832003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
1184
1185 * cp-demangle.c (d_demangle): Only return success if we consumed
1186 the entire demangled string.
1187 (is_ctor_or_dtor): Likewise.
1188
1189 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
1190 to restore expected result of EDG test case to original expected
1191 result.
1192
c1ea6f0c 11932003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
1194
1195 * cp-demangle.c (struct d_print_mod): Add templates field.
1196 (d_make_builtin_type): Check for NULL type.
1197 (d_make_extended_operator): Check for NULL name.
1198 (d_make_ctor, d_make_dtor): Likewise.
1199 (d_mangled_name): Add top_level parameter. Change all callers.
1200 (d_encoding): If DMGL_PARAMS is not set, strip off initial
1201 CV-qualifiers.
1202 (d_type): Check some return values we rely on.
1203 (d_bare_function_type, d_array_type): Likewise.
1204 (d_pointer_to_member_type, d_template_args): Likewise.
1205 (d_add_substitution): Fail if argument is NULL.
1206 (d_print_resize): Check whether buf is NULL.
1207 (d_print_comp): Save current templates list with each modifier.
1208 Don't pass the modifier list down when printing a template.
1209 (d_print_cast): Don't pass the modifier list down when printing a
1210 template.
1211 (d_print_mod_list): Temporarily set templates list while printing
1212 a modifier.
1213 (d_print_mod): Check that buf is not NULL before using it.
1214 (d_print_function_type): Print parens if there is no modifier.
1215 (d_init_info): Permit as many substitutions as there are
1216 characters in the mangled name.
1217 * testsuite/demangle-expected: Add two new test cases.
1218
8a238b4d 12192003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
1220
1221 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
1222 d_demangle.
1223
55faa696 12242003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
1225
1226 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
1227 callers.
1228 (print_usage): Display new -p option.
1229 (long_options): Add --no-params.
1230 (main): Accept and handle -p.
1231
7522af2a 12322003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
1233
1234 * cp-demangle.c (has_return_type): Skip qualifiers when checking
1235 whether we have a template.
1236 * testsuite/demangle-expected: Add four new tests.
1237
1b4974e7 12382003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
1239
3365aca7 1240 * testsuite/demangle-expected: Minor changes to match output of
1241 new demangler: adjust whitespace in four tests, and change order
1242 of qualifiers in one test.
1243
1b4974e7 1244 * cp-demangle.c: Complete rewrite.
1245
c8f6de64 12462003-11-19 Mark Mitchell <mark@codesourcery.com>
1247
1248 * cp-demangle.c (demangle_type): Correct thinko in substitution
1249 processing.
1250
0d45f4fe 12512003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
1252
6b45c28d 1253 * cp-demangle.c (demangle_operator_name): Remove space before
1254 "sizeof".
1255 (demangle_type_ptr): Put qualifiers in the right place. Handle
1256 qualifiers in pointer to member specially.
1257 (demangle_type): Handle qualifiers for pointer or reference
1258 specially. Handle function type.
1259 (demangle_local_name): Save and restore caret around demangling of
1260 initial encoding.
1261
28277092 1262 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
1263 cplus_demangle.
1264
0d45f4fe 1265 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
1266
04bf85aa 12672003-10-31 Andreas Jaeger <aj@suse.de>
1268
1269 * floatformat.c (floatformat_always_valid): Add unused attribute.
1270
82ac7060 12712003-10-30 Josef Zlomek <zlomekj@suse.cz>
1272
1273 Jan Hubicka <jh@suse.cz>
1274 * vasprintf.c (int_vasprintf): Pass va_list by value.
1275 Use va_copy for copying va_list.
1276 (vasprintf): Pass va_list by value.
1277
f324afe5 12782003-10-30 Josef Zlomek <zlomekj@suse.cz>
1279
1280 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
1281 instead of increasing n_elements when inserting to deleted slot.
1282
147ca737 12832003-10-20 J. Brobecker <brobecker@gnat.com>
1284
1285 * cplus-dem.c (demangle_template): Register a new Btype only
1286 when needed.
1287 * testsuite/demangle-expected: Add a new test.
1288
12440823 12892003-10-16 H.J. Lu <hongjiu.lu@intel.com>
1290
1291 * testsuite/demangle-expected: Update the expected output of
1292 _GLOBAL__I__Z2fnv.
1293
c5eb53ab 12942003-10-02 Daniel Jacobowitz <drow@mvista.com>
1295
1296 * strerror.c: Revert last change. Declare static sys_nerr
1297 and sys_errlist using different names.
1298
704579f5 12992003-10-01 Daniel Jacobowitz <drow@mvista.com>
1300
1301 * strerror.c: Don't provide or reference sys_errlist if
1302 strerror is available.
1303
40a84a93 13042003-10-01 H.J. Lu <hongjiu.lu@intel.com>
1305
1306 * configure.in: Check if $MAKEINFO is missing.
1307 * configure: Regenerated.
1308
90305aaf 13092003-09-24 Daniel Jacobowitz <drow@mvista.com>
1310
1311 * configure.in: Use AC_PROG_CPP_WERROR.
1312 * configure: Regenerated.
1313
63cb126c 13142003-09-22 Andrew Cagney <cagney@redhat.com>
1315
1316 * floatformat.c (floatformat_i387_ext_is_valid): New function.
1317 (floatformat_always_valid): New function.
1318 (floatformat_i387_ext): Initialize new "is_valid" field to
1319 "floatformat_i387_ext_is_valid".
1320 (floatformat_ieee_single_little): Initialize "is_valid" field to
1321 floatformat_always_valid.
1322 (floatformat_ieee_double_big): Ditto.
1323 (floatformat_ieee_double_little): Ditto.
1324 (floatformat_ieee_double_little): Ditto.
1325 (floatformat_ieee_double_littlebyte_bigword): Ditto.
1326 (floatformat_i960_ext): Ditto.
1327 (floatformat_m88110_ext): Ditto.
1328 (floatformat_m88110_harris_ext): Ditto.
1329 (floatformat_arm_ext_big): Ditto.
1330 (floatformat_arm_ext_littlebyte_bigword): Ditto.
1331 (floatformat_ia64_spill_big): Ditto.
1332 (floatformat_ia64_spill_little): Ditto.
1333 (floatformat_ia64_quad_big): Ditto.
1334 (floatformat_ia64_quad_little): Ditto.
1335 (floatformat_ia64_quad_little): Ditto.
1336 (floatformat_is_valid): Call "is_valid".
1337
8d083f49 13382003-09-15 Andrew Cagney <cagney@redhat.com>
1339
1340 * floatformat.c (get_field): Make "data" constant.
1341 (floatformat_is_valid, floatformat_to_double): Make "from"
1342 constant, fix casts.
1343 (floatformat_from_double): Make "from" constant.
1344
8109b385 13452003-09-15 Daniel Jacobowitz <drow@mvista.com>
1346
1347 * floatformat.c (floatformat_is_valid): New function.
1348 (get_field, put_field): Correct comments.
1349
76b64c1c 13502003-09-06 Josef Zlomek <zlomekj@suse.cz>
1351
1352 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
1353 FIBHEAPKEY_T.
1354
71babb92 13552003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
fc139dea 1356
1357 PR bootstrap/12100
1358 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
1359 * configure: Rebuilt.
1360
a6089b1e 13612003-08-27 Daniel Jacobowitz <drow@mvista.com>
1362
1363 * aclocal.m4: Include acx.m4 and no-executables.m4.
1364 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
1365 (LIB_AC_PROG_CC): Remove.
1366 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
1367 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
1368 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
1369 performing link tests.
1370 * configure: Regenerated.
1371
484e4040 13722003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
1373
78f7fe68 1374 * cp-demangle.c: Clarify what package(s) this is part of.
484e4040 1375
945220d6 13762003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
1377
1378 * pex-win32.c (pexecute): Mark parameters this_pname and
1379 temp_base as unused. Remove unused variables retries,
1380 sleep_interval. Initialize org_stdin, org_stdout.
1381 (pwait): Mark parameter flags as unused.
1382
13832003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
eeaf6b14 1384
1385 * pex-win32.c (fix_argv): Ensure that the executable pathname
1386 uses Win32 backslashes.
1387 (pexecute): Cast away constness when assigning *errmsg_arg.
1388
de885da0 13892003-06-26 H.J. Lu <hongjiu.lu@intel.com>
1390
1391 * testsuite/demangle-expected: Add more GNU V3 testcases.
1392
b60500ad 13932003-06-22 Zack Weinberg <zack@codesourcery.com>
1394
1395 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
1396 not HC_ASCII and HC_EBCDIC.
1397 Add documentation in form expected by gather-docs.
1398 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
1399 * Makefile.in, functions.texi: Regenerate.
1400
05b93640 14012003-06-21 Zack Weinberg <zack@codesourcery.com>
1402
1403 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
1404 for charset determination.
1405
c08775b2 14062003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
1407
1408 * configure.in: Add check for malloc.h needed by
1409 m68k for function free().
1410 * configure: Regenerated.
1411 * config.in: Add HAVE_MALLOC_H.
1412 * hashtab.c: include malloc.h were available for
1413 free().
1414
5e90539e 14152003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
05b93640 1416
5e90539e 1417 PR bootstrap/10974
1418 * physmem.c: Update comment.
1419 * configure.in: Modify test for _system_configuration for older
1420 AIX systems.
1421
1422 * config.in, configure: Regenerated.
05b93640 1423
b4c6b6f4 14242003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1425
1426 PR other/10810
1427 * test-demangle.c (getline): Fix fence-post error.
1428
5958dc33 14292003-06-03 Nick Clifton <nickc@redhat.com>
1430
1431 * asprintf.c: Change comment to note that -1 is returned upon
1432 error.
1433 * vasprintf.c: Likewise.
1434 (vasprintf): Return -1 upon error.
1435 * functions.texi: Document changes to asprintf and vasprintf.
1436
f11036bc 14372003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
1438
1439 * config.table: Accept i[345867]86 variant.
1440
ffa082ba 14412003-05-15 Jim Blandy <jimb@redhat.com>
1442
1443 * hex.c (_hex_value): Make this unsigned.
1444 (hex_value): Update documentation for new return type. hex_value
1445 now expands to an unsigned int expression, to avoid unexpected
1446 sign extension when we store it in a bfd_vma, which is larger than
1447 int on some platforms.
1448 * functions.texi: Regenerated.
1449
d6dfdca2 14502003-05-07 Josef Zlomek <zlomekj@suse.cz>
1451
1452 * splay-tree.c (splay_tree_predecessor): Fix comment.
1453 (splay_tree_successor): Fix comment.
1454
b3552be1 14552003-05-07 Jason Merrill <jason@redhat.com>
1456
24bfa234 1457 * hashtab.c (iterative_hash): New fn.
b3552be1 1458 * configure.in: Add AC_C_BIGENDIAN_CROSS.
1459 * aclocal.m4: Include accross.m4.
1460 * configure, config.in: Regenerate.
1461
9bb0a517 14622003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1463
1464 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
1465 * configure: Regenerate.
1466
ddb6bca9 14672003-05-03 Carlo Wood <carlo@alinoe.com>
1468
1469 * cp-demangle.c: Fix typo in "char_traints" string-literal.
1470
8806a402 14712003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1472
1473 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
1474 (main): Test that we don't write too much data.
1475
09fd37ef 14762003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1477
1478 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
1479 vsnprintf.
1480 * snprintf.c, vsnprintf.c: New files.
1481 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
1482 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
1483 Regenerate dependencies.
1484
1485 * functions.texi, configure, config.in: Regenerated.
1486
79d940a3 14872003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1488
1489 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
1490 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
1491 and stpncpy.
1492 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
1493 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
1494 Regenerate dependencies.
1495
1496 * functions.texi, configure, config.in: Regenerated.
1497
ca3ccdf6 14982003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1499
1500 * argv.c: Fix comments.
1501 * calloc.c: Don't unnecessarily include "libiberty.h".
1502 (bzero): Add prototype.
1503 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1504 * getcwd.c (getcwd): Use standard definition to avoid conflicts
1505 with system headers.
1506 * hashtab.c (htab_traverse): Delete unused variables.
1507 * rename.c: Include "ansidecl.h".
1508 (rename): Use standard definition to avoid conflicts with system
1509 headers.
1510 * strsignal.c: Rely on ANSI_PROTOTYPES.
1511 * strstr.c: Check GNUC >= 2, not GNUC == 2.
1512 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1513 * vprintf.c: Include "ansidecl.h" earlier, rely on
1514 ANSI_PROTOTYPES.
1515 * vsprintf.c: Include "ansidecl.h" earlier, rely on
1516 ANSI_PROTOTYPES and possibly include <stdarg.h>.
05b93640 1517
ca3ccdf6 1518 * Makefile.in: Regenerate dependencies.
1519
6b5ad644 15202003-04-15 DJ Delorie <dj@redhat.com>
1521
1522 * maint-tool (deps): Scan for headers in $srcdir also.
1523
d526b550 15242003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1525
1526 PR target/10338
1527 PR bootstrap/10198
1528 PR bootstrap/10140
1529 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
1530 __mempcpy.
1531 * regex.c (regerror): Likewise.
1532
83f85421 15332003-04-14 Roger Sayle <roger@eyesopen.com>
1534
1535 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
1536 * memchr.c: Likewise.
1537 * strcasecmp.c: Likewise.
1538 * strncasecmp.c: Likewise.
1539 * strncmp.c: Likewise.
1540 * xatexit.c: Likewise.
1541 * xmalloc.c: Likewise.
1542
1543 * copysign.c: Use traditional function declaration instead of DEFUN.
1544 * sigsetmask.c: Likewise.
1545
1546 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
1547 * memset.c: Likewise.
1548
1549 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
1550 * memmove.c: Likewise.
1551
68acb842 15522003-04-14 Roger Sayle <roger@eyesopen.com>
1553
1554 * strdup.c (strdup): Tweak implementation to use memcpy.
1555
b5e94eb4 15562003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1557
1558 * configure.in (HAVE_UINTPTR_T): Always define.
1559 * configure: Regenerated.
1560
62133c30 15612003-03-23 Alexandre Oliva <aoliva@redhat.com>
1562
1563 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
1564 instead of $$CC alone.
1565 (install_to_tooldir): Use it.
1566
6d05ae35 15672003-17-03 Jan Hubicka <jh@suse.cz>
1568
1569 * hashtab.c (htab_traverse_noresize): Break out from ...
1570 * hashtab.c (htab_traverse): ... here.
1571
b9af005f 15722003-12-03 Jan Hubicka <jh@suse.cz>
1573
6d4061d0 1574 * hashtab.c (htab_expand): Fix warning.
1575
b9af005f 1576 * hashtab.c (htab_expand): Compute the size of hashtable based
1577 on the number of elements actually used.
1578 (htab_traverse): Call htab_expand when table is too empty.
1579
68f6f1d9 15802003-03-11 Carlo Wood <carlo@gnu.org>
1581
1582 * cplus-dem.c (demangle_integral_value): Correction to reflect
1583 patch of 2002-01-10 in order to also make negative multi-digits
1584 without leading underscore work.
1585
ac5e00d3 15862003-03-03 Mark Mitchell <mark@codesourcery.com>
1587
1588 * cplus-dem.c: Add license exception to copyright notice.
1589
df4b17bf 15902003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1591
1592 * physmem.c: Formatting changes from upstream.
1593
eafe92ea 15942003-02-24 Danny Smith <dannysmith@users.source.forge.net>
1595
1596 * physmem.c (physmem_total): Add _WIN32 support.
1597 (physmem_available): Likewise.
1598
5833978f 15992003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1600
1601 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
1602 GSI_PHYSMEM.
1603 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
1604
4195ec6a 16052003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1606
1607 * configure.in: Check for sys/systemcfg.h and
1608 _system_configuration.
1609 * physmem.c: Add support for AIX. Tweek formatting as per
1610 upstream coreutils beta.
1611
0991d38e 16122003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1613 Richard Earnshaw <rearnsha@arm.com>
1614 Geoffrey Keating <geoffk@apple.com>
05b93640 1615
0991d38e 1616 * configure.in: Check for sys/sysctl.h and sysctl.
1617 * physmem.c: Add support for *bsd and darwin.
1618 * Makefile.in: Generate depedency for physmem.o.
1619
622d92fb 16202003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1621
1622 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
1623 Tru64 UNIX.
1624 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
1625 Tru64 UNIX.
1626
1627 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
1628 machine/hal_sysinfo.h, sys/table.h.
1629 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
1630 * configure, config.in: Regenerate.
1631
8f3b8386 16322003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1633
1634 * configure.in: Check for sys/sysmp.h and sysmp.
1635 * physmem.c: Pull upstream copy, add support for irix6.
1636
1637 * config.in, configure: Regenerated.
1638
25b160f7 16392003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1640
1641 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
1642 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
1643 pstat_getdynamic.
05b93640 1644
5cf67f1b 16452003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1646
1647 * Makefile.in (CFILES): Add physmem.c.
1648 (REQUIRED_OFILES): Add physmem.o.
1649 * configure.in: Check for sys/pstat.h.
1650 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
1651 * physmem.c: New file, copied from textutils.
1652
1653 * config.in, configure: Regenerated.
1654
846a645c 16552003-02-20 Daniel Jacobowitz <drow@mvista.com>
1656
1657 * Makefile.in (CFILES): Add lrealpath.c.
1658 (REQUIRED_OFILES): Add lrealpath.o.
1659 (lrealpath.o): Add rule.
1660 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
1661 * configure.in: Add realpath and canonicalize_file_name to
1662 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
1663 for canonicalize_file_name.
1664 * lrealpath.c: New file.
1665 * make-relative-prefix.c: Update documentation.
1666 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
1667 * config.in: Regenerated.
1668 * configure: Regenerated.
1669 * functions.texi: Regenerated.
1670
82561650 16712003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1672
1673 * cplus_dem.c: Fix typo: intializes -> initializes.
1674
e4e6363f 16752003-02-20 Alexandre Oliva <aoliva@redhat.com>
1676
1677 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
1678 config.status.
1679 * configure: Rebuilt.
1680
cc720498 16812003-02-13 Daniel Jacobowitz <drow@mvista.com>
1682
1683 Fix PR c++/7612.
1684 * cplus-dem.c (demangle_signature): Call string_delete.
1685 Remove extra string_init.
1686 (demangle_arm_hp_template): Call string_delete instead of
1687 string_clear. Add missing string_delete call.
1688 (demangle_qualified): Add missing string_delete call.
1689 (do_type): Remove unused variable btype. Add missing string_delete
1690 call. Call string_delete instead of string_clear.
1691 (demangle_fund_type): Move variable btype inside of the switch
1692 statement. Add missing string_delete call.
1693 (do_arg): Call string_delete instead of string_clear. Remove extra
1694 string_init.
1695 (demangle_nested_args): Free work->previous_argument.
1696
d94d977c 16972003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1698
1699 * acconfig.h: New file. Add uintptr_t.
1700 * config.in: Regenerated.
1701
5533bc76 17022003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
1703
1704 * libiberty.texi: Update to GFDL 1.2.
1705
7f13318a 17062003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1707
1708 * Makefile.in (libiberty_topdir): New subst.
1709 (mkinstalldirs): Redefine in terms of the above.
1710 * configure.in: AC_SUBST it.
1711 * configure: Regenerate.
1712
9d2299ec 17132003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1714
1715 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
1716 (info-subdir, install-info-subdir, clean-info-subdir)
1717 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
1718 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
1719 Pass $(FLAGS_TO_PASS).
1720
49f7db63 17212003-01-27 Alexandre Oliva <aoliva@redhat.com>
1722
1723 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
1724 /`$$CC -print-multi-os-directory`.
1725
a21acbbb 17262003-01-26 Daniel Jacobowitz <drow@mvista.com>
1727
1728 * hashtab.c (htab_create_alloc_ex): New function.
1729 (hatab_set_functions_ex): New function.
1730 (htab_delete, htab_expand): Support alternate allocation functions.
1731
8c171144 17322003-01-24 Christopher Faylor <cgf@redhat.com>
1733
1734 * configure.in: Remove special pex-cygwin consideration.
1735 * configure: Regenerate.
1736 * pex-cygwin.c: Remove.
1737 * Makefile.in: Remove pex-cygwin.[co] lines.
1738
8cb0536d 17392003-01-24 Zack Weinberg <zack@codesourcery.com>
1740
1741 * Makefile.in (CFILES): Add pex-*.c.
1742 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
1743 (CONFIGURED_OFILES): Add pex-*.o.
1744 (TEXIFILES): Add pexecute.txh.
1745 (pexecute.o): Delete rule.
1746 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
1747 pex-unix.o, pex-win32.o): New rules.
1748 * configure.in: Change AC_INIT argument to xmalloc.c.
1749 Compute appropriate pexecute implementation and substitute it
1750 as @pexecute@.
1751
1752 * pexecute.c: Split up into...
1753 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
1754 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
1755 new files.
1756
1757 * functions.texi: Regenerate.
1758 * configure: Regenerate.
1759
aa5761b7 17602003-01-20 Josef Zlomek <zlomekj@suse.cz>
1761
1762 * hashtab.c (htab_expand): Fix allocation of new entries.
1763
71aad3b8 17642003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1765
1766 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
1767
2e6a336d 1768 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
1769 mkinstalldirs command.
1770
e162e528 17712002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
1772
1773 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
1774 Define for hosts with HOST_EXECUTABLE_SUFFIX.
1775
aba68506 17762002-11-24 Nick Clifton <nickc@redhat.com>
1777
1778 * make-relative-prefix.c (make_relative_prefix): Ensure return
1779 string is empty before using strcat to construct it.
1780
5feeeb38 17812002-11-22 Daniel Jacobowitz <drow@mvista.com>
1782
1783 * Makefile.in: Add make-relative-prefix.c.
1784 * make-relative-prefix.c: New file.
1785 * functions.texi: Rebuilt.
1786
d7022963 17872002-11-16 Jakub Jelinek <jakub@redhat.com>
1788
1789 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
1790 used with arguments in traditional C' warnings.
1791
dacb9fcc 17922002-10-16 Jakub Jelinek <jakub@redhat.com>
1793
1794 * config.table: Use mh-s390pic for s390x too.
1795
ff02de61 17962002-10-06 Andreas Jaeger <aj@suse.de>
1797
1798 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
1799 variable and of strict-aliasing warning.
1800 (grow_vect): Use char as first parameter.
1801
5f7912d8 18022002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1803
1804 * Makefile.in (all): Fix multilib parallel build.
1805
05455547 18062002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
1807
1808 * cp-demangle.c (demangling_new): Cast 0 to enum.
1809 (demangle_char): Cast return of strdup to char *.
1810 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
1811 (is_gnu_v3_mangled_dtor): Likewise.
1812 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
1813 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
1814 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
1815 * md5.c (md5_process_bytes): Cast results back to const void *.
1816 (md5_process_block): Add cast to const md5_uint32 *.
1817 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
1818 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
1819 unsigned short.
1820 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
1821 to void *.
1822 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
1823
bd5d1805 18242002-09-19 Nick Clifton <nickc@redhat.com>
1825
1826 * README: Update email addresses for bugs and patches.
1827
0fe3478a 18282002-09-10 Mike Stump <mrs@apple.com>
1829
1830 * splay-tree.c (splay_tree_successor): Fix comments.
1831
65e49ff1 18322002-09-11 Zack Weinberg <zack@codesourcery.com>
1833
808b5085 1834 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
65e49ff1 1835 * testsuite/Makefile.in: Adjust for test-demangle.
1836 * testsuite/regress-demangle: Deleted.
1837 * testsuite/test-demangle.c: New file.
1838 * testsuite/demangle-expected: Change \$ to $ throughout, now that
1839 this file is not being read by a shell script.
1840
5ca95c55 18412002-09-05 Roger Sayle <roger@eyesopen.com>
1842
1843 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
1844
b251a88a 18452002-08-07 DJ Delorie <dj@redhat.com>
1846
1847 * regex.c (re_error_msgid): Just use a simple array of strings.
1848 (re_compile_pattern): Compensate.
1849 (re_comp): Likewise.
1850 (re_comp): Likewise.
1851 (regerror): Likewise.
1852
f4e29b4a 18532002-07-29 Neil Booth <neil@daikokuya.co.uk>
1854
1855 * cplus-dem.c (PREPEND_BLANK): Remove.
ff02de61 1856
abcf0552 18572002-07-10 Jason Merrill <jason@redhat.com>
1858
1859 * cp-demangle.c (demangle_identifier): Support extended Unicode
1860 characters.
1861
c62ef5b5 18622002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1863
1864 * cp-demangle.c (demangle_v3_with_details): Wrap in
ff02de61 1865 !defined IN_GLIBCPP_V3.
c62ef5b5 1866
74c75ba5 18672002-07-01 Mark Mitchell <mark@codesourcery.com>
1868
1869 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
1870 Set it for the "st" operator.
1871 (demangle_expression): Handle expressions with types as arguments.
1872
b2835908 18732002-06-30 Douglas Rupp <rupp@gnat.com>
1874
1875 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
1876 * Makefile.in (OUTPUT_OPTION): Use.
1877
c75cb827 18782002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
1879
1880 * Makefile.in (install_to_libdir): Add $(DESTDIR).
1881 (install_to_tooldir): Likewise.
1882
55fc5d04 18832002-06-17 Douglas Rupp <rupp@gnat.com>
1884
1885 * lbasename.c: Add 2002 to copyright.
1886 (IS_DIR_SEPARATOR): Remove VMS junk.
1887
8d24e548 18882002-06-05 Geoffrey Keating <geoffk@redhat.com>
1889
1890 * hashtab.c (htab_create): New stub function for backward
1891 compatibility.
1892 (htab_try_create): Likewise.
1893
1f3233d1 18942002-06-03 Geoffrey Keating <geoffk@redhat.com>
1895
1896 * hashtab.c (htab_create): Delete.
1897 (htab_try_create): Delete.
1898 (htab_create_alloc): New.
1899 (htab_delete): Support user-specified memory allocation.
1900 (htab_expand): Likewise.
1901
daa2cd64 19022002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
1903
1904 * configure.in: Fix typo in the code checking for sys_errlist.
1905 * configure: Regenerated.
1906
70102259 19072002-05-13 Andreas Schwab <schwab@suse.de>
1908
1909 * config.table: Use mh-x86pic also for x86-64.
1910
0b045cf7 19112002-05-08 Alexandre Oliva <aoliva@redhat.com>
1912
1913 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1914 script entry, and set LD to it when configuring multilibs.
1915 * configure: Rebuilt.
1916
63e428d5 19172002-05-07 Mark Mitchell <mark@codesourcery.com>
1918
1919 * configure.in (AC_TYPE_PID_T): Use it.
1920 * configure: Regenerated.
1921 * getruntime.c: Include <sys/types.h>.
1922 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
1923
8c8eb750 19242002-04-09 Richard Henderson <rth@redhat.com>
1925
1926 * hashtab.c (higher_prime_number): Use 7 as minimum.
1927 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
1928 (htab_find_slot_with_hash): Likewise.
1929
5acfe29d 19302002-04-01 Phil Edwards <pme@gcc.gnu.org>
1931
1932 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
1933 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
1934 not compile if IN_GLIBCPP_V3 defined.
1935 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
1936
87591c4a 19372002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1938
ff02de61 1939 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
87591c4a 1940 if it is NULL.
1941
b8327a91 19422002-03-27 DJ Delorie <dj@redhat.com>
1943
1944 * hex.c: Add documentation.
1945 (_hex_value): Provide non-ASCII empty table.
1946 (hex_init): Initialize the non-ASCII table.
1947 * functions.texi: Regenerate.
1948
baf716a5 19492002-03-27 Mark Mitchell <mark@codesourcery.com>
1950
1951 * dyn-string.c: Add libgcc exception to copyright notice.
1952
60d10194 19532002-03-26 H.J. Lu (hjl@gnu.org)
1954
1955 * config.table: Support --with-build-subdir.
1956 * configure.in: Likewise.
1957 * configure: Rebuild.
1958
8b7d2865 19592002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
1960
1961 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
1962 seen.
1963
8916275c 19642002-03-12 Mark Mitchell <mark@codesourcery.com>
1965
1966 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
1967 notice.
1968
241f7b9c 19692002-03-11 Douglas B Rupp <rupp@gnat.com>
1970
1971 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
1972
bc95356d 19732002-03-06 Jim Blandy <jimb@redhat.com>
1974
1975 * splay-tree.c (splay_tree_xmalloc_allocate,
1976 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
1977 prototyped definitions. Mark `data' arguments as unused.
1978
5a3c5094 19792002-03-06 Andrew Cagney <ac131313@redhat.com>
1980
1981 * floatformat.c (floatformat_arm_ext_big): Delete definition.
1982
9123512a 19832002-03-04 Phil Edwards <pme@gcc.gnu.org>
1984
1985 * configure.in: Add --enable-install-libiberty option.
1986 * Makefile.in (INSTALLED_HEADERS): New variable.
1987 (install_to_libdir): Possibly also copy headers.
1988 * configure: Regenerated.
1989
5e571023 19902002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
1991
1992 * xmalloc.c (xmalloc_fail): Clarify error message further.
1993
323c06f5 19942002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
1995
1996 * xmalloc.c (xmalloc_fail): Clarify error message.
1997
a3af3ae8 19982002-02-22 Jim Blandy <jimb@redhat.com>
1999
2000 * splay-tree.c (splay_tree_xmalloc_allocate,
2001 splay_tree_xmalloc_deallocate): New functions.
2002 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
2003 above functions and a dummy data pointer.
2004 (splay_tree_new_with_allocator): New function.
2005 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
2006 splay_tree_remove): Use the splay tree's allocation and
2007 deallocation functions.
2008
080f842c 20092002-02-19 Scott Snyder <snyder@fnal.gov>
2010
2011 * testsuite/demangle-expected: Add test case for infinite loop in
2012 demangler.
2013 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
2014 if do_type() doesn't make any progress --- prevents an infinite
2015 loop.
2016
a9e05c62 20172002-02-18 Carlo Wood <carlo@gnu.org>
2018
2019 PR c++/5390
2020 * cplus-dem.c (demangle_integral_value): Accept multi-digit
2021 numbers that do not start with an underscore; This is needed
2022 for integer template parameters. This doesn't break anything
2023 because multi-digit numbers are never followed by a digit.
2024 * testsuite/demangle-expected: Corrected all mangled test
2025 cases with multi-digit template parameters: g++ 2.95.x does
2026 not generate underscores around these parameters.
2027
c6d86b63 20282002-02-05 Jason Merrill <jason@redhat.com>
2029
2030 * cplus-dem.c (flags): Add DMGL_VERBOSE
2031 (cplus_demangle_v3_p): Remove.
2032 (demangle_it): Add DMGL_TYPES to passed flags.
2033 * cp-demangle.c (cplus_demangle_v3_all): Remove.
2034 (cplus_demangle_v3_type): Remove.
2035 (cplus_demangle_v3): Add options parm.
2036
9bd54051 20372002-02-02 H.J. Lu (hjl@gnu.org)
2038
2039 * cp-demangle.c (cp_demangle_type): Do not protect with
2040 IN_LIBGCC2.
2041 (cplus_demangle_v3_all): New.
2042 (cplus_demangle_v3): Call cplus_demangle_v3_all.
2043 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
2044
2045 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
2046 Initialized to cplus_demangle_v3.
2047 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
2048 of cplus_demangle_v3.
2049 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
2050 command line symbol.
2051
2052 * testsuite/regress-demangle: Pass the mangled name at the
2053 command line.
2054
db248273 20552002-02-01 H.J. Lu <hjl@gnu.org>
2056
2057 * cp-demangle.c (cp_demangle_type): Call demangling_new with
2058 DMGL_GNU_V3.
2059
89a5385c 20602002-01-31 Phil Edwards <pme@gcc.gnu.org>
2061
2062 * cp-demangle.c: Revert yesterday's change.
2063
da383dd4 20642002-01-31 Adam Megacz <adam@xwt.org>
2065
2066 * gcc/libiberty/configure.in: Treat mingw the same as cywin
2067 wrt HAVE_SYS_ERRLIST.
2068
1e72f309 20692002-01-30 Phil Edwards <pme@gcc.gnu.org>
2070
2071 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
2072 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
2073 cp_demangle_type.
2074 * testsuite/demangle-expected: New gnu-v3 test.
2075
2c79f170 20762002-01-22 Momchil Velikov <velco@fadata.bg>
2077
2078 * configure.in (variable detection): Use arrays of unspecified
2079 size instead of plain integers.
2080
98b6fc70 20812002-01-18 DJ Delorie <dj@redhat.com>
2082
2083 * Makefile.in (TESTLIB): New. This library is for future
2084 testsuites.
2085 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
2086 break down by letter.
2087 (REQUIRED_OFILES): List long-to-compile files first.
2088 (maint-deps): New, target for updating dependencies.
2089 (dependencies): Update.
2090 * maint-tool: Add dependency-generating option.
2091 * configure.in: Check for _doprnt even if we're not providing it.
2092 * configure: Regenerate.
2093
2094 * _doprnt.c: Modifications to allow compiling on any platform.
2095 * copysign.c: Likewise.
2096 * putenv.c: Likewise.
2097 * setenv.c: Likewise.
2098 * vsprintf.c: Likewise.
2099
b4eac72f 21002002-01-15 Douglas B Rupp <rupp@gnat.com>
2101
2102 * mkstemps.c (mkstemps): On VMS, open temp file with option
2103 that causes it to be deleted when closed.
2104
7806d7a4 21052002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2106
c077395f 2107 * cp-demangle.c (long_options): Const-ify.
2108 * cplus-dem.c (long_options): Likewise.
2109
7806d7a4 2110 * cplus-dem.c (mystrstr): Delete. All callers changed to use
2111 strstr instead.
2112
936c37fd 21132001-12-31 Ira Ruben <ira@apple.com>
2114
2115 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
2116 * configure: Regenerated.
e9894157 2117
21182001-12-24 Douglas B. Rupp <rupp@gnat.com>
2119
2120 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
2121 * configure: Regenerated.
936c37fd 2122
4e3ed534 21232001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
2124
2125 PR other/2719
2126 * cplus-dem.c (consume_count): Treat negative count as an error.
2127 * testsuite/demangle-expected: Added testcase.
2128
8f966bdb 2129Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
2130
2131 * configure.in: Hardcode that vfork works on VMS host.
2132 * configure: Regenerated.
2133
8d87ccec 21342001-12-06 Richard Henderson <rth@redhat.com>
2135
2136 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
2137 (cplus_demangle): Support no_demangling.
2138
31972771 21392001-11-27 Zack Weinberg <zack@codesourcery.com>
2140
2141 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
2142 in libiberty context. Fix typo in leading comment.
2143 * configure.in: Fix various AC_DEFINEs so autoheader works.
2144 If any of vprintf, vsprintf, vfprintf is missing from libc,
2145 then AC_REPLACE_FUNCS(_doprnt).
2146
8e198eb2 21472001-11-26 DJ Delorie <dj@redhat.com>
31972771 2148 Daniel Jacobowitz <drow@mvista.com>
8e198eb2 2149
2150 * Makefile.in (stamp-h): Depend on Makefile for proper
2151 serialization.
2152 (*-subdir): Depend on config.h for proper serialization.
2153
c660fab8 21542001-11-26 DJ Delorie <dj@redhat.com>
2155
2156 * configure.in: Check for alloca.h (for regex.c and putenv.c).
2157 * configure: Regenerate.
2158 * config.h: Add HAVE_ALLOCA_H.
2159
43eb13f7 21602001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2161
81cea2ab 2162 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
2163 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
2164 is available.
43eb13f7 2165
e9fb7b39 2166Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
2167
7b190504 2168 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
2169 * configure.in (HAVE_UINTPTR_T): Test for system defining
2170 uintptr_t and define HAVE_UINTPTR_T appropriately.
2171 * regex.c (uintptr_t): Do not provide a definition if the
2172 system provided one.
2173
e9fb7b39 2174 * regex.c (PREFIX): Provide an alternate definition for
2175 non-ANSI/ISO compilers.
2176 (ARG_PREFIX): Likewise.
2177
448378fc 21782001-11-12 Jim Meyering <meyering@lucent.com>
2179
2180 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
2181 this code would end up calling gettext even in packages built
2182 with --disable-nls.
2183 * getopt.c (_): Likewise.
2184 * regex.c (_): Likewise.
2185
7c9e70dd 21862001-11-03 Alan Modra <amodra@bigpond.net.au>
2187
2188 * configure.in: Cope with missing makeinfo.
ebfeb892 2189 * configure: Regenerate.
7c9e70dd 2190
a3493641 21912001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2192
e500d428 2193 * hex.c (hex_init): Provide empty stub.
2194
a3493641 2195 * hex.c (hex_init): Delete.
2196 (_hex_value): Const-ify and initialize at compile-time.
2197
3de15244 21982001-10-19 H.J. Lu <hjl@gnu.org>
2199
2200 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
2201 necessary.
2202
f0ed5ac1 22032001-10-17 DJ Delorie <dj@redhat.com>
2204
2205 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
2206 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
0af1044a 2207 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
f0ed5ac1 2208 Improve manual formatting.
2209 * functions.texi: Regenerate.
2210
349e8276 22112001-10-15 DJ Delorie <dj@redhat.com>
2212
2213 * Makefile.in (TEXIFILES): Add fnmatch.txh.
2214 (maint-undoc): New.
2215 maint-tool: Add "undoc" tool.
2216 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
2217 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
2218 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
2219 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
2220 documentation.
2221 * fnmatch.txh: New.
2222 * functions.texi: Regenerate.
8cc9ccc9 2223
8a630ee4 22242001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
2225
2226 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
2227 * strtod.c: Use "ISO C" instead of "ANSI C".
2228 * functions.texi: Regenerate.
2229
a3a8a3df 22302001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
2231
2232 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
2233 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
2234 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
2235 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
2236 spelling. Give names to function arguments in documentation. Use
2237 (void) prototypes in documentation.
2238 * functions.texi: Regenerate.
2239
542e9271 22402001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2241
2242 * argv.c (buildargv, tests, main): Const-ify.
2243 * cp-demangle.c (operator_code): Likewise.
2244 * cplus-dem.c (optable, libiberty_demanglers,
2245 cplus_demangle_set_style, cplus_demangle_name_to_style,
2246 print_demangler_list): Likewise.
2247 * hashtab.c (higher_prime_number): Likewise.
2248 * strcasecmp.c (charmap): Likewise.
2249 * strerror.c (error_info, strerror, main): Likewise.
2250 * strncasecmp.c (charmap): Likewise.
2251 * strsignal.c (signal_info): Likewise.
2252
5b7836cc 22532001-09-29 DJ Delorie <dj@redhat.com>
2254
2255 * configure: Regenerate.
2256
e7faea46 22572001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2258
2259 * concat.c: Include stdlib.h.
2260
997fdf4a 22612001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2262
2263 * libiberty.texi: (Top level): Add syncodeindex pg. Add
2264 @dircategory and @direntry directives. Add @finalout.
2265 (many nodes): Lose the next,prev,up pointers on the @nide line.
2266 (Using, Supplemental Functions, Replacement Functions): Fix
2267 markup.
2268 (Functions): Move around, to allow makeinfo to build the manual
2269 without next,prev,up pointers in thye node lines.
2270 (Licenses): Fix typos.
2271
2272 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
2273 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
2274 * functions.texi: Regenerate.
2275
2276 * copying-lib.texi: Lose the next,prev,up pointers on the @node
2277 line.
2278
eb765d0c 22792001-09-27 DJ Delorie <dj@redhat.com>
2280
2281 * configure.in: Don't use in-tree texinfo, because libiberty must
2282 be built before it. Check for makeinfo version 4 or higher.
2283 * functions.texi: Regenerate.
8cc9ccc9 2284
614a23c6 22852001-09-20 DJ Delorie <dj@redhat.com>
2286 Phil Edwards <pedwards@disaster.jaj.com>
8cc9ccc9 2287
614a23c6 2288 * configure.in (MAKEINFO, PERL): Detect these.
2289 (--enable-maintainer-mode): Add.
2290 * configure: Regenerate.
2291 * Makefile.in (MAKEINFO, PERL): Define.
2292 (libiberty.info, libiberty.dvi, libiberty.html): New.
2293 (CFILES): Add bsearch.c.
2294 (CONFIGURED_OFILES): New, list of objects configure might add.
2295 (maint-missing, maint-buildall): New, for maintainers only.
2296 (clean, mostlyclean): Add info/dvi/html files.
2297 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
2298 * gather-docs: New, for maintainers.
2299 * maint-tool: New, for maintainers.
2300 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
2301 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
2302 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
2303 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
2304 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
2305 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
2306 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
2307 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
2308 documentation.
8cc9ccc9 2309
92f03c00 23102001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2311
2312 * concat.c (reconcat): Fix for traditional C.
2313
0be2ebc7 23142001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2315
2316 * concat.c (reconcat): New function.
2317
add62f6a 23182001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2319
9659201a 2320 * concat.c (vconcat_length, vconcat_copy, concat_length,
2321 concat_copy, concat_copy2): New functions.
2322 (concat): Use vconcat_length/vconcat_copy.
2323
add62f6a 2324 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
2325 Define.
2326
2bfbbd2b 23272001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2328
2329 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
2330 VA_FIXEDARG & VA_CLOSE.
8cc9ccc9 2331
2bfbbd2b 2332 * vasprintf.c: Check HAVE_STRING_H when including string.h.
2333 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
2334 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
2335
68036f05 23362001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2337
2338 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
2339
958cb671 23402001-08-23 Ulrich Drepper <drepper@redhat.com>
2341
2342 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
2343
23442001-08-23 Ulrich Drepper <drepper@redhat.com>
2345
2346 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2347 instead of mbrtowc.
2348 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2349 wcslen, and __wcscoll instead of wcscoll.
2350
b266b68b 23512001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2352
ff02de61 2353 * fibheap.c (fibheap_init, fibnode_init): Remove.
2354 (fibheap_new, fibnode_new): Use xcalloc to allocate and
2355 initialize memory.
2356 (fibheap_insert): Remove check for node allocation failure.
b266b68b 2357
c6028964 23582001-08-21 Richard Henderson <rth@redhat.com>
2359
2360 * Makefile.in (fibheap.o): Depend on config.h.
2361 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
2362 functions for inlining.
2363
3652f680 2364Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
2365
2366 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
2367 hosting on cygwin.
2368 * configure: Regenerate.
2369
95f0a124 23702001-08-20 Andrew Cagney <ac131313@redhat.com>
2371
2372 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
2373 HARRIS_FLOAT_FORMAT.
2374 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
2375 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
2376 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
2377 (floatformat_m88110_harris_ext): New float formats.
2378
522a00cd 23792001-08-20 Daniel Berlin <dan@cgsoftware.com>
2380
2381 * fibheap.c: New file. Fibonacci heap.
2382
2383 * Makefile.in (CFILES): Add fibheap.c.
2384 (REQUIRED_OFILES): Add fibheap.o.
2385 (fibheap.o): Add dependencies for fibheap.o.
2386
6a51e4c4 23872001-08-17 Christopher Faylor <cgf@cygnus.com>
2388
2389 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
2390 * configure: Regenerate.
2391
80f07f6c 23922001-08-16 Richard Henderson <rth@redhat.com>
2393
2394 * hashtab.c (htab_hash_string): New.
2395
e9106811 23962001-08-13 Andrew Cagney <ac131313@redhat.com>
2397
2398 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
2399 name.
2400
458e9fd0 24012001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
2402
2403 * regex.c (wcs_regex_compile): Use appropriate string
2404 to compare with collating element.
2405 Fix the padding for the alignment.
2406
da8a7320 24072001-08-10 Andrew Cagney <ac131313@redhat.com>
2bce2a69 2408
2409 * lbasename.c (lbasename): Change function definition to return a
2410 const char pointer.
2411
6539a5d8 24122001-08-07 Jason Merrill <jason_merrill@redhat.com>
2413
2414 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
2415 for".
2416
2644ae20 24172001-08-03 Richard Henderson <rth@redhat.com>
2418
2419 * Makefile.in (concat.o): Depend on config.h.
2420
6c9ffcbc 24212001-07-30 Andreas Jaeger <aj@suse.de>
2422
2423 * concat.c: Include "config.h".
2424
9f21bac8 24252001-07-30 Andreas Jaeger <aj@suse.de>
2426
2427 * regex.c: Declare wcs functions only if compiling with
2428 MBS_SUPPORT.
2429 Don't use #elif for traditional C.
2430
24312001-07-23 Ulrich Drepper <drepper@redhat.com>
2432
2433 * regex.c: Revamp memory allocation for WCHAR functions to
2434 not use too much stack.
2435
24362001-07-30 Andreas Jaeger <aj@suse.de>
2437
2438 * regex.c: Declare wcs functions only if compiling with
2439 MBS_SUPPORT.
2440 Don't use #elif for traditional C.
2441
2bbbdf1a 24422001-07-25 Daniel Jacobowitz <drow@mvista.com>
2443
2444 * Makefile.in (regex.o): Add dependency on config.h.
2445
b92e80db 24462001-07-18 Andreas Schwab <schwab@suse.de>
2447
2448 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
2449 underscore character.
2450
24512001-07-18 Ulrich Drepper <drepper@redhat.com>
2452
2453 * regex.c: Limit string length printed in debug messages to 100
2454 chars.
2455
24562001-07-18 Andreas Jaeger <aj@suse.de>
2457
2458 * regex.c: Place under LGPL version 2.1.
2459
7703a7de 24602001-07-10 Jeff Johnston <jjohnstn@redhat.com>
2461
2462 * Makefile.in: Add support for regex code.
2463 * regex.c: New file.
2464
8568af22 24652001-07-05 Mark Klein <mklein@dis.com>
2466
2467 * Makefile.in: Add ffs.c dependency.
2468 * configure.in: Add ffs.c.
2469 * ffs.c: New file.
2470
c1a60b7d 24712001-06-18 Richard Henderson <rth@redhat.com>
2472
2473 * concat.c: Include <sys/types.h>.
2474
66806be2 24752001-06-11 Loren J. Rittle <ljrittle@acm.org>
2476
2778f1dc 2477 bootstrap/3106
66806be2 2478 * strerror.c (sys_nerr): Hide the OS header version.
2479 * strsignal.c (sys_nsig): Likewise.
2480
222ce6b9 24812001-06-10 Richard Henderson <rth@redhat.com>
2482
2483 * concat.c: Include string.h. Fix int vs size_t usage.
2484 Simplify the iteration loops. Use memcpy.
2485
cb6758b9 24862001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2487
2488 * partition.c: Fix misspelling of `implementation'.
2489
091eef96 24902001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2491
2492 * md5.c (md5_init_ctx): Declare constants as unsigned.
2493 (md5_process_block): Likewise.
2494
e5f55ef4 24952001-05-07 Zack Weinberg <zackw@stanford.edu>
2496
2497 * cp-demangle.c (demangle_v3_with_details,
2498 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
2499 function definition.
2500 * ternary.c: Use K+R style function definitions. Use PTR, not
2501 void *. Make arguments constant where possible.
2502
c99b4ef9 25032001-05-07 Mark Mitchell <mark@codesourcery.com>
2504
2505 * splay-tree.h (splay_tree_max): New function.
2506 (splay_tree_min): Likewise.
2507
eec19420 25082001-04-15 Daniel Berlin <dan@cgsoftware.com>
2509
2510 * ternary.c: New file - Ternary search tree implementation.
2511
2512 * Makefile.in: Add ternary.o, and ternary.c dependencies.
2513
673b6e5a 25142001-04-03 Zack Weinberg <zackw@stanford.edu>
2515
2516 * make-temp-file.c (try): Inline.
2517
b8f02fb2 25182001-02-28 Richard Henderson <rth@redhat.com>
2519
2520 * Makefile.in (make-temp-file.o): Depend on config.h.
2521
b130ede9 25222001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2523
2524 * memchr.c (memchr): Adjust condition to avoid infinite loop.
2525
5a4fcef0 25262001-03-23 Jakub Jelinek <jakub@redhat.com>
2527
2528 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
2529 `_' not followed by a digit is invalid.
2530
c83c8218 25312001-03-22 Jim Blandy <jimb@redhat.com>
2532
2533 * cp-demangle.c (string_list_delete): Use dyn_string_delete
2534 instead of free, to free the contents as well as the string
2535 structure.
2536
7e660a1b 25372001-03-21 Zack Weinberg <zackw@stanford.edu>
2538
2539 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
2540 Don't default P_tmpdir to anything. Try /var/tmp before
2541 /usr/tmp.
2542
e6351181 25432001-03-20 Zack Weinberg <zackw@stanford.edu>
2544
2545 * choose-temp.c: Split off make_temp_file, and the code
2546 duplicated between it and choose_temp_base, into...
2547 * make-temp-file.c: ... here; new file.
2548
2549 * Makefile.in (CFILES): Add make-temp-file.c.
2550 (REQUIRED_OFILES): Add make-temp-file.o.
2551
3a18c9fc 25522001-03-20 Jim Blandy <jimb@redhat.com>
2553
2554 * cp-demangle.c (struct demangling_def): New fields:
2555 is_constructor and is_destructor.
2556 (demangling_new): Initialize them.
2557 (demangle_ctor_dtor_name): Set them, if we detect a constructor
2558 or destructor.
2559 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
2560 is_gnu_v3_mangled_dtor): New functions.
2561
d219f684 25622001-03-20 Jason Merrill <jason@redhat.com>
2563
2564 * cplus-dem.c (main): Skip initial $.
2565
dfc58e62 25662001-03-15 Michael Meissner <meissner@redhat.com>
2567
2568 * hashtab.c (higher_prime_number): Silence warning that 4294967291
2569 might be a signed integer under pre-ISO C systems.
2570
0bce9b89 25712001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
2572 John David Anglin <dave@hiauly1.hia.nrc.ca>
2573
2574 * libiberty/lbasename.c: New file.
2575 * libiberty/Makefile.in: Update for lbasename.
2576
012f1707 25772001-03-06 Zack Weinberg <zackw@stanford.edu>
2578
2579 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
2580 * configure.in: Replace all alloca logic with a simple use of
2581 the above new macro.
2582 * config.table: Kill *-*-beos* entry.
2583 * config/mh-beos: Delete.
2584 * configure, config.in: Regenerate.
2585
2586 * Makefile.in (ALLOCA, HFILES): Kill.
2587 (REQUIRED_OFILES): Add alloca.o.
2588 (alloca.o): Depend on libiberty.h.
2589 (argv.o): Don't depend on alloca-conf.h.
2590 * alloca-conf.h: Delete.
2591 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
2592 blocks. Provide the C alloca unconditionally. Use PTR where
2593 appropriate. Make i00afunc static.
2594 * argv.c: Don't include alloca-conf.h.
2595
163369e7 25962001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2597
2598 * cplus-dem.c (main): Cast enum style to int.
2599
39fb1bb6 26002001-02-16 Loren J. Rittle <ljrittle@acm.org>
2601
2602 * cplus-dem.c (main): Initialize style.
2603
bace101a 26042001-02-02 Phil Edwards <pme@sources.redhat.com>
2605
2606 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
2607
1c1033dd 26082001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
2609
2610 Add support for Java demangling under the v3 ABI:
2611 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
2612 (struct demangling_def): Add `style' field.
2613 (demangling_new): New parameter `style'. Set it in demangling_t.
2614 (demangle_prefix): Use NAMESPACE_SEPARATOR.
2615 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
2616 (cp_demangle): New parameter `style'. Pass it to demangling_new().
2617 (main): Call cp_demangle with extra parameter.
2618 (java_demangle_v3): New function.
2619 (java_builtin_type_names): New. Table of primitive type names used
2620 for Java demangling.
2621 (demangle_builtin_type): Look up in java_builtin_type_names if doing
2622 Java output.
012f1707 2623 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
1c1033dd 2624 demangling.
2625 (long_options): Remove obsolete `java' option.
2626 (main): Remove explicit handling of `java' option. Instead, pass style
2627 parameter in cplus_demangle flags as gdb does.
2628 * testsuite/demangle.expected: Add some Java test cases.
2629
fec9182b 26302000-12-29 DJ Delorie <dj@redhat.com>
2631
2632 * fnmatch.c: Make the note about the origins of this file more
2633 accurate, at least until we can sync with glibc.
2634 * getopt.c: Ditto.
2635 * getopt1.c: Ditto.
2636 * md5.c: Ditto.
2637 * obstack.c: Ditto.
2638
5b9c32cc 26392000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2640
2641 * bsearch.c: New file.
2642 * configure.in (funcs): Add bsearch.
2643 (AC_CHECK_FUNCS): Likewise.
2644 * configure, config.in: Regenerate.
2645
a973e2b1 26462000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2647
2648 * safe-ctype.c: #include "ansidecl.h".
2649 * strtod.c: Likewise.
2650
14282c1a 26512000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2652
2653 * strtoul.c: Include safe-ctype.h, not ctype.h.
2654
93ce8ce4 26552000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
2656
2657 * safe-ctype.c: New file.
2658 * Makefile.in (CFILES): Add safe-ctype.c.
2659 (REQUIRED_OFILES): Add safe-ctype.o.
2660
2661 * argv.c: Define ISBLANK and use it, not isspace.
2662 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
2663 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
2664 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
2665 before calling TOLOWER(c)/TOUPPER(c).
2666
be6afa8f 26672000-12-07 Mike Stump <mrs@wrs.com>
e5fb0a98 2668
2669 * Makefile.in (distclean): When cleaning, remove testsuite.
2670
cf0ad6a8 26712000-12-05 Jason Merrill <jason@redhat.com>
2672
2673 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
2674 name before allocating the dyn_string.
2675
bb505139 26762000-12-04 Jason Merrill <jason@redhat.com>
2677
2678 * cp-demangle.c: s/new_abi/v3/.
2679 * cplus-dem.c: Likewise.
2680 (current_demangling_style): Now auto_demangling.
2681 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
93ce8ce4 2682 (main): Use standard symbol chars for auto_demangling.
bb505139 2683
54b3a5af 26842000-11-26 Mark Mitchell <mark@codesourcery.com>
2685
2686 * hashtab.c (higher_prime_number): Use a table, rather than a
2687 seive, to find the next prime.
2688
9628d706 26892000-11-22 H.J. Lu <hjl@gnu.org>
2690
2691 * cplus-dem.c (main): Handle gnat_demangling.
2692
ec255163 26932000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2694
2695 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
2696 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
2697 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
2698 argument form of AC_DEFINE in dummy definitions block. Use
2699 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
2700 in dummy block. Preload cache variables instead of bypassing
2701 tests, where possible.
2702 * acconfig.h: Removed.
2703
2704 * xmalloc.c (xmalloc_failed): New function, does error
2705 reporting on failed allocation.
2706 (xmalloc, xcalloc, xrealloc): Use it.
2707
626946fb 27082000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
2709
2710 * cplus-dem.c (cplus_demangle): Fix formatting.
2711 (grow_vect): Ditto.
2712 (ada_demangle): Ditto.
2713 (internal_cplus_demangle): Ditto.
2714 (mop_up): Ditto.
2715
27162000-11-21 H.J. Lu <hjl@gnu.org>
2717
2718 * cplus-dem.c (main): Handle java_demangling.
2719
918a89ef 27202000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2721
2722 * cplus-dem.c (grow_vect): Prototype.
2723 (ada_demangle): Cast the arg of ctype macros to unsigned char.
2724
582f72ad 27252000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
2726
2727 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
2728 parameter `option'.
2729
0d6e3c59 27302000-11-15 Kenneth Block <kenneth.block@compaq.com>
2731
42ded3a1 2732 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0d6e3c59 2733 be used in GCC.
2734
9df8b754 27352000-11-15 Kenneth Block <kenneth.block@compaq.com>
d7c1c148 2736
582f72ad 2737 * cplus-dem.c: Add gnat demangler. Add java to demangle style
d7c1c148 2738 list.
2739
e4c2dc6e 27402000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
2741
2742 * hashtab.c (htab_expand): Change to return int. Use calloc or
9f21bac8 2743 xcalloc depending on htab->return_allocation_failure. Return zero
2744 if calloc fails.
e4c2dc6e 2745 (htab_create): Update comment to cover memory allocation.
2746 (htab_try_create): New.
2747 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
9f21bac8 2748 Update comment to cover this.
e4c2dc6e 2749
696d6593 27502000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
2751
2752 * hashtab.c: Change void * to PTR where necessary.
2753 (htab_create, htab_expand): Correct formatting of comment before
2754 function.
2755
8f2b45d4 27562000-10-22 Alex Samuel <samuel@codesourcery.com>
f99edf23 2757
2758 * cp-demangle.c (string_list_def): Add caret_position and comments.
2759 (result_caret_pos): New macro.
2760 (result_append_string): Rename to...
2761 (result_add_string): ... this, and insert at caret position.
ec255163 2762 Rename throughout.
f99edf23 2763 (result_append): Rename to...
2764 (result_add): ... this, and insert at caret position. Rename
ec255163 2765 throughout.
f99edf23 2766 (result_append_char): Rename to...
2767 (result_add_char): ... this, and insert at caret position. Rename
ec255163 2768 throughout.
f99edf23 2769 (result_append_space): Remove.
2770 (string_list_new): Initialize caret position.
2771 (result_add_separated_char): Use caret position.
2772 (result_get_caret): New funtion.
2773 (result_set_caret): Likewise.
2774 (result_shift_caret): Likewise.
2775 (result_previous_char_is_space): Likewise.
2776 (substitution_start): Use caret position.
2777 (substitution_add): Likewise.
2778 (demangling_new): Initialize caret position.
2779 (demangle_encoding): Use caret position.
ec255163 2780 (demanglin_nested_name): Put CV qualifiers after name.
f99edf23 2781 (demangle_type_ptr): Use switch statement. Handle pointers to
2782 arrays. Don't use result_append_space. Use caret position.
2783 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ec255163 2784 call to demangle_array_type.
2785 (demangle_array_type): Add parameter to handle pointers to arrays.
2786
a4e59c31 27872000-10-01 Mark Mitchell <mark@codesourcery.com>
2788
2789 * splay-tree.c (splay_tree_insert): Fix formatting.
2790
e41f0d80 27912000-09-16 Mark Mitchell <mark@codesourcery.com>
2792
2793 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
2794
83d86ada 27952000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2796
2797 * splay-tree.c: #include <stdio.h>.
2798
78631810 27992000-09-14 Hans-Peter Nilsson <hp@axis.com>
2800
2801 * testsuite/demangle-expected: Add two tests for anonymous
2802 namespaces.
2803 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
2804
508f18c8 28052000-09-10 Mark Mitchell <mark@codesourcery.com>
2806
2807 * splay-tree.c (splay_tree_predecessor): New function.
2808 (splay_tree_successor): Likewise.
2809
1a2d2193 28102000-09-10 Hans-Peter Nilsson <hp@axis.com>
2811
2812 * testsuite/demangle-expected: Add four tests for type_info
2813 mangling.
1a2d2193 2814 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
2815 for a non-template non-qualified type_info function or node.
2816
09656987 28172000-09-08 Alex Samuel <samuel@codesourcery.com>
2818
2819 * cp-demangle.c: Fix copyright banner.
2820
7cc2d24b 28212000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2822
2823 * md5.c: #include "ansidecl.h".
2824
b83e8722 28252000-09-06 Alex Samuel <samuel@codesourcery.com>
2826
2827 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
2828 (demangle_type): Handle substitution candidates correctly in the
2829 face of special substitutions.
2830
cf70278e 28312000-09-05 Alex Samuel <samuel@codesourcery.com>
2832
2833 * cp-demangle.c (demangle_encoding): Rename variable.
2834 (demangle_name): Rename parameter. Handle return type
2835 suppression.
2836 (demangle_nested_name): Rename parameter.
2837 (demangle_prefix): Likewise. Change return type suppression.
2838 (demangle_unqualified_name): Add parameter. Flag constructors and
2839 conversion operators.
2840 (demangle_special_name): Fix comment.
2841 (demangle_type): Rename variable.
2842 (demangle_bare_function_type): Check for missing return type and
ec255163 2843 parameter.
cf70278e 2844 (demangle_class_enum_type): Rename parameter.
2845 (demangle_discriminator): Fix misspelling in comment.
2846
4aabc076 28472000-08-31 DJ Delorie <dj@redhat.com>
2848
2849 * configure.in (Cygwin): special case cygwin only when we're
2850 building cygwin, not when we're hosting cygwin.
2851
804ddfd1 28522000-09-04 Alex Samuel <samuel@codesourcery.com>
2853
2854 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
ec255163 2855 <expression>.
2856
e015a852 28572000-09-04 Alex Samuel <samuel@codesourcery.com>
2858
2859 * cp-demangle.c (demangle_type_ptr): Increment position past
2860 pointer and reference characters.
2861
2b6805b4 28622000-09-04 Alex Samuel <samuel@codesourcery.com>
2863
2864 * cp-demangle.c (demangle_nv_offset): New function.
2865 (demangle_v_offset): Likewise.
2866 (demangle_call_offset): Likewise.
2867 (demangle_special_name): Update thunk demangling to comply with
2868 ABI changes.
ec255163 2869
40e00cb0 28702000-09-03 Alex Samuel <samuel@codesourcery.com>
2871
2872 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
2873 (substitution_def): Remove template_parm_number.
2874 (NOT_TEMPLATE_PARM): Remove.
2875 (result_insert_string): New macro.
2876 (result_insert): Likewise.
2877 (result_insert_char): Likewise.
2878 (substitution_add): Remove last parameter. Don't store template
ec255163 2879 parm number.
40e00cb0 2880 (BFT_NO_RETURN_TYPE): Define as NULL.
2881 (demangle_encoding): Adjust call to demangle_bare_function_type.
2882 (demangle_name): Adjust substitution. Adjust call to
ec255163 2883 substitution_add.
40e00cb0 2884 (demangle_prefix): Adjust call to substitution_add.
2885 (demangle_identifier): Handle anonymous namespaces.
2886 (demangle_operator_name): Change demangling of vendor-extended
2887 operator to match ABI changes.
2888 (demangle_type_ptr): Change parameters. Make recursive. Handle
ec255163 2889 substitutions here.
40e00cb0 2890 (demangle_type): Adjust calls to demangle_template_param,
2891 substitution_add, and demangle_type_ptr. Fix substitution of
2892 templated types.
2893 (demangle_function_type): Change parameter to a pointer.
2894 (demangle_bare_function_type): Likewise. Adjust insertion point.
2895 (demangle_template_param): Remove last parameter.
2896 (demangle_expr_primary): Remove unused variable. Adjust call to
ec255163 2897 demangle_template_param.
40e00cb0 2898 (is_mangled_char): Accept `$' and `.'.
2899 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
2900 * dyn-string.c (dyn_string_insert_char): New function.
2901
01f404a2 29022000-08-31 Hans-Peter Nilsson <hp@axis.com>
2903
2904 * testsuite/demangle-expected: Add nine tests for
2905 underscore-after-number followed by five tests for name-signature
2906 delimiter.
2907
d74245d4 29082000-08-28 Richard Henderson <rth@cygnus.com>
2909
2910 * Makefile.in (md5.o): Depend on config.h.
2911
19f716e5 29122000-08-28 Jason Merrill <jason@redhat.com>
2913
2914 * Makefile.in (REQUIRED_OFILES): Add md5.o.
2915 (CFILES): Add md5.c.
2916 * md5.c: New file.
2917
f8aeab41 29182000-08-27 Alex Samuel <samuel@codesourcery.com>
2919
2920 * cp-demangle.c (demangle_name): Initialize template_p in local
2921 name case. Don't re-add substitutions as candidates.
2922 (demangle_nested_name): Use <unqualified-name>.
2923 (demangle_prefix): Likewise. Don't add template names as
2924 substitution candidates twice, or re-add a substitution or the
2925 last prefix component.
2926 (demangle_local_name): Adjust output format.
2927
62c2feed 29282000-08-25 Alex Samuel <samuel@codesourcery.com>
2929
2930 * cp-demangle.c (result_add_separated_char): Change parameter to
2931 int.
2932 (substitution_add): Don't check for duplicates. Check if
2933 previously allocated size is zero.
2934 (demangle_name): Remove duplicate check for std substitution.
2935 Clear template flag appropriately.
2936 (demangle_prefix): Remove argument to demangle_substitution.
2937 Don't check that template flag is already set.
2938 (demangle_operator_name): Add pt operator.
2939 (demangle_type): Don't treat r as built-in type. Remove argument
2940 to demangle_substitution. Fix substitution candidate mechanics.
2941 Handle <template-template-parm>s. Improve comments.
ec255163 2942 (demangle_template_param): Don't handle template arg lists here.
62c2feed 2943 (demangle_substitution): Remove parameter.
2944 (print_usage): Remove extra fprintf option.
2945
ee1d4c3d 29462000-08-24 Greg McGary <greg@mcgary.org>
2947
2948 * libiberty/random.c (end_ptr): Revert previous change.
2949
f0bff53d 29502000-08-24 Greg McGary <greg@mcgary.org>
2951
2952 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
2953 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
2954 * libiberty/random.c (end_ptr): Likewise.
2955
c1b316c0 29562000-08-23 Alex Samuel <samuel@codesourcery.com>
2957
2958 * cp-demangle.c (result_close_template_list): Remove function.
2959 (result_add_separated_char): New function.
2960 (result_open_template_list): New macro.
2961 (result_close_template_list): Likewise.
2962 (demangle_prefix): Don't set template_p if the
2963 prefix ends with a ctor name.
2964 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
2965 (demangle_type): Check for template args after substitution.
2966 (demangle_template_args): Use result_open_template_list.
ec255163 2967
385b48fc 29682000-08-02 Zack Weinberg <zack@wolery.cumb.org>
2969
2970 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
2971
ec255163 29722000-07-26 Dave Pitts <dpitts@cozx.com>
ba886691 2973
2974 * config/mh-openedition.h: Added -DLE370 definition.
2975
8fc0efd2 29762000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
2977
2978 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
2979 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
2980 Cast program to 'char *' in errmsg_arg assignment.
2981 (PWAIT_ERROR): Define.
2982 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
2983 to DJGPP's WIF* macros.
2984
a1d4f79a 29852000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
2986 Jeff Law <law@cygnus.com>
2987
98b4c197 2988 * getcwd.c: Include string.h, stdlib.h for prototypes
2989
a1d4f79a 2990 * Makefile.in (rename.o, waitpid.o): Depend on config.h
98b4c197 2991 * rename.c: Include config.h, unistd.h
2992 * waitpid.c: Include config.h, sys/wait.h
a1d4f79a 2993
01f404a2 29942000-07-24 Hans-Peter Nilsson <hp@axis.com>
2995
2996 * cplus-dem.c (work_stuff_copy_to_from): New.
2997 (delete_non_B_K_work_stuff): New.
2998 (delete_work_stuff): New.
2999 (mop_up): Break out work_stuff partly destruction to
3000 delete_non_B_K_work_stuff.
3001 (iterate_demangle_function): New.
3002 (demangle_prefix): Call iterate_demangle_function instead of
3003 demangle_function_name. Leave handling of name-signature
3004 __-delimiters to iterate_demangle_function.
3005 (demangle_integral_value): Strip an optional
3006 following underscore cautiously. Handle negative numbers.
3007
f2e5a608 30082000-07-24 Daniel Berlin <dberlin@redhat.com>
3009
ec255163 3010 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
f2e5a608 3011 if (AUTO_DEMANGLING || GNU_DEMANGLING)
3012
65bcf503 30132000-07-21 Alex Samuel <samuel@codesourcery.com>
3014
3015 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
3016 allocating ctor mangling.
3017 (demangle_array_type): Handle empty and non-constant array length.
3018
68e6b6e1 30192000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
a451eef0 3020 Jeff Law <law@cygnus.com>
3021
1a163ca8 3022 * configure.in (AC_CHECK_HEADERS): Add time.h.
3023 (AC_HEADER_TIME): Add check.
3024 * configure, config.in: Regenerate.
3025 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
3026
a451eef0 3027 * configure.in (AC_CHECK_HEADERS): Add limits.h.
3028 * configure, config.in: Regenerate.
3029 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
3030 * strtol.c, strtoul.c: #include "config.h". Portably #include
3031 <limits.h> and/or <sys/param.h>.
3032 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
68e6b6e1 3033
fb758229 3034 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
3035 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
3036 * configure, config.in: Regenerate.
3037 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
3038
68e6b6e1 3039 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
3040
ad46fec4 30412000-07-21 Mike Stump <mrs@wrs.com>
3042
3043 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
7b23d366 3044 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
ad46fec4 3045
bb37062f 30462000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3047
3048 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
3049
3050 * setenv.c (setenv): Initialize variable `ep'.
3051
3052 * sigsetmask.c (abort): Prototype.
3053
3054 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
3055 __STDC__ for stdarg.h include.
3056 (int_vasprintf): Prototype.
3057 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
3058 definition. Cast `global_total_width' in comparison.
3059 (main): Prototype. Return a value.
3060
3061 * vfork.c (fork): Prototype.
3062
3063 * xexit.c: Include config.h.
3064
6cb730c2 30652000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
3066
3067 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
3068 and print it with %u.
3069
e42d7fe1 30702000-07-17 Hans-Peter Nilsson <hp@axis.com>
3071
3072 * testsuite/regress-demangle (failed test): Show result and
3073 expected output.
3074
04ef60ef 30752000-07-07 Andrew Haley <aph@cygnus.com>
3076
3077 * cplus-dem.c (main): fflush() after emitting last char before
3078 waiting for input.
3079
b7f68aff 30802000-06-28 Alex Samuel <samuel@codesourcery.com>
3081
3082 * cp-demangle.c (demangle_encoding): Accept no substitutions.
3083 (demangle_name): Handle <substitution> followed by
3084 <unqualified-template-name>.
3085 (demangle_type): Follow special substitutions with
3086 <class-enum-type>
3087 (demangle_subtitution): Set template_p for special substitutions.
3088 (main): Fix typos.
ec255163 3089
597f928d 30902000-06-27 Alex Samuel <samuel@codesourcery.com>
3091
3092 * cp-demangle.c (demangle_special_name): Swap base and derived
3093 class when demangling construction vtables.
3094
140d75d7 30952000-06-21 Alex Samuel <samuel@codesourcery.com>
3096
3097 * cp-demangle.c: Don't include ctype.h.
3098 (IS_DIGIT): New macro.
3099 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
3100 instead of isdigit and isalpanum.
3101 (demangling_def): Make name and next const pointers.
3102 (STATUS_ALLOCATION_FAILED): New status code.
3103 (dyn_string_append_space): Handle failure in
3104 dyn_string_append_char.
3105 (int_to_dyn_string): Likewise. Change return value to status_t.
3106 (string_list_new): Handle failure of dyn_string_init.
3107 (result_close_template_list): Change return type to status_t.
3108 Handle failure in dyn_string_append.
3109 (result_push): Change return value to status_t. Handle failure in
3110 string_list_new. Handle failure of result_push throughout.
3111 (substitution_add): Change return value to status_t. Handle
3112 dyn_string failures. Handle failure of substitution_add
3113 throughout.
3114 (template_arg_list_new): Return NULL on allocation failure.
3115 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
3116 Handle error result throughout.
3117 (result_append): Likewise.
3118 (result_append_char): Likewise.
3119 (result_append_space): Likewise.
3120 (demangling_new): Make argument a const pointer. Handle
3121 allocation failures.
3122 (demangle_template_args): Handle failure in template_arg_list_new
3123 and result_close_template_list.
3124 (demangle_discriminator): Return if int_to_dyn_string fails.
3125 (cp_demangle): Likewise.
3126 (cp_demangle_type): New function.
3127 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
3128 memory allocation failure.
3129 (main): Likewise.
3130 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
3131 IN_LIBGCC2.
3132 (dyn_string_init): Change return value to int. Handle
3133 RETURN_ON_ALLOCATION_FAILURE case.
3134 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
3135 (dyn_string_release): Delete the dyn_string.
3136 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
3137 (dyn_string_copy): Change return type to int.
3138 (dyn_string_copy_cstr): Likewise.
3139 (dyn_string_prepend): Likewise.
3140 (dyn_string_prepend_cstr): Likewise.
3141 (dyn_string_insert): Likewise.
3142 (dyn_string_insert_cstr): Likewise.
3143 (dyn_string_append): Likewise.
3144 (dyn_string_append_cstr): Likewise.
3145 (dyn_string_append_char): Likewise.
3146 (dyn_string_substring): Likewise.
ec255163 3147
210aba33 31482000-06-09 Zack Weinberg <zack@wolery.cumb.org>
3149
3150 * cp-demangle.c (demangle_operator_name): Add spaces before
3151 names beginning with a letter: delete, delete[], new, new[],
3152 sizeof.
3153 (demangle_special_name): Handle TF <type> and TJ <type>.
3154
0b4450c1 3155Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
3156
3157 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
3158
e5d6924a 3159Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
3160
3161 * cp-demangle.c (stdio.h): File included unconditionaly.
3162 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
3163 * dyn-string.c (stdio.h): File included.
3164 * partition.c (partition_print): No `&' needed to take the address of
3165 a function.
3166
da8bd873 31672000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3168
3169 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ec255163 3170
da8bd873 3171 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
3172
3173 * cp-demangle.c (demangle_char): Change parameter from char to int.
3174 (demangle_expression, demangle_expr_primary): Remove extra
3175 semi-colon in prototype.
3176
3177 * dyn-string.c (dyn_string_append_char): Change parameter from
3178 char to int.
3179
3180 * memcmp.c (memcmp): Constify.
3181
3182 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
3183 __extension__.
3184
3185 * partition.c (elem_compare): Prototype. Don't cast away
3186 const-ness.
3187
3188 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ec255163 3189
4b7bc488 31902000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3191
3192 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
3193
3194 * cp-demangle.c: Include demangle.h.
3195 (template_arg_list_new): DeANSIfy.
3196 (cp_demangle): Make static and add prototype.
3197 (operator_code, operators): Constify.
3198 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
3199
7ae7b54c 32002000-06-05 Alex Samuel <samuel@codesourcery.com>
3201
3202 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
3203 unsigned char.
3204 (demangle_unqualified_name): Likewise.
3205 (demangle_number_literally): Likewise.
3206 (demangle_type): Likewise.
3207 (demangle_substitution): Likewise.
3208 (is_mangled_char): Likewise, for isalnum.
3209
168d63e5 32102000-06-04 Alex Samuel <samuel@codesourcery.com>
3211
3212 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
3213 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
3214 (cp-demangle.o): New dependency.
3215 (dyn-string.o): Likewise.
3216
3217 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
3218
3219 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
3220 demangler.
3221 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
3222 demangling mode.
3223 (gnu_new_abi_symbol_characters): New function.
3224 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
3225 file.
3226 * cp-demangle.c: New file.
ec255163 3227
b5495c1d 3228Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
3229
3230 * floatformat.c: Add name to each floatformat field.
3231
8fab1737 3232Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
3233
3234 * Makefile.in (objalloc.o): Depend on config.h
3235
317ab997 32362000-05-29 Zack Weinberg <zack@wolery.cumb.org>
3237
3238 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
3239 if HAVE_STRING_H.
3240 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
3241 * objalloc.c: Include config.h. Include stdlib.h and don't
3242 declare malloc or free if HAVE_STDLIB_H.
3243 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
3244 else declare malloc without prototype. Include string.h if
3245 HAVE_STRING_H, else declare memset without prototype. Don't
3246 include stddef.h.
3247
874478ba 32482000-05-23 Mike Stump <mrs@wrs.com>
3249
3250 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
9f21bac8 3251 -j3.
874478ba 3252
55de1520 32532000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3254
3255 * xmalloc.c: Include config.h for HAVE_SBRK definition.
3256
e51b357b 32572000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
3258
ec255163 3259 * hashtab.c (hash_pointer): Delete low-order bits which are
e51b357b 3260 probably zero, also eliminate a warning on alpha.
3261
9e362499 32622000-05-15 David Edelsohn <edelsohn@gnu.org>
3263
e390e838 3264 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
9e362499 3265 on $(enable_shared).
3266
06c6487f 32672000-05-10 Jakub Jelinek <jakub@redhat.com>
3268
3269 * config.table: Use mh-sparcpic for sparc*-*-*.
3270
0baf89fb 32712000-05-08 Nick Clifton <nickc@cygnus.com>
3272
3273 * Makefile.in (CFILES): Add strncmp.c.
3274 (NEEDED): Add strncmp.
3275
59f72e4d 32762000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3277
3278 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
3279 Cast the arguments to `islower' to `unsigned char'.
3280 (print_demangler_list): Prototype.
3281
fb0c90ed 3282Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
3283
3284 * sort.c (UCHAR_MAX): Provide fallback definition.
3285
167a5f18 32862000-04-29 Alexandre Oliva <aoliva@cygnus.com>
3287
3288 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
3289 SUBDIRS.
3290
6f572555 32912000-04-28 Kenneth Block <block@zk3.dec.com>
3292 Jason Merrill <jason@casey.cygnus.com>
3293
ec255163 3294 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
3295 (cplus_demangle_set_style): New function for setting style.
3296 (cplus_demangle_name_to_style): New function to translate name.
6f572555 3297
b3524c8f 32982000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3299
3300 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
3301
3302 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
3303 (libiberty_AC_FUNC_STRNCMP): Invoke.
3304
3305 * strncmp.c: New file.
3306
a5f725a3 3307Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
3308
3309 * hashtab.c (htab_expand): Add prototype.
3310 (find_empty_slot_for_expand): Likewise.
3311
8afd4145 33122000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3313
3314 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
3315 match prototype.
3316 (htab_expand): Cast the return value of xcalloc.
3317
c9dfb8ae 33182000-04-24 Mark Mitchell <mark@codesourcery.com>
3319
3320 * hashtab.c (hash_pointer): New function.
3321 (eq_pointer): Likewise.
3322 (htab_hash_pointer): New variable.
3323 (htab_eq_pointer): Likewise.
3324
85993fc6 33252000-04-23 Mark Mitchell <mark@codesourcery.com>
3326
9517f453 3327 * sort.c (sort_pointers): Fix endianness bugs.
3328
85993fc6 3329 * sort.c: New file.
3330 * Makefile.in (CFILES): Add sort.c
3331 (REQUIRED_OFILES): Add sort.o.
3332 (sort.o): New target.
3333
c9b2f47c 33342000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3335
3336 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
3337 4.3BSD systems.
3338
2b3dbc20 3339Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3340
3341 * hashtab.c: Various minor cleanups.
3342 (htab_find_slot_with_hash): INSERT is now enum insert_option.
3343 (htab_find_slot): Likewise.
3344
6ea8a864 33452000-04-16 Dave Pitts <dpitts@cozx.com>
3346
3347 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ec255163 3348
105211e5 33492000-04-05 Richard Henderson <rth@cygnus.com>
3350
3351 * splay-tree.c (splay_tree_remove): New.
3352
7669680f 33532000-03-30 Mark Mitchell <mark@codesourcery.com>
3354
3355 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
3356 codes.
3357 (htab_find_with_hash): Likewise.
3358 (htab_find_slot_with_hash): Likewise.
ec255163 3359
07c797e3 33602000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3361
3362 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
3363 unless it will be used. Rearrange loop for better
3364 optimization.
3365 (higher_prime_number): Add static prototype.
3366
8ef1b8d1 3367Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
3368
3369 * Makefile.in (partition.o): Depend on config.h
3370
ed26da85 33712000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
3372
3373 * hashtab.c (find_empty_slot_for_expand): New function.
3374 (htab_expand): Use it instead of htab_find_slot.
3375 (htab_find_with_hash): Renamed from htab_find; now accepts extra
3376 argument HASH.
3377 (htab_find_slot_with_hash): Likewise for htab_find_slot.
3378 (htab_find): New wrapper function.
3379 (htab_find_slot): Likewise.
3380 (htab_traverse): Pass slot, not entry, to called function.
3381
dadde703 33822000-03-09 Alex Samuel <samuel@codesourcery.com>
3383
3384 * Makefile.in (CFILES): Add partition.c.
3385 (REQUIRED_OFILES): Add partition.o.
3386 (partition.o): New rule.
3387 * partition.c: New file.
ec255163 3388
3fdd387a 33892000-03-09 Zack Weinberg <zack@wolery.cumb.org>
3390
3391 * hashtab.c (htab_create): Set del_f.
3392 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
3393 Use it.
3394
07c967f9 33952000-03-08 Zack Weinberg <zack@wolery.cumb.org>
3396
3397 * hashtab.c: Remove debugging variables (all_searches,
3398 all_collisions, all_expansions). Delete
3399 all_hash_table_collisions.
3400 (create_hash_table, delete_hash_table, empty_hash_table,
3401 find_hash_table_entry, remove_element_from_hash_table_entry,
3402 clear_hash_table_slot, traverse_hash_table, hash_table_size,
3403 hash_table_elements_number, hash_table_collisions): Rename to:
3404 htab_create, htab_delete, htab_empty, htab_find_slot,
3405 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
3406 htab_elements, htab_collisions.
3407 (htab_find): New function, handles common case where you don't
3408 plan to add or delete an entry.
3409 (htab_expand): Don't create a whole new table, just a new
3410 entry vector.
3411 (htab_find_slot): Simplify logic.
3412
1f33a375 34131999-08-03 Ian Lance Taylor <ian@zembu.com>
3414
3415 * floatformat.c: Add casts to avoid signed/unsigned warnings.
3416 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
3417
3418 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
3419 $(TARGETLIB)n so it works on MSDOS.
3420 (install_to_tooldir): Likewise.
3421
34221999-07-21 Ian Lance Taylor <ian@zembu.com>
3423
3424 From Mark Elbrecht:
3425 * makefile.dos: Remove; obsolete.
3426 * configure.bat: Remove; obsolete.
3427
34281999-07-11 Ian Lance Taylor <ian@zembu.com>
3429
3430 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3431 warning.
3432
b99e5aef 34332000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3434
3435 * pexecute.c: Conditionally include string.h.
07c967f9 3436 (fix_argv): Handle embedded whitespace in args for Mingw32.
b99e5aef 3437
6d93ad38 34382000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3439
3440 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
3441 we're using gcc.
3442
3443 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
3444
59dfb43e 34451999-12-27 Geoff Keating <geoffk@cygnus.com>
3446
3447 * vasprintf.c (int_vasprintf): Don't re-read the format character
3448 as this mishandles strings like '%%s'.
3449
b04bbebb 34501999-12-05 Mark Mitchell <mark@codesourcery.com>
3451
3452 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
3453 rather than struct splay_tree_node.
3454 (splay_tree_insert): Use struct splay_tree_s rather than struct
3455 splay_tree.
3456
d7f8de75 3457Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
3458
3459 * hashtab.c (sys/types.h): File included.
3460
7202ac7d 34611999-11-22 Jason Merrill <jason@casey.cygnus.com>
3462
3463 * strtoul.c, strtol.c, random.c: Remove advertising clause from
3464 BSD license, pursuant with
3465
3466 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
3467
bd41a79e 3468Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
3469
3470 * hashtab.c: Include stdio.h.
3471
b77d3fd0 3472Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
3473
3474 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
3475
1b4391fe 3476Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
3477
3478 * xstrdup (sys/types.h): Include this file.
3479
4bc57096 34801999-10-28 Nathan Sidwell <nathan@acm.org>
3481
3482 * Makefile.in (SUBDIRS): New macro.
3483 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
3484 avoid multiple subdirectory cleaning.
3485 (*-subdir): Use SUBDIRS.
3486
9087cad2 34871999-10-25 Jim Kingdon <http://developer.redhat.com/>
3488
3489 * cplus-dem.c: Move declarations of standard_symbol_characters and
3490 hp_symbol_characters inside #ifdef MAIN to avoid compiler
3491 warnings.
3492
21a7d507 34931999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
3494
3495 * hashtab.c (find_hash_table_entry): When returning a
3496 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
3497 (clear_hash_table_slot): New function which deletes an entry
3498 by its position in the table, not its value.
3499 (traverse_hash_table): New function which calls a hook
3500 function for every live entry in the table.
3501
42c870f1 35021999-10-19 Mark Mitchell <mark@codesourcery.com>
3503
3504 * cplus-dem.c (INTBUF_SIZE): New macro.
3505 (string_append_template_idx): New function.
3506 (demangle_expression): Likewise.
3507 (demangle_integral_value): Use it.
3508 (demangle_real_value): New function, split out from ...
3509 (demangle_template_value_parm): ... here. Use
3510 string_append_template_idx. Use demangle_real_value.
3511 (demangle_template): Use string_append_template_idx.
3512 (demangle_qualified): Use consume_count_with_underscores.
3513 (get_count): Tweak formatting.
3514 (do_type): Use string_append_template_idx.
07c967f9 3515
33b090eb 35161999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3517
3518 * calloc.c: Add a public domain notice.
3519
9879c2ce 3520Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
3521
3522 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
3523
5da6c26f 3524Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
3525
3526 * Makefile.in (CFILES): Add hashtab.c
3527 (REQUIRED_OFILES): Add hashtab.o
3528 (hashtab.o): Add dependencies.
3529 * hashtab.c: New file
3530
be42b79e 3531Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
3532
3533 * basename.c (DIR_SEPARATOR): New macro.
3534 (DIR_SEPARATOR_2): Likewise.
3535 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
3536 (IS_DIR_SEPARATOR): Likewise.
3537 (main): Handle MSDOS style pathname.
3538
6c65e8d7 35391999-10-11 Mark Mitchell <mark@codesourcery.com>
3540
3541 * cplus-dem.c (do_type): Handle pointer to member types whose
3542 enclosing classes have namespace scope.
3543
278929f3 3544Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
3545
3546 * config.table: Provide a backup shell for executing move-if-change.
3547
a7599ac8 35481999-10-02 Mark Mitchell <mark@codesourcery.com>
3549
3550 * xmalloc.c (xmalloc): Fix spelling error.
3551 (xcalloc, xrealloc): Likewise.
3552
4d84eafd 35531999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3554
3555 * cplus-dem.c (fancy_abort, demangle_integral_value,
3556 demangle_arm_hp_template, recursively_demangle,
3557 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
3558 (program_name, program_version, fatal): Constify a char*.
3559 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
3560 (main): Call return, not exit.
3561
8f376364 35621999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3563
3564 * choose-temp.c: Remove obsolete comment about gcc.
3565 (make_temp_file): Constify a char*.
3566
3a4fff76 3567Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3568
3569 * xmemdup.c: Include sys/types.h.
3570
7570bccb 35711999-09-07 Jeff Garzik <jgarzik@pobox.com>
3572
3573 * xmemdup.c: New xmemdup function.
3574 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
3575
b50c7be3 3576Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
3577
07c967f9 3578 * config.table: Add openedition target.
b50c7be3 3579 * config/mh-openedition: New file.
3580
fd0c1d22 3581Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
3582
3583 * pexecute.c (pexecute): Fill in temp_base when needed.
3584
be342bf0 35851999-08-31 Richard Henderson <rth@cygnus.com>
3586
3587 * getpwd.c: Check HAVE_GETCWD before defining it away.
3588
71774460 35891999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3590
3591 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
3592 (REQUIRED_OFILES): Add getpwd.o.
3593 (getpwd.o): Add target.
3594
3595 * configure.in (AC_PREREQ): Bump to 2.13.
3596 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
3597
3598 * getpwd.c: New file, moved here from gcc.
3599
ac126d82 36001999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3601
3602 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
3603 comparing against a signed quantity.
3604 (arm_special): Likewise.
3605 (demangle_fund_type): Likewise.
3606 (do_hpacc_template_const_value): Mark parameter `work' with
07c967f9 3607 ATTRIBUTE_UNUSED.
ac126d82 3608 (main): Constify variable `valid_symbols'.
3609
4f3b4661 3610Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
3611
3612 * strtoul.c (strtoul): Add parentheses around && within ||.
3613
f92ff492 3614Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
3615
3616 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3617 libdir, libsubdir and tooldir.
3618
a9f46aed 36191999-08-01 Mark Mitchell <mark@codesourcery.com>
3620
3621 * splay-tree.c (splay_tree_insert): Return the new node.
3622
db081298 36231999-07-14 Richard Henderson <rth@cygnus.com>
3624
07c967f9 3625 * argv.c: Include stdlib.h and string.h instead of
db081298 3626 prototyping directly.
3627 * choose-temp.c: Conditionally include string.h.
3628
e5aa3a54 36291999-07-12 Jason Merrill <jason@yorick.cygnus.com>
3630
3631 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
3632
4ef402f7 36331999-07-11 Ian Lance Taylor <ian@zembu.com>
3634
3635 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3636 warning.
3637
d65034bd 36381999-07-07 Jason Merrill <jason@yorick.cygnus.com>
3639
3640 * Makefile.in (needed-list): Only include stuff we actually need
3641 for libstdc++.
3642
18912799 36431999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3644
3645 * configure.in (checkfuncs): Add gettimeofday.
3646 * config.in, configure: Regenerated.
3647
d96f58b6 3648Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
3649
3650 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
3651 the test fails.
3652 * configure: Regenerate.
3653
4248b202 36541999-06-10 Mike Stump <mrs@wrs.com>
3655
3656 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
3657 parallel builds.
3658
3c243ded 36591999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3660
3661 * putenv.c: Include ansidecl.h to define `const'.
3662 * setenv.c: Likewise.
3663
654c70ae 3664Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
3665
34f75864 3666 * Makefile.in (CFILES): Add putenv.c and setenv.c.
3667 * configure.in (funcs): Add putenv and setenv.
3668 (AC_CHECK_FUNCS): Check for putenv and setenv.
3669 * configure: Rebuilt.
3670 * putenv.c setenv.c: New files.
3671
654c70ae 3672 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
3673 bytes of space using malloc.
3674
41980611 3675Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
3676
3677 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
3678 the *mangled pointer beyond the end of the string. Clean up code to
3679 match prevailing coding style.
3680
08b8ada9 36811999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3682
3683 * tmpnam.c (L_tmpnam): Fix typo.
3684
2fb1c6e9 3685Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
3686
3687 * cplus-dem.c (standard_symbol_characters): Renamed from
3688 standard_symbol_alphabet. No longer modify TABLE.
3689 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
3690 modify TABLE.
3691 (main): Corresponding changes. Use strchr to determine if a
3692 character is valid.
3693
25398e41 36941999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
3695
3696 * cplus-dem.c (main): Use table lookup to distinguish identifier
3697 characters from non-identifier characters.
3698 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
3699
29723d26 3700Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
3701
3702 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
3703 * getruntime.c: Only attempt to include sys/resource.h and
3704 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
3705 are defined.
3706
dde96550 3707Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
3708
3709 * configure.in (alloca detection): Handle alloca directly for interix.
3710 * configure: Rebuilt.
3711
e98ba651 3712Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
3713
3714 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
3715
3460a017 37161999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
3717
3718 Fix from Dale Hawkins:
07c967f9 3719 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
3460a017 3720 reallocated properly if we use it again.
3721
3722 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
3723 stricter about syntax. Always null-terminate string.
3724
b01c0955 3725Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
3726
3727 * configure.in (checkfuncs): Check for sbrk.
3728 * config.in: Rebuilt.
3729 * configure: Likewise.
3730 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
3731
87c2e884 37321999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
3733
3734 Fix from Marcus Daniels:
3735 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
3736 identifier looking for another underscore.
3737
16b8e80f 3738Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
3739
3740 * pexecute.c: Change all references to __UWIN__ to _UWIN.
3741 * xmalloc.c: Likewise.
3742 (xcalloc): UWIN has sbrk.
3743 (xrealloc): Fix guard macro.
3744
4d0cfb7e 37451999-04-11 Richard Henderson <rth@cygnus.com>
3746
3747 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
3748 or <alloca.h>.
3749 * clock.c (GNU_HZ): New definition.
3750 (clock): Use it.
3751 * getruntime.c: Likewise.
3752
3753 * config.table: Use mh-beos.
3754 * config/mh-beos: New file.
3755
0dc64970 37561999-04-11 Mark Mitchell <mark@codesourcery.com>
3757
3758 * cplus-dem.c (demangle_template_value_parm): Handle
3759 pointers-to-members.
3760 (do_type): Handle template parameters as qualifiers.
3761
9fec6063 37621999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
3763
3764 * cplus-dem.c: Attempt to handle overflows in counts with some
3765 semblance of grace.
3766 (consume_count): Detect overflows. Return -1 to indicate errors,
3767 instead of zero.
3768 (demangle_template_value_parm, demangle_template): Handle change
3769 to consume_count's return convention.
3770
715f424c 37711999-04-05 Tom Tromey <tromey@cygnus.com>
3772
3773 * testsuite/regress-demangle: New file.
3774 * testsuite/demangle-expected: New file.
3775
3776 * Makefile.in (all, check, installcheck, info, install-info,
3777 clean-info, dvi, install, etags, tags, mostlyclean, clean,
3778 distclean, maintainer-clean, realclean): Depend on corresponding
3779 `-subdir' target.
3780 (all-subdir check-subdir installcheck-subdir info-subdir
3781 install-info-subdir clean-info-subdir dvi-subdir
3782 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
3783 distclean-subdir maintainer-clean-subdir): New target.
3784 * testsuite/Makefile.in: New file.
3785 * configure: Rebuilt.
3786 * configure.in: Create testsuite/Makefile.
3787
71c5948c 37881999-04-02 Mark Mitchell <mark@codesourcery.com>
3789
3790 * splay-tree.h (splay_tree_compare_pointers): Define.
3791
d1264606 37921999-03-30 Mark Mitchell <mark@codesourcery.com>
3793
3794 * splay-tree.c (splay_tree_compare_ints): Define.
3795
6fd618e7 37961999-03-30 Tom Tromey <tromey@cygnus.com>
3797
3798 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
3799 don't advance input pointer.
3800 (demangle_class_name): If consume_count didn't find a count, do
3801 nothing. Don't bother with `strlen' sanity check; consume_count
3802 does it for us.
3803
bdaa26ad 38041999-03-16 Stan Shebs <shebs@andros.cygnus.com>
3805
3806 From Art Haas <ahaas@neosoft.com>:
3807 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
3808 when doing arm or hp style.
3809 (demangle_nested_args): Decr forgetting_types field when done.
07c967f9 3810
d267f778 3811Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
3812
3813 * pexecute.c (__CYGWIN32__): Rename to
3814 (__CYGWIN__): this.
3815 * xmalloc.c: Likewise.
3816
3817 Changes to support i386-pc-uwin.
3818 * configure.in (*-*-uwin*): Workaround for vfork bug.
3819 * configure: Regenerate.
3820 * pexecute.c (pexecute): Be like standard Unix.
3821 (pwait): Likewise.
3822 * xmalloc.c (first_break): Define.
3823 (xmalloc_set_program_name): Use.
3824 (xmalloc): Use.
3825
90405950 3826Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3827
3828 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
3829
bdaa26ad 3830Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
3831
3832 * config.table: Check cygwin*, not cygwin32*.
3833
e6ed8194 3834Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
3835
3836 * Makefile.in: Change mkstemp -> mkstemps.
3837
301e59c9 3838Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
3839
3840 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
3841 * configure.in (funcs): Check for and conditionally add mkstemps to
3842 the list of functions libiberty will provide.
3843 * configure: Rebuilt.
07c967f9 3844
89e305f9 3845Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
3846
07c967f9 3847 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
89e305f9 3848 platforms that don't have HZ.
3849 * getruntime.c (HZ): Likewise.
3850
ecfe64e7 3851Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
3852
3853 * Makefile.in (xstrdup.o): Depend on config.h.
3854
2e5e2114 3855Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
3856
3857 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
3858 freeing it.
3859
6aa62a59 3860Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3861
3862 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
3863
bdaa26ad 3864Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3865
3866 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
3867 splay-tree.o.
3868
38691999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
3870
3871 * configure.in: Require autoconf 2.12.1 or higher.
3872
9e1ed734 38731998-12-30 Michael Meissner <meissner@cygnus.com>
3874
3875 * random.c (NULL): Don't redefine NULL if it is already defined.
3876
7c8c70e9 3877Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3878
3879 * argv.c (buildargv): Cast the result of alloca in assignment.
3880
3881 * choose-temp.c: Include stdlib.h.
2e5e2114 3882
7c8c70e9 3883 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
9f21bac8 3884 (snarf_numeric_literal): Constify first parameter.
3885 (code_for_qualifier): Avoid a gcc extension, make the parameter an
3886 int, not a char.
7c8c70e9 3887 (demangle_qualifier): Likewise.
3888 (demangle_signature): Cast the argument of a ctype function to
3889 unsigned char.
3890 (arm_pt): Add parens around assignment used as truth value.
3891 (demangle_arm_hp_template): Constify variable `args'.
3892 (do_hpacc_template_const_value): Cast the argument of a ctype
3893 function to unsigned char.
3894 (do_hpacc_template_literal): Remove unused variable `i'.
3895 (snarf_numeric_literal): Constify parameter `args'.
3896 Cast the argument of a ctype function to unsigned char.
3897
3898 * floatformat.c (floatformat_to_double): Add explicit braces to
9f21bac8 3899 avoid ambiguous `else'.
2e5e2114 3900
7c8c70e9 3901 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
9f21bac8 3902 `cstart' and `cend' to unsigned char. Cast the argument of macro
3903 `FOLD', which uses ctype functions, to unsigned char.
7c8c70e9 3904
3905 * objalloc.c (free): Add prototype.
3906
9070a37e 3907Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
3908
3909 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
3910
bdaa26ad 3911Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
3912
3913 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
9f21bac8 3914 doesn't exist.
bdaa26ad 3915 (do_hpacc_template_literal): remove unused variable `i'.
07c967f9 3916
0a5a5994 3917Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
3918
3919 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
3920 bumping the pointer we read from. Also prepend these codes,
3921 as we do in other places.
3922
bdaa26ad 39231998-12-18 Nick Clifton <nickc@cygnus.com>
3924
3925 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
3926 'const char *' in order to match its usage when calling siblings.
3927 (snarf_numeric_literal): Make first arg 'const char **' in order
3928 to match usage.
4ed77eec 3929
50cbddd6 3930Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3931
4ed77eec 3932 * choose-temp.c: Don't check IN_GCC anymore.
3933
3934 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
3935 * memchr.c (memchr): Likewise.
3936 * memcpy.c (memcpy): Likewise.
3937 * memmove.c (memmove): Likewise.
2e5e2114 3938
4ed77eec 3939 * mkstemp.c: Don't check IN_GCC anymore.
3940 * pexecute.c: Likewise.
3941 * splay-tree.c: Likewise.
2e5e2114 3942
4ed77eec 3943 * strchr.c (strchr): Use `const', not `CONST'.
3944 * strrchr.c (strrchr): Likewise.
3945 * strtol.c (strtol): Likewise.
3946 * strtoul.c (strtoul): Likewise.
3947
f75dc4de 3948Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
3949 Elena Zannoni <ezannoni@cygnus.com>
3950 Stan Shebs <shebs@cygnus.com>
3951 Edith Epstein <eepstein@cygnus.com>
3952 Andres MacLeod <amacleod@cygnus.com>
3953 Satish Pai <pai@apollo.hp.com>
3954
3955 * HP aCC demangling support.
3956 * cplus-dem.c
3957 (main): Remove default to HP style demangling, set to EDG
9f21bac8 3958 demangling correctly when -edg specified; set the demangling style
3959 when user specifies 'edg'. Set strip_underscore to
3960 prepends_underscore, if not HPUXHPPA. Set
3961 current_demangling_style to hp_demangling if HPUXHPPA. Set
3962 current demangling style correctly if the switch is hp. Read
3963 label correctly also in the HP style case.
f75dc4de 3964 (work_stuff): add temp_start field; add field for volatile member
9f21bac8 3965 function.
f75dc4de 3966 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
9f21bac8 3967 style for this case is the same as ARM.
f75dc4de 3968 (demangle_args): handle EDG_DEMANGLING style; support HP style.
3969 (demangle_arm_hp_template): new function. (It was
9f21bac8 3970 demangle_arm_pt.); check and set value of temp_start field in
3971 multiple places. Also, when ceching for end of template args,
3972 check to see if at end of static member of template class.
f75dc4de 3973 (demangle_class): new local variable : save_class_name_end Don't
9f21bac8 3974 include template args in string defining class.
f75dc4de 3975 (demangle_class_name): use demangel_arm_hp_template.
3976 (demangle_function_name): handle case where demangling style is
9f21bac8 3977 HP_DEMANGLING and currently point at an 'X' in the mangled name.
3978 Handle EDG_DEMANGLING style. Handle constructor and destructor
3979 ops for HP style.
f75dc4de 3980 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
9f21bac8 3981 styles. global destructor and constructor for HP style are same
3982 as for ARM style. Same for local variables.
f75dc4de 3983 (demangle_qualified): handle EDG_DEMANGLING style.
3984 (demangle_signature): add case for volatile member function. For
9f21bac8 3985 cases '1' - '9' : initialize the temp_start field to -1 and handle
3986 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
3987 and AUTO_DEMANGLING styles. If expecting a function and managed
3988 to demangle the funct args, then handle the LUCID_DEMANGLING,
3989 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
3990 class name after "Lnnn_ in HP style case. HP style too needs to
3991 forget types. _nnn is OK for HP style, so don't report failure.
f75dc4de 3992 (do_hpacc_template_const_value): new function. Handle template's
9f21bac8 3993 value param for HP/aCC.
f75dc4de 3994 (do_hpacc_template_literal): new function. Handle a template's
9f21bac8 3995 literal parameter for HP aCC.
f75dc4de 3996 (recursively_demangle): new function
3997 (snarf_numeric_literal): new function.
3998 (usage): add 'edg' to the list of demangling styles; add hp switch
9f21bac8 3999 to message.
f75dc4de 4000
a5c56042 4001Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
4002
4003 * pexecute.c: Remove obsolete ifdefed cygwin code.
4004
4ae63959 4005Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4006
4007 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
4008 * cplus-dem.c: Likewise. Conform to libiberty.h.
4009 * pexecute.c: Likewise.
4010 * splay-tree.c: Likewise.
4011
b41b6b67 40121998-11-25 Mike Stump <mrs@wrs.com>
4013
4014 * Makefile.in (splay-tree.o): Add config.h dependency.
4015
a1dd5bff 4016Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4017
4018 * configure.in: Use AC_PREREQ(2.12.1).
4019
d54546fb 40201998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
4021
07c967f9 4022 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
d54546fb 4023
9fdb1080 4024Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
4025
4026 * mpw.c (mpw_access): Add missing parens.
4027
1ed7db2f 4028Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4029
4030 * configure.in: Call AC_HEADER_SYS_WAIT.
4031
4032 * pexecute.c: Include sys/wait.h when !IN_GCC.
4033
bdaa26ad 4034Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
4035
4036 * pexecute.c: revert back to checking old Cygwin
4037 preprocessor symbol until some time has passed.
4038
4039Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
4040
4041 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
4042 since it will now support similar constructs.
4043
34fa8831 4044Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4045
4046 * configure.in: Check for calloc.
4047
4048 * calloc.c: New file.
4049
4050 * xmalloc.c (xcalloc): New function.
4051
75ebb412 4052Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
4053
4054 *cplus-dem.c (demangle_prefix): Use the last "__"
4055 in the mangled name when looking for the signature. This allows
4056 template names to begin with "__".
4057
5b546829 40581998-11-08 Mark Mitchell <mark@markmitchell.com>
4059
73bea962 4060 * cplus-dem.c (type_kind_t): Add tk_reference.
4061 (demangle_template_value_parm): Handle it.
4062 (do_type): Use it for references, instead of tk_pointer.
4063
5b546829 4064 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
4065 not internal_cplus_demangle.
4066
0e4558d2 4067Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4068
4069 * choose-temp.c: Don't include gansidecl.h.
4070 * mkstemp.c: Likewise.
4071 * pexecute.c: Likewise.
4072
7b8b8d43 4073Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
4074
07c967f9 4075 * configure.in: detect cygwin* instead of cygwin32*
4076 * configure: regenerate
7b8b8d43 4077
f9a39df1 4078Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4079
4080 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
9f21bac8 4081 whether to include config.h. Possibly include unistd.h in the
4082 !IN_GCC case. Define VFORK_STRING as a printable function call
4083 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
4084 defined, include vfork.h. If VMS is defined, define vfork()
4085 appropriately. Remove vfork check on USG, we're using autoconf.
4086 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
4087 locally what string to use.
f9a39df1 4088
797ba725 40891998-10-26 Mark Mitchell <mark@markmitchell.com>
4090
4091 * splay-tree.c: Tweak include directives to make sure declarations of
4092 xmalloc and free are available.
4093
3662c79b 40941998-10-25 Mark Mitchell <mark@markmitchell.com>
4095
4096 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
4097 anonymous namespaces.
2e5e2114 4098
af5199c0 40991998-10-23 Mark Mitchell <mark@markmitchell.com>
4100
4101 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
4102 with type_quals.
4103 (TYPE_UNQUALIFIED): New macro.
4104 (TYPE_QUAL_CONST): Likewise.
4105 (TYPE_QUAL_VOLATILE): Likewise.
4106 (TYPE_QUAL_RESTRICT): Likewise.
4107 (code_for_qualifier): New function.
4108 (qualifier_string): Likewise.
4109 (demangle_qualifier): Likewise.
4110 (internal_cplus_demangle): Use them.
4111 (demangle_signature): Likewise.
4112 (demangle_template_value_parm): Likewise.
4113 (do_type): Likewise.
4114 (demangle_fund_type)): Likewise.
3662c79b 4115
e61da89d 4116Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4117
4118 * splay-tree.c (splay_tree_foreach_helper): Make definition static
4119 to match prototype.
4120
9a4eb61d 41211998-10-21 Mark Mitchell <mark@markmitchell.com>
4122
4123 * splay-tree.c: New file.
4124 * Makefile.in (CFILES): Add it.
4125 (REQUIRED_OFILES): Likewise.
4126 (splay-tree.o): Add dependencies.
4127
e5d3a45b 4128Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4129
4130 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
4131 range of 'K' index.
4132
4350e959 4133Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4134
4135 * choose-temp.c: Prototype mkstemps() when IN_GCC.
4136
4137 * cplus-dem.c (consume_count): Cast argument of ctype macro to
4138 `unsigned char'.
4139 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
4140 comparing against one.
4141 (cplus_mangle_opname): Likewise.
4142 (demangle_integral_value): Cast argument of ctype macro to
4143 `unsigned char'.
4144 (demangle_template_value_parm): Likewise.
4145 (demangle_template): Initialize variable `bindex'. Cast the
4146 result of `strlen' to (int) when comparing against one. Remove
4147 unused variable `start_of_value_parm'.
4148 (demangle_class_name): Cast the result of `strlen' to (int) when
4149 comparing against one.
4150 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
4151 (gnu_special): Likewise. Cast the result of `strlen' to (int)
4152 when comparing against one.
4153 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
4154 (get_count): Likewise.
4155 (do_type): Likewise. Cast the result of `strlen' to (int) when
4156 comparing against one.
4157 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
4158 (demangle_function_name): Cast the result of `strlen' to (int)
4159 when comparing against one.
4160
4161 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
4162 comparing against one.
4163
5dfe2c03 4164Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
4165
07c967f9 4166 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
4167 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
4168 * config.in, configure: Rebuilt.
0be6f86d 4169
5dfe2c03 4170 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
4171 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
4172 * config.in, configure: Rebuilt.
4173
7b8b8d43 4174Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
4175
07c967f9 4176 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
7b8b8d43 4177
68b78c88 4178Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
4179
4180 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
4181
804ec1bf 4182Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
4183
4184 * Merge egcs & devo libiberty.
4185
7a1ec54f 4186