blob: 4ece5ab7474cf34c750fa7306a1daf7951b04d64 [file] [log] [blame]
2012-07-13 Doug Evans <>
* filename_cmp.c (filename_hash, filename_eq): New functions.
2012-06-29 Andreas Schwab <>
* copying-lib.texi (Library Copying): Don't use @heading inside
2012-05-22 Tom Tromey <>
* testsuite/demangle-expected: Add regression test.
* cp-demangle.c (d_find_pack): Return NULL for
2012-04-27 Tom Tromey <>
* dwarfnames.c: New file.
* (CFILES): Add dwarfnames.
(REQUIRED_OFILES): Add dwarfnames.
(./dwarfnames.$(objext)): New target.
2012-04-04 Tristan Gingold <>
* pex-unix.c (to_ptr32): Fix style.
2012-04-02 Tristan Gingold <>
* stack-limit.c: Includes ansidecl.h.
(stack_limit_increase): Add ATTRIBUTE_UNUSED
2012-03-20 Jason Merrill <>
* cp-demangle.c (cplus_demangle_type): Handle 'auto'.
2012-03-07 Jason Merrill <>
* cp-demangle.c (cplus_demangle_operators): Add li.
(d_unqualified_name): Handle it specially.
2012-01-26 Jakub Jelinek <>
* make-relative-prefix.c (make_relative_prefix_1): Avoid warning
about using preprocessor directives inside of macro arguments.
2012-01-22 Douglas B Rupp <>
* configure: Regenerate.
2012-01-10 Jason Merrill <>
* cp-demangle.c (d_print_comp) [DEMANGLE_COMPONENT_OPERATOR]:
Omit a trailing space in the operator name.
2012-01-06 Jason Merrill <>
PR c++/6057
PR c++/48051
PR c++/50855
PR c++/51322
* cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_NULLARY and
(d_make_comp): Likewise. Allow null right arg for
(cplus_demangle_operators): Adjust new/delete; add .*, :: and throw.
(d_template_args, d_template_arg): Handle 'J' for argument packs.
(d_exprlist): Add terminator parm.
(d_expression, d_print_comp): Handle initializer lists, nullary
expressions, prefix/suffix operators, and new.
(d_print_subexpr): Avoid parens around DEMANGLE_COMPONENT_QUAL_NAME
* testsuite/demangle-expected: Add tests.
* cp-demangle.c (cplus_demangle_type): decltype, pack expansion
and vector are substitutable.
(cplus_demangle_operators): Sort.
2012-01-04 Andreas Krebbel <>
* configure: Regenerate.
2012-01-02 Jakub Jelinek <>
* make-relative-prefix.c (make_relative_prefix_1): Avoid
stack overflow if PATH contains just a single entry and
HOST_EXECUTABLE_SUFFIX needs to be used.
PR driver/48306
* make-relative-prefix.c: Include sys/stat.h.
(make_relative_prefix_1): If access succeeds, check also stat
if nstore is a regular file.
2011-12-20 Andreas Schwab <>
* configure: Regenerate.
2011-12-20 Tristan Gingold <>
* aclocal.m4: Assume strncmp works in cross case.
* configure: Regenerate
2011-12-19 Andreas Schwab <>
* configure: Regenerate.
2011-11-07 Richard Henderson <>
Merged from transactional-memory.
* cp-demangle.c (cplus_demangle_fill_ctor): Accept
(cplus_demangle_fill_dtor): Accept gnu_v3_object_dtor_group.
(d_ctor_dtor_name): Recognize gnu_v3_object_ctor_group
and gnu_v3_object_dtor_group.
(d_make_comp, d_print_comp): Likewise.
(d_special_name): Generate them.
2011-11-04 Jason Merrill <>
PR c++/48370
* cp-demangle.c (d_special_name, d_print_comp): Handle a
discriminator number on DEMANGLE_COMPONENT_REFTEMP.
2011-11-02 Doug Evans <>
* (CFILES): Add timeval-utils.c.
(REQUIRED_OFILES): Add timeval-utils.$(objext).
(INSTALLED_HEADERS): Add timeval-utils.h.
(timeval-utils.$(objext)): Add rule.
2011-10-28 Ian Lance Taylor <>
* setproctitle.c (setproctitle): Use "GNU/Linux" in comment.
2011-10-26 Iain Sandoe <>
PR target/48108
* simple-object-mach-o.c (GNU_WRAPPER_SECTS, GNU_WRAPPER_INDEX,
(simple_object_mach_o_segment): Handle wrapper scheme.
(simple_object_mach_o_write_section_header): Allow the segment name
to be supplied.
(simple_object_mach_o_write_segment): Handle wrapper scheme. Ensure
that the top-level segment name in the load command is empty.
(simple_object_mach_o_write_to_file): Determine the number of
sections during segment output, use that in writing the header.
2011-10-10 Ian Lance Taylor <>
PR c++/48665
* cp-demangle.c (d_cv_qualifiers): If qualifiers are applied to a
function type, change them to apply to the "this" parameter.
* testsuite/demangle-expected: Add test case.
2011-09-28 Doug Evans <>
* timeval-utils.c: New file.
* argv.c (countargv): New function.
2011-09-23 Cary Coutant <>
PR 40831
* cp-demangle.c (d_make_comp): Add new component type.
(cplus_demangle_mangled_name): Check for clone suffixes.
(d_parmlist): Don't error out if we see '.'.
(d_clone_suffix): New function.
(d_print_comp): Print info for clone suffixes.
* testsuite/demangle-expected: Add new testcases.
2011-09-23 Ian Lance Taylor <>
Pierre Vittet <>
* md5.c (md5_process_bytes): Correct handling of unaligned
2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* aclocal.m4: Include ../config/picflag.m4.
* (GCC_PICFLAG): Call it.
(enable_shared): Clear PICFLAG unless shared.
* configure: Regenerate.
2011-08-12 Steve Ellcey <>
* md5.c (md5_read_ctx): Handle mis-aligned resbuf pointer.
2011-08-06 Uros Bizjak <>
* testsuite/test-expandargv.c (writeout_test): Check result of fwrite.
2011-08-01 Jason Merrill <>
PR c++/49932
* cp-demangle.c (d_prefix): Handle decltype.
* testsuite/demangle-expected: Test it.
2011-07-26 H.J. Lu <>
* testsuite/demangle-expected: Remove an extra line.
2011-07-26 Ian Lance Taylor <>
* cp-demangle.c (d_print_init): Initialize pack_index field.
(d_print_comp): Check for NULL template argument.
* testsuite/demangle-expected: Add test case.
2011-07-22 Gerald Pfeifer <>
PR target/49817
* stack-limit.c: Include <stdint.h>.
2011-07-22 Jakub Jelinek <>
PR c++/49756
* stack-limit.c: New file.
* Regenerate deps.
(CFILES): Add stack-limit.c.
(REQUIRED_OFILES): Add ./stack-limit.$(objext).
* (checkfuncs): Add getrlimit and setrlimit.
(AC_CHECK_FUNCS): Likewise.
* configure: Regenerated.
* Regenerated.
2011-07-04 Jason Merrill <>
* cp-demangle.c (d_expression): Handle 'this'.
2011-07-01 Joel Brobecker <>
* filename_cmp.c (filename_cmp, filename_ncmp): Add handling of
2011-07-01 Jan Kratochvil <>
PR debug/49408
* cp-demangle.c (d_print_comp): Suppress argument list for function
references by the '&' unary operator. Keep also already processed
variant without the argument list. Suppress argument list types for
function call used in an expression.
* testsuite/demangle-expected: Fix excessive argument list types in
`test for typed function in decltype'. New testcase for no argument
list types printed. 3 new testcases for function references by the
'&' unary operator..
2011-06-20 Jason Merrill <>
PR c++/37089
* cp-demangle.c (d_print_comp): Handle reference smashing.
* testsuite/demangle-expected: Test it.
2011-06-13 Jan Kratochvil <>
* cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>:
Suppress d_print_mod for DMGL_RET_POSTFIX.
* testsuite/demangle-expected: New testcases for --ret-postfix.
2011-06-13 Jan Kratochvil <>
* cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: Do
* testsuite/demangle-expected: New testcases for --ret-drop.
* testsuite/test-demangle.c: Document --ret-drop in a comment.
(main): New variable ret_drop, fill it, call cplus_demangle with it.
2011-06-13 Jan Kratochvil <>
* cp-demangle.c (struct d_print_info): Remove field options.
(d_print_init): Remove parameter options.
(cplus_demangle_print_callback): Update all the callers.
(d_print_comp, d_print_mod_list, d_print_mod, d_print_function_type)
(d_print_array_type, d_print_expr_op, d_print_cast, d_print_subexpr):
Add parameter options, update all the callers.
2011-04-20 Jim Meyering <>
* cp-demint.c (cplus_demangle_v3_components): Remove useless
* cplus-dem.c (squangle_mop_up): Likewise.
(delete_non_B_K_work_stuff): Likewise.
* pex-common.c (pex_free): Likewise.
* pex-msdos.c (pex_msdos_cleanup): Likewise.
* pex-win32.c (mingw_rootify, msys_rootify): Likewise.
(win32_spawn): Likewise.
* regex.c (FREE_VAR, weak_alias): Likewise.
* spaces.c (spaces): Likewise.
2011-04-10 Jim Meyering <>
Avoid memory overrun in a test leading to potential double-free.
* testsuite/test-expandargv.c (writeout_test): Fix off-by-one error:
i.e., do copy the trailing NUL byte.
2011-03-31 Tristan Gingold <>
* makefile.vms (OBJS): Add filename_cmp.obj
2011-02-28 Kai Tietz <>
* filename_cmp.c (filename_ncmp): New function.
* functions.texi: Regenerated.
2011-02-03 Ralf Wildenhues <>
* splay-tree.c: Escape wrapping newlines in texinfo markup
with '@', to fix function declaration output rendering.
* gather-docs: Relax and improve macro name matching to actually
match all current names and to allow input line wrapping.
* bsearch.c, concat.c, crc32.c, fnmatch.txh, fopen_unlocked.c,
hashtab.c, insque.c, make-relative-prefix.c, memchr.c, memcmp.c,
memcpy.c, memmem.c, memmove.c, mempcpy.c, memset.c,
pexecute.txh, random.c, setenv.c, setproctitle.c,
simple-object.txh, snprintf.c, stpncpy.c, strncmp.c, strtod.c,
strtol.c, vasprintf.c, vprintf.c, vsnprintf.c, xmemdup.c:
Wrap long texinfo input lines.
* functions.texi: Regenerate.
2011-01-18 Mike Frysinger <>
* .gitignore: New file.
2010-12-08 Doug Evans <>
* splay-tree.c (splay_tree_foreach_helper): Remove arg `sp',
all callers updated. Rewrite to be non-recursive.
2010-11-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* setproctitle.c [HAVE_SYS_PRCTL_H]: Include <sys/types.h>.
2010-11-20 Anthony Green <>
* Turn PR_SET_NAME link test into a test for
* configure, Rebuilt.
* setproctitle.c: Test for HAVE_SYS_PRCTL_H.
(setproctitle) Test for PR_SET_NAME definition.
2010-11-20 Ralf Wildenhues <>
PR other/46202
* (install-strip): New phony target.
(install): Also mark as phony.
2010-11-16 Ian Lance Taylor <>
* simple-object.c (simple_object_attributes_merge): Rename from
simple_object_attributes_compare. Call merge field.
* simple-object-common.h (struct simple_object_functions): Rename
attributes_compare field to attribute_merge.
* simple-object-elf.c (EM_SPARC): Define.
(EM_SPARC32PLUS): Define.
(simple_object_elf_attributes_merge): Renamed from
simple_object_elf_attributes_compare. Permit EM_SPARC and
EM_SPARC32PLUS objects to be merged.
(simple_object_elf_functions): Update function name.
* simple-object-coff.c (simple_object_coff_attributes_merge):
Rename from simple_object_coff_attributes_compare.
(simple_object_coff_functions): Update function name.
* simple-object-mach-o.c (simple_object_mach_o_attributes_merge):
Renamed from simple_object_mach_o_attributes_compare.
(simple_object_mach_o_functions): Update function name.
2010-11-16 H.J. Lu <>
PR other/42670
PR binutils/11137
* cp-demangle.c (d_make_demangle_mangled_name): New.
(d_demangle_callback): Use it on DCT_GLOBAL_XTORS.
* testsuite/demangle-expected: Updated.
2010-11-14 Kai Tietz <>
* simple-object-coff.c (simple_object_coff_read_strtab): Fix reading
2010-11-12 Ian Lance Taylor <>
PR other/46332
* cp-demangle.c (d_print_function_type): Don't print parentheses
if there are no modifiers to print.
* testsuite/demangle-expected: Tweak one test case, add another.
2010-11-04 Richard Henderson <>
* (AC_CHECK_HEADERS): Add process.h.
(checkfuncs): Add dup3, spawnve, spawnvpe; sort the list.
(AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe.
* configure, Rebuild.
* pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function.
[HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions.
2010-11-02 Ian Lance Taylor <>
Dave Korn <>
Iain Sandoe <>
* simple-object.c: New file.
* simple-object-common.h: New file.
* simple-object-elf.c: New file.
* simple-object-mach-o.c: New file.
* simple-object-coff.c: New file.
* simple-object.txh: New file.
* Rebuild dependencies.
(CFILES): Add simple-object.c, simple-object-coff,
simple-object-elf.c, and simple-object-mach-o.c.
(REQUIRED_OFILES): Add corresponding object files.
* configure: Rebuild.
* Rebuild.
* functions.texi: Rebuild.
2010-10-29 Ian Lance Taylor <>
* setproctitle.c: Add space after function name in @deftypefn
* functions.texi: Rebuild.
2010-10-26 Ralf Wildenhues <>
* aclocal.m4 (AC_LANG_FUNC_LINK_TRY(C)): Delete.
* configure: Regenerate.
2010-10-07 Andi Kleen <>
* configure: Regenerate.
* Turn PR_SET_NAME check into link check.
2010-10-06 Andi Kleen <>
* (CFILES): Add setproctitle.
(CONFIGURED_OFILES): Add setproctitle.
(setproctitle): Add rule.
* Regenerate.
* configure: Regenerate.
* Add checks for prctl PR_SET_NAME and setproctitle.
* setproctitle.c: Add file.
* functions.texi: Regenerate.
2010-09-22 Tristan Gingold <>
* cplus-dem.c (ada_demangle): Add comments.
Handle stream and controlled type operations.
Decoding of some uppercase letters moved before separators.
* testsuite/demangle-expected: Add tests.
2010-09-10 James Lyon <>
* cp-demangle.c (d_find_pack): Add case for
* testsuite/demangle-expected: Add regression test.
2010-09-08 Tristan Gingold <>
PR 44001
* maint-tool (missing): Fix pattern for object file.
(deps): Use $(objext) for object extension.
* (objext): New variable.
Replace all occurences of .o with .$(objext)
Regenerate with maint-deps
* (pexecute): Set to the basename.
* configure: Regenerate.
2010-08-20 Maciej W. Rozycki <>
* pex-common.c (pex_read_err): Set stderr_pipe to -1 if a
corresponding stream has been opened.
(pex_free): Close pipe file descriptors corresponding to child's
stdout and stderr before waiting.
2010-08-13 Nick Clifton <>
* argv.c (expandargv): Limit the number of times that response
files are opened in order to prevent infinite recursion.
2010-07-21 Pascal Obry <>
* make-temp-file.c (choose_tmpdir): Append a dot to P_tmpdir if needed.
2010-07-06 Ken Werner <>
* floatformat.c (floatformat_ieee_half_big): New variable.
(floatformat_ieee_half_little): Likewise.
2010-06-14 Gerald Pfeifer <>
* libiberty.texi: Remove reference to GCC 3 and 2001 (thrice).
Update copyright years.
Move to GFDL 1.3.
2010-06-10 Jakub Jelinek <>
PR other/43838
* cp-demangle.c (struct d_print_info): Add flush_count field.
(d_print_init): Initialize it to 0.
(d_print_flush): Increment it.
(d_print_comp): If needed flush before appending ", ". Only
decrement dpi->len if no flushes happened during the recursive
* testsuite/demangle-expected: Add a test for this.
2010-06-08 Laurynas Biveinis <>
* splay-tree.c: Update copyright years.
(splay_tree_new_typed_alloc): New.
(splay_tree_new_with_allocator): Use it.
* hashtab.c: Update copyright years.
(htab_create_typed_alloc): New.
(htab_create_alloc): Use it.
* functions.texi: Regenerate.
2010-06-03 Joern Rennecke <>
Ralf Wildenhues <>
PR bootstrap/42798
* Check for declaration of 'basename(char *)'.
* configure: Regenerate.
2010-05-26 Kai Tietz <>
* testsuite/demangle-expected: Add tests for __int128
and unsigned __int128 types.
2010-05-06 Magnus Fromreide <>
Jason Merrill <>
* cp-demangle.c (cplus_demangle_builtin_types): Add nullptr.
(cplus_demangle_type): Handle nullptr.
* testsuite/demangle-expected: Test it.
2010-04-23 Pedro Alves <>
* lbasename.c (lbasename): Split into ...
(unix_lbasename, dos_basename): ... these.
(lbasename): ... and reimplement on top of them.
* (lbasename.o): Add dependency on
2010-04-07 Jakub Jelinek <>
* regex.c (byte_re_match_2_internal): Avoid set but not used
2010-03-22 Jason Merrill <>
* cp-demangle.c (d_print_mod): Use () rather than [] for vectors.
2010-03-01 Ralf Wildenhues <>
* (all): Do not use exec.
2010-02-04 Tom Tromey <>
* testsuite/demangle-expected: Add missing --format=gnu-v3.
2010-02-03 Jason Merrill <>
* cp-demangle.c (d_expression): Handle dependent operator name.
PR c++/12909
* cp-demangle.c (d_number_component, d_vector_type): New.
(cplus_demangle_type, d_print_comp, d_print_mod): Handle vectors.
2010-01-25 Ian Lance Taylor <>
* cp-demangle.c (cplus_demangle_type): Check for invalid type
after "DF".
* testsuite/demangle-expected: Add test.
2010-01-20 Jason Merrill <>
PR c++/42338
* cp-demangle.c (d_print_comp): Fix array index printing.
2010-01-11 Tristan Gingold <>
* cplus-dem.c (ada_demangle): Remove prototype.
(grow_vect): Removed.
(ada_demangle): Rewritten.
(cplus_demangle): Fix indentation.
* testsuite/demangle-expected: Add tests for Ada.
2010-01-09 Ian Lance Taylor <>
PR other/42230
* cp-demangle.c (d_demangle): Return dgs.alc on success.
2010-01-04 Nobuhiro Iwamatsu <>
PR target/42316
* (PICFLAG): Use -fPIC on SH hosts.
* configure: Regenerate.
2009-12-07 Doug Evans <>
* pex-unix.c (pex_unix_exec_child): Save/restore environ.
2009-11-26 Ben Elliston <>
* (AC_CHECK_FUNCS): Sort into alphabetic order.
* configure: Regenerate.
2009-11-25 Ben Elliston <>
* functions.texi: Rebuild.
2009-11-25 Manuel Lopez-Ibanez <>
Ben Elliston <>
* README: Mention changes to and functions.texi.
* gather-docs: Mention 'make stamp-functions' in the header.
2009-11-23 Ben Elliston <>
Ian Lance Taylor <>
* pex-unix.c (pex_child_error): Improve warning avoidance by
checking the results of write(3) and exiting with -2 if any write
returns a negative value.
2009-11-22 Steve Ward <>
* dyn-string.c (dyn_string_append_char): Fix typo in comment.
2009-11-20 Ben Elliston <>
* pex-unix.c (pex_child_error): Define writeerr macro to avoid
unused result warnings from write(3) calls. Undefine writeerr
after all uses.
2009-10-08 Daniel Gutson <>
Daniel Jacobowitz <>
Pedro Alves <>
* argv.c (consume_whitespace): New function.
(only_whitespace): New function.
(buildargv): Always use ISSPACE by calling consume_whitespace.
(expandargv): Skip empty files. Do not stop at the first empty
argument (calling only_whitespace)..
* testsuite/test-expandargv.c: (test_data): Test empty lines
and empty arguments.
(run_tests): Fix false positives due to shorter arguments.
2009-09-30 Martin Thuresson <>
* regex.c (byte_re_match_2_internal): Split declaration and
assignment to avoid -Wc++-compat warning due to goto.
2009-09-29 Jason Merrill <>
* Enable demangle target.
* cp-demangle.c (d_lambda, d_unnamed_type, d_make_default_arg): New.
(d_name, d_prefix, d_unqualified_name, d_local_name): Handle lambdas.
(d_parmlist): Factor out from d_bare_function_type.
(d_compact_number): Factor out from d_template_param and d_expression.
(d_append_num): Factor out from d_print_comp.
(d_print_comp, d_print_mod_list): Handle lambdas.
* testsuite/demangle-expected: Add lambda tests.
2009-09-23 Matthew Gingell <>
* cplus-dem.c (ada_demangle): Ensure demangled is freed.
2009-09-22 Ozkan Sezer <>
* choose-temp.c: Include unistd.h for mingw targets.
2009-09-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* hashtab.c [HAVE_INTTYPES_H]: Include <inttypes.h>.
2009-09-15 Tristan Gingold <>
* config.h-vms (intptr_t): Define to compile hashtab.c
2009-09-04 Ozkan Sezer <>
PR target/39065
* Replace AC_CHECK_TYPE() for intptr_t and uintptr_t
* Regenerated.
* configure: Regenerated.
2009-09-03 Ozkan Sezer <>
PR target/39065
* Also check for intptr_t.
* Regenerated.
* configure: Regenerated.
* hashtab.c (hash_pointer): Cast the pointer argument to intptr_t
instead of of long.
2009-09-02 Tristan Gingold <>
* Removed as unused and superceeded by makefile.vms.
* makefile.vms: Ported to Itanium VMS. Remove useless targets and
dependencies. Remove unused FORMAT variable.
* New file to create DCL script for
Itanium VMS or Alpha VMS.
2009-08-24 Ralf Wildenhues <>
* (AC_PREREQ): Bump to 2.64.
2009-08-23 H.J. Lu <>
PR ld/10536
* (install-html-recursive): Removed.
2009-08-22 Ralf Wildenhues <>
* Regenerate.
* configure: Regenerate.
2009-07-30 Ralf Wildenhues <>
* (AUTOCONF, configure_deps): New variables.
($(srcdir)/configure): New rule, active only in maintainer mode.
2009-07-29 Douglas B Rupp <>
* make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS.
2009-07-27 Douglas B Rupp <>
* pex-unix.c (vfork): Remove VMS specific definition (get from header
file instead).
(to_ptr32): New function.
(pex_unix_exec_child): Use it.
2009-07-24 Ian Lance Taylor <>
PR bootstrap/40854
* crc32.c (xcrc32): Rename from crc32.
2009-07-24 Ian Lance Taylor <>
* crc32.c: New file.
* Rebuild dependencies.
(CFILES): Add crc32.c.
(REQUIRED_OFILES): Add ./crc32.o.
* functions.texi: Rebuild.
2009-07-17 Jan Kratochvil <>
* cp-demangle.c (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
(d_demangle_callback): The variable type is now declared as enum.
Replace parser of _GLOBAL_ symbols by a d_make_comp call.
2009-06-21 Jakub Jelinek <>
* hashtab.c (htab_traverse): Don't call htab_expand for
nearly empty hashtabs with sizes 7, 13 or 31.
2009-06-16 Nick Clifton <>
PR 10197
* testsuite/test-demangle.c: Rename getline to get_line to avoid
conflicts with system function of the same name.
2009-05-30 Eli Zaretskii <>
* snprintf.c: Doc fix.
* vsnprintf.c: Doc fix.
2009-05-29 Kai Tietz <>
* pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.
2009-05-29 Michael Matz <>
* fibheap.c (fibheap_replace_key_data): Make sure we don't early
out when forcing the minimum.
(fibheap_delete_node): Assert that we managed to force the minimum.
2009-05-25 Tristan Gingold <>
* config.h-vms: Rewritten. Define configure macros.
Use DEC-C builtin alloca.
* makefile.vms (OBJS): Update list.
(OPT): New variable.
(CFLAGS): Update compilation flags.
(libiberty.olb): Do not depend on alloca-conf.h anymore.
2009-05-19 Ian Lance Taylor <>
Ben Elliston <>
* cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug.
(cplus_demangle_fill_dtor): Likewise.
2009-05-17 Julian Brown <>
* pex-win32.c (pex_win32_exec_child): Fix logic to avoid closing
standard handles (stdin, stdout, stderr) in parent.
2009-04-29 Julian Brown <>
* pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT.
(pex_win32_exec_child): Ensure each process has only one handle open
on pipe endpoints. Close standard input after creating child for
symmetry with standard output/standard error.
2009-04-25 Eli Zaretskii <>
* (needed-list): Target removed (not used in GCC
3.0 and later). All references deleted.
(mostlyclean): Remove references to needed.awk and needed2.awk.
2009-04-14 Eli Zaretskii <>
* (setobjs, msdosdjgpp): Move a-priori setting of
existing and required library functions to with_target_subdir
section, so that the native build does detect them at configure
* configure: Regenerated.
2009-04-13 Ozkan Sezer <>
PR target/39397
* pex-common.h (struct pex_obj): Store pid values as pid_t,
not as long (members *children and (*wait))
* pex-common.c (pex_run_in_environment): Likewise.
* pex-win32.c (pex_win32_wait): Return pid_t and properly check
returned pid value.
* pex-djgpp.c (pex_djgpp_wait): Return pid_t.
* pex-msdos.c (pex_msdos_wait): Likewise.
2009-04-07 Arnaud Patard <>
* libiberty/ Fix Linux/MIPS matching rule.
* libiberty/configure: Regenerate.
2009-03-27 Ian Lance Taylor <>
* memmem.c: New file, from gnulib.
* Add memmem to list of functions provided if they
are not available on the host.
* Rebuild dependencies.
(CFILES): Add memmem.c.
(CONFIGURED_OFILES): Add memmem.o.
* configure,, functions.texi: Rebuild.
2009-03-23 Jason Merrill <>
* cp-demangle.c (d_expression): Handle pack expansion.
(d_print_subexpr): Don't wrap function parms in ().
not finding a pack.
2009-03-17 Jason Merrill <>
* cp-demangle.c (d_make_function_param): new fn.
(cplus_demangle_mangled_name): Work around abi v2 bug.
(d_expr_primary): Likewise.
(cplus_demangle_operators): Add alignof ops.
(d_expression): Handle function parameters and conversions
with other than 1 operand.
(d_print_comp): Handle function parameters. Fix bug with
function used in type of function.
* testsuite/demangle-expected: Update tests.
2009-02-21 Mark Mitchell <>
* make-temp-file.c (<windows.h>): Include on Windows.
(choose_tmpdir): On Windows, use GetTempPath.
2009-01-18 Dave Korn <>
* (funcs, vars, checkfuncs): Don't munge on Cygwin,
as it no longer shares libiberty object files.
* configure: Regenerated.
2009-01-07 Jason Merrill <>
* cp-demangle.c (d_expression): Remove mangling for zero-op casts.
2009-01-06 Ben Elliston <>
* cp-demangle.c (cplus_demangle_type): Return NULL if the
character following a 'D' cannot be recognised.
2008-12-18 Jason Merrill <>
PR c++/38561
* cp-demangle.c (d_expression, d_print_comp): Revert
cast changes.
2008-12-17 Jason Merrill <>
* cp-demangle.c (d_expression): Handle rvalue stubs too.
(d_print_comp): Avoid extra ", " with empty template argument packs.
Remove handling for obsolete T() mangling.
2008-12-10 Jason Merrill <>
* cp-demangle.c (cplus_demangle_type): Support fixed-point types.
(d_print_comp, d_dump): Likewise.
2008-10-22 Daniel Jacobowitz <>
* (CPPFLAGS): Define.
2008-10-15 Paolo Bonzini <>
PR bootstrap/37137
* (LIBCFLAGS): Remove.
(FLAGS_TO_PASS): Don't mention it.
(COMPILE.c, MULTIOSDIR): Replace it with CFLAGS.
2008-10-08 David Edelsohn <>
* xstrdup.c: Include <sys/types.h> after "config.h"
2008-10-07 Jan Kratochvil <>
* Regenerated.
* configure: Likewise.
2008-10-06 Jason Merrill <>
* cp-demangle.c (struct d_print_info): Add pack_index.
(d_make_comp): Likewise. DEMANGLE_COMPONENT_ARGLIST and
(cplus_demangle_builtin_types): Add char16/32_t.
(cplus_demangle_type): Recognize them.
(d_template_args): Handle empty argument packs.
(d_template_arg): Handle argument packs.
(d_expression): Handle dependent name.
(d_index_template_argument): New fn.
(d_lookup_template_argument): New fn.
(d_find_pack, d_pack_length): New fn.
(d_print_subexpr): Split out...
(d_print_comp): ...from here. Use d_*_template_argument.
Handle empty arg lists. Support pack expansions.
* cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increase to 32.
2008-09-09 Jason Merrill <>
* cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DECLTYPE.
(d_make_comp): Likewise.
(cplus_demangle_type): Handle decltype and DFP types.
(cplus_demangle_operators): Call operator takes 2 args.
(cplus_demangle_builtin_types): Add DFP types.
(d_exprlist): New fn.
(d_expression): Handle parm placeholders, T() and calls.
(d_print_comp): Handle decltype, T() and calls.
* testsuite/demangle-expected: Test the above.
2008-08-07 Aaron W. LaFramboise <>
* pex-win32.c (argv_to_argc): New function.
(spawn_script): Duplicate argv before calling win32_spawn.
2008-07-31 Jakub Jelinek <>
* mkstemps.c (mkstemps): Keep looping even for EISDIR.
2008-07-31 Denys Vlasenko <>
* mkstemps.c (mkstemps): If open failed with errno other than
EEXIST, return immediately.
* make-temp-file.c: Include errno.h.
(make_temp_file): If mkstemps failed, print an error message
before aborting.
2008-07-24 Ralf Wildenhues <>
* maint-tool (deps): Output config.h instead of stamp-h.
* Rebuild deps.
(maintainer-clean-subdir): Depend on stamp-h rather than config.h.
Reverts 2007-07-11 change.
2008-06-19 Eric Blake <>
Adjust strsignal to POSIX 200x prototype.
* strsignal.c (strsignal): Remove const.
2008-06-17 Ralf Wildenhues <>
* configure: Regenerate.
2008-06-15 Ralf Wildenhues <>
* libiberty.texi: Expand TABs, drop indentation outside examples.
* obstacks.texi: Likewise.
2008-04-21 Aurelien Jarno <>
* libiberty/ use -fPIC on Linux/MIPS hosts.
* libiberty/configure: Regenerate.
2008-04-18 Kris Van Hees <>
* testsuite/demangle-expected: Added tests for char16_t and char32_t.
2008-04-18 Paolo Bonzini <>
PR bootstrap/35457
* aclocal.m4: Add override.m4.
* configure: Regenerate.
2008-03-31 Ian Lance Taylor <>
* cp-demangle.c (d_substitution): Correct overflow check to avoid
-fstrict-overflow optimizations.
2008-03-27 Paolo Bonzini <>
* (frags): Don't set, use frag instead.
(PICFLAG): Set here and substitute.
* (PICFLAG): Substitute from autoconf.
* configure: Regenerate.
2008-03-24 Ian Lance Taylor <>
* sha1.c: New file, from gnulib.
* Rebuild dependencies.
(CFILES): Add sha1.c.
(REQUIRED_OFILES): Add sha1.o.
2008-03-24 Doug Evans <>
* make-relative-prefix.c (make_relative_prefix_1): Handle NULL
return from strdup.
2008-03-12 Seongbae Park <>
* cplus-dem.c (malloc, realloc): Use void * instead of char *
as return type.
2008-03-11 Nick Clifton <>
* md5.c (md5_process_bytes): Do not assume that memcpy will
provide a return value.
2008-02-19 Ben Elliston <>
PR other/12618
* testsuite/ (mostlyclean): Remove any core file.
2008-01-26 David Daney <>
* cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
(d_make_character): New function.
(d_java_resource): Same.
(d_special_name): Handle "Gr" case.
* testsuite/demangle-expected: Add test for java resource name
2008-01-23 Thiago Jung Bauermann <>
* cplus-dem.c (demangle_function_name): Changed to return value
indicating if a name was correctly demangled.
(iterate_demangle_function): Use demangle_function_name return
2008-01-19 Manuel Lopez-Ibanez <>
PR other/33768
* splay-tree.c (rotate_left): Fix minor typo in comment.
(rotate_right): Likewise.
2007-11-12 Joseph Myers <>
* floatformat.c (floatformat_ibm_long_double_is_valid): Fix
compiler warnings.
(floatformat_ibm_long_double): Use
2007-11-07 Joseph Myers <>
Daniel Jacobowitz <>
* floatformat.c (mant_bits_set): New.
(floatformat_to_double): Use it. Note no special handling of
split formats.
(floatformat_from_double): Note no special handing of split
floatformat_ibm_long_double): New.
(floatformat_ieee_single_big, floatformat_ieee_single_little,
floatformat_ieee_double_big, floatformat_ieee_double_little,
floatformat_ieee_double_littlebyte_bigword, floatformat_vax_f,
floatformat_vax_d, floatformat_vax_g, floatformat_i387_ext,
floatformat_m68881_ext, floatformat_i960_ext,
floatformat_m88110_ext, floatformat_m88110_harris_ext,
floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword,
floatformat_ia64_spill_big, floatformat_ia64_spill_little,
floatformat_ia64_quad_big, floatformat_ia64_quad_little): Update
for addition of split_half field.
2007-09-06 Tom Tromey <>
* pexecute.txh (pex_free): Document process killing.
2007-08-31 Douglas Gregor <>
* cp-demangle.c (d_dump): Handle
(d_make_comp): Ditto.
(cplus_demangle_type): Ditto.
(d_print_comp): Ditto.
(d_print_mod): Ditto.
(d_print_function_type): Ditto.
2007-08-24 Kai Tietz <>
* pex-common.h: (pex_funcs): Retyped wait and exec_child to pid_t.
* pex-djgpp.c: Likewise.
* pex-msdos.c: Likewise.
* pex-unix.c: Likewise.
* pex-win32.c: Likewise.
2007-08-17 Michael Snyder <>
* make-relative-prefix.c (make_relative_prefix_1): Resource leaks.
2007-08-03 Michael Snyder <>
* make-relative-prefix.c (make_relative_prefix_1): Fix resource
2007-07-31 Michael Snyder <>
* cp-demangle.c (d_print_comp): Guard against null.
2007-07-25 Ben Elliston <>
* (CFILES): Remove ternary.c.
(REQUIRED_OFILES): Remove ./ternary.o.
(INSTALLED_HEADERS): Remove ternary.h.
(ternary.o): Remove.
* ternary.c: Remove.
2007-07-23 DJ Delorie <>
* argv.c (writeargv): Fix typo in inline documentation.
* functions.texi: Regenerate.
2007-07-17 DJ Delorie <>
* (target_header_dir, msdosdjgpp): Remove duplicate
gettimeofday entry.
* configure: Likewise.
2007-07-11 Alexandre Oliva <>
* maint-tool (deps): Output stamp-h instead of config.h.
* Rebuild deps.
(maintainer-clean-subdir): Depend on stamp-h rather than config.h.
2007-07-02 Simon Baldwin <>
* argv.c (writeargv): Removed declaration of unused variable.
2007-06-14 Paolo Bonzini <>
* configure: Regenerate.
2007-06-14 Paolo Bonzini <>
* aclocal.m4: Include config/warnings.m4.
* configure: Regenerate.
2007-06-07 Geoffrey Keating <>
* Non-default multilibs can be cross compilations.
* configure: Regenerate
2007-05-07 Nathan Froyd <>
* argv.c (writeargv): New function.
2007-05-05 Geoffrey Keating <>
* cp-demangle.c (d_name): Detect local-source-name.
(d_prefix): Likewise.
(d_unqualified_name): Implement local-source-name.
2007-05-03 Joel Brobecker <>
* filename_cmp.c: Replace include of ctype.h by include of
(filename_cmp): Use TOLOWER instead of tolower for conversions
that are locale-independent.
* (filename_cmp.o): Add dependency on safe-ctype.h.
2007-04-11 Thomas Neumann
* argv.c: Use ANSI C declarations.
* make-relative-prefix.c: Likewise.
2007-04-06 Joel Brobecker <>
* filename_cmp.c (filename_cmp): Improve documentation.
2007-04-02 Andreas Schwab <>
* filename_cmp.c: Include "config.h".
2007-03-29 Joel Brobecker <>
* filename_cmp.c: New file.
* (CFILES): Add filename_cmp.c.
(REQUIRED_OFILES): Add filename_cmp.o
(filename_cmp.o): New rule.
* functions.texi: Regenerate.
2007-03-15 Geoffrey Keating <>
* cp-demangle.c (d_encoding): Exit early on error.
(d_pointer_to_member_type): Exit early if cplus_demangle_type
returns NULL.
(cplus_demangle_type): Likewise.
* testsuite/demangle-expected: New testcase.
2007-03-01 Brooks Moses <>
* Add install-pdf target as copied from
automake v1.10 rules.
* testsuite/ Add dummy install-pdf target.
2007-03-01 Peter Breitenlohner <>
Eric Botcazou <>
PR other/16513
* Install library under $(MULTIOSDIR), not $(MULTISUBDIR).
Install headers in multilib independent location.
2007-02-26 DJ Delorie <>
* add djgpp-specific results, so we don't have to
link during a cross compilation.
* configure: Regenerated.
2007-01-31 Ralf Wildenhues <>
* hex.c: Fix typo.
* choose-temp.c: Likewise.
* functions.texi: Regenerate.
2007-01-31 Vladimir Prus <>
* pex-common.h (struct pex_obj): New fields
stderr_pipe and read_err.
* pex-common.c (pex_init_common): Initialize
(pex_run_in_environment): Add error checking
for PEX_STDERR_TO_PIPE. Create a pipe
for stderr if necessary.
(pex_read_err): New.
(pex_free): Close read_err.
* pexecute.txh: Document changes.
* functions.texi: Regenerated.
2007-01-31 Ben Elliston <>
* strsignal.c (psignal): Change type of signo to int.
* functions.texi: Regenerate.
2007-01-29 Simon Baldwin <>
* cp-demangle.h (cplus_demangle_operators): External definition
suppressed if not building for libstdc++.
* cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface
to demangling, provides a malloc-less version of __cxa_demangle.
(cplus_demangle_print_callback): Public callback version of
(struct d_growable_string): New growable string structure.
(d_growable_string_init): New function, provides support for
growable strings separate from print info.
(d_growable_string_resize): Likewise.
(d_growable_string_append_buffer): Likewise.
(d_growable_string_callback_adapter):): Likewise.
(d_print_init): New print info initialization function.
(d_print_error): Macro replace by inline function.
(d_print_saw_error): Likewise.
(d_append_char): Likewise.
(d_append_buffer): Likewise.
(d_append_string): New inline function, replaces the
d_append_string_constant macro.
(d_flush_buffer): New function, flushes buffer to callback.
(d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback
for unsupported dynamic arrays replaced by alloca().
(d_demangle): Return string length estimating removed.
(d_dump): Moved error case handling from call site into function.
(d_print_resize): Function removed.
(d_print_append_char): Likewise.
(d_print_append_buffer): Likewise.
(d_print_error): Likewise.
(d_print_comp): Added special case handling for Java arrays.
(java_demangle_v3): Removed string post-processing for Java arrays,
now replaced by special case handling in d_print_comp.
(cplus_demangle_v3_callback): Augmented interface to demangling,
provides a malloc-less version of cplus_demangle_v3.
(java_demangle_v3_callback): Augmented interface to demangling,
provides a malloc-less version of java_demangle_v3.
2007-01-12 Ben Elliston <>
* pex-unix.c (writeerr): Cast write result to void.
* choose-temp.c (choose_temp_base): Check the result of the call
to mktemp rather than testing the length of the modified string.
2006-12-20 Geoffrey Keating <>
* cp-demangle.h: Add comment explaining what to do to avoid
overrunning string.
(d_check_char): New.
(d_next_char): Don't advance past trailing '\0'.
* cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char.
(d_nested_name): Likewise.
(d_special_name): Likewise.
(d_call_offset): Likewise.
(d_function_type): Likewise.
(d_array_type): Likewise.
(d_pointer_to_member_type): Likewise.
(d_template_param): Likewise.
(d_template_args): Likewise.
(d_template_arg): Likewise.
(d_expr_primary): Likewise.
(d_local_name): Likewise.
(d_substitution): Likewise.
(d_ctor_dtor_name): Use d_advance rather than d_next_char.
* testsuite/test-demangle.c: Include sys/mman.h.
(protect_end): New.
(main): Use protect_end.
* testsuite/demangle-expected: Add testcases for overrunning
the end of the string.
2006-11-30 Andrew Stubbs <>
J"orn Rennecke <>
PR driver/29931
* make-relative-prefix.c (make_relative_prefix_1): New function,
broken out of make_relative_prefix. Make link resolution dependent
on new parameter.
(make_relative_prefix): Use make_relative_prefix_1.
(make_relative_prefix_ignore_links): New function.
2006-11-08 Vladimir Prus <>
* pex-win32.c (no_suffixes): Remove.
(std_suffixes): Add "" as first element.
(find_executable): Remove detection of already-present
extension. Try all suffixes in std_suffixes.
2006-11-07 Julian Brown <>
* floatformat.c (get_field): Fix segfault with little-endian word
order on 64-bit hosts.
(put_field): Likewise.
(min): Move definition.
2006-10-26 Danny Smith <>
pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC.
(find_executable): Likewise.
(win32_spawn): Cast alloca return to (char**).
Replace malloc with XNEWVEC.
bcopy.c (bcopy): Add explict casts in assignments.
2006-10-25 Ben Elliston <>
* pexecute.txh: Wrap pexecute's "flag" argument with @var {..}.
2006-10-10 Brooks Moses <>
* Added "pdf", "libiberty.pdf" target support.
* testsuite/ Added empty "pdf" target.
2006-09-22 Ian Lance Taylor <>
PR other/29176
* cp-demangle.c (d_substitution): Check for overflow when
computing substitution index.
2006-08-30 Corinna Vinschen <>
* Add case for Mingw as host.
* configure: Regenerate.
2006-08-27 Ian Lance Taylor <>
PR driver/27622
* pex-common.h (struct pex_funcs): Add toclose parameter to
exec_child field.
* pex-common.c (pex_run_in_environment): Pass toclose to
* pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter.
* pex-unix.c (pex_unix_exec_child): Likewise.
* pex-msdos.c (pex_msdos_exec_child): Likewise.
* pex-win32.c (pex_win32_exec_child): Likewise.
PR other/28797
* cp-demangle.c (d_pointer_to_member_type): Do add a substitution
for a qualified member which is not a function.
* testsuite/demangle-expected: Add test case.
2006-07-27 Jan Hubicka <>
PR rtl-optimization/28071
* hashtab.c (htab_empty): Clear out n_deleted/n_elements;
downsize the hashtable.
2006-07-04 Peter O'Gorman <>
* chmod 644 before ranlib during install.
2006-06-02 Mark Shinwell <>
* pex-unix.c (pex_unix_exec_child): Insert cast when assigning
to environ.
2006-06-01 Mark Shinwell <>
* pex-common.c: New function pex_run_in_environment.
* pex-common.h: Add environment parameter to exec_child.
* pex-msdos.c: Add environment parameter to pex_msdos_exec_child.
* pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child.
(pex_djgpp_exec_child): Pass environment to child process.
* pex-unix.c: Add environment parameter to pex_unix_exec_child.
(pex_unix_exec_child): Pass environment to child process.
* pex-win32.c: Add environment parameter to pex_win32_exec_child.
New function env_compare for comparing VAR=VALUE pairs.
(win32_spawn): Assemble environment block and pass to CreateProcess.
(spawn_script): Pass environment through to win32_spawn.
(pex_win32_exec_child): Pass environment through to spawn_script and
* functions.texi: Regenerate.
* pexecute.txh: Document pex_run_in_environment.
2006-05-28 Mark Shinwell <>
* mkstemps.c: Open temporary files in binary mode.
2006-05-12 Anton Blanchard <>
* cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
hold "int%u_t".
2006-04-24 Julian Brown <>
* floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
2006-03-29 Jim Blandy <>
* pex-common.c (pex_input_file, pex_input_pipe): New functions.
(pex_init_common): Initialize obj->input_file.
(pex_run): Close any file opened by pex_input_file.
* pexecute.txh (pex_input_file, pex_input_pipe): New docs.
* pex-common.h (struct pex_obj): New field input_file.
(struct pex_funcs): New function ptr fdopenw.
* pex-unix.c (pex_unix_fdopenw): New function.
(funcs): List it as our fdopenw function.
* pex-win32.c (pex_win32_fdopenw): New function.
(funcs): List it as our fdopenw function.
* pex-djgpp.c (funcs): Leave fdopenw null.
* pex-msdos (funcs): Same.
* functions.texi: Regenerated.
2006-04-10 Jim Blandy <>
* pex-common.c (temp_file): New function, containing guts of
pex-style temporary file name generation.
(pex_run): Use it.
2006-04-06 Carlos O'Donell <>
* Add install-html, install-html-am, and
install-html-recursive targets. Define mkdir_p and
* AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
* testsuite/ Add install-html and html targets.
2006-03-31 Mark Mitchell <>
* pex-win32.c (<errno.h>): Include.
(fix_argv): Remove.
(argv_to_cmdline): New function.
(std_suffixes): New variable.
(no_suffixes): Likewise.
(find_executable): New function.
(win32_spawn): Likewise.
(spawn_script): Use win32_spawn instead of _spawnv[p].
(pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
(pex_win32_wait): Likewise.
2006-03-24 Jim Blandy <>
* pex-common.c (pex_run): Simplify output name handling.
2006-03-12 Jim Blandy <>
* pex-common.h (struct pex_obj): Doc fixes.
2006-03-11 Jim Blandy <>
* functions.texi: Regenerate.
2006-02-21 Ben Elliston <>
* pexecute.c (pwait): Syntax fix for previous change.
2006-02-17 Uttam Pawar <>
* pexecute.c (pwait): Free vector pointer.
* partition.c (partition_print): Free class_elements pointer.
2006-02-11 Roger Sayle <>
R. Scott Bailey <>
Bill Northcott <>
PR bootstrap/16787
* floatformat.c: Include <float.h> where available.
(NAN): Use value of DBL_QNAN if defined, and NAN isn't.
2006-01-29 Gabriel Dos Reis <>
* Add -Wc++-compat to ac_libibety_warn_cflags where
* configure: Regenerated.
2006-01-20 Carlos O'Donell <>
* testsuite/ Add test-expandargv test.
* testsuite/test-expandargv.c: New test.
* argv.c (expandargv): Check for errors with ferror,
rather than just by looking at return value from fread.
2005-12-17 Gabriel Dos Reis <>
* floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
to convert from "from".
(floatformat_to_double): Likewise.
(floatformat_from_double): Use explicit cast to convert from "to".
2005-12-10 Terry Laurenzo <>
PR java/9861
* cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
and include return type when found.
conditional logic to change printing order of return type.when
the DMGL_RET_POSTFIX option is present.
(java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
* testsuite/test-demangle.c (main): Recognize option --ret-postfix
* testsuite/demangle-expected: Test cases to verify extended encoding.
Updated comment to document --ret-postfix option.
2005-11-06 Richard Guenther <>
* splay-tree.c (rotate_left): New function.
(rotate_right): Likewise.
(splay_tree_splay_helper): Remove.
(splay_tree_splay): Re-implement.
2005-10-31 Mark Kettenis <>
* floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
New variables.
2005-10-07 Mark Mitchell <>
* at-file.texi: Fix typo.
2005-10-03 Mark Mitchell <>
* at-file.texi: New file.
2005-09-27 Mark Mitchell <>
* argv.c (expandargv): Do not use xmalloc_failed.
2005-09-26 Mark Mitchell <>
* argv.c (safe-ctype.h): Include it.
(ISBLANK): Remove.
(stdio.h): Include.
(buildargv): Use ISSPACE instead of ISBLANK.
(expandargv): New function.
* Regenerated.
2005-09-14 Christopher Faylor <>
* pex-win32.c: Include "windows.h".
(backslashify): New function.
(fix_argv): Use backslashify to convert path to windows format.
Allocate one more place in new argv for potential executable from '#!'
(tack_on_executable): New function. Conditional on USE_MINGW_MSYS
(openkey): Ditto.
(mingw_rootify): Ditto.
(msys_rootify): Ditto.
(spawn_script): New function.
(pex_win32_exec_child): Save translated argv in newargv. Pass to
spawn_script if spawnv* fails.
(main): New function. Conditional on MAIN. Useful for testing.
2005-08-17 Mark Kettenis <>
* floatformat.c (floatformat_always_valid): Change type of last
argument to `void *'.
(floatformat_i387_ext_is_valid): Likewise.
(floatformat_to_double): Change type of second argument to `const
void *'.
(floatformat_from_double): Change type of last argument to `void
(floatformat_is_valid): Change type of last argument to `const
void *'.
(ieee_test): Remove redundant casts.
2005-08-17 Kelley Cook <>
* strverscmp.c: Update FSF address.
* testsuite/ Likewise.
* testsuite/test-demangle.c: Likewise.
* testsuite/test-pexecute.c: Likewise.
2005-07-23 Kaveh R. Ghazi <>
* getopt.c: Include ansidecl.h before system headers.
2005-07-22 Ben Elliston <>
* getopt.c: Include "ansidecl.h".
(_getopt_initialize): Mark argc and argv parameters as unused.
2005-07-22 Ben Elliston <>
* regex.c (regcomp): Change type of `i' from unsigned to int.
2005-07-22 Ben Elliston <>
Recover patch lost in the sourceware repository:
2005-07-09 Ben Elliston <>
* memcpy.c: Remove ANSI_PROTOTYPES conditional code.
* memmove.c: Likewise.
* objalloc.c: Likewise.
2005-07-22 Ben Elliston <>
* Check for a getopt(3) declaration.
* configure, Regenerate.
2005-07-15 Ben Elliston <>
* regex.c (TRANSLATE): Cast rhs of ternary expression to char.
2005-07-12 Ben Elliston <>
* floatformat.c (floatformat_to_double): Add a comment about a
potential source of warnings when compiling this file.
2005-07-12 Ben Elliston <>
* pexecute.c (pexecute): Cast string litrals to char *.
* regex.c (re_comp): Cast a call to gettext() to char *.
2005-07-07 Kelley Cook <>
* config.table: Delete file. Move former contents into ...
* ... here and escape any brackets for m4.
* (config.status): Remove dependency on config.table.
* configure: Regenerate.
2005-07-07 Kelley Cook <>
* Regenerate for 6/20 change.
2005-07-03 Steve Ellcey <>
PR other/13906
* md5.c (md5_process_bytes): Check alignment.
2005-07-01 Ian Lance Taylor <>
PR other/22268
* cp-demangle.c (d_expr_primary): Don't run off the end of the
string while looking for the end of a literal value.
* testsuite/demangle-expected: Add test case.
2005-06-30 Daniel Berlin <>
* hashtab.c (EMPTY_ENTRY): Moved and renamed.
2005-06-20 Geoffrey Keating <>
* strverscmp.c: New.
* (CFILES): Add strverscmp.c.
(CONFIGURED_OFILES): Add strverscmp.o.
(strverscmp.o): New rule.
(stamp-functions): Add $(srcdir) to files in source directory.
* (funcs): Add strverscmp.
(AC_CHECK_FUNCS): Add strverscmp.
* configure: Regenerate.
* functions.texi: Regenerate.
2005-05-28 Eli Zaretskii <>
* Add snprintf and vsnprintf to AC_CHEK_DECLS.
*, configure: Regenerate.
2005-05-25 Richard Henderson <>
* cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
(d_make_comp, d_print_comp): Likewise.
(d_special_name): Generate one.
* testsuite/demangle-expected: Add a hidden alias test.
2005-05-24 Gabriel Dos Reis <>
* Check declarations for calloc(), getenv(),
malloc(), realloc() and sbrk().
* Regenerate.
* configure: Likewise.
* alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
instead of xmalloc.
* choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
* concat.c (liiberty_concat_ptr): Surround definition with an
extern "C" block, if __cplusplus.
(concat): Use XNEWVEC instead of xmalloc.
(reconcat): Likewise.
* cp-demangle.c (struct d_print_template): Rename member
"template" to "template_decl". Adjust use throughout the file.
(d_print_resize): Properly cast return value of realloc().
(cplus_demangle_print): Same for malloc().
(d_demangle): Likewise.
* cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
"typename" to "type_name".
* cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
(work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
(demangle_template_value_parm): Likewise.
(demangle_template): Likewise.
(recursively_demangle): Likewise.
(do_hpacc_template_literal): Likewise.
(do_arg): Likewise.
(remember_type): Likewise.
(remember_Ktype): Likewise.
(register_Btype): Likewise.
(string_need): Use XRESIZEVEC instead of xrealloc().
* dyn-string.c (dyn_string_init): Use XNEWVEC.
(dyn_string_new): Use XNEW.
(dyn_string_resize): Use XRESIZEVEC.
* fnmatch.c (fnmatch): Rename local variable "not" to "negate".
* getopt.c (getenv): Declare only if !__cplusplus and !getenv.
Otherwise include <stdlib.h>.
(exchange): Cast return value of malloc().
* hashtab.c (htab_size): Define as both macro and non-inline
(htab_elements): Likewise.
* getpwd.c (getpwd): Use XNEWVEC.
(htab_create_alloc_ex): Use C90 prototype-style.
* lrealpath.c (lrealpath): Appropriately cast return value of
* make-relative-prefix.c (save_string): Likewise.
* make-temp-file.c (try_dir): Rename from "try". Adjust use in
the file.
(choose_tmpdir): Use XNEWVEC.
* mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
* pex-common.c (pex_init_common): Use XNEW.
(pex_add_remove): Use XRESIZEVEC.
(pex_run): Likewise.
(pex_get_status_and_time): Likewise.
* pex-djgpp.c (pex_djgpp_exec_child): Likewise.
* pex-msdos.c (pex_init): Use XNEW.
(pex_msdos_exec_child): Likewise.
(pex_msdos_exec_child): Use XRESIZEVEC.
* pex-unix.c (pex_wait): Use XNEW.
* pex-win32.c (fix_argv): Use XNEWVEC.
* pexecute.c (pwait): Likewise.
* setenv.c (setenv): Properly cast return value of malloc().
* sigsetmask.c (sigsetmask): Rename local variables "old" and
"new" to "old_sig" and "new_sig".
* sort.c (main): Use XNEWVEC.
* spaces.c (spaces): Cast return value of malloc().
* strndup.c (strndup): Likewise.
* ternary.c (ternary_insert): Use XNEW.
* xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
with an extern "C" block if __cplusplus.
* xstrdup.c (xstrdup): Cast return value of memcpy().
* xstrerror.c (strerror): Enclose declaration in an extern "C"
block if __cplusplus.
* xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
2005-05-16 Andreas Jaeger <>
* getpwd.c: Remove unneeded prototype getcwd and move getwd so
that it's only declared if needed.
* getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
2005-05-15 Andreas Jaeger <>
* functions.texi: Regenerated.
2005-05-15 Eli Zaretskii <>
* pexecute.txh: Enclose multi-word data types in @deftypefn in
braces. Minor wording fixes. Use --- for em-dash. Use
@enumerate in enumerated lists.
* fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
2005-05-11 Eli Zaretskii <>
* pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
(pex_init): Fix last argument to pex_init_common.
(pex_djgpp_exec_child): Remove leading underscore from _open,
_dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
which is undeclared, with `executable', which was unused. Remove
unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
(pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
2005-05-11 Paul Brook <>
* Regenerate dependencies.
2005-05-10 Nick Clifton <>
* Update the address and phone number of the FSF organization in
the GPL notices in the following files:
COPYING.LIB,, _doprnt.c, argv.c, asprintf.c,
choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
2005-05-06 Kelley Cook <>
* aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
* configure: Regenerate.
2005-05-06 Kelley Cook <>
* aclocal.m4: Don't include accross.m4.
* configure, Regenerate.
2005-04-25 Kaveh R. Ghazi <>
* fopen_unlocked.c (unlock_std_streams): New.
* functions.texi: Regenerate.
2005-04-16 Kaveh R. Ghazi <>
* fopen_unlocked.c (unlock_stream): New.
Consolidate unlocking code into a helper function.
* functions.texi: Regenerate.
2005-04-13 Gabriel Dos Reis <>
* asprintf.c: Include config.h.
* basename.c: Likewise.
* fdmatch.c: Likewise.
* hex.c: Likewise.
* lbasename.c: Likewise.
* spaces.c: Likewise.
* xatexit.c:Likewise.
* Do check declarations for basename, ffs, asprintf
and vasprintf for real.
* configure: Regenerate.
2005-04-13 Gabriel Dos Reis <>
* argv.c (dupargv): Allocate space of argv[argc], not
sizeof(char *) of that amount. Cast result to char *.
2005-04-12 Gabriel Dos Reis <>
* regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
Replace not with negate.
2005-04-12 Gabriel Dos Reis <>
* Check declarations for basename, ffs, asprintf,
* configure: Regenerate.
* Likewise.
2005-04-11 Kaveh R. Ghazi <>
* (CFILES): Add fopen_unlocked.c.
(REQUIRED_OFILES): Add ./fopen_unlocked.o.
Regenerate dependencies.
* Check for stdio_ext.h and __fsetlocking.
* fopen_unlocked.c: New file.
* functions.texi, configure, Regenerate.
2005-04-04 Ian Lance Taylor <>
* testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
declaration before statement.
2005-04-02 Kaveh R. Ghazi <>
* bcmp.c: Fix warnings and implement using memcmp.
* bcopy.c: Fix warnings.
* bzero.c: Fix warnings and implement using memset.
* (ac_libiberty_warn_cflags): Add -Wwrite-strings
* configure, Regenerate.
* bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
warnings and reconcile interfaces with relevant standards.
2005-04-02 Ian Lance Taylor <>
* cp-demangle.c: Update copyright.
2005-03-31 Joseph S. Myers <>
* gettimeofday.c: Add "Supplemental" to @deftypefn.
* functions.texi: Regenerate.
2005-03-28 Ian Lance Taylor <>
* pex-common.c: New file.
* pex-one.c: New file.
* pexecute.c: New file.
* pex-common.h: Include <stdio.h>.
(struct pex_obj): Define.
(struct pex_funcs): Define.
(pex_init_common): Declare.
* pex-unix.c: Rewrite.
* pex-win32.c: Rewrite.
* pex-djgpp.c: Rewrite.
* pex-msdos.c: Rewrite.
* testsuite/text-pexecute.c: New file.
* pexecute.txh: Rewrite.
* Check for wait3 and wait4. Set CHECK to
really-check rather than check-cplus-dem.
* functions.texi: Rebuild.
* Rebuild dependencies.
(CFILES): Add pexecute.c, pex-common.c, pex-one.c.
(REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
* testsuite/ (really-check): New target.
(check-pexecute, test-pexecute): New targets.
* configure: Rebuild.
2005-03-28 Mark Kettenis <>
* unlink-if-ordinary.c: Include <sys/types.h>.
2005-03-27 Gabriel Dos Reis <>
Convert libiberty to use ISO C prototype style 7/n.
* regex.c (PARAMS): Remove definition.
(PREFIX): Unconditionaly define using ISO C ## operator.
(init_syntax_once, extract_number, extract_number_and_incr,
print_fastmap, print_partial_compiled_pattern,
print_compiled_pattern, print_double_string, printchar,
convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
regex_compile, store_op1, store_op2, insert_op1, insert_op2,
at_begline_loc_p, at_endline_p, group_in_compile_stack,
insert_space, wcs_compile_range, byte_compile_range,
truncate_wchar, re_compile_fastmap, re_compile_fastmap,
re_set_registers, re_search, re_search_2, re_search_3, re_match,
re_match_2, count_mbs_length, wcs_re_match_2_internal,
byte_re_match_2_internal, group_match_null_string_p,
alt_match_null_string_p, common_op_match_null_string_p,
bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
regexec, regerror, regfree): Use ISO C prototype style.
* partition.c: (elem_compare): Likewise.
* cp-demangle.c (print_usage): Likewise.
2005-03-27 Gabriel Dos Reis <>
Convert libiberty to use ISO C prototype style 5/n.
* random.c (srandom, initstate, setstate, random): Use ISO C
* putenv.c (putenv): Likewise.
* physmem.c (physmem_available, physmem_total, main): Likewise.
* pex-win32.c (fix_argv, pexecute, pwait): Likewise.
* pex-unix.c (pexecute, pwait): Likewise.
* pex-msdos.c (pexecute, pwait): Likewise.
* pex-djgpp.c (pexecute, pwait): Likewise.
* partition.c (partition_new, partition_delete, partition_union)
(elem_compare, partition_print): Likewise.
* obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
_obstack_allocated_p, _obstack_free, obstack_free,
_obstack_memory_used, print_and_abort, obstack_next_free,
obstack_object_size, obstack_base): Likewise. Remove codes
predicated on !defined(__STDC__).
* objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
objalloc_free_block): Use ISO C prototypes.
* mkstemps.c (mkstemps): Likewise.
* memset.c (memset): Likewise.
* mempcpy.c (mempcpy): Likewise.
* rename.c (rename): Likewise.
* rindex.c (rindex): Likewise.
* setenv.c (setenv, unsetenv): Likewise.
* sigsetmask.c (sigsetmask): Likewise.
* snprintf.c (snprintf): Likewise.
* sort.c (sort_pointers, xmalloc): Likewise.
* spaces.c (spaces): Likewise.
* splay-tree.c (splay_tree_delete_helper,
splay_tree_splay_helper, splay_tree_splay,
splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
splay_tree_new, splay_tree_xmalloc_allocate,
splay_tree_new_with_allocator, splay_tree_delete,
splay_tree_insert, splay_tree_remove, splay_tree_lookup,
splay_tree_max, splay_tree_min, splay_tree_predecessor,
splay_tree_successor, splay_tree_foreach,
splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
* stpcpy.c (stpcpy): Likewise.
* stpncpy.c (stpncpy): Likewise.
* strcasecmp.c (strcasecmp): Likewise.
* strchr.c (strchr): Likewise.
* strdup.c (strdup): Likewise.
2005-03-27 Gabriel Dos Reis <>
Convert libiberty to use ISO C prototype style 6/n.
* strerror.c (init_error_tables, errno_max, strerror, strerrno,
strtoerrno, main): Use ISO C prototype style.
* strncasecmp.c (strncasecmp): Likewise.
* strncmp.c (strncmp): Likewise.
* strndup.c (strndup): Likewise.
* strrchr.c (strrchr): Likewise.
* strsignal.c (init_signal_tables, signo_max, strsignal,
strsigno, strtosigno, psignal, main): Likewise.
* strstr.c (strstr): Likewise.
* strtod.c (strtod, atof): Likewise.
* strtol.c (strtol): Likewise.
* strtoul.c (strtoul): Likewise.
* ternary.c (ternary_insert, ternary_cleanup, ternary_search,
ternary_recursivesearch): Likewise.
* tmpnam.c (tmpnam): Likewise.
* unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
* vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
* vfork.c (vfork): Likewise.
* vfprintf.c (vfprintf): Likewise.
* vprintf.c (vprintf): Likewise.
* vsnprintf.c (vsnprintf, checkit, main): Likewise.
* vsprintf.c (vsprintf): Likewise.
* waitpid.c (waitpid): Likewise.
* xatexit.c (xatexit, xatexit_cleanup): Likewise.
* xexit.c (xexit): Likewise.
* xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
xcalloc, xrealloc): Likewise.
* xmemdup.c (xmemdup): Likewise.
* xstrdup.c (xstrdup): Likewise.
* xstrerror.c (xstrerror): Likewise.
* xstrndup.c (xstrndup): Likewise.
2005-03-27 Andreas Jaeger <>
* (ac_c_preproc_warn_flag): Remove -Wtraditional
* configure: Regenerated.
2005-03-27 Gabriel Dos Reis <>
* getopt1.c (getopt_long_only): Fix thinko.
2005-03-27 Gabriel Dos Reis <>
Convert libiberty to use ISO C prototype style 4/n.
* hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
htab_create_alloc, htab_set_functions_ex, htab_create,
htab_try_create, htab_delete, htab_empty,
find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
htab_find, htab_find_slot_with_hash, htab_find_slot,
htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
htab_traverse_noresize, htab_traverse, htab_collisions,
htab_hash_string, iterative_hash): Use ISO C prototype.
* hex.c (hex_init): Likewise.
* index.c (index): Likewise.
* insque.c (insque, remque): Likewise.
* lbasename.c (lbasename): Likewise.
* lrealpath.c (lrealpath): Likewise.
* make-relative-prefix.c (save_string, split_directories,
free_split_directories, make_relative_prefix): Likewise.
* make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
* md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
md5_buffer, md5_process_bytes, md5_process_block): Likewise.
* memchr.c (memchr): Likewise.
* memcpy.c (memcpy): Likewise.
* memmove.c (memmove): Likewise.
* gettimeofday.c (gettimeofday): Likewise.
* getruntime.c (get_run_time): Likewise.
* getpwd.c (getpwd, getpwd): Likewise.
* getpagesize.c (getpagesize): Likewise.
* getopt1.c (getopt_long, getopt_long_only, main): Likewise.
* getopt.c (my_index, exchange, _getopt_initialize,
_getopt_internal, getopt, main): Likewise.
* getcwd.c (getcwd): Likewise.
* fnmatch.c (fnmatch): Likewise.
* floatformat.c (floatformat_always_valid,
floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
put_field, floatformat_from_double, floatformat_is_valid,
ieee_test, main): Likewise.
* fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
fibheap_delete, fibheap_empty, fibheap_extr_min_node,
fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
fibheap_link, fibheap_cut, fibheap_cascading_cut,
fibnode_insert_after, fibnode_remove): Likewise.
* ffs.c (ffs): Likewise.
* fdmatch.c (fdmatch): Likewise.
* dyn-string.c (dyn_string_init, dyn_string_new,
dyn_string_delete, dyn_string_release, dyn_string_resize,
dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
dyn_string_insert_cstr, dyn_string_insert_char,
dyn_string_append, dyn_string_append_cstr,
dyn_string_append_char, dyn_string_substring, dyn_string_eq):
2005-03-27 Gabriel Dos Reis <>
Convert libiberty to use ISO C prototype style 3/n.
* cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
consume_count_with_underscores, code_for_qualifier,
qualifier_string, demangle_qualifier, cplus_demangle_opname,
cplus_mangle_opname, cplus_demangle_set_style,
cplus_demangle_name_to_style, cplus_demangle, grow_vect,
ada_demangle, internal_cplus_demangle, squangle_mop_up,
work_stuff_copy_to_from, delete_non_B_K_work_stuff,
delete_work_stuff, mop_up, demangle_signature,
demangle_method_args, demangle_template_template_parm,
demangle_expression, demangle_integral_value,
demangle_real_value, demangle_template_value_parm,
demangle_template, arm_pt, demangle_arm_hp_template,
demangle_class_name, demangle_class, iterate_demangle_function,
demangle_prefix, gnu_special, recursively_demangle, arm_special,
demangle_qualified, get_count, do_type, demangle_fund_type,
do_hpacc_template_const_value, do_hpacc_template_literal,
snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
register_Btype, remember_Btype, forget_B_and_K_types,
forget_types, demangle_args, demangle_nested_args,
demangle_function_name, string_need, string_delete, string_init,
string_clear, string_empty, string_append, string_appends,
string_appendn, string_prepend, string_prepends, string_prependn,
string_append_template_idx): Use ISO C prootype style.
* cp-demint.c (cplus_demangle_fill_component,
cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
cplus_demangle_v3_components): Likewise.
2005-03-26 Gabriel Dos Reis <>
Convert libiberty to use ISO C prototype style 2/n.
* cp-demangle.h: Remove uses of PARAMS.
* cp-demangle.c: Likewise.
(d_dump, cplus_demangle_fill_name,
cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
d_make_builtin_type, d_make_operator, d_make_extended_operator,
d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
cplus_demangle_mangled_name, has_return_type,
is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
d_prefix, d_unqualified_name, d_source_name, d_number,
d_identifier, d_operator_name, d_special_name, d_call_offset,
d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
d_function_type, d_bare_function_type, d_class_enum_type,
d_array_type, d_pointer_to_member_type, d_template_param,
d_template_args, d_template_arg, d_expression, d_expr_primary,
d_local_name, d_discriminator, d_add_substitution,
d_substitution, d_print_resize, d_print_append_char,
d_print_append_buffer, d_print_error, cplus_demangle_print,
d_print_comp, d_print_java_identifier, d_print_mod_list,
d_print_mod, d_print_function_type, d_print_array_type,
d_print_expr_op, d_print_cast, cplus_demangle_init_info,
d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
print_usage, main):
2005-03-26 Gabriel Dos Reis <>
Convert libiberty to ISO C prototype style 1/n.
* _doprnt.c: Remove conditional #include <varargs.h> on
ANSI_PROTOTYPES as the latter is always assumed.
(_doprnt, checkit, main): Use ISO C prototype.
* alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
* argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
(dupargv, freeargv, buildargv, main): Use ISO C prototype.
* atexit.c (atexit): Likewise
* asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
(asprintf): Use ISO C prototype.
* basename.c (basename): Likewise
* bcmp.c (bcmp): Likewise.
* bcopy.c (bcopy): Likewise.
* bzero.c (bzero): Likewise.
* bsearch.c (bsearch): Likewise. Improve const-correctness.
* choose-temp.c (choose_temp_base): Likewise.
* calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
(calloc): Use ISO C prototype.
* clock.c (clock): Likewise.
* concat.c: Remove conditional #include on ANSI_PROTOTYPES.
(vconcat_length, vconcat_copy, concat_length, concat_copy,
concat_copy2, concat, reconcat, main): Use ISO C prototype.
* copysign.c (copysign): Likewise.
2005-03-24 Kaveh R. Ghazi <>
* (CFILES): Add strndup.c and xstrndup.c.
(REQUIRED_OFILES): Add xstrndup.o.
(CONFIGURED_OFILES): Add strndup.o.
Regenerate dependencies.
* (funcs, AC_CHECK_FUNCS): Add strndup.
* strndup.c, xstrndup.c: New.
*, configure, functions.texi: Regenerate.
2005-03-24 Kaveh R. Ghazi <>
* xmemdup.c, xstrdup.c: Expose the tail call.
2005-03-09 Mark Mitchell <>
* (funcs): Add gettimeofday.
* configure: Regenerated.
* gettimeofday.c: New file.
* (CFILES): Add gettimeofday.
(CONFIGURED_OFILES): Add gettimeofday.o.
(./gettimeofday.o): New rule.
2005-03-09 Ian Lance Taylor <>
* pex-os2.c: Remove.
* Remove *-*-os2-emx* case when setting pexecute.
* (CFILES): Remove pex-os2.c.
(CONFIGURED_OFILES): Remove pex-os2.o.
(pex-os2.o): Remove target.
* configure: Rebuild.
2005-03-07 Ian Lance Taylor <>
* Remove.
* mpw-make.sed: Remove.
* mpw.c: Remove.
* (CFILES): Remove pex-mpw.c.
(CONFIGURED_OFILES): Remove pex-mpw.o.
(mpw.o, pex-mpw.o): Remove targets.
* maint-tool (undoc): Remove reference to mpw.c.
2005-03-06 DJ Delorie <>
* (target_header_dir): vfork is a stub under djgpp.
* configure: Regenerated.
2005-03-01 Jan Beulich <>
* (CFILES): Add unlink-if-ordinary.c
(REQUIRED_OFILES): Add unlink-if-ordinary.o.
Add dependencies and rule for unlink-if-ordinary.o.
* unlink-if-ordinary.c: New.
2005-03-01 Ben Elliston <>
* hashtab.c (htab_find_slot_with_hash): Make function
documentation clearer.
2005-02-13 Jason Merrill <>
* cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
2005-01-11 Tobias Schl"uter <>
* hex.c (hex_value): Group 'unsigned int' together to get correct
* functions.texi: Regenerated.
2004-12-27 H.J. Lu <>
* Undo to 2004-12-17.
* aclocal.m4: Likewise.
* config.table: Likewise.
* Likewise.
* maint-tool: Likewise.
* configure: Likewise.
2004-12-19 H.J. Lu <>
PR bootstrap/19072
* (enable_shared): New substitute.
(CCLD): New.
(LINK): New.
($(TARGETLIB)): Use $(LINK) to create libraries and create
targets by hand.
($(TESTLIB)): Likewise.
(mostlyclean): Don't remove .libs. Remove the libtool object
* config.table (enable_shared): Removed.
* (enable_static): Set to yes.
(AM_DISABLE_SHARED): Uncommented.
(AM_PROG_LIBTOOL): Likewise.
(LIBOBJS): Add `./' to avoid VPATH.
(LTLIBOBJS): Likewise.
(enable_shared): Substitute.
* configure: Regenerated.
2004-12-18 H.J. Lu <>
* (top_builddir): Set to `.'.
(all): Remove stamp-picdir.
(.c.lo): New rule.
($(TARGETLIB)): Check .libs for PIC object files. Depend on
(stamp-picdir): Completely removed.
(maint-missing): Pass $(REQUIRED_LTOFILES)
(maint-buildall): Depend on $(REQUIRED_LTOFILES)
(mostlyclean): Also remove *.lo .libs.
Run "make maint-deps".
* aclocal.m4: Include ../libtool.m4.
* config.table: Don't check --enable-shared.
(AC_PROG_CC_C_O): Removed.
(NO_MINUS_C_MINUS_O): Removed.
(ltpexecute): New substitute.
(LIBOBJS): Cleanup.
* configure: Regenerated.
* maint-tool: Updated for .lo/libtool.
2004-12-11 Ben Elliston <>
* Invoke AC_CHECK_SIZEOF for sizeof (int).
* configure: Regenerate.
* Likewise.
2004-12-07 DJ Delorie <>
* splay-tree.c (splay_tree_delete_helper): Redesign the logic so
that recursion (and thus large stack space) is not needed.
2004-11-29 Matt Kraai <>
* pex-unix.c: Fix the spelling of longjmp.
2004-11-23 Ian Lance Taylor <>
PR other/18623
* cp-demangle.c (d_call_offset): Remove useless local variables
offset and virtual_offset.
* cplus-dem.c (ada_demangle): Remove useless local variable
(demangle_template): Remove useless local variable start.
2004-11-19 Roger Sayle <>
* objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
"ansidecl.h" to avoid redeclaration errors with native compilers.
* regex.c: Protect config.h from multiple inclusion.
2004-11-12 Mike Stump <>
* (libiberty.html): Fix html generation.
2004-09-08 Adam Nemet <>
* vasprintf.c: Accept __va_copy in addition to va_copy.
2004-09-03 Paolo Bonzini <>
* configure: Regenerate.
2004-09-02 Paolo Bonzini <>
* Do not enable multilibs for build-side libiberty.
2004-06-29 Danny Smith <>
* lrealpath.c (lrealpath): Add _WIN32 support.
2004-06-28 Zack Weinberg <>
* cp-demangle.h: Declare cplus_demangle_operators,
cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
cplus_demangle_type as static if IN_GLIBCPP_V3.
2004-06-28 Ian Lance Taylor <>
PR other/16240
* cp-demangle.c (d_expr_primary): Check for a failure return from
* testsuite/demangle-expected: Add test case.
2004-05-31 Danny Smith <>
* pex-win32.c (fix_argv): Expand comment.
2004-05-25 Daniel Jacobowitz <>
2004-04-29 Douglas B Rupp <>
* mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
2004-04-26 Maciej W. Rozycki <>
* (UNSIGNED_64BIT_TYPE): Unquote the definition.
* configure: Regenerate.
2004-04-22 Richard Henderson <>
* hashtab.c: Include limits.h, stdint.h, ansidecl.h.
(CHAR_BIT): Provide default.
(struct prime_ent, prime_tab): New.
(higher_prime_index): Rename from higher_prime_number, return index.
(htab_mod_1): New.
(htab_mod, htab_mod_m2): Use it.
(htab_create_alloc, htab_create_alloc_ex): Store prime index.
(htab_expand): Likewise.
* Check for stdint.h.
(UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
*, configure: Rebuild.
2004-04-13 Ian Lance Taylor <>
* strerror.c: Include config.h, and redefine sys_nerr and
sys_errlist, before including ansidecl.h and libiberty.h.
2004-04-13 Jeff Law <>
* hashtab.c (htab_remove_elt_with_hash): New function.
(htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
2004-03-31 Richard Henderson <>
* hashtab.c (htab_size): Move to top of file; mark inline.
(htab_elements): Likewise.
(htab_mod, htab_mod_m2): New.
(htab_delete): Refactor htab->size and htab->entries.
(htab_empty): Likewise.
(find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
(htab_find_with_hash, htab_find_slot_with_hash): Likewise.
(htab_clear_slot): Use htab_size, htab_elements.
(htab_traverse_noresize, htab_traverse): Likewise.
2004-03-17 Ian Lance Taylor <>
* pex-unix.c (pexecute): Use vfork instead of fork, with
appropriate changes to make this safe.
* pex-common.h (STDERR_FILE_NO): Define.
an 80 column screen. Run maint-deps.
2004-03-09 Kelley Cook <>
* Bump version to 2.59. Apply suggested autoupdates.
* acconfig.h: Delete redundant file.
* Regenerate.
* configure: Regenerate.
2004-03-09 Hans-Peter Nilsson <>
* configure: Regenerate for config/accross.m4 correction.
2004-03-07 Andreas Jaeger <>
* testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
(main): Initialize style.
2004-02-24 Ian Lance Taylor <>
* cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
* cp-demangle.c (cplus_demangle_builtin_types): Change char and
short types to D_PRINT_DEFAULT. Change other integer types to use
new D_PRINT_* values where appropriate. Change float types to
(d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
* testsuite/demangle-expected: Adjust two test cases.
* cp-demangle.c (d_print_function_type): Print a space before the
parenthesis around the function type in more cases.
* testsuite/demangle-expected: Adjust one test case.
* cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
parentheses around a cast.
* testsuite/demangle-expected: Adjust two test cases to match new
* cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
* cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
push more than one of the same CV-qualifier on the top of the
(d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
move the CV-qualifiers to apply to the element type instead.
(d_print_array_type): When checking the modifiers, keep looking
past ones which have been printed already.
* testsuite/demangle-expected: Add three test cases.
2004-02-23 Ian Lance Taylor <>
* cp-demangle.c (__cxa_demangle): Adjust last patch to handle
empty string correctly.
* cp-demangle.c (__cxa_demangle): It is not an error if status is
not NULL. It is an error if the mangled name is the same as a
built-in type name.
(main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
than cplus_demangle_v3.
* dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
the associated #define of RETURN_ON_ALLOCATION_FAILURE.
2004-02-16 Matt Kraai <>
* regex.c: Include <ansidecl.h>.
(regcomp): Cast i to int.
(regerror): Add ATTRIBUTE_UNUSED to parameter preg.
2004-01-25 Ian Lance Taylor <>
* Add m4_pattern_allow(LIBOBJS).
* configure: Regenerate.
2004-01-22 DJ Delorie <>
* Convert to ./ throughout. Rebuild dependencies
with explicit build rules.
(VPATH): Remove.
(.c.o): Poison.
* (pexecute, LIBOBJS): Add ./ .
* maint-tool: Build dependencies with explicit rules.
2004-01-15 Kazu Hirata <>
* strdup.c (strdup): Constify the argument.
2004-01-14 Loren J. Rittle <>
* (distclean): Remove config.cache.
2004-01-13 Daniel Jacobowitz <>
takes two parameters.
* cp-demint.c (cplus_demangle_fill_component): Likewise.
2004-01-12 Ian Lance Taylor <>
* cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
defined, rename some functions which are to become static via
(struct d_operator_info): Move definition to cp-demangle.h, and
rename to demangle_operator_info. Change all uses.
(enum d_builtin_type_print): Move definition to cp-demangle.h.
(struct d_builtin_type_info): Move definition to cp-demangle.h,
and rename to demangle_builtin_type_info. Change all uses.
(enum d_comp_type): Move definition to include/demangle.h, and
rename to demangle_component_type, and change all enums to start
with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
(struct d_comp): Move definition to include/demangle.h, and rename
to demangle_component. Change all uses.
(struct d_info): Move definition to cp-demangle.h.
(cplus_demangle_fill_name): New function.
(cplus_demangle_fill_extended_operator): New function.
(cplus_demangle_fill_ctor): New function.
(cplus_demangle_fill_dtor): New function.
(d_make_empty): Remove type parameter. Change all callers.
(d_make_name): Use cplus_demangle_fill_name.
(d_make_extended_operator): Use
(d_make_ctor): Use cplus_demangle_fill_ctor.
(d_make_dtor): Use cplus_demangle_fill_dtor.
(cplus_demangle_mangled_name): Rename from d_mangled_name. Make
non-static by default. Change all callers.
(cplus_demangle_operators): Rename from d_operators. Change all
uses. Make non-static by default. Add sentinel at end of array.
(d_operator_name): Adjust initialization of high for new sentinel
in cplus_demangle_operators.
(cplus_demangle_builtin_types): Rename from d_builtin_types.
Change all uses. Make non-static by default. Change initializer
to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
(cplus_demangle_type): Rename from d_type. Make non-static by
default. Change all callers.
(cplus_demangle_init_info): Rename from d_init_info. Make
non-static by default. Change all callers.
* cp-demangle.h: New file.
* cp-demint.c: New file.
* Rebuild dependencies.
(CFILES): Add cp-demint.c.
(REQUIRED_OFILES): Add cp-demint.o.
2004-01-09 Kelley Cook <>
* Rename file to ...
* ... this.
* Update a comment for above change.
* README: Likewise.
* Regenerate.
2004-01-02 Ian Lance Taylor <>
* cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
* cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
demangling template parameters.
* testsuite/test-demangle.c (fail): New static function.
(main): Support new options in input file: --no-params,
--is-v3-ctor, and --is-v3-dtor.
* testsuite/demangle-expected: Add --no-params to most tests, and
add the correct result when parameters are not demangled. Add
some simple tests for V3 constructor/destructor recognition.
2003-12-25 Kaveh R. Ghazi <>
* cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
2003-12-22 Daniel Jacobowitz <>
PR debug/13272
* (lbasename.o): Depend on filenames.h.
* lbasename.c: Include "filenames.h" instead of defining
its macros locally.
2003-12-22 Ian Lance Taylor <>
* cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
dynamic arrays.
(struct d_operator_info): Add len field.
(struct d_builtin_type_info): Add len and java_len fields.
(struct d_standard_sub_info): Add simple_len, full_len, and
set_last_name_len fields.
(struct d_comp): Add len field to s_string.
(struct d_info): Add send, did_subs, and expansion fields.
(d_append_string_constant): Define.
(d_append_string): Remove. Change all users to use
d_append_string_constant or d_append_buffer instead.
(d_make_sub): Add len parameter. Change all callers.
(d_name): Increase expansion when substituting std::.
(d_unqualified_name): Increase expansion for an operator.
(d_number): Don't use multiplication for negative numbers.
(d_identifier): Make sure there are enough characters in the
string for the specified length. Adjust expansion for an
anonymous namespace.
(d_operators): Initialize len field.
(d_special_name, d_ctor_dtor_name): Increase expansion.
(d_builtin_types): Initialize len and java_len fields.
(d_type): Increase expansion for a builtin type.
(d_cv_qualifiers): Increase expansion for each qualifier.
(d_bare_function_type): Decrease expansion when removing single
void parameter.
(d_template_param): Increment did_subs.
(d_expression): Increase expansion for an operator.
(d_expr_primary): Decrease expansion for a type we will print
(standard_subs): Initialize new fields.
(d_substitution): Increment did_subs when doing a normal
substitution. Increase expansion for a special substitution.
(d_print): Add estimate parameter. Change all callers.
(d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
(d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
(d_print_java_identifier): Rename from d_print_identifier. Handle
only Java case. Change caller.
(d_init_info): Change return type to void. Change all callers.
Initialize send, did_subs, and expansion fields. Do not
initialize comps and subs fields.
(d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
arrays on stack. Make an estimate of the length of the demangled
name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
(is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
subs arrays on stack.
2003-12-20 Ian Lance Taylor <>
* cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
after the identifier.
* testsuite/demangle-expected: Add test case.
2003-12-19 Ian Lance Taylor <>
Fix for PR c++/13447:
* cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
(d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
(is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
(is_ctor_or_dtor): Likewise.
(d_local_name): Use D_COMP_LOCAL_NAME rather than
(d_print_comp) [D_COMP_LOCAL_NAME]: New.
(d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
(d_print_mod_list): Handle D_COMP_LOCAL_NAME.
* testsuite/demangle-expected: Add two test cases.
* cp-demangle.c (d_print_function_type): Clear the global modifier
list when printing the modifiers, not just when printing the
function parameters.
* testsuite/demangle-expected: Add two test cases.
2003-12-15 Ian Lance Taylor <>
* cp-demangle.c (d_print_function_type): Print the function
parameters with no modifiers.
* testsuite/demangle-expected: Add test case.
* cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
expect that we've read the entire string.
(is_ctor_or_dtor): Don't expect that we've read the entire
string--reverse patch of 2003-11-29.
2003-12-15 Brendan Kehoe <>
* libiberty/ (floatformat.o): Add dependency on
config.h to accompany change of 2003-12-03.
2003-12-15 Ian Lance Taylor <>
Fix handling of constructor/destructor of standard substitution:
* cp-demangle.c (struct d_standard_sub_info): Define.
(d_substitution): Add prefix argument. Change all callers.
Rework handling of standard substitutions to print full name when
qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
* testsuite/demangle-expected: Add test case.
Fix handling of negative literal constants:
* cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
(d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
(d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
(d_print_comp): Handle D_COMP_LITERAL_NEG.
* testsuite/demangle-expected: Add test case.
2003-12-04 Ian Lance Taylor <>
* cp-demangle.c (IS_UPPER, IS_LOWER): Define.
(d_last_char): Define new macro.
(d_make_name): Reject an empty name.
(d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
(d_substitution, d_print_identifier): Likewise.
(d_print_comp) [D_COMP_OPERATOR]: Likewise.
(d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
(d_print_mod) Use new d_last_char macro.
(d_print_cast): Use new d_last_char macro.
(is_ctor_or_dtor): Don't leak memory.
Fix handling of member function modifiers:
* cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
(d_dump): Dump new d_comp_type values.
(d_make_comp): Accept new d_comp_type values.
(has_return_type): Only accept _THIS variants of qualifiers.
(d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
(d_cv_qualifiers): Add member_fn parameter. Change all callers.
(d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
qualifiers and printing them at the end, add _THIS qualifiers to
the modifier list.
(d_print_comp) [D_COMP_*_THIS]: New cases.
(d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
(d_print_mod_list): Add suffix parameter. Change all callers.
Keep walking the list even if the current modifier has been
(d_print_mod): Handle new _THIS qualifiers.
(d_print_function_type): Handle new _THIS qualifiers when deciding
whether to print a parenthesis. Put a space before the
parenthesis in some cases. Call d_print_mod_list again at the
end, passing suffix as 1.
(is_ctor_or_dtor): Look for new _THIS qualifiers.
* testsuite/demangle-expected: Add test case.
Fix for PR gcc/13304:
* cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
before the '<' is itself a '<', insert a space.
(d_print_cast): Likewise.
* testsuite/demangle-expected: Add test case.
Fix for PR gcc/13244:
* cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
which uses the '>' operator in an extra layer of parens.
* testsuite/demangle-expected: Add test case.
2003-12-03 Ian Lance Taylor <>
* floatformat.c: Include "config.h" and <string.h> if available.
(INFINITY, NAN): Define if not defined by <math.h>.
(floatformat_to_double): Handle NaN, infinity, and denormalized
(floatformat_from_double): Likewise.
(ieee_test): In debugging code, use little endian rather than big
endian. Correct tests to handle NaN and to check correct sign of
zero. Omit m68k extended test.
(main): Add more debugging cases.
2003-11-29 Ian Lance Taylor <>
* cp-demangle.c (d_demangle): Only return success if we consumed
the entire demangled string.
(is_ctor_or_dtor): Likewise.
* testsuite/demangle-expected: Revert one part of 2003-06-26 patch
to restore expected result of EDG test case to original expected
2003-11-26 Ian Lance Taylor <>
* cp-demangle.c (struct d_print_mod): Add templates field.
(d_make_builtin_type): Check for NULL type.
(d_make_extended_operator): Check for NULL name.
(d_make_ctor, d_make_dtor): Likewise.
(d_mangled_name): Add top_level parameter. Change all callers.
(d_encoding): If DMGL_PARAMS is not set, strip off initial
(d_type): Check some return values we rely on.
(d_bare_function_type, d_array_type): Likewise.
(d_pointer_to_member_type, d_template_args): Likewise.
(d_add_substitution): Fail if argument is NULL.
(d_print_resize): Check whether buf is NULL.
(d_print_comp): Save current templates list with each modifier.
Don't pass the modifier list down when printing a template.
(d_print_cast): Don't pass the modifier list down when printing a
(d_print_mod_list): Temporarily set templates list while printing
a modifier.
(d_print_mod): Check that buf is not NULL before using it.
(d_print_function_type): Print parens if there is no modifier.
(d_init_info): Permit as many substitutions as there are
characters in the mangled name.
* testsuite/demangle-expected: Add two new test cases.
2003-11-25 Ian Lance Taylor <>
* cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
2003-11-22 Ian Lance Taylor <>
* cp-demangle.c (d_encoding): Add top_level parameter. Change all
(print_usage): Display new -p option.
(long_options): Add --no-params.
(main): Accept and handle -p.
2003-11-21 Ian Lance Taylor <>
* cp-demangle.c (has_return_type): Skip qualifiers when checking
whether we have a template.
* testsuite/demangle-expected: Add four new tests.
2003-11-20 Ian Lance Taylor <>
* testsuite/demangle-expected: Minor changes to match output of
new demangler: adjust whitespace in four tests, and change order
of qualifiers in one test.
* cp-demangle.c: Complete rewrite.
2003-11-19 Mark Mitchell <>
* cp-demangle.c (demangle_type): Correct thinko in substitution
2003-11-18 Ian Lance Taylor <>
* cp-demangle.c (demangle_operator_name): Remove space before
(demangle_type_ptr): Put qualifiers in the right place. Handle
qualifiers in pointer to member specially.
(demangle_type): Handle qualifiers for pointer or reference
specially. Handle function type.
(demangle_local_name): Save and restore caret around demangling of
initial encoding.
* testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
* testsuite/ (test-demangle): Depend upon libiberty.a.
2003-10-31 Andreas Jaeger <>
* floatformat.c (floatformat_always_valid): Add unused attribute.
2003-10-30 Josef Zlomek <>
Jan Hubicka <>
* vasprintf.c (int_vasprintf): Pass va_list by value.
Use va_copy for copying va_list.
(vasprintf): Pass va_list by value.
2003-10-30 Josef Zlomek <>
* hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
instead of increasing n_elements when inserting to deleted slot.
2003-10-20 J. Brobecker <>
* cplus-dem.c (demangle_template): Register a new Btype only
when needed.
* testsuite/demangle-expected: Add a new test.
2003-10-16 H.J. Lu <>
* testsuite/demangle-expected: Update the expected output of
2003-10-02 Daniel Jacobowitz <>
* strerror.c: Revert last change. Declare static sys_nerr
and sys_errlist using different names.
2003-10-01 Daniel Jacobowitz <>
* strerror.c: Don't provide or reference sys_errlist if
strerror is available.
2003-10-01 H.J. Lu <>
* Check if $MAKEINFO is missing.
* configure: Regenerated.
2003-09-24 Daniel Jacobowitz <>
* configure: Regenerated.
2003-09-22 Andrew Cagney <>
* floatformat.c (floatformat_i387_ext_is_valid): New function.
(floatformat_always_valid): New function.
(floatformat_i387_ext): Initialize new "is_valid" field to
(floatformat_ieee_single_little): Initialize "is_valid" field to
(floatformat_ieee_double_big): Ditto.
(floatformat_ieee_double_little): Ditto.
(floatformat_ieee_double_little): Ditto.
(floatformat_ieee_double_littlebyte_bigword): Ditto.
(floatformat_i960_ext): Ditto.
(floatformat_m88110_ext): Ditto.
(floatformat_m88110_harris_ext): Ditto.
(floatformat_arm_ext_big): Ditto.
(floatformat_arm_ext_littlebyte_bigword): Ditto.
(floatformat_ia64_spill_big): Ditto.
(floatformat_ia64_spill_little): Ditto.
(floatformat_ia64_quad_big): Ditto.
(floatformat_ia64_quad_little): Ditto.
(floatformat_ia64_quad_little): Ditto.
(floatformat_is_valid): Call "is_valid".
2003-09-15 Andrew Cagney <>
* floatformat.c (get_field): Make "data" constant.
(floatformat_is_valid, floatformat_to_double): Make "from"
constant, fix casts.
(floatformat_from_double): Make "from" constant.
2003-09-15 Daniel Jacobowitz <>
* floatformat.c (floatformat_is_valid): New function.
(get_field, put_field): Correct comments.
2003-09-06 Josef Zlomek <>
* fibheap.c (fibheap_replace_key_data): Change type of OKEY to
2003-09-02 John David Anglin <>
PR bootstrap/12100
* aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
* configure: Rebuilt.
2003-08-27 Daniel Jacobowitz <>
* aclocal.m4: Include acx.m4 and no-executables.m4.
(LIB_AC_PROG_CC): Remove.
Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
performing link tests.
* configure: Regenerated.
2003-08-12 Nathanael Nerode <>
* cp-demangle.c: Clarify what package(s) this is part of.
2003-07-05 Danny Smith <>
* pex-win32.c (pexecute): Mark parameters this_pname and
temp_base as unused. Remove unused variables retries,
sleep_interval. Initialize org_stdin, org_stdout.
(pwait): Mark parameter flags as unused.
2003-07-02 Danny Smith <>
* pex-win32.c (fix_argv): Ensure that the executable pathname
uses Win32 backslashes.
(pexecute): Cast away constness when assigning *errmsg_arg.
2003-06-26 H.J. Lu <>
* testsuite/demangle-expected: Add more GNU V3 testcases.
2003-06-22 Zack Weinberg <>
Add documentation in form expected by gather-docs.
* hex.c: Use HOST_CHARSET, not hand-coded check of character set.
*, functions.texi: Regenerate.
2003-06-21 Zack Weinberg <>
* safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
for charset determination.
2003-06-19 Dara Hazeghi <>
* Add check for malloc.h needed by
m68k for function free().
* configure: Regenerated.
* hashtab.c: include malloc.h were available for
2003-06-09 Albert Chin-A-Young <>
PR bootstrap/10974
* physmem.c: Update comment.
* Modify test for _system_configuration for older
AIX systems.
*, configure: Regenerated.
2003-06-05 John David Anglin <>
PR other/10810
* test-demangle.c (getline): Fix fence-post error.
2003-06-03 Nick Clifton <>
* asprintf.c: Change comment to note that -1 is returned upon
* vasprintf.c: Likewise.
(vasprintf): Return -1 upon error.
* functions.texi: Document changes to asprintf and vasprintf.
2003-05-19 Kelley Cook <>
* config.table: Accept i[345867]86 variant.
2003-05-15 Jim Blandy <>
* hex.c (_hex_value): Make this unsigned.
(hex_value): Update documentation for new return type. hex_value
now expands to an unsigned int expression, to avoid unexpected
sign extension when we store it in a bfd_vma, which is larger than
int on some platforms.
* functions.texi: Regenerated.
2003-05-07 Josef Zlomek <>
* splay-tree.c (splay_tree_predecessor): Fix comment.
(splay_tree_successor): Fix comment.
2003-05-07 Jason Merrill <>
* hashtab.c (iterative_hash): New fn.
* aclocal.m4: Include accross.m4.
* configure, Regenerate.
2003-05-04 Kaveh R. Ghazi <>
* (AC_CHECK_FUNCS): Don't make multiple calls.
* configure: Regenerate.
2003-05-03 Carlo Wood <>
* cp-demangle.c: Fix typo in "char_traints" string-literal.
2003-04-22 Kaveh R. Ghazi <>
* vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
(main): Test that we don't write too much data.
2003-04-16 Kaveh R. Ghazi <>
* (funcs, AC_CHECK_FUNCS): Add snprintf and
* snprintf.c, vsnprintf.c: New files.
* (CFILES): Add snprintf.c and vsnprintf.c.
(CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
Regenerate dependencies.
* functions.texi, configure, Regenerated.
2003-04-15 Kaveh R. Ghazi <>
* mempcpy.c, stpcpy.c, stpncpy.c: New files.
* (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
and stpncpy.
* (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
(CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
Regenerate dependencies.
* functions.texi, configure, Regenerated.
2003-04-15 Kaveh R. Ghazi <>
* argv.c: Fix comments.
* calloc.c: Don't unnecessarily include "libiberty.h".
(bzero): Add prototype.
* floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
* getcwd.c (getcwd): Use standard definition to avoid conflicts
with system headers.
* hashtab.c (htab_traverse): Delete unused variables.
* rename.c: Include "ansidecl.h".
(rename): Use standard definition to avoid conflicts with system
* strsignal.c: Rely on ANSI_PROTOTYPES.
* strstr.c: Check GNUC >= 2, not GNUC == 2.
* vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
* vprintf.c: Include "ansidecl.h" earlier, rely on
* vsprintf.c: Include "ansidecl.h" earlier, rely on
ANSI_PROTOTYPES and possibly include <stdarg.h>.
* Regenerate dependencies.
2003-04-15 DJ Delorie <>
* maint-tool (deps): Scan for headers in $srcdir also.
2003-04-15 Kaveh R. Ghazi <>
PR target/10338
PR bootstrap/10198
PR bootstrap/10140
* getopt.c (exchange, _getopt_initialize): Use mempcpy not
* regex.c (regerror): Likewise.
2003-04-14 Roger Sayle <>
* argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
* memchr.c: Likewise.
* strcasecmp.c: Likewise.
* strncasecmp.c: Likewise.
* strncmp.c: Likewise.
* xatexit.c: Likewise.
* xmalloc.c: Likewise.
* copysign.c: Use traditional function declaration instead of DEFUN.
* sigsetmask.c: Likewise.
* memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
* memset.c: Likewise.
* memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
* memmove.c: Likewise.
2003-04-14 Roger Sayle <>
* strdup.c (strdup): Tweak implementation to use memcpy.
2003-04-14 Kaveh R. Ghazi <>
* (HAVE_UINTPTR_T): Always define.
* configure: Regenerated.
2003-03-23 Alexandre Oliva <>
* (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
instead of $$CC alone.
(install_to_tooldir): Use it.
2003-17-03 Jan Hubicka <>
* hashtab.c (htab_traverse_noresize): Break out from ...
* hashtab.c (htab_traverse): ... here.
2003-12-03 Jan Hubicka <>
* hashtab.c (htab_expand): Fix warning.
* hashtab.c (htab_expand): Compute the size of hashtable based
on the number of elements actually used.
(htab_traverse): Call htab_expand when table is too empty.
2003-03-11 Carlo Wood <>
* cplus-dem.c (demangle_integral_value): Correction to reflect
patch of 2002-01-10 in order to also make negative multi-digits
without leading underscore work.
2003-03-03 Mark Mitchell <>
* cplus-dem.c: Add license exception to copyright notice.
2003-02-27 Kaveh R. Ghazi <>
* physmem.c: Formatting changes from upstream.
2003-02-24 Danny Smith <>
* physmem.c (physmem_total): Add _WIN32 support.
(physmem_available): Likewise.
2003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
(physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
2003-02-22 Kaveh R. Ghazi <>
* Check for sys/systemcfg.h and
* physmem.c: Add support for AIX. Tweek formatting as per
upstream coreutils beta.
2003-02-22 Kaveh R. Ghazi <>
Richard Earnshaw <>
Geoffrey Keating <>
* Check for sys/sysctl.h and sysctl.
* physmem.c: Add support for *bsd and darwin.
* Generate depedency for physmem.o.
2003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
Tru64 UNIX.
(physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
Tru64 UNIX.
* (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
machine/hal_sysinfo.h, sys/table.h.
(checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
* configure, Regenerate.
2003-02-21 Kaveh R. Ghazi <>
* Check for sys/sysmp.h and sysmp.
* physmem.c: Pull upstream copy, add support for irix6.
*, configure: Regenerated.
2003-02-21 Kaveh R. Ghazi <>
* physmem.c (physmem_total, physmem_available): De-ANSI-fy.
* (AC_CHECK_FUNCS): Add pstat_getstatic and
2003-02-20 Kaveh R. Ghazi <>
* (CFILES): Add physmem.c.
(REQUIRED_OFILES): Add physmem.o.
* Check for sys/pstat.h.
(checkfuncs): Add pstat_getstatic and pstat_getdynamic.
* physmem.c: New file, copied from textutils.
*, configure: Regenerated.
2003-02-20 Daniel Jacobowitz <>
* (CFILES): Add lrealpath.c.
(REQUIRED_OFILES): Add lrealpath.o.
(lrealpath.o): Add rule.
* aclocal.m4 (libiberty_NEED_DECLARATION): Add.
* Add realpath and canonicalize_file_name to
checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
for canonicalize_file_name.
* lrealpath.c: New file.
* make-relative-prefix.c: Update documentation.
(make_relative_prefix): Simplify. Use lbasename and lrealpath.
* Regenerated.
* configure: Regenerated.
* functions.texi: Regenerated.
2003-02-20 jmc <>
* cplus_dem.c: Fix typo: intializes -> initializes.
2003-02-20 Alexandre Oliva <>
* configure: Rebuilt.
2003-02-13 Daniel Jacobowitz <>
Fix PR c++/7612.
* cplus-dem.c (demangle_signature): Call string_delete.
Remove extra string_init.
(demangle_arm_hp_template): Call string_delete instead of
string_clear. Add missing string_delete call.
(demangle_qualified): Add missing string_delete call.
(do_type): Remove unused variable btype. Add missing string_delete
call. Call string_delete instead of string_clear.
(demangle_fund_type): Move variable btype inside of the switch
statement. Add missing string_delete call.
(do_arg): Call string_delete instead of string_clear. Remove extra
(demangle_nested_args): Free work->previous_argument.
2003-02-12 Kaveh R. Ghazi <>
* acconfig.h: New file. Add uintptr_t.
* Regenerated.
2003-02-04 Joseph S. Myers <>
* libiberty.texi: Update to GFDL 1.2.
2003-01-30 Christian Cornelssen <>
* (libiberty_topdir): New subst.
(mkinstalldirs): Redefine in terms of the above.
* AC_SUBST it.
* configure: Regenerate.
2003-01-28 Christian Cornelssen <>
* (all-subdir, check-subdir, installcheck-subdir)
(info-subdir, install-info-subdir, clean-info-subdir)
(dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
(clean-subdir, distclean-subdir, maintainer-clean-subdir):
2003-01-27 Alexandre Oliva <>
* (install_to_tooldir): Instead of $(MULTISUBDIR), use
/`$$CC -print-multi-os-directory`.
2003-01-26 Daniel Jacobowitz <>
* hashtab.c (htab_create_alloc_ex): New function.
(hatab_set_functions_ex): New function.
(htab_delete, htab_expand): Support alternate allocation functions.
2003-01-24 Christopher Faylor <>
* Remove special pex-cygwin consideration.
* configure: Regenerate.
* pex-cygwin.c: Remove.
* Remove pex-cygwin.[co] lines.
2003-01-24 Zack Weinberg <>
* (CFILES): Add pex-*.c.
(REQUIRED_OFILES): Change pexecute.o to @pexecute@
(TEXIFILES): Add pexecute.txh.
(pexecute.o): Delete rule.
(pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
pex-unix.o, pex-win32.o): New rules.
* Change AC_INIT argument to xmalloc.c.
Compute appropriate pexecute implementation and substitute it
as @pexecute@.
* pexecute.c: Split up into...
* pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
new files.
* functions.texi: Regenerate.
* configure: Regenerate.
2003-01-20 Josef Zlomek <>
* hashtab.c (htab_expand): Fix allocation of new entries.
2003-01-09 Christian Cornelssen <>
* (install_to_libdir, install_to_tooldir): Add a
mkinstalldirs command.
2002-12-04 Danny Smith <>
* make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
Define for hosts with HOST_EXECUTABLE_SUFFIX.
2002-11-24 Nick Clifton <>
* make-relative-prefix.c (make_relative_prefix): Ensure return
string is empty before using strcat to construct it.
2002-11-22 Daniel Jacobowitz <>
* Add make-relative-prefix.c.
* make-relative-prefix.c: New file.
* functions.texi: Rebuilt.
2002-11-16 Jakub Jelinek <>
* md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
used with arguments in traditional C' warnings.
2002-10-16 Jakub Jelinek <>
* config.table: Use mh-s390pic for s390x too.
2002-10-06 Andreas Jaeger <>
* libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
variable and of strict-aliasing warning.
(grow_vect): Use char as first parameter.
2002-09-22 Kaveh R. Ghazi <>
* (all): Fix multilib parallel build.
2002-09-19 John David Anglin <>
* cp-demangle.c (demangling_new): Cast 0 to enum.
(demangle_char): Cast return of strdup to char *.
(is_gnu_v3_mangled_ctor): Cast 0 to enum.
(is_gnu_v3_mangled_dtor): Likewise.
* cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
(work_stuff_copy_to_from): Cast return of xmalloc to char **.
* fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
* md5.c (md5_process_bytes): Cast results back to const void *.
(md5_process_block): Add cast to const md5_uint32 *.
* regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
* safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
unsigned short.
* splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
to void *.
* vasprintf.c (int_vasprintf): Cast return of malloc to char *.
2002-09-19 Nick Clifton <>
* README: Update email addresses for bugs and patches.
2002-09-10 Mike Stump <>
* splay-tree.c (splay_tree_successor): Fix comments.
2002-09-11 Zack Weinberg <>
* cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
* testsuite/ Adjust for test-demangle.
* testsuite/regress-demangle: Deleted.
* testsuite/test-demangle.c: New file.
* testsuite/demangle-expected: Change \$ to $ throughout, now that
this file is not being read by a shell script.
2002-09-05 Roger Sayle <>
* regex.c: Only use "#pragma alloca" on AIX when not using gcc.
2002-08-07 DJ Delorie <>
* regex.c (re_error_msgid): Just use a simple array of strings.
(re_compile_pattern): Compensate.
(re_comp): Likewise.
(re_comp): Likewise.
(regerror): Likewise.
2002-07-29 Neil Booth <>
* cplus-dem.c (PREPEND_BLANK): Remove.
2002-07-10 Jason Merrill <>
* cp-demangle.c (demangle_identifier): Support extended Unicode
2002-07-08 Kaveh R. Ghazi <>
* cp-demangle.c (demangle_v3_with_details): Wrap in
!defined IN_GLIBCPP_V3.
2002-07-01 Mark Mitchell <>
* cp-demangle.c (demangle_operator_name): Add type_arg parameter.
Set it for the "st" operator.
(demangle_expression): Handle expressions with types as arguments.
2002-06-30 Douglas Rupp <>
2002-06-22 Peter Breitenlohner <>
* (install_to_libdir): Add $(DESTDIR).
(install_to_tooldir): Likewise.
2002-06-17 Douglas Rupp <>
* lbasename.c: Add 2002 to copyright.
(IS_DIR_SEPARATOR): Remove VMS junk.
2002-06-05 Geoffrey Keating <>
* hashtab.c (htab_create): New stub function for backward
(htab_try_create): Likewise.
2002-06-03 Geoffrey Keating <>
* hashtab.c (htab_create): Delete.
(htab_try_create): Delete.
(htab_create_alloc): New.
(htab_delete): Support user-specified memory allocation.
(htab_expand): Likewise.
2002-05-22 Roman Lechtchinsky <>
* Fix typo in the code checking for sys_errlist.
* configure: Regenerated.
2002-05-13 Andreas Schwab <>
* config.table: Use mh-x86pic also for x86-64.
2002-05-08 Alexandre Oliva <>
script entry, and set LD to it when configuring multilibs.
* configure: Rebuilt.
2002-05-07 Mark Mitchell <>
* (AC_TYPE_PID_T): Use it.
* configure: Regenerated.
* getruntime.c: Include <sys/types.h>.
* waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
2002-04-09 Richard Henderson <>
* hashtab.c (higher_prime_number): Use 7 as minimum.
(find_empty_slot_for_expand): Don't compute hash2 unless needed.
(htab_find_slot_with_hash): Likewise.
2002-04-01 Phil Edwards <>
* cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
(is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
not compile if IN_GLIBCPP_V3 defined.
* dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
2002-03-30 Bryce McKinlay <>
* cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
if it is NULL.
2002-03-27 DJ Delorie <>
* hex.c: Add documentation.
(_hex_value): Provide non-ASCII empty table.
(hex_init): Initialize the non-ASCII table.
* functions.texi: Regenerate.
2002-03-27 Mark Mitchell <>
* dyn-string.c: Add libgcc exception to copyright notice.
2002-03-26 H.J. Lu (
* config.table: Support --with-build-subdir.
* Likewise.
* configure: Rebuild.
2002-03-18 Stuart Griffith <>
* strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
2002-03-12 Mark Mitchell <>
* cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
2002-03-11 Douglas B Rupp <>
* xatexit.c [VMS]: Include stdlib.h and unixlib.h.
2002-03-06 Jim Blandy <>
* splay-tree.c (splay_tree_xmalloc_allocate,
splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
prototyped definitions. Mark `data' arguments as unused.
2002-03-06 Andrew Cagney <>
* floatformat.c (floatformat_arm_ext_big): Delete definition.
2002-03-04 Phil Edwards <>
* Add --enable-install-libiberty option.
* (INSTALLED_HEADERS): New variable.
(install_to_libdir): Possibly also copy headers.
* configure: Regenerated.
2002-03-04 Neil Booth <>
* xmalloc.c (xmalloc_fail): Clarify error message further.
2002-03-03 Neil Booth <>
* xmalloc.c (xmalloc_fail): Clarify error message.
2002-02-22 Jim Blandy <>
* splay-tree.c (splay_tree_xmalloc_allocate,
splay_tree_xmalloc_deallocate): New functions.
(splay_tree_new): Call splay_tree_new_with_allocator, passing the
above functions and a dummy data pointer.
(splay_tree_new_with_allocator): New function.
(splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
splay_tree_remove): Use the splay tree's allocation and
deallocation functions.
2002-02-19 Scott Snyder <>
* testsuite/demangle-expected: Add test case for infinite loop in
* cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
if do_type() doesn't make any progress --- prevents an infinite
2002-02-18 Carlo Wood <>
PR c++/5390
* cplus-dem.c (demangle_integral_value): Accept multi-digit
numbers that do not start with an underscore; This is needed
for integer template parameters. This doesn't break anything
because multi-digit numbers are never followed by a digit.
* testsuite/demangle-expected: Corrected all mangled test
cases with multi-digit template parameters: g++ 2.95.x does
not generate underscores around these parameters.
2002-02-05 Jason Merrill <>
* cplus-dem.c (flags): Add DMGL_VERBOSE
(cplus_demangle_v3_p): Remove.
(demangle_it): Add DMGL_TYPES to passed flags.
* cp-demangle.c (cplus_demangle_v3_all): Remove.
(cplus_demangle_v3_type): Remove.
(cplus_demangle_v3): Add options parm.
2002-02-02 H.J. Lu (
* cp-demangle.c (cp_demangle_type): Do not protect with
(cplus_demangle_v3_all): New.
(cplus_demangle_v3): Call cplus_demangle_v3_all.
(cplus_demangle_v3_type): Call cplus_demangle_v3_all.
* cplus-dem.c (cplus_demangle_v3_p): New function pointer.
Initialized to cplus_demangle_v3.
(cplus_demangle_with_style): Call cplus_demangle_v3_p instead
of cplus_demangle_v3.
(main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
command line symbol.
* testsuite/regress-demangle: Pass the mangled name at the
command line.
2002-02-01 H.J. Lu <>
* cp-demangle.c (cp_demangle_type): Call demangling_new with
2002-01-31 Phil Edwards <>
* cp-demangle.c: Revert yesterday's change.
2002-01-31 Adam Megacz <>
* gcc/libiberty/ Treat mingw the same as cywin
2002-01-30 Phil Edwards <>
* cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
(cplus_demangle_v3): Mimic __cxa_demangle and fall back on
* testsuite/demangle-expected: New gnu-v3 test.
2002-01-22 Momchil Velikov <>
* (variable detection): Use arrays of unspecified
size instead of plain integers.
2002-01-18 DJ Delorie <>
* (TESTLIB): New. This library is for future
break down by letter.
(REQUIRED_OFILES): List long-to-compile files first.
(maint-deps): New, target for updating dependencies.
(dependencies): Update.
* maint-tool: Add dependency-generating option.
* Check for _doprnt even if we're not providing it.
* configure: Regenerate.
* _doprnt.c: Modifications to allow compiling on any platform.
* copysign.c: Likewise.
* putenv.c: Likewise.
* setenv.c: Likewise.
* vsprintf.c: Likewise.
2002-01-15 Douglas B Rupp <>
* mkstemps.c (mkstemps): On VMS, open temp file with option
that causes it to be deleted when closed.
2002-01-02 Kaveh R. Ghazi <>
* cp-demangle.c (long_options): Const-ify.
* cplus-dem.c (long_options): Likewise.
* cplus-dem.c (mystrstr): Delete. All callers changed to use
strstr instead.
2001-12-31 Ira Ruben <>
* aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
* configure: Regenerated.
2001-12-24 Douglas B. Rupp <>
* (uintptr_t): Use AC_CHECK_TYPE.
* configure: Regenerated.
2001-12-12 Craig Rodrigues <>
PR other/2719
* cplus-dem.c (consume_count): Treat negative count as an error.
* testsuite/demangle-expected: Added testcase.
Tue Dec 11 07:08:57 2001 Douglas B. Rupp <>
* Hardcode that vfork works on VMS host.
* configure: Regenerated.
2001-12-06 Richard Henderson <>
* cplus-dem.c (libiberty_demanglers): Add no_demangling case.
(cplus_demangle): Support no_demangling.
2001-11-27 Zack Weinberg <>
* _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
in libiberty context. Fix typo in leading comment.
* Fix various AC_DEFINEs so autoheader works.
If any of vprintf, vsprintf, vfprintf is missing from libc,
then AC_REPLACE_FUNCS(_doprnt).
2001-11-26 DJ Delorie <>
Daniel Jacobowitz <>
* (stamp-h): Depend on Makefile for proper
(*-subdir): Depend on config.h for proper serialization.
2001-11-26 DJ Delorie <>
* Check for alloca.h (for regex.c and putenv.c).
* configure: Regenerate.
* config.h: Add HAVE_ALLOCA_H.
2001-11-16 Kaveh R. Ghazi <>
* regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
is available.
Thu Nov 15 11:06:25 2001 Jeffrey A Law (
* (HAVE_UINTPTR_T): Provide autoconf stub.
* (HAVE_UINTPTR_T): Test for system defining
uintptr_t and define HAVE_UINTPTR_T appropriately.
* regex.c (uintptr_t): Do not provide a definition if the
system provided one.
* regex.c (PREFIX): Provide an alternate definition for
non-ANSI/ISO compilers.
(ARG_PREFIX): Likewise.
2001-11-12 Jim Meyering <>
* obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
this code would end up calling gettext even in packages built
with --disable-nls.
* getopt.c (_): Likewise.
* regex.c (_): Likewise.
2001-11-03 Alan Modra <>
* Cope with missing makeinfo.
* configure: Regenerate.
2001-10-22 Kaveh R. Ghazi <>
* hex.c (hex_init): Provide empty stub.
* hex.c (hex_init): Delete.
(_hex_value): Const-ify and initialize at compile-time.
2001-10-19 H.J. Lu <>
* ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
2001-10-17 DJ Delorie <>
* argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
Improve manual formatting.
* functions.texi: Regenerate.
2001-10-15 DJ Delorie <>
* (TEXIFILES): Add fnmatch.txh.
(maint-undoc): New.
maint-tool: Add "undoc" tool.
* alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
* fnmatch.txh: New.
* functions.texi: Regenerate.
2001-10-10 Joseph S. Myers <>
* bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
* strtod.c: Use "ISO C" instead of "ANSI C".
* functions.texi: Regenerate.
2001-10-07 Joseph S. Myers <>
* alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
spelling. Give names to function arguments in documentation. Use
(void) prototypes in documentation.
* functions.texi: Regenerate.
2001-10-07 Kaveh R. Ghazi <>
* argv.c (buildargv, tests, main): Const-ify.
* cp-demangle.c (operator_code): Likewise.
* cplus-dem.c (optable, libiberty_demanglers,
cplus_demangle_set_style, cplus_demangle_name_to_style,
print_demangler_list): Likewise.
* hashtab.c (higher_prime_number): Likewise.
* strcasecmp.c (charmap): Likewise.
* strerror.c (error_info, strerror, main): Likewise.
* strncasecmp.c (charmap): Likewise.
* strsignal.c (signal_info): Likewise.
2001-09-29 DJ Delorie <>
* configure: Regenerate.
2001-09-28 Kaveh R. Ghazi <>
* concat.c: Include stdlib.h.
2001-09-27 Eli Zaretskii <>
* libiberty.texi: (Top level): Add syncodeindex pg. Add
@dircategory and @direntry directives. Add @finalout.
(many nodes): Lose the next,prev,up pointers on the @nide line.
(Using, Supplemental Functions, Replacement Functions): Fix
(Functions): Move around, to allow makeinfo to build the manual
without next,prev,up pointers in thye node lines.
(Licenses): Fix typos.
* index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
* functions.texi: Regenerate.
* copying-lib.texi: Lose the next,prev,up pointers on the @node
2001-09-27 DJ Delorie <>
* Don't use in-tree texinfo, because libiberty must
be built before it. Check for makeinfo version 4 or higher.
* functions.texi: Regenerate.
2001-09-20 DJ Delorie <>
Phil Edwards <>
* (MAKEINFO, PERL): Detect these.
(--enable-maintainer-mode): Add.
* configure: Regenerate.
* (MAKEINFO, PERL): Define.
(, libiberty.dvi, libiberty.html): New.
(CFILES): Add bsearch.c.
(CONFIGURED_OFILES): New, list of objects configure might add.
(maint-missing, maint-buildall): New, for maintainers only.
(clean, mostlyclean): Add info/dvi/html files.
* libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
* gather-docs: New, for maintainers.
* maint-tool: New, for maintainers.
* alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
bzero.c, calloc.c, clock.c,, configure, getcwd.c,
getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
2001-09-25 Kaveh R. Ghazi <>
* concat.c (reconcat): Fix for traditional C.
2001-09-24 Kaveh R. Ghazi <>
* concat.c (reconcat): New function.
2001-09-17 Kaveh R. Ghazi <>
* concat.c (vconcat_length, vconcat_copy, concat_length,
concat_copy, concat_copy2): New functions.
(concat): Use vconcat_length/vconcat_copy.
* alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
2001-09-04 Kaveh R. Ghazi <>
* asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
* vasprintf.c: Check HAVE_STRING_H when including string.h.
(checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
2001-08-27 Kaveh R. Ghazi <>
* concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
2001-08-23 Ulrich Drepper <>
* regex.c (truncate_wchar): Use wcrtomb not wctomb.
2001-08-23 Ulrich Drepper <>
* posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
instead of mbrtowc.
[_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
wcslen, and __wcscoll instead of wcscoll.
2001-08-22 Matt Kraai <>
* fibheap.c (fibheap_init, fibnode_init): Remove.
(fibheap_new, fibnode_new): Use xcalloc to allocate and
initialize memory.
(fibheap_insert): Remove check for node allocation failure.
2001-08-21 Richard Henderson <>
* (fibheap.o): Depend on config.h.
* fibheap.c: Tidy formatting. Use config.h.` Rearrange some
functions for inlining.
Tue Aug 21 12:35:04 2001 Christopher Faylor <>
* Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
hosting on cygwin.
* configure: Regenerate.
2001-08-20 Andrew Cagney <>
* floatformat.c (floatformat_m88110_ext): Remove #ifdef
(floatformat_ia64_spill_little, floatformat_ia64_quad_little)
(floatformat_ia64_spill_big, floatformat_ia64_quad_big)
(floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
(floatformat_m88110_harris_ext): New float formats.
2001-08-20 Daniel Berlin <>
* fibheap.c: New file. Fibonacci heap.
* (CFILES): Add fibheap.c.
(REQUIRED_OFILES): Add fibheap.o.
(fibheap.o): Add dependencies for fibheap.o.
2001-08-17 Christopher Faylor <>
* Always set HAVE_SYS_ERRLIST when targetting cygwin.
* configure: Regenerate.
2001-08-16 Richard Henderson <>
* hashtab.c (htab_hash_string): New.
2001-08-13 Andrew Cagney <>
* floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
2001-08-12 Isamu Hasegawa <>
* regex.c (wcs_regex_compile): Use appropriate string
to compare with collating element.
Fix the padding for the alignment.
2001-08-10 Andrew Cagney <>
* lbasename.c (lbasename): Change function definition to return a
const char pointer.
2001-08-07 Jason Merrill <>
* cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
2001-08-03 Richard Henderson <>
* (concat.o): Depend on config.h.
2001-07-30 Andreas Jaeger <>
* concat.c: Include "config.h".
2001-07-30 Andreas Jaeger <>
* regex.c: Declare wcs functions only if compiling with
Don't use #elif for traditional C.
2001-07-23 Ulrich Drepper <>
* regex.c: Revamp memory allocation for WCHAR functions to
not use too much stack.
2001-07-30 Andreas Jaeger <>
* regex.c: Declare wcs functions only if compiling with
Don't use #elif for traditional C.
2001-07-25 Daniel Jacobowitz <>
* (regex.o): Add dependency on config.h.
2001-07-18 Andreas Schwab <>
* regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
underscore character.
2001-07-18 Ulrich Drepper <>
* regex.c: Limit string length printed in debug messages to 100
2001-07-18 Andreas Jaeger <>
* regex.c: Place under LGPL version 2.1.
2001-07-10 Jeff Johnston <>
* Add support for regex code.
* regex.c: New file.
2001-07-05 Mark Klein <>
* Add ffs.c dependency.
* Add ffs.c.
* ffs.c: New file.
2001-06-18 Richard Henderson <>
* concat.c: Include <sys/types.h>.
2001-06-11 Loren J. Rittle <>
* strerror.c (sys_nerr): Hide the OS header version.
* strsignal.c (sys_nsig): Likewise.
2001-06-10 Richard Henderson <>
* concat.c: Include string.h. Fix int vs size_t usage.
Simplify the iteration loops. Use memcpy.
2001-05-16 Matt Kraai <>
* partition.c: Fix misspelling of `implementation'.
2001-05-09 Thiemo Seufer <>
* md5.c (md5_init_ctx): Declare constants as unsigned.
(md5_process_block): Likewise.
2001-05-07 Zack Weinberg <>
* cp-demangle.c (demangle_v3_with_details,
is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
function definition.
* ternary.c: Use K+R style function definitions. Use PTR, not
void *. Make arguments constant where possible.
2001-05-07 Mark Mitchell <>
* splay-tree.h (splay_tree_max): New function.
(splay_tree_min): Likewise.
2001-04-15 Daniel Berlin <>
* ternary.c: New file - Ternary search tree implementation.
* Add ternary.o, and ternary.c dependencies.
2001-04-03 Zack Weinberg <>
* make-temp-file.c (try): Inline.
2001-02-28 Richard Henderson <>
* (make-temp-file.o): Depend on config.h.
2001-03-27 Kaveh R. Ghazi <>
* memchr.c (memchr): Adjust condition to avoid infinite loop.
2001-03-23 Jakub Jelinek <>
* cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
`_' not followed by a digit is invalid.
2001-03-22 Jim Blandy <>
* cp-demangle.c (string_list_delete): Use dyn_string_delete
instead of free, to free the contents as well as the string
2001-03-21 Zack Weinberg <>
* make-temp-file.c: Always default DIR_SEPARATOR to '/'.
Don't default P_tmpdir to anything. Try /var/tmp before
2001-03-20 Zack Weinberg <>
* choose-temp.c: Split off make_temp_file, and the code
duplicated between it and choose_temp_base, into...
* make-temp-file.c: ... here; new file.
* (CFILES): Add make-temp-file.c.
(REQUIRED_OFILES): Add make-temp-file.o.
2001-03-20 Jim Blandy <>
* cp-demangle.c (struct demangling_def): New fields:
is_constructor and is_destructor.
(demangling_new): Initialize them.
(demangle_ctor_dtor_name): Set them, if we detect a constructor
or destructor.
(demangle_v3_with_details, is_gnu_v3_mangled_ctor,
is_gnu_v3_mangled_dtor): New functions.
2001-03-20 Jason Merrill <>
* cplus-dem.c (main): Skip initial $.
2001-03-15 Michael Meissner <>
* hashtab.c (higher_prime_number): Silence warning that 4294967291
might be a signed integer under pre-ISO C systems.
2001-03-10 Neil Booth <>
John David Anglin <>
* libiberty/lbasename.c: New file.
* libiberty/ Update for lbasename.
2001-03-06 Zack Weinberg <>
* aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
* Replace all alloca logic with a simple use of
the above new macro.
* config.table: Kill *-*-beos* entry.
* config/mh-beos: Delete.
* configure, Regenerate.
(REQUIRED_OFILES): Add alloca.o.
(alloca.o): Depend on libiberty.h.
(argv.o): Don't depend on alloca-conf.h.
* alloca-conf.h: Delete.
* alloca.c: Include libiberty.h. Kill all #ifdef emacs
blocks. Provide the C alloca unconditionally. Use PTR where
appropriate. Make i00afunc static.
* argv.c: Don't include alloca-conf.h.
2001-03-04 John David Anglin <>
* cplus-dem.c (main): Cast enum style to int.
2001-02-16 Loren J. Rittle <>
* cplus-dem.c (main): Initialize style.
2001-02-02 Phil Edwards <>
* COPYING.LIB: Update to LGPL 2.1 from the FSF.
2001-01-31 Bryce McKinlay <>
Add support for Java demangling under the v3 ABI:
* cp-demangle.c (NAMESPACE_SEPARATOR): New define.
(struct demangling_def): Add `style' field.
(demangling_new): New parameter `style'. Set it in demangling_t.
(demangle_prefix): Use NAMESPACE_SEPARATOR.
(demangle_type_ptr): Don't emit pointer symbol if doing Java output.
(cp_demangle): New parameter `style'. Pass it to demangling_new().
(main): Call cp_demangle with extra parameter.
(java_demangle_v3): New function.
(java_builtin_type_names): New. Table of primitive type names used
for Java demangling.
(demangle_builtin_type): Look up in java_builtin_type_names if doing
Java output.
* cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
(long_options): Remove obsolete `java' option.
(main): Remove explicit handling of `java' option. Instead, pass style
parameter in cplus_demangle flags as gdb does.
* testsuite/demangle.expected: Add some Java test cases.
2000-12-29 DJ Delorie <>
* fnmatch.c: Make the note about the origins of this file more
accurate, at least until we can sync with glibc.
* getopt.c: Ditto.
* getopt1.c: Ditto.
* md5.c: Ditto.
* obstack.c: Ditto.
2000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* bsearch.c: New file.
* (funcs): Add bsearch.
(AC_CHECK_FUNCS): Likewise.
* configure, Regenerate.
2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* safe-ctype.c: #include "ansidecl.h".
* strtod.c: Likewise.
2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* strtoul.c: Include safe-ctype.h, not ctype.h.
2000-12-07 Zack Weinberg <>
* safe-ctype.c: New file.
* (CFILES): Add safe-ctype.c.
(REQUIRED_OFILES): Add safe-ctype.o.
* argv.c: Define ISBLANK and use it, not isspace.
* basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
before calling TOLOWER(c)/TOUPPER(c).
2000-12-07 Mike Stump <>