1 2006-02-17 Uttam Pawar <uttamp@us.ibm.com>
3 * pexecute.c (pwait): Free vector pointer.
4 * partition.c (partition_print): Free class_elements pointer.
6 2006-02-11 Roger Sayle <roger@eyesopen.com>
7 R. Scott Bailey <scott.bailey@eds.com>
8 Bill Northcott <w.northcott@unsw.edu.au>
11 * floatformat.c: Include <float.h> where available.
12 (NAN): Use value of DBL_QNAN if defined, and NAN isn't.
14 2006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
16 * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where
18 * configure: Regenerated.
20 2006-01-20 Carlos O'Donell <carlos@codesourcery.com>
22 * testsuite/Makefile.in: Add test-expandargv test.
23 * testsuite/test-expandargv.c: New test.
24 * argv.c (expandargv): Check for errors with ferror,
25 rather than just by looking at return value from fread.
27 2005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
29 * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
30 to convert from "from".
31 (floatformat_to_double): Likewise.
32 (floatformat_from_double): Use explicit cast to convert from "to".
34 2005-12-10 Terry Laurenzo <tlaurenzo@gmail.com>
37 * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
38 and include return type when found.
39 (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add
40 conditional logic to change printing order of return type.when
41 the DMGL_RET_POSTFIX option is present.
42 (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
44 * testsuite/test-demangle.c (main): Recognize option --ret-postfix
45 * testsuite/demangle-expected: Test cases to verify extended encoding.
46 Updated comment to document --ret-postfix option.
48 2005-11-06 Richard Guenther <rguenther@suse.de>
50 * splay-tree.c (rotate_left): New function.
51 (rotate_right): Likewise.
52 (splay_tree_splay_helper): Remove.
53 (splay_tree_splay): Re-implement.
55 2005-10-31 Mark Kettenis <kettenis@gnu.org>
57 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
60 2005-10-07 Mark Mitchell <mark@codesourcery.com>
62 * at-file.texi: Fix typo.
64 2005-10-03 Mark Mitchell <mark@codesourcery.com>
66 * at-file.texi: New file.
68 2005-09-27 Mark Mitchell <mark@codesourcery.com>
70 * argv.c (expandargv): Do not use xmalloc_failed.
72 2005-09-26 Mark Mitchell <mark@codesourcery.com>
74 * argv.c (safe-ctype.h): Include it.
77 (buildargv): Use ISSPACE instead of ISBLANK.
78 (expandargv): New function.
79 * Makefile.in: Regenerated.
81 2005-09-14 Christopher Faylor <cgf@timesys.com>
83 * pex-win32.c: Include "windows.h".
84 (backslashify): New function.
85 (fix_argv): Use backslashify to convert path to windows format.
86 Allocate one more place in new argv for potential executable from '#!'
88 (tack_on_executable): New function. Conditional on USE_MINGW_MSYS
90 (mingw_rootify): Ditto.
91 (msys_rootify): Ditto.
92 (spawn_script): New function.
93 (pex_win32_exec_child): Save translated argv in newargv. Pass to
94 spawn_script if spawnv* fails.
95 (main): New function. Conditional on MAIN. Useful for testing.
97 2005-08-17 Mark Kettenis <kettenis@gnu.org>
99 * floatformat.c (floatformat_always_valid): Change type of last
100 argument to `void *'.
101 (floatformat_i387_ext_is_valid): Likewise.
102 (floatformat_to_double): Change type of second argument to `const
104 (floatformat_from_double): Change type of last argument to `void
106 (floatformat_is_valid): Change type of last argument to `const
108 (ieee_test): Remove redundant casts.
110 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
112 * strverscmp.c: Update FSF address.
113 * testsuite/Makefile.in: Likewise.
114 * testsuite/test-demangle.c: Likewise.
115 * testsuite/test-pexecute.c: Likewise.
117 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
119 * getopt.c: Include ansidecl.h before system headers.
121 2005-07-22 Ben Elliston <bje@gnu.org>
123 * getopt.c: Include "ansidecl.h".
124 (_getopt_initialize): Mark argc and argv parameters as unused.
126 2005-07-22 Ben Elliston <bje@gnu.org>
128 * regex.c (regcomp): Change type of `i' from unsigned to int.
130 2005-07-22 Ben Elliston <bje@gnu.org>
132 Recover patch lost in the sourceware repository:
133 2005-07-09 Ben Elliston <bje@au.ibm.com>
134 * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
135 * memmove.c: Likewise.
136 * objalloc.c: Likewise.
138 2005-07-22 Ben Elliston <bje@gnu.org>
140 * configure.ac: Check for a getopt(3) declaration.
141 * configure, config.in: Regenerate.
143 2005-07-15 Ben Elliston <bje@au.ibm.com>
145 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
147 2005-07-12 Ben Elliston <bje@au.ibm.com>
149 * floatformat.c (floatformat_to_double): Add a comment about a
150 potential source of warnings when compiling this file.
152 2005-07-12 Ben Elliston <bje@au.ibm.com>
154 * pexecute.c (pexecute): Cast string litrals to char *.
155 * regex.c (re_comp): Cast a call to gettext() to char *.
157 2005-07-07 Kelley Cook <kcook@gcc.gnu.org>
159 * config.table: Delete file. Move former contents into ...
160 * configure.ac: ... here and escape any brackets for m4.
161 * Makefile.in (config.status): Remove dependency on config.table.
162 * configure: Regenerate.
164 2005-07-07 Kelley Cook <kcook@gcc.gnu.org>
166 * config.in: Regenerate for 6/20 change.
168 2005-07-03 Steve Ellcey <sje@cup.hp.com>
171 * md5.c (md5_process_bytes): Check alignment.
173 2005-07-01 Ian Lance Taylor <ian@airs.com>
176 * cp-demangle.c (d_expr_primary): Don't run off the end of the
177 string while looking for the end of a literal value.
178 * testsuite/demangle-expected: Add test case.
180 2005-06-30 Daniel Berlin <dberlin@dberlin.org>
182 * hashtab.c (EMPTY_ENTRY): Moved and renamed.
183 (DELETED_ENTRY): Ditto.
185 2005-06-20 Geoffrey Keating <geoffk@apple.com>
188 * Makefile.in (CFILES): Add strverscmp.c.
189 (CONFIGURED_OFILES): Add strverscmp.o.
190 (strverscmp.o): New rule.
191 (stamp-functions): Add $(srcdir) to files in source directory.
192 * configure.ac (funcs): Add strverscmp.
193 (AC_CHECK_FUNCS): Add strverscmp.
194 * configure: Regenerate.
195 * functions.texi: Regenerate.
197 2005-05-28 Eli Zaretskii <eliz@gnu.org>
199 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
200 * config.in, configure: Regenerate.
202 2005-05-25 Richard Henderson <rth@redhat.com>
204 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
205 (d_make_comp, d_print_comp): Likewise.
206 (d_special_name): Generate one.
207 * testsuite/demangle-expected: Add a hidden alias test.
209 2005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
211 * configure.ac: Check declarations for calloc(), getenv(),
212 malloc(), realloc() and sbrk().
213 * config.in: Regenerate.
214 * configure: Likewise.
216 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
218 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
219 * concat.c (liiberty_concat_ptr): Surround definition with an
220 extern "C" block, if __cplusplus.
221 (concat): Use XNEWVEC instead of xmalloc.
222 (reconcat): Likewise.
223 * cp-demangle.c (struct d_print_template): Rename member
224 "template" to "template_decl". Adjust use throughout the file.
225 (d_print_resize): Properly cast return value of realloc().
226 (cplus_demangle_print): Same for malloc().
227 (d_demangle): Likewise.
228 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
229 "typename" to "type_name".
230 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
231 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
232 (demangle_template_value_parm): Likewise.
233 (demangle_template): Likewise.
234 (recursively_demangle): Likewise.
235 (do_hpacc_template_literal): Likewise.
237 (remember_type): Likewise.
238 (remember_Ktype): Likewise.
239 (register_Btype): Likewise.
240 (string_need): Use XRESIZEVEC instead of xrealloc().
241 * dyn-string.c (dyn_string_init): Use XNEWVEC.
242 (dyn_string_new): Use XNEW.
243 (dyn_string_resize): Use XRESIZEVEC.
244 * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
245 * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
246 Otherwise include <stdlib.h>.
247 (exchange): Cast return value of malloc().
248 * hashtab.c (htab_size): Define as both macro and non-inline
250 (htab_elements): Likewise.
251 * getpwd.c (getpwd): Use XNEWVEC.
252 (htab_create_alloc_ex): Use C90 prototype-style.
253 * lrealpath.c (lrealpath): Appropriately cast return value of
255 * make-relative-prefix.c (save_string): Likewise.
256 * make-temp-file.c (try_dir): Rename from "try". Adjust use in
258 (choose_tmpdir): Use XNEWVEC.
259 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
260 * pex-common.c (pex_init_common): Use XNEW.
261 (pex_add_remove): Use XRESIZEVEC.
263 (pex_get_status_and_time): Likewise.
264 * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
265 * pex-msdos.c (pex_init): Use XNEW.
266 (pex_msdos_exec_child): Likewise.
267 (pex_msdos_exec_child): Use XRESIZEVEC.
268 * pex-unix.c (pex_wait): Use XNEW.
269 * pex-win32.c (fix_argv): Use XNEWVEC.
270 * pexecute.c (pwait): Likewise.
271 * setenv.c (setenv): Properly cast return value of malloc().
272 * sigsetmask.c (sigsetmask): Rename local variables "old" and
273 "new" to "old_sig" and "new_sig".
274 * sort.c (main): Use XNEWVEC.
275 * spaces.c (spaces): Cast return value of malloc().
276 * strndup.c (strndup): Likewise.
277 * ternary.c (ternary_insert): Use XNEW.
278 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
279 with an extern "C" block if __cplusplus.
280 * xstrdup.c (xstrdup): Cast return value of memcpy().
281 * xstrerror.c (strerror): Enclose declaration in an extern "C"
282 block if __cplusplus.
283 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
285 2005-05-16 Andreas Jaeger <aj@suse.de>
287 * getpwd.c: Remove unneeded prototype getcwd and move getwd so
288 that it's only declared if needed.
290 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
293 2005-05-15 Andreas Jaeger <aj@suse.de>
295 * functions.texi: Regenerated.
297 2005-05-15 Eli Zaretskii <eliz@gnu.org>
299 * pexecute.txh: Enclose multi-word data types in @deftypefn in
300 braces. Minor wording fixes. Use --- for em-dash. Use
301 @enumerate in enumerated lists.
303 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
306 2005-05-11 Eli Zaretskii <eliz@gnu.org>
308 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
310 (pex_init): Fix last argument to pex_init_common.
311 (pex_djgpp_exec_child): Remove leading underscore from _open,
312 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
313 which is undeclared, with `executable', which was unused. Remove
314 unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
315 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
317 2005-05-11 Paul Brook <paul@codesourcery.com>
319 * Makefile.in: Regenerate dependencies.
321 2005-05-10 Nick Clifton <nickc@redhat.com>
323 * Update the address and phone number of the FSF organization in
324 the GPL notices in the following files:
325 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
326 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
327 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
328 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
329 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
330 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
331 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
332 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
333 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
334 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
335 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
336 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
337 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
339 2005-05-06 Kelley Cook <kcook@gcc.gnu.org>
341 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
342 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
343 * configure: Regenerate.
345 2005-05-06 Kelley Cook <kcook@gcc.gnu.org>
347 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
348 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
349 * aclocal.m4: Don't include accross.m4.
350 * configure, config.in: Regenerate.
352 2005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
354 * fopen_unlocked.c (unlock_std_streams): New.
356 * functions.texi: Regenerate.
358 2005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
360 * fopen_unlocked.c (unlock_stream): New.
361 Consolidate unlocking code into a helper function.
363 * functions.texi: Regenerate.
365 2005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
367 * asprintf.c: Include config.h.
368 * basename.c: Likewise.
369 * fdmatch.c: Likewise.
371 * lbasename.c: Likewise.
372 * spaces.c: Likewise.
373 * xatexit.c:Likewise.
374 * configure.ac: Do check declarations for basename, ffs, asprintf
375 and vasprintf for real.
376 * configure: Regenerate.
378 2005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
380 * argv.c (dupargv): Allocate space of argv[argc], not
381 sizeof(char *) of that amount. Cast result to char *.
383 2005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
385 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
386 Replace not with negate.
388 2005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
390 * configure.ac: Check declarations for basename, ffs, asprintf,
392 * configure: Regenerate.
393 * config.in: Likewise.
395 2005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
397 * Makefile.in (CFILES): Add fopen_unlocked.c.
398 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
399 Regenerate dependencies.
401 * configure.ac: Check for stdio_ext.h and __fsetlocking.
403 * fopen_unlocked.c: New file.
405 * functions.texi, configure, config.in: Regenerate.
407 2005-04-04 Ian Lance Taylor <ian@airs.com>
409 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
410 declaration before statement.
412 2005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
414 * bcmp.c: Fix warnings and implement using memcmp.
415 * bcopy.c: Fix warnings.
416 * bzero.c: Fix warnings and implement using memset.
418 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
420 * configure, config.in: Regenerate.
422 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
423 warnings and reconcile interfaces with relevant standards.
425 2005-04-02 Ian Lance Taylor <ian@airs.com>
427 * cp-demangle.c: Update copyright.
429 2005-03-31 Joseph S. Myers <joseph@codesourcery.com>
431 * gettimeofday.c: Add "Supplemental" to @deftypefn.
432 * functions.texi: Regenerate.
434 2005-03-28 Ian Lance Taylor <ian@airs.com>
436 * pex-common.c: New file.
437 * pex-one.c: New file.
438 * pexecute.c: New file.
439 * pex-common.h: Include <stdio.h>.
440 (struct pex_obj): Define.
441 (struct pex_funcs): Define.
442 (pex_init_common): Declare.
443 * pex-unix.c: Rewrite.
444 * pex-win32.c: Rewrite.
445 * pex-djgpp.c: Rewrite.
446 * pex-msdos.c: Rewrite.
447 * testsuite/text-pexecute.c: New file.
448 * pexecute.txh: Rewrite.
449 * configure.ac: Check for wait3 and wait4. Set CHECK to
450 really-check rather than check-cplus-dem.
451 * functions.texi: Rebuild.
452 * Makefile.in: Rebuild dependencies.
453 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
454 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
455 * testsuite/Makefile.in (really-check): New target.
456 (check-pexecute, test-pexecute): New targets.
457 * configure: Rebuild.
459 2005-03-28 Mark Kettenis <kettenis@gnu.org>
461 * unlink-if-ordinary.c: Include <sys/types.h>.
463 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
465 Convert libiberty to use ISO C prototype style 7/n.
466 * regex.c (PARAMS): Remove definition.
467 (PREFIX): Unconditionaly define using ISO C ## operator.
468 (init_syntax_once, extract_number, extract_number_and_incr,
469 print_fastmap, print_partial_compiled_pattern,
470 print_compiled_pattern, print_double_string, printchar,
471 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
472 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
473 at_begline_loc_p, at_endline_p, group_in_compile_stack,
474 insert_space, wcs_compile_range, byte_compile_range,
475 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
476 re_set_registers, re_search, re_search_2, re_search_3, re_match,
477 re_match_2, count_mbs_length, wcs_re_match_2_internal,
478 byte_re_match_2_internal, group_match_null_string_p,
479 alt_match_null_string_p, common_op_match_null_string_p,
480 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
481 regexec, regerror, regfree): Use ISO C prototype style.
482 * partition.c: (elem_compare): Likewise.
483 * cp-demangle.c (print_usage): Likewise.
485 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
487 Convert libiberty to use ISO C prototype style 5/n.
488 * random.c (srandom, initstate, setstate, random): Use ISO C
490 * putenv.c (putenv): Likewise.
491 * physmem.c (physmem_available, physmem_total, main): Likewise.
492 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
493 * pex-unix.c (pexecute, pwait): Likewise.
494 * pex-msdos.c (pexecute, pwait): Likewise.
495 * pex-djgpp.c (pexecute, pwait): Likewise.
496 * partition.c (partition_new, partition_delete, partition_union)
497 (elem_compare, partition_print): Likewise.
498 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
499 _obstack_allocated_p, _obstack_free, obstack_free,
500 _obstack_memory_used, print_and_abort, obstack_next_free,
501 obstack_object_size, obstack_base): Likewise. Remove codes
502 predicated on !defined(__STDC__).
503 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
504 objalloc_free_block): Use ISO C prototypes.
505 * mkstemps.c (mkstemps): Likewise.
506 * memset.c (memset): Likewise.
507 * mempcpy.c (mempcpy): Likewise.
508 * rename.c (rename): Likewise.
509 * rindex.c (rindex): Likewise.
510 * setenv.c (setenv, unsetenv): Likewise.
511 * sigsetmask.c (sigsetmask): Likewise.
512 * snprintf.c (snprintf): Likewise.
513 * sort.c (sort_pointers, xmalloc): Likewise.
514 * spaces.c (spaces): Likewise.
515 * splay-tree.c (splay_tree_delete_helper,
516 splay_tree_splay_helper, splay_tree_splay,
517 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
518 splay_tree_new, splay_tree_xmalloc_allocate,
519 splay_tree_new_with_allocator, splay_tree_delete,
520 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
521 splay_tree_max, splay_tree_min, splay_tree_predecessor,
522 splay_tree_successor, splay_tree_foreach,
523 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
524 * stpcpy.c (stpcpy): Likewise.
525 * stpncpy.c (stpncpy): Likewise.
526 * strcasecmp.c (strcasecmp): Likewise.
527 * strchr.c (strchr): Likewise.
528 * strdup.c (strdup): Likewise.
530 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
532 Convert libiberty to use ISO C prototype style 6/n.
533 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
534 strtoerrno, main): Use ISO C prototype style.
535 * strncasecmp.c (strncasecmp): Likewise.
536 * strncmp.c (strncmp): Likewise.
537 * strndup.c (strndup): Likewise.
538 * strrchr.c (strrchr): Likewise.
539 * strsignal.c (init_signal_tables, signo_max, strsignal,
540 strsigno, strtosigno, psignal, main): Likewise.
541 * strstr.c (strstr): Likewise.
542 * strtod.c (strtod, atof): Likewise.
543 * strtol.c (strtol): Likewise.
544 * strtoul.c (strtoul): Likewise.
545 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
546 ternary_recursivesearch): Likewise.
547 * tmpnam.c (tmpnam): Likewise.
548 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
549 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
550 * vfork.c (vfork): Likewise.
551 * vfprintf.c (vfprintf): Likewise.
552 * vprintf.c (vprintf): Likewise.
553 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
554 * vsprintf.c (vsprintf): Likewise.
555 * waitpid.c (waitpid): Likewise.
556 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
557 * xexit.c (xexit): Likewise.
558 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
559 xcalloc, xrealloc): Likewise.
560 * xmemdup.c (xmemdup): Likewise.
561 * xstrdup.c (xstrdup): Likewise.
562 * xstrerror.c (xstrerror): Likewise.
563 * xstrndup.c (xstrndup): Likewise.
565 2005-03-27 Andreas Jaeger <aj@suse.de>
567 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
569 * configure: Regenerated.
571 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
573 * getopt1.c (getopt_long_only): Fix thinko.
575 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
577 Convert libiberty to use ISO C prototype style 4/n.
578 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
579 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
580 htab_create_alloc, htab_set_functions_ex, htab_create,
581 htab_try_create, htab_delete, htab_empty,
582 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
583 htab_find, htab_find_slot_with_hash, htab_find_slot,
584 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
585 htab_traverse_noresize, htab_traverse, htab_collisions,
586 htab_hash_string, iterative_hash): Use ISO C prototype.
587 * hex.c (hex_init): Likewise.
588 * index.c (index): Likewise.
589 * insque.c (insque, remque): Likewise.
590 * lbasename.c (lbasename): Likewise.
591 * lrealpath.c (lrealpath): Likewise.
592 * make-relative-prefix.c (save_string, split_directories,
593 free_split_directories, make_relative_prefix): Likewise.
594 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
595 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
596 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
597 * memchr.c (memchr): Likewise.
598 * memcpy.c (memcpy): Likewise.
599 * memmove.c (memmove): Likewise.
600 * gettimeofday.c (gettimeofday): Likewise.
601 * getruntime.c (get_run_time): Likewise.
602 * getpwd.c (getpwd, getpwd): Likewise.
603 * getpagesize.c (getpagesize): Likewise.
604 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
605 * getopt.c (my_index, exchange, _getopt_initialize,
606 _getopt_internal, getopt, main): Likewise.
607 * getcwd.c (getcwd): Likewise.
608 * fnmatch.c (fnmatch): Likewise.
609 * floatformat.c (floatformat_always_valid,
610 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
611 put_field, floatformat_from_double, floatformat_is_valid,
612 ieee_test, main): Likewise.
613 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
614 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
615 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
616 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
617 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
618 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
619 fibheap_link, fibheap_cut, fibheap_cascading_cut,
620 fibnode_insert_after, fibnode_remove): Likewise.
621 * ffs.c (ffs): Likewise.
622 * fdmatch.c (fdmatch): Likewise.
623 * dyn-string.c (dyn_string_init, dyn_string_new,
624 dyn_string_delete, dyn_string_release, dyn_string_resize,
625 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
626 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
627 dyn_string_insert_cstr, dyn_string_insert_char,
628 dyn_string_append, dyn_string_append_cstr,
629 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
632 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
634 Convert libiberty to use ISO C prototype style 3/n.
635 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
636 consume_count_with_underscores, code_for_qualifier,
637 qualifier_string, demangle_qualifier, cplus_demangle_opname,
638 cplus_mangle_opname, cplus_demangle_set_style,
639 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
640 ada_demangle, internal_cplus_demangle, squangle_mop_up,
641 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
642 delete_work_stuff, mop_up, demangle_signature,
643 demangle_method_args, demangle_template_template_parm,
644 demangle_expression, demangle_integral_value,
645 demangle_real_value, demangle_template_value_parm,
646 demangle_template, arm_pt, demangle_arm_hp_template,
647 demangle_class_name, demangle_class, iterate_demangle_function,
648 demangle_prefix, gnu_special, recursively_demangle, arm_special,
649 demangle_qualified, get_count, do_type, demangle_fund_type,
650 do_hpacc_template_const_value, do_hpacc_template_literal,
651 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
652 register_Btype, remember_Btype, forget_B_and_K_types,
653 forget_types, demangle_args, demangle_nested_args,
654 demangle_function_name, string_need, string_delete, string_init,
655 string_clear, string_empty, string_append, string_appends,
656 string_appendn, string_prepend, string_prepends, string_prependn,
657 string_append_template_idx): Use ISO C prootype style.
658 * cp-demint.c (cplus_demangle_fill_component,
659 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
660 cplus_demangle_v3_components): Likewise.
662 2005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
664 Convert libiberty to use ISO C prototype style 2/n.
665 * cp-demangle.h: Remove uses of PARAMS.
666 * cp-demangle.c: Likewise.
667 (d_dump, cplus_demangle_fill_name,
668 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
669 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
670 d_make_builtin_type, d_make_operator, d_make_extended_operator,
671 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
672 cplus_demangle_mangled_name, has_return_type,
673 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
674 d_prefix, d_unqualified_name, d_source_name, d_number,
675 d_identifier, d_operator_name, d_special_name, d_call_offset,
676 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
677 d_function_type, d_bare_function_type, d_class_enum_type,
678 d_array_type, d_pointer_to_member_type, d_template_param,
679 d_template_args, d_template_arg, d_expression, d_expr_primary,
680 d_local_name, d_discriminator, d_add_substitution,
681 d_substitution, d_print_resize, d_print_append_char,
682 d_print_append_buffer, d_print_error, cplus_demangle_print,
683 d_print_comp, d_print_java_identifier, d_print_mod_list,
684 d_print_mod, d_print_function_type, d_print_array_type,
685 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
686 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
687 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
690 2005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
692 Convert libiberty to ISO C prototype style 1/n.
693 * _doprnt.c: Remove conditional #include <varargs.h> on
694 ANSI_PROTOTYPES as the latter is always assumed.
695 (_doprnt, checkit, main): Use ISO C prototype.
696 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
697 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
698 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
699 * atexit.c (atexit): Likewise
700 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
701 (asprintf): Use ISO C prototype.
702 * basename.c (basename): Likewise
703 * bcmp.c (bcmp): Likewise.
704 * bcopy.c (bcopy): Likewise.
705 * bzero.c (bzero): Likewise.
706 * bsearch.c (bsearch): Likewise. Improve const-correctness.
707 * choose-temp.c (choose_temp_base): Likewise.
708 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
709 (calloc): Use ISO C prototype.
710 * clock.c (clock): Likewise.
711 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
712 (vconcat_length, vconcat_copy, concat_length, concat_copy,
713 concat_copy2, concat, reconcat, main): Use ISO C prototype.
714 * copysign.c (copysign): Likewise.
716 2005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
718 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
719 (REQUIRED_OFILES): Add xstrndup.o.
720 (CONFIGURED_OFILES): Add strndup.o.
721 Regenerate dependencies.
723 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
725 * strndup.c, xstrndup.c: New.
727 * config.in, configure, functions.texi: Regenerate.
729 2005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
731 * xmemdup.c, xstrdup.c: Expose the tail call.
733 2005-03-09 Mark Mitchell <mark@codesourcery.com>
735 * configure.ac (funcs): Add gettimeofday.
736 * configure: Regenerated.
737 * gettimeofday.c: New file.
738 * Makefile.in (CFILES): Add gettimeofday.
739 (CONFIGURED_OFILES): Add gettimeofday.o.
740 (./gettimeofday.o): New rule.
742 2005-03-09 Ian Lance Taylor <ian@airs.com>
745 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
746 * Makefile.in (CFILES): Remove pex-os2.c.
747 (CONFIGURED_OFILES): Remove pex-os2.o.
748 (pex-os2.o): Remove target.
749 * configure: Rebuild.
751 2005-03-07 Ian Lance Taylor <ian@airs.com>
753 * mpw-config.in: Remove.
754 * mpw-make.sed: Remove.
756 * Makefile.in (CFILES): Remove pex-mpw.c.
757 (CONFIGURED_OFILES): Remove pex-mpw.o.
758 (mpw.o, pex-mpw.o): Remove targets.
759 * maint-tool (undoc): Remove reference to mpw.c.
761 2005-03-06 DJ Delorie <dj@redhat.com>
763 * configure.ac (target_header_dir): vfork is a stub under djgpp.
764 * configure: Regenerated.
766 2005-03-01 Jan Beulich <jbeulich@novell.com>
768 * Makefile.in (CFILES): Add unlink-if-ordinary.c
769 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
770 Add dependencies and rule for unlink-if-ordinary.o.
771 * unlink-if-ordinary.c: New.
773 2005-03-01 Ben Elliston <bje@au.ibm.com>
775 * hashtab.c (htab_find_slot_with_hash): Make function
776 documentation clearer.
778 2005-02-13 Jason Merrill <jason@redhat.com>
780 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
783 2005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
785 * hex.c (hex_value): Group 'unsigned int' together to get correct
787 * functions.texi: Regenerated.
789 2004-12-27 H.J. Lu <hongjiu.lu@intel.com>
791 * Makefile.in: Undo to 2004-12-17.
792 * aclocal.m4: Likewise.
793 * config.table: Likewise.
794 * configure.ac: Likewise.
795 * maint-tool: Likewise.
796 * configure: Likewise.
798 2004-12-19 H.J. Lu <hongjiu.lu@intel.com>
801 * Makefile.in (enable_shared): New substitute.
803 (PREFIXTARGETLIB): New.
805 (PREFIXTESTLIB): New.
808 ($(TARGETLIB)): Use $(LINK) to create libraries and create
810 ($(TESTLIB)): Likewise.
811 (mostlyclean): Don't remove .libs. Remove the libtool object
814 * config.table (enable_shared): Removed.
816 * configure.ac (enable_static): Set to yes.
817 (AC_PROG_LIBTOOL): Removed.
818 (AM_DISABLE_SHARED): Uncommented.
819 (AM_PROG_LIBTOOL): Likewise.
820 (LIBOBJS): Add `./' to avoid VPATH.
821 (LTLIBOBJS): Likewise.
822 (enable_shared): Substitute.
823 * configure: Regenerated.
825 2004-12-18 H.J. Lu <hongjiu.lu@intel.com>
827 * Makefile.in (top_builddir): Set to `.'.
828 (OUTPUT_OPTION): Removed.
831 (EXTRA_LTOFILES): New.
832 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
833 (all): Remove stamp-picdir.
836 (REQUIRED_LTOFILES): New.
837 (CONFIGURED_LTOFILES): New.
838 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
839 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
840 (stamp-picdir): Completely removed.
841 (maint-missing): Pass $(REQUIRED_LTOFILES)
842 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
844 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
845 $(CONFIGURED_LTOFILES).
846 (mostlyclean): Also remove *.lo .libs.
847 Run "make maint-deps".
849 * aclocal.m4: Include ../libtool.m4.
851 * config.table: Don't check --enable-shared.
853 * configure.ac (AC_PROG_LIBTOOL): Add.
854 (AC_PROG_CC_C_O): Removed.
855 (OUTPUT_OPTION): Removed.
856 (NO_MINUS_C_MINUS_O): Removed.
857 (ltpexecute): New substitute.
859 * configure: Regenerated.
861 * maint-tool: Updated for .lo/libtool.
863 2004-12-11 Ben Elliston <bje@au.ibm.com>
865 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
866 * configure: Regenerate.
867 * config.in: Likewise.
869 2004-12-07 DJ Delorie <dj@redhat.com>
871 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
872 that recursion (and thus large stack space) is not needed.
874 2004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
876 * pex-unix.c: Fix the spelling of longjmp.
878 2004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
881 * cp-demangle.c (d_call_offset): Remove useless local variables
882 offset and virtual_offset.
883 * cplus-dem.c (ada_demangle): Remove useless local variable
885 (demangle_template): Remove useless local variable start.
887 2004-11-19 Roger Sayle <roger@eyesopen.com>
889 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
890 "ansidecl.h" to avoid redeclaration errors with native compilers.
891 * regex.c: Protect config.h from multiple inclusion.
893 2004-11-12 Mike Stump <mrs@apple.com>
895 * Makefile.in (libiberty.html): Fix html generation.
897 2004-09-08 Adam Nemet <anemet@lnxw.com>
899 * vasprintf.c: Accept __va_copy in addition to va_copy.
901 2004-09-03 Paolo Bonzini <bonzini@gnu.org>
903 * configure: Regenerate.
905 2004-09-02 Paolo Bonzini <bonzini@gnu.org>
907 * configure.ac: Do not enable multilibs for build-side libiberty.
909 2004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
911 * lrealpath.c (lrealpath): Add _WIN32 support.
913 2004-06-28 Zack Weinberg <zack@codesourcery.com>
915 * cp-demangle.h: Declare cplus_demangle_operators,
916 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
917 cplus_demangle_type as static if IN_GLIBCPP_V3.
919 2004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
922 * cp-demangle.c (d_expr_primary): Check for a failure return from
924 * testsuite/demangle-expected: Add test case.
926 2004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
928 * pex-win32.c (fix_argv): Expand comment.
930 2004-05-25 Daniel Jacobowitz <drow@false.org>
932 * Makefile.in: Add .NOEXPORT.
934 2004-04-29 Douglas B Rupp <rupp@gnat.com>
936 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
939 2004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
941 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
942 * configure: Regenerate.
944 2004-04-22 Richard Henderson <rth@redhat.com>
946 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
947 (CHAR_BIT): Provide default.
948 (struct prime_ent, prime_tab): New.
949 (higher_prime_index): Rename from higher_prime_number, return index.
951 (htab_mod, htab_mod_m2): Use it.
952 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
953 (htab_expand): Likewise.
954 * configure.ac: Check for stdint.h.
955 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
956 * config.in, configure: Rebuild.
958 2004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
960 * strerror.c: Include config.h, and redefine sys_nerr and
961 sys_errlist, before including ansidecl.h and libiberty.h.
963 2004-04-13 Jeff Law <law@redhat.com>
965 * hashtab.c (htab_remove_elt_with_hash): New function.
966 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
968 2004-03-31 Richard Henderson <rth@redhat.com>
970 * hashtab.c (htab_size): Move to top of file; mark inline.
971 (htab_elements): Likewise.
972 (htab_mod, htab_mod_m2): New.
973 (htab_delete): Refactor htab->size and htab->entries.
974 (htab_empty): Likewise.
975 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
976 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
977 (htab_clear_slot): Use htab_size, htab_elements.
978 (htab_traverse_noresize, htab_traverse): Likewise.
980 2004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
982 * pex-unix.c (pexecute): Use vfork instead of fork, with
983 appropriate changes to make this safe.
984 * pex-common.h (STDERR_FILE_NO): Define.
986 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
987 an 80 column screen. Run maint-deps.
989 2004-03-09 Kelley Cook <kcook@gcc.gnu.org>
991 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
992 * acconfig.h: Delete redundant file.
993 * config.in: Regenerate.
994 * configure: Regenerate.
996 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
998 * configure: Regenerate for config/accross.m4 correction.
1000 2004-03-07 Andreas Jaeger <aj@suse.de>
1002 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
1004 (main): Initialize style.
1006 2004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
1008 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
1009 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
1010 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
1011 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
1012 short types to D_PRINT_DEFAULT. Change other integer types to use
1013 new D_PRINT_* values where appropriate. Change float types to
1015 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
1017 * testsuite/demangle-expected: Adjust two test cases.
1019 * cp-demangle.c (d_print_function_type): Print a space before the
1020 parenthesis around the function type in more cases.
1021 * testsuite/demangle-expected: Adjust one test case.
1023 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
1024 parentheses around a cast.
1025 * testsuite/demangle-expected: Adjust two test cases to match new
1028 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
1030 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
1031 push more than one of the same CV-qualifier on the top of the
1033 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
1034 move the CV-qualifiers to apply to the element type instead.
1035 (d_print_array_type): When checking the modifiers, keep looking
1036 past ones which have been printed already.
1037 * testsuite/demangle-expected: Add three test cases.
1039 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1041 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
1042 empty string correctly.
1044 * cp-demangle.c (__cxa_demangle): It is not an error if status is
1045 not NULL. It is an error if the mangled name is the same as a
1047 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
1048 than cplus_demangle_v3.
1050 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
1051 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
1053 2004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
1055 * regex.c: Include <ansidecl.h>.
1056 (regcomp): Cast i to int.
1057 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
1059 2004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
1061 * configure.ac: Add m4_pattern_allow(LIBOBJS).
1062 * configure: Regenerate.
1064 2004-01-22 DJ Delorie <dj@redhat.com>
1066 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
1067 with explicit build rules.
1070 * configure.ac (pexecute, LIBOBJS): Add ./ .
1071 * maint-tool: Build dependencies with explicit rules.
1073 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
1075 * strdup.c (strdup): Constify the argument.
1077 2004-01-14 Loren J. Rittle <ljrittle@acm.org>
1079 * Makefile.in (distclean): Remove config.cache.
1081 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
1083 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
1084 takes two parameters.
1085 * cp-demint.c (cplus_demangle_fill_component): Likewise.
1087 2004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
1089 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
1090 defined, rename some functions which are to become static via
1092 (CP_STATIC_IF_GLIBCPP_V3): Define.
1093 (struct d_operator_info): Move definition to cp-demangle.h, and
1094 rename to demangle_operator_info. Change all uses.
1095 (enum d_builtin_type_print): Move definition to cp-demangle.h.
1096 (struct d_builtin_type_info): Move definition to cp-demangle.h,
1097 and rename to demangle_builtin_type_info. Change all uses.
1098 (enum d_comp_type): Move definition to include/demangle.h, and
1099 rename to demangle_component_type, and change all enums to start
1100 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
1101 (struct d_comp): Move definition to include/demangle.h, and rename
1102 to demangle_component. Change all uses.
1103 (struct d_info): Move definition to cp-demangle.h.
1104 (cplus_demangle_fill_name): New function.
1105 (cplus_demangle_fill_extended_operator): New function.
1106 (cplus_demangle_fill_ctor): New function.
1107 (cplus_demangle_fill_dtor): New function.
1108 (d_make_empty): Remove type parameter. Change all callers.
1109 (d_make_name): Use cplus_demangle_fill_name.
1110 (d_make_extended_operator): Use
1111 cplus_demangle_fill_extended_operator.
1112 (d_make_ctor): Use cplus_demangle_fill_ctor.
1113 (d_make_dtor): Use cplus_demangle_fill_dtor.
1114 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
1115 non-static by default. Change all callers.
1116 (cplus_demangle_operators): Rename from d_operators. Change all
1117 uses. Make non-static by default. Add sentinel at end of array.
1118 (d_operator_name): Adjust initialization of high for new sentinel
1119 in cplus_demangle_operators.
1120 (cplus_demangle_builtin_types): Rename from d_builtin_types.
1121 Change all uses. Make non-static by default. Change initializer
1122 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
1123 (cplus_demangle_type): Rename from d_type. Make non-static by
1124 default. Change all callers.
1125 (cplus_demangle_init_info): Rename from d_init_info. Make
1126 non-static by default. Change all callers.
1127 * cp-demangle.h: New file.
1128 * cp-demint.c: New file.
1129 * Makefile.in: Rebuild dependencies.
1130 (CFILES): Add cp-demint.c.
1131 (REQUIRED_OFILES): Add cp-demint.o.
1133 2004-01-09 Kelley Cook <kcook@gcc.gnu.org>
1135 * configure.in: Rename file to ...
1136 * configure.ac: ... this.
1137 * Makefile.in: Update a comment for above change.
1139 * config.in: Regenerate.
1141 2004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
1143 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
1144 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
1145 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
1146 demangling template parameters.
1147 * testsuite/test-demangle.c (fail): New static function.
1148 (main): Support new options in input file: --no-params,
1149 --is-v3-ctor, and --is-v3-dtor.
1150 * testsuite/demangle-expected: Add --no-params to most tests, and
1151 add the correct result when parameters are not demangled. Add
1152 some simple tests for V3 constructor/destructor recognition.
1154 2003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1156 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
1158 2003-12-22 Daniel Jacobowitz <drow@mvista.com>
1161 * Makefile.in (lbasename.o): Depend on filenames.h.
1162 * lbasename.c: Include "filenames.h" instead of defining
1165 2003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
1167 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
1169 (struct d_operator_info): Add len field.
1170 (struct d_builtin_type_info): Add len and java_len fields.
1171 (struct d_standard_sub_info): Add simple_len, full_len, and
1172 set_last_name_len fields.
1173 (struct d_comp): Add len field to s_string.
1174 (struct d_info): Add send, did_subs, and expansion fields.
1175 (d_append_string_constant): Define.
1176 (d_append_string): Remove. Change all users to use
1177 d_append_string_constant or d_append_buffer instead.
1178 (d_make_sub): Add len parameter. Change all callers.
1179 (d_name): Increase expansion when substituting std::.
1180 (d_unqualified_name): Increase expansion for an operator.
1181 (d_number): Don't use multiplication for negative numbers.
1182 (d_identifier): Make sure there are enough characters in the
1183 string for the specified length. Adjust expansion for an
1184 anonymous namespace.
1185 (d_operators): Initialize len field.
1186 (d_special_name, d_ctor_dtor_name): Increase expansion.
1187 (d_builtin_types): Initialize len and java_len fields.
1188 (d_type): Increase expansion for a builtin type.
1189 (d_cv_qualifiers): Increase expansion for each qualifier.
1190 (d_bare_function_type): Decrease expansion when removing single
1192 (d_template_param): Increment did_subs.
1193 (d_expression): Increase expansion for an operator.
1194 (d_expr_primary): Decrease expansion for a type we will print
1196 (standard_subs): Initialize new fields.
1197 (d_substitution): Increment did_subs when doing a normal
1198 substitution. Increase expansion for a special substitution.
1199 (d_print): Add estimate parameter. Change all callers.
1200 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
1201 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
1202 (d_print_java_identifier): Rename from d_print_identifier. Handle
1203 only Java case. Change caller.
1204 (d_init_info): Change return type to void. Change all callers.
1205 Initialize send, did_subs, and expansion fields. Do not
1206 initialize comps and subs fields.
1207 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
1208 arrays on stack. Make an estimate of the length of the demangled
1209 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
1210 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
1211 subs arrays on stack.
1213 2003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
1215 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
1216 after the identifier.
1217 * testsuite/demangle-expected: Add test case.
1219 2003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
1221 Fix for PR c++/13447:
1222 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
1223 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
1224 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
1226 (is_ctor_or_dtor): Likewise.
1227 (d_local_name): Use D_COMP_LOCAL_NAME rather than
1229 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
1230 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
1231 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
1232 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
1233 * testsuite/demangle-expected: Add two test cases.
1235 * cp-demangle.c (d_print_function_type): Clear the global modifier
1236 list when printing the modifiers, not just when printing the
1237 function parameters.
1238 * testsuite/demangle-expected: Add two test cases.
1240 2003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1242 * cp-demangle.c (d_print_function_type): Print the function
1243 parameters with no modifiers.
1244 * testsuite/demangle-expected: Add test case.
1246 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
1247 expect that we've read the entire string.
1248 (is_ctor_or_dtor): Don't expect that we've read the entire
1249 string--reverse patch of 2003-11-29.
1251 2003-12-15 Brendan Kehoe <brendan@zen.org>
1253 * libiberty/Makefile.in (floatformat.o): Add dependency on
1254 config.h to accompany change of 2003-12-03.
1256 2003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1258 Fix handling of constructor/destructor of standard substitution:
1259 * cp-demangle.c (struct d_standard_sub_info): Define.
1260 (d_substitution): Add prefix argument. Change all callers.
1261 Rework handling of standard substitutions to print full name when
1262 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
1263 * testsuite/demangle-expected: Add test case.
1265 Fix handling of negative literal constants:
1266 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
1267 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
1268 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
1269 (d_print_comp): Handle D_COMP_LITERAL_NEG.
1270 * testsuite/demangle-expected: Add test case.
1272 2003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
1274 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
1275 (d_last_char): Define new macro.
1276 (d_make_name): Reject an empty name.
1277 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
1278 (d_substitution, d_print_identifier): Likewise.
1279 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
1280 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
1281 (d_print_mod) Use new d_last_char macro.
1282 (d_print_cast): Use new d_last_char macro.
1283 (is_ctor_or_dtor): Don't leak memory.
1285 Fix handling of member function modifiers:
1286 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
1287 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
1288 (d_dump): Dump new d_comp_type values.
1289 (d_make_comp): Accept new d_comp_type values.
1290 (has_return_type): Only accept _THIS variants of qualifiers.
1291 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
1293 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
1294 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
1295 qualifiers and printing them at the end, add _THIS qualifiers to
1297 (d_print_comp) [D_COMP_*_THIS]: New cases.
1298 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
1300 (d_print_mod_list): Add suffix parameter. Change all callers.
1301 Keep walking the list even if the current modifier has been
1303 (d_print_mod): Handle new _THIS qualifiers.
1304 (d_print_function_type): Handle new _THIS qualifiers when deciding
1305 whether to print a parenthesis. Put a space before the
1306 parenthesis in some cases. Call d_print_mod_list again at the
1307 end, passing suffix as 1.
1308 (is_ctor_or_dtor): Look for new _THIS qualifiers.
1309 * testsuite/demangle-expected: Add test case.
1311 Fix for PR gcc/13304:
1312 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
1313 before the '<' is itself a '<', insert a space.
1314 (d_print_cast): Likewise.
1315 * testsuite/demangle-expected: Add test case.
1317 Fix for PR gcc/13244:
1318 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
1319 which uses the '>' operator in an extra layer of parens.
1320 * testsuite/demangle-expected: Add test case.
1322 2003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
1324 * floatformat.c: Include "config.h" and <string.h> if available.
1325 (INFINITY, NAN): Define if not defined by <math.h>.
1326 (floatformat_to_double): Handle NaN, infinity, and denormalized
1328 (floatformat_from_double): Likewise.
1329 (ieee_test): In debugging code, use little endian rather than big
1330 endian. Correct tests to handle NaN and to check correct sign of
1331 zero. Omit m68k extended test.
1332 (main): Add more debugging cases.
1334 2003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
1336 * cp-demangle.c (d_demangle): Only return success if we consumed
1337 the entire demangled string.
1338 (is_ctor_or_dtor): Likewise.
1340 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
1341 to restore expected result of EDG test case to original expected
1344 2003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
1346 * cp-demangle.c (struct d_print_mod): Add templates field.
1347 (d_make_builtin_type): Check for NULL type.
1348 (d_make_extended_operator): Check for NULL name.
1349 (d_make_ctor, d_make_dtor): Likewise.
1350 (d_mangled_name): Add top_level parameter. Change all callers.
1351 (d_encoding): If DMGL_PARAMS is not set, strip off initial
1353 (d_type): Check some return values we rely on.
1354 (d_bare_function_type, d_array_type): Likewise.
1355 (d_pointer_to_member_type, d_template_args): Likewise.
1356 (d_add_substitution): Fail if argument is NULL.
1357 (d_print_resize): Check whether buf is NULL.
1358 (d_print_comp): Save current templates list with each modifier.
1359 Don't pass the modifier list down when printing a template.
1360 (d_print_cast): Don't pass the modifier list down when printing a
1362 (d_print_mod_list): Temporarily set templates list while printing
1364 (d_print_mod): Check that buf is not NULL before using it.
1365 (d_print_function_type): Print parens if there is no modifier.
1366 (d_init_info): Permit as many substitutions as there are
1367 characters in the mangled name.
1368 * testsuite/demangle-expected: Add two new test cases.
1370 2003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
1372 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
1375 2003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
1377 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
1379 (print_usage): Display new -p option.
1380 (long_options): Add --no-params.
1381 (main): Accept and handle -p.
1383 2003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
1385 * cp-demangle.c (has_return_type): Skip qualifiers when checking
1386 whether we have a template.
1387 * testsuite/demangle-expected: Add four new tests.
1389 2003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
1391 * testsuite/demangle-expected: Minor changes to match output of
1392 new demangler: adjust whitespace in four tests, and change order
1393 of qualifiers in one test.
1395 * cp-demangle.c: Complete rewrite.
1397 2003-11-19 Mark Mitchell <mark@codesourcery.com>
1399 * cp-demangle.c (demangle_type): Correct thinko in substitution
1402 2003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
1404 * cp-demangle.c (demangle_operator_name): Remove space before
1406 (demangle_type_ptr): Put qualifiers in the right place. Handle
1407 qualifiers in pointer to member specially.
1408 (demangle_type): Handle qualifiers for pointer or reference
1409 specially. Handle function type.
1410 (demangle_local_name): Save and restore caret around demangling of
1413 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
1416 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
1418 2003-10-31 Andreas Jaeger <aj@suse.de>
1420 * floatformat.c (floatformat_always_valid): Add unused attribute.
1422 2003-10-30 Josef Zlomek <zlomekj@suse.cz>
1424 Jan Hubicka <jh@suse.cz>
1425 * vasprintf.c (int_vasprintf): Pass va_list by value.
1426 Use va_copy for copying va_list.
1427 (vasprintf): Pass va_list by value.
1429 2003-10-30 Josef Zlomek <zlomekj@suse.cz>
1431 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
1432 instead of increasing n_elements when inserting to deleted slot.
1434 2003-10-20 J. Brobecker <brobecker@gnat.com>
1436 * cplus-dem.c (demangle_template): Register a new Btype only
1438 * testsuite/demangle-expected: Add a new test.
1440 2003-10-16 H.J. Lu <hongjiu.lu@intel.com>
1442 * testsuite/demangle-expected: Update the expected output of
1445 2003-10-02 Daniel Jacobowitz <drow@mvista.com>
1447 * strerror.c: Revert last change. Declare static sys_nerr
1448 and sys_errlist using different names.
1450 2003-10-01 Daniel Jacobowitz <drow@mvista.com>
1452 * strerror.c: Don't provide or reference sys_errlist if
1453 strerror is available.
1455 2003-10-01 H.J. Lu <hongjiu.lu@intel.com>
1457 * configure.in: Check if $MAKEINFO is missing.
1458 * configure: Regenerated.
1460 2003-09-24 Daniel Jacobowitz <drow@mvista.com>
1462 * configure.in: Use AC_PROG_CPP_WERROR.
1463 * configure: Regenerated.
1465 2003-09-22 Andrew Cagney <cagney@redhat.com>
1467 * floatformat.c (floatformat_i387_ext_is_valid): New function.
1468 (floatformat_always_valid): New function.
1469 (floatformat_i387_ext): Initialize new "is_valid" field to
1470 "floatformat_i387_ext_is_valid".
1471 (floatformat_ieee_single_little): Initialize "is_valid" field to
1472 floatformat_always_valid.
1473 (floatformat_ieee_double_big): Ditto.
1474 (floatformat_ieee_double_little): Ditto.
1475 (floatformat_ieee_double_little): Ditto.
1476 (floatformat_ieee_double_littlebyte_bigword): Ditto.
1477 (floatformat_i960_ext): Ditto.
1478 (floatformat_m88110_ext): Ditto.
1479 (floatformat_m88110_harris_ext): Ditto.
1480 (floatformat_arm_ext_big): Ditto.
1481 (floatformat_arm_ext_littlebyte_bigword): Ditto.
1482 (floatformat_ia64_spill_big): Ditto.
1483 (floatformat_ia64_spill_little): Ditto.
1484 (floatformat_ia64_quad_big): Ditto.
1485 (floatformat_ia64_quad_little): Ditto.
1486 (floatformat_ia64_quad_little): Ditto.
1487 (floatformat_is_valid): Call "is_valid".
1489 2003-09-15 Andrew Cagney <cagney@redhat.com>
1491 * floatformat.c (get_field): Make "data" constant.
1492 (floatformat_is_valid, floatformat_to_double): Make "from"
1493 constant, fix casts.
1494 (floatformat_from_double): Make "from" constant.
1496 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
1498 * floatformat.c (floatformat_is_valid): New function.
1499 (get_field, put_field): Correct comments.
1501 2003-09-06 Josef Zlomek <zlomekj@suse.cz>
1503 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
1506 2003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1509 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
1510 * configure: Rebuilt.
1512 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
1514 * aclocal.m4: Include acx.m4 and no-executables.m4.
1515 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
1516 (LIB_AC_PROG_CC): Remove.
1517 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
1518 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
1519 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
1520 performing link tests.
1521 * configure: Regenerated.
1523 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
1525 * cp-demangle.c: Clarify what package(s) this is part of.
1527 2003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
1529 * pex-win32.c (pexecute): Mark parameters this_pname and
1530 temp_base as unused. Remove unused variables retries,
1531 sleep_interval. Initialize org_stdin, org_stdout.
1532 (pwait): Mark parameter flags as unused.
1534 2003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
1536 * pex-win32.c (fix_argv): Ensure that the executable pathname
1537 uses Win32 backslashes.
1538 (pexecute): Cast away constness when assigning *errmsg_arg.
1540 2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
1542 * testsuite/demangle-expected: Add more GNU V3 testcases.
1544 2003-06-22 Zack Weinberg <zack@codesourcery.com>
1546 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
1547 not HC_ASCII and HC_EBCDIC.
1548 Add documentation in form expected by gather-docs.
1549 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
1550 * Makefile.in, functions.texi: Regenerate.
1552 2003-06-21 Zack Weinberg <zack@codesourcery.com>
1554 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
1555 for charset determination.
1557 2003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
1559 * configure.in: Add check for malloc.h needed by
1560 m68k for function free().
1561 * configure: Regenerated.
1562 * config.in: Add HAVE_MALLOC_H.
1563 * hashtab.c: include malloc.h were available for
1566 2003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
1569 * physmem.c: Update comment.
1570 * configure.in: Modify test for _system_configuration for older
1573 * config.in, configure: Regenerated.
1575 2003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1578 * test-demangle.c (getline): Fix fence-post error.
1580 2003-06-03 Nick Clifton <nickc@redhat.com>
1582 * asprintf.c: Change comment to note that -1 is returned upon
1584 * vasprintf.c: Likewise.
1585 (vasprintf): Return -1 upon error.
1586 * functions.texi: Document changes to asprintf and vasprintf.
1588 2003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
1590 * config.table: Accept i[345867]86 variant.
1592 2003-05-15 Jim Blandy <jimb@redhat.com>
1594 * hex.c (_hex_value): Make this unsigned.
1595 (hex_value): Update documentation for new return type. hex_value
1596 now expands to an unsigned int expression, to avoid unexpected
1597 sign extension when we store it in a bfd_vma, which is larger than
1598 int on some platforms.
1599 * functions.texi: Regenerated.
1601 2003-05-07 Josef Zlomek <zlomekj@suse.cz>
1603 * splay-tree.c (splay_tree_predecessor): Fix comment.
1604 (splay_tree_successor): Fix comment.
1606 2003-05-07 Jason Merrill <jason@redhat.com>
1608 * hashtab.c (iterative_hash): New fn.
1609 * configure.in: Add AC_C_BIGENDIAN_CROSS.
1610 * aclocal.m4: Include accross.m4.
1611 * configure, config.in: Regenerate.
1613 2003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1615 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
1616 * configure: Regenerate.
1618 2003-05-03 Carlo Wood <carlo@alinoe.com>
1620 * cp-demangle.c: Fix typo in "char_traints" string-literal.
1622 2003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1624 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
1625 (main): Test that we don't write too much data.
1627 2003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1629 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
1631 * snprintf.c, vsnprintf.c: New files.
1632 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
1633 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
1634 Regenerate dependencies.
1636 * functions.texi, configure, config.in: Regenerated.
1638 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1640 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
1641 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
1643 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
1644 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
1645 Regenerate dependencies.
1647 * functions.texi, configure, config.in: Regenerated.
1649 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1651 * argv.c: Fix comments.
1652 * calloc.c: Don't unnecessarily include "libiberty.h".
1653 (bzero): Add prototype.
1654 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1655 * getcwd.c (getcwd): Use standard definition to avoid conflicts
1656 with system headers.
1657 * hashtab.c (htab_traverse): Delete unused variables.
1658 * rename.c: Include "ansidecl.h".
1659 (rename): Use standard definition to avoid conflicts with system
1661 * strsignal.c: Rely on ANSI_PROTOTYPES.
1662 * strstr.c: Check GNUC >= 2, not GNUC == 2.
1663 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1664 * vprintf.c: Include "ansidecl.h" earlier, rely on
1666 * vsprintf.c: Include "ansidecl.h" earlier, rely on
1667 ANSI_PROTOTYPES and possibly include <stdarg.h>.
1669 * Makefile.in: Regenerate dependencies.
1671 2003-04-15 DJ Delorie <dj@redhat.com>
1673 * maint-tool (deps): Scan for headers in $srcdir also.
1675 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1680 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
1682 * regex.c (regerror): Likewise.
1684 2003-04-14 Roger Sayle <roger@eyesopen.com>
1686 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
1687 * memchr.c: Likewise.
1688 * strcasecmp.c: Likewise.
1689 * strncasecmp.c: Likewise.
1690 * strncmp.c: Likewise.
1691 * xatexit.c: Likewise.
1692 * xmalloc.c: Likewise.
1694 * copysign.c: Use traditional function declaration instead of DEFUN.
1695 * sigsetmask.c: Likewise.
1697 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
1698 * memset.c: Likewise.
1700 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
1701 * memmove.c: Likewise.
1703 2003-04-14 Roger Sayle <roger@eyesopen.com>
1705 * strdup.c (strdup): Tweak implementation to use memcpy.
1707 2003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1709 * configure.in (HAVE_UINTPTR_T): Always define.
1710 * configure: Regenerated.
1712 2003-03-23 Alexandre Oliva <aoliva@redhat.com>
1714 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
1715 instead of $$CC alone.
1716 (install_to_tooldir): Use it.
1718 2003-17-03 Jan Hubicka <jh@suse.cz>
1720 * hashtab.c (htab_traverse_noresize): Break out from ...
1721 * hashtab.c (htab_traverse): ... here.
1723 2003-12-03 Jan Hubicka <jh@suse.cz>
1725 * hashtab.c (htab_expand): Fix warning.
1727 * hashtab.c (htab_expand): Compute the size of hashtable based
1728 on the number of elements actually used.
1729 (htab_traverse): Call htab_expand when table is too empty.
1731 2003-03-11 Carlo Wood <carlo@gnu.org>
1733 * cplus-dem.c (demangle_integral_value): Correction to reflect
1734 patch of 2002-01-10 in order to also make negative multi-digits
1735 without leading underscore work.
1737 2003-03-03 Mark Mitchell <mark@codesourcery.com>
1739 * cplus-dem.c: Add license exception to copyright notice.
1741 2003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1743 * physmem.c: Formatting changes from upstream.
1745 2003-02-24 Danny Smith <dannysmith@users.source.forge.net>
1747 * physmem.c (physmem_total): Add _WIN32 support.
1748 (physmem_available): Likewise.
1750 2003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1752 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
1754 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
1756 2003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1758 * configure.in: Check for sys/systemcfg.h and
1759 _system_configuration.
1760 * physmem.c: Add support for AIX. Tweek formatting as per
1761 upstream coreutils beta.
1763 2003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1764 Richard Earnshaw <rearnsha@arm.com>
1765 Geoffrey Keating <geoffk@apple.com>
1767 * configure.in: Check for sys/sysctl.h and sysctl.
1768 * physmem.c: Add support for *bsd and darwin.
1769 * Makefile.in: Generate depedency for physmem.o.
1771 2003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1773 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
1775 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
1778 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
1779 machine/hal_sysinfo.h, sys/table.h.
1780 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
1781 * configure, config.in: Regenerate.
1783 2003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1785 * configure.in: Check for sys/sysmp.h and sysmp.
1786 * physmem.c: Pull upstream copy, add support for irix6.
1788 * config.in, configure: Regenerated.
1790 2003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1792 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
1793 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
1796 2003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1798 * Makefile.in (CFILES): Add physmem.c.
1799 (REQUIRED_OFILES): Add physmem.o.
1800 * configure.in: Check for sys/pstat.h.
1801 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
1802 * physmem.c: New file, copied from textutils.
1804 * config.in, configure: Regenerated.
1806 2003-02-20 Daniel Jacobowitz <drow@mvista.com>
1808 * Makefile.in (CFILES): Add lrealpath.c.
1809 (REQUIRED_OFILES): Add lrealpath.o.
1810 (lrealpath.o): Add rule.
1811 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
1812 * configure.in: Add realpath and canonicalize_file_name to
1813 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
1814 for canonicalize_file_name.
1815 * lrealpath.c: New file.
1816 * make-relative-prefix.c: Update documentation.
1817 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
1818 * config.in: Regenerated.
1819 * configure: Regenerated.
1820 * functions.texi: Regenerated.
1822 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1824 * cplus_dem.c: Fix typo: intializes -> initializes.
1826 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
1828 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
1830 * configure: Rebuilt.
1832 2003-02-13 Daniel Jacobowitz <drow@mvista.com>
1835 * cplus-dem.c (demangle_signature): Call string_delete.
1836 Remove extra string_init.
1837 (demangle_arm_hp_template): Call string_delete instead of
1838 string_clear. Add missing string_delete call.
1839 (demangle_qualified): Add missing string_delete call.
1840 (do_type): Remove unused variable btype. Add missing string_delete
1841 call. Call string_delete instead of string_clear.
1842 (demangle_fund_type): Move variable btype inside of the switch
1843 statement. Add missing string_delete call.
1844 (do_arg): Call string_delete instead of string_clear. Remove extra
1846 (demangle_nested_args): Free work->previous_argument.
1848 2003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1850 * acconfig.h: New file. Add uintptr_t.
1851 * config.in: Regenerated.
1853 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
1855 * libiberty.texi: Update to GFDL 1.2.
1857 2003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1859 * Makefile.in (libiberty_topdir): New subst.
1860 (mkinstalldirs): Redefine in terms of the above.
1861 * configure.in: AC_SUBST it.
1862 * configure: Regenerate.
1864 2003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1866 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
1867 (info-subdir, install-info-subdir, clean-info-subdir)
1868 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
1869 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
1870 Pass $(FLAGS_TO_PASS).
1872 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1874 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
1875 /`$$CC -print-multi-os-directory`.
1877 2003-01-26 Daniel Jacobowitz <drow@mvista.com>
1879 * hashtab.c (htab_create_alloc_ex): New function.
1880 (hatab_set_functions_ex): New function.
1881 (htab_delete, htab_expand): Support alternate allocation functions.
1883 2003-01-24 Christopher Faylor <cgf@redhat.com>
1885 * configure.in: Remove special pex-cygwin consideration.
1886 * configure: Regenerate.
1887 * pex-cygwin.c: Remove.
1888 * Makefile.in: Remove pex-cygwin.[co] lines.
1890 2003-01-24 Zack Weinberg <zack@codesourcery.com>
1892 * Makefile.in (CFILES): Add pex-*.c.
1893 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
1894 (CONFIGURED_OFILES): Add pex-*.o.
1895 (TEXIFILES): Add pexecute.txh.
1896 (pexecute.o): Delete rule.
1897 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
1898 pex-unix.o, pex-win32.o): New rules.
1899 * configure.in: Change AC_INIT argument to xmalloc.c.
1900 Compute appropriate pexecute implementation and substitute it
1903 * pexecute.c: Split up into...
1904 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
1905 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
1908 * functions.texi: Regenerate.
1909 * configure: Regenerate.
1911 2003-01-20 Josef Zlomek <zlomekj@suse.cz>
1913 * hashtab.c (htab_expand): Fix allocation of new entries.
1915 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1917 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
1919 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
1920 mkinstalldirs command.
1922 2002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
1924 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
1925 Define for hosts with HOST_EXECUTABLE_SUFFIX.
1927 2002-11-24 Nick Clifton <nickc@redhat.com>
1929 * make-relative-prefix.c (make_relative_prefix): Ensure return
1930 string is empty before using strcat to construct it.
1932 2002-11-22 Daniel Jacobowitz <drow@mvista.com>
1934 * Makefile.in: Add make-relative-prefix.c.
1935 * make-relative-prefix.c: New file.
1936 * functions.texi: Rebuilt.
1938 2002-11-16 Jakub Jelinek <jakub@redhat.com>
1940 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
1941 used with arguments in traditional C' warnings.
1943 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1945 * config.table: Use mh-s390pic for s390x too.
1947 2002-10-06 Andreas Jaeger <aj@suse.de>
1949 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
1950 variable and of strict-aliasing warning.
1951 (grow_vect): Use char as first parameter.
1953 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1955 * Makefile.in (all): Fix multilib parallel build.
1957 2002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
1959 * cp-demangle.c (demangling_new): Cast 0 to enum.
1960 (demangle_char): Cast return of strdup to char *.
1961 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
1962 (is_gnu_v3_mangled_dtor): Likewise.
1963 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
1964 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
1965 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
1966 * md5.c (md5_process_bytes): Cast results back to const void *.
1967 (md5_process_block): Add cast to const md5_uint32 *.
1968 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
1969 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
1971 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
1973 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
1975 2002-09-19 Nick Clifton <nickc@redhat.com>
1977 * README: Update email addresses for bugs and patches.
1979 2002-09-10 Mike Stump <mrs@apple.com>
1981 * splay-tree.c (splay_tree_successor): Fix comments.
1983 2002-09-11 Zack Weinberg <zack@codesourcery.com>
1985 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
1986 * testsuite/Makefile.in: Adjust for test-demangle.
1987 * testsuite/regress-demangle: Deleted.
1988 * testsuite/test-demangle.c: New file.
1989 * testsuite/demangle-expected: Change \$ to $ throughout, now that
1990 this file is not being read by a shell script.
1992 2002-09-05 Roger Sayle <roger@eyesopen.com>
1994 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
1996 2002-08-07 DJ Delorie <dj@redhat.com>
1998 * regex.c (re_error_msgid): Just use a simple array of strings.
1999 (re_compile_pattern): Compensate.
2000 (re_comp): Likewise.
2001 (re_comp): Likewise.
2002 (regerror): Likewise.
2004 2002-07-29 Neil Booth <neil@daikokuya.co.uk>
2006 * cplus-dem.c (PREPEND_BLANK): Remove.
2008 2002-07-10 Jason Merrill <jason@redhat.com>
2010 * cp-demangle.c (demangle_identifier): Support extended Unicode
2013 2002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2015 * cp-demangle.c (demangle_v3_with_details): Wrap in
2016 !defined IN_GLIBCPP_V3.
2018 2002-07-01 Mark Mitchell <mark@codesourcery.com>
2020 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
2021 Set it for the "st" operator.
2022 (demangle_expression): Handle expressions with types as arguments.
2024 2002-06-30 Douglas Rupp <rupp@gnat.com>
2026 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
2027 * Makefile.in (OUTPUT_OPTION): Use.
2029 2002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
2031 * Makefile.in (install_to_libdir): Add $(DESTDIR).
2032 (install_to_tooldir): Likewise.
2034 2002-06-17 Douglas Rupp <rupp@gnat.com>
2036 * lbasename.c: Add 2002 to copyright.
2037 (IS_DIR_SEPARATOR): Remove VMS junk.
2039 2002-06-05 Geoffrey Keating <geoffk@redhat.com>
2041 * hashtab.c (htab_create): New stub function for backward
2043 (htab_try_create): Likewise.
2045 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
2047 * hashtab.c (htab_create): Delete.
2048 (htab_try_create): Delete.
2049 (htab_create_alloc): New.
2050 (htab_delete): Support user-specified memory allocation.
2051 (htab_expand): Likewise.
2053 2002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
2055 * configure.in: Fix typo in the code checking for sys_errlist.
2056 * configure: Regenerated.
2058 2002-05-13 Andreas Schwab <schwab@suse.de>
2060 * config.table: Use mh-x86pic also for x86-64.
2062 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2064 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2065 script entry, and set LD to it when configuring multilibs.
2066 * configure: Rebuilt.
2068 2002-05-07 Mark Mitchell <mark@codesourcery.com>
2070 * configure.in (AC_TYPE_PID_T): Use it.
2071 * configure: Regenerated.
2072 * getruntime.c: Include <sys/types.h>.
2073 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
2075 2002-04-09 Richard Henderson <rth@redhat.com>
2077 * hashtab.c (higher_prime_number): Use 7 as minimum.
2078 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
2079 (htab_find_slot_with_hash): Likewise.
2081 2002-04-01 Phil Edwards <pme@gcc.gnu.org>
2083 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
2084 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
2085 not compile if IN_GLIBCPP_V3 defined.
2086 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
2088 2002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2090 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
2093 2002-03-27 DJ Delorie <dj@redhat.com>
2095 * hex.c: Add documentation.
2096 (_hex_value): Provide non-ASCII empty table.
2097 (hex_init): Initialize the non-ASCII table.
2098 * functions.texi: Regenerate.
2100 2002-03-27 Mark Mitchell <mark@codesourcery.com>
2102 * dyn-string.c: Add libgcc exception to copyright notice.
2104 2002-03-26 H.J. Lu (hjl@gnu.org)
2106 * config.table: Support --with-build-subdir.
2107 * configure.in: Likewise.
2108 * configure: Rebuild.
2110 2002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
2112 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
2115 2002-03-12 Mark Mitchell <mark@codesourcery.com>
2117 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
2120 2002-03-11 Douglas B Rupp <rupp@gnat.com>
2122 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
2124 2002-03-06 Jim Blandy <jimb@redhat.com>
2126 * splay-tree.c (splay_tree_xmalloc_allocate,
2127 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
2128 prototyped definitions. Mark `data' arguments as unused.
2130 2002-03-06 Andrew Cagney <ac131313@redhat.com>
2132 * floatformat.c (floatformat_arm_ext_big): Delete definition.
2134 2002-03-04 Phil Edwards <pme@gcc.gnu.org>
2136 * configure.in: Add --enable-install-libiberty option.
2137 * Makefile.in (INSTALLED_HEADERS): New variable.
2138 (install_to_libdir): Possibly also copy headers.
2139 * configure: Regenerated.
2141 2002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
2143 * xmalloc.c (xmalloc_fail): Clarify error message further.
2145 2002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
2147 * xmalloc.c (xmalloc_fail): Clarify error message.
2149 2002-02-22 Jim Blandy <jimb@redhat.com>
2151 * splay-tree.c (splay_tree_xmalloc_allocate,
2152 splay_tree_xmalloc_deallocate): New functions.
2153 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
2154 above functions and a dummy data pointer.
2155 (splay_tree_new_with_allocator): New function.
2156 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
2157 splay_tree_remove): Use the splay tree's allocation and
2158 deallocation functions.
2160 2002-02-19 Scott Snyder <snyder@fnal.gov>
2162 * testsuite/demangle-expected: Add test case for infinite loop in
2164 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
2165 if do_type() doesn't make any progress --- prevents an infinite
2168 2002-02-18 Carlo Wood <carlo@gnu.org>
2171 * cplus-dem.c (demangle_integral_value): Accept multi-digit
2172 numbers that do not start with an underscore; This is needed
2173 for integer template parameters. This doesn't break anything
2174 because multi-digit numbers are never followed by a digit.
2175 * testsuite/demangle-expected: Corrected all mangled test
2176 cases with multi-digit template parameters: g++ 2.95.x does
2177 not generate underscores around these parameters.
2179 2002-02-05 Jason Merrill <jason@redhat.com>
2181 * cplus-dem.c (flags): Add DMGL_VERBOSE
2182 (cplus_demangle_v3_p): Remove.
2183 (demangle_it): Add DMGL_TYPES to passed flags.
2184 * cp-demangle.c (cplus_demangle_v3_all): Remove.
2185 (cplus_demangle_v3_type): Remove.
2186 (cplus_demangle_v3): Add options parm.
2188 2002-02-02 H.J. Lu (hjl@gnu.org)
2190 * cp-demangle.c (cp_demangle_type): Do not protect with
2192 (cplus_demangle_v3_all): New.
2193 (cplus_demangle_v3): Call cplus_demangle_v3_all.
2194 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
2196 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
2197 Initialized to cplus_demangle_v3.
2198 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
2199 of cplus_demangle_v3.
2200 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
2201 command line symbol.
2203 * testsuite/regress-demangle: Pass the mangled name at the
2206 2002-02-01 H.J. Lu <hjl@gnu.org>
2208 * cp-demangle.c (cp_demangle_type): Call demangling_new with
2211 2002-01-31 Phil Edwards <pme@gcc.gnu.org>
2213 * cp-demangle.c: Revert yesterday's change.
2215 2002-01-31 Adam Megacz <adam@xwt.org>
2217 * gcc/libiberty/configure.in: Treat mingw the same as cywin
2218 wrt HAVE_SYS_ERRLIST.
2220 2002-01-30 Phil Edwards <pme@gcc.gnu.org>
2222 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
2223 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
2225 * testsuite/demangle-expected: New gnu-v3 test.
2227 2002-01-22 Momchil Velikov <velco@fadata.bg>
2229 * configure.in (variable detection): Use arrays of unspecified
2230 size instead of plain integers.
2232 2002-01-18 DJ Delorie <dj@redhat.com>
2234 * Makefile.in (TESTLIB): New. This library is for future
2236 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
2237 break down by letter.
2238 (REQUIRED_OFILES): List long-to-compile files first.
2239 (maint-deps): New, target for updating dependencies.
2240 (dependencies): Update.
2241 * maint-tool: Add dependency-generating option.
2242 * configure.in: Check for _doprnt even if we're not providing it.
2243 * configure: Regenerate.
2245 * _doprnt.c: Modifications to allow compiling on any platform.
2246 * copysign.c: Likewise.
2247 * putenv.c: Likewise.
2248 * setenv.c: Likewise.
2249 * vsprintf.c: Likewise.
2251 2002-01-15 Douglas B Rupp <rupp@gnat.com>
2253 * mkstemps.c (mkstemps): On VMS, open temp file with option
2254 that causes it to be deleted when closed.
2256 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2258 * cp-demangle.c (long_options): Const-ify.
2259 * cplus-dem.c (long_options): Likewise.
2261 * cplus-dem.c (mystrstr): Delete. All callers changed to use
2264 2001-12-31 Ira Ruben <ira@apple.com>
2266 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
2267 * configure: Regenerated.
2269 2001-12-24 Douglas B. Rupp <rupp@gnat.com>
2271 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
2272 * configure: Regenerated.
2274 2001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
2277 * cplus-dem.c (consume_count): Treat negative count as an error.
2278 * testsuite/demangle-expected: Added testcase.
2280 Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
2282 * configure.in: Hardcode that vfork works on VMS host.
2283 * configure: Regenerated.
2285 2001-12-06 Richard Henderson <rth@redhat.com>
2287 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
2288 (cplus_demangle): Support no_demangling.
2290 2001-11-27 Zack Weinberg <zack@codesourcery.com>
2292 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
2293 in libiberty context. Fix typo in leading comment.
2294 * configure.in: Fix various AC_DEFINEs so autoheader works.
2295 If any of vprintf, vsprintf, vfprintf is missing from libc,
2296 then AC_REPLACE_FUNCS(_doprnt).
2298 2001-11-26 DJ Delorie <dj@redhat.com>
2299 Daniel Jacobowitz <drow@mvista.com>
2301 * Makefile.in (stamp-h): Depend on Makefile for proper
2303 (*-subdir): Depend on config.h for proper serialization.
2305 2001-11-26 DJ Delorie <dj@redhat.com>
2307 * configure.in: Check for alloca.h (for regex.c and putenv.c).
2308 * configure: Regenerate.
2309 * config.h: Add HAVE_ALLOCA_H.
2311 2001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2313 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
2314 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
2317 Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
2319 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
2320 * configure.in (HAVE_UINTPTR_T): Test for system defining
2321 uintptr_t and define HAVE_UINTPTR_T appropriately.
2322 * regex.c (uintptr_t): Do not provide a definition if the
2323 system provided one.
2325 * regex.c (PREFIX): Provide an alternate definition for
2326 non-ANSI/ISO compilers.
2327 (ARG_PREFIX): Likewise.
2329 2001-11-12 Jim Meyering <meyering@lucent.com>
2331 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
2332 this code would end up calling gettext even in packages built
2334 * getopt.c (_): Likewise.
2335 * regex.c (_): Likewise.
2337 2001-11-03 Alan Modra <amodra@bigpond.net.au>
2339 * configure.in: Cope with missing makeinfo.
2340 * configure: Regenerate.
2342 2001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2344 * hex.c (hex_init): Provide empty stub.
2346 * hex.c (hex_init): Delete.
2347 (_hex_value): Const-ify and initialize at compile-time.
2349 2001-10-19 H.J. Lu <hjl@gnu.org>
2351 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
2354 2001-10-17 DJ Delorie <dj@redhat.com>
2356 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
2357 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
2358 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
2359 Improve manual formatting.
2360 * functions.texi: Regenerate.
2362 2001-10-15 DJ Delorie <dj@redhat.com>
2364 * Makefile.in (TEXIFILES): Add fnmatch.txh.
2366 maint-tool: Add "undoc" tool.
2367 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
2368 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
2369 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
2370 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
2373 * functions.texi: Regenerate.
2375 2001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
2377 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
2378 * strtod.c: Use "ISO C" instead of "ANSI C".
2379 * functions.texi: Regenerate.
2381 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
2383 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
2384 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
2385 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
2386 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
2387 spelling. Give names to function arguments in documentation. Use
2388 (void) prototypes in documentation.
2389 * functions.texi: Regenerate.
2391 2001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2393 * argv.c (buildargv, tests, main): Const-ify.
2394 * cp-demangle.c (operator_code): Likewise.
2395 * cplus-dem.c (optable, libiberty_demanglers,
2396 cplus_demangle_set_style, cplus_demangle_name_to_style,
2397 print_demangler_list): Likewise.
2398 * hashtab.c (higher_prime_number): Likewise.
2399 * strcasecmp.c (charmap): Likewise.
2400 * strerror.c (error_info, strerror, main): Likewise.
2401 * strncasecmp.c (charmap): Likewise.
2402 * strsignal.c (signal_info): Likewise.
2404 2001-09-29 DJ Delorie <dj@redhat.com>
2406 * configure: Regenerate.
2408 2001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2410 * concat.c: Include stdlib.h.
2412 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2414 * libiberty.texi: (Top level): Add syncodeindex pg. Add
2415 @dircategory and @direntry directives. Add @finalout.
2416 (many nodes): Lose the next,prev,up pointers on the @nide line.
2417 (Using, Supplemental Functions, Replacement Functions): Fix
2419 (Functions): Move around, to allow makeinfo to build the manual
2420 without next,prev,up pointers in thye node lines.
2421 (Licenses): Fix typos.
2423 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
2424 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
2425 * functions.texi: Regenerate.
2427 * copying-lib.texi: Lose the next,prev,up pointers on the @node
2430 2001-09-27 DJ Delorie <dj@redhat.com>
2432 * configure.in: Don't use in-tree texinfo, because libiberty must
2433 be built before it. Check for makeinfo version 4 or higher.
2434 * functions.texi: Regenerate.
2436 2001-09-20 DJ Delorie <dj@redhat.com>
2437 Phil Edwards <pedwards@disaster.jaj.com>
2439 * configure.in (MAKEINFO, PERL): Detect these.
2440 (--enable-maintainer-mode): Add.
2441 * configure: Regenerate.
2442 * Makefile.in (MAKEINFO, PERL): Define.
2443 (libiberty.info, libiberty.dvi, libiberty.html): New.
2444 (CFILES): Add bsearch.c.
2445 (CONFIGURED_OFILES): New, list of objects configure might add.
2446 (maint-missing, maint-buildall): New, for maintainers only.
2447 (clean, mostlyclean): Add info/dvi/html files.
2448 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
2449 * gather-docs: New, for maintainers.
2450 * maint-tool: New, for maintainers.
2451 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
2452 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
2453 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
2454 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
2455 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
2456 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
2457 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
2458 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
2461 2001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2463 * concat.c (reconcat): Fix for traditional C.
2465 2001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2467 * concat.c (reconcat): New function.
2469 2001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2471 * concat.c (vconcat_length, vconcat_copy, concat_length,
2472 concat_copy, concat_copy2): New functions.
2473 (concat): Use vconcat_length/vconcat_copy.
2475 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
2478 2001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2480 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
2481 VA_FIXEDARG & VA_CLOSE.
2483 * vasprintf.c: Check HAVE_STRING_H when including string.h.
2484 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
2485 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
2487 2001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2489 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
2491 2001-08-23 Ulrich Drepper <drepper@redhat.com>
2493 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
2495 2001-08-23 Ulrich Drepper <drepper@redhat.com>
2497 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2499 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2500 wcslen, and __wcscoll instead of wcscoll.
2502 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2504 * fibheap.c (fibheap_init, fibnode_init): Remove.
2505 (fibheap_new, fibnode_new): Use xcalloc to allocate and
2507 (fibheap_insert): Remove check for node allocation failure.
2509 2001-08-21 Richard Henderson <rth@redhat.com>
2511 * Makefile.in (fibheap.o): Depend on config.h.
2512 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
2513 functions for inlining.
2515 Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
2517 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
2519 * configure: Regenerate.
2521 2001-08-20 Andrew Cagney <ac131313@redhat.com>
2523 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
2524 HARRIS_FLOAT_FORMAT.
2525 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
2526 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
2527 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
2528 (floatformat_m88110_harris_ext): New float formats.
2530 2001-08-20 Daniel Berlin <dan@cgsoftware.com>
2532 * fibheap.c: New file. Fibonacci heap.
2534 * Makefile.in (CFILES): Add fibheap.c.
2535 (REQUIRED_OFILES): Add fibheap.o.
2536 (fibheap.o): Add dependencies for fibheap.o.
2538 2001-08-17 Christopher Faylor <cgf@cygnus.com>
2540 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
2541 * configure: Regenerate.
2543 2001-08-16 Richard Henderson <rth@redhat.com>
2545 * hashtab.c (htab_hash_string): New.
2547 2001-08-13 Andrew Cagney <ac131313@redhat.com>
2549 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
2552 2001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
2554 * regex.c (wcs_regex_compile): Use appropriate string
2555 to compare with collating element.
2556 Fix the padding for the alignment.
2558 2001-08-10 Andrew Cagney <ac131313@redhat.com>
2560 * lbasename.c (lbasename): Change function definition to return a
2563 2001-08-07 Jason Merrill <jason_merrill@redhat.com>
2565 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
2568 2001-08-03 Richard Henderson <rth@redhat.com>
2570 * Makefile.in (concat.o): Depend on config.h.
2572 2001-07-30 Andreas Jaeger <aj@suse.de>
2574 * concat.c: Include "config.h".
2576 2001-07-30 Andreas Jaeger <aj@suse.de>
2578 * regex.c: Declare wcs functions only if compiling with
2580 Don't use #elif for traditional C.
2582 2001-07-23 Ulrich Drepper <drepper@redhat.com>
2584 * regex.c: Revamp memory allocation for WCHAR functions to
2585 not use too much stack.
2587 2001-07-30 Andreas Jaeger <aj@suse.de>
2589 * regex.c: Declare wcs functions only if compiling with
2591 Don't use #elif for traditional C.
2593 2001-07-25 Daniel Jacobowitz <drow@mvista.com>
2595 * Makefile.in (regex.o): Add dependency on config.h.
2597 2001-07-18 Andreas Schwab <schwab@suse.de>
2599 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
2600 underscore character.
2602 2001-07-18 Ulrich Drepper <drepper@redhat.com>
2604 * regex.c: Limit string length printed in debug messages to 100
2607 2001-07-18 Andreas Jaeger <aj@suse.de>
2609 * regex.c: Place under LGPL version 2.1.
2611 2001-07-10 Jeff Johnston <jjohnstn@redhat.com>
2613 * Makefile.in: Add support for regex code.
2614 * regex.c: New file.
2616 2001-07-05 Mark Klein <mklein@dis.com>
2618 * Makefile.in: Add ffs.c dependency.
2619 * configure.in: Add ffs.c.
2622 2001-06-18 Richard Henderson <rth@redhat.com>
2624 * concat.c: Include <sys/types.h>.
2626 2001-06-11 Loren J. Rittle <ljrittle@acm.org>
2629 * strerror.c (sys_nerr): Hide the OS header version.
2630 * strsignal.c (sys_nsig): Likewise.
2632 2001-06-10 Richard Henderson <rth@redhat.com>
2634 * concat.c: Include string.h. Fix int vs size_t usage.
2635 Simplify the iteration loops. Use memcpy.
2637 2001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2639 * partition.c: Fix misspelling of `implementation'.
2641 2001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2643 * md5.c (md5_init_ctx): Declare constants as unsigned.
2644 (md5_process_block): Likewise.
2646 2001-05-07 Zack Weinberg <zackw@stanford.edu>
2648 * cp-demangle.c (demangle_v3_with_details,
2649 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
2650 function definition.
2651 * ternary.c: Use K+R style function definitions. Use PTR, not
2652 void *. Make arguments constant where possible.
2654 2001-05-07 Mark Mitchell <mark@codesourcery.com>
2656 * splay-tree.h (splay_tree_max): New function.
2657 (splay_tree_min): Likewise.
2659 2001-04-15 Daniel Berlin <dan@cgsoftware.com>
2661 * ternary.c: New file - Ternary search tree implementation.
2663 * Makefile.in: Add ternary.o, and ternary.c dependencies.
2665 2001-04-03 Zack Weinberg <zackw@stanford.edu>
2667 * make-temp-file.c (try): Inline.
2669 2001-02-28 Richard Henderson <rth@redhat.com>
2671 * Makefile.in (make-temp-file.o): Depend on config.h.
2673 2001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2675 * memchr.c (memchr): Adjust condition to avoid infinite loop.
2677 2001-03-23 Jakub Jelinek <jakub@redhat.com>
2679 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
2680 `_' not followed by a digit is invalid.
2682 2001-03-22 Jim Blandy <jimb@redhat.com>
2684 * cp-demangle.c (string_list_delete): Use dyn_string_delete
2685 instead of free, to free the contents as well as the string
2688 2001-03-21 Zack Weinberg <zackw@stanford.edu>
2690 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
2691 Don't default P_tmpdir to anything. Try /var/tmp before
2694 2001-03-20 Zack Weinberg <zackw@stanford.edu>
2696 * choose-temp.c: Split off make_temp_file, and the code
2697 duplicated between it and choose_temp_base, into...
2698 * make-temp-file.c: ... here; new file.
2700 * Makefile.in (CFILES): Add make-temp-file.c.
2701 (REQUIRED_OFILES): Add make-temp-file.o.
2703 2001-03-20 Jim Blandy <jimb@redhat.com>
2705 * cp-demangle.c (struct demangling_def): New fields:
2706 is_constructor and is_destructor.
2707 (demangling_new): Initialize them.
2708 (demangle_ctor_dtor_name): Set them, if we detect a constructor
2710 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
2711 is_gnu_v3_mangled_dtor): New functions.
2713 2001-03-20 Jason Merrill <jason@redhat.com>
2715 * cplus-dem.c (main): Skip initial $.
2717 2001-03-15 Michael Meissner <meissner@redhat.com>
2719 * hashtab.c (higher_prime_number): Silence warning that 4294967291
2720 might be a signed integer under pre-ISO C systems.
2722 2001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
2723 John David Anglin <dave@hiauly1.hia.nrc.ca>
2725 * libiberty/lbasename.c: New file.
2726 * libiberty/Makefile.in: Update for lbasename.
2728 2001-03-06 Zack Weinberg <zackw@stanford.edu>
2730 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
2731 * configure.in: Replace all alloca logic with a simple use of
2732 the above new macro.
2733 * config.table: Kill *-*-beos* entry.
2734 * config/mh-beos: Delete.
2735 * configure, config.in: Regenerate.
2737 * Makefile.in (ALLOCA, HFILES): Kill.
2738 (REQUIRED_OFILES): Add alloca.o.
2739 (alloca.o): Depend on libiberty.h.
2740 (argv.o): Don't depend on alloca-conf.h.
2741 * alloca-conf.h: Delete.
2742 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
2743 blocks. Provide the C alloca unconditionally. Use PTR where
2744 appropriate. Make i00afunc static.
2745 * argv.c: Don't include alloca-conf.h.
2747 2001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2749 * cplus-dem.c (main): Cast enum style to int.
2751 2001-02-16 Loren J. Rittle <ljrittle@acm.org>
2753 * cplus-dem.c (main): Initialize style.
2755 2001-02-02 Phil Edwards <pme@sources.redhat.com>
2757 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
2759 2001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
2761 Add support for Java demangling under the v3 ABI:
2762 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
2763 (struct demangling_def): Add `style' field.
2764 (demangling_new): New parameter `style'. Set it in demangling_t.
2765 (demangle_prefix): Use NAMESPACE_SEPARATOR.
2766 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
2767 (cp_demangle): New parameter `style'. Pass it to demangling_new().
2768 (main): Call cp_demangle with extra parameter.
2769 (java_demangle_v3): New function.
2770 (java_builtin_type_names): New. Table of primitive type names used
2771 for Java demangling.
2772 (demangle_builtin_type): Look up in java_builtin_type_names if doing
2774 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
2776 (long_options): Remove obsolete `java' option.
2777 (main): Remove explicit handling of `java' option. Instead, pass style
2778 parameter in cplus_demangle flags as gdb does.
2779 * testsuite/demangle.expected: Add some Java test cases.
2781 2000-12-29 DJ Delorie <dj@redhat.com>
2783 * fnmatch.c: Make the note about the origins of this file more
2784 accurate, at least until we can sync with glibc.
2790 2000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2792 * bsearch.c: New file.
2793 * configure.in (funcs): Add bsearch.
2794 (AC_CHECK_FUNCS): Likewise.
2795 * configure, config.in: Regenerate.
2797 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2799 * safe-ctype.c: #include "ansidecl.h".
2800 * strtod.c: Likewise.
2802 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2804 * strtoul.c: Include safe-ctype.h, not ctype.h.
2806 2000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
2808 * safe-ctype.c: New file.
2809 * Makefile.in (CFILES): Add safe-ctype.c.
2810 (REQUIRED_OFILES): Add safe-ctype.o.
2812 * argv.c: Define ISBLANK and use it, not isspace.
2813 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
2814 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
2815 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
2816 before calling TOLOWER(c)/TOUPPER(c).
2818 2000-12-07 Mike Stump <mrs@wrs.com>
2820 * Makefile.in (distclean): When cleaning, remove testsuite.
2822 2000-12-05 Jason Merrill <jason@redhat.com>
2824 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
2825 name before allocating the dyn_string.
2827 2000-12-04 Jason Merrill <jason@redhat.com>
2829 * cp-demangle.c: s/new_abi/v3/.
2830 * cplus-dem.c: Likewise.
2831 (current_demangling_style): Now auto_demangling.
2832 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
2833 (main): Use standard symbol chars for auto_demangling.
2835 2000-11-26 Mark Mitchell <mark@codesourcery.com>
2837 * hashtab.c (higher_prime_number): Use a table, rather than a
2838 seive, to find the next prime.
2840 2000-11-22 H.J. Lu <hjl@gnu.org>
2842 * cplus-dem.c (main): Handle gnat_demangling.
2844 2000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2846 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
2847 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
2848 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
2849 argument form of AC_DEFINE in dummy definitions block. Use
2850 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
2851 in dummy block. Preload cache variables instead of bypassing
2852 tests, where possible.
2853 * acconfig.h: Removed.
2855 * xmalloc.c (xmalloc_failed): New function, does error
2856 reporting on failed allocation.
2857 (xmalloc, xcalloc, xrealloc): Use it.
2859 2000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
2861 * cplus-dem.c (cplus_demangle): Fix formatting.
2863 (ada_demangle): Ditto.
2864 (internal_cplus_demangle): Ditto.
2867 2000-11-21 H.J. Lu <hjl@gnu.org>
2869 * cplus-dem.c (main): Handle java_demangling.
2871 2000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2873 * cplus-dem.c (grow_vect): Prototype.
2874 (ada_demangle): Cast the arg of ctype macros to unsigned char.
2876 2000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
2878 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
2881 2000-11-15 Kenneth Block <kenneth.block@compaq.com>
2883 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
2886 2000-11-15 Kenneth Block <kenneth.block@compaq.com>
2888 * cplus-dem.c: Add gnat demangler. Add java to demangle style
2891 2000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
2893 * hashtab.c (htab_expand): Change to return int. Use calloc or
2894 xcalloc depending on htab->return_allocation_failure. Return zero
2896 (htab_create): Update comment to cover memory allocation.
2897 (htab_try_create): New.
2898 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
2899 Update comment to cover this.
2901 2000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
2903 * hashtab.c: Change void * to PTR where necessary.
2904 (htab_create, htab_expand): Correct formatting of comment before
2907 2000-10-22 Alex Samuel <samuel@codesourcery.com>
2909 * cp-demangle.c (string_list_def): Add caret_position and comments.
2910 (result_caret_pos): New macro.
2911 (result_append_string): Rename to...
2912 (result_add_string): ... this, and insert at caret position.
2914 (result_append): Rename to...
2915 (result_add): ... this, and insert at caret position. Rename
2917 (result_append_char): Rename to...
2918 (result_add_char): ... this, and insert at caret position. Rename
2920 (result_append_space): Remove.
2921 (string_list_new): Initialize caret position.
2922 (result_add_separated_char): Use caret position.
2923 (result_get_caret): New funtion.
2924 (result_set_caret): Likewise.
2925 (result_shift_caret): Likewise.
2926 (result_previous_char_is_space): Likewise.
2927 (substitution_start): Use caret position.
2928 (substitution_add): Likewise.
2929 (demangling_new): Initialize caret position.
2930 (demangle_encoding): Use caret position.
2931 (demanglin_nested_name): Put CV qualifiers after name.
2932 (demangle_type_ptr): Use switch statement. Handle pointers to
2933 arrays. Don't use result_append_space. Use caret position.
2934 (demangle_type): Emit CV qualifiers after underlying type. Adjust
2935 call to demangle_array_type.
2936 (demangle_array_type): Add parameter to handle pointers to arrays.
2938 2000-10-01 Mark Mitchell <mark@codesourcery.com>
2940 * splay-tree.c (splay_tree_insert): Fix formatting.
2942 2000-09-16 Mark Mitchell <mark@codesourcery.com>
2944 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
2946 2000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2948 * splay-tree.c: #include <stdio.h>.
2950 2000-09-14 Hans-Peter Nilsson <hp@axis.com>
2952 * testsuite/demangle-expected: Add two tests for anonymous
2954 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
2956 2000-09-10 Mark Mitchell <mark@codesourcery.com>
2958 * splay-tree.c (splay_tree_predecessor): New function.
2959 (splay_tree_successor): Likewise.
2961 2000-09-10 Hans-Peter Nilsson <hp@axis.com>
2963 * testsuite/demangle-expected: Add four tests for type_info
2965 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
2966 for a non-template non-qualified type_info function or node.
2968 2000-09-08 Alex Samuel <samuel@codesourcery.com>
2970 * cp-demangle.c: Fix copyright banner.
2972 2000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2974 * md5.c: #include "ansidecl.h".
2976 2000-09-06 Alex Samuel <samuel@codesourcery.com>
2978 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
2979 (demangle_type): Handle substitution candidates correctly in the
2980 face of special substitutions.
2982 2000-09-05 Alex Samuel <samuel@codesourcery.com>
2984 * cp-demangle.c (demangle_encoding): Rename variable.
2985 (demangle_name): Rename parameter. Handle return type
2987 (demangle_nested_name): Rename parameter.
2988 (demangle_prefix): Likewise. Change return type suppression.
2989 (demangle_unqualified_name): Add parameter. Flag constructors and
2990 conversion operators.
2991 (demangle_special_name): Fix comment.
2992 (demangle_type): Rename variable.
2993 (demangle_bare_function_type): Check for missing return type and
2995 (demangle_class_enum_type): Rename parameter.
2996 (demangle_discriminator): Fix misspelling in comment.
2998 2000-08-31 DJ Delorie <dj@redhat.com>
3000 * configure.in (Cygwin): special case cygwin only when we're
3001 building cygwin, not when we're hosting cygwin.
3003 2000-09-04 Alex Samuel <samuel@codesourcery.com>
3005 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
3008 2000-09-04 Alex Samuel <samuel@codesourcery.com>
3010 * cp-demangle.c (demangle_type_ptr): Increment position past
3011 pointer and reference characters.
3013 2000-09-04 Alex Samuel <samuel@codesourcery.com>
3015 * cp-demangle.c (demangle_nv_offset): New function.
3016 (demangle_v_offset): Likewise.
3017 (demangle_call_offset): Likewise.
3018 (demangle_special_name): Update thunk demangling to comply with
3021 2000-09-03 Alex Samuel <samuel@codesourcery.com>
3023 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
3024 (substitution_def): Remove template_parm_number.
3025 (NOT_TEMPLATE_PARM): Remove.
3026 (result_insert_string): New macro.
3027 (result_insert): Likewise.
3028 (result_insert_char): Likewise.
3029 (substitution_add): Remove last parameter. Don't store template
3031 (BFT_NO_RETURN_TYPE): Define as NULL.
3032 (demangle_encoding): Adjust call to demangle_bare_function_type.
3033 (demangle_name): Adjust substitution. Adjust call to
3035 (demangle_prefix): Adjust call to substitution_add.
3036 (demangle_identifier): Handle anonymous namespaces.
3037 (demangle_operator_name): Change demangling of vendor-extended
3038 operator to match ABI changes.
3039 (demangle_type_ptr): Change parameters. Make recursive. Handle
3041 (demangle_type): Adjust calls to demangle_template_param,
3042 substitution_add, and demangle_type_ptr. Fix substitution of
3044 (demangle_function_type): Change parameter to a pointer.
3045 (demangle_bare_function_type): Likewise. Adjust insertion point.
3046 (demangle_template_param): Remove last parameter.
3047 (demangle_expr_primary): Remove unused variable. Adjust call to
3048 demangle_template_param.
3049 (is_mangled_char): Accept `$' and `.'.
3050 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
3051 * dyn-string.c (dyn_string_insert_char): New function.
3053 2000-08-31 Hans-Peter Nilsson <hp@axis.com>
3055 * testsuite/demangle-expected: Add nine tests for
3056 underscore-after-number followed by five tests for name-signature
3059 2000-08-28 Richard Henderson <rth@cygnus.com>
3061 * Makefile.in (md5.o): Depend on config.h.
3063 2000-08-28 Jason Merrill <jason@redhat.com>
3065 * Makefile.in (REQUIRED_OFILES): Add md5.o.
3066 (CFILES): Add md5.c.
3069 2000-08-27 Alex Samuel <samuel@codesourcery.com>
3071 * cp-demangle.c (demangle_name): Initialize template_p in local
3072 name case. Don't re-add substitutions as candidates.
3073 (demangle_nested_name): Use <unqualified-name>.
3074 (demangle_prefix): Likewise. Don't add template names as
3075 substitution candidates twice, or re-add a substitution or the
3076 last prefix component.
3077 (demangle_local_name): Adjust output format.
3079 2000-08-25 Alex Samuel <samuel@codesourcery.com>
3081 * cp-demangle.c (result_add_separated_char): Change parameter to
3083 (substitution_add): Don't check for duplicates. Check if
3084 previously allocated size is zero.
3085 (demangle_name): Remove duplicate check for std substitution.
3086 Clear template flag appropriately.
3087 (demangle_prefix): Remove argument to demangle_substitution.
3088 Don't check that template flag is already set.
3089 (demangle_operator_name): Add pt operator.
3090 (demangle_type): Don't treat r as built-in type. Remove argument
3091 to demangle_substitution. Fix substitution candidate mechanics.
3092 Handle <template-template-parm>s. Improve comments.
3093 (demangle_template_param): Don't handle template arg lists here.
3094 (demangle_substitution): Remove parameter.
3095 (print_usage): Remove extra fprintf option.
3097 2000-08-24 Greg McGary <greg@mcgary.org>
3099 * libiberty/random.c (end_ptr): Revert previous change.
3101 2000-08-24 Greg McGary <greg@mcgary.org>
3103 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
3104 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
3105 * libiberty/random.c (end_ptr): Likewise.
3107 2000-08-23 Alex Samuel <samuel@codesourcery.com>
3109 * cp-demangle.c (result_close_template_list): Remove function.
3110 (result_add_separated_char): New function.
3111 (result_open_template_list): New macro.
3112 (result_close_template_list): Likewise.
3113 (demangle_prefix): Don't set template_p if the
3114 prefix ends with a ctor name.
3115 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
3116 (demangle_type): Check for template args after substitution.
3117 (demangle_template_args): Use result_open_template_list.
3119 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
3121 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
3123 2000-07-26 Dave Pitts <dpitts@cozx.com>
3125 * config/mh-openedition.h: Added -DLE370 definition.
3127 2000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
3129 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
3130 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
3131 Cast program to 'char *' in errmsg_arg assignment.
3132 (PWAIT_ERROR): Define.
3133 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
3134 to DJGPP's WIF* macros.
3136 2000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
3137 Jeff Law <law@cygnus.com>
3139 * getcwd.c: Include string.h, stdlib.h for prototypes
3141 * Makefile.in (rename.o, waitpid.o): Depend on config.h
3142 * rename.c: Include config.h, unistd.h
3143 * waitpid.c: Include config.h, sys/wait.h
3145 2000-07-24 Hans-Peter Nilsson <hp@axis.com>
3147 * cplus-dem.c (work_stuff_copy_to_from): New.
3148 (delete_non_B_K_work_stuff): New.
3149 (delete_work_stuff): New.
3150 (mop_up): Break out work_stuff partly destruction to
3151 delete_non_B_K_work_stuff.
3152 (iterate_demangle_function): New.
3153 (demangle_prefix): Call iterate_demangle_function instead of
3154 demangle_function_name. Leave handling of name-signature
3155 __-delimiters to iterate_demangle_function.
3156 (demangle_integral_value): Strip an optional
3157 following underscore cautiously. Handle negative numbers.
3159 2000-07-24 Daniel Berlin <dberlin@redhat.com>
3161 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3162 if (AUTO_DEMANGLING || GNU_DEMANGLING)
3164 2000-07-21 Alex Samuel <samuel@codesourcery.com>
3166 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
3167 allocating ctor mangling.
3168 (demangle_array_type): Handle empty and non-constant array length.
3170 2000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3171 Jeff Law <law@cygnus.com>
3173 * configure.in (AC_CHECK_HEADERS): Add time.h.
3174 (AC_HEADER_TIME): Add check.
3175 * configure, config.in: Regenerate.
3176 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
3178 * configure.in (AC_CHECK_HEADERS): Add limits.h.
3179 * configure, config.in: Regenerate.
3180 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
3181 * strtol.c, strtoul.c: #include "config.h". Portably #include
3182 <limits.h> and/or <sys/param.h>.
3183 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
3185 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
3186 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
3187 * configure, config.in: Regenerate.
3188 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
3190 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
3192 2000-07-21 Mike Stump <mrs@wrs.com>
3194 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
3195 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
3197 2000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3199 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
3201 * setenv.c (setenv): Initialize variable `ep'.
3203 * sigsetmask.c (abort): Prototype.
3205 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
3206 __STDC__ for stdarg.h include.
3207 (int_vasprintf): Prototype.
3208 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
3209 definition. Cast `global_total_width' in comparison.
3210 (main): Prototype. Return a value.
3212 * vfork.c (fork): Prototype.
3214 * xexit.c: Include config.h.
3216 2000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
3218 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
3219 and print it with %u.
3221 2000-07-17 Hans-Peter Nilsson <hp@axis.com>
3223 * testsuite/regress-demangle (failed test): Show result and
3226 2000-07-07 Andrew Haley <aph@cygnus.com>
3228 * cplus-dem.c (main): fflush() after emitting last char before
3231 2000-06-28 Alex Samuel <samuel@codesourcery.com>
3233 * cp-demangle.c (demangle_encoding): Accept no substitutions.
3234 (demangle_name): Handle <substitution> followed by
3235 <unqualified-template-name>.
3236 (demangle_type): Follow special substitutions with
3238 (demangle_subtitution): Set template_p for special substitutions.
3241 2000-06-27 Alex Samuel <samuel@codesourcery.com>
3243 * cp-demangle.c (demangle_special_name): Swap base and derived
3244 class when demangling construction vtables.
3246 2000-06-21 Alex Samuel <samuel@codesourcery.com>
3248 * cp-demangle.c: Don't include ctype.h.
3249 (IS_DIGIT): New macro.
3250 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
3251 instead of isdigit and isalpanum.
3252 (demangling_def): Make name and next const pointers.
3253 (STATUS_ALLOCATION_FAILED): New status code.
3254 (dyn_string_append_space): Handle failure in
3255 dyn_string_append_char.
3256 (int_to_dyn_string): Likewise. Change return value to status_t.
3257 (string_list_new): Handle failure of dyn_string_init.
3258 (result_close_template_list): Change return type to status_t.
3259 Handle failure in dyn_string_append.
3260 (result_push): Change return value to status_t. Handle failure in
3261 string_list_new. Handle failure of result_push throughout.
3262 (substitution_add): Change return value to status_t. Handle
3263 dyn_string failures. Handle failure of substitution_add
3265 (template_arg_list_new): Return NULL on allocation failure.
3266 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
3267 Handle error result throughout.
3268 (result_append): Likewise.
3269 (result_append_char): Likewise.
3270 (result_append_space): Likewise.
3271 (demangling_new): Make argument a const pointer. Handle
3272 allocation failures.
3273 (demangle_template_args): Handle failure in template_arg_list_new
3274 and result_close_template_list.
3275 (demangle_discriminator): Return if int_to_dyn_string fails.
3276 (cp_demangle): Likewise.
3277 (cp_demangle_type): New function.
3278 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
3279 memory allocation failure.
3281 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
3283 (dyn_string_init): Change return value to int. Handle
3284 RETURN_ON_ALLOCATION_FAILURE case.
3285 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
3286 (dyn_string_release): Delete the dyn_string.
3287 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
3288 (dyn_string_copy): Change return type to int.
3289 (dyn_string_copy_cstr): Likewise.
3290 (dyn_string_prepend): Likewise.
3291 (dyn_string_prepend_cstr): Likewise.
3292 (dyn_string_insert): Likewise.
3293 (dyn_string_insert_cstr): Likewise.
3294 (dyn_string_append): Likewise.
3295 (dyn_string_append_cstr): Likewise.
3296 (dyn_string_append_char): Likewise.
3297 (dyn_string_substring): Likewise.
3299 2000-06-09 Zack Weinberg <zack@wolery.cumb.org>
3301 * cp-demangle.c (demangle_operator_name): Add spaces before
3302 names beginning with a letter: delete, delete[], new, new[],
3304 (demangle_special_name): Handle TF <type> and TJ <type>.
3306 Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
3308 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
3310 Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
3312 * cp-demangle.c (stdio.h): File included unconditionaly.
3313 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
3314 * dyn-string.c (stdio.h): File included.
3315 * partition.c (partition_print): No `&' needed to take the address of
3318 2000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3320 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
3322 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
3324 * cp-demangle.c (demangle_char): Change parameter from char to int.
3325 (demangle_expression, demangle_expr_primary): Remove extra
3326 semi-colon in prototype.
3328 * dyn-string.c (dyn_string_append_char): Change parameter from
3331 * memcmp.c (memcmp): Constify.
3333 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
3336 * partition.c (elem_compare): Prototype. Don't cast away
3339 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
3341 2000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3343 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
3345 * cp-demangle.c: Include demangle.h.
3346 (template_arg_list_new): DeANSIfy.
3347 (cp_demangle): Make static and add prototype.
3348 (operator_code, operators): Constify.
3349 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
3351 2000-06-05 Alex Samuel <samuel@codesourcery.com>
3353 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
3355 (demangle_unqualified_name): Likewise.
3356 (demangle_number_literally): Likewise.
3357 (demangle_type): Likewise.
3358 (demangle_substitution): Likewise.
3359 (is_mangled_char): Likewise, for isalnum.
3361 2000-06-04 Alex Samuel <samuel@codesourcery.com>
3363 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
3364 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
3365 (cp-demangle.o): New dependency.
3366 (dyn-string.o): Likewise.
3368 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
3370 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
3372 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
3374 (gnu_new_abi_symbol_characters): New function.
3375 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
3377 * cp-demangle.c: New file.
3379 Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
3381 * floatformat.c: Add name to each floatformat field.
3383 Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
3385 * Makefile.in (objalloc.o): Depend on config.h
3387 2000-05-29 Zack Weinberg <zack@wolery.cumb.org>
3389 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
3391 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
3392 * objalloc.c: Include config.h. Include stdlib.h and don't
3393 declare malloc or free if HAVE_STDLIB_H.
3394 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
3395 else declare malloc without prototype. Include string.h if
3396 HAVE_STRING_H, else declare memset without prototype. Don't
3399 2000-05-23 Mike Stump <mrs@wrs.com>
3401 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
3404 2000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3406 * xmalloc.c: Include config.h for HAVE_SBRK definition.
3408 2000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
3410 * hashtab.c (hash_pointer): Delete low-order bits which are
3411 probably zero, also eliminate a warning on alpha.
3413 2000-05-15 David Edelsohn <edelsohn@gnu.org>
3415 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
3416 on $(enable_shared).
3418 2000-05-10 Jakub Jelinek <jakub@redhat.com>
3420 * config.table: Use mh-sparcpic for sparc*-*-*.
3422 2000-05-08 Nick Clifton <nickc@cygnus.com>
3424 * Makefile.in (CFILES): Add strncmp.c.
3425 (NEEDED): Add strncmp.
3427 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3429 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
3430 Cast the arguments to `islower' to `unsigned char'.
3431 (print_demangler_list): Prototype.
3433 Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
3435 * sort.c (UCHAR_MAX): Provide fallback