1 2010-06-10 Jakub Jelinek <jakub@redhat.com>
4 * cp-demangle.c (struct d_print_info): Add flush_count field.
5 (d_print_init): Initialize it to 0.
6 (d_print_flush): Increment it.
7 (d_print_comp): If needed flush before appending ", ". Only
8 decrement dpi->len if no flushes happened during the recursive
10 * testsuite/demangle-expected: Add a test for this.
12 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
14 * splay-tree.c: Update copyright years.
15 (splay_tree_new_typed_alloc): New.
16 (splay_tree_new_with_allocator): Use it.
18 * hashtab.c: Update copyright years.
19 (htab_create_typed_alloc): New.
20 (htab_create_alloc): Use it.
22 * functions.texi: Regenerate.
24 2010-06-03 Joern Rennecke <joern.rennecke@embecosm.com>
25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28 * configure.ac: Check for declaration of 'basename(char *)'.
29 * configure: Regenerate.
31 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
33 * testsuite/demangle-expected: Add tests for __int128
34 and unsigned __int128 types.
36 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
37 Jason Merrill <jason@redhat.com>
39 * cp-demangle.c (cplus_demangle_builtin_types): Add nullptr.
40 (cplus_demangle_type): Handle nullptr.
41 * testsuite/demangle-expected: Test it.
43 2010-04-23 Pedro Alves <pedro@codesourcery.com>
45 * lbasename.c (lbasename): Split into ...
46 (unix_lbasename, dos_basename): ... these.
47 (lbasename): ... and reimplement on top of them.
48 * Makefile.in (lbasename.o): Add dependency on
49 $(INCDIR)/filenames.h.
51 2010-04-07 Jakub Jelinek <jakub@redhat.com>
53 * regex.c (byte_re_match_2_internal): Avoid set but not used
56 2010-03-22 Jason Merrill <jason@redhat.com>
58 * cp-demangle.c (d_print_mod): Use () rather than [] for vectors.
60 2010-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62 * Makefile.in (all): Do not use exec.
64 2010-02-04 Tom Tromey <tromey@redhat.com>
66 * testsuite/demangle-expected: Add missing --format=gnu-v3.
68 2010-02-03 Jason Merrill <jason@redhat.com>
70 * cp-demangle.c (d_expression): Handle dependent operator name.
73 * cp-demangle.c (d_number_component, d_vector_type): New.
74 (cplus_demangle_type, d_print_comp, d_print_mod): Handle vectors.
76 2010-01-25 Ian Lance Taylor <iant@google.com>
78 * cp-demangle.c (cplus_demangle_type): Check for invalid type
80 * testsuite/demangle-expected: Add test.
82 2010-01-20 Jason Merrill <jason@redhat.com>
85 * cp-demangle.c (d_print_comp): Fix array index printing.
87 2010-01-11 Tristan Gingold <gingold@adacore.com>
89 * cplus-dem.c (ada_demangle): Remove prototype.
91 (ada_demangle): Rewritten.
92 (cplus_demangle): Fix indentation.
93 * testsuite/demangle-expected: Add tests for Ada.
95 2010-01-09 Ian Lance Taylor <iant@google.com>
98 * cp-demangle.c (d_demangle): Return dgs.alc on success.
100 2010-01-04 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
103 * configure.ac (PICFLAG): Use -fPIC on SH hosts.
104 * configure: Regenerate.
106 2009-12-07 Doug Evans <dje@google.com>
108 * pex-unix.c (pex_unix_exec_child): Save/restore environ.
110 2009-11-26 Ben Elliston <bje@au.ibm.com>
112 * configure.ac (AC_CHECK_FUNCS): Sort into alphabetic order.
113 * configure: Regenerate.
115 2009-11-25 Ben Elliston <bje@au.ibm.com>
117 * functions.texi: Rebuild.
119 2009-11-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
120 Ben Elliston <bje@au.ibm.com>
122 * README: Mention changes to Makefile.in and functions.texi.
123 * gather-docs: Mention 'make stamp-functions' in the header.
125 2009-11-23 Ben Elliston <bje@au.ibm.com>
126 Ian Lance Taylor <iant@google.com>
128 * pex-unix.c (pex_child_error): Improve warning avoidance by
129 checking the results of write(3) and exiting with -2 if any write
130 returns a negative value.
132 2009-11-22 Steve Ward <planet36@gmail.com>
134 * dyn-string.c (dyn_string_append_char): Fix typo in comment.
136 2009-11-20 Ben Elliston <bje@au.ibm.com>
138 * pex-unix.c (pex_child_error): Define writeerr macro to avoid
139 unused result warnings from write(3) calls. Undefine writeerr
142 2009-10-08 Daniel Gutson <dgutson@codesourcery.com>
143 Daniel Jacobowitz <dan@codesourcery.com>
144 Pedro Alves <pedro@codesourcery.com>
147 * argv.c (consume_whitespace): New function.
148 (only_whitespace): New function.
149 (buildargv): Always use ISSPACE by calling consume_whitespace.
150 (expandargv): Skip empty files. Do not stop at the first empty
151 argument (calling only_whitespace)..
152 * testsuite/test-expandargv.c: (test_data): Test empty lines
154 (run_tests): Fix false positives due to shorter arguments.
156 2009-09-30 Martin Thuresson <martint@google.com>
158 * regex.c (byte_re_match_2_internal): Split declaration and
159 assignment to avoid -Wc++-compat warning due to goto.
161 2009-09-29 Jason Merrill <jason@redhat.com>
163 * Makefile.in: Enable demangle target.
164 * cp-demangle.c (d_lambda, d_unnamed_type, d_make_default_arg): New.
165 (d_name, d_prefix, d_unqualified_name, d_local_name): Handle lambdas.
166 (d_parmlist): Factor out from d_bare_function_type.
167 (d_compact_number): Factor out from d_template_param and d_expression.
168 (d_append_num): Factor out from d_print_comp.
169 (d_print_comp, d_print_mod_list): Handle lambdas.
170 * testsuite/demangle-expected: Add lambda tests.
172 2009-09-23 Matthew Gingell <gingell@adacore.com>
174 * cplus-dem.c (ada_demangle): Ensure demangled is freed.
176 2009-09-22 Ozkan Sezer <sezeroz@gmail.com>
178 * choose-temp.c: Include unistd.h for mingw targets.
180 2009-09-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
182 * hashtab.c [HAVE_INTTYPES_H]: Include <inttypes.h>.
184 2009-09-15 Tristan Gingold <gingold@adacore.com>
186 * config.h-vms (intptr_t): Define to compile hashtab.c
188 2009-09-04 Ozkan Sezer <sezeroz@gmail.com>
191 * configure.ac: Replace AC_CHECK_TYPE() for intptr_t and uintptr_t
192 with AC_TYPE_INTPTR_T and AC_TYPE_UINTPTR_T.
193 * config.in: Regenerated.
194 * configure: Regenerated.
196 2009-09-03 Ozkan Sezer <sezeroz@gmail.com>
199 * configure.ac: Also check for intptr_t.
200 * config.h.in: Regenerated.
201 * configure: Regenerated.
202 * hashtab.c (hash_pointer): Cast the pointer argument to intptr_t
205 2009-09-02 Tristan Gingold <gingold@adacore.com>
207 * vmsbuild.com: Removed as unused and superceeded by makefile.vms.
208 * makefile.vms: Ported to Itanium VMS. Remove useless targets and
209 dependencies. Remove unused FORMAT variable.
210 * configure.com: New file to create build.com DCL script for
211 Itanium VMS or Alpha VMS.
213 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
215 * configure.ac (AC_PREREQ): Bump to 2.64.
217 2009-08-23 H.J. Lu <hongjiu.lu@intel.com>
220 * Makefile.in (install-html-recursive): Removed.
222 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
224 * config.in: Regenerate.
225 * configure: Regenerate.
227 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
229 * Makefile.in (AUTOCONF, configure_deps): New variables.
230 ($(srcdir)/configure): New rule, active only in maintainer mode.
232 2009-07-29 Douglas B Rupp <rupp@gnat.com>
234 * make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS.
236 2009-07-27 Douglas B Rupp <rupp@gnat.com>
238 * pex-unix.c (vfork): Remove VMS specific definition (get from header
240 (to_ptr32): New function.
241 (pex_unix_exec_child): Use it.
243 2009-07-24 Ian Lance Taylor <iant@google.com>
246 * crc32.c (xcrc32): Rename from crc32.
248 2009-07-24 Ian Lance Taylor <iant@google.com>
251 * Makefile.in: Rebuild dependencies.
252 (CFILES): Add crc32.c.
253 (REQUIRED_OFILES): Add ./crc32.o.
254 * functions.texi: Rebuild.
256 2009-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
258 * cp-demangle.c (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
259 (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
260 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
261 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
262 (d_demangle_callback): The variable type is now declared as enum.
263 Replace parser of _GLOBAL_ symbols by a d_make_comp call.
265 2009-06-21 Jakub Jelinek <jakub@redhat.com>
267 * hashtab.c (htab_traverse): Don't call htab_expand for
268 nearly empty hashtabs with sizes 7, 13 or 31.
270 2009-06-16 Nick Clifton <nickc@redhat.com>
273 * testsuite/test-demangle.c: Rename getline to get_line to avoid
274 conflicts with system function of the same name.
276 2009-05-30 Eli Zaretskii <eliz@gnu.org>
278 * snprintf.c: Doc fix.
280 * vsnprintf.c: Doc fix.
282 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
284 * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.
286 2009-05-29 Michael Matz <matz@suse.de>
288 * fibheap.c (fibheap_replace_key_data): Make sure we don't early
289 out when forcing the minimum.
290 (fibheap_delete_node): Assert that we managed to force the minimum.
292 2009-05-25 Tristan Gingold <gingold@adacore.com>
294 * config.h-vms: Rewritten. Define configure macros.
295 Use DEC-C builtin alloca.
297 * makefile.vms (OBJS): Update list.
299 (CFLAGS): Update compilation flags.
300 (libiberty.olb): Do not depend on alloca-conf.h anymore.
302 2009-05-19 Ian Lance Taylor <iant@google.com>
303 Ben Elliston <bje@au.ibm.com>
305 * cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug.
306 (cplus_demangle_fill_dtor): Likewise.
308 2009-05-17 Julian Brown <julian@codesourcery.com>
310 * pex-win32.c (pex_win32_exec_child): Fix logic to avoid closing
311 standard handles (stdin, stdout, stderr) in parent.
313 2009-04-29 Julian Brown <julian@codesourcery.com>
315 * pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT.
316 (pex_win32_exec_child): Ensure each process has only one handle open
317 on pipe endpoints. Close standard input after creating child for
318 symmetry with standard output/standard error.
320 2009-04-25 Eli Zaretskii <eliz@gnu.org>
322 * Makefile.in (needed-list): Target removed (not used in GCC
323 3.0 and later). All references deleted.
324 (mostlyclean): Remove references to needed.awk and needed2.awk.
326 2009-04-14 Eli Zaretskii <eliz@gnu.org>
328 * configure.ac (setobjs, msdosdjgpp): Move a-priori setting of
329 existing and required library functions to with_target_subdir
330 section, so that the native build does detect them at configure
332 * configure: Regenerated.
334 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
337 * pex-common.h (struct pex_obj): Store pid values as pid_t,
338 not as long (members *children and (*wait))
339 * pex-common.c (pex_run_in_environment): Likewise.
340 * pex-win32.c (pex_win32_wait): Return pid_t and properly check
342 * pex-djgpp.c (pex_djgpp_wait): Return pid_t.
343 * pex-msdos.c (pex_msdos_wait): Likewise.
345 2009-04-07 Arnaud Patard <apatard@mandriva.com>
347 * libiberty/configure.ac: Fix Linux/MIPS matching rule.
348 * libiberty/configure: Regenerate.
350 2009-03-27 Ian Lance Taylor <iant@google.com>
352 * memmem.c: New file, from gnulib.
353 * configure.ac: Add memmem to list of functions provided if they
354 are not available on the host.
355 * Makefile.in: Rebuild dependencies.
356 (CFILES): Add memmem.c.
357 (CONFIGURED_OFILES): Add memmem.o.
358 * configure, config.in, functions.texi: Rebuild.
360 2009-03-23 Jason Merrill <jason@redhat.com>
362 * cp-demangle.c (d_expression): Handle pack expansion.
363 (d_find_pack): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM.
364 (d_print_subexpr): Don't wrap function parms in ().
365 (d_print_comp) [DEMANGLE_COMPONENT_PACK_EXPANSION]: Handle
368 2009-03-17 Jason Merrill <jason@redhat.com>
370 * cp-demangle.c (d_make_function_param): new fn.
371 (cplus_demangle_mangled_name): Work around abi v2 bug.
372 (d_expr_primary): Likewise.
373 (cplus_demangle_operators): Add alignof ops.
374 (d_expression): Handle function parameters and conversions
375 with other than 1 operand.
376 (d_print_comp): Handle function parameters. Fix bug with
377 function used in type of function.
378 * testsuite/demangle-expected: Update tests.
380 2009-02-21 Mark Mitchell <mark@codesourcery.com>
382 * make-temp-file.c (<windows.h>): Include on Windows.
383 (choose_tmpdir): On Windows, use GetTempPath.
385 2009-01-18 Dave Korn <dave.korn.cygwin@gmail.com>
387 * configure.ac (funcs, vars, checkfuncs): Don't munge on Cygwin,
388 as it no longer shares libiberty object files.
389 * configure: Regenerated.
391 2009-01-07 Jason Merrill <jason@redhat.com>
393 * cp-demangle.c (d_expression): Remove mangling for zero-op casts.
395 2009-01-06 Ben Elliston <bje@au.ibm.com>
397 * cp-demangle.c (cplus_demangle_type): Return NULL if the
398 character following a 'D' cannot be recognised.
400 2008-12-18 Jason Merrill <jason@redhat.com>
403 * cp-demangle.c (d_expression, d_print_comp): Revert
406 2008-12-17 Jason Merrill <jason@redhat.com>
408 * cp-demangle.c (d_expression): Handle rvalue stubs too.
409 [DEMANGLE_COMPONENT_CAST]: Update mangling.
410 (d_print_comp): Avoid extra ", " with empty template argument packs.
411 Remove handling for obsolete T() mangling.
413 2008-12-10 Jason Merrill <jason@redhat.com>
415 * cp-demangle.c (cplus_demangle_type): Support fixed-point types.
416 (d_print_comp, d_dump): Likewise.
418 2008-10-22 Daniel Jacobowitz <dan@codesourcery.com>
420 * Makefile.in (CPPFLAGS): Define.
421 (FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS.
423 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
426 * Makefile.in (LIBCFLAGS): Remove.
427 (FLAGS_TO_PASS): Don't mention it.
428 (COMPILE.c, MULTIOSDIR): Replace it with CFLAGS.
430 2008-10-08 David Edelsohn <edelsohn@gnu.org>
432 * xstrdup.c: Include <sys/types.h> after "config.h"
434 2008-10-07 Jan Kratochvil <jan.kratochvil@redhat.com>
436 * configure.ac: Call AC_SYS_LARGEFILE.
437 * config.in: Regenerated.
438 * configure: Likewise.
440 2008-10-06 Jason Merrill <jason@redhat.com>
442 * cp-demangle.c (struct d_print_info): Add pack_index.
443 (d_dump): Add DEMANGLE_COMPONENT_PACK_EXPANSION.
444 (d_make_comp): Likewise. DEMANGLE_COMPONENT_ARGLIST and
445 DEMANGLE_COMPONENT_TEMPLATE_ARGLIST can have two null args.
446 (cplus_demangle_builtin_types): Add char16/32_t.
447 (cplus_demangle_type): Recognize them.
448 (d_template_args): Handle empty argument packs.
449 (d_template_arg): Handle argument packs.
450 (d_expression): Handle dependent name.
451 (d_index_template_argument): New fn.
452 (d_lookup_template_argument): New fn.
453 (d_find_pack, d_pack_length): New fn.
454 (d_print_subexpr): Split out...
455 (d_print_comp): ...from here. Use d_*_template_argument.
456 Handle empty arg lists. Support pack expansions.
457 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increase to 32.
459 2008-09-09 Jason Merrill <jason@redhat.com>
461 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DECLTYPE.
462 (d_make_comp): Likewise.
463 (cplus_demangle_type): Handle decltype and DFP types.
464 (cplus_demangle_operators): Call operator takes 2 args.
465 (cplus_demangle_builtin_types): Add DFP types.
466 (d_exprlist): New fn.
467 (d_expression): Handle parm placeholders, T() and calls.
468 (d_print_comp): Handle decltype, T() and calls.
469 * testsuite/demangle-expected: Test the above.
471 2008-08-07 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
473 * pex-win32.c (argv_to_argc): New function.
474 (spawn_script): Duplicate argv before calling win32_spawn.
476 2008-07-31 Jakub Jelinek <jakub@redhat.com>
478 * mkstemps.c (mkstemps): Keep looping even for EISDIR.
480 2008-07-31 Denys Vlasenko <dvlasenk@redhat.com>
482 * mkstemps.c (mkstemps): If open failed with errno other than
483 EEXIST, return immediately.
484 * make-temp-file.c: Include errno.h.
485 (make_temp_file): If mkstemps failed, print an error message
488 2008-07-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
490 * maint-tool (deps): Output config.h instead of stamp-h.
491 * Makefile.in: Rebuild deps.
492 (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
493 Reverts 2007-07-11 change.
495 2008-06-19 Eric Blake <ebb9@byu.net>
497 Adjust strsignal to POSIX 200x prototype.
498 * strsignal.c (strsignal): Remove const.
500 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
502 * configure: Regenerate.
504 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
506 * libiberty.texi: Expand TABs, drop indentation outside examples.
507 * obstacks.texi: Likewise.
509 2008-04-21 Aurelien Jarno <aurelien@aurel32.net>
511 * libiberty/configure.ac: use -fPIC on Linux/MIPS hosts.
512 * libiberty/configure: Regenerate.
514 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
516 * testsuite/demangle-expected: Added tests for char16_t and char32_t.
518 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
521 * aclocal.m4: Add override.m4.
522 * configure: Regenerate.
524 2008-03-31 Ian Lance Taylor <iant@google.com>
526 * cp-demangle.c (d_substitution): Correct overflow check to avoid
527 -fstrict-overflow optimizations.
529 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
531 * configure.ac (frags): Don't set, use frag instead.
532 (PICFLAG): Set here and substitute.
533 * Makefile.in (PICFLAG): Substitute from autoconf.
534 * configure: Regenerate.
536 2008-03-24 Ian Lance Taylor <iant@google.com>
538 * sha1.c: New file, from gnulib.
539 * Makefile.in: Rebuild dependencies.
540 (CFILES): Add sha1.c.
541 (REQUIRED_OFILES): Add sha1.o.
543 2008-03-24 Doug Evans <dje@google.com>
545 * make-relative-prefix.c (make_relative_prefix_1): Handle NULL
548 2008-03-12 Seongbae Park <seongbae.park@gmail.com>
550 * cplus-dem.c (malloc, realloc): Use void * instead of char *
553 2008-03-11 Nick Clifton <nickc@redhat.com>
555 * md5.c (md5_process_bytes): Do not assume that memcpy will
556 provide a return value.
558 2008-02-19 Ben Elliston <bje@au.ibm.com>
561 * testsuite/Makefile.in (mostlyclean): Remove any core file.
563 2008-01-26 David Daney <ddaney@avtrex.com>
565 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
566 DEMANGLE_COMPONENT_COMPOUND_NAME, and
567 DEMANGLE_COMPONENT_CHARACTER cases.
568 (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and
569 DEMANGLE_COMPONENT_JAVA_RESOURCE cases.
570 (d_make_character): New function.
571 (d_java_resource): Same.
572 (d_special_name): Handle "Gr" case.
573 (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
574 DEMANGLE_COMPONENT_COMPOUND_NAME, and
575 DEMANGLE_COMPONENT_CHARACTER cases.
576 * testsuite/demangle-expected: Add test for java resource name
579 2008-01-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
581 * cplus-dem.c (demangle_function_name): Changed to return value
582 indicating if a name was correctly demangled.
583 (iterate_demangle_function): Use demangle_function_name return
586 2008-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
589 * splay-tree.c (rotate_left): Fix minor typo in comment.
590 (rotate_right): Likewise.
592 2007-11-12 Joseph Myers <joseph@codesourcery.com>
594 * floatformat.c (floatformat_ibm_long_double_is_valid): Fix
596 (floatformat_ibm_long_double): Use
597 floatformat_ibm_long_double_is_valid.
599 2007-11-07 Joseph Myers <joseph@codesourcery.com>
600 Daniel Jacobowitz <dan@codesourcery.com>
602 * floatformat.c (mant_bits_set): New.
603 (floatformat_to_double): Use it. Note no special handling of
605 (floatformat_from_double): Note no special handing of split
607 (floatformat_ibm_long_double_is_valid,
608 floatformat_ibm_long_double): New.
609 (floatformat_ieee_single_big, floatformat_ieee_single_little,
610 floatformat_ieee_double_big, floatformat_ieee_double_little,
611 floatformat_ieee_double_littlebyte_bigword, floatformat_vax_f,
612 floatformat_vax_d, floatformat_vax_g, floatformat_i387_ext,
613 floatformat_m68881_ext, floatformat_i960_ext,
614 floatformat_m88110_ext, floatformat_m88110_harris_ext,
615 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword,
616 floatformat_ia64_spill_big, floatformat_ia64_spill_little,
617 floatformat_ia64_quad_big, floatformat_ia64_quad_little): Update
618 for addition of split_half field.
620 2007-09-06 Tom Tromey <tromey@redhat.com>
622 * pexecute.txh (pex_free): Document process killing.
624 2007-08-31 Douglas Gregor <doug.gregor@gmail.com>
626 * cp-demangle.c (d_dump): Handle
627 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
628 (d_make_comp): Ditto.
629 (cplus_demangle_type): Ditto.
630 (d_print_comp): Ditto.
631 (d_print_mod): Ditto.
632 (d_print_function_type): Ditto.
634 2007-08-24 Kai Tietz <kai.tietz@onevision.com>
636 * pex-common.h: (pex_funcs): Retyped wait and exec_child to pid_t.
637 * pex-djgpp.c: Likewise.
638 * pex-msdos.c: Likewise.
639 * pex-unix.c: Likewise.
640 * pex-win32.c: Likewise.
642 2007-08-17 Michael Snyder <msnyder@access-company.com>
644 * make-relative-prefix.c (make_relative_prefix_1): Resource leaks.
646 2007-08-03 Michael Snyder <msnyder@access-company.com>
648 * make-relative-prefix.c (make_relative_prefix_1): Fix resource
651 2007-07-31 Michael Snyder <msnyder@access-company.com>
653 * cp-demangle.c (d_print_comp): Guard against null.
655 2007-07-25 Ben Elliston <bje@au.ibm.com>
657 * Makefile.in (CFILES): Remove ternary.c.
658 (REQUIRED_OFILES): Remove ./ternary.o.
659 (INSTALLED_HEADERS): Remove ternary.h.
663 2007-07-23 DJ Delorie <dj@redhat.com>
665 * argv.c (writeargv): Fix typo in inline documentation.
666 * functions.texi: Regenerate.
668 2007-07-17 DJ Delorie <dj@redhat.com>
670 * configure.ac (target_header_dir, msdosdjgpp): Remove duplicate
672 * configure: Likewise.
674 2007-07-11 Alexandre Oliva <aoliva@redhat.com>
676 * maint-tool (deps): Output stamp-h instead of config.h.
677 * Makefile.in: Rebuild deps.
678 (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
680 2007-07-02 Simon Baldwin <simonb@google.com>
682 * argv.c (writeargv): Removed declaration of unused variable.
684 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
686 * configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too.
687 * configure: Regenerate.
689 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
691 * aclocal.m4: Include config/warnings.m4.
692 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS.
693 * configure: Regenerate.
695 2007-06-07 Geoffrey Keating <geoffk@apple.com>
697 * configure.ac: Non-default multilibs can be cross compilations.
698 * configure: Regenerate
700 2007-05-07 Nathan Froyd <froydnj@codesourcery.com>
702 * argv.c (writeargv): New function.
704 2007-05-05 Geoffrey Keating <geoffk@apple.com>
706 * cp-demangle.c (d_name): Detect local-source-name.
707 (d_prefix): Likewise.
708 (d_unqualified_name): Implement local-source-name.
710 2007-05-03 Joel Brobecker <brobecker@adacore.com>
712 * filename_cmp.c: Replace include of ctype.h by include of
714 (filename_cmp): Use TOLOWER instead of tolower for conversions
715 that are locale-independent.
716 * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h.
718 2007-04-11 Thomas Neumann tneumann@users.sourceforge.net
720 * argv.c: Use ANSI C declarations.
721 * make-relative-prefix.c: Likewise.
723 2007-04-06 Joel Brobecker <brobecker@adacore.com>
725 * filename_cmp.c (filename_cmp): Improve documentation.
727 2007-04-02 Andreas Schwab <schwab@suse.de>
729 * filename_cmp.c: Include "config.h".
731 2007-03-29 Joel Brobecker <brobecker@adacore.com>
733 * filename_cmp.c: New file.
734 * Makefile.in (CFILES): Add filename_cmp.c.
735 (REQUIRED_OFILES): Add filename_cmp.o
736 (filename_cmp.o): New rule.
737 * functions.texi: Regenerate.
739 2007-03-15 Geoffrey Keating <geoffk@apple.com>
741 * cp-demangle.c (d_encoding): Exit early on error.
742 (d_pointer_to_member_type): Exit early if cplus_demangle_type
744 (cplus_demangle_type): Likewise.
745 * testsuite/demangle-expected: New testcase.
747 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
749 * Makefile.in: Add install-pdf target as copied from
750 automake v1.10 rules.
751 * testsuite/Makefile.in: Add dummy install-pdf target.
753 2007-03-01 Peter Breitenlohner <peb@mppmu.mpg.de>
754 Eric Botcazou <ebotcazou@libertysurf.fr>
757 * Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR).
758 Install headers in multilib independent location.
760 2007-02-26 DJ Delorie <dj@redhat.com>
762 * configure.ac: add djgpp-specific results, so we don't have to
763 link during a cross compilation.
764 * configure: Regenerated.
766 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
769 * choose-temp.c: Likewise.
770 * functions.texi: Regenerate.
772 2007-01-31 Vladimir Prus <vladimir@codesourcery.com>
774 * pex-common.h (struct pex_obj): New fields
775 stderr_pipe and read_err.
776 * pex-common.c (pex_init_common): Initialize
778 (pex_run_in_environment): Add error checking
779 for PEX_STDERR_TO_PIPE. Create a pipe
780 for stderr if necessary.
782 (pex_free): Close read_err.
783 * pexecute.txh: Document changes.
784 * functions.texi: Regenerated.
786 2007-01-31 Ben Elliston <bje@au.ibm.com>
788 * strsignal.c (psignal): Change type of signo to int.
789 * functions.texi: Regenerate.
791 2007-01-29 Simon Baldwin <simonb@google.com>
793 * cp-demangle.h (cplus_demangle_operators): External definition
794 suppressed if not building for libstdc++.
795 * cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface
796 to demangling, provides a malloc-less version of __cxa_demangle.
797 (cplus_demangle_print_callback): Public callback version of
798 cplus_demangle_print.
799 (struct d_growable_string): New growable string structure.
800 (d_growable_string_init): New function, provides support for
801 growable strings separate from print info.
802 (d_growable_string_resize): Likewise.
803 (d_growable_string_append_buffer): Likewise.
804 (d_growable_string_callback_adapter):): Likewise.
805 (d_print_init): New print info initialization function.
806 (d_print_error): Macro replace by inline function.
807 (d_print_saw_error): Likewise.
808 (d_append_char): Likewise.
809 (d_append_buffer): Likewise.
810 (d_append_string): New inline function, replaces the
811 d_append_string_constant macro.
812 (d_flush_buffer): New function, flushes buffer to callback.
813 (d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback
814 for unsupported dynamic arrays replaced by alloca().
815 (d_demangle): Return string length estimating removed.
816 (d_dump): Moved error case handling from call site into function.
817 (d_print_resize): Function removed.
818 (d_print_append_char): Likewise.
819 (d_print_append_buffer): Likewise.
820 (d_print_error): Likewise.
821 (d_print_comp): Added special case handling for Java arrays.
822 (java_demangle_v3): Removed string post-processing for Java arrays,
823 now replaced by special case handling in d_print_comp.
824 (cplus_demangle_v3_callback): Augmented interface to demangling,
825 provides a malloc-less version of cplus_demangle_v3.
826 (java_demangle_v3_callback): Augmented interface to demangling,
827 provides a malloc-less version of java_demangle_v3.
829 2007-01-12 Ben Elliston <bje@au.ibm.com>
831 * pex-unix.c (writeerr): Cast write result to void.
833 * choose-temp.c (choose_temp_base): Check the result of the call
834 to mktemp rather than testing the length of the modified string.
836 2006-12-20 Geoffrey Keating <geoffk@apple.com>
838 * cp-demangle.h: Add comment explaining what to do to avoid
841 (d_next_char): Don't advance past trailing '\0'.
842 * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char.
843 (d_nested_name): Likewise.
844 (d_special_name): Likewise.
845 (d_call_offset): Likewise.
846 (d_function_type): Likewise.
847 (d_array_type): Likewise.
848 (d_pointer_to_member_type): Likewise.
849 (d_template_param): Likewise.
850 (d_template_args): Likewise.
851 (d_template_arg): Likewise.
852 (d_expr_primary): Likewise.
853 (d_local_name): Likewise.
854 (d_substitution): Likewise.
855 (d_ctor_dtor_name): Use d_advance rather than d_next_char.
856 * testsuite/test-demangle.c: Include sys/mman.h.
857 (MAP_ANONYMOUS): Define.
859 (main): Use protect_end.
860 * testsuite/demangle-expected: Add testcases for overrunning
861 the end of the string.
863 2006-11-30 Andrew Stubbs <andrew.stubbs@st.com>
864 J"orn Rennecke <joern.rennecke@st.com>
867 * make-relative-prefix.c (make_relative_prefix_1): New function,
868 broken out of make_relative_prefix. Make link resolution dependent
870 (make_relative_prefix): Use make_relative_prefix_1.
871 (make_relative_prefix_ignore_links): New function.
873 2006-11-08 Vladimir Prus <vladimir@codesourcery.com>
875 * pex-win32.c (no_suffixes): Remove.
876 (std_suffixes): Add "" as first element.
877 (find_executable): Remove detection of already-present
878 extension. Try all suffixes in std_suffixes.
880 2006-11-07 Julian Brown <julian@codesourcery.com>
882 * floatformat.c (get_field): Fix segfault with little-endian word
883 order on 64-bit hosts.
884 (put_field): Likewise.
885 (min): Move definition.
887 2006-10-26 Danny Smith <dannysmith@users.sourceforge.net>
889 pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC.
890 (find_executable): Likewise.
891 (win32_spawn): Cast alloca return to (char**).
892 Replace malloc with XNEWVEC.
893 bcopy.c (bcopy): Add explict casts in assignments.
895 2006-10-25 Ben Elliston <bje@au.ibm.com>
897 * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}.
899 2006-10-10 Brooks Moses <bmoses@stanford.edu>
901 * Makefile.in: Added "pdf", "libiberty.pdf" target support.
902 * testsuite/Makefile.in: Added empty "pdf" target.
904 2006-09-22 Ian Lance Taylor <ian@airs.com>
907 * cp-demangle.c (d_substitution): Check for overflow when
908 computing substitution index.
910 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
912 * configure.ac: Add case for Mingw as host.
913 * configure: Regenerate.
915 2006-08-27 Ian Lance Taylor <ian@airs.com>
918 * pex-common.h (struct pex_funcs): Add toclose parameter to
920 * pex-common.c (pex_run_in_environment): Pass toclose to
922 * pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter.
923 * pex-unix.c (pex_unix_exec_child): Likewise.
924 * pex-msdos.c (pex_msdos_exec_child): Likewise.
925 * pex-win32.c (pex_win32_exec_child): Likewise.
928 * cp-demangle.c (d_pointer_to_member_type): Do add a substitution
929 for a qualified member which is not a function.
930 * testsuite/demangle-expected: Add test case.
932 2006-07-27 Jan Hubicka <jh@suse.cz>
934 PR rtl-optimization/28071
935 * hashtab.c (htab_empty): Clear out n_deleted/n_elements;
936 downsize the hashtable.
938 2006-07-04 Peter O'Gorman <peter@pogma.com>
940 * Makefile.in: chmod 644 before ranlib during install.
942 2006-06-02 Mark Shinwell <shinwell@codesourcery.com>
944 * pex-unix.c (pex_unix_exec_child): Insert cast when assigning
947 2006-06-01 Mark Shinwell <shinwell@codesourcery.com>
949 * pex-common.c: New function pex_run_in_environment.
950 * pex-common.h: Add environment parameter to exec_child.
951 * pex-msdos.c: Add environment parameter to pex_msdos_exec_child.
952 * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child.
953 (pex_djgpp_exec_child): Pass environment to child process.
954 * pex-unix.c: Add environment parameter to pex_unix_exec_child.
955 (pex_unix_exec_child): Pass environment to child process.
956 * pex-win32.c: Add environment parameter to pex_win32_exec_child.
957 New function env_compare for comparing VAR=VALUE pairs.
958 (win32_spawn): Assemble environment block and pass to CreateProcess.
959 (spawn_script): Pass environment through to win32_spawn.
960 (pex_win32_exec_child): Pass environment through to spawn_script and
962 * functions.texi: Regenerate.
963 * pexecute.txh: Document pex_run_in_environment.
965 2006-05-28 Mark Shinwell <shinwell@codesourcery.com>
967 * mkstemps.c: Open temporary files in binary mode.
969 2006-05-12 Anton Blanchard <anton@samba.org>
971 * cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
974 2006-04-24 Julian Brown <julian@codesourcery.com>
976 * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
978 2006-03-29 Jim Blandy <jimb@codesourcery.com>
980 * pex-common.c (pex_input_file, pex_input_pipe): New functions.
981 (pex_init_common): Initialize obj->input_file.
982 (pex_run): Close any file opened by pex_input_file.
983 * pexecute.txh (pex_input_file, pex_input_pipe): New docs.
984 * pex-common.h (struct pex_obj): New field input_file.
985 (struct pex_funcs): New function ptr fdopenw.
986 * pex-unix.c (pex_unix_fdopenw): New function.
987 (funcs): List it as our fdopenw function.
988 * pex-win32.c (pex_win32_fdopenw): New function.
989 (funcs): List it as our fdopenw function.
990 * pex-djgpp.c (funcs): Leave fdopenw null.
991 * pex-msdos (funcs): Same.
992 * functions.texi: Regenerated.
994 2006-04-10 Jim Blandy <jimb@codesourcery.com>
996 * pex-common.c (temp_file): New function, containing guts of
997 pex-style temporary file name generation.
1000 2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
1002 * Makefile.in: Add install-html, install-html-am, and
1003 install-html-recursive targets. Define mkdir_p and
1005 * configure.ac: AC_SUBST datarootdir, docdir, htmldir.
1006 * configure: Regenerate.
1007 * testsuite/Makefile.in: Add install-html and html targets.
1009 2006-03-31 Mark Mitchell <mark@codesourcery.com>
1011 * pex-win32.c (<errno.h>): Include.
1013 (argv_to_cmdline): New function.
1014 (std_suffixes): New variable.
1015 (no_suffixes): Likewise.
1016 (find_executable): New function.
1017 (win32_spawn): Likewise.
1018 (spawn_script): Use win32_spawn instead of _spawnv[p].
1019 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
1020 (pex_win32_wait): Likewise.
1022 2006-03-24 Jim Blandy <jimb@codesourcery.com>
1024 * pex-common.c (pex_run): Simplify output name handling.
1026 2006-03-12 Jim Blandy <jimb@red-bean.com>
1028 * pex-common.h (struct pex_obj): Doc fixes.
1030 2006-03-11 Jim Blandy <jimb@red-bean.com>
1032 * functions.texi: Regenerate.
1034 2006-02-21 Ben Elliston <bje@au.ibm.com>
1036 * pexecute.c (pwait): Syntax fix for previous change.
1038 2006-02-17 Uttam Pawar <uttamp@us.ibm.com>
1040 * pexecute.c (pwait): Free vector pointer.
1041 * partition.c (partition_print): Free class_elements pointer.
1043 2006-02-11 Roger Sayle <roger@eyesopen.com>
1044 R. Scott Bailey <scott.bailey@eds.com>
1045 Bill Northcott <w.northcott@unsw.edu.au>
1048 * floatformat.c: Include <float.h> where available.
1049 (NAN): Use value of DBL_QNAN if defined, and NAN isn't.
1051 2006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
1053 * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where
1055 * configure: Regenerated.
1057 2006-01-20 Carlos O'Donell <carlos@codesourcery.com>
1059 * testsuite/Makefile.in: Add test-expandargv test.
1060 * testsuite/test-expandargv.c: New test.
1061 * argv.c (expandargv): Check for errors with ferror,
1062 rather than just by looking at return value from fread.
1064 2005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
1066 * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
1067 to convert from "from".
1068 (floatformat_to_double): Likewise.
1069 (floatformat_from_double): Use explicit cast to convert from "to".
1071 2005-12-10 Terry Laurenzo <tlaurenzo@gmail.com>
1074 * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
1075 and include return type when found.
1076 (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add
1077 conditional logic to change printing order of return type.when
1078 the DMGL_RET_POSTFIX option is present.
1079 (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
1081 * testsuite/test-demangle.c (main): Recognize option --ret-postfix
1082 * testsuite/demangle-expected: Test cases to verify extended encoding.
1083 Updated comment to document --ret-postfix option.
1085 2005-11-06 Richard Guenther <rguenther@suse.de>
1087 * splay-tree.c (rotate_left): New function.
1088 (rotate_right): Likewise.
1089 (splay_tree_splay_helper): Remove.
1090 (splay_tree_splay): Re-implement.
1092 2005-10-31 Mark Kettenis <kettenis@gnu.org>
1094 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
1097 2005-10-07 Mark Mitchell <mark@codesourcery.com>
1099 * at-file.texi: Fix typo.
1101 2005-10-03 Mark Mitchell <mark@codesourcery.com>
1103 * at-file.texi: New file.
1105 2005-09-27 Mark Mitchell <mark@codesourcery.com>
1107 * argv.c (expandargv): Do not use xmalloc_failed.
1109 2005-09-26 Mark Mitchell <mark@codesourcery.com>
1111 * argv.c (safe-ctype.h): Include it.
1114 (buildargv): Use ISSPACE instead of ISBLANK.
1115 (expandargv): New function.
1116 * Makefile.in: Regenerated.
1118 2005-09-14 Christopher Faylor <cgf@timesys.com>
1120 * pex-win32.c: Include "windows.h".
1121 (backslashify): New function.
1122 (fix_argv): Use backslashify to convert path to windows format.
1123 Allocate one more place in new argv for potential executable from '#!'
1125 (tack_on_executable): New function. Conditional on USE_MINGW_MSYS
1127 (mingw_rootify): Ditto.
1128 (msys_rootify): Ditto.
1129 (spawn_script): New function.
1130 (pex_win32_exec_child): Save translated argv in newargv. Pass to
1131 spawn_script if spawnv* fails.
1132 (main): New function. Conditional on MAIN. Useful for testing.
1134 2005-08-17 Mark Kettenis <kettenis@gnu.org>
1136 * floatformat.c (floatformat_always_valid): Change type of last
1137 argument to `void *'.
1138 (floatformat_i387_ext_is_valid): Likewise.
1139 (floatformat_to_double): Change type of second argument to `const
1141 (floatformat_from_double): Change type of last argument to `void
1143 (floatformat_is_valid): Change type of last argument to `const
1145 (ieee_test): Remove redundant casts.
1147 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
1149 * strverscmp.c: Update FSF address.
1150 * testsuite/Makefile.in: Likewise.
1151 * testsuite/test-demangle.c: Likewise.
1152 * testsuite/test-pexecute.c: Likewise.
1154 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1156 * getopt.c: Include ansidecl.h before system headers.
1158 2005-07-22 Ben Elliston <bje@gnu.org>
1160 * getopt.c: Include "ansidecl.h".
1161 (_getopt_initialize): Mark argc and argv parameters as unused.
1163 2005-07-22 Ben Elliston <bje@gnu.org>
1165 * regex.c (regcomp): Change type of `i' from unsigned to int.
1167 2005-07-22 Ben Elliston <bje@gnu.org>
1169 Recover patch lost in the sourceware repository:
1170 2005-07-09 Ben Elliston <bje@au.ibm.com>
1171 * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
1172 * memmove.c: Likewise.
1173 * objalloc.c: Likewise.
1175 2005-07-22 Ben Elliston <bje@gnu.org>
1177 * configure.ac: Check for a getopt(3) declaration.
1178 * configure, config.in: Regenerate.
1180 2005-07-15 Ben Elliston <bje@au.ibm.com>
1182 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
1184 2005-07-12 Ben Elliston <bje@au.ibm.com>
1186 * floatformat.c (floatformat_to_double): Add a comment about a
1187 potential source of warnings when compiling this file.
1189 2005-07-12 Ben Elliston <bje@au.ibm.com>
1191 * pexecute.c (pexecute): Cast string litrals to char *.
1192 * regex.c (re_comp): Cast a call to gettext() to char *.
1194 2005-07-07 Kelley Cook <kcook@gcc.gnu.org>
1196 * config.table: Delete file. Move former contents into ...
1197 * configure.ac: ... here and escape any brackets for m4.
1198 * Makefile.in (config.status): Remove dependency on config.table.
1199 * configure: Regenerate.
1201 2005-07-07 Kelley Cook <kcook@gcc.gnu.org>
1203 * config.in: Regenerate for 6/20 change.
1205 2005-07-03 Steve Ellcey <sje@cup.hp.com>
1208 * md5.c (md5_process_bytes): Check alignment.
1210 2005-07-01 Ian Lance Taylor <ian@airs.com>
1213 * cp-demangle.c (d_expr_primary): Don't run off the end of the
1214 string while looking for the end of a literal value.
1215 * testsuite/demangle-expected: Add test case.
1217 2005-06-30 Daniel Berlin <dberlin@dberlin.org>
1219 * hashtab.c (EMPTY_ENTRY): Moved and renamed.
1220 (DELETED_ENTRY): Ditto.
1222 2005-06-20 Geoffrey Keating <geoffk@apple.com>
1224 * strverscmp.c: New.
1225 * Makefile.in (CFILES): Add strverscmp.c.
1226 (CONFIGURED_OFILES): Add strverscmp.o.
1227 (strverscmp.o): New rule.
1228 (stamp-functions): Add $(srcdir) to files in source directory.
1229 * configure.ac (funcs): Add strverscmp.
1230 (AC_CHECK_FUNCS): Add strverscmp.
1231 * configure: Regenerate.
1232 * functions.texi: Regenerate.
1234 2005-05-28 Eli Zaretskii <eliz@gnu.org>
1236 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
1237 * config.in, configure: Regenerate.
1239 2005-05-25 Richard Henderson <rth@redhat.com>
1241 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
1242 (d_make_comp, d_print_comp): Likewise.
1243 (d_special_name): Generate one.
1244 * testsuite/demangle-expected: Add a hidden alias test.
1246 2005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1248 * configure.ac: Check declarations for calloc(), getenv(),
1249 malloc(), realloc() and sbrk().
1250 * config.in: Regenerate.
1251 * configure: Likewise.
1253 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
1255 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
1256 * concat.c (liiberty_concat_ptr): Surround definition with an
1257 extern "C" block, if __cplusplus.
1258 (concat): Use XNEWVEC instead of xmalloc.
1259 (reconcat): Likewise.
1260 * cp-demangle.c (struct d_print_template): Rename member
1261 "template" to "template_decl". Adjust use throughout the file.
1262 (d_print_resize): Properly cast return value of realloc().
1263 (cplus_demangle_print): Same for malloc().
1264 (d_demangle): Likewise.
1265 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
1266 "typename" to "type_name".
1267 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
1268 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
1269 (demangle_template_value_parm): Likewise.
1270 (demangle_template): Likewise.
1271 (recursively_demangle): Likewise.
1272 (do_hpacc_template_literal): Likewise.
1274 (remember_type): Likewise.
1275 (remember_Ktype): Likewise.
1276 (register_Btype): Likewise.
1277 (string_need): Use XRESIZEVEC instead of xrealloc().
1278 * dyn-string.c (dyn_string_init): Use XNEWVEC.
1279 (dyn_string_new): Use XNEW.
1280 (dyn_string_resize): Use XRESIZEVEC.
1281 * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
1282 * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
1283 Otherwise include <stdlib.h>.
1284 (exchange): Cast return value of malloc().
1285 * hashtab.c (htab_size): Define as both macro and non-inline
1287 (htab_elements): Likewise.
1288 * getpwd.c (getpwd): Use XNEWVEC.
1289 (htab_create_alloc_ex): Use C90 prototype-style.
1290 * lrealpath.c (lrealpath): Appropriately cast return value of
1292 * make-relative-prefix.c (save_string): Likewise.
1293 * make-temp-file.c (try_dir): Rename from "try". Adjust use in
1295 (choose_tmpdir): Use XNEWVEC.
1296 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
1297 * pex-common.c (pex_init_common): Use XNEW.
1298 (pex_add_remove): Use XRESIZEVEC.
1299 (pex_run): Likewise.
1300 (pex_get_status_and_time): Likewise.
1301 * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
1302 * pex-msdos.c (pex_init): Use XNEW.
1303 (pex_msdos_exec_child): Likewise.
1304 (pex_msdos_exec_child): Use XRESIZEVEC.
1305 * pex-unix.c (pex_wait): Use XNEW.
1306 * pex-win32.c (fix_argv): Use XNEWVEC.
1307 * pexecute.c (pwait): Likewise.
1308 * setenv.c (setenv): Properly cast return value of malloc().
1309 * sigsetmask.c (sigsetmask): Rename local variables "old" and
1310 "new" to "old_sig" and "new_sig".
1311 * sort.c (main): Use XNEWVEC.
1312 * spaces.c (spaces): Cast return value of malloc().
1313 * strndup.c (strndup): Likewise.
1314 * ternary.c (ternary_insert): Use XNEW.
1315 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
1316 with an extern "C" block if __cplusplus.
1317 * xstrdup.c (xstrdup): Cast return value of memcpy().
1318 * xstrerror.c (strerror): Enclose declaration in an extern "C"
1319 block if __cplusplus.
1320 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
1322 2005-05-16 Andreas Jaeger <aj@suse.de>
1324 * getpwd.c: Remove unneeded prototype getcwd and move getwd so
1325 that it's only declared if needed.
1327 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
1330 2005-05-15 Andreas Jaeger <aj@suse.de>
1332 * functions.texi: Regenerated.
1334 2005-05-15 Eli Zaretskii <eliz@gnu.org>
1336 * pexecute.txh: Enclose multi-word data types in @deftypefn in
1337 braces. Minor wording fixes. Use --- for em-dash. Use
1338 @enumerate in enumerated lists.
1340 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
1343 2005-05-11 Eli Zaretskii <eliz@gnu.org>
1345 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
1347 (pex_init): Fix last argument to pex_init_common.
1348 (pex_djgpp_exec_child): Remove leading underscore from _open,
1349 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
1350 which is undeclared, with `executable', which was unused. Remove
1351 unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
1352 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
1354 2005-05-11 Paul Brook <paul@codesourcery.com>
1356 * Makefile.in: Regenerate dependencies.
1358 2005-05-10 Nick Clifton <nickc@redhat.com>
1360 * Update the address and phone number of the FSF organization in
1361 the GPL notices in the following files:
1362 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
1363 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
1364 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
1365 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
1366 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
1367 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
1368 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
1369 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
1370 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
1371 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
1372 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
1373 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
1374 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
1376 2005-05-06 Kelley Cook <kcook@gcc.gnu.org>
1378 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
1379 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
1380 * configure: Regenerate.
1382 2005-05-06 Kelley Cook <kcook@gcc.gnu.org>
1384 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
1385 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
1386 * aclocal.m4: Don't include accross.m4.
1387 * configure, config.in: Regenerate.
1389 2005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1391 * fopen_unlocked.c (unlock_std_streams): New.
1393 * functions.texi: Regenerate.
1395 2005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1397 * fopen_unlocked.c (unlock_stream): New.
1398 Consolidate unlocking code into a helper function.
1400 * functions.texi: Regenerate.
1402 2005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
1404 * asprintf.c: Include config.h.
1405 * basename.c: Likewise.
1406 * fdmatch.c: Likewise.
1408 * lbasename.c: Likewise.
1409 * spaces.c: Likewise.
1410 * xatexit.c:Likewise.
1411 * configure.ac: Do check declarations for basename, ffs, asprintf
1412 and vasprintf for real.
1413 * configure: Regenerate.
1415 2005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
1417 * argv.c (dupargv): Allocate space of argv[argc], not
1418 sizeof(char *) of that amount. Cast result to char *.
1420 2005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
1422 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
1423 Replace not with negate.
1425 2005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
1427 * configure.ac: Check declarations for basename, ffs, asprintf,
1429 * configure: Regenerate.
1430 * config.in: Likewise.
1432 2005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1434 * Makefile.in (CFILES): Add fopen_unlocked.c.
1435 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
1436 Regenerate dependencies.
1438 * configure.ac: Check for stdio_ext.h and __fsetlocking.
1440 * fopen_unlocked.c: New file.
1442 * functions.texi, configure, config.in: Regenerate.
1444 2005-04-04 Ian Lance Taylor <ian@airs.com>
1446 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
1447 declaration before statement.
1449 2005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1451 * bcmp.c: Fix warnings and implement using memcmp.
1452 * bcopy.c: Fix warnings.
1453 * bzero.c: Fix warnings and implement using memset.
1455 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
1456 -Wstrict-prototypes.
1457 * configure, config.in: Regenerate.
1459 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
1460 warnings and reconcile interfaces with relevant standards.
1462 2005-04-02 Ian Lance Taylor <ian@airs.com>
1464 * cp-demangle.c: Update copyright.
1466 2005-03-31 Joseph S. Myers <joseph@codesourcery.com>
1468 * gettimeofday.c: Add "Supplemental" to @deftypefn.
1469 * functions.texi: Regenerate.
1471 2005-03-28 Ian Lance Taylor <ian@airs.com>
1473 * pex-common.c: New file.
1474 * pex-one.c: New file.
1475 * pexecute.c: New file.
1476 * pex-common.h: Include <stdio.h>.
1477 (struct pex_obj): Define.
1478 (struct pex_funcs): Define.
1479 (pex_init_common): Declare.
1480 * pex-unix.c: Rewrite.
1481 * pex-win32.c: Rewrite.
1482 * pex-djgpp.c: Rewrite.
1483 * pex-msdos.c: Rewrite.
1484 * testsuite/text-pexecute.c: New file.
1485 * pexecute.txh: Rewrite.
1486 * configure.ac: Check for wait3 and wait4. Set CHECK to
1487 really-check rather than check-cplus-dem.
1488 * functions.texi: Rebuild.
1489 * Makefile.in: Rebuild dependencies.
1490 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
1491 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
1492 * testsuite/Makefile.in (really-check): New target.
1493 (check-pexecute, test-pexecute): New targets.
1494 * configure: Rebuild.
1496 2005-03-28 Mark Kettenis <kettenis@gnu.org>
1498 * unlink-if-ordinary.c: Include <sys/types.h>.
1500 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1502 Convert libiberty to use ISO C prototype style 7/n.
1503 * regex.c (PARAMS): Remove definition.
1504 (PREFIX): Unconditionaly define using ISO C ## operator.
1505 (init_syntax_once, extract_number, extract_number_and_incr,
1506 print_fastmap, print_partial_compiled_pattern,
1507 print_compiled_pattern, print_double_string, printchar,
1508 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
1509 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
1510 at_begline_loc_p, at_endline_p, group_in_compile_stack,
1511 insert_space, wcs_compile_range, byte_compile_range,
1512 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
1513 re_set_registers, re_search, re_search_2, re_search_3, re_match,
1514 re_match_2, count_mbs_length, wcs_re_match_2_internal,
1515 byte_re_match_2_internal, group_match_null_string_p,
1516 alt_match_null_string_p, common_op_match_null_string_p,
1517 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
1518 regexec, regerror, regfree): Use ISO C prototype style.
1519 * partition.c: (elem_compare): Likewise.
1520 * cp-demangle.c (print_usage): Likewise.
1522 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1524 Convert libiberty to use ISO C prototype style 5/n.
1525 * random.c (srandom, initstate, setstate, random): Use ISO C
1527 * putenv.c (putenv): Likewise.
1528 * physmem.c (physmem_available, physmem_total, main): Likewise.
1529 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
1530 * pex-unix.c (pexecute, pwait): Likewise.
1531 * pex-msdos.c (pexecute, pwait): Likewise.
1532 * pex-djgpp.c (pexecute, pwait): Likewise.
1533 * partition.c (partition_new, partition_delete, partition_union)
1534 (elem_compare, partition_print): Likewise.
1535 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
1536 _obstack_allocated_p, _obstack_free, obstack_free,
1537 _obstack_memory_used, print_and_abort, obstack_next_free,
1538 obstack_object_size, obstack_base): Likewise. Remove codes
1539 predicated on !defined(__STDC__).
1540 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
1541 objalloc_free_block): Use ISO C prototypes.
1542 * mkstemps.c (mkstemps): Likewise.
1543 * memset.c (memset): Likewise.
1544 * mempcpy.c (mempcpy): Likewise.
1545 * rename.c (rename): Likewise.
1546 * rindex.c (rindex): Likewise.
1547 * setenv.c (setenv, unsetenv): Likewise.
1548 * sigsetmask.c (sigsetmask): Likewise.
1549 * snprintf.c (snprintf): Likewise.
1550 * sort.c (sort_pointers, xmalloc): Likewise.
1551 * spaces.c (spaces): Likewise.
1552 * splay-tree.c (splay_tree_delete_helper,
1553 splay_tree_splay_helper, splay_tree_splay,
1554 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
1555 splay_tree_new, splay_tree_xmalloc_allocate,
1556 splay_tree_new_with_allocator, splay_tree_delete,
1557 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
1558 splay_tree_max, splay_tree_min, splay_tree_predecessor,
1559 splay_tree_successor, splay_tree_foreach,
1560 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
1561 * stpcpy.c (stpcpy): Likewise.
1562 * stpncpy.c (stpncpy): Likewise.
1563 * strcasecmp.c (strcasecmp): Likewise.
1564 * strchr.c (strchr): Likewise.
1565 * strdup.c (strdup): Likewise.
1567 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1569 Convert libiberty to use ISO C prototype style 6/n.
1570 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
1571 strtoerrno, main): Use ISO C prototype style.
1572 * strncasecmp.c (strncasecmp): Likewise.
1573 * strncmp.c (strncmp): Likewise.
1574 * strndup.c (strndup): Likewise.
1575 * strrchr.c (strrchr): Likewise.
1576 * strsignal.c (init_signal_tables, signo_max, strsignal,
1577 strsigno, strtosigno, psignal, main): Likewise.
1578 * strstr.c (strstr): Likewise.
1579 * strtod.c (strtod, atof): Likewise.
1580 * strtol.c (strtol): Likewise.
1581 * strtoul.c (strtoul): Likewise.
1582 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
1583 ternary_recursivesearch): Likewise.
1584 * tmpnam.c (tmpnam): Likewise.
1585 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
1586 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
1587 * vfork.c (vfork): Likewise.
1588 * vfprintf.c (vfprintf): Likewise.
1589 * vprintf.c (vprintf): Likewise.
1590 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
1591 * vsprintf.c (vsprintf): Likewise.
1592 * waitpid.c (waitpid): Likewise.
1593 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
1594 * xexit.c (xexit): Likewise.
1595 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
1596 xcalloc, xrealloc): Likewise.
1597 * xmemdup.c (xmemdup): Likewise.
1598 * xstrdup.c (xstrdup): Likewise.
1599 * xstrerror.c (xstrerror): Likewise.
1600 * xstrndup.c (xstrndup): Likewise.
1602 2005-03-27 Andreas Jaeger <aj@suse.de>
1604 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
1606 * configure: Regenerated.
1608 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1610 * getopt1.c (getopt_long_only): Fix thinko.
1612 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1614 Convert libiberty to use ISO C prototype style 4/n.
1615 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
1616 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
1617 htab_create_alloc, htab_set_functions_ex, htab_create,
1618 htab_try_create, htab_delete, htab_empty,
1619 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
1620 htab_find, htab_find_slot_with_hash, htab_find_slot,
1621 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
1622 htab_traverse_noresize, htab_traverse, htab_collisions,
1623 htab_hash_string, iterative_hash): Use ISO C prototype.
1624 * hex.c (hex_init): Likewise.
1625 * index.c (index): Likewise.
1626 * insque.c (insque, remque): Likewise.
1627 * lbasename.c (lbasename): Likewise.
1628 * lrealpath.c (lrealpath): Likewise.
1629 * make-relative-prefix.c (save_string, split_directories,
1630 free_split_directories, make_relative_prefix): Likewise.
1631 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
1632 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
1633 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
1634 * memchr.c (memchr): Likewise.
1635 * memcpy.c (memcpy): Likewise.
1636 * memmove.c (memmove): Likewise.
1637 * gettimeofday.c (gettimeofday): Likewise.
1638 * getruntime.c (get_run_time): Likewise.
1639 * getpwd.c (getpwd, getpwd): Likewise.
1640 * getpagesize.c (getpagesize): Likewise.
1641 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
1642 * getopt.c (my_index, exchange, _getopt_initialize,
1643 _getopt_internal, getopt, main): Likewise.
1644 * getcwd.c (getcwd): Likewise.
1645 * fnmatch.c (fnmatch): Likewise.
1646 * floatformat.c (floatformat_always_valid,
1647 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
1648 put_field, floatformat_from_double, floatformat_is_valid,
1649 ieee_test, main): Likewise.
1650 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
1651 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
1652 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
1653 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
1654 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
1655 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
1656 fibheap_link, fibheap_cut, fibheap_cascading_cut,
1657 fibnode_insert_after, fibnode_remove): Likewise.
1658 * ffs.c (ffs): Likewise.
1659 * fdmatch.c (fdmatch): Likewise.
1660 * dyn-string.c (dyn_string_init, dyn_string_new,
1661 dyn_string_delete, dyn_string_release, dyn_string_resize,
1662 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
1663 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
1664 dyn_string_insert_cstr, dyn_string_insert_char,
1665 dyn_string_append, dyn_string_append_cstr,
1666 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
1669 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1671 Convert libiberty to use ISO C prototype style 3/n.
1672 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
1673 consume_count_with_underscores, code_for_qualifier,
1674 qualifier_string, demangle_qualifier, cplus_demangle_opname,
1675 cplus_mangle_opname, cplus_demangle_set_style,
1676 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
1677 ada_demangle, internal_cplus_demangle, squangle_mop_up,
1678 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
1679 delete_work_stuff, mop_up, demangle_signature,
1680 demangle_method_args, demangle_template_template_parm,
1681 demangle_expression, demangle_integral_value,
1682 demangle_real_value, demangle_template_value_parm,
1683 demangle_template, arm_pt, demangle_arm_hp_template,
1684 demangle_class_name, demangle_class, iterate_demangle_function,
1685 demangle_prefix, gnu_special, recursively_demangle, arm_special,
1686 demangle_qualified, get_count, do_type, demangle_fund_type,
1687 do_hpacc_template_const_value, do_hpacc_template_literal,
1688 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
1689 register_Btype, remember_Btype, forget_B_and_K_types,
1690 forget_types, demangle_args, demangle_nested_args,
1691 demangle_function_name, string_need, string_delete, string_init,
1692 string_clear, string_empty, string_append, string_appends,
1693 string_appendn, string_prepend, string_prepends, string_prependn,
1694 string_append_template_idx): Use ISO C prootype style.
1695 * cp-demint.c (cplus_demangle_fill_component,
1696 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
1697 cplus_demangle_v3_components): Likewise.
1699 2005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
1701 Convert libiberty to use ISO C prototype style 2/n.
1702 * cp-demangle.h: Remove uses of PARAMS.
1703 * cp-demangle.c: Likewise.
1704 (d_dump, cplus_demangle_fill_name,
1705 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
1706 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
1707 d_make_builtin_type, d_make_operator, d_make_extended_operator,
1708 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
1709 cplus_demangle_mangled_name, has_return_type,
1710 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
1711 d_prefix, d_unqualified_name, d_source_name, d_number,
1712 d_identifier, d_operator_name, d_special_name, d_call_offset,
1713 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
1714 d_function_type, d_bare_function_type, d_class_enum_type,
1715 d_array_type, d_pointer_to_member_type, d_template_param,
1716 d_template_args, d_template_arg, d_expression, d_expr_primary,
1717 d_local_name, d_discriminator, d_add_substitution,
1718 d_substitution, d_print_resize, d_print_append_char,
1719 d_print_append_buffer, d_print_error, cplus_demangle_print,
1720 d_print_comp, d_print_java_identifier, d_print_mod_list,
1721 d_print_mod, d_print_function_type, d_print_array_type,
1722 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
1723 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
1724 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
1727 2005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
1729 Convert libiberty to ISO C prototype style 1/n.
1730 * _doprnt.c: Remove conditional #include <varargs.h> on
1731 ANSI_PROTOTYPES as the latter is always assumed.
1732 (_doprnt, checkit, main): Use ISO C prototype.
1733 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
1734 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
1735 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
1736 * atexit.c (atexit): Likewise
1737 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
1738 (asprintf): Use ISO C prototype.
1739 * basename.c (basename): Likewise
1740 * bcmp.c (bcmp): Likewise.
1741 * bcopy.c (bcopy): Likewise.
1742 * bzero.c (bzero): Likewise.
1743 * bsearch.c (bsearch): Likewise. Improve const-correctness.
1744 * choose-temp.c (choose_temp_base): Likewise.
1745 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
1746 (calloc): Use ISO C prototype.
1747 * clock.c (clock): Likewise.
1748 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
1749 (vconcat_length, vconcat_copy, concat_length, concat_copy,
1750 concat_copy2, concat, reconcat, main): Use ISO C prototype.
1751 * copysign.c (copysign): Likewise.
1753 2005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1755 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
1756 (REQUIRED_OFILES): Add xstrndup.o.
1757 (CONFIGURED_OFILES): Add strndup.o.
1758 Regenerate dependencies.
1760 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
1762 * strndup.c, xstrndup.c: New.
1764 * config.in, configure, functions.texi: Regenerate.
1766 2005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1768 * xmemdup.c, xstrdup.c: Expose the tail call.
1770 2005-03-09 Mark Mitchell <mark@codesourcery.com>
1772 * configure.ac (funcs): Add gettimeofday.
1773 * configure: Regenerated.
1774 * gettimeofday.c: New file.
1775 * Makefile.in (CFILES): Add gettimeofday.
1776 (CONFIGURED_OFILES): Add gettimeofday.o.
1777 (./gettimeofday.o): New rule.
1779 2005-03-09 Ian Lance Taylor <ian@airs.com>
1781 * pex-os2.c: Remove.
1782 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
1783 * Makefile.in (CFILES): Remove pex-os2.c.
1784 (CONFIGURED_OFILES): Remove pex-os2.o.
1785 (pex-os2.o): Remove target.
1786 * configure: Rebuild.
1788 2005-03-07 Ian Lance Taylor <ian@airs.com>
1790 * mpw-config.in: Remove.
1791 * mpw-make.sed: Remove.
1793 * Makefile.in (CFILES): Remove pex-mpw.c.
1794 (CONFIGURED_OFILES): Remove pex-mpw.o.
1795 (mpw.o, pex-mpw.o): Remove targets.
1796 * maint-tool (undoc): Remove reference to mpw.c.
1798 2005-03-06 DJ Delorie <dj@redhat.com>
1800 * configure.ac (target_header_dir): vfork is a stub under djgpp.
1801 * configure: Regenerated.
1803 2005-03-01 Jan Beulich <jbeulich@novell.com>
1805 * Makefile.in (CFILES): Add unlink-if-ordinary.c
1806 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
1807 Add dependencies and rule for unlink-if-ordinary.o.
1808 * unlink-if-ordinary.c: New.
1810 2005-03-01 Ben Elliston <bje@au.ibm.com>
1812 * hashtab.c (htab_find_slot_with_hash): Make function
1813 documentation clearer.
1815 2005-02-13 Jason Merrill <jason@redhat.com>
1817 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
1820 2005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
1822 * hex.c (hex_value): Group 'unsigned int' together to get correct
1824 * functions.texi: Regenerated.
1826 2004-12-27 H.J. Lu <hongjiu.lu@intel.com>
1828 * Makefile.in: Undo to 2004-12-17.
1829 * aclocal.m4: Likewise.
1830 * config.table: Likewise.
1831 * configure.ac: Likewise.
1832 * maint-tool: Likewise.
1833 * configure: Likewise.
1835 2004-12-19 H.J. Lu <hongjiu.lu@intel.com>
1838 * Makefile.in (enable_shared): New substitute.
1840 (PREFIXTARGETLIB): New.
1842 (PREFIXTESTLIB): New.
1845 ($(TARGETLIB)): Use $(LINK) to create libraries and create
1847 ($(TESTLIB)): Likewise.
1848 (mostlyclean): Don't remove .libs. Remove the libtool object
1851 * config.table (enable_shared): Removed.
1853 * configure.ac (enable_static): Set to yes.
1854 (AC_PROG_LIBTOOL): Removed.
1855 (AM_DISABLE_SHARED): Uncommented.
1856 (AM_PROG_LIBTOOL): Likewise.
1857 (LIBOBJS): Add `./' to avoid VPATH.
1858 (LTLIBOBJS): Likewise.
1859 (enable_shared): Substitute.
1860 * configure: Regenerated.
1862 2004-12-18 H.J. Lu <hongjiu.lu@intel.com>
1864 * Makefile.in (top_builddir): Set to `.'.
1865 (OUTPUT_OPTION): Removed.
1868 (EXTRA_LTOFILES): New.
1869 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
1870 (all): Remove stamp-picdir.
1873 (REQUIRED_LTOFILES): New.
1874 (CONFIGURED_LTOFILES): New.
1875 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
1876 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
1877 (stamp-picdir): Completely removed.
1878 (maint-missing): Pass $(REQUIRED_LTOFILES)
1879 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
1880 $(CONFIGURED_OFILES)
1881 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
1882 $(CONFIGURED_LTOFILES).
1883 (mostlyclean): Also remove *.lo .libs.
1884 Run "make maint-deps".
1886 * aclocal.m4: Include ../libtool.m4.
1888 * config.table: Don't check --enable-shared.
1890 * configure.ac (AC_PROG_LIBTOOL): Add.
1891 (AC_PROG_CC_C_O): Removed.
1892 (OUTPUT_OPTION): Removed.
1893 (NO_MINUS_C_MINUS_O): Removed.
1894 (ltpexecute): New substitute.
1896 * configure: Regenerated.
1898 * maint-tool: Updated for .lo/libtool.
1900 2004-12-11 Ben Elliston <bje@au.ibm.com>
1902 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
1903 * configure: Regenerate.
1904 * config.in: Likewise.
1906 2004-12-07 DJ Delorie <dj@redhat.com>
1908 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
1909 that recursion (and thus large stack space) is not needed.
1911 2004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
1913 * pex-unix.c: Fix the spelling of longjmp.
1915 2004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
1918 * cp-demangle.c (d_call_offset): Remove useless local variables
1919 offset and virtual_offset.
1920 * cplus-dem.c (ada_demangle): Remove useless local variable
1922 (demangle_template): Remove useless local variable start.
1924 2004-11-19 Roger Sayle <roger@eyesopen.com>
1926 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
1927 "ansidecl.h" to avoid redeclaration errors with native compilers.
1928 * regex.c: Protect config.h from multiple inclusion.
1930 2004-11-12 Mike Stump <mrs@apple.com>
1932 * Makefile.in (libiberty.html): Fix html generation.
1934 2004-09-08 Adam Nemet <anemet@lnxw.com>
1936 * vasprintf.c: Accept __va_copy in addition to va_copy.
1938 2004-09-03 Paolo Bonzini <bonzini@gnu.org>
1940 * configure: Regenerate.
1942 2004-09-02 Paolo Bonzini <bonzini@gnu.org>
1944 * configure.ac: Do not enable multilibs for build-side libiberty.
1946 2004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
1948 * lrealpath.c (lrealpath): Add _WIN32 support.
1950 2004-06-28 Zack Weinberg <zack@codesourcery.com>
1952 * cp-demangle.h: Declare cplus_demangle_operators,
1953 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
1954 cplus_demangle_type as static if IN_GLIBCPP_V3.
1956 2004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
1959 * cp-demangle.c (d_expr_primary): Check for a failure return from
1960 cplus_demangle_type.
1961 * testsuite/demangle-expected: Add test case.
1963 2004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
1965 * pex-win32.c (fix_argv): Expand comment.
1967 2004-05-25 Daniel Jacobowitz <drow@false.org>
1969 * Makefile.in: Add .NOEXPORT.
1971 2004-04-29 Douglas B Rupp <rupp@gnat.com>
1973 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
1976 2004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1978 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
1979 * configure: Regenerate.
1981 2004-04-22 Richard Henderson <rth@redhat.com>
1983 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
1984 (CHAR_BIT): Provide default.
1985 (struct prime_ent, prime_tab): New.
1986 (higher_prime_index): Rename from higher_prime_number, return index.
1988 (htab_mod, htab_mod_m2): Use it.
1989 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
1990 (htab_expand): Likewise.
1991 * configure.ac: Check for stdint.h.
1992 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
1993 * config.in, configure: Rebuild.
1995 2004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
1997 * strerror.c: Include config.h, and redefine sys_nerr and
1998 sys_errlist, before including ansidecl.h and libiberty.h.
2000 2004-04-13 Jeff Law <law@redhat.com>
2002 * hashtab.c (htab_remove_elt_with_hash): New function.
2003 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
2005 2004-03-31 Richard Henderson <rth@redhat.com>
2007 * hashtab.c (htab_size): Move to top of file; mark inline.
2008 (htab_elements): Likewise.
2009 (htab_mod, htab_mod_m2): New.
2010 (htab_delete): Refactor htab->size and htab->entries.
2011 (htab_empty): Likewise.
2012 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
2013 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
2014 (htab_clear_slot): Use htab_size, htab_elements.
2015 (htab_traverse_noresize, htab_traverse): Likewise.
2017 2004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
2019 * pex-unix.c (pexecute): Use vfork instead of fork, with
2020 appropriate changes to make this safe.
2021 * pex-common.h (STDERR_FILE_NO): Define.
2023 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
2024 an 80 column screen. Run maint-deps.
2026 2004-03-09 Kelley Cook <kcook@gcc.gnu.org>
2028 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
2029 * acconfig.h: Delete redundant file.
2030 * config.in: Regenerate.
2031 * configure: Regenerate.
2033 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
2035 * configure: Regenerate for config/accross.m4 correction.
2037 2004-03-07 Andreas Jaeger <aj@suse.de>
2039 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
2041 (main): Initialize style.
2043 2004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
2045 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
2046 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
2047 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
2048 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
2049 short types to D_PRINT_DEFAULT. Change other integer types to use
2050 new D_PRINT_* values where appropriate. Change float types to
2052 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
2054 * testsuite/demangle-expected: Adjust two test cases.
2056 * cp-demangle.c (d_print_function_type): Print a space before the
2057 parenthesis around the function type in more cases.
2058 * testsuite/demangle-expected: Adjust one test case.
2060 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
2061 parentheses around a cast.
2062 * testsuite/demangle-expected: Adjust two test cases to match new
2065 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
2067 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
2068 push more than one of the same CV-qualifier on the top of the
2070 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
2071 move the CV-qualifiers to apply to the element type instead.
2072 (d_print_array_type): When checking the modifiers, keep looking
2073 past ones which have been printed already.
2074 * testsuite/demangle-expected: Add three test cases.
2076 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
2078 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
2079 empty string correctly.
2081 * cp-demangle.c (__cxa_demangle): It is not an error if status is
2082 not NULL. It is an error if the mangled name is the same as a
2084 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
2085 than cplus_demangle_v3.
2087 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
2088 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
2090 2004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
2092 * regex.c: Include <ansidecl.h>.
2093 (regcomp): Cast i to int.
2094 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
2096 2004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
2098 * configure.ac: Add m4_pattern_allow(LIBOBJS).
2099 * configure: Regenerate.
2101 2004-01-22 DJ Delorie <dj@redhat.com>
2103 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
2104 with explicit build rules.
2107 * configure.ac (pexecute, LIBOBJS): Add ./ .
2108 * maint-tool: Build dependencies with explicit rules.
2110 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
2112 * strdup.c (strdup): Constify the argument.
2114 2004-01-14 Loren J. Rittle <ljrittle@acm.org>
2116 * Makefile.in (distclean): Remove config.cache.
2118 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
2120 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
2121 takes two parameters.
2122 * cp-demint.c (cplus_demangle_fill_component): Likewise.
2124 2004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
2126 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
2127 defined, rename some functions which are to become static via
2129 (CP_STATIC_IF_GLIBCPP_V3): Define.
2130 (struct d_operator_info): Move definition to cp-demangle.h, and
2131 rename to demangle_operator_info. Change all uses.
2132 (enum d_builtin_type_print): Move definition to cp-demangle.h.
2133 (struct d_builtin_type_info): Move definition to cp-demangle.h,
2134 and rename to demangle_builtin_type_info. Change all uses.
2135 (enum d_comp_type): Move definition to include/demangle.h, and
2136 rename to demangle_component_type, and change all enums to start
2137 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
2138 (struct d_comp): Move definition to include/demangle.h, and rename
2139 to demangle_component. Change all uses.
2140 (struct d_info): Move definition to cp-demangle.h.
2141 (cplus_demangle_fill_name): New function.
2142 (cplus_demangle_fill_extended_operator): New function.
2143 (cplus_demangle_fill_ctor): New function.
2144 (cplus_demangle_fill_dtor): New function.
2145 (d_make_empty): Remove type parameter. Change all callers.
2146 (d_make_name): Use cplus_demangle_fill_name.
2147 (d_make_extended_operator): Use
2148 cplus_demangle_fill_extended_operator.
2149 (d_make_ctor): Use cplus_demangle_fill_ctor.
2150 (d_make_dtor): Use cplus_demangle_fill_dtor.
2151 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
2152 non-static by default. Change all callers.
2153 (cplus_demangle_operators): Rename from d_operators. Change all
2154 uses. Make non-static by default. Add sentinel at end of array.
2155 (d_operator_name): Adjust initialization of high for new sentinel
2156 in cplus_demangle_operators.
2157 (cplus_demangle_builtin_types): Rename from d_builtin_types.
2158 Change all uses. Make non-static by default. Change initializer
2159 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
2160 (cplus_demangle_type): Rename from d_type. Make non-static by
2161 default. Change all callers.
2162 (cplus_demangle_init_info): Rename from d_init_info. Make
2163 non-static by default. Change all callers.
2164 * cp-demangle.h: New file.
2165 * cp-demint.c: New file.
2166 * Makefile.in: Rebuild dependencies.
2167 (CFILES): Add cp-demint.c.
2168 (REQUIRED_OFILES): Add cp-demint.o.
2170 2004-01-09 Kelley Cook <kcook@gcc.gnu.org>
2172 * configure.in: Rename file to ...
2173 * configure.ac: ... this.
2174 * Makefile.in: Update a comment for above change.
2176 * config.in: Regenerate.
2178 2004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
2180 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
2181 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
2182 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
2183 demangling template parameters.
2184 * testsuite/test-demangle.c (fail): New static function.
2185 (main): Support new options in input file: --no-params,
2186 --is-v3-ctor, and --is-v3-dtor.
2187 * testsuite/demangle-expected: Add --no-params to most tests, and
2188 add the correct result when parameters are not demangled. Add
2189 some simple tests for V3 constructor/destructor recognition.
2191 2003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2193 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
2195 2003-12-22 Daniel Jacobowitz <drow@mvista.com>
2198 * Makefile.in (lbasename.o): Depend on filenames.h.
2199 * lbasename.c: Include "filenames.h" instead of defining
2202 2003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
2204 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
2206 (struct d_operator_info): Add len field.
2207 (struct d_builtin_type_info): Add len and java_len fields.
2208 (struct d_standard_sub_info): Add simple_len, full_len, and
2209 set_last_name_len fields.
2210 (struct d_comp): Add len field to s_string.
2211 (struct d_info): Add send, did_subs, and expansion fields.
2212 (d_append_string_constant): Define.
2213 (d_append_string): Remove. Change all users to use
2214 d_append_string_constant or d_append_buffer instead.
2215 (d_make_sub): Add len parameter. Change all callers.
2216 (d_name): Increase expansion when substituting std::.
2217 (d_unqualified_name): Increase expansion for an operator.
2218 (d_number): Don't use multiplication for negative numbers.
2219 (d_identifier): Make sure there are enough characters in the
2220 string for the specified length. Adjust expansion for an
2221 anonymous namespace.
2222 (d_operators): Initialize len field.
2223 (d_special_name, d_ctor_dtor_name): Increase expansion.
2224 (d_builtin_types): Initialize len and java_len fields.
2225 (d_type): Increase expansion for a builtin type.
2226 (d_cv_qualifiers): Increase expansion for each qualifier.
2227 (d_bare_function_type): Decrease expansion when removing single
2229 (d_template_param): Increment did_subs.
2230 (d_expression): Increase expansion for an operator.
2231 (d_expr_primary): Decrease expansion for a type we will print
2233 (standard_subs): Initialize new fields.
2234 (d_substitution): Increment did_subs when doing a normal
2235 substitution. Increase expansion for a special substitution.
2236 (d_print): Add estimate parameter. Change all callers.
2237 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
2238 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
2239 (d_print_java_identifier): Rename from d_print_identifier. Handle
2240 only Java case. Change caller.
2241 (d_init_info): Change return type to void. Change all callers.
2242 Initialize send, did_subs, and expansion fields. Do not
2243 initialize comps and subs fields.
2244 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
2245 arrays on stack. Make an estimate of the length of the demangled
2246 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
2247 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
2248 subs arrays on stack.
2250 2003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
2252 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
2253 after the identifier.
2254 * testsuite/demangle-expected: Add test case.
2256 2003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
2258 Fix for PR c++/13447:
2259 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
2260 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
2261 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
2263 (is_ctor_or_dtor): Likewise.
2264 (d_local_name): Use D_COMP_LOCAL_NAME rather than
2266 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
2267 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
2268 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
2269 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
2270 * testsuite/demangle-expected: Add two test cases.
2272 * cp-demangle.c (d_print_function_type): Clear the global modifier
2273 list when printing the modifiers, not just when printing the
2274 function parameters.
2275 * testsuite/demangle-expected: Add two test cases.
2277 2003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
2279 * cp-demangle.c (d_print_function_type): Print the function
2280 parameters with no modifiers.
2281 * testsuite/demangle-expected: Add test case.
2283 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
2284 expect that we've read the entire string.
2285 (is_ctor_or_dtor): Don't expect that we've read the entire
2286 string--reverse patch of 2003-11-29.
2288 2003-12-15 Brendan Kehoe <brendan@zen.org>
2290 * libiberty/Makefile.in (floatformat.o): Add dependency on
2291 config.h to accompany change of 2003-12-03.
2293 2003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
2295 Fix handling of constructor/destructor of standard substitution:
2296 * cp-demangle.c (struct d_standard_sub_info): Define.
2297 (d_substitution): Add prefix argument. Change all callers.
2298 Rework handling of standard substitutions to print full name when
2299 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
2300 * testsuite/demangle-expected: Add test case.
2302 Fix handling of negative literal constants:
2303 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
2304 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
2305 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
2306 (d_print_comp): Handle D_COMP_LITERAL_NEG.
2307 * testsuite/demangle-expected: Add test case.
2309 2003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
2311 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
2312 (d_last_char): Define new macro.
2313 (d_make_name): Reject an empty name.
2314 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
2315 (d_substitution, d_print_identifier): Likewise.
2316 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
2317 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
2318 (d_print_mod) Use new d_last_char macro.
2319 (d_print_cast): Use new d_last_char macro.
2320 (is_ctor_or_dtor): Don't leak memory.
2322 Fix handling of member function modifiers:
2323 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
2324 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
2325 (d_dump): Dump new d_comp_type values.
2326 (d_make_comp): Accept new d_comp_type values.
2327 (has_return_type): Only accept _THIS variants of qualifiers.
2328 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
2330 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
2331 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
2332 qualifiers and printing them at the end, add _THIS qualifiers to
2334 (d_print_comp) [D_COMP_*_THIS]: New cases.
2335 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
2337 (d_print_mod_list): Add suffix parameter. Change all callers.
2338 Keep walking the list even if the current modifier has been
2340 (d_print_mod): Handle new _THIS qualifiers.
2341 (d_print_function_type): Handle new _THIS qualifiers when deciding
2342 whether to print a parenthesis. Put a space before the
2343 parenthesis in some cases. Call d_print_mod_list again at the
2344 end, passing suffix as 1.
2345 (is_ctor_or_dtor): Look for new _THIS qualifiers.
2346 * testsuite/demangle-expected: Add test case.
2348 Fix for PR gcc/13304:
2349 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
2350 before the '<' is itself a '<', insert a space.
2351 (d_print_cast): Likewise.
2352 * testsuite/demangle-expected: Add test case.
2354 Fix for PR gcc/13244:
2355 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
2356 which uses the '>' operator in an extra layer of parens.
2357 * testsuite/demangle-expected: Add test case.
2359 2003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
2361 * floatformat.c: Include "config.h" and <string.h> if available.
2362 (INFINITY, NAN): Define if not defined by <math.h>.
2363 (floatformat_to_double): Handle NaN, infinity, and denormalized
2365 (floatformat_from_double): Likewise.
2366 (ieee_test): In debugging code, use little endian rather than big
2367 endian. Correct tests to handle NaN and to check correct sign of
2368 zero. Omit m68k extended test.
2369 (main): Add more debugging cases.
2371 2003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
2373 * cp-demangle.c (d_demangle): Only return success if we consumed
2374 the entire demangled string.
2375 (is_ctor_or_dtor): Likewise.
2377 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
2378 to restore expected result of EDG test case to original expected
2381 2003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
2383 * cp-demangle.c (struct d_print_mod): Add templates field.
2384 (d_make_builtin_type): Check for NULL type.
2385 (d_make_extended_operator): Check for NULL name.
2386 (d_make_ctor, d_make_dtor): Likewise.
2387 (d_mangled_name): Add top_level parameter. Change all callers.
2388 (d_encoding): If DMGL_PARAMS is not set, strip off initial
2390 (d_type): Check some return values we rely on.
2391 (d_bare_function_type, d_array_type): Likewise.
2392 (d_pointer_to_member_type, d_template_args): Likewise.
2393 (d_add_substitution): Fail if argument is NULL.
2394 (d_print_resize): Check whether buf is NULL.
2395 (d_print_comp): Save current templates list with each modifier.
2396 Don't pass the modifier list down when printing a template.
2397 (d_print_cast): Don't pass the modifier list down when printing a
2399 (d_print_mod_list): Temporarily set templates list while printing
2401 (d_print_mod): Check that buf is not NULL before using it.
2402 (d_print_function_type): Print parens if there is no modifier.
2403 (d_init_info): Permit as many substitutions as there are
2404 characters in the mangled name.
2405 * testsuite/demangle-expected: Add two new test cases.
2407 2003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
2409 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
2412 2003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
2414 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
2416 (print_usage): Display new -p option.
2417 (long_options): Add --no-params.
2418 (main): Accept and handle -p.
2420 2003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
2422 * cp-demangle.c (has_return_type): Skip qualifiers when checking
2423 whether we have a template.
2424 * testsuite/demangle-expected: Add four new tests.
2426 2003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
2428 * testsuite/demangle-expected: Minor changes to match output of
2429 new demangler: adjust whitespace in four tests, and change order
2430 of qualifiers in one test.
2432 * cp-demangle.c: Complete rewrite.
2434 2003-11-19 Mark Mitchell <mark@codesourcery.com>
2436 * cp-demangle.c (demangle_type): Correct thinko in substitution
2439 2003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
2441 * cp-demangle.c (demangle_operator_name): Remove space before
2443 (demangle_type_ptr): Put qualifiers in the right place. Handle
2444 qualifiers in pointer to member specially.
2445 (demangle_type): Handle qualifiers for pointer or reference
2446 specially. Handle function type.
2447 (demangle_local_name): Save and restore caret around demangling of
2450 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
2453 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
2455 2003-10-31 Andreas Jaeger <aj@suse.de>
2457 * floatformat.c (floatformat_always_valid): Add unused attribute.
2459 2003-10-30 Josef Zlomek <zlomekj@suse.cz>
2461 Jan Hubicka <jh@suse.cz>
2462 * vasprintf.c (int_vasprintf): Pass va_list by value.
2463 Use va_copy for copying va_list.
2464 (vasprintf): Pass va_list by value.
2466 2003-10-30 Josef Zlomek <zlomekj@suse.cz>
2468 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
2469 instead of increasing n_elements when inserting to deleted slot.
2471 2003-10-20 J. Brobecker <brobecker@gnat.com>
2473 * cplus-dem.c (demangle_template): Register a new Btype only
2475 * testsuite/demangle-expected: Add a new test.
2477 2003-10-16 H.J. Lu <hongjiu.lu@intel.com>
2479 * testsuite/demangle-expected: Update the expected output of
2482 2003-10-02 Daniel Jacobowitz <drow@mvista.com>
2484 * strerror.c: Revert last change. Declare static sys_nerr
2485 and sys_errlist using different names.
2487 2003-10-01 Daniel Jacobowitz <drow@mvista.com>
2489 * strerror.c: Don't provide or reference sys_errlist if
2490 strerror is available.
2492 2003-10-01 H.J. Lu <hongjiu.lu@intel.com>
2494 * configure.in: Check if $MAKEINFO is missing.
2495 * configure: Regenerated.
2497 2003-09-24 Daniel Jacobowitz <drow@mvista.com>
2499 * configure.in: Use AC_PROG_CPP_WERROR.
2500 * configure: Regenerated.
2502 2003-09-22 Andrew Cagney <cagney@redhat.com>
2504 * floatformat.c (floatformat_i387_ext_is_valid): New function.
2505 (floatformat_always_valid): New function.
2506 (floatformat_i387_ext): Initialize new "is_valid" field to
2507 "floatformat_i387_ext_is_valid".
2508 (floatformat_ieee_single_little): Initialize "is_valid" field to
2509 floatformat_always_valid.
2510 (floatformat_ieee_double_big): Ditto.
2511 (floatformat_ieee_double_little): Ditto.
2512 (floatformat_ieee_double_little): Ditto.
2513 (floatformat_ieee_double_littlebyte_bigword): Ditto.
2514 (floatformat_i960_ext): Ditto.
2515 (floatformat_m88110_ext): Ditto.
2516 (floatformat_m88110_harris_ext): Ditto.
2517 (floatformat_arm_ext_big): Ditto.
2518 (floatformat_arm_ext_littlebyte_bigword): Ditto.
2519 (floatformat_ia64_spill_big): Ditto.
2520 (floatformat_ia64_spill_little): Ditto.
2521 (floatformat_ia64_quad_big): Ditto.
2522 (floatformat_ia64_quad_little): Ditto.
2523 (floatformat_ia64_quad_little): Ditto.
2524 (floatformat_is_valid): Call "is_valid".
2526 2003-09-15 Andrew Cagney <cagney@redhat.com>
2528 * floatformat.c (get_field): Make "data" constant.
2529 (floatformat_is_valid, floatformat_to_double): Make "from"
2530 constant, fix casts.
2531 (floatformat_from_double): Make "from" constant.
2533 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
2535 * floatformat.c (floatformat_is_valid): New function.
2536 (get_field, put_field): Correct comments.
2538 2003-09-06 Josef Zlomek <zlomekj@suse.cz>
2540 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
2543 2003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2546 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
2547 * configure: Rebuilt.
2549 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
2551 * aclocal.m4: Include acx.m4 and no-executables.m4.
2552 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
2553 (LIB_AC_PROG_CC): Remove.
2554 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
2555 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
2556 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
2557 performing link tests.
2558 * configure: Regenerated.
2560 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
2562 * cp-demangle.c: Clarify what package(s) this is part of.
2564 2003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
2566 * pex-win32.c (pexecute): Mark parameters this_pname and
2567 temp_base as unused. Remove unused variables retries,
2568 sleep_interval. Initialize org_stdin, org_stdout.
2569 (pwait): Mark parameter flags as unused.
2571 2003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
2573 * pex-win32.c (fix_argv): Ensure that the executable pathname
2574 uses Win32 backslashes.
2575 (pexecute): Cast away constness when assigning *errmsg_arg.
2577 2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
2579 * testsuite/demangle-expected: Add more GNU V3 testcases.
2581 2003-06-22 Zack Weinberg <zack@codesourcery.com>
2583 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
2584 not HC_ASCII and HC_EBCDIC.
2585 Add documentation in form expected by gather-docs.
2586 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
2587 * Makefile.in, functions.texi: Regenerate.
2589 2003-06-21 Zack Weinberg <zack@codesourcery.com>
2591 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
2592 for charset determination.
2594 2003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
2596 * configure.in: Add check for malloc.h needed by
2597 m68k for function free().
2598 * configure: Regenerated.
2599 * config.in: Add HAVE_MALLOC_H.
2600 * hashtab.c: include malloc.h were available for
2603 2003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
2606 * physmem.c: Update comment.
2607 * configure.in: Modify test for _system_configuration for older
2610 * config.in, configure: Regenerated.
2612 2003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2615 * test-demangle.c (getline): Fix fence-post error.
2617 2003-06-03 Nick Clifton <nickc@redhat.com>
2619 * asprintf.c: Change comment to note that -1 is returned upon
2621 * vasprintf.c: Likewise.
2622 (vasprintf): Return -1 upon error.
2623 * functions.texi: Document changes to asprintf and vasprintf.
2625 2003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
2627 * config.table: Accept i[345867]86 variant.
2629 2003-05-15 Jim Blandy <jimb@redhat.com>
2631 * hex.c (_hex_value): Make this unsigned.
2632 (hex_value): Update documentation for new return type. hex_value
2633 now expands to an unsigned int expression, to avoid unexpected
2634 sign extension when we store it in a bfd_vma, which is larger than
2635 int on some platforms.
2636 * functions.texi: Regenerated.
2638 2003-05-07 Josef Zlomek <zlomekj@suse.cz>
2640 * splay-tree.c (splay_tree_predecessor): Fix comment.
2641 (splay_tree_successor): Fix comment.
2643 2003-05-07 Jason Merrill <jason@redhat.com>
2645 * hashtab.c (iterative_hash): New fn.
2646 * configure.in: Add AC_C_BIGENDIAN_CROSS.
2647 * aclocal.m4: Include accross.m4.
2648 * configure, config.in: Regenerate.
2650 2003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2652 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
2653 * configure: Regenerate.
2655 2003-05-03 Carlo Wood <carlo@alinoe.com>
2657 * cp-demangle.c: Fix typo in "char_traints" string-literal.
2659 2003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2661 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
2662 (main): Test that we don't write too much data.
2664 2003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2666 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
2668 * snprintf.c, vsnprintf.c: New files.
2669 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
2670 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
2671 Regenerate dependencies.
2673 * functions.texi, configure, config.in: Regenerated.
2675 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2677 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
2678 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
2680 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
2681 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
2682 Regenerate dependencies.
2684 * functions.texi, configure, config.in: Regenerated.
2686 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2688 * argv.c: Fix comments.
2689 * calloc.c: Don't unnecessarily include "libiberty.h".
2690 (bzero): Add prototype.
2691 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
2692 * getcwd.c (getcwd): Use standard definition to avoid conflicts
2693 with system headers.
2694 * hashtab.c (htab_traverse): Delete unused variables.
2695 * rename.c: Include "ansidecl.h".
2696 (rename): Use standard definition to avoid conflicts with system
2698 * strsignal.c: Rely on ANSI_PROTOTYPES.
2699 * strstr.c: Check GNUC >= 2, not GNUC == 2.
2700 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
2701 * vprintf.c: Include "ansidecl.h" earlier, rely on
2703 * vsprintf.c: Include "ansidecl.h" earlier, rely on
2704 ANSI_PROTOTYPES and possibly include <stdarg.h>.
2706 * Makefile.in: Regenerate dependencies.
2708 2003-04-15 DJ Delorie <dj@redhat.com>
2710 * maint-tool (deps): Scan for headers in $srcdir also.
2712 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2717 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
2719 * regex.c (regerror): Likewise.
2721 2003-04-14 Roger Sayle <roger@eyesopen.com>
2723 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
2724 * memchr.c: Likewise.
2725 * strcasecmp.c: Likewise.
2726 * strncasecmp.c: Likewise.
2727 * strncmp.c: Likewise.
2728 * xatexit.c: Likewise.
2729 * xmalloc.c: Likewise.
2731 * copysign.c: Use traditional function declaration instead of DEFUN.
2732 * sigsetmask.c: Likewise.
2734 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
2735 * memset.c: Likewise.
2737 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
2738 * memmove.c: Likewise.
2740 2003-04-14 Roger Sayle <roger@eyesopen.com>
2742 * strdup.c (strdup): Tweak implementation to use memcpy.
2744 2003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2746 * configure.in (HAVE_UINTPTR_T): Always define.
2747 * configure: Regenerated.
2749 2003-03-23 Alexandre Oliva <aoliva@redhat.com>
2751 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
2752 instead of $$CC alone.
2753 (install_to_tooldir): Use it.
2755 2003-17-03 Jan Hubicka <jh@suse.cz>
2757 * hashtab.c (htab_traverse_noresize): Break out from ...
2758 * hashtab.c (htab_traverse): ... here.
2760 2003-12-03 Jan Hubicka <jh@suse.cz>
2762 * hashtab.c (htab_expand): Fix warning.
2764 * hashtab.c (htab_expand): Compute the size of hashtable based
2765 on the number of elements actually used.
2766 (htab_traverse): Call htab_expand when table is too empty.
2768 2003-03-11 Carlo Wood <carlo@gnu.org>
2770 * cplus-dem.c (demangle_integral_value): Correction to reflect
2771 patch of 2002-01-10 in order to also make negative multi-digits
2772 without leading underscore work.
2774 2003-03-03 Mark Mitchell <mark@codesourcery.com>
2776 * cplus-dem.c: Add license exception to copyright notice.
2778 2003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2780 * physmem.c: Formatting changes from upstream.
2782 2003-02-24 Danny Smith <dannysmith@users.source.forge.net>
2784 * physmem.c (physmem_total): Add _WIN32 support.
2785 (physmem_available): Likewise.
2787 2003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2789 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
2791 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
2793 2003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2795 * configure.in: Check for sys/systemcfg.h and
2796 _system_configuration.
2797 * physmem.c: Add support for AIX. Tweek formatting as per
2798 upstream coreutils beta.
2800 2003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2801 Richard Earnshaw <rearnsha@arm.com>
2802 Geoffrey Keating <geoffk@apple.com>
2804 * configure.in: Check for sys/sysctl.h and sysctl.
2805 * physmem.c: Add support for *bsd and darwin.
2806 * Makefile.in: Generate depedency for physmem.o.
2808 2003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2810 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
2812 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
2815 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
2816 machine/hal_sysinfo.h, sys/table.h.
2817 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
2818 * configure, config.in: Regenerate.
2820 2003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2822 * configure.in: Check for sys/sysmp.h and sysmp.
2823 * physmem.c: Pull upstream copy, add support for irix6.
2825 * config.in, configure: Regenerated.
2827 2003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2829 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
2830 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
2833 2003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2835 * Makefile.in (CFILES): Add physmem.c.
2836 (REQUIRED_OFILES): Add physmem.o.
2837 * configure.in: Check for sys/pstat.h.
2838 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
2839 * physmem.c: New file, copied from textutils.
2841 * config.in, configure: Regenerated.
2843 2003-02-20 Daniel Jacobowitz <drow@mvista.com>
2845 * Makefile.in (CFILES): Add lrealpath.c.
2846 (REQUIRED_OFILES): Add lrealpath.o.
2847 (lrealpath.o): Add rule.
2848 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
2849 * configure.in: Add realpath and canonicalize_file_name to
2850 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
2851 for canonicalize_file_name.
2852 * lrealpath.c: New file.
2853 * make-relative-prefix.c: Update documentation.
2854 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
2855 * config.in: Regenerated.
2856 * configure: Regenerated.
2857 * functions.texi: Regenerated.
2859 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
2861 * cplus_dem.c: Fix typo: intializes -> initializes.
2863 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2865 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2867 * configure: Rebuilt.
2869 2003-02-13 Daniel Jacobowitz <drow@mvista.com>
2872 * cplus-dem.c (demangle_signature): Call string_delete.
2873 Remove extra string_init.
2874 (demangle_arm_hp_template): Call string_delete instead of
2875 string_clear. Add missing string_delete call.
2876 (demangle_qualified): Add missing string_delete call.
2877 (do_type): Remove unused variable btype. Add missing string_delete
2878 call. Call string_delete instead of string_clear.
2879 (demangle_fund_type): Move variable btype inside of the switch
2880 statement. Add missing string_delete call.
2881 (do_arg): Call string_delete instead of string_clear. Remove extra
2883 (demangle_nested_args): Free work->previous_argument.
2885 2003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2887 * acconfig.h: New file. Add uintptr_t.
2888 * config.in: Regenerated.
2890 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
2892 * libiberty.texi: Update to GFDL 1.2.
2894 2003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2896 * Makefile.in (libiberty_topdir): New subst.
2897 (mkinstalldirs): Redefine in terms of the above.
2898 * configure.in: AC_SUBST it.
2899 * configure: Regenerate.
2901 2003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2903 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
2904 (info-subdir, install-info-subdir, clean-info-subdir)
2905 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
2906 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
2907 Pass $(FLAGS_TO_PASS).
2909 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2911 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
2912 /`$$CC -print-multi-os-directory`.
2914 2003-01-26 Daniel Jacobowitz <drow@mvista.com>
2916 * hashtab.c (htab_create_alloc_ex): New function.
2917 (hatab_set_functions_ex): New function.
2918 (htab_delete, htab_expand): Support alternate allocation functions.
2920 2003-01-24 Christopher Faylor <cgf@redhat.com>
2922 * configure.in: Remove special pex-cygwin consideration.
2923 * configure: Regenerate.
2924 * pex-cygwin.c: Remove.
2925 * Makefile.in: Remove pex-cygwin.[co] lines.
2927 2003-01-24 Zack Weinberg <zack@codesourcery.com>
2929 * Makefile.in (CFILES): Add pex-*.c.
2930 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
2931 (CONFIGURED_OFILES): Add pex-*.o.
2932 (TEXIFILES): Add pexecute.txh.
2933 (pexecute.o): Delete rule.
2934 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
2935 pex-unix.o, pex-win32.o): New rules.
2936 * configure.in: Change AC_INIT argument to xmalloc.c.
2937 Compute appropriate pexecute implementation and substitute it
2940 * pexecute.c: Split up into...
2941 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
2942 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
2945 * functions.texi: Regenerate.
2946 * configure: Regenerate.
2948 2003-01-20 Josef Zlomek <zlomekj@suse.cz>
2950 * hashtab.c (htab_expand): Fix allocation of new entries.
2952 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2954 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2956 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
2957 mkinstalldirs command.
2959 2002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
2961 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
2962 Define for hosts with HOST_EXECUTABLE_SUFFIX.
2964 2002-11-24 Nick Clifton <nickc@redhat.com>
2966 * make-relative-prefix.c (make_relative_prefix): Ensure return
2967 string is empty before using strcat to construct it.
2969 2002-11-22 Daniel Jacobowitz <drow@mvista.com>
2971 * Makefile.in: Add make-relative-prefix.c.
2972 * make-relative-prefix.c: New file.
2973 * functions.texi: Rebuilt.
2975 2002-11-16 Jakub Jelinek <jakub@redhat.com>
2977 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
2978 used with arguments in traditional C' warnings.
2980 2002-10-16 Jakub Jelinek <jakub@redhat.com>
2982 * config.table: Use mh-s390pic for s390x too.
2984 2002-10-06 Andreas Jaeger <aj@suse.de>
2986 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
2987 variable and of strict-aliasing warning.
2988 (grow_vect): Use char as first parameter.
2990 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2992 * Makefile.in (all): Fix multilib parallel build.
2994 2002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
2996 * cp-demangle.c (demangling_new): Cast 0 to enum.
2997 (demangle_char): Cast return of strdup to char *.
2998 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
2999 (is_gnu_v3_mangled_dtor): Likewise.
3000 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
3001 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
3002 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
3003 * md5.c (md5_process_bytes): Cast results back to const void *.
3004 (md5_process_block): Add cast to const md5_uint32 *.
3005 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
3006 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
3008 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
3010 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
3012 2002-09-19 Nick Clifton <nickc@redhat.com>
3014 * README: Update email addresses for bugs and patches.
3016 2002-09-10 Mike Stump <mrs@apple.com>
3018 * splay-tree.c (splay_tree_successor): Fix comments.
3020 2002-09-11 Zack Weinberg <zack@codesourcery.com>
3022 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
3023 * testsuite/Makefile.in: Adjust for test-demangle.
3024 * testsuite/regress-demangle: Deleted.
3025 * testsuite/test-demangle.c: New file.
3026 * testsuite/demangle-expected: Change \$ to $ throughout, now that
3027 this file is not being read by a shell script.
3029 2002-09-05 Roger Sayle <roger@eyesopen.com>
3031 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
3033 2002-08-07 DJ Delorie <dj@redhat.com>
3035 * regex.c (re_error_msgid): Just use a simple array of strings.
3036 (re_compile_pattern): Compensate.
3037 (re_comp): Likewise.
3038 (re_comp): Likewise.
3039 (regerror): Likewise.
3041 2002-07-29 Neil Booth <neil@daikokuya.co.uk>
3043 * cplus-dem.c (PREPEND_BLANK): Remove.
3045 2002-07-10 Jason Merrill <jason@redhat.com>
3047 * cp-demangle.c (demangle_identifier): Support extended Unicode
3050 2002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3052 * cp-demangle.c (demangle_v3_with_details): Wrap in
3053 !defined IN_GLIBCPP_V3.
3055 2002-07-01 Mark Mitchell <mark@codesourcery.com>
3057 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
3058 Set it for the "st" operator.
3059 (demangle_expression): Handle expressions with types as arguments.
3061 2002-06-30 Douglas Rupp <rupp@gnat.com>
3063 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
3064 * Makefile.in (OUTPUT_OPTION): Use.
3066 2002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
3068 * Makefile.in (install_to_libdir): Add $(DESTDIR).
3069 (install_to_tooldir): Likewise.
3071 2002-06-17 Douglas Rupp <rupp@gnat.com>
3073 * lbasename.c: Add 2002 to copyright.
3074 (IS_DIR_SEPARATOR): Remove VMS junk.
3076 2002-06-05 Geoffrey Keating <geoffk@redhat.com>
3078 * hashtab.c (htab_create): New stub function for backward
3080 (htab_try_create): Likewise.
3082 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
3084 * hashtab.c (htab_create): Delete.
3085 (htab_try_create): Delete.
3086 (htab_create_alloc): New.
3087 (htab_delete): Support user-specified memory allocation.
3088 (htab_expand): Likewise.
3090 2002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
3092 * configure.in: Fix typo in the code checking for sys_errlist.
3093 * configure: Regenerated.
3095 2002-05-13 Andreas Schwab <schwab@suse.de>
3097 * config.table: Use mh-x86pic also for x86-64.
3099 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
3101 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
3102 script entry, and set LD to it when configuring multilibs.
3103 * configure: Rebuilt.
3105 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3107 * configure.in (AC_TYPE_PID_T): Use it.
3108 * configure: Regenerated.
3109 * getruntime.c: Include <sys/types.h>.
3110 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
3112 2002-04-09 Richard Henderson <rth@redhat.com>
3114 * hashtab.c (higher_prime_number): Use 7 as minimum.
3115 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
3116 (htab_find_slot_with_hash): Likewise.
3118 2002-04-01 Phil Edwards <pme@gcc.gnu.org>
3120 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
3121 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
3122 not compile if IN_GLIBCPP_V3 defined.
3123 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
3125 2002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3127 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
3130 2002-03-27 DJ Delorie <dj@redhat.com>
3132 * hex.c: Add documentation.
3133 (_hex_value): Provide non-ASCII empty table.
3134 (hex_init): Initialize the non-ASCII table.
3135 * functions.texi: Regenerate.
3137 2002-03-27 Mark Mitchell <mark@codesourcery.com>
3139 * dyn-string.c: Add libgcc exception to copyright notice.
3141 2002-03-26 H.J. Lu (hjl@gnu.org)
3143 * config.table: Support --with-build-subdir.
3144 * configure.in: Likewise.
3145 * configure: Rebuild.
3147 2002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
3149 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
3152 2002-03-12 Mark Mitchell <mark@codesourcery.com>
3154 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
3157 2002-03-11 Douglas B Rupp <rupp@gnat.com>
3159 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
3161 2002-03-06 Jim Blandy <jimb@redhat.com>
3163 * splay-tree.c (splay_tree_xmalloc_allocate,
3164 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
3165 prototyped definitions. Mark `data' arguments as unused.
3167 2002-03-06 Andrew Cagney <ac131313@redhat.com>
3169 * floatformat.c (floatformat_arm_ext_big): Delete definition.
3171 2002-03-04 Phil Edwards <pme@gcc.gnu.org>
3173 * configure.in: Add --enable-install-libiberty option.
3174 * Makefile.in (INSTALLED_HEADERS): New variable.
3175 (install_to_libdir): Possibly also copy headers.
3176 * configure: Regenerated.
3178 2002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
3180 * xmalloc.c (xmalloc_fail): Clarify error message further.
3182 2002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
3184 * xmalloc.c (xmalloc_fail): Clarify error message.
3186 2002-02-22 Jim Blandy <jimb@redhat.com>
3188 * splay-tree.c (splay_tree_xmalloc_allocate,
3189 splay_tree_xmalloc_deallocate): New functions.
3190 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
3191 above functions and a dummy data pointer.
3192 (splay_tree_new_with_allocator): New function.
3193 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
3194 splay_tree_remove): Use the splay tree's allocation and
3195 deallocation functions.
3197 2002-02-19 Scott Snyder <snyder@fnal.gov>
3199 * testsuite/demangle-expected: Add test case for infinite loop in
3201 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
3202 if do_type() doesn't make any progress --- prevents an infinite
3205 2002-02-18 Carlo Wood <carlo@gnu.org>
3208 * cplus-dem.c (demangle_integral_value): Accept multi-digit
3209 numbers that do not start with an underscore; This is needed
3210 for integer template parameters. This doesn't break anything
3211 because multi-digit numbers are never followed by a digit.
3212 * testsuite/demangle-expected: Corrected all mangled test
3213 cases with multi-digit template parameters: g++ 2.95.x does
3214 not generate underscores around these parameters.
3216 2002-02-05 Jason Merrill <jason@redhat.com>
3218 * cplus-dem.c (flags): Add DMGL_VERBOSE
3219 (cplus_demangle_v3_p): Remove.
3220 (demangle_it): Add DMGL_TYPES to passed flags.
3221 * cp-demangle.c (cplus_demangle_v3_all): Remove.
3222 (cplus_demangle_v3_type): Remove.
3223 (cplus_demangle_v3): Add options parm.
3225 2002-02-02 H.J. Lu (hjl@gnu.org)
3227 * cp-demangle.c (cp_demangle_type): Do not protect with
3229 (cplus_demangle_v3_all): New.
3230 (cplus_demangle_v3): Call cplus_demangle_v3_all.
3231 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
3233 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
3234 Initialized to cplus_demangle_v3.
3235 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
3236 of cplus_demangle_v3.
3237 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
3238 command line symbol.
3240 * testsuite/regress-demangle: Pass the mangled name at the
3243 2002-02-01 H.J. Lu <hjl@gnu.org>
3245 * cp-demangle.c (cp_demangle_type): Call demangling_new with
3248 2002-01-31 Phil Edwards <pme@gcc.gnu.org>
3250 * cp-demangle.c: Revert yesterday's change.
3252 2002-01-31 Adam Megacz <adam@xwt.org>
3254 * gcc/libiberty/configure.in: Treat mingw the same as cywin
3255 wrt HAVE_SYS_ERRLIST.
3257 2002-01-30 Phil Edwards <pme@gcc.gnu.org>
3259 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
3260 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
3262 * testsuite/demangle-expected: New gnu-v3 test.
3264 2002-01-22 Momchil Velikov <velco@fadata.bg>
3266 * configure.in (variable detection): Use arrays of unspecified
3267 size instead of plain integers.
3269 2002-01-18 DJ Delorie <dj@redhat.com>
3271 * Makefile.in (TESTLIB): New. This library is for future
3273 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
3274 break down by letter.
3275 (REQUIRED_OFILES): List long-to-compile files first.
3276 (maint-deps): New, target for updating dependencies.
3277 (dependencies): Update.
3278 * maint-tool: Add dependency-generating option.
3279 * configure.in: Check for _doprnt even if we're not providing it.
3280 * configure: Regenerate.
3282 * _doprnt.c: Modifications to allow compiling on any platform.
3283 * copysign.c: Likewise.
3284 * putenv.c: Likewise.
3285 * setenv.c: Likewise.
3286 * vsprintf.c: Likewise.
3288 2002-01-15 Douglas B Rupp <rupp@gnat.com>
3290 * mkstemps.c (mkstemps): On VMS, open temp file with option
3291 that causes it to be deleted when closed.
3293 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3295 * cp-demangle.c (long_options): Const-ify.
3296 * cplus-dem.c (long_options): Likewise.
3298 * cplus-dem.c (mystrstr): Delete. All callers changed to use
3301 2001-12-31 Ira Ruben <ira@apple.com>
3303 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
3304 * configure: Regenerated.
3306 2001-12-24 Douglas B. Rupp <rupp@gnat.com>
3308 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
3309 * configure: Regenerated.
3311 2001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
3314 * cplus-dem.c (consume_count): Treat negative count as an error.
3315 * testsuite/demangle-expected: Added testcase.
3317 Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
3319 * configure.in: Hardcode that vfork works on VMS host.
3320 * configure: Regenerated.
3322 2001-12-06 Richard Henderson <rth@redhat.com>
3324 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
3325 (cplus_demangle): Support no_demangling.
3327 2001-11-27 Zack Weinberg <zack@codesourcery.com>
3329 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
3330 in libiberty context. Fix typo in leading comment.
3331 * configure.in: Fix various AC_DEFINEs so autoheader works.
3332 If any of vprintf, vsprintf, vfprintf is missing from libc,
3333 then AC_REPLACE_FUNCS(_doprnt).
3335 2001-11-26 DJ Delorie <dj@redhat.com>
3336 Daniel Jacobowitz <drow@mvista.com>
3338 * Makefile.in (stamp-h): Depend on Makefile for proper
3340 (*-subdir): Depend on config.h for proper serialization.
3342 2001-11-26 DJ Delorie <dj@redhat.com>
3344 * configure.in: Check for alloca.h (for regex.c and putenv.c).
3345 * configure: Regenerate.
3346 * config.h: Add HAVE_ALLOCA_H.
3348 2001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3350 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
3351 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
3354 Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
3356 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
3357 * configure.in (HAVE_UINTPTR_T): Test for system defining
3358 uintptr_t and define HAVE_UINTPTR_T appropriately.
3359 * regex.c (uintptr_t): Do not provide a definition if the
3360 system provided one.
3362 * regex.c (PREFIX): Provide an alternate definition for
3363 non-ANSI/ISO compilers.
3364 (ARG_PREFIX): Likewise.
3366 2001-11-12 Jim Meyering <meyering@lucent.com>
3368 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
3369 this code would end up calling gettext even in packages built
3371 * getopt.c (_): Likewise.
3372 * regex.c (_): Likewise.
3374 2001-11-03 Alan Modra <amodra@bigpond.net.au>
3376 * configure.in: Cope with missing makeinfo.
3377 * configure: Regenerate.
3379 2001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3381 * hex.c (hex_init): Provide empty stub.
3383 * hex.c (hex_init): Delete.
3384 (_hex_value): Const-ify and initialize at compile-time.
3386 2001-10-19 H.J. Lu <hjl@gnu.org>
3388 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
3391 2001-10-17 DJ Delorie <dj@redhat.com>
3393 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
3394 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
3395 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
3396 Improve manual formatting.
3397 * functions.texi: Regenerate.
3399 2001-10-15 DJ Delorie <dj@redhat.com>
3401 * Makefile.in (TEXIFILES): Add fnmatch.txh.
3403 maint-tool: Add "undoc" tool.
3404 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
3405 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
3406 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
3407 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
3410 * functions.texi: Regenerate.
3412 2001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
3414 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
3415 * strtod.c: Use "ISO C" instead of "ANSI C".
3416 * functions.texi: Regenerate.
3418 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
3420 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
3421 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
3422 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
3423 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
3424 spelling. Give names to function arguments in documentation. Use
3425 (void) prototypes in documentation.
3426 * functions.texi: Regenerate.
3428 2001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3430 * argv.c (buildargv, tests, main): Const-ify.
3431 * cp-demangle.c (operator_code): Likewise.
3432 * cplus-dem.c (optable, libiberty_demanglers,
3433 cplus_demangle_set_style, cplus_demangle_name_to_style,
3434 print_demangler_list): Likewise.
3435 * hashtab.c (higher_prime_number): Likewise.
3436 * strcasecmp.c (charmap): Likewise.
3437 * strerror.c (error_info, strerror, main): Likewise.
3438 * strncasecmp.c (charmap): Likewise.
3439 * strsignal.c (signal_info): Likewise.
3441 2001-09-29 DJ Delorie <dj@redhat.com>
3443 * configure: Regenerate.
3445 2001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>