Avoid "text file busy" in dw2-using-debug-str.exp
[binutils-gdb.git] / libiberty / ChangeLog
blob83e9120c444d8206c9658762d1fcf2da27a37ecc
1 2024-11-19  Evgeny Karpov  <evgeny.karpov@microsoft.com>
3         * simple-object-coff.c: Add aarch64.
5 2024-11-16  Andrew Pinski  <quic_apinski@quicinc.com>
7         * testsuite/test-demangle.c (get_line): Change K&R style
8         definition into ANSI C90 definitions.
9         (fail): Likewise.
10         (main): Likewise.
12 2024-10-31  Mark Wielaard  <mark@klomp.org>
14         * cplus-dem.c: Change preceeded to preceded.
16 2024-10-10  Simon Martin  <simon@nasilyan.com>
18         * cp-demangle.c (d_dump): Fix compilation when CP_DEMANGLE_DEBUG
19         is defined.
21 2024-09-07  Jakub Jelinek  <jakub@redhat.com>
23         PR lto/116614
24         * simple-object-elf.c (SHN_COMMON): Align comment with neighbouring
25         comments.
26         (SHN_HIRESERVE): Use uppercase hex digits instead of lowercase for
27         consistency.
28         (simple_object_elf_find_sections): Formatting fixes.
29         (simple_object_elf_fetch_attributes): Likewise.
30         (simple_object_elf_attributes_merge): Likewise.
31         (simple_object_elf_start_write): Likewise.
32         (simple_object_elf_write_ehdr): Likewise.
33         (simple_object_elf_write_shdr): Likewise.
34         (simple_object_elf_write_to_file): Likewise.
35         (simple_object_elf_copy_lto_debug_section): Likewise.  Don't fail for
36         new_i - 1 >= SHN_LORESERVE, instead arrange in that case to copy
37         over .symtab_shndx sections, though emit those last and compute their
38         section content when processing associated .symtab sections.  Handle
39         simple_object_internal_read failure even in the .symtab_shndx reading
40         case.
42 2024-08-05  Andrew Burgess  <aburgess@redhat.com>
44         * argv.c (only_whitespace): Delete.
46 2024-07-16  Andrew Burgess  <aburgess@redhat.com>
48         * argv.c (buildargv): Treat input of only whitespace as an empty
49         argument list.
50         (expandargv): Remove work around for intput that is only
51         whitespace.
52         * testsuite/test-expandargv.c: Add new tests 10, 11, and 12.
53         Extend testing to call buildargv in more cases.
55 2024-07-16  Andrew Burgess  <aburgess@redhat.com>
57         * argv.c (buildargv): Backslashes within single quotes are
58         literal, backslashes only escape POSIX defined special characters
59         within double quotes, and backslashed newlines should act as line
60         continuations.
61         * testsuite/test-expandargv.c: Add new tests 7, 8, and 9.
63 2024-04-02  Tom Tromey  <tom@tromey.com>
65         * cplus-dem.c (cplus_demangle): Try the D demangler with
66         "auto" format.
67         * testsuite/d-demangle-expected: Add --format=auto test.
69 2024-04-02  Jakub Jelinek  <jakub@redhat.com>
71         * regex.c (byte_re_match_2_internal): Fix duplicated words in comment;
72         next next -> next.
73         * dyn-string.c (dyn_string_init): Fix duplicated words in comment;
74         of of -> of.
76 2024-02-19  Iain Sandoe  <iain@sandoe.co.uk>
78         PR other/113957
79         * pex-unix.c (pex_unix_exec_child): Set pid = -1 in the error
80         paths, since that is used to signal an erroneous outcome for
81         the routine.
83 2024-02-15  Richard Biener  <rguenther@suse.de>
85         * hashtab.c (iterative_hash): Remove TBAA violating handling
86         of aligned little-endian case in favor of just keeping the
87         aligned case special-cased.  Use | for composing a larger word.
89 2024-02-12  Jakub Jelinek  <jakub@redhat.com>
91         * vprintf-support.c (libiberty_vprintf_buffer_size): Handle
92         properly l, ll, z, t or on _WIN32 I64 modifiers for diouxX
93         and L modifier for fFgGeE.
95 2024-01-13  Jakub Jelinek  <jakub@redhat.com>
97         * cp-demangle.c (FNQUAL_COMPONENT_CASE): Add case for
98         DEMANGLE_COMPONENT_XOBJ_MEMBER_FUNCTION.
99         (d_dump): Handle DEMANGLE_COMPONENT_XOBJ_MEMBER_FUNCTION.
100         (d_nested_name): Parse H after N in nested name.
101         (d_count_templates_scopes): Handle
102         DEMANGLE_COMPONENT_XOBJ_MEMBER_FUNCTION.
103         (d_print_mod): Likewise.
104         (d_print_function_type): Likewise.
105         * testsuite/demangle-expected: Add tests for explicit object
106         member functions.
108 2023-12-05  Jakub Jelinek  <jakub@redhat.com>
110         * configure.ac (HAVE_X86_SHA1_HW_SUPPORT): Verify __get_cpuid and
111         __get_cpuid_count are not implicitly declared.
112         * configure: Regenerated.
114 2023-12-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
116         * pex-unix.c (pex_unix_wait): Change return type to pid_t.
118 2023-12-01  Jason Merrill  <jason@redhat.com>
120         * cp-demangle.c (d_make_comp): Handle
121         DEMANGLE_COMPONENT_CONSTRAINTS.
122         (d_count_templates_scopes): Likewise.
123         (d_print_comp_inner): Likewise.
124         (d_maybe_constraints): New.
125         (d_encoding, d_template_args_1): Call it.
126         (d_parmlist): Handle 'Q'.
127         * testsuite/demangle-expected: Add some constraint tests.
129 2023-11-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
131         * configure.ac (GCC_CHECK_ASSEMBLER_HWCAP): Invoke.
132         * configure, aclocal.m4: Regenerate.
133         * Makefile.in (COMPILE.c): Add HWCAP_CFLAGS.
135 2023-11-28  Jakub Jelinek  <jakub@redhat.com>
137         * configure.ac (HAVE_X86_SHA1_HW_SUPPORT): New check.
138         * sha1.c: If HAVE_X86_SHA1_HW_SUPPORT is defined, include x86intrin.h
139         and cpuid.h.
140         (sha1_hw_process_bytes, sha1_hw_process_block,
141         sha1_choose_process_bytes): New functions.
142         * config.in: Regenerated.
143         * configure: Regenerated.
145 2023-11-15  Mark Wielaard  <mjw@redhat.com>
147         * aclocal.m4: Rebuild.
149 2023-11-10  Brendan Shanks  <bshanks@codeweavers.com>
151         * configure.ac (AC_CHECK_HEADERS): Add spawn.h.
152         (checkfuncs): Add posix_spawn, posix_spawnp.
153         (AC_CHECK_FUNCS): Add posix_spawn, posix_spawnp.
154         * aclocal.m4, configure, config.in: Rebuild.
155         * pex-unix.c [HAVE_POSIX_SPAWN] (pex_unix_exec_child): New function.
157 2023-08-22  Jason Merrill  <jason@redhat.com>
159         PR c++/109751
160         * cp-demangle.c (d_make_comp): Handle DEMANGLE_COMPONENT_FRIEND.
161         (d_count_templates_scopes): Likewise.
162         (d_print_comp_inner): Likewise.
163         (d_unqualified_name): Handle member-like friend mangling.
164         * testsuite/demangle-expected: Add test.
166 2023-08-07  John Ericson  <git@JohnEricson.me>
168         * configure: Regenerate.
170 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
172         * configure: Regenerate.
174 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
176         * Makefile.in (AR): Add @AR_PLUGIN_OPTION@
177         (RANLIB): Add @RANLIB_PLUGIN_OPTION@.
178         (configure_deps): Depend on ../config/gcc-plugin.m4.
179         * configure.ac: AC_SUBST AR_PLUGIN_OPTION and
180         RANLIB_PLUGIN_OPTION.
181         * aclocal.m4: Regenerated.
182         * configure: Likewise.
184 2023-06-15  Marek Polacek  <polacek@redhat.com>
186         * configure.ac: Also set shared when enable_host_pie.
187         * configure: Regenerate.
189 2023-06-13  Nathan Sidwell  <nathan@acm.org>
191         * cp-demangle.c (d_print_conversion): Remove incorrect
192         template instantiation handling.
193         * testsuite/demangle-expected: Add testcases.
195 2023-06-07  Costas Argyris  <costas.argyris@gmail.com>
197         * argv.c (writeargv): Constant propagate "0" for "status",
198         simplifying the code slightly.
200 2023-06-06  Costas Argyris  <costas.argyris@gmail.com>
202         * argv.c (writeargv): Simplify & remove gotos.
204 2023-06-05  Costas Argyris  <costas.argyris@gmail.com>
206         * pex-win32.c: fix typos.
208 2023-06-05  Costas Argyris  <costas.argyris@gmail.com>
210         * pex-win32.c (win32_spawn): Check command line length
211         and generate a response file if necessary.
212         (spawn_script): Adjust parameters.
213         (pex_win32_exec_child): Ditto.
215 2023-06-03  Patrick Palka  <ppalka@redhat.com>
217         PR c++/70790
218         * cp-demangle.c (cplus_demangle_operators): Add the noexcept
219         operator.
220         (d_print_comp_inner) <case DEMANGLE_COMPONENT_UNARY>: Always
221         print parens around the operand of noexcept too.
222         * testsuite/demangle-expected: Test noexcept operator
223         demangling.
225 2023-04-02  Jakub Jelinek  <jakub@redhat.com>
227         PR other/109306
228         * strstr.c: Revert the 2020-11-13 changes.
229         (strstr): Return s1 if len is 0.
231 2023-03-30  Gerald Pfeifer  <gerald@pfeifer.com>
233         * obstacks.texi (Preparing for Obstacks): Remove a (broken)
234         reference to the Glibc manual.
236 2023-03-03  Costas Argyris  <costas.argyris@gmail.com>
238         * pex-win32.c (win32_spawn): Fix memory leak of cmdline
239         buffer and refactor to have cleanup code appear once
240         for all exit cases.
242 2023-02-11  niXman  <i.nixman@autistici.org>
244         * lrealpath.c (lrealpath): try to resolve symlink and
245         use UNC paths where applicable.
247 2023-01-07  LIU Hao  <lh_mouse@126.com>
249         PR middle-end/108300
250         * make-temp-file.c: Define `WIN32_LEAN_AND_MEAN` before <windows.h>.
251         * pex-win32.c: Likewise.
253 2022-11-23  Marek Polacek  <polacek@redhat.com>
255         Revert:
256         2022-11-23  Marek Polacek  <polacek@redhat.com>
258         * configure.ac: Also set shared when enable_host_pie.
259         * configure: Regenerate.
261 2022-11-23  Marek Polacek  <polacek@redhat.com>
263         * configure.ac: Also set shared when enable_host_pie.
264         * configure: Regenerate.
266 2022-11-15  Nathan Sidwell  <nathan@acm.org>
268         * cp-demangle.c (struct d_print_info): Rename is_lambda_arg to
269         lambda_tpl_parms.  Augment semantics.
270         (d_make_comp): Add checks for new components.
271         (d_template_parm, d_template_head): New.
272         (d_lambda): Add templated lambda support.
273         (d_print_init): Adjust.
274         (d_print_lambda_parm_name): New.
275         (d_print_comp_inner): Support templated lambdas,
276         * testsuite/demangle-expected: Add testcases.
278 2022-11-14  Martin Liska  <mliska@suse.cz>
280         Revert:
281         2022-11-14  Martin Liska  <mliska@suse.cz>
283         * doc/bsd.rst: New file.
284         * doc/conf.py: New file.
285         * doc/copyright.rst: New file.
286         * doc/extensions.rst: New file.
287         * doc/function-variable-and-macro-listing.rst: New file.
288         * doc/index.rst: New file.
289         * doc/indices-and-tables.rst: New file.
290         * doc/introduction.rst: New file.
291         * doc/lesser-general-public-license-2.1.rst: New file.
292         * doc/overview.rst: New file.
293         * doc/replacement-functions.rst: New file.
294         * doc/supplemental-functions.rst: New file.
295         * doc/using.rst: New file.
297 2022-11-14  Martin Liska  <mliska@suse.cz>
299         Revert:
300         2022-11-14  Martin Liska  <mliska@suse.cz>
302         * Makefile.in: Support Sphinx based documentation.
304 2022-11-14  Martin Liska  <mliska@suse.cz>
306         Revert:
307         2022-11-14  Martin Liska  <mliska@suse.cz>
309         * at-file.texi: Removed.
310         * copying-lib.texi: Removed.
311         * functions.texi: Removed.
312         * libiberty.texi: Removed.
313         * obstacks.texi: Removed.
315 2022-11-14  Martin Liska  <mliska@suse.cz>
317         Revert:
318         2022-11-14  Martin Liska  <mliska@suse.cz>
320         * Makefile.in: Support --with-sphinx-build.
321         * configure.ac: Likewise.
322         * configure: Regenerate.
324 2022-11-14  Martin Liska  <mliska@suse.cz>
326         Revert:
327         2022-11-14  Martin Liska  <mliska@suse.cz>
329         * doc/bsd.rst:
330         Add trailing newline.
331         * doc/copyright.rst:
332         Add trailing newline.
333         * doc/extensions.rst:
334         Add trailing newline.
335         * doc/function-variable-and-macro-listing.rst:
336         Add trailing newline.
337         * doc/index.rst:
338         Add trailing newline.
339         * doc/indices-and-tables.rst:
340         Add trailing newline.
341         * doc/introduction.rst:
342         Add trailing newline.
343         * doc/lesser-general-public-license-2.1.rst:
344         Add trailing newline.
345         * doc/overview.rst:
346         Add trailing newline.
347         * doc/replacement-functions.rst:
348         Add trailing newline.
349         * doc/supplemental-functions.rst:
350         Add trailing newline.
351         * doc/using.rst:
352         Add trailing newline.
354 2022-11-14  Martin Liska  <mliska@suse.cz>
356         Revert:
357         2022-11-14  Martin Liska  <mliska@suse.cz>
359         * doc/conf.py: Add newline at last line.
361 2022-11-14  Martin Liska  <mliska@suse.cz>
363         Revert:
364         2022-11-14  Martin Liska  <mliska@suse.cz>
366         PR other/107620
367         * configure: Regenerate.
368         * configure.ac: Always set sphinx-build.
370 2022-11-13  Martin Liska  <mliska@suse.cz>
372         PR other/107620
373         * configure: Regenerate.
374         * configure.ac: Always set sphinx-build.
376 2022-11-10  Martin Liska  <mliska@suse.cz>
378         * doc/conf.py: Add newline at last line.
380 2022-11-09  Martin Liska  <mliska@suse.cz>
382         * doc/bsd.rst:
383         Add trailing newline.
384         * doc/copyright.rst:
385         Add trailing newline.
386         * doc/extensions.rst:
387         Add trailing newline.
388         * doc/function-variable-and-macro-listing.rst:
389         Add trailing newline.
390         * doc/index.rst:
391         Add trailing newline.
392         * doc/indices-and-tables.rst:
393         Add trailing newline.
394         * doc/introduction.rst:
395         Add trailing newline.
396         * doc/lesser-general-public-license-2.1.rst:
397         Add trailing newline.
398         * doc/overview.rst:
399         Add trailing newline.
400         * doc/replacement-functions.rst:
401         Add trailing newline.
402         * doc/supplemental-functions.rst:
403         Add trailing newline.
404         * doc/using.rst:
405         Add trailing newline.
407 2022-11-09  Martin Liska  <mliska@suse.cz>
409         * Makefile.in: Support --with-sphinx-build.
410         * configure.ac: Likewise.
411         * configure: Regenerate.
413 2022-11-09  Martin Liska  <mliska@suse.cz>
415         * at-file.texi: Removed.
416         * copying-lib.texi: Removed.
417         * functions.texi: Removed.
418         * libiberty.texi: Removed.
419         * obstacks.texi: Removed.
421 2022-11-09  Martin Liska  <mliska@suse.cz>
423         * Makefile.in: Support Sphinx based documentation.
425 2022-11-09  Martin Liska  <mliska@suse.cz>
427         * doc/bsd.rst: New file.
428         * doc/conf.py: New file.
429         * doc/copyright.rst: New file.
430         * doc/extensions.rst: New file.
431         * doc/function-variable-and-macro-listing.rst: New file.
432         * doc/index.rst: New file.
433         * doc/indices-and-tables.rst: New file.
434         * doc/introduction.rst: New file.
435         * doc/lesser-general-public-license-2.1.rst: New file.
436         * doc/overview.rst: New file.
437         * doc/replacement-functions.rst: New file.
438         * doc/supplemental-functions.rst: New file.
439         * doc/using.rst: New file.
441 2022-10-18  Florian Weimer  <fweimer@redhat.com>
443         * acinclude.m4 (ac_cv_func_strncmp_works): Add missing
444         int return type and parameter list to the definition of main.
445         Include <stdlib.h> and <string.h> for prototypes.
446         (ac_cv_c_stack_direction): Add missing
447         int return type and parameter list to the definitions of
448         main, find_stack_direction.  Include <stdlib.h> for exit
449         prototype.
450         * configure: Regenerate.
452 2022-10-14  Jakub Jelinek  <jakub@redhat.com>
454         * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increment.
455         * cp-demangle.c (cplus_demangle_builtin_types): Add std::bfloat16_t
456         entry.
457         (cplus_demangle_type): Demangle DF16b.
458         * testsuite/demangle-expected (_Z3xxxDF16b): New test.
460 2022-10-11  Nathan Sidwell  <nathan@acm.org>
462         * cp-demangle.c (d_prefix): 'M' components are not
463         (re-)added to the substitution table.
464         * testsuite/demangle-expected: Add tests.
466 2022-10-07  Nathan Sidwell  <nathan@acm.org>
468         * cp-demangle.c (d_print_comp_inner): Allow parameter packs
469         in a lambda signature.
470         * testsuite/demangle-expected: Add tests.
472 2022-09-27  Jakub Jelinek  <jakub@redhat.com>
474         PR c++/106652
475         PR c++/85518
476         * cp-demangle.c (d_dump): Handle
477         DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE.  Don't handle
478         DEMANGLE_COMPONENT_FIXED_TYPE.
479         (d_make_extended_builtin_type): New function.
480         (cplus_demangle_builtin_types): Add _Float entry.
481         (cplus_demangle_type): For DF demangle it as _Float<N> or
482         _Float<N>x rather than fixed point which conflicts with it.
483         (d_count_templates_scopes): Handle
484         DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE.  Just break; for
485         DEMANGLE_COMPONENT_FIXED_TYPE.
486         (d_find_pack): Handle DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE.
487         Don't handle DEMANGLE_COMPONENT_FIXED_TYPE.
488         (d_print_comp_inner): Likewise.
489         * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Bump.
490         * testsuite/demangle-expected: Replace _Z3xxxDFyuVb test
491         with _Z3xxxDF16_DF32_DF64_DF128_CDF16_Vb.  Add
492         _Z3xxxDF32xDF64xDF128xCDF32xVb test.
494 2022-09-22  Jonathan Wakely  <jwakely@redhat.com>
496         * README: Replace gcc-bugs email address with Bugzilla URL.
498 2022-08-25  Martin Liska  <mliska@suse.cz>
500         * configure: Regenerate.
502 2022-07-22  Martin Liska  <mliska@suse.cz>
504         PR other/106370
505         * _doprnt.c: Remove continue as last stmt
506         in a loop.
508 2022-07-14  Martin Liska  <mliska@suse.cz>
510         * functions.texi: Replace strtoul with strtoull.
512 2022-07-04  Nick Clifton  <nickc@redhat.com>
514         * rust-demangle.c (demangle_const): Add a missing goto pass_return
515         at the end of the function.
517 2022-07-04  Nick Clifton  <nickc@redhat.com>
519         * rust-demangle.c (demangle_path_maybe_open_generics): Add
520         recursion limit.
522 2022-07-01  Nick Clifton  <nickc@redhat.com>
524         PR demangler/105039
525         * rust-demangle.c (demangle_const): Add recursion limit.
527 2022-06-26  Simon Marchi  <simon.marchi@efficios.com>
529         * configure.ac: Add AC_CONFIG_MACRO_DIRS call.
530         * configure: Re-generate.
532 2022-05-23  Nathan Sidwell  <nathan@acm.org>
534         * cp-demangle.c (d_make_comp): Adjust.
535         (d_name, d_prefix): Adjust subst handling. Add module handling.
536         (d_maybe_module_name): New.
537         (d_unqualified_name): Add incoming module parm. Handle it.  Adjust all callers.
538         (d_special_name): Add 'GI' support.
539         (d_count_template_scopes): Adjust.
540         (d_print_comp_inner): Print module.
541         * testsuite/demangle-expected: New test cases
543 2022-05-18  Nathan Sidwell  <nathan@acm.org>
545         * cp-demangle.c (d_name): Add SUBSTABLE parameter,
546         push substitution if requested. Adjust unscoped name handling.
547         (d_prefix): Reorder main loop. Adjust all calls.
548         (d_unqualified_name): Add SCOPE parameter, create qualified
549         name here. Adjust all calls.
550         (cplus_demangle_type): Do not handle 'S' here, leave all
551         to d_class_enum_type.
552         (d_class_enum_type): Add SUBSTABLE parameter.
554 2022-05-17  Nathan Sidwell  <nathan@acm.org>
556         * cp-demangle.c (d_make_comp): Adjust.
557         (d_unqualified_name): Add 'DC' support.
558         (d_count_template_scopes): Adjust.
559         (d_print_comp_inner): Add structured binding.
560         * testsuite/demangle-expected: Add testcases.
562 2022-05-10  Martin Liska  <mliska@suse.cz>
564         * regex.c: Restore comments.
566 2022-05-10  Martin Liska  <mliska@suse.cz>
567             Alan Modra  <amodra@gmail.com>
569         * hashtab.c (htab_empty): Use void * type instead of void **.
570         (htab_expand): Likewise.
572 2022-05-10  Martin Liska  <mliska@suse.cz>
574         * random.c: Remove 'define PTR'.
576 2022-05-10  Martin Liska  <mliska@suse.cz>
578         * alloca.c (C_alloca): Use void * instead PTR.
579         * calloc.c (malloc): Likewise.
580         (bzero): Likewise.
581         (calloc): Likewise.
582         * hashtab.c (find_empty_slot_for_expand): Likewise.
583         (eq_pointer): Likewise.
584         (htab_create_alloc_ex): Likewise.
585         (htab_create_typed_alloc): Likewise.
586         (htab_set_functions_ex): Likewise.
587         (htab_delete): Likewise.
588         (htab_empty): Likewise.
589         (htab_expand): Likewise.
590         (htab_find_with_hash): Likewise.
591         (htab_find): Likewise.
592         (htab_find_slot_with_hash): Likewise.
593         (htab_find_slot): Likewise.
594         (htab_remove_elt): Likewise.
595         (htab_remove_elt_with_hash): Likewise.
596         (htab_clear_slot): Likewise.
597         (htab_traverse_noresize): Likewise.
598         (htab_traverse): Likewise.
599         (htab_hash_string): Likewise.
600         (iterative_hash): Likewise.
601         (hash_pointer): Likewise.
602         * memchr.c (memchr): Likewise.
603         * memcmp.c (memcmp): Likewise.
604         * memcpy.c (memcpy): Likewise.
605         * memmove.c (memmove): Likewise.
606         * mempcpy.c (memcpy): Likewise.
607         (mempcpy): Likewise.
608         * memset.c (memset): Likewise.
609         * objalloc.c (malloc): Likewise.
610         (free): Likewise.
611         (objalloc_create): Likewise.
612         (_objalloc_alloc): Likewise.
613         (objalloc_free_block): Likewise.
614         * random.c (PTR): Likewise.
615         (void): Likewise.
616         (initstate): Likewise.
617         (setstate): Likewise.
618         * regex.c: Likewise.
619         * spaces.c (malloc): Likewise.
620         (free): Likewise.
621         * stpcpy.c (memcpy): Likewise.
622         * strdup.c (malloc): Likewise.
623         (memcpy): Likewise.
624         * strerror.c (malloc): Likewise.
625         (memset): Likewise.
626         * strndup.c (malloc): Likewise.
627         (memcpy): Likewise.
628         * strsignal.c (malloc): Likewise.
629         (memset): Likewise.
630         * vasprintf.c (malloc): Likewise.
631         * vprintf-support.c: Likewise.
632         * xatexit.c (malloc): Likewise.
633         * xmalloc.c (xmalloc): Likewise.
634         (xcalloc): Likewise.
635         (xrealloc): Likewise.
636         * xmemdup.c (xmemdup): Likewise.
638 2022-03-19  Tiezhu Yang  <yangtiezhu@loongson.cn>
640         * floatformat.c (floatformat_ieee_quad_big): Renamed from
641         floatformat_ia64_quad_big.
642         (floatformat_ieee_quad_little): Similarly.
644 2022-02-22  Jakub Jelinek  <jakub@redhat.com>
646         PR lto/104617
647         * simple-object-elf.c (simple_object_elf_match): Fix up URL
648         in comment.
649         (simple_object_elf_copy_lto_debug_sections): Remap sh_info and
650         sh_link even if they are in the SHN_LORESERVE .. SHN_HIRESERVE
651         range (inclusive).
653 2022-02-17  Mark Wielaard  <mark@klomp.org>
655         * rust-demangle.c (rust_demangle_callback): Ignore everything
656         after '.' char in sym for v0. For legacy symbols search
657         backwards to find the last 'E' before any '.'.
658         * testsuite/rust-demangle-expected: Add new .suffix testcases.
660 2022-01-31  Nick Clifton  <nickc@redhat.com>
662         PR demangler/98886
663         PR demangler/99935
664         * rust-demangle.c (struct rust_demangler): Add a recursion
665         counter.
666         (demangle_path): Increment/decrement the recursion counter upon
667         entry and exit.  Fail if the counter exceeds a fixed limit.
668         (demangle_type): Likewise.
669         (rust_demangle_callback): Initialise the recursion counter,
670         disabling if requested by the option flags.
672 2022-01-15  Martin Sebor  <msebor@redhat.com>
674         * regex.c: Suppress -Wuse-after-free.
676 2021-12-30  Lancelot SIX  <lsix@lancelotsix.com>
678         * cp-demangle.c (d_clone_suffix): Support digits in clone tag
679         names.
680         * testsuite/demangle-expected: Check demangling of clone symbols
681         with digits in name.
683 2021-12-16  H.J. Lu  <hjl.tools@gmail.com>
685         Revert:
686         2021-12-16  H.J. Lu  <hjl.tools@gmail.com>
688         * Makefile.in (AR): Add @AR_PLUGIN_OPTION@
689         (RANLIB): Add @RANLIB_PLUGIN_OPTION@.
690         (configure_deps): Depend on ../config/gcc-plugin.m4.
691         * configure.ac: AC_SUBST AR_PLUGIN_OPTION and
692         RANLIB_PLUGIN_OPTION.
693         * aclocal.m4: Regenerated.
694         * configure: Likewise.
696 2021-12-15  H.J. Lu  <hjl.tools@gmail.com>
698         * Makefile.in (AR): Add @AR_PLUGIN_OPTION@
699         (RANLIB): Add @RANLIB_PLUGIN_OPTION@.
700         (configure_deps): Depend on ../config/gcc-plugin.m4.
701         * configure.ac: AC_SUBST AR_PLUGIN_OPTION and
702         RANLIB_PLUGIN_OPTION.
703         * aclocal.m4: Regenerated.
704         * configure: Likewise.
706 2021-11-29  Eric Gallager  <egallager@gcc.gnu.org>
708         PR other/103021
709         * Makefile.in: Use ETAGS variable in TAGS target.
710         * configure: Regenerate.
711         * configure.ac: Allow ETAGS variable to be overridden.
713 2021-11-29  Andrew Pinski  <apinski@marvell.com>
715         * make-temp-file.c (try_dir): Check to see if the dir
716         is actually a directory.
718 2021-10-22  Eric Gallager  <egallager@gcc.gnu.org>
720         PR other/102663
721         * Makefile.in: Allow dvi-formatted documentation
722         to be installed.
724 2021-10-17  Luís Ferreira  <contact@lsferreira.net>
726         PR d/102618
727         * d-demangle.c (dlang_parse_qualified): Handle anonymous
728         symbols correctly.
729         * testsuite/d-demangle-expected: New tests to cover anonymous
730         symbols.
732 2021-10-14  Luís Ferreira  <contact@lsferreira.net>
734         * testsuite/d-demangle-expected: Add test case for function literals.
736 2021-10-14  Luís Ferreira  <contact@lsferreira.net>
738         * testsuite/d-demangle-expected: Add test cases for simple special
739         mangles.
741 2021-10-12  Luís Ferreira  <contact@lsferreira.net>
743         * d-demangle.c (dlang_parse_qualified): Remove redudant parenthesis
744         around lhs and rhs of assignments.
746 2021-10-01  Luís Ferreira  <contact@lsferreira.net>
748         * testsuite/d-demangle-expected: Add missing format for new test
750 2021-09-23  Luís Ferreira  <contact@lsferreira.net>
752         * d-demangle.c (dlang_Type): Validate MANGLED is nonnull.
753         * testsuite/d-demangle-expected: New test.
755 2021-09-23  Luís Ferreira  <contact@lsferreira.net>
757         * d-demangle.c (dlang_symbol_backref): Ensure strlen of
758         string is less than length computed by dlang_number.
760 2021-09-01  Iain Sandoe  <iain@sandoe.co.uk>
762         * configure: Regenerate.
763         * configure.ac: Do not search for sbrk on Darwin.
764         * xmalloc.c: Do not declare sbrk unless it has been found
765         by configure.
767 2021-08-29  Iain Buclaw  <ibuclaw@gdcproject.org>
769         * d-demangle.c (dlang_identifier): Skip over fake parent manglings.
770         * testsuite/d-demangle-expected: Add tests.
772 2021-08-29  Iain Buclaw  <ibuclaw@gdcproject.org>
774         * d-demangle.c (dlang_parse_arrayliteral): Add 'info' parameter.
775         (dlang_parse_assocarray): Likewise.
776         (dlang_parse_structlit): Likewise.
777         (dlang_value): Likewise.  Handle function literal symbols.
778         (dlang_template_args): Pass 'info' to dlang_value.
779         * testsuite/d-demangle-expected: Add new test.
781 2021-08-29  Iain Buclaw  <ibuclaw@gdcproject.org>
783         * d-demangle.c (dlang_attributes): Handle typeof(*null).
784         (dlang_type): Likewise.  Demangle 'n' as typeof(null).
785         * testsuite/d-demangle-expected: Update tests.
787 2021-08-23  Iain Sandoe  <iain@sandoe.co.uk>
789         * simple-object-mach-o.c (simple_object_mach_o_write_segment):
790         Cast the first argument to set_32 as needed.
792 2021-08-18  Iain Sandoe  <iain@sandoe.co.uk>
794         * simple-object-mach-o.c (simple_object_mach_o_write_segment):
795         Arrange to swap the LTO index tables where needed.
797 2021-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
799         * make-temp-file.c (usrtmp): Remove.
800         (choose_tmpdir): Remove use of usrtmp.
802 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
804         * simple-object.c (handle_lto_debug_sections): Copy over .BTF section.
806 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
807             David Faust  <david.faust@oracle.com>
808             Jose E. Marchesi  <jose.marchesi@oracle.com>
809             Weimin Pan  <weimin.pan@oracle.com>
811         * simple-object.c (handle_lto_debug_sections): Copy over .ctf
812         sections.
814 2021-06-05  John David Anglin  <danglin@gcc.gnu.org>
816         PR target/100734
817         * configure.ac: Use libiberty snprintf and vsnprintf on
818         hppa*-*-hpux*.
819         * configure: Regenerate.
821 2021-05-06  Tom Tromey  <tom@tromey.com>
823         * hashtab.c (htab_eq_string): New function.
825 2021-05-04  Eric Botcazou  <ebotcazou@adacore.com>
827         * configure.ac: Make test for variables more robust.
828         * configure: Regenerate.
830 2021-05-03  H.J. Lu  <hjl.tools@gmail.com>
832         PR bootstrap/99703
833         * configure: Regenerated.
835 2021-04-21  Andreas Schwab  <schwab@linux-m68k.org>
837         PR demangler/100177
838         * rust-demangle.c (demangle_const_char): Properly print the
839         character value.
841 2021-03-31  Patrick Palka  <ppalka@redhat.com>
843         PR c++/88115
844         * cp-demangle.c (d_dump, d_make_comp, d_expression_1)
845         (d_count_templates_scopes): Handle DEMANGLE_COMPONENT_VENDOR_EXPR.
846         (d_print_comp_inner): Likewise.
847         <case DEMANGLE_COMPONENT_EXTENDED_OPERATOR>: Revert r11-4926
848         change.
849         <case DEMANGLE_COMPONENT_UNARY>: Likewise.
850         * testsuite/demangle-expected: Adjust __alignof__ tests.
852 2021-03-16  Nick Clifton  <nickc@redhat.com>
854         * sha1.c (sha1_process_bytes): Use memmove in place of memcpy.
856 2021-02-20  Mike Frysinger  <vapier@gentoo.org>
858         * Makefile.in (ACLOCAL, ACLOCAL_AMFLAGS, $(srcdir)/aclocal.m4): Define.
859         (configure_deps): Rename to ...
860         (aclocal_deps): ... this.  Replace aclocal.m4 with acinclude.m4.
861         ($(srcdir)/configure): Replace $(configure_deps) with
862         $(srcdir)/aclocal.m4.
863         * aclocal.m4: Move libiberty macros to acinclude.m4, then regenerate.
864         * acinclude.m4: New file.
865         * configure: Regenerate.
867 2021-02-19  Ayush Mittal  <ayush.m@samsung.com>
869         * argv.c (expandargv): free allocated buffer if read fails.
871 2021-02-01  Martin Sebor  <msebor@redhat.com>
873         * dyn-string.c (dyn_string_insert_cstr): Use memcpy instead of strncpy
874         to avoid -Wstringop-truncation.
876 2021-01-04  Martin Liska  <mliska@suse.cz>
878         * strverscmp.c: Convert to utf8 from iso8859.
880 2020-12-22  Jason Merrill  <jason@redhat.com>
882         PR c++/67343
883         * cp-demangle.h (struct d_info): Add unresolved_name_state.
884         * cp-demangle.c (d_prefix): Add subst parm.
885         (d_nested_name): Pass it.
886         (d_unresolved_name): Split out from...
887         (d_expression_1): ...here.
888         (d_demangle_callback): Maybe retry with old sr mangling.
889         * testsuite/demangle-expected: Add test.
891 2020-12-21  Jason Merrill  <jason@redhat.com>
893         * cp-demangle.c (d_expression_1): Recognize qualified-id
894         on RHS of dt/pt.
895         * testsuite/demangle-expected: Add test.
897 2020-12-21  Jason Merrill  <jason@redhat.com>
899         * cp-demangle.c (d_unqualified_name): Clear is_expression.
900         * testsuite/demangle-expected: Add tests.
902 2020-11-25  Matthew Malcomson  <matthew.malcomson@arm.com>
904         * configure: Regenerate.
905         * configure.ac: Avoid using sanitizer.
907 2020-11-13  Eduard-Mihai Burtescu  <eddyb@lyken.rs>
909         * rust-demangle.c (struct rust_demangler): Add
910         skipping_printing and bound_lifetime_depth fields.
911         (eat): Add (v0-only).
912         (parse_integer_62): Add (v0-only).
913         (parse_opt_integer_62): Add (v0-only).
914         (parse_disambiguator): Add (v0-only).
915         (struct rust_mangled_ident): Add punycode{,_len} fields.
916         (parse_ident): Support v0 identifiers.
917         (print_str): Respect skipping_printing.
918         (print_uint64): Add (v0-only).
919         (print_uint64_hex): Add (v0-only).
920         (print_ident): Respect skipping_printing,
921         Support v0 identifiers.
922         (print_lifetime_from_index): Add (v0-only).
923         (demangle_binder): Add (v0-only).
924         (demangle_path): Add (v0-only).
925         (demangle_generic_arg): Add (v0-only).
926         (demangle_type): Add (v0-only).
927         (demangle_path_maybe_open_generics): Add (v0-only).
928         (demangle_dyn_trait): Add (v0-only).
929         (demangle_const): Add (v0-only).
930         (demangle_const_uint): Add (v0-only).
931         (basic_type): Add (v0-only).
932         (rust_demangle_callback): Support v0 symbols.
933         * testsuite/rust-demangle-expected: Add v0 testcases.
935 2020-11-13  Seija Kijin  <doremylover456@gmail.com>
937         * strstr.c (strstr): Make implementation ANSI/POSIX compliant.
939 2020-11-11  Patrick Palka  <ppalka@redhat.com>
941         PR c++/88115
942         * cp-demangle.c (d_print_comp_inner)
943         <case DEMANGLE_COMPONENT_EXTENDED_OPERATOR>: Don't print the
944         "operator " prefix for __alignof__.
945         <case DEMANGLE_COMPONENT_UNARY>: Always print parens around the
946         operand of __alignof__.
947         * testsuite/demangle-expected: Test demangling for __alignof__.
949 2020-11-09  Christophe Lyon  <christophe.lyon@linaro.org>
951         * pex-win32.c (pex_win32_exec_child): Initialize orig_err.
953 2020-10-06  Martin Liska  <mliska@suse.cz>
955         PR lto/97290
956         * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
957         Use sh_link of a .symtab_shndx section.
959 2020-09-24  Mark Wielaard  <mark@klomp.org>
961         * dwarfnames.c (get_DW_UT_name): Define using DW_UT_FIRST, DW_UT
962         and DW_UT_END.
964 2020-09-08  Felix Willgerodt  <felix.willgerodt@intel.com>
966         * floatformat.c (floatformat_bfloat16_big): New.
967         (floatformat_bfloat16_little): New.
969 2020-09-08  Alan Modra  <amodra@gmail.com>
971         * d-demangle.c: Include limits.h.
972         (ULONG_MAX, UINT_MAX): Provide fall-back definition.
973         (dlang_number): Simplify and correct overflow test.  Only
974         write *ret on returning non-NULL.  Make "ret" an unsigned long*.
975         Only succeed for result of [0,UINT_MAX].
976         (dlang_decode_backref): Simplify and correct overflow test.
977         Only write *ret on returning non-NULL.  Only succeed for
978         result [1,MAX_LONG].
979         (dlang_backref): Remove now unnecessary range check.
980         (dlang_symbol_name_p): Likewise.
981         (string_need): Take a size_t n arg, and use size_t tem.
982         (string_append): Use size_t n.
983         (string_appendn, string_prependn): Take a size_t n arg.
984         (TEMPLATE_LENGTH_UNKNOWN): Define as -1UL.
985         (dlang_lname, dlang_parse_template): Take an unsigned long len
986         arg.
987         (dlang_symbol_backref, dlang_identifier, dlang_parse_integer),
988         (dlang_parse_integer, dlang_parse_string),
989         (dlang_parse_arrayliteral, dlang_parse_assocarray),
990         (dlang_parse_structlit, dlang_parse_tuple),
991         (dlang_template_symbol_param, dlang_template_args): Use
992         unsigned long variables.
993         * testsuite/d-demangle-expected: Add new tests.
995 2020-08-26  Iain Buclaw  <ibuclaw@gdcproject.org>
997         * d-demangle.c (dlang_function_args): Handle 'in' and 'in ref'
998         parameter storage classes.
999         (dlang_type): Remove identifier type.
1000         * testsuite/d-demangle-expected: Update tests.
1002 2020-08-03  Richard Biener  <rguenther@suse.de>
1004         PR lto/96385
1005         * simple-object-elf.c
1006         (simple_object_elf_copy_lto_debug_sections): Localize global
1007         UNDEFs and reuse the prevailing name.
1009 2020-07-30  H.J. Lu  <hjl.tools@gmail.com>
1011         PR bootstrap/96202
1012         * configure: Regenerated.
1014 2020-07-14  Ian Lance Taylor  <iant@golang.org>
1016         PR demangler/96143
1017         * cp-demangle.c (d_lambda): Don't add substitution candidate.
1018         * testsuite/demangle-expected: Update a few existing test cases
1019         accordingly, and add a new test case.
1021 2020-07-10  Jason Merrill  <jason@redhat.com>
1023         * cp-demangle.c (cplus_demangle_operators): Add di, dx, dX.
1024         (d_expression_1): Handle di and dX.
1025         (is_designated_init, d_maybe_print_designated_init): New.
1026         (d_print_comp_inner): Use d_maybe_print_designated_init.
1027         * testsuite/demangle-expected: Add designator tests.
1029 2020-06-26  Nick Clifton  <nickc@redhat.com>
1031         * bsearch.c (bsearch): Remove use of register keyword.
1032         * bsearch_r.c (bsearch_r): Likewise.
1034 2020-06-23  Nick Alcock  <nick.alcock@oracle.com>
1036         * bsearch_r.c: New file.
1037         * Makefile.in (CFILES): Add bsearch_r.c.
1038         (REQUIRED_OFILES): Add bsearch_r.o.
1039         * functions.texi: Regenerate.
1041 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
1043         PR bootstrap/95413
1044         * configure: Regenerated.
1046 2020-05-15  Iain Buclaw  <ibuclaw@gdcproject.org>
1048         * d-demangle.c (dlang_attributes): Add @live attribute.
1049         * testsuite/d-demangle-expected: Add new tests.
1051 2020-05-14  Rainer Schuetze  <r.sagitario@gmx.de>
1052             Iain Buclaw  <ibuclaw@gdcproject.org>
1054         * d-demangle.c (enum dlang_symbol_kinds): Remove enum.
1055         (struct dlang_info): New struct
1056         (dlang_decode_backref): New function.
1057         (dlang_backref): New function.
1058         (dlang_symbol_backref): New function.
1059         (dlang_type_backref): New function.
1060         (dlang_symbol_name_p): New function.
1061         (dlang_function_type_noreturn): New function.
1062         (dlang_function_type): Add 'info' parameter.  Decode function type
1063         with dlang_function_type_noreturn.
1064         (dlang_function_args): Add 'info' parameter.
1065         (dlang_type): Add 'info' parameter.  Handle back referenced types.
1066         (dlang_identifier): Replace 'kind' parameter with 'info'.  Handle back
1067         referenced symbols.  Split off decoding of plain identifiers to...
1068         (dlang_lname): ...here.
1069         (dlang_parse_mangle): Replace 'kind' parameter with 'info'.  Decode
1070         function type and return with dlang_type.
1071         (dlang_parse_qualified): Replace 'kind' parameter with 'info', add
1072         'suffix_modifier' parameter.  Decode function type with
1073         dlang_function_type_noreturn.
1074         (dlang_parse_tuple): Add 'info' parameter.
1075         (dlang_template_symbol_param): New function.
1076         (dlang_template_args): Add 'info' parameter.  Decode symbol parameter
1077         with dlang_template_symbol_param.  Handle back referenced values, and
1078         externally mangled parameters.
1079         (dlang_parse_template): Add 'info' parameter.
1080         (dlang_demangle_init_info): New function.
1081         (dlang_demangle): Initialize and pass 'info' parameter.
1082         * testsuite/d-demangle-expected: Add new tests.
1084 2020-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1086         PR bootstrap/94998
1087         * configure: Regenerated.
1089 2020-04-28  H.J. Lu  <hongjiu.lu@intel.com>
1091         PR bootstrap/94739
1092         * configure: Regenerated.
1094 2020-04-27  Jakub Jelinek  <jakub@redhat.com>
1096         PR demangler/94797
1097         * cp-demangle.c (cplus_demangle_operators): Add ss <=> operator.
1098         * testsuite/demangle-expected: Add operator<=> test.
1100 2020-04-25  H.J. Lu  <hongjiu.lu@intel.com>
1102         PR bootstrap/94739
1103         * Makefile.in (COMPILE.c): Add @CET_HOST_FLAGS@.
1104         (configure_deps): Add $(srcdir)/../config/cet.m4 and
1105         $(srcdir)/../config/enable.m4.
1106         * aclocal.m4: Include ../config/cet.m4 and ../config/enable.m4.
1107         * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
1108         AC_SUBST(CET_HOST_FLAGS).
1109         * configure: Regenerated.
1111 2020-03-05  Egeyar Bagcioglu  <egeyar.bagcioglu@oracle.com>
1113         * simple-object.c (handle_lto_debug_sections): Name
1114         ".GCC.command.line" among debug sections to be copied over
1115         from lto objects.
1117 2020-03-02  Nick Clifton  <nickc@redhat.com>
1119         * testsuite/demangle-expected: Update expected demangling of
1120         enable_if pattern.
1122 2020-03-02  H.J. Lu  <hongjiu.lu@intel.com>
1124         PR lto/93966
1125         * simple-object.c (handle_lto_debug_sections): Also copy
1126         .note.gnu.property section.
1128 2020-02-12  Sandra Loosemore  <sandra@codesourcery.com>
1130         PR libstdc++/79193
1131         PR libstdc++/88999
1133         * configure: Regenerated.
1135 2020-02-05  Andrew Burgess  <andrew.burgess@embecosm.com>
1137         * hashtab.c (htab_remove_elt): Make a parameter const.
1138         (htab_remove_elt_with_hash): Likewise.
1140 2020-01-23  Alexandre Oliva <oliva@adacore.com>
1142         * argv.c (writeargv): Output empty args as "".
1144 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
1146         Update copyright years.
1148 2019-12-06  Tim Ruehsen  <tim.ruehsen@gmx.de>
1150         * make-relative-prefix.c (split_directories):
1151         Return early on empty 'name'
1153 2019-11-16  Tim Ruehsen  <tim.ruehsen@gmx.de>
1155         * cp-demangle.c (d_print_init): Remove const from 4th param.
1156         (cplus_demangle_fill_name): Initialize d->d_counting.
1157         (cplus_demangle_fill_extended_operator): Likewise.
1158         (cplus_demangle_fill_ctor): Likewise.
1159         (cplus_demangle_fill_dtor): Likewise.
1160         (d_make_empty): Likewise.
1161         (d_count_templates_scopes): Remobe const from 3rd param,
1162         Return on dc->d_counting > 1,
1163         Increment dc->d_counting.
1164         * cp-demint.c (cplus_demangle_fill_component): Initialize d->d_counting.
1165         (cplus_demangle_fill_builtin_type): Likewise.
1166         (cplus_demangle_fill_operator): Likewise.
1168 2019-11-16  Eduard-Mihai Burtescu  <eddyb@lyken.rs>
1170         * cplus-dem.c (cplus_demangle): Use rust_demangle directly.
1171         (rust_demangle): Remove.
1172         * rust-demangle.c (is_prefixed_hash): Rename to is_legacy_prefixed_hash.
1173         (parse_lower_hex_nibble): Rename to decode_lower_hex_nibble.
1174         (parse_legacy_escape): Rename to decode_legacy_escape.
1175         (rust_is_mangled): Remove.
1176         (struct rust_demangler): Add.
1177         (peek): Add.
1178         (next): Add.
1179         (struct rust_mangled_ident): Add.
1180         (parse_ident): Add.
1181         (rust_demangle_sym): Remove.
1182         (print_str): Add.
1183         (PRINT): Add.
1184         (print_ident): Add.
1185         (rust_demangle_callback): Add.
1186         (struct str_buf): Add.
1187         (str_buf_reserve): Add.
1188         (str_buf_append): Add.
1189         (str_buf_demangle_callback): Add.
1190         (rust_demangle): Add.
1191         * rust-demangle.h: Remove.
1193 2019-11-15  Miguel Saldivar  <saldivarcher@gmail.com>
1195         * testsuite/demangle-expected: Fix test.
1197 2019-11-04  Kamlesh Kumar  <kamleshbhalui@gmail.com>
1199         * cp-demangle.c (d_expr_primary): Handle
1200         nullptr demangling.
1201         * testsuite/demangle-expected: Added test.
1203 2019-10-29 Paul Pluzhnikov  <ppluzhnikov@google.com>
1205         * cp-demangle.c (d_number): Avoid signed int overflow.
1207 2019-10-28  Miguel Saldivar  <saldivarcher@gmail.com>
1209         * cp-demangle.c (d_print_mod): Add a space before printing `complex`
1210         and `imaginary`, as opposed to after.
1211         * testsuite/demangle-expected: Adjust test.
1213 2019-10-03  Eduard-Mihai Burtescu  <eddyb@lyken.rs>
1215         * rust-demangle.c (looks_like_rust): Remove.
1216         (rust_is_mangled): Don't check escapes.
1217         (is_prefixed_hash): Allow 0-9a-f permutations.
1218         (rust_demangle_sym): Don't bail on unknown escapes.
1219         * testsuite/rust-demangle-expected: Update 'main::$99$' test.
1221 2019-09-03  Eduard-Mihai Burtescu  <eddyb@lyken.rs>
1223         * rust-demangle.c (unescape): Remove.
1224         (parse_lower_hex_nibble): New function.
1225         (parse_legacy_escape): New function.
1226         (is_prefixed_hash): Use parse_lower_hex_nibble.
1227         (looks_like_rust): Use parse_legacy_escape.
1228         (rust_demangle_sym): Use parse_legacy_escape.
1229         * testsuite/rust-demangle-expected: Add 'llv$u6d$' test.
1231 2019-08-27  Martin Liska  <mliska@suse.cz>
1233         PR lto/91478
1234         * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1235         First find a WEAK HIDDEN symbol in symbol table that will be
1236         preserved.  Later, use the symbol name for all removed symbols.
1238 2019-08-12  Martin Liska  <mliska@suse.cz>
1240         * Makefile.in: Add filedescriptor.c.
1241         * filedescriptor.c: New file.
1242         * lrealpath.c (is_valid_fd): Remove.
1244 2019-08-08  Martin Liska  <mliska@suse.cz>
1246         PR bootstrap/91352
1247         * lrealpath.c (is_valid_fd): New function.
1249 2019-07-24  Martin Liska  <mliska@suse.cz>
1251         PR lto/91228
1252         * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1253         Find first '\0' starting from gnu_lto + 1.
1255 2019-07-12  Ren Kimura  <rkx1209dev@gmail.com>
1257         * simple-object-elf.c (simple_object_elf_match): Check zero value shstrndx.
1258         This fixes a Bug 90924.
1260 2019-07-22  Martin Liska  <mliska@suse.cz>
1262         * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1263         Do not search for gnu_lto_v1, but search for first '\0'.
1265 2019-07-18  Eduard-Mihai Burtescu  <eddyb@lyken.rs>
1267         * cplus-dem.c: Include rust-demangle.h.
1268         * rust-demangle.c: Include rust-demangle.h.
1269         * rust-demangle.h: New file.
1271 2019-05-31  Michael Forney  <mforney@mforney.org>
1273         * cp-demangle.c: Don't define CP_DYNAMIC_ARRAYS if __STDC_NO_VLA__
1274         is non-zero.
1276 2019-04-30  Ben L  <bobsayshilol@live.co.uk>
1278         * d-demangle.c (dlang_parse_assocarray): Correctly handle error result.
1279         * testsuite/d-demangle-expected: Add testcase.
1281         * d-demangle.c (dlang_parse_tuple): Correctly handle error result.
1282         * testsuite/d-demangle-expected: Add testcase.
1284         * d-demangle.c (dlang_parse_structlit): Correctly handle error result.
1285         * testsuite/d-demangle-expected: Add testcase.
1287         * d-demangle.c (dlang_parse_arrayliteral): Correctly handle error result.
1288         * testsuite/d-demangle-expected: Add testcase.
1290         * d-demangle.c (dlang_parse_integer): Fix stack underflow.
1291         * testsuite/d-demangle-expected: Add testcase.
1293         * cp-demangle (d_print_comp_inner): Guard against a NULL 'typed_name'.
1294         * testsuite/demangle-expected: Add testcase.
1296         * cp-demangle.c (d_encoding): Guard against NULL return values from
1297         d_right (dc).
1298         * testsuite/demangle-expected: Add testcase.
1300 2019-04-29  Ben L  <bobsayshilol@live.co.uk>
1302         * cp-demangle.c (d_expression_1): Don't peek ahead unless the current
1303         char is valid.
1304         * testsuite/demangle-expected: Add testcase.
1306 2019-04-10  Nick Clifton  <nickc@redhat.com>
1308         PR 89394
1309         * cp-demangle.c (cplus_demangle_fill_name): Reject negative
1310         lengths.
1311         (d_count_templates_scopes): Replace num_templates and num_scopes
1312         parameters with a struct d_print_info pointer parameter.  Adjust
1313         body of the function accordingly.  Add recursion counter and check
1314         that the recursion limit is not reached.
1315         (d_print_init): Pass dpi parameter to d_count_templates_scopes.
1316         Reset recursion counter afterwards, unless the recursion limit was
1317         reached.
1319 2019-04-07  Alan Modra  <amodra@gmail.com>
1321         * functions.texi: Regenerate.
1323 2019-03-14  Jason Merrill  <jason@redhat.com>
1324             Jakub Jelinek  <jakub@redhat.com>
1326         * hashtab.c (htab_remove_elt_with_hash): Return if slot is NULL rather
1327         than if *slot is HTAB_EMPTY_ENTRY.
1329 2019-02-11  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1331         * splay-tree.c (splay_tree_insert): Also release old KEY in case
1332         of insertion of a key equal to an already present key.
1333         (splay_tree_new_typed_alloc): Update comment.
1335 2019-01-22  Nidal Faour  <nidal.faour@wdc.com>
1337         PR lto/88422
1338         * simple-object.c (O_BINARY): Define if not already defined.
1339         (simple_object_copy_lto_debug_sections): Create file in binary
1340         mode.
1342 2019-01-21  Tom Tromey  <tom@tromey.com>
1344         * splay-tree.c (splay_tree_remove): Delete the key if necessary.
1346 2019-01-14  Tom Honermann  <tom@honermann.net>
1348         * cp-demangle.c (cplus_demangle_builtin_types)
1349         (cplus_demangle_type): Add name demangling for char8_t (Du).
1350         * cp-demangle.h: Increase D_BUILTIN_TYPE_COUNT to accommodate the
1351         new char8_t type.
1353 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
1355         PR other/16615
1357         * cp-demangle.c: Mechanically replace "can not" with "cannot".
1358         * floatformat.c: Likewise.
1359         * strerror.c: Likewise.
1361 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
1363         Update copyright years.
1365 2018-12-22  Jason Merrill  <jason@redhat.com>
1367         Remove support for demangling GCC 2.x era mangling schemes.
1368         * cplus-dem.c: Remove cplus_mangle_opname, cplus_demangle_opname,
1369         internal_cplus_demangle, and all subroutines.
1370         (libiberty_demanglers): Remove entries for ancient GNU (pre-3.0),
1371         Lucid, ARM, HP, and EDG demangling styles.
1372         (cplus_demangle): Remove 'work' variable.  Don't call
1373         internal_cplus_demangle.
1375 2018-12-07  Nick Clifton  <nickc@redhat.com>
1377         PR 87681
1378         PR 87675
1379         PR 87636
1380         PR 87350
1381         PR 87335
1382         * cp-demangle.h (struct d_info): Add recursion_level field.
1383         * cp-demangle.c (d_function_type): Add recursion counter.
1384         If the recursion limit is reached and the check is not disabled,
1385         then return with a failure result.
1386         (cplus_demangle_init_info): Initialise the recursion_level field.
1387         (d_demangle_callback): If the recursion limit is enabled, check
1388         for a mangled string that is so long that there is not enough
1389         stack space for the local arrays.
1390         * cplus-dem.c (struct work): Add recursion_level field.
1391         (squangle_mop_up): Set the numb and numk fields to zero.
1392         (work_stuff_copy_to_from): Handle the case where a btypevec or
1393         ktypevec field is NULL.
1394         (demangle_nested_args): Add recursion counter.  If
1395         the recursion limit is not disabled and reached, return with a
1396         failure result.
1398 2018-10-23  Jason Merrill  <jason@redhat.com>
1400         Implement P0732R2, class types in non-type template parameters.
1401         * cp-demangle.c (d_dump, d_make_comp, d_count_templates_scopes)
1402         (d_print_comp_inner): Handle DEMANGLE_COMPONENT_TPARM_OBJ.
1403         (d_special_name): Handle TA.
1404         (d_expresion_1): Fix demangling of brace-enclosed initializer list.
1406 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
1408         PR bootstrap/82856
1409         Merge from binutils-gdb:
1410         2018-06-19  Simon Marchi  <simon.marchi@ericsson.com>
1412         * configure.ac: Remove AC_PREREQ.
1413         * configure: Re-generate.
1414         * config.in: Re-generate.
1416 2018-10-01  Nathan Sidwell  <nathan@acm.org>
1418         * configure.ac (checkfuncs): Add pipe2.
1419         * config.in, configure: Rebuilt.
1420         * pex-unix.c (pex_unix_exec_child): Comminicate errors from child
1421         to parent with a pipe, when possible.
1423 2018-08-23  Nathan Sidwell  <nathan@acm.org>
1424             Martin Liska  <mliska@suse.cz>
1426         PR driver/87056
1427         * pex-unix.c (pex_unix_exec_child): Duplicate bad_fn into local
1428         scopes to avoid potential clobber.
1430 2018-08-20  Nathan Sidwell  <nathan@acm.org>
1432         * pex-unix.c (pex_child_error): Delete.
1433         (pex_unix_exec_child): Commonize error paths to single message &
1434         exit.
1436 2018-07-30  Tom Tromey  <tom@tromey.com>
1438         * cplus-dem.c (remember_Btype): Don't call memcpy with LEN==0.
1440 2018-07-26  Martin Liska  <mliska@suse.cz>
1442         PR lto/86548
1443         * make-temp-file.c (TEMP_FILE): Remove leading 'cc'.
1444         (make_temp_file): Call make_temp_file_with_prefix with
1445         first argument set to NULL.
1446         (make_temp_file_with_prefix): Support also prefix.
1448 2018-07-19  Eli Zaretskii  <eliz@gnu.org>
1450         * simple-object-elf.c (ENOTSUP): If not defined by errno.h, redirect
1451         to ENOSYS.
1453 2018-05-30  Jan Hubicka  <hubicka@ucw.cz>
1455         * simple-object.c (handle_lto_debug_sections): Add rename parameter.
1456         (handle_lto_debug_sections_rename): New function.
1457         (handle_lto_debug_sections_norename): New function.
1458         (simple_object_copy_lto_debug_sections): Add rename parameter.
1460 2018-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1462         * splay-tree.c (splay_tree_compare_strings,
1463         splay_tree_delete_pointers): New utility functions.
1465 2018-05-10  Martin Liska  <mliska@suse.cz>
1467         PR bootstrap/64914
1468         * md5.c: Use strict alignment with UBSAN_BOOTSTRAP.
1470 2018-04-30  Daniel van Gerpen  <daniel@vangerpen.de>
1472         * argv.c (expandargv): Fix memory leak for copied argv.
1474 2018-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1476         PR lto/81968
1477         * simple-object.c (handle_lto_debug_sections): Keep .comment
1478         section.
1480 2018-03-02  David Malcolm  <dmalcolm@redhat.com>
1482         * cp-demangle.c: Update URL for g++ V3 ABI.
1484 2018-01-20  Eli Zaretskii  <eliz@gnu.org>
1486         * simple-object-xcoff.c (simple_object_xcoff_find_sections): Use
1487         ulong_type to avoid warning about 32-bit shift.
1489 2018-01-11  Richard Biener  <rguenther@suse.de>
1490         Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1492         PR lto/81968
1493         * simple-object-common.h (struct simple_object_functions):
1494         Change copy_lto_debug_sections callback signature.
1495         * simple-object-elf.c (SHN_HIRESERVE, SHT_SYMTAB_SHNDX,
1496         SHF_INFO_LINK): Add defines.
1497         (simple_object_elf_copy_lto_debug_sections): Instead of
1498         leaving not to be copied sections empty unnamed SHT_NULL
1499         remove them from the target section headers and adjust section
1500         reference everywhere.  Handle SHN_XINDEX in the symbol table
1501         processing properly.
1502         * simple-object.c (handle_lto_debug_sections): Change
1503         interface to return a modified string and handle renaming
1504         of relocation sections.
1506 2018-01-10  Daniel van Gerpen  <daniel@vangerpen.de>
1508         * argv.c (expandargv): Correct check for dynamically
1509         allocated argv.
1511 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
1513         Update copyright years.
1515 2017-01-02  Richard Biener  <rguenther@suse.de>
1517         PR lto/83452
1518         * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
1519         Do not use UNDEF locals for removed symbols but instead just
1520         define them in the first prevailing section and with no name.
1521         Use the same gnu_lto_v1 name for all removed globals we promote to
1522         WEAK UNDEFs so hpux can use a stub to provide this symbol.  Clear
1523         sh_info and sh_link in removed sections.
1525 2017-10-30  Richard Biener  <rguenther@suse.de>
1527         PR lto/82757
1528         * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1529         Strip two leading _s from the __gnu_lto_* symbols.
1531 2017-10-24  Alan Modra  <amodra@gmail.com>
1533         PR lto/82687
1534         PR lto/82575
1535         * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1536         Only make __gnu_lto symbols hidden.
1538 2017-10-20  Alan Modra  <amodra@gmail.com>
1540         PR lto/82575
1541         * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1542         Make discarded non-local symbols weak and hidden.
1544 2017-10-18  Jakub Jelinek  <jakub@redhat.com>
1546         PR lto/82598
1547         * simple-object.c (handle_lto_debug_sections): Copy over also
1548         .note.GNU-stack section with unchanged name.
1549         * simple-object-elf.c (SHF_EXECINSTR): Define.
1550         (simple_object_elf_copy_lto_debug_section): Drop SHF_EXECINSTR bit
1551         on .note.GNU-stack section.
1553 2017-09-25  Nathan Sidwell  <nathan@acm.org>
1555         PR demangler/82195
1556         * cp-demangle.c (d_encoding): Strip return type when name is a
1557         LOCAL_NAME.
1558         (d_local_name): Strip return type of enclosing TYPED_NAME.
1559         * testsuite/demangle-expected: Add and adjust tests.
1561 2017-09-21  Nathan Sidwell  <nathan@acm.org>
1563         PR demangler/82195
1564         * cp-demangle.c (d_name): Revert addition of 'toplevel' parm.
1565         (has_return_type): Recurse for DEMANGLE_COMPONENT_LOCAL_NAME.
1566         (d_encoding): Revert d_name change.  Use is_fnqual_component_type
1567         to strip modifiers that do not belong.
1568         (d_special_name, d_class_enum_type): Revert d_name call change.
1569         (d_expresion_1): Commonize DEMANGLE_COMPONENT_UNARY building.
1570         (d_local_name): Revert parsing of a function type.
1571         (d_print_comp_inner): An inner LOCAL_NAME might contain a
1572         TEMPLATE.
1573         * testsuite/demangle-expected: Add & adjust tests
1575 2017-09-15  Nathan Sidwell  <nathan@acm.org>
1577         PR demangler/82195
1578         * cp-demangle.c (d_name): Add 'toplevel' parm.  Pass to ...
1579         (d_local_name): ... here.  Parse trailing function args on nested
1580         local_name.
1581         (d_encoding, d_special_name, d_class_enum_type): Adjust d_name calls.
1582         * testsuite/demangle-expected: Add tests.
1584 2017-09-15  Richard Biener  <rguenther@suse.de>
1586         PR lto/81968
1587         * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1588         Iterate marking dependent sections necessary.
1590 2017-09-15  Nathan Sidwell  <nathan@acm.org>
1592         * cp-demangle.c (is_fnqual_component_type): Reimplement using
1593         FNQUAL_COMPONENT_CASE.
1594         (d_encoding): Hold bare_function_type in local var.
1595         (d_local_name): Build name in both cases and build result once.
1596         Collapse switch-if to single conditional.
1597         (d_local_name): 
1599         * testsuite/demangle-expected: Realign blank lines with tests.
1601 2017-09-12  Jiong Wang  <jiong.wang@arm.com>
1603         * dwarfnames.c (DW_CFA_DUP): New define.
1605 2017-09-01  Martin Liska  <mliska@suse.cz>
1607         * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1608         Remove duplicite declaration.
1610 2017-08-31  Richard Biener  <rguenther@suse.de>
1612         PR lto/81968
1613         * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
1614         Keep names of removed global symbols.
1616 2017-08-29  Tony Reix  <tony.reix@atos.net>
1618         * simple-object-xcoff.c (simple_object_xcoff_find_sections):
1619         Improve .go_export csect handling.  Don't make assumptions
1620         on containing section or number of auxiliary entries.
1622 2017-08-28  Richard Biener  <rguenther@suse.de>
1624         PR lto/81968
1625         * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
1626         Adjust field with for sh_type write, set SHF_EXCLUDE only for
1627         removed sections.
1629 2017-08-22  Richard Biener  <rguenther@suse.de>
1631         PR lto/81925
1632         * simple-object-elf.c (simple_object_elf_write_shdr): Adjust
1633         type of sh_addralign and sh_entsize and properly write
1634         sh_entsize as Elf_Addr.
1635         (simple_object_elf_write_to_file): Read sh_entsize as Elf_Addr.
1637 2017-08-21  Richard Biener  <rguenther@suse.de>
1639         * simple-object-common.h (struct simple_object_functions): Add
1640         copy_lto_debug_sections hook.
1641         * simple-object.c: Include fcntl.h.
1642         (handle_lto_debug_sections): New helper function.
1643         (simple_object_copy_lto_debug_sections): New function copying
1644         early LTO debug sections to regular debug sections in a new file.
1645         (simple_object_start_write): Handle NULL segment_name.
1646         * simple-object-coff.c (simple_object_coff_functions): Adjust
1647         for not implemented copy_lto_debug_sections hook.
1648         * simple-object-mach-o.c (simple_object_mach_o_functions): Likewise.
1649         * simple-object-xcoff.c (simple_object_xcoff_functions): Likewise.
1650         * simple-object-elf.c (SHT_NULL, SHT_SYMTAB, SHT_RELA, SHT_REL,
1651         SHT_GROUP): Add various sectopn header types.
1652         (SHF_EXCLUDE): Add flag.
1653         (Elf32_External_Sym, Elf64_External_Sym): Add symbol struct.
1654         (ELF_ST_BIND, ELF_ST_TYPE, ELF_ST_INFO): Add accessors.
1655         (STT_OBJECT, STT_FUNC, STT_TLS, STT_GNU_IFUNC): Add Symbol types.
1656         (STV_DEFAULT): Add symbol visibility.
1657         (SHN_COMMON): Add special section index name.
1658         (struct simple_object_elf_write): New.
1659         (simple_object_elf_start_write): Adjust for new private data.
1660         (simple_object_elf_write_shdr): Pass in values for all fields
1661         we write.
1662         (simple_object_elf_write_to_file): Adjust.  Copy from recorded
1663         section headers if requested.
1664         (simple_object_elf_release_write): Release private data.
1665         (simple_object_elf_copy_lto_debug_sections): Copy and rename sections
1666         as denoted by PFN and all their dependences, symbols and relocations
1667         to the empty destination file.
1668         (simple_object_elf_functions): Adjust for copy_lto_debug_sections hook.
1670 2017-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1672         * dwarfnames.c (DW_FIRST_IDX, DW_END_IDX, DW_IDX, DW_IDX_DUP): New.
1674 2017-06-07  Tony Reix  <tony.reix@atos.net>
1675             Matthieu Sarter  <matthieu.sarter.external@atos.net>
1676             David Edelsohn  <dje.gcc@gmail.com>
1678         * simple-object-xcoff.c (simple_object_xcoff_find_sections):
1679         Search symbol table for .go_export symbol and apply pfn if found.
1681 2017-05-31  DJ Delorie  <dj@redhat.com>
1683         * configure.ac (strnlen): Add to AC_CHECK_DECLS.
1684         * configure: Likewise.
1685         * config.in: Add HACE_DECL_STRNLEN.
1687 2017-05-27  Iain Buclaw  <ibuclaw@gdcproject.org>
1689         * d-demangle.c (dlang_identifier): Prefix mangled init symbols
1690         with `initializer for'.
1691         * testsuite/demangle-expected: Update tests.
1693 2017-05-27  Iain Buclaw  <ibuclaw@gdcproject.org>
1695         * d-demangle.c (dlang_call_convention_p): Move declaration
1696         before dlang_type.
1697         (dlang_type): Handle function types.
1698         * testsuite/d-demangle-expected: Add tests.
1700 2017-05-27  Iain Buclaw  <ibuclaw@gdcproject.org>
1702         * d-demangle.c (dlang_parse_real): Remove stack buffer, write
1703         the demangled hexadecimal directly to string.
1704         * testsuite/d-demangle-expected: Add tests.
1706 2017-05-24  Eli Zaretskii  <eliz@gnu.org>
1708         * waitpid.c (wait) [__MINGW32__]: Define as a macro
1709         that calls _cwait, so that this function works on MinGW.
1711 2017-05-02  Iain Buclaw  <ibuclaw@gdcproject.org>
1713         * d-demangle.c (dlang_hexdigit): New function.
1714         (ascii2hex): Remove function.
1715         (dlang_parse_string): Update to call dlang_hexdigit.
1716         * testsuite/d-demangle-expected: Add tests.
1718 2017-05-02  Iain Buclaw  <ibuclaw@gdcproject.org>
1720         * d-demangle.c (strtol): Remove declaration.
1721         Updated all callers to use dlang_number.
1722         (dlang_number): New function.
1723         (dlang_value): Moved check for ISDIGIT into dlang_parse_integer.
1724         * testsuite/d-demangle-expected: Add tests.
1726 2017-05-02  Iain Buclaw  <ibuclaw@gdcproject.org>
1728         * d-demangle.c (dlang_parse_symbol): Remove function.
1729         (dlang_parse_qualified): New function.
1730         (dlang_parse_mangle): New function.
1731         (dlang_type): Update to call dlang_parse_qualified.
1732         (dlang_identifier): Update to call either dlang_parse_qualified or
1733         dlang_parse_mangle.
1734         (dlang_type_modifier_p): Remove function.
1735         (dlang_call_convention_p): Don't allow type modifiers in mangle.
1736         (dlang_template_args): Update to call dlang_identifier.
1737         (dlang_demangle): Update to call dlang_parse_mangle.
1738         * testsuite/d-demangle-expected: Add tests.
1740 2017-05-01  Iain Buclaw  <ibuclaw@gdcproject.org>
1742         * d-demangle.c (dlang_value): Add comment explaining why cases for
1743         digits are required.
1744         * testsuite/d-demangle-expected: Update integer value tests.
1746 2017-05-01  Iain Buclaw  <ibuclaw@gdcproject.org>
1748         * d-demangle.c (dlang_parse_symbol): Skip over anonymous symbols.
1749         * testsuite/d-demangle-expected: Add tests.
1751 2017-05-01  Iain Buclaw  <ibuclaw@gdcproject.org>
1753         * d-demangle.c (dlang_identifier): Handle template constraint symbols.
1754         (dlang_parse_template): Only advance if template symbol prefix is
1755         followed by a digit.
1756         * testsuite/d-demangle-expected: Add tests.
1758 2017-05-01  Iain Buclaw  <ibuclaw@gdcproject.org>
1760         * d-demangle.c (dlang_attributes): Handle scope attributes.
1761         * testsuite/d-demangle-expected: Add tests.
1763 2017-04-27  Jonathan Wakely  <jwakely@redhat.com>
1765         PR demangler/80513
1766         * cp-demangle.c (d_number): Check for overflow.
1767         * cplus-dem.c (consume_count): Fix overflow check.
1768         (gnu_special): Check for underscore after thunk delta.
1769         * testsuite/demangle-expected: Add tests for overflows and invalid
1770         characters in thunks.
1772 2017-04-21  Mark Wielaard  <mark@klomp.org>
1774         * cp-demangle.c (MAX_RECURSION_COUNT): New constant.
1775         (struct d_print_info): Add recursion field.
1776         (d_print_init): Initialize recursion.
1777         (d_print_comp): Check and update d_print_info recursion depth.
1779 2017-04-21  Mark Wielaard  <mark@klomp.org>
1781         * cp-demangle.c (d_substitution): Return NULL if d_add_substitution
1782         fails.
1784 2017-04-21  Mark Wielaard  <mark@klomp.org>
1786         * cp-demangle.h (struct d_info): Remove did_subs field.
1787         * cp-demangle.c (struct d_info_checkpoint): Likewise.
1788         (d_template_param): Don't update did_subs.
1789         (d_substitution): Likewise.
1790         (d_checkpoint): Don't assign did_subs.
1791         (d_backtrack): Likewise.
1792         (cplus_demangle_init_info): Don't initialize did_subs.
1794 2017-03-27  Pedro Alves  <palves@redhat.com>
1796         * cp-demint.c (cplus_demangle_fill_component): Handle
1797         DEMANGLE_COMPONENT_RVALUE_REFERENCE.
1799 2017-03-12  Mark Wielaard  <mark@klomp.org>
1801         * cp-demangle.c (cplus_demangle_fill_name): Initialize
1802         demangle_component d_printing.
1803         (cplus_demangle_fill_extended_operator): Likewise.
1804         (cplus_demangle_fill_ctor): Likewise.
1805         (cplus_demangle_fill_dtor): Likewise.
1807 2017-03-08  Mark Wielaard  <mark@klomp.org>
1809         PR demangler/70909
1810         PR demangler/67264
1811         * cp-demangle.c: Fix endless recursion. Pass
1812         struct demangle_component as non const.
1813         (d_make_empty): Initialize variable.
1814         (d_print_comp_inner): Limit recursion.
1815         (d_print_comp): Decrement variable.
1816         * cp-demint.c (cplus_demangle_fill_component): Initialize
1817         variable.
1818         (cplus_demangle_fill_builtin_type): Likewise.
1819         (cplus_demangle_fill_operator): Likewise.
1820         * testsuite/demangle-expected: Add tests.
1822 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
1824         PR PR c++/70182
1825         * cp-demangle.c (d_unqualified_name): Handle "on" for
1826         operator names.
1827         * testsuite/demangle-expected: Add tests.
1829 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
1831         PR c++/77489
1832         * cp-demangle.c (d_discriminator): Handle discriminator >= 10.
1833         * testsuite/demangle-expected: Add tests for discriminator.
1835 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
1837         Update copyright years.
1839 2017-01-04  Alan Modra  <amodra@gmail.com>
1841         * Makefile.in (configure_deps): Update.
1842         * configure: Regenerate.
1844 2016-12-13  Jakub Jelinek  <jakub@redhat.com>
1846         PR c++/78761
1847         * cp-demangle.c (cplus_demangle_type): Demangle Dc as decltype(auto).
1848         * testsuite/demangle-expected: Add test for decltype(auto).
1850 2016-12-12  Nathan Sidwell  <nathan@acm.org>
1852         PR c++/78252
1853         * cp-demangle.c (struct d_print_info): Add is_lambda_arg field.
1854         (d_print_init): Initialize it.
1855         (d_print_comp_inner) <DEMANGLE_COMPONENT_TEMPLATE_PARAM>: Check
1856         is_lambda_arg for auto.
1857         <DEMANGLE_COMPONENT_REFERENCE,
1858         DEMANGLE_COMPONENT_RVALUE_REFERENCE>: Skip smashing check when
1859         is_lambda_arg.
1860         <DEMANGLE_COMPONENT_LAMBDA>: Increment is_lambda_arg around arg
1861         printing.
1862         * testsuite/demangle-expected: Add lambda auto mangling cases. 
1864 2016-12-06  DJ Delorie  <dj@redhat.com>
1866         * argv.c (expandargv): Check for directories passed as @-files.
1868 2016-11-30  David Malcolm  <dmalcolm@redhat.com>
1870         PR c/78498
1871         * strndup.c (strlen): Delete decl.
1872         (strnlen): Add decl.
1873         (strndup): Call strnlen rather than strlen.
1874         * xstrndup.c (xstrndup): Likewise.
1876 2016-11-29  Nathan Sidwell  <nathan@acm.org>
1878         * cp-demangle.c (d_print_comp_inner): Fix parameter indentation.
1880 2016-11-03  David Tolnay <dtolnay@gmail.com>
1881             Mark Wielaard  <mark@klomp.org>
1883         * Makefile.in (CFILES): Add rust-demangle.c.
1884         (REQUIRED_OFILES): Add rust-demangle.o.
1885         * cplus-dem.c (libiberty_demanglers): Add rust_demangling case.
1886         (cplus_demangle): Handle RUST_DEMANGLING.
1887         (rust_demangle): New function.
1888         * rust-demangle.c: New file.
1889         * testsuite/Makefile.in (really-check): Add check-rust-demangle.
1890         (check-rust-demangle): New rule.
1891         * testsuite/rust-demangle-expected: New file.
1893 2016-11-15  Mark Wielaard  <mark@klomp.org>
1895         * cp-demangle.c (d_expression_1): Make sure third expression
1896         exists for ?: and fold expressions.
1897         * testsuite/demangle-expected: Add examples of strings that could
1898         crash the demangler because of missing expression.
1900 2016-11-14  Mark Wielaard  <mark@klomp.org>
1902         * cplus-dem.c (demangle_signature): After 'H', template function,
1903         no success and don't advance position if end of string reached.
1904         (demangle_template): After 'z', template name, return zero on
1905         premature end of string.
1906         (gnu_special): Guard strchr against searching for zero characters.
1907         (do_type): If member, only advance mangled string when 'F' found.
1908         * testsuite/demangle-expected: Add examples of strings that could
1909         crash the demangler by reading past end of input.
1911 2016-11-06  Mark Wielaard  <mark@klomp.org>
1913         * configure.ac (ac_libiberty_warn_cflags): Add -Wshadow=local.
1914         * configure: Regenerated.
1916 2016-11-07  Jason Merrill  <jason@redhat.com>
1918         * cp-demangle.c (is_fnqual_component_type): New.
1919         (d_encoding, d_print_comp_inner, d_print_mod_list): Use it.
1920         (FNQUAL_COMPONENT_CASE): New.
1921         (d_make_comp, has_return_type, d_print_comp_inner)
1922         (d_print_function_type): Use it.
1923         (next_is_type_qual): New.
1924         (d_cv_qualifiers, d_print_mod): Handle noexcept and throw-spec.
1926 2016-11-02  Mark Wielaard  <mjw@redhat.com>
1928         * cplus-dem.c (demangle_signature): Move fall through comment.
1929         (demangle_fund_type): Add fall through comment between 'G' and 'I'.
1930         * hashtab.c (iterative_hash): Add fall through comments.
1931         * regex.c (regex_compile): Add Fall through comment after '+'/'?'.
1932         (byte_re_match_2_internal): Add Fall through comment after jump_n.
1933         Change "Note fall through" to "Fall through".
1934         (common_op_match_null_string_p): Return false after set_number_at
1935         instead of fall through.
1937 2016-11-01  Jason Merrill  <jason@redhat.com>
1939         * cp-demangle.c (d_ctor_dtor_name): Handle inheriting constructor.
1941 2016-10-31  Mark Wielaard  <mjw@redhat.com>
1943         * cplus-dem.c (ada_demangle): Initialize demangled to NULL and
1944         XDELETEVEC demangled when unknown.
1946 2016-09-19  Andrew Stubbs  <ams@codesourcery.com>
1948         * pex-win32.c (argv_to_cmdline): Quote zero-length parameters.
1949         * testsuite/test-pexecute.c (main): Insert check for zero-length parameters.
1951 2016-09-10  Mark Wielaard  <mjw@redhat.com>
1953         * cp-demangle.c (d_substitution): Change struct demangle_component
1954         variable name from c to dc.
1956 2016-08-12  Marek Polacek  <polacek@redhat.com>
1958         PR c/7652
1959         * cp-demangle.c (d_print_mod): Add FALLTHRU.
1961 2016-08-04  Marcel Böhme  <boehme.marcel@gmail.com>
1963         PR c++/71696
1964         * cplus-dem.c: Prevent infinite recursion when there is a cycle
1965         in the referencing of remembered mangled types.
1966         (work_stuff): New stack to keep track of the remembered mangled
1967         types that are currently being processed.
1968         (push_processed_type): New method to push currently processed
1969         remembered type onto the stack.
1970         (pop_processed_type): New method to pop currently processed
1971         remembered type from the stack.
1972         (work_stuff_copy_to_from): Copy values of new variables.
1973         (delete_non_B_K_work_stuff): Free stack memory.
1974         (demangle_args): Push/Pop currently processed remembered type.
1975         (do_type): Do not demangle a cyclic reference and push/pop
1976         referenced remembered type.
1978 2016-07-29  Aldy Hernandez  <aldyh@redhat.com>
1980         * make-relative-prefix.c (make_relative_prefix_1): Fall back to
1981         malloc if alloca argument is greater than MAX_ALLOCA_SIZE.
1983 2016-07-15  Jason Merrill  <jason@redhat.com>
1985         * cp-demangle.c (cplus_demangle_operators): Add f[lrLR].
1986         (d_expression_1): Handle them.
1987         (d_maybe_print_fold_expression): New.
1988         (d_print_comp_inner): Use it.
1989         (d_index_template_argument): Handle negative index.
1991         * cp-demangle.c (cplus_demangle_operators): Add sP and sZ.
1992         (d_print_comp_inner): Handle them.
1993         (d_template_args_1): Split out from d_template_args.
1994         (d_args_length): New.
1996 2016-07-13  Marcel Böhme  <boehme.marcel@gmail.com>
1998         PR c++/70926
1999         * cplus-dem.c: Handle large values and overflow when demangling
2000         length variables.
2001         (demangle_template_value_parm): Read only until end of mangled string.
2002         (do_hpacc_template_literal): Likewise.
2003         (do_type): Handle overflow when demangling array indices.
2005 2016-06-12  Brooks Moses  <bmoses@google.com>
2007         * cp-demangle.c (cplus_demangle_print_callback): Avoid zero-length
2008         VLAs.
2010 2016-05-31  Alan Modra  <amodra@gmail.com>
2012         * xmemdup.c (xmemdup): Use xmalloc rather than xcalloc.
2014 2016-05-19  Jakub Jelinek  <jakub@redhat.com>
2016         PR c++/70498
2017         * cp-demangle.c (d_expression_1): Formatting fix.
2019 2016-05-18  Artemiy Volkov  <artemiyv@acm.org>
2021         * cplus-dem.c (enum type_kind_t): Add tk_rvalue_reference
2022         constant.
2023         (demangle_template_value_parm): Handle tk_rvalue_reference
2024         type kind.
2025         (do_type): Support 'O' type id (rvalue references).
2027         * testsuite/demangle-expected: Add tests.
2029 2016-05-02  Marcel Böhme  <boehme.marcel@gmail.com>
2031         PR c++/70498
2032         * cp-demangle.c: Parse numbers as integer instead of long to avoid
2033         overflow after sanity checks. Include <limits.h> if available.
2034         (INT_MAX): Define if necessary.
2035         (d_make_template_param): Takes integer argument instead of long.
2036         (d_make_function_param): Likewise.
2037         (d_append_num): Likewise.
2038         (d_identifier): Likewise.
2039         (d_number): Parse as and return integer.
2040         (d_compact_number): Handle overflow.
2041         (d_source_name): Change variable type to integer for parsed number.
2042         (d_java_resource): Likewise.
2043         (d_special_name): Likewise.
2044         (d_discriminator): Likewise.
2045         (d_unnamed_type): Likewise.
2046         * testsuite/demangle-expected: Add regression test cases.
2048 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
2050         * configure: Remove SH5 support.
2052 2016-04-08  Marcel Böhme  <boehme.marcel@gmail.com>
2054         PR c++/69687
2055         * cplus-dem.c: Include <limits.h> if available.
2056         (INT_MAX): Define if necessary.
2057         (remember_type, remember_Ktype, register_Btype, string_need):
2058         Abort if we detect cases where we the size of the allocation would
2059         overflow.
2061         PR c++/70492
2062         * cplus-dem.c (gnu_special): Handle case where consume_count returns
2063         -1.
2065 2016-03-31  Mikhail Maltsev  <maltsevm@gmail.com>
2066             Marcel Bohme  <boehme.marcel@gmail.com>
2068         PR c++/67394
2069         PR c++/70481
2070         * cplus-dem.c (squangle_mop_up): Zero bsize/ksize after freeing
2071         btypevec/ktypevec.
2072         * testsuite/demangle-expected: Add coverage tests.
2074 2016-01-27  Iain Buclaw  <ibuclaw@gdcproject.org>
2076         * d-demangle.c (dlang_call_convention): Handle extern Objective-C
2077         function calling convention.
2078         (dlang_call_convention_p): Likewise.
2079         (dlang_type): Likewise.
2080         * testsuite/d-demangle-expected: Add coverage tests.
2082 2016-01-27  Iain Buclaw  <ibuclaw@gdcproject.org>
2084         * d-demangle.c (dlang_function_args): Append ',' for variadic functions
2085         only if parameters were seen before the elipsis symbol.
2086         * testsuite/d-demangle-expected: Add coverage test for parameter-less
2087         variadic functions.
2089 2016-01-27  Iain Buclaw  <ibuclaw@gdcproject.org>
2091         * d-demangle.c (dlang_type): Handle function types only in the context
2092         of seeing a pointer type symbol.
2093         * testsuite/d-demangle-expected: Update function pointer tests.
2095 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
2097         * argv.c (dupargv): Change arg to char * const *.  Update comment.
2098         (writeargv, countargv): Likewise.
2099         * functions.texi (dupargv, writeargv, countargv): Likewise.
2101 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
2103         * argv.c (dupargv): Replace strlen/xmalloc/strcpy with xstrdup.
2105 2015-12-28  Patrick Palka  <ppalka@gcc.gnu.org>
2107         * crc32.c: In the documentation, don't refer to GDB's
2108         now-nonexistent crc32 implementation.  In the table-generation
2109         program embedded within the documentation, change the type of
2110         the induction variables i and j from int to unsigned int, to
2111         avoid undefined behavior.
2113 2015-12-21  Nick Clifton  <nickc@redhat.com>
2115         PR 66827
2116         * regex.c (EXTRACT_NUMBER): Cast sign byte to unsigned before left
2117         shifting.
2119 2015-11-27  Pedro Alves  <palves@redhat.com>
2121         PR other/61321
2122         PR other/61233
2123         * cp-demangle.c (d_demangle_callback, d_make_comp): Handle
2124         DEMANGLE_COMPONENT_CONVERSION.
2125         (is_ctor_dtor_or_conversion): Handle DEMANGLE_COMPONENT_CONVERSION
2126         instead of DEMANGLE_COMPONENT_CAST.
2127         (d_operator_name): Return a DEMANGLE_COMPONENT_CONVERSION
2128         component if handling a conversion.
2129         (d_count_templates_scopes, d_print_comp_inner): Handle
2130         DEMANGLE_COMPONENT_CONVERSION.
2131         (d_print_comp_inner): Handle DEMANGLE_COMPONENT_CONVERSION instead
2132         of DEMANGLE_COMPONENT_CAST.
2133         (d_print_cast): Rename as ...
2134         (d_print_conversion): ... this.  Adjust comments.
2135         (d_print_cast): Rewrite - simply print the left subcomponent.
2136         * cp-demint.c (cplus_demangle_fill_component): Handle
2137         DEMANGLE_COMPONENT_CONVERSION.
2139         * testsuite/demangle-expected: Add tests.
2141 2015-11-12  Mike Stump  <mikestump@comcast.net>
2143         * Makefile.in (etags tags TAGS): Use && instead of ;.
2145 2015-11-09  Alan Modra  <amodra@gmail.com>
2147         * configure.ac: Check size of size_t.
2148         * configure: Regenerate.
2149         * config.in: Regenerate.
2151 2015-11-09  Alan Modra  <amodra@gmail.com>
2153         * obstack.c (_obstack_newchunk): Silence -Wc++compat warning.
2154         (_obstack_begin_worker): Likewise.  Move assignment to h->chunk
2155         after alloc failure check.
2157 2015-11-09  Alan Modra  <amodra@gmail.com>
2159         PR gdb/17133
2160         * obstack.c (__alignof__): Expand alignof_type from alignof.h.
2161         (obstack_exit_failure): Don't use exitfail.h.
2162         (_): Include libintl.h when HAVE_LIBINTL_H and nls enabled.
2163         Provide default.  Don't include gettext.h.
2164         (_Noreturn): Define.
2165         * obstacks.texi: Adjust node references to external libc info files.
2167 2015-11-09  Alan Modra  <amodra@gmail.com>
2169         PR gdb/17133
2170         * obstack.c: Import current gnulib file.
2171         * obstacks.texi: Updated doc, from glibc's manual/memory.texi.
2173 2015-11-06  Joel Brobecker  <brobecker@adacore.com>
2175         * configure.ac: Set AC_CV_FUNC_GETPAGESIZE to "yes" on
2176         Android hosts.
2177         * configure: Regenerate.
2179 2015-10-28  Jason Merrill  <jason@redhat.com>
2181         * Makefile.in (TAGS): Fix for separate build directory.
2183 2015-10-18  Roland McGrath  <roland@gnu.org>
2184             Iain Sandoe  <iain@codesourcery.com>
2186         PR other/63758
2187         * pex-unix.c: Obtain the environment interface from settings in
2188         environ.h rather than in-line code.  Update copyright date.
2189         * setenv.c: Likewise.
2190         * xmalloc.c: Likewise.
2192 2015-09-30  Jason Merrill  <jason@redhat.com>
2194         * cp-demangle.c (d_cv_qualifiers): Dx means transaction_safe.
2195         (cplus_demangle_type): Let d_cv_qualifiers handle it.
2196         (d_dump, d_make_comp, has_return_type, d_encoding)
2197         (d_count_templates_scopes, d_print_comp_inner)
2198         (d_print_mod_list, d_print_mod, d_print_function_type)
2199         (is_ctor_or_dtor): Handle DEMANGLE_COMPONENT_TRANSACTION_SAFE.
2201 2015-08-15  Ian Lance Taylor  <iant@google.com>
2203         * cp-demangle.c (d_abi_tags): Preserve di->last_name across any
2204         ABI tags.
2206 2015-08-11  Iain Buclaw  <ibuclaw@gdcproject.org>
2208         * d-demangle.c (dlang_parse_real): Remove call to strtod.
2209         (strtod): Remove declaration.
2210         * testsuite/d-demangle-expected: Update float and complex literal
2211         tests to check correct hexadecimal demangling.
2213 2015-07-13  Mikhail Maltsev  <maltsevm@gmail.com>
2215         * cp-demangle.c (d_dump): Fix syntax error.
2216         (d_identifier): Adjust type of len to match d_source_name.
2217         (d_expression_1): Fix out-of-bounds access.  Check code variable for
2218         NULL before dereferencing it.
2219         (d_find_pack): Do not recurse for FIXED_TYPE, DEFAULT_ARG and NUMBER.
2220         (d_print_comp_inner): Add NULL pointer check.
2221         * cp-demangle.h (d_peek_next_char): Define as inline function when
2222         CHECK_DEMANGLER is defined.
2223         (d_advance): Likewise.
2224         * testsuite/demangle-expected: Add new testcases.
2226 2015-07-09  Uros Bizjak  <ubizjak@gmail.com>
2228         * getruntime.c (RUSAGE_SELF): Define if not already defined.
2229         (get_runtime): Use RUSAGE_SELF as argument 1 of getrusage call.
2231 2015-06-01  Jason Merrill  <jason@redhat.com>
2233         * cp-demangle.c (cplus_demangle_type): Handle arguments to vendor
2234         extended qualifier.
2236 2015-05-22  Yunlian Jiang  <yunlian@google.com>
2238         * configure.ac: Add AC_GNU_SOURCE.
2239         * Makefile.in (COMPILE.c): Add -D_GNU_SOURCE.
2240         * configure, config.in: Rebuild.
2241         * floatformat.c (_GNU_SOURCE): Don't define if already defined.
2243 2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
2245         * d-demangle.c (dlang_symbol_kinds): New enum.
2246         (dlang_parse_symbol): Update signature.  Handle an ambiguity between
2247         pascal functions and template value arguments.  Only check for a type
2248         if parsing a function, or at the top level.  Return failure if the
2249         entire symbol was not successfully demangled.
2250         (dlang_identifier): Update signature.  Handle an ambiguity between two
2251         adjacent digits in a mangled symbol string.
2252         (dlang_type): Update call to dlang_parse_symbol.
2253         (dlang_template_args): Likewise.
2254         (dlang_parse_template): Likewise.
2255         (dlang_demangle): Likewise.
2256         * testsuite/d-demangle-expected: Fix bad tests found, and add problematic
2257         examples to the unittests.
2259 2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
2261         * d-demangle.c (dlang_template_args): Skip over specialized template
2262         parameters in mangled symbol.
2263         * testsuite/d-demangle-expected: Add coverage and unittest for specialized
2264         template parameters.
2266 2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
2268         * d-demangle.c (dlang_type): Handle cent and ucent types.
2269         * testsuite/d-demangle-expected: Add coverage tests for cent and ucent.
2271 2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
2273         * d-demangle.c (dlang_attributes): Handle return attributes, ignoring
2274         return parameters in the mangled string.  Return NULL if have encountered
2275         an unknown attribute.
2276         (dlang_function_args): Handle return parameters in the mangled string.
2277         * testsuite/d-demangle-expected: Add coverage tests for functions with
2278         return parameters and return attributes.
2280 2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
2282         * d-demangle.c (dlang_identifier): Check encoded length of identifier
2283         to verify strncmp matches entire string.
2284         * testsuite/d-demangle-expected: Fix wrong test for postblit symbol.
2286 2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
2288         * d-demangle.c (dlang_type_modifiers): New function.
2289         (dlang_type_modifier_p): New function.
2290         (dlang_call_convention_p): Ignore any kind of type modifier.
2291         (dlang_type): Handle and emit the type modifier after delegate types.
2292         (dlang_parse_symbol): Handle and emit the type modifier after the symbol.
2293         * testsuite/d-demangle-expected: Add coverage tests for all valid
2294         usages of function symbols with type modifiers.
2296 2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
2298         * d-demangle.c (dlang_call_convention): Return NULL if have reached the
2299         end of the symbol, but expected something to read.
2300         (dlang_attributes): Likewise.
2301         (dlang_function_type): Likewise.
2302         (dlang_type): Likewise.
2303         (dlang_identifier): Likewise.
2304         (dlang_value): Likewise.
2306 2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
2308         * d-demangle.c (dlang_parse_string): Represent embedded whitespace or
2309         non-printable characters as hex or escape sequences.
2310         * testsuite/d-demangle-expected: Add test for templates with tabs and
2311         newlines embedded into the signature.
2313 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
2315         * mkstemps.c: #include <time.h> if HAVE_TIME_H is defined
2316         but not HAVE_SYS_TIME_H.
2318 2015-04-22  Eli Zaretskii  <eliz@gnu.org>
2320         * setenv.c <environ>: Declare only if not a macro.
2322 2015-04-14  Max Ostapenko  <m.ostapenko@partner.samsung.com>
2324         * testsuite/Makefile.in (LIBCFLAGS): Add LDFLAGS.
2326 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
2327             Iain Sandoe  <iain@codesourcery.com>
2329         PR target/65351
2330         * configure: Regenerate.
2332 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
2333             Iain Sandoe  <iain@codesourcery.com>
2335         PR target/65351
2336         * configure: Regenerate.
2338 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
2340         * strerror.c <sys_nerr, sys_errlist>: Declare only if they aren't
2341         macros.
2343 2014-12-24  Uros Bizjak  <ubizjak@gmail.com>
2344             Ben Elliston  <bje@au.ibm.com>
2345             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2347         * xasprintf.c: New file.
2348         * Makefile.in (CFILES): Add xasprintf.c.
2349         (REQUIRED_OFILES): Add xasprintf.$(objext).
2350         (xasprintf.$(objext)): New target.
2351         * functions.texi: Regenerate.
2353 2014-12-11  Uros Bizjak  <ubizjak@gmail.com>
2354             Ben Elliston  <bje@au.ibm.com>
2355             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2357         * xvasprintf.c: New file.
2358         * vprintf-support.h: Likewise.
2359         * vprintf-support.c: Likewise.
2360         * Makefile.in (CFILES): Add vprintf-support.c, xvasprintf.c.
2361         (REQUIRED_OFILES): Add vprintf-support.$(objext), xvasprintf.$(objext).
2362         (vprintf-support.$(objext), xvasprintf.$(objext)): New targets.
2363         (vasprintf.$(objext)): Depend on $(srcdir)/vprintf-support.h.
2364         * functions.texi: Regenerate.
2365         * vasprintf.c (int_vasprintf): Use libiberty_vprintf_buffer_size.
2367 2014-11-22  John David Anglin  <danglin@gcc.gnu.org>
2369         PR other/63694
2370         * configure.ac: Check for strtol, strtoul, strtoll and strtoull
2371         declarations.
2372         * configure: Regenerated.
2374 2014-11-12  Kirill Yukhin  <kirill.yukhin@intel.com>
2376         * testsuite/test-strtol.c (run_tests): Cast strtol return to
2377         unsigned long.
2379 2014-11-11  Anthony Brandon  <anthony.brandon@gmail.com>
2380             Manuel López-Ibáñez  <manu@gcc.gnu.org>
2382         PR driver/36312
2383         * filename_cmp.c (canonical_filename_eq): New function to check if
2384         file names are the same.
2385         * functions.texi: Updated with documentation for new function.
2387 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
2389         * ChangeLog.jit: New.
2391 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2393         * sigsetmask.c (_POSIX_SOURCE): Remove.
2395 2014-10-28  Yury Gribov  <y.gribov@samsung.com>
2397         * strtoll.c: New file.
2398         * strtoull.c: New file.
2399         * configure.ac: Add long long checks.  Add harness for strtoll and
2400         strtoull.  Check decls for strtol, strtoul, strtoll, strtoull.
2401         * Makefile.in (CFILES, CONFIGURED_OFILES): Add strtoll and strtoull.
2402         * config.in: Regenerate.
2403         * configure: Regenerate.
2404         * functions.texi: Regenerate.
2405         * testsuite/Makefile.in (check-strtol): New rule.
2406         (test-strtol): Likewise.
2407         (mostlyclean): Clean up strtol test.
2408         * testsuite/test-strtol.c: New test.
2410 2014-10-15  David Malcolm  <dmalcolm@redhat.com>
2412         * choose-temp.c (choose_tmpdir): Remove now-redundant local
2413         copy of prototype.
2414         * functions.texi: Regenerate.
2415         * make-temp-file.c (choose_tmpdir): Convert return type from
2416         char * to const char * - given that this returns a pointer to
2417         a memoized allocation, the caller must not touch it.
2419 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
2421         * d-demangle.c: Replace strtold with strtod in global comment.
2422         (strtold): Remove declaration.
2423         (strtod): New declaration.
2424         (dlang_parse_real): Declare value as double instead of long
2425         double.  Replace call to strtold by call to strtod.
2426         Update format in call to snprintf.
2428 2014-09-26  Jason Merrill  <jason@redhat.com>
2430         * cp-demangle.c (d_substitution): Handle abi tags on abbreviation.
2432 2014-09-26  Max Ostapenko  <m.ostapenko@partner.samsung.com>
2434         * pex-common.h (struct pex_funcs): Add new parameter for open_write field.
2435         * pex-unix.c (pex_unix_open_write): Add support for new parameter.
2436         * pex-djgpp.c (pex_djgpp_open_write): Likewise.
2437         * pex-win32.c (pex_win32_open_write): Likewise.
2438         * pex-common.c (pex_run_in_environment): Likewise.
2440 2014-09-23  Iain Buclaw  <ibuclaw@gdcproject.org>
2442         * Makefile.in (CFILES): Add d-demangle.c.
2443         (REQUIRED_OFILES): Add d-demangle.o.
2444         * cplus-dem.c (libiberty_demanglers): Add dlang_demangling case.
2445         (cplus_demangle): Likewise.
2446         * d-demangle.c: New file.
2447         * testsuite/Makefile.in (really-check): Add check-d-demangle.
2448         * testsuite/d-demangle-expected: New file.
2450 2014-09-19  Ian Lance Taylor  <iant@google.com>
2452         * simple-object-elf.c (simple_object_elf_write_ehdr): Correctly
2453         handle objects with more than SHN_LORESERVE sections.
2454         (simple_object_elf_write_shdr): Add sh_link parameter.
2455         (simple_object_elf_write_to_file): Correctly handle objects with
2456         more than SHN_LORESERVE sections.
2458 2014-08-29  Andrew Burgess  <aburgess@broadcom.com>
2460         * cp-demangle.c (d_dump): Only access field from s_fixed part of
2461         the union for DEMANGLE_COMPONENT_FIXED_TYPE.
2462         (d_count_templates_scopes): Likewise.
2464 2014-08-13  Gary Benson  <gbenson@redhat.com>
2466         * testsuite/demangler-fuzzer.c: New file.
2467         * testsuite/Makefile.in (fuzz-demangler): New rule.
2468         (demangler-fuzzer): Likewise.
2469         (mostlyclean): Clean up demangler fuzzer.
2471 2014-06-11  Andrew Burgess  <aburgess@broadcom.com>
2473         * cplus-dem.c (do_type): Call string_delete even if the call to
2474         demangle_template fails.
2476 2014-06-01  Ray Donnelly  <mingw.android@gmail.com>
2478         * pex-win32.c (argv_to_cmdline): Don't quote
2479         args unnecessarily
2481 2014-05-28  Pedro Alves  <palves@redhat.com>
2483         * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM
2484         and DEMANGLE_COMPONENT_NUMBER.
2486 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
2488         * testsuite/demangle-expected: Fix last commit.
2490 2014-05-14  Andrew Burgess  <aburgess@broadcom.com>
2492         * cplus-dmem.c (internal_cplus_demangle): Free any resources
2493         allocated by possible previous call to gnu_special.
2494         (squangle_mop_up): Reset pointers to NULL after calling free.
2495         * testsuite/demangle-expected: New test case.
2497 2014-05-08  Gary Benson  <gbenson@redhat.com>
2499         * cp-demangle.c (struct d_component_stack): New structure.
2500         (struct d_print_info): New field component_stack.
2501         (d_print_init): Initialize the above.
2502         (d_print_comp_inner): Renamed from d_print_comp.
2503         Do not restore template stack if it would cause a loop.
2504         (d_print_comp): New function.
2505         * testsuite/demangle-expected: New test cases.
2507 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
2509         PR sanitizer/56781
2510         * maint-tool: Also emit rule for noasan/ subdirectory.
2511         * configure.ac (NOASANFLAG): Set and substitute.
2512         * Makefile.in: Regenerated.
2513         (NOASANFLAG): Set.
2514         (all, $(TARGETLIB), mostlyclean): Handle noasan subdir like pic
2515         subdir.
2516         (stamp-noasandir): New goal.
2517         * configure: Regenerated.
2519 2014-04-01  Richard Biener  <rguenther@suse.de>
2521         * simple-object.c (simple_object_internal_write): Handle
2522         EINTR and short writes.
2524 2014-03-28  Richard Biener  <rguenther@suse.de>
2526         * simple-object.c (simple_object_internal_read): Handle
2527         EINTR and short reads.
2529 2014-03-13  Uros Bizjak  <ubizjak@gmail.com>
2531         * regex.c (bzero) [!_LIBC]: Define without coma expression.
2532         (regerror): Cast the call to memcpy to (void) to avoid unused
2533         value warnings.
2535 2014-01-28  Thomas Schwinge  <thomas@codesourcery.com>
2537         * cp-demangle.c (d_demangle_callback): Put an abort call in place,
2538         to help the compiler.
2540 2014-01-21  Tom Tromey  <tromey@redhat.com>
2542         * _doprint.c (checkit): Use stdarg, not VA_* macros.
2543         * asprintf.c (asprintf): Use stdarg, not VA_* macros.
2544         * concat.c (concat_length, concat_copy, concat_copy2, concat)
2545         (reconcat): Use stdarg, not VA_* macros.
2546         * snprintf.c (snprintf): Use stdarg, not VA_* macros.
2547         * vasprintf.c (checkit): Use stdarg, not VA_* macros.
2548         * vsnprintf.c (checkit): Use stdarg, not VA_* macros.
2550 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
2552         PR other/56780
2553         * configure.ac: Delete target_header_dir assignment.
2554         * configure: Regenerated.
2556 2014-01-06  Gary Benson  <gbenson@redhat.com>
2558         * cp-demangle.c (struct d_print_info): New fields
2559         next_saved_scope, copy_templates, next_copy_template and
2560         num_copy_templates.
2561         (d_count_templates): New function.
2562         (d_print_init): New parameter "dc".
2563         Estimate numbers of templates and scopes required.
2564         (d_print_free): Removed function.
2565         (cplus_demangle_print_callback): Allocate stack for
2566         templates and scopes.  Removed call to d_print_free.
2567         (d_copy_templates): Removed function.
2568         (d_save_scope): New function.
2569         (d_get_saved_scope): Likewise.
2570         (d_print_comp): Replace state saving/restoring code with
2571         calls to d_save_scope and d_get_saved_scope.
2573 2013-12-23  Bill Maddox  <maddox@google.com>
2575         * cp-demangle.c (cplus_demangle_fill_ctor,cplus_demangle_fill_dtor):
2576         Handle unified ctor/dtor.
2577         (d_ctor_dtor_name): Handle unified ctor/dtor.
2579 2013-11-22  Cary Coutant  <ccoutant@google.com>
2580     
2581         PR other/59195
2582         * cp-demangle.c (struct d_info_checkpoint): New struct.
2583         (struct d_print_info): Add current_template field.
2584         (d_operator_name): Set flag when processing a conversion
2585         operator.
2586         (cplus_demangle_type): When processing <template-args> for
2587         a conversion operator, backtrack if necessary.
2588         (d_expression_1): Renamed from d_expression.
2589         (d_expression): New wrapper around d_expression_1.
2590         (d_checkpoint): New function.
2591         (d_backtrack): New function.
2592         (d_print_init): Initialize current_template.
2593         (d_print_comp): Set current_template.
2594         (d_print_cast): Put current_template in scope for
2595         printing conversion operator name.
2596         (cplus_demangle_init_info): Initialize is_expression and
2597         is_conversion.
2598         * cp-demangle.h (struct d_info): Add is_expression and
2599         is_conversion fields.
2600         * testsuite/demangle-expected: New test cases.
2602 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
2604         * configure: Regenerate.
2606 2013-11-12  Uros Bizjak  <ubizjak@gmail.com>
2608         * cp-demangle.c (d_copy_templates): Cast result of malloc
2609         to (struct d_print_template *).
2610         (d_print_comp): Cast result of realloc to (struct d_saved scope *).
2612 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
2614         PR tree-optimization/58689
2615         * concat.c: Remove note about xmalloc.
2617 2013-10-27  Gerald Pfeifer  <gerald@pfeifer.com>
2619         * testsuite/test-demangle.c: Include unistd.h.
2621 2013-10-25  Gary Benson  <gbenson@redhat.com>
2623         * cp-demangle.c (struct d_saved_scope): New structure.
2624         (struct d_print_info): New fields saved_scopes and
2625         num_saved_scopes.
2626         (d_print_init): Initialize the above.
2627         (d_print_free): New function.
2628         (cplus_demangle_print_callback): Call the above.
2629         (d_copy_templates): New function.
2630         (d_print_comp): New variables saved_templates and
2631         need_template_restore.
2632         [DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_RVALUE_REFERENCE]:
2633         Capture scope the first time the component is traversed, and use the
2634         captured scope for subsequent traversals.
2635         * testsuite/demangle-expected: Add regression test.
2637 2013-10-23  Gerald Pfeifer  <gerald@pfeifer.com>
2639         * testsuite/test-expandargv.c: Include unistd.h.
2641 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
2643         * configure.ac: If --enable-host-shared, use -fPIC.
2644         * configure: Regenerate.
2646 2013-10-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
2648         * cp-demangle.c (d_name): Demangle local-source-names.
2649         * testsuite/demangle-expected: New test.
2651 2013-09-10  Paolo Carlini  <paolo.carlini@oracle.com>
2653         PR bootstrap/58386
2654         Revert:
2656         2013-09-10  Gary Benson  <gbenson@redhat.com>
2658         * cp-demangle.c: Include hashtab.h.
2659         (struct d_print_info): New field saved_scopes.
2660         (d_print_init): Initialize the above.
2661         (d_print_free): New function.
2662         (cplus_demangle_print_callback): Call the above.
2663         (struct d_saved_scope): New structure.
2664         (d_store_scope): New function.
2665         (d_free_scope) Likewise.
2666         (d_restore_scope) Likewise.
2667         (d_hash_saved_scope) Likewise.
2668         (d_equal_saved_scope) Likewise.
2669         (d_print_comp): New variable saved_scope.
2670         [DEMANGLE_COMPONENT_REFERENCE,
2671         DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
2672         time the component is traversed, and use the captured scope for
2673         subsequent traversals.
2674         * testsuite/demangle-expected: Add regression test.
2676 2013-09-10  Gary Benson  <gbenson@redhat.com>
2678         * cp-demangle.c: Include hashtab.h.
2679         (struct d_print_info): New field saved_scopes.
2680         (d_print_init): Initialize the above.
2681         (d_print_free): New function.
2682         (cplus_demangle_print_callback): Call the above.
2683         (struct d_saved_scope): New structure.
2684         (d_store_scope): New function.
2685         (d_free_scope) Likewise.
2686         (d_restore_scope) Likewise.
2687         (d_hash_saved_scope) Likewise.
2688         (d_equal_saved_scope) Likewise.
2689         (d_print_comp): New variable saved_scope.
2690         [DEMANGLE_COMPONENT_REFERENCE,
2691         DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
2692         time the component is traversed, and use the captured scope for
2693         subsequent traversals.
2694         * testsuite/demangle-expected: Add regression test.
2696 2013-08-20  Alan Modra  <amodra@gmail.com>
2698         * floatformat.c (floatformat_ibm_long_double): Rename to..
2699         (floatformat_ibm_long_double_big): ..this.
2700         (floatformat_ibm_long_double_little): New.
2702 2013-07-09  Tristan Gingold  <gingold@adacore.com>
2704         * makefile.vms (OBJS): Add dwarfnames.obj
2706 2013-05-31  Matt Burgess <matthew@linuxfromscratch.org>
2708         PR other/56780
2709         * configure.ac: Move test for --enable-install-libiberty
2710         outside of the 'with_target_subdir' test so that it actually gets
2711         run.  Add output messages to show the test result.
2712         * configure: Regenerate.
2713         * Makefile.in (install_to_libdir): Place the
2714         installation of the libiberty library in the same guard as that
2715         used for the headers to prevent it being installed unless
2716         requested via --enable-install-libiberty.
2718 2013-05-06  David Edelsohn  <dje.gcc@gmail.com>
2719             Peter Bergner  <bergner@vnet.ibm.com>
2720             Segher Boessenkool  <segher@kernel.crashing.org>
2721             Jakub Jelinek  <jakub@redhat.com>
2723         * hashtab.c (hash_pointer): Remove conditional and avoid
2724         unexecuted shift equal to wordsize.
2726 2013-04-22  Andi Kleen  <ak@linux.intel.com>
2728         * hashtab.c (hash_pointer): Move to end of file and reimplement.
2730 2013-04-03  Jason Merrill  <jason@redhat.com>
2732         * cp-demangle.c (cplus_demangle_type): Fix function quals.
2733         (d_pointer_to_member_type): Simplify.
2735         Demangle C++11 ref-qualifier.
2736         * cp-demangle.c (d_ref_qualifier): New.
2737         (d_nested_name, d_function_type): Use it.
2738         (d_parmlist): Don't get confused by a ref-qualifier.
2739         (cplus_demangle_type): Reorder ref-qualifier.
2740         (d_pointer_to_member_type): Likewise.
2741         (d_dump): Handle DEMANGLE_COMPONENT_REFERENCE_THIS and
2742         DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS.
2743         (d_make_comp, has_return_type, d_encoding): Likewise.
2744         (d_print_comp, d_print_mod_list, d_print_mod): Likewise.
2745         (d_print_function_type, is_ctor_or_dtor): Likewise.
2747 2013-03-27  Kai Tietz  <ktietz@redhat.com>
2749         * configure: Regenerated.
2751 2013-03-06  Tobias Burnus  <burnus@net-b.de>
2753         * libiberty.texi: Update comment, remove lowersections.
2754         * obstacks.texi: Regenerate.
2756 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
2758         PR middle-end/56526
2759         * simple-object-mach-o.c (simple_object_mach_o_segment): Initialize
2760         wrapper_sect_offset to avoid a warning.
2762 2013-03-01  Andreas Schwab  <schwab@linux-m68k.org>
2764         * obstacks.texi (Obstacks): Trim @node to only contain the
2765         node name.
2766         * libiberty.texi (Obstacks): Lower section.
2768 2013-02-14  Jason Merrill  <jason@redhat.com>
2770         * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DEFAULT_ARG.
2771         (d_print_comp): Likewise.
2773 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
2775         PR other/56245
2776         * regex.c (PTR_INT_TYPE): Define.
2777         (EXTEND_BUFFER): Change incr type from int to PTR_INT_TYPE.
2779 2013-01-31  Kai Tietz  <ktietz@redhat.com>
2781         PR other/54620
2782         * sha1.c (sha1_process_block):  Handle case that size_t is
2783         a wider-integer-scalar as a 32-bit unsigned integer.
2785         PR other/53413
2786         * md5.c (md5_process_block):  Handle case that size_t is
2787         a wider-integer-scalar a 32-bit unsigned integer.
2789 2013-01-04  Ian Lance Taylor  <iant@google.com>
2791         PR other/54800
2792         * simple-object-mach-o.c (simple_object_mach_o_segment): Don't
2793         bother to zero out a buffer we are about to set anyhow.
2795 2013-01-01  David Edelsohn  <dje.gcc@gmail.com>
2797         * simple-object-xcoff.c: New file.
2798         * Makefile.in: Add it to build machinery.
2799         * simple-object-common.h (simple_object_xcoff_functions): Declare.
2800         * simple-object.c (format_functions): Add
2801         simple_object_xcoff_functions.
2803 2012-11-10  Jason Merrill  <jason@redhat.com>
2805         * cp-demangle.c (d_unqualified_name): Handle abi tags here.
2806         (d_name): Not here.
2808 2012-11-09  Jason Merrill  <jason@redhat.com>
2810         * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_TAGGED_NAME.
2811         (d_make_comp, d_find_pack, d_print_comp): Likewise.
2812         (d_abi_tags): New.
2813         (d_name): Call it.
2815 2012-10-08  Jason Merrill  <jason@redhat.com>
2817         * cp-demangle.c (d_special_name, d_dump): Handle TH and TW.
2818         (d_make_comp, d_print_comp): Likewise.
2820 2012-09-18  Ian Lance Taylor  <iant@google.com>
2822         * strnlen.c: New file.
2823         * configure.ac: Check for strnlen, add it to AC_LIBOBJ if it's not
2824         present.
2825         * Makefile.in: Rebuild dependencies.
2826         (CFILES): Add strnlen.c.
2827         (CONFIGURED_OFILES): Add ./strnlen.$(objext).
2828         * configure, config.in, functions.texi: Rebuild.
2830         * maint-tool: Accept .def files in the include directory.
2832 2012-09-18  Florian Weimer  <fweimer@redhat.com>
2834         PR other/54411
2835         * objalloc.c (_objalloc_alloc): Add overflow check covering
2836         alignment and CHUNK_HEADER_SIZE addition.
2838 2011-08-28  H.J. Lu  <hongjiu.lu@intel.com>
2840         * argv.c (dupargv): Replace malloc with xmalloc.  Don't check
2841         xmalloc return.
2842         (buildargv): Likewise.  Also replace strdup with xstrdup.
2843         (expandargv): Don't check dupargv return.
2845 2011-08-28  H.J. Lu  <hongjiu.lu@intel.com>
2847         PR binutils/14526
2848         * argv.c (buildargv): Replace alloca with xmalloc/free.
2850 2012-08-17  Andreas Schwab  <schwab@linux-m68k.org>
2852         * floatformat.c (floatformat_to_double): Correctly handle numbers
2853         between 1 and 2.  Simplify handling of denormal number.
2854         (main): Test with 1.1.
2856 2012-07-31  Mike Frysinger  <vapier@gentoo.org>
2858         * md5.c (md5_finish_ctx): Declare swap_bytes.  Assign SWAP() output
2859         to swap_bytes, and then call memcpy to move it to ctx->buffer.
2861 2012-07-26  Kazu Hirata  <kazu@codesourcery.com>
2862             Sandra Loosemore  <sandra@codesourcery.com>
2864         * pex-win32.c (pex_win32_exec_child): Only close original file
2865         descriptors if child is launched successfully.
2867 2012-07-18  Jason Merrill  <jason@redhat.com>
2869         * cp-demangle.c (cplus_demangle_operators): Add *_cast.
2870         (op_is_new_cast): New.
2871         (d_expression, d_print_comp): Check it.
2873 2012-07-13  Doug Evans  <dje@google.com>
2875         * filename_cmp.c (filename_hash, filename_eq): New functions.
2877 2012-06-29  Andreas Schwab  <schwab@linux-m68k.org>
2879         * copying-lib.texi (Library Copying): Don't use @heading inside
2880         @enumerate.
2882 2012-05-22  Tom Tromey  <tromey@redhat.com>
2884         http://sourceware.org/bugzilla/show_bug.cgi?id=14065
2885         * testsuite/demangle-expected: Add regression test.
2886         * cp-demangle.c (d_find_pack): Return NULL for
2887         DEMANGLE_COMPONENT_UNNAMED_TYPE.
2889 2012-04-27  Tom Tromey  <tromey@redhat.com>
2891         * dwarfnames.c: New file.
2892         * Makefile.in (CFILES): Add dwarfnames.
2893         (REQUIRED_OFILES): Add dwarfnames.
2894         (./dwarfnames.$(objext)): New target.
2896 2012-04-04  Tristan Gingold  <gingold@adacore.com>
2898         * pex-unix.c (to_ptr32): Fix style.
2900 2012-04-02  Tristan Gingold  <gingold@adacore.com>
2902         * stack-limit.c: Includes ansidecl.h.
2903         (stack_limit_increase): Add ATTRIBUTE_UNUSED
2905 2012-03-20  Jason Merrill  <jason@redhat.com>
2907         * cp-demangle.c (cplus_demangle_type): Handle 'auto'.
2909 2012-03-07  Jason Merrill  <jason@redhat.com>
2911         * cp-demangle.c (cplus_demangle_operators): Add li.
2912         (d_unqualified_name): Handle it specially.
2914 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
2916         * make-relative-prefix.c (make_relative_prefix_1): Avoid warning
2917         about using preprocessor directives inside of macro arguments.
2919 2012-01-22  Douglas B Rupp  <rupp@gnat.com>
2921         * configure: Regenerate.
2923 2012-01-10  Jason Merrill  <jason@redhat.com>
2925         * cp-demangle.c (d_print_comp) [DEMANGLE_COMPONENT_OPERATOR]:
2926         Omit a trailing space in the operator name.
2928 2012-01-06  Jason Merrill  <jason@redhat.com>
2930         PR c++/6057
2931         PR c++/48051
2932         PR c++/50855
2933         PR c++/51322
2934         * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_NULLARY and
2935         DEMANGLE_COMPONENT_INITIALIZER_LIST.
2936         (d_make_comp): Likewise.  Allow null right arg for
2937         DEMANGLE_COMPONENT_TRINARY_ARG2.
2938         (cplus_demangle_operators): Adjust new/delete; add .*, :: and throw.
2939         (d_template_args, d_template_arg): Handle 'J' for argument packs.
2940         (d_exprlist): Add terminator parm.
2941         (d_expression, d_print_comp): Handle initializer lists, nullary
2942         expressions, prefix/suffix operators, and new.
2943         (d_print_subexpr): Avoid parens around DEMANGLE_COMPONENT_QUAL_NAME
2944         and DEMANGLE_COMPONENT_INITIALIZER_LIST.
2945         * testsuite/demangle-expected: Add tests.
2947         * cp-demangle.c (cplus_demangle_type): decltype, pack expansion
2948         and vector are substitutable.
2949         (cplus_demangle_operators): Sort.
2951 2012-01-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2953         * configure: Regenerate.
2955 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
2957         * make-relative-prefix.c (make_relative_prefix_1): Avoid
2958         stack overflow if PATH contains just a single entry and
2959         HOST_EXECUTABLE_SUFFIX needs to be used.
2961         PR driver/48306
2962         * make-relative-prefix.c: Include sys/stat.h.
2963         (make_relative_prefix_1): If access succeeds, check also stat
2964         if nstore is a regular file.
2966 2011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
2968         * configure: Regenerate.
2970 2011-12-20  Tristan Gingold  <gingold@adacore.com>
2972         * aclocal.m4: Assume strncmp works in cross case.
2973         * configure: Regenerate
2975 2011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
2977         * configure: Regenerate.
2979 2011-11-07  Richard Henderson  <rth@redhat.com>
2981         Merged from transactional-memory.
2983         * cp-demangle.c (cplus_demangle_fill_ctor): Accept
2984         gnu_v3_object_ctor_group.
2985         (cplus_demangle_fill_dtor): Accept gnu_v3_object_dtor_group.
2986         (d_ctor_dtor_name): Recognize gnu_v3_object_ctor_group
2987         and gnu_v3_object_dtor_group.
2988         (d_dump): Handle DEMANGLE_COMPONENT_TRANSACTION_CLONE
2989         and DEMANGLE_COMPONENT_NONTRANSACTION_CLONE.
2990         (d_make_comp, d_print_comp): Likewise.
2991         (d_special_name): Generate them.
2993 2011-11-04  Jason Merrill  <jason@redhat.com>
2995         PR c++/48370
2996         * cp-demangle.c (d_special_name, d_print_comp): Handle a
2997         discriminator number on DEMANGLE_COMPONENT_REFTEMP.
2999 2011-11-02  Doug Evans  <dje@google.com>
3001         * Makefile.in (CFILES): Add timeval-utils.c.
3002         (REQUIRED_OFILES): Add timeval-utils.$(objext).
3003         (INSTALLED_HEADERS): Add timeval-utils.h.
3004         (timeval-utils.$(objext)): Add rule.
3006 2011-10-28  Ian Lance Taylor  <iant@google.com>
3008         * setproctitle.c (setproctitle): Use "GNU/Linux" in comment.
3010 2011-10-26  Iain Sandoe  <iains@gcc.gnu.org>
3012         PR target/48108
3013         * simple-object-mach-o.c  (GNU_WRAPPER_SECTS, GNU_WRAPPER_INDEX,
3014         GNU_WRAPPER_NAMES): New macros.
3015         (simple_object_mach_o_segment): Handle wrapper scheme.
3016         (simple_object_mach_o_write_section_header): Allow the segment name
3017         to be supplied.
3018         (simple_object_mach_o_write_segment): Handle wrapper scheme.  Ensure
3019         that the top-level segment name in the load command is empty.
3020         (simple_object_mach_o_write_to_file): Determine the number of
3021         sections during segment output, use that in writing the header.
3023 2011-10-10  Ian Lance Taylor  <iant@google.com>
3025         PR c++/48665
3026         * cp-demangle.c (d_cv_qualifiers): If qualifiers are applied to a
3027         function type, change them to apply to the "this" parameter.
3028         * testsuite/demangle-expected: Add test case.
3030 2011-09-28  Doug Evans  <dje@google.com>
3032         * timeval-utils.c: New file.
3034         * argv.c (countargv): New function.
3036 2011-09-23  Cary Coutant  <ccoutant@google.com>
3038         PR 40831
3039         * cp-demangle.c (d_make_comp): Add new component type.
3040         (cplus_demangle_mangled_name): Check for clone suffixes.
3041         (d_parmlist): Don't error out if we see '.'.
3042         (d_clone_suffix): New function.
3043         (d_print_comp): Print info for clone suffixes.
3044         * testsuite/demangle-expected: Add new testcases.
3046 2011-09-23  Ian Lance Taylor  <iant@google.com>
3047             Pierre Vittet  <piervit@pvittet.com>
3049         * md5.c (md5_process_bytes): Correct handling of unaligned
3050         buffer.
3052 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3054         * aclocal.m4: Include ../config/picflag.m4.
3055         * configure.ac (GCC_PICFLAG): Call it.
3056         (enable_shared): Clear PICFLAG unless shared.
3057         * configure: Regenerate.
3059 2011-08-12  Steve Ellcey  <sje@cup.hp.com>
3061         * md5.c (md5_read_ctx): Handle mis-aligned resbuf pointer.
3063 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3065         * testsuite/test-expandargv.c (writeout_test): Check result of fwrite.
3067 2011-08-01  Jason Merrill  <jason@redhat.com>
3069         PR c++/49932
3070         * cp-demangle.c (d_prefix): Handle decltype.
3071         * testsuite/demangle-expected: Test it.
3073 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
3075         * testsuite/demangle-expected: Remove an extra line.
3077 2011-07-26  Ian Lance Taylor  <iant@google.com>
3079         * cp-demangle.c (d_print_init): Initialize pack_index field.
3080         (d_print_comp): Check for NULL template argument.
3081         * testsuite/demangle-expected: Add test case.
3083 2011-07-22  Gerald Pfeifer  <gerald@pfeifer.com>
3085         PR target/49817
3086         * stack-limit.c: Include <stdint.h>.
3088 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
3090         PR c++/49756
3091         * stack-limit.c: New file.
3092         * Makefile.in: Regenerate deps.
3093         (CFILES): Add stack-limit.c.
3094         (REQUIRED_OFILES): Add ./stack-limit.$(objext).
3095         * configure.ac (checkfuncs): Add getrlimit and setrlimit.
3096         (AC_CHECK_FUNCS): Likewise.
3097         * configure: Regenerated.
3098         * config.in: Regenerated.
3100 2011-07-04  Jason Merrill  <jason@redhat.com>
3102         * cp-demangle.c (d_expression): Handle 'this'.
3103         (d_print_comp) [DEMANGLE_COMPONENT_FUNCTION_PARAM]: Likewise.
3105 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
3107         * filename_cmp.c (filename_cmp, filename_ncmp): Add handling of
3108         HAVE_CASE_INSENSITIVE_FILE_SYSTEM.
3110 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3112         PR debug/49408
3113         * cp-demangle.c (d_print_comp): Suppress argument list for function
3114         references by the '&' unary operator.  Keep also already processed
3115         variant without the argument list.  Suppress argument list types for
3116         function call used in an expression.
3117         * testsuite/demangle-expected: Fix excessive argument list types in
3118         `test for typed function in decltype'.  New testcase for no argument
3119         list types printed.  3 new testcases for function references by the
3120         '&' unary operator..
3122 2011-06-20  Jason Merrill  <jason@redhat.com>
3124         PR c++/37089
3125         * cp-demangle.c (d_print_comp): Handle reference smashing.
3126         * testsuite/demangle-expected: Test it.
3128 2011-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3130         * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>:
3131         Suppress d_print_mod for DMGL_RET_POSTFIX.
3132         * testsuite/demangle-expected: New testcases for --ret-postfix.
3134 2011-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3136         * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: Do
3137         not pass DMGL_RET_POSTFIX or DMGL_RET_DROP.  Support DMGL_RET_DROP.
3138         * testsuite/demangle-expected: New testcases for --ret-drop.
3139         * testsuite/test-demangle.c: Document --ret-drop in a comment.
3140         (main): New variable ret_drop, fill it, call cplus_demangle with it.
3142 2011-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3144         * cp-demangle.c (struct d_print_info): Remove field options.
3145         (d_print_init): Remove parameter options.
3146         (cplus_demangle_print_callback): Update all the callers.
3147         (d_print_comp, d_print_mod_list, d_print_mod, d_print_function_type)
3148         (d_print_array_type, d_print_expr_op, d_print_cast, d_print_subexpr):
3149         Add parameter options, update all the callers.
3151 2011-04-20  Jim Meyering  <meyering@redhat.com>
3153         * cp-demint.c (cplus_demangle_v3_components): Remove useless
3154         if-before-free.
3155         * cplus-dem.c (squangle_mop_up): Likewise.
3156         (delete_non_B_K_work_stuff): Likewise.
3157         * pex-common.c (pex_free): Likewise.
3158         * pex-msdos.c (pex_msdos_cleanup): Likewise.
3159         * pex-win32.c (mingw_rootify, msys_rootify): Likewise.
3160         (win32_spawn): Likewise.
3161         * regex.c (FREE_VAR, weak_alias): Likewise.
3162         * spaces.c (spaces): Likewise.
3164 2011-04-10  Jim Meyering  <meyering@redhat.com>
3166         Avoid memory overrun in a test leading to potential double-free.
3167         * testsuite/test-expandargv.c (writeout_test): Fix off-by-one error:
3168         i.e., do copy the trailing NUL byte.
3170 2011-03-31  Tristan Gingold  <gingold@adacore.com>
3172         * makefile.vms (OBJS): Add filename_cmp.obj
3174 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
3176         * filename_cmp.c (filename_ncmp): New function.
3177         * functions.texi: Regenerated.
3179 2011-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3181         * splay-tree.c: Escape wrapping newlines in texinfo markup
3182         with '@', to fix function declaration output rendering.
3183         * gather-docs: Relax and improve macro name matching to actually
3184         match all current names and to allow input line wrapping.
3185         * bsearch.c, concat.c, crc32.c, fnmatch.txh, fopen_unlocked.c,
3186         hashtab.c, insque.c, make-relative-prefix.c, memchr.c, memcmp.c,
3187         memcpy.c, memmem.c, memmove.c, mempcpy.c, memset.c,
3188         pexecute.txh, random.c, setenv.c, setproctitle.c,
3189         simple-object.txh, snprintf.c, stpncpy.c, strncmp.c, strtod.c,
3190         strtol.c, vasprintf.c, vprintf.c, vsnprintf.c, xmemdup.c:
3191         Wrap long texinfo input lines.
3192         * functions.texi: Regenerate.
3194 2011-01-18  Mike Frysinger  <vapier@gentoo.org>
3196         * .gitignore: New file.
3198 2010-12-08  Doug Evans  <dje@google.com>
3200         * splay-tree.c (splay_tree_foreach_helper): Remove arg `sp',
3201         all callers updated.  Rewrite to be non-recursive.
3203 2010-11-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3205         * setproctitle.c [HAVE_SYS_PRCTL_H]: Include <sys/types.h>.
3207 2010-11-20  Anthony Green  <green@moxielogic.com>
3209         * configure.ac: Turn PR_SET_NAME link test into a test for
3210         sys/prctl.h.
3211         * configure, config.in: Rebuilt.
3212         * setproctitle.c: Test for HAVE_SYS_PRCTL_H.
3213         (setproctitle) Test for PR_SET_NAME definition.
3215 2010-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3217         PR other/46202
3218         * Makefile.in (install-strip): New phony target.
3219         (install): Also mark as phony.
3221 2010-11-16  Ian Lance Taylor  <iant@google.com>
3223         * simple-object.c (simple_object_attributes_merge): Rename from
3224         simple_object_attributes_compare.  Call merge field.
3225         * simple-object-common.h (struct simple_object_functions): Rename
3226         attributes_compare field to attribute_merge.
3227         * simple-object-elf.c (EM_SPARC): Define.
3228         (EM_SPARC32PLUS): Define.
3229         (simple_object_elf_attributes_merge): Renamed from
3230         simple_object_elf_attributes_compare.  Permit EM_SPARC and
3231         EM_SPARC32PLUS objects to be merged.
3232         (simple_object_elf_functions): Update function name.
3233         * simple-object-coff.c (simple_object_coff_attributes_merge):
3234         Rename from simple_object_coff_attributes_compare.
3235         (simple_object_coff_functions): Update function name.
3236         * simple-object-mach-o.c (simple_object_mach_o_attributes_merge):
3237         Renamed from simple_object_mach_o_attributes_compare.
3238         (simple_object_mach_o_functions): Update function name.
3240 2010-11-16  H.J. Lu  <hongjiu.lu@intel.com>
3242         PR other/42670
3243         PR binutils/11137
3244         * cp-demangle.c (d_make_demangle_mangled_name): New.
3245         (d_demangle_callback): Use it on DCT_GLOBAL_XTORS.
3247         * testsuite/demangle-expected: Updated.
3249 2010-11-14  Kai Tietz  <kai.tietz@onevision.com>
3251         * simple-object-coff.c (simple_object_coff_read_strtab): Fix reading
3252         offset.
3254 2010-11-12  Ian Lance Taylor  <iant@google.com>
3256         PR other/46332
3257         * cp-demangle.c (d_print_function_type): Don't print parentheses
3258         if there are no modifiers to print.
3259         * testsuite/demangle-expected: Tweak one test case, add another.
3261 2010-11-04  Richard Henderson  <rth@redhat.com>
3263         * configure.ac (AC_CHECK_HEADERS): Add process.h.
3264         (checkfuncs): Add dup3, spawnve, spawnvpe; sort the list.
3265         (AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe.
3266         * configure, config.in: Rebuild.
3267         * pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function.
3268         [HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions.
3270 2010-11-02  Ian Lance Taylor  <iant@google.com>
3271             Dave Korn  <dave.korn.cygwin@gmail.com>
3272             Iain Sandoe  <iains@gcc.gnu.org>
3274         * simple-object.c: New file.
3275         * simple-object-common.h: New file.
3276         * simple-object-elf.c: New file.
3277         * simple-object-mach-o.c: New file.
3278         * simple-object-coff.c: New file.
3279         * simple-object.txh: New file.
3280         * configure.ac: Add AC_TYPE_SSIZE_T.
3281         * Makefile.in: Rebuild dependencies.
3282         (CFILES): Add simple-object.c, simple-object-coff,
3283         simple-object-elf.c, and simple-object-mach-o.c.
3284         (REQUIRED_OFILES): Add corresponding object files.
3285         * configure: Rebuild.
3286         * config.in: Rebuild.
3287         * functions.texi: Rebuild.
3289 2010-10-29  Ian Lance Taylor  <iant@google.com>
3291         * setproctitle.c: Add space after function name in @deftypefn
3292         comment.
3293         * functions.texi: Rebuild.
3295 2010-10-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3297         * aclocal.m4 (AC_LANG_FUNC_LINK_TRY(C)): Delete.
3298         * configure: Regenerate.
3300 2010-10-07  Andi Kleen  <ak@linux.intel.com>
3302         * configure: Regenerate.
3303         * configure.ac: Turn PR_SET_NAME check into link check.
3305 2010-10-06  Andi Kleen  <ak@linux.intel.com>
3307         * Makefile.in (CFILES): Add setproctitle.
3308         (CONFIGURED_OFILES): Add setproctitle.
3309         (setproctitle): Add rule.
3310         * config.in: Regenerate.
3311         * configure: Regenerate.
3312         * configure.ac: Add checks for prctl PR_SET_NAME and setproctitle.
3313         * setproctitle.c: Add file.
3314         * functions.texi: Regenerate.
3316 2010-09-22 Tristan Gingold  <gingold@adacore.com>
3318         * cplus-dem.c (ada_demangle): Add comments.
3319         Handle stream and controlled type operations.
3320         Decoding of some uppercase letters moved before separators.
3321         * testsuite/demangle-expected: Add tests.
3323 2010-09-10  James Lyon  <jameslyon0@googlemail.com>
3325         http://sourceware.org/bugzilla/show_bug.cgi?id=11572
3326         * cp-demangle.c (d_find_pack): Add case for
3327         DEMANGLE_COMPONENT_LAMBDA.
3328         * testsuite/demangle-expected: Add regression test.
3330 2010-09-08  Tristan Gingold  <gingold@adacore.com>
3332         PR 44001
3333         * maint-tool (missing): Fix pattern for object file.
3334         (deps): Use $(objext) for object extension.
3335         * Makefile.in (objext): New variable.
3336         Replace all occurences of .o with .$(objext)
3337         Regenerate with maint-deps
3338         * configure.ac (pexecute): Set to the basename.
3339         * configure: Regenerate.
3341 2010-08-20  Maciej W. Rozycki  <macro@codesourcery.com>
3343         * pex-common.c (pex_read_err): Set stderr_pipe to -1 if a
3344         corresponding stream has been opened.
3345         (pex_free): Close pipe file descriptors corresponding to child's
3346         stdout and stderr before waiting.
3348 2010-08-13  Nick Clifton  <nickc@redhat.com>
3350         * argv.c (expandargv): Limit the number of times that response
3351         files are opened in order to prevent infinite recursion.
3353 2010-07-21  Pascal Obry  <obry@adacore.com>
3355         * make-temp-file.c (choose_tmpdir): Append a dot to P_tmpdir if needed.
3357 2010-07-06  Ken Werner  <ken.werner@de.ibm.com>
3359         * floatformat.c (floatformat_ieee_half_big): New variable.
3360         (floatformat_ieee_half_little): Likewise.
3362 2010-06-14  Gerald Pfeifer  <gerald@pfeifer.com>
3364         * libiberty.texi: Remove reference to GCC 3 and 2001 (thrice).
3365         Update copyright years.
3366         Move to GFDL 1.3.
3368 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
3370         PR other/43838
3371         * cp-demangle.c (struct d_print_info): Add flush_count field.
3372         (d_print_init): Initialize it to 0.
3373         (d_print_flush): Increment it.
3374         (d_print_comp): If needed flush before appending ", ".  Only
3375         decrement dpi->len if no flushes happened during the recursive
3376         call.
3377         * testsuite/demangle-expected: Add a test for this.
3379 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3381         * splay-tree.c: Update copyright years.
3382         (splay_tree_new_typed_alloc): New.
3383         (splay_tree_new_with_allocator): Use it.
3385         * hashtab.c: Update copyright years.
3386         (htab_create_typed_alloc): New.
3387         (htab_create_alloc): Use it.
3389         * functions.texi: Regenerate.
3391 2010-06-03  Joern Rennecke <joern.rennecke@embecosm.com>
3392             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3394         PR bootstrap/42798
3395         * configure.ac: Check for declaration of 'basename(char *)'.
3396         * configure: Regenerate.
3398 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
3400         * testsuite/demangle-expected: Add tests for __int128
3401         and unsigned __int128 types.
3403 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
3404             Jason Merrill  <jason@redhat.com>
3406         * cp-demangle.c (cplus_demangle_builtin_types): Add nullptr.
3407         (cplus_demangle_type): Handle nullptr.
3408         * testsuite/demangle-expected: Test it.
3410 2010-04-23  Pedro Alves  <pedro@codesourcery.com>
3412         * lbasename.c (lbasename): Split into ...
3413         (unix_lbasename, dos_basename): ... these.
3414         (lbasename): ... and reimplement on top of them.
3415         * Makefile.in (lbasename.o): Add dependency on
3416         $(INCDIR)/filenames.h.
3418 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
3420         * regex.c (byte_re_match_2_internal): Avoid set but not used
3421         warning.
3423 2010-03-22  Jason Merrill  <jason@redhat.com>
3425         * cp-demangle.c (d_print_mod): Use () rather than [] for vectors.
3427 2010-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3429         * Makefile.in (all): Do not use exec.
3431 2010-02-04  Tom Tromey  <tromey@redhat.com>
3433         * testsuite/demangle-expected: Add missing --format=gnu-v3.
3435 2010-02-03  Jason Merrill  <jason@redhat.com>
3437         * cp-demangle.c (d_expression): Handle dependent operator name.
3439         PR c++/12909
3440         * cp-demangle.c (d_number_component, d_vector_type): New.
3441         (cplus_demangle_type, d_print_comp, d_print_mod): Handle vectors.
3443 2010-01-25  Ian Lance Taylor  <iant@google.com>
3445         * cp-demangle.c (cplus_demangle_type): Check for invalid type
3446         after "DF".
3447         * testsuite/demangle-expected: Add test.
3449 2010-01-20  Jason Merrill  <jason@redhat.com>
3451         PR c++/42338
3452         * cp-demangle.c (d_print_comp): Fix array index printing.
3454 2010-01-11  Tristan Gingold  <gingold@adacore.com>
3456         * cplus-dem.c (ada_demangle): Remove prototype.
3457         (grow_vect): Removed.
3458         (ada_demangle): Rewritten.
3459         (cplus_demangle): Fix indentation.
3460         * testsuite/demangle-expected: Add tests for Ada.
3462 2010-01-09  Ian Lance Taylor  <iant@google.com>
3464         PR other/42230
3465         * cp-demangle.c (d_demangle): Return dgs.alc on success.
3467 2010-01-04  Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
3469         PR target/42316
3470         * configure.ac (PICFLAG): Use -fPIC on SH hosts.
3471         * configure: Regenerate.
3473 2009-12-07  Doug Evans  <dje@google.com>
3475         * pex-unix.c (pex_unix_exec_child): Save/restore environ.
3477 2009-11-26  Ben Elliston  <bje@au.ibm.com>
3479         * configure.ac (AC_CHECK_FUNCS): Sort into alphabetic order.
3480         * configure: Regenerate.
3482 2009-11-25  Ben Elliston  <bje@au.ibm.com>
3484         * functions.texi: Rebuild.
3486 2009-11-25  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3487             Ben Elliston  <bje@au.ibm.com>
3489         * README: Mention changes to Makefile.in and functions.texi.
3490         * gather-docs: Mention 'make stamp-functions' in the header.
3492 2009-11-23  Ben Elliston  <bje@au.ibm.com>
3493             Ian Lance Taylor  <iant@google.com>
3495         * pex-unix.c (pex_child_error): Improve warning avoidance by
3496         checking the results of write(3) and exiting with -2 if any write
3497         returns a negative value.
3499 2009-11-22  Steve Ward  <planet36@gmail.com>
3501         * dyn-string.c (dyn_string_append_char): Fix typo in comment.
3503 2009-11-20  Ben Elliston  <bje@au.ibm.com>
3505         * pex-unix.c (pex_child_error): Define writeerr macro to avoid
3506         unused result warnings from write(3) calls.  Undefine writeerr
3507         after all uses.
3509 2009-10-08  Daniel Gutson  <dgutson@codesourcery.com>
3510         Daniel Jacobowitz  <dan@codesourcery.com>
3511         Pedro Alves  <pedro@codesourcery.com>
3513         * argv.c (consume_whitespace): New function.
3514         (only_whitespace): New function.
3515         (buildargv): Always use ISSPACE by calling consume_whitespace.
3516         (expandargv): Skip empty files.  Do not stop at the first empty
3517         argument (calling only_whitespace)..
3518         * testsuite/test-expandargv.c: (test_data): Test empty lines
3519         and empty arguments.
3520         (run_tests): Fix false positives due to shorter arguments.
3522 2009-09-30  Martin Thuresson  <martint@google.com>
3524         * regex.c (byte_re_match_2_internal): Split declaration and
3525         assignment to avoid -Wc++-compat warning due to goto.
3527 2009-09-29  Jason Merrill  <jason@redhat.com>
3529         * Makefile.in: Enable demangle target.
3530         * cp-demangle.c (d_lambda, d_unnamed_type, d_make_default_arg): New.
3531         (d_name, d_prefix, d_unqualified_name, d_local_name): Handle lambdas.
3532         (d_parmlist): Factor out from d_bare_function_type.
3533         (d_compact_number): Factor out from d_template_param and d_expression.
3534         (d_append_num): Factor out from d_print_comp.
3535         (d_print_comp, d_print_mod_list): Handle lambdas.
3536         * testsuite/demangle-expected: Add lambda tests.
3538 2009-09-23  Matthew Gingell  <gingell@adacore.com>
3540         * cplus-dem.c (ada_demangle): Ensure demangled is freed.
3542 2009-09-22  Ozkan Sezer  <sezeroz@gmail.com>
3544         * choose-temp.c: Include unistd.h for mingw targets.
3546 2009-09-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3548         * hashtab.c [HAVE_INTTYPES_H]: Include <inttypes.h>.
3550 2009-09-15  Tristan Gingold  <gingold@adacore.com>
3552         * config.h-vms (intptr_t): Define to compile hashtab.c
3554 2009-09-04  Ozkan Sezer  <sezeroz@gmail.com>
3556         PR target/39065
3557         * configure.ac: Replace AC_CHECK_TYPE() for intptr_t and uintptr_t
3558         with AC_TYPE_INTPTR_T and AC_TYPE_UINTPTR_T.
3559         * config.in: Regenerated.
3560         * configure: Regenerated.
3562 2009-09-03  Ozkan Sezer  <sezeroz@gmail.com>
3564         PR target/39065
3565         * configure.ac: Also check for intptr_t.
3566         * config.h.in: Regenerated.
3567         * configure: Regenerated.
3568         * hashtab.c (hash_pointer): Cast the pointer argument to intptr_t
3569         instead of of long.
3571 2009-09-02  Tristan Gingold  <gingold@adacore.com>
3573         * vmsbuild.com: Removed as unused and superceeded by makefile.vms.
3574         * makefile.vms: Ported to Itanium VMS.  Remove useless targets and
3575         dependencies.  Remove unused FORMAT variable.
3576         * configure.com: New file to create build.com DCL script for
3577         Itanium VMS or Alpha VMS.
3579 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3581         * configure.ac (AC_PREREQ): Bump to 2.64.
3583 2009-08-23  H.J. Lu  <hongjiu.lu@intel.com>
3585         PR ld/10536
3586         * Makefile.in (install-html-recursive): Removed.
3588 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3590         * config.in: Regenerate.
3591         * configure: Regenerate.
3593 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3595         * Makefile.in (AUTOCONF, configure_deps): New variables.
3596         ($(srcdir)/configure): New rule, active only in maintainer mode.
3598 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
3600         * make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS.
3602 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
3604         * pex-unix.c (vfork): Remove VMS specific definition (get from header
3605         file instead).
3606         (to_ptr32): New function.
3607         (pex_unix_exec_child): Use it.
3609 2009-07-24  Ian Lance Taylor  <iant@google.com>
3611         PR bootstrap/40854
3612         * crc32.c (xcrc32): Rename from crc32.
3614 2009-07-24  Ian Lance Taylor  <iant@google.com>
3616         * crc32.c: New file.
3617         * Makefile.in: Rebuild dependencies.
3618         (CFILES): Add crc32.c.
3619         (REQUIRED_OFILES): Add ./crc32.o.
3620         * functions.texi: Rebuild.
3622 2009-07-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3624         * cp-demangle.c (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
3625         (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
3626         (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
3627         (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
3628         (d_demangle_callback): The variable type is now declared as enum.
3629         Replace parser of _GLOBAL_ symbols by a d_make_comp call.
3631 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
3633         * hashtab.c (htab_traverse): Don't call htab_expand for
3634         nearly empty hashtabs with sizes 7, 13 or 31.
3636 2009-06-16  Nick Clifton  <nickc@redhat.com>
3638         PR 10197
3639         * testsuite/test-demangle.c: Rename getline to get_line to avoid
3640         conflicts with system function of the same name.
3642 2009-05-30  Eli Zaretskii  <eliz@gnu.org>
3644         * snprintf.c: Doc fix.
3646         * vsnprintf.c: Doc fix.
3648 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
3650         * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.
3652 2009-05-29  Michael Matz  <matz@suse.de>
3654         * fibheap.c (fibheap_replace_key_data): Make sure we don't early
3655         out when forcing the minimum.
3656         (fibheap_delete_node): Assert that we managed to force the minimum.
3658 2009-05-25  Tristan Gingold  <gingold@adacore.com>
3660         * config.h-vms: Rewritten.  Define configure macros.
3661         Use DEC-C builtin alloca.
3663         * makefile.vms (OBJS): Update list.
3664         (OPT): New variable.
3665         (CFLAGS): Update compilation flags.
3666         (libiberty.olb): Do not depend on alloca-conf.h anymore.
3668 2009-05-19  Ian Lance Taylor  <iant@google.com>
3669             Ben Elliston  <bje@au.ibm.com>
3671         * cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug.
3672         (cplus_demangle_fill_dtor): Likewise.
3674 2009-05-17  Julian Brown  <julian@codesourcery.com>
3676         * pex-win32.c (pex_win32_exec_child): Fix logic to avoid closing
3677         standard handles (stdin, stdout, stderr) in parent.
3679 2009-04-29  Julian Brown  <julian@codesourcery.com>
3681         * pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT.
3682         (pex_win32_exec_child): Ensure each process has only one handle open
3683         on pipe endpoints. Close standard input after creating child for
3684         symmetry with standard output/standard error.
3686 2009-04-25  Eli Zaretskii  <eliz@gnu.org>
3688         * Makefile.in (needed-list): Target removed (not used in GCC
3689         3.0 and later).  All references deleted.
3690         (mostlyclean): Remove references to needed.awk and needed2.awk.
3692 2009-04-14  Eli Zaretskii  <eliz@gnu.org>
3694         * configure.ac  (setobjs, msdosdjgpp): Move a-priori setting of
3695         existing and required library functions to with_target_subdir
3696         section, so that the native build does detect them at configure
3697         time.
3698         * configure: Regenerated.
3700 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
3702         PR target/39397
3703         * pex-common.h (struct pex_obj): Store pid values as pid_t,
3704         not as long (members *children and (*wait))
3705         * pex-common.c (pex_run_in_environment): Likewise.
3706         * pex-win32.c (pex_win32_wait): Return pid_t and properly check
3707         returned pid value.
3708         * pex-djgpp.c (pex_djgpp_wait): Return pid_t.
3709         * pex-msdos.c (pex_msdos_wait): Likewise.
3711 2009-04-07  Arnaud Patard <apatard@mandriva.com>
3713         * configure.ac: Fix Linux/MIPS matching rule.
3714         * configure: Regenerate.
3716 2009-03-27  Ian Lance Taylor  <iant@google.com>
3718         * memmem.c: New file, from gnulib.
3719         * configure.ac: Add memmem to list of functions provided if they
3720         are not available on the host.
3721         * Makefile.in: Rebuild dependencies.
3722         (CFILES): Add memmem.c.
3723         (CONFIGURED_OFILES): Add memmem.o.
3724         * configure, config.in, functions.texi: Rebuild.
3726 2009-03-23  Jason Merrill  <jason@redhat.com>
3728         * cp-demangle.c (d_expression): Handle pack expansion.
3729         (d_find_pack): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM.
3730         (d_print_subexpr): Don't wrap function parms in ().
3731         (d_print_comp) [DEMANGLE_COMPONENT_PACK_EXPANSION]: Handle
3732         not finding a pack.
3734 2009-03-17  Jason Merrill  <jason@redhat.com>
3736         * cp-demangle.c (d_make_function_param): new fn.
3737         (cplus_demangle_mangled_name): Work around abi v2 bug.
3738         (d_expr_primary): Likewise.
3739         (cplus_demangle_operators): Add alignof ops.
3740         (d_expression): Handle function parameters and conversions
3741         with other than 1 operand.
3742         (d_print_comp): Handle function parameters.  Fix bug with
3743         function used in type of function.
3744         * testsuite/demangle-expected: Update tests.
3746 2009-02-21  Mark Mitchell  <mark@codesourcery.com>
3748         * make-temp-file.c (<windows.h>): Include on Windows.
3749         (choose_tmpdir): On Windows, use GetTempPath.
3751 2009-01-18  Dave Korn  <dave.korn.cygwin@gmail.com>
3753         * configure.ac (funcs, vars, checkfuncs):  Don't munge on Cygwin,
3754         as it no longer shares libiberty object files.
3755         * configure:  Regenerated.
3757 2009-01-07  Jason Merrill  <jason@redhat.com>
3759         * cp-demangle.c (d_expression): Remove mangling for zero-op casts.
3761 2009-01-06  Ben Elliston  <bje@au.ibm.com>
3763         * cp-demangle.c (cplus_demangle_type): Return NULL if the
3764         character following a 'D' cannot be recognised.
3766 2008-12-18  Jason Merrill  <jason@redhat.com>
3768         PR c++/38561
3769         * cp-demangle.c (d_expression, d_print_comp): Revert
3770         cast changes.
3772 2008-12-17  Jason Merrill  <jason@redhat.com>
3774         * cp-demangle.c (d_expression): Handle rvalue stubs too.
3775         [DEMANGLE_COMPONENT_CAST]: Update mangling.
3776         (d_print_comp): Avoid extra ", " with empty template argument packs.
3777         Remove handling for obsolete T() mangling.
3779 2008-12-10  Jason Merrill  <jason@redhat.com>
3781         * cp-demangle.c (cplus_demangle_type): Support fixed-point types.
3782         (d_print_comp, d_dump): Likewise.
3784 2008-10-22  Daniel Jacobowitz  <dan@codesourcery.com>
3786         * Makefile.in (CPPFLAGS): Define.
3787         (FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS.
3789 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
3791         PR bootstrap/37137
3792         * Makefile.in (LIBCFLAGS): Remove.
3793         (FLAGS_TO_PASS): Don't mention it.
3794         (COMPILE.c, MULTIOSDIR): Replace it with CFLAGS.
3796 2008-10-08  David Edelsohn  <edelsohn@gnu.org>
3798         * xstrdup.c: Include <sys/types.h> after "config.h"
3800 2008-10-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3802         * configure.ac: Call AC_SYS_LARGEFILE.
3803         * config.in: Regenerated.
3804         * configure: Likewise.
3806 2008-10-06  Jason Merrill  <jason@redhat.com>
3808         * cp-demangle.c (struct d_print_info): Add pack_index.
3809         (d_dump): Add DEMANGLE_COMPONENT_PACK_EXPANSION.
3810         (d_make_comp): Likewise.  DEMANGLE_COMPONENT_ARGLIST and
3811         DEMANGLE_COMPONENT_TEMPLATE_ARGLIST can have two null args.
3812         (cplus_demangle_builtin_types): Add char16/32_t.
3813         (cplus_demangle_type): Recognize them.
3814         (d_template_args): Handle empty argument packs.
3815         (d_template_arg): Handle argument packs.
3816         (d_expression): Handle dependent name.
3817         (d_index_template_argument): New fn.
3818         (d_lookup_template_argument): New fn.
3819         (d_find_pack, d_pack_length): New fn.
3820         (d_print_subexpr): Split out...
3821         (d_print_comp): ...from here.  Use d_*_template_argument.
3822         Handle empty arg lists.  Support pack expansions.
3823         * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increase to 32.
3825 2008-09-09  Jason Merrill  <jason@redhat.com>
3827         * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DECLTYPE.
3828         (d_make_comp): Likewise.
3829         (cplus_demangle_type): Handle decltype and DFP types.
3830         (cplus_demangle_operators): Call operator takes 2 args.
3831         (cplus_demangle_builtin_types): Add DFP types.
3832         (d_exprlist): New fn.
3833         (d_expression): Handle parm placeholders, T() and calls.
3834         (d_print_comp): Handle decltype, T() and calls.
3835         * testsuite/demangle-expected: Test the above.
3837 2008-08-07  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
3839         * pex-win32.c (argv_to_argc): New function.
3840         (spawn_script): Duplicate argv before calling win32_spawn.
3842 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
3844         * mkstemps.c (mkstemps): Keep looping even for EISDIR.
3846 2008-07-31  Denys Vlasenko  <dvlasenk@redhat.com>
3848         * mkstemps.c (mkstemps): If open failed with errno other than
3849         EEXIST, return immediately.
3850         * make-temp-file.c: Include errno.h.
3851         (make_temp_file): If mkstemps failed, print an error message
3852         before aborting.
3854 2008-07-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3856         * maint-tool (deps): Output config.h instead of stamp-h.
3857         * Makefile.in: Rebuild deps.
3858         (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
3859         Reverts 2007-07-11 change.
3861 2008-06-19  Eric Blake  <ebb9@byu.net>
3863         Adjust strsignal to POSIX 200x prototype.
3864         * strsignal.c (strsignal): Remove const.
3866 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3868         * configure: Regenerate.
3870 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3872         * libiberty.texi: Expand TABs, drop indentation outside examples.
3873         * obstacks.texi: Likewise.
3875 2008-04-21  Aurelien Jarno  <aurelien@aurel32.net>
3877         * configure.ac: use -fPIC on Linux/MIPS hosts.
3878         * configure: Regenerate.
3880 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
3882         * testsuite/demangle-expected: Added tests for char16_t and char32_t.
3884 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
3886         PR bootstrap/35457
3887         * aclocal.m4: Add override.m4.
3888         * configure: Regenerate.
3890 2008-03-31  Ian Lance Taylor  <iant@google.com>
3892         * cp-demangle.c (d_substitution): Correct overflow check to avoid
3893         -fstrict-overflow optimizations.
3895 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
3897         * configure.ac (frags): Don't set, use frag instead.
3898         (PICFLAG): Set here and substitute.
3899         * Makefile.in (PICFLAG): Substitute from autoconf.
3900         * configure: Regenerate.
3902 2008-03-24  Ian Lance Taylor  <iant@google.com>
3904         * sha1.c: New file, from gnulib.
3905         * Makefile.in: Rebuild dependencies.
3906         (CFILES): Add sha1.c.
3907         (REQUIRED_OFILES): Add sha1.o.
3909 2008-03-24  Doug Evans  <dje@google.com>
3911         * make-relative-prefix.c (make_relative_prefix_1): Handle NULL
3912         return from strdup.
3914 2008-03-12  Seongbae Park <seongbae.park@gmail.com>
3916         * cplus-dem.c (malloc, realloc): Use void * instead of char *
3917         as return type.
3919 2008-03-11  Nick Clifton  <nickc@redhat.com>
3921         * md5.c (md5_process_bytes): Do not assume that memcpy will
3922         provide a return value.
3924 2008-02-19  Ben Elliston  <bje@au.ibm.com>
3926         PR other/12618
3927         * testsuite/Makefile.in (mostlyclean): Remove any core file.
3929 2008-01-26  David Daney  <ddaney@avtrex.com>
3931         * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
3932         DEMANGLE_COMPONENT_COMPOUND_NAME, and
3933         DEMANGLE_COMPONENT_CHARACTER cases.
3934         (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and
3935         DEMANGLE_COMPONENT_JAVA_RESOURCE cases.
3936         (d_make_character): New function.
3937         (d_java_resource): Same.
3938         (d_special_name): Handle "Gr" case.
3939         (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
3940         DEMANGLE_COMPONENT_COMPOUND_NAME, and
3941         DEMANGLE_COMPONENT_CHARACTER cases.
3942         * testsuite/demangle-expected: Add test for java resource name
3943         mangling.
3945 2008-01-23  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3947         * cplus-dem.c (demangle_function_name): Changed to return value
3948         indicating if a name was correctly demangled.
3949         (iterate_demangle_function): Use demangle_function_name return
3950         value.
3952 2008-01-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3954         PR other/33768
3955         * splay-tree.c (rotate_left): Fix minor typo in comment.
3956         (rotate_right): Likewise.
3958 2007-11-12  Joseph Myers  <joseph@codesourcery.com>
3960         * floatformat.c (floatformat_ibm_long_double_is_valid): Fix
3961         compiler warnings.
3962         (floatformat_ibm_long_double): Use
3963         floatformat_ibm_long_double_is_valid.
3965 2007-11-07  Joseph Myers  <joseph@codesourcery.com>
3966             Daniel Jacobowitz  <dan@codesourcery.com>
3968         * floatformat.c (mant_bits_set): New.
3969         (floatformat_to_double): Use it.  Note no special handling of
3970         split formats.
3971         (floatformat_from_double): Note no special handing of split
3972         formats.
3973         (floatformat_ibm_long_double_is_valid,
3974         floatformat_ibm_long_double): New.
3975         (floatformat_ieee_single_big, floatformat_ieee_single_little,
3976         floatformat_ieee_double_big, floatformat_ieee_double_little,
3977         floatformat_ieee_double_littlebyte_bigword, floatformat_vax_f,
3978         floatformat_vax_d, floatformat_vax_g, floatformat_i387_ext,
3979         floatformat_m68881_ext, floatformat_i960_ext,
3980         floatformat_m88110_ext, floatformat_m88110_harris_ext,
3981         floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword,
3982         floatformat_ia64_spill_big, floatformat_ia64_spill_little,
3983         floatformat_ia64_quad_big, floatformat_ia64_quad_little): Update
3984         for addition of split_half field.
3986 2007-09-06  Tom Tromey  <tromey@redhat.com>
3988         * pexecute.txh (pex_free): Document process killing.
3990 2007-08-31  Douglas Gregor  <doug.gregor@gmail.com>
3992         * cp-demangle.c (d_dump): Handle
3993         DEMANGLE_COMPONENT_RVALUE_REFERENCE.
3994         (d_make_comp): Ditto.
3995         (cplus_demangle_type): Ditto.
3996         (d_print_comp): Ditto.
3997         (d_print_mod): Ditto.
3998         (d_print_function_type): Ditto.
4000 2007-08-24  Kai Tietz  <kai.tietz@onevision.com>
4002         * pex-common.h: (pex_funcs): Retyped wait and exec_child to pid_t.
4003         * pex-djgpp.c: Likewise.
4004         * pex-msdos.c: Likewise.
4005         * pex-unix.c: Likewise.
4006         * pex-win32.c: Likewise.
4008 2007-08-17  Michael Snyder  <msnyder@access-company.com>
4010         * make-relative-prefix.c (make_relative_prefix_1): Resource leaks.
4012 2007-08-03  Michael Snyder  <msnyder@access-company.com>
4014         * make-relative-prefix.c (make_relative_prefix_1): Fix resource
4015         leak.
4017 2007-07-31  Michael Snyder  <msnyder@access-company.com>
4019         * cp-demangle.c (d_print_comp): Guard against null.
4021 2007-07-25  Ben Elliston  <bje@au.ibm.com>
4023         * Makefile.in (CFILES): Remove ternary.c.
4024         (REQUIRED_OFILES): Remove ./ternary.o.
4025         (INSTALLED_HEADERS): Remove ternary.h.
4026         (ternary.o): Remove.
4027         * ternary.c: Remove.
4029 2007-07-23  DJ Delorie  <dj@redhat.com>
4031         * argv.c (writeargv): Fix typo in inline documentation.
4032         * functions.texi: Regenerate.
4034 2007-07-17  DJ Delorie  <dj@redhat.com>
4036         * configure.ac (target_header_dir, msdosdjgpp): Remove duplicate
4037         gettimeofday entry.
4038         * configure: Likewise.
4040 2007-07-11  Alexandre Oliva  <aoliva@redhat.com>
4042         * maint-tool (deps): Output stamp-h instead of config.h.
4043         * Makefile.in: Rebuild deps.
4044         (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
4046 2007-07-02  Simon Baldwin <simonb@google.com>
4048         * argv.c (writeargv): Removed declaration of unused variable.
4050 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
4052         * configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too.
4053         * configure: Regenerate.
4055 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
4057         * aclocal.m4: Include config/warnings.m4.
4058         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS.
4059         * configure: Regenerate.
4061 2007-06-07  Geoffrey Keating  <geoffk@apple.com>
4063         * configure.ac: Non-default multilibs can be cross compilations.
4064         * configure: Regenerate
4066 2007-05-07  Nathan Froyd  <froydnj@codesourcery.com>
4068         * argv.c (writeargv): New function.
4070 2007-05-05  Geoffrey Keating  <geoffk@apple.com>
4072         * cp-demangle.c (d_name): Detect local-source-name.
4073         (d_prefix): Likewise.
4074         (d_unqualified_name): Implement local-source-name.
4076 2007-05-03  Joel Brobecker  <brobecker@adacore.com>
4078         * filename_cmp.c: Replace include of ctype.h by include of
4079         safe-ctype.h.
4080         (filename_cmp): Use TOLOWER instead of tolower for conversions
4081         that are locale-independent.
4082         * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h.
4084 2007-04-11  Thomas Neumann  <tneumann@users.sourceforge.net>
4086         * argv.c: Use ANSI C declarations.
4087         * make-relative-prefix.c: Likewise.
4089 2007-04-06  Joel Brobecker  <brobecker@adacore.com>
4091         * filename_cmp.c (filename_cmp): Improve documentation.
4093 2007-04-02  Andreas Schwab  <schwab@suse.de>
4095         * filename_cmp.c: Include "config.h".
4097 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
4099         * filename_cmp.c: New file.
4100         * Makefile.in (CFILES): Add filename_cmp.c.
4101         (REQUIRED_OFILES): Add filename_cmp.o
4102         (filename_cmp.o): New rule.
4103         * functions.texi: Regenerate.
4105 2007-03-15  Geoffrey Keating  <geoffk@apple.com>
4107         * cp-demangle.c (d_encoding): Exit early on error.
4108         (d_pointer_to_member_type): Exit early if cplus_demangle_type
4109         returns NULL.
4110         (cplus_demangle_type): Likewise.
4111         * testsuite/demangle-expected: New testcase.
4113 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
4115         * Makefile.in: Add install-pdf target as copied from
4116         automake v1.10 rules.
4117         * testsuite/Makefile.in: Add dummy install-pdf target.
4119 2007-03-01  Peter Breitenlohner  <peb@mppmu.mpg.de>
4120             Eric Botcazou  <ebotcazou@libertysurf.fr>
4122         PR other/16513
4123         * Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR).
4124         Install headers in multilib independent location.
4126 2007-02-26  DJ Delorie  <dj@redhat.com>
4128         * configure.ac: add djgpp-specific results, so we don't have to
4129         link during a cross compilation.
4130         * configure: Regenerated.
4132 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4134         * hex.c: Fix typo.
4135         * choose-temp.c: Likewise.
4136         * functions.texi: Regenerate.
4138 2007-01-31  Vladimir Prus  <vladimir@codesourcery.com>
4140         * pex-common.h (struct pex_obj): New fields
4141         stderr_pipe and read_err.
4142         * pex-common.c (pex_init_common): Initialize
4143         stderr_pipe.
4144         (pex_run_in_environment): Add error checking
4145         for PEX_STDERR_TO_PIPE.  Create a pipe
4146         for stderr if necessary.
4147         (pex_read_err): New.
4148         (pex_free): Close read_err.
4149         * pexecute.txh: Document changes.
4150         * functions.texi: Regenerated.
4152 2007-01-31  Ben Elliston  <bje@au.ibm.com>
4154         * strsignal.c (psignal): Change type of signo to int.
4155         * functions.texi: Regenerate.
4157 2007-01-29  Simon Baldwin <simonb@google.com>
4159         * cp-demangle.h (cplus_demangle_operators): External definition
4160         suppressed if not building for libstdc++.
4161         * cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface
4162         to demangling, provides a malloc-less version of __cxa_demangle.
4163         (cplus_demangle_print_callback): Public callback version of
4164         cplus_demangle_print.
4165         (struct d_growable_string): New growable string structure.
4166         (d_growable_string_init): New function, provides support for
4167         growable strings separate from print info.
4168         (d_growable_string_resize): Likewise.
4169         (d_growable_string_append_buffer): Likewise.
4170         (d_growable_string_callback_adapter):): Likewise.
4171         (d_print_init): New print info initialization function.
4172         (d_print_error): Macro replace by inline function.
4173         (d_print_saw_error): Likewise.
4174         (d_append_char): Likewise.
4175         (d_append_buffer): Likewise.
4176         (d_append_string): New inline function, replaces the
4177         d_append_string_constant macro.
4178         (d_flush_buffer): New function, flushes buffer to callback.
4179         (d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback
4180         for unsupported dynamic arrays replaced by alloca().
4181         (d_demangle): Return string length estimating removed.
4182         (d_dump): Moved error case handling from call site into function.
4183         (d_print_resize): Function removed.
4184         (d_print_append_char): Likewise.
4185         (d_print_append_buffer): Likewise.
4186         (d_print_error): Likewise.
4187         (d_print_comp): Added special case handling for Java arrays.
4188         (java_demangle_v3): Removed string post-processing for Java arrays,
4189         now replaced by special case handling in d_print_comp.
4190         (cplus_demangle_v3_callback): Augmented interface to demangling,
4191         provides a malloc-less version of cplus_demangle_v3.
4192         (java_demangle_v3_callback): Augmented interface to demangling,
4193         provides a malloc-less version of java_demangle_v3.
4195 2007-01-12  Ben Elliston  <bje@au.ibm.com>
4197         * pex-unix.c (writeerr): Cast write result to void.
4199         * choose-temp.c (choose_temp_base): Check the result of the call
4200         to mktemp rather than testing the length of the modified string.
4202 2006-12-20  Geoffrey Keating  <geoffk@apple.com>
4204         * cp-demangle.h: Add comment explaining what to do to avoid
4205         overrunning string.
4206         (d_check_char): New.
4207         (d_next_char): Don't advance past trailing '\0'.
4208         * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char.
4209         (d_nested_name): Likewise.
4210         (d_special_name): Likewise.
4211         (d_call_offset): Likewise.
4212         (d_function_type): Likewise.
4213         (d_array_type): Likewise.
4214         (d_pointer_to_member_type): Likewise.
4215         (d_template_param): Likewise.
4216         (d_template_args): Likewise.
4217         (d_template_arg): Likewise.
4218         (d_expr_primary): Likewise.
4219         (d_local_name): Likewise.
4220         (d_substitution): Likewise.
4221         (d_ctor_dtor_name): Use d_advance rather than d_next_char.
4222         * testsuite/test-demangle.c: Include sys/mman.h.
4223         (MAP_ANONYMOUS): Define.
4224         (protect_end): New.
4225         (main): Use protect_end.
4226         * testsuite/demangle-expected: Add testcases for overrunning
4227         the end of the string.
4229 2006-11-30  Andrew Stubbs  <andrew.stubbs@st.com>
4230             J"orn Rennecke <joern.rennecke@st.com>
4232         PR driver/29931
4233         * make-relative-prefix.c (make_relative_prefix_1): New function,
4234         broken out of make_relative_prefix.  Make link resolution dependent
4235         on new parameter.
4236         (make_relative_prefix): Use make_relative_prefix_1.
4237         (make_relative_prefix_ignore_links): New function.
4239 2006-11-08  Vladimir Prus  <vladimir@codesourcery.com>
4241         * pex-win32.c (no_suffixes): Remove.
4242         (std_suffixes): Add "" as first element.
4243         (find_executable): Remove detection of already-present
4244         extension. Try all suffixes in std_suffixes.
4246 2006-11-07  Julian Brown  <julian@codesourcery.com>
4248         * floatformat.c (get_field): Fix segfault with little-endian word
4249         order on 64-bit hosts.
4250         (put_field): Likewise.
4251         (min): Move definition.
4253 2006-10-26  Danny Smith  <dannysmith@users.sourceforge.net>
4255         pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC.
4256         (find_executable): Likewise.
4257         (win32_spawn): Cast alloca return to (char**).
4258         Replace malloc with XNEWVEC.
4259         bcopy.c (bcopy): Add explict casts in assignments.
4261 2006-10-25  Ben Elliston  <bje@au.ibm.com>
4263         * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}.
4265 2006-10-10  Brooks Moses  <bmoses@stanford.edu>
4267         * Makefile.in: Added "pdf", "libiberty.pdf" target support.
4268         * testsuite/Makefile.in: Added empty "pdf" target.
4270 2006-09-22  Ian Lance Taylor  <ian@airs.com>
4272         PR other/29176
4273         * cp-demangle.c (d_substitution): Check for overflow when
4274         computing substitution index.
4276 2006-08-30  Corinna Vinschen  <corinna@vinschen.de>
4278         * configure.ac: Add case for Mingw as host.
4279         * configure: Regenerate.
4281 2006-08-27  Ian Lance Taylor  <ian@airs.com>
4283         PR driver/27622
4284         * pex-common.h (struct pex_funcs): Add toclose parameter to
4285         exec_child field.
4286         * pex-common.c (pex_run_in_environment): Pass toclose to
4287         exec_child.
4288         * pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter.
4289         * pex-unix.c (pex_unix_exec_child): Likewise.
4290         * pex-msdos.c (pex_msdos_exec_child): Likewise.
4291         * pex-win32.c (pex_win32_exec_child): Likewise.
4293         PR other/28797
4294         * cp-demangle.c (d_pointer_to_member_type): Do add a substitution
4295         for a qualified member which is not a function.
4296         * testsuite/demangle-expected: Add test case.
4298 2006-07-27  Jan Hubicka  <jh@suse.cz>
4300         PR rtl-optimization/28071
4301         * hashtab.c (htab_empty): Clear out n_deleted/n_elements;
4302         downsize the hashtable.
4304 2006-07-04  Peter O'Gorman  <peter@pogma.com>
4306         * Makefile.in: chmod 644 before ranlib during install.
4308 2006-06-02  Mark Shinwell  <shinwell@codesourcery.com>
4310         * pex-unix.c (pex_unix_exec_child): Insert cast when assigning
4311         to environ.
4313 2006-06-01  Mark Shinwell  <shinwell@codesourcery.com>
4315         * pex-common.c: New function pex_run_in_environment.
4316         * pex-common.h: Add environment parameter to exec_child.
4317         * pex-msdos.c: Add environment parameter to pex_msdos_exec_child.
4318         * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child.
4319         (pex_djgpp_exec_child): Pass environment to child process.
4320         * pex-unix.c: Add environment parameter to pex_unix_exec_child.
4321         (pex_unix_exec_child): Pass environment to child process.
4322         * pex-win32.c: Add environment parameter to pex_win32_exec_child.
4323         New function env_compare for comparing VAR=VALUE pairs.
4324         (win32_spawn): Assemble environment block and pass to CreateProcess.
4325         (spawn_script): Pass environment through to win32_spawn.
4326         (pex_win32_exec_child): Pass environment through to spawn_script and
4327         win32_spawn.
4328         * functions.texi: Regenerate.
4329         * pexecute.txh: Document pex_run_in_environment.
4331 2006-05-28  Mark Shinwell  <shinwell@codesourcery.com>
4333         * mkstemps.c: Open temporary files in binary mode.
4335 2006-05-12  Anton Blanchard  <anton@samba.org>
4337         * cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
4338         hold "int%u_t".
4340 2006-04-24  Julian Brown  <julian@codesourcery.com>
4342         * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
4344 2006-03-29  Jim Blandy  <jimb@codesourcery.com>
4346         * pex-common.c (pex_input_file, pex_input_pipe): New functions.
4347         (pex_init_common): Initialize obj->input_file.
4348         (pex_run): Close any file opened by pex_input_file.
4349         * pexecute.txh (pex_input_file, pex_input_pipe): New docs.
4350         * pex-common.h (struct pex_obj): New field input_file.
4351         (struct pex_funcs): New function ptr fdopenw.
4352         * pex-unix.c (pex_unix_fdopenw): New function.
4353         (funcs): List it as our fdopenw function.
4354         * pex-win32.c (pex_win32_fdopenw): New function.
4355         (funcs): List it as our fdopenw function.
4356         * pex-djgpp.c (funcs): Leave fdopenw null.
4357         * pex-msdos (funcs): Same.
4358         * functions.texi: Regenerated.
4360 2006-04-10  Jim Blandy  <jimb@codesourcery.com>
4362         * pex-common.c (temp_file): New function, containing guts of
4363         pex-style temporary file name generation.
4364         (pex_run): Use it.
4366 2006-04-06  Carlos O'Donell  <carlos@codesourcery.com>
4368         * Makefile.in: Add install-html, install-html-am, and
4369         install-html-recursive targets. Define mkdir_p and
4370         NORMAL_INSTALL.
4371         * configure.ac: AC_SUBST datarootdir, docdir, htmldir.
4372         * configure: Regenerate.
4373         * testsuite/Makefile.in: Add install-html and html targets.
4375 2006-03-31  Mark Mitchell  <mark@codesourcery.com>
4377         * pex-win32.c (<errno.h>): Include.
4378         (fix_argv): Remove.
4379         (argv_to_cmdline): New function.
4380         (std_suffixes): New variable.
4381         (no_suffixes): Likewise.
4382         (find_executable): New function.
4383         (win32_spawn): Likewise.
4384         (spawn_script): Use win32_spawn instead of _spawnv[p].
4385         (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
4386         (pex_win32_wait): Likewise.
4388 2006-03-24  Jim Blandy  <jimb@codesourcery.com>
4390         * pex-common.c (pex_run): Simplify output name handling.
4392 2006-03-12  Jim Blandy  <jimb@red-bean.com>
4394         * pex-common.h (struct pex_obj): Doc fixes.
4396 2006-03-11  Jim Blandy  <jimb@red-bean.com>
4398         * functions.texi: Regenerate.
4400 2006-02-21  Ben Elliston  <bje@au.ibm.com>
4402         * pexecute.c (pwait): Syntax fix for previous change.
4404 2006-02-17  Uttam Pawar  <uttamp@us.ibm.com>
4406         * pexecute.c (pwait): Free vector pointer.
4407         * partition.c (partition_print): Free class_elements pointer.
4409 2006-02-11  Roger Sayle  <roger@eyesopen.com>
4410             R. Scott Bailey  <scott.bailey@eds.com>
4411             Bill Northcott  <w.northcott@unsw.edu.au>
4413         PR bootstrap/16787
4414         * floatformat.c: Include <float.h> where available.
4415         (NAN): Use value of DBL_QNAN if defined, and NAN isn't.
4417 2006-01-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4419         * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where
4420         supported.
4421         * configure: Regenerated.
4423 2006-01-20  Carlos O'Donell  <carlos@codesourcery.com>
4425         * testsuite/Makefile.in: Add test-expandargv test.
4426         * testsuite/test-expandargv.c: New test.
4427         * argv.c (expandargv): Check for errors with ferror,
4428         rather than just by looking at return value from fread.
4430 2005-12-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4432         * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
4433         to convert from "from".
4434         (floatformat_to_double): Likewise.
4435         (floatformat_from_double): Use explicit cast to convert from "to".
4437 2005-12-10  Terry Laurenzo  <tlaurenzo@gmail.com>
4439         PR java/9861
4440         * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
4441         and include return type when found.
4442         (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add
4443         conditional logic to change printing order of return type.when
4444         the DMGL_RET_POSTFIX option is present.
4445         (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
4446         call.
4447         * testsuite/test-demangle.c (main): Recognize option --ret-postfix
4448         * testsuite/demangle-expected: Test cases to verify extended encoding.
4449         Updated comment to document --ret-postfix option.
4451 2005-11-06  Richard Guenther  <rguenther@suse.de>
4453         * splay-tree.c (rotate_left): New function.
4454         (rotate_right): Likewise.
4455         (splay_tree_splay_helper): Remove.
4456         (splay_tree_splay): Re-implement.
4458 2005-10-31  Mark Kettenis  <kettenis@gnu.org>
4460         * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
4461         New variables.
4463 2005-10-07  Mark Mitchell  <mark@codesourcery.com>
4465         * at-file.texi: Fix typo.
4467 2005-10-03  Mark Mitchell  <mark@codesourcery.com>
4469         * at-file.texi: New file.
4471 2005-09-27  Mark Mitchell  <mark@codesourcery.com>
4473         * argv.c (expandargv): Do not use xmalloc_failed.
4475 2005-09-26  Mark Mitchell  <mark@codesourcery.com>
4477         * argv.c (safe-ctype.h): Include it.
4478         (ISBLANK): Remove.
4479         (stdio.h): Include.
4480         (buildargv): Use ISSPACE instead of ISBLANK.
4481         (expandargv): New function.
4482         * Makefile.in: Regenerated.
4484 2005-09-14  Christopher Faylor  <cgf@timesys.com>
4486         * pex-win32.c: Include "windows.h".
4487         (backslashify): New function.
4488         (fix_argv): Use backslashify to convert path to windows format.
4489         Allocate one more place in new argv for potential executable from '#!'
4490         parsing.
4491         (tack_on_executable): New function.  Conditional on USE_MINGW_MSYS
4492         (openkey): Ditto.
4493         (mingw_rootify): Ditto.
4494         (msys_rootify): Ditto.
4495         (spawn_script): New function.
4496         (pex_win32_exec_child): Save translated argv in newargv.  Pass to
4497         spawn_script if spawnv* fails.
4498         (main): New function.  Conditional on MAIN.  Useful for testing.
4500 2005-08-17  Mark Kettenis  <kettenis@gnu.org>
4502         * floatformat.c (floatformat_always_valid): Change type of last
4503         argument to `void *'.
4504         (floatformat_i387_ext_is_valid): Likewise.
4505         (floatformat_to_double): Change type of second argument to `const
4506         void *'.
4507         (floatformat_from_double): Change type of last argument to `void
4508         *'.
4509         (floatformat_is_valid): Change type of last argument to `const
4510         void *'.
4511         (ieee_test): Remove redundant casts.
4513 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
4515         * strverscmp.c: Update FSF address.
4516         * testsuite/Makefile.in: Likewise.
4517         * testsuite/test-demangle.c: Likewise.
4518         * testsuite/test-pexecute.c: Likewise.
4520 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4522         * getopt.c: Include ansidecl.h before system headers.
4524 2005-07-22  Ben Elliston  <bje@gnu.org>
4526         * getopt.c: Include "ansidecl.h".
4527         (_getopt_initialize): Mark argc and argv parameters as unused.
4529 2005-07-22  Ben Elliston  <bje@gnu.org>
4531         * regex.c (regcomp): Change type of `i' from unsigned to int.
4533 2005-07-22  Ben Elliston  <bje@gnu.org>
4535         Recover patch lost in the sourceware repository:
4536         2005-07-09  Ben Elliston  <bje@au.ibm.com>
4537         * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
4538         * memmove.c: Likewise.
4539         * objalloc.c: Likewise.
4541 2005-07-22  Ben Elliston  <bje@gnu.org>
4543         * configure.ac: Check for a getopt(3) declaration.
4544         * configure, config.in: Regenerate.
4546 2005-07-15  Ben Elliston  <bje@au.ibm.com>
4548         * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
4550 2005-07-12  Ben Elliston  <bje@au.ibm.com>
4552         * floatformat.c (floatformat_to_double): Add a comment about a
4553         potential source of warnings when compiling this file.
4555 2005-07-12  Ben Elliston  <bje@au.ibm.com>
4557         * pexecute.c (pexecute): Cast string litrals to char *.
4558         * regex.c (re_comp): Cast a call to gettext() to char *.
4560 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
4562         * config.table: Delete file.  Move former contents into ...
4563         * configure.ac: ... here and escape any brackets for m4.
4564         * Makefile.in (config.status): Remove dependency on config.table.
4565         * configure: Regenerate.
4567 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
4569         * config.in: Regenerate for 6/20 change.
4571 2005-07-03  Steve Ellcey  <sje@cup.hp.com>
4573         PR other/13906
4574         * md5.c (md5_process_bytes): Check alignment.
4576 2005-07-01  Ian Lance Taylor  <ian@airs.com>
4578         PR other/22268
4579         * cp-demangle.c (d_expr_primary): Don't run off the end of the
4580         string while looking for the end of a literal value.
4581         * testsuite/demangle-expected: Add test case.
4583 2005-06-30  Daniel Berlin  <dberlin@dberlin.org>
4585         * hashtab.c (EMPTY_ENTRY): Moved and renamed.
4586         (DELETED_ENTRY): Ditto.
4588 2005-06-20  Geoffrey Keating  <geoffk@apple.com>
4590         * strverscmp.c: New.
4591         * Makefile.in (CFILES): Add strverscmp.c.
4592         (CONFIGURED_OFILES): Add strverscmp.o.
4593         (strverscmp.o): New rule.
4594         (stamp-functions): Add $(srcdir) to files in source directory.
4595         * configure.ac (funcs): Add strverscmp.
4596         (AC_CHECK_FUNCS): Add strverscmp.
4597         * configure: Regenerate.
4598         * functions.texi: Regenerate.
4600 2005-05-28  Eli Zaretskii  <eliz@gnu.org>
4602         * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
4603         * config.in, configure: Regenerate.
4605 2005-05-25  Richard Henderson  <rth@redhat.com>
4607         * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
4608         (d_make_comp, d_print_comp): Likewise.
4609         (d_special_name): Generate one.
4610         * testsuite/demangle-expected: Add a hidden alias test.
4612 2005-05-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4614         * configure.ac: Check declarations for calloc(), getenv(),
4615         malloc(), realloc() and sbrk().
4616         * config.in: Regenerate.
4617         * configure: Likewise.
4619         * alloca.c (C_alloca): Change "new" to "new_storage".  Use XNEWVEC
4620         instead of xmalloc.
4621         * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
4622         * concat.c (liiberty_concat_ptr): Surround definition with an
4623         extern "C" block, if __cplusplus.
4624         (concat): Use XNEWVEC instead of xmalloc.
4625         (reconcat): Likewise.
4626         * cp-demangle.c (struct d_print_template): Rename member
4627         "template" to "template_decl".  Adjust use throughout the file.
4628         (d_print_resize): Properly cast return value of realloc().
4629         (cplus_demangle_print): Same for malloc().
4630         (d_demangle): Likewise.
4631         * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
4632         "typename" to "type_name".
4633         * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
4634         (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
4635         (demangle_template_value_parm): Likewise.
4636         (demangle_template): Likewise.
4637         (recursively_demangle): Likewise.
4638         (do_hpacc_template_literal): Likewise.
4639         (do_arg): Likewise.
4640         (remember_type): Likewise.
4641         (remember_Ktype): Likewise.
4642         (register_Btype): Likewise.
4643         (string_need): Use XRESIZEVEC instead of xrealloc().
4644         * dyn-string.c (dyn_string_init): Use XNEWVEC.
4645         (dyn_string_new): Use XNEW.
4646         (dyn_string_resize): Use XRESIZEVEC.
4647         * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
4648         * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
4649         Otherwise include <stdlib.h>.
4650         (exchange): Cast return value of malloc().
4651         * hashtab.c (htab_size): Define as both macro and non-inline
4652         function.
4653         (htab_elements): Likewise.
4654         * getpwd.c (getpwd): Use XNEWVEC.
4655         (htab_create_alloc_ex): Use C90 prototype-style.
4656         * lrealpath.c (lrealpath): Appropriately cast return value of
4657         malloc().
4658         * make-relative-prefix.c (save_string): Likewise.
4659         * make-temp-file.c (try_dir): Rename from "try".  Adjust use in
4660         the file.
4661         (choose_tmpdir): Use XNEWVEC.
4662         * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
4663         * pex-common.c (pex_init_common): Use XNEW.
4664         (pex_add_remove): Use XRESIZEVEC.
4665         (pex_run): Likewise.
4666         (pex_get_status_and_time): Likewise.
4667         * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
4668         * pex-msdos.c (pex_init): Use XNEW.
4669         (pex_msdos_exec_child): Likewise.
4670         (pex_msdos_exec_child): Use XRESIZEVEC.
4671         * pex-unix.c (pex_wait): Use XNEW.
4672         * pex-win32.c (fix_argv): Use XNEWVEC.
4673         * pexecute.c (pwait): Likewise.
4674         * setenv.c (setenv): Properly cast return value of malloc().
4675         * sigsetmask.c (sigsetmask): Rename local variables "old" and
4676         "new" to "old_sig" and "new_sig".
4677         * sort.c (main): Use XNEWVEC.
4678         * spaces.c (spaces): Cast return value of malloc().
4679         * strndup.c (strndup): Likewise.
4680         * ternary.c (ternary_insert): Use XNEW.
4681         * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
4682         with an extern "C" block if __cplusplus.
4683         * xstrdup.c (xstrdup): Cast return value of memcpy().
4684         * xstrerror.c (strerror): Enclose declaration in an extern "C"
4685         block if __cplusplus.
4686         * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
4688 2005-05-16  Andreas Jaeger  <aj@suse.de>
4690         * getpwd.c: Remove unneeded prototype getcwd and move getwd so
4691         that it's only declared if needed.
4693         * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
4694         defined.
4696 2005-05-15  Andreas Jaeger  <aj@suse.de>
4698         * functions.texi: Regenerated.
4700 2005-05-15  Eli Zaretskii  <eliz@gnu.org>
4702         * pexecute.txh: Enclose multi-word data types in @deftypefn in
4703         braces.  Minor wording fixes.  Use --- for em-dash.  Use
4704         @enumerate in enumerated lists.
4706         * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
4707         braces.
4709 2005-05-11  Eli Zaretskii  <eliz@gnu.org>
4711         * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
4712         sys/stat.h.
4713         (pex_init): Fix last argument to pex_init_common.
4714         (pex_djgpp_exec_child): Remove leading underscore from _open,
4715         _dup, _dup2, _close, and _spawnv/_spawnvp.  Replace `program',
4716         which is undeclared, with `executable', which was unused.  Remove
4717         unused variable `e'.  Fix casting of last arg to spawnv/spawnvp.
4718         (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
4720 2005-05-11  Paul Brook  <paul@codesourcery.com>
4722         * Makefile.in: Regenerate dependencies.
4724 2005-05-10  Nick Clifton  <nickc@redhat.com>
4726         * Update the address and phone number of the FSF organization in
4727         the GPL notices in the following files:
4728         COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
4729         choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
4730         cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
4731         fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
4732         gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
4733         lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
4734         make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
4735         obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
4736         pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
4737         physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
4738         sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
4739         strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
4740         vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
4742 2005-05-06  Kelley Cook  <kcook@gcc.gnu.org>
4744         * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
4745         * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
4746         * configure: Regenerate.
4748 2005-05-06  Kelley Cook  <kcook@gcc.gnu.org>
4750         * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
4751         Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
4752         * aclocal.m4: Don't include accross.m4.
4753         * configure, config.in: Regenerate.
4755 2005-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4757         * fopen_unlocked.c (unlock_std_streams): New.
4759         * functions.texi: Regenerate.
4761 2005-04-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4763         * fopen_unlocked.c (unlock_stream): New.
4764         Consolidate unlocking code into a helper function.
4766         * functions.texi: Regenerate.
4768 2005-04-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4770         * asprintf.c: Include config.h.
4771         * basename.c: Likewise.
4772         * fdmatch.c: Likewise.
4773         * hex.c: Likewise.
4774         * lbasename.c: Likewise.
4775         * spaces.c: Likewise.
4776         * xatexit.c:Likewise.
4777         * configure.ac:  Do check declarations for basename, ffs, asprintf
4778         and vasprintf for real.
4779         * configure: Regenerate.
4781 2005-04-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4783         * argv.c (dupargv): Allocate space of argv[argc], not
4784         sizeof(char *) of that amount.  Cast result to char *.
4786 2005-04-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4788         * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
4789         Replace not with negate.
4791 2005-04-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4793         * configure.ac: Check declarations for basename, ffs, asprintf,
4794         vasprintf.
4795         * configure: Regenerate.
4796         * config.in: Likewise.
4798 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4800         * Makefile.in (CFILES): Add fopen_unlocked.c.
4801         (REQUIRED_OFILES): Add ./fopen_unlocked.o.
4802         Regenerate dependencies.
4804         * configure.ac: Check for stdio_ext.h and __fsetlocking.
4806         * fopen_unlocked.c: New file.
4808         * functions.texi, configure, config.in: Regenerate.
4810 2005-04-04  Ian Lance Taylor  <ian@airs.com>
4812         * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
4813         declaration before statement.
4815 2005-04-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4817         * bcmp.c: Fix warnings and implement using memcmp.
4818         * bcopy.c: Fix warnings.
4819         * bzero.c: Fix warnings and implement using memset.
4821         * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
4822         -Wstrict-prototypes.
4823         * configure, config.in: Regenerate.
4825         * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
4826         warnings and reconcile interfaces with relevant standards.
4828 2005-04-02  Ian Lance Taylor  <ian@airs.com>
4830         * cp-demangle.c: Update copyright.
4832 2005-03-31  Joseph S. Myers  <joseph@codesourcery.com>
4834         * gettimeofday.c: Add "Supplemental" to @deftypefn.
4835         * functions.texi: Regenerate.
4837 2005-03-28  Ian Lance Taylor  <ian@airs.com>
4839         * pex-common.c: New file.
4840         * pex-one.c: New file.
4841         * pexecute.c: New file.
4842         * pex-common.h: Include <stdio.h>.
4843         (struct pex_obj): Define.
4844         (struct pex_funcs): Define.
4845         (pex_init_common): Declare.
4846         * pex-unix.c: Rewrite.
4847         * pex-win32.c: Rewrite.
4848         * pex-djgpp.c: Rewrite.
4849         * pex-msdos.c: Rewrite.
4850         * testsuite/text-pexecute.c: New file.
4851         * pexecute.txh: Rewrite.
4852         * configure.ac: Check for wait3 and wait4.  Set CHECK to
4853         really-check rather than check-cplus-dem.
4854         * functions.texi: Rebuild.
4855         * Makefile.in: Rebuild dependencies.
4856         (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
4857         (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
4858         * testsuite/Makefile.in (really-check): New target.
4859         (check-pexecute, test-pexecute): New targets.
4860         * configure: Rebuild.
4862 2005-03-28  Mark Kettenis  <kettenis@gnu.org>
4864         * unlink-if-ordinary.c: Include <sys/types.h>.
4866 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4868         Convert libiberty to use ISO C prototype style 7/n.
4869         * regex.c (PARAMS): Remove definition.
4870         (PREFIX): Unconditionaly define using ISO C ## operator.
4871         (init_syntax_once, extract_number, extract_number_and_incr,
4872         print_fastmap, print_partial_compiled_pattern,
4873         print_compiled_pattern, print_double_string, printchar,
4874         convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
4875         regex_compile, store_op1, store_op2, insert_op1, insert_op2,
4876         at_begline_loc_p, at_endline_p, group_in_compile_stack,
4877         insert_space, wcs_compile_range, byte_compile_range,
4878         truncate_wchar, re_compile_fastmap, re_compile_fastmap,
4879         re_set_registers, re_search, re_search_2, re_search_3, re_match,
4880         re_match_2, count_mbs_length, wcs_re_match_2_internal,
4881         byte_re_match_2_internal, group_match_null_string_p,
4882         alt_match_null_string_p, common_op_match_null_string_p,
4883         bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
4884         regexec, regerror, regfree): Use ISO C prototype style.
4885         * partition.c: (elem_compare): Likewise.
4886         * cp-demangle.c (print_usage): Likewise.
4888 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4890         Convert libiberty to use ISO C prototype style 5/n.
4891         * random.c (srandom, initstate, setstate, random): Use ISO C
4892         prototypes.
4893         * putenv.c (putenv): Likewise.
4894         * physmem.c (physmem_available, physmem_total, main): Likewise.
4895         * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
4896         * pex-unix.c (pexecute, pwait): Likewise.
4897         * pex-msdos.c (pexecute, pwait): Likewise.
4898         * pex-djgpp.c (pexecute, pwait): Likewise.
4899         * partition.c (partition_new, partition_delete, partition_union)
4900         (elem_compare, partition_print): Likewise.
4901         * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
4902         _obstack_allocated_p, _obstack_free, obstack_free,
4903         _obstack_memory_used, print_and_abort, obstack_next_free,
4904         obstack_object_size, obstack_base): Likewise.  Remove codes
4905         predicated on !defined(__STDC__).
4906         * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
4907         objalloc_free_block): Use ISO C prototypes.
4908         * mkstemps.c (mkstemps): Likewise.
4909         * memset.c (memset): Likewise.
4910         * mempcpy.c (mempcpy): Likewise.
4911         * rename.c (rename): Likewise.
4912         * rindex.c (rindex): Likewise.
4913         * setenv.c (setenv, unsetenv): Likewise.
4914         * sigsetmask.c (sigsetmask): Likewise.
4915         * snprintf.c (snprintf): Likewise.
4916         * sort.c (sort_pointers, xmalloc): Likewise.
4917         * spaces.c (spaces): Likewise.
4918         * splay-tree.c (splay_tree_delete_helper,
4919         splay_tree_splay_helper, splay_tree_splay,
4920         splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
4921         splay_tree_new, splay_tree_xmalloc_allocate,
4922         splay_tree_new_with_allocator, splay_tree_delete,
4923         splay_tree_insert, splay_tree_remove, splay_tree_lookup,
4924         splay_tree_max, splay_tree_min, splay_tree_predecessor,
4925         splay_tree_successor, splay_tree_foreach,
4926         splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
4927         * stpcpy.c (stpcpy): Likewise.
4928         * stpncpy.c (stpncpy): Likewise.
4929         * strcasecmp.c (strcasecmp): Likewise.
4930         * strchr.c (strchr): Likewise.
4931         * strdup.c (strdup): Likewise.
4933 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4935         Convert libiberty to use ISO C prototype style 6/n.
4936         * strerror.c (init_error_tables, errno_max, strerror, strerrno,
4937         strtoerrno, main): Use ISO C prototype style.
4938         * strncasecmp.c (strncasecmp): Likewise.
4939         * strncmp.c (strncmp): Likewise.
4940         * strndup.c (strndup): Likewise.
4941         * strrchr.c (strrchr): Likewise.
4942         * strsignal.c (init_signal_tables, signo_max, strsignal,
4943         strsigno, strtosigno, psignal, main): Likewise.
4944         * strstr.c (strstr): Likewise.
4945         * strtod.c (strtod, atof): Likewise.
4946         * strtol.c (strtol): Likewise.
4947         * strtoul.c (strtoul): Likewise.
4948         * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
4949         ternary_recursivesearch): Likewise.
4950         * tmpnam.c (tmpnam): Likewise.
4951         * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
4952         * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
4953         * vfork.c (vfork): Likewise.
4954         * vfprintf.c (vfprintf): Likewise.
4955         * vprintf.c (vprintf): Likewise.
4956         * vsnprintf.c (vsnprintf, checkit, main): Likewise.
4957         * vsprintf.c (vsprintf): Likewise.
4958         * waitpid.c (waitpid): Likewise.
4959         * xatexit.c (xatexit, xatexit_cleanup): Likewise.
4960         * xexit.c (xexit): Likewise.
4961         * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
4962         xcalloc, xrealloc): Likewise.
4963         * xmemdup.c (xmemdup): Likewise.
4964         * xstrdup.c (xstrdup): Likewise.
4965         * xstrerror.c (xstrerror): Likewise.
4966         * xstrndup.c (xstrndup): Likewise.
4968 2005-03-27  Andreas Jaeger  <aj@suse.de>
4970         * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
4971         flags.
4972         * configure: Regenerated.
4974 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4976         * getopt1.c (getopt_long_only): Fix thinko.
4978 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4980         Convert libiberty to use ISO C prototype style 4/n.
4981         * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
4982         htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
4983         htab_create_alloc, htab_set_functions_ex, htab_create,
4984         htab_try_create, htab_delete, htab_empty,
4985         find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
4986         htab_find, htab_find_slot_with_hash, htab_find_slot,
4987         htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
4988         htab_traverse_noresize, htab_traverse, htab_collisions,
4989         htab_hash_string, iterative_hash): Use ISO C prototype.
4990         * hex.c (hex_init): Likewise.
4991         * index.c (index): Likewise.
4992         * insque.c (insque, remque): Likewise.
4993         * lbasename.c (lbasename): Likewise.
4994         * lrealpath.c (lrealpath): Likewise.
4995         * make-relative-prefix.c (save_string, split_directories,
4996         free_split_directories, make_relative_prefix): Likewise.
4997         * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
4998         * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
4999         md5_buffer, md5_process_bytes, md5_process_block): Likewise.
5000         * memchr.c (memchr): Likewise.
5001         * memcpy.c (memcpy): Likewise.
5002         * memmove.c (memmove): Likewise.
5003         * gettimeofday.c (gettimeofday): Likewise.
5004         * getruntime.c (get_run_time): Likewise.
5005         * getpwd.c (getpwd, getpwd): Likewise.
5006         * getpagesize.c (getpagesize): Likewise.
5007         * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
5008         * getopt.c (my_index, exchange, _getopt_initialize,
5009         _getopt_internal, getopt, main): Likewise.
5010         * getcwd.c (getcwd): Likewise.
5011         * fnmatch.c (fnmatch): Likewise.
5012         * floatformat.c (floatformat_always_valid,
5013         floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
5014         put_field, floatformat_from_double, floatformat_is_valid,
5015         ieee_test, main): Likewise.
5016         * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
5017         fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
5018         fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
5019         fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
5020         fibheap_delete, fibheap_empty, fibheap_extr_min_node,
5021         fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
5022         fibheap_link, fibheap_cut, fibheap_cascading_cut,
5023         fibnode_insert_after, fibnode_remove): Likewise.
5024         * ffs.c (ffs): Likewise.
5025         * fdmatch.c (fdmatch): Likewise.
5026         * dyn-string.c (dyn_string_init, dyn_string_new,
5027         dyn_string_delete, dyn_string_release, dyn_string_resize,
5028         dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
5029         dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
5030         dyn_string_insert_cstr, dyn_string_insert_char,
5031         dyn_string_append, dyn_string_append_cstr,
5032         dyn_string_append_char, dyn_string_substring, dyn_string_eq):
5033         Likewise.
5035 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5037         Convert libiberty to use ISO C prototype style 3/n.
5038         * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
5039         consume_count_with_underscores, code_for_qualifier,
5040         qualifier_string, demangle_qualifier, cplus_demangle_opname,
5041         cplus_mangle_opname, cplus_demangle_set_style,
5042         cplus_demangle_name_to_style, cplus_demangle, grow_vect,
5043         ada_demangle, internal_cplus_demangle, squangle_mop_up,
5044         work_stuff_copy_to_from, delete_non_B_K_work_stuff,
5045         delete_work_stuff, mop_up, demangle_signature,
5046         demangle_method_args, demangle_template_template_parm,
5047         demangle_expression, demangle_integral_value,
5048         demangle_real_value, demangle_template_value_parm,
5049         demangle_template, arm_pt, demangle_arm_hp_template,
5050         demangle_class_name, demangle_class, iterate_demangle_function,
5051         demangle_prefix, gnu_special, recursively_demangle, arm_special,
5052         demangle_qualified, get_count, do_type, demangle_fund_type,
5053         do_hpacc_template_const_value, do_hpacc_template_literal,
5054         snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
5055         register_Btype, remember_Btype, forget_B_and_K_types,
5056         forget_types, demangle_args, demangle_nested_args,
5057         demangle_function_name, string_need, string_delete, string_init,
5058         string_clear, string_empty, string_append, string_appends,
5059         string_appendn, string_prepend, string_prepends, string_prependn,
5060         string_append_template_idx): Use ISO C prootype style.
5061         * cp-demint.c (cplus_demangle_fill_component,
5062         cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
5063         cplus_demangle_v3_components): Likewise.
5065 2005-03-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5067         Convert libiberty to use ISO C prototype style 2/n.
5068         * cp-demangle.h: Remove uses of PARAMS.
5069         * cp-demangle.c: Likewise.
5070         (d_dump, cplus_demangle_fill_name,
5071         cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
5072         cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
5073         d_make_builtin_type, d_make_operator, d_make_extended_operator,
5074         d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
5075         cplus_demangle_mangled_name, has_return_type,
5076         is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
5077         d_prefix, d_unqualified_name, d_source_name, d_number,
5078         d_identifier, d_operator_name, d_special_name, d_call_offset,
5079         d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
5080         d_function_type, d_bare_function_type, d_class_enum_type,
5081         d_array_type, d_pointer_to_member_type, d_template_param,
5082         d_template_args, d_template_arg, d_expression, d_expr_primary,
5083         d_local_name, d_discriminator, d_add_substitution,
5084         d_substitution, d_print_resize, d_print_append_char,
5085         d_print_append_buffer, d_print_error, cplus_demangle_print,
5086         d_print_comp, d_print_java_identifier, d_print_mod_list,
5087         d_print_mod, d_print_function_type, d_print_array_type,
5088         d_print_expr_op, d_print_cast, cplus_demangle_init_info,
5089         d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
5090         is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
5091         print_usage, main):
5093 2005-03-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5095         Convert libiberty to ISO C prototype style 1/n.
5096         * _doprnt.c: Remove conditional #include <varargs.h> on
5097         ANSI_PROTOTYPES as the latter is always assumed.
5098         (_doprnt, checkit, main): Use ISO C prototype.
5099         * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
5100         * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
5101         (dupargv, freeargv, buildargv, main): Use ISO C prototype.
5102         * atexit.c (atexit): Likewise
5103         * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
5104         (asprintf): Use ISO C prototype.
5105         * basename.c (basename): Likewise
5106         * bcmp.c (bcmp): Likewise.
5107         * bcopy.c (bcopy): Likewise.
5108         * bzero.c (bzero): Likewise.
5109         * bsearch.c (bsearch): Likewise.  Improve const-correctness.
5110         * choose-temp.c (choose_temp_base): Likewise.
5111         * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
5112         (calloc): Use ISO C prototype.
5113         * clock.c (clock): Likewise.
5114         * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
5115         (vconcat_length, vconcat_copy, concat_length, concat_copy,
5116         concat_copy2, concat, reconcat, main): Use ISO C prototype.
5117         * copysign.c (copysign): Likewise.
5119 2005-03-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5121         * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
5122         (REQUIRED_OFILES): Add xstrndup.o.
5123         (CONFIGURED_OFILES): Add strndup.o.
5124         Regenerate dependencies.
5126         * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
5128         * strndup.c, xstrndup.c: New.
5130         * config.in, configure, functions.texi: Regenerate.
5132 2005-03-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5134         * xmemdup.c, xstrdup.c: Expose the tail call.
5136 2005-03-09  Mark Mitchell  <mark@codesourcery.com>
5138         * configure.ac (funcs): Add gettimeofday.
5139         * configure: Regenerated.
5140         * gettimeofday.c: New file.
5141         * Makefile.in (CFILES): Add gettimeofday.
5142         (CONFIGURED_OFILES): Add gettimeofday.o.
5143         (./gettimeofday.o): New rule.
5145 2005-03-09  Ian Lance Taylor  <ian@airs.com>
5147         * pex-os2.c: Remove.
5148         * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
5149         * Makefile.in (CFILES): Remove pex-os2.c.
5150         (CONFIGURED_OFILES): Remove pex-os2.o.
5151         (pex-os2.o): Remove target.
5152         * configure: Rebuild.
5154 2005-03-07  Ian Lance Taylor  <ian@airs.com>
5156         * mpw-config.in: Remove.
5157         * mpw-make.sed: Remove.
5158         * mpw.c: Remove.
5159         * Makefile.in (CFILES): Remove pex-mpw.c.
5160         (CONFIGURED_OFILES): Remove pex-mpw.o.
5161         (mpw.o, pex-mpw.o): Remove targets.
5162         * maint-tool (undoc): Remove reference to mpw.c.
5164 2005-03-06  DJ Delorie  <dj@redhat.com>
5166         * configure.ac (target_header_dir): vfork is a stub under djgpp.
5167         * configure: Regenerated.
5169 2005-03-01  Jan Beulich  <jbeulich@novell.com>
5171         * Makefile.in (CFILES): Add unlink-if-ordinary.c
5172         (REQUIRED_OFILES): Add unlink-if-ordinary.o.
5173         Add dependencies and rule for unlink-if-ordinary.o.
5174         * unlink-if-ordinary.c: New.
5176 2005-03-01  Ben Elliston  <bje@au.ibm.com>
5178         * hashtab.c (htab_find_slot_with_hash): Make function
5179         documentation clearer.
5181 2005-02-13  Jason Merrill  <jason@redhat.com>
5183         * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
5184         arguments.
5186 2005-01-11  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
5188         * hex.c (hex_value): Group 'unsigned int' together to get correct
5189         markup.
5190         * functions.texi: Regenerated.
5192 2004-12-27  H.J. Lu  <hongjiu.lu@intel.com>
5194         * Makefile.in: Undo to 2004-12-17.
5195         * aclocal.m4: Likewise.
5196         * config.table: Likewise.
5197         * configure.ac: Likewise.
5198         * maint-tool: Likewise.
5199         * configure: Likewise.
5201 2004-12-19  H.J. Lu  <hongjiu.lu@intel.com>
5203         PR bootstrap/19072
5204         * Makefile.in (enable_shared): New substitute.
5205         (LTTARGETLIB): New.
5206         (PREFIXTARGETLIB): New.
5207         (LTTESTLIB): New.
5208         (PREFIXTESTLIB): New.
5209         (CCLD): New.
5210         (LINK): New.
5211         ($(TARGETLIB)): Use $(LINK) to create libraries and create
5212         targets by hand.
5213         ($(TESTLIB)): Likewise.
5214         (mostlyclean): Don't remove .libs. Remove the libtool object
5215         directory.
5217         * config.table (enable_shared): Removed.
5219         * configure.ac (enable_static): Set to yes.
5220         (AC_PROG_LIBTOOL): Removed.
5221         (AM_DISABLE_SHARED): Uncommented.
5222         (AM_PROG_LIBTOOL): Likewise.
5223         (LIBOBJS): Add `./' to avoid VPATH.
5224         (LTLIBOBJS): Likewise.
5225         (enable_shared): Substitute.
5226         * configure: Regenerated.
5228 2004-12-18  H.J. Lu  <hongjiu.lu@intel.com>
5230         * Makefile.in (top_builddir): Set to `.'.
5231         (OUTPUT_OPTION): Removed.
5232         (LIBTOOL): New.
5233         (LTLIBOBJS): New.
5234         (EXTRA_LTOFILES): New.
5235         (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
5236         (all): Remove stamp-picdir.
5237         (LTCOMPILE): New.
5238         (.c.lo): New rule.
5239         (REQUIRED_LTOFILES): New.
5240         (CONFIGURED_LTOFILES): New.
5241         ($(TARGETLIB)): Check .libs for PIC object files. Depend on
5242         $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
5243         (stamp-picdir): Completely removed.
5244         (maint-missing): Pass $(REQUIRED_LTOFILES)
5245         $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
5246         $(CONFIGURED_OFILES)
5247         (maint-buildall): Depend on $(REQUIRED_LTOFILES)
5248         $(CONFIGURED_LTOFILES).
5249         (mostlyclean): Also remove *.lo .libs.
5250         Run "make maint-deps".
5252         * aclocal.m4: Include ../libtool.m4.
5254         * config.table: Don't check --enable-shared.
5256         * configure.ac (AC_PROG_LIBTOOL): Add.
5257         (AC_PROG_CC_C_O): Removed.
5258         (OUTPUT_OPTION): Removed.
5259         (NO_MINUS_C_MINUS_O): Removed.
5260         (ltpexecute): New substitute.
5261         (LIBOBJS): Cleanup.
5262         * configure: Regenerated.
5264         * maint-tool: Updated for .lo/libtool.
5266 2004-12-11  Ben Elliston  <bje@au.ibm.com>
5268         * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
5269         * configure: Regenerate.
5270         * config.in: Likewise.
5272 2004-12-07  DJ Delorie  <dj@redhat.com>
5274         * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
5275         that recursion (and thus large stack space) is not needed.
5277 2004-11-29  Matt Kraai  <kraai@alumni.cmu.edu>
5279         * pex-unix.c: Fix the spelling of longjmp.
5281 2004-11-23  Ian Lance Taylor  <ian@wasabisystems.com>
5283         PR other/18623
5284         * cp-demangle.c (d_call_offset): Remove useless local variables
5285         offset and virtual_offset.
5286         * cplus-dem.c (ada_demangle): Remove useless local variable
5287         at_start_name.
5288         (demangle_template): Remove useless local variable start.
5290 2004-11-19  Roger Sayle  <roger@eyesopen.com>
5292         * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
5293         "ansidecl.h" to avoid redeclaration errors with native compilers.
5294         * regex.c: Protect config.h from multiple inclusion.
5296 2004-11-12  Mike Stump  <mrs@apple.com>
5298         * Makefile.in (libiberty.html): Fix html generation.
5300 2004-09-08  Adam Nemet  <anemet@lnxw.com>
5302         * vasprintf.c: Accept __va_copy in addition to va_copy.
5304 2004-09-03  Paolo Bonzini  <bonzini@gnu.org>
5306         * configure: Regenerate.
5308 2004-09-02  Paolo Bonzini  <bonzini@gnu.org>
5310         * configure.ac: Do not enable multilibs for build-side libiberty.
5312 2004-06-29  Danny Smith  <dannysmith@users.sourceforge.net>
5314         * lrealpath.c (lrealpath): Add _WIN32 support.
5316 2004-06-28  Zack Weinberg  <zack@codesourcery.com>
5318         * cp-demangle.h: Declare cplus_demangle_operators,
5319         cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
5320         cplus_demangle_type as static if IN_GLIBCPP_V3.
5322 2004-06-28  Ian Lance Taylor  <ian@wasabisystems.com>
5324         PR other/16240
5325         * cp-demangle.c (d_expr_primary): Check for a failure return from
5326         cplus_demangle_type.
5327         * testsuite/demangle-expected: Add test case.
5329 2004-05-31  Danny Smith  <dannysmith@users.sourceforge.net>
5331         * pex-win32.c (fix_argv): Expand comment.
5333 2004-05-25  Daniel Jacobowitz  <drow@false.org>
5335         * Makefile.in: Add .NOEXPORT.
5337 2004-04-29  Douglas B Rupp  <rupp@gnat.com>
5339         * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
5340         copyright.
5342 2004-04-26  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5344         * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
5345         * configure: Regenerate.
5347 2004-04-22  Richard Henderson  <rth@redhat.com>
5349         * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
5350         (CHAR_BIT): Provide default.
5351         (struct prime_ent, prime_tab): New.
5352         (higher_prime_index): Rename from higher_prime_number, return index.
5353         (htab_mod_1): New.
5354         (htab_mod, htab_mod_m2): Use it.
5355         (htab_create_alloc, htab_create_alloc_ex): Store prime index.
5356         (htab_expand): Likewise.
5357         * configure.ac: Check for stdint.h.
5358         (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
5359         * config.in, configure: Rebuild.
5361 2004-04-13  Ian Lance Taylor  <ian@wasabisystems.com>
5363         * strerror.c: Include config.h, and redefine sys_nerr and
5364         sys_errlist, before including ansidecl.h and libiberty.h.
5366 2004-04-13  Jeff Law  <law@redhat.com>
5368         * hashtab.c (htab_remove_elt_with_hash): New function.
5369         (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
5371 2004-03-31  Richard Henderson  <rth@redhat.com>
5373         * hashtab.c (htab_size): Move to top of file; mark inline.
5374         (htab_elements): Likewise.
5375         (htab_mod, htab_mod_m2): New.
5376         (htab_delete): Refactor htab->size and htab->entries.
5377         (htab_empty): Likewise.
5378         (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
5379         (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
5380         (htab_clear_slot): Use htab_size, htab_elements.
5381         (htab_traverse_noresize, htab_traverse): Likewise.
5383 2004-03-17  Ian Lance Taylor  <ian@wasabisystems.com>
5385         * pex-unix.c (pexecute): Use vfork instead of fork, with
5386         appropriate changes to make this safe.
5387         * pex-common.h (STDERR_FILE_NO): Define.
5389         * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
5390         an 80 column screen.  Run maint-deps.
5392 2004-03-09  Kelley Cook  <kcook@gcc.gnu.org>
5394         * configure.ac: Bump version to 2.59.  Apply suggested autoupdates.
5395         * acconfig.h: Delete redundant file.
5396         * config.in: Regenerate.
5397         * configure: Regenerate.
5399 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
5401         * configure: Regenerate for config/accross.m4 correction.
5403 2004-03-07  Andreas Jaeger  <aj@suse.de>
5405         * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
5406         prototypes.
5407         (main): Initialize style.
5409 2004-02-24  Ian Lance Taylor  <ian@wasabisystems.com>
5411         * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
5412         D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
5413         D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
5414         * cp-demangle.c (cplus_demangle_builtin_types): Change char and
5415         short types to D_PRINT_DEFAULT.  Change other integer types to use
5416         new D_PRINT_* values where appropriate.  Change float types to
5417         D_PRINT_FLOAT.
5418         (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
5419         values.
5420         * testsuite/demangle-expected: Adjust two test cases.
5422         * cp-demangle.c (d_print_function_type): Print a space before the
5423         parenthesis around the function type in more cases.
5424         * testsuite/demangle-expected: Adjust one test case.
5426         * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
5427         parentheses around a cast.
5428         * testsuite/demangle-expected: Adjust two test cases to match new
5429         output.
5431         * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
5433         * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
5434         push more than one of the same CV-qualifier on the top of the
5435         stack.
5436         (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
5437         move the CV-qualifiers to apply to the element type instead.
5438         (d_print_array_type): When checking the modifiers, keep looking
5439         past ones which have been printed already.
5440         * testsuite/demangle-expected: Add three test cases.
5442 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
5444         * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
5445         empty string correctly.
5447         * cp-demangle.c (__cxa_demangle): It is not an error if status is
5448         not NULL.  It is an error if the mangled name is the same as a
5449         built-in type name.
5450         (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
5451         than cplus_demangle_v3.
5453         * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
5454         the associated #define of RETURN_ON_ALLOCATION_FAILURE.
5456 2004-02-16  Matt Kraai  <kraai@alumni.cmu.edu>
5458         * regex.c: Include <ansidecl.h>.
5459         (regcomp): Cast i to int.
5460         (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
5462 2004-01-25  Ian Lance Taylor  <ian@wasabisystems.com>
5464         * configure.ac: Add m4_pattern_allow(LIBOBJS).
5465         * configure: Regenerate.
5467 2004-01-22  DJ Delorie  <dj@redhat.com>
5469         * Makefile.in: Convert to ./ throughout.  Rebuild dependencies
5470         with explicit build rules.
5471         (VPATH): Remove.
5472         (.c.o): Poison.
5473         * configure.ac (pexecute, LIBOBJS): Add ./ .
5474         * maint-tool: Build dependencies with explicit rules.
5476 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
5478         * strdup.c (strdup): Constify the argument.
5480 2004-01-14  Loren J. Rittle  <ljrittle@acm.org>
5482         * Makefile.in (distclean): Remove config.cache.
5484 2004-01-13  Daniel Jacobowitz  <drow@mvista.com>
5486         * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
5487         takes two parameters.
5488         * cp-demint.c (cplus_demangle_fill_component): Likewise.
5490 2004-01-12  Ian Lance Taylor  <ian@wasabisystems.com>
5492         * cp-demangle.c: Include "cp-demangle.h".  If IN_GLIBCPP_V3 is
5493         defined, rename some functions which are to become static via
5494         #define.
5495         (CP_STATIC_IF_GLIBCPP_V3): Define.
5496         (struct d_operator_info): Move definition to cp-demangle.h, and
5497         rename to demangle_operator_info.  Change all uses.
5498         (enum d_builtin_type_print): Move definition to cp-demangle.h.
5499         (struct d_builtin_type_info): Move definition to cp-demangle.h,
5500         and rename to demangle_builtin_type_info.  Change all uses.
5501         (enum d_comp_type): Move definition to include/demangle.h, and
5502         rename to demangle_component_type, and change all enums to start
5503         with DEMANGLE_COMPONENT_ instead of D_.  Change all uses.
5504         (struct d_comp): Move definition to include/demangle.h, and rename
5505         to demangle_component.  Change all uses.
5506         (struct d_info): Move definition to cp-demangle.h.
5507         (cplus_demangle_fill_name): New function.
5508         (cplus_demangle_fill_extended_operator): New function.
5509         (cplus_demangle_fill_ctor): New function.
5510         (cplus_demangle_fill_dtor): New function.
5511         (d_make_empty): Remove type parameter.  Change all callers.
5512         (d_make_name): Use cplus_demangle_fill_name.
5513         (d_make_extended_operator): Use
5514         cplus_demangle_fill_extended_operator.
5515         (d_make_ctor): Use cplus_demangle_fill_ctor.
5516         (d_make_dtor): Use cplus_demangle_fill_dtor.
5517         (cplus_demangle_mangled_name): Rename from d_mangled_name.  Make
5518         non-static by default.  Change all callers.
5519         (cplus_demangle_operators): Rename from d_operators.  Change all
5520         uses.  Make non-static by default.  Add sentinel at end of array.
5521         (d_operator_name): Adjust initialization of high for new sentinel
5522         in cplus_demangle_operators.
5523         (cplus_demangle_builtin_types): Rename from d_builtin_types.
5524         Change all uses.  Make non-static by default.  Change initializer
5525         to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
5526         (cplus_demangle_type): Rename from d_type.  Make non-static by
5527         default.  Change all callers.
5528         (cplus_demangle_init_info): Rename from d_init_info.  Make
5529         non-static by default.  Change all callers.
5530         * cp-demangle.h: New file.
5531         * cp-demint.c: New file.
5532         * Makefile.in: Rebuild dependencies.
5533         (CFILES): Add cp-demint.c.
5534         (REQUIRED_OFILES): Add cp-demint.o.
5536 2004-01-09  Kelley Cook  <kcook@gcc.gnu.org>
5538         * configure.in:  Rename file to ...
5539         * configure.ac:  ... this.
5540         * Makefile.in: Update a comment for above change.
5541         * README: Likewise.
5542         * config.in: Regenerate.
5544 2004-01-02  Ian Lance Taylor  <ian@wasabisystems.com>
5546         * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
5547         CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
5548         * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
5549         demangling template parameters.
5550         * testsuite/test-demangle.c (fail): New static function.
5551         (main): Support new options in input file: --no-params,
5552         --is-v3-ctor, and --is-v3-dtor.
5553         * testsuite/demangle-expected: Add --no-params to most tests, and
5554         add the correct result when parameters are not demangled.  Add
5555         some simple tests for V3 constructor/destructor recognition.
5557 2003-12-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5559         * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
5561 2003-12-22  Daniel Jacobowitz  <drow@mvista.com>
5563         PR debug/13272
5564         * Makefile.in (lbasename.o): Depend on filenames.h.
5565         * lbasename.c: Include "filenames.h" instead of defining
5566         its macros locally.
5568 2003-12-22  Ian Lance Taylor  <ian@wasabisystems.com>
5570         * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
5571         dynamic arrays.
5572         (struct d_operator_info): Add len field.
5573         (struct d_builtin_type_info): Add len and java_len fields.
5574         (struct d_standard_sub_info): Add simple_len, full_len, and
5575         set_last_name_len fields.
5576         (struct d_comp): Add len field to s_string.
5577         (struct d_info): Add send, did_subs, and expansion fields.
5578         (d_append_string_constant): Define.
5579         (d_append_string): Remove.  Change all users to use
5580         d_append_string_constant or d_append_buffer instead.
5581         (d_make_sub): Add len parameter.  Change all callers.
5582         (d_name): Increase expansion when substituting std::.
5583         (d_unqualified_name): Increase expansion for an operator.
5584         (d_number): Don't use multiplication for negative numbers.
5585         (d_identifier): Make sure there are enough characters in the
5586         string for the specified length.  Adjust expansion for an
5587         anonymous namespace.
5588         (d_operators): Initialize len field.
5589         (d_special_name, d_ctor_dtor_name): Increase expansion.
5590         (d_builtin_types): Initialize len and java_len fields.
5591         (d_type): Increase expansion for a builtin type.
5592         (d_cv_qualifiers): Increase expansion for each qualifier.
5593         (d_bare_function_type): Decrease expansion when removing single
5594         void parameter.
5595         (d_template_param): Increment did_subs.
5596         (d_expression): Increase expansion for an operator.
5597         (d_expr_primary): Decrease expansion for a type we will print
5598         specially.
5599         (standard_subs): Initialize new fields.
5600         (d_substitution): Increment did_subs when doing a normal
5601         substitution.  Increase expansion for a special substitution.
5602         (d_print): Add estimate parameter.  Change all callers.
5603         (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
5604         (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
5605         (d_print_java_identifier): Rename from d_print_identifier.  Handle
5606         only Java case.  Change caller.
5607         (d_init_info): Change return type to void.  Change all callers.
5608         Initialize send, did_subs, and expansion fields.  Do not
5609         initialize comps and subs fields.
5610         (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
5611         arrays on stack.  Make an estimate of the length of the demangled
5612         name.  Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
5613         (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
5614         subs arrays on stack.
5616 2003-12-20  Ian Lance Taylor  <ian@wasabisystems.com>
5618         * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
5619         after the identifier.
5620         * testsuite/demangle-expected: Add test case.
5622 2003-12-19  Ian Lance Taylor  <ian@wasabisystems.com>
5624         Fix for PR c++/13447:
5625         * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
5626         (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
5627         (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
5628         D_COMP_QUAL_NAME.
5629         (is_ctor_or_dtor): Likewise.
5630         (d_local_name): Use D_COMP_LOCAL_NAME rather than
5631         D_COMP_QUAL_NAME.
5632         (d_print_comp) [D_COMP_LOCAL_NAME]: New.
5633         (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
5634         D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
5635         (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
5636         * testsuite/demangle-expected: Add two test cases.
5638         * cp-demangle.c (d_print_function_type): Clear the global modifier
5639         list when printing the modifiers, not just when printing the
5640         function parameters.
5641         * testsuite/demangle-expected: Add two test cases.
5643 2003-12-15  Ian Lance Taylor  <ian@wasabisystems.com>
5645         * cp-demangle.c (d_print_function_type): Print the function
5646         parameters with no modifiers.
5647         * testsuite/demangle-expected: Add test case.
5649         * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
5650         expect that we've read the entire string.
5651         (is_ctor_or_dtor): Don't expect that we've read the entire
5652         string--reverse patch of 2003-11-29.
5654 2003-12-15  Brendan Kehoe  <brendan@zen.org>
5656         * Makefile.in (floatformat.o): Add dependency on
5657         config.h to accompany change of 2003-12-03.
5659 2003-12-15  Ian Lance Taylor  <ian@wasabisystems.com>
5661         Fix handling of constructor/destructor of standard substitution:
5662         * cp-demangle.c (struct d_standard_sub_info): Define.
5663         (d_substitution): Add prefix argument.  Change all callers.
5664         Rework handling of standard substitutions to print full name when
5665         qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
5666         * testsuite/demangle-expected: Add test case.
5668         Fix handling of negative literal constants:
5669         * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
5670         (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
5671         (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
5672         (d_print_comp): Handle D_COMP_LITERAL_NEG.
5673         * testsuite/demangle-expected: Add test case.
5675 2003-12-04  Ian Lance Taylor  <ian@wasabisystems.com>
5677         * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
5678         (d_last_char): Define new macro.
5679         (d_make_name): Reject an empty name.
5680         (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
5681         (d_substitution, d_print_identifier): Likewise.
5682         (d_print_comp) [D_COMP_OPERATOR]: Likewise.
5683         (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
5684         (d_print_mod) Use new d_last_char macro.
5685         (d_print_cast): Use new d_last_char macro.
5686         (is_ctor_or_dtor): Don't leak memory.
5688         Fix handling of member function modifiers:
5689         * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
5690         D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
5691         (d_dump): Dump new d_comp_type values.
5692         (d_make_comp): Accept new d_comp_type values.
5693         (has_return_type): Only accept _THIS variants of qualifiers.
5694         (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
5695         qualifiers.
5696         (d_cv_qualifiers): Add member_fn parameter.  Change all callers.
5697         (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
5698         qualifiers and printing them at the end, add _THIS qualifiers to
5699         the modifier list.
5700         (d_print_comp) [D_COMP_*_THIS]: New cases.
5701         (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
5702         qualifiers.
5703         (d_print_mod_list): Add suffix parameter.  Change all callers.
5704         Keep walking the list even if the current modifier has been
5705         printed.
5706         (d_print_mod): Handle new _THIS qualifiers.
5707         (d_print_function_type): Handle new _THIS qualifiers when deciding
5708         whether to print a parenthesis.  Put a space before the
5709         parenthesis in some cases.  Call d_print_mod_list again at the
5710         end, passing suffix as 1.
5711         (is_ctor_or_dtor): Look for new _THIS qualifiers.
5712         * testsuite/demangle-expected: Add test case.
5714         Fix for PR gcc/13304:
5715         * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
5716         before the '<' is itself a '<', insert a space.
5717         (d_print_cast): Likewise.
5718         * testsuite/demangle-expected: Add test case.
5720         Fix for PR gcc/13244:
5721         * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
5722         which uses the '>' operator in an extra layer of parens.
5723         * testsuite/demangle-expected: Add test case.
5725 2003-12-03  Ian Lance Taylor  <ian@wasabisystems.com>
5727         * floatformat.c: Include "config.h" and <string.h> if available.
5728         (INFINITY, NAN): Define if not defined by <math.h>.
5729         (floatformat_to_double): Handle NaN, infinity, and denormalized
5730         numbers.
5731         (floatformat_from_double): Likewise.
5732         (ieee_test): In debugging code, use little endian rather than big
5733         endian.  Correct tests to handle NaN and to check correct sign of
5734         zero.  Omit m68k extended test.
5735         (main): Add more debugging cases.
5737 2003-11-29  Ian Lance Taylor  <ian@wasabisystems.com>
5739         * cp-demangle.c (d_demangle): Only return success if we consumed
5740         the entire demangled string.
5741         (is_ctor_or_dtor): Likewise.
5743         * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
5744         to restore expected result of EDG test case to original expected
5745         result.
5747 2003-11-26  Ian Lance Taylor  <ian@wasabisystems.com>
5749         * cp-demangle.c (struct d_print_mod): Add templates field.
5750         (d_make_builtin_type): Check for NULL type.
5751         (d_make_extended_operator): Check for NULL name.
5752         (d_make_ctor, d_make_dtor): Likewise.
5753         (d_mangled_name): Add top_level parameter.  Change all callers.
5754         (d_encoding): If DMGL_PARAMS is not set, strip off initial
5755         CV-qualifiers.
5756         (d_type): Check some return values we rely on.
5757         (d_bare_function_type, d_array_type): Likewise.
5758         (d_pointer_to_member_type, d_template_args): Likewise.
5759         (d_add_substitution): Fail if argument is NULL.
5760         (d_print_resize): Check whether buf is NULL.
5761         (d_print_comp): Save current templates list with each modifier.
5762         Don't pass the modifier list down when printing a template.
5763         (d_print_cast): Don't pass the modifier list down when printing a
5764         template.
5765         (d_print_mod_list): Temporarily set templates list while printing
5766         a modifier.
5767         (d_print_mod): Check that buf is not NULL before using it.
5768         (d_print_function_type): Print parens if there is no modifier.
5769         (d_init_info): Permit as many substitutions as there are
5770         characters in the mangled name.
5771         * testsuite/demangle-expected: Add two new test cases.
5773 2003-11-25  Ian Lance Taylor  <ian@wasabisystems.com>
5775         * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
5776         d_demangle.
5778 2003-11-22  Ian Lance Taylor  <ian@wasabisystems.com>
5780         * cp-demangle.c (d_encoding): Add top_level parameter.  Change all
5781         callers.
5782         (print_usage): Display new -p option.
5783         (long_options): Add --no-params.
5784         (main): Accept and handle -p.
5786 2003-11-21  Ian Lance Taylor  <ian@wasabisystems.com>
5788         * cp-demangle.c (has_return_type): Skip qualifiers when checking
5789         whether we have a template.
5790         * testsuite/demangle-expected: Add four new tests.
5792 2003-11-20  Ian Lance Taylor  <ian@wasabisystems.com>
5794         * testsuite/demangle-expected: Minor changes to match output of
5795         new demangler: adjust whitespace in four tests, and change order
5796         of qualifiers in one test.
5798         * cp-demangle.c: Complete rewrite.
5800 2003-11-19  Mark Mitchell  <mark@codesourcery.com>
5802         * cp-demangle.c (demangle_type): Correct thinko in substitution
5803         processing.
5805 2003-11-18  Ian Lance Taylor  <ian@wasabisystems.com>
5807         * cp-demangle.c (demangle_operator_name): Remove space before
5808         "sizeof".
5809         (demangle_type_ptr): Put qualifiers in the right place.  Handle
5810         qualifiers in pointer to member specially.
5811         (demangle_type): Handle qualifiers for pointer or reference
5812         specially.  Handle function type.
5813         (demangle_local_name): Save and restore caret around demangling of
5814         initial encoding.
5816         * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
5817         cplus_demangle.
5819         * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
5821 2003-10-31  Andreas Jaeger  <aj@suse.de>
5823         * floatformat.c (floatformat_always_valid): Add unused attribute.
5825 2003-10-30  Josef Zlomek  <zlomekj@suse.cz>
5827         Jan Hubicka <jh@suse.cz>
5828         * vasprintf.c (int_vasprintf): Pass va_list by value.
5829         Use va_copy for copying va_list.
5830         (vasprintf): Pass va_list by value.
5832 2003-10-30  Josef Zlomek  <zlomekj@suse.cz>
5834         * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
5835         instead of increasing n_elements when inserting to deleted slot.
5837 2003-10-20  J. Brobecker  <brobecker@gnat.com>
5839         * cplus-dem.c (demangle_template): Register a new Btype only
5840         when needed.
5841         * testsuite/demangle-expected: Add a new test.
5843 2003-10-16  H.J. Lu  <hongjiu.lu@intel.com>
5845         * testsuite/demangle-expected: Update the expected output of
5846         _GLOBAL__I__Z2fnv.
5848 2003-10-02  Daniel Jacobowitz  <drow@mvista.com>
5850         * strerror.c: Revert last change.  Declare static sys_nerr
5851         and sys_errlist using different names.
5853 2003-10-01  Daniel Jacobowitz  <drow@mvista.com>
5855         * strerror.c: Don't provide or reference sys_errlist if
5856         strerror is available.
5858 2003-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5860         * configure.in: Check if $MAKEINFO is missing.
5861         * configure: Regenerated.
5863 2003-09-24  Daniel Jacobowitz  <drow@mvista.com>
5865         * configure.in: Use AC_PROG_CPP_WERROR.
5866         * configure: Regenerated.
5868 2003-09-22  Andrew Cagney  <cagney@redhat.com>
5870         * floatformat.c (floatformat_i387_ext_is_valid): New function.
5871         (floatformat_always_valid): New function.
5872         (floatformat_i387_ext): Initialize new "is_valid" field to
5873         "floatformat_i387_ext_is_valid".
5874         (floatformat_ieee_single_little): Initialize "is_valid" field to
5875         floatformat_always_valid.
5876         (floatformat_ieee_double_big): Ditto.
5877         (floatformat_ieee_double_little): Ditto.
5878         (floatformat_ieee_double_little): Ditto.
5879         (floatformat_ieee_double_littlebyte_bigword): Ditto.
5880         (floatformat_i960_ext): Ditto.
5881         (floatformat_m88110_ext): Ditto.
5882         (floatformat_m88110_harris_ext): Ditto.
5883         (floatformat_arm_ext_big): Ditto.
5884         (floatformat_arm_ext_littlebyte_bigword): Ditto.
5885         (floatformat_ia64_spill_big): Ditto.
5886         (floatformat_ia64_spill_little): Ditto.
5887         (floatformat_ia64_quad_big): Ditto.
5888         (floatformat_ia64_quad_little): Ditto.
5889         (floatformat_ia64_quad_little): Ditto.
5890         (floatformat_is_valid): Call "is_valid".
5892 2003-09-15  Andrew Cagney  <cagney@redhat.com>
5894         * floatformat.c (get_field): Make "data" constant.
5895         (floatformat_is_valid, floatformat_to_double): Make "from"
5896         constant, fix casts.
5897         (floatformat_from_double): Make "from" constant.
5899 2003-09-15  Daniel Jacobowitz  <drow@mvista.com>
5901         * floatformat.c (floatformat_is_valid): New function.
5902         (get_field, put_field): Correct comments.
5904 2003-09-06  Josef Zlomek  <zlomekj@suse.cz>
5906         * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
5907         FIBHEAPKEY_T.
5909 2003-09-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5911         PR bootstrap/12100
5912         * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
5913         * configure: Rebuilt.
5915 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
5917         * aclocal.m4: Include acx.m4 and no-executables.m4.
5918         (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
5919         (LIB_AC_PROG_CC): Remove.
5920         * configure.in: Update AC_PREREQ to 2.57.  Use GCC_NO_EXECUTABLES.
5921         Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
5922         LIB_AC_PROG_CC.  Use AC_LIBOBJ.  Call AC_ISC_POSIX later, only if
5923         performing link tests.
5924         * configure: Regenerated.
5926 2003-08-12  Nathanael Nerode  <neroden@gcc.gnu.org>
5928         * cp-demangle.c: Clarify what package(s) this is part of.
5930 2003-07-05  Danny Smith  <dannysmith@users.sourceforge.net>
5932         * pex-win32.c (pexecute): Mark parameters this_pname and
5933         temp_base as unused. Remove unused variables retries,
5934         sleep_interval. Initialize org_stdin, org_stdout.
5935         (pwait): Mark parameter flags as unused.
5937 2003-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
5939         * pex-win32.c (fix_argv): Ensure that the executable pathname
5940         uses Win32 backslashes.
5941         (pexecute): Cast away constness when assigning *errmsg_arg.
5943 2003-06-26  H.J. Lu <hongjiu.lu@intel.com>
5945         * testsuite/demangle-expected: Add more GNU V3 testcases.
5947 2003-06-22  Zack Weinberg  <zack@codesourcery.com>
5949         * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
5950         not HC_ASCII and HC_EBCDIC.
5951         Add documentation in form expected by gather-docs.
5952         * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
5953         * Makefile.in, functions.texi: Regenerate.
5955 2003-06-21  Zack Weinberg  <zack@codesourcery.com>
5957         * safe-ctype.c: Separate out EOF==-1 check.  Use HOST_CHARSET
5958         for charset determination.
5960 2003-06-19  Dara Hazeghi  <dhazeghi@yahoo.com>
5962         * configure.in: Add check for malloc.h needed by
5963         m68k for function free().
5964         * configure: Regenerated.
5965         * config.in: Add HAVE_MALLOC_H.
5966         * hashtab.c: include malloc.h were available for
5967         free().
5969 2003-06-09  Albert Chin-A-Young  <china@thewrittenword.com>
5971         PR bootstrap/10974
5972         * physmem.c: Update comment.
5973         * configure.in: Modify test for _system_configuration for older
5974         AIX systems.
5976         * config.in, configure: Regenerated.
5978 2003-06-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5980         PR other/10810
5981         * test-demangle.c (getline): Fix fence-post error.
5983 2003-06-03  Nick Clifton  <nickc@redhat.com>
5985         * asprintf.c: Change comment to note that -1 is returned upon
5986         error.
5987         * vasprintf.c: Likewise.
5988         (vasprintf): Return -1 upon error.
5989         * functions.texi: Document changes to asprintf and vasprintf.
5991 2003-05-19  Kelley Cook  <kelleycook@wideopenwest.com>
5993         * config.table: Accept i[345867]86 variant.
5995 2003-05-15  Jim Blandy  <jimb@redhat.com>
5997         * hex.c (_hex_value): Make this unsigned.
5998         (hex_value): Update documentation for new return type.  hex_value
5999         now expands to an unsigned int expression, to avoid unexpected
6000         sign extension when we store it in a bfd_vma, which is larger than
6001         int on some platforms.
6002         * functions.texi: Regenerated.
6004 2003-05-07  Josef Zlomek  <zlomekj@suse.cz>
6006         * splay-tree.c (splay_tree_predecessor): Fix comment.
6007         (splay_tree_successor): Fix comment.
6009 2003-05-07  Jason Merrill  <jason@redhat.com>
6011         * hashtab.c (iterative_hash): New fn.
6012         * configure.in: Add AC_C_BIGENDIAN_CROSS.
6013         * aclocal.m4: Include accross.m4.
6014         * configure, config.in: Regenerate.
6016 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6018         * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
6019         * configure: Regenerate.
6021 2003-05-03  Carlo Wood  <carlo@alinoe.com>
6023         * cp-demangle.c: Fix typo in "char_traints" string-literal.
6025 2003-04-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6027         * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
6028         (main): Test that we don't write too much data.
6030 2003-04-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6032         * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
6033         vsnprintf.
6034         * snprintf.c, vsnprintf.c: New files.
6035         * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
6036         (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
6037         Regenerate dependencies.
6039         * functions.texi, configure, config.in: Regenerated.
6041 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6043         * mempcpy.c, stpcpy.c, stpncpy.c: New files.
6044         * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
6045         and stpncpy.
6046         * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
6047         (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
6048         Regenerate dependencies.
6050         * functions.texi, configure, config.in: Regenerated.
6052 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6054         * argv.c: Fix comments.
6055         * calloc.c: Don't unnecessarily include "libiberty.h".
6056         (bzero): Add prototype.
6057         * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
6058         * getcwd.c (getcwd): Use standard definition to avoid conflicts
6059         with system headers.
6060         * hashtab.c (htab_traverse): Delete unused variables.
6061         * rename.c: Include "ansidecl.h".
6062         (rename): Use standard definition to avoid conflicts with system
6063         headers.
6064         * strsignal.c: Rely on ANSI_PROTOTYPES.
6065         * strstr.c: Check GNUC >= 2, not GNUC == 2.
6066         * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
6067         * vprintf.c: Include "ansidecl.h" earlier, rely on
6068         ANSI_PROTOTYPES.
6069         * vsprintf.c: Include "ansidecl.h" earlier, rely on
6070         ANSI_PROTOTYPES and possibly include <stdarg.h>.
6072         * Makefile.in: Regenerate dependencies.
6074 2003-04-15  DJ Delorie  <dj@redhat.com>
6076         * maint-tool (deps): Scan for headers in $srcdir also.
6078 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6080         PR target/10338
6081         PR bootstrap/10198
6082         PR bootstrap/10140
6083         * getopt.c (exchange, _getopt_initialize): Use mempcpy not
6084         __mempcpy.
6085         * regex.c (regerror): Likewise.
6087 2003-04-14  Roger Sayle  <roger@eyesopen.com>
6089         * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
6090         * memchr.c: Likewise.
6091         * strcasecmp.c: Likewise.
6092         * strncasecmp.c: Likewise.
6093         * strncmp.c: Likewise.
6094         * xatexit.c: Likewise.
6095         * xmalloc.c: Likewise.
6097         * copysign.c: Use traditional function declaration instead of DEFUN.
6098         * sigsetmask.c: Likewise.
6100         * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
6101         * memset.c: Likewise.
6103         * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
6104         * memmove.c: Likewise.
6106 2003-04-14  Roger Sayle  <roger@eyesopen.com>
6108         * strdup.c (strdup): Tweak implementation to use memcpy.
6110 2003-04-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6112         * configure.in (HAVE_UINTPTR_T): Always define.
6113         * configure: Regenerated.
6115 2003-03-23  Alexandre Oliva  <aoliva@redhat.com>
6117         * Makefile.in (MULTIOSDIR): New macro.  Use $(CC) $(LIBCFLAGS)
6118         instead of $$CC alone.
6119         (install_to_tooldir): Use it.
6121 2003-17-03  Jan Hubicka  <jh@suse.cz>
6123         * hashtab.c (htab_traverse_noresize): Break out from ...
6124         * hashtab.c (htab_traverse): ... here.
6126 2003-12-03  Jan Hubicka  <jh@suse.cz>
6128         * hashtab.c (htab_expand): Fix warning.
6130         * hashtab.c (htab_expand): Compute the size of hashtable based
6131         on the number of elements actually used.
6132         (htab_traverse):  Call htab_expand when table is too empty.
6134 2003-03-11  Carlo Wood  <carlo@gnu.org>
6136         * cplus-dem.c (demangle_integral_value): Correction to reflect
6137         patch of 2002-01-10 in order to also make negative multi-digits
6138         without leading underscore work.
6140 2003-03-03  Mark Mitchell  <mark@codesourcery.com>
6142         * cplus-dem.c: Add license exception to copyright notice.
6144 2003-02-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6146         * physmem.c: Formatting changes from upstream.
6148 2003-02-24  Danny Smith  <dannysmith@users.source.forge.net>
6150         * physmem.c (physmem_total): Add _WIN32 support.
6151         (physmem_available): Likewise.
6153 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6155         * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
6156         GSI_PHYSMEM.
6157         (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
6159 2003-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6161         * configure.in: Check for sys/systemcfg.h and
6162         _system_configuration.
6163         * physmem.c: Add support for AIX.  Tweek formatting as per
6164         upstream coreutils beta.
6166 2003-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6167             Richard Earnshaw  <rearnsha@arm.com>
6168             Geoffrey Keating  <geoffk@apple.com>
6170         * configure.in: Check for sys/sysctl.h and sysctl.
6171         * physmem.c: Add support for *bsd and darwin.
6172         * Makefile.in: Generate depedency for physmem.o.
6174 2003-02-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6176         * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
6177         Tru64 UNIX.
6178         (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
6179         Tru64 UNIX.
6181         * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
6182         machine/hal_sysinfo.h, sys/table.h.
6183         (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
6184         * configure, config.in: Regenerate.
6186 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6188         * configure.in: Check for sys/sysmp.h and sysmp.
6189         * physmem.c: Pull upstream copy, add support for irix6.
6191         * config.in, configure: Regenerated.
6193 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6195         * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
6196         * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
6197         pstat_getdynamic.
6199 2003-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6201         * Makefile.in (CFILES): Add physmem.c.
6202         (REQUIRED_OFILES): Add physmem.o.
6203         * configure.in: Check for sys/pstat.h.
6204         (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
6205         * physmem.c: New file, copied from textutils.
6207         * config.in, configure: Regenerated.
6209 2003-02-20  Daniel Jacobowitz  <drow@mvista.com>
6211         * Makefile.in (CFILES): Add lrealpath.c.
6212         (REQUIRED_OFILES): Add lrealpath.o.
6213         (lrealpath.o): Add rule.
6214         * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
6215         * configure.in: Add realpath and canonicalize_file_name to
6216         checkfuncs and AC_CHECK_FUNCS.  Use libiberty_NEED_DECLARATION
6217         for canonicalize_file_name.
6218         * lrealpath.c: New file.
6219         * make-relative-prefix.c: Update documentation.
6220         (make_relative_prefix): Simplify.  Use lbasename and lrealpath.
6221         * config.in: Regenerated.
6222         * configure: Regenerated.
6223         * functions.texi: Regenerated.
6225 2003-02-20  jmc  <jmc@prioris.mini.pw.edu.pl>
6227         * cplus_dem.c: Fix typo: intializes -> initializes.
6229 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
6231         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
6232         config.status.
6233         * configure: Rebuilt.
6235 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
6237         Fix PR c++/7612.
6238         * cplus-dem.c (demangle_signature): Call string_delete.
6239         Remove extra string_init.
6240         (demangle_arm_hp_template): Call string_delete instead of
6241         string_clear.  Add missing string_delete call.
6242         (demangle_qualified): Add missing string_delete call.
6243         (do_type): Remove unused variable btype.  Add missing string_delete
6244         call.  Call string_delete instead of string_clear.
6245         (demangle_fund_type): Move variable btype inside of the switch
6246         statement.  Add missing string_delete call.
6247         (do_arg): Call string_delete instead of string_clear.  Remove extra
6248         string_init.
6249         (demangle_nested_args): Free work->previous_argument.
6251 2003-02-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6253         * acconfig.h: New file.  Add uintptr_t.
6254         * config.in: Regenerated.
6256 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
6258         * libiberty.texi: Update to GFDL 1.2.
6260 2003-01-30  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
6262         * Makefile.in (libiberty_topdir): New subst.
6263         (mkinstalldirs): Redefine in terms of the above.
6264         * configure.in: AC_SUBST it.
6265         * configure: Regenerate.
6267 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
6269         * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
6270         (info-subdir, install-info-subdir, clean-info-subdir)
6271         (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
6272         (clean-subdir, distclean-subdir, maintainer-clean-subdir):
6273         Pass $(FLAGS_TO_PASS).
6275 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
6277         * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
6278         /`$$CC -print-multi-os-directory`.
6280 2003-01-26  Daniel Jacobowitz  <drow@mvista.com>
6282         * hashtab.c (htab_create_alloc_ex): New function.
6283         (hatab_set_functions_ex): New function.
6284         (htab_delete, htab_expand): Support alternate allocation functions.
6286 2003-01-24  Christopher Faylor  <cgf@redhat.com>
6288         * configure.in: Remove special pex-cygwin consideration.
6289         * configure: Regenerate.
6290         * pex-cygwin.c: Remove.
6291         * Makefile.in: Remove pex-cygwin.[co] lines.
6293 2003-01-24  Zack Weinberg  <zack@codesourcery.com>
6295         * Makefile.in (CFILES): Add pex-*.c.
6296         (REQUIRED_OFILES): Change pexecute.o to @pexecute@
6297         (CONFIGURED_OFILES): Add pex-*.o.
6298         (TEXIFILES): Add pexecute.txh.
6299         (pexecute.o): Delete rule.
6300         (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
6301         pex-unix.o, pex-win32.o): New rules.
6302         * configure.in: Change AC_INIT argument to xmalloc.c.
6303         Compute appropriate pexecute implementation and substitute it
6304         as @pexecute@.
6306         * pexecute.c: Split up into...
6307         * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
6308         pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
6309         new files.
6311         * functions.texi: Regenerate.
6312         * configure: Regenerate.
6314 2003-01-20  Josef Zlomek  <zlomekj@suse.cz>
6316         * hashtab.c (htab_expand): Fix allocation of new entries.
6318 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
6320         * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
6322         * Makefile.in (install_to_libdir, install_to_tooldir): Add a
6323         mkinstalldirs command.
6325 2002-12-04  Danny Smith  <dannysmith@users.sourceforge.net>
6327         * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
6328         Define for hosts with HOST_EXECUTABLE_SUFFIX.
6330 2002-11-24  Nick Clifton  <nickc@redhat.com>
6332         * make-relative-prefix.c (make_relative_prefix): Ensure return
6333         string is empty before using strcat to construct it.
6335 2002-11-22  Daniel Jacobowitz  <drow@mvista.com>
6337         * Makefile.in: Add make-relative-prefix.c.
6338         * make-relative-prefix.c: New file.
6339         * functions.texi: Rebuilt.
6341 2002-11-16  Jakub Jelinek  <jakub@redhat.com>
6343         * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
6344         used with arguments in traditional C' warnings.
6346 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
6348         * config.table: Use mh-s390pic for s390x too.
6350 2002-10-06  Andreas Jaeger  <aj@suse.de>
6352         * cplus-dem.c (ada_demangle): Get rid of unneeded
6353         variable and of strict-aliasing warning.
6354         (grow_vect): Use char as first parameter.
6356 2002-09-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6358         * Makefile.in (all): Fix multilib parallel build.
6360 2002-09-19  John David Anglin  <dave@hiuly1.hia.nrc.ca>
6362         * cp-demangle.c (demangling_new): Cast 0 to enum.
6363         (demangle_char): Cast return of strdup to char *.
6364         (is_gnu_v3_mangled_ctor): Cast 0 to enum.
6365         (is_gnu_v3_mangled_dtor): Likewise.
6366         * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
6367         (work_stuff_copy_to_from): Cast return of xmalloc to char **.
6368         * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
6369         * md5.c (md5_process_bytes): Cast results back to const void *.
6370         (md5_process_block): Add cast to const md5_uint32 *.
6371         * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
6372         * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
6373         unsigned short.
6374         * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
6375         to void *.
6376         * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
6378 2002-09-19  Nick Clifton  <nickc@redhat.com>
6380         * README: Update email addresses for bugs and patches.
6382 2002-09-10  Mike Stump  <mrs@apple.com>
6384         * splay-tree.c (splay_tree_successor): Fix comments.
6386 2002-09-11  Zack Weinberg  <zack@codesourcery.com>
6388         * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
6389         * testsuite/Makefile.in: Adjust for test-demangle.
6390         * testsuite/regress-demangle: Deleted.
6391         * testsuite/test-demangle.c: New file.
6392         * testsuite/demangle-expected: Change \$ to $ throughout, now that
6393         this file is not being read by a shell script.
6395 2002-09-05  Roger Sayle  <roger@eyesopen.com>
6397         * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
6399 2002-08-07  DJ Delorie  <dj@redhat.com>
6401         * regex.c (re_error_msgid): Just use a simple array of strings.
6402         (re_compile_pattern): Compensate.
6403         (re_comp): Likewise.
6404         (re_comp): Likewise.
6405         (regerror): Likewise.
6407 2002-07-29  Neil Booth  <neil@daikokuya.co.uk>
6409         * cplus-dem.c (PREPEND_BLANK): Remove.
6411 2002-07-10  Jason Merrill  <jason@redhat.com>
6413         * cp-demangle.c (demangle_identifier): Support extended Unicode
6414         characters.
6416 2002-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6418         * cp-demangle.c (demangle_v3_with_details): Wrap in
6419         !defined IN_GLIBCPP_V3.
6421 2002-07-01  Mark Mitchell  <mark@codesourcery.com>
6423         * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
6424         Set it for the "st" operator.
6425         (demangle_expression): Handle expressions with types as arguments.
6427 2002-06-30  Douglas Rupp  <rupp@gnat.com>
6429         * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
6430         * Makefile.in (OUTPUT_OPTION): Use.
6432 2002-06-22  Peter Breitenlohner <peb@mppmu.mpg.de>
6434         * Makefile.in (install_to_libdir): Add $(DESTDIR).
6435         (install_to_tooldir): Likewise.
6437 2002-06-17  Douglas Rupp  <rupp@gnat.com>
6439         * lbasename.c: Add 2002 to copyright.
6440         (IS_DIR_SEPARATOR): Remove VMS junk.
6442 2002-06-05  Geoffrey Keating  <geoffk@redhat.com>
6444         * hashtab.c (htab_create): New stub function for backward
6445         compatibility.
6446         (htab_try_create): Likewise.
6448 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
6450         * hashtab.c (htab_create): Delete.
6451         (htab_try_create): Delete.
6452         (htab_create_alloc): New.
6453         (htab_delete): Support user-specified memory allocation.
6454         (htab_expand): Likewise.
6456 2002-05-22  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
6458         * configure.in: Fix typo in the code checking for sys_errlist.
6459         * configure: Regenerated.
6461 2002-05-13  Andreas Schwab  <schwab@suse.de>
6463         * config.table: Use mh-x86pic also for x86-64.
6465 2002-05-08  Alexandre Oliva  <aoliva@redhat.com>
6467         * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
6468         script entry, and set LD to it when configuring multilibs.
6469         * configure: Rebuilt.
6471 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
6473         * configure.in (AC_TYPE_PID_T): Use it.
6474         * configure: Regenerated.
6475         * getruntime.c: Include <sys/types.h>.
6476         * waitpid.c: Likewise.  Use pid_t, not int, as the type of "pid".
6478 2002-04-09  Richard Henderson  <rth@redhat.com>
6480         * hashtab.c (higher_prime_number): Use 7 as minimum.
6481         (find_empty_slot_for_expand): Don't compute hash2 unless needed.
6482         (htab_find_slot_with_hash): Likewise.
6484 2002-04-01  Phil Edwards  <pme@gcc.gnu.org>
6486         * cp-demangle.c (__cxa_demangle):  Also protect with IN_GLIBCPP_V3.
6487         (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor):  Conditionally
6488         not compile if IN_GLIBCPP_V3 defined.
6489         * dyn-string.c:  Also allow IN_GLIBCPP_V3 to change allocation scheme.
6491 2002-03-30  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
6493         * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
6494         if it is NULL.
6496 2002-03-27  DJ Delorie  <dj@redhat.com>
6498         * hex.c: Add documentation.
6499         (_hex_value): Provide non-ASCII empty table.
6500         (hex_init): Initialize the non-ASCII table.
6501         * functions.texi: Regenerate.
6503 2002-03-27  Mark Mitchell  <mark@codesourcery.com>
6505         * dyn-string.c: Add libgcc exception to copyright notice.
6507 2002-03-26  H.J. Lu  (hjl@gnu.org)
6509         * config.table: Support --with-build-subdir.
6510         * configure.in: Likewise.
6511         * configure: Rebuild.
6513 2002-03-18  Stuart Griffith  <Stuart_Griffith@credence.com>
6515         * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
6516         seen.
6518 2002-03-12  Mark Mitchell  <mark@codesourcery.com>
6520         * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
6521         notice.
6523 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
6525         * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
6527 2002-03-06  Jim Blandy  <jimb@redhat.com>
6529         * splay-tree.c (splay_tree_xmalloc_allocate,
6530         splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
6531         prototyped definitions.  Mark `data' arguments as unused.
6533 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
6535         * floatformat.c (floatformat_arm_ext_big): Delete definition.
6537 2002-03-04  Phil Edwards  <pme@gcc.gnu.org>
6539         * configure.in:  Add --enable-install-libiberty option.
6540         * Makefile.in (INSTALLED_HEADERS):  New variable.
6541         (install_to_libdir):  Possibly also copy headers.
6542         * configure:  Regenerated.
6544 2002-03-04  Neil Booth  <neil@daikokuya.demon.co.uk>
6546         * xmalloc.c (xmalloc_fail): Clarify error message further.
6548 2002-03-03  Neil Booth  <neil@daikokuya.demon.co.uk>
6550         * xmalloc.c (xmalloc_fail): Clarify error message.
6552 2002-02-22  Jim Blandy  <jimb@redhat.com>
6554         * splay-tree.c (splay_tree_xmalloc_allocate,
6555         splay_tree_xmalloc_deallocate): New functions.
6556         (splay_tree_new): Call splay_tree_new_with_allocator, passing the
6557         above functions and a dummy data pointer.
6558         (splay_tree_new_with_allocator): New function.
6559         (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
6560         splay_tree_remove): Use the splay tree's allocation and
6561         deallocation functions.
6563 2002-02-19  Scott Snyder  <snyder@fnal.gov>
6565         * testsuite/demangle-expected: Add test case for infinite loop in
6566         demangler.
6567         * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
6568         if do_type() doesn't make any progress --- prevents an infinite
6569         loop.
6571 2002-02-18  Carlo Wood  <carlo@gnu.org>
6573         PR c++/5390
6574         * cplus-dem.c (demangle_integral_value): Accept multi-digit
6575         numbers that do not start with an underscore; This is needed
6576         for integer template parameters. This doesn't break anything
6577         because multi-digit numbers are never followed by a digit.
6578         * testsuite/demangle-expected: Corrected all mangled test
6579         cases with multi-digit template parameters: g++ 2.95.x does
6580         not generate underscores around these parameters.
6582 2002-02-05  Jason Merrill  <jason@redhat.com>
6584         * cplus-dem.c (flags): Add DMGL_VERBOSE
6585         (cplus_demangle_v3_p): Remove.
6586         (demangle_it): Add DMGL_TYPES to passed flags.
6587         * cp-demangle.c (cplus_demangle_v3_all): Remove.
6588         (cplus_demangle_v3_type): Remove.
6589         (cplus_demangle_v3): Add options parm.
6591 2002-02-02  H.J. Lu  (hjl@gnu.org)
6593         * cp-demangle.c (cp_demangle_type): Do not protect with
6594         IN_LIBGCC2.
6595         (cplus_demangle_v3_all): New.
6596         (cplus_demangle_v3): Call cplus_demangle_v3_all.
6597         (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
6599         * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
6600         Initialized to cplus_demangle_v3.
6601         (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
6602         of cplus_demangle_v3.
6603         (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
6604         command line symbol.
6606         * testsuite/regress-demangle: Pass the mangled name at the
6607         command line.
6609 2002-02-01  H.J. Lu  <hjl@gnu.org>
6611         * cp-demangle.c (cp_demangle_type): Call demangling_new with
6612         DMGL_GNU_V3.
6614 2002-01-31  Phil Edwards  <pme@gcc.gnu.org>
6616         * cp-demangle.c:  Revert yesterday's change.
6618 2002-01-31  Adam Megacz  <adam@xwt.org>
6620         * configure.in: Treat mingw the same as cywin
6621         wrt HAVE_SYS_ERRLIST.
6623 2002-01-30  Phil Edwards  <pme@gcc.gnu.org>
6625         * cp-demangle.c (cp_demangle_type):  Do not protect with IN_LIBGCC2.
6626         (cplus_demangle_v3):  Mimic __cxa_demangle and fall back on
6627         cp_demangle_type.
6628         * testsuite/demangle-expected:  New gnu-v3 test.
6630 2002-01-22  Momchil Velikov  <velco@fadata.bg>
6632         * configure.in (variable detection): Use arrays of unspecified
6633         size instead of plain integers.
6635 2002-01-18  DJ Delorie  <dj@redhat.com>
6637         * Makefile.in (TESTLIB): New.  This library is for future
6638         testsuites.
6639         (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
6640         break down by letter.
6641         (REQUIRED_OFILES): List long-to-compile files first.
6642         (maint-deps): New, target for updating dependencies.
6643         (dependencies): Update.
6644         * maint-tool: Add dependency-generating option.
6645         * configure.in: Check for _doprnt even if we're not providing it.
6646         * configure: Regenerate.
6648         * _doprnt.c: Modifications to allow compiling on any platform.
6649         * copysign.c: Likewise.
6650         * putenv.c: Likewise.
6651         * setenv.c: Likewise.
6652         * vsprintf.c: Likewise.
6654 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
6656         * mkstemps.c (mkstemps): On VMS, open temp file with option
6657         that causes it to be deleted when closed.
6659 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6661         * cp-demangle.c (long_options): Const-ify.
6662         * cplus-dem.c (long_options): Likewise.
6664         * cplus-dem.c (mystrstr): Delete.  All callers changed to use
6665         strstr instead.
6667 2001-12-31  Ira Ruben   <ira@apple.com>
6669         * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
6670         * configure: Regenerated.
6672 2001-12-24  Douglas B. Rupp  <rupp@gnat.com>
6674         * configure.in (uintptr_t): Use AC_CHECK_TYPE.
6675         * configure: Regenerated.
6677 2001-12-12  Craig Rodrigues  <rodrigc@gcc.gnu.org>
6679         PR other/2719
6680         * cplus-dem.c (consume_count): Treat negative count as an error.
6681         * testsuite/demangle-expected: Added testcase.
6683 Tue Dec 11 07:08:57 2001  Douglas B. Rupp  <rupp@gnat.com>
6685         * configure.in: Hardcode that vfork works on VMS host.
6686         * configure: Regenerated.
6688 2001-12-06  Richard Henderson  <rth@redhat.com>
6690         * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
6691         (cplus_demangle): Support no_demangling.
6693 2001-11-27  Zack Weinberg  <zack@codesourcery.com>
6695         * _doprnt.c: Moved here from gcc/doprint.c.  Adjust to build
6696         in libiberty context.  Fix typo in leading comment.
6697         * configure.in: Fix various AC_DEFINEs so autoheader works.
6698         If any of vprintf, vsprintf, vfprintf is missing from libc,
6699         then AC_REPLACE_FUNCS(_doprnt).
6701 2001-11-26  DJ Delorie  <dj@redhat.com>
6702             Daniel Jacobowitz  <drow@mvista.com>
6704         * Makefile.in (stamp-h): Depend on Makefile for proper
6705         serialization.
6706         (*-subdir): Depend on config.h for proper serialization.
6708 2001-11-26  DJ Delorie  <dj@redhat.com>
6710         * configure.in: Check for alloca.h (for regex.c and putenv.c).
6711         * configure: Regenerate.
6712         * config.h: Add HAVE_ALLOCA_H.
6714 2001-11-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6716         * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
6717         defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
6718         is available.
6720 Thu Nov 15 11:06:25 2001  Jeffrey A Law  (law@cygnus.com)
6722         * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
6723         * configure.in (HAVE_UINTPTR_T): Test for system defining
6724         uintptr_t and define HAVE_UINTPTR_T appropriately.
6725         * regex.c (uintptr_t): Do not provide a definition if the
6726         system provided one.
6728         * regex.c (PREFIX): Provide an alternate definition for
6729         non-ANSI/ISO compilers.
6730         (ARG_PREFIX): Likewise.
6732 2001-11-12  Jim Meyering  <meyering@lucent.com>
6734         * obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
6735         this code would end up calling gettext even in packages built
6736         with --disable-nls.
6737         * getopt.c (_): Likewise.
6738         * regex.c (_): Likewise.
6740 2001-11-03  Alan Modra  <amodra@bigpond.net.au>
6742         * configure.in: Cope with missing makeinfo.
6743         * configure: Regenerate.
6745 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6747         * hex.c (hex_init): Provide empty stub.
6749         * hex.c (hex_init): Delete.
6750         (_hex_value): Const-ify and initialize at compile-time.
6752 2001-10-19  H.J. Lu <hjl@gnu.org>
6754         * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
6755         necessary.
6757 2001-10-17  DJ Delorie  <dj@redhat.com>
6759         * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
6760         ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
6761         mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
6762         Improve manual formatting.
6763         * functions.texi: Regenerate.
6765 2001-10-15  DJ Delorie  <dj@redhat.com>
6767         * Makefile.in (TEXIFILES): Add fnmatch.txh.
6768         (maint-undoc): New.
6769         maint-tool: Add "undoc" tool.
6770         * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
6771         fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
6772         make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
6773         strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
6774         documentation.
6775         * fnmatch.txh: New.
6776         * functions.texi: Regenerate.
6778 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
6780         * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
6781         * strtod.c: Use "ISO C" instead of "ANSI C".
6782         * functions.texi: Regenerate.
6784 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
6786         * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
6787         libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
6788         strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
6789         xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting.  Fix
6790         spelling.  Give names to function arguments in documentation.  Use
6791         (void) prototypes in documentation.
6792         * functions.texi: Regenerate.
6794 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6796         * argv.c (buildargv, tests, main): Const-ify.
6797         * cp-demangle.c (operator_code): Likewise.
6798         * cplus-dem.c (optable, libiberty_demanglers,
6799         cplus_demangle_set_style, cplus_demangle_name_to_style,
6800         print_demangler_list): Likewise.
6801         * hashtab.c (higher_prime_number): Likewise.
6802         * strcasecmp.c (charmap): Likewise.
6803         * strerror.c (error_info, strerror, main): Likewise.
6804         * strncasecmp.c (charmap): Likewise.
6805         * strsignal.c (signal_info): Likewise.
6807 2001-09-29  DJ Delorie  <dj@redhat.com>
6809         * configure: Regenerate.
6811 2001-09-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6813         * concat.c: Include stdlib.h.
6815 2001-09-27  Eli Zaretskii  <eliz@is.elta.co.il>
6817         * libiberty.texi: (Top level): Add syncodeindex pg.  Add
6818         @dircategory and @direntry directives.  Add @finalout.
6819         (many nodes): Lose the next,prev,up pointers on the @nide line.
6820         (Using, Supplemental Functions, Replacement Functions): Fix
6821         markup.
6822         (Functions): Move around, to allow makeinfo to build the manual
6823         without next,prev,up pointers in thye node lines.
6824         (Licenses): Fix typos.
6826         * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
6827         strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
6828         * functions.texi: Regenerate.
6830         * copying-lib.texi: Lose the next,prev,up pointers on the @node
6831         line.
6833 2001-09-27  DJ Delorie  <dj@redhat.com>
6835         * configure.in: Don't use in-tree texinfo, because libiberty must
6836         be built before it.  Check for makeinfo version 4 or higher.
6837         * functions.texi: Regenerate.
6839 2001-09-20  DJ Delorie  <dj@redhat.com>
6840             Phil Edwards  <pedwards@disaster.jaj.com>
6842         * configure.in (MAKEINFO, PERL): Detect these.
6843         (--enable-maintainer-mode): Add.
6844         * configure: Regenerate.
6845         * Makefile.in (MAKEINFO, PERL): Define.
6846         (libiberty.info, libiberty.dvi, libiberty.html): New.
6847         (CFILES): Add bsearch.c.
6848         (CONFIGURED_OFILES): New, list of objects configure might add.
6849         (maint-missing, maint-buildall): New, for maintainers only.
6850         (clean, mostlyclean): Add info/dvi/html files.
6851         * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
6852         * gather-docs: New, for maintainers.
6853         * maint-tool: New, for maintainers.
6854         * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
6855         bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
6856         getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
6857         memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
6858         sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
6859         strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
6860         tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
6861         xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
6862         documentation.
6864 2001-09-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6866         * concat.c (reconcat): Fix for traditional C.
6868 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6870         * concat.c (reconcat): New function.
6872 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6874         * concat.c (vconcat_length, vconcat_copy, concat_length,
6875         concat_copy, concat_copy2): New functions.
6876         (concat): Use vconcat_length/vconcat_copy.
6878         * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
6879         Define.
6881 2001-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6883         * asprintf.c: Don't define USE_STDARG.  Use VPARAMS, VA_OPEN,
6884         VA_FIXEDARG & VA_CLOSE.
6886         * vasprintf.c: Check HAVE_STRING_H when including string.h.
6887         (checkit): Delete redundant prototype.  Add ATTRIBUTE_PRINTF_1.
6888         Use VA_OPEN, VA_FIXEDARG & VA_CLOSE.  Free allocated string.
6890 2001-08-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6892         * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
6894 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
6896         * regex.c (truncate_wchar): Use wcrtomb not wctomb.
6898 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
6900         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
6901         instead of mbrtowc.
6902         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
6903         wcslen, and __wcscoll instead of wcscoll.
6905 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
6907         * fibheap.c (fibheap_init, fibnode_init): Remove.
6908         (fibheap_new, fibnode_new): Use xcalloc to allocate and
6909         initialize memory.
6910         (fibheap_insert): Remove check for node allocation failure.
6912 2001-08-21  Richard Henderson  <rth@redhat.com>
6914         * Makefile.in (fibheap.o): Depend on config.h.
6915         * fibheap.c: Tidy formatting.  Use config.h.` Rearrange some
6916         functions for inlining.
6918 Tue Aug 21 12:35:04 2001  Christopher Faylor <cgf@cygnus.com>
6920         * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
6921         hosting on cygwin.
6922         * configure: Regenerate.
6924 2001-08-20  Andrew Cagney  <ac131313@redhat.com>
6926         * floatformat.c (floatformat_m88110_ext): Remove #ifdef
6927         HARRIS_FLOAT_FORMAT.
6928         (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
6929         (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
6930         (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
6931         (floatformat_m88110_harris_ext): New float formats.
6933 2001-08-20  Daniel Berlin  <dan@cgsoftware.com>
6935         * fibheap.c: New file. Fibonacci heap.
6937         * Makefile.in (CFILES): Add fibheap.c.
6938         (REQUIRED_OFILES): Add fibheap.o.
6939         (fibheap.o): Add dependencies for fibheap.o.
6941 2001-08-17  Christopher Faylor <cgf@cygnus.com>
6943         * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
6944         * configure: Regenerate.
6946 2001-08-16  Richard Henderson  <rth@redhat.com>
6948         * hashtab.c (htab_hash_string): New.
6950 2001-08-13  Andrew Cagney  <ac131313@redhat.com>
6952         * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
6953         name.
6955 2001-08-12  Isamu Hasegawa  <isamu@yamato.ibm.com>
6957         * regex.c (wcs_regex_compile): Use appropriate string
6958         to compare with collating element.
6959         Fix the padding for the alignment.
6961 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
6963         * lbasename.c (lbasename): Change function definition to return a
6964         const char pointer.
6966 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
6968         * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
6969         for".
6971 2001-08-03  Richard Henderson  <rth@redhat.com>
6973         * Makefile.in (concat.o): Depend on config.h.
6975 2001-07-30  Andreas Jaeger  <aj@suse.de>
6977         * concat.c: Include "config.h".
6979 2001-07-30  Andreas Jaeger  <aj@suse.de>
6981         * regex.c: Declare wcs functions only if compiling with
6982         MBS_SUPPORT.
6983         Don't use #elif for traditional C.
6985 2001-07-23  Ulrich Drepper  <drepper@redhat.com>
6987         * regex.c: Revamp memory allocation for WCHAR functions to
6988         not use too much stack.
6990 2001-07-30  Andreas Jaeger  <aj@suse.de>
6992         * regex.c: Declare wcs functions only if compiling with
6993         MBS_SUPPORT.
6994         Don't use #elif for traditional C.
6996 2001-07-25  Daniel Jacobowitz  <drow@mvista.com>
6998         * Makefile.in (regex.o): Add dependency on config.h.
7000 2001-07-18  Andreas Schwab  <schwab@suse.de>
7002         * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
7003         underscore character.
7005 2001-07-18  Ulrich Drepper  <drepper@redhat.com>
7007         * regex.c: Limit string length printed in debug messages to 100
7008         chars.
7010 2001-07-18  Andreas Jaeger  <aj@suse.de>
7012         * regex.c: Place under LGPL version 2.1.
7014 2001-07-10  Jeff Johnston  <jjohnstn@redhat.com>
7016         * Makefile.in: Add support for regex code.
7017         * regex.c: New file.
7019 2001-07-05  Mark Klein  <mklein@dis.com>
7021         * Makefile.in: Add ffs.c dependency.
7022         * configure.in: Add ffs.c.
7023         * ffs.c: New file.
7025 2001-06-18  Richard Henderson  <rth@redhat.com>
7027         * concat.c: Include <sys/types.h>.
7029 2001-06-11  Loren J. Rittle  <ljrittle@acm.org>
7031         bootstrap/3106
7032         * strerror.c (sys_nerr): Hide the OS header version.
7033         * strsignal.c (sys_nsig): Likewise.
7035 2001-06-10  Richard Henderson  <rth@redhat.com>
7037         * concat.c: Include string.h.  Fix int vs size_t usage.
7038         Simplify the iteration loops.  Use memcpy.
7040 2001-05-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
7042         * partition.c: Fix misspelling of `implementation'.
7044 2001-05-09  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
7046         * md5.c (md5_init_ctx): Declare constants as unsigned.
7047         (md5_process_block): Likewise.
7049 2001-05-07  Zack Weinberg  <zackw@stanford.edu>
7051         * cp-demangle.c (demangle_v3_with_details,
7052         is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
7053         function definition.
7054         * ternary.c: Use K+R style function definitions.  Use PTR, not
7055         void *.  Make arguments constant where possible.
7057 2001-05-07  Mark Mitchell  <mark@codesourcery.com>
7059         * splay-tree.h (splay_tree_max): New function.
7060         (splay_tree_min): Likewise.
7062 2001-04-15  Daniel Berlin  <dan@cgsoftware.com>
7064         * ternary.c: New file - Ternary search tree implementation.
7066         * Makefile.in: Add ternary.o, and ternary.c dependencies.
7068 2001-04-03  Zack Weinberg  <zackw@stanford.edu>
7070         * make-temp-file.c (try): Inline.
7072 2001-02-28  Richard Henderson  <rth@redhat.com>
7074         * Makefile.in (make-temp-file.o): Depend on config.h.
7076 2001-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7078         * memchr.c (memchr): Adjust condition to avoid infinite loop.
7080 2001-03-23  Jakub Jelinek  <jakub@redhat.com>
7082         * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
7083         `_' not followed by a digit is invalid.
7085 2001-03-22  Jim Blandy  <jimb@redhat.com>
7087         * cp-demangle.c (string_list_delete): Use dyn_string_delete
7088         instead of free, to free the contents as well as the string
7089         structure.
7091 2001-03-21  Zack Weinberg  <zackw@stanford.edu>
7093         * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
7094         Don't default P_tmpdir to anything.  Try /var/tmp before
7095         /usr/tmp.
7097 2001-03-20  Zack Weinberg  <zackw@stanford.edu>
7099         * choose-temp.c: Split off make_temp_file, and the code
7100         duplicated between it and choose_temp_base, into...
7101         * make-temp-file.c: ... here; new file.
7103         * Makefile.in (CFILES): Add make-temp-file.c.
7104         (REQUIRED_OFILES): Add make-temp-file.o.
7106 2001-03-20  Jim Blandy  <jimb@redhat.com>
7108         * cp-demangle.c (struct demangling_def): New fields:
7109         is_constructor and is_destructor.
7110         (demangling_new): Initialize them.
7111         (demangle_ctor_dtor_name): Set them, if we detect a constructor
7112         or destructor.
7113         (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
7114         is_gnu_v3_mangled_dtor): New functions.
7116 2001-03-20  Jason Merrill  <jason@redhat.com>
7118         * cplus-dem.c (main): Skip initial $.
7120 2001-03-15  Michael Meissner  <meissner@redhat.com>
7122         * hashtab.c (higher_prime_number): Silence warning that 4294967291
7123         might be a signed integer under pre-ISO C systems.
7125 2001-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
7126             John David Anglin  <dave@hiauly1.hia.nrc.ca>
7128         * lbasename.c: New file.
7129         * Makefile.in: Update for lbasename.
7131 2001-03-06  Zack Weinberg  <zackw@stanford.edu>
7133         * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
7134         * configure.in: Replace all alloca logic with a simple use of
7135         the above new macro.
7136         * config.table: Kill *-*-beos* entry.
7137         * config/mh-beos: Delete.
7138         * configure, config.in: Regenerate.
7140         * Makefile.in (ALLOCA, HFILES): Kill.
7141         (REQUIRED_OFILES): Add alloca.o.
7142         (alloca.o): Depend on libiberty.h.
7143         (argv.o): Don't depend on alloca-conf.h.
7144         * alloca-conf.h: Delete.
7145         * alloca.c: Include libiberty.h.  Kill all #ifdef emacs
7146         blocks.  Provide the C alloca unconditionally.  Use PTR where
7147         appropriate.  Make i00afunc static.
7148         * argv.c: Don't include alloca-conf.h.
7150 2001-03-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7152         * cplus-dem.c (main): Cast enum style to int.
7154 2001-02-16  Loren J. Rittle  <ljrittle@acm.org>
7156         * cplus-dem.c (main): Initialize style.
7158 2001-02-02  Phil Edwards  <pme@sources.redhat.com>
7160         * COPYING.LIB:  Update to LGPL 2.1 from the FSF.
7162 2001-01-31  Bryce McKinlay  <bryce@albatross.co.nz>
7164         Add support for Java demangling under the v3 ABI:
7165         * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
7166         (struct demangling_def): Add `style' field.
7167         (demangling_new): New parameter `style'. Set it in demangling_t.
7168         (demangle_prefix): Use NAMESPACE_SEPARATOR.
7169         (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
7170         (cp_demangle): New parameter `style'. Pass it to demangling_new().
7171         (main): Call cp_demangle with extra parameter.
7172         (java_demangle_v3): New function.
7173         (java_builtin_type_names): New. Table of primitive type names used
7174         for Java demangling.
7175         (demangle_builtin_type): Look up in java_builtin_type_names if doing
7176         Java output.
7177         * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
7178         demangling.
7179         (long_options): Remove obsolete `java' option.
7180         (main): Remove explicit handling of `java' option. Instead, pass style
7181         parameter in cplus_demangle flags as gdb does.
7182         * testsuite/demangle.expected: Add some Java test cases.
7184 2000-12-29  DJ Delorie  <dj@redhat.com>
7186         * fnmatch.c: Make the note about the origins of this file more
7187         accurate, at least until we can sync with glibc.
7188         * getopt.c: Ditto.
7189         * getopt1.c: Ditto.
7190         * md5.c: Ditto.
7191         * obstack.c: Ditto.
7193 2000-12-26  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
7195         * bsearch.c: New file.
7196         * configure.in (funcs): Add bsearch.
7197         (AC_CHECK_FUNCS): Likewise.
7198         * configure, config.in: Regenerate.
7200 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
7202         * safe-ctype.c: #include "ansidecl.h".
7203         * strtod.c: Likewise.
7205 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
7207         * strtoul.c: Include safe-ctype.h, not ctype.h.
7209 2000-12-07  Zack Weinberg  <zack@wolery.stanford.edu>
7211         * safe-ctype.c: New file.
7212         * Makefile.in (CFILES): Add safe-ctype.c.
7213         (REQUIRED_OFILES): Add safe-ctype.o.
7215         * argv.c: Define ISBLANK and use it, not isspace.
7216         * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
7217         strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h.  Use
7218         uppercase ctype macros.  Don't test ISUPPER(c)/ISLOWER(c)
7219         before calling TOLOWER(c)/TOUPPER(c).
7221 2000-12-07  Mike Stump  <mrs@wrs.com>
7223         * Makefile.in (distclean): When cleaning, remove testsuite.
7225 2000-12-05  Jason Merrill  <jason@redhat.com>
7227         * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
7228         name before allocating the dyn_string.
7230 2000-12-04  Jason Merrill  <jason@redhat.com>
7232         * cp-demangle.c: s/new_abi/v3/.
7233         * cplus-dem.c: Likewise.
7234         (current_demangling_style): Now auto_demangling.
7235         (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
7236         (main): Use standard symbol chars for auto_demangling.
7238 2000-11-26  Mark Mitchell  <mark@codesourcery.com>
7240         * hashtab.c (higher_prime_number): Use a table, rather than a
7241         seive, to find the next prime.
7243 2000-11-22  H.J. Lu  <hjl@gnu.org>
7245         * cplus-dem.c (main): Handle gnat_demangling.
7247 2000-11-22  Zack Weinberg  <zack@wolery.stanford.edu>
7249         * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
7250         (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
7251         * configure.in: Call AC_C_INLINE and AC_C_CONST.  Use three
7252         argument form of AC_DEFINE in dummy definitions block.  Use
7253         AC_DEFINE_NOAUTOHEADER for real definitions of things defined
7254         in dummy block.  Preload cache variables instead of bypassing
7255         tests, where possible.
7256         * acconfig.h: Removed.
7258         * xmalloc.c (xmalloc_failed): New function, does error
7259         reporting on failed allocation.
7260         (xmalloc, xcalloc, xrealloc): Use it.
7262 2000-11-21  Hans-Peter Nilsson  <hp@bitrange.com>
7264         * cplus-dem.c (cplus_demangle): Fix formatting.
7265         (grow_vect): Ditto.
7266         (ada_demangle): Ditto.
7267         (internal_cplus_demangle): Ditto.
7268         (mop_up): Ditto.
7270 2000-11-21  H.J. Lu  <hjl@gnu.org>
7272         * cplus-dem.c (main): Handle java_demangling.
7274 2000-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7276         * cplus-dem.c (grow_vect): Prototype.
7277         (ada_demangle): Cast the arg of ctype macros to unsigned char.
7279 2000-11-15  Hans-Peter Nilsson  <hp@bitrange.com>
7281         * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
7282         parameter `option'.
7284 2000-11-15  Kenneth Block  <kenneth.block@compaq.com>
7286         * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
7287         be used in GCC.
7289 2000-11-15  Kenneth Block  <kenneth.block@compaq.com>
7291         * cplus-dem.c: Add gnat demangler.  Add java to demangle style
7292         list.
7294 2000-11-04  Hans-Peter Nilsson  <hp@bitrange.com>
7296         * hashtab.c (htab_expand): Change to return int.  Use calloc or
7297         xcalloc depending on htab->return_allocation_failure.  Return zero
7298         if calloc fails.
7299         (htab_create): Update comment to cover memory allocation.
7300         (htab_try_create): New.
7301         (htab_find_slot_with_hash): Return NULL if htab_expand fails.
7302         Update comment to cover this.
7304 2000-11-03  Hans-Peter Nilsson  <hp@bitrange.com>
7306         * hashtab.c: Change void * to PTR where necessary.
7307         (htab_create, htab_expand): Correct formatting of comment before
7308         function.
7310 2000-10-22  Alex Samuel  <samuel@codesourcery.com>
7312         * cp-demangle.c (string_list_def): Add caret_position and comments.
7313         (result_caret_pos): New macro.
7314         (result_append_string): Rename to...
7315         (result_add_string): ... this, and insert at caret position.
7316         Rename throughout.
7317         (result_append): Rename to...
7318         (result_add): ... this, and insert at caret position.  Rename
7319         throughout.
7320         (result_append_char): Rename to...
7321         (result_add_char): ... this, and insert at caret position.  Rename
7322         throughout.
7323         (result_append_space): Remove.
7324         (string_list_new): Initialize caret position.
7325         (result_add_separated_char): Use caret position.
7326         (result_get_caret): New funtion.
7327         (result_set_caret): Likewise.
7328         (result_shift_caret): Likewise.
7329         (result_previous_char_is_space): Likewise.
7330         (substitution_start): Use caret position.
7331         (substitution_add): Likewise.
7332         (demangling_new): Initialize caret position.
7333         (demangle_encoding): Use caret position.
7334         (demanglin_nested_name): Put CV qualifiers after name.
7335         (demangle_type_ptr): Use switch statement.  Handle pointers to
7336         arrays.  Don't use result_append_space.  Use caret position.
7337         (demangle_type): Emit CV qualifiers after underlying type.  Adjust
7338         call to demangle_array_type.
7339         (demangle_array_type): Add parameter to handle pointers to arrays.
7341 2000-10-01  Mark Mitchell  <mark@codesourcery.com>
7343         * splay-tree.c (splay_tree_insert): Fix formatting.
7345 2000-09-16  Mark Mitchell  <mark@codesourcery.com>
7347         * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
7349 2000-09-14  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
7351         * splay-tree.c: #include <stdio.h>.
7353 2000-09-14  Hans-Peter Nilsson  <hp@axis.com>
7355         * testsuite/demangle-expected: Add two tests for anonymous
7356         namespaces.
7357         * cplus-dem.c (gnu_special): Handle anonymous namespaces.
7359 2000-09-10  Mark Mitchell  <mark@codesourcery.com>
7361         * splay-tree.c (splay_tree_predecessor): New function.
7362         (splay_tree_successor): Likewise.
7364 2000-09-10  Hans-Peter Nilsson  <hp@axis.com>
7366         * testsuite/demangle-expected: Add four tests for type_info
7367         mangling.
7368         * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
7369         for a non-template non-qualified type_info function or node.
7371 2000-09-08  Alex Samuel  <samuel@codesourcery.com>
7373         * cp-demangle.c: Fix copyright banner.
7375 2000-09-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
7377         * md5.c: #include "ansidecl.h".
7379 2000-09-06  Alex Samuel  <samuel@codesourcery.com>
7381         * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
7382         (demangle_type): Handle substitution candidates correctly in the
7383         face of special substitutions.
7385 2000-09-05  Alex Samuel  <samuel@codesourcery.com>
7387         * cp-demangle.c (demangle_encoding): Rename variable.
7388         (demangle_name): Rename parameter.  Handle return type
7389         suppression.
7390         (demangle_nested_name): Rename parameter.
7391         (demangle_prefix): Likewise.  Change return type suppression.
7392         (demangle_unqualified_name): Add parameter.  Flag constructors and
7393         conversion operators.
7394         (demangle_special_name): Fix comment.
7395         (demangle_type): Rename variable.
7396         (demangle_bare_function_type): Check for missing return type and
7397         parameter.
7398         (demangle_class_enum_type): Rename parameter.
7399         (demangle_discriminator): Fix misspelling in comment.
7401 2000-08-31  DJ Delorie  <dj@redhat.com>
7403         * configure.in (Cygwin): special case cygwin only when we're
7404         building cygwin, not when we're hosting cygwin.
7406 2000-09-04  Alex Samuel  <samuel@codesourcery.com>
7408         * cp-demangle.c (demangle_template_arg): Eat an `E' after an
7409         <expression>.
7411 2000-09-04  Alex Samuel  <samuel@codesourcery.com>
7413         * cp-demangle.c (demangle_type_ptr): Increment position past
7414         pointer and reference characters.
7416 2000-09-04  Alex Samuel  <samuel@codesourcery.com>
7418         * cp-demangle.c (demangle_nv_offset): New function.
7419         (demangle_v_offset): Likewise.
7420         (demangle_call_offset): Likewise.
7421         (demangle_special_name): Update thunk demangling to comply with
7422         ABI changes.
7424 2000-09-03  Alex Samuel  <samuel@codesourcery.com>
7426         * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
7427         (substitution_def): Remove template_parm_number.
7428         (NOT_TEMPLATE_PARM): Remove.
7429         (result_insert_string): New macro.
7430         (result_insert): Likewise.
7431         (result_insert_char): Likewise.
7432         (substitution_add): Remove last parameter.  Don't store template
7433         parm number.
7434         (BFT_NO_RETURN_TYPE): Define as NULL.
7435         (demangle_encoding): Adjust call to demangle_bare_function_type.
7436         (demangle_name): Adjust substitution.  Adjust call to
7437         substitution_add.
7438         (demangle_prefix): Adjust call to substitution_add.
7439         (demangle_identifier): Handle anonymous namespaces.
7440         (demangle_operator_name): Change demangling of vendor-extended
7441         operator to match ABI changes.
7442         (demangle_type_ptr): Change parameters.  Make recursive.  Handle
7443         substitutions here.
7444         (demangle_type): Adjust calls to demangle_template_param,
7445         substitution_add, and demangle_type_ptr.  Fix substitution of
7446         templated types.
7447         (demangle_function_type): Change parameter to a pointer.
7448         (demangle_bare_function_type): Likewise.  Adjust insertion point.
7449         (demangle_template_param): Remove last parameter.
7450         (demangle_expr_primary): Remove unused variable.  Adjust call to
7451         demangle_template_param.
7452         (is_mangled_char): Accept `$' and `.'.
7453         * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
7454         * dyn-string.c (dyn_string_insert_char): New function.
7456 2000-08-31  Hans-Peter Nilsson  <hp@axis.com>
7458         * testsuite/demangle-expected: Add nine tests for
7459         underscore-after-number followed by five tests for name-signature
7460         delimiter.
7462 2000-08-28  Richard Henderson  <rth@cygnus.com>
7464         * Makefile.in (md5.o): Depend on config.h.
7466 2000-08-28  Jason Merrill  <jason@redhat.com>
7468         * Makefile.in (REQUIRED_OFILES): Add md5.o.
7469         (CFILES): Add md5.c.
7470         * md5.c: New file.
7472 2000-08-27  Alex Samuel  <samuel@codesourcery.com>
7474         * cp-demangle.c (demangle_name): Initialize template_p in local
7475         name case.  Don't re-add substitutions as candidates.
7476         (demangle_nested_name): Use <unqualified-name>.
7477         (demangle_prefix): Likewise.  Don't add template names as
7478         substitution candidates twice, or re-add a substitution or the
7479         last prefix component.
7480         (demangle_local_name): Adjust output format.
7482 2000-08-25  Alex Samuel  <samuel@codesourcery.com>
7484         * cp-demangle.c (result_add_separated_char): Change parameter to
7485         int.
7486         (substitution_add): Don't check for duplicates.  Check if
7487         previously allocated size is zero.
7488         (demangle_name): Remove duplicate check for std substitution.
7489         Clear template flag appropriately.
7490         (demangle_prefix): Remove argument to demangle_substitution.
7491         Don't check that template flag is already set.
7492         (demangle_operator_name): Add pt operator.
7493         (demangle_type): Don't treat r as built-in type.  Remove argument
7494         to demangle_substitution.  Fix substitution candidate mechanics.
7495         Handle <template-template-parm>s.  Improve comments.
7496         (demangle_template_param): Don't handle template arg lists here.
7497         (demangle_substitution): Remove parameter.
7498         (print_usage): Remove extra fprintf option.
7500 2000-08-24  Greg McGary  <greg@mcgary.org>
7502         * random.c (end_ptr): Revert previous change.
7504 2000-08-24  Greg McGary  <greg@mcgary.org>
7506         * cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
7507         demangle_expression, demangle_function_name): Use ARRAY_SIZE.
7508         * random.c (end_ptr): Likewise.
7510 2000-08-23  Alex Samuel  <samuel@codesourcery.com>
7512         * cp-demangle.c (result_close_template_list): Remove function.
7513         (result_add_separated_char): New function.
7514         (result_open_template_list): New macro.
7515         (result_close_template_list): Likewise.
7516         (demangle_prefix): Don't set template_p if the
7517         prefix ends with a ctor name.
7518         (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
7519         (demangle_type): Check for template args after substitution.
7520         (demangle_template_args): Use result_open_template_list.
7522 2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
7524         * pexecute.c:  Don't use vfork.  Initialize 'pid' before retry loop.
7526 2000-07-26  Dave Pitts  <dpitts@cozx.com>
7528         * config/mh-openedition.h: Added -DLE370 definition.
7530 2000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
7532         * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
7533         __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
7534         Cast program to 'char *' in errmsg_arg assignment.
7535         (PWAIT_ERROR): Define.
7536         (pwait): Use PWAIT_ERROR.  Adjust DJGPP's status code to conform
7537         to DJGPP's WIF* macros.
7539 2000-07-27  RodneyBrown  <RodneyBrown@pmsc.com>
7540             Jeff Law <law@cygnus.com>
7542         * getcwd.c: Include string.h, stdlib.h for prototypes
7544         * Makefile.in (rename.o, waitpid.o): Depend on config.h
7545         * rename.c: Include config.h, unistd.h
7546         * waitpid.c: Include config.h, sys/wait.h
7548 2000-07-24  Hans-Peter Nilsson  <hp@axis.com>
7550         * cplus-dem.c (work_stuff_copy_to_from): New.
7551         (delete_non_B_K_work_stuff): New.
7552         (delete_work_stuff): New.
7553         (mop_up): Break out work_stuff partly destruction to
7554         delete_non_B_K_work_stuff.
7555         (iterate_demangle_function): New.
7556         (demangle_prefix): Call iterate_demangle_function instead of
7557         demangle_function_name.  Leave handling of name-signature
7558         __-delimiters to iterate_demangle_function.
7559         (demangle_integral_value): Strip an optional
7560         following underscore cautiously.  Handle negative numbers.
7562 2000-07-24  Daniel Berlin <dberlin@redhat.com>
7564         * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
7565         if (AUTO_DEMANGLING || GNU_DEMANGLING)
7567 2000-07-21  Alex Samuel  <samuel@codesourcery.com>
7569         * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
7570         allocating ctor mangling.
7571         (demangle_array_type): Handle empty and non-constant array length.
7573 2000-07-23  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
7574             Jeff Law <law@cygnus.com>
7576         * configure.in (AC_CHECK_HEADERS): Add time.h.
7577         (AC_HEADER_TIME): Add check.
7578         * configure, config.in: Regenerate.
7579         * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
7581         * configure.in (AC_CHECK_HEADERS): Add limits.h.
7582         * configure, config.in: Regenerate.
7583         * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
7584         * strtol.c, strtoul.c: #include "config.h". Portably #include
7585         <limits.h> and/or <sys/param.h>.
7586         * Makefile.in (strtol.o, strtoul.o): Update dependencies.
7588         * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
7589         * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
7590         * configure, config.in: Regenerate.
7591         * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
7593         * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
7595 2000-07-21  Mike Stump  <mrs@wrs.com>
7597         * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
7598         * (vasprintf.o): Add dependency for config.h in vasprintf.c.
7600 2000-07-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7602         * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
7604         * setenv.c (setenv): Initialize variable `ep'.
7606         * sigsetmask.c (abort): Prototype.
7608         * vasprintf.c: Include config.h.  Check ANSI_PROTOTYPES, not
7609         __STDC__ for stdarg.h include.
7610         (int_vasprintf): Prototype.
7611         (checkit): Prototype.  Use VPARAMS/ANSI_PROTOTYPES/VA_START in
7612         definition.  Cast `global_total_width' in comparison.
7613         (main): Prototype.  Return a value.
7615         * vfork.c (fork): Prototype.
7617         * xexit.c: Include config.h.
7619 2000-07-20  Joseph S. Myers  <jsm28@cam.ac.uk>
7621         * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
7622         and print it with %u.
7624 2000-07-17  Hans-Peter Nilsson  <hp@axis.com>
7626         * testsuite/regress-demangle (failed test): Show result and
7627         expected output.
7629 2000-07-07  Andrew Haley  <aph@cygnus.com>
7631         * cplus-dem.c (main): fflush() after emitting last char before
7632         waiting for input.
7634 2000-06-28  Alex Samuel  <samuel@codesourcery.com>
7636         * cp-demangle.c (demangle_encoding): Accept no substitutions.
7637         (demangle_name): Handle <substitution> followed by
7638         <unqualified-template-name>.
7639         (demangle_type): Follow special substitutions with
7640         <class-enum-type>
7641         (demangle_subtitution): Set template_p for special substitutions.
7642         (main): Fix typos.
7644 2000-06-27  Alex Samuel  <samuel@codesourcery.com>
7646         * cp-demangle.c (demangle_special_name): Swap base and derived
7647         class when demangling construction vtables.
7649 2000-06-21  Alex Samuel  <samuel@codesourcery.com>
7651         * cp-demangle.c: Don't include ctype.h.
7652         (IS_DIGIT): New macro.
7653         (IS_ALPHA): Likewise.  Use IS_DIGIT and IS_ALPHA throughout
7654         instead of isdigit and isalpanum.
7655         (demangling_def): Make name and next const pointers.
7656         (STATUS_ALLOCATION_FAILED): New status code.
7657         (dyn_string_append_space): Handle failure in
7658         dyn_string_append_char.
7659         (int_to_dyn_string): Likewise.  Change return value to status_t.
7660         (string_list_new): Handle failure of dyn_string_init.
7661         (result_close_template_list): Change return type to status_t.
7662         Handle failure in dyn_string_append.
7663         (result_push): Change return value to status_t.  Handle failure in
7664         string_list_new.  Handle failure of result_push throughout.
7665         (substitution_add): Change return value to status_t.  Handle
7666         dyn_string failures.  Handle failure of substitution_add
7667         throughout.
7668         (template_arg_list_new): Return NULL on allocation failure.
7669         (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
7670         Handle error result throughout.
7671         (result_append): Likewise.
7672         (result_append_char): Likewise.
7673         (result_append_space): Likewise.
7674         (demangling_new): Make argument a const pointer.  Handle
7675         allocation failures.
7676         (demangle_template_args): Handle failure in template_arg_list_new
7677         and result_close_template_list.
7678         (demangle_discriminator): Return if int_to_dyn_string fails.
7679         (cp_demangle): Likewise.
7680         (cp_demangle_type): New function.
7681         (cplus_demangle_new_abi): Don't call dyn_string_delete.  Abort on
7682         memory allocation failure.
7683         (main): Likewise.
7684         * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
7685         IN_LIBGCC2.
7686         (dyn_string_init): Change return value to int.  Handle
7687         RETURN_ON_ALLOCATION_FAILURE case.
7688         (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
7689         (dyn_string_release): Delete the dyn_string.
7690         (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
7691         (dyn_string_copy): Change return type to int.
7692         (dyn_string_copy_cstr): Likewise.
7693         (dyn_string_prepend): Likewise.
7694         (dyn_string_prepend_cstr): Likewise.
7695         (dyn_string_insert): Likewise.
7696         (dyn_string_insert_cstr): Likewise.
7697         (dyn_string_append): Likewise.
7698         (dyn_string_append_cstr): Likewise.
7699         (dyn_string_append_char): Likewise.
7700         (dyn_string_substring): Likewise.
7702 2000-06-09  Zack Weinberg  <zack@wolery.cumb.org>
7704         * cp-demangle.c (demangle_operator_name): Add spaces before
7705         names beginning with a letter: delete, delete[], new, new[],
7706         sizeof.
7707         (demangle_special_name): Handle TF <type> and TJ <type>.
7709 Thu Jun  8 18:52:24 2000  Philippe De Muyter  <phdm@macqel.be>
7711         * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
7713 Thu Jun  8 09:25:54 2000  Philippe De Muyter  <phdm@macqel.be>
7715         * cp-demangle.c (stdio.h): File included unconditionaly.
7716         (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
7717         * dyn-string.c (stdio.h): File included.
7718         * partition.c (partition_print): No `&' needed to take the address of
7719         a function.
7721 2000-06-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7723         * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
7725         * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
7727         * cp-demangle.c (demangle_char): Change parameter from char to int.
7728         (demangle_expression, demangle_expr_primary): Remove extra
7729         semi-colon in prototype.
7731         * dyn-string.c (dyn_string_append_char): Change parameter from
7732         char to int.
7734         * memcmp.c (memcmp): Constify.
7736         * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
7737         __extension__.
7739         * partition.c (elem_compare): Prototype.  Don't cast away
7740         const-ness.
7742         * setenv.c (setenv): Use braces to avoid ambiguous `else'.
7744 2000-06-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7746         * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
7748         * cp-demangle.c: Include demangle.h.
7749         (template_arg_list_new): DeANSIfy.
7750         (cp_demangle): Make static and add prototype.
7751         (operator_code, operators): Constify.
7752         (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
7754 2000-06-05  Alex Samuel  <samuel@codesourcery.com>
7756         * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
7757         unsigned char.
7758         (demangle_unqualified_name): Likewise.
7759         (demangle_number_literally): Likewise.
7760         (demangle_type): Likewise.
7761         (demangle_substitution): Likewise.
7762         (is_mangled_char): Likewise, for isalnum.
7764 2000-06-04  Alex Samuel  <samuel@codesourcery.com>
7766         * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
7767         (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
7768         (cp-demangle.o): New dependency.
7769         (dyn-string.o): Likewise.
7771         * dyn-string.c: Move here from gcc/dyn-string.c.  Add new functions.
7773         * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
7774         demangler.
7775         (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
7776         demangling mode.
7777         (gnu_new_abi_symbol_characters): New function.
7778         (main): Use gnu_new_abi_symbol_characters.  * cp-demangle.c: New
7779         file.
7780         * cp-demangle.c: New file.
7782 Tue May 30 16:45:25 2000  Andrew Cagney  <cagney@b1.cygnus.com>
7784         * floatformat.c: Add name to each floatformat field.
7786 Tue May 30 15:07:52 2000  Jeffrey A Law  (law@cygnus.com)
7788         * Makefile.in (objalloc.o): Depend on config.h
7790 2000-05-29  Zack Weinberg  <zack@wolery.cumb.org>
7792         * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
7793         if HAVE_STRING_H.
7794         * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
7795         * objalloc.c: Include config.h.  Include stdlib.h and don't
7796         declare malloc or free if HAVE_STDLIB_H.
7797         * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
7798         else declare malloc without prototype.  Include string.h if
7799         HAVE_STRING_H, else declare memset without prototype.  Don't
7800         include stddef.h.
7802 2000-05-23  Mike Stump  <mrs@wrs.com>
7804         * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
7805         -j3.
7807 2000-05-18  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
7809         * xmalloc.c: Include config.h for HAVE_SBRK definition.
7811 2000-05-16  Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
7813         * hashtab.c (hash_pointer): Delete low-order bits which are
7814         probably zero, also eliminate a warning on alpha.
7816 2000-05-15  David Edelsohn  <edelsohn@gnu.org>
7818         * Makefile.in: Change "pic" to depend on $(PICFLAG), not
7819         on $(enable_shared).
7821 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7823         * config.table: Use mh-sparcpic for sparc*-*-*.
7825 2000-05-08  Nick Clifton  <nickc@cygnus.com>
7827         * Makefile.in (CFILES): Add strncmp.c.
7828         (NEEDED): Add strncmp.
7830 2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7832         * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
7833         Cast the arguments to `islower' to `unsigned char'.
7834         (print_demangler_list): Prototype.
7836 Thu May  4 17:14:41 2000  Philippe De Muyter  <phdm@macqel.be>
7838         * sort.c (UCHAR_MAX): Provide fallback definition.
7840 2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
7842         * Makefile.in (maintainer-clean-subdir): Fix handling of empty
7843         SUBDIRS.
7845 2000-04-28  Kenneth Block  <block@zk3.dec.com>
7846             Jason Merrill  <jason@casey.cygnus.com>
7848         * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
7849         (cplus_demangle_set_style): New function for setting style.
7850         (cplus_demangle_name_to_style): New function to translate name.
7852 2000-04-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7854         * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
7856         * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
7857         (libiberty_AC_FUNC_STRNCMP): Invoke.
7859         * strncmp.c: New file.
7861 Thu Apr 27 16:58:43 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7863         * hashtab.c (htab_expand): Add prototype.
7864         (find_empty_slot_for_expand): Likewise.
7866 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7868         * hashtab.c (hash_pointer, eq_pointer): Make definition static to
7869         match prototype.
7870         (htab_expand): Cast the return value of xcalloc.
7872 2000-04-24  Mark Mitchell  <mark@codesourcery.com>
7874         * hashtab.c (hash_pointer): New function.
7875         (eq_pointer): Likewise.
7876         (htab_hash_pointer): New variable.
7877         (htab_eq_pointer): Likewise.
7879 2000-04-23  Mark Mitchell  <mark@codesourcery.com>
7881         * sort.c (sort_pointers): Fix endianness bugs.
7883         * sort.c: New file.
7884         * Makefile.in (CFILES): Add sort.c
7885         (REQUIRED_OFILES): Add sort.o.
7886         (sort.o): New target.
7888 2000-04-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
7890         * Makefile.in (*-subdir): Revamp slightly to avoid losing on
7891         4.3BSD systems.
7893 Tue Apr 18 16:23:31 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7895         * hashtab.c: Various minor cleanups.
7896         (htab_find_slot_with_hash): INSERT is now enum insert_option.
7897         (htab_find_slot): Likewise.
7899 2000-04-16  Dave Pitts  <dpitts@cozx.com>
7901         * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
7903 2000-04-05  Richard Henderson  <rth@cygnus.com>
7905         * splay-tree.c (splay_tree_remove): New.
7907 2000-03-30  Mark Mitchell  <mark@codesourcery.com>
7909         * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
7910         codes.
7911         (htab_find_with_hash): Likewise.
7912         (htab_find_slot_with_hash): Likewise.
7914 2000-03-29  Zack Weinberg  <zack@wolery.cumb.org>
7916         * hashtab.c (htab_find_with_hash): Avoid calculating hash2
7917         unless it will be used.  Rearrange loop for better
7918         optimization.
7919         (higher_prime_number): Add static prototype.
7921 Thu Mar 16 01:33:58 2000  Jeffrey A Law  (law@cygnus.com)
7923         * Makefile.in (partition.o): Depend on config.h
7925 2000-03-14  Bernd Schmidt  <bernds@cygnus.co.uk>
7927         * hashtab.c (find_empty_slot_for_expand): New function.
7928         (htab_expand): Use it instead of htab_find_slot.
7929         (htab_find_with_hash): Renamed from htab_find; now accepts extra
7930         argument HASH.
7931         (htab_find_slot_with_hash): Likewise for htab_find_slot.
7932         (htab_find): New wrapper function.
7933         (htab_find_slot): Likewise.
7934         (htab_traverse): Pass slot, not entry, to called function.
7936 2000-03-09  Alex Samuel  <samuel@codesourcery.com>
7938         * Makefile.in (CFILES): Add partition.c.
7939         (REQUIRED_OFILES): Add partition.o.
7940         (partition.o): New rule.
7941         * partition.c: New file.
7943 2000-03-09  Zack Weinberg  <zack@wolery.cumb.org>
7945         * hashtab.c (htab_create): Set del_f.
7946         (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
7947         Use it.
7949 2000-03-08  Zack Weinberg  <zack@wolery.cumb.org>
7951         * hashtab.c: Remove debugging variables (all_searches,
7952         all_collisions, all_expansions). Delete
7953         all_hash_table_collisions.
7954         (create_hash_table, delete_hash_table, empty_hash_table,
7955         find_hash_table_entry, remove_element_from_hash_table_entry,
7956         clear_hash_table_slot, traverse_hash_table, hash_table_size,
7957         hash_table_elements_number, hash_table_collisions): Rename to:
7958         htab_create, htab_delete, htab_empty, htab_find_slot,
7959         htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
7960         htab_elements, htab_collisions.
7961         (htab_find): New function, handles common case where you don't
7962         plan to add or delete an entry.
7963         (htab_expand): Don't create a whole new table, just a new
7964         entry vector.
7965         (htab_find_slot): Simplify logic.
7967 1999-08-03  Ian Lance Taylor  <ian@zembu.com>
7969         * floatformat.c: Add casts to avoid signed/unsigned warnings.
7970         * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
7972         * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
7973         $(TARGETLIB)n so it works on MSDOS.
7974         (install_to_tooldir): Likewise.
7976 1999-07-21  Ian Lance Taylor  <ian@zembu.com>
7978         From Mark Elbrecht:
7979         * makefile.dos: Remove; obsolete.
7980         * configure.bat: Remove; obsolete.
7982 1999-07-11  Ian Lance Taylor  <ian@zembu.com>
7984         * splay-tree.c (splay_tree_insert): Add initialization to avoid
7985         warning.
7987 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
7989         * pexecute.c: Conditionally include string.h.
7990         (fix_argv): Handle embedded whitespace in args for Mingw32.
7992 2000-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7994         * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
7995         we're using gcc.
7997         * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
7999 1999-12-27  Geoff Keating  <geoffk@cygnus.com>
8001         * vasprintf.c (int_vasprintf): Don't re-read the format character
8002         as this mishandles strings like '%%s'.
8004 1999-12-05  Mark Mitchell  <mark@codesourcery.com>
8006         * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
8007         rather than struct splay_tree_node.
8008         (splay_tree_insert): Use struct splay_tree_s rather than struct
8009         splay_tree.
8011 Sun Nov 28 00:59:39 1999  Philippe De Muyter  <phdm@macqel.be>
8013         * hashtab.c (sys/types.h): File included.
8015 1999-11-22  Jason Merrill  <jason@casey.cygnus.com>
8017         * strtoul.c, strtol.c, random.c: Remove advertising clause from
8018         BSD license, pursuant with
8020         ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
8022 Wed Nov 10 09:42:39 1999  Jeffrey A Law  (law@cygnus.com)
8024         * hashtab.c: Include stdio.h.
8026 Mon Nov  8 09:23:41 1999  Jeffrey A Law  (law@cygnus.com)
8028         * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
8030 Tue Nov  2 03:23:13 1999  Philippe De Muyter  <phdm@macqel.be>
8032         * xstrdup (sys/types.h): Include this file.
8034 1999-10-28  Nathan Sidwell  <nathan@acm.org>
8036         * Makefile.in (SUBDIRS): New macro.
8037         (mostlyclean, clean, distclean, maintainer-clean): Adjust to
8038         avoid multiple subdirectory cleaning.
8039         (*-subdir): Use SUBDIRS.
8041 1999-10-25  Jim Kingdon  <http://developer.redhat.com/>
8043         * cplus-dem.c: Move declarations of standard_symbol_characters and
8044         hp_symbol_characters inside #ifdef MAIN to avoid compiler
8045         warnings.
8047 1999-10-23 08:51 -0700  Zack Weinberg  <zack@bitmover.com>
8049         * hashtab.c (find_hash_table_entry): When returning a
8050         DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
8051         (clear_hash_table_slot): New function which deletes an entry
8052         by its position in the table, not its value.
8053         (traverse_hash_table): New function which calls a hook
8054         function for every live entry in the table.
8056 1999-10-19  Mark Mitchell  <mark@codesourcery.com>
8058         * cplus-dem.c (INTBUF_SIZE): New macro.
8059         (string_append_template_idx): New function.
8060         (demangle_expression): Likewise.
8061         (demangle_integral_value): Use it.
8062         (demangle_real_value): New function, split out from ...
8063         (demangle_template_value_parm): ... here.  Use
8064         string_append_template_idx.  Use demangle_real_value.
8065         (demangle_template): Use string_append_template_idx.
8066         (demangle_qualified): Use consume_count_with_underscores.
8067         (get_count): Tweak formatting.
8068         (do_type): Use string_append_template_idx.
8070 1999-10-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8072         * calloc.c: Add a public domain notice.
8074 Mon Oct 18 02:30:47 1999  Philippe De Muyter  <phdm@macqel.be>
8076         * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
8078 Fri Oct 15 01:47:51 1999  Vladimir Makarov  <vmakarov@loony.cygnus.com>
8080         * Makefile.in (CFILES): Add hashtab.c
8081         (REQUIRED_OFILES): Add hashtab.o
8082         (hashtab.o): Add dependencies.
8083         * hashtab.c: New file
8085 Wed Oct 13 01:16:47 1999  Mumit Khan  <khan@xraylith.wisc.edu>
8087         * basename.c (DIR_SEPARATOR): New macro.
8088         (DIR_SEPARATOR_2): Likewise.
8089         (HAVE_DOS_BASED_FILESYSTEM): Likewise.
8090         (IS_DIR_SEPARATOR): Likewise.
8091         (main): Handle MSDOS style pathname.
8093 1999-10-11  Mark Mitchell  <mark@codesourcery.com>
8095         * cplus-dem.c (do_type): Handle pointer to member types whose
8096         enclosing classes have namespace scope.
8098 Sun Oct 10 01:23:50 1999  Marc Espie <espie@cvs.openbsd.org>
8100         * config.table:  Provide a backup shell for executing move-if-change.
8102 1999-10-02  Mark Mitchell  <mark@codesourcery.com>
8104         * xmalloc.c (xmalloc): Fix spelling error.
8105         (xcalloc, xrealloc): Likewise.
8107 1999-10-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8109         * cplus-dem.c (fancy_abort, demangle_integral_value,
8110         demangle_arm_hp_template, recursively_demangle,
8111         standard_symbol_characters, hp_symbol_characters, main): Add prototype.
8112         (program_name, program_version, fatal): Constify a char*.
8113         (usage, fatal): Mark with ATTRIBUTE_NORETURN.
8114         (main): Call return, not exit.
8116 1999-09-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8118         * choose-temp.c: Remove obsolete comment about gcc.
8119         (make_temp_file): Constify a char*.
8121 Wed Sep  8 20:03:28 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8123         * xmemdup.c: Include sys/types.h.
8125 1999-09-07  Jeff Garzik  <jgarzik@pobox.com>
8127         * xmemdup.c: New xmemdup function.
8128         * Makefile.in, makefile.vms, vmsbuild.com:  Use xmemdup.[co].
8130 Tue Sep  7 23:32:18 1999  Linas Vepstas  <linas@linas.org>
8132         * config.table: Add openedition target.
8133         * config/mh-openedition: New file.
8135 Thu Sep  2 01:36:12 1999  Marc Espie <espie@cvs.openbsd.org>
8137         * pexecute.c (pexecute):  Fill in temp_base when needed.
8139 1999-08-31  Richard Henderson  <rth@cygnus.com>
8141         * getpwd.c: Check HAVE_GETCWD before defining it away.
8143 1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8145         * Makefile.in (CFILES): Add calloc.c and getpwd.c.
8146         (REQUIRED_OFILES): Add getpwd.o.
8147         (getpwd.o): Add target.
8149         * configure.in (AC_PREREQ): Bump to 2.13.
8150         (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
8152         * getpwd.c: New file, moved here from gcc.
8154 1999-08-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8156         * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
8157         comparing against a signed quantity.
8158         (arm_special): Likewise.
8159         (demangle_fund_type): Likewise.
8160         (do_hpacc_template_const_value): Mark parameter `work' with
8161         ATTRIBUTE_UNUSED.
8162         (main): Constify variable `valid_symbols'.
8164 Tue Aug 24 02:50:45 1999  Philippe De Muyter  <phdm@macqel.be>
8166         * strtoul.c (strtoul): Add parentheses around && within ||.
8168 Fri Aug  6 23:32:29 1999  Daniel Jacobowitz <drow@drow.them.org>
8170         * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
8171         libdir, libsubdir and tooldir.
8173 1999-08-01  Mark Mitchell  <mark@codesourcery.com>
8175         * splay-tree.c (splay_tree_insert): Return the new node.
8177 1999-07-14  Richard Henderson  <rth@cygnus.com>
8179         * argv.c: Include stdlib.h and string.h instead of
8180         prototyping directly.
8181         * choose-temp.c: Conditionally include string.h.
8183 1999-07-12  Jason Merrill  <jason@yorick.cygnus.com>
8185         * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
8187 1999-07-11  Ian Lance Taylor  <ian@zembu.com>
8189         * splay-tree.c (splay_tree_insert): Add initialization to avoid
8190         warning.
8192 1999-07-07  Jason Merrill  <jason@yorick.cygnus.com>
8194         * Makefile.in (needed-list): Only include stuff we actually need
8195         for libstdc++.
8197 1999-06-21  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
8199         * configure.in (checkfuncs): Add gettimeofday.
8200         * config.in, configure: Regenerated.
8202 Mon Jun 21 05:56:01 1999  Mumit Khan  <khan@xraylith.wisc.edu>
8204         * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
8205         the test fails.
8206         * configure: Regenerate.
8208 1999-06-10  Mike Stump  <mrs@wrs.com>
8210         * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
8211         parallel builds.
8213 1999-05-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8215         * putenv.c: Include ansidecl.h to define `const'.
8216         * setenv.c: Likewise.
8218 Wed May 26 03:58:20 1999  "Melissa O'Neill" <oneill@cs.sfu.ca>
8220         * Makefile.in (CFILES): Add putenv.c and setenv.c.
8221         * configure.in (funcs): Add putenv and setenv.
8222         (AC_CHECK_FUNCS): Check for putenv and setenv.
8223         * configure: Rebuilt.
8224         * putenv.c setenv.c: New files.
8226         * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
8227         bytes of space using malloc.
8229 Mon May 17 01:42:34 1999  Stu Grossman  <grossman@babylon-5.cygnus.com>
8231         * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
8232         the *mangled pointer beyond the end of the string.  Clean up code to
8233         match prevailing coding style.
8235 1999-05-13  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8237         * tmpnam.c (L_tmpnam): Fix typo.
8239 Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
8241         * cplus-dem.c (standard_symbol_characters): Renamed from
8242         standard_symbol_alphabet.  No longer modify TABLE.
8243         (hp_symbol_characters): Renamed from hp_symbol_alphabet.  No longer
8244         modify TABLE.
8245         (main): Corresponding changes.  Use strchr to determine if a
8246         character is valid.
8248 1999-05-11  Jim Blandy  <jimb@zwingli.cygnus.com>
8250         * cplus-dem.c (main): Use table lookup to distinguish identifier
8251         characters from non-identifier characters.
8252         (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
8254 Thu May  6 20:34:42 1999  Fred Fish  <fnf@be.com>
8256         * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
8257         * getruntime.c: Only attempt to include sys/resource.h and
8258         use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
8259         are defined.
8261 Mon Apr 26 01:36:06 1999  Donn Terry (donn@interix.com)
8263         * configure.in (alloca detection): Handle alloca directly for interix.
8264         * configure: Rebuilt.
8266 Sun Apr 25 01:18:21 1999  Mumit Khan  <khan@xraylith.wisc.edu>
8268         * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
8270 1999-04-20  Jim Blandy  <jimb@zwingli.cygnus.com>
8272         Fix from Dale Hawkins:
8273         * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
8274         reallocated properly if we use it again.
8276         * cplus-dem.c (demangle_fund_type): Check for buffer overrun.  Be
8277         stricter about syntax.  Always null-terminate string.
8279 Thu Apr 15 23:00:55 1999  Mumit Khan  <khan@xraylith.wisc.edu>
8281         * configure.in (checkfuncs): Check for sbrk.
8282         * config.in: Rebuilt.
8283         * configure: Likewise.
8284         * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
8286 1999-04-12  Jim Blandy  <jimb@zwingli.cygnus.com>
8288         Fix from Marcus Daniels:
8289         * cplus-dem.c (demangle_fund_type): Don't run off the end of the
8290         identifier looking for another underscore.
8292 Sun Apr 11 23:20:59 1999  Mumit Khan  <khan@xraylith.wisc.edu>
8294         * pexecute.c: Change all references to __UWIN__ to _UWIN.
8295         * xmalloc.c: Likewise.
8296         (xcalloc): UWIN has sbrk.
8297         (xrealloc): Fix guard macro.
8299 1999-04-11  Richard Henderson  <rth@cygnus.com>
8301         * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
8302         or <alloca.h>.
8303         * clock.c (GNU_HZ): New definition.
8304         (clock): Use it.
8305         * getruntime.c: Likewise.
8307         * config.table: Use mh-beos.
8308         * config/mh-beos: New file.
8310 1999-04-11  Mark Mitchell  <mark@codesourcery.com>
8312         * cplus-dem.c (demangle_template_value_parm): Handle
8313         pointers-to-members.
8314         (do_type): Handle template parameters as qualifiers.
8316 1999-04-01  Jim Blandy  <jimb@zwingli.cygnus.com>
8318         * cplus-dem.c: Attempt to handle overflows in counts with some
8319         semblance of grace.
8320         (consume_count): Detect overflows.  Return -1 to indicate errors,
8321         instead of zero.
8322         (demangle_template_value_parm, demangle_template): Handle change
8323         to consume_count's return convention.
8325 1999-04-05  Tom Tromey  <tromey@cygnus.com>
8327         * testsuite/regress-demangle: New file.
8328         * testsuite/demangle-expected: New file.
8330         * Makefile.in (all, check, installcheck, info, install-info,
8331         clean-info, dvi, install, etags, tags, mostlyclean, clean,
8332         distclean, maintainer-clean, realclean): Depend on corresponding
8333         `-subdir' target.
8334         (all-subdir check-subdir installcheck-subdir info-subdir
8335         install-info-subdir clean-info-subdir dvi-subdir
8336         install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
8337         distclean-subdir maintainer-clean-subdir): New target.
8338         * testsuite/Makefile.in: New file.
8339         * configure: Rebuilt.
8340         * configure.in: Create testsuite/Makefile.
8342 1999-04-02  Mark Mitchell  <mark@codesourcery.com>
8344         * splay-tree.h (splay_tree_compare_pointers): Define.
8346 1999-03-30  Mark Mitchell  <mark@codesourcery.com>
8348         * splay-tree.c (splay_tree_compare_ints): Define.
8350 1999-03-30  Tom Tromey  <tromey@cygnus.com>
8352         * cplus-dem.c (consume_count): If `count' wraps, return 0 and
8353         don't advance input pointer.
8354         (demangle_class_name): If consume_count didn't find a count, do
8355         nothing.  Don't bother with `strlen' sanity check; consume_count
8356         does it for us.
8358 1999-03-16  Stan Shebs  <shebs@andros.cygnus.com>
8360         From Art Haas  <ahaas@neosoft.com>:
8361         * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
8362         when doing arm or hp style.
8363         (demangle_nested_args): Decr forgetting_types field when done.
8365 Thu Mar 11 01:22:58 1999  Mumit Khan  <khan@xraylith.wisc.edu>
8367         * pexecute.c (__CYGWIN32__): Rename to
8368         (__CYGWIN__): this.
8369         * xmalloc.c: Likewise.
8371         Changes to support i386-pc-uwin.
8372         * configure.in (*-*-uwin*): Workaround for vfork bug.
8373         * configure: Regenerate.
8374         * pexecute.c (pexecute): Be like standard Unix.
8375         (pwait): Likewise.
8376         * xmalloc.c (first_break): Define.
8377         (xmalloc_set_program_name): Use.
8378         (xmalloc): Use.
8380 Thu Mar 11 01:07:55 1999  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8382         * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
8384 Sun Feb 28 22:30:44 1999  Geoffrey Noer  <noer@cygnus.com>
8386         * config.table: Check cygwin*, not cygwin32*.
8388 Tue Feb  9 16:39:01 1999  Dave Brolley  <brolley@cygnus.com>
8390         * Makefile.in: Change mkstemp -> mkstemps.
8392 Tue Feb  9 01:12:27 1999  Marc Espie <Marc.Espie@liafa.jussieu.fr>
8394         * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
8395         * configure.in (funcs): Check for and conditionally add mkstemps to
8396         the list of functions libiberty will provide.
8397         * configure: Rebuilt.
8399 Wed Feb  3 00:01:15 1999  Mumit Khan  <khan@xraylith.wisc.edu>
8401         * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
8402         platforms that don't have HZ.
8403         * getruntime.c (HZ): Likewise.
8405 Sat Jan 30 13:28:04 1999  Richard Henderson  <rth@cygnus.com>
8407         * Makefile.in (xstrdup.o): Depend on config.h.
8409 Wed Jan 13 07:26:44 1999  H.J. Lu  (hjl@gnu.org)
8411         * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
8412         freeing it.
8414 Wed Jan 13 14:16:36 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8416         * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
8418 Tue Jan  5 15:58:29 1999  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
8420         * Makefile.in (CFILES): fix typo, splay-tree.c instead of
8421         splay-tree.o.
8423 1999-01-04  Jason Molenda  (jsm@bugshack.cygnus.com)
8425         * configure.in: Require autoconf 2.12.1 or higher.
8427 1998-12-30  Michael Meissner  <meissner@cygnus.com>
8429         * random.c (NULL): Don't redefine NULL if it is already defined.
8431 Tue Dec 22 09:43:35 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8433         * argv.c (buildargv): Cast the result of alloca in assignment.
8435         * choose-temp.c: Include stdlib.h.
8437         * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8438         (snarf_numeric_literal): Constify first parameter.
8439         (code_for_qualifier): Avoid a gcc extension, make the parameter an
8440         int, not a char.
8441         (demangle_qualifier): Likewise.
8442         (demangle_signature): Cast the argument of a ctype function to
8443         unsigned char.
8444         (arm_pt): Add parens around assignment used as truth value.
8445         (demangle_arm_hp_template): Constify variable `args'.
8446         (do_hpacc_template_const_value): Cast the argument of a ctype
8447         function to unsigned char.
8448         (do_hpacc_template_literal): Remove unused variable `i'.
8449         (snarf_numeric_literal): Constify parameter `args'.
8450         Cast the argument of a ctype function to unsigned char.
8452         * floatformat.c (floatformat_to_double): Add explicit braces to
8453         avoid ambiguous `else'.
8455         * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8456         `cstart' and `cend' to unsigned char.  Cast the argument of macro
8457         `FOLD', which uses ctype functions, to unsigned char.
8459         * objalloc.c (free): Add prototype.
8461 Sun Dec 20 16:03:46 1998  Hans-Peter Nilsson  <hp@axis.se>
8463         * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
8465 Fri Dec 18 17:50:18 1998  David Taylor  <taylor@texas.cygnus.com>
8467         * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8468         doesn't exist.
8469         (do_hpacc_template_literal): remove unused variable `i'.
8471 Fri Dec 18 16:11:43 EST 1998  Andrew MacLeod  <amacleod@cygnus.com>
8473         * cplus-dem.c (demangle_fund_type): Process CV and u codes before
8474         bumping the pointer we read from. Also prepend these codes,
8475         as we do in other places.
8477 1998-12-18  Nick Clifton  <nickc@cygnus.com>
8479         * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
8480         'const char *' in order to match its usage when calling siblings.
8481         (snarf_numeric_literal): Make first arg 'const char **' in order
8482         to match usage.
8484 Mon Dec 14 09:55:50 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8486         * choose-temp.c: Don't check IN_GCC anymore.
8488         * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
8489         * memchr.c (memchr): Likewise.
8490         * memcpy.c (memcpy): Likewise.
8491         * memmove.c (memmove): Likewise.
8493         * mkstemp.c: Don't check IN_GCC anymore.
8494         * pexecute.c: Likewise.
8495         * splay-tree.c: Likewise.
8497         * strchr.c (strchr): Use `const', not `CONST'.
8498         * strrchr.c (strrchr): Likewise.
8499         * strtol.c (strtol): Likewise.
8500         * strtoul.c (strtoul): Likewise.
8502 Fri Dec  4 13:51:04 1998  David Taylor   <taylor@texas.cygnus.com>
8503                           Elena Zannoni  <ezannoni@cygnus.com>
8504                           Stan Shebs     <shebs@cygnus.com>
8505                           Edith Epstein  <eepstein@cygnus.com>
8506                           Andres MacLeod <amacleod@cygnus.com>
8507                           Satish Pai     <pai@apollo.hp.com>
8509         * HP aCC demangling support.
8510         * cplus-dem.c
8511         (main): Remove default to HP style demangling, set to EDG
8512         demangling correctly when -edg specified; set the demangling style
8513         when user specifies 'edg'. Set strip_underscore to
8514         prepends_underscore, if not HPUXHPPA.  Set
8515         current_demangling_style to hp_demangling if HPUXHPPA.  Set
8516         current demangling style correctly if the switch is hp.  Read
8517         label correctly also in the HP style case.
8518         (work_stuff): add temp_start field; add field for volatile member
8519         function.
8520         (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8521         style for this case is the same as ARM.
8522         (demangle_args): handle EDG_DEMANGLING style; support HP style.
8523         (demangle_arm_hp_template): new function. (It was
8524         demangle_arm_pt.); check and set value of temp_start field in
8525         multiple places. Also, when ceching for end of template args,
8526         check to see if at end of static member of template class.
8527         (demangle_class): new local variable : save_class_name_end Don't
8528         include template args in string defining class.
8529         (demangle_class_name): use demangel_arm_hp_template.
8530         (demangle_function_name): handle case where demangling style is
8531         HP_DEMANGLING and currently point at an 'X' in the mangled name.
8532         Handle EDG_DEMANGLING style.  Handle constructor and destructor
8533         ops for HP style.
8534         (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8535         styles.  global destructor and constructor for HP style are same
8536         as for ARM style. Same for local variables.
8537         (demangle_qualified): handle EDG_DEMANGLING style.
8538         (demangle_signature): add case for volatile member function.  For
8539         cases '1' - '9' : initialize the temp_start field to -1 and handle
8540         the EDG_DEMANGLING style.  for case 'F' : handle EDG_DEMANGLING
8541         and AUTO_DEMANGLING styles.  If expecting a function and managed
8542         to demangle the funct args, then handle the LUCID_DEMANGLING,
8543         ARM_DEMANGLING, and EDG_DEMANGLING styles.  Add case for local
8544         class name after "Lnnn_ in HP style case. HP style too needs to
8545         forget types.  _nnn is OK for HP style, so don't report failure.
8546         (do_hpacc_template_const_value): new function. Handle template's
8547         value param for HP/aCC.
8548         (do_hpacc_template_literal): new function.  Handle a template's
8549         literal parameter for HP aCC.
8550         (recursively_demangle): new function
8551         (snarf_numeric_literal): new function.
8552         (usage): add 'edg' to the list of demangling styles; add hp switch
8553         to message.
8555 Sat Nov 28 17:25:22 1998  Christopher Faylor <cgf@cygnus.com>
8557         * pexecute.c: Remove obsolete ifdefed cygwin code.
8559 Fri Nov 27 13:26:06 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8561         * choose-temp.c: Always include libiberty.h.  Avoid redundancies.
8562         * cplus-dem.c: Likewise.  Conform to libiberty.h.
8563         * pexecute.c: Likewise.
8564         * splay-tree.c: Likewise.
8566 1998-11-25  Mike Stump  <mrs@wrs.com>
8568         * Makefile.in (splay-tree.o): Add config.h dependency.
8570 Mon Nov 23 16:59:49 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8572         *  configure.in: Use AC_PREREQ(2.12.1).
8574 1998-11-16  Benjamin Kosnik  <bkoz@haight.constant.com>
8576         * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
8578 Thu Nov 19 22:15:50 1998  Jeffrey A Law  (law@cygnus.com)
8580         * mpw.c (mpw_access): Add missing parens.
8582 Thu Nov 19 12:59:21 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8584         * configure.in: Call AC_HEADER_SYS_WAIT.
8586         * pexecute.c: Include sys/wait.h when !IN_GCC.
8588 Thu Nov 19 14:38:20 1998  Geoffrey Noer  <noer@cygnus.com>
8590         * pexecute.c: revert back to checking old Cygwin
8591         preprocessor symbol until some time has passed.
8593 Wed Nov 18 08:52:26 1998  Christopher Faylor <cgf@cygnus.com>
8595         * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
8596         since it will now support similar constructs.
8598 Fri Nov 13 19:18:05 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8600         * configure.in: Check for calloc.
8602         * calloc.c: New file.
8604         * xmalloc.c (xcalloc): New function.
8606 Fri Nov 13 08:51:46 EST 1998  Andrew MacLeod  <amacleod@cygnus.com>
8608         *cplus-dem.c (demangle_prefix): Use the last "__"
8609         in the mangled name when looking for the signature. This allows
8610         template names to begin with "__".
8612 1998-11-08  Mark Mitchell  <mark@markmitchell.com>
8614         * cplus-dem.c (type_kind_t): Add tk_reference.
8615         (demangle_template_value_parm): Handle it.
8616         (do_type): Use it for references, instead of tk_pointer.
8618         * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
8619         not internal_cplus_demangle.
8621 Sat Nov  7 16:02:10 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8623         * choose-temp.c: Don't include gansidecl.h.
8624         * mkstemp.c: Likewise.
8625         * pexecute.c: Likewise.
8627 Mon Nov  2 15:05:33 1998  Geoffrey Noer  <noer@cygnus.com>
8629         * configure.in: detect cygwin* instead of cygwin32*
8630         * configure: regenerate
8632 Mon Nov  2 10:22:01 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8634         * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8635         whether to include config.h.  Possibly include unistd.h in the
8636         !IN_GCC case.  Define VFORK_STRING as a printable function call
8637         for error messages (either "vfork" or "fork".)  If HAVE_VFORK_H is
8638         defined, include vfork.h.  If VMS is defined, define vfork()
8639         appropriately.  Remove vfork check on USG, we're using autoconf.
8640         (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
8641         locally what string to use.
8643 1998-10-26  Mark Mitchell  <mark@markmitchell.com>
8645         * splay-tree.c: Tweak include directives to make sure declarations of
8646         xmalloc and free are available.
8648 1998-10-25  Mark Mitchell  <mark@markmitchell.com>
8650         * cplus-dem.c (gnu_special): Fix handling of virtual tables in
8651         anonymous namespaces.
8653 1998-10-23  Mark Mitchell  <mark@markmitchell.com>
8655         * cplus-dem.c (work_stuff): Replace const_type and volatile_type
8656         with type_quals.
8657         (TYPE_UNQUALIFIED): New macro.
8658         (TYPE_QUAL_CONST): Likewise.
8659         (TYPE_QUAL_VOLATILE): Likewise.
8660         (TYPE_QUAL_RESTRICT): Likewise.
8661         (code_for_qualifier): New function.
8662         (qualifier_string): Likewise.
8663         (demangle_qualifier): Likewise.
8664         (internal_cplus_demangle): Use them.
8665         (demangle_signature): Likewise.
8666         (demangle_template_value_parm): Likewise.
8667         (do_type): Likewise.
8668         (demangle_fund_type)): Likewise.
8670 Thu Oct 22 19:58:43 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8672         * splay-tree.c (splay_tree_foreach_helper): Make definition static
8673         to match prototype.
8675 1998-10-21  Mark Mitchell  <mark@markmitchell.com>
8677         * splay-tree.c: New file.
8678         * Makefile.in (CFILES): Add it.
8679         (REQUIRED_OFILES): Likewise.
8680         (splay-tree.o): Add dependencies.
8682 Tue Oct 20 12:29:02 1998  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
8684         * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
8685         range of 'K' index.
8687 Thu Oct 15 18:51:12 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8689         * choose-temp.c: Prototype mkstemps() when IN_GCC.
8691         * cplus-dem.c (consume_count): Cast argument of ctype macro to
8692         `unsigned char'.
8693         (cplus_demangle_opname): Cast the result of `strlen' to (int) when
8694         comparing against one.
8695         (cplus_mangle_opname): Likewise.
8696         (demangle_integral_value): Cast argument of ctype macro to
8697         `unsigned char'.
8698         (demangle_template_value_parm): Likewise.
8699         (demangle_template): Initialize variable `bindex'.  Cast the
8700         result of `strlen' to (int) when comparing against one.  Remove
8701         unused variable `start_of_value_parm'.
8702         (demangle_class_name): Cast the result of `strlen' to (int) when
8703         comparing against one.
8704         (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
8705         (gnu_special): Likewise.  Cast the result of `strlen' to (int)
8706         when comparing against one.
8707         (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
8708         (get_count): Likewise.
8709         (do_type): Likewise.  Cast the result of `strlen' to (int) when
8710         comparing against one.
8711         (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
8712         (demangle_function_name): Cast the result of `strlen' to (int)
8713         when comparing against one.
8715         * mkstemp.c (mkstemps): Cast variable `len' to (int) when
8716         comparing against one.
8718 Tue Oct 13 23:51:51 1998  Jeffrey A Law  (law@cygnus.com)
8720         * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
8721         * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
8722         * config.in, configure: Rebuilt.
8724         * getopt.c: Check HAVE_STRINGS_H before including strings.h.
8725         * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
8726         * config.in, configure: Rebuilt.
8728 Mon Oct 12 19:15:59 1998  Geoffrey Noer  <noer@cygnus.com>
8730         * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
8732 Sun Oct 11 17:36:06 1998  Michael Tiemann  <tiemann@holodeck.cygnus.com>
8734         * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
8736 Thu Oct  8 23:42:08 1998  Jeffrey A Law  (law@cygnus.com)
8738         * Merge egcs & devo libiberty.
8740 1998-09-08  Martin von Löwis  <loewis@informatik.hu-berlin.de>
8742         * cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces.
8744 Mon Sep  7 23:29:01 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8746         * mkstemp.c: Include config.h even when not IN_GCC.  Wrap header
8747         inclusions inside HAVE_*_H macros.  Include ansidecl.h when not
8748         IN_GCC.
8750         * vasprintf.c: Include stdarg.h/varargs.h first.
8752         * vprintf.c: Likewise.
8754 Sat Sep  5 03:24:49 1998  Jeffrey A Law  (law@cygnus.com)
8756         * pexecute.c: Updates from gcc.  Copy in gcc has been removed.  This
8757         is the canonical copy.  Define ISSPACE if !IN_GCC.
8758         * alloca.c, vfprintf.c, choose-temp.c, mkstemp.c, getopt.c: Similarly.
8759         * getopt1.c, obstack.c: Similarly.
8760         * Makefile.in: Build mkstemp.o
8762 Tue Sep  1 23:12:47 1998  Christopher Faylor <cgf@cygnus.com>
8764         * configure.in: Include asprintf in list of functions known not
8765         to be in newlib.
8766         * configure: Rebuild.
8768 Wed Aug 19 14:05:01 1998  Mumit Khan  <khan@xraylith.wisc.edu>
8770         * cplus-dem.c (work_stuff): Add dllimported.
8771         (demangled_prefix): Mark symbols imported from PE DLL.
8772         (internal_cplus_demangled): Handle.
8774 1998-08-17  Jason Merrill  <jason@yorick.cygnus.com>
8776         * cplus-dem.c (do_type): Fix simple array handling.  If we fail,
8777         stay failed.
8779 Mon Aug 17 10:40:34 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8781         * cplus-dem.c: Include config.h if it exists.  Also, only
8782         prototype malloc/realloc if we can't get stdlib.h.
8784 Sat Aug 15 16:15:01 1998  Ian Lance Taylor  <ian@cygnus.com>
8786         * configure.in: Switch back to checking --with-target-subdir when
8787         deciding whether to check for newlib, undoing part of July 15
8788         change.
8789         * configure: Rebuild.
8791 Thu Aug 13 16:47:38 1998  Mark Mitchell  <mark@markmitchell.com>
8793         * cplus-dem.c (type_kind_t): New type.
8794         (demangle_template_value_parm): Add type_kind_t parameter.  Rely
8795         on this paramter, rather than demangling the type again.
8796         (demangle_integral_value): Pass tk_integral.
8797         (demangle_template_: Pass the value returned from do_type.
8798         (do_type): Return a type_kind_t.  Pass tk_integral to
8799         demangle_template_value_parm for array bounds.
8800         (demangle_fund_type): Likewise.
8802         Also incorporate from GCC version:
8804         Tue Jul 21 13:28:19 1998  Jason Merrill  <jason@yorick.cygnus.com>
8806         * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
8808 Thu Aug 13 16:47:38 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8810         * cplus-dem.c (demangle_nested_args): Make function definition
8811         static to match the prototype.
8813 Tue Jul 28 11:33:09 1998  Mark Mitchell  <mark@markmitchell.com>
8815         * cplus-dem.c (type_kind_t): New type.
8816         (demangle_template_value_parm): Add type_kind_t parameter.  Rely
8817         on this paramter, rather than demangling the type again.
8818         (demangle_integral_value): Pass tk_integral.
8819         (demangle_template_: Pass the value returned from do_type.
8820         (do_type): Return a type_kind_t.  Pass tk_integral to
8821         demangle_template_value_parm for array bounds.
8822         (demangle_fund_type): Likewise.
8824         Also incorporate from GCC version:
8826         Tue Jul 21 13:28:19 1998  Jason Merrill  <jason@yorick.cygnus.com>
8828         * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
8830 Mon Jul 27 12:16:08 1998  Ian Lance Taylor  <ian@cygnus.com>
8832         * Makefile.in (ALLOCA): New variable.
8833         ($(TARGETLIB)): Add $(ALLOCA) to library.
8834         (needed-list): Add $(ALLOCA).
8835         ($(ALLOCA)): Depend upon stamp-picdir.
8837 Sun Jul 19 08:23:17 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8839         * cplus-dem.c (demangle_nested_args): Make function definition
8840         static to match the prototype.
8842 Wed Jul 15 00:12:58 1998  Ian Lance Taylor  <ian@cygnus.com>
8844         * configure.in: Check --with-cross-host rather than
8845         --with-target-subdir when deciding whether build uses a cross
8846         compiler, and when deciding where to install the library.
8847         * configure: Rebuild.
8849 Sun Jul 12 01:27:05 1998  Jason Merrill  <jason@yorick.cygnus.com>
8851         * cplus-dem.c (demangle_nested_args): Return a value.
8853 Sat Jul 11 16:19:48 1998  Mark Mitchell  <mark@markmitchell.com>
8855         * cplus-dem.c (string): Move definition before work_stuff.
8856         (work_stuff): Add volatile_type, forgetting_types,
8857         previous_argument, and nrepeats fields.
8858         (SCOPE_STRING): New macro.
8859         (demangle_template): Add `remember' parameter.  Add comment.
8860         Register the `B' code type here, if remembering.  Tidy.  Fix crash
8861         on NULL tmpl_argvec.  Be consistent with use of tname/trawname.
8862         (demangle_nested_args): New function.
8863         (internal_cplus_demangle): Handle volatile-qualified member
8864         functions.
8865         (mop_up): Delete the previous_argument string if present.
8866         (demangle_signature): Tidy.  Handle volatile-qualified member
8867         functions.  Handle back-references using the `B' code.  Use extra
8868         parameter to demangle_template and SCOPE_STRING where appropriate.
8869         (demangle_template_value_parm): Fix thinko; 'B' is not an integral
8870         code.
8871         (demangle_class): Use SCOPE_STRING.
8872         (gnu_special): Pass additional argument to demangle_template.
8873         Use SCOPE_STRING.
8874         (demangle_qualified): Save qualified types for later
8875         back-references.  Handle constructors and destructors for template
8876         types correctly.
8877         (do_type): Tidy.  Use SCOPE_STRING.  Pass extra argument to
8878         demangle_template.  Use demangled_nested_args.  Don't remember
8879         qualified types here; that's now done in demangle_qualified.
8880         Similarly for templates.
8881         (do_arg): Improve commment.  Handle 'n' repeat code.
8882         (remember_type): Check forgetting_types.
8883         (demangle_args): Deal with 'n' repeat codes.  Tidy.
8885 Thu Jul  2 16:26:24 1998  Ian Lance Taylor  <ian@cygnus.com>
8887         * config.table: Only use mh-fbsd21 on *-*-freebsd2.2.[012], not on
8888         *-*-freebsd2.2.*.  From Dmitrij Tejblum <tejblum@arc.hq.cti.ru>.
8890 Mon Jun 15 16:29:01 1998  Ian Lance Taylor  <ian@cygnus.com>
8892         * configure.in (setobjs): Correct quoting error in cygwin32 case.
8893         From Chris Faylor <cgf@cygnus.com>.
8895 Mon Jun  1 13:47:55 1998  Jason Molenda  (crash@bugshack.cygnus.com)
8897         * obstack.c: Update to latest FSF version.
8899 Mon Jun  1 14:17:36 1998  Mike Stump  <mrs@wrs.com>
8901         * Makefile.in: Add a dependency on stamp-picdir for the
8902         objects, so that we can do a parallel build.
8904 Sat May 30 22:17:13 1998  Mumit Khan  <khan@xraylith.wisc.edu>
8906         * configure.in (checkfuncs): Add missing "'".
8908 Fri May 29 12:40:41 1998  Jason Molenda  (crash@bugshack.cygnus.com)
8910         * obstack.c (_obstack_memory_used):  Elide this function if we're
8911         on a system with GNU libc.
8913 Tue May 26 18:28:43 1998  Ian Lance Taylor  <ian@cygnus.com>
8915         * Makefile.in (distclean): Remove config.log.
8917 Tue May 26 15:01:52 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
8919         * Makefile.in (distclean): Don't remove alloca-conf.h.
8921 Fri May 22 01:38:07 1998  Hans-Peter Nilsson  <hp@axis.se>
8923         * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.
8925 1998-05-21  Mark Mitchell  <mmitchell@usa.net>
8927         * cplus-dem.c (do_type): Handle volatile qualification.
8929 1998-05-21  Manfred Hollstein  <manfred@s-direktnet.de>
8931         * configure.in: Check for unistd.h as well.
8932         * configure: Rebuild.
8933         * config.in: Rebuild.
8934         * getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE
8935         is defined in unistd.h. Reformat conditional block for easier reading.
8937         * config.table (shared): Default to no if ${enable_shared}
8938         is unset or empty; this logic is used by the toplevel
8939         configure scripts, too.
8941 Sat May 16 14:01:26 1998  Jeffrey A Law  (law@cygnus.com)
8943         * config.table: Add line to set enable_shared in the Makefile
8944         as needed.
8946 Wed May 13 14:24:38 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8948         * cplus-dem.c (squangle_mop_up): Change return type to void.
8949         (internal_cplus_demangle): Remove unused parameter `options'.
8950         All callers changed.
8951         (cplus_demangle_opname): Remove function wide variable `int i' and
8952         replace with `size_t i' at each location where it is used.
8953         (cplus_mangle_opname): change type of `i' from int to size_t.
8955 Wed May 13 13:39:38 1998  Ian Lance Taylor  <ian@cygnus.com>
8957         * alloca-conf.h: Include config.h.  Check HAVE_ALLOCA_H rather
8958         than sparc or sun.
8959         * Makefile.in (argv.o): Depend upon config.h and alloca-conf.h.
8961 Fri May  8 00:23:51 1998  Ian Lance Taylor  <ian@cygnus.com>
8963         * configure.in: Set libiberty_topdir correctly when srcdir is
8964         "." and with_target_subdir is not set.
8965         * configure: Rebuild.
8967 Thu May  7 13:01:44 1998  Ian Lance Taylor  <ian@cygnus.com>
8969         * configure.in: Add *-*-mingw32* case.
8970         * configure: Rebuild.
8972 Wed May  6 11:33:51 1998  Ian Lance Taylor  <ian@cygnus.com>
8974         * config.table: Never use a PIC file for *-*-cygwin32*.
8976         * Makefile.in (config.status): Depend upon config.table.
8978         * configure.in: On a cygwin32 host, always compile random, and
8979         don't test for sys_siglist, strsignal, or psignal.
8980         * configure: Rebuild.
8982         * clock.c: Check HAVE_SYS_PARAM_H rather than NO_SYS_PARAM_H.
8983         * getcwd.c: Likewise.
8984         * getpagesize.c: Likewise.
8985         * getruntime.c: Likewise.
8987 Tue May  5 18:08:32 1998  Ian Lance Taylor  <ian@cygnus.com>
8989         Use autoconf tests rather than the old dummy.c test:
8990         * configure.in: Add AC_ARG_WITH calls for --with-target-subdir and
8991         --with-newlib.  Add AC_CONFIG_HEADER.  Use AC_REPLACE_FUNCS for
8992         most functions.  Add special cases to handle newlib and VxWorks.
8993         Remove target_makefile_frag.  Create stamp-h in AC_OUTPUT if
8994         CONFIG_HEADERS is set.  Only call config-ml.in in AC_OUTPUT if
8995         CONFIG_FILES is set; set ac_file before calling it.
8996         * config.table (arm-*-riscix*, *-*-cygwin32): Remove.
8997         (*-*-hpux*, *-*-hiux*, *-*-irix4*, *-*-solaris2*): Remove.
8998         (*-*-sysv4*, *-*-go32, *-*-vxworks5*, *-*-vxworks): Remove
8999         (i[3456]-*-mingw32*): Remove.
9000         * Makefile.in (ERRORS_CC, CONFIG_H, NEEDED_LIST): Remove.
9001         (LIBOBJS): New variable.
9002         (HOST_OFILES, DO_ALSO, STAGESTUFF): Remove.
9003         (all): Depend upon needed-list.  Don't check RULE1.
9004         (@target_makefile_frag@): Remove.
9005         (COMPILE.c): Include @DEFS@.
9006         (HFILES): Add alloca-conf.h.
9007         (REQUIRED_OFILES): Remove basename.o.
9008         ($(TARGETLIB)): New target.
9009         (stamp-needed, lneeded-list, needed.awk, stamp-config): Remove.
9010         (lconfig.h, needed2.awk, dummy.o, errors): Remove.
9011         (needed-list, config.h): Rewrite.
9012         (RULE1, $(RULE1), RULE2, $(RULE2)): Remove.
9013         (.always.): Remove.
9014         (Makefile): Set CONFIG_FILES and CONFIG_HEADERS.
9015         (stamp-h): New target.
9016         (atexit.o, clock.o, getcwd.o, getpagesize.o): New targets.
9017         (basename.o): Don't depend upon config.h.
9018         (getruntime.o): Depend upon config.h.
9019         * atexit.c: Include config.h.  Check HAVE_ON_EXIT rather than
9020         NEED_on_exit.
9021         * basename.c: Don't include config.h.  Don't check NEED_basename.
9022         * clock.c: Include config.h.
9023         * getcwd.c: Likewise.
9024         * getpagesize.c: Likewise.
9025         * getruntime.c: Likewise.  Fix checks which set HAVE_GETRUSAGE and
9026         HAVE_TIMES.
9027         * strerror.c: Change uses of NEED_sys_errlist to
9028         HAVE_SYS_ERRLIST.  Likewise for NEED_strerror and HAVE_STRERROR.
9029         * strsignal.c: Likewise for NEED_sys_siglist and HAVE_SYS_SIGLIST,
9030         and for NEED_strsignal and HAVE_STRSIGNAL and for NEED_psignal and
9031         HAVE_PSIGNAL.
9032         * acconfig.h: New file.
9033         * dummy.c: Remove.
9034         * functions.def: Remove.
9035         * config/mh-cxux7 (HDEFINES): Remove -DHAVE_SYSCONF.
9036         * config/mh-windows (HDEFINES): Remove.
9037         * config/mh-cygwin32: Remove.
9038         * config/mh-go32: Remove.
9039         * config/mh-irix4: Remove.
9040         * config/mh-riscix: Remove.
9041         * config/mh-sysv4: Remove.
9042         * config/mt-mingw32: Remove.
9043         * config/mt-vxworks5: Remove.
9044         * config.in: New file, generated using autoheader.
9045         * configure: Rebuild.
9047 Mon May  4 13:00:28 1998  Ian Lance Taylor  <ian@cygnus.com>
9049         * configure.in: Rewrite to use autoconf.
9050         * configure: Generate using autoconf.
9051         * config/mh-a68bsd: Remove.
9052         * config/mh-apollo68: Remove.
9053         * config/mh-hpbsd: Remove.
9054         * config/mh-ncr3000: Remove.
9055         * config/mh-sysv: Remove.
9056         * config/mh-aix (RANLIB, INSTALL): Don't define.
9057         * config/mh-cxux7 (RANLIB, INSTALL): Don't define.
9058         * config/mh-irix4 (CC, RANLIB, INSTALL): Don't define.
9059         * config/mh-sysv4 (RANLIB, INSTALL): Don't define.
9060         * config.table: Change config_shell to CONFIG_SHELL, and use
9061         libiberty_topdir to find move-if-change.
9062         (m68k-apollo-bsd*, m68k-apollo-sysv*): Remove.
9063         (i[3456]86-ncr-sysv4*, *-*-dgux*, hppa*-hp-bsd*): Remove.
9064         (*-*-irix*, *-*-m88kbcs*, *-*-sysv*): Remove.
9065         * Makefile.in (srcdir): Set to @srcdir@.
9066         (VPATH): Likewise.
9067         (prefix, exec_prefix, bindir, libdir): Set to autoconf variables.
9068         (SHELL, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Likewise.
9069         (CC, CFLAGS, RANLIB)): Likewise.
9070         (datadir, man*dir, infodir, includedir, MAKEINFO): Remove.
9071         (target_makefile_frag, host_makefile_frag): Add substitutions.
9072         (INSTALL_DEST): Set to @INSTALL_DEST@.
9073         (Makefile): Depend upon config.status.  Don't depend upon
9074         $(host_makefile_frag) or $(target_makefile_frag).
9075         (config.status): New target.
9077 Sun May  3 17:58:49 1998  Ian Lance Taylor  <ian@cygnus.com>
9079         * config/mt-sunos4: Remove.  Should be handled by --with-headers
9080         and --with-libraries options at top level.
9081         * config.table: Never use mt-sunos4.
9083         * alloca-conf.h: New file, combining alloca-norm.h and
9084         alloca-botch.h.
9085         * alloca-norm.h: Remove.
9086         * alloca-botch.h: Remove.
9087         * configure.in: Set shell variables files and links to empty.
9088         * config.table: Don't set shell variable files.
9089         * configure.bat: Don't create alloca-conf.h.
9090         * makefile.vms: Likewise.
9091         * mpw-config.in: Likewise.
9092         * vmsbuild.com: Likewise.
9094 Fri May  1 11:41:42 1998  Ian Lance Taylor  <ian@cygnus.com>
9096         * Makefile.in ($(HOST_OFILES) $(REQUIRED_OFILES)): Remove old
9097         target depending upon config.h.
9098         (alloca.o): Add target depending upon config.h
9099         (basename.o, choose-temp.o, fnmatch.o): Likewise.
9100         (getopt.o, getopt1.o, pexecute.o, strerror.o): Likewise.
9101         (strsignal.o, xstrerror.o): Likewise.
9103 Fri May  1 04:26:25 1998  Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9105         * cplus-dem.c (cplus_demangle_opname):  Initialize work.
9107 Mon Apr 27 15:53:30 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
9109         * cplus-dem.c (demangle_qualified): Replace missing else.
9111 Sun Apr 26 15:38:50 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
9113         * cplus-dem.c (gnu_special): Fix off-by-one bug when checking the
9114         length in the name of a virtual table.
9116 Wed Apr 22 10:53:49 EDT 1998 Andrew MacLeod  <amacleod@cygnus.com>
9118         * cplus-dem.c (struct work stuff): Add field for B and K mangle codes.
9119         (cplus_demangle_opname): Call mop_up_squangle.
9120         (cplus_demangle): Initialize squangle info, then call
9121         internal_cplus_demangle. (Most code moved there as well)
9122         (internal_cplus_demangle): New function, performs most of what use
9123         to be done in cplus_demangle, but is only called with this file.
9124         (squangle_mop_up): New function to clean up B and K code data.
9125         (mop_up): set pointers to NULL after freeing.
9126         (demangle_signature, demangle_template, demangle_class): Add
9127         switch elements to handle K and B codes.
9128         (demangle_prefix, gnu_special, demangle_qualified): Add
9129         code to handle K and B codes.
9130         (do_type, demangle_fund_type): Handle B and K codes.
9131         (remember_Ktype): New function to store K info.
9132         (register_Btype, remember_Btype): New functions for B codes.
9133         (forget_B_and_K_types): New function to destroy B and K info.
9135 Fri Apr 10 01:49:10 1998  Jeffrey A Law  (law@cygnus.com)
9137         * COPYING.LIB, choose-temp.c, cplus-dem.c: Sync with egcs & gcc.
9139 Thu Mar  5 09:23:28 1998  Manfred Hollstein  <manfred@s-direktnet.de>
9141         * config.table: Make locating frag files failsafe even for the
9142         special case if configuring and building in srcdir.
9144 Mon Feb 23 14:33:15 1998  Ian Lance Taylor  <ian@cygnus.com>
9146         * choose-temp.c: Fix handling of sys/file.h to work in libiberty.
9148 Sun Feb 22 18:03:23 1998  Jeffrey A Law  (law@cygnus.com)
9150         * choose-temp.c: Sync with copy in gcc.
9152 Thu Feb 12 16:29:49 1998  Ian Lance Taylor  <ian@cygnus.com>
9154         * getopt.c: Update to latest FSF version.
9155         * getopt1.c: Likewise.
9157 Tue Feb 10 16:58:33 1998  Stan Shebs  <shebs@andros.cygnus.com>
9159         * cplus-dem.c (gnu_special): Don't get confused by .<digits>
9160         strings that are not actually lengths.
9162 Fri Feb  6 01:35:17 1998  Manfred Hollstein  <manfred@s-direktnet.de>
9164         * Makefile.in (FLAGS_TO_PASS): Don't pass PICFLAG.
9165         (.c.o): Check value of enable_shared, not PICFLAG.
9166         (stamp-picdir): Dito.
9168 Thu Feb  5 18:48:56 1998  Geoffrey Noer  <noer@cygnus.com>
9170         * config/mh-cygwin32: remove vasprintf.o from EXTRA_OFILES
9171         since it gets built automatically
9173 Sun Feb  1 02:52:32 1998  Mike Stump  <mrs@wrs.com>
9175         * config.table (vxworks configs): Default to VxWorks 5.x, as that is
9176         the currently shipping OS.
9178 Tue Jan 27 16:08:20 1998  Pat Rankin  <rankin@eql.caltech.edu>
9180         * vmsbuild.com [REQUIRE_OFILES]: Synchronized with Makefile.in:
9181         Add fnmatch.o and objalloc.o; remove vasprintf.o.
9182         [config.h]: Define NEED_strsignal.
9184 Mon Jan 19 12:20:01 1998  Ian Lance Taylor  <ian@cygnus.com>
9186         * functions.def: Correct argument types for strerror and
9187         strsignal.  Reported by Alex Gutman <agutman@emc.com>.
9189 Sun Jan 18 15:57:28 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
9191         * vasprintf.c (int_vasprintf): Increase buffer size for float/double
9192         values.
9194 Sat Jan 17 22:28:38 1998  Mumit Khan  <khan@xraylith.wisc.edu>
9195                           J.J. VanderHeijden <J.J.vanderHeijden@student.utwente.nl>
9197         Add mingw32 support.
9198         * pexecute.c (pexecute): New function for mingw32. Supports pipes.
9199         (pwait): New function for mingw32.
9201         * config.table (i[3456]86-*-mingw32*): Support for i386-mingw32.
9202         * config/mt-mingw32: New file.
9203         * xmalloc.c (first_break): Not used for mingw32.
9204         (xmalloc_set_program_name): Don't use sbrk on mingw32.
9205         (xmalloc): Likewise.
9206         (xrealloc): Likewise.
9208 Sat Jan 17 22:28:05 1998  Jeffrey A Law  (law@cygnus.com)
9210         * choose-temp.c: Sync with gcc version.
9212 Tue Jan 13 18:34:39 1998  Jim Wilson  <wilson@cygnus.com>
9214         * Makefile.in (install_to_libdir, install_to_tooldir): Add MULTISUBDIR
9215         to all filenames in libdir and tooldir.
9216         (distclean): Do MULTICLEAN before deleting Makefile.
9217         (stamp-needed, stamp-config): Add MULTISRCTOP to
9218         pathname for move-if-change.
9220 Thu Dec  4 17:25:19 1997  Jeffrey A Law  (law@cygnus.com)
9222         * strsignal.c (sys_nsig): Try NSIG and _NSIG.
9224 Wed Nov 19 13:37:06 1997  Michael Meissner  <meissner@cygnus.com>
9226         * alloca-norm.h (alloca, GCC case): Don't redefine alloca if it
9227         was already defined previously.
9229 Mon Nov 10 12:48:03 1997  Philippe De Muyter  <phdm@macqel.be>
9231         * Makefile.in (INSTALL): Use ../install-sh, not install.
9233 Tue Oct 28 23:41:15 1997  Judy Goldberg  <jodyg@idt.net>
9235         * Makefile.in (CFILES): Add pexecute.c.
9237 Wed Oct 15 19:13:48 1997  Ian Lance Taylor  <ian@cygnus.com>
9239         * asprintf.c: Consistently use either stdarg or varargs.
9241 Tue Oct 14 12:01:00 1997  Mark Mitchell  <mmitchell@usa.net>
9243         * cplus-dem.c (demangle_signature): Don't look for return types on
9244         constructors.  Handle member template constructors.
9246 Fri Oct  3 17:53:30 1997  Ian Lance Taylor  <ian@cygnus.com>
9248         * README: Fix configuration instructions.
9250 Mon Sep 29 12:28:41 1997  Ian Lance Taylor  <ian@cygnus.com>
9252         * pexecute.c: Update to current version from /gd/gnu/lib:
9254         Mon Sep 29 12:27:59 1997  Ian Lance Taylor  <ian@cygnus.com>
9256         * pexecute.c: Use spawn if __CYGWIN32__.
9258         1997-08-08  Paul Eggert  <eggert@twinsun.com>
9260         * pexecute.c: Include "config.h" first, as per autoconf manual.
9262         Fri Jun 27 15:20:29 1997  Scott Christley <scottc@net-community.com>
9264         * pexecute.c (fix_argv): New function.
9265         (pexecute): Win32 but not Cygwin32 needs its arguments fixed.
9266         Add underscore to cwait function call.
9268 Sun Sep 28 12:00:52 1997  Mark Mitchell  <mmitchell@usa.net>
9270         * cplus-dem.c (demangle_template): Add new parameter.  Handle new
9271         template-function mangling.
9272         (consume_count_with_underscores): New function.
9273         (demangle_signature): Handle new name-mangling scheme.
9275 Wed Sep 24 00:31:59 1997  Felix Lee  <flee@yin.cygnus.com>
9277         * asprintf.c: stdarg.h when ALMOST_STDC
9278         * config/mh-windows (EXTRA_OFILES): add asprintf.o and
9279         strncasecmp.o.
9281 Thu Aug 28 14:27:15 1997  Andrew Cagney  <cagney@b1.cygnus.com>
9283         * vasprintf.c (vasprintf): Allow for _BSD_VA_LIST_.
9285         * config.table: Add case for FreeBSD 2.1 and 2.2, needs mh-fbsd21.
9287         * config/mh-fbsd21 (EXTRA_OFILES): Force vasprintf.o
9289 Wed Sep 10 12:43:10 1997  Jason Merrill  <jason@yorick.cygnus.com>
9291         * cplus-dem.c (demangle_fund_type): Change "complex" to "__complex".
9293 Fri Sep  5 16:34:42 1997  Andrew Cagney  <cagney@b1.cygnus.com>
9295         * asprintf.c (asprintf): New file.
9296         * Makefile.in (CFILES): Add asprintf.c
9297         * functions.def: Ditto.
9299 Thu Aug 28 18:53:34 1997  Andrew Cagney  <cagney@b1.cygnus.com>
9301         * argv.c (dupargv): New function, duplicate an argument vector.
9303 Tue Aug 19 20:28:45 1997  Geoffrey Noer  <noer@cygnus.com>
9305         * config/mh-cygwin32: also build random.o
9307 Tue Aug 19 17:10:56 1997  Jason Merrill  <jason@yorick.cygnus.com>
9309         * cplus-dem.c: Add 'extern' to prepends_underscore.
9311 Wed Jul 30 11:42:19 1997  Per Bothner  <bothner@cygnus.com>
9313         * cplus-dem.c: Various changes to produce Java output when passed
9314         DMGL_JAVA.  Thus "::" becomes "." and "JArray<Foo>" becomes "Foo[]".
9315         (main): Support --java and -j flags to set DMGL_JAVA.
9317 Tue Jul 22 19:05:23 1997  Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
9319         * config/mh-go32 (CC, AR, RANLIB): Don't define.
9321 Tue Jul 22 17:49:54 1997  Ian Lance Taylor  <ian@cygnus.com>
9323         * Makefile.in (REQUIRED_OFILES): Add pexecute.o.
9324         (pexecute.o): New target.
9326         * Makefile.in (stamp-needed): New target, replacing needed-list.
9327         (needed-list): Just depend upon stamp-needed.
9328         (stamp-config): New target, replacing config.h.
9329         (config.h): Just depend upon stamp-config.
9330         (mostlyclean): Remove stamp-*.
9332 Thu Jun 12 11:00:18 1997  Angela Marie Thomas (angela@cygnus.com)
9334         * Makefile.in (FLAGS_TO_PASS): pass INSTALL, INSTALL_PROGRAM and
9335         INSTALL_DATA for multilibbed installs
9337 Tue Jun  3 13:21:05 1997  Doug Evans  <dje@canuck.cygnus.com>
9339         Tue Dec 10 09:44:57 1996  Paul Eggert  <eggert@twinsun.com>
9341         * choose-temp.c (choose_temp_base): Don't dump core if TMPDIR is empty.
9343         * choose-temp.c (try): Insist that temp dir be searchable.
9345         Wed Oct 23 17:36:39 1996  Doug Rupp  (rupp@gnat.com)
9347         * choose-temp.c (choose_temp_base): On VMS, use proper syntax
9348         for current directory.
9350         Sat Feb 15 19:03:48 1997  Geoffrey Noer  (noer@cygnus.com)
9352         * pexecute.c: Remove special cases for cygwin32.
9353         (pwait): Remove local definition of `pid'.
9355         Tue Nov 12 18:26:15 1996  Doug Rupp  (rupp@gnat.com)
9357         * pexecute.c (vfork): Supply new definition for VMS.
9358         (pwait): Use waitpid instead of wait for VMS.
9360 Tue May 20 14:02:20 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
9362         * cplus-dem.c (do_type): Handle `J'.
9363         (demangle_fund_type): Print "complex" for it.
9365 Wed Apr 30 12:15:45 1997  Jason Merrill  <jason@yorick.cygnus.com>
9367         * configure.in: Don't turn on multilib here.
9369 Mon Apr 28 19:04:31 1997  Michael Snyder  <msnyder@cleaver.cygnus.com>
9371         * obstack.c: move _obstack_memory_used outside of ifdef.  Cannot be
9372         elided; needed by gdb and not present in libc.
9374 Thu Apr 24 19:33:47 1997  Ian Lance Taylor  <ian@cygnus.com>
9376         * Makefile.in (clean): Remove tmpmulti.out.
9378 Tue Apr 22 10:25:15 1997  Fred Fish  <fnf@cygnus.com>
9380         * floatformat.c (floatformat_ieee_double_littlebyte_bigword):
9381         Add new floatformat, mainly for ARM doubles.
9383 Mon Apr 14 12:11:16 1997  Ian Lance Taylor  <ian@cygnus.com>
9385         * config.table: Use ${config_shell} with ${moveifchange}.  From
9386         Thomas Graichen <graichen@rzpd.de>.
9388 Fri Apr  4 03:09:24 1997  Ulrich Drepper  <drepper@cygnus.com>
9390         * configure.in: Enable multilibing by default.
9391         Update multilib template to read config-ml.in.
9393 Tue Apr  1 16:26:39 1997  Klaus Kaempf  <kkaempf@progis.de>
9395         * makefile.vms: Add objalloc.
9397 Mon Mar 31 23:57:51 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>
9399         * cplus-dem.c (demangle_it): Add prototype declaration.
9400         (usage, fatal): Likewise.
9402         * xexit.c (_xexit_cleanup): Add prototype.
9404         * strerror.c (init_error_tables): Declare.
9406 Fri Mar 28 11:43:20 1997  H.J. Lu  <hjl@lucon.org>
9408         * functions.def: Add DEF of vasprintf, and DEFFUNC of strsignal.
9409         * strsignal.c: Only define strsignal if NEED_strsignal.
9410         * Makefile.in (REQUIRED_OFILES): Remove vasprintf.o.
9411         * configure.in: Add NEED_strsignal to xconfig.h.  Add vasprintf.o
9412         to xneeded-list.
9413         * config/mh-cygwin32 (HDEFINES): Add -DNEED_strsignal.
9414         (EXTRA_OFILES): Define to vasprintf.o.
9415         * config/mh-windows (HDEFINES): Add -DNEED_strsignal.
9416         (EXTRA_OFILES): Add vasprintf.o.
9417         * config/mt-vxworks5 (vxconfig.h): Define NEED_strsignal.
9418         (vxneeded-list): Add vasprintf.o.
9420 Thu Mar 20 17:02:09 1997  Ian Lance Taylor  <ian@cygnus.com>
9422         * objalloc.c: Include <stdio.h>.
9424 Mon Mar 17 19:23:11 1997  Ian Lance Taylor  <ian@cygnus.com>
9426         * objalloc.c: New file.
9427         * Makefile.in (CFILES): Add objalloc.c
9428         (REQUIRED_OFILES): Add objalloc.o.
9429         (objalloc.o): New target.
9431 Sat Mar 15 18:49:41 1997  Ian Lance Taylor  <ian@cygnus.com>
9433         * obstack.c: Update to current FSF version.
9435 Fri Mar 14 14:18:47 1997  Ian Lance Taylor  <ian@cygnus.com>
9437         * cplus-dem.c: Add prototypes for all static functions.
9438         (mystrstr): Make static.  Make arguments and result const.
9439         (cplus_match): Remove; not used.
9441 Tue Mar 11 14:20:31 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
9443         * cplus-dem.c (gnu_special): Call demangled_fund_type for other
9444         __t* symbols.
9446 Tue Mar 11 15:41:21 1997  H.J. Lu  <hjl@lucon.org>
9448         * spaces.c: Declare malloc and free properly.
9449         * strsignal.c (init_signal_tables): Add prototype.
9450         * xatexit.c (_xexit_cleanup): Add parameter declarations.
9452 Wed Feb 19 15:43:24 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
9454         * Makefile.in (lneeded-list): If alloca.o is needed, xexit.o is
9455         also required because of xmalloc.o.
9457 Fri Feb 14 13:43:38 1997  Ian Lance Taylor  <ian@cygnus.com>
9459         * strsignal.c: Unconditionally redefine sys_siglist around the
9460         inclusion of the system header files.
9462 Thu Feb 13 22:01:04 1997  Klaus Kaempf  <kkaempf@progis.de>
9464         * makefile.vms: Remove 8 bit characters.  Update to latest
9465         gcc release.
9467 Tue Feb  4 11:52:19 1997  Ian Lance Taylor  <ian@cygnus.com>
9469         * strsignal.c: Use NEED_sys_siglist instead of
9470         LOSING_SYS_SIGLIST.
9471         * config.table: Don't use mh-lynxos.
9472         * config/mh-lynxos: Remove.
9474 Thu Jan 16 14:51:03 1997  Bob Manson  <manson@charmed.cygnus.com>
9476         * cplus-dem.c: Fix indenting; make identical to the copy
9477         in GCC.
9478         (do_type, case 'M'): Check for a template as well as a class.
9480 Thu Dec 19 13:51:33 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
9482         * config/mt-vxworks5 (vxneeded-list): Remove sigsetmask.o, since
9483         vxworks 5.[0-3] all have sigsetmask in them; the one provided by
9484         libiberty is incorrect, as well.
9486 Mon Dec  2 15:03:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
9488         * alloca.c (alloca): When compiled with an ANSI/ISO compiler,
9489         alloca takes a size_t argument, not just unsigned.
9491 Mon Nov 18 15:42:08 1996  Jason Merrill  <jason@yorick.cygnus.com>
9493         * cplus-dem.c: Note that this file also lives in GCC.
9495 Mon Nov 18 15:19:00 1996  Dawn Perchik  <dawn@critters.cygnus.com>
9497         * alloca.c: Remove include of libiberty.h for hpux.
9498         * argv.c:  Replace defs from libiberty.h.
9499         * spaces.c: Put back externs from removed from libiberty.h.
9500         * vasprintf.c: Remove include of libiberty.h for hpux.
9502 Mon Nov 18 14:08:00 1996  Dawn Perchik  <dawn@critters.cygnus.com>
9504         * cplus-dem.c: Checking in again; last checkin filed due to sticky tag.
9506 Wed Nov 13 08:22:00 1996  Dawn Perchik  <dawn@critters.cygnus.com>
9508         * cplus-dem.c: Revert last two commits due to conflicts with
9509         hpux system headers.
9511 Wed Nov 13 08:22:00 1996  Dawn Perchik  <dawn@critters.cygnus.com>
9513         * alloca.c, argv.c, spaces.c, strcasecmp.c, vasprintf.c, vprintf.c:
9514         Revert last commit due to conflicts with hpux system headers.
9516 Wed Nov 13 10:36:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
9518         * cplus-dem.c (x{m,re}alloc): Make declarations compatibile with
9519         libiberty.h when compiled with a standard compiler.
9521 Tue Nov 12 16:31:00 1996  Dawn Perchik  <dawn@critters.cygnus.com>
9523         * alloca.c: Include libiberty.h for definition of xmalloc.
9524         Don't redefine NULL.
9525         * argv.c: Move prototypes to libiberty.h.
9526         * cplus-dem.c: Include libiberty.h for definition of xmalloc.
9527         Don't redefine NULL.
9528         Use casts to eliminate compiler warnings.
9529         * spaces.c: Remove prototypes for malloc and free which are
9530         already in libibrty.h.
9531         * strcasecmp.c: Use casts to eliminate compiler warnings.
9532         * vasprintf.c: Include libiberty.h for definition of malloc.
9533         Don't redefine NULL.
9534         * vprintf.c: Include stdarg.h if __STDC__.
9536 Fri Oct 11 15:42:12 1996  Stu Grossman  (grossman@critters.cygnus.com)
9538         * config/mh-windows:  Add strcasecmp.o to EXTRA_OFILES.
9540 Fri Oct 11 11:16:31 1996  Stan Shebs  <shebs@andros.cygnus.com>
9542         * mpw.c (mpwify_filename): Rewrite to simplify, and to handle
9543         upward components correctly.
9545 Tue Oct  8 08:55:34 1996  Stu Grossman  (grossman@critters.cygnus.com)
9547         * config.table, config/mh-windows:  Add support for building under
9548         MSVC (the Microsoft build environment).
9550 Mon Oct  7 10:50:27 1996  Ian Lance Taylor  <ian@cygnus.com>
9552         * fnmatch.c: Undef const if not __STDC__.
9554 Thu Oct  3 13:46:39 1996  Ian Lance Taylor  <ian@cygnus.com>
9556         * fnmatch.c: New file.
9557         * Makefile.in (CFILES): Add fnmatch.c.
9558         (REQUIRED_OFILES): Add fnmatch.o.
9559         (fnmatch.o): New target.
9561 Wed Sep 18 14:49:13 1996  Jason Merrill  <jason@yorick.cygnus.com>
9563         * cplus-dem.c (demangle_template): Fix handling of address args.
9564         (gnu_special): Handle type_info stuff.
9566 Fri Sep 13 17:52:55 1996  Stan Shebs  <shebs@andros.cygnus.com>
9568         * mpw.c (DebugPI): Make settable from the env var DEBUG_PATHNAMES.
9569         (mpwify_filename): Handle "::/" case.
9571 Thu Sep 12 13:30:40 1996  Geoffrey Noer  <noer@cygnus.com>
9573         * config/mh-cygwin32: new file (need -DNEED_basename and
9574                 -DNEED_sys_siglist for native NT rebuilding)
9575         * config.table (*-*-cygwin32): new entry
9576         * choose-temp.c: bring in sync with gcc (revert Aug 17 change)
9578 Thu Aug 29 16:48:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
9580         * config.table (i[345]86-*-*): Recognize i686 for pentium pro.
9582 Tue Aug 27 13:47:58 1996  Stan Shebs  <shebs@andros.cygnus.com>
9584         * pexecute.c (pexecute) [MPW]: Remove old bogus code that
9585         messed with arguments that included a '/', add escape chars
9586         to double quotes, remove const decl from arg that Mac
9587         compilers don't seem to like.
9589 Sat Aug 17 04:44:27 1996  Geoffrey Noer  <noer@cygnus.com>
9591         * pexecute.c: Update test for win32 (&& ! cygwin32).
9592         * choose-temp.c: fix WIN32 preprocessor defines
9594 Thu Aug 15 12:26:48 1996  Stan Shebs  <shebs@andros.cygnus.com>
9596         * mpw-make.sed: Add @DASH_C_FLAG@ and @SEGMENT_FLAG({Default})@
9597         to editing of default makefile rule.
9599 Sun Aug 11 21:03:27 1996  Stu Grossman  (grossman@critters.cygnus.com)
9601         * alloca-norm.h:  Include <malloc.h> if _WIN32.
9602         * argv.c:  Include non-prototyped decls for malloc and string
9603         functions if ! _WIN32 or if __GNUC__.
9605 Thu Aug  8 12:42:40 1996  Klaus Kaempf  <kkaempf@progis.de>
9607         * config.h-vms: New file.
9608         * makefile.vms: Use it.
9610 Wed Aug  7 17:16:12 1996  Stu Grossman  (grossman@critters.cygnus.com)
9612         * getopt.c (_getopt_internal):  If argc is 0, just return (before
9613         we reference *argv and segfault).
9615 Mon Aug  5 01:29:08 1996  Jason Merrill  <jason@yorick.cygnus.com>
9617         * Makefile.in (distclean): Add multilib.out.
9619 Thu Jul 18 17:40:55 1996  Ian Lance Taylor  <ian@cygnus.com>
9621         * alloca-norm.h: Change #ifdef sparc to #if defined (sparc) &&
9622         defined (sun).  From Andrew Gierth <ANDREWG@microlise.co.uk>.
9624 Mon Jul  1 13:40:44 1996  Ken Raeburn  <raeburn@cygnus.com>
9626         Tue May 28 15:29:03 1996  Pat Rankin  <rankin@eql.caltech.edu>
9628         * vmsbuild.com (REQUIRD_OFILES): Add choose-temp.o and xstrdup.o.
9630         Thu Jan 25 18:20:04 1996  Pat Rankin  <rankin@eql.caltech.edu>
9632         * vmsbuild.com: Changes to handle DEFFUNC(on_exit).
9633         (do_ofiles): Allow nonexistent source file in pass 3.
9634         (chk_deffunc): New routine.
9636 Tue Jun 25 19:24:43 1996  Doug Evans  <dje@canuck.cygnus.com>
9638         * pexecute.c (PEXECUTE_VERBOSE): Define.
9639         (MPW pexecute): Check flags & PEXECUTE_VERBOSE instead of verbose_flag.
9641 Tue Jun 25 23:11:48 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
9643         * Makefile.in (docdir): Removed.
9645 Tue Jun 25 23:01:07 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
9647         * Makefile.in (oldincludedir): Removed.
9649 Tue Jun 25 22:50:07 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
9651         * Makefile.in (datadir): Set to $(prefix)/share.
9653 Thu Jun 20 21:17:52 1996  Ian Lance Taylor  <ian@cygnus.com>
9655         * cplus-dem.c (demangle_arm_pt): Reindent.  Avoid endless loop by
9656         checking for errors from do_type.
9658 Tue Jun 18 14:36:19 1996  Klaus Kaempf  <kkaempf@progis.de>
9660         * makefile.vms: New file.
9661         * xmalloc.c: If VMS, include <stdlib.h> and <unixlib.h> rather
9662         than declaring malloc, realloc, and sbrk.
9664 Mon Jun 10 13:17:17 1996  Doug Evans  <dje@canuck.cygnus.com>
9666         * pexecute.c: New file.
9668 Wed Jun  5 16:57:45 1996  Richard Henderson  <rth@tamu.edu>
9670         * xmalloc.c: Declare sbrk.
9672 Sat May  4 05:08:45 1996  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
9674         * alloca-norm.h:  Add SPARCworks cc compatible __builtin_alloca
9675         declaration.
9677 Mon Apr 22 18:41:49 1996  Ian Lance Taylor  <ian@cygnus.com>
9679         * xstrerror.c: Include <stdio.h>.
9681 Sun Apr 21 11:55:12 1996  Doug Evans  <dje@canuck.cygnus.com>
9683         * Makefile.in (CFILES): Add atexit.c.
9685 Sun Apr 21 09:50:09 1996  Stephen L Moshier  (moshier@world.std.com)
9687         * choose-temp.c: Include sys/types.h before sys/file.h for sco3.2v5.
9689 Wed Apr 17 11:17:55 1996  Doug Evans  <dje@canuck.cygnus.com>
9691         * choose-temp.c: Don't #include sys/file.h ifdef NO_SYS_FILE_H.
9692         #include <stdio.h>
9693         * config/mt-vxworks5 (HDEFINES): Define NO_SYS_FILE_H.
9695 Tue Apr 16 11:27:16 1996  Jeffrey A Law  (law@cygnus.com)
9697         * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
9698         Reverts Feb 8, 1995 change.
9700 Mon Apr 15 12:53:26 1996  Doug Evans  <dje@canuck.cygnus.com>
9702         * choose-temp.c: New file.
9703         * Makefile.in (CFILES): Add choose-temp.c.
9704         (REQUIRED_OFILES): Add choose-temp.o.
9706 Sat Apr 13 14:19:30 1996  Stu Grossman  (grossman@critters.cygnus.com)
9708         * floatformat.c (floatformat_to_double):  Don't bias exponent when
9709         handling zero's, denorms or NaNs.
9711 Thu Apr 11 13:36:56 1996  Stu Grossman  (grossman@critters.cygnus.com)
9713         * floatformat.c (floatformat_to_double):  Fix bugs with handling
9714         numbers with fractions < 32 bits.
9716 Mon Apr  8 14:48:34 1996  Ian Lance Taylor  <ian@cygnus.com>
9718         * config.table: Permit --enable-shared to specify a list of
9719         directories.
9721 Tue Mar 19 22:02:07 1996  Jason Merrill  <jason@yorick.cygnus.com>
9723         * cplus-dem.c (demangle_template): Fix for non-mangled pointer
9724         arguments.
9726 Fri Mar  8 17:24:18 1996  Ian Lance Taylor  <ian@cygnus.com>
9728         * configure.in: If srcdir is `.' and with_target_subdir is not
9729         `.', then set MULTISRCTOP before calling config-ml.in.
9731 Thu Mar  7 13:37:10 1996  Stan Shebs  <shebs@andros.cygnus.com>
9733         * mpw.c (mpw_open): Add debugging output option.
9735 Wed Mar  6 17:36:03 1996  Jason Merrill  <jason@yorick.cygnus.com>
9737         * cplus-dem.c (demangle_template): Fix for address-of-extern arguments.
9739 Tue Feb 27 12:00:50 1996  Raymond Jou  <rjou@mexican.cygnus.com>
9741         * mpw.c (mpwify_filename): Change 6 to 5 in
9742         strncmp (unixname, "/tmp/", 5).
9744 Tue Feb 20 10:55:53 1996  Ian Lance Taylor  <ian@cygnus.com>
9746         * cplus-dem.c (demangle_template): Initialize is_bool.  Correctly
9747         handle 0 as a pointer value parameter.
9749 Mon Feb  5 16:41:44 1996  Ian Lance Taylor  <ian@cygnus.com>
9751         * Makefile.in (all): Depend upon required-list.
9752         (required-list): New target.
9753         (clean): Remove required-list.
9755 Wed Jan 31 10:19:41 1996  Steve Chamberlain  <sac@slash.cygnus.com>
9757         * win32.c: Deleted.
9758         * config.table (i386-*-win32): Deleted.
9759         * config/mh-i386win32: Deleted.
9761 Thu Jan 18 11:34:17 1996  Ian Lance Taylor  <ian@cygnus.com>
9763         * cplus-dem.c (cplus_demangle_opname): Change opname parameter to
9764         const char *.
9765         (cplus_mangle_opname): Change return type and opname parameter to
9766         const char *.  Don't cast return value.
9768 Tue Jan 16 12:13:11 1996  Stan Shebs  <shebs@andros.cygnus.com>
9770         * mpw.c: Include Timer.h, in order to get m68k Microseconds trap
9771         definition.
9773 Wed Jan  3 13:15:04 1996  Fred Fish  <fnf@cygnus.com>
9775         * obstack.c: Update copyright to 1996.
9776         (_obstack_memory_used): Define new function.  Called via
9777         obstack_memory_used macro.
9779 Thu Dec 28 11:39:40 1995  Ian Lance Taylor  <ian@cygnus.com>
9781         * xstrdup.c: New file.
9782         * Makefile.in (CFILES): Add xstrdup.c.
9783         (REQUIRED_OFILES): Add xstrdup.o.
9784         (xstrdup.o): New target.
9786 Mon Dec 11 18:18:52 1995  Mike Stump  <mrs@cygnus.com>
9788         * atexit.c: New stub to provide atexit on systems that have
9789         on_exit, like SunOS 4.1.x systems.
9790         * functions.def (on_exit, atexit): Ditto.
9792 Mon Dec 11 15:42:14 1995  Stan Shebs  <shebs@andros.cygnus.com>
9794         * mpw.c (mpw_abort): Remove decl.
9795         (mpw_access): Move debugging printf.
9797 Sat Dec  2 01:25:23 1995  Ian Lance Taylor  <ian@cygnus.com>
9799         * config.table: Consistently use ${host} rather than ${xhost} or
9800         ${target}.
9801         * configure.in: Don't bother to set ${xhost} before calling
9802         config.table.
9804 Tue Nov 28 14:16:57 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
9806         * Makefile.in (.c.o): Use test instead of the left bracket, to
9807         avoid problems with some versions of make.
9809 Tue Nov 28 11:45:17 1995  Stan Shebs  <shebs@andros.cygnus.com>
9811         * mpw-make.sed: Fix INCDIR edit to work with Nov 14 change.
9813 Tue Nov 21 11:26:34 1995  Fred Fish  <fnf@rtl.cygnus.com>
9815         * config/mh-hpux: Remove.  It was only used to define EXTRA_OFILES,
9816         which was set to just alloca.o, which is now automatically marked
9817         as needed by the autoconfiguration process.
9819 Tue Nov 21 14:15:06 1995  Ian Lance Taylor  <ian@cygnus.com>
9821         * config.table: Check ${with_cross_host} rather than comparing
9822         ${host} and ${target}.
9824 Thu Nov 16 14:34:42 1995  Ian Lance Taylor  <ian@cygnus.com>
9826         * configure.in: If with_target_subdir is empty, set xhost to
9827         ${host} rather than ${target} before calling config.table.
9829 Tue Nov 14 01:38:30 1995  Doug Evans  <dje@canuck.cygnus.com>
9831         * Makefile.in (MULTITOP): Deleted.
9832         (MULTISRCTOP, MULTIBUILDTOP): New.
9833         (FLAGS_TO_PASS): Delete INCDIR.
9834         (INCDIR): Add $(MULTISRCTOP).
9835         (install_to_libdir): Add $(MULTISUBDIR).  Call $(MULTIDO).
9836         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
9837         instead of cfg-ml-pos.in.
9838         (cross-compile check): Change to test for with_target_subdir.
9839         (EXTRA_LINKS): Delete.
9841 Sun Nov 12 12:13:04 1995  Stan Shebs  <shebs@andros.cygnus.com>
9843         * mpw-make.sed: Add getpagesize.c.o to needed-list.
9844         * mpw.c [USE_MW_HEADERS]: Conditionalize compiling of
9845         functions that are supplied by Metrowerks libraries.
9846         (fstat): Clean up descriptor->pointer conversion code.
9847         (InstallConsole, etc): Empty definitions, for when linking
9848         with SIOUX.
9850 Sun Nov  5 19:25:27 1995  Per Bothner  <bothner@kalessin.cygnus.com>
9852         * Makefile.in (FLAGS_TO_PASS):  Also pass PICFLAGS.
9853         (.c.o):  Stylistic change.
9855 Thu Nov  2 12:06:29 1995  Ian Lance Taylor  <ian@cygnus.com>
9857         * strtol.c, strtoul.c: Don't include <stdlib.h>.  From
9858         phdm@info.ucl.ac.be (Philippe De Muyter).
9860 Wed Nov  1 11:59:36 1995  Ian Lance Taylor  <ian@cygnus.com>
9862         * configure.in: Correct sed call.
9864 Mon Oct 30 13:03:45 1995  Per Bothner  <bothner@kalessin.cygnus.com>
9866         * configure.in:  Clean up / simplify for native.
9868         * configure.in:  Merge in stuff from ../xiberty/configure.in.
9869         * Makefile.in (CC):  Add definition (so it can be overrridden
9870         by ../configure).
9872 Tue Oct 24 17:57:27 1995  Stan Shebs  <shebs@andros.cygnus.com>
9874         * mpw-make.sed: Leave strerror.c.o in standard list of functions.
9875         * mpw.c (R_OK, ENOENT, EACCESS, ENOSYS): Remove.
9876         (link): Remove useless definition with error return.
9877         (last_microseconds, warn_if_spin_delay, record_for_spin_delay):
9878         Use UnsignedWide type for microsecond counts.
9880 Thu Oct 19 10:52:07 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
9882         * memcmp.c (memcmp): Argument types are const void *, not void
9883         *const.
9885         * strncasecmp.c (strncasecmp): Include ansidecl.h/stdarg.h, not
9886         sys/types.h.
9887         * strcasecmp.c (strcasecmp): Ditto.
9889 Tue Oct 10 11:03:24 1995  Fred Fish  <fnf@cygnus.com>
9891         * Makefile.in (BISON):  Remove macro.
9893 Tue Sep 26 15:06:46 1995  Stan Shebs  <shebs@andros.cygnus.com>
9895         * Makefile.in (HFILES): Add default empty definition.
9896         * mpw-config.in (config.h): Only update if changed.
9897         * mpw-make.in: Remove.
9898         * mpw-make.sed: New file, edits Makefile.in into MPW makefile.
9899         * mpw.c: Remove semi-clone of strerror code.
9900         (sys_nerr, sys_errlist): Define here.
9901         (Microseconds): Only define as A-line trap if m68k Mac.
9903 Wed Sep 20 12:53:32 1995  Ian Lance Taylor  <ian@cygnus.com>
9905         * Makefile.in (maintainer-clean): New synonym for distclean.
9907 Mon Aug 28 19:47:52 1995  Per Bothner  <bothner@kalessin.cygnus.com>
9909         * config.table:  For host, generalize rs6000-ibm-aix*
9910         to *-ibm-aix* so we also include powerpc.
9912 Tue Aug 22 03:18:05 1995  Ken Raeburn  <raeburn@kr-laptop.cygnus.com>
9914         Fri Jun 16 18:35:40 1995  Pat Rankin  (rankin@eql.caltech.edu)
9916         * xstrerror.c: New file.
9917         * Makefile.in, vmsbuild.com: Compile it.
9919 Mon Jul 31 12:16:32 1995  steve chamberlain  <sac@slash.cygnus.com>
9921         * config.table (i386-*-win32): New.
9923 Fri Jul 21 11:35:52 1995  Doug Evans  <dje@canuck.cygnus.com>
9925         * Makefile.in (MULTITOP): New variable.
9926         (MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): Likewise.
9927         (all): Add multilib support.
9928         (install_to_tooldir, *clean): Likewise.
9930 Mon Jul 10 11:47:27 1995  Ken Raeburn  <raeburn@cygnus.com>
9932         * makefile.dos (OBJS): Add hex.o.  From DJ Delorie.
9934 Fri Jun 30 17:28:59 1995  Pat Rankin  (rankin@eql.caltech.edu)
9936         * vmsbuild.com:  create "new-lib.olb", build libiberty under that
9937         name, and then make it become "liberty.olb" when done, so that an
9938         incomplete build attempt never leaves behind something which looks
9939         like a complete library.
9941 Thu Jun 29 00:22:02 1995  Steve Chamberlain  <sac@slash.cygnus.com>
9943         * config/mh-i386pe: New file for PE hosts.
9944         * config.table: Understand PE hosts.
9946 Wed Jun 28 19:13:23 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
9948         * cplus-dem.c: Update from gcc.
9950         * argv.c, dummy.c: If __STDC__, #include "alloca-conf.h" after
9951         <stddef.h>.
9952         * alloca-norm.h: If __STDC__, declare alloca with its parameter.
9954 Thu Jun 22 18:57:47 1995  Stan Shebs  <shebs@andros.cygnus.com>
9956         * mpw-make.in (ALL_CFLAGS): Define NEED_basename.
9957         * mpw.c: Only test DebugPI once whenever printing debug info.
9958         (mpwify_filename): If filename is /tmp/foo, change it into :_foo,
9959         also fix to not write on input filename buffer.
9960         (mpw_access): Use stat() instead of open(), works for directories
9961         as well as files.
9963 Mon Jun 19 00:33:22 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
9965         * Makefile.in: Massage broken shells that require 'else true'.
9967 Sat Jun 17 23:21:58 1995  Fred Fish  <fnf@cygnus.com>
9969         * alloca-norm.h: Declare alloca as type "PTR" to match functions.def.
9970         Declare __builtin_alloca in the sparc case, as argv.c did.
9971         * argv.c: Replace inline version of alloca-norm.h at start of file with
9972         a #include of alloca-conf.h.  Precede it with an include of ansidecl.h
9973         because alloca-norm.h needs to declare alloca as "PTR".
9975 Mon Jun 12 14:24:26 1995  Steve Chamberlain  <sac@slash.cygnus.com>
9977         * win32.c: New file.
9979 Fri Jun  9 15:16:14 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
9981         * dummy.c: #include "alloca-conf.h".
9983 Wed Jun  7 11:46:23 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
9985         * Makefile.in (mostlyclean): Remove stamp-picdir.
9986         (clean): Don't.
9988 Mon Jun  5 18:46:06 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
9990         * config.table (frags): Use toplevel pic frags.
9992         * Makefile.in (PICFLAG): New macro.
9993         (all): Depend on stamp-picdir.
9994         (needed-list): Ditto.
9995         (.c.o): Also build pic object.
9996         (stamp-picdir): New rule.
9997         (mostlyclean): Remove pic.
9998         (clean): Remove stamp-picdir.
10000 Fri Mar 24 16:55:48 1995  Pat Rankin  (rankin@eql.caltech.edu)
10002         * vmsbuild.com (config.h): Add `#define NEED_basename'.
10004 Tue May 23 10:12:46 1995  Per Bothner  <bothner@kalessin.cygnus.com>
10006         * clock.c, getopt.c, strtod.c, vsprintf.c:  Change from using LGPL
10007         to libio-style copyright.
10008         * getpagesize.c:  Remove FSF copyright.
10010 Sat May 20 12:30:23 1995  Ken Raeburn  <raeburn@kr-laptop.cygnus.com>
10012         Added improved VMS support from Pat Rankin:
10014         Fri Mar 17 18:40:36 1995  Pat Rankin  (rankin@eql.caltech.edu)
10016         * vmsbuild.com:  new file.
10018         * getpagesize.c (getpagesize):  implement for VMS;
10019         * strerror.c (strerror, strerrno, strtoerrno):  add rudimentary
10020         support for EVMSERR.
10022 Thu May 18 17:01:42 1995  Ken Raeburn  <raeburn@kr-laptop.cygnus.com>
10024         Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
10026         * floatformat.c (floatformat_arm_ext): Define.
10028 Tue May 16 13:30:59 1995  Per Bothner  <bothner@kalessin.cygnus.com>
10030         * basename.c, bcmp.c, getcwd.c, insque.c, rename.c, sigsetmask.c,
10031         strerror.c, strsignal.c:  Remove FSF copyright.
10032         * sigsetmask.c: #include <sys/types.h> - seems to be needed by ISC.
10034 Mon May 15 19:53:17 1995  Per Bothner  <bothner@kalessin.cygnus.com>
10036         * bcopy.c, bzero.c, memcmp.c, memcpy.c, memset.c, strchr.c,
10037         strrchr.c, strstr.c, vfork.c:  Remove FSF Copyright, because this
10038         might contaminate libstdc++ with the LGPL.  (OK'd by RMS 11 Oct 94.)
10039         * strchr.c, strrchr.c:  Add cast to suppress const warning.
10041 Thu May  4 14:36:42 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
10043         * cplus-dem.c: Use const instead of CONST.  Don't include
10044         ansidecl.h directly.
10046 Wed Apr 19 01:30:27 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
10048         * cplus-dem.c: Don't include libiberty.h.  Do declare xmalloc and
10049         xrealloc.
10050         (-DMAIN): Don't rely on an externally-defined version number;
10051         instead, require the version number to be defined as a
10052         preprocessor macro.  Handle the RS/6000 leading dot.  Define
10053         xmalloc, xrealloc and fatal.  Don't strip a leading underscore
10054         if we couldn't demangle the word.
10056 Tue Apr  4 13:03:51 1995  Stan Shebs  <shebs@andros.cygnus.com>
10058         (Old mpw.c change descriptions retained for informational value.)
10059         * mpw.c (warning_threshold): Default to .4 sec.
10060         (overflow_count, current_progress): New globals.
10061         (warn_if_spin_delay): Include current progress type,
10062         such as program name, in message.
10063         (mpw_start_progress): Set current_progress variable from arg.
10064         (mpw_end_progress): Report spin delays by power-of-two-size
10065         buckets instead of constant-size buckets.
10067         * mpw.c: Clean up formatting, types, returns, etc.
10068         (ENOSYS): Define.
10069         (mpw_fread, mpw_fwrite): Define.
10070         (sleep): Define correctly.
10072         * mpw.c: New code to implement cursor spinning support.
10073         (umask): New function.
10074         (mpw_fopen, mpw_fseek, stat, fstat): Call PROGRESS.
10076         * mpw.c (mpw_basename, mpw_mixed_basename): New functions, find
10077         basenames for MPW and MPW/Unix filenames.
10078         (mpw_special_init): New function, calls Macsbug if desired.
10080         * mpw.c: Add GPL notice.
10081         (mpwify_filename): Add more transformations.
10082         (mpw_fopen): Call mpwify_filename on file names.
10083         (rename): Remove.
10084         (chdir, getcwd): Add simple definitions.
10086         * mpw.c: Random cleanups, remove unused code bits.
10087         Added copy of strerror.c for gcc's use.
10088         (stat, fstat, _stat): New versions based on Guido van Rossum code.
10090         * mpw.c (mpw_fseek): Make it work correctly when doing SEEK_CUR.
10092         * mpw.c (stat): Remove hack definition, get from sys/stat.h.
10093         (fork, vfork, etc): Print error messages if called.
10094         (getrusage, sbrk, environ, isatty, link, utime, mkdir, rmdir,
10095         rename, chown): Define.
10097         * mpw-config.in: New file, MPW version of configure.in.
10098         * mpw-make.in: New file, MPW version of Makefile.in.
10099         * mpw.c: New file, MPW compatibility routines.
10101 Fri Mar 24 14:10:30 1995  Jim Kingdon  (kingdon@lioth.cygnus.com)
10103         * basename.c: Include config.h before checking for NEED_basename.
10105 Thu Mar 23 19:09:54 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
10107         * functions.def: Add DEFFUNC for basename.
10109         * basename.c: Only define basename if NEED_basename.
10111 Thu Mar 16 13:36:05 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
10113         * config.table: Fix --enable-shared logic for native builds.
10115 Mon Mar 13 11:05:11 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
10117         * cplus-dem.c (demangle_template): Demangle bool literals properly.
10119 Mon Mar  6 23:57:28 1995  Stu Grossman  (grossman@cygnus.com)
10121         * strtol.c strtoul.c:  Replace these with less buggy versions from
10122         NetBSD.  (strtoul in particular couldn't handle base 16.)
10124 Wed Mar  1 15:59:01 1995  Ian Lance Taylor  <ian@cygnus.com>
10126         * config/mt-vxworks5 (HDEFINES): Define NO_SYS_PARAM_H.
10128         * clock.c: If NO_SYS_PARAM_H is defined, don't include
10129         <sys/param.h>.
10130         * getcwd.c, getpagesize.c, getruntime.c: Likewise.
10132 Fri Feb 17 15:40:55 1995  Ian Lance Taylor  <ian@cygnus.com>
10134         * getruntime.c (get_run_time): Don't assume that CLOCKS_PER_SEC is
10135         a number; ANSI appears to permit any expression, including a
10136         function call.
10138         * config.table (*-*-vxworks5*): Use mt-vxworks5 when configuring
10139         xiberty.
10140         * config/mt-vxworks5: New file.
10142 Thu Feb  9 14:19:45 1995  Ian Lance Taylor  <ian@cygnus.com>
10144         * basename.c (basename): Change argument to be const.
10146 Wed Feb  8 18:06:52 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
10148         * Makefile.in (lneeded-list): Don't worry about xmalloc.
10150 Sun Jan 15 00:40:36 1995  Jeff Law  (law@snake.cs.utah.edu)
10152         * Makefile.in (distclean): Delete xhost-mkfrag.
10154 Thu Jan 12 16:54:18 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
10156         * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
10158 Wed Jan 11 22:39:56 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
10160         * hex.c: New file.
10161         * Makefile.in (REQUIRED_OFILES, CFILES): List it.
10162         (hex.o): Add dependencies.
10164         * cplus-dem.c (demangle_prefix): For GNU style constructor and
10165         destructor names, try demangling the remainder of the string.
10167 Wed Dec 28 00:49:15 1994  Ian Lance Taylor  <ian@tweedledumb.cygnus.com>
10169         * vasprintf.c (int_vasprintf): New static function.
10170         (vasprintf): Use int_vasprintf.  Removes assumption that va_list
10171         is assignment compatible.
10173 Sat Nov  5 19:29:12 1994  Jason Merrill  (jason@phydeaux.cygnus.com)
10175         * Makefile.in (LIBCFLAGS): New variable.
10176         (FLAGS_TO_PASS): Pass it.
10177         (.c.o): Use it.
10179 Thu Nov  3 19:09:47 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
10181         * getopt.c, getopt1.c: Do compile these functions under Linux,
10182         since many native versions are based on glibc but are buggy.
10184 Mon Oct 24 15:16:46 1994  Per Bothner  <bothner@kalessin.cygnus.com>
10186         * vasprintf.c:  Make 'format' arg be const, to avoid a mismatch
10187         with prototype in GNU libc.  Support stdarg.h as well as varargs.h.
10189 Tue Oct 11 17:48:27 1994  Jason Merrill  (jason@phydeaux.cygnus.com)
10191         * Makefile.in (REQUIRED_OFILES): Add vasprintf.o.
10192         * functions.def: Remove vasprintf.
10194 Wed Sep 14 17:04:55 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
10196         * xmalloc.c (first_break): New static variable.
10197         (xmalloc_set_program_name): Record sbrk (0) in first_break.
10198         (xmalloc): If memory allocation fails, try to report how much
10199         memory was allocated by the program up to this point.
10200         (xrealloc): Likewise.
10202 Sun Sep 04 17:58:10 1994  Richard Earnshaw (rwe@pegasus.esprit.ec.org)
10204         * Makefile.in (ERRORS_CC): New variable, defaulted to $(CC).  Use it
10205         when linking dummy.
10206         * config.table: Add host RISCiX Makefile frag.
10207         * config/mh-riscix: New file.
10209 Thu Aug 25 17:29:44 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
10211         * Makefile.in (FLAGS_TO_PASS): Define.
10212         ($(RULE1)): Use $(FLAGS_TO_PASS).
10214 Wed Aug 24 17:08:47 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
10216         * vasprintf.c: Include <string.h>.
10217         (vasprintf): Add casts to void for va_arg to avoid gcc warnings.
10218         * xatexit.c: Declare malloc.
10220 Fri Aug 19 15:29:12 1994  Kung Hsu  (kung@mexican.cygnus.com)
10222         * cplus-dem.c (demangle_args): Fix a bug in previous patch (the
10223         one below).
10225 Thu Aug 18 14:37:14 1994  Kung Hsu  (kung@mexican.cygnus.com)
10227         * cplus-dem.c (demangle args): Handle ARM repeat encoding where
10228         the type index is greater than 9.
10230 Wed Aug 17 16:13:49 1994  Kung Hsu  (kung@mexican.cygnus.com)
10232         * cplus-dem.c (demangle_qualified): accept optional '_' between
10233         qualified name. This is baecause the template name may end with
10234         numeric and can mixed up with the length of next qualified name.
10236 Wed Aug  3 05:52:14 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
10238         * config/mt-sunos4: Use our standard location for cross-includes
10239         and cross-libs when the target is also a "host" environment (ie no
10240         newlib; includes and such don't belong to us).  This is specific
10241         to the Cygnus Support environment.
10243 Tue Aug  2 15:25:12 1994  Kung Hsu  (kung@mexican.cygnus.com)
10245         * cplus-dem.c (demangle_template): demangle as xxx<'Q'> not
10246         xxx<ch=81>.
10248 Mon Aug  1 17:02:48 1994  Kung Hsu  (kung@mexican.cygnus.com)
10250         * cplus-dem.c (main): flush stdout to make pipe work.
10252 Sat Jul 16 12:56:32 1994  Stan Shebs  (shebs@andros.cygnus.com)
10254         * config.table (*-*-cxux7*):  Recognize.
10255         * floatformat.c (floatformat_m88110_ext) [HARRIS_FLOAT_FORMAT]:
10256         Harris-specific float format.
10257         * config/mh-cxux7: New file.
10259 Wed Jun 29 00:26:17 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
10261         * cplus-dem.c (demangle_template):  Make sure that the result of
10262         consume_count doesn't index beyond the end of the string.
10264 Mon Jun 20 23:54:37 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
10266         * cplus-dem.c (gnu_special):  Handle vtable mangling of gcc-2.4.5 and
10267         earlier. Improve test for new vtable mangling. Change output back
10268         to `virtual table'.
10270 Mon Jun 20 11:37:30 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
10272         * obstack.c: Always compile this code, even if using the GNU
10273         library.  Avoids problems with relatively recent binary
10274         incompatibility.
10276 Thu Jun 16 17:54:01 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
10278         * cplus-dem.c: Include libiberty.h.
10279         (xmalloc, xrealloc, free): Don't declare.
10280         (strstr): Don't declare parameters.
10281         (xmalloc, xrealloc): Don't define.
10282         (long_options): Add no-strip-underscores.
10283         (main): Call xmalloc_set_program_name.  Pass n in short options to
10284         getopt_long.  Handle option 'n' to not strip underscores.
10285         (usage): Mention -n and --no-strip-underscores.
10287 Sun Jun 12 01:37:09 1994  Jason Merrill  (jason@deneb.cygnus.com)
10289         * cplus-dem.c (demangle_template): Separate consecutive >'s with a
10290         space.
10291         (gnu_special): Demangle template and qualified names in a vtable name.
10293 Fri May 27 12:27:52 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
10295         From gas-2.3 and binutils-2.4 net releases:
10297         Wed May 11 22:32:00 1994  DJ Delorie (dj@ctron.com)
10299         * makefile.dos: [new] Makefile for dos/go32
10300         * configure.bat: update for latest files
10301         * msdos.c: remove some functions now in libc.a
10303 Fri May 20 18:53:32 1994  Per Bothner  (bothner@kalessin.cygnus.com)
10305         * cplus-dem.c (gnu_special):  Recognize thunks, as well as
10306         the new naming style for vtables (when -fvtable-thunks).
10308 Wed May 18 13:34:06 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
10310         * Makefile.in (XTRAFLAGS): Don't define.
10311         (.c.o, dummy.o): Don't use XTRAFLAGS.
10312         ($(RULE1)): Don't pass XTRAFLAGS down in recursive call.
10314 Fri May 13 16:02:12 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
10316         * vasprintf.c: New file.
10317         * Makefile.in, functions.def: Add it.
10319 Fri May 13 16:20:28 1994  Jason Merrill  (jason@deneb.cygnus.com)
10321         * cplus-dem.c (demangle_fund_type): Grok bool.
10323 Fri May  6 14:44:21 1994  Steve Chamberlain  (sac@cygnus.com)
10325         * config.table: Add go32
10326         * config/mh-go32: New template.
10328 Fri May  6 11:01:59 1994  D. V. Henkel-Wallace  (gumby@rtl.cygnus.com)
10330         * config.table, config/mt-sunos4: config for when sun4 is cross target.
10332 Mon Apr 11 00:54:33 1994  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
10334         * getopt.c [not __GNU_LIBRARY__] [__GCC__] [not __STDC__]:
10335         Declare strlen to return int.  Don't include stddef.h.
10337 Fri Apr  1 00:38:17 1994  Jim Wilson  (wilson@mole.gnu.ai.mit.edu)
10339         * getopt.c: Delete use of IN_GCC to control whether
10340         stddef.h or gstddef.h is included.
10342 Thu Apr 14 14:00:56 1994  Kung Hsu  (kung@mexican.cygnus.com)
10344         * cplus-dem.c (demangle_signature): Fix a bug in template function
10345         type numbering.
10347 Wed Apr 13 17:23:03 1994  Kung Hsu  (kung@mexican.cygnus.com)
10349         * cplus-dem.c (demangle_signature): Fix template function with arm
10350         style argument type number, Tn.
10352 Wed Apr 13 17:11:15 1994  Jason Merrill  (jason@deneb.cygnus.com)
10354         * cplus-dem.c (optable): Add new[] and delete[].
10356 Fri Apr  8 11:21:42 1994  Jim Kingdon  (kingdon@deneb.cygnus.com)
10358         * argv.c (buildargv): Don't produce empty argument just because
10359         there is trailing whitespace.
10361 Wed Apr  6 11:42:14 1994  Kung Hsu  (kung@mexican.cygnus.com)
10363         * cplus-dem.c (demangle_template): fix 'Q' qualified name bug.
10364         Handle 'p' same as 'P'.
10365         * cplus-dem.c (do_type): Handle 'p' same as 'P'.
10367 Sat Mar 26 12:00:13 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
10369         * floatformat.c (get_field, put_field):  Fix off by one error in
10370         little endian case.
10372 Thu Mar 24 10:40:19 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
10374         * floatformat.c (floatformat_from_double): Pass unsigned char *,
10375         not char *, to put_field.
10377 Fri Mar 18 12:34:33 1994  Per Bothner  (bothner@kalessin.cygnus.com)
10379         * memmove.c:  Re-wrote;  placed in public domain.
10381 Wed Mar 16 10:33:07 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
10383         * cplus-dem.c (demangle_prefix): If ARM demangling, don't treat
10384         __Q* as a constructor.
10386 Mon Mar 14 12:26:02 1994  Ian Lance Taylor  (ian@cygnus.com)
10388         * ieee-float.c: Removed; no longer used.
10389         * Makefile.in: Changed accordingly.
10391 Mon Mar  7 12:28:17 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
10393         * floatformat.c (get_field): Removed unused local variable i.
10394         (put_field): Removed unused local variable i.
10396 Sun Feb 27 21:50:11 1994  Jim Kingdon  (kingdon@deneb.cygnus.com)
10398         * floatformat.c: New file, intended to replace ieee-float.c.
10399         * Makefile.in: Change accordingly.
10401 Thu Feb 24 11:51:12 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
10403         * getopt.c: Remove #ifdef GETOPT_COMPAT and #if 0 code.
10404         (_getopt_initialize): New function, broken out of _getopt_internal.
10405         (_getopt_internal):
10406         If long_only and the ARGV-element has the form "-f", where f is
10407         a valid short option, don't consider it an abbreviated form of
10408         a long option that starts with f.  Otherwise there would be no
10409         way to give the -f short option.
10411 Thu Feb 10 14:44:16 1994  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
10413         * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]:
10414         Test just __STDC__, not emacs.
10416 Wed Feb  9 00:14:00 1994  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
10418         * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]
10419         [emacs] [not __STDC__]: Don't include stddef.h.  Don't declare strlen.
10421 Fri Dec 24 19:43:00 1993  Noah Friedman  (friedman@nutrimat.gnu.ai.mit.edu)
10423         * getopt.c (_NO_PROTO): Define before config.h is included.
10425 Mon Sep 20 15:59:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10427         * getopt.c, getopt1.c [emacs || CONFIG_BROKETS]: Include
10428         <config.h> only under these, else "config.h".
10430 Thu Aug 12 18:16:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10432         * getopt.c, getopt1.c [HAVE_CONFIG_H]: Include
10433         <config.h> instead of "config.h".
10435 Sun Feb 20 17:17:01 1994  Ian Lance Taylor  (ian@lisa.cygnus.com)
10437         * concat.c: Check ANSI_PROTOTYPES rather than __STDC__ to decide
10438         whether to use prototypes or not.
10439         * strerror.c (const): Never undefine; let ansidecl.h handle it.
10440         * strsignal.c (const): Likewise.
10442 Thu Feb 17 13:27:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
10444         * xatexit.c (_xexit_cleanup): Declare as extern; don't initialize.
10445         Merging common and initialized variables need not be supported by
10446         ANSI C compilers.
10447         (xatexit): Initialize _xexit_cleanup if not already set.
10448         * xexit.c: Comment fix.
10450 Wed Feb 16 01:15:36 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
10452         * xmalloc.c: Don't declare xexit; it's declared in libiberty.h.
10453         (xrealloc): If oldmem is NULL, allocate with malloc, rather than
10454         assuming that realloc works correctly.
10456 Tue Feb 15 09:26:16 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
10458         * concat.c, ieee-float.c:  Replace inclusion of <string.h>
10459         with explicit function declarations, as recommended by Ian Taylor.
10461 Sat Feb 12 10:31:11 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
10463         * xmalloc.c (xmalloc, xrealloc): Use PTR and size_t throughout.
10464         (malloc, realloc): Declare.
10466 Thu Feb 10 17:08:19 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
10468         * argv.c, basename.c: Include ansidecl.h and libiberty.h.
10469         * concat.c, fdmatch.c, getruntime.c, spaces.c: Likewise.
10470         * strerror.c, strsignal.c, xatexit.c, xexit.c: Likewise.
10471         * xmalloc.c: Likewise.
10472         * concat.c: Don't declare xmalloc.  If __STDC__, use <stdarg.h>
10473         macros, not <varargs.h> macros.
10474         * spaces.c (spaces): Make return type const.  Don't crash if
10475         malloc returns NULL.
10476         * strerror.c (struct error_info): Make name and msg fields const.
10477         (error_names): Make const.
10478         (strerrno): Make const.
10479         (strtoerrno): Make argument const.
10480         * strsignal.c (struct signal_info): Make name and msg fields
10481         const.
10482         (signal_names, sys_siglist): Make const.
10483         (strsignal, strsigno): Make const.
10484         (strtosigno): Make argument const.
10485         * xatexit.c: Declare parameter types.
10486         * xmalloc.c (name): Make const.
10487         (xmalloc_set_program_name): Make argument const.
10488         * Makefile.in (INCDIR): Define.
10489         (.c.o): Use $(INCDIR).
10490         (dummy.o): Likewise.
10491         (argv.o, basename.o): New targets; depend on libiberty.h.
10492         (concat.o, fdmatch.o, getruntime.o, spaces.o): Likewise.
10493         (strerror.o, strsignal.o, xatexit.o, xexit.o): Likewise.
10494         (xmalloc.o): Likewise.
10495         (cplus-dem.o): New target; depend on demangle.h.
10496         (getopt.o, getopt1.o): New targets; depend on getopt.h.
10497         (ieee-float.o): New target; depend on ieee-float.h.
10498         (obstack.o): New target; depend on obstack.h.
10500 Tue Feb  8 05:29:08 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
10502         Handle obstack_chunk_alloc returning NULL.  This allows
10503         obstacks to be used by libraries, without forcing them
10504         to call exit or longjmp.
10505         * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
10506         If CALL_CHUNKFUN returns NULL, set alloc_failed, else clear it.
10507         (_obstack_begin, _obstack_begin_1): Return 1 if successful, 0 if not.
10509 Tue Feb  8 00:32:28 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
10511         * concat.c, ieee-float.c:  Include <string.h>.
10513 Sun Feb  6 21:28:46 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
10515         * xmalloc.c (xmalloc_set_program_name): New function.
10516         (xmalloc, xrealloc): Include the name in the error message, if set.
10518         * Replace atexit.c with xatexit.c.
10519         * Makefile.in (CFILES), functions.def: Change references.
10521 Sat Feb  5 14:02:32 1994  Stan Shebs  (shebs@andros.cygnus.com)
10523         * getruntime.c (get_run_time): Use getrusage or times if
10524         HAVE_GETRUSAGE or HAVE_TIMES are defined.
10526 Fri Feb  4 15:49:38 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
10528         * atexit.c: New file.
10529         * Makefile.in (CFILES), functions.def: Add it.
10530         * xexit.c: New file.
10531         * Makefile.in (CFILES, REQUIRED_OFILES): Add it.
10532         * xmalloc.c (xmalloc, xrealloc): Call xexit instead of exit.
10533         Change request for 0 bytes into request for 1 byte.
10535 Wed Feb  2 11:36:49 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
10537         * xmalloc.c (xmalloc, xrealloc): Print size using %lu, and cast to
10538         unsigned long, to avoid warnings.
10540 Fri Jan 28 17:49:06 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
10542         * dummy.c: Don't include time.h ever; always define clock_t as
10543         "unsigned long".  Until gcc/fixincludes ensures that clock_t
10544         exists, __STDC__ isn't a sufficient test.  And if clock() doesn't
10545         exist, clock_t probably doesn't either.
10547 Mon Jan 24 11:52:31 1994  Stan Shebs  (shebs@andros.cygnus.com)
10549         * clock.c, getruntime.c: New files.
10550         * Makefile.in: Add to file lists.
10551         * functions.def (clock): Add to list.
10552         * dummy.c (time.h): Add if __STDC__.
10553         (clock_t): #define as "unsigned long" if not __STDC__.
10555 Tue Jan 11 11:27:44 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
10557         * strtod.c: Declare atof.  From edler@jan.ultra.nyu.edu (Jan
10558         Edler).
10560 Tue Dec 28 14:17:30 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
10562         * Makefile.in (errors): Use CFLAGS as well as LDFLAGS when
10563         linking.
10565 Fri Dec 17 12:26:07 1993  Kung Hsu  (kung@cirdan.cygnus.com)
10567         * cplus-dem.c (demangle_arm_pt): New function.  Common code
10568         for ARM template demangling.
10569         * cplus-dem.c (demangle_class_name): Use demangle_arm_pt.
10570         * cplus-dem.c (demangle_prefix): Likewise.
10572 Tue Nov 30 15:47:48 1993  Jason Merrill  (jason@deneb.cygnus.com)
10574         * cplus-dem.c (cplus_demangle_opname): Add CONST to please gcc.
10576 Sat Nov 27 11:05:50 1993  Fred Fish  (fnf@cygnus.com)
10578         Merge changes from tom@basil.icce.rug.nl (Tom R.Hageman)
10579         * strerror.c, strsignal.c:  As a small space optimization, don't
10580         include messages when they aren't actually used.
10582         Merge changes from takefive.co.at!joe (Josef Leherbauer)
10583         * cplus-dem.c (demangle_prefix, demangle_function_name,
10584         cplus_demangle_opname):  Fixes for systems where cplus_marker
10585         is something other than '$'.
10587 Fri Nov 26 13:51:11 1993  Per Bothner  (bothner@kalessin.cygnus.com)
10589         * waitpid.c:  Simple-minded approcimation to waitpid
10590         using vanilla wait.
10591         * functions.def, Makefile.in:  Update accordingly,
10593 Thu Nov 18 18:01:15 1993  Kung Hsu  (kung@cirdan.cygnus.com)
10595         * cplus-dem.c(demangle_template): fix bug template instantiation
10596         with value of user defined type.
10598 Wed Nov 17 18:30:21 1993  Kung Hsu  (kung@cirdan.cygnus.com)
10600         * cplus-dem.c(cplus_demangle_opname): add the subject new function
10601         to support unified search of operator in class.
10603 Wed Nov 10 09:47:22 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
10605         gcc -Wall lint:
10606         * strtoul.c (strtoul): use "(digit = *s) != '\0'" not just
10607         "digit = *s" as condition in while loop.
10609 Tue Nov  9 15:52:22 1993  Mark Eichin  (eichin@cygnus.com)
10611         * Makefile.in: pass SHELL to recursive make
10613 Thu Nov  4 12:09:26 1993  Per Bothner  (bothner@kalessin.cygnus.com)
10615         * vfprintf.c, vprintf.c, vsprintf.c:  Make format arg
10616         be (const char*), for ANSI (and gcc w/fixproto) consistency.
10618 Thu Nov  4 08:29:04 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
10620         * config.table: Make *-*-hiux* use mh-hpux.
10622 Fri Oct 22 07:53:15 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
10624         * config.table: Add * to end of all OS names.
10626 Tue Oct 19 17:12:01 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
10628         * Makefile.in (lneeded-list): ensure that object file names are
10629         not duplicated, as multiple instances of the same object file in
10630         a library causes problems on some machines
10632 Mon Oct 18 21:59:28 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
10634         * strcasecmp.c, strncasecmp.c: Change u_char to unsigned char.
10636 Fri Oct 15 22:17:11 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
10638         * strncasecmp.c: new file, implements strncasecmp
10639         * strcasecmp.c: new file, implement strcasecmp
10641         * Makefile.in (CFILES): list these two new source files
10643         * functions.def: add strcasecmp and strncasecmp entries
10645 Fri Oct 15 14:53:05 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
10647         * strtoul.c (strtoul), strtol.c (strtol): Handle overflow
10648         according to ANSI C.
10650 Thu Oct 14 16:34:19 1993  Kung Hsu  (kung@cirdan.cygnus.com)
10652         * cplus-dem.c: add support of ARM global constructor/destructor,
10653         and 'G' for passing record or union in parameter.
10655 Wed Oct 13 13:36:19 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
10657         * Makefile.in: Fix comment to clarify that stuff in REQUIRED_OFILES
10658         should not be in functions.def.
10660 Wed Oct 13 13:13:38 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
10662         * functions.def: Removed xmalloc.  Stuff in REQUIRED_OFILES should
10663         not be in functions.def.
10665 Mon Oct  4 18:26:39 1993  Kung Hsu  (kung@cirdan.cygnus.com)
10667         * cplus-dem.c: change globl constructor/destructor to proper name
10669 Tue Sep 28 18:11:07 1993  Kung Hsu  (kung@cirdan.cygnus.com)
10671         * cplus-dem.c: fix bug in constructor/destructor
10673 Tue Sep 28 16:20:49 1993  Kung Hsu  (kung@cirdan.cygnus.com)
10675         * cplus-dem.c: support both old and new _vt$... vtbl mangled names
10677 Fri Sep 24 19:07:16 1993  Jason Merrill  (jason@deneb.cygnus.com)
10679         * cplus-dem.c: Fix demangle_template prototype
10681 Fri Sep 24 17:32:55 1993  Kung Hsu  (kung@cirdan.cygnus.com)
10683         * cplus-dem.c: fix template demangling
10684         * cplus-dem.c: fix const type demangling
10685         * cplus-dem.c: fix constructor/destructor, virtual table,
10686         qualifier, global constructor/destructor demangling
10688 Wed Sep  1 23:13:11 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
10690         * strsignal.c, strerror.c: Use fully-bracketed initializer to
10691         keep gcc -Wall happy.
10693 Fri Aug 27 10:30:09 1993  Jason Merrill  (jason@deneb.cygnus.com)
10695         * cplus-dem.c (do_type): Add CONSTS to make gcc happy with last
10696         patch.
10698 Fri Aug 27 11:24:54 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
10700         Patch from Paul Flinders:
10701         * cplus-dem.c (do_type): Deal with arrays.
10703 Tue Aug 24 14:23:50 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
10705         * cplus-dem.c (demangle_qualified: Deal with GNU format for more
10706         than 9 classes.
10708 Wed Aug 18 19:50:29 1993  Jason Merrill  (jason@deneb.cygnus.com)
10710         * Makefile.in (dummy.o): Redirect to /dev/null to avoid "variable
10711         not initialized" warnings under HP/UX
10713 Sun Aug 15 20:42:40 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
10715         * strerror.c: Move include of stdio.h after sys_errlist #define.
10716         Also remove NULL definition (stdio.h always defines NULL, so it
10717         never did anything but clutter up the code).
10719 Sat Aug 14 14:21:49 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
10721         * Makefile.in, functions.def: handle xmalloc.c
10723         * xmalloc.c: provide xmalloc and xrealloc functions
10725 Thu Aug 12 17:38:57 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
10727         * cplus-dem.c: Fix a comment.
10729 Sat Aug  7 13:56:35 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
10731         * getopt1.c: Declare const the way getopt.c does.
10733 Fri Aug  6 17:03:13 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
10735         * obstack.c, alloca.c: Update from FSF.
10736         * getopt.c, getopt1.c: Update to current FSF version, which
10737         doesn't use alloca.
10739 Tue Jul 27 14:03:57 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
10741         * Makefile.in (demangle): Add the target with a message saying
10742         where demangle went.
10744 Mon Jul 26 15:49:54 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
10746         * Makefile.in: Remove obsolete `demangle' target.
10748 Thu Jul 22 08:31:01 1993  Fred Fish  (fnf@deneb.cygnus.com)
10750         * cplus-dem.c (arm_special):  Apply patch from arg@lucid.com to
10751         avoid infinite loop on vtbl symbols with disambiguating "junk"
10752         tacked on the end.
10754 Mon Jul 19 14:10:37 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
10756         * strsignal.c: work around some systems losing definitions of
10757         sys_siglist
10759         * config/mh-lynxos: this system has a losing definition of
10760         sys_siglist
10762         * config.table: use mh-lynxos for *-*-lynxos
10764 Mon Jul 19 17:08:52 1993  Ken Raeburn  (raeburn@rtl.cygnus.com)
10766         * config.table: Add support for HPPA BSD hosts.
10768         * config/mh-hpbsd: New file.
10770 Mon Jul 12 18:00:40 1993  K. Richard Pixley  (rich@cygnus.com)
10772         * Makefile.in (TAGS): make work when srcdir != objdir.
10774 Sun Jun 27 15:35:31 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
10776         * cplus-dem.c (main): Add long options, including --help and
10777         --version.
10778         (usage): New function from code in main.
10780 Tue Jun 22 11:37:38 1993  Per Bothner  (bothner@deneb.cygnus.com)
10782         * config.table:  New shell scipt, sourced by both ./configure,in
10783         and ../xiberty/configure.in, to avoid maintainance lossages.
10784         * configure.in and ../xiberty/configure.in:  Use config.table.
10786         * configure.in: Don't use mh-aix for AIX 3.2, only for 3.1.
10787         * configure.in: Map *-*-irix* (except irix4) to mh-sysv.
10788         * ../xiberty/configure.in:  Update from ./configure.in.
10790 Tue Jun 15 17:05:31 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
10792         * Makefile.in: remove parentdir support
10794 Wed May 26 12:59:09 1993  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
10796         * cplus-dem.c (xrealloc):  Match definition with prototype.
10798 Tue May 25 14:27:51 1993  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
10800         * cplus-dem.c (demangle_prefix):  Demangle cfront
10801         local variables as an extension to ARM demangling.
10803 Fri May 21 09:53:57 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
10805         * ieee-float.c: Don't require pointers to double to be aligned.
10807 Tue May 18 17:12:10 1993  Fred Fish  (fnf@cygnus.com)
10809         (merge changes from dlong@cse.ucsc.edu)
10810         * cplus-dem.c (consume_count):  Simplify.
10811         * cplus-dem.c (arm_pt, demangle_class_name):  New functions.
10812         * cplus-dem.c (various):  Calls to arm_pt, demangle_class_name.
10814         * cplus-dem.c (xmalloc, xrealloc, strstr):  Make extern decls into
10815         full prototypes.
10816         * cplus-dem.c (free):  Add prototype.
10817         * cplus-dem.c (optable):  Fully bracketize initializer.
10819 Fri May 14 17:13:05 1993  Per Bothner  (bothner@cygnus.com)
10821         * cplus-dem.c:  Whether initial underscores are stripped
10822         depends on the external variable prepends_underscore
10823         (which is generated by the binutils Makefile).
10825 Fri May 14 07:32:20 1993  Ken Raeburn  (raeburn@deneb.cygnus.com)
10827         * cplus-dem.c (mop_up, arm_special): Remove some unused variables.
10829 Tue May  4 20:31:59 1993  Fred Fish  (fnf@cygnus.com)
10831         * cplus-dem.c (consume_count):  Return zero if arg does not
10832         start with digit, and don't consume any input.
10834 Tue May  4 08:10:28 1993  Jim Kingdon  (kingdon@cygnus.com)
10836         * Makefile.in (demangle): Use ${srcdir} not $^.
10838         * strtod.c: New file, needed at least for BSD 4.3.
10840 Sun May  2 11:30:42 1993  Fred Fish  (fnf@cygnus.com)
10842         * strsignal.c (sys_siglist):  For ANSI compilations, type is
10843         "const char *const".  Also remove conditionalization on __STDC__
10844         since const is defined away for non-ANSI.
10846 Wed Apr 28 19:29:55 1993  Ken Raeburn  (raeburn@deneb.cygnus.com)
10848         * configure.in: Recognize *-*-hpux.
10849         * config/mh-hpux: New file.
10851 Tue Apr 27 15:22:19 1993  Per Bothner  (bothner@cygnus.com)
10853         * tmpnam.c:  Added ANSI tmpnam() function.
10854         * functions.def, Makefile.in:  Update accordingly.
10856 Tue Apr 27 13:38:38 1993  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
10858         * cplus-dem.c (demangle_function_name): Get the demangling of
10859         stop__1A right.
10861 Fri Apr 16 23:48:24 1993  Jim Kingdon  (kingdon at calvin)
10863         * cplus-dem.c: Declare strstr return type.
10865 Fri Mar 26 12:01:26 1993  Jim Kingdon  (kingdon@cygnus.com)
10867         * strsignal.c: Add some AIX signals.
10869 Thu Mar 25 15:17:23 1993  Ian Lance Taylor  (ian@cygnus.com)
10871         * Makefile.in (MAKEOVERRIDES): Define to be empty.
10873 Wed Mar 24 01:59:25 1993  david d `zoo' zuhn  (zoo at poseidon.cygnus.com)
10875         * Makefile.in: add installcheck & dvi targets
10877 Thu Mar 18 14:05:44 1993  Per Bothner  (bothner@rtl.cygnus.com)
10879         * ieee-float.c:  New file, moved from ../gdb (since it is
10880         needed by ../opcode/m68k-dis.c).
10882 Tue Mar  2 17:47:31 1993  Fred Fish  (fnf@cygnus.com)
10884         * cplus-dem.c:  Replace all references to cfront with ARM.
10886 Fri Feb 26 00:17:07 1993  Per Bothner  (bothner@rtl.cygnus.com)
10888         * cplus-dem.c:  Fix main program (when compiled with -DMAIN)
10889         to be more useful as a filter.
10891 Sat Feb 20 21:41:39 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
10893         * Makefile.in (install_to_libdir, install_to_tooldir): Go into the
10894         destination directory before running $(RANLIB), in case that
10895         program tries to create a file in the current directory as part of
10896         its work.
10898 Thu Feb 18 23:00:19 1993  John Gilmore  (gnu@cygnus.com)
10900         * strsignal.c (sys_siglist):  Remove yet another *%^&%&$# "const"
10901         because BSD 4.4 lacks one.  Isn't this fun?
10903 Thu Feb 18 11:24:25 1993  Fred Fish  (fnf@cygnus.com)
10905         * cplus-dem.c (demangle_signature):  Set func_done after
10906         demangling a template.
10907         * cplus-dem.c (demangle_template):  Fix several small bugs
10908         in demangling GNU style templates.
10909         * cplus-dem.c (demangle_prefix):  Fix for templates in GNU
10910         style constructors.
10911         * cplus-dem.c (gnu_special):  Fix for templates in GNU style
10912         static data members.
10914 Tue Feb 16 17:28:35 1993  Fred Fish  (fnf@cygnus.com)
10916         * cplus-dem.c (demangle_signature):  Modify to include type
10917         modifiers like static and const in remembered types.
10919 Thu Feb 11 22:20:47 1993  Fred Fish  (fnf@cygnus.com)
10921         * cplus-dem.c (demangled_qualified):  Add new parameter that tells
10922         whether to prepend or append the qualifiers.
10923         * cplus-dem.c (string_prepends):  Used now, remove #if 0.
10924         * cplus-dem.c (demangle_signature):  Call demangle_qualified
10925         with prepending.
10926         * cplus-dem.c (gnu_special):  Recognize static data members that
10927         use qualified names.
10928         * cplus-dem.c (demangle_qualified):  Accumulate qualifiers in a
10929         temporary buffer and the prepend or append them to the result,
10930         as specified by the new "append" flag.
10931         * cplus-dem.c (do_type):  Call demangled_qualified with
10932         appending.
10934 Mon Dec 28 10:47:19 1992  Ken Raeburn  (raeburn@cygnus.com)
10936         * strsignal.c (signal_table): Now const.
10937         (init_signal_tables): Variable eip now points to const.
10939         * strerror.c (error_table): Now const.
10940         (init_error_tables): Variable eip now points to const.
10942 Tue Dec 15 15:36:50 1992  Per Bothner  (bothner@cygnus.com)
10944         * memchr.c (memchr):  New (ANSI standard) function.
10945         * Makefile.in, functions.def:  Added memchr.
10946         * Makefile.in (AR_FLAGS): Use rc instad of non-standard cq.
10948 Wed Dec  2 22:49:10 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
10950         * getopt.c: remove use of USG around <alloca.h>, which never meant
10951         anything anyway
10953         * config/mh-{aix,apollo68,ncr3000,sysv,sysv4}: removed definitions
10954         of USG and USGr4
10956 Thu Nov 19 03:09:33 1992  Brendan Kehoe  (brendan@lisa.cygnus.com)
10958         * cplus-dem.c (demangle_fund_type): Recognize `w', a wide character;
10959         it's now a type according to the ANSI X3J16 working paper; output
10960         "wchar_t" for it.
10961         (demangle_template): Accept `w' as an integral type.
10962         (xmalloc, xrealloc): Use `char *', not `PTR'.  Cast calls to their
10963         counterparts malloc and realloc to `char *'.
10964         (main): Exit with a 0 status.
10965         * Makefile.in (demangle): Don't expect the user to define
10966         DEMANGLE, instead force to be cplus-dem.c.  Look in $(srcdir)/../include
10967         for demangle.h.  Pass it any HDEFINES or XTRAFLAGS.
10969 Wed Nov 18 18:56:20 1992  John Gilmore  (gnu@cygnus.com)
10971         * Makefile.in (AR_FLAGS):  Avoid verbosity.
10972         * config/mh-sysv4:  Remove AR_FLAGS override, use INSTALL=cp,
10973         replace USGr4 with HAVE_SYSCONF.
10974         * config/mh-solaris:  Remove; mh-sysv4 works now.
10975         * getpagesize.c:  Replace USGr4 with HAVE_SYSCONF.
10976         * configure.in:  Simplify host matching table, remove separate
10977         solaris config file.
10979 Sun Nov 15 09:35:16 1992  Fred Fish  (fnf@cygnus.com)
10981         * configure.in (i[34]86-*-solaris2*):  Add, use mh-sysv4.
10983 Tue Nov  3 21:27:03 1992  Brendan Kehoe  (brendan@cygnus.com)
10985         * cplus-dem.c (xmalloc, xrealloc): Add decls.
10986         (remember_type): Don't cast xmalloc.
10987         (string_need): Likewise; don't cast xrealloc either.
10989 Fri Oct 23 08:52:01 1992  Ian Lance Taylor  (ian@cygnus.com)
10991         * Makefile.in, functions.defs, rename.c: added simple
10992         implementation of rename, since some binutils programs use it.
10994 Thu Oct 15 15:18:22 1992  Per Bothner  (bothner@cygnus.com)
10996         * strsignal.c:  Add appropriate 'const' to sys_siglist
10997         extern declaration (if __STDC__).  (Needed for Linux.)
10998         * strsignal.c (strsignal): Add cast to remove const-ness.
11000 Fri Oct  9 03:22:55 1992  John Gilmore  (gnu@cygnus.com)
11002         * Makefile.in (needed.awk, needed2.awk):  Remove erroneous \'s
11003         before "'s, diagnosed by BSD 4.4 awk.
11005 Thu Oct  8 15:25:12 1992  Ian Lance Taylor  (ian@cygnus.com)
11007         * Makefile.in: create config.h and needed-list through $(CONFIG_H)
11008         and $(NEEDED_LIST), to give some hooks for xiberty.
11010 Thu Oct  1 23:31:42 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
11012         * configure.in: use cpu-vendor-triple instead of nested cases
11014 Wed Sep 30 11:26:59 1992  Per Bothner  (bothner@rtl.cygnus.com)
11016         * Makefile.in, argv.c, basename.c, bcmp.c, bcopy.c, bzero.c,
11017         concat.c, cplus-dem.c, fdmatch.c, getcwd.c, getopt.c, getopt1.c,
11018         getpagesize.c, insque.c, memcmp.c, memcpy.c, memmove.c, memset.c,
11019         obstack.c, sigsetmask.c, spaces.c, strchr.c, strerror.c,
11020         strrchr.c, strsignal.c, strstr.c, vfork.c, vsprintf.c:
11021         Convert from using GPL to LGPL.
11023 Sat Sep 26 04:01:30 1992  John Gilmore  (gnu@cygnus.com)
11025         * Makefile.in (errors):  Leave dummy.o and dummy around so that
11026         we can see how the needed list was generated (it's sometimes wrong).
11027         (mostlyclean):  Remove them.
11029 Mon Sep 21 14:50:42 1992  Ian Lance Taylor  (ian@cygnus.com)
11031         * getcwd.c: supply a default if MAXPATHLEN is not defined.
11033         * config/mh-irix4: set EXTRA_OFILES to alloca.o, from WRS.
11035 Wed Sep  9 12:41:48 1992  Ian Lance Taylor  (ian@cygnus.com)
11037         * Makefile.in: Use XTRAFLAGS when compiling, so that xiberty works
11038         when cross-compiling.
11040 Thu Sep  3 13:29:39 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
11042         * cplus-dem.c: (demangle_prefix): reduction in strength of strstr
11043         as a time optimization.
11045         * cplus-dem.c (cplus_demangle): remove strpbrk test.  Appears to
11046         be more expensive than simply demangling.
11048         * cplus-dem.c (cplus_match): new function.
11050 Tue Sep  1 15:24:04 1992  Per Bothner  (bothner@rtl.cygnus.com)
11052         * cplus-dem.c:  #include <stdio.h>, to define NULL.
11053         Define current_demangling_style.
11055 Sun Aug 30 17:58:19 1992  Per Bothner  (bothner@rtl.cygnus.com)
11057         * cplus-dem.c:  New file, moved from ../gdb.
11058         * cplus-dem.c (set_cplus_marker_for_demangling):  New exported
11059         function, to avoid compiling in target-dependency for CPLUS_MARKER.
11060         * cplus-dem.c (cplus_demangle):  Allow demangling style option
11061         to be passed as a parameter, but using the global variable
11062         current_demangling_style as a default.
11063         * Makefile.in:  Update for cplus-dem.c
11065 Sat Aug 29 10:44:09 1992  Fred Fish  (fnf@cygnus.com)
11067         * obstack.c:  Merge in comment changes from FSF version.  Now
11068         matches the FSF version exactly.
11070 Fri Aug 28 18:39:08 1992  John Gilmore  (gnu@cygnus.com)
11072         * obstack.c (CALL_FREEFUN):  Can't use ?: with void values (at
11073         least on losing DECstations!); use if-then-else instead.
11075 Wed Aug 19 14:40:34 1992  Ian Lance Taylor  (ian@cygnus.com)
11077         * Makefile.in: always create installation directories.
11079 Mon Aug 10 17:33:40 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
11081         * Makefile.in: clean up definition of CFILES, more comments
11083 Sat Aug  8 23:10:59 1992  Fred Fish  (fnf@cygnus.com)
11085         * getopt.c (my_index):  Make first arg const to match strchr,
11086         which it sometimes is remapped to.
11088 Sat Aug  1 13:48:50 1992  Fred Fish  (fnf@cygnus.com)
11090         * obstack.c (DEFAULT_ALIGNMENT):  Update to match FSF version.
11091         * obstack.c (_obstack_begin):  Initialize use_extra_arg.
11092         * obstack.c (_obstack_begin_1):  New, from FSF version.
11094 Mon Jul 20 21:07:58 1992  Fred Fish  (fnf@cygnus.com)
11096         * obstack.c (CALL_CHECKFUN, CALL_FREEFUN):  Use use_extra_arg and
11097         extra_arg.
11098         * obstack.c (_obstack_begin):  Remove area_id and flags arguments
11099         (previously added for mmalloc support, interface has changed).
11100         Also convert flags usage to use use_extra_arg and maybe_empty_object.
11102 Fri Jul 10 00:41:53 1992  Fred Fish  (fnf@cygnus.com)
11104         * argv.c:  Move expandargv inline and eliminate static variables.
11105         Rewrite to always allocate in powers of two.  Fix to return an
11106         argv with a single null string arg if passed a null string.
11108 Fri Jul  3 20:27:29 1992  Fred Fish  (fnf@cygnus.com)
11110         * random.c, sigsetmask.c, strerror.c, strsignal.c:  Remove
11111         "(void)" casts from function calls where the return value is
11112         ignored, in accordance with GNU coding standards.
11114 Mon Jun 29 10:54:19 1992  Fred Fish  (fnf at cygnus.com)
11116         * bcopy.c, strerror.c, strsignal.c:  Lint.
11118 Thu Jun 25 09:18:41 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
11120         * getopt.c: merge changes from make.
11122 Thu Jun 25 04:43:22 1992  John Gilmore  (gnu at cygnus.com)
11124         * alloca.c:  Incorporate fixes from gdb/alloca.c.
11125         FIXME:  Eventually move gdb's alloca configuration files here,
11126         and remove gdb/alloca.c and its Makefile.in support.
11128 Tue Jun 23 21:56:30 1992  Fred Fish  (fnf@cygnus.com)
11130         * dummy.c:  Define NOTHING to /*nothing*/, change return type
11131         of main to int and return zero.
11132         * functions.def:  Supply NOTHING as the fourth arg to macros
11133         that don't have an explicit arg, to satisfy picky preprocessors.
11135 Wed Jun 17 18:13:58 1992  Per Bothner  (bothner@rtl.cygnus.com)
11137         * Makefile.in:  Clean up *clean rules, as per standards.texi.
11139 Tue Jun 16 16:11:59 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
11141         * getopt.c, getopt1.c: merged largely gratuitous, mostly
11142         whitespace diffs from other prep distributions.
11144 Mon Jun 15 12:25:46 1992  Fred Fish  (fnf@cygnus.com)
11146         * config/mh-ncr3000 (INSTALL):  Don't use /usr/ucb/install,
11147         it is broken on ncr 3000's.
11149 Mon Jun 15 01:03:26 1992  John Gilmore  (gnu at cygnus.com)
11151         * sigsetmask.c:  Rewrite.  Old one was very confused about its
11152         arguments and result.  New one can't do much, but at least knows
11153         what it can't do, and it's good enough for GDB's use.
11155 Sun Jun 14 15:17:40 1992  Stu Grossman  (grossman at cygnus.com)
11157         * functions.def:  Use proper prototype for strtoul.
11159 Fri Jun 12 19:22:40 1992  John Gilmore  (gnu at cygnus.com)
11161         * Makefile.in:  Add random.c.
11162         * config/mh-*:  Use "true" rather than "echo >/dev/null" for ranlib.
11163         * configure.in:  update solaris2 config.
11165 Wed Jun 10 16:31:29 1992  Fred Fish  (fnf@cygnus.com)
11167         * random.c:  Add for random() and srandom().
11168         * functions.def:  Add random
11170 Tue Jun  9 17:27:18 1992  Fred Fish  (fnf@cygnus.com)
11172         * config/{mh-ncr3000, mh-sysv4}:  Add definition for INSTALL
11173         using /usr/ucb/install.
11175 Mon Jun  1 13:20:17 1992  Per Bothner  (bothner@rtl.cygnus.com)
11177         * strerror.c:  Kludge to guard against a conflict with
11178         possible declaration of sys_errlist in errno.h.
11180 Sun May 31 15:07:47 1992  Mark Eichin  (eichin at cygnus.com)
11182         * configure.in, config/mh-solaris: add solaris2 config support.
11184 Fri May 29 17:23:23 1992  Per Bothner  (bothner@rtl.cygnus.com)
11186         * sigsetmask.c:  #ifdef out sigsetmask if SIG_SETMASK
11187         is not defined (should be defined in signal.h, says Posix.).
11189 Mon May 18 17:35:04 1992  K. Richard Pixley  (rich@cygnus.com)
11191         * getopt.c: merged changes from make-3.62.11.
11193 Fri May  8 14:53:07 1992  K. Richard Pixley  (rich@cygnus.com)
11195         * getopt.c: merged changes from bison-1.18.
11197 Tue May  5 11:51:40 1992  Per Bothner  (bothner@rtl.cygnus.com)
11199         * Makefile.in:  Don't have $(EXTRA_OFILES) depend on config.h,
11200         since that introduces a circular dependency.
11201         ($(EXTRA_OFILES) are used to build config.h.)
11203         * strtoul.c:  Fixes to handle non-decimal bases better.
11205 Wed Apr 22 09:27:51 1992  Fred Fish  (fnf@cygnus.com)
11207         * config/mh-ncr3000:  Replace MINUS_G with CFLAGS.
11208         * Makefile.dos:  Finish MINUS_G eradication.
11209         * Makefile.in (CFILES):  Add strsignal.c.
11210         * Makefile.in (REQUIRED_OFILES):  Add strerror.o strsignal.o
11211         * Makefile.in (needed-list):  Split creation of errors file to
11212         separate make target.
11213         * Makefile.in (config.h, needed2.awk, errors):  New targets.
11214         * Makefile.in (clean):  Split to multiple lines, add needed2.awk
11215         and config.h.
11216         * dummy.c (DEFFUNC, DEFVAR):  Add defines and undefs.
11217         * functions.def (strerror):  Remove from optional list.
11218         * functions.def (sys_nerr, sys_errlist, sys_siglist):  DEFVAR's
11219         * functions.def (strerror, psignal):  DEFFUNC's
11220         * strerror.c:  Rewrite from scratch to use sys_errlist only if
11221         available, add errno_max(), add strerrno(), add strtoerrno(),
11222         add test driver.
11223         * strsignal.c:  New file, signal equivalent to strerror.c.
11224         Uses sys_siglist if available, defines signo_max(), strsignal(),
11225         strsigno(), strtosigno(), psignal(), and test driver.
11227 Mon Apr 20 20:49:32 1992  K. Richard Pixley  (rich@cygnus.com)
11229         * Makefile.in: do not print recursion line.
11231         * Makefile.in: allow CFLAGS to be passed in from command line.
11232         Removed MINUS_G.  Default CFLAGS to -g.
11234 Mon Apr 20 12:57:46 1992  Per Bothner  (bothner@rtl.cygnus.com)
11236         * config/mh-aix:  New.  EXTRA_OFILES lists copysign.o,
11237         so libg++ users don't have to be inconvenienced by a
11238         libc.a bug (libc.a needs copysign, but doesn't define it!).
11239         * configure.in:  Use config/mh-aix.
11240         * strtoul.c:  Handle '-' as required by ANSI.
11241         Clean up radix handling.
11242         * strstr.c:  Fix buggy algorithm.
11243         * Makefile.in:  Change so that ${EXTRA_OFILES} is
11244         appended to needed-list (which is used by libg++).
11246 Fri Apr 10 22:51:41 1992  Fred Fish  (fnf@cygnus.com)
11248         * configure.in:  Recognize new ncr3000 config.
11249         * config/mh-ncr3000:  New config file.
11251 Wed Apr  1 23:31:43 1992  John Gilmore  (gnu at cygnus.com)
11253         * argv.c, dummy.c:  Lint.
11255 Tue Mar 31 18:46:44 1992  Fred Fish  (fnf@cygnus.com)
11257         * config/mh-sysv4:  New config file.
11258         * configure.in (host_makefile_frag):  Set to config/mh-sysv4 for
11259         host_os == sysv4.
11260         * getpagesize.c:  For SVR4, use sysconf(_SC_PAGESIZE) to get
11261         pagesize.
11263 Sun Mar 29 12:26:42 1992  John Gilmore  (gnu at cygnus.com)
11265         * getopt.c:  Lint.
11267 Fri Mar 27 08:32:55 1992  Fred Fish  (fnf@cygnus.com)
11269         * functions.def (alloca):  Fix return type and args to avoid
11270         type clash with gcc's builtin alloca.
11272 Tue Mar 24 23:33:42 1992  K. Richard Pixley  (rich@cygnus.com)
11274         * configure.in, config/mh-irix4: irix4 support.
11276         * Makefile.in, functions.def, alloca.c: added alloca.
11278 Tue Mar 24 17:34:46 1992  Stu Grossman  (grossman at cygnus.com)
11280         * obstack.c (CALL_FREEFUN):  Make it compile on DECstations.
11282 Thu Mar 19 13:57:42 1992  Fred Fish  (fnf@cygnus.com)
11284         * argv.c:  Fix various external function definitions to be
11285         correct in an ANSI compilation environment.
11287 Sat Mar 14 17:28:17 1992  Fred Fish  (fnf@cygnus.com)
11289         * obstack.c:  Changes to support calling mmalloc functions,
11290         which take an additional argument over malloc functions.
11292 Fri Mar  6 22:01:10 1992  K. Richard Pixley  (rich@cygnus.com)
11294         * added check target.
11296 Thu Feb 27 22:19:39 1992  Per Bothner  (bothner@cygnus.com)
11298         * argv.c:  #include alloca-conf.h (needed by AIX).
11300 Wed Feb 26 18:04:40 1992  K. Richard Pixley  (rich@cygnus.com)
11302         * Makefile.in, configure.in: removed traces of namesubdir,
11303         -subdirs, $(subdir), $(unsubdir), some rcs triggers.  Forced
11304         copyrights to '92, changed some from Cygnus to FSF.
11306 Sat Feb 22 01:09:21 1992  Stu Grossman  (grossman at cygnus.com)
11308         * argv.c:  Check in Fred's version which fixes problems with
11309         alloca().
11311 Fri Feb  7 21:46:08 1992  Stu Grossman  (grossman at cygnus.com)
11313         * makefile.dos:  Remove NUL to keep patch from failing.
11315 Thu Jan 30 22:48:41 1992  Stu Grossman  (grossman at cygnus.com)
11317         * getopt.c (_getopt_internal):  Fix usage of enum has_arg.
11319 Mon Jan 20 18:53:23 1992  Stu Grossman  (grossman at cygnus.com)
11321         * getopt.c, getopt1.c, ../include/getopt.h:  Get latest versions.
11323 Sat Jan 18 16:53:01 1992  Fred Fish  (fnf at cygnus.com)
11325         * argv.c:  New file to build and destroy standard argument
11326         vectors from a command string.
11328         * Makefile.in:  Add argv.c and argv.o to appropriate macros.
11330 Fri Dec 20 12:12:57 1991  Fred Fish  (fnf at cygnus.com)
11332         * configure.in:  Change svr4 references to sysv4.
11334         * rindex.c:  Declare return type of externally used function
11335         strrchr().
11337 Thu Dec 19 18:35:03 1991  John Gilmore  (gnu at cygnus.com)
11339         * Makefile.in:  Remove "***" in normal output, since Make produces
11340         this on errors, and it's convenient to search for.
11342 Tue Dec 17 23:21:30 1991  Per Bothner  (bothner at cygnus.com)
11344         * memcmp.c, memcpy.c, memmove.c, memset.c, strchr.c, strrchr.c:
11345         New ANSI functions.  The old non-ANSI functions (such as bcopy)
11346         should be avoided.
11347         * bcopy.c:  Fix to correctly handle overlapping regions.
11348         * index.c, rindex.c:  Re-write in terms of strchr() and strrchr().
11349         * functions.def:  Add the new functions.
11350         * functions.def:  Add 4th parameter to DEF macro,
11351         an ansidecl.h-style prototype.
11352         * dummy.c:  Use expanded DEF macro to create a dummy function
11353         call, with correct parameter types.  (This avoids some
11354         complaints from gcc about predefined builtins.)
11356         Move the functionality of config/mh-default into Makefile.in.
11357         This avoid duplication, and simplifies things slightly.
11358         * Makefile.in:  Tweak so we don't need config/mh-default.
11359         * README:  Update.
11360         * configure.in:  No longer need config/mh-default.
11361         * config/mh-default:  Deleted.
11362         * config/mh-sysv:  Remove lines copied from old mh-default.
11364 Tue Dec 17 05:46:46 1991  John Gilmore  (gnu at cygnus.com)
11366         * fdmatch.c (fdmatch):  Don't compare st_rdev, which is for
11367         'mknod' device numbers.
11369 Mon Dec 16 12:25:34 1991  Fred Fish  (fnf at cygnus.com)
11371         * fdmatch.c, Makefile.in:  Add new function that takes two
11372         open file descriptors and returns nonzero if they refer to
11373         the same file, zero otherwise.  (used in gdb)
11375 Wed Dec 11 17:40:39 1991  Steve Chamberlain  (sac at rtl.cygnus.com)
11376         From DJ:
11377         * msdos.c: stub functions for dos.
11378         * makefile.dos, configdj.bat: new.
11379         * getopt.c: Don't include alloca-conf.h in a GO32 world.
11382 Tue Dec 10 04:14:49 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
11384         * Makefile.in: infodir belongs in datadir.
11386 Fri Dec  6 23:26:45 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
11388         * Makefile.in: remove spaces following hyphens because bsd make
11389         can't cope.  added standards.text support.  install using
11390         INSTALL_DATA.
11392         * configure.in: remove commontargets as it is no longer a
11393         recognized hook.
11395 Thu Dec  5 22:46:46 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
11397         * Makefile.in: idestdir and ddestdir go away.  Added copyrights
11398         and shift gpl to v2.  Added ChangeLog if it didn't exist. docdir
11399         and mandir now keyed off datadir by default.
11401 Fri Nov 22 19:15:29 1991  John Gilmore  (gnu at cygnus.com)
11403         * Makefile.in:  find-needed.awk does not fit in 14 chars.
11405         * Makefile.in:  Suppress error checking when compiling the test
11406         program, because Ultrix make/sh aborts there due to a bug.
11408 Fri Nov 22 12:23:17 1991  Per Bothner  (bothner at cygnus.com)
11410         * Makefile.in:  Re-did how EXTRA_OFILES is used to be more useful.
11411         * README:  Explained how the auto-configuration works,
11412         and how to add new files and/or configurations.
11414 Fri Nov 22 09:45:23 1991  John Gilmore  (gnu at cygnus.com)
11416         * strtoul.c:  Avoid defining ULONG_MAX if already defined;
11417         cast a const char * to char * for pedants.
11419         * getopt.c:  Only define "const" after local include files get to,
11420         and only if they haven't defined it.
11422 Thu Nov 21 16:58:53 1991  John Gilmore  (gnu at cygnus.com)
11424         * getcwd.c (remove getwd.c): GNU code should call getcwd().  We
11425         emulate it with getwd() if available.  This avoids callers having
11426         to find a MAXPATHLEN or PATH_MAX value from somewhere.
11427         * Makefile.in, functions.def:  getwd->getcwd.
11428         * configure.in:  Use generic case for every system.
11429         * config/mh-{delta88,mach,rs6000,svr4}:  Remove.
11430         * config/mh-sysv:  Use default handling, just add -DUSG.
11432 Thu Nov 14 10:58:05 1991  Per Bothner  (bothner at cygnus.com)
11434         * Makefile.in, config/mh-default: Re-do make magic
11435         so that for the default ("automatic") mode we only
11436         compile the files we actually need.  Do this using
11437         a recursive make:  The top-level generates the list
11438         of needed files (loosely, the ones missing in libc),
11439         and then passes that list to the recursive make.
11440         * config/mh-mach:  Remove obsolete STRERROR-{C,O} macros.
11442 Tue Nov 12 19:10:57 1991  John Gilmore  (gnu at cygnus.com)
11444         RS/6000 host support (grumble).
11446         * configure.in:  Build alloca-conf.h file from alloca-norm.h
11447         (everything else) or alloca-botch.h (rs/6000).
11448         * Makefile.in:  Include . on the include path.
11449         * getopt.c:  Use alloca-conf.h.
11450         * alloca-norm.h:  How to declare alloca on reasonable machines.
11451         * alloca-botch.h: How to declare alloca on braindead machines.
11453 Tue Nov 12 09:21:48 1991  Fred Fish  (fnf at cygnus.com)
11455         * concat.c :  New file, like concat() in gdb but can take a
11456         variable number of arguments rather than fixed at 3 args.  For
11457         now, client applications must supply an xmalloc(), which is a
11458         front end function to malloc() that deals with out-of-memory
11459         conditions.
11461         * Makefile.in:  Add concat.c and concat.o to appropriate macros.
11463 Sat Nov  9 13:29:59 1991  Fred Fish  (fnf at cygnus.com)
11465         * config/mh-svr4:  Add sigsetmask to list of required functions.
11467 Sun Nov  3 11:57:56 1991  Per Bothner  (bothner at cygnus.com)
11469         * vsprintf.c:  New file.
11470         * functions.def, Makefile.in:  Add vsprintf.
11472 Sun Oct 27 16:31:22 1991  John Gilmore  (gnu at cygnus.com)
11474         * configure.in, config/mh-rs6000:  Add rs/6000 host support.
11475         * Makefile.in:  Compile with debug info.
11477 Fri Oct 25 17:01:12 1991  Per Bothner  (bothner at cygnus.com)
11479         * Makefile.in, configure.in, and new files: dummy.c, functions.def,
11480         config/mf-default:  Added a default configuration mode,
11481         which includes into libiberty.a functions that are "missing" in libc.
11482         * strdup.c, vprintf.c, vfprintf.c: New files.
11484 Thu Oct 24 02:29:26 1991  Fred Fish  (fnf at cygnus.com)
11486         * config/hmake-svr4: New file.
11488         * config/hmake-sysv: Add HOST_CFILES and HOST_OFILES.
11490         * basename.c, bcmp.c, bcopy.c, bzero.c, getpagesize.c getwd.c,
11491         index.c, insque.c, rindex.c, spaces.c, strstr.c, vfork.c: New
11492         files containing either portable C versions or emulations using
11493         native library calls.
11495         * strerror.c:  Add copyright, internal documentation, etc.
11497         * strtol.c:  Replace hardwired hex constants with some more
11498         portable macros.  Remove illegal (according to gcc) cast.
11500         * strtoul.c: Replace hardwired hex constant with more portable
11501         macro.
11503         * Makefile.in: Move TARGETLIB and CFLAGS where makefile fragments
11504         can override them.  Add new source and object file names to CFILES
11505         and OFILES respectively.
11507         * configure.in: Add support for SVR4 makefile fragments.
11509 Tue Oct 22 19:00:23 1991  Steve Chamberlain  (steve at cygnus.com)
11511         * Makefile.in: Move RANLIB, AR and AR_FLAGS to where they can be
11512         over-ridden by config/hmake-*
11513         * configure.in: added m88kcvs to sysv list
11515 Fri Oct  4 01:29:08 1991  John Gilmore  (gnu at cygnus.com)
11517         * Makefile.in:  Most hosts need strerror, but one or two don't,
11518         and they override these definitions in the host-dependent makefile
11519         fragment.
11520         * config/hmake-mach:  The odd man out on strerror -- it's supplied.
11521         * strerror.c:  New file.
11523         * strtol.c, strtoul.c:  Add strtol to libiberty, since Mach lacks
11524         it and bfd uses it.
11525         * configure.in, Makefile.in, config/hmake-mach:  Only configure
11526         strtol & strotoul in on Mach.
11528 Tue Sep  3 06:36:23 1991  John Gilmore  (gnu at cygint.cygnus.com)
11530         * obstack.c:  Merge with latest FSF version.
11533 Local Variables:
11534 version-control: never
11535 End: