1 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
4 * Makefile.in (LIBCFLAGS): Remove.
5 (FLAGS_TO_PASS): Don't mention it.
6 (COMPILE.c, MULTIOSDIR): Replace it with CFLAGS.
8 2008-10-08 David Edelsohn <edelsohn@gnu.org>
10 * xstrdup.c: Include <sys/types.h> after "config.h"
12 2008-10-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14 * configure.ac: Call AC_SYS_LARGEFILE.
15 * config.in: Regenerated.
16 * configure: Likewise.
18 2008-10-06 Jason Merrill <jason@redhat.com>
20 * cp-demangle.c (struct d_print_info): Add pack_index.
21 (d_dump): Add DEMANGLE_COMPONENT_PACK_EXPANSION.
22 (d_make_comp): Likewise. DEMANGLE_COMPONENT_ARGLIST and
23 DEMANGLE_COMPONENT_TEMPLATE_ARGLIST can have two null args.
24 (cplus_demangle_builtin_types): Add char16/32_t.
25 (cplus_demangle_type): Recognize them.
26 (d_template_args): Handle empty argument packs.
27 (d_template_arg): Handle argument packs.
28 (d_expression): Handle dependent name.
29 (d_index_template_argument): New fn.
30 (d_lookup_template_argument): New fn.
31 (d_find_pack, d_pack_length): New fn.
32 (d_print_subexpr): Split out...
33 (d_print_comp): ...from here. Use d_*_template_argument.
34 Handle empty arg lists. Support pack expansions.
35 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increase to 32.
37 2008-09-09 Jason Merrill <jason@redhat.com>
39 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DECLTYPE.
40 (d_make_comp): Likewise.
41 (cplus_demangle_type): Handle decltype and DFP types.
42 (cplus_demangle_operators): Call operator takes 2 args.
43 (cplus_demangle_builtin_types): Add DFP types.
45 (d_expression): Handle parm placeholders, T() and calls.
46 (d_print_comp): Handle decltype, T() and calls.
47 * testsuite/demangle-expected: Test the above.
49 2008-08-07 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
51 * pex-win32.c (argv_to_argc): New function.
52 (spawn_script): Duplicate argv before calling win32_spawn.
54 2008-07-31 Jakub Jelinek <jakub@redhat.com>
56 * mkstemps.c (mkstemps): Keep looping even for EISDIR.
58 2008-07-31 Denys Vlasenko <dvlasenk@redhat.com>
60 * mkstemps.c (mkstemps): If open failed with errno other than
61 EEXIST, return immediately.
62 * make-temp-file.c: Include errno.h.
63 (make_temp_file): If mkstemps failed, print an error message
66 2008-07-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68 * maint-tool (deps): Output config.h instead of stamp-h.
69 * Makefile.in: Rebuild deps.
70 (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
71 Reverts 2007-07-11 change.
73 2008-06-19 Eric Blake <ebb9@byu.net>
75 Adjust strsignal to POSIX 200x prototype.
76 * strsignal.c (strsignal): Remove const.
78 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80 * configure: Regenerate.
82 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
84 * libiberty.texi: Expand TABs, drop indentation outside examples.
85 * obstacks.texi: Likewise.
87 2008-04-21 Aurelien Jarno <aurelien@aurel32.net>
89 * libiberty/configure.ac: use -fPIC on Linux/MIPS hosts.
90 * libiberty/configure: Regenerate.
92 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
94 * testsuite/demangle-expected: Added tests for char16_t and char32_t.
96 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
99 * aclocal.m4: Add override.m4.
100 * configure: Regenerate.
102 2008-03-31 Ian Lance Taylor <iant@google.com>
104 * cp-demangle.c (d_substitution): Correct overflow check to avoid
105 -fstrict-overflow optimizations.
107 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
109 * configure.ac (frags): Don't set, use frag instead.
110 (PICFLAG): Set here and substitute.
111 * Makefile.in (PICFLAG): Substitute from autoconf.
112 * configure: Regenerate.
114 2008-03-24 Ian Lance Taylor <iant@google.com>
116 * sha1.c: New file, from gnulib.
117 * Makefile.in: Rebuild dependencies.
118 (CFILES): Add sha1.c.
119 (REQUIRED_OFILES): Add sha1.o.
121 2008-03-24 Doug Evans <dje@google.com>
123 * make-relative-prefix.c (make_relative_prefix_1): Handle NULL
126 2008-03-12 Seongbae Park <seongbae.park@gmail.com>
128 * cplus-dem.c (malloc, realloc): Use void * instead of char *
131 2008-03-11 Nick Clifton <nickc@redhat.com>
133 * md5.c (md5_process_bytes): Do not assume that memcpy will
134 provide a return value.
136 2008-02-19 Ben Elliston <bje@au.ibm.com>
139 * testsuite/Makefile.in (mostlyclean): Remove any core file.
141 2008-01-26 David Daney <ddaney@avtrex.com>
143 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
144 DEMANGLE_COMPONENT_COMPOUND_NAME, and
145 DEMANGLE_COMPONENT_CHARACTER cases.
146 (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and
147 DEMANGLE_COMPONENT_JAVA_RESOURCE cases.
148 (d_make_character): New function.
149 (d_java_resource): Same.
150 (d_special_name): Handle "Gr" case.
151 (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
152 DEMANGLE_COMPONENT_COMPOUND_NAME, and
153 DEMANGLE_COMPONENT_CHARACTER cases.
154 * testsuite/demangle-expected: Add test for java resource name
157 2008-01-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
159 * cplus-dem.c (demangle_function_name): Changed to return value
160 indicating if a name was correctly demangled.
161 (iterate_demangle_function): Use demangle_function_name return
164 2008-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
167 * splay-tree.c (rotate_left): Fix minor typo in comment.
168 (rotate_right): Likewise.
170 2007-11-12 Joseph Myers <joseph@codesourcery.com>
172 * floatformat.c (floatformat_ibm_long_double_is_valid): Fix
174 (floatformat_ibm_long_double): Use
175 floatformat_ibm_long_double_is_valid.
177 2007-11-07 Joseph Myers <joseph@codesourcery.com>
178 Daniel Jacobowitz <dan@codesourcery.com>
180 * floatformat.c (mant_bits_set): New.
181 (floatformat_to_double): Use it. Note no special handling of
183 (floatformat_from_double): Note no special handing of split
185 (floatformat_ibm_long_double_is_valid,
186 floatformat_ibm_long_double): New.
187 (floatformat_ieee_single_big, floatformat_ieee_single_little,
188 floatformat_ieee_double_big, floatformat_ieee_double_little,
189 floatformat_ieee_double_littlebyte_bigword, floatformat_vax_f,
190 floatformat_vax_d, floatformat_vax_g, floatformat_i387_ext,
191 floatformat_m68881_ext, floatformat_i960_ext,
192 floatformat_m88110_ext, floatformat_m88110_harris_ext,
193 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword,
194 floatformat_ia64_spill_big, floatformat_ia64_spill_little,
195 floatformat_ia64_quad_big, floatformat_ia64_quad_little): Update
196 for addition of split_half field.
198 2007-09-06 Tom Tromey <tromey@redhat.com>
200 * pexecute.txh (pex_free): Document process killing.
202 2007-08-31 Douglas Gregor <doug.gregor@gmail.com>
204 * cp-demangle.c (d_dump): Handle
205 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
206 (d_make_comp): Ditto.
207 (cplus_demangle_type): Ditto.
208 (d_print_comp): Ditto.
209 (d_print_mod): Ditto.
210 (d_print_function_type): Ditto.
212 2007-08-24 Kai Tietz <kai.tietz@onevision.com>
214 * pex-common.h: (pex_funcs): Retyped wait and exec_child to pid_t.
215 * pex-djgpp.c: Likewise.
216 * pex-msdos.c: Likewise.
217 * pex-unix.c: Likewise.
218 * pex-win32.c: Likewise.
220 2007-08-17 Michael Snyder <msnyder@access-company.com>
222 * make-relative-prefix.c (make_relative_prefix_1): Resource leaks.
224 2007-08-03 Michael Snyder <msnyder@access-company.com>
226 * make-relative-prefix.c (make_relative_prefix_1): Fix resource
229 2007-07-31 Michael Snyder <msnyder@access-company.com>
231 * cp-demangle.c (d_print_comp): Guard against null.
233 2007-07-25 Ben Elliston <bje@au.ibm.com>
235 * Makefile.in (CFILES): Remove ternary.c.
236 (REQUIRED_OFILES): Remove ./ternary.o.
237 (INSTALLED_HEADERS): Remove ternary.h.
241 2007-07-23 DJ Delorie <dj@redhat.com>
243 * argv.c (writeargv): Fix typo in inline documentation.
244 * functions.texi: Regenerate.
246 2007-07-17 DJ Delorie <dj@redhat.com>
248 * configure.ac (target_header_dir, msdosdjgpp): Remove duplicate
250 * configure: Likewise.
252 2007-07-11 Alexandre Oliva <aoliva@redhat.com>
254 * maint-tool (deps): Output stamp-h instead of config.h.
255 * Makefile.in: Rebuild deps.
256 (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
258 2007-07-02 Simon Baldwin <simonb@google.com>
260 * argv.c (writeargv): Removed declaration of unused variable.
262 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
264 * configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too.
265 * configure: Regenerate.
267 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
269 * aclocal.m4: Include config/warnings.m4.
270 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS.
271 * configure: Regenerate.
273 2007-06-07 Geoffrey Keating <geoffk@apple.com>
275 * configure.ac: Non-default multilibs can be cross compilations.
276 * configure: Regenerate
278 2007-05-07 Nathan Froyd <froydnj@codesourcery.com>
280 * argv.c (writeargv): New function.
282 2007-05-05 Geoffrey Keating <geoffk@apple.com>
284 * cp-demangle.c (d_name): Detect local-source-name.
285 (d_prefix): Likewise.
286 (d_unqualified_name): Implement local-source-name.
288 2007-05-03 Joel Brobecker <brobecker@adacore.com>
290 * filename_cmp.c: Replace include of ctype.h by include of
292 (filename_cmp): Use TOLOWER instead of tolower for conversions
293 that are locale-independent.
294 * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h.
296 2007-04-11 Thomas Neumann tneumann@users.sourceforge.net
298 * argv.c: Use ANSI C declarations.
299 * make-relative-prefix.c: Likewise.
301 2007-04-06 Joel Brobecker <brobecker@adacore.com>
303 * filename_cmp.c (filename_cmp): Improve documentation.
305 2007-04-02 Andreas Schwab <schwab@suse.de>
307 * filename_cmp.c: Include "config.h".
309 2007-03-29 Joel Brobecker <brobecker@adacore.com>
311 * filename_cmp.c: New file.
312 * Makefile.in (CFILES): Add filename_cmp.c.
313 (REQUIRED_OFILES): Add filename_cmp.o
314 (filename_cmp.o): New rule.
315 * functions.texi: Regenerate.
317 2007-03-15 Geoffrey Keating <geoffk@apple.com>
319 * cp-demangle.c (d_encoding): Exit early on error.
320 (d_pointer_to_member_type): Exit early if cplus_demangle_type
322 (cplus_demangle_type): Likewise.
323 * testsuite/demangle-expected: New testcase.
325 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
327 * Makefile.in: Add install-pdf target as copied from
328 automake v1.10 rules.
329 * testsuite/Makefile.in: Add dummy install-pdf target.
331 2007-03-01 Peter Breitenlohner <peb@mppmu.mpg.de>
332 Eric Botcazou <ebotcazou@libertysurf.fr>
335 * Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR).
336 Install headers in multilib independent location.
338 2007-02-26 DJ Delorie <dj@redhat.com>
340 * configure.ac: add djgpp-specific results, so we don't have to
341 link during a cross compilation.
342 * configure: Regenerated.
344 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
347 * choose-temp.c: Likewise.
348 * functions.texi: Regenerate.
350 2007-01-31 Vladimir Prus <vladimir@codesourcery.com>
352 * pex-common.h (struct pex_obj): New fields
353 stderr_pipe and read_err.
354 * pex-common.c (pex_init_common): Initialize
356 (pex_run_in_environment): Add error checking
357 for PEX_STDERR_TO_PIPE. Create a pipe
358 for stderr if necessary.
360 (pex_free): Close read_err.
361 * pexecute.txh: Document changes.
362 * functions.texi: Regenerated.
364 2007-01-31 Ben Elliston <bje@au.ibm.com>
366 * strsignal.c (psignal): Change type of signo to int.
367 * functions.texi: Regenerate.
369 2007-01-29 Simon Baldwin <simonb@google.com>
371 * cp-demangle.h (cplus_demangle_operators): External definition
372 suppressed if not building for libstdc++.
373 * cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface
374 to demangling, provides a malloc-less version of __cxa_demangle.
375 (cplus_demangle_print_callback): Public callback version of
376 cplus_demangle_print.
377 (struct d_growable_string): New growable string structure.
378 (d_growable_string_init): New function, provides support for
379 growable strings separate from print info.
380 (d_growable_string_resize): Likewise.
381 (d_growable_string_append_buffer): Likewise.
382 (d_growable_string_callback_adapter):): Likewise.
383 (d_print_init): New print info initialization function.
384 (d_print_error): Macro replace by inline function.
385 (d_print_saw_error): Likewise.
386 (d_append_char): Likewise.
387 (d_append_buffer): Likewise.
388 (d_append_string): New inline function, replaces the
389 d_append_string_constant macro.
390 (d_flush_buffer): New function, flushes buffer to callback.
391 (d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback
392 for unsupported dynamic arrays replaced by alloca().
393 (d_demangle): Return string length estimating removed.
394 (d_dump): Moved error case handling from call site into function.
395 (d_print_resize): Function removed.
396 (d_print_append_char): Likewise.
397 (d_print_append_buffer): Likewise.
398 (d_print_error): Likewise.
399 (d_print_comp): Added special case handling for Java arrays.
400 (java_demangle_v3): Removed string post-processing for Java arrays,
401 now replaced by special case handling in d_print_comp.
402 (cplus_demangle_v3_callback): Augmented interface to demangling,
403 provides a malloc-less version of cplus_demangle_v3.
404 (java_demangle_v3_callback): Augmented interface to demangling,
405 provides a malloc-less version of java_demangle_v3.
407 2007-01-12 Ben Elliston <bje@au.ibm.com>
409 * pex-unix.c (writeerr): Cast write result to void.
411 * choose-temp.c (choose_temp_base): Check the result of the call
412 to mktemp rather than testing the length of the modified string.
414 2006-12-20 Geoffrey Keating <geoffk@apple.com>
416 * cp-demangle.h: Add comment explaining what to do to avoid
419 (d_next_char): Don't advance past trailing '\0'.
420 * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char.
421 (d_nested_name): Likewise.
422 (d_special_name): Likewise.
423 (d_call_offset): Likewise.
424 (d_function_type): Likewise.
425 (d_array_type): Likewise.
426 (d_pointer_to_member_type): Likewise.
427 (d_template_param): Likewise.
428 (d_template_args): Likewise.
429 (d_template_arg): Likewise.
430 (d_expr_primary): Likewise.
431 (d_local_name): Likewise.
432 (d_substitution): Likewise.
433 (d_ctor_dtor_name): Use d_advance rather than d_next_char.
434 * testsuite/test-demangle.c: Include sys/mman.h.
435 (MAP_ANONYMOUS): Define.
437 (main): Use protect_end.
438 * testsuite/demangle-expected: Add testcases for overrunning
439 the end of the string.
441 2006-11-30 Andrew Stubbs <andrew.stubbs@st.com>
442 J"orn Rennecke <joern.rennecke@st.com>
445 * make-relative-prefix.c (make_relative_prefix_1): New function,
446 broken out of make_relative_prefix. Make link resolution dependent
448 (make_relative_prefix): Use make_relative_prefix_1.
449 (make_relative_prefix_ignore_links): New function.
451 2006-11-08 Vladimir Prus <vladimir@codesourcery.com>
453 * pex-win32.c (no_suffixes): Remove.
454 (std_suffixes): Add "" as first element.
455 (find_executable): Remove detection of already-present
456 extension. Try all suffixes in std_suffixes.
458 2006-11-07 Julian Brown <julian@codesourcery.com>
460 * floatformat.c (get_field): Fix segfault with little-endian word
461 order on 64-bit hosts.
462 (put_field): Likewise.
463 (min): Move definition.
465 2006-10-26 Danny Smith <dannysmith@users.sourceforge.net>
467 pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC.
468 (find_executable): Likewise.
469 (win32_spawn): Cast alloca return to (char**).
470 Replace malloc with XNEWVEC.
471 bcopy.c (bcopy): Add explict casts in assignments.
473 2006-10-25 Ben Elliston <bje@au.ibm.com>
475 * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}.
477 2006-10-10 Brooks Moses <bmoses@stanford.edu>
479 * Makefile.in: Added "pdf", "libiberty.pdf" target support.
480 * testsuite/Makefile.in: Added empty "pdf" target.
482 2006-09-22 Ian Lance Taylor <ian@airs.com>
485 * cp-demangle.c (d_substitution): Check for overflow when
486 computing substitution index.
488 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
490 * configure.ac: Add case for Mingw as host.
491 * configure: Regenerate.
493 2006-08-27 Ian Lance Taylor <ian@airs.com>
496 * pex-common.h (struct pex_funcs): Add toclose parameter to
498 * pex-common.c (pex_run_in_environment): Pass toclose to
500 * pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter.
501 * pex-unix.c (pex_unix_exec_child): Likewise.
502 * pex-msdos.c (pex_msdos_exec_child): Likewise.
503 * pex-win32.c (pex_win32_exec_child): Likewise.
506 * cp-demangle.c (d_pointer_to_member_type): Do add a substitution
507 for a qualified member which is not a function.
508 * testsuite/demangle-expected: Add test case.
510 2006-07-27 Jan Hubicka <jh@suse.cz>
512 PR rtl-optimization/28071
513 * hashtab.c (htab_empty): Clear out n_deleted/n_elements;
514 downsize the hashtable.
516 2006-07-04 Peter O'Gorman <peter@pogma.com>
518 * Makefile.in: chmod 644 before ranlib during install.
520 2006-06-02 Mark Shinwell <shinwell@codesourcery.com>
522 * pex-unix.c (pex_unix_exec_child): Insert cast when assigning
525 2006-06-01 Mark Shinwell <shinwell@codesourcery.com>
527 * pex-common.c: New function pex_run_in_environment.
528 * pex-common.h: Add environment parameter to exec_child.
529 * pex-msdos.c: Add environment parameter to pex_msdos_exec_child.
530 * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child.
531 (pex_djgpp_exec_child): Pass environment to child process.
532 * pex-unix.c: Add environment parameter to pex_unix_exec_child.
533 (pex_unix_exec_child): Pass environment to child process.
534 * pex-win32.c: Add environment parameter to pex_win32_exec_child.
535 New function env_compare for comparing VAR=VALUE pairs.
536 (win32_spawn): Assemble environment block and pass to CreateProcess.
537 (spawn_script): Pass environment through to win32_spawn.
538 (pex_win32_exec_child): Pass environment through to spawn_script and
540 * functions.texi: Regenerate.
541 * pexecute.txh: Document pex_run_in_environment.
543 2006-05-28 Mark Shinwell <shinwell@codesourcery.com>
545 * mkstemps.c: Open temporary files in binary mode.
547 2006-05-12 Anton Blanchard <anton@samba.org>
549 * cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
552 2006-04-24 Julian Brown <julian@codesourcery.com>
554 * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
556 2006-03-29 Jim Blandy <jimb@codesourcery.com>
558 * pex-common.c (pex_input_file, pex_input_pipe): New functions.
559 (pex_init_common): Initialize obj->input_file.
560 (pex_run): Close any file opened by pex_input_file.
561 * pexecute.txh (pex_input_file, pex_input_pipe): New docs.
562 * pex-common.h (struct pex_obj): New field input_file.
563 (struct pex_funcs): New function ptr fdopenw.
564 * pex-unix.c (pex_unix_fdopenw): New function.
565 (funcs): List it as our fdopenw function.
566 * pex-win32.c (pex_win32_fdopenw): New function.
567 (funcs): List it as our fdopenw function.
568 * pex-djgpp.c (funcs): Leave fdopenw null.
569 * pex-msdos (funcs): Same.
570 * functions.texi: Regenerated.
572 2006-04-10 Jim Blandy <jimb@codesourcery.com>
574 * pex-common.c (temp_file): New function, containing guts of
575 pex-style temporary file name generation.
578 2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
580 * Makefile.in: Add install-html, install-html-am, and
581 install-html-recursive targets. Define mkdir_p and
583 * configure.ac: AC_SUBST datarootdir, docdir, htmldir.
584 * configure: Regenerate.
585 * testsuite/Makefile.in: Add install-html and html targets.
587 2006-03-31 Mark Mitchell <mark@codesourcery.com>
589 * pex-win32.c (<errno.h>): Include.
591 (argv_to_cmdline): New function.
592 (std_suffixes): New variable.
593 (no_suffixes): Likewise.
594 (find_executable): New function.
595 (win32_spawn): Likewise.
596 (spawn_script): Use win32_spawn instead of _spawnv[p].
597 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
598 (pex_win32_wait): Likewise.
600 2006-03-24 Jim Blandy <jimb@codesourcery.com>
602 * pex-common.c (pex_run): Simplify output name handling.
604 2006-03-12 Jim Blandy <jimb@red-bean.com>
606 * pex-common.h (struct pex_obj): Doc fixes.
608 2006-03-11 Jim Blandy <jimb@red-bean.com>
610 * functions.texi: Regenerate.
612 2006-02-21 Ben Elliston <bje@au.ibm.com>
614 * pexecute.c (pwait): Syntax fix for previous change.
616 2006-02-17 Uttam Pawar <uttamp@us.ibm.com>
618 * pexecute.c (pwait): Free vector pointer.
619 * partition.c (partition_print): Free class_elements pointer.
621 2006-02-11 Roger Sayle <roger@eyesopen.com>
622 R. Scott Bailey <scott.bailey@eds.com>
623 Bill Northcott <w.northcott@unsw.edu.au>
626 * floatformat.c: Include <float.h> where available.
627 (NAN): Use value of DBL_QNAN if defined, and NAN isn't.
629 2006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
631 * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where
633 * configure: Regenerated.
635 2006-01-20 Carlos O'Donell <carlos@codesourcery.com>
637 * testsuite/Makefile.in: Add test-expandargv test.
638 * testsuite/test-expandargv.c: New test.
639 * argv.c (expandargv): Check for errors with ferror,
640 rather than just by looking at return value from fread.
642 2005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
644 * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
645 to convert from "from".
646 (floatformat_to_double): Likewise.
647 (floatformat_from_double): Use explicit cast to convert from "to".
649 2005-12-10 Terry Laurenzo <tlaurenzo@gmail.com>
652 * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
653 and include return type when found.
654 (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add
655 conditional logic to change printing order of return type.when
656 the DMGL_RET_POSTFIX option is present.
657 (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
659 * testsuite/test-demangle.c (main): Recognize option --ret-postfix
660 * testsuite/demangle-expected: Test cases to verify extended encoding.
661 Updated comment to document --ret-postfix option.
663 2005-11-06 Richard Guenther <rguenther@suse.de>
665 * splay-tree.c (rotate_left): New function.
666 (rotate_right): Likewise.
667 (splay_tree_splay_helper): Remove.
668 (splay_tree_splay): Re-implement.
670 2005-10-31 Mark Kettenis <kettenis@gnu.org>
672 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
675 2005-10-07 Mark Mitchell <mark@codesourcery.com>
677 * at-file.texi: Fix typo.
679 2005-10-03 Mark Mitchell <mark@codesourcery.com>
681 * at-file.texi: New file.
683 2005-09-27 Mark Mitchell <mark@codesourcery.com>
685 * argv.c (expandargv): Do not use xmalloc_failed.
687 2005-09-26 Mark Mitchell <mark@codesourcery.com>
689 * argv.c (safe-ctype.h): Include it.
692 (buildargv): Use ISSPACE instead of ISBLANK.
693 (expandargv): New function.
694 * Makefile.in: Regenerated.
696 2005-09-14 Christopher Faylor <cgf@timesys.com>
698 * pex-win32.c: Include "windows.h".
699 (backslashify): New function.
700 (fix_argv): Use backslashify to convert path to windows format.
701 Allocate one more place in new argv for potential executable from '#!'
703 (tack_on_executable): New function. Conditional on USE_MINGW_MSYS
705 (mingw_rootify): Ditto.
706 (msys_rootify): Ditto.
707 (spawn_script): New function.
708 (pex_win32_exec_child): Save translated argv in newargv. Pass to
709 spawn_script if spawnv* fails.
710 (main): New function. Conditional on MAIN. Useful for testing.
712 2005-08-17 Mark Kettenis <kettenis@gnu.org>
714 * floatformat.c (floatformat_always_valid): Change type of last
715 argument to `void *'.
716 (floatformat_i387_ext_is_valid): Likewise.
717 (floatformat_to_double): Change type of second argument to `const
719 (floatformat_from_double): Change type of last argument to `void
721 (floatformat_is_valid): Change type of last argument to `const
723 (ieee_test): Remove redundant casts.
725 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
727 * strverscmp.c: Update FSF address.
728 * testsuite/Makefile.in: Likewise.
729 * testsuite/test-demangle.c: Likewise.
730 * testsuite/test-pexecute.c: Likewise.
732 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
734 * getopt.c: Include ansidecl.h before system headers.
736 2005-07-22 Ben Elliston <bje@gnu.org>
738 * getopt.c: Include "ansidecl.h".
739 (_getopt_initialize): Mark argc and argv parameters as unused.
741 2005-07-22 Ben Elliston <bje@gnu.org>
743 * regex.c (regcomp): Change type of `i' from unsigned to int.
745 2005-07-22 Ben Elliston <bje@gnu.org>
747 Recover patch lost in the sourceware repository:
748 2005-07-09 Ben Elliston <bje@au.ibm.com>
749 * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
750 * memmove.c: Likewise.
751 * objalloc.c: Likewise.
753 2005-07-22 Ben Elliston <bje@gnu.org>
755 * configure.ac: Check for a getopt(3) declaration.
756 * configure, config.in: Regenerate.
758 2005-07-15 Ben Elliston <bje@au.ibm.com>
760 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
762 2005-07-12 Ben Elliston <bje@au.ibm.com>
764 * floatformat.c (floatformat_to_double): Add a comment about a
765 potential source of warnings when compiling this file.
767 2005-07-12 Ben Elliston <bje@au.ibm.com>
769 * pexecute.c (pexecute): Cast string litrals to char *.
770 * regex.c (re_comp): Cast a call to gettext() to char *.
772 2005-07-07 Kelley Cook <kcook@gcc.gnu.org>
774 * config.table: Delete file. Move former contents into ...
775 * configure.ac: ... here and escape any brackets for m4.
776 * Makefile.in (config.status): Remove dependency on config.table.
777 * configure: Regenerate.
779 2005-07-07 Kelley Cook <kcook@gcc.gnu.org>
781 * config.in: Regenerate for 6/20 change.
783 2005-07-03 Steve Ellcey <sje@cup.hp.com>
786 * md5.c (md5_process_bytes): Check alignment.
788 2005-07-01 Ian Lance Taylor <ian@airs.com>
791 * cp-demangle.c (d_expr_primary): Don't run off the end of the
792 string while looking for the end of a literal value.
793 * testsuite/demangle-expected: Add test case.
795 2005-06-30 Daniel Berlin <dberlin@dberlin.org>
797 * hashtab.c (EMPTY_ENTRY): Moved and renamed.
798 (DELETED_ENTRY): Ditto.
800 2005-06-20 Geoffrey Keating <geoffk@apple.com>
803 * Makefile.in (CFILES): Add strverscmp.c.
804 (CONFIGURED_OFILES): Add strverscmp.o.
805 (strverscmp.o): New rule.
806 (stamp-functions): Add $(srcdir) to files in source directory.
807 * configure.ac (funcs): Add strverscmp.
808 (AC_CHECK_FUNCS): Add strverscmp.
809 * configure: Regenerate.
810 * functions.texi: Regenerate.
812 2005-05-28 Eli Zaretskii <eliz@gnu.org>
814 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
815 * config.in, configure: Regenerate.
817 2005-05-25 Richard Henderson <rth@redhat.com>
819 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
820 (d_make_comp, d_print_comp): Likewise.
821 (d_special_name): Generate one.
822 * testsuite/demangle-expected: Add a hidden alias test.
824 2005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
826 * configure.ac: Check declarations for calloc(), getenv(),
827 malloc(), realloc() and sbrk().
828 * config.in: Regenerate.
829 * configure: Likewise.
831 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
833 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
834 * concat.c (liiberty_concat_ptr): Surround definition with an
835 extern "C" block, if __cplusplus.
836 (concat): Use XNEWVEC instead of xmalloc.
837 (reconcat): Likewise.
838 * cp-demangle.c (struct d_print_template): Rename member
839 "template" to "template_decl". Adjust use throughout the file.
840 (d_print_resize): Properly cast return value of realloc().
841 (cplus_demangle_print): Same for malloc().
842 (d_demangle): Likewise.
843 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
844 "typename" to "type_name".
845 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
846 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
847 (demangle_template_value_parm): Likewise.
848 (demangle_template): Likewise.
849 (recursively_demangle): Likewise.
850 (do_hpacc_template_literal): Likewise.
852 (remember_type): Likewise.
853 (remember_Ktype): Likewise.
854 (register_Btype): Likewise.
855 (string_need): Use XRESIZEVEC instead of xrealloc().
856 * dyn-string.c (dyn_string_init): Use XNEWVEC.
857 (dyn_string_new): Use XNEW.
858 (dyn_string_resize): Use XRESIZEVEC.
859 * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
860 * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
861 Otherwise include <stdlib.h>.
862 (exchange): Cast return value of malloc().
863 * hashtab.c (htab_size): Define as both macro and non-inline
865 (htab_elements): Likewise.
866 * getpwd.c (getpwd): Use XNEWVEC.
867 (htab_create_alloc_ex): Use C90 prototype-style.
868 * lrealpath.c (lrealpath): Appropriately cast return value of
870 * make-relative-prefix.c (save_string): Likewise.
871 * make-temp-file.c (try_dir): Rename from "try". Adjust use in
873 (choose_tmpdir): Use XNEWVEC.
874 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
875 * pex-common.c (pex_init_common): Use XNEW.
876 (pex_add_remove): Use XRESIZEVEC.
878 (pex_get_status_and_time): Likewise.
879 * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
880 * pex-msdos.c (pex_init): Use XNEW.
881 (pex_msdos_exec_child): Likewise.
882 (pex_msdos_exec_child): Use XRESIZEVEC.
883 * pex-unix.c (pex_wait): Use XNEW.
884 * pex-win32.c (fix_argv): Use XNEWVEC.
885 * pexecute.c (pwait): Likewise.
886 * setenv.c (setenv): Properly cast return value of malloc().
887 * sigsetmask.c (sigsetmask): Rename local variables "old" and
888 "new" to "old_sig" and "new_sig".
889 * sort.c (main): Use XNEWVEC.
890 * spaces.c (spaces): Cast return value of malloc().
891 * strndup.c (strndup): Likewise.
892 * ternary.c (ternary_insert): Use XNEW.
893 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
894 with an extern "C" block if __cplusplus.
895 * xstrdup.c (xstrdup): Cast return value of memcpy().
896 * xstrerror.c (strerror): Enclose declaration in an extern "C"
897 block if __cplusplus.
898 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
900 2005-05-16 Andreas Jaeger <aj@suse.de>
902 * getpwd.c: Remove unneeded prototype getcwd and move getwd so
903 that it's only declared if needed.
905 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
908 2005-05-15 Andreas Jaeger <aj@suse.de>
910 * functions.texi: Regenerated.
912 2005-05-15 Eli Zaretskii <eliz@gnu.org>
914 * pexecute.txh: Enclose multi-word data types in @deftypefn in
915 braces. Minor wording fixes. Use --- for em-dash. Use
916 @enumerate in enumerated lists.
918 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
921 2005-05-11 Eli Zaretskii <eliz@gnu.org>
923 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
925 (pex_init): Fix last argument to pex_init_common.
926 (pex_djgpp_exec_child): Remove leading underscore from _open,
927 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
928 which is undeclared, with `executable', which was unused. Remove
929 unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
930 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
932 2005-05-11 Paul Brook <paul@codesourcery.com>
934 * Makefile.in: Regenerate dependencies.
936 2005-05-10 Nick Clifton <nickc@redhat.com>
938 * Update the address and phone number of the FSF organization in
939 the GPL notices in the following files:
940 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
941 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
942 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
943 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
944 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
945 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
946 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
947 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
948 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
949 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
950 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
951 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
952 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
954 2005-05-06 Kelley Cook <kcook@gcc.gnu.org>
956 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
957 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
958 * configure: Regenerate.
960 2005-05-06 Kelley Cook <kcook@gcc.gnu.org>
962 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
963 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
964 * aclocal.m4: Don't include accross.m4.
965 * configure, config.in: Regenerate.
967 2005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
969 * fopen_unlocked.c (unlock_std_streams): New.
971 * functions.texi: Regenerate.
973 2005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
975 * fopen_unlocked.c (unlock_stream): New.
976 Consolidate unlocking code into a helper function.
978 * functions.texi: Regenerate.
980 2005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
982 * asprintf.c: Include config.h.
983 * basename.c: Likewise.
984 * fdmatch.c: Likewise.
986 * lbasename.c: Likewise.
987 * spaces.c: Likewise.
988 * xatexit.c:Likewise.
989 * configure.ac: Do check declarations for basename, ffs, asprintf
990 and vasprintf for real.
991 * configure: Regenerate.
993 2005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
995 * argv.c (dupargv): Allocate space of argv[argc], not
996 sizeof(char *) of that amount. Cast result to char *.
998 2005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
1000 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
1001 Replace not with negate.
1003 2005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
1005 * configure.ac: Check declarations for basename, ffs, asprintf,
1007 * configure: Regenerate.
1008 * config.in: Likewise.
1010 2005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1012 * Makefile.in (CFILES): Add fopen_unlocked.c.
1013 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
1014 Regenerate dependencies.
1016 * configure.ac: Check for stdio_ext.h and __fsetlocking.
1018 * fopen_unlocked.c: New file.
1020 * functions.texi, configure, config.in: Regenerate.
1022 2005-04-04 Ian Lance Taylor <ian@airs.com>
1024 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
1025 declaration before statement.
1027 2005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1029 * bcmp.c: Fix warnings and implement using memcmp.
1030 * bcopy.c: Fix warnings.
1031 * bzero.c: Fix warnings and implement using memset.
1033 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
1034 -Wstrict-prototypes.
1035 * configure, config.in: Regenerate.
1037 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
1038 warnings and reconcile interfaces with relevant standards.
1040 2005-04-02 Ian Lance Taylor <ian@airs.com>
1042 * cp-demangle.c: Update copyright.
1044 2005-03-31 Joseph S. Myers <joseph@codesourcery.com>
1046 * gettimeofday.c: Add "Supplemental" to @deftypefn.
1047 * functions.texi: Regenerate.
1049 2005-03-28 Ian Lance Taylor <ian@airs.com>
1051 * pex-common.c: New file.
1052 * pex-one.c: New file.
1053 * pexecute.c: New file.
1054 * pex-common.h: Include <stdio.h>.
1055 (struct pex_obj): Define.
1056 (struct pex_funcs): Define.
1057 (pex_init_common): Declare.
1058 * pex-unix.c: Rewrite.
1059 * pex-win32.c: Rewrite.
1060 * pex-djgpp.c: Rewrite.
1061 * pex-msdos.c: Rewrite.
1062 * testsuite/text-pexecute.c: New file.
1063 * pexecute.txh: Rewrite.
1064 * configure.ac: Check for wait3 and wait4. Set CHECK to
1065 really-check rather than check-cplus-dem.
1066 * functions.texi: Rebuild.
1067 * Makefile.in: Rebuild dependencies.
1068 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
1069 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
1070 * testsuite/Makefile.in (really-check): New target.
1071 (check-pexecute, test-pexecute): New targets.
1072 * configure: Rebuild.
1074 2005-03-28 Mark Kettenis <kettenis@gnu.org>
1076 * unlink-if-ordinary.c: Include <sys/types.h>.
1078 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1080 Convert libiberty to use ISO C prototype style 7/n.
1081 * regex.c (PARAMS): Remove definition.
1082 (PREFIX): Unconditionaly define using ISO C ## operator.
1083 (init_syntax_once, extract_number, extract_number_and_incr,
1084 print_fastmap, print_partial_compiled_pattern,
1085 print_compiled_pattern, print_double_string, printchar,
1086 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
1087 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
1088 at_begline_loc_p, at_endline_p, group_in_compile_stack,
1089 insert_space, wcs_compile_range, byte_compile_range,
1090 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
1091 re_set_registers, re_search, re_search_2, re_search_3, re_match,
1092 re_match_2, count_mbs_length, wcs_re_match_2_internal,
1093 byte_re_match_2_internal, group_match_null_string_p,
1094 alt_match_null_string_p, common_op_match_null_string_p,
1095 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
1096 regexec, regerror, regfree): Use ISO C prototype style.
1097 * partition.c: (elem_compare): Likewise.
1098 * cp-demangle.c (print_usage): Likewise.
1100 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1102 Convert libiberty to use ISO C prototype style 5/n.
1103 * random.c (srandom, initstate, setstate, random): Use ISO C
1105 * putenv.c (putenv): Likewise.
1106 * physmem.c (physmem_available, physmem_total, main): Likewise.
1107 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
1108 * pex-unix.c (pexecute, pwait): Likewise.
1109 * pex-msdos.c (pexecute, pwait): Likewise.
1110 * pex-djgpp.c (pexecute, pwait): Likewise.
1111 * partition.c (partition_new, partition_delete, partition_union)
1112 (elem_compare, partition_print): Likewise.
1113 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
1114 _obstack_allocated_p, _obstack_free, obstack_free,
1115 _obstack_memory_used, print_and_abort, obstack_next_free,
1116 obstack_object_size, obstack_base): Likewise. Remove codes
1117 predicated on !defined(__STDC__).
1118 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
1119 objalloc_free_block): Use ISO C prototypes.
1120 * mkstemps.c (mkstemps): Likewise.
1121 * memset.c (memset): Likewise.
1122 * mempcpy.c (mempcpy): Likewise.
1123 * rename.c (rename): Likewise.
1124 * rindex.c (rindex): Likewise.
1125 * setenv.c (setenv, unsetenv): Likewise.
1126 * sigsetmask.c (sigsetmask): Likewise.
1127 * snprintf.c (snprintf): Likewise.
1128 * sort.c (sort_pointers, xmalloc): Likewise.
1129 * spaces.c (spaces): Likewise.
1130 * splay-tree.c (splay_tree_delete_helper,
1131 splay_tree_splay_helper, splay_tree_splay,
1132 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
1133 splay_tree_new, splay_tree_xmalloc_allocate,
1134 splay_tree_new_with_allocator, splay_tree_delete,
1135 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
1136 splay_tree_max, splay_tree_min, splay_tree_predecessor,
1137 splay_tree_successor, splay_tree_foreach,
1138 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
1139 * stpcpy.c (stpcpy): Likewise.
1140 * stpncpy.c (stpncpy): Likewise.
1141 * strcasecmp.c (strcasecmp): Likewise.
1142 * strchr.c (strchr): Likewise.
1143 * strdup.c (strdup): Likewise.
1145 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1147 Convert libiberty to use ISO C prototype style 6/n.
1148 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
1149 strtoerrno, main): Use ISO C prototype style.
1150 * strncasecmp.c (strncasecmp): Likewise.
1151 * strncmp.c (strncmp): Likewise.
1152 * strndup.c (strndup): Likewise.
1153 * strrchr.c (strrchr): Likewise.
1154 * strsignal.c (init_signal_tables, signo_max, strsignal,
1155 strsigno, strtosigno, psignal, main): Likewise.
1156 * strstr.c (strstr): Likewise.
1157 * strtod.c (strtod, atof): Likewise.
1158 * strtol.c (strtol): Likewise.
1159 * strtoul.c (strtoul): Likewise.
1160 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
1161 ternary_recursivesearch): Likewise.
1162 * tmpnam.c (tmpnam): Likewise.
1163 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
1164 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
1165 * vfork.c (vfork): Likewise.
1166 * vfprintf.c (vfprintf): Likewise.
1167 * vprintf.c (vprintf): Likewise.
1168 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
1169 * vsprintf.c (vsprintf): Likewise.
1170 * waitpid.c (waitpid): Likewise.
1171 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
1172 * xexit.c (xexit): Likewise.
1173 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
1174 xcalloc, xrealloc): Likewise.
1175 * xmemdup.c (xmemdup): Likewise.
1176 * xstrdup.c (xstrdup): Likewise.
1177 * xstrerror.c (xstrerror): Likewise.
1178 * xstrndup.c (xstrndup): Likewise.
1180 2005-03-27 Andreas Jaeger <aj@suse.de>
1182 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
1184 * configure: Regenerated.
1186 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1188 * getopt1.c (getopt_long_only): Fix thinko.
1190 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1192 Convert libiberty to use ISO C prototype style 4/n.
1193 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
1194 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
1195 htab_create_alloc, htab_set_functions_ex, htab_create,
1196 htab_try_create, htab_delete, htab_empty,
1197 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
1198 htab_find, htab_find_slot_with_hash, htab_find_slot,
1199 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
1200 htab_traverse_noresize, htab_traverse, htab_collisions,
1201 htab_hash_string, iterative_hash): Use ISO C prototype.
1202 * hex.c (hex_init): Likewise.
1203 * index.c (index): Likewise.
1204 * insque.c (insque, remque): Likewise.
1205 * lbasename.c (lbasename): Likewise.
1206 * lrealpath.c (lrealpath): Likewise.
1207 * make-relative-prefix.c (save_string, split_directories,
1208 free_split_directories, make_relative_prefix): Likewise.
1209 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
1210 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
1211 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
1212 * memchr.c (memchr): Likewise.
1213 * memcpy.c (memcpy): Likewise.
1214 * memmove.c (memmove): Likewise.
1215 * gettimeofday.c (gettimeofday): Likewise.
1216 * getruntime.c (get_run_time): Likewise.
1217 * getpwd.c (getpwd, getpwd): Likewise.
1218 * getpagesize.c (getpagesize): Likewise.
1219 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
1220 * getopt.c (my_index, exchange, _getopt_initialize,
1221 _getopt_internal, getopt, main): Likewise.
1222 * getcwd.c (getcwd): Likewise.
1223 * fnmatch.c (fnmatch): Likewise.
1224 * floatformat.c (floatformat_always_valid,
1225 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
1226 put_field, floatformat_from_double, floatformat_is_valid,
1227 ieee_test, main): Likewise.
1228 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
1229 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
1230 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
1231 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
1232 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
1233 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
1234 fibheap_link, fibheap_cut, fibheap_cascading_cut,
1235 fibnode_insert_after, fibnode_remove): Likewise.
1236 * ffs.c (ffs): Likewise.
1237 * fdmatch.c (fdmatch): Likewise.
1238 * dyn-string.c (dyn_string_init, dyn_string_new,
1239 dyn_string_delete, dyn_string_release, dyn_string_resize,
1240 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
1241 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
1242 dyn_string_insert_cstr, dyn_string_insert_char,
1243 dyn_string_append, dyn_string_append_cstr,
1244 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
1247 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1249 Convert libiberty to use ISO C prototype style 3/n.
1250 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
1251 consume_count_with_underscores, code_for_qualifier,
1252 qualifier_string, demangle_qualifier, cplus_demangle_opname,
1253 cplus_mangle_opname, cplus_demangle_set_style,
1254 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
1255 ada_demangle, internal_cplus_demangle, squangle_mop_up,
1256 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
1257 delete_work_stuff, mop_up, demangle_signature,
1258 demangle_method_args, demangle_template_template_parm,
1259 demangle_expression, demangle_integral_value,
1260 demangle_real_value, demangle_template_value_parm,
1261 demangle_template, arm_pt, demangle_arm_hp_template,
1262 demangle_class_name, demangle_class, iterate_demangle_function,
1263 demangle_prefix, gnu_special, recursively_demangle, arm_special,
1264 demangle_qualified, get_count, do_type, demangle_fund_type,
1265 do_hpacc_template_const_value, do_hpacc_template_literal,
1266 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
1267 register_Btype, remember_Btype, forget_B_and_K_types,
1268 forget_types, demangle_args, demangle_nested_args,
1269 demangle_function_name, string_need, string_delete, string_init,
1270 string_clear, string_empty, string_append, string_appends,
1271 string_appendn, string_prepend, string_prepends, string_prependn,
1272 string_append_template_idx): Use ISO C prootype style.
1273 * cp-demint.c (cplus_demangle_fill_component,
1274 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
1275 cplus_demangle_v3_components): Likewise.
1277 2005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
1279 Convert libiberty to use ISO C prototype style 2/n.
1280 * cp-demangle.h: Remove uses of PARAMS.
1281 * cp-demangle.c: Likewise.
1282 (d_dump, cplus_demangle_fill_name,
1283 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
1284 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
1285 d_make_builtin_type, d_make_operator, d_make_extended_operator,
1286 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
1287 cplus_demangle_mangled_name, has_return_type,
1288 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
1289 d_prefix, d_unqualified_name, d_source_name, d_number,
1290 d_identifier, d_operator_name, d_special_name, d_call_offset,
1291 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
1292 d_function_type, d_bare_function_type, d_class_enum_type,
1293 d_array_type, d_pointer_to_member_type, d_template_param,
1294 d_template_args, d_template_arg, d_expression, d_expr_primary,
1295 d_local_name, d_discriminator, d_add_substitution,
1296 d_substitution, d_print_resize, d_print_append_char,
1297 d_print_append_buffer, d_print_error, cplus_demangle_print,
1298 d_print_comp, d_print_java_identifier, d_print_mod_list,
1299 d_print_mod, d_print_function_type, d_print_array_type,
1300 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
1301 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
1302 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
1305 2005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
1307 Convert libiberty to ISO C prototype style 1/n.
1308 * _doprnt.c: Remove conditional #include <varargs.h> on
1309 ANSI_PROTOTYPES as the latter is always assumed.
1310 (_doprnt, checkit, main): Use ISO C prototype.
1311 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
1312 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
1313 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
1314 * atexit.c (atexit): Likewise
1315 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
1316 (asprintf): Use ISO C prototype.
1317 * basename.c (basename): Likewise
1318 * bcmp.c (bcmp): Likewise.
1319 * bcopy.c (bcopy): Likewise.
1320 * bzero.c (bzero): Likewise.
1321 * bsearch.c (bsearch): Likewise. Improve const-correctness.
1322 * choose-temp.c (choose_temp_base): Likewise.
1323 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
1324 (calloc): Use ISO C prototype.
1325 * clock.c (clock): Likewise.
1326 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
1327 (vconcat_length, vconcat_copy, concat_length, concat_copy,
1328 concat_copy2, concat, reconcat, main): Use ISO C prototype.
1329 * copysign.c (copysign): Likewise.
1331 2005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1333 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
1334 (REQUIRED_OFILES): Add xstrndup.o.
1335 (CONFIGURED_OFILES): Add strndup.o.
1336 Regenerate dependencies.
1338 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
1340 * strndup.c, xstrndup.c: New.
1342 * config.in, configure, functions.texi: Regenerate.
1344 2005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1346 * xmemdup.c, xstrdup.c: Expose the tail call.
1348 2005-03-09 Mark Mitchell <mark@codesourcery.com>
1350 * configure.ac (funcs): Add gettimeofday.
1351 * configure: Regenerated.
1352 * gettimeofday.c: New file.
1353 * Makefile.in (CFILES): Add gettimeofday.
1354 (CONFIGURED_OFILES): Add gettimeofday.o.
1355 (./gettimeofday.o): New rule.
1357 2005-03-09 Ian Lance Taylor <ian@airs.com>
1359 * pex-os2.c: Remove.
1360 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
1361 * Makefile.in (CFILES): Remove pex-os2.c.
1362 (CONFIGURED_OFILES): Remove pex-os2.o.
1363 (pex-os2.o): Remove target.
1364 * configure: Rebuild.
1366 2005-03-07 Ian Lance Taylor <ian@airs.com>
1368 * mpw-config.in: Remove.
1369 * mpw-make.sed: Remove.
1371 * Makefile.in (CFILES): Remove pex-mpw.c.
1372 (CONFIGURED_OFILES): Remove pex-mpw.o.
1373 (mpw.o, pex-mpw.o): Remove targets.
1374 * maint-tool (undoc): Remove reference to mpw.c.
1376 2005-03-06 DJ Delorie <dj@redhat.com>
1378 * configure.ac (target_header_dir): vfork is a stub under djgpp.
1379 * configure: Regenerated.
1381 2005-03-01 Jan Beulich <jbeulich@novell.com>
1383 * Makefile.in (CFILES): Add unlink-if-ordinary.c
1384 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
1385 Add dependencies and rule for unlink-if-ordinary.o.
1386 * unlink-if-ordinary.c: New.
1388 2005-03-01 Ben Elliston <bje@au.ibm.com>
1390 * hashtab.c (htab_find_slot_with_hash): Make function
1391 documentation clearer.
1393 2005-02-13 Jason Merrill <jason@redhat.com>
1395 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
1398 2005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
1400 * hex.c (hex_value): Group 'unsigned int' together to get correct
1402 * functions.texi: Regenerated.
1404 2004-12-27 H.J. Lu <hongjiu.lu@intel.com>
1406 * Makefile.in: Undo to 2004-12-17.
1407 * aclocal.m4: Likewise.
1408 * config.table: Likewise.
1409 * configure.ac: Likewise.
1410 * maint-tool: Likewise.
1411 * configure: Likewise.
1413 2004-12-19 H.J. Lu <hongjiu.lu@intel.com>
1416 * Makefile.in (enable_shared): New substitute.
1418 (PREFIXTARGETLIB): New.
1420 (PREFIXTESTLIB): New.
1423 ($(TARGETLIB)): Use $(LINK) to create libraries and create
1425 ($(TESTLIB)): Likewise.
1426 (mostlyclean): Don't remove .libs. Remove the libtool object
1429 * config.table (enable_shared): Removed.
1431 * configure.ac (enable_static): Set to yes.
1432 (AC_PROG_LIBTOOL): Removed.
1433 (AM_DISABLE_SHARED): Uncommented.
1434 (AM_PROG_LIBTOOL): Likewise.
1435 (LIBOBJS): Add `./' to avoid VPATH.
1436 (LTLIBOBJS): Likewise.
1437 (enable_shared): Substitute.
1438 * configure: Regenerated.
1440 2004-12-18 H.J. Lu <hongjiu.lu@intel.com>
1442 * Makefile.in (top_builddir): Set to `.'.
1443 (OUTPUT_OPTION): Removed.
1446 (EXTRA_LTOFILES): New.
1447 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
1448 (all): Remove stamp-picdir.
1451 (REQUIRED_LTOFILES): New.
1452 (CONFIGURED_LTOFILES): New.
1453 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
1454 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
1455 (stamp-picdir): Completely removed.
1456 (maint-missing): Pass $(REQUIRED_LTOFILES)
1457 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
1458 $(CONFIGURED_OFILES)
1459 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
1460 $(CONFIGURED_LTOFILES).
1461 (mostlyclean): Also remove *.lo .libs.
1462 Run "make maint-deps".
1464 * aclocal.m4: Include ../libtool.m4.
1466 * config.table: Don't check --enable-shared.
1468 * configure.ac (AC_PROG_LIBTOOL): Add.
1469 (AC_PROG_CC_C_O): Removed.
1470 (OUTPUT_OPTION): Removed.
1471 (NO_MINUS_C_MINUS_O): Removed.
1472 (ltpexecute): New substitute.
1474 * configure: Regenerated.
1476 * maint-tool: Updated for .lo/libtool.
1478 2004-12-11 Ben Elliston <bje@au.ibm.com>
1480 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
1481 * configure: Regenerate.
1482 * config.in: Likewise.
1484 2004-12-07 DJ Delorie <dj@redhat.com>
1486 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
1487 that recursion (and thus large stack space) is not needed.
1489 2004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
1491 * pex-unix.c: Fix the spelling of longjmp.
1493 2004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
1496 * cp-demangle.c (d_call_offset): Remove useless local variables
1497 offset and virtual_offset.
1498 * cplus-dem.c (ada_demangle): Remove useless local variable
1500 (demangle_template): Remove useless local variable start.
1502 2004-11-19 Roger Sayle <roger@eyesopen.com>
1504 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
1505 "ansidecl.h" to avoid redeclaration errors with native compilers.
1506 * regex.c: Protect config.h from multiple inclusion.
1508 2004-11-12 Mike Stump <mrs@apple.com>
1510 * Makefile.in (libiberty.html): Fix html generation.
1512 2004-09-08 Adam Nemet <anemet@lnxw.com>
1514 * vasprintf.c: Accept __va_copy in addition to va_copy.
1516 2004-09-03 Paolo Bonzini <bonzini@gnu.org>
1518 * configure: Regenerate.
1520 2004-09-02 Paolo Bonzini <bonzini@gnu.org>
1522 * configure.ac: Do not enable multilibs for build-side libiberty.
1524 2004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
1526 * lrealpath.c (lrealpath): Add _WIN32 support.
1528 2004-06-28 Zack Weinberg <zack@codesourcery.com>
1530 * cp-demangle.h: Declare cplus_demangle_operators,
1531 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
1532 cplus_demangle_type as static if IN_GLIBCPP_V3.
1534 2004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
1537 * cp-demangle.c (d_expr_primary): Check for a failure return from
1538 cplus_demangle_type.
1539 * testsuite/demangle-expected: Add test case.
1541 2004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
1543 * pex-win32.c (fix_argv): Expand comment.
1545 2004-05-25 Daniel Jacobowitz <drow@false.org>
1547 * Makefile.in: Add .NOEXPORT.
1549 2004-04-29 Douglas B Rupp <rupp@gnat.com>
1551 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
1554 2004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1556 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
1557 * configure: Regenerate.
1559 2004-04-22 Richard Henderson <rth@redhat.com>
1561 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
1562 (CHAR_BIT): Provide default.
1563 (struct prime_ent, prime_tab): New.
1564 (higher_prime_index): Rename from higher_prime_number, return index.
1566 (htab_mod, htab_mod_m2): Use it.
1567 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
1568 (htab_expand): Likewise.
1569 * configure.ac: Check for stdint.h.
1570 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
1571 * config.in, configure: Rebuild.
1573 2004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
1575 * strerror.c: Include config.h, and redefine sys_nerr and
1576 sys_errlist, before including ansidecl.h and libiberty.h.
1578 2004-04-13 Jeff Law <law@redhat.com>
1580 * hashtab.c (htab_remove_elt_with_hash): New function.
1581 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
1583 2004-03-31 Richard Henderson <rth@redhat.com>
1585 * hashtab.c (htab_size): Move to top of file; mark inline.
1586 (htab_elements): Likewise.
1587 (htab_mod, htab_mod_m2): New.
1588 (htab_delete): Refactor htab->size and htab->entries.
1589 (htab_empty): Likewise.
1590 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
1591 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
1592 (htab_clear_slot): Use htab_size, htab_elements.
1593 (htab_traverse_noresize, htab_traverse): Likewise.
1595 2004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
1597 * pex-unix.c (pexecute): Use vfork instead of fork, with
1598 appropriate changes to make this safe.
1599 * pex-common.h (STDERR_FILE_NO): Define.
1601 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
1602 an 80 column screen. Run maint-deps.
1604 2004-03-09 Kelley Cook <kcook@gcc.gnu.org>
1606 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
1607 * acconfig.h: Delete redundant file.
1608 * config.in: Regenerate.
1609 * configure: Regenerate.
1611 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
1613 * configure: Regenerate for config/accross.m4 correction.
1615 2004-03-07 Andreas Jaeger <aj@suse.de>
1617 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
1619 (main): Initialize style.
1621 2004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
1623 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
1624 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
1625 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
1626 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
1627 short types to D_PRINT_DEFAULT. Change other integer types to use
1628 new D_PRINT_* values where appropriate. Change float types to
1630 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
1632 * testsuite/demangle-expected: Adjust two test cases.
1634 * cp-demangle.c (d_print_function_type): Print a space before the
1635 parenthesis around the function type in more cases.
1636 * testsuite/demangle-expected: Adjust one test case.
1638 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
1639 parentheses around a cast.
1640 * testsuite/demangle-expected: Adjust two test cases to match new
1643 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
1645 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
1646 push more than one of the same CV-qualifier on the top of the
1648 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
1649 move the CV-qualifiers to apply to the element type instead.
1650 (d_print_array_type): When checking the modifiers, keep looking
1651 past ones which have been printed already.
1652 * testsuite/demangle-expected: Add three test cases.
1654 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1656 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
1657 empty string correctly.
1659 * cp-demangle.c (__cxa_demangle): It is not an error if status is
1660 not NULL. It is an error if the mangled name is the same as a
1662 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
1663 than cplus_demangle_v3.
1665 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
1666 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
1668 2004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
1670 * regex.c: Include <ansidecl.h>.
1671 (regcomp): Cast i to int.
1672 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
1674 2004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
1676 * configure.ac: Add m4_pattern_allow(LIBOBJS).
1677 * configure: Regenerate.
1679 2004-01-22 DJ Delorie <dj@redhat.com>
1681 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
1682 with explicit build rules.
1685 * configure.ac (pexecute, LIBOBJS): Add ./ .
1686 * maint-tool: Build dependencies with explicit rules.
1688 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
1690 * strdup.c (strdup): Constify the argument.
1692 2004-01-14 Loren J. Rittle <ljrittle@acm.org>
1694 * Makefile.in (distclean): Remove config.cache.
1696 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
1698 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
1699 takes two parameters.
1700 * cp-demint.c (cplus_demangle_fill_component): Likewise.
1702 2004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
1704 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
1705 defined, rename some functions which are to become static via
1707 (CP_STATIC_IF_GLIBCPP_V3): Define.
1708 (struct d_operator_info): Move definition to cp-demangle.h, and
1709 rename to demangle_operator_info. Change all uses.
1710 (enum d_builtin_type_print): Move definition to cp-demangle.h.
1711 (struct d_builtin_type_info): Move definition to cp-demangle.h,
1712 and rename to demangle_builtin_type_info. Change all uses.
1713 (enum d_comp_type): Move definition to include/demangle.h, and
1714 rename to demangle_component_type, and change all enums to start
1715 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
1716 (struct d_comp): Move definition to include/demangle.h, and rename
1717 to demangle_component. Change all uses.
1718 (struct d_info): Move definition to cp-demangle.h.
1719 (cplus_demangle_fill_name): New function.
1720 (cplus_demangle_fill_extended_operator): New function.
1721 (cplus_demangle_fill_ctor): New function.
1722 (cplus_demangle_fill_dtor): New function.
1723 (d_make_empty): Remove type parameter. Change all callers.
1724 (d_make_name): Use cplus_demangle_fill_name.
1725 (d_make_extended_operator): Use
1726 cplus_demangle_fill_extended_operator.
1727 (d_make_ctor): Use cplus_demangle_fill_ctor.
1728 (d_make_dtor): Use cplus_demangle_fill_dtor.
1729 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
1730 non-static by default. Change all callers.
1731 (cplus_demangle_operators): Rename from d_operators. Change all
1732 uses. Make non-static by default. Add sentinel at end of array.
1733 (d_operator_name): Adjust initialization of high for new sentinel
1734 in cplus_demangle_operators.
1735 (cplus_demangle_builtin_types): Rename from d_builtin_types.
1736 Change all uses. Make non-static by default. Change initializer
1737 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
1738 (cplus_demangle_type): Rename from d_type. Make non-static by
1739 default. Change all callers.
1740 (cplus_demangle_init_info): Rename from d_init_info. Make
1741 non-static by default. Change all callers.
1742 * cp-demangle.h: New file.
1743 * cp-demint.c: New file.
1744 * Makefile.in: Rebuild dependencies.
1745 (CFILES): Add cp-demint.c.
1746 (REQUIRED_OFILES): Add cp-demint.o.
1748 2004-01-09 Kelley Cook <kcook@gcc.gnu.org>
1750 * configure.in: Rename file to ...
1751 * configure.ac: ... this.
1752 * Makefile.in: Update a comment for above change.
1754 * config.in: Regenerate.
1756 2004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
1758 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
1759 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
1760 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
1761 demangling template parameters.
1762 * testsuite/test-demangle.c (fail): New static function.
1763 (main): Support new options in input file: --no-params,
1764 --is-v3-ctor, and --is-v3-dtor.
1765 * testsuite/demangle-expected: Add --no-params to most tests, and
1766 add the correct result when parameters are not demangled. Add
1767 some simple tests for V3 constructor/destructor recognition.
1769 2003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1771 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
1773 2003-12-22 Daniel Jacobowitz <drow@mvista.com>
1776 * Makefile.in (lbasename.o): Depend on filenames.h.
1777 * lbasename.c: Include "filenames.h" instead of defining
1780 2003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
1782 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
1784 (struct d_operator_info): Add len field.
1785 (struct d_builtin_type_info): Add len and java_len fields.
1786 (struct d_standard_sub_info): Add simple_len, full_len, and
1787 set_last_name_len fields.
1788 (struct d_comp): Add len field to s_string.
1789 (struct d_info): Add send, did_subs, and expansion fields.
1790 (d_append_string_constant): Define.
1791 (d_append_string): Remove. Change all users to use
1792 d_append_string_constant or d_append_buffer instead.
1793 (d_make_sub): Add len parameter. Change all callers.
1794 (d_name): Increase expansion when substituting std::.
1795 (d_unqualified_name): Increase expansion for an operator.
1796 (d_number): Don't use multiplication for negative numbers.
1797 (d_identifier): Make sure there are enough characters in the
1798 string for the specified length. Adjust expansion for an
1799 anonymous namespace.
1800 (d_operators): Initialize len field.
1801 (d_special_name, d_ctor_dtor_name): Increase expansion.
1802 (d_builtin_types): Initialize len and java_len fields.
1803 (d_type): Increase expansion for a builtin type.
1804 (d_cv_qualifiers): Increase expansion for each qualifier.
1805 (d_bare_function_type): Decrease expansion when removing single
1807 (d_template_param): Increment did_subs.
1808 (d_expression): Increase expansion for an operator.
1809 (d_expr_primary): Decrease expansion for a type we will print
1811 (standard_subs): Initialize new fields.
1812 (d_substitution): Increment did_subs when doing a normal
1813 substitution. Increase expansion for a special substitution.
1814 (d_print): Add estimate parameter. Change all callers.
1815 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
1816 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
1817 (d_print_java_identifier): Rename from d_print_identifier. Handle
1818 only Java case. Change caller.
1819 (d_init_info): Change return type to void. Change all callers.
1820 Initialize send, did_subs, and expansion fields. Do not
1821 initialize comps and subs fields.
1822 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
1823 arrays on stack. Make an estimate of the length of the demangled
1824 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
1825 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
1826 subs arrays on stack.
1828 2003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
1830 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
1831 after the identifier.
1832 * testsuite/demangle-expected: Add test case.
1834 2003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
1836 Fix for PR c++/13447:
1837 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
1838 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
1839 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
1841 (is_ctor_or_dtor): Likewise.
1842 (d_local_name): Use D_COMP_LOCAL_NAME rather than
1844 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
1845 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
1846 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
1847 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
1848 * testsuite/demangle-expected: Add two test cases.
1850 * cp-demangle.c (d_print_function_type): Clear the global modifier
1851 list when printing the modifiers, not just when printing the
1852 function parameters.
1853 * testsuite/demangle-expected: Add two test cases.
1855 2003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1857 * cp-demangle.c (d_print_function_type): Print the function
1858 parameters with no modifiers.
1859 * testsuite/demangle-expected: Add test case.
1861 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
1862 expect that we've read the entire string.
1863 (is_ctor_or_dtor): Don't expect that we've read the entire
1864 string--reverse patch of 2003-11-29.
1866 2003-12-15 Brendan Kehoe <brendan@zen.org>
1868 * libiberty/Makefile.in (floatformat.o): Add dependency on
1869 config.h to accompany change of 2003-12-03.
1871 2003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1873 Fix handling of constructor/destructor of standard substitution:
1874 * cp-demangle.c (struct d_standard_sub_info): Define.
1875 (d_substitution): Add prefix argument. Change all callers.
1876 Rework handling of standard substitutions to print full name when
1877 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
1878 * testsuite/demangle-expected: Add test case.
1880 Fix handling of negative literal constants:
1881 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
1882 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
1883 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
1884 (d_print_comp): Handle D_COMP_LITERAL_NEG.
1885 * testsuite/demangle-expected: Add test case.
1887 2003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
1889 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
1890 (d_last_char): Define new macro.
1891 (d_make_name): Reject an empty name.
1892 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
1893 (d_substitution, d_print_identifier): Likewise.
1894 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
1895 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
1896 (d_print_mod) Use new d_last_char macro.
1897 (d_print_cast): Use new d_last_char macro.
1898 (is_ctor_or_dtor): Don't leak memory.
1900 Fix handling of member function modifiers:
1901 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
1902 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
1903 (d_dump): Dump new d_comp_type values.
1904 (d_make_comp): Accept new d_comp_type values.
1905 (has_return_type): Only accept _THIS variants of qualifiers.
1906 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
1908 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
1909 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
1910 qualifiers and printing them at the end, add _THIS qualifiers to
1912 (d_print_comp) [D_COMP_*_THIS]: New cases.
1913 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
1915 (d_print_mod_list): Add suffix parameter. Change all callers.
1916 Keep walking the list even if the current modifier has been
1918 (d_print_mod): Handle new _THIS qualifiers.
1919 (d_print_function_type): Handle new _THIS qualifiers when deciding
1920 whether to print a parenthesis. Put a space before the
1921 parenthesis in some cases. Call d_print_mod_list again at the
1922 end, passing suffix as 1.
1923 (is_ctor_or_dtor): Look for new _THIS qualifiers.
1924 * testsuite/demangle-expected: Add test case.
1926 Fix for PR gcc/13304:
1927 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
1928 before the '<' is itself a '<', insert a space.
1929 (d_print_cast): Likewise.
1930 * testsuite/demangle-expected: Add test case.
1932 Fix for PR gcc/13244:
1933 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
1934 which uses the '>' operator in an extra layer of parens.
1935 * testsuite/demangle-expected: Add test case.
1937 2003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
1939 * floatformat.c: Include "config.h" and <string.h> if available.
1940 (INFINITY, NAN): Define if not defined by <math.h>.
1941 (floatformat_to_double): Handle NaN, infinity, and denormalized
1943 (floatformat_from_double): Likewise.
1944 (ieee_test): In debugging code, use little endian rather than big
1945 endian. Correct tests to handle NaN and to check correct sign of
1946 zero. Omit m68k extended test.
1947 (main): Add more debugging cases.
1949 2003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
1951 * cp-demangle.c (d_demangle): Only return success if we consumed
1952 the entire demangled string.
1953 (is_ctor_or_dtor): Likewise.
1955 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
1956 to restore expected result of EDG test case to original expected
1959 2003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
1961 * cp-demangle.c (struct d_print_mod): Add templates field.
1962 (d_make_builtin_type): Check for NULL type.
1963 (d_make_extended_operator): Check for NULL name.
1964 (d_make_ctor, d_make_dtor): Likewise.
1965 (d_mangled_name): Add top_level parameter. Change all callers.
1966 (d_encoding): If DMGL_PARAMS is not set, strip off initial
1968 (d_type): Check some return values we rely on.
1969 (d_bare_function_type, d_array_type): Likewise.
1970 (d_pointer_to_member_type, d_template_args): Likewise.
1971 (d_add_substitution): Fail if argument is NULL.
1972 (d_print_resize): Check whether buf is NULL.
1973 (d_print_comp): Save current templates list with each modifier.
1974 Don't pass the modifier list down when printing a template.
1975 (d_print_cast): Don't pass the modifier list down when printing a
1977 (d_print_mod_list): Temporarily set templates list while printing
1979 (d_print_mod): Check that buf is not NULL before using it.
1980 (d_print_function_type): Print parens if there is no modifier.
1981 (d_init_info): Permit as many substitutions as there are
1982 characters in the mangled name.
1983 * testsuite/demangle-expected: Add two new test cases.
1985 2003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
1987 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
1990 2003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
1992 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
1994 (print_usage): Display new -p option.
1995 (long_options): Add --no-params.
1996 (main): Accept and handle -p.
1998 2003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
2000 * cp-demangle.c (has_return_type): Skip qualifiers when checking
2001 whether we have a template.
2002 * testsuite/demangle-expected: Add four new tests.
2004 2003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
2006 * testsuite/demangle-expected: Minor changes to match output of
2007 new demangler: adjust whitespace in four tests, and change order
2008 of qualifiers in one test.
2010 * cp-demangle.c: Complete rewrite.
2012 2003-11-19 Mark Mitchell <mark@codesourcery.com>
2014 * cp-demangle.c (demangle_type): Correct thinko in substitution
2017 2003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
2019 * cp-demangle.c (demangle_operator_name): Remove space before
2021 (demangle_type_ptr): Put qualifiers in the right place. Handle
2022 qualifiers in pointer to member specially.
2023 (demangle_type): Handle qualifiers for pointer or reference
2024 specially. Handle function type.
2025 (demangle_local_name): Save and restore caret around demangling of
2028 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
2031 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
2033 2003-10-31 Andreas Jaeger <aj@suse.de>
2035 * floatformat.c (floatformat_always_valid): Add unused attribute.
2037 2003-10-30 Josef Zlomek <zlomekj@suse.cz>
2039 Jan Hubicka <jh@suse.cz>
2040 * vasprintf.c (int_vasprintf): Pass va_list by value.
2041 Use va_copy for copying va_list.
2042 (vasprintf): Pass va_list by value.
2044 2003-10-30 Josef Zlomek <zlomekj@suse.cz>
2046 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
2047 instead of increasing n_elements when inserting to deleted slot.
2049 2003-10-20 J. Brobecker <brobecker@gnat.com>
2051 * cplus-dem.c (demangle_template): Register a new Btype only
2053 * testsuite/demangle-expected: Add a new test.
2055 2003-10-16 H.J. Lu <hongjiu.lu@intel.com>
2057 * testsuite/demangle-expected: Update the expected output of
2060 2003-10-02 Daniel Jacobowitz <drow@mvista.com>
2062 * strerror.c: Revert last change. Declare static sys_nerr
2063 and sys_errlist using different names.
2065 2003-10-01 Daniel Jacobowitz <drow@mvista.com>
2067 * strerror.c: Don't provide or reference sys_errlist if
2068 strerror is available.
2070 2003-10-01 H.J. Lu <hongjiu.lu@intel.com>
2072 * configure.in: Check if $MAKEINFO is missing.
2073 * configure: Regenerated.
2075 2003-09-24 Daniel Jacobowitz <drow@mvista.com>
2077 * configure.in: Use AC_PROG_CPP_WERROR.
2078 * configure: Regenerated.
2080 2003-09-22 Andrew Cagney <cagney@redhat.com>
2082 * floatformat.c (floatformat_i387_ext_is_valid): New function.
2083 (floatformat_always_valid): New function.
2084 (floatformat_i387_ext): Initialize new "is_valid" field to
2085 "floatformat_i387_ext_is_valid".
2086 (floatformat_ieee_single_little): Initialize "is_valid" field to
2087 floatformat_always_valid.
2088 (floatformat_ieee_double_big): Ditto.
2089 (floatformat_ieee_double_little): Ditto.
2090 (floatformat_ieee_double_little): Ditto.
2091 (floatformat_ieee_double_littlebyte_bigword): Ditto.
2092 (floatformat_i960_ext): Ditto.
2093 (floatformat_m88110_ext): Ditto.
2094 (floatformat_m88110_harris_ext): Ditto.
2095 (floatformat_arm_ext_big): Ditto.
2096 (floatformat_arm_ext_littlebyte_bigword): Ditto.
2097 (floatformat_ia64_spill_big): Ditto.
2098 (floatformat_ia64_spill_little): Ditto.
2099 (floatformat_ia64_quad_big): Ditto.
2100 (floatformat_ia64_quad_little): Ditto.
2101 (floatformat_ia64_quad_little): Ditto.
2102 (floatformat_is_valid): Call "is_valid".
2104 2003-09-15 Andrew Cagney <cagney@redhat.com>
2106 * floatformat.c (get_field): Make "data" constant.
2107 (floatformat_is_valid, floatformat_to_double): Make "from"
2108 constant, fix casts.
2109 (floatformat_from_double): Make "from" constant.
2111 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
2113 * floatformat.c (floatformat_is_valid): New function.
2114 (get_field, put_field): Correct comments.
2116 2003-09-06 Josef Zlomek <zlomekj@suse.cz>
2118 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
2121 2003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2124 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
2125 * configure: Rebuilt.
2127 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
2129 * aclocal.m4: Include acx.m4 and no-executables.m4.
2130 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
2131 (LIB_AC_PROG_CC): Remove.
2132 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
2133 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
2134 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
2135 performing link tests.
2136 * configure: Regenerated.
2138 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
2140 * cp-demangle.c: Clarify what package(s) this is part of.
2142 2003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
2144 * pex-win32.c (pexecute): Mark parameters this_pname and
2145 temp_base as unused. Remove unused variables retries,
2146 sleep_interval. Initialize org_stdin, org_stdout.
2147 (pwait): Mark parameter flags as unused.
2149 2003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
2151 * pex-win32.c (fix_argv): Ensure that the executable pathname
2152 uses Win32 backslashes.
2153 (pexecute): Cast away constness when assigning *errmsg_arg.
2155 2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
2157 * testsuite/demangle-expected: Add more GNU V3 testcases.
2159 2003-06-22 Zack Weinberg <zack@codesourcery.com>
2161 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
2162 not HC_ASCII and HC_EBCDIC.
2163 Add documentation in form expected by gather-docs.
2164 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
2165 * Makefile.in, functions.texi: Regenerate.
2167 2003-06-21 Zack Weinberg <zack@codesourcery.com>
2169 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
2170 for charset determination.
2172 2003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
2174 * configure.in: Add check for malloc.h needed by
2175 m68k for function free().
2176 * configure: Regenerated.
2177 * config.in: Add HAVE_MALLOC_H.
2178 * hashtab.c: include malloc.h were available for
2181 2003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
2184 * physmem.c: Update comment.
2185 * configure.in: Modify test for _system_configuration for older
2188 * config.in, configure: Regenerated.
2190 2003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2193 * test-demangle.c (getline): Fix fence-post error.
2195 2003-06-03 Nick Clifton <nickc@redhat.com>
2197 * asprintf.c: Change comment to note that -1 is returned upon
2199 * vasprintf.c: Likewise.
2200 (vasprintf): Return -1 upon error.
2201 * functions.texi: Document changes to asprintf and vasprintf.
2203 2003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
2205 * config.table: Accept i[345867]86 variant.
2207 2003-05-15 Jim Blandy <jimb@redhat.com>
2209 * hex.c (_hex_value): Make this unsigned.
2210 (hex_value): Update documentation for new return type. hex_value
2211 now expands to an unsigned int expression, to avoid unexpected
2212 sign extension when we store it in a bfd_vma, which is larger than
2213 int on some platforms.
2214 * functions.texi: Regenerated.
2216 2003-05-07 Josef Zlomek <zlomekj@suse.cz>
2218 * splay-tree.c (splay_tree_predecessor): Fix comment.
2219 (splay_tree_successor): Fix comment.
2221 2003-05-07 Jason Merrill <jason@redhat.com>
2223 * hashtab.c (iterative_hash): New fn.
2224 * configure.in: Add AC_C_BIGENDIAN_CROSS.
2225 * aclocal.m4: Include accross.m4.
2226 * configure, config.in: Regenerate.
2228 2003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2230 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
2231 * configure: Regenerate.
2233 2003-05-03 Carlo Wood <carlo@alinoe.com>
2235 * cp-demangle.c: Fix typo in "char_traints" string-literal.
2237 2003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2239 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
2240 (main): Test that we don't write too much data.
2242 2003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2244 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
2246 * snprintf.c, vsnprintf.c: New files.
2247 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
2248 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
2249 Regenerate dependencies.
2251 * functions.texi, configure, config.in: Regenerated.
2253 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2255 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
2256 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
2258 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
2259 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
2260 Regenerate dependencies.
2262 * functions.texi, configure, config.in: Regenerated.
2264 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2266 * argv.c: Fix comments.
2267 * calloc.c: Don't unnecessarily include "libiberty.h".
2268 (bzero): Add prototype.
2269 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
2270 * getcwd.c (getcwd): Use standard definition to avoid conflicts
2271 with system headers.
2272 * hashtab.c (htab_traverse): Delete unused variables.
2273 * rename.c: Include "ansidecl.h".
2274 (rename): Use standard definition to avoid conflicts with system
2276 * strsignal.c: Rely on ANSI_PROTOTYPES.
2277 * strstr.c: Check GNUC >= 2, not GNUC == 2.
2278 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
2279 * vprintf.c: Include "ansidecl.h" earlier, rely on
2281 * vsprintf.c: Include "ansidecl.h" earlier, rely on
2282 ANSI_PROTOTYPES and possibly include <stdarg.h>.
2284 * Makefile.in: Regenerate dependencies.
2286 2003-04-15 DJ Delorie <dj@redhat.com>
2288 * maint-tool (deps): Scan for headers in $srcdir also.
2290 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2295 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
2297 * regex.c (regerror): Likewise.
2299 2003-04-14 Roger Sayle <roger@eyesopen.com>
2301 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
2302 * memchr.c: Likewise.
2303 * strcasecmp.c: Likewise.
2304 * strncasecmp.c: Likewise.
2305 * strncmp.c: Likewise.
2306 * xatexit.c: Likewise.
2307 * xmalloc.c: Likewise.
2309 * copysign.c: Use traditional function declaration instead of DEFUN.
2310 * sigsetmask.c: Likewise.
2312 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
2313 * memset.c: Likewise.
2315 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
2316 * memmove.c: Likewise.
2318 2003-04-14 Roger Sayle <roger@eyesopen.com>
2320 * strdup.c (strdup): Tweak implementation to use memcpy.
2322 2003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2324 * configure.in (HAVE_UINTPTR_T): Always define.
2325 * configure: Regenerated.
2327 2003-03-23 Alexandre Oliva <aoliva@redhat.com>
2329 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
2330 instead of $$CC alone.
2331 (install_to_tooldir): Use it.
2333 2003-17-03 Jan Hubicka <jh@suse.cz>
2335 * hashtab.c (htab_traverse_noresize): Break out from ...
2336 * hashtab.c (htab_traverse): ... here.
2338 2003-12-03 Jan Hubicka <jh@suse.cz>
2340 * hashtab.c (htab_expand): Fix warning.
2342 * hashtab.c (htab_expand): Compute the size of hashtable based
2343 on the number of elements actually used.
2344 (htab_traverse): Call htab_expand when table is too empty.
2346 2003-03-11 Carlo Wood <carlo@gnu.org>
2348 * cplus-dem.c (demangle_integral_value): Correction to reflect
2349 patch of 2002-01-10 in order to also make negative multi-digits
2350 without leading underscore work.
2352 2003-03-03 Mark Mitchell <mark@codesourcery.com>
2354 * cplus-dem.c: Add license exception to copyright notice.
2356 2003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2358 * physmem.c: Formatting changes from upstream.
2360 2003-02-24 Danny Smith <dannysmith@users.source.forge.net>
2362 * physmem.c (physmem_total): Add _WIN32 support.
2363 (physmem_available): Likewise.
2365 2003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2367 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
2369 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
2371 2003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2373 * configure.in: Check for sys/systemcfg.h and
2374 _system_configuration.
2375 * physmem.c: Add support for AIX. Tweek formatting as per
2376 upstream coreutils beta.
2378 2003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2379 Richard Earnshaw <rearnsha@arm.com>
2380 Geoffrey Keating <geoffk@apple.com>
2382 * configure.in: Check for sys/sysctl.h and sysctl.
2383 * physmem.c: Add support for *bsd and darwin.
2384 * Makefile.in: Generate depedency for physmem.o.
2386 2003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2388 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
2390 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
2393 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
2394 machine/hal_sysinfo.h, sys/table.h.
2395 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
2396 * configure, config.in: Regenerate.
2398 2003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2400 * configure.in: Check for sys/sysmp.h and sysmp.
2401 * physmem.c: Pull upstream copy, add support for irix6.
2403 * config.in, configure: Regenerated.
2405 2003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2407 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
2408 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
2411 2003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2413 * Makefile.in (CFILES): Add physmem.c.
2414 (REQUIRED_OFILES): Add physmem.o.
2415 * configure.in: Check for sys/pstat.h.
2416 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
2417 * physmem.c: New file, copied from textutils.
2419 * config.in, configure: Regenerated.
2421 2003-02-20 Daniel Jacobowitz <drow@mvista.com>
2423 * Makefile.in (CFILES): Add lrealpath.c.
2424 (REQUIRED_OFILES): Add lrealpath.o.
2425 (lrealpath.o): Add rule.
2426 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
2427 * configure.in: Add realpath and canonicalize_file_name to
2428 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
2429 for canonicalize_file_name.
2430 * lrealpath.c: New file.
2431 * make-relative-prefix.c: Update documentation.
2432 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
2433 * config.in: Regenerated.
2434 * configure: Regenerated.
2435 * functions.texi: Regenerated.
2437 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
2439 * cplus_dem.c: Fix typo: intializes -> initializes.
2441 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2443 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2445 * configure: Rebuilt.
2447 2003-02-13 Daniel Jacobowitz <drow@mvista.com>
2450 * cplus-dem.c (demangle_signature): Call string_delete.
2451 Remove extra string_init.
2452 (demangle_arm_hp_template): Call string_delete instead of
2453 string_clear. Add missing string_delete call.
2454 (demangle_qualified): Add missing string_delete call.
2455 (do_type): Remove unused variable btype. Add missing string_delete
2456 call. Call string_delete instead of string_clear.
2457 (demangle_fund_type): Move variable btype inside of the switch
2458 statement. Add missing string_delete call.
2459 (do_arg): Call string_delete instead of string_clear. Remove extra
2461 (demangle_nested_args): Free work->previous_argument.
2463 2003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2465 * acconfig.h: New file. Add uintptr_t.
2466 * config.in: Regenerated.
2468 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
2470 * libiberty.texi: Update to GFDL 1.2.
2472 2003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2474 * Makefile.in (libiberty_topdir): New subst.
2475 (mkinstalldirs): Redefine in terms of the above.
2476 * configure.in: AC_SUBST it.
2477 * configure: Regenerate.
2479 2003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2481 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
2482 (info-subdir, install-info-subdir, clean-info-subdir)
2483 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
2484 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
2485 Pass $(FLAGS_TO_PASS).
2487 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2489 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
2490 /`$$CC -print-multi-os-directory`.
2492 2003-01-26 Daniel Jacobowitz <drow@mvista.com>
2494 * hashtab.c (htab_create_alloc_ex): New function.
2495 (hatab_set_functions_ex): New function.
2496 (htab_delete, htab_expand): Support alternate allocation functions.
2498 2003-01-24 Christopher Faylor <cgf@redhat.com>
2500 * configure.in: Remove special pex-cygwin consideration.
2501 * configure: Regenerate.
2502 * pex-cygwin.c: Remove.
2503 * Makefile.in: Remove pex-cygwin.[co] lines.
2505 2003-01-24 Zack Weinberg <zack@codesourcery.com>
2507 * Makefile.in (CFILES): Add pex-*.c.
2508 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
2509 (CONFIGURED_OFILES): Add pex-*.o.
2510 (TEXIFILES): Add pexecute.txh.
2511 (pexecute.o): Delete rule.
2512 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
2513 pex-unix.o, pex-win32.o): New rules.
2514 * configure.in: Change AC_INIT argument to xmalloc.c.
2515 Compute appropriate pexecute implementation and substitute it
2518 * pexecute.c: Split up into...
2519 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
2520 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
2523 * functions.texi: Regenerate.
2524 * configure: Regenerate.
2526 2003-01-20 Josef Zlomek <zlomekj@suse.cz>
2528 * hashtab.c (htab_expand): Fix allocation of new entries.
2530 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2532 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2534 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
2535 mkinstalldirs command.
2537 2002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
2539 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
2540 Define for hosts with HOST_EXECUTABLE_SUFFIX.
2542 2002-11-24 Nick Clifton <nickc@redhat.com>
2544 * make-relative-prefix.c (make_relative_prefix): Ensure return
2545 string is empty before using strcat to construct it.
2547 2002-11-22 Daniel Jacobowitz <drow@mvista.com>
2549 * Makefile.in: Add make-relative-prefix.c.
2550 * make-relative-prefix.c: New file.
2551 * functions.texi: Rebuilt.
2553 2002-11-16 Jakub Jelinek <jakub@redhat.com>
2555 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
2556 used with arguments in traditional C' warnings.
2558 2002-10-16 Jakub Jelinek <jakub@redhat.com>
2560 * config.table: Use mh-s390pic for s390x too.
2562 2002-10-06 Andreas Jaeger <aj@suse.de>
2564 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
2565 variable and of strict-aliasing warning.
2566 (grow_vect): Use char as first parameter.
2568 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2570 * Makefile.in (all): Fix multilib parallel build.
2572 2002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
2574 * cp-demangle.c (demangling_new): Cast 0 to enum.
2575 (demangle_char): Cast return of strdup to char *.
2576 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
2577 (is_gnu_v3_mangled_dtor): Likewise.
2578 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
2579 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
2580 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
2581 * md5.c (md5_process_bytes): Cast results back to const void *.
2582 (md5_process_block): Add cast to const md5_uint32 *.
2583 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
2584 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
2586 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
2588 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
2590 2002-09-19 Nick Clifton <nickc@redhat.com>
2592 * README: Update email addresses for bugs and patches.
2594 2002-09-10 Mike Stump <mrs@apple.com>
2596 * splay-tree.c (splay_tree_successor): Fix comments.
2598 2002-09-11 Zack Weinberg <zack@codesourcery.com>
2600 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
2601 * testsuite/Makefile.in: Adjust for test-demangle.
2602 * testsuite/regress-demangle: Deleted.
2603 * testsuite/test-demangle.c: New file.
2604 * testsuite/demangle-expected: Change \$ to $ throughout, now that
2605 this file is not being read by a shell script.
2607 2002-09-05 Roger Sayle <roger@eyesopen.com>
2609 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
2611 2002-08-07 DJ Delorie <dj@redhat.com>
2613 * regex.c (re_error_msgid): Just use a simple array of strings.
2614 (re_compile_pattern): Compensate.
2615 (re_comp): Likewise.
2616 (re_comp): Likewise.
2617 (regerror): Likewise.
2619 2002-07-29 Neil Booth <neil@daikokuya.co.uk>
2621 * cplus-dem.c (PREPEND_BLANK): Remove.
2623 2002-07-10 Jason Merrill <jason@redhat.com>
2625 * cp-demangle.c (demangle_identifier): Support extended Unicode
2628 2002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2630 * cp-demangle.c (demangle_v3_with_details): Wrap in
2631 !defined IN_GLIBCPP_V3.
2633 2002-07-01 Mark Mitchell <mark@codesourcery.com>
2635 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
2636 Set it for the "st" operator.
2637 (demangle_expression): Handle expressions with types as arguments.
2639 2002-06-30 Douglas Rupp <rupp@gnat.com>
2641 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
2642 * Makefile.in (OUTPUT_OPTION): Use.
2644 2002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
2646 * Makefile.in (install_to_libdir): Add $(DESTDIR).
2647 (install_to_tooldir): Likewise.
2649 2002-06-17 Douglas Rupp <rupp@gnat.com>
2651 * lbasename.c: Add 2002 to copyright.
2652 (IS_DIR_SEPARATOR): Remove VMS junk.
2654 2002-06-05 Geoffrey Keating <geoffk@redhat.com>
2656 * hashtab.c (htab_create): New stub function for backward
2658 (htab_try_create): Likewise.
2660 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
2662 * hashtab.c (htab_create): Delete.
2663 (htab_try_create): Delete.
2664 (htab_create_alloc): New.
2665 (htab_delete): Support user-specified memory allocation.
2666 (htab_expand): Likewise.
2668 2002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
2670 * configure.in: Fix typo in the code checking for sys_errlist.
2671 * configure: Regenerated.
2673 2002-05-13 Andreas Schwab <schwab@suse.de>
2675 * config.table: Use mh-x86pic also for x86-64.
2677 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2679 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2680 script entry, and set LD to it when configuring multilibs.
2681 * configure: Rebuilt.
2683 2002-05-07 Mark Mitchell <mark@codesourcery.com>
2685 * configure.in (AC_TYPE_PID_T): Use it.
2686 * configure: Regenerated.
2687 * getruntime.c: Include <sys/types.h>.
2688 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
2690 2002-04-09 Richard Henderson <rth@redhat.com>
2692 * hashtab.c (higher_prime_number): Use 7 as minimum.
2693 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
2694 (htab_find_slot_with_hash): Likewise.
2696 2002-04-01 Phil Edwards <pme@gcc.gnu.org>
2698 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
2699 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
2700 not compile if IN_GLIBCPP_V3 defined.
2701 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
2703 2002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2705 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
2708 2002-03-27 DJ Delorie <dj@redhat.com>
2710 * hex.c: Add documentation.
2711 (_hex_value): Provide non-ASCII empty table.
2712 (hex_init): Initialize the non-ASCII table.
2713 * functions.texi: Regenerate.
2715 2002-03-27 Mark Mitchell <mark@codesourcery.com>
2717 * dyn-string.c: Add libgcc exception to copyright notice.
2719 2002-03-26 H.J. Lu (hjl@gnu.org)
2721 * config.table: Support --with-build-subdir.
2722 * configure.in: Likewise.
2723 * configure: Rebuild.
2725 2002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
2727 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
2730 2002-03-12 Mark Mitchell <mark@codesourcery.com>
2732 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
2735 2002-03-11 Douglas B Rupp <rupp@gnat.com>
2737 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
2739 2002-03-06 Jim Blandy <jimb@redhat.com>
2741 * splay-tree.c (splay_tree_xmalloc_allocate,
2742 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
2743 prototyped definitions. Mark `data' arguments as unused.
2745 2002-03-06 Andrew Cagney <ac131313@redhat.com>
2747 * floatformat.c (floatformat_arm_ext_big): Delete definition.
2749 2002-03-04 Phil Edwards <pme@gcc.gnu.org>
2751 * configure.in: Add --enable-install-libiberty option.
2752 * Makefile.in (INSTALLED_HEADERS): New variable.
2753 (install_to_libdir): Possibly also copy headers.
2754 * configure: Regenerated.
2756 2002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
2758 * xmalloc.c (xmalloc_fail): Clarify error message further.
2760 2002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
2762 * xmalloc.c (xmalloc_fail): Clarify error message.
2764 2002-02-22 Jim Blandy <jimb@redhat.com>
2766 * splay-tree.c (splay_tree_xmalloc_allocate,
2767 splay_tree_xmalloc_deallocate): New functions.
2768 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
2769 above functions and a dummy data pointer.
2770 (splay_tree_new_with_allocator): New function.
2771 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
2772 splay_tree_remove): Use the splay tree's allocation and
2773 deallocation functions.
2775 2002-02-19 Scott Snyder <snyder@fnal.gov>
2777 * testsuite/demangle-expected: Add test case for infinite loop in
2779 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
2780 if do_type() doesn't make any progress --- prevents an infinite
2783 2002-02-18 Carlo Wood <carlo@gnu.org>
2786 * cplus-dem.c (demangle_integral_value): Accept multi-digit
2787 numbers that do not start with an underscore; This is needed
2788 for integer template parameters. This doesn't break anything
2789 because multi-digit numbers are never followed by a digit.
2790 * testsuite/demangle-expected: Corrected all mangled test
2791 cases with multi-digit template parameters: g++ 2.95.x does
2792 not generate underscores around these parameters.
2794 2002-02-05 Jason Merrill <jason@redhat.com>
2796 * cplus-dem.c (flags): Add DMGL_VERBOSE
2797 (cplus_demangle_v3_p): Remove.
2798 (demangle_it): Add DMGL_TYPES to passed flags.
2799 * cp-demangle.c (cplus_demangle_v3_all): Remove.
2800 (cplus_demangle_v3_type): Remove.
2801 (cplus_demangle_v3): Add options parm.
2803 2002-02-02 H.J. Lu (hjl@gnu.org)
2805 * cp-demangle.c (cp_demangle_type): Do not protect with
2807 (cplus_demangle_v3_all): New.
2808 (cplus_demangle_v3): Call cplus_demangle_v3_all.
2809 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
2811 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
2812 Initialized to cplus_demangle_v3.
2813 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
2814 of cplus_demangle_v3.
2815 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
2816 command line symbol.
2818 * testsuite/regress-demangle: Pass the mangled name at the
2821 2002-02-01 H.J. Lu <hjl@gnu.org>
2823 * cp-demangle.c (cp_demangle_type): Call demangling_new with
2826 2002-01-31 Phil Edwards <pme@gcc.gnu.org>
2828 * cp-demangle.c: Revert yesterday's change.
2830 2002-01-31 Adam Megacz <adam@xwt.org>
2832 * gcc/libiberty/configure.in: Treat mingw the same as cywin
2833 wrt HAVE_SYS_ERRLIST.
2835 2002-01-30 Phil Edwards <pme@gcc.gnu.org>
2837 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
2838 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
2840 * testsuite/demangle-expected: New gnu-v3 test.
2842 2002-01-22 Momchil Velikov <velco@fadata.bg>
2844 * configure.in (variable detection): Use arrays of unspecified
2845 size instead of plain integers.
2847 2002-01-18 DJ Delorie <dj@redhat.com>
2849 * Makefile.in (TESTLIB): New. This library is for future
2851 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
2852 break down by letter.
2853 (REQUIRED_OFILES): List long-to-compile files first.
2854 (maint-deps): New, target for updating dependencies.
2855 (dependencies): Update.
2856 * maint-tool: Add dependency-generating option.
2857 * configure.in: Check for _doprnt even if we're not providing it.
2858 * configure: Regenerate.
2860 * _doprnt.c: Modifications to allow compiling on any platform.
2861 * copysign.c: Likewise.
2862 * putenv.c: Likewise.
2863 * setenv.c: Likewise.
2864 * vsprintf.c: Likewise.
2866 2002-01-15 Douglas B Rupp <rupp@gnat.com>
2868 * mkstemps.c (mkstemps): On VMS, open temp file with option
2869 that causes it to be deleted when closed.
2871 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2873 * cp-demangle.c (long_options): Const-ify.
2874 * cplus-dem.c (long_options): Likewise.
2876 * cplus-dem.c (mystrstr): Delete. All callers changed to use
2879 2001-12-31 Ira Ruben <ira@apple.com>
2881 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
2882 * configure: Regenerated.
2884 2001-12-24 Douglas B. Rupp <rupp@gnat.com>
2886 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
2887 * configure: Regenerated.
2889 2001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
2892 * cplus-dem.c (consume_count): Treat negative count as an error.
2893 * testsuite/demangle-expected: Added testcase.
2895 Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
2897 * configure.in: Hardcode that vfork works on VMS host.
2898 * configure: Regenerated.
2900 2001-12-06 Richard Henderson <rth@redhat.com>
2902 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
2903 (cplus_demangle): Support no_demangling.
2905 2001-11-27 Zack Weinberg <zack@codesourcery.com>
2907 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
2908 in libiberty context. Fix typo in leading comment.
2909 * configure.in: Fix various AC_DEFINEs so autoheader works.
2910 If any of vprintf, vsprintf, vfprintf is missing from libc,
2911 then AC_REPLACE_FUNCS(_doprnt).
2913 2001-11-26 DJ Delorie <dj@redhat.com>
2914 Daniel Jacobowitz <drow@mvista.com>
2916 * Makefile.in (stamp-h): Depend on Makefile for proper
2918 (*-subdir): Depend on config.h for proper serialization.
2920 2001-11-26 DJ Delorie <dj@redhat.com>
2922 * configure.in: Check for alloca.h (for regex.c and putenv.c).
2923 * configure: Regenerate.
2924 * config.h: Add HAVE_ALLOCA_H.
2926 2001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2928 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
2929 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
2932 Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
2934 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
2935 * configure.in (HAVE_UINTPTR_T): Test for system defining
2936 uintptr_t and define HAVE_UINTPTR_T appropriately.
2937 * regex.c (uintptr_t): Do not provide a definition if the
2938 system provided one.
2940 * regex.c (PREFIX): Provide an alternate definition for
2941 non-ANSI/ISO compilers.
2942 (ARG_PREFIX): Likewise.
2944 2001-11-12 Jim Meyering <meyering@lucent.com>
2946 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
2947 this code would end up calling gettext even in packages built
2949 * getopt.c (_): Likewise.
2950 * regex.c (_): Likewise.
2952 2001-11-03 Alan Modra <amodra@bigpond.net.au>
2954 * configure.in: Cope with missing makeinfo.
2955 * configure: Regenerate.
2957 2001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2959 * hex.c (hex_init): Provide empty stub.
2961 * hex.c (hex_init): Delete.
2962 (_hex_value): Const-ify and initialize at compile-time.
2964 2001-10-19 H.J. Lu <hjl@gnu.org>
2966 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
2969 2001-10-17 DJ Delorie <dj@redhat.com>
2971 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
2972 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
2973 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
2974 Improve manual formatting.
2975 * functions.texi: Regenerate.
2977 2001-10-15 DJ Delorie <dj@redhat.com>
2979 * Makefile.in (TEXIFILES): Add fnmatch.txh.
2981 maint-tool: Add "undoc" tool.
2982 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
2983 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
2984 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
2985 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
2988 * functions.texi: Regenerate.
2990 2001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
2992 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
2993 * strtod.c: Use "ISO C" instead of "ANSI C".
2994 * functions.texi: Regenerate.
2996 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
2998 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
2999 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
3000 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
3001 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
3002 spelling. Give names to function arguments in documentation. Use
3003 (void) prototypes in documentation.
3004 * functions.texi: Regenerate.
3006 2001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3008 * argv.c (buildargv, tests, main): Const-ify.
3009 * cp-demangle.c (operator_code): Likewise.
3010 * cplus-dem.c (optable, libiberty_demanglers,
3011 cplus_demangle_set_style, cplus_demangle_name_to_style,
3012 print_demangler_list): Likewise.
3013 * hashtab.c (higher_prime_number): Likewise.
3014 * strcasecmp.c (charmap): Likewise.
3015 * strerror.c (error_info, strerror, main): Likewise.
3016 * strncasecmp.c (charmap): Likewise.
3017 * strsignal.c (signal_info): Likewise.
3019 2001-09-29 DJ Delorie <dj@redhat.com>
3021 * configure: Regenerate.
3023 2001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3025 * concat.c: Include stdlib.h.
3027 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
3029 * libiberty.texi: (Top level): Add syncodeindex pg. Add
3030 @dircategory and @direntry directives. Add @finalout.
3031 (many nodes): Lose the next,prev,up pointers on the @nide line.
3032 (Using, Supplemental Functions, Replacement Functions): Fix
3034 (Functions): Move around, to allow makeinfo to build the manual
3035 without next,prev,up pointers in thye node lines.
3036 (Licenses): Fix typos.
3038 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
3039 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
3040 * functions.texi: Regenerate.
3042 * copying-lib.texi: Lose the next,prev,up pointers on the @node
3045 2001-09-27 DJ Delorie <dj@redhat.com>
3047 * configure.in: Don't use in-tree texinfo, because libiberty must
3048 be built before it. Check for makeinfo version 4 or higher.
3049 * functions.texi: Regenerate.
3051 2001-09-20 DJ Delorie <dj@redhat.com>
3052 Phil Edwards <pedwards@disaster.jaj.com>
3054 * configure.in (MAKEINFO, PERL): Detect these.
3055 (--enable-maintainer-mode): Add.
3056 * configure: Regenerate.
3057 * Makefile.in (MAKEINFO, PERL): Define.
3058 (libiberty.info, libiberty.dvi, libiberty.html): New.
3059 (CFILES): Add bsearch.c.
3060 (CONFIGURED_OFILES): New, list of objects configure might add.
3061 (maint-missing, maint-buildall): New, for maintainers only.
3062 (clean, mostlyclean): Add info/dvi/html files.
3063 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
3064 * gather-docs: New, for maintainers.
3065 * maint-tool: New, for maintainers.
3066 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
3067 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
3068 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
3069 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
3070 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
3071 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
3072 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
3073 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
3076 2001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3078 * concat.c (reconcat): Fix for traditional C.
3080 2001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3082 * concat.c (reconcat): New function.
3084 2001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3086 * concat.c (vconcat_length, vconcat_copy, concat_length,
3087 concat_copy, concat_copy2): New functions.
3088 (concat): Use vconcat_length/vconcat_copy.
3090 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
3093 2001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3095 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
3096 VA_FIXEDARG & VA_CLOSE.
3098 * vasprintf.c: Check HAVE_STRING_H when including string.h.
3099 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
3100 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
3102 2001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3104 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
3106 2001-08-23 Ulrich Drepper <drepper@redhat.com>
3108 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
3110 2001-08-23 Ulrich Drepper <drepper@redhat.com>
3112 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
3114 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
3115 wcslen, and __wcscoll instead of wcscoll.
3117 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
3119 * fibheap.c (fibheap_init, fibnode_init): Remove.
3120 (fibheap_new, fibnode_new): Use xcalloc to allocate and
3122 (fibheap_insert): Remove check for node allocation failure.
3124 2001-08-21 Richard Henderson <rth@redhat.com>
3126 * Makefile.in (fibheap.o): Depend on config.h.
3127 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
3128 functions for inlining.
3130 Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
3132 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
3134 * configure: Regenerate.
3136 2001-08-20 Andrew Cagney <ac131313@redhat.com>
3138 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
3139 HARRIS_FLOAT_FORMAT.
3140 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
3141 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
3142 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
3143 (floatformat_m88110_harris_ext): New float formats.
3145 2001-08-20 Daniel Berlin <dan@cgsoftware.com>
3147 * fibheap.c: New file. Fibonacci heap.
3149 * Makefile.in (CFILES): Add fibheap.c.
3150 (REQUIRED_OFILES): Add fibheap.o.
3151 (fibheap.o): Add dependencies for fibheap.o.
3153 2001-08-17 Christopher Faylor <cgf@cygnus.com>
3155 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
3156 * configure: Regenerate.
3158 2001-08-16 Richard Henderson <rth@redhat.com>
3160 * hashtab.c (htab_hash_string): New.
3162 2001-08-13 Andrew Cagney <ac131313@redhat.com>
3164 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
3167 2001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
3169 * regex.c (wcs_regex_compile): Use appropriate string
3170 to compare with collating element.
3171 Fix the padding for the alignment.
3173 2001-08-10 Andrew Cagney <ac131313@redhat.com>
3175 * lbasename.c (lbasename): Change function definition to return a
3178 2001-08-07 Jason Merrill <jason_merrill@redhat.com>
3180 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
3183 2001-08-03 Richard Henderson <rth@redhat.com>
3185 * Makefile.in (concat.o): Depend on config.h.
3187 2001-07-30 Andreas Jaeger <aj@suse.de>
3189 * concat.c: Include "config.h".
3191 2001-07-30 Andreas Jaeger <aj@suse.de>
3193 * regex.c: Declare wcs functions only if compiling with
3195 Don't use #elif for traditional C.
3197 2001-07-23 Ulrich Drepper <drepper@redhat.com>
3199 * regex.c: Revamp memory allocation for WCHAR functions to
3200 not use too much stack.
3202 2001-07-30 Andreas Jaeger <aj@suse.de>
3204 * regex.c: Declare wcs functions only if compiling with
3206 Don't use #elif for traditional C.
3208 2001-07-25 Daniel Jacobowitz <drow@mvista.com>
3210 * Makefile.in (regex.o): Add dependency on config.h.
3212 2001-07-18 Andreas Schwab <schwab@suse.de>
3214 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
3215 underscore character.
3217 2001-07-18 Ulrich Drepper <drepper@redhat.com>
3219 * regex.c: Limit string length printed in debug messages to 100
3222 2001-07-18 Andreas Jaeger <aj@suse.de>
3224 * regex.c: Place under LGPL version 2.1.
3226 2001-07-10 Jeff Johnston <jjohnstn@redhat.com>
3228 * Makefile.in: Add support for regex code.
3229 * regex.c: New file.
3231 2001-07-05 Mark Klein <mklein@dis.com>
3233 * Makefile.in: Add ffs.c dependency.
3234 * configure.in: Add ffs.c.
3237 2001-06-18 Richard Henderson <rth@redhat.com>
3239 * concat.c: Include <sys/types.h>.
3241 2001-06-11 Loren J. Rittle <ljrittle@acm.org>
3244 * strerror.c (sys_nerr): Hide the OS header version.
3245 * strsignal.c (sys_nsig): Likewise.
3247 2001-06-10 Richard Henderson <rth@redhat.com>
3249 * concat.c: Include string.h. Fix int vs size_t usage.
3250 Simplify the iteration loops. Use memcpy.
3252 2001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
3254 * partition.c: Fix misspelling of `implementation'.
3256 2001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3258 * md5.c (md5_init_ctx): Declare constants as unsigned.
3259 (md5_process_block): Likewise.
3261 2001-05-07 Zack Weinberg <zackw@stanford.edu>
3263 * cp-demangle.c (demangle_v3_with_details,
3264 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
3265 function definition.
3266 * ternary.c: Use K+R style function definitions. Use PTR, not
3267 void *. Make arguments constant where possible.
3269 2001-05-07 Mark Mitchell <mark@codesourcery.com>
3271 * splay-tree.h (splay_tree_max): New function.
3272 (splay_tree_min): Likewise.
3274 2001-04-15 Daniel Berlin <dan@cgsoftware.com>
3276 * ternary.c: New file - Ternary search tree implementation.
3278 * Makefile.in: Add ternary.o, and ternary.c dependencies.
3280 2001-04-03 Zack Weinberg <zackw@stanford.edu>
3282 * make-temp-file.c (try): Inline.
3284 2001-02-28 Richard Henderson <rth@redhat.com>
3286 * Makefile.in (make-temp-file.o): Depend on config.h.
3288 2001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3290 * memchr.c (memchr): Adjust condition to avoid infinite loop.
3292 2001-03-23 Jakub Jelinek <jakub@redhat.com>
3294 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
3295 `_' not followed by a digit is invalid.
3297 2001-03-22 Jim Blandy <jimb@redhat.com>
3299 * cp-demangle.c (string_list_delete): Use dyn_string_delete
3300 instead of free, to free the contents as well as the string
3303 2001-03-21 Zack Weinberg <zackw@stanford.edu>
3305 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
3306 Don't default P_tmpdir to anything. Try /var/tmp before
3309 2001-03-20 Zack Weinberg <zackw@stanford.edu>
3311 * choose-temp.c: Split off make_temp_file, and the code
3312 duplicated between it and choose_temp_base, into...
3313 * make-temp-file.c: ... here; new file.
3315 * Makefile.in (CFILES): Add make-temp-file.c.
3316 (REQUIRED_OFILES): Add make-temp-file.o.
3318 2001-03-20 Jim Blandy <jimb@redhat.com>
3320 * cp-demangle.c (struct demangling_def): New fields:
3321 is_constructor and is_destructor.
3322 (demangling_new): Initialize them.
3323 (demangle_ctor_dtor_name): Set them, if we detect a constructor
3325 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
3326 is_gnu_v3_mangled_dtor): New functions.
3328 2001-03-20 Jason Merrill <jason@redhat.com>
3330 * cplus-dem.c (main): Skip initial $.
3332 2001-03-15 Michael Meissner <meissner@redhat.com>
3334 * hashtab.c (higher_prime_number): Silence warning that 4294967291
3335 might be a signed integer under pre-ISO C systems.
3337 2001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
3338 John David Anglin <dave@hiauly1.hia.nrc.ca>
3340 * libiberty/lbasename.c: New file.
3341 * libiberty/Makefile.in: Update for lbasename.
3343 2001-03-06 Zack Weinberg <zackw@stanford.edu>
3345 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
3346 * configure.in: Replace all alloca logic with a simple use of
3347 the above new macro.
3348 * config.table: Kill *-*-beos* entry.
3349 * config/mh-beos: Delete.
3350 * configure, config.in: Regenerate.
3352 * Makefile.in (ALLOCA, HFILES): Kill.
3353 (REQUIRED_OFILES): Add alloca.o.
3354 (alloca.o): Depend on libiberty.h.
3355 (argv.o): Don't depend on alloca-conf.h.
3356 * alloca-conf.h: Delete.
3357 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
3358 blocks. Provide the C alloca unconditionally. Use PTR where
3359 appropriate. Make i00afunc static.
3360 * argv.c: Don't include alloca-conf.h.
3362 2001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
3364 * cplus-dem.c (main): Cast enum style to int.
3366 2001-02-16 Loren J. Rittle <ljrittle@acm.org>
3368 * cplus-dem.c (main): Initialize style.
3370 2001-02-02 Phil Edwards <pme@sources.redhat.com>
3372 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
3374 2001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
3376 Add support for Java demangling under the v3 ABI:
3377 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
3378 (struct demangling_def): Add `style' field.
3379 (demangling_new): New parameter `style'. Set it in demangling_t.
3380 (demangle_prefix): Use NAMESPACE_SEPARATOR.
3381 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
3382 (cp_demangle): New parameter `style'. Pass it to demangling_new().
3383 (main): Call cp_demangle with extra parameter.
3384 (java_demangle_v3): New function.
3385 (java_builtin_type_names): New. Table of primitive type names used
3386 for Java demangling.
3387 (demangle_builtin_type): Look up in java_builtin_type_names if doing
3389 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3391 (long_options): Remove obsolete `java' option.
3392 (main): Remove explicit handling of `java' option. Instead, pass style
3393 parameter in cplus_demangle flags as gdb does.
3394 * testsuite/demangle.expected: Add some Java test cases.
3396 2000-12-29 DJ Delorie <dj@redhat.com>
3398 * fnmatch.c: Make the note about the origins of this file more
3399 accurate, at least until we can sync with glibc.
3405 2000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3407 * bsearch.c: New file.
3408 * configure.in (funcs): Add bsearch.
3409 (AC_CHECK_FUNCS): Likewise.
3410 * configure, config.in: Regenerate.
3412 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3414 * safe-ctype.c: #include "ansidecl.h".
3415 * strtod.c: Likewise.
3417 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3419 * strtoul.c: Include safe-ctype.h, not ctype.h.
3421 2000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
3423 * safe-ctype.c: New file.
3424 * Makefile.in (CFILES): Add safe-ctype.c.
3425 (REQUIRED_OFILES): Add safe-ctype.o.
3427 * argv.c: Define ISBLANK and use it, not isspace.
3428 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
3429 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
3430 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
3431 before calling TOLOWER(c)/TOUPPER(c).
3433 2000-12-07 Mike Stump <mrs@wrs.com>
3435 * Makefile.in (distclean): When cleaning, remove testsuite.
3437 2000-12-05 Jason Merrill <jason@redhat.com>
3439 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
3440 name before allocating the dyn_string.
3442 2000-12-04 Jason Merrill <jason@redhat.com>
3444 * cp-demangle.c: s/new_abi/v3/.
3445 * cplus-dem.c: Likewise.
3446 (current_demangling_style): Now auto_demangling.
3447 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
3448 (main): Use standard symbol chars for auto_demangling.