1 2005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
3 * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
4 to convert from "from".
5 (floatformat_to_double): Likewise.
6 (floatformat_from_double): Use explicit cast to convert from "to".
8 2005-12-10 Terry Laurenzo <tlaurenzo@gmail.com>
11 * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
12 and include return type when found.
13 (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add
14 conditional logic to change printing order of return type.when
15 the DMGL_RET_POSTFIX option is present.
16 (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
18 * testsuite/test-demangle.c (main): Recognize option --ret-postfix
19 * testsuite/demangle-expected: Test cases to verify extended encoding.
20 Updated comment to document --ret-postfix option.
22 2005-11-06 Richard Guenther <rguenther@suse.de>
24 * splay-tree.c (rotate_left): New function.
25 (rotate_right): Likewise.
26 (splay_tree_splay_helper): Remove.
27 (splay_tree_splay): Re-implement.
29 2005-10-31 Mark Kettenis <kettenis@gnu.org>
31 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
34 2005-10-07 Mark Mitchell <mark@codesourcery.com>
36 * at-file.texi: Fix typo.
38 2005-10-03 Mark Mitchell <mark@codesourcery.com>
40 * at-file.texi: New file.
42 2005-09-27 Mark Mitchell <mark@codesourcery.com>
44 * argv.c (expandargv): Do not use xmalloc_failed.
46 2005-09-26 Mark Mitchell <mark@codesourcery.com>
48 * argv.c (safe-ctype.h): Include it.
51 (buildargv): Use ISSPACE instead of ISBLANK.
52 (expandargv): New function.
53 * Makefile.in: Regenerated.
55 2005-09-14 Christopher Faylor <cgf@timesys.com>
57 * pex-win32.c: Include "windows.h".
58 (backslashify): New function.
59 (fix_argv): Use backslashify to convert path to windows format.
60 Allocate one more place in new argv for potential executable from '#!'
62 (tack_on_executable): New function. Conditional on USE_MINGW_MSYS
64 (mingw_rootify): Ditto.
65 (msys_rootify): Ditto.
66 (spawn_script): New function.
67 (pex_win32_exec_child): Save translated argv in newargv. Pass to
68 spawn_script if spawnv* fails.
69 (main): New function. Conditional on MAIN. Useful for testing.
71 2005-08-17 Mark Kettenis <kettenis@gnu.org>
73 * floatformat.c (floatformat_always_valid): Change type of last
75 (floatformat_i387_ext_is_valid): Likewise.
76 (floatformat_to_double): Change type of second argument to `const
78 (floatformat_from_double): Change type of last argument to `void
80 (floatformat_is_valid): Change type of last argument to `const
82 (ieee_test): Remove redundant casts.
84 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
86 * strverscmp.c: Update FSF address.
87 * testsuite/Makefile.in: Likewise.
88 * testsuite/test-demangle.c: Likewise.
89 * testsuite/test-pexecute.c: Likewise.
91 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
93 * getopt.c: Include ansidecl.h before system headers.
95 2005-07-22 Ben Elliston <bje@gnu.org>
97 * getopt.c: Include "ansidecl.h".
98 (_getopt_initialize): Mark argc and argv parameters as unused.
100 2005-07-22 Ben Elliston <bje@gnu.org>
102 * regex.c (regcomp): Change type of `i' from unsigned to int.
104 2005-07-22 Ben Elliston <bje@gnu.org>
106 Recover patch lost in the sourceware repository:
107 2005-07-09 Ben Elliston <bje@au.ibm.com>
108 * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
109 * memmove.c: Likewise.
110 * objalloc.c: Likewise.
112 2005-07-22 Ben Elliston <bje@gnu.org>
114 * configure.ac: Check for a getopt(3) declaration.
115 * configure, config.in: Regenerate.
117 2005-07-15 Ben Elliston <bje@au.ibm.com>
119 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
121 2005-07-12 Ben Elliston <bje@au.ibm.com>
123 * floatformat.c (floatformat_to_double): Add a comment about a
124 potential source of warnings when compiling this file.
126 2005-07-12 Ben Elliston <bje@au.ibm.com>
128 * pexecute.c (pexecute): Cast string litrals to char *.
129 * regex.c (re_comp): Cast a call to gettext() to char *.
131 2005-07-07 Kelley Cook <kcook@gcc.gnu.org>
133 * config.table: Delete file. Move former contents into ...
134 * configure.ac: ... here and escape any brackets for m4.
135 * Makefile.in (config.status): Remove dependency on config.table.
136 * configure: Regenerate.
138 2005-07-07 Kelley Cook <kcook@gcc.gnu.org>
140 * config.in: Regenerate for 6/20 change.
142 2005-07-03 Steve Ellcey <sje@cup.hp.com>
145 * md5.c (md5_process_bytes): Check alignment.
147 2005-07-01 Ian Lance Taylor <ian@airs.com>
150 * cp-demangle.c (d_expr_primary): Don't run off the end of the
151 string while looking for the end of a literal value.
152 * testsuite/demangle-expected: Add test case.
154 2005-06-30 Daniel Berlin <dberlin@dberlin.org>
156 * hashtab.c (EMPTY_ENTRY): Moved and renamed.
157 (DELETED_ENTRY): Ditto.
159 2005-06-20 Geoffrey Keating <geoffk@apple.com>
162 * Makefile.in (CFILES): Add strverscmp.c.
163 (CONFIGURED_OFILES): Add strverscmp.o.
164 (strverscmp.o): New rule.
165 (stamp-functions): Add $(srcdir) to files in source directory.
166 * configure.ac (funcs): Add strverscmp.
167 (AC_CHECK_FUNCS): Add strverscmp.
168 * configure: Regenerate.
169 * functions.texi: Regenerate.
171 2005-05-28 Eli Zaretskii <eliz@gnu.org>
173 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
174 * config.in, configure: Regenerate.
176 2005-05-25 Richard Henderson <rth@redhat.com>
178 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
179 (d_make_comp, d_print_comp): Likewise.
180 (d_special_name): Generate one.
181 * testsuite/demangle-expected: Add a hidden alias test.
183 2005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
185 * configure.ac: Check declarations for calloc(), getenv(),
186 malloc(), realloc() and sbrk().
187 * config.in: Regenerate.
188 * configure: Likewise.
190 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
192 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
193 * concat.c (liiberty_concat_ptr): Surround definition with an
194 extern "C" block, if __cplusplus.
195 (concat): Use XNEWVEC instead of xmalloc.
196 (reconcat): Likewise.
197 * cp-demangle.c (struct d_print_template): Rename member
198 "template" to "template_decl". Adjust use throughout the file.
199 (d_print_resize): Properly cast return value of realloc().
200 (cplus_demangle_print): Same for malloc().
201 (d_demangle): Likewise.
202 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
203 "typename" to "type_name".
204 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
205 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
206 (demangle_template_value_parm): Likewise.
207 (demangle_template): Likewise.
208 (recursively_demangle): Likewise.
209 (do_hpacc_template_literal): Likewise.
211 (remember_type): Likewise.
212 (remember_Ktype): Likewise.
213 (register_Btype): Likewise.
214 (string_need): Use XRESIZEVEC instead of xrealloc().
215 * dyn-string.c (dyn_string_init): Use XNEWVEC.
216 (dyn_string_new): Use XNEW.
217 (dyn_string_resize): Use XRESIZEVEC.
218 * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
219 * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
220 Otherwise include <stdlib.h>.
221 (exchange): Cast return value of malloc().
222 * hashtab.c (htab_size): Define as both macro and non-inline
224 (htab_elements): Likewise.
225 * getpwd.c (getpwd): Use XNEWVEC.
226 (htab_create_alloc_ex): Use C90 prototype-style.
227 * lrealpath.c (lrealpath): Appropriately cast return value of
229 * make-relative-prefix.c (save_string): Likewise.
230 * make-temp-file.c (try_dir): Rename from "try". Adjust use in
232 (choose_tmpdir): Use XNEWVEC.
233 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
234 * pex-common.c (pex_init_common): Use XNEW.
235 (pex_add_remove): Use XRESIZEVEC.
237 (pex_get_status_and_time): Likewise.
238 * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
239 * pex-msdos.c (pex_init): Use XNEW.
240 (pex_msdos_exec_child): Likewise.
241 (pex_msdos_exec_child): Use XRESIZEVEC.
242 * pex-unix.c (pex_wait): Use XNEW.
243 * pex-win32.c (fix_argv): Use XNEWVEC.
244 * pexecute.c (pwait): Likewise.
245 * setenv.c (setenv): Properly cast return value of malloc().
246 * sigsetmask.c (sigsetmask): Rename local variables "old" and
247 "new" to "old_sig" and "new_sig".
248 * sort.c (main): Use XNEWVEC.
249 * spaces.c (spaces): Cast return value of malloc().
250 * strndup.c (strndup): Likewise.
251 * ternary.c (ternary_insert): Use XNEW.
252 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
253 with an extern "C" block if __cplusplus.
254 * xstrdup.c (xstrdup): Cast return value of memcpy().
255 * xstrerror.c (strerror): Enclose declaration in an extern "C"
256 block if __cplusplus.
257 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
259 2005-05-16 Andreas Jaeger <aj@suse.de>
261 * getpwd.c: Remove unneeded prototype getcwd and move getwd so
262 that it's only declared if needed.
264 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
267 2005-05-15 Andreas Jaeger <aj@suse.de>
269 * functions.texi: Regenerated.
271 2005-05-15 Eli Zaretskii <eliz@gnu.org>
273 * pexecute.txh: Enclose multi-word data types in @deftypefn in
274 braces. Minor wording fixes. Use --- for em-dash. Use
275 @enumerate in enumerated lists.
277 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
280 2005-05-11 Eli Zaretskii <eliz@gnu.org>
282 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
284 (pex_init): Fix last argument to pex_init_common.
285 (pex_djgpp_exec_child): Remove leading underscore from _open,
286 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
287 which is undeclared, with `executable', which was unused. Remove
288 unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
289 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
291 2005-05-11 Paul Brook <paul@codesourcery.com>
293 * Makefile.in: Regenerate dependencies.
295 2005-05-10 Nick Clifton <nickc@redhat.com>
297 * Update the address and phone number of the FSF organization in
298 the GPL notices in the following files:
299 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
300 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
301 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
302 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
303 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
304 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
305 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
306 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
307 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
308 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
309 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
310 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
311 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
313 2005-05-06 Kelley Cook <kcook@gcc.gnu.org>
315 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
316 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
317 * configure: Regenerate.
319 2005-05-06 Kelley Cook <kcook@gcc.gnu.org>
321 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
322 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
323 * aclocal.m4: Don't include accross.m4.
324 * configure, config.in: Regenerate.
326 2005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
328 * fopen_unlocked.c (unlock_std_streams): New.
330 * functions.texi: Regenerate.
332 2005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
334 * fopen_unlocked.c (unlock_stream): New.
335 Consolidate unlocking code into a helper function.
337 * functions.texi: Regenerate.
339 2005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
341 * asprintf.c: Include config.h.
342 * basename.c: Likewise.
343 * fdmatch.c: Likewise.
345 * lbasename.c: Likewise.
346 * spaces.c: Likewise.
347 * xatexit.c:Likewise.
348 * configure.ac: Do check declarations for basename, ffs, asprintf
349 and vasprintf for real.
350 * configure: Regenerate.
352 2005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
354 * argv.c (dupargv): Allocate space of argv[argc], not
355 sizeof(char *) of that amount. Cast result to char *.
357 2005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
359 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
360 Replace not with negate.
362 2005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
364 * configure.ac: Check declarations for basename, ffs, asprintf,
366 * configure: Regenerate.
367 * config.in: Likewise.
369 2005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
371 * Makefile.in (CFILES): Add fopen_unlocked.c.
372 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
373 Regenerate dependencies.
375 * configure.ac: Check for stdio_ext.h and __fsetlocking.
377 * fopen_unlocked.c: New file.
379 * functions.texi, configure, config.in: Regenerate.
381 2005-04-04 Ian Lance Taylor <ian@airs.com>
383 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
384 declaration before statement.
386 2005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
388 * bcmp.c: Fix warnings and implement using memcmp.
389 * bcopy.c: Fix warnings.
390 * bzero.c: Fix warnings and implement using memset.
392 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
394 * configure, config.in: Regenerate.
396 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
397 warnings and reconcile interfaces with relevant standards.
399 2005-04-02 Ian Lance Taylor <ian@airs.com>
401 * cp-demangle.c: Update copyright.
403 2005-03-31 Joseph S. Myers <joseph@codesourcery.com>
405 * gettimeofday.c: Add "Supplemental" to @deftypefn.
406 * functions.texi: Regenerate.
408 2005-03-28 Ian Lance Taylor <ian@airs.com>
410 * pex-common.c: New file.
411 * pex-one.c: New file.
412 * pexecute.c: New file.
413 * pex-common.h: Include <stdio.h>.
414 (struct pex_obj): Define.
415 (struct pex_funcs): Define.
416 (pex_init_common): Declare.
417 * pex-unix.c: Rewrite.
418 * pex-win32.c: Rewrite.
419 * pex-djgpp.c: Rewrite.
420 * pex-msdos.c: Rewrite.
421 * testsuite/text-pexecute.c: New file.
422 * pexecute.txh: Rewrite.
423 * configure.ac: Check for wait3 and wait4. Set CHECK to
424 really-check rather than check-cplus-dem.
425 * functions.texi: Rebuild.
426 * Makefile.in: Rebuild dependencies.
427 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
428 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
429 * testsuite/Makefile.in (really-check): New target.
430 (check-pexecute, test-pexecute): New targets.
431 * configure: Rebuild.
433 2005-03-28 Mark Kettenis <kettenis@gnu.org>
435 * unlink-if-ordinary.c: Include <sys/types.h>.
437 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
439 Convert libiberty to use ISO C prototype style 7/n.
440 * regex.c (PARAMS): Remove definition.
441 (PREFIX): Unconditionaly define using ISO C ## operator.
442 (init_syntax_once, extract_number, extract_number_and_incr,
443 print_fastmap, print_partial_compiled_pattern,
444 print_compiled_pattern, print_double_string, printchar,
445 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
446 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
447 at_begline_loc_p, at_endline_p, group_in_compile_stack,
448 insert_space, wcs_compile_range, byte_compile_range,
449 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
450 re_set_registers, re_search, re_search_2, re_search_3, re_match,
451 re_match_2, count_mbs_length, wcs_re_match_2_internal,
452 byte_re_match_2_internal, group_match_null_string_p,
453 alt_match_null_string_p, common_op_match_null_string_p,
454 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
455 regexec, regerror, regfree): Use ISO C prototype style.
456 * partition.c: (elem_compare): Likewise.
457 * cp-demangle.c (print_usage): Likewise.
459 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
461 Convert libiberty to use ISO C prototype style 5/n.
462 * random.c (srandom, initstate, setstate, random): Use ISO C
464 * putenv.c (putenv): Likewise.
465 * physmem.c (physmem_available, physmem_total, main): Likewise.
466 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
467 * pex-unix.c (pexecute, pwait): Likewise.
468 * pex-msdos.c (pexecute, pwait): Likewise.
469 * pex-djgpp.c (pexecute, pwait): Likewise.
470 * partition.c (partition_new, partition_delete, partition_union)
471 (elem_compare, partition_print): Likewise.
472 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
473 _obstack_allocated_p, _obstack_free, obstack_free,
474 _obstack_memory_used, print_and_abort, obstack_next_free,
475 obstack_object_size, obstack_base): Likewise. Remove codes
476 predicated on !defined(__STDC__).
477 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
478 objalloc_free_block): Use ISO C prototypes.
479 * mkstemps.c (mkstemps): Likewise.
480 * memset.c (memset): Likewise.
481 * mempcpy.c (mempcpy): Likewise.
482 * rename.c (rename): Likewise.
483 * rindex.c (rindex): Likewise.
484 * setenv.c (setenv, unsetenv): Likewise.
485 * sigsetmask.c (sigsetmask): Likewise.
486 * snprintf.c (snprintf): Likewise.
487 * sort.c (sort_pointers, xmalloc): Likewise.
488 * spaces.c (spaces): Likewise.
489 * splay-tree.c (splay_tree_delete_helper,
490 splay_tree_splay_helper, splay_tree_splay,
491 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
492 splay_tree_new, splay_tree_xmalloc_allocate,
493 splay_tree_new_with_allocator, splay_tree_delete,
494 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
495 splay_tree_max, splay_tree_min, splay_tree_predecessor,
496 splay_tree_successor, splay_tree_foreach,
497 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
498 * stpcpy.c (stpcpy): Likewise.
499 * stpncpy.c (stpncpy): Likewise.
500 * strcasecmp.c (strcasecmp): Likewise.
501 * strchr.c (strchr): Likewise.
502 * strdup.c (strdup): Likewise.
504 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
506 Convert libiberty to use ISO C prototype style 6/n.
507 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
508 strtoerrno, main): Use ISO C prototype style.
509 * strncasecmp.c (strncasecmp): Likewise.
510 * strncmp.c (strncmp): Likewise.
511 * strndup.c (strndup): Likewise.
512 * strrchr.c (strrchr): Likewise.
513 * strsignal.c (init_signal_tables, signo_max, strsignal,
514 strsigno, strtosigno, psignal, main): Likewise.
515 * strstr.c (strstr): Likewise.
516 * strtod.c (strtod, atof): Likewise.
517 * strtol.c (strtol): Likewise.
518 * strtoul.c (strtoul): Likewise.
519 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
520 ternary_recursivesearch): Likewise.
521 * tmpnam.c (tmpnam): Likewise.
522 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
523 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
524 * vfork.c (vfork): Likewise.
525 * vfprintf.c (vfprintf): Likewise.
526 * vprintf.c (vprintf): Likewise.
527 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
528 * vsprintf.c (vsprintf): Likewise.
529 * waitpid.c (waitpid): Likewise.
530 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
531 * xexit.c (xexit): Likewise.
532 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
533 xcalloc, xrealloc): Likewise.
534 * xmemdup.c (xmemdup): Likewise.
535 * xstrdup.c (xstrdup): Likewise.
536 * xstrerror.c (xstrerror): Likewise.
537 * xstrndup.c (xstrndup): Likewise.
539 2005-03-27 Andreas Jaeger <aj@suse.de>
541 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
543 * configure: Regenerated.
545 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
547 * getopt1.c (getopt_long_only): Fix thinko.
549 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
551 Convert libiberty to use ISO C prototype style 4/n.
552 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
553 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
554 htab_create_alloc, htab_set_functions_ex, htab_create,
555 htab_try_create, htab_delete, htab_empty,
556 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
557 htab_find, htab_find_slot_with_hash, htab_find_slot,
558 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
559 htab_traverse_noresize, htab_traverse, htab_collisions,
560 htab_hash_string, iterative_hash): Use ISO C prototype.
561 * hex.c (hex_init): Likewise.
562 * index.c (index): Likewise.
563 * insque.c (insque, remque): Likewise.
564 * lbasename.c (lbasename): Likewise.
565 * lrealpath.c (lrealpath): Likewise.
566 * make-relative-prefix.c (save_string, split_directories,
567 free_split_directories, make_relative_prefix): Likewise.
568 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
569 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
570 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
571 * memchr.c (memchr): Likewise.
572 * memcpy.c (memcpy): Likewise.
573 * memmove.c (memmove): Likewise.
574 * gettimeofday.c (gettimeofday): Likewise.
575 * getruntime.c (get_run_time): Likewise.
576 * getpwd.c (getpwd, getpwd): Likewise.
577 * getpagesize.c (getpagesize): Likewise.
578 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
579 * getopt.c (my_index, exchange, _getopt_initialize,
580 _getopt_internal, getopt, main): Likewise.
581 * getcwd.c (getcwd): Likewise.
582 * fnmatch.c (fnmatch): Likewise.
583 * floatformat.c (floatformat_always_valid,
584 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
585 put_field, floatformat_from_double, floatformat_is_valid,
586 ieee_test, main): Likewise.
587 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
588 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
589 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
590 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
591 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
592 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
593 fibheap_link, fibheap_cut, fibheap_cascading_cut,
594 fibnode_insert_after, fibnode_remove): Likewise.
595 * ffs.c (ffs): Likewise.
596 * fdmatch.c (fdmatch): Likewise.
597 * dyn-string.c (dyn_string_init, dyn_string_new,
598 dyn_string_delete, dyn_string_release, dyn_string_resize,
599 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
600 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
601 dyn_string_insert_cstr, dyn_string_insert_char,
602 dyn_string_append, dyn_string_append_cstr,
603 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
606 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
608 Convert libiberty to use ISO C prototype style 3/n.
609 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
610 consume_count_with_underscores, code_for_qualifier,
611 qualifier_string, demangle_qualifier, cplus_demangle_opname,
612 cplus_mangle_opname, cplus_demangle_set_style,
613 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
614 ada_demangle, internal_cplus_demangle, squangle_mop_up,
615 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
616 delete_work_stuff, mop_up, demangle_signature,
617 demangle_method_args, demangle_template_template_parm,
618 demangle_expression, demangle_integral_value,
619 demangle_real_value, demangle_template_value_parm,
620 demangle_template, arm_pt, demangle_arm_hp_template,
621 demangle_class_name, demangle_class, iterate_demangle_function,
622 demangle_prefix, gnu_special, recursively_demangle, arm_special,
623 demangle_qualified, get_count, do_type, demangle_fund_type,
624 do_hpacc_template_const_value, do_hpacc_template_literal,
625 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
626 register_Btype, remember_Btype, forget_B_and_K_types,
627 forget_types, demangle_args, demangle_nested_args,
628 demangle_function_name, string_need, string_delete, string_init,
629 string_clear, string_empty, string_append, string_appends,
630 string_appendn, string_prepend, string_prepends, string_prependn,
631 string_append_template_idx): Use ISO C prootype style.
632 * cp-demint.c (cplus_demangle_fill_component,
633 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
634 cplus_demangle_v3_components): Likewise.
636 2005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
638 Convert libiberty to use ISO C prototype style 2/n.
639 * cp-demangle.h: Remove uses of PARAMS.
640 * cp-demangle.c: Likewise.
641 (d_dump, cplus_demangle_fill_name,
642 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
643 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
644 d_make_builtin_type, d_make_operator, d_make_extended_operator,
645 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
646 cplus_demangle_mangled_name, has_return_type,
647 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
648 d_prefix, d_unqualified_name, d_source_name, d_number,
649 d_identifier, d_operator_name, d_special_name, d_call_offset,
650 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
651 d_function_type, d_bare_function_type, d_class_enum_type,
652 d_array_type, d_pointer_to_member_type, d_template_param,
653 d_template_args, d_template_arg, d_expression, d_expr_primary,
654 d_local_name, d_discriminator, d_add_substitution,
655 d_substitution, d_print_resize, d_print_append_char,
656 d_print_append_buffer, d_print_error, cplus_demangle_print,
657 d_print_comp, d_print_java_identifier, d_print_mod_list,
658 d_print_mod, d_print_function_type, d_print_array_type,
659 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
660 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
661 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
664 2005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
666 Convert libiberty to ISO C prototype style 1/n.
667 * _doprnt.c: Remove conditional #include <varargs.h> on
668 ANSI_PROTOTYPES as the latter is always assumed.
669 (_doprnt, checkit, main): Use ISO C prototype.
670 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
671 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
672 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
673 * atexit.c (atexit): Likewise
674 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
675 (asprintf): Use ISO C prototype.
676 * basename.c (basename): Likewise
677 * bcmp.c (bcmp): Likewise.
678 * bcopy.c (bcopy): Likewise.
679 * bzero.c (bzero): Likewise.
680 * bsearch.c (bsearch): Likewise. Improve const-correctness.
681 * choose-temp.c (choose_temp_base): Likewise.
682 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
683 (calloc): Use ISO C prototype.
684 * clock.c (clock): Likewise.
685 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
686 (vconcat_length, vconcat_copy, concat_length, concat_copy,
687 concat_copy2, concat, reconcat, main): Use ISO C prototype.
688 * copysign.c (copysign): Likewise.
690 2005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
692 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
693 (REQUIRED_OFILES): Add xstrndup.o.
694 (CONFIGURED_OFILES): Add strndup.o.
695 Regenerate dependencies.
697 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
699 * strndup.c, xstrndup.c: New.
701 * config.in, configure, functions.texi: Regenerate.
703 2005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
705 * xmemdup.c, xstrdup.c: Expose the tail call.
707 2005-03-09 Mark Mitchell <mark@codesourcery.com>
709 * configure.ac (funcs): Add gettimeofday.
710 * configure: Regenerated.
711 * gettimeofday.c: New file.
712 * Makefile.in (CFILES): Add gettimeofday.
713 (CONFIGURED_OFILES): Add gettimeofday.o.
714 (./gettimeofday.o): New rule.
716 2005-03-09 Ian Lance Taylor <ian@airs.com>
719 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
720 * Makefile.in (CFILES): Remove pex-os2.c.
721 (CONFIGURED_OFILES): Remove pex-os2.o.
722 (pex-os2.o): Remove target.
723 * configure: Rebuild.
725 2005-03-07 Ian Lance Taylor <ian@airs.com>
727 * mpw-config.in: Remove.
728 * mpw-make.sed: Remove.
730 * Makefile.in (CFILES): Remove pex-mpw.c.
731 (CONFIGURED_OFILES): Remove pex-mpw.o.
732 (mpw.o, pex-mpw.o): Remove targets.
733 * maint-tool (undoc): Remove reference to mpw.c.
735 2005-03-06 DJ Delorie <dj@redhat.com>
737 * configure.ac (target_header_dir): vfork is a stub under djgpp.
738 * configure: Regenerated.
740 2005-03-01 Jan Beulich <jbeulich@novell.com>
742 * Makefile.in (CFILES): Add unlink-if-ordinary.c
743 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
744 Add dependencies and rule for unlink-if-ordinary.o.
745 * unlink-if-ordinary.c: New.
747 2005-03-01 Ben Elliston <bje@au.ibm.com>
749 * hashtab.c (htab_find_slot_with_hash): Make function
750 documentation clearer.
752 2005-02-13 Jason Merrill <jason@redhat.com>
754 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
757 2005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
759 * hex.c (hex_value): Group 'unsigned int' together to get correct
761 * functions.texi: Regenerated.
763 2004-12-27 H.J. Lu <hongjiu.lu@intel.com>
765 * Makefile.in: Undo to 2004-12-17.
766 * aclocal.m4: Likewise.
767 * config.table: Likewise.
768 * configure.ac: Likewise.
769 * maint-tool: Likewise.
770 * configure: Likewise.
772 2004-12-19 H.J. Lu <hongjiu.lu@intel.com>
775 * Makefile.in (enable_shared): New substitute.
777 (PREFIXTARGETLIB): New.
779 (PREFIXTESTLIB): New.
782 ($(TARGETLIB)): Use $(LINK) to create libraries and create
784 ($(TESTLIB)): Likewise.
785 (mostlyclean): Don't remove .libs. Remove the libtool object
788 * config.table (enable_shared): Removed.
790 * configure.ac (enable_static): Set to yes.
791 (AC_PROG_LIBTOOL): Removed.
792 (AM_DISABLE_SHARED): Uncommented.
793 (AM_PROG_LIBTOOL): Likewise.
794 (LIBOBJS): Add `./' to avoid VPATH.
795 (LTLIBOBJS): Likewise.
796 (enable_shared): Substitute.
797 * configure: Regenerated.
799 2004-12-18 H.J. Lu <hongjiu.lu@intel.com>
801 * Makefile.in (top_builddir): Set to `.'.
802 (OUTPUT_OPTION): Removed.
805 (EXTRA_LTOFILES): New.
806 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
807 (all): Remove stamp-picdir.
810 (REQUIRED_LTOFILES): New.
811 (CONFIGURED_LTOFILES): New.
812 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
813 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
814 (stamp-picdir): Completely removed.
815 (maint-missing): Pass $(REQUIRED_LTOFILES)
816 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
818 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
819 $(CONFIGURED_LTOFILES).
820 (mostlyclean): Also remove *.lo .libs.
821 Run "make maint-deps".
823 * aclocal.m4: Include ../libtool.m4.
825 * config.table: Don't check --enable-shared.
827 * configure.ac (AC_PROG_LIBTOOL): Add.
828 (AC_PROG_CC_C_O): Removed.
829 (OUTPUT_OPTION): Removed.
830 (NO_MINUS_C_MINUS_O): Removed.
831 (ltpexecute): New substitute.
833 * configure: Regenerated.
835 * maint-tool: Updated for .lo/libtool.
837 2004-12-11 Ben Elliston <bje@au.ibm.com>
839 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
840 * configure: Regenerate.
841 * config.in: Likewise.
843 2004-12-07 DJ Delorie <dj@redhat.com>
845 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
846 that recursion (and thus large stack space) is not needed.
848 2004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
850 * pex-unix.c: Fix the spelling of longjmp.
852 2004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
855 * cp-demangle.c (d_call_offset): Remove useless local variables
856 offset and virtual_offset.
857 * cplus-dem.c (ada_demangle): Remove useless local variable
859 (demangle_template): Remove useless local variable start.
861 2004-11-19 Roger Sayle <roger@eyesopen.com>
863 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
864 "ansidecl.h" to avoid redeclaration errors with native compilers.
865 * regex.c: Protect config.h from multiple inclusion.
867 2004-11-12 Mike Stump <mrs@apple.com>
869 * Makefile.in (libiberty.html): Fix html generation.
871 2004-09-08 Adam Nemet <anemet@lnxw.com>
873 * vasprintf.c: Accept __va_copy in addition to va_copy.
875 2004-09-03 Paolo Bonzini <bonzini@gnu.org>
877 * configure: Regenerate.
879 2004-09-02 Paolo Bonzini <bonzini@gnu.org>
881 * configure.ac: Do not enable multilibs for build-side libiberty.
883 2004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
885 * lrealpath.c (lrealpath): Add _WIN32 support.
887 2004-06-28 Zack Weinberg <zack@codesourcery.com>
889 * cp-demangle.h: Declare cplus_demangle_operators,
890 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
891 cplus_demangle_type as static if IN_GLIBCPP_V3.
893 2004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
896 * cp-demangle.c (d_expr_primary): Check for a failure return from
898 * testsuite/demangle-expected: Add test case.
900 2004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
902 * pex-win32.c (fix_argv): Expand comment.
904 2004-05-25 Daniel Jacobowitz <drow@false.org>
906 * Makefile.in: Add .NOEXPORT.
908 2004-04-29 Douglas B Rupp <rupp@gnat.com>
910 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
913 2004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
915 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
916 * configure: Regenerate.
918 2004-04-22 Richard Henderson <rth@redhat.com>
920 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
921 (CHAR_BIT): Provide default.
922 (struct prime_ent, prime_tab): New.
923 (higher_prime_index): Rename from higher_prime_number, return index.
925 (htab_mod, htab_mod_m2): Use it.
926 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
927 (htab_expand): Likewise.
928 * configure.ac: Check for stdint.h.
929 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
930 * config.in, configure: Rebuild.
932 2004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
934 * strerror.c: Include config.h, and redefine sys_nerr and
935 sys_errlist, before including ansidecl.h and libiberty.h.
937 2004-04-13 Jeff Law <law@redhat.com>
939 * hashtab.c (htab_remove_elt_with_hash): New function.
940 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
942 2004-03-31 Richard Henderson <rth@redhat.com>
944 * hashtab.c (htab_size): Move to top of file; mark inline.
945 (htab_elements): Likewise.
946 (htab_mod, htab_mod_m2): New.
947 (htab_delete): Refactor htab->size and htab->entries.
948 (htab_empty): Likewise.
949 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
950 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
951 (htab_clear_slot): Use htab_size, htab_elements.
952 (htab_traverse_noresize, htab_traverse): Likewise.
954 2004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
956 * pex-unix.c (pexecute): Use vfork instead of fork, with
957 appropriate changes to make this safe.
958 * pex-common.h (STDERR_FILE_NO): Define.
960 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
961 an 80 column screen. Run maint-deps.
963 2004-03-09 Kelley Cook <kcook@gcc.gnu.org>
965 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
966 * acconfig.h: Delete redundant file.
967 * config.in: Regenerate.
968 * configure: Regenerate.
970 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
972 * configure: Regenerate for config/accross.m4 correction.
974 2004-03-07 Andreas Jaeger <aj@suse.de>
976 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
978 (main): Initialize style.
980 2004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
982 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
983 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
984 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
985 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
986 short types to D_PRINT_DEFAULT. Change other integer types to use
987 new D_PRINT_* values where appropriate. Change float types to
989 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
991 * testsuite/demangle-expected: Adjust two test cases.
993 * cp-demangle.c (d_print_function_type): Print a space before the
994 parenthesis around the function type in more cases.
995 * testsuite/demangle-expected: Adjust one test case.
997 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
998 parentheses around a cast.
999 * testsuite/demangle-expected: Adjust two test cases to match new
1002 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
1004 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
1005 push more than one of the same CV-qualifier on the top of the
1007 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
1008 move the CV-qualifiers to apply to the element type instead.
1009 (d_print_array_type): When checking the modifiers, keep looking
1010 past ones which have been printed already.
1011 * testsuite/demangle-expected: Add three test cases.
1013 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1015 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
1016 empty string correctly.
1018 * cp-demangle.c (__cxa_demangle): It is not an error if status is
1019 not NULL. It is an error if the mangled name is the same as a
1021 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
1022 than cplus_demangle_v3.
1024 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
1025 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
1027 2004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
1029 * regex.c: Include <ansidecl.h>.
1030 (regcomp): Cast i to int.
1031 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
1033 2004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
1035 * configure.ac: Add m4_pattern_allow(LIBOBJS).
1036 * configure: Regenerate.
1038 2004-01-22 DJ Delorie <dj@redhat.com>
1040 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
1041 with explicit build rules.
1044 * configure.ac (pexecute, LIBOBJS): Add ./ .
1045 * maint-tool: Build dependencies with explicit rules.
1047 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
1049 * strdup.c (strdup): Constify the argument.
1051 2004-01-14 Loren J. Rittle <ljrittle@acm.org>
1053 * Makefile.in (distclean): Remove config.cache.
1055 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
1057 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
1058 takes two parameters.
1059 * cp-demint.c (cplus_demangle_fill_component): Likewise.
1061 2004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
1063 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
1064 defined, rename some functions which are to become static via
1066 (CP_STATIC_IF_GLIBCPP_V3): Define.
1067 (struct d_operator_info): Move definition to cp-demangle.h, and
1068 rename to demangle_operator_info. Change all uses.
1069 (enum d_builtin_type_print): Move definition to cp-demangle.h.
1070 (struct d_builtin_type_info): Move definition to cp-demangle.h,
1071 and rename to demangle_builtin_type_info. Change all uses.
1072 (enum d_comp_type): Move definition to include/demangle.h, and
1073 rename to demangle_component_type, and change all enums to start
1074 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
1075 (struct d_comp): Move definition to include/demangle.h, and rename
1076 to demangle_component. Change all uses.
1077 (struct d_info): Move definition to cp-demangle.h.
1078 (cplus_demangle_fill_name): New function.
1079 (cplus_demangle_fill_extended_operator): New function.
1080 (cplus_demangle_fill_ctor): New function.
1081 (cplus_demangle_fill_dtor): New function.
1082 (d_make_empty): Remove type parameter. Change all callers.
1083 (d_make_name): Use cplus_demangle_fill_name.
1084 (d_make_extended_operator): Use
1085 cplus_demangle_fill_extended_operator.
1086 (d_make_ctor): Use cplus_demangle_fill_ctor.
1087 (d_make_dtor): Use cplus_demangle_fill_dtor.
1088 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
1089 non-static by default. Change all callers.
1090 (cplus_demangle_operators): Rename from d_operators. Change all
1091 uses. Make non-static by default. Add sentinel at end of array.
1092 (d_operator_name): Adjust initialization of high for new sentinel
1093 in cplus_demangle_operators.
1094 (cplus_demangle_builtin_types): Rename from d_builtin_types.
1095 Change all uses. Make non-static by default. Change initializer
1096 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
1097 (cplus_demangle_type): Rename from d_type. Make non-static by
1098 default. Change all callers.
1099 (cplus_demangle_init_info): Rename from d_init_info. Make
1100 non-static by default. Change all callers.
1101 * cp-demangle.h: New file.
1102 * cp-demint.c: New file.
1103 * Makefile.in: Rebuild dependencies.
1104 (CFILES): Add cp-demint.c.
1105 (REQUIRED_OFILES): Add cp-demint.o.
1107 2004-01-09 Kelley Cook <kcook@gcc.gnu.org>
1109 * configure.in: Rename file to ...
1110 * configure.ac: ... this.
1111 * Makefile.in: Update a comment for above change.
1113 * config.in: Regenerate.
1115 2004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
1117 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
1118 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
1119 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
1120 demangling template parameters.
1121 * testsuite/test-demangle.c (fail): New static function.
1122 (main): Support new options in input file: --no-params,
1123 --is-v3-ctor, and --is-v3-dtor.
1124 * testsuite/demangle-expected: Add --no-params to most tests, and
1125 add the correct result when parameters are not demangled. Add
1126 some simple tests for V3 constructor/destructor recognition.
1128 2003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1130 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
1132 2003-12-22 Daniel Jacobowitz <drow@mvista.com>
1135 * Makefile.in (lbasename.o): Depend on filenames.h.
1136 * lbasename.c: Include "filenames.h" instead of defining
1139 2003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
1141 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
1143 (struct d_operator_info): Add len field.
1144 (struct d_builtin_type_info): Add len and java_len fields.
1145 (struct d_standard_sub_info): Add simple_len, full_len, and
1146 set_last_name_len fields.
1147 (struct d_comp): Add len field to s_string.
1148 (struct d_info): Add send, did_subs, and expansion fields.
1149 (d_append_string_constant): Define.
1150 (d_append_string): Remove. Change all users to use
1151 d_append_string_constant or d_append_buffer instead.
1152 (d_make_sub): Add len parameter. Change all callers.
1153 (d_name): Increase expansion when substituting std::.
1154 (d_unqualified_name): Increase expansion for an operator.
1155 (d_number): Don't use multiplication for negative numbers.
1156 (d_identifier): Make sure there are enough characters in the
1157 string for the specified length. Adjust expansion for an
1158 anonymous namespace.
1159 (d_operators): Initialize len field.
1160 (d_special_name, d_ctor_dtor_name): Increase expansion.
1161 (d_builtin_types): Initialize len and java_len fields.
1162 (d_type): Increase expansion for a builtin type.
1163 (d_cv_qualifiers): Increase expansion for each qualifier.
1164 (d_bare_function_type): Decrease expansion when removing single
1166 (d_template_param): Increment did_subs.
1167 (d_expression): Increase expansion for an operator.
1168 (d_expr_primary): Decrease expansion for a type we will print
1170 (standard_subs): Initialize new fields.
1171 (d_substitution): Increment did_subs when doing a normal
1172 substitution. Increase expansion for a special substitution.
1173 (d_print): Add estimate parameter. Change all callers.
1174 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
1175 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
1176 (d_print_java_identifier): Rename from d_print_identifier. Handle
1177 only Java case. Change caller.
1178 (d_init_info): Change return type to void. Change all callers.
1179 Initialize send, did_subs, and expansion fields. Do not
1180 initialize comps and subs fields.
1181 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
1182 arrays on stack. Make an estimate of the length of the demangled
1183 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
1184 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
1185 subs arrays on stack.
1187 2003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
1189 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
1190 after the identifier.
1191 * testsuite/demangle-expected: Add test case.
1193 2003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
1195 Fix for PR c++/13447:
1196 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
1197 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
1198 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
1200 (is_ctor_or_dtor): Likewise.
1201 (d_local_name): Use D_COMP_LOCAL_NAME rather than
1203 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
1204 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
1205 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
1206 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
1207 * testsuite/demangle-expected: Add two test cases.
1209 * cp-demangle.c (d_print_function_type): Clear the global modifier
1210 list when printing the modifiers, not just when printing the
1211 function parameters.
1212 * testsuite/demangle-expected: Add two test cases.
1214 2003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1216 * cp-demangle.c (d_print_function_type): Print the function
1217 parameters with no modifiers.
1218 * testsuite/demangle-expected: Add test case.
1220 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
1221 expect that we've read the entire string.
1222 (is_ctor_or_dtor): Don't expect that we've read the entire
1223 string--reverse patch of 2003-11-29.
1225 2003-12-15 Brendan Kehoe <brendan@zen.org>
1227 * libiberty/Makefile.in (floatformat.o): Add dependency on
1228 config.h to accompany change of 2003-12-03.
1230 2003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1232 Fix handling of constructor/destructor of standard substitution:
1233 * cp-demangle.c (struct d_standard_sub_info): Define.
1234 (d_substitution): Add prefix argument. Change all callers.
1235 Rework handling of standard substitutions to print full name when
1236 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
1237 * testsuite/demangle-expected: Add test case.
1239 Fix handling of negative literal constants:
1240 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
1241 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
1242 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
1243 (d_print_comp): Handle D_COMP_LITERAL_NEG.
1244 * testsuite/demangle-expected: Add test case.
1246 2003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
1248 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
1249 (d_last_char): Define new macro.
1250 (d_make_name): Reject an empty name.
1251 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
1252 (d_substitution, d_print_identifier): Likewise.
1253 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
1254 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
1255 (d_print_mod) Use new d_last_char macro.
1256 (d_print_cast): Use new d_last_char macro.
1257 (is_ctor_or_dtor): Don't leak memory.
1259 Fix handling of member function modifiers:
1260 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
1261 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
1262 (d_dump): Dump new d_comp_type values.
1263 (d_make_comp): Accept new d_comp_type values.
1264 (has_return_type): Only accept _THIS variants of qualifiers.
1265 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
1267 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
1268 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
1269 qualifiers and printing them at the end, add _THIS qualifiers to
1271 (d_print_comp) [D_COMP_*_THIS]: New cases.
1272 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
1274 (d_print_mod_list): Add suffix parameter. Change all callers.
1275 Keep walking the list even if the current modifier has been
1277 (d_print_mod): Handle new _THIS qualifiers.
1278 (d_print_function_type): Handle new _THIS qualifiers when deciding
1279 whether to print a parenthesis. Put a space before the
1280 parenthesis in some cases. Call d_print_mod_list again at the
1281 end, passing suffix as 1.
1282 (is_ctor_or_dtor): Look for new _THIS qualifiers.
1283 * testsuite/demangle-expected: Add test case.
1285 Fix for PR gcc/13304:
1286 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
1287 before the '<' is itself a '<', insert a space.
1288 (d_print_cast): Likewise.
1289 * testsuite/demangle-expected: Add test case.
1291 Fix for PR gcc/13244:
1292 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
1293 which uses the '>' operator in an extra layer of parens.
1294 * testsuite/demangle-expected: Add test case.
1296 2003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
1298 * floatformat.c: Include "config.h" and <string.h> if available.
1299 (INFINITY, NAN): Define if not defined by <math.h>.
1300 (floatformat_to_double): Handle NaN, infinity, and denormalized
1302 (floatformat_from_double): Likewise.
1303 (ieee_test): In debugging code, use little endian rather than big
1304 endian. Correct tests to handle NaN and to check correct sign of
1305 zero. Omit m68k extended test.
1306 (main): Add more debugging cases.
1308 2003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
1310 * cp-demangle.c (d_demangle): Only return success if we consumed
1311 the entire demangled string.
1312 (is_ctor_or_dtor): Likewise.
1314 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
1315 to restore expected result of EDG test case to original expected
1318 2003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
1320 * cp-demangle.c (struct d_print_mod): Add templates field.
1321 (d_make_builtin_type): Check for NULL type.
1322 (d_make_extended_operator): Check for NULL name.
1323 (d_make_ctor, d_make_dtor): Likewise.
1324 (d_mangled_name): Add top_level parameter. Change all callers.
1325 (d_encoding): If DMGL_PARAMS is not set, strip off initial
1327 (d_type): Check some return values we rely on.
1328 (d_bare_function_type, d_array_type): Likewise.
1329 (d_pointer_to_member_type, d_template_args): Likewise.
1330 (d_add_substitution): Fail if argument is NULL.
1331 (d_print_resize): Check whether buf is NULL.
1332 (d_print_comp): Save current templates list with each modifier.
1333 Don't pass the modifier list down when printing a template.
1334 (d_print_cast): Don't pass the modifier list down when printing a
1336 (d_print_mod_list): Temporarily set templates list while printing
1338 (d_print_mod): Check that buf is not NULL before using it.
1339 (d_print_function_type): Print parens if there is no modifier.
1340 (d_init_info): Permit as many substitutions as there are
1341 characters in the mangled name.
1342 * testsuite/demangle-expected: Add two new test cases.
1344 2003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
1346 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
1349 2003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
1351 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
1353 (print_usage): Display new -p option.
1354 (long_options): Add --no-params.
1355 (main): Accept and handle -p.
1357 2003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
1359 * cp-demangle.c (has_return_type): Skip qualifiers when checking
1360 whether we have a template.
1361 * testsuite/demangle-expected: Add four new tests.
1363 2003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
1365 * testsuite/demangle-expected: Minor changes to match output of
1366 new demangler: adjust whitespace in four tests, and change order
1367 of qualifiers in one test.
1369 * cp-demangle.c: Complete rewrite.
1371 2003-11-19 Mark Mitchell <mark@codesourcery.com>
1373 * cp-demangle.c (demangle_type): Correct thinko in substitution
1376 2003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
1378 * cp-demangle.c (demangle_operator_name): Remove space before
1380 (demangle_type_ptr): Put qualifiers in the right place. Handle
1381 qualifiers in pointer to member specially.
1382 (demangle_type): Handle qualifiers for pointer or reference
1383 specially. Handle function type.
1384 (demangle_local_name): Save and restore caret around demangling of
1387 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
1390 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
1392 2003-10-31 Andreas Jaeger <aj@suse.de>
1394 * floatformat.c (floatformat_always_valid): Add unused attribute.
1396 2003-10-30 Josef Zlomek <zlomekj@suse.cz>
1398 Jan Hubicka <jh@suse.cz>
1399 * vasprintf.c (int_vasprintf): Pass va_list by value.
1400 Use va_copy for copying va_list.
1401 (vasprintf): Pass va_list by value.
1403 2003-10-30 Josef Zlomek <zlomekj@suse.cz>
1405 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
1406 instead of increasing n_elements when inserting to deleted slot.
1408 2003-10-20 J. Brobecker <brobecker@gnat.com>
1410 * cplus-dem.c (demangle_template): Register a new Btype only
1412 * testsuite/demangle-expected: Add a new test.
1414 2003-10-16 H.J. Lu <hongjiu.lu@intel.com>
1416 * testsuite/demangle-expected: Update the expected output of
1419 2003-10-02 Daniel Jacobowitz <drow@mvista.com>
1421 * strerror.c: Revert last change. Declare static sys_nerr
1422 and sys_errlist using different names.
1424 2003-10-01 Daniel Jacobowitz <drow@mvista.com>
1426 * strerror.c: Don't provide or reference sys_errlist if
1427 strerror is available.
1429 2003-10-01 H.J. Lu <hongjiu.lu@intel.com>
1431 * configure.in: Check if $MAKEINFO is missing.
1432 * configure: Regenerated.
1434 2003-09-24 Daniel Jacobowitz <drow@mvista.com>
1436 * configure.in: Use AC_PROG_CPP_WERROR.
1437 * configure: Regenerated.
1439 2003-09-22 Andrew Cagney <cagney@redhat.com>
1441 * floatformat.c (floatformat_i387_ext_is_valid): New function.
1442 (floatformat_always_valid): New function.
1443 (floatformat_i387_ext): Initialize new "is_valid" field to
1444 "floatformat_i387_ext_is_valid".
1445 (floatformat_ieee_single_little): Initialize "is_valid" field to
1446 floatformat_always_valid.
1447 (floatformat_ieee_double_big): Ditto.
1448 (floatformat_ieee_double_little): Ditto.
1449 (floatformat_ieee_double_little): Ditto.
1450 (floatformat_ieee_double_littlebyte_bigword): Ditto.
1451 (floatformat_i960_ext): Ditto.
1452 (floatformat_m88110_ext): Ditto.
1453 (floatformat_m88110_harris_ext): Ditto.
1454 (floatformat_arm_ext_big): Ditto.
1455 (floatformat_arm_ext_littlebyte_bigword): Ditto.
1456 (floatformat_ia64_spill_big): Ditto.
1457 (floatformat_ia64_spill_little): Ditto.
1458 (floatformat_ia64_quad_big): Ditto.
1459 (floatformat_ia64_quad_little): Ditto.
1460 (floatformat_ia64_quad_little): Ditto.
1461 (floatformat_is_valid): Call "is_valid".
1463 2003-09-15 Andrew Cagney <cagney@redhat.com>
1465 * floatformat.c (get_field): Make "data" constant.
1466 (floatformat_is_valid, floatformat_to_double): Make "from"
1467 constant, fix casts.
1468 (floatformat_from_double): Make "from" constant.
1470 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
1472 * floatformat.c (floatformat_is_valid): New function.
1473 (get_field, put_field): Correct comments.
1475 2003-09-06 Josef Zlomek <zlomekj@suse.cz>
1477 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
1480 2003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1483 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
1484 * configure: Rebuilt.
1486 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
1488 * aclocal.m4: Include acx.m4 and no-executables.m4.
1489 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
1490 (LIB_AC_PROG_CC): Remove.
1491 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
1492 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
1493 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
1494 performing link tests.
1495 * configure: Regenerated.
1497 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
1499 * cp-demangle.c: Clarify what package(s) this is part of.
1501 2003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
1503 * pex-win32.c (pexecute): Mark parameters this_pname and
1504 temp_base as unused. Remove unused variables retries,
1505 sleep_interval. Initialize org_stdin, org_stdout.
1506 (pwait): Mark parameter flags as unused.
1508 2003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
1510 * pex-win32.c (fix_argv): Ensure that the executable pathname
1511 uses Win32 backslashes.
1512 (pexecute): Cast away constness when assigning *errmsg_arg.
1514 2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
1516 * testsuite/demangle-expected: Add more GNU V3 testcases.
1518 2003-06-22 Zack Weinberg <zack@codesourcery.com>
1520 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
1521 not HC_ASCII and HC_EBCDIC.
1522 Add documentation in form expected by gather-docs.
1523 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
1524 * Makefile.in, functions.texi: Regenerate.
1526 2003-06-21 Zack Weinberg <zack@codesourcery.com>
1528 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
1529 for charset determination.
1531 2003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
1533 * configure.in: Add check for malloc.h needed by
1534 m68k for function free().
1535 * configure: Regenerated.
1536 * config.in: Add HAVE_MALLOC_H.
1537 * hashtab.c: include malloc.h were available for
1540 2003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
1543 * physmem.c: Update comment.
1544 * configure.in: Modify test for _system_configuration for older
1547 * config.in, configure: Regenerated.
1549 2003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1552 * test-demangle.c (getline): Fix fence-post error.
1554 2003-06-03 Nick Clifton <nickc@redhat.com>
1556 * asprintf.c: Change comment to note that -1 is returned upon
1558 * vasprintf.c: Likewise.
1559 (vasprintf): Return -1 upon error.
1560 * functions.texi: Document changes to asprintf and vasprintf.
1562 2003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
1564 * config.table: Accept i[345867]86 variant.
1566 2003-05-15 Jim Blandy <jimb@redhat.com>
1568 * hex.c (_hex_value): Make this unsigned.
1569 (hex_value): Update documentation for new return type. hex_value
1570 now expands to an unsigned int expression, to avoid unexpected
1571 sign extension when we store it in a bfd_vma, which is larger than
1572 int on some platforms.
1573 * functions.texi: Regenerated.
1575 2003-05-07 Josef Zlomek <zlomekj@suse.cz>
1577 * splay-tree.c (splay_tree_predecessor): Fix comment.
1578 (splay_tree_successor): Fix comment.
1580 2003-05-07 Jason Merrill <jason@redhat.com>
1582 * hashtab.c (iterative_hash): New fn.
1583 * configure.in: Add AC_C_BIGENDIAN_CROSS.
1584 * aclocal.m4: Include accross.m4.
1585 * configure, config.in: Regenerate.
1587 2003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1589 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
1590 * configure: Regenerate.
1592 2003-05-03 Carlo Wood <carlo@alinoe.com>
1594 * cp-demangle.c: Fix typo in "char_traints" string-literal.
1596 2003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1598 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
1599 (main): Test that we don't write too much data.
1601 2003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1603 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
1605 * snprintf.c, vsnprintf.c: New files.
1606 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
1607 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
1608 Regenerate dependencies.
1610 * functions.texi, configure, config.in: Regenerated.
1612 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1614 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
1615 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
1617 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
1618 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
1619 Regenerate dependencies.
1621 * functions.texi, configure, config.in: Regenerated.
1623 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1625 * argv.c: Fix comments.
1626 * calloc.c: Don't unnecessarily include "libiberty.h".
1627 (bzero): Add prototype.
1628 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1629 * getcwd.c (getcwd): Use standard definition to avoid conflicts
1630 with system headers.
1631 * hashtab.c (htab_traverse): Delete unused variables.
1632 * rename.c: Include "ansidecl.h".
1633 (rename): Use standard definition to avoid conflicts with system
1635 * strsignal.c: Rely on ANSI_PROTOTYPES.
1636 * strstr.c: Check GNUC >= 2, not GNUC == 2.
1637 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1638 * vprintf.c: Include "ansidecl.h" earlier, rely on
1640 * vsprintf.c: Include "ansidecl.h" earlier, rely on
1641 ANSI_PROTOTYPES and possibly include <stdarg.h>.
1643 * Makefile.in: Regenerate dependencies.
1645 2003-04-15 DJ Delorie <dj@redhat.com>
1647 * maint-tool (deps): Scan for headers in $srcdir also.
1649 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1654 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
1656 * regex.c (regerror): Likewise.
1658 2003-04-14 Roger Sayle <roger@eyesopen.com>
1660 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
1661 * memchr.c: Likewise.
1662 * strcasecmp.c: Likewise.
1663 * strncasecmp.c: Likewise.
1664 * strncmp.c: Likewise.
1665 * xatexit.c: Likewise.
1666 * xmalloc.c: Likewise.
1668 * copysign.c: Use traditional function declaration instead of DEFUN.
1669 * sigsetmask.c: Likewise.
1671 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
1672 * memset.c: Likewise.
1674 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
1675 * memmove.c: Likewise.
1677 2003-04-14 Roger Sayle <roger@eyesopen.com>
1679 * strdup.c (strdup): Tweak implementation to use memcpy.
1681 2003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1683 * configure.in (HAVE_UINTPTR_T): Always define.
1684 * configure: Regenerated.
1686 2003-03-23 Alexandre Oliva <aoliva@redhat.com>
1688 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
1689 instead of $$CC alone.
1690 (install_to_tooldir): Use it.
1692 2003-17-03 Jan Hubicka <jh@suse.cz>
1694 * hashtab.c (htab_traverse_noresize): Break out from ...
1695 * hashtab.c (htab_traverse): ... here.
1697 2003-12-03 Jan Hubicka <jh@suse.cz>
1699 * hashtab.c (htab_expand): Fix warning.
1701 * hashtab.c (htab_expand): Compute the size of hashtable based
1702 on the number of elements actually used.
1703 (htab_traverse): Call htab_expand when table is too empty.
1705 2003-03-11 Carlo Wood <carlo@gnu.org>
1707 * cplus-dem.c (demangle_integral_value): Correction to reflect
1708 patch of 2002-01-10 in order to also make negative multi-digits
1709 without leading underscore work.
1711 2003-03-03 Mark Mitchell <mark@codesourcery.com>
1713 * cplus-dem.c: Add license exception to copyright notice.
1715 2003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1717 * physmem.c: Formatting changes from upstream.
1719 2003-02-24 Danny Smith <dannysmith@users.source.forge.net>
1721 * physmem.c (physmem_total): Add _WIN32 support.
1722 (physmem_available): Likewise.
1724 2003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1726 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
1728 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
1730 2003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1732 * configure.in: Check for sys/systemcfg.h and
1733 _system_configuration.
1734 * physmem.c: Add support for AIX. Tweek formatting as per
1735 upstream coreutils beta.
1737 2003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1738 Richard Earnshaw <rearnsha@arm.com>
1739 Geoffrey Keating <geoffk@apple.com>
1741 * configure.in: Check for sys/sysctl.h and sysctl.
1742 * physmem.c: Add support for *bsd and darwin.
1743 * Makefile.in: Generate depedency for physmem.o.
1745 2003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1747 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
1749 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
1752 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
1753 machine/hal_sysinfo.h, sys/table.h.
1754 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
1755 * configure, config.in: Regenerate.
1757 2003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1759 * configure.in: Check for sys/sysmp.h and sysmp.
1760 * physmem.c: Pull upstream copy, add support for irix6.
1762 * config.in, configure: Regenerated.
1764 2003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1766 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
1767 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
1770 2003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1772 * Makefile.in (CFILES): Add physmem.c.
1773 (REQUIRED_OFILES): Add physmem.o.
1774 * configure.in: Check for sys/pstat.h.
1775 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
1776 * physmem.c: New file, copied from textutils.
1778 * config.in, configure: Regenerated.
1780 2003-02-20 Daniel Jacobowitz <drow@mvista.com>
1782 * Makefile.in (CFILES): Add lrealpath.c.
1783 (REQUIRED_OFILES): Add lrealpath.o.
1784 (lrealpath.o): Add rule.
1785 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
1786 * configure.in: Add realpath and canonicalize_file_name to
1787 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
1788 for canonicalize_file_name.
1789 * lrealpath.c: New file.
1790 * make-relative-prefix.c: Update documentation.
1791 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
1792 * config.in: Regenerated.
1793 * configure: Regenerated.
1794 * functions.texi: Regenerated.
1796 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1798 * cplus_dem.c: Fix typo: intializes -> initializes.
1800 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
1802 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
1804 * configure: Rebuilt.
1806 2003-02-13 Daniel Jacobowitz <drow@mvista.com>
1809 * cplus-dem.c (demangle_signature): Call string_delete.
1810 Remove extra string_init.
1811 (demangle_arm_hp_template): Call string_delete instead of
1812 string_clear. Add missing string_delete call.
1813 (demangle_qualified): Add missing string_delete call.
1814 (do_type): Remove unused variable btype. Add missing string_delete
1815 call. Call string_delete instead of string_clear.
1816 (demangle_fund_type): Move variable btype inside of the switch
1817 statement. Add missing string_delete call.
1818 (do_arg): Call string_delete instead of string_clear. Remove extra
1820 (demangle_nested_args): Free work->previous_argument.
1822 2003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1824 * acconfig.h: New file. Add uintptr_t.
1825 * config.in: Regenerated.
1827 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
1829 * libiberty.texi: Update to GFDL 1.2.
1831 2003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1833 * Makefile.in (libiberty_topdir): New subst.
1834 (mkinstalldirs): Redefine in terms of the above.
1835 * configure.in: AC_SUBST it.
1836 * configure: Regenerate.
1838 2003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1840 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
1841 (info-subdir, install-info-subdir, clean-info-subdir)
1842 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
1843 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
1844 Pass $(FLAGS_TO_PASS).
1846 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1848 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
1849 /`$$CC -print-multi-os-directory`.
1851 2003-01-26 Daniel Jacobowitz <drow@mvista.com>
1853 * hashtab.c (htab_create_alloc_ex): New function.
1854 (hatab_set_functions_ex): New function.
1855 (htab_delete, htab_expand): Support alternate allocation functions.
1857 2003-01-24 Christopher Faylor <cgf@redhat.com>
1859 * configure.in: Remove special pex-cygwin consideration.
1860 * configure: Regenerate.
1861 * pex-cygwin.c: Remove.
1862 * Makefile.in: Remove pex-cygwin.[co] lines.
1864 2003-01-24 Zack Weinberg <zack@codesourcery.com>
1866 * Makefile.in (CFILES): Add pex-*.c.
1867 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
1868 (CONFIGURED_OFILES): Add pex-*.o.
1869 (TEXIFILES): Add pexecute.txh.
1870 (pexecute.o): Delete rule.
1871 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
1872 pex-unix.o, pex-win32.o): New rules.
1873 * configure.in: Change AC_INIT argument to xmalloc.c.
1874 Compute appropriate pexecute implementation and substitute it
1877 * pexecute.c: Split up into...
1878 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
1879 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
1882 * functions.texi: Regenerate.
1883 * configure: Regenerate.
1885 2003-01-20 Josef Zlomek <zlomekj@suse.cz>
1887 * hashtab.c (htab_expand): Fix allocation of new entries.
1889 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1891 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
1893 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
1894 mkinstalldirs command.
1896 2002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
1898 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
1899 Define for hosts with HOST_EXECUTABLE_SUFFIX.
1901 2002-11-24 Nick Clifton <nickc@redhat.com>
1903 * make-relative-prefix.c (make_relative_prefix): Ensure return
1904 string is empty before using strcat to construct it.
1906 2002-11-22 Daniel Jacobowitz <drow@mvista.com>
1908 * Makefile.in: Add make-relative-prefix.c.
1909 * make-relative-prefix.c: New file.
1910 * functions.texi: Rebuilt.
1912 2002-11-16 Jakub Jelinek <jakub@redhat.com>
1914 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
1915 used with arguments in traditional C' warnings.
1917 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1919 * config.table: Use mh-s390pic for s390x too.
1921 2002-10-06 Andreas Jaeger <aj@suse.de>
1923 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
1924 variable and of strict-aliasing warning.
1925 (grow_vect): Use char as first parameter.
1927 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1929 * Makefile.in (all): Fix multilib parallel build.
1931 2002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
1933 * cp-demangle.c (demangling_new): Cast 0 to enum.
1934 (demangle_char): Cast return of strdup to char *.
1935 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
1936 (is_gnu_v3_mangled_dtor): Likewise.
1937 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
1938 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
1939 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
1940 * md5.c (md5_process_bytes): Cast results back to const void *.
1941 (md5_process_block): Add cast to const md5_uint32 *.
1942 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
1943 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
1945 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
1947 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
1949 2002-09-19 Nick Clifton <nickc@redhat.com>
1951 * README: Update email addresses for bugs and patches.
1953 2002-09-10 Mike Stump <mrs@apple.com>
1955 * splay-tree.c (splay_tree_successor): Fix comments.
1957 2002-09-11 Zack Weinberg <zack@codesourcery.com>
1959 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
1960 * testsuite/Makefile.in: Adjust for test-demangle.
1961 * testsuite/regress-demangle: Deleted.
1962 * testsuite/test-demangle.c: New file.
1963 * testsuite/demangle-expected: Change \$ to $ throughout, now that
1964 this file is not being read by a shell script.
1966 2002-09-05 Roger Sayle <roger@eyesopen.com>
1968 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
1970 2002-08-07 DJ Delorie <dj@redhat.com>
1972 * regex.c (re_error_msgid): Just use a simple array of strings.
1973 (re_compile_pattern): Compensate.
1974 (re_comp): Likewise.
1975 (re_comp): Likewise.
1976 (regerror): Likewise.
1978 2002-07-29 Neil Booth <neil@daikokuya.co.uk>
1980 * cplus-dem.c (PREPEND_BLANK): Remove.
1982 2002-07-10 Jason Merrill <jason@redhat.com>
1984 * cp-demangle.c (demangle_identifier): Support extended Unicode
1987 2002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1989 * cp-demangle.c (demangle_v3_with_details): Wrap in
1990 !defined IN_GLIBCPP_V3.
1992 2002-07-01 Mark Mitchell <mark@codesourcery.com>
1994 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
1995 Set it for the "st" operator.
1996 (demangle_expression): Handle expressions with types as arguments.
1998 2002-06-30 Douglas Rupp <rupp@gnat.com>
2000 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
2001 * Makefile.in (OUTPUT_OPTION): Use.
2003 2002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
2005 * Makefile.in (install_to_libdir): Add $(DESTDIR).
2006 (install_to_tooldir): Likewise.
2008 2002-06-17 Douglas Rupp <rupp@gnat.com>
2010 * lbasename.c: Add 2002 to copyright.
2011 (IS_DIR_SEPARATOR): Remove VMS junk.
2013 2002-06-05 Geoffrey Keating <geoffk@redhat.com>
2015 * hashtab.c (htab_create): New stub function for backward
2017 (htab_try_create): Likewise.
2019 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
2021 * hashtab.c (htab_create): Delete.
2022 (htab_try_create): Delete.
2023 (htab_create_alloc): New.
2024 (htab_delete): Support user-specified memory allocation.
2025 (htab_expand): Likewise.
2027 2002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
2029 * configure.in: Fix typo in the code checking for sys_errlist.
2030 * configure: Regenerated.
2032 2002-05-13 Andreas Schwab <schwab@suse.de>
2034 * config.table: Use mh-x86pic also for x86-64.
2036 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2038 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2039 script entry, and set LD to it when configuring multilibs.
2040 * configure: Rebuilt.
2042 2002-05-07 Mark Mitchell <mark@codesourcery.com>
2044 * configure.in (AC_TYPE_PID_T): Use it.
2045 * configure: Regenerated.
2046 * getruntime.c: Include <sys/types.h>.
2047 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
2049 2002-04-09 Richard Henderson <rth@redhat.com>
2051 * hashtab.c (higher_prime_number): Use 7 as minimum.
2052 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
2053 (htab_find_slot_with_hash): Likewise.
2055 2002-04-01 Phil Edwards <pme@gcc.gnu.org>
2057 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
2058 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
2059 not compile if IN_GLIBCPP_V3 defined.
2060 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
2062 2002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2064 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
2067 2002-03-27 DJ Delorie <dj@redhat.com>
2069 * hex.c: Add documentation.
2070 (_hex_value): Provide non-ASCII empty table.
2071 (hex_init): Initialize the non-ASCII table.
2072 * functions.texi: Regenerate.
2074 2002-03-27 Mark Mitchell <mark@codesourcery.com>
2076 * dyn-string.c: Add libgcc exception to copyright notice.
2078 2002-03-26 H.J. Lu (hjl@gnu.org)
2080 * config.table: Support --with-build-subdir.
2081 * configure.in: Likewise.
2082 * configure: Rebuild.
2084 2002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
2086 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
2089 2002-03-12 Mark Mitchell <mark@codesourcery.com>
2091 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
2094 2002-03-11 Douglas B Rupp <rupp@gnat.com>
2096 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
2098 2002-03-06 Jim Blandy <jimb@redhat.com>
2100 * splay-tree.c (splay_tree_xmalloc_allocate,
2101 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
2102 prototyped definitions. Mark `data' arguments as unused.
2104 2002-03-06 Andrew Cagney <ac131313@redhat.com>
2106 * floatformat.c (floatformat_arm_ext_big): Delete definition.
2108 2002-03-04 Phil Edwards <pme@gcc.gnu.org>
2110 * configure.in: Add --enable-install-libiberty option.
2111 * Makefile.in (INSTALLED_HEADERS): New variable.
2112 (install_to_libdir): Possibly also copy headers.
2113 * configure: Regenerated.
2115 2002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
2117 * xmalloc.c (xmalloc_fail): Clarify error message further.
2119 2002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
2121 * xmalloc.c (xmalloc_fail): Clarify error message.
2123 2002-02-22 Jim Blandy <jimb@redhat.com>
2125 * splay-tree.c (splay_tree_xmalloc_allocate,
2126 splay_tree_xmalloc_deallocate): New functions.
2127 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
2128 above functions and a dummy data pointer.
2129 (splay_tree_new_with_allocator): New function.
2130 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
2131 splay_tree_remove): Use the splay tree's allocation and
2132 deallocation functions.
2134 2002-02-19 Scott Snyder <snyder@fnal.gov>
2136 * testsuite/demangle-expected: Add test case for infinite loop in
2138 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
2139 if do_type() doesn't make any progress --- prevents an infinite
2142 2002-02-18 Carlo Wood <carlo@gnu.org>
2145 * cplus-dem.c (demangle_integral_value): Accept multi-digit
2146 numbers that do not start with an underscore; This is needed
2147 for integer template parameters. This doesn't break anything
2148 because multi-digit numbers are never followed by a digit.
2149 * testsuite/demangle-expected: Corrected all mangled test
2150 cases with multi-digit template parameters: g++ 2.95.x does
2151 not generate underscores around these parameters.
2153 2002-02-05 Jason Merrill <jason@redhat.com>
2155 * cplus-dem.c (flags): Add DMGL_VERBOSE
2156 (cplus_demangle_v3_p): Remove.
2157 (demangle_it): Add DMGL_TYPES to passed flags.
2158 * cp-demangle.c (cplus_demangle_v3_all): Remove.
2159 (cplus_demangle_v3_type): Remove.
2160 (cplus_demangle_v3): Add options parm.
2162 2002-02-02 H.J. Lu (hjl@gnu.org)
2164 * cp-demangle.c (cp_demangle_type): Do not protect with
2166 (cplus_demangle_v3_all): New.
2167 (cplus_demangle_v3): Call cplus_demangle_v3_all.
2168 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
2170 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
2171 Initialized to cplus_demangle_v3.
2172 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
2173 of cplus_demangle_v3.
2174 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
2175 command line symbol.
2177 * testsuite/regress-demangle: Pass the mangled name at the
2180 2002-02-01 H.J. Lu <hjl@gnu.org>
2182 * cp-demangle.c (cp_demangle_type): Call demangling_new with
2185 2002-01-31 Phil Edwards <pme@gcc.gnu.org>
2187 * cp-demangle.c: Revert yesterday's change.
2189 2002-01-31 Adam Megacz <adam@xwt.org>
2191 * gcc/libiberty/configure.in: Treat mingw the same as cywin
2192 wrt HAVE_SYS_ERRLIST.
2194 2002-01-30 Phil Edwards <pme@gcc.gnu.org>
2196 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
2197 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
2199 * testsuite/demangle-expected: New gnu-v3 test.
2201 2002-01-22 Momchil Velikov <velco@fadata.bg>
2203 * configure.in (variable detection): Use arrays of unspecified
2204 size instead of plain integers.
2206 2002-01-18 DJ Delorie <dj@redhat.com>
2208 * Makefile.in (TESTLIB): New. This library is for future
2210 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
2211 break down by letter.
2212 (REQUIRED_OFILES): List long-to-compile files first.
2213 (maint-deps): New, target for updating dependencies.
2214 (dependencies): Update.
2215 * maint-tool: Add dependency-generating option.
2216 * configure.in: Check for _doprnt even if we're not providing it.
2217 * configure: Regenerate.
2219 * _doprnt.c: Modifications to allow compiling on any platform.
2220 * copysign.c: Likewise.
2221 * putenv.c: Likewise.
2222 * setenv.c: Likewise.
2223 * vsprintf.c: Likewise.
2225 2002-01-15 Douglas B Rupp <rupp@gnat.com>
2227 * mkstemps.c (mkstemps): On VMS, open temp file with option
2228 that causes it to be deleted when closed.
2230 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2232 * cp-demangle.c (long_options): Const-ify.
2233 * cplus-dem.c (long_options): Likewise.
2235 * cplus-dem.c (mystrstr): Delete. All callers changed to use
2238 2001-12-31 Ira Ruben <ira@apple.com>
2240 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
2241 * configure: Regenerated.
2243 2001-12-24 Douglas B. Rupp <rupp@gnat.com>
2245 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
2246 * configure: Regenerated.
2248 2001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
2251 * cplus-dem.c (consume_count): Treat negative count as an error.
2252 * testsuite/demangle-expected: Added testcase.
2254 Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
2256 * configure.in: Hardcode that vfork works on VMS host.
2257 * configure: Regenerated.
2259 2001-12-06 Richard Henderson <rth@redhat.com>
2261 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
2262 (cplus_demangle): Support no_demangling.
2264 2001-11-27 Zack Weinberg <zack@codesourcery.com>
2266 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
2267 in libiberty context. Fix typo in leading comment.
2268 * configure.in: Fix various AC_DEFINEs so autoheader works.
2269 If any of vprintf, vsprintf, vfprintf is missing from libc,
2270 then AC_REPLACE_FUNCS(_doprnt).
2272 2001-11-26 DJ Delorie <dj@redhat.com>
2273 Daniel Jacobowitz <drow@mvista.com>
2275 * Makefile.in (stamp-h): Depend on Makefile for proper
2277 (*-subdir): Depend on config.h for proper serialization.
2279 2001-11-26 DJ Delorie <dj@redhat.com>
2281 * configure.in: Check for alloca.h (for regex.c and putenv.c).
2282 * configure: Regenerate.
2283 * config.h: Add HAVE_ALLOCA_H.
2285 2001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2287 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
2288 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
2291 Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
2293 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
2294 * configure.in (HAVE_UINTPTR_T): Test for system defining
2295 uintptr_t and define HAVE_UINTPTR_T appropriately.
2296 * regex.c (uintptr_t): Do not provide a definition if the
2297 system provided one.
2299 * regex.c (PREFIX): Provide an alternate definition for
2300 non-ANSI/ISO compilers.
2301 (ARG_PREFIX): Likewise.
2303 2001-11-12 Jim Meyering <meyering@lucent.com>
2305 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
2306 this code would end up calling gettext even in packages built
2308 * getopt.c (_): Likewise.
2309 * regex.c (_): Likewise.
2311 2001-11-03 Alan Modra <amodra@bigpond.net.au>
2313 * configure.in: Cope with missing makeinfo.
2314 * configure: Regenerate.
2316 2001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2318 * hex.c (hex_init): Provide empty stub.
2320 * hex.c (hex_init): Delete.
2321 (_hex_value): Const-ify and initialize at compile-time.
2323 2001-10-19 H.J. Lu <hjl@gnu.org>
2325 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
2328 2001-10-17 DJ Delorie <dj@redhat.com>
2330 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
2331 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
2332 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
2333 Improve manual formatting.
2334 * functions.texi: Regenerate.
2336 2001-10-15 DJ Delorie <dj@redhat.com>
2338 * Makefile.in (TEXIFILES): Add fnmatch.txh.
2340 maint-tool: Add "undoc" tool.
2341 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
2342 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
2343 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
2344 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
2347 * functions.texi: Regenerate.
2349 2001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
2351 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
2352 * strtod.c: Use "ISO C" instead of "ANSI C".
2353 * functions.texi: Regenerate.
2355 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
2357 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
2358 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
2359 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
2360 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
2361 spelling. Give names to function arguments in documentation. Use
2362 (void) prototypes in documentation.
2363 * functions.texi: Regenerate.
2365 2001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2367 * argv.c (buildargv, tests, main): Const-ify.
2368 * cp-demangle.c (operator_code): Likewise.
2369 * cplus-dem.c (optable, libiberty_demanglers,
2370 cplus_demangle_set_style, cplus_demangle_name_to_style,
2371 print_demangler_list): Likewise.
2372 * hashtab.c (higher_prime_number): Likewise.
2373 * strcasecmp.c (charmap): Likewise.
2374 * strerror.c (error_info, strerror, main): Likewise.
2375 * strncasecmp.c (charmap): Likewise.
2376 * strsignal.c (signal_info): Likewise.
2378 2001-09-29 DJ Delorie <dj@redhat.com>
2380 * configure: Regenerate.
2382 2001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2384 * concat.c: Include stdlib.h.
2386 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2388 * libiberty.texi: (Top level): Add syncodeindex pg. Add
2389 @dircategory and @direntry directives. Add @finalout.
2390 (many nodes): Lose the next,prev,up pointers on the @nide line.
2391 (Using, Supplemental Functions, Replacement Functions): Fix
2393 (Functions): Move around, to allow makeinfo to build the manual
2394 without next,prev,up pointers in thye node lines.
2395 (Licenses): Fix typos.
2397 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
2398 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
2399 * functions.texi: Regenerate.
2401 * copying-lib.texi: Lose the next,prev,up pointers on the @node
2404 2001-09-27 DJ Delorie <dj@redhat.com>
2406 * configure.in: Don't use in-tree texinfo, because libiberty must
2407 be built before it. Check for makeinfo version 4 or higher.
2408 * functions.texi: Regenerate.
2410 2001-09-20 DJ Delorie <dj@redhat.com>
2411 Phil Edwards <pedwards@disaster.jaj.com>
2413 * configure.in (MAKEINFO, PERL): Detect these.
2414 (--enable-maintainer-mode): Add.
2415 * configure: Regenerate.
2416 * Makefile.in (MAKEINFO, PERL): Define.
2417 (libiberty.info, libiberty.dvi, libiberty.html): New.
2418 (CFILES): Add bsearch.c.
2419 (CONFIGURED_OFILES): New, list of objects configure might add.
2420 (maint-missing, maint-buildall): New, for maintainers only.
2421 (clean, mostlyclean): Add info/dvi/html files.
2422 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
2423 * gather-docs: New, for maintainers.
2424 * maint-tool: New, for maintainers.
2425 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
2426 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
2427 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
2428 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
2429 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
2430 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
2431 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
2432 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
2435 2001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2437 * concat.c (reconcat): Fix for traditional C.
2439 2001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2441 * concat.c (reconcat): New function.
2443 2001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2445 * concat.c (vconcat_length, vconcat_copy, concat_length,
2446 concat_copy, concat_copy2): New functions.
2447 (concat): Use vconcat_length/vconcat_copy.
2449 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
2452 2001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2454 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
2455 VA_FIXEDARG & VA_CLOSE.
2457 * vasprintf.c: Check HAVE_STRING_H when including string.h.
2458 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
2459 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
2461 2001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2463 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
2465 2001-08-23 Ulrich Drepper <drepper@redhat.com>
2467 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
2469 2001-08-23 Ulrich Drepper <drepper@redhat.com>
2471 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2473 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2474 wcslen, and __wcscoll instead of wcscoll.
2476 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2478 * fibheap.c (fibheap_init, fibnode_init): Remove.
2479 (fibheap_new, fibnode_new): Use xcalloc to allocate and
2481 (fibheap_insert): Remove check for node allocation failure.
2483 2001-08-21 Richard Henderson <rth@redhat.com>
2485 * Makefile.in (fibheap.o): Depend on config.h.
2486 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
2487 functions for inlining.
2489 Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
2491 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
2493 * configure: Regenerate.
2495 2001-08-20 Andrew Cagney <ac131313@redhat.com>
2497 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
2498 HARRIS_FLOAT_FORMAT.
2499 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
2500 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
2501 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
2502 (floatformat_m88110_harris_ext): New float formats.
2504 2001-08-20 Daniel Berlin <dan@cgsoftware.com>
2506 * fibheap.c: New file. Fibonacci heap.
2508 * Makefile.in (CFILES): Add fibheap.c.
2509 (REQUIRED_OFILES): Add fibheap.o.
2510 (fibheap.o): Add dependencies for fibheap.o.
2512 2001-08-17 Christopher Faylor <cgf@cygnus.com>
2514 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
2515 * configure: Regenerate.
2517 2001-08-16 Richard Henderson <rth@redhat.com>
2519 * hashtab.c (htab_hash_string): New.
2521 2001-08-13 Andrew Cagney <ac131313@redhat.com>
2523 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
2526 2001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
2528 * regex.c (wcs_regex_compile): Use appropriate string
2529 to compare with collating element.
2530 Fix the padding for the alignment.
2532 2001-08-10 Andrew Cagney <ac131313@redhat.com>
2534 * lbasename.c (lbasename): Change function definition to return a
2537 2001-08-07 Jason Merrill <jason_merrill@redhat.com>
2539 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
2542 2001-08-03 Richard Henderson <rth@redhat.com>
2544 * Makefile.in (concat.o): Depend on config.h.
2546 2001-07-30 Andreas Jaeger <aj@suse.de>
2548 * concat.c: Include "config.h".
2550 2001-07-30 Andreas Jaeger <aj@suse.de>
2552 * regex.c: Declare wcs functions only if compiling with
2554 Don't use #elif for traditional C.
2556 2001-07-23 Ulrich Drepper <drepper@redhat.com>
2558 * regex.c: Revamp memory allocation for WCHAR functions to
2559 not use too much stack.
2561 2001-07-30 Andreas Jaeger <aj@suse.de>
2563 * regex.c: Declare wcs functions only if compiling with
2565 Don't use #elif for traditional C.
2567 2001-07-25 Daniel Jacobowitz <drow@mvista.com>
2569 * Makefile.in (regex.o): Add dependency on config.h.
2571 2001-07-18 Andreas Schwab <schwab@suse.de>
2573 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
2574 underscore character.
2576 2001-07-18 Ulrich Drepper <drepper@redhat.com>
2578 * regex.c: Limit string length printed in debug messages to 100
2581 2001-07-18 Andreas Jaeger <aj@suse.de>
2583 * regex.c: Place under LGPL version 2.1.
2585 2001-07-10 Jeff Johnston <jjohnstn@redhat.com>
2587 * Makefile.in: Add support for regex code.
2588 * regex.c: New file.
2590 2001-07-05 Mark Klein <mklein@dis.com>
2592 * Makefile.in: Add ffs.c dependency.
2593 * configure.in: Add ffs.c.
2596 2001-06-18 Richard Henderson <rth@redhat.com>
2598 * concat.c: Include <sys/types.h>.
2600 2001-06-11 Loren J. Rittle <ljrittle@acm.org>
2603 * strerror.c (sys_nerr): Hide the OS header version.
2604 * strsignal.c (sys_nsig): Likewise.
2606 2001-06-10 Richard Henderson <rth@redhat.com>
2608 * concat.c: Include string.h. Fix int vs size_t usage.
2609 Simplify the iteration loops. Use memcpy.
2611 2001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2613 * partition.c: Fix misspelling of `implementation'.
2615 2001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2617 * md5.c (md5_init_ctx): Declare constants as unsigned.
2618 (md5_process_block): Likewise.
2620 2001-05-07 Zack Weinberg <zackw@stanford.edu>
2622 * cp-demangle.c (demangle_v3_with_details,
2623 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
2624 function definition.
2625 * ternary.c: Use K+R style function definitions. Use PTR, not
2626 void *. Make arguments constant where possible.
2628 2001-05-07 Mark Mitchell <mark@codesourcery.com>
2630 * splay-tree.h (splay_tree_max): New function.
2631 (splay_tree_min): Likewise.
2633 2001-04-15 Daniel Berlin <dan@cgsoftware.com>
2635 * ternary.c: New file - Ternary search tree implementation.
2637 * Makefile.in: Add ternary.o, and ternary.c dependencies.
2639 2001-04-03 Zack Weinberg <zackw@stanford.edu>
2641 * make-temp-file.c (try): Inline.
2643 2001-02-28 Richard Henderson <rth@redhat.com>
2645 * Makefile.in (make-temp-file.o): Depend on config.h.
2647 2001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2649 * memchr.c (memchr): Adjust condition to avoid infinite loop.
2651 2001-03-23 Jakub Jelinek <jakub@redhat.com>
2653 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
2654 `_' not followed by a digit is invalid.
2656 2001-03-22 Jim Blandy <jimb@redhat.com>
2658 * cp-demangle.c (string_list_delete): Use dyn_string_delete
2659 instead of free, to free the contents as well as the string
2662 2001-03-21 Zack Weinberg <zackw@stanford.edu>
2664 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
2665 Don't default P_tmpdir to anything. Try /var/tmp before
2668 2001-03-20 Zack Weinberg <zackw@stanford.edu>
2670 * choose-temp.c: Split off make_temp_file, and the code
2671 duplicated between it and choose_temp_base, into...
2672 * make-temp-file.c: ... here; new file.
2674 * Makefile.in (CFILES): Add make-temp-file.c.
2675 (REQUIRED_OFILES): Add make-temp-file.o.
2677 2001-03-20 Jim Blandy <jimb@redhat.com>
2679 * cp-demangle.c (struct demangling_def): New fields:
2680 is_constructor and is_destructor.
2681 (demangling_new): Initialize them.
2682 (demangle_ctor_dtor_name): Set them, if we detect a constructor
2684 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
2685 is_gnu_v3_mangled_dtor): New functions.
2687 2001-03-20 Jason Merrill <jason@redhat.com>
2689 * cplus-dem.c (main): Skip initial $.
2691 2001-03-15 Michael Meissner <meissner@redhat.com>
2693 * hashtab.c (higher_prime_number): Silence warning that 4294967291
2694 might be a signed integer under pre-ISO C systems.
2696 2001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
2697 John David Anglin <dave@hiauly1.hia.nrc.ca>
2699 * libiberty/lbasename.c: New file.
2700 * libiberty/Makefile.in: Update for lbasename.
2702 2001-03-06 Zack Weinberg <zackw@stanford.edu>
2704 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
2705 * configure.in: Replace all alloca logic with a simple use of
2706 the above new macro.
2707 * config.table: Kill *-*-beos* entry.
2708 * config/mh-beos: Delete.
2709 * configure, config.in: Regenerate.
2711 * Makefile.in (ALLOCA, HFILES): Kill.
2712 (REQUIRED_OFILES): Add alloca.o.
2713 (alloca.o): Depend on libiberty.h.
2714 (argv.o): Don't depend on alloca-conf.h.
2715 * alloca-conf.h: Delete.
2716 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
2717 blocks. Provide the C alloca unconditionally. Use PTR where
2718 appropriate. Make i00afunc static.
2719 * argv.c: Don't include alloca-conf.h.
2721 2001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2723 * cplus-dem.c (main): Cast enum style to int.
2725 2001-02-16 Loren J. Rittle <ljrittle@acm.org>
2727 * cplus-dem.c (main): Initialize style.
2729 2001-02-02 Phil Edwards <pme@sources.redhat.com>
2731 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
2733 2001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
2735 Add support for Java demangling under the v3 ABI:
2736 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
2737 (struct demangling_def): Add `style' field.
2738 (demangling_new): New parameter `style'. Set it in demangling_t.
2739 (demangle_prefix): Use NAMESPACE_SEPARATOR.
2740 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
2741 (cp_demangle): New parameter `style'. Pass it to demangling_new().
2742 (main): Call cp_demangle with extra parameter.
2743 (java_demangle_v3): New function.
2744 (java_builtin_type_names): New. Table of primitive type names used
2745 for Java demangling.
2746 (demangle_builtin_type): Look up in java_builtin_type_names if doing
2748 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
2750 (long_options): Remove obsolete `java' option.
2751 (main): Remove explicit handling of `java' option. Instead, pass style
2752 parameter in cplus_demangle flags as gdb does.
2753 * testsuite/demangle.expected: Add some Java test cases.
2755 2000-12-29 DJ Delorie <dj@redhat.com>
2757 * fnmatch.c: Make the note about the origins of this file more
2758 accurate, at least until we can sync with glibc.
2764 2000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2766 * bsearch.c: New file.
2767 * configure.in (funcs): Add bsearch.
2768 (AC_CHECK_FUNCS): Likewise.
2769 * configure, config.in: Regenerate.
2771 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2773 * safe-ctype.c: #include "ansidecl.h".
2774 * strtod.c: Likewise.
2776 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2778 * strtoul.c: Include safe-ctype.h, not ctype.h.
2780 2000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
2782 * safe-ctype.c: New file.
2783 * Makefile.in (CFILES): Add safe-ctype.c.
2784 (REQUIRED_OFILES): Add safe-ctype.o.
2786 * argv.c: Define ISBLANK and use it, not isspace.
2787 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
2788 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
2789 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
2790 before calling TOLOWER(c)/TOUPPER(c).
2792 2000-12-07 Mike Stump <mrs@wrs.com>
2794 * Makefile.in (distclean): When cleaning, remove testsuite.
2796 2000-12-05 Jason Merrill <jason@redhat.com>
2798 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
2799 name before allocating the dyn_string.
2801 2000-12-04 Jason Merrill <jason@redhat.com>
2803 * cp-demangle.c: s/new_abi/v3/.
2804 * cplus-dem.c: Likewise.
2805 (current_demangling_style): Now auto_demangling.
2806 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
2807 (main): Use standard symbol chars for auto_demangling.
2809 2000-11-26 Mark Mitchell <mark@codesourcery.com>
2811 * hashtab.c (higher_prime_number): Use a table, rather than a
2812 seive, to find the next prime.
2814 2000-11-22 H.J. Lu <hjl@gnu.org>
2816 * cplus-dem.c (main): Handle gnat_demangling.
2818 2000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2820 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
2821 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
2822 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
2823 argument form of AC_DEFINE in dummy definitions block. Use
2824 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
2825 in dummy block. Preload cache variables instead of bypassing
2826 tests, where possible.
2827 * acconfig.h: Removed.
2829 * xmalloc.c (xmalloc_failed): New function, does error
2830 reporting on failed allocation.
2831 (xmalloc, xcalloc, xrealloc): Use it.
2833 2000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
2835 * cplus-dem.c (cplus_demangle): Fix formatting.
2837 (ada_demangle): Ditto.
2838 (internal_cplus_demangle): Ditto.
2841 2000-11-21 H.J. Lu <hjl@gnu.org>
2843 * cplus-dem.c (main): Handle java_demangling.
2845 2000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2847 * cplus-dem.c (grow_vect): Prototype.
2848 (ada_demangle): Cast the arg of ctype macros to unsigned char.
2850 2000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
2852 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
2855 2000-11-15 Kenneth Block <kenneth.block@compaq.com>
2857 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
2860 2000-11-15 Kenneth Block <kenneth.block@compaq.com>
2862 * cplus-dem.c: Add gnat demangler. Add java to demangle style
2865 2000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
2867 * hashtab.c (htab_expand): Change to return int. Use calloc or
2868 xcalloc depending on htab->return_allocation_failure. Return zero
2870 (htab_create): Update comment to cover memory allocation.
2871 (htab_try_create): New.
2872 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
2873 Update comment to cover this.
2875 2000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
2877 * hashtab.c: Change void * to PTR where necessary.
2878 (htab_create, htab_expand): Correct formatting of comment before
2881 2000-10-22 Alex Samuel <samuel@codesourcery.com>
2883 * cp-demangle.c (string_list_def): Add caret_position and comments.
2884 (result_caret_pos): New macro.
2885 (result_append_string): Rename to...
2886 (result_add_string): ... this, and insert at caret position.
2888 (result_append): Rename to...
2889 (result_add): ... this, and insert at caret position. Rename
2891 (result_append_char): Rename to...
2892 (result_add_char): ... this, and insert at caret position. Rename
2894 (result_append_space): Remove.
2895 (string_list_new): Initialize caret position.
2896 (result_add_separated_char): Use caret position.
2897 (result_get_caret): New funtion.
2898 (result_set_caret): Likewise.
2899 (result_shift_caret): Likewise.
2900 (result_previous_char_is_space): Likewise.
2901 (substitution_start): Use caret position.
2902 (substitution_add): Likewise.
2903 (demangling_new): Initialize caret position.
2904 (demangle_encoding): Use caret position.
2905 (demanglin_nested_name): Put CV qualifiers after name.
2906 (demangle_type_ptr): Use switch statement. Handle pointers to
2907 arrays. Don't use result_append_space. Use caret position.
2908 (demangle_type): Emit CV qualifiers after underlying type. Adjust
2909 call to demangle_array_type.
2910 (demangle_array_type): Add parameter to handle pointers to arrays.
2912 2000-10-01 Mark Mitchell <mark@codesourcery.com>
2914 * splay-tree.c (splay_tree_insert): Fix formatting.
2916 2000-09-16 Mark Mitchell <mark@codesourcery.com>
2918 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
2920 2000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2922 * splay-tree.c: #include <stdio.h>.
2924 2000-09-14 Hans-Peter Nilsson <hp@axis.com>
2926 * testsuite/demangle-expected: Add two tests for anonymous
2928 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
2930 2000-09-10 Mark Mitchell <mark@codesourcery.com>
2932 * splay-tree.c (splay_tree_predecessor): New function.
2933 (splay_tree_successor): Likewise.
2935 2000-09-10 Hans-Peter Nilsson <hp@axis.com>
2937 * testsuite/demangle-expected: Add four tests for type_info
2939 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
2940 for a non-template non-qualified type_info function or node.
2942 2000-09-08 Alex Samuel <samuel@codesourcery.com>
2944 * cp-demangle.c: Fix copyright banner.
2946 2000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2948 * md5.c: #include "ansidecl.h".
2950 2000-09-06 Alex Samuel <samuel@codesourcery.com>
2952 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
2953 (demangle_type): Handle substitution candidates correctly in the
2954 face of special substitutions.
2956 2000-09-05 Alex Samuel <samuel@codesourcery.com>
2958 * cp-demangle.c (demangle_encoding): Rename variable.
2959 (demangle_name): Rename parameter. Handle return type
2961 (demangle_nested_name): Rename parameter.
2962 (demangle_prefix): Likewise. Change return type suppression.
2963 (demangle_unqualified_name): Add parameter. Flag constructors and
2964 conversion operators.
2965 (demangle_special_name): Fix comment.
2966 (demangle_type): Rename variable.
2967 (demangle_bare_function_type): Check for missing return type and
2969 (demangle_class_enum_type): Rename parameter.
2970 (demangle_discriminator): Fix misspelling in comment.
2972 2000-08-31 DJ Delorie <dj@redhat.com>
2974 * configure.in (Cygwin): special case cygwin only when we're
2975 building cygwin, not when we're hosting cygwin.
2977 2000-09-04 Alex Samuel <samuel@codesourcery.com>
2979 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
2982 2000-09-04 Alex Samuel <samuel@codesourcery.com>
2984 * cp-demangle.c (demangle_type_ptr): Increment position past
2985 pointer and reference characters.
2987 2000-09-04 Alex Samuel <samuel@codesourcery.com>
2989 * cp-demangle.c (demangle_nv_offset): New function.
2990 (demangle_v_offset): Likewise.
2991 (demangle_call_offset): Likewise.
2992 (demangle_special_name): Update thunk demangling to comply with
2995 2000-09-03 Alex Samuel <samuel@codesourcery.com>
2997 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
2998 (substitution_def): Remove template_parm_number.
2999 (NOT_TEMPLATE_PARM): Remove.
3000 (result_insert_string): New macro.
3001 (result_insert): Likewise.
3002 (result_insert_char): Likewise.
3003 (substitution_add): Remove last parameter. Don't store template
3005 (BFT_NO_RETURN_TYPE): Define as NULL.
3006 (demangle_encoding): Adjust call to demangle_bare_function_type.
3007 (demangle_name): Adjust substitution. Adjust call to
3009 (demangle_prefix): Adjust call to substitution_add.
3010 (demangle_identifier): Handle anonymous namespaces.
3011 (demangle_operator_name): Change demangling of vendor-extended
3012 operator to match ABI changes.
3013 (demangle_type_ptr): Change parameters. Make recursive. Handle
3015 (demangle_type): Adjust calls to demangle_template_param,
3016 substitution_add, and demangle_type_ptr. Fix substitution of
3018 (demangle_function_type): Change parameter to a pointer.
3019 (demangle_bare_function_type): Likewise. Adjust insertion point.
3020 (demangle_template_param): Remove last parameter.
3021 (demangle_expr_primary): Remove unused variable. Adjust call to
3022 demangle_template_param.
3023 (is_mangled_char): Accept `$' and `.'.
3024 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
3025 * dyn-string.c (dyn_string_insert_char): New function.
3027 2000-08-31 Hans-Peter Nilsson <hp@axis.com>
3029 * testsuite/demangle-expected: Add nine tests for
3030 underscore-after-number followed by five tests for name-signature
3033 2000-08-28 Richard Henderson <rth@cygnus.com>
3035 * Makefile.in (md5.o): Depend on config.h.
3037 2000-08-28 Jason Merrill <jason@redhat.com>
3039 * Makefile.in (REQUIRED_OFILES): Add md5.o.
3040 (CFILES): Add md5.c.
3043 2000-08-27 Alex Samuel <samuel@codesourcery.com>
3045 * cp-demangle.c (demangle_name): Initialize template_p in local
3046 name case. Don't re-add substitutions as candidates.
3047 (demangle_nested_name): Use <unqualified-name>.
3048 (demangle_prefix): Likewise. Don't add template names as
3049 substitution candidates twice, or re-add a substitution or the
3050 last prefix component.
3051 (demangle_local_name): Adjust output format.
3053 2000-08-25 Alex Samuel <samuel@codesourcery.com>
3055 * cp-demangle.c (result_add_separated_char): Change parameter to
3057 (substitution_add): Don't check for duplicates. Check if
3058 previously allocated size is zero.
3059 (demangle_name): Remove duplicate check for std substitution.
3060 Clear template flag appropriately.
3061 (demangle_prefix): Remove argument to demangle_substitution.
3062 Don't check that template flag is already set.
3063 (demangle_operator_name): Add pt operator.
3064 (demangle_type): Don't treat r as built-in type. Remove argument
3065 to demangle_substitution. Fix substitution candidate mechanics.
3066 Handle <template-template-parm>s. Improve comments.
3067 (demangle_template_param): Don't handle template arg lists here.
3068 (demangle_substitution): Remove parameter.
3069 (print_usage): Remove extra fprintf option.
3071 2000-08-24 Greg McGary <greg@mcgary.org>
3073 * libiberty/random.c (end_ptr): Revert previous change.
3075 2000-08-24 Greg McGary <greg@mcgary.org>
3077 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
3078 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
3079 * libiberty/random.c (end_ptr): Likewise.
3081 2000-08-23 Alex Samuel <samuel@codesourcery.com>
3083 * cp-demangle.c (result_close_template_list): Remove function.
3084 (result_add_separated_char): New function.
3085 (result_open_template_list): New macro.
3086 (result_close_template_list): Likewise.
3087 (demangle_prefix): Don't set template_p if the
3088 prefix ends with a ctor name.
3089 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
3090 (demangle_type): Check for template args after substitution.
3091 (demangle_template_args): Use result_open_template_list.
3093 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
3095 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
3097 2000-07-26 Dave Pitts <dpitts@cozx.com>
3099 * config/mh-openedition.h: Added -DLE370 definition.
3101 2000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
3103 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
3104 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
3105 Cast program to 'char *' in errmsg_arg assignment.
3106 (PWAIT_ERROR): Define.
3107 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
3108 to DJGPP's WIF* macros.
3110 2000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
3111 Jeff Law <law@cygnus.com>
3113 * getcwd.c: Include string.h, stdlib.h for prototypes
3115 * Makefile.in (rename.o, waitpid.o): Depend on config.h
3116 * rename.c: Include config.h, unistd.h
3117 * waitpid.c: Include config.h, sys/wait.h
3119 2000-07-24 Hans-Peter Nilsson <hp@axis.com>
3121 * cplus-dem.c (work_stuff_copy_to_from): New.
3122 (delete_non_B_K_work_stuff): New.
3123 (delete_work_stuff): New.
3124 (mop_up): Break out work_stuff partly destruction to
3125 delete_non_B_K_work_stuff.
3126 (iterate_demangle_function): New.
3127 (demangle_prefix): Call iterate_demangle_function instead of
3128 demangle_function_name. Leave handling of name-signature
3129 __-delimiters to iterate_demangle_function.
3130 (demangle_integral_value): Strip an optional
3131 following underscore cautiously. Handle negative numbers.
3133 2000-07-24 Daniel Berlin <dberlin@redhat.com>
3135 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3136 if (AUTO_DEMANGLING || GNU_DEMANGLING)
3138 2000-07-21 Alex Samuel <samuel@codesourcery.com>
3140 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
3141 allocating ctor mangling.
3142 (demangle_array_type): Handle empty and non-constant array length.
3144 2000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3145 Jeff Law <law@cygnus.com>
3147 * configure.in (AC_CHECK_HEADERS): Add time.h.
3148 (AC_HEADER_TIME): Add check.
3149 * configure, config.in: Regenerate.
3150 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
3152 * configure.in (AC_CHECK_HEADERS): Add limits.h.
3153 * configure, config.in: Regenerate.
3154 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
3155 * strtol.c, strtoul.c: #include "config.h". Portably #include
3156 <limits.h> and/or <sys/param.h>.
3157 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
3159 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
3160 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
3161 * configure, config.in: Regenerate.
3162 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
3164 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
3166 2000-07-21 Mike Stump <mrs@wrs.com>
3168 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
3169 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
3171 2000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3173 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
3175 * setenv.c (setenv): Initialize variable `ep'.
3177 * sigsetmask.c (abort): Prototype.
3179 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
3180 __STDC__ for stdarg.h include.
3181 (int_vasprintf): Prototype.
3182 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
3183 definition. Cast `global_total_width' in comparison.
3184 (main): Prototype. Return a value.
3186 * vfork.c (fork): Prototype.
3188 * xexit.c: Include config.h.
3190 2000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
3192 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
3193 and print it with %u.
3195 2000-07-17 Hans-Peter Nilsson <hp@axis.com>
3197 * testsuite/regress-demangle (failed test): Show result and
3200 2000-07-07 Andrew Haley <aph@cygnus.com>
3202 * cplus-dem.c (main): fflush() after emitting last char before
3205 2000-06-28 Alex Samuel <samuel@codesourcery.com>
3207 * cp-demangle.c (demangle_encoding): Accept no substitutions.
3208 (demangle_name): Handle <substitution> followed by
3209 <unqualified-template-name>.
3210 (demangle_type): Follow special substitutions with
3212 (demangle_subtitution): Set template_p for special substitutions.
3215 2000-06-27 Alex Samuel <samuel@codesourcery.com>
3217 * cp-demangle.c (demangle_special_name): Swap base and derived
3218 class when demangling construction vtables.
3220 2000-06-21 Alex Samuel <samuel@codesourcery.com>
3222 * cp-demangle.c: Don't include ctype.h.
3223 (IS_DIGIT): New macro.
3224 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
3225 instead of isdigit and isalpanum.
3226 (demangling_def): Make name and next const pointers.
3227 (STATUS_ALLOCATION_FAILED): New status code.
3228 (dyn_string_append_space): Handle failure in
3229 dyn_string_append_char.
3230 (int_to_dyn_string): Likewise. Change return value to status_t.
3231 (string_list_new): Handle failure of dyn_string_init.
3232 (result_close_template_list): Change return type to status_t.
3233 Handle failure in dyn_string_append.
3234 (result_push): Change return value to status_t. Handle failure in
3235 string_list_new. Handle failure of result_push throughout.
3236 (substitution_add): Change return value to status_t. Handle
3237 dyn_string failures. Handle failure of substitution_add
3239 (template_arg_list_new): Return NULL on allocation failure.
3240 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
3241 Handle error result throughout.
3242 (result_append): Likewise.
3243 (result_append_char): Likewise.
3244 (result_append_space): Likewise.
3245 (demangling_new): Make argument a const pointer. Handle
3246 allocation failures.
3247 (demangle_template_args): Handle failure in template_arg_list_new
3248 and result_close_template_list.
3249 (demangle_discriminator): Return if int_to_dyn_string fails.
3250 (cp_demangle): Likewise.
3251 (cp_demangle_type): New function.
3252 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
3253 memory allocation failure.
3255 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
3257 (dyn_string_init): Change return value to int. Handle
3258 RETURN_ON_ALLOCATION_FAILURE case.
3259 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
3260 (dyn_string_release): Delete the dyn_string.
3261 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
3262 (dyn_string_copy): Change return type to int.
3263 (dyn_string_copy_cstr): Likewise.
3264 (dyn_string_prepend): Likewise.
3265 (dyn_string_prepend_cstr): Likewise.
3266 (dyn_string_insert): Likewise.
3267 (dyn_string_insert_cstr): Likewise.
3268 (dyn_string_append): Likewise.
3269 (dyn_string_append_cstr): Likewise.
3270 (dyn_string_append_char): Likewise.
3271 (dyn_string_substring): Likewise.
3273 2000-06-09 Zack Weinberg <zack@wolery.cumb.org>
3275 * cp-demangle.c (demangle_operator_name): Add spaces before
3276 names beginning with a letter: delete, delete[], new, new[],
3278 (demangle_special_name): Handle TF <type> and TJ <type>.
3280 Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
3282 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
3284 Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
3286 * cp-demangle.c (stdio.h): File included unconditionaly.
3287 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
3288 * dyn-string.c (stdio.h): File included.
3289 * partition.c (partition_print): No `&' needed to take the address of
3292 2000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3294 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
3296 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
3298 * cp-demangle.c (demangle_char): Change parameter from char to int.
3299 (demangle_expression, demangle_expr_primary): Remove extra
3300 semi-colon in prototype.
3302 * dyn-string.c (dyn_string_append_char): Change parameter from
3305 * memcmp.c (memcmp): Constify.
3307 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
3310 * partition.c (elem_compare): Prototype. Don't cast away
3313 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
3315 2000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3317 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
3319 * cp-demangle.c: Include demangle.h.
3320 (template_arg_list_new): DeANSIfy.
3321 (cp_demangle): Make static and add prototype.
3322 (operator_code, operators): Constify.
3323 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
3325 2000-06-05 Alex Samuel <samuel@codesourcery.com>
3327 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
3329 (demangle_unqualified_name): Likewise.
3330 (demangle_number_literally): Likewise.
3331 (demangle_type): Likewise.
3332 (demangle_substitution): Likewise.
3333 (is_mangled_char): Likewise, for isalnum.
3335 2000-06-04 Alex Samuel <samuel@codesourcery.com>
3337 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
3338 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
3339 (cp-demangle.o): New dependency.
3340 (dyn-string.o): Likewise.
3342 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
3344 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
3346 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
3348 (gnu_new_abi_symbol_characters): New function.
3349 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
3351 * cp-demangle.c: New file.
3353 Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
3355 * floatformat.c: Add name to each floatformat field.
3357 Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
3359 * Makefile.in (objalloc.o): Depend on config.h
3361 2000-05-29 Zack Weinberg <zack@wolery.cumb.org>
3363 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
3365 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
3366 * objalloc.c: Include config.h. Include stdlib.h and don't
3367 declare malloc or free if HAVE_STDLIB_H.
3368 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
3369 else declare malloc without prototype. Include string.h if
3370 HAVE_STRING_H, else declare memset without prototype. Don't
3373 2000-05-23 Mike Stump <mrs@wrs.com>
3375 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
3378 2000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3380 * xmalloc.c: Include config.h for HAVE_SBRK definition.
3382 2000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
3384 * hashtab.c (hash_pointer): Delete low-order bits which are
3385 probably zero, also eliminate a warning on alpha.
3387 2000-05-15 David Edelsohn <edelsohn@gnu.org>
3389 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
3390 on $(enable_shared).
3392 2000-05-10 Jakub Jelinek <jakub@redhat.com>
3394 * config.table: Use mh-sparcpic for sparc*-*-*.
3396 2000-05-08 Nick Clifton <nickc@cygnus.com>
3398 * Makefile.in (CFILES): Add strncmp.c.
3399 (NEEDED): Add strncmp.
3401 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3403 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
3404 Cast the arguments to `islower' to `unsigned char'.
3405 (print_demangler_list): Prototype.
3407 Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
3409 * sort.c (UCHAR_MAX): Provide fallback definition.
3411 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
3413 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
3416 2000-04-28 Kenneth Block <block@zk3.dec.com>
3417 Jason Merrill <jason@casey.cygnus.com>
3419 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
3420 (cplus_demangle_set_style): New function for setting style.
3421 (cplus_demangle_name_to_style): New function to translate name.
3423 2000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3425 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
3427 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
3428 (libiberty_AC_FUNC_STRNCMP): Invoke.
3430 * strncmp.c: New file.
3432 Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
3434 * hashtab.c (htab_expand): Add prototype.
3435 (find_empty_slot_for_expand): Likewise.
3437 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3439 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
3441 (htab_expand): Cast the return value of xcalloc.
3443 2000-04-24 Mark Mitchell <mark@codesourcery.com>
3445 * hashtab.c (hash_pointer): New function.
3446 (eq_pointer): Likewise.
3447 (htab_hash_pointer): New variable.
3448 (htab_eq_pointer): Likewise.
3450 2000-04-23 Mark Mitchell <mark@codesourcery.com>
3452 * sort.c (sort_pointers): Fix endianness bugs.
3455 * Makefile.in (CFILES): Add sort.c
3456 (REQUIRED_OFILES): Add sort.o.
3457 (sort.o): New target.
3459 2000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3461 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
3464 Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3466 * hashtab.c: Various minor cleanups.
3467 (htab_find_slot_with_hash): INSERT is now enum insert_option.
3468 (htab_find_slot): Likewise.
3470 2000-04-16 Dave Pitts <dpitts@cozx.com>
3472 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
3474 2000-04-05 Richard Henderson <rth@cygnus.com>
3476 * splay-tree.c (splay_tree_remove): New.
3478 2000-03-30 Mark Mitchell <mark@codesourcery.com>
3480 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
3482 (htab_find_with_hash): Likewise.
3483 (htab_find_slot_with_hash): Likewise.
3485 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3487 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
3488 unless it will be used. Rearrange loop for better
3490 (higher_prime_number): Add static prototype.
3492 Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
3494 * Makefile.in (partition.o): Depend on config.h
3496 2000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
3498 * hashtab.c (find_empty_slot_for_expand): New function.
3499 (htab_expand): Use it instead of htab_find_slot.
3500 (htab_find_with_hash): Renamed from htab_find; now accepts extra
3502 (htab_find_slot_with_hash): Likewise for htab_find_slot.
3503 (htab_find): New wrapper function.
3504 (htab_find_slot): Likewise.
3505 (htab_traverse): Pass slot, not entry, to called function.
3507 2000-03-09 Alex Samuel <samuel@codesourcery.com>
3509 * Makefile.in (CFILES): Add partition.c.
3510 (REQUIRED_OFILES): Add partition.o.
3511 (partition.o): New rule.
3512 * partition.c: New file.
3514 2000-03-09 Zack Weinberg <zack@wolery.cumb.org>
3516 * hashtab.c (htab_create): Set del_f.
3517 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
3520 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
3522 * hashtab.c: Remove debugging variables (all_searches,
3523 all_collisions, all_expansions). Delete
3524 all_hash_table_collisions.
3525 (create_hash_table, delete_hash_table, empty_hash_table,
3526 find_hash_table_entry, remove_element_from_hash_table_entry,
3527 clear_hash_table_slot, traverse_hash_table, hash_table_size,
3528 hash_table_elements_number, hash_table_collisions): Rename to:
3529 htab_create, htab_delete, htab_empty, htab_find_slot,
3530 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
3531 htab_elements, htab_collisions.
3532 (htab_find): New function, handles common case where you don't
3533 plan to add or delete an entry.
3534 (htab_expand): Don't create a whole new table, just a new
3536 (htab_find_slot): Simplify logic.
3538 1999-08-03 Ian Lance Taylor <ian@zembu.com>
3540 * floatformat.c: Add casts to avoid signed/unsigned warnings.
3541 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
3543 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
3544 $(TARGETLIB)n so it works on MSDOS.
3545 (install_to_tooldir): Likewise.
3547 1999-07-21 Ian Lance Taylor <ian@zembu.com>
3550 * makefile.dos: Remove; obsolete.
3551 * configure.bat: Remove; obsolete.
3553 1999-07-11 Ian Lance Taylor <ian@zembu.com>
3555 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3558 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3560 * pexecute.c: Conditionally include string.h.
3561 (fix_argv): Handle embedded whitespace in args for Mingw32.
3563 2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3565 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
3568 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
3570 1999-12-27 Geoff Keating <geoffk@cygnus.com>
3572 * vasprintf.c (int_vasprintf): Don't re-read the format character
3573 as this mishandles strings like '%%s'.
3575 1999-12-05 Mark Mitchell <mark@codesourcery.com>
3577 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
3578 rather than struct splay_tree_node.
3579 (splay_tree_insert): Use struct splay_tree_s rather than struct
3582 Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
3584 * hashtab.c (sys/types.h): File included.
3586 1999-11-22 Jason Merrill <jason@casey.cygnus.com>
3588 * strtoul.c, strtol.c, random.c: Remove advertising clause from
3589 BSD license, pursuant with
3591 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
3593 Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
3595 * hashtab.c: Include stdio.h.
3597 Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
3599 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
3601 Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
3603 * xstrdup (sys/types.h): Include this file.
3605 1999-10-28 Nathan Sidwell <nathan@acm.org>
3607 * Makefile.in (SUBDIRS): New macro.
3608 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
3609 avoid multiple subdirectory cleaning.
3610 (*-subdir): Use SUBDIRS.
3612 1999-10-25 Jim Kingdon <http://developer.redhat.com/>
3614 * cplus-dem.c: Move declarations of standard_symbol_characters and
3615 hp_symbol_characters inside #ifdef MAIN to avoid compiler
3618 1999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
3620 * hashtab.c (find_hash_table_entry): When returning a
3621 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
3622 (clear_hash_table_slot): New function which deletes an entry
3623 by its position in the table, not its value.
3624 (traverse_hash_table): New function which calls a hook
3625 function for every live entry in the table.
3627 1999-10-19 Mark Mitchell <mark@codesourcery.com>
3629 * cplus-dem.c (INTBUF_SIZE): New macro.
3630 (string_append_template_idx): New function.
3631 (demangle_expression): Likewise.
3632 (demangle_integral_value): Use it.
3633 (demangle_real_value): New function, split out from ...
3634 (demangle_template_value_parm): ... here. Use
3635 string_append_template_idx. Use demangle_real_value.
3636 (demangle_template): Use string_append_template_idx.
3637 (demangle_qualified): Use consume_count_with_underscores.
3638 (get_count): Tweak formatting.
3639 (do_type): Use string_append_template_idx.
3641 1999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3643 * calloc.c: Add a public domain notice.
3645 Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
3647 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
3649 Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
3651 * Makefile.in (CFILES): Add hashtab.c
3652 (REQUIRED_OFILES): Add hashtab.o
3653 (hashtab.o): Add dependencies.
3654 * hashtab.c: New file
3656 Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
3658 * basename.c (DIR_SEPARATOR): New macro.
3659 (DIR_SEPARATOR_2): Likewise.
3660 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
3661 (IS_DIR_SEPARATOR): Likewise.
3662 (main): Handle MSDOS style pathname.
3664 1999-10-11 Mark Mitchell <mark@codesourcery.com>
3666 * cplus-dem.c (do_type): Handle pointer to member types whose
3667 enclosing classes have namespace scope.
3669 Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
3671 * config.table: Provide a backup shell for executing move-if-change.
3673 1999-10-02 Mark Mitchell <mark@codesourcery.com>
3675 * xmalloc.c (xmalloc): Fix spelling error.
3676 (xcalloc, xrealloc): Likewise.
3678 1999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3680 * cplus-dem.c (fancy_abort, demangle_integral_value,
3681 demangle_arm_hp_template, recursively_demangle,
3682 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
3683 (program_name, program_version, fatal): Constify a char*.
3684 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
3685 (main): Call return, not exit.
3687 1999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3689 * choose-temp.c: Remove obsolete comment about gcc.
3690 (make_temp_file): Constify a char*.
3692 Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3694 * xmemdup.c: Include sys/types.h.
3696 1999-09-07 Jeff Garzik <jgarzik@pobox.com>
3698 * xmemdup.c: New xmemdup function.
3699 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
3701 Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
3703 * config.table: Add openedition target.
3704 * config/mh-openedition: New file.
3706 Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
3708 * pexecute.c (pexecute): Fill in temp_base when needed.
3710 1999-08-31 Richard Henderson <rth@cygnus.com>
3712 * getpwd.c: Check HAVE_GETCWD before defining it away.
3714 1999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3716 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
3717 (REQUIRED_OFILES): Add getpwd.o.
3718 (getpwd.o): Add target.
3720 * configure.in (AC_PREREQ): Bump to 2.13.
3721 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
3723 * getpwd.c: New file, moved here from gcc.
3725 1999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3727 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
3728 comparing against a signed quantity.
3729 (arm_special): Likewise.
3730 (demangle_fund_type): Likewise.
3731 (do_hpacc_template_const_value): Mark parameter `work' with
3733 (main): Constify variable `valid_symbols'.
3735 Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
3737 * strtoul.c (strtoul): Add parentheses around && within ||.
3739 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
3741 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3742 libdir, libsubdir and tooldir.
3744 1999-08-01 Mark Mitchell <mark@codesourcery.com>
3746 * splay-tree.c (splay_tree_insert): Return the new node.
3748 1999-07-14 Richard Henderson <rth@cygnus.com>
3750 * argv.c: Include stdlib.h and string.h instead of
3751 prototyping directly.
3752 * choose-temp.c: Conditionally include string.h.
3754 1999-07-12 Jason Merrill <jason@yorick.cygnus.com>
3756 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
3758 1999-07-11 Ian Lance Taylor <ian@zembu.com>
3760 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3763 1999-07-07 Jason Merrill <jason@yorick.cygnus.com>
3765 * Makefile.in (needed-list): Only include stuff we actually need
3768 1999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3770 * configure.in (checkfuncs): Add gettimeofday.
3771 * config.in, configure: Regenerated.
3773 Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
3775 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
3777 * configure: Regenerate.
3779 1999-06-10 Mike Stump <mrs@wrs.com>
3781 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
3784 1999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3786 * putenv.c: Include ansidecl.h to define `const'.
3787 * setenv.c: Likewise.
3789 Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
3791 * Makefile.in (CFILES): Add putenv.c and setenv.c.
3792 * configure.in (funcs): Add putenv and setenv.
3793 (AC_CHECK_FUNCS): Check for putenv and setenv.
3794 * configure: Rebuilt.
3795 * putenv.c setenv.c: New files.
3797 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
3798 bytes of space using malloc.
3800 Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
3802 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
3803 the *mangled pointer beyond the end of the string. Clean up code to
3804 match prevailing coding style.
3806 1999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3808 * tmpnam.c (L_tmpnam): Fix typo.
3810 Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
3812 * cplus-dem.c (standard_symbol_characters): Renamed from
3813 standard_symbol_alphabet. No longer modify TABLE.
3814 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
3816 (main): Corresponding changes. Use strchr to determine if a
3819 1999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
3821 * cplus-dem.c (main): Use table lookup to distinguish identifier
3822 characters from non-identifier characters.
3823 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
3825 Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
3827 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
3828 * getruntime.c: Only attempt to include sys/resource.h and
3829 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
3832 Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
3834 * configure.in (alloca detection): Handle alloca directly for interix.
3835 * configure: Rebuilt.
3837 Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
3839 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
3841 1999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
3843 Fix from Dale Hawkins:
3844 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
3845 reallocated properly if we use it again.
3847 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
3848 stricter about syntax. Always null-terminate string.
3850 Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
3852 * configure.in (checkfuncs): Check for sbrk.
3853 * config.in: Rebuilt.
3854 * configure: Likewise.
3855 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
3857 1999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
3859 Fix from Marcus Daniels:
3860 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
3861 identifier looking for another underscore.
3863 Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
3865 * pexecute.c: Change all references to __UWIN__ to _UWIN.
3866 * xmalloc.c: Likewise.
3867 (xcalloc): UWIN has sbrk.
3868 (xrealloc): Fix guard macro.
3870 1999-04-11 Richard Henderson <rth@cygnus.com>
3872 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
3874 * clock.c (GNU_HZ): New definition.
3876 * getruntime.c: Likewise.
3878 * config.table: Use mh-beos.
3879 * config/mh-beos: New file.
3881 1999-04-11 Mark Mitchell <mark@codesourcery.com>
3883 * cplus-dem.c (demangle_template_value_parm): Handle
3884 pointers-to-members.
3885 (do_type): Handle template parameters as qualifiers.
3887 1999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
3889 * cplus-dem.c: Attempt to handle overflows in counts with some
3891 (consume_count): Detect overflows. Return -1 to indicate errors,
3893 (demangle_template_value_parm, demangle_template): Handle change
3894 to consume_count's return convention.
3896 1999-04-05 Tom Tromey <tromey@cygnus.com>
3898 * testsuite/regress-demangle: New file.
3899 * testsuite/demangle-expected: New file.
3901 * Makefile.in (all, check, installcheck, info, install-info,
3902 clean-info, dvi, install, etags, tags, mostlyclean, clean,
3903 distclean, maintainer-clean, realclean): Depend on corresponding
3905 (all-subdir check-subdir installcheck-subdir info-subdir
3906 install-info-subdir clean-info-subdir dvi-subdir
3907 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
3908 distclean-subdir maintainer-clean-subdir): New target.
3909 * testsuite/Makefile.in: New file.
3910 * configure: Rebuilt.
3911 * configure.in: Create testsuite/Makefile.
3913 1999-04-02 Mark Mitchell <mark@codesourcery.com>
3915 * splay-tree.h (splay_tree_compare_pointers): Define.
3917 1999-03-30 Mark Mitchell <mark@codesourcery.com>
3919 * splay-tree.c (splay_tree_compare_ints): Define.
3921 1999-03-30 Tom Tromey <tromey@cygnus.com>
3923 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
3924 don't advance input pointer.
3925 (demangle_class_name): If consume_count didn't find a count, do
3926 nothing. Don't bother with `strlen' sanity check; consume_count
3929 1999-03-16 Stan Shebs <shebs@andros.cygnus.com>
3931 From Art Haas <ahaas@neosoft.com>:
3932 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
3933 when doing arm or hp style.
3934 (demangle_nested_args): Decr forgetting_types field when done.
3936 Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
3938 * pexecute.c (__CYGWIN32__): Rename to
3940 * xmalloc.c: Likewise.
3942 Changes to support i386-pc-uwin.
3943 * configure.in (*-*-uwin*): Workaround for vfork bug.
3944 * configure: Regenerate.
3945 * pexecute.c (pexecute): Be like standard Unix.
3947 * xmalloc.c (first_break): Define.
3948 (xmalloc_set_program_name): Use.
3951 Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3953 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
3955 Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
3957 * config.table: Check cygwin*, not cygwin32*.
3959 Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
3961 * Makefile.in: Change mkstemp -> mkstemps.
3963 Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
3965 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
3966 * configure.in (funcs): Check for and conditionally add mkstemps to
3967 the list of functions libiberty will provide.
3968 * configure: Rebuilt.
3970 Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
3972 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
3973 platforms that don't have HZ.
3974 * getruntime.c (HZ): Likewise.
3976 Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
3978 * Makefile.in (xstrdup.o): Depend on config.h.
3980 Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
3982 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
3985 Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3987 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
3989 Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3991 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
3994 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
3996 * configure.in: Require autoconf 2.12.1 or higher.
3998 1998-12-30 Michael Meissner <meissner@cygnus.com>
4000 * random.c (NULL): Don't redefine NULL if it is already defined.
4002 Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4004 * argv.c (buildargv): Cast the result of alloca in assignment.
4006 * choose-temp.c: Include stdlib.h.
4008 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
4009 (snarf_numeric_literal): Constify first parameter.
4010 (code_for_qualifier): Avoid a gcc extension, make the parameter an
4012 (demangle_qualifier): Likewise.
4013 (demangle_signature): Cast the argument of a ctype function to
4015 (arm_pt): Add parens around assignment used as truth value.
4016 (demangle_arm_hp_template): Constify variable `args'.
4017 (do_hpacc_template_const_value): Cast the argument of a ctype
4018 function to unsigned char.
4019 (do_hpacc_template_literal): Remove unused variable `i'.
4020 (snarf_numeric_literal): Constify parameter `args'.
4021 Cast the argument of a ctype function to unsigned char.
4023 * floatformat.c (floatformat_to_double): Add explicit braces to
4024 avoid ambiguous `else'.
4026 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
4027 `cstart' and `cend' to unsigned char. Cast the argument of macro
4028 `FOLD', which uses ctype functions, to unsigned char.
4030 * objalloc.c (free): Add prototype.
4032 Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
4034 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
4036 Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>