Fix date
[official-gcc.git] / libiberty / ChangeLog
blob8c469710f8e8fd36820a0cf56fb92d434418278d
1 2017-09-01  Martin Liska  <mliska@suse.cz>
3         * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
4         Remove duplicite declaration.
6 2017-08-31  Richard Biener  <rguenther@suse.de>
8         PR lto/81968
9         * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
10         Keep names of removed global symbols.
12 2017-08-29  Tony Reix  <tony.reix@atos.net>
14         * simple-object-xcoff.c (simple_object_xcoff_find_sections):
15         Improve .go_export csect handling.  Don't make assumptions
16         on containing section or number of auxiliary entries.
18 2017-08-28  Richard Biener  <rguenther@suse.de>
20         PR lto/81968
21         * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
22         Adjust field with for sh_type write, set SHF_EXCLUDE only for
23         removed sections.
25 2017-08-22  Richard Biener  <rguenther@suse.de>
27         PR lto/81925
28         * simple-object-elf.c (simple_object_elf_write_shdr): Adjust
29         type of sh_addralign and sh_entsize and properly write
30         sh_entsize as Elf_Addr.
31         (simple_object_elf_write_to_file): Read sh_entsize as Elf_Addr.
33 2017-08-21  Richard Biener  <rguenther@suse.de>
35         * simple-object-common.h (struct simple_object_functions): Add
36         copy_lto_debug_sections hook.
37         * simple-object.c: Include fcntl.h.
38         (handle_lto_debug_sections): New helper function.
39         (simple_object_copy_lto_debug_sections): New function copying
40         early LTO debug sections to regular debug sections in a new file.
41         (simple_object_start_write): Handle NULL segment_name.
42         * simple-object-coff.c (simple_object_coff_functions): Adjust
43         for not implemented copy_lto_debug_sections hook.
44         * simple-object-mach-o.c (simple_object_mach_o_functions): Likewise.
45         * simple-object-xcoff.c (simple_object_xcoff_functions): Likewise.
46         * simple-object-elf.c (SHT_NULL, SHT_SYMTAB, SHT_RELA, SHT_REL,
47         SHT_GROUP): Add various sectopn header types.
48         (SHF_EXCLUDE): Add flag.
49         (Elf32_External_Sym, Elf64_External_Sym): Add symbol struct.
50         (ELF_ST_BIND, ELF_ST_TYPE, ELF_ST_INFO): Add accessors.
51         (STT_OBJECT, STT_FUNC, STT_TLS, STT_GNU_IFUNC): Add Symbol types.
52         (STV_DEFAULT): Add symbol visibility.
53         (SHN_COMMON): Add special section index name.
54         (struct simple_object_elf_write): New.
55         (simple_object_elf_start_write): Adjust for new private data.
56         (simple_object_elf_write_shdr): Pass in values for all fields
57         we write.
58         (simple_object_elf_write_to_file): Adjust.  Copy from recorded
59         section headers if requested.
60         (simple_object_elf_release_write): Release private data.
61         (simple_object_elf_copy_lto_debug_sections): Copy and rename sections
62         as denoted by PFN and all their dependences, symbols and relocations
63         to the empty destination file.
64         (simple_object_elf_functions): Adjust for copy_lto_debug_sections hook.
66 2017-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
68         * dwarfnames.c (DW_FIRST_IDX, DW_END_IDX, DW_IDX, DW_IDX_DUP): New.
70 2017-06-07  Tony Reix  <tony.reix@atos.net>
71             Matthieu Sarter  <matthieu.sarter.external@atos.net>
72             David Edelsohn  <dje.gcc@gmail.com>
74         * simple-object-xcoff.c (simple_object_xcoff_find_sections):
75         Search symbol table for .go_export symbol and apply pfn if found.
77 2017-05-31  DJ Delorie  <dj@redhat.com>
79         * configure.ac (strnlen): Add to AC_CHECK_DECLS.
80         * configure: Likewise.
81         * config.in: Add HACE_DECL_STRNLEN.
83 2017-05-27  Iain Buclaw  <ibuclaw@gdcproject.org>
85         * d-demangle.c (dlang_identifier): Prefix mangled init symbols
86         with `initializer for'.
87         * testsuite/demangle-expected: Update tests.
89 2017-05-27  Iain Buclaw  <ibuclaw@gdcproject.org>
91         * d-demangle.c (dlang_call_convention_p): Move declaration
92         before dlang_type.
93         (dlang_type): Handle function types.
94         * testsuite/d-demangle-expected: Add tests.
96 2017-05-27  Iain Buclaw  <ibuclaw@gdcproject.org>
98         * d-demangle.c (dlang_parse_real): Remove stack buffer, write
99         the demangled hexadecimal directly to string.
100         * testsuite/d-demangle-expected: Add tests.
102 2017-05-24  Eli Zaretskii  <eliz@gnu.org>
104         * waitpid.c (wait) [__MINGW32__]: Define as a macro
105         that calls _cwait, so that this function works on MinGW.
107 2017-05-02  Iain Buclaw  <ibuclaw@gdcproject.org>
109         * d-demangle.c (dlang_hexdigit): New function.
110         (ascii2hex): Remove function.
111         (dlang_parse_string): Update to call dlang_hexdigit.
112         * testsuite/d-demangle-expected: Add tests.
114 2017-05-02  Iain Buclaw  <ibuclaw@gdcproject.org>
116         * d-demangle.c (strtol): Remove declaration.
117         Updated all callers to use dlang_number.
118         (dlang_number): New function.
119         (dlang_value): Moved check for ISDIGIT into dlang_parse_integer.
120         * testsuite/d-demangle-expected: Add tests.
122 2017-05-02  Iain Buclaw  <ibuclaw@gdcproject.org>
124         * d-demangle.c (dlang_parse_symbol): Remove function.
125         (dlang_parse_qualified): New function.
126         (dlang_parse_mangle): New function.
127         (dlang_type): Update to call dlang_parse_qualified.
128         (dlang_identifier): Update to call either dlang_parse_qualified or
129         dlang_parse_mangle.
130         (dlang_type_modifier_p): Remove function.
131         (dlang_call_convention_p): Don't allow type modifiers in mangle.
132         (dlang_template_args): Update to call dlang_identifier.
133         (dlang_demangle): Update to call dlang_parse_mangle.
134         * testsuite/d-demangle-expected: Add tests.
136 2017-05-01  Iain Buclaw  <ibuclaw@gdcproject.org>
138         * d-demangle.c (dlang_value): Add comment explaining why cases for
139         digits are required.
140         * testsuite/d-demangle-expected: Update integer value tests.
142 2017-05-01  Iain Buclaw  <ibuclaw@gdcproject.org>
144         * d-demangle.c (dlang_parse_symbol): Skip over anonymous symbols.
145         * testsuite/d-demangle-expected: Add tests.
147 2017-05-01  Iain Buclaw  <ibuclaw@gdcproject.org>
149         * d-demangle.c (dlang_identifier): Handle template constraint symbols.
150         (dlang_parse_template): Only advance if template symbol prefix is
151         followed by a digit.
152         * testsuite/d-demangle-expected: Add tests.
154 2017-05-01  Iain Buclaw  <ibuclaw@gdcproject.org>
156         * d-demangle.c (dlang_attributes): Handle scope attributes.
157         * testsuite/d-demangle-expected: Add tests.
159 2017-04-27  Jonathan Wakely  <jwakely@redhat.com>
161         PR demangler/80513
162         * cp-demangle.c (d_number): Check for overflow.
163         * cplus-dem.c (consume_count): Fix overflow check.
164         (gnu_special): Check for underscore after thunk delta.
165         * testsuite/demangle-expected: Add tests for overflows and invalid
166         characters in thunks.
168 2017-04-21  Mark Wielaard  <mark@klomp.org>
170         * cp-demangle.c (MAX_RECURSION_COUNT): New constant.
171         (struct d_print_info): Add recursion field.
172         (d_print_init): Initialize recursion.
173         (d_print_comp): Check and update d_print_info recursion depth.
175 2017-04-21  Mark Wielaard  <mark@klomp.org>
177         * cp-demangle.c (d_substitution): Return NULL if d_add_substitution
178         fails.
180 2017-04-21  Mark Wielaard  <mark@klomp.org>
182         * cp-demangle.h (struct d_info): Remove did_subs field.
183         * cp-demangle.c (struct d_info_checkpoint): Likewise.
184         (d_template_param): Don't update did_subs.
185         (d_substitution): Likewise.
186         (d_checkpoint): Don't assign did_subs.
187         (d_backtrack): Likewise.
188         (cplus_demangle_init_info): Don't initialize did_subs.
190 2017-03-27  Pedro Alves  <palves@redhat.com>
192         * cp-demint.c (cplus_demangle_fill_component): Handle
193         DEMANGLE_COMPONENT_RVALUE_REFERENCE.
195 2017-03-12  Mark Wielaard  <mark@klomp.org>
197         * cp-demangle.c (cplus_demangle_fill_name): Initialize
198         demangle_component d_printing.
199         (cplus_demangle_fill_extended_operator): Likewise.
200         (cplus_demangle_fill_ctor): Likewise.
201         (cplus_demangle_fill_dtor): Likewise.
203 2017-03-08  Mark Wielaard  <mark@klomp.org>
205         PR demangler/70909
206         PR demangler/67264
207         * cp-demangle.c: Fix endless recursion. Pass
208         struct demangle_component as non const.
209         (d_make_empty): Initialize variable.
210         (d_print_comp_inner): Limit recursion.
211         (d_print_comp): Decrement variable.
212         * cp-demint.c (cplus_demangle_fill_component): Initialize
213         variable.
214         (cplus_demangle_fill_builtin_type): Likewise.
215         (cplus_demangle_fill_operator): Likewise.
216         * testsuite/demangle-expected: Add tests.
218 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
220         PR PR c++/70182
221         * cp-demangle.c (d_unqualified_name): Handle "on" for
222         operator names.
223         * testsuite/demangle-expected: Add tests.
225 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
227         PR c++/77489
228         * cp-demangle.c (d_discriminator): Handle discriminator >= 10.
229         * testsuite/demangle-expected: Add tests for discriminator.
231 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
233         Update copyright years.
235 2017-01-04  Alan Modra  <amodra@gmail.com>
237         * Makefile.in (configure_deps): Update.
238         * configure: Regenerate.
240 2016-12-13  Jakub Jelinek  <jakub@redhat.com>
242         PR c++/78761
243         * cp-demangle.c (cplus_demangle_type): Demangle Dc as decltype(auto).
244         * testsuite/demangle-expected: Add test for decltype(auto).
246 2016-12-12  Nathan Sidwell  <nathan@acm.org>
248         PR c++/78252
249         * cp-demangle.c (struct d_print_info): Add is_lambda_arg field.
250         (d_print_init): Initialize it.
251         (d_print_comp_inner) <DEMANGLE_COMPONENT_TEMPLATE_PARAM>: Check
252         is_lambda_arg for auto.
253         <DEMANGLE_COMPONENT_REFERENCE,
254         DEMANGLE_COMPONENT_RVALUE_REFERENCE>: Skip smashing check when
255         is_lambda_arg.
256         <DEMANGLE_COMPONENT_LAMBDA>: Increment is_lambda_arg around arg
257         printing.
258         * testsuite/demangle-expected: Add lambda auto mangling cases. 
260 2016-12-06  DJ Delorie  <dj@redhat.com>
262         * argv.c (expandargv): Check for directories passed as @-files.
264 2016-11-30  David Malcolm  <dmalcolm@redhat.com>
266         PR c/78498
267         * strndup.c (strlen): Delete decl.
268         (strnlen): Add decl.
269         (strndup): Call strnlen rather than strlen.
270         * xstrndup.c (xstrndup): Likewise.
272 2016-11-29  Nathan Sidwell  <nathan@acm.org>
274         * cp-demangle.c (d_print_comp_inner): Fix parameter indentation.
276 2016-11-03  David Tolnay <dtolnay@gmail.com>
277             Mark Wielaard  <mark@klomp.org>
279         * Makefile.in (CFILES): Add rust-demangle.c.
280         (REQUIRED_OFILES): Add rust-demangle.o.
281         * cplus-dem.c (libiberty_demanglers): Add rust_demangling case.
282         (cplus_demangle): Handle RUST_DEMANGLING.
283         (rust_demangle): New function.
284         * rust-demangle.c: New file.
285         * testsuite/Makefile.in (really-check): Add check-rust-demangle.
286         (check-rust-demangle): New rule.
287         * testsuite/rust-demangle-expected: New file.
289 2016-11-15  Mark Wielaard  <mark@klomp.org>
291         * cp-demangle.c (d_expression_1): Make sure third expression
292         exists for ?: and fold expressions.
293         * testsuite/demangle-expected: Add examples of strings that could
294         crash the demangler because of missing expression.
296 2016-11-14  Mark Wielaard  <mark@klomp.org>
298         * cplus-dem.c (demangle_signature): After 'H', template function,
299         no success and don't advance position if end of string reached.
300         (demangle_template): After 'z', template name, return zero on
301         premature end of string.
302         (gnu_special): Guard strchr against searching for zero characters.
303         (do_type): If member, only advance mangled string when 'F' found.
304         * testsuite/demangle-expected: Add examples of strings that could
305         crash the demangler by reading past end of input.
307 2016-11-06  Mark Wielaard  <mark@klomp.org>
309         * configure.ac (ac_libiberty_warn_cflags): Add -Wshadow=local.
310         * configure: Regenerated.
312 2016-11-07  Jason Merrill  <jason@redhat.com>
314         * cp-demangle.c (is_fnqual_component_type): New.
315         (d_encoding, d_print_comp_inner, d_print_mod_list): Use it.
316         (FNQUAL_COMPONENT_CASE): New.
317         (d_make_comp, has_return_type, d_print_comp_inner)
318         (d_print_function_type): Use it.
319         (next_is_type_qual): New.
320         (d_cv_qualifiers, d_print_mod): Handle noexcept and throw-spec.
322 2016-11-02  Mark Wielaard  <mjw@redhat.com>
324         * cplus-dem.c (demangle_signature): Move fall through comment.
325         (demangle_fund_type): Add fall through comment between 'G' and 'I'.
326         * hashtab.c (iterative_hash): Add fall through comments.
327         * regex.c (regex_compile): Add Fall through comment after '+'/'?'.
328         (byte_re_match_2_internal): Add Fall through comment after jump_n.
329         Change "Note fall through" to "Fall through".
330         (common_op_match_null_string_p): Return false after set_number_at
331         instead of fall through.
333 2016-11-01  Jason Merrill  <jason@redhat.com>
335         * cp-demangle.c (d_ctor_dtor_name): Handle inheriting constructor.
337 2016-10-31  Mark Wielaard  <mjw@redhat.com>
339         * cplus-dem.c (ada_demangle): Initialize demangled to NULL and
340         XDELETEVEC demangled when unknown.
342 2016-09-19  Andrew Stubbs  <ams@codesourcery.com>
344         * pex-win32.c (argv_to_cmdline): Quote zero-length parameters.
345         * testsuite/test-pexecute.c (main): Insert check for zero-length parameters.
347 2016-09-10  Mark Wielaard  <mjw@redhat.com>
349         * cp-demangle.c (d_substitution): Change struct demangle_component
350         variable name from c to dc.
352 2016-08-12  Marek Polacek  <polacek@redhat.com>
354         PR c/7652
355         * cp-demangle.c (d_print_mod): Add FALLTHRU.
357 2016-08-04  Marcel Böhme  <boehme.marcel@gmail.com>
359         PR c++/71696
360         * cplus-dem.c: Prevent infinite recursion when there is a cycle
361         in the referencing of remembered mangled types.
362         (work_stuff): New stack to keep track of the remembered mangled
363         types that are currently being processed.
364         (push_processed_type): New method to push currently processed
365         remembered type onto the stack.
366         (pop_processed_type): New method to pop currently processed
367         remembered type from the stack.
368         (work_stuff_copy_to_from): Copy values of new variables.
369         (delete_non_B_K_work_stuff): Free stack memory.
370         (demangle_args): Push/Pop currently processed remembered type.
371         (do_type): Do not demangle a cyclic reference and push/pop
372         referenced remembered type.
374 2016-07-29  Aldy Hernandez  <aldyh@redhat.com>
376         * make-relative-prefix.c (make_relative_prefix_1): Fall back to
377         malloc if alloca argument is greater than MAX_ALLOCA_SIZE.
379 2016-07-15  Jason Merrill  <jason@redhat.com>
381         * cp-demangle.c (cplus_demangle_operators): Add f[lrLR].
382         (d_expression_1): Handle them.
383         (d_maybe_print_fold_expression): New.
384         (d_print_comp_inner): Use it.
385         (d_index_template_argument): Handle negative index.
387         * cp-demangle.c (cplus_demangle_operators): Add sP and sZ.
388         (d_print_comp_inner): Handle them.
389         (d_template_args_1): Split out from d_template_args.
390         (d_args_length): New.
392 2016-07-13  Marcel Böhme  <boehme.marcel@gmail.com>
394         PR c++/70926
395         * cplus-dem.c: Handle large values and overflow when demangling
396         length variables.
397         (demangle_template_value_parm): Read only until end of mangled string.
398         (do_hpacc_template_literal): Likewise.
399         (do_type): Handle overflow when demangling array indices.
401 2016-06-12  Brooks Moses  <bmoses@google.com>
403         * cp-demangle.c (cplus_demangle_print_callback): Avoid zero-length
404           VLAs.
406 2016-05-31  Alan Modra  <amodra@gmail.com>
408         * xmemdup.c (xmemdup): Use xmalloc rather than xcalloc.
410 2016-05-19  Jakub Jelinek  <jakub@redhat.com>
412         PR c++/70498
413         * cp-demangle.c (d_expression_1): Formatting fix.
415 2016-05-18  Artemiy Volkov  <artemiyv@acm.org>
417         * cplus-dem.c (enum type_kind_t): Add tk_rvalue_reference
418         constant.
419         (demangle_template_value_parm): Handle tk_rvalue_reference
420         type kind.
421         (do_type): Support 'O' type id (rvalue references).
423         * testsuite/demangle-expected: Add tests.
425 2016-05-02  Marcel Böhme  <boehme.marcel@gmail.com>
427         PR c++/70498
428         * cp-demangle.c: Parse numbers as integer instead of long to avoid
429         overflow after sanity checks. Include <limits.h> if available.
430         (INT_MAX): Define if necessary.
431         (d_make_template_param): Takes integer argument instead of long.
432         (d_make_function_param): Likewise.
433         (d_append_num): Likewise.
434         (d_identifier): Likewise.
435         (d_number): Parse as and return integer.
436         (d_compact_number): Handle overflow.
437         (d_source_name): Change variable type to integer for parsed number.
438         (d_java_resource): Likewise.
439         (d_special_name): Likewise.
440         (d_discriminator): Likewise.
441         (d_unnamed_type): Likewise.
442         * testsuite/demangle-expected: Add regression test cases.
444 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
446         * configure: Remove SH5 support.
448 2016-04-08  Marcel Böhme  <boehme.marcel@gmail.com>
450         PR c++/69687
451         * cplus-dem.c: Include <limits.h> if available.
452         (INT_MAX): Define if necessary.
453         (remember_type, remember_Ktype, register_Btype, string_need):
454         Abort if we detect cases where we the size of the allocation would
455         overflow.
457         PR c++/70492
458         * cplus-dem.c (gnu_special): Handle case where consume_count returns
459         -1.
461 2016-03-31  Mikhail Maltsev  <maltsevm@gmail.com>
462             Marcel Bohme  <boehme.marcel@gmail.com>
464         PR c++/67394
465         PR c++/70481
466         * cplus-dem.c (squangle_mop_up): Zero bsize/ksize after freeing
467         btypevec/ktypevec.
468         * testsuite/demangle-expected: Add coverage tests.
470 2016-01-27  Iain Buclaw  <ibuclaw@gdcproject.org>
472         * d-demangle.c (dlang_call_convention): Handle extern Objective-C
473         function calling convention.
474         (dlang_call_convention_p): Likewise.
475         (dlang_type): Likewise.
476         * testsuite/d-demangle-expected: Add coverage tests.
478 2016-01-27  Iain Buclaw  <ibuclaw@gdcproject.org>
480         * d-demangle.c (dlang_function_args): Append ',' for variadic functions
481         only if parameters were seen before the elipsis symbol.
482         * testsuite/d-demangle-expected: Add coverage test for parameter-less
483         variadic functions.
485 2016-01-27  Iain Buclaw  <ibuclaw@gdcproject.org>
487         * d-demangle.c (dlang_type): Handle function types only in the context
488         of seeing a pointer type symbol.
489         * testsuite/d-demangle-expected: Update function pointer tests.
491 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
493         * argv.c (dupargv): Change arg to char * const *.  Update comment.
494         (writeargv, countargv): Likewise.
495         * functions.texi (dupargv, writeargv, countargv): Likewise.
497 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
499         * argv.c (dupargv): Replace strlen/xmalloc/strcpy with xstrdup.
501 2015-12-28  Patrick Palka  <ppalka@gcc.gnu.org>
503         * crc32.c: In the documentation, don't refer to GDB's
504         now-nonexistent crc32 implementation.  In the table-generation
505         program embedded within the documentation, change the type of
506         the induction variables i and j from int to unsigned int, to
507         avoid undefined behavior.
509 2015-12-21  Nick Clifton  <nickc@redhat.com>
511         PR 66827
512         * regex.c (EXTRACT_NUMBER): Cast sign byte to unsigned before left
513         shifting.
515 2015-11-27  Pedro Alves  <palves@redhat.com>
517         PR other/61321
518         PR other/61233
519         * cp-demangle.c (d_demangle_callback, d_make_comp): Handle
520         DEMANGLE_COMPONENT_CONVERSION.
521         (is_ctor_dtor_or_conversion): Handle DEMANGLE_COMPONENT_CONVERSION
522         instead of DEMANGLE_COMPONENT_CAST.
523         (d_operator_name): Return a DEMANGLE_COMPONENT_CONVERSION
524         component if handling a conversion.
525         (d_count_templates_scopes, d_print_comp_inner): Handle
526         DEMANGLE_COMPONENT_CONVERSION.
527         (d_print_comp_inner): Handle DEMANGLE_COMPONENT_CONVERSION instead
528         of DEMANGLE_COMPONENT_CAST.
529         (d_print_cast): Rename as ...
530         (d_print_conversion): ... this.  Adjust comments.
531         (d_print_cast): Rewrite - simply print the left subcomponent.
532         * cp-demint.c (cplus_demangle_fill_component): Handle
533         DEMANGLE_COMPONENT_CONVERSION.
535         * testsuite/demangle-expected: Add tests.
537 2015-11-12  Mike Stump  <mikestump@comcast.net>
539         * Makefile.in (etags tags TAGS): Use && instead of ;.
541 2015-11-09  Alan Modra  <amodra@gmail.com>
543         * configure.ac: Check size of size_t.
544         * configure: Regenerate.
545         * config.in: Regenerate.
547 2015-11-09  Alan Modra  <amodra@gmail.com>
549         * obstack.c (_obstack_newchunk): Silence -Wc++compat warning.
550         (_obstack_begin_worker): Likewise.  Move assignment to h->chunk
551         after alloc failure check.
553 2015-11-09  Alan Modra  <amodra@gmail.com>
555         PR gdb/17133
556         * obstack.c (__alignof__): Expand alignof_type from alignof.h.
557         (obstack_exit_failure): Don't use exitfail.h.
558         (_): Include libintl.h when HAVE_LIBINTL_H and nls enabled.
559         Provide default.  Don't include gettext.h.
560         (_Noreturn): Define.
561         * obstacks.texi: Adjust node references to external libc info files.
563 2015-11-09  Alan Modra  <amodra@gmail.com>
565         PR gdb/17133
566         * obstack.c: Import current gnulib file.
567         * obstacks.texi: Updated doc, from glibc's manual/memory.texi.
569 2015-11-06  Joel Brobecker  <brobecker@adacore.com>
571         * configure.ac: Set AC_CV_FUNC_GETPAGESIZE to "yes" on
572         Android hosts.
573         * configure: Regenerate.
575 2015-10-28  Jason Merrill  <jason@redhat.com>
577         * Makefile.in (TAGS): Fix for separate build directory.
579 2015-10-18  Roland McGrath  <roland@gnu.org>
580             Iain Sandoe  <iain@codesourcery.com>
582         PR other/63758
583         * pex-unix.c: Obtain the environment interface from settings in
584         environ.h rather than in-line code.  Update copyright date.
585         * setenv.c: Likewise.
586         * xmalloc.c: Likewise.
588 2015-09-30  Jason Merrill  <jason@redhat.com>
590         * cp-demangle.c (d_cv_qualifiers): Dx means transaction_safe.
591         (cplus_demangle_type): Let d_cv_qualifiers handle it.
592         (d_dump, d_make_comp, has_return_type, d_encoding)
593         (d_count_templates_scopes, d_print_comp_inner)
594         (d_print_mod_list, d_print_mod, d_print_function_type)
595         (is_ctor_or_dtor): Handle DEMANGLE_COMPONENT_TRANSACTION_SAFE.
597 2015-08-15  Ian Lance Taylor  <iant@google.com>
599         * cp-demangle.c (d_abi_tags): Preserve di->last_name across any
600         ABI tags.
602 2015-08-11  Iain Buclaw  <ibuclaw@gdcproject.org>
604         * d-demangle.c (dlang_parse_real): Remove call to strtod.
605         (strtod): Remove declaration.
606         * testsuite/d-demangle-expected: Update float and complex literal
607         tests to check correct hexadecimal demangling.
609 2015-07-13  Mikhail Maltsev  <maltsevm@gmail.com>
611         * cp-demangle.c (d_dump): Fix syntax error.
612         (d_identifier): Adjust type of len to match d_source_name.
613         (d_expression_1): Fix out-of-bounds access.  Check code variable for
614         NULL before dereferencing it.
615         (d_find_pack): Do not recurse for FIXED_TYPE, DEFAULT_ARG and NUMBER.
616         (d_print_comp_inner): Add NULL pointer check.
617         * cp-demangle.h (d_peek_next_char): Define as inline function when
618         CHECK_DEMANGLER is defined.
619         (d_advance): Likewise.
620         * testsuite/demangle-expected: Add new testcases.
622 2015-07-09  Uros Bizjak  <ubizjak@gmail.com>
624         * getruntime.c (RUSAGE_SELF): Define if not already defined.
625         (get_runtime): Use RUSAGE_SELF as argument 1 of getrusage call.
627 2015-06-01  Jason Merrill  <jason@redhat.com>
629         * cp-demangle.c (cplus_demangle_type): Handle arguments to vendor
630         extended qualifier.
632 2015-05-22  Yunlian Jiang  <yunlian@google.com>
634         * configure.ac: Add AC_GNU_SOURCE.
635         * Makefile.in (COMPILE.c): Add -D_GNU_SOURCE.
636         * configure, config.in: Rebuild.
637         * floatformat.c (_GNU_SOURCE): Don't define if already defined.
639 2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
641         * d-demangle.c (dlang_symbol_kinds): New enum.
642         (dlang_parse_symbol): Update signature.  Handle an ambiguity between
643         pascal functions and template value arguments.  Only check for a type
644         if parsing a function, or at the top level.  Return failure if the
645         entire symbol was not successfully demangled.
646         (dlang_identifier): Update signature.  Handle an ambiguity between two
647         adjacent digits in a mangled symbol string.
648         (dlang_type): Update call to dlang_parse_symbol.
649         (dlang_template_args): Likewise.
650         (dlang_parse_template): Likewise.
651         (dlang_demangle): Likewise.
652         * testsuite/d-demangle-expected: Fix bad tests found, and add problematic
653         examples to the unittests.
655 2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
657         * d-demangle.c (dlang_template_args): Skip over specialized template
658         parameters in mangled symbol.
659         * testsuite/d-demangle-expected: Add coverage and unittest for specialized
660         template parameters.
662 2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
664         * d-demangle.c (dlang_type): Handle cent and ucent types.
665         * testsuite/d-demangle-expected: Add coverage tests for cent and ucent.
667 2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
669         * d-demangle.c (dlang_attributes): Handle return attributes, ignoring
670         return parameters in the mangled string.  Return NULL if have encountered
671         an unknown attribute.
672         (dlang_function_args): Handle return parameters in the mangled string.
673         * testsuite/d-demangle-expected: Add coverage tests for functions with
674         return parameters and return attributes.
676 2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
678         * d-demangle.c (dlang_identifier): Check encoded length of identifier
679         to verify strncmp matches entire string.
680         * testsuite/d-demangle-expected: Fix wrong test for postblit symbol.
682 2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
684         * d-demangle.c (dlang_type_modifiers): New function.
685         (dlang_type_modifier_p): New function.
686         (dlang_call_convention_p): Ignore any kind of type modifier.
687         (dlang_type): Handle and emit the type modifier after delegate types.
688         (dlang_parse_symbol): Handle and emit the type modifier after the symbol.
689         * testsuite/d-demangle-expected: Add coverage tests for all valid
690         usages of function symbols with type modifiers.
692 2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
694         * d-demangle.c (dlang_call_convention): Return NULL if have reached the
695         end of the symbol, but expected something to read.
696         (dlang_attributes): Likewise.
697         (dlang_function_type): Likewise.
698         (dlang_type): Likewise.
699         (dlang_identifier): Likewise.
700         (dlang_value): Likewise.
702 2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
704         * d-demangle.c (dlang_parse_string): Represent embedded whitespace or
705         non-printable characters as hex or escape sequences.
706         * testsuite/d-demangle-expected: Add test for templates with tabs and
707         newlines embedded into the signature.
709 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
711         * mkstemps.c: #include <time.h> if HAVE_TIME_H is defined
712         but not HAVE_SYS_TIME_H.
714 2015-04-22  Eli Zaretskii  <eliz@gnu.org>
716         * setenv.c <environ>: Declare only if not a macro.
718 2015-04-14  Max Ostapenko  <m.ostapenko@partner.samsung.com>
720         * testsuite/Makefile.in (LIBCFLAGS): Add LDFLAGS.
722 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
723             Iain Sandoe  <iain@codesourcery.com>
725         PR target/65351
726         * configure: Regenerate.
728 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
729             Iain Sandoe  <iain@codesourcery.com>
731         PR target/65351
732         * configure: Regenerate.
734 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
736         * strerror.c <sys_nerr, sys_errlist>: Declare only if they aren't
737         macros.
739 2014-12-24  Uros Bizjak  <ubizjak@gmail.com>
740             Ben Elliston  <bje@au.ibm.com>
741             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
743         * xasprintf.c: New file.
744         * Makefile.in (CFILES): Add xasprintf.c.
745         (REQUIRED_OFILES): Add xasprintf.$(objext).
746         (xasprintf.$(objext)): New target.
747         * functions.texi: Regenerate.
749 2014-12-11  Uros Bizjak  <ubizjak@gmail.com>
750             Ben Elliston  <bje@au.ibm.com>
751             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
753         * xvasprintf.c: New file.
754         * vprintf-support.h: Likewise.
755         * vprintf-support.c: Likewise.
756         * Makefile.in (CFILES): Add vprintf-support.c, xvasprintf.c.
757         (REQUIRED_OFILES): Add vprintf-support.$(objext), xvasprintf.$(objext).
758         (vprintf-support.$(objext), xvasprintf.$(objext)): New targets.
759         (vasprintf.$(objext)): Depend on $(srcdir)/vprintf-support.h.
760         * functions.texi: Regenerate.
761         * vasprintf.c (int_vasprintf): Use libiberty_vprintf_buffer_size.
763 2014-11-22  John David Anglin  <danglin@gcc.gnu.org>
765         PR other/63694
766         * configure.ac: Check for strtol, strtoul, strtoll and strtoull
767         declarations.
768         * configure: Regenerated.
770 2014-11-12  Kirill Yukhin  <kirill.yukhin@intel.com>
772         * testsuite/test-strtol.c (run_tests): Cast strtol return to
773         unsigned long.
775 2014-11-11  Anthony Brandon  <anthony.brandon@gmail.com>
776             Manuel López-Ibáñez  <manu@gcc.gnu.org>
778         PR driver/36312
779         * filename_cmp.c (canonical_filename_eq): New function to check if
780         file names are the same.
781         * functions.texi: Updated with documentation for new function.
783 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
785         * ChangeLog.jit: New.
787 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
789         * sigsetmask.c (_POSIX_SOURCE): Remove.
791 2014-10-28  Yury Gribov  <y.gribov@samsung.com>
793         * strtoll.c: New file.
794         * strtoull.c: New file.
795         * configure.ac: Add long long checks.  Add harness for strtoll and
796         strtoull.  Check decls for strtol, strtoul, strtoll, strtoull.
797         * Makefile.in (CFILES, CONFIGURED_OFILES): Add strtoll and strtoull.
798         * config.in: Regenerate.
799         * configure: Regenerate.
800         * functions.texi: Regenerate.
801         * testsuite/Makefile.in (check-strtol): New rule.
802         (test-strtol): Likewise.
803         (mostlyclean): Clean up strtol test.
804         * testsuite/test-strtol.c: New test.
806 2014-10-15  David Malcolm  <dmalcolm@redhat.com>
808         * choose-temp.c (choose_tmpdir): Remove now-redundant local
809         copy of prototype.
810         * functions.texi: Regenerate.
811         * make-temp-file.c (choose_tmpdir): Convert return type from
812         char * to const char * - given that this returns a pointer to
813         a memoized allocation, the caller must not touch it.
815 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
817         * d-demangle.c: Replace strtold with strtod in global comment.
818         (strtold): Remove declaration.
819         (strtod): New declaration.
820         (dlang_parse_real): Declare value as double instead of long
821         double.  Replace call to strtold by call to strtod.
822         Update format in call to snprintf.
824 2014-09-26  Jason Merrill  <jason@redhat.com>
826         * cp-demangle.c (d_substitution): Handle abi tags on abbreviation.
828 2014-09-26  Max Ostapenko  <m.ostapenko@partner.samsung.com>
830         * pex-common.h (struct pex_funcs): Add new parameter for open_write field.
831         * pex-unix.c (pex_unix_open_write): Add support for new parameter.
832         * pex-djgpp.c (pex_djgpp_open_write): Likewise.
833         * pex-win32.c (pex_win32_open_write): Likewise.
834         * pex-common.c (pex_run_in_environment): Likewise.
836 2014-09-23  Iain Buclaw  <ibuclaw@gdcproject.org>
838         * Makefile.in (CFILES): Add d-demangle.c.
839         (REQUIRED_OFILES): Add d-demangle.o.
840         * cplus-dem.c (libiberty_demanglers): Add dlang_demangling case.
841         (cplus_demangle): Likewise.
842         * d-demangle.c: New file.
843         * testsuite/Makefile.in (really-check): Add check-d-demangle.
844         * testsuite/d-demangle-expected: New file.
846 2014-09-19  Ian Lance Taylor  <iant@google.com>
848         * simple-object-elf.c (simple_object_elf_write_ehdr): Correctly
849         handle objects with more than SHN_LORESERVE sections.
850         (simple_object_elf_write_shdr): Add sh_link parameter.
851         (simple_object_elf_write_to_file): Correctly handle objects with
852         more than SHN_LORESERVE sections.
854 2014-08-29  Andrew Burgess  <aburgess@broadcom.com>
856         * cp-demangle.c (d_dump): Only access field from s_fixed part of
857         the union for DEMANGLE_COMPONENT_FIXED_TYPE.
858         (d_count_templates_scopes): Likewise.
860 2014-08-13  Gary Benson  <gbenson@redhat.com>
862         * testsuite/demangler-fuzzer.c: New file.
863         * testsuite/Makefile.in (fuzz-demangler): New rule.
864         (demangler-fuzzer): Likewise.
865         (mostlyclean): Clean up demangler fuzzer.
867 2014-06-11  Andrew Burgess  <aburgess@broadcom.com>
869         * cplus-dem.c (do_type): Call string_delete even if the call to
870         demangle_template fails.
872 2014-06-01  Ray Donnelly  <mingw.android@gmail.com>
874         * pex-win32.c (argv_to_cmdline): Don't quote
875         args unnecessarily
877 2014-05-28  Pedro Alves  <palves@redhat.com>
879         * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM
880         and DEMANGLE_COMPONENT_NUMBER.
882 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
884         * testsuite/demangle-expected: Fix last commit.
886 2014-05-14  Andrew Burgess  <aburgess@broadcom.com>
888         * cplus-dmem.c (internal_cplus_demangle): Free any resources
889         allocated by possible previous call to gnu_special.
890         (squangle_mop_up): Reset pointers to NULL after calling free.
891         * testsuite/demangle-expected: New test case.
893 2014-05-08  Gary Benson  <gbenson@redhat.com>
895         * cp-demangle.c (struct d_component_stack): New structure.
896         (struct d_print_info): New field component_stack.
897         (d_print_init): Initialize the above.
898         (d_print_comp_inner): Renamed from d_print_comp.
899         Do not restore template stack if it would cause a loop.
900         (d_print_comp): New function.
901         * testsuite/demangle-expected: New test cases.
903 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
905         PR sanitizer/56781
906         * maint-tool: Also emit rule for noasan/ subdirectory.
907         * configure.ac (NOASANFLAG): Set and substitute.
908         * Makefile.in: Regenerated.
909         (NOASANFLAG): Set.
910         (all, $(TARGETLIB), mostlyclean): Handle noasan subdir like pic
911         subdir.
912         (stamp-noasandir): New goal.
913         * configure: Regenerated.
915 2014-04-01  Richard Biener  <rguenther@suse.de>
917         * simple-object.c (simple_object_internal_write): Handle
918         EINTR and short writes.
920 2014-03-28  Richard Biener  <rguenther@suse.de>
922         * simple-object.c (simple_object_internal_read): Handle
923         EINTR and short reads.
925 2014-03-13  Uros Bizjak  <ubizjak@gmail.com>
927         * regex.c (bzero) [!_LIBC]: Define without coma expression.
928         (regerror): Cast the call to memcpy to (void) to avoid unused
929         value warnings.
931 2014-01-28  Thomas Schwinge  <thomas@codesourcery.com>
933         * cp-demangle.c (d_demangle_callback): Put an abort call in place,
934         to help the compiler.
936 2014-01-21  Tom Tromey  <tromey@redhat.com>
938         * _doprint.c (checkit): Use stdarg, not VA_* macros.
939         * asprintf.c (asprintf): Use stdarg, not VA_* macros.
940         * concat.c (concat_length, concat_copy, concat_copy2, concat)
941         (reconcat): Use stdarg, not VA_* macros.
942         * snprintf.c (snprintf): Use stdarg, not VA_* macros.
943         * vasprintf.c (checkit): Use stdarg, not VA_* macros.
944         * vsnprintf.c (checkit): Use stdarg, not VA_* macros.
946 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
948         PR other/56780
949         * configure.ac: Delete target_header_dir assignment.
950         * configure: Regenerated.
952 2014-01-06  Gary Benson  <gbenson@redhat.com>
954         * cp-demangle.c (struct d_print_info): New fields
955         next_saved_scope, copy_templates, next_copy_template and
956         num_copy_templates.
957         (d_count_templates): New function.
958         (d_print_init): New parameter "dc".
959         Estimate numbers of templates and scopes required.
960         (d_print_free): Removed function.
961         (cplus_demangle_print_callback): Allocate stack for
962         templates and scopes.  Removed call to d_print_free.
963         (d_copy_templates): Removed function.
964         (d_save_scope): New function.
965         (d_get_saved_scope): Likewise.
966         (d_print_comp): Replace state saving/restoring code with
967         calls to d_save_scope and d_get_saved_scope.
969 2013-12-23  Bill Maddox  <maddox@google.com>
971         * cp-demangle.c (cplus_demangle_fill_ctor,cplus_demangle_fill_dtor):
972         Handle unified ctor/dtor.
973         (d_ctor_dtor_name): Handle unified ctor/dtor.
975 2013-11-22  Cary Coutant  <ccoutant@google.com>
976     
977         PR other/59195
978         * cp-demangle.c (struct d_info_checkpoint): New struct.
979         (struct d_print_info): Add current_template field.
980         (d_operator_name): Set flag when processing a conversion
981         operator.
982         (cplus_demangle_type): When processing <template-args> for
983         a conversion operator, backtrack if necessary.
984         (d_expression_1): Renamed from d_expression.
985         (d_expression): New wrapper around d_expression_1.
986         (d_checkpoint): New function.
987         (d_backtrack): New function.
988         (d_print_init): Initialize current_template.
989         (d_print_comp): Set current_template.
990         (d_print_cast): Put current_template in scope for
991         printing conversion operator name.
992         (cplus_demangle_init_info): Initialize is_expression and
993         is_conversion.
994         * cp-demangle.h (struct d_info): Add is_expression and
995         is_conversion fields.
996         * testsuite/demangle-expected: New test cases.
998 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
1000         * configure: Regenerate.
1002 2013-11-12  Uros Bizjak  <ubizjak@gmail.com>
1004         * cp-demangle.c (d_copy_templates): Cast result of malloc
1005         to (struct d_print_template *).
1006         (d_print_comp): Cast result of realloc to (struct d_saved scope *).
1008 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
1010         PR tree-optimization/58689
1011         * concat.c: Remove note about xmalloc.
1013 2013-10-27  Gerald Pfeifer  <gerald@pfeifer.com>
1015         * testsuite/test-demangle.c: Include unistd.h.
1017 2013-10-25  Gary Benson  <gbenson@redhat.com>
1019         * cp-demangle.c (struct d_saved_scope): New structure.
1020         (struct d_print_info): New fields saved_scopes and
1021         num_saved_scopes.
1022         (d_print_init): Initialize the above.
1023         (d_print_free): New function.
1024         (cplus_demangle_print_callback): Call the above.
1025         (d_copy_templates): New function.
1026         (d_print_comp): New variables saved_templates and
1027         need_template_restore.
1028         [DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_RVALUE_REFERENCE]:
1029         Capture scope the first time the component is traversed, and use the
1030         captured scope for subsequent traversals.
1031         * testsuite/demangle-expected: Add regression test.
1033 2013-10-23  Gerald Pfeifer  <gerald@pfeifer.com>
1035         * testsuite/test-expandargv.c: Include unistd.h.
1037 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
1039         * configure.ac: If --enable-host-shared, use -fPIC.
1040         * configure: Regenerate.
1042 2013-10-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
1044         * cp-demangle.c (d_name): Demangle local-source-names.
1045         * testsuite/demangle-expected: New test.
1047 2013-09-10  Paolo Carlini  <paolo.carlini@oracle.com>
1049         PR bootstrap/58386
1050         Revert:
1052         2013-09-10  Gary Benson  <gbenson@redhat.com>
1054         * cp-demangle.c: Include hashtab.h.
1055         (struct d_print_info): New field saved_scopes.
1056         (d_print_init): Initialize the above.
1057         (d_print_free): New function.
1058         (cplus_demangle_print_callback): Call the above.
1059         (struct d_saved_scope): New structure.
1060         (d_store_scope): New function.
1061         (d_free_scope) Likewise.
1062         (d_restore_scope) Likewise.
1063         (d_hash_saved_scope) Likewise.
1064         (d_equal_saved_scope) Likewise.
1065         (d_print_comp): New variable saved_scope.
1066         [DEMANGLE_COMPONENT_REFERENCE,
1067         DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
1068         time the component is traversed, and use the captured scope for
1069         subsequent traversals.
1070         * testsuite/demangle-expected: Add regression test.
1072 2013-09-10  Gary Benson  <gbenson@redhat.com>
1074         * cp-demangle.c: Include hashtab.h.
1075         (struct d_print_info): New field saved_scopes.
1076         (d_print_init): Initialize the above.
1077         (d_print_free): New function.
1078         (cplus_demangle_print_callback): Call the above.
1079         (struct d_saved_scope): New structure.
1080         (d_store_scope): New function.
1081         (d_free_scope) Likewise.
1082         (d_restore_scope) Likewise.
1083         (d_hash_saved_scope) Likewise.
1084         (d_equal_saved_scope) Likewise.
1085         (d_print_comp): New variable saved_scope.
1086         [DEMANGLE_COMPONENT_REFERENCE,
1087         DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
1088         time the component is traversed, and use the captured scope for
1089         subsequent traversals.
1090         * testsuite/demangle-expected: Add regression test.
1092 2013-08-20  Alan Modra  <amodra@gmail.com>
1094         * floatformat.c (floatformat_ibm_long_double): Rename to..
1095         (floatformat_ibm_long_double_big): ..this.
1096         (floatformat_ibm_long_double_little): New.
1098 2013-07-09  Tristan Gingold  <gingold@adacore.com>
1100         * makefile.vms (OBJS): Add dwarfnames.obj
1102 2013-05-31  Matt Burgess <matthew@linuxfromscratch.org>
1104         PR other/56780
1105         * configure.ac: Move test for --enable-install-libiberty
1106         outside of the 'with_target_subdir' test so that it actually gets
1107         run.  Add output messages to show the test result.
1108         * configure: Regenerate.
1109         * Makefile.in (install_to_libdir): Place the
1110         installation of the libiberty library in the same guard as that
1111         used for the headers to prevent it being installed unless
1112         requested via --enable-install-libiberty.
1114 2013-05-06  David Edelsohn  <dje.gcc@gmail.com>
1115             Peter Bergner  <bergner@vnet.ibm.com>
1116             Segher Boessenkool  <segher@kernel.crashing.org>
1117             Jakub Jelinek  <jakub@redhat.com>
1119         * hashtab.c (hash_pointer): Remove conditional and avoid
1120         unexecuted shift equal to wordsize.
1122 2013-04-22  Andi Kleen  <ak@linux.intel.com>
1124         * hashtab.c (hash_pointer): Move to end of file and reimplement.
1126 2013-04-03  Jason Merrill  <jason@redhat.com>
1128         * cp-demangle.c (cplus_demangle_type): Fix function quals.
1129         (d_pointer_to_member_type): Simplify.
1131         Demangle C++11 ref-qualifier.
1132         * cp-demangle.c (d_ref_qualifier): New.
1133         (d_nested_name, d_function_type): Use it.
1134         (d_parmlist): Don't get confused by a ref-qualifier.
1135         (cplus_demangle_type): Reorder ref-qualifier.
1136         (d_pointer_to_member_type): Likewise.
1137         (d_dump): Handle DEMANGLE_COMPONENT_REFERENCE_THIS and
1138         DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS.
1139         (d_make_comp, has_return_type, d_encoding): Likewise.
1140         (d_print_comp, d_print_mod_list, d_print_mod): Likewise.
1141         (d_print_function_type, is_ctor_or_dtor): Likewise.
1143 2013-03-27  Kai Tietz  <ktietz@redhat.com>
1145         * configure: Regenerated.
1147 2013-03-06  Tobias Burnus  <burnus@net-b.de>
1149         * libiberty.texi: Update comment, remove lowersections.
1150         * obstacks.texi: Regenerate.
1152 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
1154         PR middle-end/56526
1155         * simple-object-mach-o.c (simple_object_mach_o_segment): Initialize
1156         wrapper_sect_offset to avoid a warning.
1158 2013-03-01  Andreas Schwab  <schwab@linux-m68k.org>
1160         * obstacks.texi (Obstacks): Trim @node to only contain the
1161         node name.
1162         * libiberty.texi (Obstacks): Lower section.
1164 2013-02-14  Jason Merrill  <jason@redhat.com>
1166         * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DEFAULT_ARG.
1167         (d_print_comp): Likewise.
1169 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
1171         PR other/56245
1172         * regex.c (PTR_INT_TYPE): Define.
1173         (EXTEND_BUFFER): Change incr type from int to PTR_INT_TYPE.
1175 2013-01-31  Kai Tietz  <ktietz@redhat.com>
1177         PR other/54620
1178         * sha1.c (sha1_process_block):  Handle case that size_t is
1179         a wider-integer-scalar as a 32-bit unsigned integer.
1181         PR other/53413
1182         * md5.c (md5_process_block):  Handle case that size_t is
1183         a wider-integer-scalar a 32-bit unsigned integer.
1185 2013-01-04  Ian Lance Taylor  <iant@google.com>
1187         PR other/54800
1188         * simple-object-mach-o.c (simple_object_mach_o_segment): Don't
1189         bother to zero out a buffer we are about to set anyhow.
1191 2013-01-01  David Edelsohn  <dje.gcc@gmail.com>
1193         * simple-object-xcoff.c: New file.
1194         * Makefile.in: Add it to build machinery.
1195         * simple-object-common.h (simple_object_xcoff_functions): Declare.
1196         * simple-object.c (format_functions): Add
1197         simple_object_xcoff_functions.
1199 2012-11-10  Jason Merrill  <jason@redhat.com>
1201         * cp-demangle.c (d_unqualified_name): Handle abi tags here.
1202         (d_name): Not here.
1204 2012-11-09  Jason Merrill  <jason@redhat.com>
1206         * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_TAGGED_NAME.
1207         (d_make_comp, d_find_pack, d_print_comp): Likewise.
1208         (d_abi_tags): New.
1209         (d_name): Call it.
1211 2012-10-08  Jason Merrill  <jason@redhat.com>
1213         * cp-demangle.c (d_special_name, d_dump): Handle TH and TW.
1214         (d_make_comp, d_print_comp): Likewise.
1216 2012-09-18  Ian Lance Taylor  <iant@google.com>
1218         * strnlen.c: New file.
1219         * configure.ac: Check for strnlen, add it to AC_LIBOBJ if it's not
1220         present.
1221         * Makefile.in: Rebuild dependencies.
1222         (CFILES): Add strnlen.c.
1223         (CONFIGURED_OFILES): Add ./strnlen.$(objext).
1224         * configure, config.in, functions.texi: Rebuild.
1226         * maint-tool: Accept .def files in the include directory.
1228 2012-09-18  Florian Weimer  <fweimer@redhat.com>
1230         PR other/54411
1231         * objalloc.c (_objalloc_alloc): Add overflow check covering
1232         alignment and CHUNK_HEADER_SIZE addition.
1234 2011-08-28  H.J. Lu  <hongjiu.lu@intel.com>
1236         * argv.c (dupargv): Replace malloc with xmalloc.  Don't check
1237         xmalloc return.
1238         (buildargv): Likewise.  Also replace strdup with xstrdup.
1239         (expandargv): Don't check dupargv return.
1241 2011-08-28  H.J. Lu  <hongjiu.lu@intel.com>
1243         PR binutils/14526
1244         * argv.c (buildargv): Replace alloca with xmalloc/free.
1246 2012-08-17  Andreas Schwab  <schwab@linux-m68k.org>
1248         * floatformat.c (floatformat_to_double): Correctly handle numbers
1249         between 1 and 2.  Simplify handling of denormal number.
1250         (main): Test with 1.1.
1252 2012-07-31  Mike Frysinger  <vapier@gentoo.org>
1254         * md5.c (md5_finish_ctx): Declare swap_bytes.  Assign SWAP() output
1255         to swap_bytes, and then call memcpy to move it to ctx->buffer.
1257 2012-07-26  Kazu Hirata  <kazu@codesourcery.com>
1258             Sandra Loosemore  <sandra@codesourcery.com>
1260         * pex-win32.c (pex_win32_exec_child): Only close original file
1261         descriptors if child is launched successfully.
1263 2012-07-18  Jason Merrill  <jason@redhat.com>
1265         * cp-demangle.c (cplus_demangle_operators): Add *_cast.
1266         (op_is_new_cast): New.
1267         (d_expression, d_print_comp): Check it.
1269 2012-07-13  Doug Evans  <dje@google.com>
1271         * filename_cmp.c (filename_hash, filename_eq): New functions.
1273 2012-06-29  Andreas Schwab  <schwab@linux-m68k.org>
1275         * copying-lib.texi (Library Copying): Don't use @heading inside
1276         @enumerate.
1278 2012-05-22  Tom Tromey  <tromey@redhat.com>
1280         http://sourceware.org/bugzilla/show_bug.cgi?id=14065
1281         * testsuite/demangle-expected: Add regression test.
1282         * cp-demangle.c (d_find_pack): Return NULL for
1283         DEMANGLE_COMPONENT_UNNAMED_TYPE.
1285 2012-04-27  Tom Tromey  <tromey@redhat.com>
1287         * dwarfnames.c: New file.
1288         * Makefile.in (CFILES): Add dwarfnames.
1289         (REQUIRED_OFILES): Add dwarfnames.
1290         (./dwarfnames.$(objext)): New target.
1292 2012-04-04  Tristan Gingold  <gingold@adacore.com>
1294         * pex-unix.c (to_ptr32): Fix style.
1296 2012-04-02  Tristan Gingold  <gingold@adacore.com>
1298         * stack-limit.c: Includes ansidecl.h.
1299         (stack_limit_increase): Add ATTRIBUTE_UNUSED
1301 2012-03-20  Jason Merrill  <jason@redhat.com>
1303         * cp-demangle.c (cplus_demangle_type): Handle 'auto'.
1305 2012-03-07  Jason Merrill  <jason@redhat.com>
1307         * cp-demangle.c (cplus_demangle_operators): Add li.
1308         (d_unqualified_name): Handle it specially.
1310 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
1312         * make-relative-prefix.c (make_relative_prefix_1): Avoid warning
1313         about using preprocessor directives inside of macro arguments.
1315 2012-01-22  Douglas B Rupp  <rupp@gnat.com>
1317         * configure: Regenerate.
1319 2012-01-10  Jason Merrill  <jason@redhat.com>
1321         * cp-demangle.c (d_print_comp) [DEMANGLE_COMPONENT_OPERATOR]:
1322         Omit a trailing space in the operator name.
1324 2012-01-06  Jason Merrill  <jason@redhat.com>
1326         PR c++/6057
1327         PR c++/48051
1328         PR c++/50855
1329         PR c++/51322
1330         * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_NULLARY and
1331         DEMANGLE_COMPONENT_INITIALIZER_LIST.
1332         (d_make_comp): Likewise.  Allow null right arg for
1333         DEMANGLE_COMPONENT_TRINARY_ARG2.
1334         (cplus_demangle_operators): Adjust new/delete; add .*, :: and throw.
1335         (d_template_args, d_template_arg): Handle 'J' for argument packs.
1336         (d_exprlist): Add terminator parm.
1337         (d_expression, d_print_comp): Handle initializer lists, nullary
1338         expressions, prefix/suffix operators, and new.
1339         (d_print_subexpr): Avoid parens around DEMANGLE_COMPONENT_QUAL_NAME
1340         and DEMANGLE_COMPONENT_INITIALIZER_LIST.
1341         * testsuite/demangle-expected: Add tests.
1343         * cp-demangle.c (cplus_demangle_type): decltype, pack expansion
1344         and vector are substitutable.
1345         (cplus_demangle_operators): Sort.
1347 2012-01-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1349         * configure: Regenerate.
1351 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
1353         * make-relative-prefix.c (make_relative_prefix_1): Avoid
1354         stack overflow if PATH contains just a single entry and
1355         HOST_EXECUTABLE_SUFFIX needs to be used.
1357         PR driver/48306
1358         * make-relative-prefix.c: Include sys/stat.h.
1359         (make_relative_prefix_1): If access succeeds, check also stat
1360         if nstore is a regular file.
1362 2011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
1364         * configure: Regenerate.
1366 2011-12-20  Tristan Gingold  <gingold@adacore.com>
1368         * aclocal.m4: Assume strncmp works in cross case.
1369         * configure: Regenerate
1371 2011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
1373         * configure: Regenerate.
1375 2011-11-07  Richard Henderson  <rth@redhat.com>
1377         Merged from transactional-memory.
1379         * cp-demangle.c (cplus_demangle_fill_ctor): Accept
1380         gnu_v3_object_ctor_group.
1381         (cplus_demangle_fill_dtor): Accept gnu_v3_object_dtor_group.
1382         (d_ctor_dtor_name): Recognize gnu_v3_object_ctor_group
1383         and gnu_v3_object_dtor_group.
1384         (d_dump): Handle DEMANGLE_COMPONENT_TRANSACTION_CLONE
1385         and DEMANGLE_COMPONENT_NONTRANSACTION_CLONE.
1386         (d_make_comp, d_print_comp): Likewise.
1387         (d_special_name): Generate them.
1389 2011-11-04  Jason Merrill  <jason@redhat.com>
1391         PR c++/48370
1392         * cp-demangle.c (d_special_name, d_print_comp): Handle a
1393         discriminator number on DEMANGLE_COMPONENT_REFTEMP.
1395 2011-11-02  Doug Evans  <dje@google.com>
1397         * Makefile.in (CFILES): Add timeval-utils.c.
1398         (REQUIRED_OFILES): Add timeval-utils.$(objext).
1399         (INSTALLED_HEADERS): Add timeval-utils.h.
1400         (timeval-utils.$(objext)): Add rule.
1402 2011-10-28  Ian Lance Taylor  <iant@google.com>
1404         * setproctitle.c (setproctitle): Use "GNU/Linux" in comment.
1406 2011-10-26  Iain Sandoe  <iains@gcc.gnu.org>
1408         PR target/48108
1409         * simple-object-mach-o.c  (GNU_WRAPPER_SECTS, GNU_WRAPPER_INDEX,
1410         GNU_WRAPPER_NAMES): New macros.
1411         (simple_object_mach_o_segment): Handle wrapper scheme.
1412         (simple_object_mach_o_write_section_header): Allow the segment name
1413         to be supplied.
1414         (simple_object_mach_o_write_segment): Handle wrapper scheme.  Ensure
1415         that the top-level segment name in the load command is empty.
1416         (simple_object_mach_o_write_to_file): Determine the number of
1417         sections during segment output, use that in writing the header.
1419 2011-10-10  Ian Lance Taylor  <iant@google.com>
1421         PR c++/48665
1422         * cp-demangle.c (d_cv_qualifiers): If qualifiers are applied to a
1423         function type, change them to apply to the "this" parameter.
1424         * testsuite/demangle-expected: Add test case.
1426 2011-09-28  Doug Evans  <dje@google.com>
1428         * timeval-utils.c: New file.
1430         * argv.c (countargv): New function.
1432 2011-09-23  Cary Coutant  <ccoutant@google.com>
1434         PR 40831
1435         * cp-demangle.c (d_make_comp): Add new component type.
1436         (cplus_demangle_mangled_name): Check for clone suffixes.
1437         (d_parmlist): Don't error out if we see '.'.
1438         (d_clone_suffix): New function.
1439         (d_print_comp): Print info for clone suffixes.
1440         * testsuite/demangle-expected: Add new testcases.
1442 2011-09-23  Ian Lance Taylor  <iant@google.com>
1443             Pierre Vittet  <piervit@pvittet.com>
1445         * md5.c (md5_process_bytes): Correct handling of unaligned
1446         buffer.
1448 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1450         * aclocal.m4: Include ../config/picflag.m4.
1451         * configure.ac (GCC_PICFLAG): Call it.
1452         (enable_shared): Clear PICFLAG unless shared.
1453         * configure: Regenerate.
1455 2011-08-12  Steve Ellcey  <sje@cup.hp.com>
1457         * md5.c (md5_read_ctx): Handle mis-aligned resbuf pointer.
1459 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
1461         * testsuite/test-expandargv.c (writeout_test): Check result of fwrite.
1463 2011-08-01  Jason Merrill  <jason@redhat.com>
1465         PR c++/49932
1466         * cp-demangle.c (d_prefix): Handle decltype.
1467         * testsuite/demangle-expected: Test it.
1469 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1471         * testsuite/demangle-expected: Remove an extra line.
1473 2011-07-26  Ian Lance Taylor  <iant@google.com>
1475         * cp-demangle.c (d_print_init): Initialize pack_index field.
1476         (d_print_comp): Check for NULL template argument.
1477         * testsuite/demangle-expected: Add test case.
1479 2011-07-22  Gerald Pfeifer  <gerald@pfeifer.com>
1481         PR target/49817
1482         * stack-limit.c: Include <stdint.h>.
1484 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
1486         PR c++/49756
1487         * stack-limit.c: New file.
1488         * Makefile.in: Regenerate deps.
1489         (CFILES): Add stack-limit.c.
1490         (REQUIRED_OFILES): Add ./stack-limit.$(objext).
1491         * configure.ac (checkfuncs): Add getrlimit and setrlimit.
1492         (AC_CHECK_FUNCS): Likewise.
1493         * configure: Regenerated.
1494         * config.in: Regenerated.
1496 2011-07-04  Jason Merrill  <jason@redhat.com>
1498         * cp-demangle.c (d_expression): Handle 'this'.
1499         (d_print_comp) [DEMANGLE_COMPONENT_FUNCTION_PARAM]: Likewise.
1501 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
1503         * filename_cmp.c (filename_cmp, filename_ncmp): Add handling of
1504         HAVE_CASE_INSENSITIVE_FILE_SYSTEM.
1506 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1508         PR debug/49408
1509         * cp-demangle.c (d_print_comp): Suppress argument list for function
1510         references by the '&' unary operator.  Keep also already processed
1511         variant without the argument list.  Suppress argument list types for
1512         function call used in an expression.
1513         * testsuite/demangle-expected: Fix excessive argument list types in
1514         `test for typed function in decltype'.  New testcase for no argument
1515         list types printed.  3 new testcases for function references by the
1516         '&' unary operator..
1518 2011-06-20  Jason Merrill  <jason@redhat.com>
1520         PR c++/37089
1521         * cp-demangle.c (d_print_comp): Handle reference smashing.
1522         * testsuite/demangle-expected: Test it.
1524 2011-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1526         * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>:
1527         Suppress d_print_mod for DMGL_RET_POSTFIX.
1528         * testsuite/demangle-expected: New testcases for --ret-postfix.
1530 2011-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1532         * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: Do
1533         not pass DMGL_RET_POSTFIX or DMGL_RET_DROP.  Support DMGL_RET_DROP.
1534         * testsuite/demangle-expected: New testcases for --ret-drop.
1535         * testsuite/test-demangle.c: Document --ret-drop in a comment.
1536         (main): New variable ret_drop, fill it, call cplus_demangle with it.
1538 2011-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1540         * cp-demangle.c (struct d_print_info): Remove field options.
1541         (d_print_init): Remove parameter options.
1542         (cplus_demangle_print_callback): Update all the callers.
1543         (d_print_comp, d_print_mod_list, d_print_mod, d_print_function_type)
1544         (d_print_array_type, d_print_expr_op, d_print_cast, d_print_subexpr):
1545         Add parameter options, update all the callers.
1547 2011-04-20  Jim Meyering  <meyering@redhat.com>
1549         * cp-demint.c (cplus_demangle_v3_components): Remove useless
1550         if-before-free.
1551         * cplus-dem.c (squangle_mop_up): Likewise.
1552         (delete_non_B_K_work_stuff): Likewise.
1553         * pex-common.c (pex_free): Likewise.
1554         * pex-msdos.c (pex_msdos_cleanup): Likewise.
1555         * pex-win32.c (mingw_rootify, msys_rootify): Likewise.
1556         (win32_spawn): Likewise.
1557         * regex.c (FREE_VAR, weak_alias): Likewise.
1558         * spaces.c (spaces): Likewise.
1560 2011-04-10  Jim Meyering  <meyering@redhat.com>
1562         Avoid memory overrun in a test leading to potential double-free.
1563         * testsuite/test-expandargv.c (writeout_test): Fix off-by-one error:
1564         i.e., do copy the trailing NUL byte.
1566 2011-03-31  Tristan Gingold  <gingold@adacore.com>
1568         * makefile.vms (OBJS): Add filename_cmp.obj
1570 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
1572         * filename_cmp.c (filename_ncmp): New function.
1573         * functions.texi: Regenerated.
1575 2011-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1577         * splay-tree.c: Escape wrapping newlines in texinfo markup
1578         with '@', to fix function declaration output rendering.
1579         * gather-docs: Relax and improve macro name matching to actually
1580         match all current names and to allow input line wrapping.
1581         * bsearch.c, concat.c, crc32.c, fnmatch.txh, fopen_unlocked.c,
1582         hashtab.c, insque.c, make-relative-prefix.c, memchr.c, memcmp.c,
1583         memcpy.c, memmem.c, memmove.c, mempcpy.c, memset.c,
1584         pexecute.txh, random.c, setenv.c, setproctitle.c,
1585         simple-object.txh, snprintf.c, stpncpy.c, strncmp.c, strtod.c,
1586         strtol.c, vasprintf.c, vprintf.c, vsnprintf.c, xmemdup.c:
1587         Wrap long texinfo input lines.
1588         * functions.texi: Regenerate.
1590 2011-01-18  Mike Frysinger  <vapier@gentoo.org>
1592         * .gitignore: New file.
1594 2010-12-08  Doug Evans  <dje@google.com>
1596         * splay-tree.c (splay_tree_foreach_helper): Remove arg `sp',
1597         all callers updated.  Rewrite to be non-recursive.
1599 2010-11-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1601         * setproctitle.c [HAVE_SYS_PRCTL_H]: Include <sys/types.h>.
1603 2010-11-20  Anthony Green  <green@moxielogic.com>
1605         * configure.ac: Turn PR_SET_NAME link test into a test for
1606         sys/prctl.h.
1607         * configure, config.in: Rebuilt.
1608         * setproctitle.c: Test for HAVE_SYS_PRCTL_H.
1609         (setproctitle) Test for PR_SET_NAME definition.
1611 2010-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1613         PR other/46202
1614         * Makefile.in (install-strip): New phony target.
1615         (install): Also mark as phony.
1617 2010-11-16  Ian Lance Taylor  <iant@google.com>
1619         * simple-object.c (simple_object_attributes_merge): Rename from
1620         simple_object_attributes_compare.  Call merge field.
1621         * simple-object-common.h (struct simple_object_functions): Rename
1622         attributes_compare field to attribute_merge.
1623         * simple-object-elf.c (EM_SPARC): Define.
1624         (EM_SPARC32PLUS): Define.
1625         (simple_object_elf_attributes_merge): Renamed from
1626         simple_object_elf_attributes_compare.  Permit EM_SPARC and
1627         EM_SPARC32PLUS objects to be merged.
1628         (simple_object_elf_functions): Update function name.
1629         * simple-object-coff.c (simple_object_coff_attributes_merge):
1630         Rename from simple_object_coff_attributes_compare.
1631         (simple_object_coff_functions): Update function name.
1632         * simple-object-mach-o.c (simple_object_mach_o_attributes_merge):
1633         Renamed from simple_object_mach_o_attributes_compare.
1634         (simple_object_mach_o_functions): Update function name.
1636 2010-11-16  H.J. Lu  <hongjiu.lu@intel.com>
1638         PR other/42670
1639         PR binutils/11137
1640         * cp-demangle.c (d_make_demangle_mangled_name): New.
1641         (d_demangle_callback): Use it on DCT_GLOBAL_XTORS.
1643         * testsuite/demangle-expected: Updated.
1645 2010-11-14  Kai Tietz  <kai.tietz@onevision.com>
1647         * simple-object-coff.c (simple_object_coff_read_strtab): Fix reading
1648         offset.
1650 2010-11-12  Ian Lance Taylor  <iant@google.com>
1652         PR other/46332
1653         * cp-demangle.c (d_print_function_type): Don't print parentheses
1654         if there are no modifiers to print.
1655         * testsuite/demangle-expected: Tweak one test case, add another.
1657 2010-11-04  Richard Henderson  <rth@redhat.com>
1659         * configure.ac (AC_CHECK_HEADERS): Add process.h.
1660         (checkfuncs): Add dup3, spawnve, spawnvpe; sort the list.
1661         (AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe.
1662         * configure, config.in: Rebuild.
1663         * pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function.
1664         [HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions.
1666 2010-11-02  Ian Lance Taylor  <iant@google.com>
1667             Dave Korn  <dave.korn.cygwin@gmail.com>
1668             Iain Sandoe  <iains@gcc.gnu.org>
1670         * simple-object.c: New file.
1671         * simple-object-common.h: New file.
1672         * simple-object-elf.c: New file.
1673         * simple-object-mach-o.c: New file.
1674         * simple-object-coff.c: New file.
1675         * simple-object.txh: New file.
1676         * configure.ac: Add AC_TYPE_SSIZE_T.
1677         * Makefile.in: Rebuild dependencies.
1678         (CFILES): Add simple-object.c, simple-object-coff,
1679         simple-object-elf.c, and simple-object-mach-o.c.
1680         (REQUIRED_OFILES): Add corresponding object files.
1681         * configure: Rebuild.
1682         * config.in: Rebuild.
1683         * functions.texi: Rebuild.
1685 2010-10-29  Ian Lance Taylor  <iant@google.com>
1687         * setproctitle.c: Add space after function name in @deftypefn
1688         comment.
1689         * functions.texi: Rebuild.
1691 2010-10-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1693         * aclocal.m4 (AC_LANG_FUNC_LINK_TRY(C)): Delete.
1694         * configure: Regenerate.
1696 2010-10-07  Andi Kleen  <ak@linux.intel.com>
1698         * configure: Regenerate.
1699         * configure.ac: Turn PR_SET_NAME check into link check.
1701 2010-10-06  Andi Kleen  <ak@linux.intel.com>
1703         * Makefile.in (CFILES): Add setproctitle.
1704         (CONFIGURED_OFILES): Add setproctitle.
1705         (setproctitle): Add rule.
1706         * config.in: Regenerate.
1707         * configure: Regenerate.
1708         * configure.ac: Add checks for prctl PR_SET_NAME and setproctitle.
1709         * setproctitle.c: Add file.
1710         * functions.texi: Regenerate.
1712 2010-09-22 Tristan Gingold  <gingold@adacore.com>
1714         * cplus-dem.c (ada_demangle): Add comments.
1715         Handle stream and controlled type operations.
1716         Decoding of some uppercase letters moved before separators.
1717         * testsuite/demangle-expected: Add tests.
1719 2010-09-10  James Lyon  <jameslyon0@googlemail.com>
1721         http://sourceware.org/bugzilla/show_bug.cgi?id=11572
1722         * cp-demangle.c (d_find_pack): Add case for
1723         DEMANGLE_COMPONENT_LAMBDA.
1724         * testsuite/demangle-expected: Add regression test.
1726 2010-09-08  Tristan Gingold  <gingold@adacore.com>
1728         PR 44001
1729         * maint-tool (missing): Fix pattern for object file.
1730         (deps): Use $(objext) for object extension.
1731         * Makefile.in (objext): New variable.
1732         Replace all occurences of .o with .$(objext)
1733         Regenerate with maint-deps
1734         * configure.ac (pexecute): Set to the basename.
1735         * configure: Regenerate.
1737 2010-08-20  Maciej W. Rozycki  <macro@codesourcery.com>
1739         * pex-common.c (pex_read_err): Set stderr_pipe to -1 if a
1740         corresponding stream has been opened.
1741         (pex_free): Close pipe file descriptors corresponding to child's
1742         stdout and stderr before waiting.
1744 2010-08-13  Nick Clifton  <nickc@redhat.com>
1746         * argv.c (expandargv): Limit the number of times that response
1747         files are opened in order to prevent infinite recursion.
1749 2010-07-21  Pascal Obry  <obry@adacore.com>
1751         * make-temp-file.c (choose_tmpdir): Append a dot to P_tmpdir if needed.
1753 2010-07-06  Ken Werner  <ken.werner@de.ibm.com>
1755         * floatformat.c (floatformat_ieee_half_big): New variable.
1756         (floatformat_ieee_half_little): Likewise.
1758 2010-06-14  Gerald Pfeifer  <gerald@pfeifer.com>
1760         * libiberty.texi: Remove reference to GCC 3 and 2001 (thrice).
1761         Update copyright years.
1762         Move to GFDL 1.3.
1764 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
1766         PR other/43838
1767         * cp-demangle.c (struct d_print_info): Add flush_count field.
1768         (d_print_init): Initialize it to 0.
1769         (d_print_flush): Increment it.
1770         (d_print_comp): If needed flush before appending ", ".  Only
1771         decrement dpi->len if no flushes happened during the recursive
1772         call.
1773         * testsuite/demangle-expected: Add a test for this.
1775 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1777         * splay-tree.c: Update copyright years.
1778         (splay_tree_new_typed_alloc): New.
1779         (splay_tree_new_with_allocator): Use it.
1781         * hashtab.c: Update copyright years.
1782         (htab_create_typed_alloc): New.
1783         (htab_create_alloc): Use it.
1785         * functions.texi: Regenerate.
1787 2010-06-03  Joern Rennecke <joern.rennecke@embecosm.com>
1788             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1790         PR bootstrap/42798
1791         * configure.ac: Check for declaration of 'basename(char *)'.
1792         * configure: Regenerate.
1794 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
1796         * testsuite/demangle-expected: Add tests for __int128
1797         and unsigned __int128 types.
1799 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
1800             Jason Merrill  <jason@redhat.com>
1802         * cp-demangle.c (cplus_demangle_builtin_types): Add nullptr.
1803         (cplus_demangle_type): Handle nullptr.
1804         * testsuite/demangle-expected: Test it.
1806 2010-04-23  Pedro Alves  <pedro@codesourcery.com>
1808         * lbasename.c (lbasename): Split into ...
1809         (unix_lbasename, dos_basename): ... these.
1810         (lbasename): ... and reimplement on top of them.
1811         * Makefile.in (lbasename.o): Add dependency on
1812         $(INCDIR)/filenames.h.
1814 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
1816         * regex.c (byte_re_match_2_internal): Avoid set but not used
1817         warning.
1819 2010-03-22  Jason Merrill  <jason@redhat.com>
1821         * cp-demangle.c (d_print_mod): Use () rather than [] for vectors.
1823 2010-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1825         * Makefile.in (all): Do not use exec.
1827 2010-02-04  Tom Tromey  <tromey@redhat.com>
1829         * testsuite/demangle-expected: Add missing --format=gnu-v3.
1831 2010-02-03  Jason Merrill  <jason@redhat.com>
1833         * cp-demangle.c (d_expression): Handle dependent operator name.
1835         PR c++/12909
1836         * cp-demangle.c (d_number_component, d_vector_type): New.
1837         (cplus_demangle_type, d_print_comp, d_print_mod): Handle vectors.
1839 2010-01-25  Ian Lance Taylor  <iant@google.com>
1841         * cp-demangle.c (cplus_demangle_type): Check for invalid type
1842         after "DF".
1843         * testsuite/demangle-expected: Add test.
1845 2010-01-20  Jason Merrill  <jason@redhat.com>
1847         PR c++/42338
1848         * cp-demangle.c (d_print_comp): Fix array index printing.
1850 2010-01-11  Tristan Gingold  <gingold@adacore.com>
1852         * cplus-dem.c (ada_demangle): Remove prototype.
1853         (grow_vect): Removed.
1854         (ada_demangle): Rewritten.
1855         (cplus_demangle): Fix indentation.
1856         * testsuite/demangle-expected: Add tests for Ada.
1858 2010-01-09  Ian Lance Taylor  <iant@google.com>
1860         PR other/42230
1861         * cp-demangle.c (d_demangle): Return dgs.alc on success.
1863 2010-01-04  Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
1865         PR target/42316
1866         * configure.ac (PICFLAG): Use -fPIC on SH hosts.
1867         * configure: Regenerate.
1869 2009-12-07  Doug Evans  <dje@google.com>
1871         * pex-unix.c (pex_unix_exec_child): Save/restore environ.
1873 2009-11-26  Ben Elliston  <bje@au.ibm.com>
1875         * configure.ac (AC_CHECK_FUNCS): Sort into alphabetic order.
1876         * configure: Regenerate.
1878 2009-11-25  Ben Elliston  <bje@au.ibm.com>
1880         * functions.texi: Rebuild.
1882 2009-11-25  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1883             Ben Elliston  <bje@au.ibm.com>
1885         * README: Mention changes to Makefile.in and functions.texi.
1886         * gather-docs: Mention 'make stamp-functions' in the header.
1888 2009-11-23  Ben Elliston  <bje@au.ibm.com>
1889             Ian Lance Taylor  <iant@google.com>
1891         * pex-unix.c (pex_child_error): Improve warning avoidance by
1892         checking the results of write(3) and exiting with -2 if any write
1893         returns a negative value.
1895 2009-11-22  Steve Ward  <planet36@gmail.com>
1897         * dyn-string.c (dyn_string_append_char): Fix typo in comment.
1899 2009-11-20  Ben Elliston  <bje@au.ibm.com>
1901         * pex-unix.c (pex_child_error): Define writeerr macro to avoid
1902         unused result warnings from write(3) calls.  Undefine writeerr
1903         after all uses.
1905 2009-10-08  Daniel Gutson  <dgutson@codesourcery.com>
1906         Daniel Jacobowitz  <dan@codesourcery.com>
1907         Pedro Alves  <pedro@codesourcery.com>
1909         * argv.c (consume_whitespace): New function.
1910         (only_whitespace): New function.
1911         (buildargv): Always use ISSPACE by calling consume_whitespace.
1912         (expandargv): Skip empty files.  Do not stop at the first empty
1913         argument (calling only_whitespace)..
1914         * testsuite/test-expandargv.c: (test_data): Test empty lines
1915         and empty arguments.
1916         (run_tests): Fix false positives due to shorter arguments.
1918 2009-09-30  Martin Thuresson  <martint@google.com>
1920         * regex.c (byte_re_match_2_internal): Split declaration and
1921         assignment to avoid -Wc++-compat warning due to goto.
1923 2009-09-29  Jason Merrill  <jason@redhat.com>
1925         * Makefile.in: Enable demangle target.
1926         * cp-demangle.c (d_lambda, d_unnamed_type, d_make_default_arg): New.
1927         (d_name, d_prefix, d_unqualified_name, d_local_name): Handle lambdas.
1928         (d_parmlist): Factor out from d_bare_function_type.
1929         (d_compact_number): Factor out from d_template_param and d_expression.
1930         (d_append_num): Factor out from d_print_comp.
1931         (d_print_comp, d_print_mod_list): Handle lambdas.
1932         * testsuite/demangle-expected: Add lambda tests.
1934 2009-09-23  Matthew Gingell  <gingell@adacore.com>
1936         * cplus-dem.c (ada_demangle): Ensure demangled is freed.
1938 2009-09-22  Ozkan Sezer  <sezeroz@gmail.com>
1940         * choose-temp.c: Include unistd.h for mingw targets.
1942 2009-09-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1944         * hashtab.c [HAVE_INTTYPES_H]: Include <inttypes.h>.
1946 2009-09-15  Tristan Gingold  <gingold@adacore.com>
1948         * config.h-vms (intptr_t): Define to compile hashtab.c
1950 2009-09-04  Ozkan Sezer  <sezeroz@gmail.com>
1952         PR target/39065
1953         * configure.ac: Replace AC_CHECK_TYPE() for intptr_t and uintptr_t
1954         with AC_TYPE_INTPTR_T and AC_TYPE_UINTPTR_T.
1955         * config.in: Regenerated.
1956         * configure: Regenerated.
1958 2009-09-03  Ozkan Sezer  <sezeroz@gmail.com>
1960         PR target/39065
1961         * configure.ac: Also check for intptr_t.
1962         * config.h.in: Regenerated.
1963         * configure: Regenerated.
1964         * hashtab.c (hash_pointer): Cast the pointer argument to intptr_t
1965         instead of of long.
1967 2009-09-02  Tristan Gingold  <gingold@adacore.com>
1969         * vmsbuild.com: Removed as unused and superceeded by makefile.vms.
1970         * makefile.vms: Ported to Itanium VMS.  Remove useless targets and
1971         dependencies.  Remove unused FORMAT variable.
1972         * configure.com: New file to create build.com DCL script for
1973         Itanium VMS or Alpha VMS.
1975 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1977         * configure.ac (AC_PREREQ): Bump to 2.64.
1979 2009-08-23  H.J. Lu  <hongjiu.lu@intel.com>
1981          PR ld/10536
1982          * Makefile.in (install-html-recursive): Removed.
1984 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1986         * config.in: Regenerate.
1987         * configure: Regenerate.
1989 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1991         * Makefile.in (AUTOCONF, configure_deps): New variables.
1992         ($(srcdir)/configure): New rule, active only in maintainer mode.
1994 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
1996         * make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS.
1998 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
2000         * pex-unix.c (vfork): Remove VMS specific definition (get from header
2001         file instead).
2002         (to_ptr32): New function.
2003         (pex_unix_exec_child): Use it.
2005 2009-07-24  Ian Lance Taylor  <iant@google.com>
2007         PR bootstrap/40854
2008         * crc32.c (xcrc32): Rename from crc32.
2010 2009-07-24  Ian Lance Taylor  <iant@google.com>
2012         * crc32.c: New file.
2013         * Makefile.in: Rebuild dependencies.
2014         (CFILES): Add crc32.c.
2015         (REQUIRED_OFILES): Add ./crc32.o.
2016         * functions.texi: Rebuild.
2018 2009-07-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2020         * cp-demangle.c (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
2021         (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
2022         (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
2023         (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
2024         (d_demangle_callback): The variable type is now declared as enum.
2025         Replace parser of _GLOBAL_ symbols by a d_make_comp call.
2027 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
2029         * hashtab.c (htab_traverse): Don't call htab_expand for
2030         nearly empty hashtabs with sizes 7, 13 or 31.
2032 2009-06-16  Nick Clifton  <nickc@redhat.com>
2034         PR 10197
2035         * testsuite/test-demangle.c: Rename getline to get_line to avoid
2036         conflicts with system function of the same name.
2038 2009-05-30  Eli Zaretskii  <eliz@gnu.org>
2040         * snprintf.c: Doc fix.
2042         * vsnprintf.c: Doc fix.
2044 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
2046         * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.
2048 2009-05-29  Michael Matz  <matz@suse.de>
2050         * fibheap.c (fibheap_replace_key_data): Make sure we don't early
2051         out when forcing the minimum.
2052         (fibheap_delete_node): Assert that we managed to force the minimum.
2054 2009-05-25  Tristan Gingold  <gingold@adacore.com>
2056         * config.h-vms: Rewritten.  Define configure macros.
2057         Use DEC-C builtin alloca.
2059         * makefile.vms (OBJS): Update list.
2060         (OPT): New variable.
2061         (CFLAGS): Update compilation flags.
2062         (libiberty.olb): Do not depend on alloca-conf.h anymore.
2064 2009-05-19  Ian Lance Taylor  <iant@google.com>
2065             Ben Elliston  <bje@au.ibm.com>
2067         * cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug.
2068         (cplus_demangle_fill_dtor): Likewise.
2070 2009-05-17  Julian Brown  <julian@codesourcery.com>
2072         * pex-win32.c (pex_win32_exec_child): Fix logic to avoid closing
2073         standard handles (stdin, stdout, stderr) in parent.
2075 2009-04-29  Julian Brown  <julian@codesourcery.com>
2077         * pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT.
2078         (pex_win32_exec_child): Ensure each process has only one handle open
2079         on pipe endpoints. Close standard input after creating child for
2080         symmetry with standard output/standard error.
2082 2009-04-25  Eli Zaretskii  <eliz@gnu.org>
2084         * Makefile.in (needed-list): Target removed (not used in GCC
2085         3.0 and later).  All references deleted.
2086         (mostlyclean): Remove references to needed.awk and needed2.awk.
2088 2009-04-14  Eli Zaretskii  <eliz@gnu.org>
2090         * configure.ac  (setobjs, msdosdjgpp): Move a-priori setting of
2091         existing and required library functions to with_target_subdir
2092         section, so that the native build does detect them at configure
2093         time.
2094         * configure: Regenerated.
2096 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
2098         PR target/39397
2099         * pex-common.h (struct pex_obj): Store pid values as pid_t,
2100         not as long (members *children and (*wait))
2101         * pex-common.c (pex_run_in_environment): Likewise.
2102         * pex-win32.c (pex_win32_wait): Return pid_t and properly check
2103         returned pid value.
2104         * pex-djgpp.c (pex_djgpp_wait): Return pid_t.
2105         * pex-msdos.c (pex_msdos_wait): Likewise.
2107 2009-04-07  Arnaud Patard <apatard@mandriva.com>
2109         * configure.ac: Fix Linux/MIPS matching rule.
2110         * configure: Regenerate.
2112 2009-03-27  Ian Lance Taylor  <iant@google.com>
2114         * memmem.c: New file, from gnulib.
2115         * configure.ac: Add memmem to list of functions provided if they
2116         are not available on the host.
2117         * Makefile.in: Rebuild dependencies.
2118         (CFILES): Add memmem.c.
2119         (CONFIGURED_OFILES): Add memmem.o.
2120         * configure, config.in, functions.texi: Rebuild.
2122 2009-03-23  Jason Merrill  <jason@redhat.com>
2124         * cp-demangle.c (d_expression): Handle pack expansion.
2125         (d_find_pack): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM.
2126         (d_print_subexpr): Don't wrap function parms in ().
2127         (d_print_comp) [DEMANGLE_COMPONENT_PACK_EXPANSION]: Handle
2128         not finding a pack.
2130 2009-03-17  Jason Merrill  <jason@redhat.com>
2132         * cp-demangle.c (d_make_function_param): new fn.
2133         (cplus_demangle_mangled_name): Work around abi v2 bug.
2134         (d_expr_primary): Likewise.
2135         (cplus_demangle_operators): Add alignof ops.
2136         (d_expression): Handle function parameters and conversions
2137         with other than 1 operand.
2138         (d_print_comp): Handle function parameters.  Fix bug with
2139         function used in type of function.
2140         * testsuite/demangle-expected: Update tests.
2142 2009-02-21  Mark Mitchell  <mark@codesourcery.com>
2144         * make-temp-file.c (<windows.h>): Include on Windows.
2145         (choose_tmpdir): On Windows, use GetTempPath.
2147 2009-01-18  Dave Korn  <dave.korn.cygwin@gmail.com>
2149         * configure.ac (funcs, vars, checkfuncs):  Don't munge on Cygwin,
2150         as it no longer shares libiberty object files.
2151         * configure:  Regenerated.
2153 2009-01-07  Jason Merrill  <jason@redhat.com>
2155         * cp-demangle.c (d_expression): Remove mangling for zero-op casts.
2157 2009-01-06  Ben Elliston  <bje@au.ibm.com>
2159         * cp-demangle.c (cplus_demangle_type): Return NULL if the
2160         character following a 'D' cannot be recognised.
2162 2008-12-18  Jason Merrill  <jason@redhat.com>
2164         PR c++/38561
2165         * cp-demangle.c (d_expression, d_print_comp): Revert
2166         cast changes.
2168 2008-12-17  Jason Merrill  <jason@redhat.com>
2170         * cp-demangle.c (d_expression): Handle rvalue stubs too.
2171         [DEMANGLE_COMPONENT_CAST]: Update mangling.
2172         (d_print_comp): Avoid extra ", " with empty template argument packs.
2173         Remove handling for obsolete T() mangling.
2175 2008-12-10  Jason Merrill  <jason@redhat.com>
2177         * cp-demangle.c (cplus_demangle_type): Support fixed-point types.
2178         (d_print_comp, d_dump): Likewise.
2180 2008-10-22  Daniel Jacobowitz  <dan@codesourcery.com>
2182         * Makefile.in (CPPFLAGS): Define.
2183         (FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS.
2185 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
2187         PR bootstrap/37137
2188         * Makefile.in (LIBCFLAGS): Remove.
2189         (FLAGS_TO_PASS): Don't mention it.
2190         (COMPILE.c, MULTIOSDIR): Replace it with CFLAGS.
2192 2008-10-08  David Edelsohn  <edelsohn@gnu.org>
2194         * xstrdup.c: Include <sys/types.h> after "config.h"
2196 2008-10-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2198         * configure.ac: Call AC_SYS_LARGEFILE.
2199         * config.in: Regenerated.
2200         * configure: Likewise.
2202 2008-10-06  Jason Merrill  <jason@redhat.com>
2204         * cp-demangle.c (struct d_print_info): Add pack_index.
2205         (d_dump): Add DEMANGLE_COMPONENT_PACK_EXPANSION.
2206         (d_make_comp): Likewise.  DEMANGLE_COMPONENT_ARGLIST and
2207         DEMANGLE_COMPONENT_TEMPLATE_ARGLIST can have two null args.
2208         (cplus_demangle_builtin_types): Add char16/32_t.
2209         (cplus_demangle_type): Recognize them.
2210         (d_template_args): Handle empty argument packs.
2211         (d_template_arg): Handle argument packs.
2212         (d_expression): Handle dependent name.
2213         (d_index_template_argument): New fn.
2214         (d_lookup_template_argument): New fn.
2215         (d_find_pack, d_pack_length): New fn.
2216         (d_print_subexpr): Split out...
2217         (d_print_comp): ...from here.  Use d_*_template_argument.
2218         Handle empty arg lists.  Support pack expansions.
2219         * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increase to 32.
2221 2008-09-09  Jason Merrill  <jason@redhat.com>
2223         * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DECLTYPE.
2224         (d_make_comp): Likewise.
2225         (cplus_demangle_type): Handle decltype and DFP types.
2226         (cplus_demangle_operators): Call operator takes 2 args.
2227         (cplus_demangle_builtin_types): Add DFP types.
2228         (d_exprlist): New fn.
2229         (d_expression): Handle parm placeholders, T() and calls.
2230         (d_print_comp): Handle decltype, T() and calls.
2231         * testsuite/demangle-expected: Test the above.
2233 2008-08-07  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2235         * pex-win32.c (argv_to_argc): New function.
2236         (spawn_script): Duplicate argv before calling win32_spawn.
2238 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
2240         * mkstemps.c (mkstemps): Keep looping even for EISDIR.
2242 2008-07-31  Denys Vlasenko  <dvlasenk@redhat.com>
2244         * mkstemps.c (mkstemps): If open failed with errno other than
2245         EEXIST, return immediately.
2246         * make-temp-file.c: Include errno.h.
2247         (make_temp_file): If mkstemps failed, print an error message
2248         before aborting.
2250 2008-07-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2252         * maint-tool (deps): Output config.h instead of stamp-h.
2253         * Makefile.in: Rebuild deps.
2254         (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
2255         Reverts 2007-07-11 change.
2257 2008-06-19  Eric Blake  <ebb9@byu.net>
2259         Adjust strsignal to POSIX 200x prototype.
2260         * strsignal.c (strsignal): Remove const.
2262 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2264         * configure: Regenerate.
2266 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2268         * libiberty.texi: Expand TABs, drop indentation outside examples.
2269         * obstacks.texi: Likewise.
2271 2008-04-21  Aurelien Jarno  <aurelien@aurel32.net>
2273         * configure.ac: use -fPIC on Linux/MIPS hosts.
2274         * configure: Regenerate.
2276 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
2278         * testsuite/demangle-expected: Added tests for char16_t and char32_t.
2280 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
2282         PR bootstrap/35457
2283         * aclocal.m4: Add override.m4.
2284         * configure: Regenerate.
2286 2008-03-31  Ian Lance Taylor  <iant@google.com>
2288         * cp-demangle.c (d_substitution): Correct overflow check to avoid
2289         -fstrict-overflow optimizations.
2291 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
2293         * configure.ac (frags): Don't set, use frag instead.
2294         (PICFLAG): Set here and substitute.
2295         * Makefile.in (PICFLAG): Substitute from autoconf.
2296         * configure: Regenerate.
2298 2008-03-24  Ian Lance Taylor  <iant@google.com>
2300         * sha1.c: New file, from gnulib.
2301         * Makefile.in: Rebuild dependencies.
2302         (CFILES): Add sha1.c.
2303         (REQUIRED_OFILES): Add sha1.o.
2305 2008-03-24  Doug Evans  <dje@google.com>
2307         * make-relative-prefix.c (make_relative_prefix_1): Handle NULL
2308         return from strdup.
2310 2008-03-12  Seongbae Park <seongbae.park@gmail.com>
2312         * cplus-dem.c (malloc, realloc): Use void * instead of char *
2313         as return type.
2315 2008-03-11  Nick Clifton  <nickc@redhat.com>
2317         * md5.c (md5_process_bytes): Do not assume that memcpy will
2318         provide a return value.
2320 2008-02-19  Ben Elliston  <bje@au.ibm.com>
2322         PR other/12618
2323         * testsuite/Makefile.in (mostlyclean): Remove any core file.
2325 2008-01-26  David Daney  <ddaney@avtrex.com>
2327         * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
2328         DEMANGLE_COMPONENT_COMPOUND_NAME, and
2329         DEMANGLE_COMPONENT_CHARACTER cases.
2330         (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and
2331         DEMANGLE_COMPONENT_JAVA_RESOURCE cases.
2332         (d_make_character): New function.
2333         (d_java_resource): Same.
2334         (d_special_name): Handle "Gr" case.
2335         (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
2336         DEMANGLE_COMPONENT_COMPOUND_NAME, and
2337         DEMANGLE_COMPONENT_CHARACTER cases.
2338         * testsuite/demangle-expected: Add test for java resource name
2339         mangling.
2341 2008-01-23  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2343         * cplus-dem.c (demangle_function_name): Changed to return value
2344         indicating if a name was correctly demangled.
2345         (iterate_demangle_function): Use demangle_function_name return
2346         value.
2348 2008-01-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2350         PR other/33768
2351         * splay-tree.c (rotate_left): Fix minor typo in comment.
2352         (rotate_right): Likewise.
2354 2007-11-12  Joseph Myers  <joseph@codesourcery.com>
2356         * floatformat.c (floatformat_ibm_long_double_is_valid): Fix
2357         compiler warnings.
2358         (floatformat_ibm_long_double): Use
2359         floatformat_ibm_long_double_is_valid.
2361 2007-11-07  Joseph Myers  <joseph@codesourcery.com>
2362             Daniel Jacobowitz  <dan@codesourcery.com>
2364         * floatformat.c (mant_bits_set): New.
2365         (floatformat_to_double): Use it.  Note no special handling of
2366         split formats.
2367         (floatformat_from_double): Note no special handing of split
2368         formats.
2369         (floatformat_ibm_long_double_is_valid,
2370         floatformat_ibm_long_double): New.
2371         (floatformat_ieee_single_big, floatformat_ieee_single_little,
2372         floatformat_ieee_double_big, floatformat_ieee_double_little,
2373         floatformat_ieee_double_littlebyte_bigword, floatformat_vax_f,
2374         floatformat_vax_d, floatformat_vax_g, floatformat_i387_ext,
2375         floatformat_m68881_ext, floatformat_i960_ext,
2376         floatformat_m88110_ext, floatformat_m88110_harris_ext,
2377         floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword,
2378         floatformat_ia64_spill_big, floatformat_ia64_spill_little,
2379         floatformat_ia64_quad_big, floatformat_ia64_quad_little): Update
2380         for addition of split_half field.
2382 2007-09-06  Tom Tromey  <tromey@redhat.com>
2384         * pexecute.txh (pex_free): Document process killing.
2386 2007-08-31  Douglas Gregor  <doug.gregor@gmail.com>
2388         * cp-demangle.c (d_dump): Handle
2389         DEMANGLE_COMPONENT_RVALUE_REFERENCE.
2390         (d_make_comp): Ditto.
2391         (cplus_demangle_type): Ditto.
2392         (d_print_comp): Ditto.
2393         (d_print_mod): Ditto.
2394         (d_print_function_type): Ditto.
2396 2007-08-24  Kai Tietz  <kai.tietz@onevision.com>
2398         * pex-common.h: (pex_funcs): Retyped wait and exec_child to pid_t.
2399         * pex-djgpp.c: Likewise.
2400         * pex-msdos.c: Likewise.
2401         * pex-unix.c: Likewise.
2402         * pex-win32.c: Likewise.
2404 2007-08-17  Michael Snyder  <msnyder@access-company.com>
2406         * make-relative-prefix.c (make_relative_prefix_1): Resource leaks.
2408 2007-08-03  Michael Snyder  <msnyder@access-company.com>
2410         * make-relative-prefix.c (make_relative_prefix_1): Fix resource
2411         leak.
2413 2007-07-31  Michael Snyder  <msnyder@access-company.com>
2415         * cp-demangle.c (d_print_comp): Guard against null.
2417 2007-07-25  Ben Elliston  <bje@au.ibm.com>
2419         * Makefile.in (CFILES): Remove ternary.c.
2420         (REQUIRED_OFILES): Remove ./ternary.o.
2421         (INSTALLED_HEADERS): Remove ternary.h.
2422         (ternary.o): Remove.
2423         * ternary.c: Remove.
2425 2007-07-23  DJ Delorie  <dj@redhat.com>
2427         * argv.c (writeargv): Fix typo in inline documentation.
2428         * functions.texi: Regenerate.
2430 2007-07-17  DJ Delorie  <dj@redhat.com>
2432         * configure.ac (target_header_dir, msdosdjgpp): Remove duplicate
2433         gettimeofday entry.
2434         * configure: Likewise.
2436 2007-07-11  Alexandre Oliva  <aoliva@redhat.com>
2438         * maint-tool (deps): Output stamp-h instead of config.h.
2439         * Makefile.in: Rebuild deps.
2440         (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
2442 2007-07-02  Simon Baldwin <simonb@google.com>
2444         * argv.c (writeargv): Removed declaration of unused variable.
2446 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
2448         * configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too.
2449         * configure: Regenerate.
2451 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
2453         * aclocal.m4: Include config/warnings.m4.
2454         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS.
2455         * configure: Regenerate.
2457 2007-06-07  Geoffrey Keating  <geoffk@apple.com>
2459         * configure.ac: Non-default multilibs can be cross compilations.
2460         * configure: Regenerate
2462 2007-05-07  Nathan Froyd  <froydnj@codesourcery.com>
2464         * argv.c (writeargv): New function.
2466 2007-05-05  Geoffrey Keating  <geoffk@apple.com>
2468         * cp-demangle.c (d_name): Detect local-source-name.
2469         (d_prefix): Likewise.
2470         (d_unqualified_name): Implement local-source-name.
2472 2007-05-03  Joel Brobecker  <brobecker@adacore.com>
2474         * filename_cmp.c: Replace include of ctype.h by include of
2475         safe-ctype.h.
2476         (filename_cmp): Use TOLOWER instead of tolower for conversions
2477         that are locale-independent.
2478         * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h.
2480 2007-04-11  Thomas Neumann  <tneumann@users.sourceforge.net>
2482         * argv.c: Use ANSI C declarations.
2483         * make-relative-prefix.c: Likewise.
2485 2007-04-06  Joel Brobecker  <brobecker@adacore.com>
2487         * filename_cmp.c (filename_cmp): Improve documentation.
2489 2007-04-02  Andreas Schwab  <schwab@suse.de>
2491         * filename_cmp.c: Include "config.h".
2493 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
2495         * filename_cmp.c: New file.
2496         * Makefile.in (CFILES): Add filename_cmp.c.
2497         (REQUIRED_OFILES): Add filename_cmp.o
2498         (filename_cmp.o): New rule.
2499         * functions.texi: Regenerate.
2501 2007-03-15  Geoffrey Keating  <geoffk@apple.com>
2503         * cp-demangle.c (d_encoding): Exit early on error.
2504         (d_pointer_to_member_type): Exit early if cplus_demangle_type
2505         returns NULL.
2506         (cplus_demangle_type): Likewise.
2507         * testsuite/demangle-expected: New testcase.
2509 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
2511         * Makefile.in: Add install-pdf target as copied from
2512         automake v1.10 rules.
2513         * testsuite/Makefile.in: Add dummy install-pdf target.
2515 2007-03-01  Peter Breitenlohner  <peb@mppmu.mpg.de>
2516             Eric Botcazou  <ebotcazou@libertysurf.fr>
2518         PR other/16513
2519         * Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR).
2520         Install headers in multilib independent location.
2522 2007-02-26  DJ Delorie  <dj@redhat.com>
2524         * configure.ac: add djgpp-specific results, so we don't have to
2525         link during a cross compilation.
2526         * configure: Regenerated.
2528 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2530         * hex.c: Fix typo.
2531         * choose-temp.c: Likewise.
2532         * functions.texi: Regenerate.
2534 2007-01-31  Vladimir Prus  <vladimir@codesourcery.com>
2536         * pex-common.h (struct pex_obj): New fields
2537         stderr_pipe and read_err.
2538         * pex-common.c (pex_init_common): Initialize
2539         stderr_pipe.
2540         (pex_run_in_environment): Add error checking
2541         for PEX_STDERR_TO_PIPE.  Create a pipe
2542         for stderr if necessary.
2543         (pex_read_err): New.
2544         (pex_free): Close read_err.
2545         * pexecute.txh: Document changes.
2546         * functions.texi: Regenerated.
2548 2007-01-31  Ben Elliston  <bje@au.ibm.com>
2550         * strsignal.c (psignal): Change type of signo to int.
2551         * functions.texi: Regenerate.
2553 2007-01-29  Simon Baldwin <simonb@google.com>
2555         * cp-demangle.h (cplus_demangle_operators): External definition
2556         suppressed if not building for libstdc++.
2557         * cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface
2558         to demangling, provides a malloc-less version of __cxa_demangle.
2559         (cplus_demangle_print_callback): Public callback version of
2560         cplus_demangle_print.
2561         (struct d_growable_string): New growable string structure.
2562         (d_growable_string_init): New function, provides support for
2563         growable strings separate from print info.
2564         (d_growable_string_resize): Likewise.
2565         (d_growable_string_append_buffer): Likewise.
2566         (d_growable_string_callback_adapter):): Likewise.
2567         (d_print_init): New print info initialization function.
2568         (d_print_error): Macro replace by inline function.
2569         (d_print_saw_error): Likewise.
2570         (d_append_char): Likewise.
2571         (d_append_buffer): Likewise.
2572         (d_append_string): New inline function, replaces the
2573         d_append_string_constant macro.
2574         (d_flush_buffer): New function, flushes buffer to callback.
2575         (d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback
2576         for unsupported dynamic arrays replaced by alloca().
2577         (d_demangle): Return string length estimating removed.
2578         (d_dump): Moved error case handling from call site into function.
2579         (d_print_resize): Function removed.
2580         (d_print_append_char): Likewise.
2581         (d_print_append_buffer): Likewise.
2582         (d_print_error): Likewise.
2583         (d_print_comp): Added special case handling for Java arrays.
2584         (java_demangle_v3): Removed string post-processing for Java arrays,
2585         now replaced by special case handling in d_print_comp.
2586         (cplus_demangle_v3_callback): Augmented interface to demangling,
2587         provides a malloc-less version of cplus_demangle_v3.
2588         (java_demangle_v3_callback): Augmented interface to demangling,
2589         provides a malloc-less version of java_demangle_v3.
2591 2007-01-12  Ben Elliston  <bje@au.ibm.com>
2593         * pex-unix.c (writeerr): Cast write result to void.
2595         * choose-temp.c (choose_temp_base): Check the result of the call
2596         to mktemp rather than testing the length of the modified string.
2598 2006-12-20  Geoffrey Keating  <geoffk@apple.com>
2600         * cp-demangle.h: Add comment explaining what to do to avoid
2601         overrunning string.
2602         (d_check_char): New.
2603         (d_next_char): Don't advance past trailing '\0'.
2604         * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char.
2605         (d_nested_name): Likewise.
2606         (d_special_name): Likewise.
2607         (d_call_offset): Likewise.
2608         (d_function_type): Likewise.
2609         (d_array_type): Likewise.
2610         (d_pointer_to_member_type): Likewise.
2611         (d_template_param): Likewise.
2612         (d_template_args): Likewise.
2613         (d_template_arg): Likewise.
2614         (d_expr_primary): Likewise.
2615         (d_local_name): Likewise.
2616         (d_substitution): Likewise.
2617         (d_ctor_dtor_name): Use d_advance rather than d_next_char.
2618         * testsuite/test-demangle.c: Include sys/mman.h.
2619         (MAP_ANONYMOUS): Define.
2620         (protect_end): New.
2621         (main): Use protect_end.
2622         * testsuite/demangle-expected: Add testcases for overrunning
2623         the end of the string.
2625 2006-11-30  Andrew Stubbs  <andrew.stubbs@st.com>
2626             J"orn Rennecke <joern.rennecke@st.com>
2628         PR driver/29931
2629         * make-relative-prefix.c (make_relative_prefix_1): New function,
2630         broken out of make_relative_prefix.  Make link resolution dependent
2631         on new parameter.
2632         (make_relative_prefix): Use make_relative_prefix_1.
2633         (make_relative_prefix_ignore_links): New function.
2635 2006-11-08  Vladimir Prus  <vladimir@codesourcery.com>
2637         * pex-win32.c (no_suffixes): Remove.
2638         (std_suffixes): Add "" as first element.
2639         (find_executable): Remove detection of already-present
2640         extension. Try all suffixes in std_suffixes.
2642 2006-11-07  Julian Brown  <julian@codesourcery.com>
2644         * floatformat.c (get_field): Fix segfault with little-endian word
2645         order on 64-bit hosts.
2646         (put_field): Likewise.
2647         (min): Move definition.
2649 2006-10-26  Danny Smith  <dannysmith@users.sourceforge.net>
2651         pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC.
2652         (find_executable): Likewise.
2653         (win32_spawn): Cast alloca return to (char**).
2654         Replace malloc with XNEWVEC.
2655         bcopy.c (bcopy): Add explict casts in assignments.
2657 2006-10-25  Ben Elliston  <bje@au.ibm.com>
2659         * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}.
2661 2006-10-10  Brooks Moses  <bmoses@stanford.edu>
2663         * Makefile.in: Added "pdf", "libiberty.pdf" target support.
2664         * testsuite/Makefile.in: Added empty "pdf" target.
2666 2006-09-22  Ian Lance Taylor  <ian@airs.com>
2668         PR other/29176
2669         * cp-demangle.c (d_substitution): Check for overflow when
2670         computing substitution index.
2672 2006-08-30  Corinna Vinschen  <corinna@vinschen.de>
2674         * configure.ac: Add case for Mingw as host.
2675         * configure: Regenerate.
2677 2006-08-27  Ian Lance Taylor  <ian@airs.com>
2679         PR driver/27622
2680         * pex-common.h (struct pex_funcs): Add toclose parameter to
2681         exec_child field.
2682         * pex-common.c (pex_run_in_environment): Pass toclose to
2683         exec_child.
2684         * pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter.
2685         * pex-unix.c (pex_unix_exec_child): Likewise.
2686         * pex-msdos.c (pex_msdos_exec_child): Likewise.
2687         * pex-win32.c (pex_win32_exec_child): Likewise.
2689         PR other/28797
2690         * cp-demangle.c (d_pointer_to_member_type): Do add a substitution
2691         for a qualified member which is not a function.
2692         * testsuite/demangle-expected: Add test case.
2694 2006-07-27  Jan Hubicka  <jh@suse.cz>
2696         PR rtl-optimization/28071
2697         * hashtab.c (htab_empty): Clear out n_deleted/n_elements;
2698         downsize the hashtable.
2700 2006-07-04  Peter O'Gorman  <peter@pogma.com>
2702         * Makefile.in: chmod 644 before ranlib during install.
2704 2006-06-02  Mark Shinwell  <shinwell@codesourcery.com>
2706         * pex-unix.c (pex_unix_exec_child): Insert cast when assigning
2707         to environ.
2709 2006-06-01  Mark Shinwell  <shinwell@codesourcery.com>
2711         * pex-common.c: New function pex_run_in_environment.
2712         * pex-common.h: Add environment parameter to exec_child.
2713         * pex-msdos.c: Add environment parameter to pex_msdos_exec_child.
2714         * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child.
2715         (pex_djgpp_exec_child): Pass environment to child process.
2716         * pex-unix.c: Add environment parameter to pex_unix_exec_child.
2717         (pex_unix_exec_child): Pass environment to child process.
2718         * pex-win32.c: Add environment parameter to pex_win32_exec_child.
2719         New function env_compare for comparing VAR=VALUE pairs.
2720         (win32_spawn): Assemble environment block and pass to CreateProcess.
2721         (spawn_script): Pass environment through to win32_spawn.
2722         (pex_win32_exec_child): Pass environment through to spawn_script and
2723         win32_spawn.
2724         * functions.texi: Regenerate.
2725         * pexecute.txh: Document pex_run_in_environment.
2727 2006-05-28  Mark Shinwell  <shinwell@codesourcery.com>
2729         * mkstemps.c: Open temporary files in binary mode.
2731 2006-05-12  Anton Blanchard  <anton@samba.org>
2733         * cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
2734         hold "int%u_t".
2736 2006-04-24  Julian Brown  <julian@codesourcery.com>
2738         * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
2740 2006-03-29  Jim Blandy  <jimb@codesourcery.com>
2742         * pex-common.c (pex_input_file, pex_input_pipe): New functions.
2743         (pex_init_common): Initialize obj->input_file.
2744         (pex_run): Close any file opened by pex_input_file.
2745         * pexecute.txh (pex_input_file, pex_input_pipe): New docs.
2746         * pex-common.h (struct pex_obj): New field input_file.
2747         (struct pex_funcs): New function ptr fdopenw.
2748         * pex-unix.c (pex_unix_fdopenw): New function.
2749         (funcs): List it as our fdopenw function.
2750         * pex-win32.c (pex_win32_fdopenw): New function.
2751         (funcs): List it as our fdopenw function.
2752         * pex-djgpp.c (funcs): Leave fdopenw null.
2753         * pex-msdos (funcs): Same.
2754         * functions.texi: Regenerated.
2756 2006-04-10  Jim Blandy  <jimb@codesourcery.com>
2758         * pex-common.c (temp_file): New function, containing guts of
2759         pex-style temporary file name generation.
2760         (pex_run): Use it.
2762 2006-04-06  Carlos O'Donell  <carlos@codesourcery.com>
2764         * Makefile.in: Add install-html, install-html-am, and
2765         install-html-recursive targets. Define mkdir_p and
2766         NORMAL_INSTALL.
2767         * configure.ac: AC_SUBST datarootdir, docdir, htmldir.
2768         * configure: Regenerate.
2769         * testsuite/Makefile.in: Add install-html and html targets.
2771 2006-03-31  Mark Mitchell  <mark@codesourcery.com>
2773         * pex-win32.c (<errno.h>): Include.
2774         (fix_argv): Remove.
2775         (argv_to_cmdline): New function.
2776         (std_suffixes): New variable.
2777         (no_suffixes): Likewise.
2778         (find_executable): New function.
2779         (win32_spawn): Likewise.
2780         (spawn_script): Use win32_spawn instead of _spawnv[p].
2781         (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
2782         (pex_win32_wait): Likewise.
2784 2006-03-24  Jim Blandy  <jimb@codesourcery.com>
2786         * pex-common.c (pex_run): Simplify output name handling.
2788 2006-03-12  Jim Blandy  <jimb@red-bean.com>
2790         * pex-common.h (struct pex_obj): Doc fixes.
2792 2006-03-11  Jim Blandy  <jimb@red-bean.com>
2794         * functions.texi: Regenerate.
2796 2006-02-21  Ben Elliston  <bje@au.ibm.com>
2798         * pexecute.c (pwait): Syntax fix for previous change.
2800 2006-02-17  Uttam Pawar  <uttamp@us.ibm.com>
2802         * pexecute.c (pwait): Free vector pointer.
2803         * partition.c (partition_print): Free class_elements pointer.
2805 2006-02-11  Roger Sayle  <roger@eyesopen.com>
2806             R. Scott Bailey  <scott.bailey@eds.com>
2807             Bill Northcott  <w.northcott@unsw.edu.au>
2809         PR bootstrap/16787
2810         * floatformat.c: Include <float.h> where available.
2811         (NAN): Use value of DBL_QNAN if defined, and NAN isn't.
2813 2006-01-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2815         * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where
2816         supported.
2817         * configure: Regenerated.
2819 2006-01-20  Carlos O'Donell  <carlos@codesourcery.com>
2821         * testsuite/Makefile.in: Add test-expandargv test.
2822         * testsuite/test-expandargv.c: New test.
2823         * argv.c (expandargv): Check for errors with ferror,
2824         rather than just by looking at return value from fread.
2826 2005-12-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2828         * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
2829         to convert from "from".
2830         (floatformat_to_double): Likewise.
2831         (floatformat_from_double): Use explicit cast to convert from "to".
2833 2005-12-10  Terry Laurenzo  <tlaurenzo@gmail.com>
2835         PR java/9861
2836         * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
2837         and include return type when found.
2838         (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add
2839         conditional logic to change printing order of return type.when
2840         the DMGL_RET_POSTFIX option is present.
2841         (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
2842         call.
2843         * testsuite/test-demangle.c (main): Recognize option --ret-postfix
2844         * testsuite/demangle-expected: Test cases to verify extended encoding.
2845         Updated comment to document --ret-postfix option.
2847 2005-11-06  Richard Guenther  <rguenther@suse.de>
2849         * splay-tree.c (rotate_left): New function.
2850         (rotate_right): Likewise.
2851         (splay_tree_splay_helper): Remove.
2852         (splay_tree_splay): Re-implement.
2854 2005-10-31  Mark Kettenis  <kettenis@gnu.org>
2856         * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
2857         New variables.
2859 2005-10-07  Mark Mitchell  <mark@codesourcery.com>
2861         * at-file.texi: Fix typo.
2863 2005-10-03  Mark Mitchell  <mark@codesourcery.com>
2865         * at-file.texi: New file.
2867 2005-09-27  Mark Mitchell  <mark@codesourcery.com>
2869         * argv.c (expandargv): Do not use xmalloc_failed.
2871 2005-09-26  Mark Mitchell  <mark@codesourcery.com>
2873         * argv.c (safe-ctype.h): Include it.
2874         (ISBLANK): Remove.
2875         (stdio.h): Include.
2876         (buildargv): Use ISSPACE instead of ISBLANK.
2877         (expandargv): New function.
2878         * Makefile.in: Regenerated.
2880 2005-09-14  Christopher Faylor  <cgf@timesys.com>
2882         * pex-win32.c: Include "windows.h".
2883         (backslashify): New function.
2884         (fix_argv): Use backslashify to convert path to windows format.
2885         Allocate one more place in new argv for potential executable from '#!'
2886         parsing.
2887         (tack_on_executable): New function.  Conditional on USE_MINGW_MSYS
2888         (openkey): Ditto.
2889         (mingw_rootify): Ditto.
2890         (msys_rootify): Ditto.
2891         (spawn_script): New function.
2892         (pex_win32_exec_child): Save translated argv in newargv.  Pass to
2893         spawn_script if spawnv* fails.
2894         (main): New function.  Conditional on MAIN.  Useful for testing.
2896 2005-08-17  Mark Kettenis  <kettenis@gnu.org>
2898         * floatformat.c (floatformat_always_valid): Change type of last
2899         argument to `void *'.
2900         (floatformat_i387_ext_is_valid): Likewise.
2901         (floatformat_to_double): Change type of second argument to `const
2902         void *'.
2903         (floatformat_from_double): Change type of last argument to `void
2904         *'.
2905         (floatformat_is_valid): Change type of last argument to `const
2906         void *'.
2907         (ieee_test): Remove redundant casts.
2909 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
2911         * strverscmp.c: Update FSF address.
2912         * testsuite/Makefile.in: Likewise.
2913         * testsuite/test-demangle.c: Likewise.
2914         * testsuite/test-pexecute.c: Likewise.
2916 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2918         * getopt.c: Include ansidecl.h before system headers.
2920 2005-07-22  Ben Elliston  <bje@gnu.org>
2922         * getopt.c: Include "ansidecl.h".
2923         (_getopt_initialize): Mark argc and argv parameters as unused.
2925 2005-07-22  Ben Elliston  <bje@gnu.org>
2927         * regex.c (regcomp): Change type of `i' from unsigned to int.
2929 2005-07-22  Ben Elliston  <bje@gnu.org>
2931         Recover patch lost in the sourceware repository:
2932         2005-07-09  Ben Elliston  <bje@au.ibm.com>
2933         * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
2934         * memmove.c: Likewise.
2935         * objalloc.c: Likewise.
2937 2005-07-22  Ben Elliston  <bje@gnu.org>
2939         * configure.ac: Check for a getopt(3) declaration.
2940         * configure, config.in: Regenerate.
2942 2005-07-15  Ben Elliston  <bje@au.ibm.com>
2944         * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
2946 2005-07-12  Ben Elliston  <bje@au.ibm.com>
2948         * floatformat.c (floatformat_to_double): Add a comment about a
2949         potential source of warnings when compiling this file.
2951 2005-07-12  Ben Elliston  <bje@au.ibm.com>
2953         * pexecute.c (pexecute): Cast string litrals to char *.
2954         * regex.c (re_comp): Cast a call to gettext() to char *.
2956 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
2958         * config.table: Delete file.  Move former contents into ...
2959         * configure.ac: ... here and escape any brackets for m4.
2960         * Makefile.in (config.status): Remove dependency on config.table.
2961         * configure: Regenerate.
2963 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
2965         * config.in: Regenerate for 6/20 change.
2967 2005-07-03  Steve Ellcey  <sje@cup.hp.com>
2969         PR other/13906
2970         * md5.c (md5_process_bytes): Check alignment.
2972 2005-07-01  Ian Lance Taylor  <ian@airs.com>
2974         PR other/22268
2975         * cp-demangle.c (d_expr_primary): Don't run off the end of the
2976         string while looking for the end of a literal value.
2977         * testsuite/demangle-expected: Add test case.
2979 2005-06-30  Daniel Berlin  <dberlin@dberlin.org>
2981         * hashtab.c (EMPTY_ENTRY): Moved and renamed.
2982         (DELETED_ENTRY): Ditto.
2984 2005-06-20  Geoffrey Keating  <geoffk@apple.com>
2986         * strverscmp.c: New.
2987         * Makefile.in (CFILES): Add strverscmp.c.
2988         (CONFIGURED_OFILES): Add strverscmp.o.
2989         (strverscmp.o): New rule.
2990         (stamp-functions): Add $(srcdir) to files in source directory.
2991         * configure.ac (funcs): Add strverscmp.
2992         (AC_CHECK_FUNCS): Add strverscmp.
2993         * configure: Regenerate.
2994         * functions.texi: Regenerate.
2996 2005-05-28  Eli Zaretskii  <eliz@gnu.org>
2998         * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
2999         * config.in, configure: Regenerate.
3001 2005-05-25  Richard Henderson  <rth@redhat.com>
3003         * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
3004         (d_make_comp, d_print_comp): Likewise.
3005         (d_special_name): Generate one.
3006         * testsuite/demangle-expected: Add a hidden alias test.
3008 2005-05-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3010         * configure.ac: Check declarations for calloc(), getenv(),
3011         malloc(), realloc() and sbrk().
3012         * config.in: Regenerate.
3013         * configure: Likewise.
3015         * alloca.c (C_alloca): Change "new" to "new_storage".  Use XNEWVEC
3016         instead of xmalloc.
3017         * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
3018         * concat.c (liiberty_concat_ptr): Surround definition with an
3019         extern "C" block, if __cplusplus.
3020         (concat): Use XNEWVEC instead of xmalloc.
3021         (reconcat): Likewise.
3022         * cp-demangle.c (struct d_print_template): Rename member
3023         "template" to "template_decl".  Adjust use throughout the file.
3024         (d_print_resize): Properly cast return value of realloc().
3025         (cplus_demangle_print): Same for malloc().
3026         (d_demangle): Likewise.
3027         * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
3028         "typename" to "type_name".
3029         * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
3030         (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
3031         (demangle_template_value_parm): Likewise.
3032         (demangle_template): Likewise.
3033         (recursively_demangle): Likewise.
3034         (do_hpacc_template_literal): Likewise.
3035         (do_arg): Likewise.
3036         (remember_type): Likewise.
3037         (remember_Ktype): Likewise.
3038         (register_Btype): Likewise.
3039         (string_need): Use XRESIZEVEC instead of xrealloc().
3040         * dyn-string.c (dyn_string_init): Use XNEWVEC.
3041         (dyn_string_new): Use XNEW.
3042         (dyn_string_resize): Use XRESIZEVEC.
3043         * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
3044         * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
3045         Otherwise include <stdlib.h>.
3046         (exchange): Cast return value of malloc().
3047         * hashtab.c (htab_size): Define as both macro and non-inline
3048         function.
3049         (htab_elements): Likewise.
3050         * getpwd.c (getpwd): Use XNEWVEC.
3051         (htab_create_alloc_ex): Use C90 prototype-style.
3052         * lrealpath.c (lrealpath): Appropriately cast return value of
3053         malloc().
3054         * make-relative-prefix.c (save_string): Likewise.
3055         * make-temp-file.c (try_dir): Rename from "try".  Adjust use in
3056         the file.
3057         (choose_tmpdir): Use XNEWVEC.
3058         * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
3059         * pex-common.c (pex_init_common): Use XNEW.
3060         (pex_add_remove): Use XRESIZEVEC.
3061         (pex_run): Likewise.
3062         (pex_get_status_and_time): Likewise.
3063         * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
3064         * pex-msdos.c (pex_init): Use XNEW.
3065         (pex_msdos_exec_child): Likewise.
3066         (pex_msdos_exec_child): Use XRESIZEVEC.
3067         * pex-unix.c (pex_wait): Use XNEW.
3068         * pex-win32.c (fix_argv): Use XNEWVEC.
3069         * pexecute.c (pwait): Likewise.
3070         * setenv.c (setenv): Properly cast return value of malloc().
3071         * sigsetmask.c (sigsetmask): Rename local variables "old" and
3072         "new" to "old_sig" and "new_sig".
3073         * sort.c (main): Use XNEWVEC.
3074         * spaces.c (spaces): Cast return value of malloc().
3075         * strndup.c (strndup): Likewise.
3076         * ternary.c (ternary_insert): Use XNEW.
3077         * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
3078         with an extern "C" block if __cplusplus.
3079         * xstrdup.c (xstrdup): Cast return value of memcpy().
3080         * xstrerror.c (strerror): Enclose declaration in an extern "C"
3081         block if __cplusplus.
3082         * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
3084 2005-05-16  Andreas Jaeger  <aj@suse.de>
3086         * getpwd.c: Remove unneeded prototype getcwd and move getwd so
3087         that it's only declared if needed.
3089         * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
3090         defined.
3092 2005-05-15  Andreas Jaeger  <aj@suse.de>
3094         * functions.texi: Regenerated.
3096 2005-05-15  Eli Zaretskii  <eliz@gnu.org>
3098         * pexecute.txh: Enclose multi-word data types in @deftypefn in
3099         braces.  Minor wording fixes.  Use --- for em-dash.  Use
3100         @enumerate in enumerated lists.
3102         * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
3103         braces.
3105 2005-05-11  Eli Zaretskii  <eliz@gnu.org>
3107         * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
3108         sys/stat.h.
3109         (pex_init): Fix last argument to pex_init_common.
3110         (pex_djgpp_exec_child): Remove leading underscore from _open,
3111         _dup, _dup2, _close, and _spawnv/_spawnvp.  Replace `program',
3112         which is undeclared, with `executable', which was unused.  Remove
3113         unused variable `e'.  Fix casting of last arg to spawnv/spawnvp.
3114         (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
3116 2005-05-11  Paul Brook  <paul@codesourcery.com>
3118         * Makefile.in: Regenerate dependencies.
3120 2005-05-10  Nick Clifton  <nickc@redhat.com>
3122         * Update the address and phone number of the FSF organization in
3123         the GPL notices in the following files:
3124         COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
3125         choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
3126         cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
3127         fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
3128         gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
3129         lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
3130         make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
3131         obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
3132         pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
3133         physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
3134         sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
3135         strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
3136         vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
3138 2005-05-06  Kelley Cook  <kcook@gcc.gnu.org>
3140         * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
3141         * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
3142         * configure: Regenerate.
3144 2005-05-06  Kelley Cook  <kcook@gcc.gnu.org>
3146         * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
3147         Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
3148         * aclocal.m4: Don't include accross.m4.
3149         * configure, config.in: Regenerate.
3151 2005-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3153         * fopen_unlocked.c (unlock_std_streams): New.
3155         * functions.texi: Regenerate.
3157 2005-04-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3159         * fopen_unlocked.c (unlock_stream): New.
3160         Consolidate unlocking code into a helper function.
3162         * functions.texi: Regenerate.
3164 2005-04-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3166         * asprintf.c: Include config.h.
3167         * basename.c: Likewise.
3168         * fdmatch.c: Likewise.
3169         * hex.c: Likewise.
3170         * lbasename.c: Likewise.
3171         * spaces.c: Likewise.
3172         * xatexit.c:Likewise.
3173         * configure.ac:  Do check declarations for basename, ffs, asprintf
3174         and vasprintf for real.
3175         * configure: Regenerate.
3177 2005-04-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3179         * argv.c (dupargv): Allocate space of argv[argc], not
3180         sizeof(char *) of that amount.  Cast result to char *.
3182 2005-04-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3184         * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
3185         Replace not with negate.
3187 2005-04-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3189         * configure.ac: Check declarations for basename, ffs, asprintf,
3190         vasprintf.
3191         * configure: Regenerate.
3192         * config.in: Likewise.
3194 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3196         * Makefile.in (CFILES): Add fopen_unlocked.c.
3197         (REQUIRED_OFILES): Add ./fopen_unlocked.o.
3198         Regenerate dependencies.
3200         * configure.ac: Check for stdio_ext.h and __fsetlocking.
3202         * fopen_unlocked.c: New file.
3204         * functions.texi, configure, config.in: Regenerate.
3206 2005-04-04  Ian Lance Taylor  <ian@airs.com>
3208         * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
3209         declaration before statement.
3211 2005-04-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3213         * bcmp.c: Fix warnings and implement using memcmp.
3214         * bcopy.c: Fix warnings.
3215         * bzero.c: Fix warnings and implement using memset.
3217         * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
3218         -Wstrict-prototypes.
3219         * configure, config.in: Regenerate.
3221         * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
3222         warnings and reconcile interfaces with relevant standards.
3224 2005-04-02  Ian Lance Taylor  <ian@airs.com>
3226         * cp-demangle.c: Update copyright.
3228 2005-03-31  Joseph S. Myers  <joseph@codesourcery.com>
3230         * gettimeofday.c: Add "Supplemental" to @deftypefn.
3231         * functions.texi: Regenerate.
3233 2005-03-28  Ian Lance Taylor  <ian@airs.com>
3235         * pex-common.c: New file.
3236         * pex-one.c: New file.
3237         * pexecute.c: New file.
3238         * pex-common.h: Include <stdio.h>.
3239         (struct pex_obj): Define.
3240         (struct pex_funcs): Define.
3241         (pex_init_common): Declare.
3242         * pex-unix.c: Rewrite.
3243         * pex-win32.c: Rewrite.
3244         * pex-djgpp.c: Rewrite.
3245         * pex-msdos.c: Rewrite.
3246         * testsuite/text-pexecute.c: New file.
3247         * pexecute.txh: Rewrite.
3248         * configure.ac: Check for wait3 and wait4.  Set CHECK to
3249         really-check rather than check-cplus-dem.
3250         * functions.texi: Rebuild.
3251         * Makefile.in: Rebuild dependencies.
3252         (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
3253         (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
3254         * testsuite/Makefile.in (really-check): New target.
3255         (check-pexecute, test-pexecute): New targets.
3256         * configure: Rebuild.
3258 2005-03-28  Mark Kettenis  <kettenis@gnu.org>
3260         * unlink-if-ordinary.c: Include <sys/types.h>.
3262 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3264         Convert libiberty to use ISO C prototype style 7/n.
3265         * regex.c (PARAMS): Remove definition.
3266         (PREFIX): Unconditionaly define using ISO C ## operator.
3267         (init_syntax_once, extract_number, extract_number_and_incr,
3268         print_fastmap, print_partial_compiled_pattern,
3269         print_compiled_pattern, print_double_string, printchar,
3270         convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
3271         regex_compile, store_op1, store_op2, insert_op1, insert_op2,
3272         at_begline_loc_p, at_endline_p, group_in_compile_stack,
3273         insert_space, wcs_compile_range, byte_compile_range,
3274         truncate_wchar, re_compile_fastmap, re_compile_fastmap,
3275         re_set_registers, re_search, re_search_2, re_search_3, re_match,
3276         re_match_2, count_mbs_length, wcs_re_match_2_internal,
3277         byte_re_match_2_internal, group_match_null_string_p,
3278         alt_match_null_string_p, common_op_match_null_string_p,
3279         bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
3280         regexec, regerror, regfree): Use ISO C prototype style.
3281         * partition.c: (elem_compare): Likewise.
3282         * cp-demangle.c (print_usage): Likewise.
3284 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3286         Convert libiberty to use ISO C prototype style 5/n.
3287         * random.c (srandom, initstate, setstate, random): Use ISO C
3288         prototypes.
3289         * putenv.c (putenv): Likewise.
3290         * physmem.c (physmem_available, physmem_total, main): Likewise.
3291         * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
3292         * pex-unix.c (pexecute, pwait): Likewise.
3293         * pex-msdos.c (pexecute, pwait): Likewise.
3294         * pex-djgpp.c (pexecute, pwait): Likewise.
3295         * partition.c (partition_new, partition_delete, partition_union)
3296         (elem_compare, partition_print): Likewise.
3297         * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
3298         _obstack_allocated_p, _obstack_free, obstack_free,
3299         _obstack_memory_used, print_and_abort, obstack_next_free,
3300         obstack_object_size, obstack_base): Likewise.  Remove codes
3301         predicated on !defined(__STDC__).
3302         * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
3303         objalloc_free_block): Use ISO C prototypes.
3304         * mkstemps.c (mkstemps): Likewise.
3305         * memset.c (memset): Likewise.
3306         * mempcpy.c (mempcpy): Likewise.
3307         * rename.c (rename): Likewise.
3308         * rindex.c (rindex): Likewise.
3309         * setenv.c (setenv, unsetenv): Likewise.
3310         * sigsetmask.c (sigsetmask): Likewise.
3311         * snprintf.c (snprintf): Likewise.
3312         * sort.c (sort_pointers, xmalloc): Likewise.
3313         * spaces.c (spaces): Likewise.
3314         * splay-tree.c (splay_tree_delete_helper,
3315         splay_tree_splay_helper, splay_tree_splay,
3316         splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
3317         splay_tree_new, splay_tree_xmalloc_allocate,
3318         splay_tree_new_with_allocator, splay_tree_delete,
3319         splay_tree_insert, splay_tree_remove, splay_tree_lookup,
3320         splay_tree_max, splay_tree_min, splay_tree_predecessor,
3321         splay_tree_successor, splay_tree_foreach,
3322         splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
3323         * stpcpy.c (stpcpy): Likewise.
3324         * stpncpy.c (stpncpy): Likewise.
3325         * strcasecmp.c (strcasecmp): Likewise.
3326         * strchr.c (strchr): Likewise.
3327         * strdup.c (strdup): Likewise.
3329 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3331         Convert libiberty to use ISO C prototype style 6/n.
3332         * strerror.c (init_error_tables, errno_max, strerror, strerrno,
3333         strtoerrno, main): Use ISO C prototype style.
3334         * strncasecmp.c (strncasecmp): Likewise.
3335         * strncmp.c (strncmp): Likewise.
3336         * strndup.c (strndup): Likewise.
3337         * strrchr.c (strrchr): Likewise.
3338         * strsignal.c (init_signal_tables, signo_max, strsignal,
3339         strsigno, strtosigno, psignal, main): Likewise.
3340         * strstr.c (strstr): Likewise.
3341         * strtod.c (strtod, atof): Likewise.
3342         * strtol.c (strtol): Likewise.
3343         * strtoul.c (strtoul): Likewise.
3344         * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
3345         ternary_recursivesearch): Likewise.
3346         * tmpnam.c (tmpnam): Likewise.
3347         * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
3348         * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
3349         * vfork.c (vfork): Likewise.
3350         * vfprintf.c (vfprintf): Likewise.
3351         * vprintf.c (vprintf): Likewise.
3352         * vsnprintf.c (vsnprintf, checkit, main): Likewise.
3353         * vsprintf.c (vsprintf): Likewise.
3354         * waitpid.c (waitpid): Likewise.
3355         * xatexit.c (xatexit, xatexit_cleanup): Likewise.
3356         * xexit.c (xexit): Likewise.
3357         * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
3358         xcalloc, xrealloc): Likewise.
3359         * xmemdup.c (xmemdup): Likewise.
3360         * xstrdup.c (xstrdup): Likewise.
3361         * xstrerror.c (xstrerror): Likewise.
3362         * xstrndup.c (xstrndup): Likewise.
3364 2005-03-27  Andreas Jaeger  <aj@suse.de>
3366         * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
3367         flags.
3368         * configure: Regenerated.
3370 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3372         * getopt1.c (getopt_long_only): Fix thinko.
3374 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3376         Convert libiberty to use ISO C prototype style 4/n.
3377         * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
3378         htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
3379         htab_create_alloc, htab_set_functions_ex, htab_create,
3380         htab_try_create, htab_delete, htab_empty,
3381         find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
3382         htab_find, htab_find_slot_with_hash, htab_find_slot,
3383         htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
3384         htab_traverse_noresize, htab_traverse, htab_collisions,
3385         htab_hash_string, iterative_hash): Use ISO C prototype.
3386         * hex.c (hex_init): Likewise.
3387         * index.c (index): Likewise.
3388         * insque.c (insque, remque): Likewise.
3389         * lbasename.c (lbasename): Likewise.
3390         * lrealpath.c (lrealpath): Likewise.
3391         * make-relative-prefix.c (save_string, split_directories,
3392         free_split_directories, make_relative_prefix): Likewise.
3393         * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
3394         * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
3395         md5_buffer, md5_process_bytes, md5_process_block): Likewise.
3396         * memchr.c (memchr): Likewise.
3397         * memcpy.c (memcpy): Likewise.
3398         * memmove.c (memmove): Likewise.
3399         * gettimeofday.c (gettimeofday): Likewise.
3400         * getruntime.c (get_run_time): Likewise.
3401         * getpwd.c (getpwd, getpwd): Likewise.
3402         * getpagesize.c (getpagesize): Likewise.
3403         * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
3404         * getopt.c (my_index, exchange, _getopt_initialize,
3405         _getopt_internal, getopt, main): Likewise.
3406         * getcwd.c (getcwd): Likewise.
3407         * fnmatch.c (fnmatch): Likewise.
3408         * floatformat.c (floatformat_always_valid,
3409         floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
3410         put_field, floatformat_from_double, floatformat_is_valid,
3411         ieee_test, main): Likewise.
3412         * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
3413         fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
3414         fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
3415         fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
3416         fibheap_delete, fibheap_empty, fibheap_extr_min_node,
3417         fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
3418         fibheap_link, fibheap_cut, fibheap_cascading_cut,
3419         fibnode_insert_after, fibnode_remove): Likewise.
3420         * ffs.c (ffs): Likewise.
3421         * fdmatch.c (fdmatch): Likewise.
3422         * dyn-string.c (dyn_string_init, dyn_string_new,
3423         dyn_string_delete, dyn_string_release, dyn_string_resize,
3424         dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
3425         dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
3426         dyn_string_insert_cstr, dyn_string_insert_char,
3427         dyn_string_append, dyn_string_append_cstr,
3428         dyn_string_append_char, dyn_string_substring, dyn_string_eq):
3429         Likewise.
3431 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3433         Convert libiberty to use ISO C prototype style 3/n.
3434         * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
3435         consume_count_with_underscores, code_for_qualifier,
3436         qualifier_string, demangle_qualifier, cplus_demangle_opname,
3437         cplus_mangle_opname, cplus_demangle_set_style,
3438         cplus_demangle_name_to_style, cplus_demangle, grow_vect,
3439         ada_demangle, internal_cplus_demangle, squangle_mop_up,
3440         work_stuff_copy_to_from, delete_non_B_K_work_stuff,
3441         delete_work_stuff, mop_up, demangle_signature,
3442         demangle_method_args, demangle_template_template_parm,
3443         demangle_expression, demangle_integral_value,
3444         demangle_real_value, demangle_template_value_parm,
3445         demangle_template, arm_pt, demangle_arm_hp_template,
3446         demangle_class_name, demangle_class, iterate_demangle_function,
3447         demangle_prefix, gnu_special, recursively_demangle, arm_special,
3448         demangle_qualified, get_count, do_type, demangle_fund_type,
3449         do_hpacc_template_const_value, do_hpacc_template_literal,
3450         snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
3451         register_Btype, remember_Btype, forget_B_and_K_types,
3452         forget_types, demangle_args, demangle_nested_args,
3453         demangle_function_name, string_need, string_delete, string_init,
3454         string_clear, string_empty, string_append, string_appends,
3455         string_appendn, string_prepend, string_prepends, string_prependn,
3456         string_append_template_idx): Use ISO C prootype style.
3457         * cp-demint.c (cplus_demangle_fill_component,
3458         cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
3459         cplus_demangle_v3_components): Likewise.
3461 2005-03-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3463         Convert libiberty to use ISO C prototype style 2/n.
3464         * cp-demangle.h: Remove uses of PARAMS.
3465         * cp-demangle.c: Likewise.
3466         (d_dump, cplus_demangle_fill_name,
3467         cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
3468         cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
3469         d_make_builtin_type, d_make_operator, d_make_extended_operator,
3470         d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
3471         cplus_demangle_mangled_name, has_return_type,
3472         is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
3473         d_prefix, d_unqualified_name, d_source_name, d_number,
3474         d_identifier, d_operator_name, d_special_name, d_call_offset,
3475         d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
3476         d_function_type, d_bare_function_type, d_class_enum_type,
3477         d_array_type, d_pointer_to_member_type, d_template_param,
3478         d_template_args, d_template_arg, d_expression, d_expr_primary,
3479         d_local_name, d_discriminator, d_add_substitution,
3480         d_substitution, d_print_resize, d_print_append_char,
3481         d_print_append_buffer, d_print_error, cplus_demangle_print,
3482         d_print_comp, d_print_java_identifier, d_print_mod_list,
3483         d_print_mod, d_print_function_type, d_print_array_type,
3484         d_print_expr_op, d_print_cast, cplus_demangle_init_info,
3485         d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
3486         is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
3487         print_usage, main):
3489 2005-03-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3491         Convert libiberty to ISO C prototype style 1/n.
3492         * _doprnt.c: Remove conditional #include <varargs.h> on
3493         ANSI_PROTOTYPES as the latter is always assumed.
3494         (_doprnt, checkit, main): Use ISO C prototype.
3495         * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
3496         * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
3497         (dupargv, freeargv, buildargv, main): Use ISO C prototype.
3498         * atexit.c (atexit): Likewise
3499         * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
3500         (asprintf): Use ISO C prototype.
3501         * basename.c (basename): Likewise
3502         * bcmp.c (bcmp): Likewise.
3503         * bcopy.c (bcopy): Likewise.
3504         * bzero.c (bzero): Likewise.
3505         * bsearch.c (bsearch): Likewise.  Improve const-correctness.
3506         * choose-temp.c (choose_temp_base): Likewise.
3507         * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
3508         (calloc): Use ISO C prototype.
3509         * clock.c (clock): Likewise.
3510         * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
3511         (vconcat_length, vconcat_copy, concat_length, concat_copy,
3512         concat_copy2, concat, reconcat, main): Use ISO C prototype.
3513         * copysign.c (copysign): Likewise.
3515 2005-03-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3517         * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
3518         (REQUIRED_OFILES): Add xstrndup.o.
3519         (CONFIGURED_OFILES): Add strndup.o.
3520         Regenerate dependencies.
3522         * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
3524         * strndup.c, xstrndup.c: New.
3526         * config.in, configure, functions.texi: Regenerate.
3528 2005-03-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3530         * xmemdup.c, xstrdup.c: Expose the tail call.
3532 2005-03-09  Mark Mitchell  <mark@codesourcery.com>
3534         * configure.ac (funcs): Add gettimeofday.
3535         * configure: Regenerated.
3536         * gettimeofday.c: New file.
3537         * Makefile.in (CFILES): Add gettimeofday.
3538         (CONFIGURED_OFILES): Add gettimeofday.o.
3539         (./gettimeofday.o): New rule.
3541 2005-03-09  Ian Lance Taylor  <ian@airs.com>
3543         * pex-os2.c: Remove.
3544         * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
3545         * Makefile.in (CFILES): Remove pex-os2.c.
3546         (CONFIGURED_OFILES): Remove pex-os2.o.
3547         (pex-os2.o): Remove target.
3548         * configure: Rebuild.
3550 2005-03-07  Ian Lance Taylor  <ian@airs.com>
3552         * mpw-config.in: Remove.
3553         * mpw-make.sed: Remove.
3554         * mpw.c: Remove.
3555         * Makefile.in (CFILES): Remove pex-mpw.c.
3556         (CONFIGURED_OFILES): Remove pex-mpw.o.
3557         (mpw.o, pex-mpw.o): Remove targets.
3558         * maint-tool (undoc): Remove reference to mpw.c.
3560 2005-03-06  DJ Delorie  <dj@redhat.com>
3562         * configure.ac (target_header_dir): vfork is a stub under djgpp.
3563         * configure: Regenerated.
3565 2005-03-01  Jan Beulich  <jbeulich@novell.com>
3567         * Makefile.in (CFILES): Add unlink-if-ordinary.c
3568         (REQUIRED_OFILES): Add unlink-if-ordinary.o.
3569         Add dependencies and rule for unlink-if-ordinary.o.
3570         * unlink-if-ordinary.c: New.
3572 2005-03-01  Ben Elliston  <bje@au.ibm.com>
3574         * hashtab.c (htab_find_slot_with_hash): Make function
3575         documentation clearer.
3577 2005-02-13  Jason Merrill  <jason@redhat.com>
3579         * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
3580         arguments.
3582 2005-01-11  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
3584         * hex.c (hex_value): Group 'unsigned int' together to get correct
3585         markup.
3586         * functions.texi: Regenerated.
3588 2004-12-27  H.J. Lu  <hongjiu.lu@intel.com>
3590         * Makefile.in: Undo to 2004-12-17.
3591         * aclocal.m4: Likewise.
3592         * config.table: Likewise.
3593         * configure.ac: Likewise.
3594         * maint-tool: Likewise.
3595         * configure: Likewise.
3597 2004-12-19  H.J. Lu  <hongjiu.lu@intel.com>
3599         PR bootstrap/19072
3600         * Makefile.in (enable_shared): New substitute.
3601         (LTTARGETLIB): New.
3602         (PREFIXTARGETLIB): New.
3603         (LTTESTLIB): New.
3604         (PREFIXTESTLIB): New.
3605         (CCLD): New.
3606         (LINK): New.
3607         ($(TARGETLIB)): Use $(LINK) to create libraries and create
3608         targets by hand.
3609         ($(TESTLIB)): Likewise.
3610         (mostlyclean): Don't remove .libs. Remove the libtool object
3611         directory.
3613         * config.table (enable_shared): Removed.
3615         * configure.ac (enable_static): Set to yes.
3616         (AC_PROG_LIBTOOL): Removed.
3617         (AM_DISABLE_SHARED): Uncommented.
3618         (AM_PROG_LIBTOOL): Likewise.
3619         (LIBOBJS): Add `./' to avoid VPATH.
3620         (LTLIBOBJS): Likewise.
3621         (enable_shared): Substitute.
3622         * configure: Regenerated.
3624 2004-12-18  H.J. Lu  <hongjiu.lu@intel.com>
3626         * Makefile.in (top_builddir): Set to `.'.
3627         (OUTPUT_OPTION): Removed.
3628         (LIBTOOL): New.
3629         (LTLIBOBJS): New.
3630         (EXTRA_LTOFILES): New.
3631         (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
3632         (all): Remove stamp-picdir.
3633         (LTCOMPILE): New.
3634         (.c.lo): New rule.
3635         (REQUIRED_LTOFILES): New.
3636         (CONFIGURED_LTOFILES): New.
3637         ($(TARGETLIB)): Check .libs for PIC object files. Depend on
3638         $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
3639         (stamp-picdir): Completely removed.
3640         (maint-missing): Pass $(REQUIRED_LTOFILES)
3641         $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
3642         $(CONFIGURED_OFILES)
3643         (maint-buildall): Depend on $(REQUIRED_LTOFILES)
3644         $(CONFIGURED_LTOFILES).
3645         (mostlyclean): Also remove *.lo .libs.
3646         Run "make maint-deps".
3648         * aclocal.m4: Include ../libtool.m4.
3650         * config.table: Don't check --enable-shared.
3652         * configure.ac (AC_PROG_LIBTOOL): Add.
3653         (AC_PROG_CC_C_O): Removed.
3654         (OUTPUT_OPTION): Removed.
3655         (NO_MINUS_C_MINUS_O): Removed.
3656         (ltpexecute): New substitute.
3657         (LIBOBJS): Cleanup.
3658         * configure: Regenerated.
3660         * maint-tool: Updated for .lo/libtool.
3662 2004-12-11  Ben Elliston  <bje@au.ibm.com>
3664         * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
3665         * configure: Regenerate.
3666         * config.in: Likewise.
3668 2004-12-07  DJ Delorie  <dj@redhat.com>
3670         * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
3671         that recursion (and thus large stack space) is not needed.
3673 2004-11-29  Matt Kraai  <kraai@alumni.cmu.edu>
3675         * pex-unix.c: Fix the spelling of longjmp.
3677 2004-11-23  Ian Lance Taylor  <ian@wasabisystems.com>
3679         PR other/18623
3680         * cp-demangle.c (d_call_offset): Remove useless local variables
3681         offset and virtual_offset.
3682         * cplus-dem.c (ada_demangle): Remove useless local variable
3683         at_start_name.
3684         (demangle_template): Remove useless local variable start.
3686 2004-11-19  Roger Sayle  <roger@eyesopen.com>
3688         * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
3689         "ansidecl.h" to avoid redeclaration errors with native compilers.
3690         * regex.c: Protect config.h from multiple inclusion.
3692 2004-11-12  Mike Stump  <mrs@apple.com>
3694         * Makefile.in (libiberty.html): Fix html generation.
3696 2004-09-08  Adam Nemet  <anemet@lnxw.com>
3698         * vasprintf.c: Accept __va_copy in addition to va_copy.
3700 2004-09-03  Paolo Bonzini  <bonzini@gnu.org>
3702         * configure: Regenerate.
3704 2004-09-02  Paolo Bonzini  <bonzini@gnu.org>
3706         * configure.ac: Do not enable multilibs for build-side libiberty.
3708 2004-06-29  Danny Smith  <dannysmith@users.sourceforge.net>
3710         * lrealpath.c (lrealpath): Add _WIN32 support.
3712 2004-06-28  Zack Weinberg  <zack@codesourcery.com>
3714         * cp-demangle.h: Declare cplus_demangle_operators,
3715         cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
3716         cplus_demangle_type as static if IN_GLIBCPP_V3.
3718 2004-06-28  Ian Lance Taylor  <ian@wasabisystems.com>
3720         PR other/16240
3721         * cp-demangle.c (d_expr_primary): Check for a failure return from
3722         cplus_demangle_type.
3723         * testsuite/demangle-expected: Add test case.
3725 2004-05-31  Danny Smith  <dannysmith@users.sourceforge.net>
3727         * pex-win32.c (fix_argv): Expand comment.
3729 2004-05-25  Daniel Jacobowitz  <drow@false.org>
3731         * Makefile.in: Add .NOEXPORT.
3733 2004-04-29  Douglas B Rupp  <rupp@gnat.com>
3735         * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
3736         copyright.
3738 2004-04-26  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3740         * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
3741         * configure: Regenerate.
3743 2004-04-22  Richard Henderson  <rth@redhat.com>
3745         * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
3746         (CHAR_BIT): Provide default.
3747         (struct prime_ent, prime_tab): New.
3748         (higher_prime_index): Rename from higher_prime_number, return index.
3749         (htab_mod_1): New.
3750         (htab_mod, htab_mod_m2): Use it.
3751         (htab_create_alloc, htab_create_alloc_ex): Store prime index.
3752         (htab_expand): Likewise.
3753         * configure.ac: Check for stdint.h.
3754         (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
3755         * config.in, configure: Rebuild.
3757 2004-04-13  Ian Lance Taylor  <ian@wasabisystems.com>
3759         * strerror.c: Include config.h, and redefine sys_nerr and
3760         sys_errlist, before including ansidecl.h and libiberty.h.
3762 2004-04-13  Jeff Law  <law@redhat.com>
3764         * hashtab.c (htab_remove_elt_with_hash): New function.
3765         (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
3767 2004-03-31  Richard Henderson  <rth@redhat.com>
3769         * hashtab.c (htab_size): Move to top of file; mark inline.
3770         (htab_elements): Likewise.
3771         (htab_mod, htab_mod_m2): New.
3772         (htab_delete): Refactor htab->size and htab->entries.
3773         (htab_empty): Likewise.
3774         (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
3775         (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
3776         (htab_clear_slot): Use htab_size, htab_elements.
3777         (htab_traverse_noresize, htab_traverse): Likewise.
3779 2004-03-17  Ian Lance Taylor  <ian@wasabisystems.com>
3781         * pex-unix.c (pexecute): Use vfork instead of fork, with
3782         appropriate changes to make this safe.
3783         * pex-common.h (STDERR_FILE_NO): Define.
3785         * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
3786         an 80 column screen.  Run maint-deps.
3788 2004-03-09  Kelley Cook  <kcook@gcc.gnu.org>
3790         * configure.ac: Bump version to 2.59.  Apply suggested autoupdates.
3791         * acconfig.h: Delete redundant file.
3792         * config.in: Regenerate.
3793         * configure: Regenerate.
3795 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
3797         * configure: Regenerate for config/accross.m4 correction.
3799 2004-03-07  Andreas Jaeger  <aj@suse.de>
3801         * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
3802         prototypes.
3803         (main): Initialize style.
3805 2004-02-24  Ian Lance Taylor  <ian@wasabisystems.com>
3807         * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
3808         D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
3809         D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
3810         * cp-demangle.c (cplus_demangle_builtin_types): Change char and
3811         short types to D_PRINT_DEFAULT.  Change other integer types to use
3812         new D_PRINT_* values where appropriate.  Change float types to
3813         D_PRINT_FLOAT.
3814         (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
3815         values.
3816         * testsuite/demangle-expected: Adjust two test cases.
3818         * cp-demangle.c (d_print_function_type): Print a space before the
3819         parenthesis around the function type in more cases.
3820         * testsuite/demangle-expected: Adjust one test case.
3822         * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
3823         parentheses around a cast.
3824         * testsuite/demangle-expected: Adjust two test cases to match new
3825         output.
3827         * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
3829         * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
3830         push more than one of the same CV-qualifier on the top of the
3831         stack.
3832         (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
3833         move the CV-qualifiers to apply to the element type instead.
3834         (d_print_array_type): When checking the modifiers, keep looking
3835         past ones which have been printed already.
3836         * testsuite/demangle-expected: Add three test cases.
3838 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
3840         * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
3841         empty string correctly.
3843         * cp-demangle.c (__cxa_demangle): It is not an error if status is
3844         not NULL.  It is an error if the mangled name is the same as a
3845         built-in type name.
3846         (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
3847         than cplus_demangle_v3.
3849         * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
3850         the associated #define of RETURN_ON_ALLOCATION_FAILURE.
3852 2004-02-16  Matt Kraai  <kraai@alumni.cmu.edu>
3854         * regex.c: Include <ansidecl.h>.
3855         (regcomp): Cast i to int.
3856         (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
3858 2004-01-25  Ian Lance Taylor  <ian@wasabisystems.com>
3860         * configure.ac: Add m4_pattern_allow(LIBOBJS).
3861         * configure: Regenerate.
3863 2004-01-22  DJ Delorie  <dj@redhat.com>
3865         * Makefile.in: Convert to ./ throughout.  Rebuild dependencies
3866         with explicit build rules.
3867         (VPATH): Remove.
3868         (.c.o): Poison.
3869         * configure.ac (pexecute, LIBOBJS): Add ./ .
3870         * maint-tool: Build dependencies with explicit rules.
3872 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
3874         * strdup.c (strdup): Constify the argument.
3876 2004-01-14  Loren J. Rittle  <ljrittle@acm.org>
3878         * Makefile.in (distclean): Remove config.cache.
3880 2004-01-13  Daniel Jacobowitz  <drow@mvista.com>
3882         * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
3883         takes two parameters.
3884         * cp-demint.c (cplus_demangle_fill_component): Likewise.
3886 2004-01-12  Ian Lance Taylor  <ian@wasabisystems.com>
3888         * cp-demangle.c: Include "cp-demangle.h".  If IN_GLIBCPP_V3 is
3889         defined, rename some functions which are to become static via
3890         #define.
3891         (CP_STATIC_IF_GLIBCPP_V3): Define.
3892         (struct d_operator_info): Move definition to cp-demangle.h, and
3893         rename to demangle_operator_info.  Change all uses.
3894         (enum d_builtin_type_print): Move definition to cp-demangle.h.
3895         (struct d_builtin_type_info): Move definition to cp-demangle.h,
3896         and rename to demangle_builtin_type_info.  Change all uses.
3897         (enum d_comp_type): Move definition to include/demangle.h, and
3898         rename to demangle_component_type, and change all enums to start
3899         with DEMANGLE_COMPONENT_ instead of D_.  Change all uses.
3900         (struct d_comp): Move definition to include/demangle.h, and rename
3901         to demangle_component.  Change all uses.
3902         (struct d_info): Move definition to cp-demangle.h.
3903         (cplus_demangle_fill_name): New function.
3904         (cplus_demangle_fill_extended_operator): New function.
3905         (cplus_demangle_fill_ctor): New function.
3906         (cplus_demangle_fill_dtor): New function.
3907         (d_make_empty): Remove type parameter.  Change all callers.
3908         (d_make_name): Use cplus_demangle_fill_name.
3909         (d_make_extended_operator): Use
3910         cplus_demangle_fill_extended_operator.
3911         (d_make_ctor): Use cplus_demangle_fill_ctor.
3912         (d_make_dtor): Use cplus_demangle_fill_dtor.
3913         (cplus_demangle_mangled_name): Rename from d_mangled_name.  Make
3914         non-static by default.  Change all callers.
3915         (cplus_demangle_operators): Rename from d_operators.  Change all
3916         uses.  Make non-static by default.  Add sentinel at end of array.
3917         (d_operator_name): Adjust initialization of high for new sentinel
3918         in cplus_demangle_operators.
3919         (cplus_demangle_builtin_types): Rename from d_builtin_types.
3920         Change all uses.  Make non-static by default.  Change initializer
3921         to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
3922         (cplus_demangle_type): Rename from d_type.  Make non-static by
3923         default.  Change all callers.
3924         (cplus_demangle_init_info): Rename from d_init_info.  Make
3925         non-static by default.  Change all callers.
3926         * cp-demangle.h: New file.
3927         * cp-demint.c: New file.
3928         * Makefile.in: Rebuild dependencies.
3929         (CFILES): Add cp-demint.c.
3930         (REQUIRED_OFILES): Add cp-demint.o.
3932 2004-01-09  Kelley Cook  <kcook@gcc.gnu.org>
3934         * configure.in:  Rename file to ...
3935         * configure.ac:  ... this.
3936         * Makefile.in: Update a comment for above change.
3937         * README: Likewise.
3938         * config.in: Regenerate.
3940 2004-01-02  Ian Lance Taylor  <ian@wasabisystems.com>
3942         * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
3943         CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
3944         * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
3945         demangling template parameters.
3946         * testsuite/test-demangle.c (fail): New static function.
3947         (main): Support new options in input file: --no-params,
3948         --is-v3-ctor, and --is-v3-dtor.
3949         * testsuite/demangle-expected: Add --no-params to most tests, and
3950         add the correct result when parameters are not demangled.  Add
3951         some simple tests for V3 constructor/destructor recognition.
3953 2003-12-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3955         * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
3957 2003-12-22  Daniel Jacobowitz  <drow@mvista.com>
3959         PR debug/13272
3960         * Makefile.in (lbasename.o): Depend on filenames.h.
3961         * lbasename.c: Include "filenames.h" instead of defining
3962         its macros locally.
3964 2003-12-22  Ian Lance Taylor  <ian@wasabisystems.com>
3966         * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
3967         dynamic arrays.
3968         (struct d_operator_info): Add len field.
3969         (struct d_builtin_type_info): Add len and java_len fields.
3970         (struct d_standard_sub_info): Add simple_len, full_len, and
3971         set_last_name_len fields.
3972         (struct d_comp): Add len field to s_string.
3973         (struct d_info): Add send, did_subs, and expansion fields.
3974         (d_append_string_constant): Define.
3975         (d_append_string): Remove.  Change all users to use
3976         d_append_string_constant or d_append_buffer instead.
3977         (d_make_sub): Add len parameter.  Change all callers.
3978         (d_name): Increase expansion when substituting std::.
3979         (d_unqualified_name): Increase expansion for an operator.
3980         (d_number): Don't use multiplication for negative numbers.
3981         (d_identifier): Make sure there are enough characters in the
3982         string for the specified length.  Adjust expansion for an
3983         anonymous namespace.
3984         (d_operators): Initialize len field.
3985         (d_special_name, d_ctor_dtor_name): Increase expansion.
3986         (d_builtin_types): Initialize len and java_len fields.
3987         (d_type): Increase expansion for a builtin type.
3988         (d_cv_qualifiers): Increase expansion for each qualifier.
3989         (d_bare_function_type): Decrease expansion when removing single
3990         void parameter.
3991         (d_template_param): Increment did_subs.
3992         (d_expression): Increase expansion for an operator.
3993         (d_expr_primary): Decrease expansion for a type we will print
3994         specially.
3995         (standard_subs): Initialize new fields.
3996         (d_substitution): Increment did_subs when doing a normal
3997         substitution.  Increase expansion for a special substitution.
3998         (d_print): Add estimate parameter.  Change all callers.
3999         (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
4000         (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
4001         (d_print_java_identifier): Rename from d_print_identifier.  Handle
4002         only Java case.  Change caller.
4003         (d_init_info): Change return type to void.  Change all callers.
4004         Initialize send, did_subs, and expansion fields.  Do not
4005         initialize comps and subs fields.
4006         (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
4007         arrays on stack.  Make an estimate of the length of the demangled
4008         name.  Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
4009         (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
4010         subs arrays on stack.
4012 2003-12-20  Ian Lance Taylor  <ian@wasabisystems.com>
4014         * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
4015         after the identifier.
4016         * testsuite/demangle-expected: Add test case.
4018 2003-12-19  Ian Lance Taylor  <ian@wasabisystems.com>
4020         Fix for PR c++/13447:
4021         * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
4022         (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
4023         (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
4024         D_COMP_QUAL_NAME.
4025         (is_ctor_or_dtor): Likewise.
4026         (d_local_name): Use D_COMP_LOCAL_NAME rather than
4027         D_COMP_QUAL_NAME.
4028         (d_print_comp) [D_COMP_LOCAL_NAME]: New.
4029         (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
4030         D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
4031         (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
4032         * testsuite/demangle-expected: Add two test cases.
4034         * cp-demangle.c (d_print_function_type): Clear the global modifier
4035         list when printing the modifiers, not just when printing the
4036         function parameters.
4037         * testsuite/demangle-expected: Add two test cases.
4039 2003-12-15  Ian Lance Taylor  <ian@wasabisystems.com>
4041         * cp-demangle.c (d_print_function_type): Print the function
4042         parameters with no modifiers.
4043         * testsuite/demangle-expected: Add test case.
4045         * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
4046         expect that we've read the entire string.
4047         (is_ctor_or_dtor): Don't expect that we've read the entire
4048         string--reverse patch of 2003-11-29.
4050 2003-12-15  Brendan Kehoe  <brendan@zen.org>
4052         * Makefile.in (floatformat.o): Add dependency on
4053         config.h to accompany change of 2003-12-03.
4055 2003-12-15  Ian Lance Taylor  <ian@wasabisystems.com>
4057         Fix handling of constructor/destructor of standard substitution:
4058         * cp-demangle.c (struct d_standard_sub_info): Define.
4059         (d_substitution): Add prefix argument.  Change all callers.
4060         Rework handling of standard substitutions to print full name when
4061         qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
4062         * testsuite/demangle-expected: Add test case.
4064         Fix handling of negative literal constants:
4065         * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
4066         (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
4067         (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
4068         (d_print_comp): Handle D_COMP_LITERAL_NEG.
4069         * testsuite/demangle-expected: Add test case.
4071 2003-12-04  Ian Lance Taylor  <ian@wasabisystems.com>
4073         * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
4074         (d_last_char): Define new macro.
4075         (d_make_name): Reject an empty name.
4076         (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
4077         (d_substitution, d_print_identifier): Likewise.
4078         (d_print_comp) [D_COMP_OPERATOR]: Likewise.
4079         (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
4080         (d_print_mod) Use new d_last_char macro.
4081         (d_print_cast): Use new d_last_char macro.
4082         (is_ctor_or_dtor): Don't leak memory.
4084         Fix handling of member function modifiers:
4085         * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
4086         D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
4087         (d_dump): Dump new d_comp_type values.
4088         (d_make_comp): Accept new d_comp_type values.
4089         (has_return_type): Only accept _THIS variants of qualifiers.
4090         (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
4091         qualifiers.
4092         (d_cv_qualifiers): Add member_fn parameter.  Change all callers.
4093         (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
4094         qualifiers and printing them at the end, add _THIS qualifiers to
4095         the modifier list.
4096         (d_print_comp) [D_COMP_*_THIS]: New cases.
4097         (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
4098         qualifiers.
4099         (d_print_mod_list): Add suffix parameter.  Change all callers.
4100         Keep walking the list even if the current modifier has been
4101         printed.
4102         (d_print_mod): Handle new _THIS qualifiers.
4103         (d_print_function_type): Handle new _THIS qualifiers when deciding
4104         whether to print a parenthesis.  Put a space before the
4105         parenthesis in some cases.  Call d_print_mod_list again at the
4106         end, passing suffix as 1.
4107         (is_ctor_or_dtor): Look for new _THIS qualifiers.
4108         * testsuite/demangle-expected: Add test case.
4110         Fix for PR gcc/13304:
4111         * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
4112         before the '<' is itself a '<', insert a space.
4113         (d_print_cast): Likewise.
4114         * testsuite/demangle-expected: Add test case.
4116         Fix for PR gcc/13244:
4117         * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
4118         which uses the '>' operator in an extra layer of parens.
4119         * testsuite/demangle-expected: Add test case.
4121 2003-12-03  Ian Lance Taylor  <ian@wasabisystems.com>
4123         * floatformat.c: Include "config.h" and <string.h> if available.
4124         (INFINITY, NAN): Define if not defined by <math.h>.
4125         (floatformat_to_double): Handle NaN, infinity, and denormalized
4126         numbers.
4127         (floatformat_from_double): Likewise.
4128         (ieee_test): In debugging code, use little endian rather than big
4129         endian.  Correct tests to handle NaN and to check correct sign of
4130         zero.  Omit m68k extended test.
4131         (main): Add more debugging cases.
4133 2003-11-29  Ian Lance Taylor  <ian@wasabisystems.com>
4135         * cp-demangle.c (d_demangle): Only return success if we consumed
4136         the entire demangled string.
4137         (is_ctor_or_dtor): Likewise.
4139         * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
4140         to restore expected result of EDG test case to original expected
4141         result.
4143 2003-11-26  Ian Lance Taylor  <ian@wasabisystems.com>
4145         * cp-demangle.c (struct d_print_mod): Add templates field.
4146         (d_make_builtin_type): Check for NULL type.
4147         (d_make_extended_operator): Check for NULL name.
4148         (d_make_ctor, d_make_dtor): Likewise.
4149         (d_mangled_name): Add top_level parameter.  Change all callers.
4150         (d_encoding): If DMGL_PARAMS is not set, strip off initial
4151         CV-qualifiers.
4152         (d_type): Check some return values we rely on.
4153         (d_bare_function_type, d_array_type): Likewise.
4154         (d_pointer_to_member_type, d_template_args): Likewise.
4155         (d_add_substitution): Fail if argument is NULL.
4156         (d_print_resize): Check whether buf is NULL.
4157         (d_print_comp): Save current templates list with each modifier.
4158         Don't pass the modifier list down when printing a template.
4159         (d_print_cast): Don't pass the modifier list down when printing a
4160         template.
4161         (d_print_mod_list): Temporarily set templates list while printing
4162         a modifier.
4163         (d_print_mod): Check that buf is not NULL before using it.
4164         (d_print_function_type): Print parens if there is no modifier.
4165         (d_init_info): Permit as many substitutions as there are
4166         characters in the mangled name.
4167         * testsuite/demangle-expected: Add two new test cases.
4169 2003-11-25  Ian Lance Taylor  <ian@wasabisystems.com>
4171         * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
4172         d_demangle.
4174 2003-11-22  Ian Lance Taylor  <ian@wasabisystems.com>
4176         * cp-demangle.c (d_encoding): Add top_level parameter.  Change all
4177         callers.
4178         (print_usage): Display new -p option.
4179         (long_options): Add --no-params.
4180         (main): Accept and handle -p.
4182 2003-11-21  Ian Lance Taylor  <ian@wasabisystems.com>
4184         * cp-demangle.c (has_return_type): Skip qualifiers when checking
4185         whether we have a template.
4186         * testsuite/demangle-expected: Add four new tests.
4188 2003-11-20  Ian Lance Taylor  <ian@wasabisystems.com>
4190         * testsuite/demangle-expected: Minor changes to match output of
4191         new demangler: adjust whitespace in four tests, and change order
4192         of qualifiers in one test.
4194         * cp-demangle.c: Complete rewrite.
4196 2003-11-19  Mark Mitchell  <mark@codesourcery.com>
4198         * cp-demangle.c (demangle_type): Correct thinko in substitution
4199         processing.
4201 2003-11-18  Ian Lance Taylor  <ian@wasabisystems.com>
4203         * cp-demangle.c (demangle_operator_name): Remove space before
4204         "sizeof".
4205         (demangle_type_ptr): Put qualifiers in the right place.  Handle
4206         qualifiers in pointer to member specially.
4207         (demangle_type): Handle qualifiers for pointer or reference
4208         specially.  Handle function type.
4209         (demangle_local_name): Save and restore caret around demangling of
4210         initial encoding.
4212         * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
4213         cplus_demangle.
4215         * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
4217 2003-10-31  Andreas Jaeger  <aj@suse.de>
4219         * floatformat.c (floatformat_always_valid): Add unused attribute.
4221 2003-10-30  Josef Zlomek  <zlomekj@suse.cz>
4223         Jan Hubicka <jh@suse.cz>
4224         * vasprintf.c (int_vasprintf): Pass va_list by value.
4225         Use va_copy for copying va_list.
4226         (vasprintf): Pass va_list by value.
4228 2003-10-30  Josef Zlomek  <zlomekj@suse.cz>
4230         * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
4231         instead of increasing n_elements when inserting to deleted slot.
4233 2003-10-20  J. Brobecker  <brobecker@gnat.com>
4235         * cplus-dem.c (demangle_template): Register a new Btype only
4236         when needed.
4237         * testsuite/demangle-expected: Add a new test.
4239 2003-10-16  H.J. Lu  <hongjiu.lu@intel.com>
4241         * testsuite/demangle-expected: Update the expected output of
4242         _GLOBAL__I__Z2fnv.
4244 2003-10-02  Daniel Jacobowitz  <drow@mvista.com>
4246         * strerror.c: Revert last change.  Declare static sys_nerr
4247         and sys_errlist using different names.
4249 2003-10-01  Daniel Jacobowitz  <drow@mvista.com>
4251         * strerror.c: Don't provide or reference sys_errlist if
4252         strerror is available.
4254 2003-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4256         * configure.in: Check if $MAKEINFO is missing.
4257         * configure: Regenerated.
4259 2003-09-24  Daniel Jacobowitz  <drow@mvista.com>
4261         * configure.in: Use AC_PROG_CPP_WERROR.
4262         * configure: Regenerated.
4264 2003-09-22  Andrew Cagney  <cagney@redhat.com>
4266         * floatformat.c (floatformat_i387_ext_is_valid): New function.
4267         (floatformat_always_valid): New function.
4268         (floatformat_i387_ext): Initialize new "is_valid" field to
4269         "floatformat_i387_ext_is_valid".
4270         (floatformat_ieee_single_little): Initialize "is_valid" field to
4271         floatformat_always_valid.
4272         (floatformat_ieee_double_big): Ditto.
4273         (floatformat_ieee_double_little): Ditto.
4274         (floatformat_ieee_double_little): Ditto.
4275         (floatformat_ieee_double_littlebyte_bigword): Ditto.
4276         (floatformat_i960_ext): Ditto.
4277         (floatformat_m88110_ext): Ditto.
4278         (floatformat_m88110_harris_ext): Ditto.
4279         (floatformat_arm_ext_big): Ditto.
4280         (floatformat_arm_ext_littlebyte_bigword): Ditto.
4281         (floatformat_ia64_spill_big): Ditto.
4282         (floatformat_ia64_spill_little): Ditto.
4283         (floatformat_ia64_quad_big): Ditto.
4284         (floatformat_ia64_quad_little): Ditto.
4285         (floatformat_ia64_quad_little): Ditto.
4286         (floatformat_is_valid): Call "is_valid".
4288 2003-09-15  Andrew Cagney  <cagney@redhat.com>
4290         * floatformat.c (get_field): Make "data" constant.
4291         (floatformat_is_valid, floatformat_to_double): Make "from"
4292         constant, fix casts.
4293         (floatformat_from_double): Make "from" constant.
4295 2003-09-15  Daniel Jacobowitz  <drow@mvista.com>
4297         * floatformat.c (floatformat_is_valid): New function.
4298         (get_field, put_field): Correct comments.
4300 2003-09-06  Josef Zlomek  <zlomekj@suse.cz>
4302         * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
4303         FIBHEAPKEY_T.
4305 2003-09-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4307         PR bootstrap/12100
4308         * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
4309         * configure: Rebuilt.
4311 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
4313         * aclocal.m4: Include acx.m4 and no-executables.m4.
4314         (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
4315         (LIB_AC_PROG_CC): Remove.
4316         * configure.in: Update AC_PREREQ to 2.57.  Use GCC_NO_EXECUTABLES.
4317         Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
4318         LIB_AC_PROG_CC.  Use AC_LIBOBJ.  Call AC_ISC_POSIX later, only if
4319         performing link tests.
4320         * configure: Regenerated.
4322 2003-08-12  Nathanael Nerode  <neroden@gcc.gnu.org>
4324         * cp-demangle.c: Clarify what package(s) this is part of.
4326 2003-07-05  Danny Smith  <dannysmith@users.sourceforge.net>
4328         * pex-win32.c (pexecute): Mark parameters this_pname and
4329         temp_base as unused. Remove unused variables retries,
4330         sleep_interval. Initialize org_stdin, org_stdout.
4331         (pwait): Mark parameter flags as unused.
4333 2003-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
4335         * pex-win32.c (fix_argv): Ensure that the executable pathname
4336         uses Win32 backslashes.
4337         (pexecute): Cast away constness when assigning *errmsg_arg.
4339 2003-06-26  H.J. Lu <hongjiu.lu@intel.com>
4341         * testsuite/demangle-expected: Add more GNU V3 testcases.
4343 2003-06-22  Zack Weinberg  <zack@codesourcery.com>
4345         * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
4346         not HC_ASCII and HC_EBCDIC.
4347         Add documentation in form expected by gather-docs.
4348         * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
4349         * Makefile.in, functions.texi: Regenerate.
4351 2003-06-21  Zack Weinberg  <zack@codesourcery.com>
4353         * safe-ctype.c: Separate out EOF==-1 check.  Use HOST_CHARSET
4354         for charset determination.
4356 2003-06-19  Dara Hazeghi  <dhazeghi@yahoo.com>
4358         * configure.in: Add check for malloc.h needed by
4359         m68k for function free().
4360         * configure: Regenerated.
4361         * config.in: Add HAVE_MALLOC_H.
4362         * hashtab.c: include malloc.h were available for
4363         free().
4365 2003-06-09  Albert Chin-A-Young  <china@thewrittenword.com>
4367         PR bootstrap/10974
4368         * physmem.c: Update comment.
4369         * configure.in: Modify test for _system_configuration for older
4370         AIX systems.
4372         * config.in, configure: Regenerated.
4374 2003-06-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4376         PR other/10810
4377         * test-demangle.c (getline): Fix fence-post error.
4379 2003-06-03  Nick Clifton  <nickc@redhat.com>
4381         * asprintf.c: Change comment to note that -1 is returned upon
4382         error.
4383         * vasprintf.c: Likewise.
4384         (vasprintf): Return -1 upon error.
4385         * functions.texi: Document changes to asprintf and vasprintf.
4387 2003-05-19  Kelley Cook  <kelleycook@wideopenwest.com>
4389         * config.table: Accept i[345867]86 variant.
4391 2003-05-15  Jim Blandy  <jimb@redhat.com>
4393         * hex.c (_hex_value): Make this unsigned.
4394         (hex_value): Update documentation for new return type.  hex_value
4395         now expands to an unsigned int expression, to avoid unexpected
4396         sign extension when we store it in a bfd_vma, which is larger than
4397         int on some platforms.
4398         * functions.texi: Regenerated.
4400 2003-05-07  Josef Zlomek  <zlomekj@suse.cz>
4402         * splay-tree.c (splay_tree_predecessor): Fix comment.
4403         (splay_tree_successor): Fix comment.
4405 2003-05-07  Jason Merrill  <jason@redhat.com>
4407         * hashtab.c (iterative_hash): New fn.
4408         * configure.in: Add AC_C_BIGENDIAN_CROSS.
4409         * aclocal.m4: Include accross.m4.
4410         * configure, config.in: Regenerate.
4412 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4414         * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
4415         * configure: Regenerate.
4417 2003-05-03  Carlo Wood  <carlo@alinoe.com>
4419         * cp-demangle.c: Fix typo in "char_traints" string-literal.
4421 2003-04-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4423         * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
4424         (main): Test that we don't write too much data.
4426 2003-04-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4428         * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
4429         vsnprintf.
4430         * snprintf.c, vsnprintf.c: New files.
4431         * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
4432         (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
4433         Regenerate dependencies.
4435         * functions.texi, configure, config.in: Regenerated.
4437 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4439         * mempcpy.c, stpcpy.c, stpncpy.c: New files.
4440         * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
4441         and stpncpy.
4442         * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
4443         (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
4444         Regenerate dependencies.
4446         * functions.texi, configure, config.in: Regenerated.
4448 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4450         * argv.c: Fix comments.
4451         * calloc.c: Don't unnecessarily include "libiberty.h".
4452         (bzero): Add prototype.
4453         * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
4454         * getcwd.c (getcwd): Use standard definition to avoid conflicts
4455         with system headers.
4456         * hashtab.c (htab_traverse): Delete unused variables.
4457         * rename.c: Include "ansidecl.h".
4458         (rename): Use standard definition to avoid conflicts with system
4459         headers.
4460         * strsignal.c: Rely on ANSI_PROTOTYPES.
4461         * strstr.c: Check GNUC >= 2, not GNUC == 2.
4462         * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
4463         * vprintf.c: Include "ansidecl.h" earlier, rely on
4464         ANSI_PROTOTYPES.
4465         * vsprintf.c: Include "ansidecl.h" earlier, rely on
4466         ANSI_PROTOTYPES and possibly include <stdarg.h>.
4468         * Makefile.in: Regenerate dependencies.
4470 2003-04-15  DJ Delorie  <dj@redhat.com>
4472         * maint-tool (deps): Scan for headers in $srcdir also.
4474 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4476         PR target/10338
4477         PR bootstrap/10198
4478         PR bootstrap/10140
4479         * getopt.c (exchange, _getopt_initialize): Use mempcpy not
4480         __mempcpy.
4481         * regex.c (regerror): Likewise.
4483 2003-04-14  Roger Sayle  <roger@eyesopen.com>
4485         * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
4486         * memchr.c: Likewise.
4487         * strcasecmp.c: Likewise.
4488         * strncasecmp.c: Likewise.
4489         * strncmp.c: Likewise.
4490         * xatexit.c: Likewise.
4491         * xmalloc.c: Likewise.
4493         * copysign.c: Use traditional function declaration instead of DEFUN.
4494         * sigsetmask.c: Likewise.
4496         * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
4497         * memset.c: Likewise.
4499         * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
4500         * memmove.c: Likewise.
4502 2003-04-14  Roger Sayle  <roger@eyesopen.com>
4504         * strdup.c (strdup): Tweak implementation to use memcpy.
4506 2003-04-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4508         * configure.in (HAVE_UINTPTR_T): Always define.
4509         * configure: Regenerated.
4511 2003-03-23  Alexandre Oliva  <aoliva@redhat.com>
4513         * Makefile.in (MULTIOSDIR): New macro.  Use $(CC) $(LIBCFLAGS)
4514         instead of $$CC alone.
4515         (install_to_tooldir): Use it.
4517 2003-17-03  Jan Hubicka  <jh@suse.cz>
4519         * hashtab.c (htab_traverse_noresize): Break out from ...
4520         * hashtab.c (htab_traverse): ... here.
4522 2003-12-03  Jan Hubicka  <jh@suse.cz>
4524         * hashtab.c (htab_expand): Fix warning.
4526         * hashtab.c (htab_expand): Compute the size of hashtable based
4527         on the number of elements actually used.
4528         (htab_traverse):  Call htab_expand when table is too empty.
4530 2003-03-11  Carlo Wood  <carlo@gnu.org>
4532         * cplus-dem.c (demangle_integral_value): Correction to reflect
4533         patch of 2002-01-10 in order to also make negative multi-digits
4534         without leading underscore work.
4536 2003-03-03  Mark Mitchell  <mark@codesourcery.com>
4538         * cplus-dem.c: Add license exception to copyright notice.
4540 2003-02-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4542         * physmem.c: Formatting changes from upstream.
4544 2003-02-24  Danny Smith  <dannysmith@users.source.forge.net>
4546         * physmem.c (physmem_total): Add _WIN32 support.
4547         (physmem_available): Likewise.
4549 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4551         * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
4552         GSI_PHYSMEM.
4553         (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
4555 2003-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4557         * configure.in: Check for sys/systemcfg.h and
4558         _system_configuration.
4559         * physmem.c: Add support for AIX.  Tweek formatting as per
4560         upstream coreutils beta.
4562 2003-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4563             Richard Earnshaw  <rearnsha@arm.com>
4564             Geoffrey Keating  <geoffk@apple.com>
4566         * configure.in: Check for sys/sysctl.h and sysctl.
4567         * physmem.c: Add support for *bsd and darwin.
4568         * Makefile.in: Generate depedency for physmem.o.
4570 2003-02-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4572         * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
4573         Tru64 UNIX.
4574         (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
4575         Tru64 UNIX.
4577         * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
4578         machine/hal_sysinfo.h, sys/table.h.
4579         (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
4580         * configure, config.in: Regenerate.
4582 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4584         * configure.in: Check for sys/sysmp.h and sysmp.
4585         * physmem.c: Pull upstream copy, add support for irix6.
4587         * config.in, configure: Regenerated.
4589 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4591         * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
4592         * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
4593         pstat_getdynamic.
4595 2003-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4597         * Makefile.in (CFILES): Add physmem.c.
4598         (REQUIRED_OFILES): Add physmem.o.
4599         * configure.in: Check for sys/pstat.h.
4600         (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
4601         * physmem.c: New file, copied from textutils.
4603         * config.in, configure: Regenerated.
4605 2003-02-20  Daniel Jacobowitz  <drow@mvista.com>
4607         * Makefile.in (CFILES): Add lrealpath.c.
4608         (REQUIRED_OFILES): Add lrealpath.o.
4609         (lrealpath.o): Add rule.
4610         * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
4611         * configure.in: Add realpath and canonicalize_file_name to
4612         checkfuncs and AC_CHECK_FUNCS.  Use libiberty_NEED_DECLARATION
4613         for canonicalize_file_name.
4614         * lrealpath.c: New file.
4615         * make-relative-prefix.c: Update documentation.
4616         (make_relative_prefix): Simplify.  Use lbasename and lrealpath.
4617         * config.in: Regenerated.
4618         * configure: Regenerated.
4619         * functions.texi: Regenerated.
4621 2003-02-20  jmc  <jmc@prioris.mini.pw.edu.pl>
4623         * cplus_dem.c: Fix typo: intializes -> initializes.
4625 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
4627         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
4628         config.status.
4629         * configure: Rebuilt.
4631 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
4633         Fix PR c++/7612.
4634         * cplus-dem.c (demangle_signature): Call string_delete.
4635         Remove extra string_init.
4636         (demangle_arm_hp_template): Call string_delete instead of
4637         string_clear.  Add missing string_delete call.
4638         (demangle_qualified): Add missing string_delete call.
4639         (do_type): Remove unused variable btype.  Add missing string_delete
4640         call.  Call string_delete instead of string_clear.
4641         (demangle_fund_type): Move variable btype inside of the switch
4642         statement.  Add missing string_delete call.
4643         (do_arg): Call string_delete instead of string_clear.  Remove extra
4644         string_init.
4645         (demangle_nested_args): Free work->previous_argument.
4647 2003-02-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4649         * acconfig.h: New file.  Add uintptr_t.
4650         * config.in: Regenerated.
4652 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
4654         * libiberty.texi: Update to GFDL 1.2.
4656 2003-01-30  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
4658         * Makefile.in (libiberty_topdir): New subst.
4659         (mkinstalldirs): Redefine in terms of the above.
4660         * configure.in: AC_SUBST it.
4661         * configure: Regenerate.
4663 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
4665         * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
4666         (info-subdir, install-info-subdir, clean-info-subdir)
4667         (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
4668         (clean-subdir, distclean-subdir, maintainer-clean-subdir):
4669         Pass $(FLAGS_TO_PASS).
4671 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
4673         * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
4674         /`$$CC -print-multi-os-directory`.
4676 2003-01-26  Daniel Jacobowitz  <drow@mvista.com>
4678         * hashtab.c (htab_create_alloc_ex): New function.
4679         (hatab_set_functions_ex): New function.
4680         (htab_delete, htab_expand): Support alternate allocation functions.
4682 2003-01-24  Christopher Faylor  <cgf@redhat.com>
4684         * configure.in: Remove special pex-cygwin consideration.
4685         * configure: Regenerate.
4686         * pex-cygwin.c: Remove.
4687         * Makefile.in: Remove pex-cygwin.[co] lines.
4689 2003-01-24  Zack Weinberg  <zack@codesourcery.com>
4691         * Makefile.in (CFILES): Add pex-*.c.
4692         (REQUIRED_OFILES): Change pexecute.o to @pexecute@
4693         (CONFIGURED_OFILES): Add pex-*.o.
4694         (TEXIFILES): Add pexecute.txh.
4695         (pexecute.o): Delete rule.
4696         (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
4697         pex-unix.o, pex-win32.o): New rules.
4698         * configure.in: Change AC_INIT argument to xmalloc.c.
4699         Compute appropriate pexecute implementation and substitute it
4700         as @pexecute@.
4702         * pexecute.c: Split up into...
4703         * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
4704         pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
4705         new files.
4707         * functions.texi: Regenerate.
4708         * configure: Regenerate.
4710 2003-01-20  Josef Zlomek  <zlomekj@suse.cz>
4712         * hashtab.c (htab_expand): Fix allocation of new entries.
4714 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
4716         * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
4718         * Makefile.in (install_to_libdir, install_to_tooldir): Add a
4719         mkinstalldirs command.
4721 2002-12-04  Danny Smith  <dannysmith@users.sourceforge.net>
4723         * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
4724         Define for hosts with HOST_EXECUTABLE_SUFFIX.
4726 2002-11-24  Nick Clifton  <nickc@redhat.com>
4728         * make-relative-prefix.c (make_relative_prefix): Ensure return
4729         string is empty before using strcat to construct it.
4731 2002-11-22  Daniel Jacobowitz  <drow@mvista.com>
4733         * Makefile.in: Add make-relative-prefix.c.
4734         * make-relative-prefix.c: New file.
4735         * functions.texi: Rebuilt.
4737 2002-11-16  Jakub Jelinek  <jakub@redhat.com>
4739         * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
4740         used with arguments in traditional C' warnings.
4742 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
4744         * config.table: Use mh-s390pic for s390x too.
4746 2002-10-06  Andreas Jaeger  <aj@suse.de>
4748         * cplus-dem.c (ada_demangle): Get rid of unneeded
4749         variable and of strict-aliasing warning.
4750         (grow_vect): Use char as first parameter.
4752 2002-09-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4754         * Makefile.in (all): Fix multilib parallel build.
4756 2002-09-19  John David Anglin  <dave@hiuly1.hia.nrc.ca>
4758         * cp-demangle.c (demangling_new): Cast 0 to enum.
4759         (demangle_char): Cast return of strdup to char *.
4760         (is_gnu_v3_mangled_ctor): Cast 0 to enum.
4761         (is_gnu_v3_mangled_dtor): Likewise.
4762         * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
4763         (work_stuff_copy_to_from): Cast return of xmalloc to char **.
4764         * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
4765         * md5.c (md5_process_bytes): Cast results back to const void *.
4766         (md5_process_block): Add cast to const md5_uint32 *.
4767         * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
4768         * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
4769         unsigned short.
4770         * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
4771         to void *.
4772         * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
4774 2002-09-19  Nick Clifton  <nickc@redhat.com>
4776         * README: Update email addresses for bugs and patches.
4778 2002-09-10  Mike Stump  <mrs@apple.com>
4780         * splay-tree.c (splay_tree_successor): Fix comments.
4782 2002-09-11  Zack Weinberg  <zack@codesourcery.com>
4784         * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
4785         * testsuite/Makefile.in: Adjust for test-demangle.
4786         * testsuite/regress-demangle: Deleted.
4787         * testsuite/test-demangle.c: New file.
4788         * testsuite/demangle-expected: Change \$ to $ throughout, now that
4789         this file is not being read by a shell script.
4791 2002-09-05  Roger Sayle  <roger@eyesopen.com>
4793         * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
4795 2002-08-07  DJ Delorie  <dj@redhat.com>
4797         * regex.c (re_error_msgid): Just use a simple array of strings.
4798         (re_compile_pattern): Compensate.
4799         (re_comp): Likewise.
4800         (re_comp): Likewise.
4801         (regerror): Likewise.
4803 2002-07-29  Neil Booth  <neil@daikokuya.co.uk>
4805         * cplus-dem.c (PREPEND_BLANK): Remove.
4807 2002-07-10  Jason Merrill  <jason@redhat.com>
4809         * cp-demangle.c (demangle_identifier): Support extended Unicode
4810         characters.
4812 2002-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4814         * cp-demangle.c (demangle_v3_with_details): Wrap in
4815         !defined IN_GLIBCPP_V3.
4817 2002-07-01  Mark Mitchell  <mark@codesourcery.com>
4819         * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
4820         Set it for the "st" operator.
4821         (demangle_expression): Handle expressions with types as arguments.
4823 2002-06-30  Douglas Rupp  <rupp@gnat.com>
4825         * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
4826         * Makefile.in (OUTPUT_OPTION): Use.
4828 2002-06-22  Peter Breitenlohner <peb@mppmu.mpg.de>
4830         * Makefile.in (install_to_libdir): Add $(DESTDIR).
4831         (install_to_tooldir): Likewise.
4833 2002-06-17  Douglas Rupp  <rupp@gnat.com>
4835         * lbasename.c: Add 2002 to copyright.
4836         (IS_DIR_SEPARATOR): Remove VMS junk.
4838 2002-06-05  Geoffrey Keating  <geoffk@redhat.com>
4840         * hashtab.c (htab_create): New stub function for backward
4841         compatibility.
4842         (htab_try_create): Likewise.
4844 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
4846         * hashtab.c (htab_create): Delete.
4847         (htab_try_create): Delete.
4848         (htab_create_alloc): New.
4849         (htab_delete): Support user-specified memory allocation.
4850         (htab_expand): Likewise.
4852 2002-05-22  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
4854         * configure.in: Fix typo in the code checking for sys_errlist.
4855         * configure: Regenerated.
4857 2002-05-13  Andreas Schwab  <schwab@suse.de>
4859         * config.table: Use mh-x86pic also for x86-64.
4861 2002-05-08  Alexandre Oliva  <aoliva@redhat.com>
4863         * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
4864         script entry, and set LD to it when configuring multilibs.
4865         * configure: Rebuilt.
4867 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
4869         * configure.in (AC_TYPE_PID_T): Use it.
4870         * configure: Regenerated.
4871         * getruntime.c: Include <sys/types.h>.
4872         * waitpid.c: Likewise.  Use pid_t, not int, as the type of "pid".
4874 2002-04-09  Richard Henderson  <rth@redhat.com>
4876         * hashtab.c (higher_prime_number): Use 7 as minimum.
4877         (find_empty_slot_for_expand): Don't compute hash2 unless needed.
4878         (htab_find_slot_with_hash): Likewise.
4880 2002-04-01  Phil Edwards  <pme@gcc.gnu.org>
4882         * cp-demangle.c (__cxa_demangle):  Also protect with IN_GLIBCPP_V3.
4883         (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor):  Conditionally
4884         not compile if IN_GLIBCPP_V3 defined.
4885         * dyn-string.c:  Also allow IN_GLIBCPP_V3 to change allocation scheme.
4887 2002-03-30  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
4889         * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
4890         if it is NULL.
4892 2002-03-27  DJ Delorie  <dj@redhat.com>
4894         * hex.c: Add documentation.
4895         (_hex_value): Provide non-ASCII empty table.
4896         (hex_init): Initialize the non-ASCII table.
4897         * functions.texi: Regenerate.
4899 2002-03-27  Mark Mitchell  <mark@codesourcery.com>
4901         * dyn-string.c: Add libgcc exception to copyright notice.
4903 2002-03-26  H.J. Lu  (hjl@gnu.org)
4905         * config.table: Support --with-build-subdir.
4906         * configure.in: Likewise.
4907         * configure: Rebuild.
4909 2002-03-18  Stuart Griffith  <Stuart_Griffith@credence.com>
4911         * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
4912         seen.
4914 2002-03-12  Mark Mitchell  <mark@codesourcery.com>
4916         * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
4917         notice.
4919 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
4921         * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
4923 2002-03-06  Jim Blandy  <jimb@redhat.com>
4925         * splay-tree.c (splay_tree_xmalloc_allocate,
4926         splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
4927         prototyped definitions.  Mark `data' arguments as unused.
4929 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
4931         * floatformat.c (floatformat_arm_ext_big): Delete definition.
4933 2002-03-04  Phil Edwards  <pme@gcc.gnu.org>
4935         * configure.in:  Add --enable-install-libiberty option.
4936         * Makefile.in (INSTALLED_HEADERS):  New variable.
4937         (install_to_libdir):  Possibly also copy headers.
4938         * configure:  Regenerated.
4940 2002-03-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4942         * xmalloc.c (xmalloc_fail): Clarify error message further.
4944 2002-03-03  Neil Booth  <neil@daikokuya.demon.co.uk>
4946         * xmalloc.c (xmalloc_fail): Clarify error message.
4948 2002-02-22  Jim Blandy  <jimb@redhat.com>
4950         * splay-tree.c (splay_tree_xmalloc_allocate,
4951         splay_tree_xmalloc_deallocate): New functions.
4952         (splay_tree_new): Call splay_tree_new_with_allocator, passing the
4953         above functions and a dummy data pointer.
4954         (splay_tree_new_with_allocator): New function.
4955         (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
4956         splay_tree_remove): Use the splay tree's allocation and
4957         deallocation functions.
4959 2002-02-19  Scott Snyder  <snyder@fnal.gov>
4961         * testsuite/demangle-expected: Add test case for infinite loop in
4962         demangler.
4963         * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
4964         if do_type() doesn't make any progress --- prevents an infinite
4965         loop.
4967 2002-02-18  Carlo Wood  <carlo@gnu.org>
4969         PR c++/5390
4970         * cplus-dem.c (demangle_integral_value): Accept multi-digit
4971         numbers that do not start with an underscore; This is needed
4972         for integer template parameters. This doesn't break anything
4973         because multi-digit numbers are never followed by a digit.
4974         * testsuite/demangle-expected: Corrected all mangled test
4975         cases with multi-digit template parameters: g++ 2.95.x does
4976         not generate underscores around these parameters.
4978 2002-02-05  Jason Merrill  <jason@redhat.com>
4980         * cplus-dem.c (flags): Add DMGL_VERBOSE
4981         (cplus_demangle_v3_p): Remove.
4982         (demangle_it): Add DMGL_TYPES to passed flags.
4983         * cp-demangle.c (cplus_demangle_v3_all): Remove.
4984         (cplus_demangle_v3_type): Remove.
4985         (cplus_demangle_v3): Add options parm.
4987 2002-02-02  H.J. Lu  (hjl@gnu.org)
4989         * cp-demangle.c (cp_demangle_type): Do not protect with
4990         IN_LIBGCC2.
4991         (cplus_demangle_v3_all): New.
4992         (cplus_demangle_v3): Call cplus_demangle_v3_all.
4993         (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
4995         * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
4996         Initialized to cplus_demangle_v3.
4997         (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
4998         of cplus_demangle_v3.
4999         (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
5000         command line symbol.
5002         * testsuite/regress-demangle: Pass the mangled name at the
5003         command line.
5005 2002-02-01  H.J. Lu  <hjl@gnu.org>
5007         * cp-demangle.c (cp_demangle_type): Call demangling_new with
5008         DMGL_GNU_V3.
5010 2002-01-31  Phil Edwards  <pme@gcc.gnu.org>
5012         * cp-demangle.c:  Revert yesterday's change.
5014 2002-01-31  Adam Megacz  <adam@xwt.org>
5016         * configure.in: Treat mingw the same as cywin
5017         wrt HAVE_SYS_ERRLIST.
5019 2002-01-30  Phil Edwards  <pme@gcc.gnu.org>
5021         * cp-demangle.c (cp_demangle_type):  Do not protect with IN_LIBGCC2.
5022         (cplus_demangle_v3):  Mimic __cxa_demangle and fall back on
5023         cp_demangle_type.
5024         * testsuite/demangle-expected:  New gnu-v3 test.
5026 2002-01-22  Momchil Velikov  <velco@fadata.bg>
5028         * configure.in (variable detection): Use arrays of unspecified
5029         size instead of plain integers.
5031 2002-01-18  DJ Delorie  <dj@redhat.com>
5033         * Makefile.in (TESTLIB): New.  This library is for future
5034         testsuites.
5035         (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
5036         break down by letter.
5037         (REQUIRED_OFILES): List long-to-compile files first.
5038         (maint-deps): New, target for updating dependencies.
5039         (dependencies): Update.
5040         * maint-tool: Add dependency-generating option.
5041         * configure.in: Check for _doprnt even if we're not providing it.
5042         * configure: Regenerate.
5044         * _doprnt.c: Modifications to allow compiling on any platform.
5045         * copysign.c: Likewise.
5046         * putenv.c: Likewise.
5047         * setenv.c: Likewise.
5048         * vsprintf.c: Likewise.
5050 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
5052         * mkstemps.c (mkstemps): On VMS, open temp file with option
5053         that causes it to be deleted when closed.
5055 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5057         * cp-demangle.c (long_options): Const-ify.
5058         * cplus-dem.c (long_options): Likewise.
5060         * cplus-dem.c (mystrstr): Delete.  All callers changed to use
5061         strstr instead.
5063 2001-12-31  Ira Ruben   <ira@apple.com>
5065         * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
5066         * configure: Regenerated.
5068 2001-12-24  Douglas B. Rupp  <rupp@gnat.com>
5070         * configure.in (uintptr_t): Use AC_CHECK_TYPE.
5071         * configure: Regenerated.
5073 2001-12-12  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5075         PR other/2719
5076         * cplus-dem.c (consume_count): Treat negative count as an error.
5077         * testsuite/demangle-expected: Added testcase.
5079 Tue Dec 11 07:08:57 2001  Douglas B. Rupp  <rupp@gnat.com>
5081         * configure.in: Hardcode that vfork works on VMS host.
5082         * configure: Regenerated.
5084 2001-12-06  Richard Henderson  <rth@redhat.com>
5086         * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
5087         (cplus_demangle): Support no_demangling.
5089 2001-11-27  Zack Weinberg  <zack@codesourcery.com>
5091         * _doprnt.c: Moved here from gcc/doprint.c.  Adjust to build
5092         in libiberty context.  Fix typo in leading comment.
5093         * configure.in: Fix various AC_DEFINEs so autoheader works.
5094         If any of vprintf, vsprintf, vfprintf is missing from libc,
5095         then AC_REPLACE_FUNCS(_doprnt).
5097 2001-11-26  DJ Delorie  <dj@redhat.com>
5098             Daniel Jacobowitz  <drow@mvista.com>
5100         * Makefile.in (stamp-h): Depend on Makefile for proper
5101         serialization.
5102         (*-subdir): Depend on config.h for proper serialization.
5104 2001-11-26  DJ Delorie  <dj@redhat.com>
5106         * configure.in: Check for alloca.h (for regex.c and putenv.c).
5107         * configure: Regenerate.
5108         * config.h: Add HAVE_ALLOCA_H.
5110 2001-11-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5112         * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
5113         defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
5114         is available.
5116 Thu Nov 15 11:06:25 2001  Jeffrey A Law  (law@cygnus.com)
5118         * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
5119         * configure.in (HAVE_UINTPTR_T): Test for system defining
5120         uintptr_t and define HAVE_UINTPTR_T appropriately.
5121         * regex.c (uintptr_t): Do not provide a definition if the
5122         system provided one.
5124         * regex.c (PREFIX): Provide an alternate definition for
5125         non-ANSI/ISO compilers.
5126         (ARG_PREFIX): Likewise.
5128 2001-11-12  Jim Meyering  <meyering@lucent.com>
5130         * obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
5131         this code would end up calling gettext even in packages built
5132         with --disable-nls.
5133         * getopt.c (_): Likewise.
5134         * regex.c (_): Likewise.
5136 2001-11-03  Alan Modra  <amodra@bigpond.net.au>
5138         * configure.in: Cope with missing makeinfo.
5139         * configure: Regenerate.
5141 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5143         * hex.c (hex_init): Provide empty stub.
5145         * hex.c (hex_init): Delete.
5146         (_hex_value): Const-ify and initialize at compile-time.
5148 2001-10-19  H.J. Lu <hjl@gnu.org>
5150         * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
5151         necessary.
5153 2001-10-17  DJ Delorie  <dj@redhat.com>
5155         * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
5156         ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5157         mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5158         Improve manual formatting.
5159         * functions.texi: Regenerate.
5161 2001-10-15  DJ Delorie  <dj@redhat.com>
5163         * Makefile.in (TEXIFILES): Add fnmatch.txh.
5164         (maint-undoc): New.
5165         maint-tool: Add "undoc" tool.
5166         * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
5167         fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
5168         make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
5169         strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
5170         documentation.
5171         * fnmatch.txh: New.
5172         * functions.texi: Regenerate.
5174 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
5176         * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
5177         * strtod.c: Use "ISO C" instead of "ANSI C".
5178         * functions.texi: Regenerate.
5180 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
5182         * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
5183         libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
5184         strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
5185         xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting.  Fix
5186         spelling.  Give names to function arguments in documentation.  Use
5187         (void) prototypes in documentation.
5188         * functions.texi: Regenerate.
5190 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5192         * argv.c (buildargv, tests, main): Const-ify.
5193         * cp-demangle.c (operator_code): Likewise.
5194         * cplus-dem.c (optable, libiberty_demanglers,
5195         cplus_demangle_set_style, cplus_demangle_name_to_style,
5196         print_demangler_list): Likewise.
5197         * hashtab.c (higher_prime_number): Likewise.
5198         * strcasecmp.c (charmap): Likewise.
5199         * strerror.c (error_info, strerror, main): Likewise.
5200         * strncasecmp.c (charmap): Likewise.
5201         * strsignal.c (signal_info): Likewise.
5203 2001-09-29  DJ Delorie  <dj@redhat.com>
5205         * configure: Regenerate.
5207 2001-09-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5209         * concat.c: Include stdlib.h.
5211 2001-09-27  Eli Zaretskii  <eliz@is.elta.co.il>
5213         * libiberty.texi: (Top level): Add syncodeindex pg.  Add
5214         @dircategory and @direntry directives.  Add @finalout.
5215         (many nodes): Lose the next,prev,up pointers on the @nide line.
5216         (Using, Supplemental Functions, Replacement Functions): Fix
5217         markup.
5218         (Functions): Move around, to allow makeinfo to build the manual
5219         without next,prev,up pointers in thye node lines.
5220         (Licenses): Fix typos.
5222         * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
5223         strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
5224         * functions.texi: Regenerate.
5226         * copying-lib.texi: Lose the next,prev,up pointers on the @node
5227         line.
5229 2001-09-27  DJ Delorie  <dj@redhat.com>
5231         * configure.in: Don't use in-tree texinfo, because libiberty must
5232         be built before it.  Check for makeinfo version 4 or higher.
5233         * functions.texi: Regenerate.
5235 2001-09-20  DJ Delorie  <dj@redhat.com>
5236             Phil Edwards  <pedwards@disaster.jaj.com>
5238         * configure.in (MAKEINFO, PERL): Detect these.
5239         (--enable-maintainer-mode): Add.
5240         * configure: Regenerate.
5241         * Makefile.in (MAKEINFO, PERL): Define.
5242         (libiberty.info, libiberty.dvi, libiberty.html): New.
5243         (CFILES): Add bsearch.c.
5244         (CONFIGURED_OFILES): New, list of objects configure might add.
5245         (maint-missing, maint-buildall): New, for maintainers only.
5246         (clean, mostlyclean): Add info/dvi/html files.
5247         * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
5248         * gather-docs: New, for maintainers.
5249         * maint-tool: New, for maintainers.
5250         * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
5251         bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
5252         getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
5253         memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
5254         sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
5255         strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
5256         tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
5257         xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
5258         documentation.
5260 2001-09-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5262         * concat.c (reconcat): Fix for traditional C.
5264 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5266         * concat.c (reconcat): New function.
5268 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5270         * concat.c (vconcat_length, vconcat_copy, concat_length,
5271         concat_copy, concat_copy2): New functions.
5272         (concat): Use vconcat_length/vconcat_copy.
5274         * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
5275         Define.
5277 2001-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5279         * asprintf.c: Don't define USE_STDARG.  Use VPARAMS, VA_OPEN,
5280         VA_FIXEDARG & VA_CLOSE.
5282         * vasprintf.c: Check HAVE_STRING_H when including string.h.
5283         (checkit): Delete redundant prototype.  Add ATTRIBUTE_PRINTF_1.
5284         Use VA_OPEN, VA_FIXEDARG & VA_CLOSE.  Free allocated string.
5286 2001-08-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5288         * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
5290 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
5292         * regex.c (truncate_wchar): Use wcrtomb not wctomb.
5294 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
5296         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
5297         instead of mbrtowc.
5298         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
5299         wcslen, and __wcscoll instead of wcscoll.
5301 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5303         * fibheap.c (fibheap_init, fibnode_init): Remove.
5304         (fibheap_new, fibnode_new): Use xcalloc to allocate and
5305         initialize memory.
5306         (fibheap_insert): Remove check for node allocation failure.
5308 2001-08-21  Richard Henderson  <rth@redhat.com>
5310         * Makefile.in (fibheap.o): Depend on config.h.
5311         * fibheap.c: Tidy formatting.  Use config.h.` Rearrange some
5312         functions for inlining.
5314 Tue Aug 21 12:35:04 2001  Christopher Faylor <cgf@cygnus.com>
5316         * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
5317         hosting on cygwin.
5318         * configure: Regenerate.
5320 2001-08-20  Andrew Cagney  <ac131313@redhat.com>
5322         * floatformat.c (floatformat_m88110_ext): Remove #ifdef
5323         HARRIS_FLOAT_FORMAT.
5324         (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
5325         (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
5326         (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
5327         (floatformat_m88110_harris_ext): New float formats.
5329 2001-08-20  Daniel Berlin  <dan@cgsoftware.com>
5331         * fibheap.c: New file. Fibonacci heap.
5333         * Makefile.in (CFILES): Add fibheap.c.
5334         (REQUIRED_OFILES): Add fibheap.o.
5335         (fibheap.o): Add dependencies for fibheap.o.
5337 2001-08-17  Christopher Faylor <cgf@cygnus.com>
5339         * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
5340         * configure: Regenerate.
5342 2001-08-16  Richard Henderson  <rth@redhat.com>
5344         * hashtab.c (htab_hash_string): New.
5346 2001-08-13  Andrew Cagney  <ac131313@redhat.com>
5348         * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
5349         name.
5351 2001-08-12  Isamu Hasegawa  <isamu@yamato.ibm.com>
5353         * regex.c (wcs_regex_compile): Use appropriate string
5354         to compare with collating element.
5355         Fix the padding for the alignment.
5357 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
5359         * lbasename.c (lbasename): Change function definition to return a
5360         const char pointer.
5362 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
5364         * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
5365         for".
5367 2001-08-03  Richard Henderson  <rth@redhat.com>
5369         * Makefile.in (concat.o): Depend on config.h.
5371 2001-07-30  Andreas Jaeger  <aj@suse.de>
5373         * concat.c: Include "config.h".
5375 2001-07-30  Andreas Jaeger  <aj@suse.de>
5377         * regex.c: Declare wcs functions only if compiling with
5378         MBS_SUPPORT.
5379         Don't use #elif for traditional C.
5381 2001-07-23  Ulrich Drepper  <drepper@redhat.com>
5383         * regex.c: Revamp memory allocation for WCHAR functions to
5384         not use too much stack.
5386 2001-07-30  Andreas Jaeger  <aj@suse.de>
5388         * regex.c: Declare wcs functions only if compiling with
5389         MBS_SUPPORT.
5390         Don't use #elif for traditional C.
5392 2001-07-25  Daniel Jacobowitz  <drow@mvista.com>
5394         * Makefile.in (regex.o): Add dependency on config.h.
5396 2001-07-18  Andreas Schwab  <schwab@suse.de>
5398         * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
5399         underscore character.
5401 2001-07-18  Ulrich Drepper  <drepper@redhat.com>
5403         * regex.c: Limit string length printed in debug messages to 100
5404         chars.
5406 2001-07-18  Andreas Jaeger  <aj@suse.de>
5408         * regex.c: Place under LGPL version 2.1.
5410 2001-07-10  Jeff Johnston  <jjohnstn@redhat.com>
5412         * Makefile.in: Add support for regex code.
5413         * regex.c: New file.
5415 2001-07-05  Mark Klein  <mklein@dis.com>
5417         * Makefile.in: Add ffs.c dependency.
5418         * configure.in: Add ffs.c.
5419         * ffs.c: New file.
5421 2001-06-18  Richard Henderson  <rth@redhat.com>
5423         * concat.c: Include <sys/types.h>.
5425 2001-06-11  Loren J. Rittle  <ljrittle@acm.org>
5427         bootstrap/3106
5428         * strerror.c (sys_nerr): Hide the OS header version.
5429         * strsignal.c (sys_nsig): Likewise.
5431 2001-06-10  Richard Henderson  <rth@redhat.com>
5433         * concat.c: Include string.h.  Fix int vs size_t usage.
5434         Simplify the iteration loops.  Use memcpy.
5436 2001-05-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5438         * partition.c: Fix misspelling of `implementation'.
5440 2001-05-09  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
5442         * md5.c (md5_init_ctx): Declare constants as unsigned.
5443         (md5_process_block): Likewise.
5445 2001-05-07  Zack Weinberg  <zackw@stanford.edu>
5447         * cp-demangle.c (demangle_v3_with_details,
5448         is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
5449         function definition.
5450         * ternary.c: Use K+R style function definitions.  Use PTR, not
5451         void *.  Make arguments constant where possible.
5453 2001-05-07  Mark Mitchell  <mark@codesourcery.com>
5455         * splay-tree.h (splay_tree_max): New function.
5456         (splay_tree_min): Likewise.
5458 2001-04-15  Daniel Berlin  <dan@cgsoftware.com>
5460         * ternary.c: New file - Ternary search tree implementation.
5462         * Makefile.in: Add ternary.o, and ternary.c dependencies.
5464 2001-04-03  Zack Weinberg  <zackw@stanford.edu>
5466         * make-temp-file.c (try): Inline.
5468 2001-02-28  Richard Henderson  <rth@redhat.com>
5470         * Makefile.in (make-temp-file.o): Depend on config.h.
5472 2001-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5474         * memchr.c (memchr): Adjust condition to avoid infinite loop.
5476 2001-03-23  Jakub Jelinek  <jakub@redhat.com>
5478         * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
5479         `_' not followed by a digit is invalid.
5481 2001-03-22  Jim Blandy  <jimb@redhat.com>
5483         * cp-demangle.c (string_list_delete): Use dyn_string_delete
5484         instead of free, to free the contents as well as the string
5485         structure.
5487 2001-03-21  Zack Weinberg  <zackw@stanford.edu>
5489         * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
5490         Don't default P_tmpdir to anything.  Try /var/tmp before
5491         /usr/tmp.
5493 2001-03-20  Zack Weinberg  <zackw@stanford.edu>
5495         * choose-temp.c: Split off make_temp_file, and the code
5496         duplicated between it and choose_temp_base, into...
5497         * make-temp-file.c: ... here; new file.
5499         * Makefile.in (CFILES): Add make-temp-file.c.
5500         (REQUIRED_OFILES): Add make-temp-file.o.
5502 2001-03-20  Jim Blandy  <jimb@redhat.com>
5504         * cp-demangle.c (struct demangling_def): New fields:
5505         is_constructor and is_destructor.
5506         (demangling_new): Initialize them.
5507         (demangle_ctor_dtor_name): Set them, if we detect a constructor
5508         or destructor.
5509         (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
5510         is_gnu_v3_mangled_dtor): New functions.
5512 2001-03-20  Jason Merrill  <jason@redhat.com>
5514         * cplus-dem.c (main): Skip initial $.
5516 2001-03-15  Michael Meissner  <meissner@redhat.com>
5518         * hashtab.c (higher_prime_number): Silence warning that 4294967291
5519         might be a signed integer under pre-ISO C systems.
5521 2001-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
5522             John David Anglin  <dave@hiauly1.hia.nrc.ca>
5524         * lbasename.c: New file.
5525         * Makefile.in: Update for lbasename.
5527 2001-03-06  Zack Weinberg  <zackw@stanford.edu>
5529         * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
5530         * configure.in: Replace all alloca logic with a simple use of
5531         the above new macro.
5532         * config.table: Kill *-*-beos* entry.
5533         * config/mh-beos: Delete.
5534         * configure, config.in: Regenerate.
5536         * Makefile.in (ALLOCA, HFILES): Kill.
5537         (REQUIRED_OFILES): Add alloca.o.
5538         (alloca.o): Depend on libiberty.h.
5539         (argv.o): Don't depend on alloca-conf.h.
5540         * alloca-conf.h: Delete.
5541         * alloca.c: Include libiberty.h.  Kill all #ifdef emacs
5542         blocks.  Provide the C alloca unconditionally.  Use PTR where
5543         appropriate.  Make i00afunc static.
5544         * argv.c: Don't include alloca-conf.h.
5546 2001-03-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5548         * cplus-dem.c (main): Cast enum style to int.
5550 2001-02-16  Loren J. Rittle  <ljrittle@acm.org>
5552         * cplus-dem.c (main): Initialize style.
5554 2001-02-02  Phil Edwards  <pme@sources.redhat.com>
5556         * COPYING.LIB:  Update to LGPL 2.1 from the FSF.
5558 2001-01-31  Bryce McKinlay  <bryce@albatross.co.nz>
5560         Add support for Java demangling under the v3 ABI:
5561         * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
5562         (struct demangling_def): Add `style' field.
5563         (demangling_new): New parameter `style'. Set it in demangling_t.
5564         (demangle_prefix): Use NAMESPACE_SEPARATOR.
5565         (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
5566         (cp_demangle): New parameter `style'. Pass it to demangling_new().
5567         (main): Call cp_demangle with extra parameter.
5568         (java_demangle_v3): New function.
5569         (java_builtin_type_names): New. Table of primitive type names used
5570         for Java demangling.
5571         (demangle_builtin_type): Look up in java_builtin_type_names if doing
5572         Java output.
5573         * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
5574         demangling.
5575         (long_options): Remove obsolete `java' option.
5576         (main): Remove explicit handling of `java' option. Instead, pass style
5577         parameter in cplus_demangle flags as gdb does.
5578         * testsuite/demangle.expected: Add some Java test cases.
5580 2000-12-29  DJ Delorie  <dj@redhat.com>
5582         * fnmatch.c: Make the note about the origins of this file more
5583         accurate, at least until we can sync with glibc.
5584         * getopt.c: Ditto.
5585         * getopt1.c: Ditto.
5586         * md5.c: Ditto.
5587         * obstack.c: Ditto.
5589 2000-12-26  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5591         * bsearch.c: New file.
5592         * configure.in (funcs): Add bsearch.
5593         (AC_CHECK_FUNCS): Likewise.
5594         * configure, config.in: Regenerate.
5596 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5598         * safe-ctype.c: #include "ansidecl.h".
5599         * strtod.c: Likewise.
5601 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5603         * strtoul.c: Include safe-ctype.h, not ctype.h.
5605 2000-12-07  Zack Weinberg  <zack@wolery.stanford.edu>
5607         * safe-ctype.c: New file.
5608         * Makefile.in (CFILES): Add safe-ctype.c.
5609         (REQUIRED_OFILES): Add safe-ctype.o.
5611         * argv.c: Define ISBLANK and use it, not isspace.
5612         * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
5613         strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h.  Use
5614         uppercase ctype macros.  Don't test ISUPPER(c)/ISLOWER(c)
5615         before calling TOLOWER(c)/TOUPPER(c).
5617 2000-12-07  Mike Stump  <mrs@wrs.com>
5619         * Makefile.in (distclean): When cleaning, remove testsuite.
5621 2000-12-05  Jason Merrill  <jason@redhat.com>
5623         * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
5624         name before allocating the dyn_string.
5626 2000-12-04  Jason Merrill  <jason@redhat.com>
5628         * cp-demangle.c: s/new_abi/v3/.
5629         * cplus-dem.c: Likewise.
5630         (current_demangling_style): Now auto_demangling.
5631         (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
5632         (main): Use standard symbol chars for auto_demangling.
5634 2000-11-26  Mark Mitchell  <mark@codesourcery.com>
5636         * hashtab.c (higher_prime_number): Use a table, rather than a
5637         seive, to find the next prime.
5639 2000-11-22  H.J. Lu  <hjl@gnu.org>
5641         * cplus-dem.c (main): Handle gnat_demangling.
5643 2000-11-22  Zack Weinberg  <zack@wolery.stanford.edu>
5645         * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
5646         (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
5647         * configure.in: Call AC_C_INLINE and AC_C_CONST.  Use three
5648         argument form of AC_DEFINE in dummy definitions block.  Use
5649         AC_DEFINE_NOAUTOHEADER for real definitions of things defined
5650         in dummy block.  Preload cache variables instead of bypassing
5651         tests, where possible.
5652         * acconfig.h: Removed.
5654         * xmalloc.c (xmalloc_failed): New function, does error
5655         reporting on failed allocation.
5656         (xmalloc, xcalloc, xrealloc): Use it.
5658 2000-11-21  Hans-Peter Nilsson  <hp@bitrange.com>
5660         * cplus-dem.c (cplus_demangle): Fix formatting.
5661         (grow_vect): Ditto.
5662         (ada_demangle): Ditto.
5663         (internal_cplus_demangle): Ditto.
5664         (mop_up): Ditto.
5666 2000-11-21  H.J. Lu  <hjl@gnu.org>
5668         * cplus-dem.c (main): Handle java_demangling.
5670 2000-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5672         * cplus-dem.c (grow_vect): Prototype.
5673         (ada_demangle): Cast the arg of ctype macros to unsigned char.
5675 2000-11-15  Hans-Peter Nilsson  <hp@bitrange.com>
5677         * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
5678         parameter `option'.
5680 2000-11-15  Kenneth Block  <kenneth.block@compaq.com>
5682         * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
5683         be used in GCC.
5685 2000-11-15  Kenneth Block  <kenneth.block@compaq.com>
5687         * cplus-dem.c: Add gnat demangler.  Add java to demangle style
5688         list.
5690 2000-11-04  Hans-Peter Nilsson  <hp@bitrange.com>
5692         * hashtab.c (htab_expand): Change to return int.  Use calloc or
5693         xcalloc depending on htab->return_allocation_failure.  Return zero
5694         if calloc fails.
5695         (htab_create): Update comment to cover memory allocation.
5696         (htab_try_create): New.
5697         (htab_find_slot_with_hash): Return NULL if htab_expand fails.
5698         Update comment to cover this.
5700 2000-11-03  Hans-Peter Nilsson  <hp@bitrange.com>
5702         * hashtab.c: Change void * to PTR where necessary.
5703         (htab_create, htab_expand): Correct formatting of comment before
5704         function.
5706 2000-10-22  Alex Samuel  <samuel@codesourcery.com>
5708         * cp-demangle.c (string_list_def): Add caret_position and comments.
5709         (result_caret_pos): New macro.
5710         (result_append_string): Rename to...
5711         (result_add_string): ... this, and insert at caret position.
5712         Rename throughout.
5713         (result_append): Rename to...
5714         (result_add): ... this, and insert at caret position.  Rename
5715         throughout.
5716         (result_append_char): Rename to...
5717         (result_add_char): ... this, and insert at caret position.  Rename
5718         throughout.
5719         (result_append_space): Remove.
5720         (string_list_new): Initialize caret position.
5721         (result_add_separated_char): Use caret position.
5722         (result_get_caret): New funtion.
5723         (result_set_caret): Likewise.
5724         (result_shift_caret): Likewise.
5725         (result_previous_char_is_space): Likewise.
5726         (substitution_start): Use caret position.
5727         (substitution_add): Likewise.
5728         (demangling_new): Initialize caret position.
5729         (demangle_encoding): Use caret position.
5730         (demanglin_nested_name): Put CV qualifiers after name.
5731         (demangle_type_ptr): Use switch statement.  Handle pointers to
5732         arrays.  Don't use result_append_space.  Use caret position.
5733         (demangle_type): Emit CV qualifiers after underlying type.  Adjust
5734         call to demangle_array_type.
5735         (demangle_array_type): Add parameter to handle pointers to arrays.
5737 2000-10-01  Mark Mitchell  <mark@codesourcery.com>
5739         * splay-tree.c (splay_tree_insert): Fix formatting.
5741 2000-09-16  Mark Mitchell  <mark@codesourcery.com>
5743         * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
5745 2000-09-14  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5747         * splay-tree.c: #include <stdio.h>.
5749 2000-09-14  Hans-Peter Nilsson  <hp@axis.com>
5751         * testsuite/demangle-expected: Add two tests for anonymous
5752         namespaces.
5753         * cplus-dem.c (gnu_special): Handle anonymous namespaces.
5755 2000-09-10  Mark Mitchell  <mark@codesourcery.com>
5757         * splay-tree.c (splay_tree_predecessor): New function.
5758         (splay_tree_successor): Likewise.
5760 2000-09-10  Hans-Peter Nilsson  <hp@axis.com>
5762         * testsuite/demangle-expected: Add four tests for type_info
5763         mangling.
5764         * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
5765         for a non-template non-qualified type_info function or node.
5767 2000-09-08  Alex Samuel  <samuel@codesourcery.com>
5769         * cp-demangle.c: Fix copyright banner.
5771 2000-09-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5773         * md5.c: #include "ansidecl.h".
5775 2000-09-06  Alex Samuel  <samuel@codesourcery.com>
5777         * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
5778         (demangle_type): Handle substitution candidates correctly in the
5779         face of special substitutions.
5781 2000-09-05  Alex Samuel  <samuel@codesourcery.com>
5783         * cp-demangle.c (demangle_encoding): Rename variable.
5784         (demangle_name): Rename parameter.  Handle return type
5785         suppression.
5786         (demangle_nested_name): Rename parameter.
5787         (demangle_prefix): Likewise.  Change return type suppression.
5788         (demangle_unqualified_name): Add parameter.  Flag constructors and
5789         conversion operators.
5790         (demangle_special_name): Fix comment.
5791         (demangle_type): Rename variable.
5792         (demangle_bare_function_type): Check for missing return type and
5793         parameter.
5794         (demangle_class_enum_type): Rename parameter.
5795         (demangle_discriminator): Fix misspelling in comment.
5797 2000-08-31  DJ Delorie  <dj@redhat.com>
5799         * configure.in (Cygwin): special case cygwin only when we're
5800         building cygwin, not when we're hosting cygwin.
5802 2000-09-04  Alex Samuel  <samuel@codesourcery.com>
5804         * cp-demangle.c (demangle_template_arg): Eat an `E' after an
5805         <expression>.
5807 2000-09-04  Alex Samuel  <samuel@codesourcery.com>
5809         * cp-demangle.c (demangle_type_ptr): Increment position past
5810         pointer and reference characters.
5812 2000-09-04  Alex Samuel  <samuel@codesourcery.com>
5814         * cp-demangle.c (demangle_nv_offset): New function.
5815         (demangle_v_offset): Likewise.
5816         (demangle_call_offset): Likewise.
5817         (demangle_special_name): Update thunk demangling to comply with
5818         ABI changes.
5820 2000-09-03  Alex Samuel  <samuel@codesourcery.com>
5822         * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
5823         (substitution_def): Remove template_parm_number.
5824         (NOT_TEMPLATE_PARM): Remove.
5825         (result_insert_string): New macro.
5826         (result_insert): Likewise.
5827         (result_insert_char): Likewise.
5828         (substitution_add): Remove last parameter.  Don't store template
5829         parm number.
5830         (BFT_NO_RETURN_TYPE): Define as NULL.
5831         (demangle_encoding): Adjust call to demangle_bare_function_type.
5832         (demangle_name): Adjust substitution.  Adjust call to
5833         substitution_add.
5834         (demangle_prefix): Adjust call to substitution_add.
5835         (demangle_identifier): Handle anonymous namespaces.
5836         (demangle_operator_name): Change demangling of vendor-extended
5837         operator to match ABI changes.
5838         (demangle_type_ptr): Change parameters.  Make recursive.  Handle
5839         substitutions here.
5840         (demangle_type): Adjust calls to demangle_template_param,
5841         substitution_add, and demangle_type_ptr.  Fix substitution of
5842         templated types.
5843         (demangle_function_type): Change parameter to a pointer.
5844         (demangle_bare_function_type): Likewise.  Adjust insertion point.
5845         (demangle_template_param): Remove last parameter.
5846         (demangle_expr_primary): Remove unused variable.  Adjust call to
5847         demangle_template_param.
5848         (is_mangled_char): Accept `$' and `.'.
5849         * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
5850         * dyn-string.c (dyn_string_insert_char): New function.
5852 2000-08-31  Hans-Peter Nilsson  <hp@axis.com>
5854         * testsuite/demangle-expected: Add nine tests for
5855         underscore-after-number followed by five tests for name-signature
5856         delimiter.
5858 2000-08-28  Richard Henderson  <rth@cygnus.com>
5860         * Makefile.in (md5.o): Depend on config.h.
5862 2000-08-28  Jason Merrill  <jason@redhat.com>
5864         * Makefile.in (REQUIRED_OFILES): Add md5.o.
5865         (CFILES): Add md5.c.
5866         * md5.c: New file.
5868 2000-08-27  Alex Samuel  <samuel@codesourcery.com>
5870         * cp-demangle.c (demangle_name): Initialize template_p in local
5871         name case.  Don't re-add substitutions as candidates.
5872         (demangle_nested_name): Use <unqualified-name>.
5873         (demangle_prefix): Likewise.  Don't add template names as
5874         substitution candidates twice, or re-add a substitution or the
5875         last prefix component.
5876         (demangle_local_name): Adjust output format.
5878 2000-08-25  Alex Samuel  <samuel@codesourcery.com>
5880         * cp-demangle.c (result_add_separated_char): Change parameter to
5881         int.
5882         (substitution_add): Don't check for duplicates.  Check if
5883         previously allocated size is zero.
5884         (demangle_name): Remove duplicate check for std substitution.
5885         Clear template flag appropriately.
5886         (demangle_prefix): Remove argument to demangle_substitution.
5887         Don't check that template flag is already set.
5888         (demangle_operator_name): Add pt operator.
5889         (demangle_type): Don't treat r as built-in type.  Remove argument
5890         to demangle_substitution.  Fix substitution candidate mechanics.
5891         Handle <template-template-parm>s.  Improve comments.
5892         (demangle_template_param): Don't handle template arg lists here.
5893         (demangle_substitution): Remove parameter.
5894         (print_usage): Remove extra fprintf option.
5896 2000-08-24  Greg McGary  <greg@mcgary.org>
5898         * random.c (end_ptr): Revert previous change.
5900 2000-08-24  Greg McGary  <greg@mcgary.org>
5902         * cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
5903         demangle_expression, demangle_function_name): Use ARRAY_SIZE.
5904         * random.c (end_ptr): Likewise.
5906 2000-08-23  Alex Samuel  <samuel@codesourcery.com>
5908         * cp-demangle.c (result_close_template_list): Remove function.
5909         (result_add_separated_char): New function.
5910         (result_open_template_list): New macro.
5911         (result_close_template_list): Likewise.
5912         (demangle_prefix): Don't set template_p if the
5913         prefix ends with a ctor name.
5914         (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
5915         (demangle_type): Check for template args after substitution.
5916         (demangle_template_args): Use result_open_template_list.
5918 2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
5920         * pexecute.c:  Don't use vfork.  Initialize 'pid' before retry loop.
5922 2000-07-26  Dave Pitts  <dpitts@cozx.com>
5924         * config/mh-openedition.h: Added -DLE370 definition.
5926 2000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
5928         * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
5929         __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
5930         Cast program to 'char *' in errmsg_arg assignment.
5931         (PWAIT_ERROR): Define.
5932         (pwait): Use PWAIT_ERROR.  Adjust DJGPP's status code to conform
5933         to DJGPP's WIF* macros.
5935 2000-07-27  RodneyBrown  <RodneyBrown@pmsc.com>
5936             Jeff Law <law@cygnus.com>
5938         * getcwd.c: Include string.h, stdlib.h for prototypes
5940         * Makefile.in (rename.o, waitpid.o): Depend on config.h
5941         * rename.c: Include config.h, unistd.h
5942         * waitpid.c: Include config.h, sys/wait.h
5944 2000-07-24  Hans-Peter Nilsson  <hp@axis.com>
5946         * cplus-dem.c (work_stuff_copy_to_from): New.
5947         (delete_non_B_K_work_stuff): New.
5948         (delete_work_stuff): New.
5949         (mop_up): Break out work_stuff partly destruction to
5950         delete_non_B_K_work_stuff.
5951         (iterate_demangle_function): New.
5952         (demangle_prefix): Call iterate_demangle_function instead of
5953         demangle_function_name.  Leave handling of name-signature
5954         __-delimiters to iterate_demangle_function.
5955         (demangle_integral_value): Strip an optional
5956         following underscore cautiously.  Handle negative numbers.
5958 2000-07-24  Daniel Berlin <dberlin@redhat.com>
5960         * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
5961         if (AUTO_DEMANGLING || GNU_DEMANGLING)
5963 2000-07-21  Alex Samuel  <samuel@codesourcery.com>
5965         * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
5966         allocating ctor mangling.
5967         (demangle_array_type): Handle empty and non-constant array length.
5969 2000-07-23  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5970             Jeff Law <law@cygnus.com>
5972         * configure.in (AC_CHECK_HEADERS): Add time.h.
5973         (AC_HEADER_TIME): Add check.
5974         * configure, config.in: Regenerate.
5975         * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
5977         * configure.in (AC_CHECK_HEADERS): Add limits.h.
5978         * configure, config.in: Regenerate.
5979         * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
5980         * strtol.c, strtoul.c: #include "config.h". Portably #include
5981         <limits.h> and/or <sys/param.h>.
5982         * Makefile.in (strtol.o, strtoul.o): Update dependencies.
5984         * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
5985         * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
5986         * configure, config.in: Regenerate.
5987         * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
5989         * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
5991 2000-07-21  Mike Stump  <mrs@wrs.com>
5993         * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
5994         * (vasprintf.o): Add dependency for config.h in vasprintf.c.
5996 2000-07-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5998         * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
6000         * setenv.c (setenv): Initialize variable `ep'.
6002         * sigsetmask.c (abort): Prototype.
6004         * vasprintf.c: Include config.h.  Check ANSI_PROTOTYPES, not
6005         __STDC__ for stdarg.h include.
6006         (int_vasprintf): Prototype.
6007         (checkit): Prototype.  Use VPARAMS/ANSI_PROTOTYPES/VA_START in
6008         definition.  Cast `global_total_width' in comparison.
6009         (main): Prototype.  Return a value.
6011         * vfork.c (fork): Prototype.
6013         * xexit.c: Include config.h.
6015 2000-07-20  Joseph S. Myers  <jsm28@cam.ac.uk>
6017         * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
6018         and print it with %u.
6020 2000-07-17  Hans-Peter Nilsson  <hp@axis.com>
6022         * testsuite/regress-demangle (failed test): Show result and
6023         expected output.
6025 2000-07-07  Andrew Haley  <aph@cygnus.com>
6027         * cplus-dem.c (main): fflush() after emitting last char before
6028         waiting for input.
6030 2000-06-28  Alex Samuel  <samuel@codesourcery.com>
6032         * cp-demangle.c (demangle_encoding): Accept no substitutions.
6033         (demangle_name): Handle <substitution> followed by
6034         <unqualified-template-name>.
6035         (demangle_type): Follow special substitutions with
6036         <class-enum-type>
6037         (demangle_subtitution): Set template_p for special substitutions.
6038         (main): Fix typos.
6040 2000-06-27  Alex Samuel  <samuel@codesourcery.com>
6042         * cp-demangle.c (demangle_special_name): Swap base and derived
6043         class when demangling construction vtables.
6045 2000-06-21  Alex Samuel  <samuel@codesourcery.com>
6047         * cp-demangle.c: Don't include ctype.h.
6048         (IS_DIGIT): New macro.
6049         (IS_ALPHA): Likewise.  Use IS_DIGIT and IS_ALPHA throughout
6050         instead of isdigit and isalpanum.
6051         (demangling_def): Make name and next const pointers.
6052         (STATUS_ALLOCATION_FAILED): New status code.
6053         (dyn_string_append_space): Handle failure in
6054         dyn_string_append_char.
6055         (int_to_dyn_string): Likewise.  Change return value to status_t.
6056         (string_list_new): Handle failure of dyn_string_init.
6057         (result_close_template_list): Change return type to status_t.
6058         Handle failure in dyn_string_append.
6059         (result_push): Change return value to status_t.  Handle failure in
6060         string_list_new.  Handle failure of result_push throughout.
6061         (substitution_add): Change return value to status_t.  Handle
6062         dyn_string failures.  Handle failure of substitution_add
6063         throughout.
6064         (template_arg_list_new): Return NULL on allocation failure.
6065         (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
6066         Handle error result throughout.
6067         (result_append): Likewise.
6068         (result_append_char): Likewise.
6069         (result_append_space): Likewise.
6070         (demangling_new): Make argument a const pointer.  Handle
6071         allocation failures.
6072         (demangle_template_args): Handle failure in template_arg_list_new
6073         and result_close_template_list.
6074         (demangle_discriminator): Return if int_to_dyn_string fails.
6075         (cp_demangle): Likewise.
6076         (cp_demangle_type): New function.
6077         (cplus_demangle_new_abi): Don't call dyn_string_delete.  Abort on
6078         memory allocation failure.
6079         (main): Likewise.
6080         * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
6081         IN_LIBGCC2.
6082         (dyn_string_init): Change return value to int.  Handle
6083         RETURN_ON_ALLOCATION_FAILURE case.
6084         (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
6085         (dyn_string_release): Delete the dyn_string.
6086         (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
6087         (dyn_string_copy): Change return type to int.
6088         (dyn_string_copy_cstr): Likewise.
6089         (dyn_string_prepend): Likewise.
6090         (dyn_string_prepend_cstr): Likewise.
6091         (dyn_string_insert): Likewise.
6092         (dyn_string_insert_cstr): Likewise.
6093         (dyn_string_append): Likewise.
6094         (dyn_string_append_cstr): Likewise.
6095         (dyn_string_append_char): Likewise.
6096         (dyn_string_substring): Likewise.
6098 2000-06-09  Zack Weinberg  <zack@wolery.cumb.org>
6100         * cp-demangle.c (demangle_operator_name): Add spaces before
6101         names beginning with a letter: delete, delete[], new, new[],
6102         sizeof.
6103         (demangle_special_name): Handle TF <type> and TJ <type>.
6105 Thu Jun  8 18:52:24 2000  Philippe De Muyter  <phdm@macqel.be>
6107         * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
6109 Thu Jun  8 09:25:54 2000  Philippe De Muyter  <phdm@macqel.be>
6111         * cp-demangle.c (stdio.h): File included unconditionaly.
6112         (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
6113         * dyn-string.c (stdio.h): File included.
6114         * partition.c (partition_print): No `&' needed to take the address of
6115         a function.
6117 2000-06-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6119         * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
6121         * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
6123         * cp-demangle.c (demangle_char): Change parameter from char to int.
6124         (demangle_expression, demangle_expr_primary): Remove extra
6125         semi-colon in prototype.
6127         * dyn-string.c (dyn_string_append_char): Change parameter from
6128         char to int.
6130         * memcmp.c (memcmp): Constify.
6132         * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
6133         __extension__.
6135         * partition.c (elem_compare): Prototype.  Don't cast away
6136         const-ness.
6138         * setenv.c (setenv): Use braces to avoid ambiguous `else'.
6140 2000-06-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6142         * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
6144         * cp-demangle.c: Include demangle.h.
6145         (template_arg_list_new): DeANSIfy.
6146         (cp_demangle): Make static and add prototype.
6147         (operator_code, operators): Constify.
6148         (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
6150 2000-06-05  Alex Samuel  <samuel@codesourcery.com>
6152         * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
6153         unsigned char.
6154         (demangle_unqualified_name): Likewise.
6155         (demangle_number_literally): Likewise.
6156         (demangle_type): Likewise.
6157         (demangle_substitution): Likewise.
6158         (is_mangled_char): Likewise, for isalnum.
6160 2000-06-04  Alex Samuel  <samuel@codesourcery.com>
6162         * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
6163         (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
6164         (cp-demangle.o): New dependency.
6165         (dyn-string.o): Likewise.
6167         * dyn-string.c: Move here from gcc/dyn-string.c.  Add new functions.
6169         * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
6170         demangler.
6171         (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
6172         demangling mode.
6173         (gnu_new_abi_symbol_characters): New function.
6174         (main): Use gnu_new_abi_symbol_characters.  * cp-demangle.c: New
6175         file.
6176         * cp-demangle.c: New file.
6178 Tue May 30 16:45:25 2000  Andrew Cagney  <cagney@b1.cygnus.com>
6180         * floatformat.c: Add name to each floatformat field.
6182 Tue May 30 15:07:52 2000  Jeffrey A Law  (law@cygnus.com)
6184         * Makefile.in (objalloc.o): Depend on config.h
6186 2000-05-29  Zack Weinberg  <zack@wolery.cumb.org>
6188         * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
6189         if HAVE_STRING_H.
6190         * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
6191         * objalloc.c: Include config.h.  Include stdlib.h and don't
6192         declare malloc or free if HAVE_STDLIB_H.
6193         * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
6194         else declare malloc without prototype.  Include string.h if
6195         HAVE_STRING_H, else declare memset without prototype.  Don't
6196         include stddef.h.
6198 2000-05-23  Mike Stump  <mrs@wrs.com>
6200         * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
6201         -j3.
6203 2000-05-18  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
6205         * xmalloc.c: Include config.h for HAVE_SBRK definition.
6207 2000-05-16  Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
6209         * hashtab.c (hash_pointer): Delete low-order bits which are
6210         probably zero, also eliminate a warning on alpha.
6212 2000-05-15  David Edelsohn  <edelsohn@gnu.org>
6214         * Makefile.in: Change "pic" to depend on $(PICFLAG), not
6215         on $(enable_shared).
6217 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
6219         * config.table: Use mh-sparcpic for sparc*-*-*.
6221 2000-05-08  Nick Clifton  <nickc@cygnus.com>
6223         * Makefile.in (CFILES): Add strncmp.c.
6224         (NEEDED): Add strncmp.
6226 2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6228         * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
6229         Cast the arguments to `islower' to `unsigned char'.
6230         (print_demangler_list): Prototype.
6232 Thu May  4 17:14:41 2000  Philippe De Muyter  <phdm@macqel.be>
6234         * sort.c (UCHAR_MAX): Provide fallback definition.
6236 2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
6238         * Makefile.in (maintainer-clean-subdir): Fix handling of empty
6239         SUBDIRS.
6241 2000-04-28  Kenneth Block  <block@zk3.dec.com>
6242             Jason Merrill  <jason@casey.cygnus.com>
6244         * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
6245         (cplus_demangle_set_style): New function for setting style.
6246         (cplus_demangle_name_to_style): New function to translate name.
6248 2000-04-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6250         * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
6252         * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
6253         (libiberty_AC_FUNC_STRNCMP): Invoke.
6255         * strncmp.c: New file.
6257 Thu Apr 27 16:58:43 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6259         * hashtab.c (htab_expand): Add prototype.
6260         (find_empty_slot_for_expand): Likewise.
6262 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6264         * hashtab.c (hash_pointer, eq_pointer): Make definition static to
6265         match prototype.
6266         (htab_expand): Cast the return value of xcalloc.
6268 2000-04-24  Mark Mitchell  <mark@codesourcery.com>
6270         * hashtab.c (hash_pointer): New function.
6271         (eq_pointer): Likewise.
6272         (htab_hash_pointer): New variable.
6273         (htab_eq_pointer): Likewise.
6275 2000-04-23  Mark Mitchell  <mark@codesourcery.com>
6277         * sort.c (sort_pointers): Fix endianness bugs.
6279         * sort.c: New file.
6280         * Makefile.in (CFILES): Add sort.c
6281         (REQUIRED_OFILES): Add sort.o.
6282         (sort.o): New target.
6284 2000-04-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
6286         * Makefile.in (*-subdir): Revamp slightly to avoid losing on
6287         4.3BSD systems.
6289 Tue Apr 18 16:23:31 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6291         * hashtab.c: Various minor cleanups.
6292         (htab_find_slot_with_hash): INSERT is now enum insert_option.
6293         (htab_find_slot): Likewise.
6295 2000-04-16  Dave Pitts  <dpitts@cozx.com>
6297         * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
6299 2000-04-05  Richard Henderson  <rth@cygnus.com>
6301         * splay-tree.c (splay_tree_remove): New.
6303 2000-03-30  Mark Mitchell  <mark@codesourcery.com>
6305         * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
6306         codes.
6307         (htab_find_with_hash): Likewise.
6308         (htab_find_slot_with_hash): Likewise.
6310 2000-03-29  Zack Weinberg  <zack@wolery.cumb.org>
6312         * hashtab.c (htab_find_with_hash): Avoid calculating hash2
6313         unless it will be used.  Rearrange loop for better
6314         optimization.
6315         (higher_prime_number): Add static prototype.
6317 Thu Mar 16 01:33:58 2000  Jeffrey A Law  (law@cygnus.com)
6319         * Makefile.in (partition.o): Depend on config.h
6321 2000-03-14  Bernd Schmidt  <bernds@cygnus.co.uk>
6323         * hashtab.c (find_empty_slot_for_expand): New function.
6324         (htab_expand): Use it instead of htab_find_slot.
6325         (htab_find_with_hash): Renamed from htab_find; now accepts extra
6326         argument HASH.
6327         (htab_find_slot_with_hash): Likewise for htab_find_slot.
6328         (htab_find): New wrapper function.
6329         (htab_find_slot): Likewise.
6330         (htab_traverse): Pass slot, not entry, to called function.
6332 2000-03-09  Alex Samuel  <samuel@codesourcery.com>
6334         * Makefile.in (CFILES): Add partition.c.
6335         (REQUIRED_OFILES): Add partition.o.
6336         (partition.o): New rule.
6337         * partition.c: New file.
6339 2000-03-09  Zack Weinberg  <zack@wolery.cumb.org>
6341         * hashtab.c (htab_create): Set del_f.
6342         (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
6343         Use it.
6345 2000-03-08  Zack Weinberg  <zack@wolery.cumb.org>
6347         * hashtab.c: Remove debugging variables (all_searches,
6348         all_collisions, all_expansions). Delete
6349         all_hash_table_collisions.
6350         (create_hash_table, delete_hash_table, empty_hash_table,
6351         find_hash_table_entry, remove_element_from_hash_table_entry,
6352         clear_hash_table_slot, traverse_hash_table, hash_table_size,
6353         hash_table_elements_number, hash_table_collisions): Rename to:
6354         htab_create, htab_delete, htab_empty, htab_find_slot,
6355         htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
6356         htab_elements, htab_collisions.
6357         (htab_find): New function, handles common case where you don't
6358         plan to add or delete an entry.
6359         (htab_expand): Don't create a whole new table, just a new
6360         entry vector.
6361         (htab_find_slot): Simplify logic.
6363 1999-08-03  Ian Lance Taylor  <ian@zembu.com>
6365         * floatformat.c: Add casts to avoid signed/unsigned warnings.
6366         * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
6368         * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
6369         $(TARGETLIB)n so it works on MSDOS.
6370         (install_to_tooldir): Likewise.
6372 1999-07-21  Ian Lance Taylor  <ian@zembu.com>
6374         From Mark Elbrecht:
6375         * makefile.dos: Remove; obsolete.
6376         * configure.bat: Remove; obsolete.
6378 1999-07-11  Ian Lance Taylor  <ian@zembu.com>
6380         * splay-tree.c (splay_tree_insert): Add initialization to avoid
6381         warning.
6383 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
6385         * pexecute.c: Conditionally include string.h.
6386         (fix_argv): Handle embedded whitespace in args for Mingw32.
6388 2000-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6390         * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
6391         we're using gcc.
6393         * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
6395 1999-12-27  Geoff Keating  <geoffk@cygnus.com>
6397         * vasprintf.c (int_vasprintf): Don't re-read the format character
6398         as this mishandles strings like '%%s'.
6400 1999-12-05  Mark Mitchell  <mark@codesourcery.com>
6402         * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
6403         rather than struct splay_tree_node.
6404         (splay_tree_insert): Use struct splay_tree_s rather than struct
6405         splay_tree.
6407 Sun Nov 28 00:59:39 1999  Philippe De Muyter  <phdm@macqel.be>
6409         * hashtab.c (sys/types.h): File included.
6411 1999-11-22  Jason Merrill  <jason@casey.cygnus.com>
6413         * strtoul.c, strtol.c, random.c: Remove advertising clause from
6414         BSD license, pursuant with
6416           ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
6418 Wed Nov 10 09:42:39 1999  Jeffrey A Law  (law@cygnus.com)
6420         * hashtab.c: Include stdio.h.
6422 Mon Nov  8 09:23:41 1999  Jeffrey A Law  (law@cygnus.com)
6424         * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
6426 Tue Nov  2 03:23:13 1999  Philippe De Muyter  <phdm@macqel.be>
6428         * xstrdup (sys/types.h): Include this file.
6430 1999-10-28  Nathan Sidwell  <nathan@acm.org>
6432         * Makefile.in (SUBDIRS): New macro.
6433         (mostlyclean, clean, distclean, maintainer-clean): Adjust to
6434         avoid multiple subdirectory cleaning.
6435         (*-subdir): Use SUBDIRS.
6437 1999-10-25  Jim Kingdon  <http://developer.redhat.com/>
6439         * cplus-dem.c: Move declarations of standard_symbol_characters and
6440         hp_symbol_characters inside #ifdef MAIN to avoid compiler
6441         warnings.
6443 1999-10-23 08:51 -0700  Zack Weinberg  <zack@bitmover.com>
6445         * hashtab.c (find_hash_table_entry): When returning a
6446         DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
6447         (clear_hash_table_slot): New function which deletes an entry
6448         by its position in the table, not its value.
6449         (traverse_hash_table): New function which calls a hook
6450         function for every live entry in the table.
6452 1999-10-19  Mark Mitchell  <mark@codesourcery.com>
6454         * cplus-dem.c (INTBUF_SIZE): New macro.
6455         (string_append_template_idx): New function.
6456         (demangle_expression): Likewise.
6457         (demangle_integral_value): Use it.
6458         (demangle_real_value): New function, split out from ...
6459         (demangle_template_value_parm): ... here.  Use
6460         string_append_template_idx.  Use demangle_real_value.
6461         (demangle_template): Use string_append_template_idx.
6462         (demangle_qualified): Use consume_count_with_underscores.
6463         (get_count): Tweak formatting.
6464         (do_type): Use string_append_template_idx.
6466 1999-10-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6468         * calloc.c: Add a public domain notice.
6470 Mon Oct 18 02:30:47 1999  Philippe De Muyter  <phdm@macqel.be>
6472         * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
6474 Fri Oct 15 01:47:51 1999  Vladimir Makarov  <vmakarov@loony.cygnus.com>
6476         * Makefile.in (CFILES): Add hashtab.c
6477         (REQUIRED_OFILES): Add hashtab.o
6478         (hashtab.o): Add dependencies.
6479         * hashtab.c: New file
6481 Wed Oct 13 01:16:47 1999  Mumit Khan  <khan@xraylith.wisc.edu>
6483         * basename.c (DIR_SEPARATOR): New macro.
6484         (DIR_SEPARATOR_2): Likewise.
6485         (HAVE_DOS_BASED_FILESYSTEM): Likewise.
6486         (IS_DIR_SEPARATOR): Likewise.
6487         (main): Handle MSDOS style pathname.
6489 1999-10-11  Mark Mitchell  <mark@codesourcery.com>
6491         * cplus-dem.c (do_type): Handle pointer to member types whose
6492         enclosing classes have namespace scope.
6494 Sun Oct 10 01:23:50 1999  Marc Espie <espie@cvs.openbsd.org>
6496         * config.table:  Provide a backup shell for executing move-if-change.
6498 1999-10-02  Mark Mitchell  <mark@codesourcery.com>
6500         * xmalloc.c (xmalloc): Fix spelling error.
6501         (xcalloc, xrealloc): Likewise.
6503 1999-10-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6505         * cplus-dem.c (fancy_abort, demangle_integral_value,
6506         demangle_arm_hp_template, recursively_demangle,
6507         standard_symbol_characters, hp_symbol_characters, main): Add prototype.
6508         (program_name, program_version, fatal): Constify a char*.
6509         (usage, fatal): Mark with ATTRIBUTE_NORETURN.
6510         (main): Call return, not exit.
6512 1999-09-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6514         * choose-temp.c: Remove obsolete comment about gcc.
6515         (make_temp_file): Constify a char*.
6517 Wed Sep  8 20:03:28 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6519         * xmemdup.c: Include sys/types.h.
6521 1999-09-07  Jeff Garzik  <jgarzik@pobox.com>
6523         * xmemdup.c: New xmemdup function.
6524         * Makefile.in, makefile.vms, vmsbuild.com:  Use xmemdup.[co].
6526 Tue Sep  7 23:32:18 1999  Linas Vepstas  <linas@linas.org>
6528         * config.table: Add openedition target.
6529         * config/mh-openedition: New file.
6531 Thu Sep  2 01:36:12 1999  Marc Espie <espie@cvs.openbsd.org>
6533         * pexecute.c (pexecute):  Fill in temp_base when needed.
6535 1999-08-31  Richard Henderson  <rth@cygnus.com>
6537         * getpwd.c: Check HAVE_GETCWD before defining it away.
6539 1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6541         * Makefile.in (CFILES): Add calloc.c and getpwd.c.
6542         (REQUIRED_OFILES): Add getpwd.o.
6543         (getpwd.o): Add target.
6545         * configure.in (AC_PREREQ): Bump to 2.13.
6546         (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
6548         * getpwd.c: New file, moved here from gcc.
6550 1999-08-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6552         * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
6553         comparing against a signed quantity.
6554         (arm_special): Likewise.
6555         (demangle_fund_type): Likewise.
6556         (do_hpacc_template_const_value): Mark parameter `work' with
6557         ATTRIBUTE_UNUSED.
6558         (main): Constify variable `valid_symbols'.
6560 Tue Aug 24 02:50:45 1999  Philippe De Muyter  <phdm@macqel.be>
6562         * strtoul.c (strtoul): Add parentheses around && within ||.
6564 Fri Aug  6 23:32:29 1999  Daniel Jacobowitz <drow@drow.them.org>
6566         * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
6567         libdir, libsubdir and tooldir.
6569 1999-08-01  Mark Mitchell  <mark@codesourcery.com>
6571         * splay-tree.c (splay_tree_insert): Return the new node.
6573 1999-07-14  Richard Henderson  <rth@cygnus.com>
6575         * argv.c: Include stdlib.h and string.h instead of
6576         prototyping directly.
6577         * choose-temp.c: Conditionally include string.h.
6579 1999-07-12  Jason Merrill  <jason@yorick.cygnus.com>
6581         * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
6583 1999-07-11  Ian Lance Taylor  <ian@zembu.com>
6585         * splay-tree.c (splay_tree_insert): Add initialization to avoid
6586         warning.
6588 1999-07-07  Jason Merrill  <jason@yorick.cygnus.com>
6590         * Makefile.in (needed-list): Only include stuff we actually need
6591         for libstdc++.
6593 1999-06-21  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
6595         * configure.in (checkfuncs): Add gettimeofday.
6596         * config.in, configure: Regenerated.
6598 Mon Jun 21 05:56:01 1999  Mumit Khan  <khan@xraylith.wisc.edu>
6600         * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
6601         the test fails.
6602         * configure: Regenerate.
6604 1999-06-10  Mike Stump  <mrs@wrs.com>
6606         * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
6607         parallel builds.
6609 1999-05-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6611         * putenv.c: Include ansidecl.h to define `const'.
6612         * setenv.c: Likewise.
6614 Wed May 26 03:58:20 1999  "Melissa O'Neill" <oneill@cs.sfu.ca>
6616         * Makefile.in (CFILES): Add putenv.c and setenv.c.
6617         * configure.in (funcs): Add putenv and setenv.
6618         (AC_CHECK_FUNCS): Check for putenv and setenv.
6619         * configure: Rebuilt.
6620         * putenv.c setenv.c: New files.
6622         * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
6623         bytes of space using malloc.
6625 Mon May 17 01:42:34 1999  Stu Grossman  <grossman@babylon-5.cygnus.com>
6627         * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
6628         the *mangled pointer beyond the end of the string.  Clean up code to
6629         match prevailing coding style.
6631 1999-05-13  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6633         * tmpnam.c (L_tmpnam): Fix typo.
6635 Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
6637         * cplus-dem.c (standard_symbol_characters): Renamed from
6638         standard_symbol_alphabet.  No longer modify TABLE.
6639         (hp_symbol_characters): Renamed from hp_symbol_alphabet.  No longer
6640         modify TABLE.
6641         (main): Corresponding changes.  Use strchr to determine if a
6642         character is valid.
6644 1999-05-11  Jim Blandy  <jimb@zwingli.cygnus.com>
6646         * cplus-dem.c (main): Use table lookup to distinguish identifier
6647         characters from non-identifier characters.
6648         (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
6650 Thu May  6 20:34:42 1999  Fred Fish  <fnf@be.com>
6652         * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
6653         * getruntime.c: Only attempt to include sys/resource.h and
6654         use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
6655         are defined.
6657 Mon Apr 26 01:36:06 1999  Donn Terry (donn@interix.com)
6659         * configure.in (alloca detection): Handle alloca directly for interix.
6660         * configure: Rebuilt.
6662 Sun Apr 25 01:18:21 1999  Mumit Khan  <khan@xraylith.wisc.edu>
6664         * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
6666 1999-04-20  Jim Blandy  <jimb@zwingli.cygnus.com>
6668         Fix from Dale Hawkins:
6669         * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
6670         reallocated properly if we use it again.
6672         * cplus-dem.c (demangle_fund_type): Check for buffer overrun.  Be
6673         stricter about syntax.  Always null-terminate string.
6675 Thu Apr 15 23:00:55 1999  Mumit Khan  <khan@xraylith.wisc.edu>
6677         * configure.in (checkfuncs): Check for sbrk.
6678         * config.in: Rebuilt.
6679         * configure: Likewise.
6680         * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
6682 1999-04-12  Jim Blandy  <jimb@zwingli.cygnus.com>
6684         Fix from Marcus Daniels:
6685         * cplus-dem.c (demangle_fund_type): Don't run off the end of the
6686         identifier looking for another underscore.
6688 Sun Apr 11 23:20:59 1999  Mumit Khan  <khan@xraylith.wisc.edu>
6690         * pexecute.c: Change all references to __UWIN__ to _UWIN.
6691         * xmalloc.c: Likewise.
6692         (xcalloc): UWIN has sbrk.
6693         (xrealloc): Fix guard macro.
6695 1999-04-11  Richard Henderson  <rth@cygnus.com>
6697         * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
6698         or <alloca.h>.
6699         * clock.c (GNU_HZ): New definition.
6700         (clock): Use it.
6701         * getruntime.c: Likewise.
6703         * config.table: Use mh-beos.
6704         * config/mh-beos: New file.
6706 1999-04-11  Mark Mitchell  <mark@codesourcery.com>
6708         * cplus-dem.c (demangle_template_value_parm): Handle
6709         pointers-to-members.
6710         (do_type): Handle template parameters as qualifiers.
6712 1999-04-01  Jim Blandy  <jimb@zwingli.cygnus.com>
6714         * cplus-dem.c: Attempt to handle overflows in counts with some
6715         semblance of grace.
6716         (consume_count): Detect overflows.  Return -1 to indicate errors,
6717         instead of zero.
6718         (demangle_template_value_parm, demangle_template): Handle change
6719         to consume_count's return convention.
6721 1999-04-05  Tom Tromey  <tromey@cygnus.com>
6723         * testsuite/regress-demangle: New file.
6724         * testsuite/demangle-expected: New file.
6726         * Makefile.in (all, check, installcheck, info, install-info,
6727         clean-info, dvi, install, etags, tags, mostlyclean, clean,
6728         distclean, maintainer-clean, realclean): Depend on corresponding
6729         `-subdir' target.
6730         (all-subdir check-subdir installcheck-subdir info-subdir
6731         install-info-subdir clean-info-subdir dvi-subdir
6732         install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
6733         distclean-subdir maintainer-clean-subdir): New target.
6734         * testsuite/Makefile.in: New file.
6735         * configure: Rebuilt.
6736         * configure.in: Create testsuite/Makefile.
6738 1999-04-02  Mark Mitchell  <mark@codesourcery.com>
6740         * splay-tree.h (splay_tree_compare_pointers): Define.
6742 1999-03-30  Mark Mitchell  <mark@codesourcery.com>
6744         * splay-tree.c (splay_tree_compare_ints): Define.
6746 1999-03-30  Tom Tromey  <tromey@cygnus.com>
6748         * cplus-dem.c (consume_count): If `count' wraps, return 0 and
6749         don't advance input pointer.
6750         (demangle_class_name): If consume_count didn't find a count, do
6751         nothing.  Don't bother with `strlen' sanity check; consume_count
6752         does it for us.
6754 1999-03-16  Stan Shebs  <shebs@andros.cygnus.com>
6756         From Art Haas  <ahaas@neosoft.com>:
6757         * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
6758         when doing arm or hp style.
6759         (demangle_nested_args): Decr forgetting_types field when done.
6761 Thu Mar 11 01:22:58 1999  Mumit Khan  <khan@xraylith.wisc.edu>
6763         * pexecute.c (__CYGWIN32__): Rename to
6764         (__CYGWIN__): this.
6765         * xmalloc.c: Likewise.
6767         Changes to support i386-pc-uwin.
6768         * configure.in (*-*-uwin*): Workaround for vfork bug.
6769         * configure: Regenerate.
6770         * pexecute.c (pexecute): Be like standard Unix.
6771         (pwait): Likewise.
6772         * xmalloc.c (first_break): Define.
6773         (xmalloc_set_program_name): Use.
6774         (xmalloc): Use.
6776 Thu Mar 11 01:07:55 1999  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6778         * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
6780 Sun Feb 28 22:30:44 1999  Geoffrey Noer  <noer@cygnus.com>
6782         * config.table: Check cygwin*, not cygwin32*.
6784 Tue Feb  9 16:39:01 1999  Dave Brolley  <brolley@cygnus.com>
6786         * Makefile.in: Change mkstemp -> mkstemps.
6788 Tue Feb  9 01:12:27 1999  Marc Espie <Marc.Espie@liafa.jussieu.fr>
6790         * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
6791         * configure.in (funcs): Check for and conditionally add mkstemps to
6792         the list of functions libiberty will provide.
6793         * configure: Rebuilt.
6795 Wed Feb  3 00:01:15 1999  Mumit Khan  <khan@xraylith.wisc.edu>
6797         * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
6798         platforms that don't have HZ.
6799         * getruntime.c (HZ): Likewise.
6801 Sat Jan 30 13:28:04 1999  Richard Henderson  <rth@cygnus.com>
6803         * Makefile.in (xstrdup.o): Depend on config.h.
6805 Wed Jan 13 07:26:44 1999  H.J. Lu  (hjl@gnu.org)
6807         * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
6808         freeing it.
6810 Wed Jan 13 14:16:36 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6812         * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
6814 Tue Jan  5 15:58:29 1999  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
6816         * Makefile.in (CFILES): fix typo, splay-tree.c instead of
6817         splay-tree.o.
6819 1999-01-04  Jason Molenda  (jsm@bugshack.cygnus.com)
6821         * configure.in: Require autoconf 2.12.1 or higher.
6823 1998-12-30  Michael Meissner  <meissner@cygnus.com>
6825         * random.c (NULL): Don't redefine NULL if it is already defined.
6827 Tue Dec 22 09:43:35 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6829         * argv.c (buildargv): Cast the result of alloca in assignment.
6831         * choose-temp.c: Include stdlib.h.
6833         * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
6834         (snarf_numeric_literal): Constify first parameter.
6835         (code_for_qualifier): Avoid a gcc extension, make the parameter an
6836         int, not a char.
6837         (demangle_qualifier): Likewise.
6838         (demangle_signature): Cast the argument of a ctype function to
6839         unsigned char.
6840         (arm_pt): Add parens around assignment used as truth value.
6841         (demangle_arm_hp_template): Constify variable `args'.
6842         (do_hpacc_template_const_value): Cast the argument of a ctype
6843         function to unsigned char.
6844         (do_hpacc_template_literal): Remove unused variable `i'.
6845         (snarf_numeric_literal): Constify parameter `args'.
6846         Cast the argument of a ctype function to unsigned char.
6848         * floatformat.c (floatformat_to_double): Add explicit braces to
6849         avoid ambiguous `else'.
6851         * fnmatch.c (fnmatch): Change type of variables `c', `c1',
6852         `cstart' and `cend' to unsigned char.  Cast the argument of macro
6853         `FOLD', which uses ctype functions, to unsigned char.
6855         * objalloc.c (free): Add prototype.
6857 Sun Dec 20 16:03:46 1998  Hans-Peter Nilsson  <hp@axis.se>
6859         * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
6861 Fri Dec 18 17:50:18 1998  David Taylor  <taylor@texas.cygnus.com>
6863         * cplus-dem.c (demangle_arm_pt): remove declaration -- function
6864         doesn't exist.
6865         (do_hpacc_template_literal): remove unused variable `i'.
6867 Fri Dec 18 16:11:43 EST 1998  Andrew MacLeod  <amacleod@cygnus.com>
6869         * cplus-dem.c (demangle_fund_type): Process CV and u codes before
6870         bumping the pointer we read from. Also prepend these codes,
6871         as we do in other places.
6873 1998-12-18  Nick Clifton  <nickc@cygnus.com>
6875         * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
6876         'const char *' in order to match its usage when calling siblings.
6877         (snarf_numeric_literal): Make first arg 'const char **' in order
6878         to match usage.
6880 Mon Dec 14 09:55:50 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6882         * choose-temp.c: Don't check IN_GCC anymore.
6884         * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
6885         * memchr.c (memchr): Likewise.
6886         * memcpy.c (memcpy): Likewise.
6887         * memmove.c (memmove): Likewise.
6889         * mkstemp.c: Don't check IN_GCC anymore.
6890         * pexecute.c: Likewise.
6891         * splay-tree.c: Likewise.
6893         * strchr.c (strchr): Use `const', not `CONST'.
6894         * strrchr.c (strrchr): Likewise.
6895         * strtol.c (strtol): Likewise.
6896         * strtoul.c (strtoul): Likewise.
6898 Fri Dec  4 13:51:04 1998  David Taylor   <taylor@texas.cygnus.com>
6899                           Elena Zannoni  <ezannoni@cygnus.com>
6900                           Stan Shebs     <shebs@cygnus.com>
6901                           Edith Epstein  <eepstein@cygnus.com>
6902                           Andres MacLeod <amacleod@cygnus.com>
6903                           Satish Pai     <pai@apollo.hp.com>
6905         * HP aCC demangling support.
6906         * cplus-dem.c
6907         (main): Remove default to HP style demangling, set to EDG
6908         demangling correctly when -edg specified; set the demangling style
6909         when user specifies 'edg'. Set strip_underscore to
6910         prepends_underscore, if not HPUXHPPA.  Set
6911         current_demangling_style to hp_demangling if HPUXHPPA.  Set
6912         current demangling style correctly if the switch is hp.  Read
6913         label correctly also in the HP style case.
6914         (work_stuff): add temp_start field; add field for volatile member
6915         function.
6916         (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
6917         style for this case is the same as ARM.
6918         (demangle_args): handle EDG_DEMANGLING style; support HP style.
6919         (demangle_arm_hp_template): new function. (It was
6920         demangle_arm_pt.); check and set value of temp_start field in
6921         multiple places. Also, when ceching for end of template args,
6922         check to see if at end of static member of template class.
6923         (demangle_class): new local variable : save_class_name_end Don't
6924         include template args in string defining class.
6925         (demangle_class_name): use demangel_arm_hp_template.
6926         (demangle_function_name): handle case where demangling style is
6927         HP_DEMANGLING and currently point at an 'X' in the mangled name.
6928         Handle EDG_DEMANGLING style.  Handle constructor and destructor
6929         ops for HP style.
6930         (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
6931         styles.  global destructor and constructor for HP style are same
6932         as for ARM style. Same for local variables.
6933         (demangle_qualified): handle EDG_DEMANGLING style.
6934         (demangle_signature): add case for volatile member function.  For
6935         cases '1' - '9' : initialize the temp_start field to -1 and handle
6936         the EDG_DEMANGLING style.  for case 'F' : handle EDG_DEMANGLING
6937         and AUTO_DEMANGLING styles.  If expecting a function and managed
6938         to demangle the funct args, then handle the LUCID_DEMANGLING,
6939         ARM_DEMANGLING, and EDG_DEMANGLING styles.  Add case for local
6940         class name after "Lnnn_ in HP style case. HP style too needs to
6941         forget types.  _nnn is OK for HP style, so don't report failure.
6942         (do_hpacc_template_const_value): new function. Handle template's
6943         value param for HP/aCC.
6944         (do_hpacc_template_literal): new function.  Handle a template's
6945         literal parameter for HP aCC.
6946         (recursively_demangle): new function
6947         (snarf_numeric_literal): new function.
6948         (usage): add 'edg' to the list of demangling styles; add hp switch
6949         to message.
6951 Sat Nov 28 17:25:22 1998  Christopher Faylor <cgf@cygnus.com>
6953         * pexecute.c: Remove obsolete ifdefed cygwin code.
6955 Fri Nov 27 13:26:06 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6957         * choose-temp.c: Always include libiberty.h.  Avoid redundancies.
6958         * cplus-dem.c: Likewise.  Conform to libiberty.h.
6959         * pexecute.c: Likewise.
6960         * splay-tree.c: Likewise.
6962 1998-11-25  Mike Stump  <mrs@wrs.com>
6964         * Makefile.in (splay-tree.o): Add config.h dependency.
6966 Mon Nov 23 16:59:49 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6968         *  configure.in: Use AC_PREREQ(2.12.1).
6970 1998-11-16  Benjamin Kosnik  <bkoz@haight.constant.com>
6972         * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6974 Thu Nov 19 22:15:50 1998  Jeffrey A Law  (law@cygnus.com)
6976         * mpw.c (mpw_access): Add missing parens.
6978 Thu Nov 19 12:59:21 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6980         * configure.in: Call AC_HEADER_SYS_WAIT.
6982         * pexecute.c: Include sys/wait.h when !IN_GCC.
6984 Thu Nov 19 14:38:20 1998  Geoffrey Noer  <noer@cygnus.com>
6986         * pexecute.c: revert back to checking old Cygwin
6987         preprocessor symbol until some time has passed.
6989 Wed Nov 18 08:52:26 1998  Christopher Faylor <cgf@cygnus.com>
6991         * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
6992         since it will now support similar constructs.
6994 Fri Nov 13 19:18:05 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6996         * configure.in: Check for calloc.
6998         * calloc.c: New file.
7000         * xmalloc.c (xcalloc): New function.
7002 Fri Nov 13 08:51:46 EST 1998  Andrew MacLeod  <amacleod@cygnus.com>
7004         *cplus-dem.c (demangle_prefix): Use the last "__"
7005         in the mangled name when looking for the signature. This allows
7006         template names to begin with "__".
7008 1998-11-08  Mark Mitchell  <mark@markmitchell.com>
7010         * cplus-dem.c (type_kind_t): Add tk_reference.
7011         (demangle_template_value_parm): Handle it.
7012         (do_type): Use it for references, instead of tk_pointer.
7014         * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
7015         not internal_cplus_demangle.
7017 Sat Nov  7 16:02:10 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7019         * choose-temp.c: Don't include gansidecl.h.
7020         * mkstemp.c: Likewise.
7021         * pexecute.c: Likewise.
7023 Mon Nov  2 15:05:33 1998  Geoffrey Noer  <noer@cygnus.com>
7025         * configure.in: detect cygwin* instead of cygwin32*
7026         * configure: regenerate
7028 Mon Nov  2 10:22:01 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7030         * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
7031         whether to include config.h.  Possibly include unistd.h in the
7032         !IN_GCC case.  Define VFORK_STRING as a printable function call
7033         for error messages (either "vfork" or "fork".)  If HAVE_VFORK_H is
7034         defined, include vfork.h.  If VMS is defined, define vfork()
7035         appropriately.  Remove vfork check on USG, we're using autoconf.
7036         (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
7037         locally what string to use.
7039 1998-10-26  Mark Mitchell  <mark@markmitchell.com>
7041         * splay-tree.c: Tweak include directives to make sure declarations of
7042         xmalloc and free are available.
7044 1998-10-25  Mark Mitchell  <mark@markmitchell.com>
7046         * cplus-dem.c (gnu_special): Fix handling of virtual tables in
7047         anonymous namespaces.
7049 1998-10-23  Mark Mitchell  <mark@markmitchell.com>
7051         * cplus-dem.c (work_stuff): Replace const_type and volatile_type
7052         with type_quals.
7053         (TYPE_UNQUALIFIED): New macro.
7054         (TYPE_QUAL_CONST): Likewise.
7055         (TYPE_QUAL_VOLATILE): Likewise.
7056         (TYPE_QUAL_RESTRICT): Likewise.
7057         (code_for_qualifier): New function.
7058         (qualifier_string): Likewise.
7059         (demangle_qualifier): Likewise.
7060         (internal_cplus_demangle): Use them.
7061         (demangle_signature): Likewise.
7062         (demangle_template_value_parm): Likewise.
7063         (do_type): Likewise.
7064         (demangle_fund_type)): Likewise.
7066 Thu Oct 22 19:58:43 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7068         * splay-tree.c (splay_tree_foreach_helper): Make definition static
7069         to match prototype.
7071 1998-10-21  Mark Mitchell  <mark@markmitchell.com>
7073         * splay-tree.c: New file.
7074         * Makefile.in (CFILES): Add it.
7075         (REQUIRED_OFILES): Likewise.
7076         (splay-tree.o): Add dependencies.
7078 Tue Oct 20 12:29:02 1998  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
7080         * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
7081         range of 'K' index.
7083 Thu Oct 15 18:51:12 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7085         * choose-temp.c: Prototype mkstemps() when IN_GCC.
7087         * cplus-dem.c (consume_count): Cast argument of ctype macro to
7088         `unsigned char'.
7089         (cplus_demangle_opname): Cast the result of `strlen' to (int) when
7090         comparing against one.
7091         (cplus_mangle_opname): Likewise.
7092         (demangle_integral_value): Cast argument of ctype macro to
7093         `unsigned char'.
7094         (demangle_template_value_parm): Likewise.
7095         (demangle_template): Initialize variable `bindex'.  Cast the
7096         result of `strlen' to (int) when comparing against one.  Remove
7097         unused variable `start_of_value_parm'.
7098         (demangle_class_name): Cast the result of `strlen' to (int) when
7099         comparing against one.
7100         (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
7101         (gnu_special): Likewise.  Cast the result of `strlen' to (int)
7102         when comparing against one.
7103         (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
7104         (get_count): Likewise.
7105         (do_type): Likewise.  Cast the result of `strlen' to (int) when
7106         comparing against one.
7107         (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
7108         (demangle_function_name): Cast the result of `strlen' to (int)
7109         when comparing against one.
7111         * mkstemp.c (mkstemps): Cast variable `len' to (int) when
7112         comparing against one.
7114 Tue Oct 13 23:51:51 1998  Jeffrey A Law  (law@cygnus.com)
7116         * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
7117         * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
7118         * config.in, configure: Rebuilt.
7120         * getopt.c: Check HAVE_STRINGS_H before including strings.h.
7121         * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
7122         * config.in, configure: Rebuilt.
7124 Mon Oct 12 19:15:59 1998  Geoffrey Noer  <noer@cygnus.com>
7126         * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
7128 Sun Oct 11 17:36:06 1998  Michael Tiemann  <tiemann@holodeck.cygnus.com>
7130         * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
7132 Thu Oct  8 23:42:08 1998  Jeffrey A Law  (law@cygnus.com)
7134         * Merge egcs & devo libiberty.
7136 1998-09-08  Martin von Löwis  <loewis@informatik.hu-berlin.de>
7138         * cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces.
7140 Mon Sep  7 23:29:01 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7142         * mkstemp.c: Include config.h even when not IN_GCC.  Wrap header
7143         inclusions inside HAVE_*_H macros.  Include ansidecl.h when not
7144         IN_GCC.
7146         * vasprintf.c: Include stdarg.h/varargs.h first.
7148         * vprintf.c: Likewise.
7150 Sat Sep  5 03:24:49 1998  Jeffrey A Law  (law@cygnus.com)
7152         * pexecute.c: Updates from gcc.  Copy in gcc has been removed.  This
7153         is the canonical copy.  Define ISSPACE if !IN_GCC.
7154         * alloca.c, vfprintf.c, choose-temp.c, mkstemp.c, getopt.c: Similarly.
7155         * getopt1.c, obstack.c: Similarly.
7156         * Makefile.in: Build mkstemp.o
7158 Tue Sep  1 23:12:47 1998  Christopher Faylor <cgf@cygnus.com>
7160         * configure.in: Include asprintf in list of functions known not
7161         to be in newlib.
7162         * configure: Rebuild.
7164 Wed Aug 19 14:05:01 1998  Mumit Khan  <khan@xraylith.wisc.edu>
7166         * cplus-dem.c (work_stuff): Add dllimported.
7167         (demangled_prefix): Mark symbols imported from PE DLL.
7168         (internal_cplus_demangled): Handle.
7170 1998-08-17  Jason Merrill  <jason@yorick.cygnus.com>
7172         * cplus-dem.c (do_type): Fix simple array handling.  If we fail,
7173         stay failed.
7175 Mon Aug 17 10:40:34 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7177         * cplus-dem.c: Include config.h if it exists.  Also, only
7178         prototype malloc/realloc if we can't get stdlib.h.
7180 Sat Aug 15 16:15:01 1998  Ian Lance Taylor  <ian@cygnus.com>
7182         * configure.in: Switch back to checking --with-target-subdir when
7183         deciding whether to check for newlib, undoing part of July 15
7184         change.
7185         * configure: Rebuild.
7187 Thu Aug 13 16:47:38 1998  Mark Mitchell  <mark@markmitchell.com>
7189         * cplus-dem.c (type_kind_t): New type.
7190         (demangle_template_value_parm): Add type_kind_t parameter.  Rely
7191         on this paramter, rather than demangling the type again.
7192         (demangle_integral_value): Pass tk_integral.
7193         (demangle_template_: Pass the value returned from do_type.
7194         (do_type): Return a type_kind_t.  Pass tk_integral to
7195         demangle_template_value_parm for array bounds.
7196         (demangle_fund_type): Likewise.
7198         Also incorporate from GCC version:
7200         Tue Jul 21 13:28:19 1998  Jason Merrill  <jason@yorick.cygnus.com>
7202         * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
7204 Thu Aug 13 16:47:38 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7206         * cplus-dem.c (demangle_nested_args): Make function definition
7207         static to match the prototype.
7209 Tue Jul 28 11:33:09 1998  Mark Mitchell  <mark@markmitchell.com>
7211         * cplus-dem.c (type_kind_t): New type.
7212         (demangle_template_value_parm): Add type_kind_t parameter.  Rely
7213         on this paramter, rather than demangling the type again.
7214         (demangle_integral_value): Pass tk_integral.
7215         (demangle_template_: Pass the value returned from do_type.
7216         (do_type): Return a type_kind_t.  Pass tk_integral to
7217         demangle_template_value_parm for array bounds.
7218         (demangle_fund_type): Likewise.
7220         Also incorporate from GCC version:
7222         Tue Jul 21 13:28:19 1998  Jason Merrill  <jason@yorick.cygnus.com>
7224         * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
7226 Mon Jul 27 12:16:08 1998  Ian Lance Taylor  <ian@cygnus.com>
7228         * Makefile.in (ALLOCA): New variable.
7229         ($(TARGETLIB)): Add $(ALLOCA) to library.
7230         (needed-list): Add $(ALLOCA).
7231         ($(ALLOCA)): Depend upon stamp-picdir.
7233 Sun Jul 19 08:23:17 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7235         * cplus-dem.c (demangle_nested_args): Make function definition
7236         static to match the prototype.
7238 Wed Jul 15 00:12:58 1998  Ian Lance Taylor  <ian@cygnus.com>
7240         * configure.in: Check --with-cross-host rather than
7241         --with-target-subdir when deciding whether build uses a cross
7242         compiler, and when deciding where to install the library.
7243         * configure: Rebuild.
7245 Sun Jul 12 01:27:05 1998  Jason Merrill  <jason@yorick.cygnus.com>
7247         * cplus-dem.c (demangle_nested_args): Return a value.
7249 Sat Jul 11 16:19:48 1998  Mark Mitchell  <mark@markmitchell.com>
7251         * cplus-dem.c (string): Move definition before work_stuff.
7252         (work_stuff): Add volatile_type, forgetting_types,
7253         previous_argument, and nrepeats fields.
7254         (SCOPE_STRING): New macro.
7255         (demangle_template): Add `remember' parameter.  Add comment.
7256         Register the `B' code type here, if remembering.  Tidy.  Fix crash
7257         on NULL tmpl_argvec.  Be consistent with use of tname/trawname.
7258         (demangle_nested_args): New function.
7259         (internal_cplus_demangle): Handle volatile-qualified member
7260         functions.
7261         (mop_up): Delete the previous_argument string if present.
7262         (demangle_signature): Tidy.  Handle volatile-qualified member
7263         functions.  Handle back-references using the `B' code.  Use extra
7264         parameter to demangle_template and SCOPE_STRING where appropriate.
7265         (demangle_template_value_parm): Fix thinko; 'B' is not an integral
7266         code.
7267         (demangle_class): Use SCOPE_STRING.
7268         (gnu_special): Pass additional argument to demangle_template.
7269         Use SCOPE_STRING.
7270         (demangle_qualified): Save qualified types for later
7271         back-references.  Handle constructors and destructors for template
7272         types correctly.
7273         (do_type): Tidy.  Use SCOPE_STRING.  Pass extra argument to
7274         demangle_template.  Use demangled_nested_args.  Don't remember
7275         qualified types here; that's now done in demangle_qualified.
7276         Similarly for templates.
7277         (do_arg): Improve commment.  Handle 'n' repeat code.
7278         (remember_type): Check forgetting_types.
7279         (demangle_args): Deal with 'n' repeat codes.  Tidy.
7281 Thu Jul  2 16:26:24 1998  Ian Lance Taylor  <ian@cygnus.com>
7283         * config.table: Only use mh-fbsd21 on *-*-freebsd2.2.[012], not on
7284         *-*-freebsd2.2.*.  From Dmitrij Tejblum <tejblum@arc.hq.cti.ru>.
7286 Mon Jun 15 16:29:01 1998  Ian Lance Taylor  <ian@cygnus.com>
7288         * configure.in (setobjs): Correct quoting error in cygwin32 case.
7289         From Chris Faylor <cgf@cygnus.com>.
7291 Mon Jun  1 13:47:55 1998  Jason Molenda  (crash@bugshack.cygnus.com)
7293         * obstack.c: Update to latest FSF version.
7295 Mon Jun  1 14:17:36 1998  Mike Stump  <mrs@wrs.com>
7297         * Makefile.in: Add a dependency on stamp-picdir for the
7298         objects, so that we can do a parallel build.
7300 Sat May 30 22:17:13 1998  Mumit Khan  <khan@xraylith.wisc.edu>
7302         * configure.in (checkfuncs): Add missing "'".
7304 Fri May 29 12:40:41 1998  Jason Molenda  (crash@bugshack.cygnus.com)
7306         * obstack.c (_obstack_memory_used):  Elide this function if we're
7307         on a system with GNU libc.
7309 Tue May 26 18:28:43 1998  Ian Lance Taylor  <ian@cygnus.com>
7311         * Makefile.in (distclean): Remove config.log.
7313 Tue May 26 15:01:52 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7315         * Makefile.in (distclean): Don't remove alloca-conf.h.
7317 Fri May 22 01:38:07 1998  Hans-Peter Nilsson  <hp@axis.se>
7319         * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.
7321 1998-05-21  Mark Mitchell  <mmitchell@usa.net>
7323         * cplus-dem.c (do_type): Handle volatile qualification.
7325 1998-05-21  Manfred Hollstein  <manfred@s-direktnet.de>
7327         * configure.in: Check for unistd.h as well.
7328         * configure: Rebuild.
7329         * config.in: Rebuild.
7330         * getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE
7331         is defined in unistd.h. Reformat conditional block for easier reading.
7333         * config.table (shared): Default to no if ${enable_shared}
7334         is unset or empty; this logic is used by the toplevel
7335         configure scripts, too.
7337 Sat May 16 14:01:26 1998  Jeffrey A Law  (law@cygnus.com)
7339         * config.table: Add line to set enable_shared in the Makefile
7340         as needed.
7342 Wed May 13 14:24:38 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7344         * cplus-dem.c (squangle_mop_up): Change return type to void.
7345         (internal_cplus_demangle): Remove unused parameter `options'.
7346         All callers changed.
7347         (cplus_demangle_opname): Remove function wide variable `int i' and
7348         replace with `size_t i' at each location where it is used.
7349         (cplus_mangle_opname): change type of `i' from int to size_t.
7351 Wed May 13 13:39:38 1998  Ian Lance Taylor  <ian@cygnus.com>
7353         * alloca-conf.h: Include config.h.  Check HAVE_ALLOCA_H rather
7354         than sparc or sun.
7355         * Makefile.in (argv.o): Depend upon config.h and alloca-conf.h.
7357 Fri May  8 00:23:51 1998  Ian Lance Taylor  <ian@cygnus.com>
7359         * configure.in: Set libiberty_topdir correctly when srcdir is
7360         "." and with_target_subdir is not set.
7361         * configure: Rebuild.
7363 Thu May  7 13:01:44 1998  Ian Lance Taylor  <ian@cygnus.com>
7365         * configure.in: Add *-*-mingw32* case.
7366         * configure: Rebuild.
7368 Wed May  6 11:33:51 1998  Ian Lance Taylor  <ian@cygnus.com>
7370         * config.table: Never use a PIC file for *-*-cygwin32*.
7372         * Makefile.in (config.status): Depend upon config.table.
7374         * configure.in: On a cygwin32 host, always compile random, and
7375         don't test for sys_siglist, strsignal, or psignal.
7376         * configure: Rebuild.
7378         * clock.c: Check HAVE_SYS_PARAM_H rather than NO_SYS_PARAM_H.
7379         * getcwd.c: Likewise.
7380         * getpagesize.c: Likewise.
7381         * getruntime.c: Likewise.
7383 Tue May  5 18:08:32 1998  Ian Lance Taylor  <ian@cygnus.com>
7385         Use autoconf tests rather than the old dummy.c test:
7386         * configure.in: Add AC_ARG_WITH calls for --with-target-subdir and
7387         --with-newlib.  Add AC_CONFIG_HEADER.  Use AC_REPLACE_FUNCS for
7388         most functions.  Add special cases to handle newlib and VxWorks.
7389         Remove target_makefile_frag.  Create stamp-h in AC_OUTPUT if
7390         CONFIG_HEADERS is set.  Only call config-ml.in in AC_OUTPUT if
7391         CONFIG_FILES is set; set ac_file before calling it.
7392         * config.table (arm-*-riscix*, *-*-cygwin32): Remove.
7393         (*-*-hpux*, *-*-hiux*, *-*-irix4*, *-*-solaris2*): Remove.
7394         (*-*-sysv4*, *-*-go32, *-*-vxworks5*, *-*-vxworks): Remove
7395         (i[3456]-*-mingw32*): Remove.
7396         * Makefile.in (ERRORS_CC, CONFIG_H, NEEDED_LIST): Remove.
7397         (LIBOBJS): New variable.
7398         (HOST_OFILES, DO_ALSO, STAGESTUFF): Remove.
7399         (all): Depend upon needed-list.  Don't check RULE1.
7400         (@target_makefile_frag@): Remove.
7401         (COMPILE.c): Include @DEFS@.
7402         (HFILES): Add alloca-conf.h.
7403         (REQUIRED_OFILES): Remove basename.o.
7404         ($(TARGETLIB)): New target.
7405         (stamp-needed, lneeded-list, needed.awk, stamp-config): Remove.
7406         (lconfig.h, needed2.awk, dummy.o, errors): Remove.
7407         (needed-list, config.h): Rewrite.
7408         (RULE1, $(RULE1), RULE2, $(RULE2)): Remove.
7409         (.always.): Remove.
7410         (Makefile): Set CONFIG_FILES and CONFIG_HEADERS.
7411         (stamp-h): New target.
7412         (atexit.o, clock.o, getcwd.o, getpagesize.o): New targets.
7413         (basename.o): Don't depend upon config.h.
7414         (getruntime.o): Depend upon config.h.
7415         * atexit.c: Include config.h.  Check HAVE_ON_EXIT rather than
7416         NEED_on_exit.
7417         * basename.c: Don't include config.h.  Don't check NEED_basename.
7418         * clock.c: Include config.h.
7419         * getcwd.c: Likewise.
7420         * getpagesize.c: Likewise.
7421         * getruntime.c: Likewise.  Fix checks which set HAVE_GETRUSAGE and
7422         HAVE_TIMES.
7423         * strerror.c: Change uses of NEED_sys_errlist to
7424         HAVE_SYS_ERRLIST.  Likewise for NEED_strerror and HAVE_STRERROR.
7425         * strsignal.c: Likewise for NEED_sys_siglist and HAVE_SYS_SIGLIST,
7426         and for NEED_strsignal and HAVE_STRSIGNAL and for NEED_psignal and
7427         HAVE_PSIGNAL.
7428         * acconfig.h: New file.
7429         * dummy.c: Remove.
7430         * functions.def: Remove.
7431         * config/mh-cxux7 (HDEFINES): Remove -DHAVE_SYSCONF.
7432         * config/mh-windows (HDEFINES): Remove.
7433         * config/mh-cygwin32: Remove.
7434         * config/mh-go32: Remove.
7435         * config/mh-irix4: Remove.
7436         * config/mh-riscix: Remove.
7437         * config/mh-sysv4: Remove.
7438         * config/mt-mingw32: Remove.
7439         * config/mt-vxworks5: Remove.
7440         * config.in: New file, generated using autoheader.
7441         * configure: Rebuild.
7443 Mon May  4 13:00:28 1998  Ian Lance Taylor  <ian@cygnus.com>
7445         * configure.in: Rewrite to use autoconf.
7446         * configure: Generate using autoconf.
7447         * config/mh-a68bsd: Remove.
7448         * config/mh-apollo68: Remove.
7449         * config/mh-hpbsd: Remove.
7450         * config/mh-ncr3000: Remove.
7451         * config/mh-sysv: Remove.
7452         * config/mh-aix (RANLIB, INSTALL): Don't define.
7453         * config/mh-cxux7 (RANLIB, INSTALL): Don't define.
7454         * config/mh-irix4 (CC, RANLIB, INSTALL): Don't define.
7455         * config/mh-sysv4 (RANLIB, INSTALL): Don't define.
7456         * config.table: Change config_shell to CONFIG_SHELL, and use
7457         libiberty_topdir to find move-if-change.
7458         (m68k-apollo-bsd*, m68k-apollo-sysv*): Remove.
7459         (i[3456]86-ncr-sysv4*, *-*-dgux*, hppa*-hp-bsd*): Remove.
7460         (*-*-irix*, *-*-m88kbcs*, *-*-sysv*): Remove.
7461         * Makefile.in (srcdir): Set to @srcdir@.
7462         (VPATH): Likewise.
7463         (prefix, exec_prefix, bindir, libdir): Set to autoconf variables.
7464         (SHELL, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Likewise.
7465         (CC, CFLAGS, RANLIB)): Likewise.
7466         (datadir, man*dir, infodir, includedir, MAKEINFO): Remove.
7467         (target_makefile_frag, host_makefile_frag): Add substitutions.
7468         (INSTALL_DEST): Set to @INSTALL_DEST@.
7469         (Makefile): Depend upon config.status.  Don't depend upon
7470         $(host_makefile_frag) or $(target_makefile_frag).
7471         (config.status): New target.
7473 Sun May  3 17:58:49 1998  Ian Lance Taylor  <ian@cygnus.com>
7475         * config/mt-sunos4: Remove.  Should be handled by --with-headers
7476         and --with-libraries options at top level.
7477         * config.table: Never use mt-sunos4.
7479         * alloca-conf.h: New file, combining alloca-norm.h and
7480         alloca-botch.h.
7481         * alloca-norm.h: Remove.
7482         * alloca-botch.h: Remove.
7483         * configure.in: Set shell variables files and links to empty.
7484         * config.table: Don't set shell variable files.
7485         * configure.bat: Don't create alloca-conf.h.
7486         * makefile.vms: Likewise.
7487         * mpw-config.in: Likewise.
7488         * vmsbuild.com: Likewise.
7490 Fri May  1 11:41:42 1998  Ian Lance Taylor  <ian@cygnus.com>
7492         * Makefile.in ($(HOST_OFILES) $(REQUIRED_OFILES)): Remove old
7493         target depending upon config.h.
7494         (alloca.o): Add target depending upon config.h
7495         (basename.o, choose-temp.o, fnmatch.o): Likewise.
7496         (getopt.o, getopt1.o, pexecute.o, strerror.o): Likewise.
7497         (strsignal.o, xstrerror.o): Likewise.
7499 Fri May  1 04:26:25 1998  Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7501         * cplus-dem.c (cplus_demangle_opname):  Initialize work.
7503 Mon Apr 27 15:53:30 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
7505         * cplus-dem.c (demangle_qualified): Replace missing else.
7507 Sun Apr 26 15:38:50 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7509         * cplus-dem.c (gnu_special): Fix off-by-one bug when checking the
7510         length in the name of a virtual table.
7512 Wed Apr 22 10:53:49 EDT 1998 Andrew MacLeod  <amacleod@cygnus.com>
7514         * cplus-dem.c (struct work stuff): Add field for B and K mangle codes.
7515         (cplus_demangle_opname): Call mop_up_squangle.
7516         (cplus_demangle): Initialize squangle info, then call
7517         internal_cplus_demangle. (Most code moved there as well)
7518         (internal_cplus_demangle): New function, performs most of what use
7519         to be done in cplus_demangle, but is only called with this file.
7520         (squangle_mop_up): New function to clean up B and K code data.
7521         (mop_up): set pointers to NULL after freeing.
7522         (demangle_signature, demangle_template, demangle_class): Add
7523         switch elements to handle K and B codes.
7524         (demangle_prefix, gnu_special, demangle_qualified): Add
7525         code to handle K and B codes.
7526         (do_type, demangle_fund_type): Handle B and K codes.
7527         (remember_Ktype): New function to store K info.
7528         (register_Btype, remember_Btype): New functions for B codes.
7529         (forget_B_and_K_types): New function to destroy B and K info.
7531 Fri Apr 10 01:49:10 1998  Jeffrey A Law  (law@cygnus.com)
7533         * COPYING.LIB, choose-temp.c, cplus-dem.c: Sync with egcs & gcc.
7535 Thu Mar  5 09:23:28 1998  Manfred Hollstein  <manfred@s-direktnet.de>
7537         * config.table: Make locating frag files failsafe even for the
7538         special case if configuring and building in srcdir.
7540 Mon Feb 23 14:33:15 1998  Ian Lance Taylor  <ian@cygnus.com>
7542         * choose-temp.c: Fix handling of sys/file.h to work in libiberty.
7544 Sun Feb 22 18:03:23 1998  Jeffrey A Law  (law@cygnus.com)
7546         * choose-temp.c: Sync with copy in gcc.
7548 Thu Feb 12 16:29:49 1998  Ian Lance Taylor  <ian@cygnus.com>
7550         * getopt.c: Update to latest FSF version.
7551         * getopt1.c: Likewise.
7553 Tue Feb 10 16:58:33 1998  Stan Shebs  <shebs@andros.cygnus.com>
7555         * cplus-dem.c (gnu_special): Don't get confused by .<digits>
7556         strings that are not actually lengths.
7558 Fri Feb  6 01:35:17 1998  Manfred Hollstein  <manfred@s-direktnet.de>
7560         * Makefile.in (FLAGS_TO_PASS): Don't pass PICFLAG.
7561         (.c.o): Check value of enable_shared, not PICFLAG.
7562         (stamp-picdir): Dito.
7564 Thu Feb  5 18:48:56 1998  Geoffrey Noer  <noer@cygnus.com>
7566         * config/mh-cygwin32: remove vasprintf.o from EXTRA_OFILES
7567         since it gets built automatically
7569 Sun Feb  1 02:52:32 1998  Mike Stump  <mrs@wrs.com>
7571         * config.table (vxworks configs): Default to VxWorks 5.x, as that is
7572         the currently shipping OS.
7574 Tue Jan 27 16:08:20 1998  Pat Rankin  <rankin@eql.caltech.edu>
7576         * vmsbuild.com [REQUIRE_OFILES]: Synchronized with Makefile.in:
7577         Add fnmatch.o and objalloc.o; remove vasprintf.o.
7578         [config.h]: Define NEED_strsignal.
7580 Mon Jan 19 12:20:01 1998  Ian Lance Taylor  <ian@cygnus.com>
7582         * functions.def: Correct argument types for strerror and
7583         strsignal.  Reported by Alex Gutman <agutman@emc.com>.
7585 Sun Jan 18 15:57:28 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
7587         * vasprintf.c (int_vasprintf): Increase buffer size for float/double
7588         values.
7590 Sat Jan 17 22:28:38 1998  Mumit Khan  <khan@xraylith.wisc.edu>
7591                           J.J. VanderHeijden <J.J.vanderHeijden@student.utwente.nl>
7593         Add mingw32 support.
7594         * pexecute.c (pexecute): New function for mingw32. Supports pipes.
7595         (pwait): New function for mingw32.
7597         * config.table (i[3456]86-*-mingw32*): Support for i386-mingw32.
7598         * config/mt-mingw32: New file.
7599         * xmalloc.c (first_break): Not used for mingw32.
7600         (xmalloc_set_program_name): Don't use sbrk on mingw32.
7601         (xmalloc): Likewise.
7602         (xrealloc): Likewise.
7604 Sat Jan 17 22:28:05 1998  Jeffrey A Law  (law@cygnus.com)
7606         * choose-temp.c: Sync with gcc version.
7608 Tue Jan 13 18:34:39 1998  Jim Wilson  <wilson@cygnus.com>
7610         * Makefile.in (install_to_libdir, install_to_tooldir): Add MULTISUBDIR
7611         to all filenames in libdir and tooldir.
7612         (distclean): Do MULTICLEAN before deleting Makefile.
7613         (stamp-needed, stamp-config): Add MULTISRCTOP to
7614         pathname for move-if-change.
7616 Thu Dec  4 17:25:19 1997  Jeffrey A Law  (law@cygnus.com)
7618         * strsignal.c (sys_nsig): Try NSIG and _NSIG.
7620 Wed Nov 19 13:37:06 1997  Michael Meissner  <meissner@cygnus.com>
7622         * alloca-norm.h (alloca, GCC case): Don't redefine alloca if it
7623         was already defined previously.
7625 Mon Nov 10 12:48:03 1997  Philippe De Muyter  <phdm@macqel.be>
7627         * Makefile.in (INSTALL): Use ../install-sh, not install.
7629 Tue Oct 28 23:41:15 1997  Judy Goldberg  <jodyg@idt.net>
7631         * Makefile.in (CFILES): Add pexecute.c.
7633 Wed Oct 15 19:13:48 1997  Ian Lance Taylor  <ian@cygnus.com>
7635         * asprintf.c: Consistently use either stdarg or varargs.
7637 Tue Oct 14 12:01:00 1997  Mark Mitchell  <mmitchell@usa.net>
7639         * cplus-dem.c (demangle_signature): Don't look for return types on
7640         constructors.  Handle member template constructors.
7642 Fri Oct  3 17:53:30 1997  Ian Lance Taylor  <ian@cygnus.com>
7644         * README: Fix configuration instructions.
7646 Mon Sep 29 12:28:41 1997  Ian Lance Taylor  <ian@cygnus.com>
7648         * pexecute.c: Update to current version from /gd/gnu/lib:
7650         Mon Sep 29 12:27:59 1997  Ian Lance Taylor  <ian@cygnus.com>
7652         * pexecute.c: Use spawn if __CYGWIN32__.
7654         1997-08-08  Paul Eggert  <eggert@twinsun.com>
7656         * pexecute.c: Include "config.h" first, as per autoconf manual.
7658         Fri Jun 27 15:20:29 1997  Scott Christley <scottc@net-community.com>
7660         * pexecute.c (fix_argv): New function.
7661         (pexecute): Win32 but not Cygwin32 needs its arguments fixed.
7662         Add underscore to cwait function call.
7664 Sun Sep 28 12:00:52 1997  Mark Mitchell  <mmitchell@usa.net>
7666         * cplus-dem.c (demangle_template): Add new parameter.  Handle new
7667         template-function mangling.
7668         (consume_count_with_underscores): New function.
7669         (demangle_signature): Handle new name-mangling scheme.
7671 Wed Sep 24 00:31:59 1997  Felix Lee  <flee@yin.cygnus.com>
7673         * asprintf.c: stdarg.h when ALMOST_STDC
7674         * config/mh-windows (EXTRA_OFILES): add asprintf.o and
7675         strncasecmp.o.
7677 Thu Aug 28 14:27:15 1997  Andrew Cagney  <cagney@b1.cygnus.com>
7679         * vasprintf.c (vasprintf): Allow for _BSD_VA_LIST_.
7681         * config.table: Add case for FreeBSD 2.1 and 2.2, needs mh-fbsd21.
7683         * config/mh-fbsd21 (EXTRA_OFILES): Force vasprintf.o
7685 Wed Sep 10 12:43:10 1997  Jason Merrill  <jason@yorick.cygnus.com>
7687         * cplus-dem.c (demangle_fund_type): Change "complex" to "__complex".
7689 Fri Sep  5 16:34:42 1997  Andrew Cagney  <cagney@b1.cygnus.com>
7691         * asprintf.c (asprintf): New file.
7692         * Makefile.in (CFILES): Add asprintf.c
7693         * functions.def: Ditto.
7695 Thu Aug 28 18:53:34 1997  Andrew Cagney  <cagney@b1.cygnus.com>
7697         * argv.c (dupargv): New function, duplicate an argument vector.
7699 Tue Aug 19 20:28:45 1997  Geoffrey Noer  <noer@cygnus.com>
7701         * config/mh-cygwin32: also build random.o
7703 Tue Aug 19 17:10:56 1997  Jason Merrill  <jason@yorick.cygnus.com>
7705         * cplus-dem.c: Add 'extern' to prepends_underscore.
7707 Wed Jul 30 11:42:19 1997  Per Bothner  <bothner@cygnus.com>
7709         * cplus-dem.c: Various changes to produce Java output when passed
7710         DMGL_JAVA.  Thus "::" becomes "." and "JArray<Foo>" becomes "Foo[]".
7711         (main): Support --java and -j flags to set DMGL_JAVA.
7713 Tue Jul 22 19:05:23 1997  Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
7715         * config/mh-go32 (CC, AR, RANLIB): Don't define.
7717 Tue Jul 22 17:49:54 1997  Ian Lance Taylor  <ian@cygnus.com>
7719         * Makefile.in (REQUIRED_OFILES): Add pexecute.o.
7720         (pexecute.o): New target.
7722         * Makefile.in (stamp-needed): New target, replacing needed-list.
7723         (needed-list): Just depend upon stamp-needed.
7724         (stamp-config): New target, replacing config.h.
7725         (config.h): Just depend upon stamp-config.
7726         (mostlyclean): Remove stamp-*.
7728 Thu Jun 12 11:00:18 1997  Angela Marie Thomas (angela@cygnus.com)
7730         * Makefile.in (FLAGS_TO_PASS): pass INSTALL, INSTALL_PROGRAM and
7731         INSTALL_DATA for multilibbed installs
7733 Tue Jun  3 13:21:05 1997  Doug Evans  <dje@canuck.cygnus.com>
7735         Tue Dec 10 09:44:57 1996  Paul Eggert  <eggert@twinsun.com>
7737         * choose-temp.c (choose_temp_base): Don't dump core if TMPDIR is empty.
7739         * choose-temp.c (try): Insist that temp dir be searchable.
7741         Wed Oct 23 17:36:39 1996  Doug Rupp  (rupp@gnat.com)
7743         * choose-temp.c (choose_temp_base): On VMS, use proper syntax
7744         for current directory.
7746         Sat Feb 15 19:03:48 1997  Geoffrey Noer  (noer@cygnus.com)
7748         * pexecute.c: Remove special cases for cygwin32.
7749         (pwait): Remove local definition of `pid'.
7751         Tue Nov 12 18:26:15 1996  Doug Rupp  (rupp@gnat.com)
7753         * pexecute.c (vfork): Supply new definition for VMS.
7754         (pwait): Use waitpid instead of wait for VMS.
7756 Tue May 20 14:02:20 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
7758         * cplus-dem.c (do_type): Handle `J'.
7759         (demangle_fund_type): Print "complex" for it.
7761 Wed Apr 30 12:15:45 1997  Jason Merrill  <jason@yorick.cygnus.com>
7763         * configure.in: Don't turn on multilib here.
7765 Mon Apr 28 19:04:31 1997  Michael Snyder  <msnyder@cleaver.cygnus.com>
7767         * obstack.c: move _obstack_memory_used outside of ifdef.  Cannot be
7768         elided; needed by gdb and not present in libc.
7770 Thu Apr 24 19:33:47 1997  Ian Lance Taylor  <ian@cygnus.com>
7772         * Makefile.in (clean): Remove tmpmulti.out.
7774 Tue Apr 22 10:25:15 1997  Fred Fish  <fnf@cygnus.com>
7776         * floatformat.c (floatformat_ieee_double_littlebyte_bigword):
7777         Add new floatformat, mainly for ARM doubles.
7779 Mon Apr 14 12:11:16 1997  Ian Lance Taylor  <ian@cygnus.com>
7781         * config.table: Use ${config_shell} with ${moveifchange}.  From
7782         Thomas Graichen <graichen@rzpd.de>.
7784 Fri Apr  4 03:09:24 1997  Ulrich Drepper  <drepper@cygnus.com>
7786         * configure.in: Enable multilibing by default.
7787         Update multilib template to read config-ml.in.
7789 Tue Apr  1 16:26:39 1997  Klaus Kaempf  <kkaempf@progis.de>
7791         * makefile.vms: Add objalloc.
7793 Mon Mar 31 23:57:51 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>
7795         * cplus-dem.c (demangle_it): Add prototype declaration.
7796         (usage, fatal): Likewise.
7798         * xexit.c (_xexit_cleanup): Add prototype.
7800         * strerror.c (init_error_tables): Declare.
7802 Fri Mar 28 11:43:20 1997  H.J. Lu  <hjl@lucon.org>
7804         * functions.def: Add DEF of vasprintf, and DEFFUNC of strsignal.
7805         * strsignal.c: Only define strsignal if NEED_strsignal.
7806         * Makefile.in (REQUIRED_OFILES): Remove vasprintf.o.
7807         * configure.in: Add NEED_strsignal to xconfig.h.  Add vasprintf.o
7808         to xneeded-list.
7809         * config/mh-cygwin32 (HDEFINES): Add -DNEED_strsignal.
7810         (EXTRA_OFILES): Define to vasprintf.o.
7811         * config/mh-windows (HDEFINES): Add -DNEED_strsignal.
7812         (EXTRA_OFILES): Add vasprintf.o.
7813         * config/mt-vxworks5 (vxconfig.h): Define NEED_strsignal.
7814         (vxneeded-list): Add vasprintf.o.
7816 Thu Mar 20 17:02:09 1997  Ian Lance Taylor  <ian@cygnus.com>
7818         * objalloc.c: Include <stdio.h>.
7820 Mon Mar 17 19:23:11 1997  Ian Lance Taylor  <ian@cygnus.com>
7822         * objalloc.c: New file.
7823         * Makefile.in (CFILES): Add objalloc.c
7824         (REQUIRED_OFILES): Add objalloc.o.
7825         (objalloc.o): New target.
7827 Sat Mar 15 18:49:41 1997  Ian Lance Taylor  <ian@cygnus.com>
7829         * obstack.c: Update to current FSF version.
7831 Fri Mar 14 14:18:47 1997  Ian Lance Taylor  <ian@cygnus.com>
7833         * cplus-dem.c: Add prototypes for all static functions.
7834         (mystrstr): Make static.  Make arguments and result const.
7835         (cplus_match): Remove; not used.
7837 Tue Mar 11 14:20:31 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
7839         * cplus-dem.c (gnu_special): Call demangled_fund_type for other
7840         __t* symbols.
7842 Tue Mar 11 15:41:21 1997  H.J. Lu  <hjl@lucon.org>
7844         * spaces.c: Declare malloc and free properly.
7845         * strsignal.c (init_signal_tables): Add prototype.
7846         * xatexit.c (_xexit_cleanup): Add parameter declarations.
7848 Wed Feb 19 15:43:24 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
7850         * Makefile.in (lneeded-list): If alloca.o is needed, xexit.o is
7851         also required because of xmalloc.o.
7853 Fri Feb 14 13:43:38 1997  Ian Lance Taylor  <ian@cygnus.com>
7855         * strsignal.c: Unconditionally redefine sys_siglist around the
7856         inclusion of the system header files.
7858 Thu Feb 13 22:01:04 1997  Klaus Kaempf  <kkaempf@progis.de>
7860         * makefile.vms: Remove 8 bit characters.  Update to latest
7861         gcc release.
7863 Tue Feb  4 11:52:19 1997  Ian Lance Taylor  <ian@cygnus.com>
7865         * strsignal.c: Use NEED_sys_siglist instead of
7866         LOSING_SYS_SIGLIST.
7867         * config.table: Don't use mh-lynxos.
7868         * config/mh-lynxos: Remove.
7870 Thu Jan 16 14:51:03 1997  Bob Manson  <manson@charmed.cygnus.com>
7872         * cplus-dem.c: Fix indenting; make identical to the copy
7873         in GCC.
7874         (do_type, case 'M'): Check for a template as well as a class.
7876 Thu Dec 19 13:51:33 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
7878         * config/mt-vxworks5 (vxneeded-list): Remove sigsetmask.o, since
7879         vxworks 5.[0-3] all have sigsetmask in them; the one provided by
7880         libiberty is incorrect, as well.
7882 Mon Dec  2 15:03:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
7884         * alloca.c (alloca): When compiled with an ANSI/ISO compiler,
7885         alloca takes a size_t argument, not just unsigned.
7887 Mon Nov 18 15:42:08 1996  Jason Merrill  <jason@yorick.cygnus.com>
7889         * cplus-dem.c: Note that this file also lives in GCC.
7891 Mon Nov 18 15:19:00 1996  Dawn Perchik  <dawn@critters.cygnus.com>
7893         * alloca.c: Remove include of libiberty.h for hpux.
7894         * argv.c:  Replace defs from libiberty.h.
7895         * spaces.c: Put back externs from removed from libiberty.h.
7896         * vasprintf.c: Remove include of libiberty.h for hpux.
7898 Mon Nov 18 14:08:00 1996  Dawn Perchik  <dawn@critters.cygnus.com>
7900         * cplus-dem.c: Checking in again; last checkin filed due to sticky tag.
7902 Wed Nov 13 08:22:00 1996  Dawn Perchik  <dawn@critters.cygnus.com>
7904         * cplus-dem.c: Revert last two commits due to conflicts with
7905         hpux system headers.
7907 Wed Nov 13 08:22:00 1996  Dawn Perchik  <dawn@critters.cygnus.com>
7909         * alloca.c, argv.c, spaces.c, strcasecmp.c, vasprintf.c, vprintf.c:
7910         Revert last commit due to conflicts with hpux system headers.
7912 Wed Nov 13 10:36:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
7914         * cplus-dem.c (x{m,re}alloc): Make declarations compatibile with
7915         libiberty.h when compiled with a standard compiler.
7917 Tue Nov 12 16:31:00 1996  Dawn Perchik  <dawn@critters.cygnus.com>
7919         * alloca.c: Include libiberty.h for definition of xmalloc.
7920         Don't redefine NULL.
7921         * argv.c: Move prototypes to libiberty.h.
7922         * cplus-dem.c: Include libiberty.h for definition of xmalloc.
7923         Don't redefine NULL.
7924         Use casts to eliminate compiler warnings.
7925         * spaces.c: Remove prototypes for malloc and free which are
7926         already in libibrty.h.
7927         * strcasecmp.c: Use casts to eliminate compiler warnings.
7928         * vasprintf.c: Include libiberty.h for definition of malloc.
7929         Don't redefine NULL.
7930         * vprintf.c: Include stdarg.h if __STDC__.
7932 Fri Oct 11 15:42:12 1996  Stu Grossman  (grossman@critters.cygnus.com)
7934         * config/mh-windows:  Add strcasecmp.o to EXTRA_OFILES.
7936 Fri Oct 11 11:16:31 1996  Stan Shebs  <shebs@andros.cygnus.com>
7938         * mpw.c (mpwify_filename): Rewrite to simplify, and to handle
7939         upward components correctly.
7941 Tue Oct  8 08:55:34 1996  Stu Grossman  (grossman@critters.cygnus.com)
7943         * config.table, config/mh-windows:  Add support for building under
7944         MSVC (the Microsoft build environment).
7946 Mon Oct  7 10:50:27 1996  Ian Lance Taylor  <ian@cygnus.com>
7948         * fnmatch.c: Undef const if not __STDC__.
7950 Thu Oct  3 13:46:39 1996  Ian Lance Taylor  <ian@cygnus.com>
7952         * fnmatch.c: New file.
7953         * Makefile.in (CFILES): Add fnmatch.c.
7954         (REQUIRED_OFILES): Add fnmatch.o.
7955         (fnmatch.o): New target.
7957 Wed Sep 18 14:49:13 1996  Jason Merrill  <jason@yorick.cygnus.com>
7959         * cplus-dem.c (demangle_template): Fix handling of address args.
7960         (gnu_special): Handle type_info stuff.
7962 Fri Sep 13 17:52:55 1996  Stan Shebs  <shebs@andros.cygnus.com>
7964         * mpw.c (DebugPI): Make settable from the env var DEBUG_PATHNAMES.
7965         (mpwify_filename): Handle "::/" case.
7967 Thu Sep 12 13:30:40 1996  Geoffrey Noer  <noer@cygnus.com>
7969         * config/mh-cygwin32: new file (need -DNEED_basename and
7970                 -DNEED_sys_siglist for native NT rebuilding)
7971         * config.table (*-*-cygwin32): new entry
7972         * choose-temp.c: bring in sync with gcc (revert Aug 17 change)
7974 Thu Aug 29 16:48:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
7976         * config.table (i[345]86-*-*): Recognize i686 for pentium pro.
7978 Tue Aug 27 13:47:58 1996  Stan Shebs  <shebs@andros.cygnus.com>
7980         * pexecute.c (pexecute) [MPW]: Remove old bogus code that
7981         messed with arguments that included a '/', add escape chars
7982         to double quotes, remove const decl from arg that Mac
7983         compilers don't seem to like.
7985 Sat Aug 17 04:44:27 1996  Geoffrey Noer  <noer@cygnus.com>
7987         * pexecute.c: Update test for win32 (&& ! cygwin32).
7988         * choose-temp.c: fix WIN32 preprocessor defines
7990 Thu Aug 15 12:26:48 1996  Stan Shebs  <shebs@andros.cygnus.com>
7992         * mpw-make.sed: Add @DASH_C_FLAG@ and @SEGMENT_FLAG({Default})@
7993         to editing of default makefile rule.
7995 Sun Aug 11 21:03:27 1996  Stu Grossman  (grossman@critters.cygnus.com)
7997         * alloca-norm.h:  Include <malloc.h> if _WIN32.
7998         * argv.c:  Include non-prototyped decls for malloc and string
7999         functions if ! _WIN32 or if __GNUC__.
8001 Thu Aug  8 12:42:40 1996  Klaus Kaempf  <kkaempf@progis.de>
8003         * config.h-vms: New file.
8004         * makefile.vms: Use it.
8006 Wed Aug  7 17:16:12 1996  Stu Grossman  (grossman@critters.cygnus.com)
8008         * getopt.c (_getopt_internal):  If argc is 0, just return (before
8009         we reference *argv and segfault).
8011 Mon Aug  5 01:29:08 1996  Jason Merrill  <jason@yorick.cygnus.com>
8013         * Makefile.in (distclean): Add multilib.out.
8015 Thu Jul 18 17:40:55 1996  Ian Lance Taylor  <ian@cygnus.com>
8017         * alloca-norm.h: Change #ifdef sparc to #if defined (sparc) &&
8018         defined (sun).  From Andrew Gierth <ANDREWG@microlise.co.uk>.
8020 Mon Jul  1 13:40:44 1996  Ken Raeburn  <raeburn@cygnus.com>
8022         Tue May 28 15:29:03 1996  Pat Rankin  <rankin@eql.caltech.edu>
8024         * vmsbuild.com (REQUIRD_OFILES): Add choose-temp.o and xstrdup.o.
8026         Thu Jan 25 18:20:04 1996  Pat Rankin  <rankin@eql.caltech.edu>
8028         * vmsbuild.com: Changes to handle DEFFUNC(on_exit).
8029         (do_ofiles): Allow nonexistent source file in pass 3.
8030         (chk_deffunc): New routine.
8032 Tue Jun 25 19:24:43 1996  Doug Evans  <dje@canuck.cygnus.com>
8034         * pexecute.c (PEXECUTE_VERBOSE): Define.
8035         (MPW pexecute): Check flags & PEXECUTE_VERBOSE instead of verbose_flag.
8037 Tue Jun 25 23:11:48 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
8039         * Makefile.in (docdir): Removed.
8041 Tue Jun 25 23:01:07 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
8043         * Makefile.in (oldincludedir): Removed.
8045 Tue Jun 25 22:50:07 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
8047         * Makefile.in (datadir): Set to $(prefix)/share.
8049 Thu Jun 20 21:17:52 1996  Ian Lance Taylor  <ian@cygnus.com>
8051         * cplus-dem.c (demangle_arm_pt): Reindent.  Avoid endless loop by
8052         checking for errors from do_type.
8054 Tue Jun 18 14:36:19 1996  Klaus Kaempf  <kkaempf@progis.de>
8056         * makefile.vms: New file.
8057         * xmalloc.c: If VMS, include <stdlib.h> and <unixlib.h> rather
8058         than declaring malloc, realloc, and sbrk.
8060 Mon Jun 10 13:17:17 1996  Doug Evans  <dje@canuck.cygnus.com>
8062         * pexecute.c: New file.
8064 Wed Jun  5 16:57:45 1996  Richard Henderson  <rth@tamu.edu>
8066         * xmalloc.c: Declare sbrk.
8068 Sat May  4 05:08:45 1996  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
8070         * alloca-norm.h:  Add SPARCworks cc compatible __builtin_alloca
8071         declaration.
8073 Mon Apr 22 18:41:49 1996  Ian Lance Taylor  <ian@cygnus.com>
8075         * xstrerror.c: Include <stdio.h>.
8077 Sun Apr 21 11:55:12 1996  Doug Evans  <dje@canuck.cygnus.com>
8079         * Makefile.in (CFILES): Add atexit.c.
8081 Sun Apr 21 09:50:09 1996  Stephen L Moshier  (moshier@world.std.com)
8083         * choose-temp.c: Include sys/types.h before sys/file.h for sco3.2v5.
8085 Wed Apr 17 11:17:55 1996  Doug Evans  <dje@canuck.cygnus.com>
8087         * choose-temp.c: Don't #include sys/file.h ifdef NO_SYS_FILE_H.
8088         #include <stdio.h>
8089         * config/mt-vxworks5 (HDEFINES): Define NO_SYS_FILE_H.
8091 Tue Apr 16 11:27:16 1996  Jeffrey A Law  (law@cygnus.com)
8093         * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
8094         Reverts Feb 8, 1995 change.
8096 Mon Apr 15 12:53:26 1996  Doug Evans  <dje@canuck.cygnus.com>
8098         * choose-temp.c: New file.
8099         * Makefile.in (CFILES): Add choose-temp.c.
8100         (REQUIRED_OFILES): Add choose-temp.o.
8102 Sat Apr 13 14:19:30 1996  Stu Grossman  (grossman@critters.cygnus.com)
8104         * floatformat.c (floatformat_to_double):  Don't bias exponent when
8105         handling zero's, denorms or NaNs.
8107 Thu Apr 11 13:36:56 1996  Stu Grossman  (grossman@critters.cygnus.com)
8109         * floatformat.c (floatformat_to_double):  Fix bugs with handling
8110         numbers with fractions < 32 bits.
8112 Mon Apr  8 14:48:34 1996  Ian Lance Taylor  <ian@cygnus.com>
8114         * config.table: Permit --enable-shared to specify a list of
8115         directories.
8117 Tue Mar 19 22:02:07 1996  Jason Merrill  <jason@yorick.cygnus.com>
8119         * cplus-dem.c (demangle_template): Fix for non-mangled pointer
8120         arguments.
8122 Fri Mar  8 17:24:18 1996  Ian Lance Taylor  <ian@cygnus.com>
8124         * configure.in: If srcdir is `.' and with_target_subdir is not
8125         `.', then set MULTISRCTOP before calling config-ml.in.
8127 Thu Mar  7 13:37:10 1996  Stan Shebs  <shebs@andros.cygnus.com>
8129         * mpw.c (mpw_open): Add debugging output option.
8131 Wed Mar  6 17:36:03 1996  Jason Merrill  <jason@yorick.cygnus.com>
8133         * cplus-dem.c (demangle_template): Fix for address-of-extern arguments.
8135 Tue Feb 27 12:00:50 1996  Raymond Jou  <rjou@mexican.cygnus.com>
8137         * mpw.c (mpwify_filename): Change 6 to 5 in
8138         strncmp (unixname, "/tmp/", 5).
8140 Tue Feb 20 10:55:53 1996  Ian Lance Taylor  <ian@cygnus.com>
8142         * cplus-dem.c (demangle_template): Initialize is_bool.  Correctly
8143         handle 0 as a pointer value parameter.
8145 Mon Feb  5 16:41:44 1996  Ian Lance Taylor  <ian@cygnus.com>
8147         * Makefile.in (all): Depend upon required-list.
8148         (required-list): New target.
8149         (clean): Remove required-list.
8151 Wed Jan 31 10:19:41 1996  Steve Chamberlain  <sac@slash.cygnus.com>
8153         * win32.c: Deleted.
8154         * config.table (i386-*-win32): Deleted.
8155         * config/mh-i386win32: Deleted.
8157 Thu Jan 18 11:34:17 1996  Ian Lance Taylor  <ian@cygnus.com>
8159         * cplus-dem.c (cplus_demangle_opname): Change opname parameter to
8160         const char *.
8161         (cplus_mangle_opname): Change return type and opname parameter to
8162         const char *.  Don't cast return value.
8164 Tue Jan 16 12:13:11 1996  Stan Shebs  <shebs@andros.cygnus.com>
8166         * mpw.c: Include Timer.h, in order to get m68k Microseconds trap
8167         definition.
8169 Wed Jan  3 13:15:04 1996  Fred Fish  <fnf@cygnus.com>
8171         * obstack.c: Update copyright to 1996.
8172         (_obstack_memory_used): Define new function.  Called via
8173         obstack_memory_used macro.
8175 Thu Dec 28 11:39:40 1995  Ian Lance Taylor  <ian@cygnus.com>
8177         * xstrdup.c: New file.
8178         * Makefile.in (CFILES): Add xstrdup.c.
8179         (REQUIRED_OFILES): Add xstrdup.o.
8180         (xstrdup.o): New target.
8182 Mon Dec 11 18:18:52 1995  Mike Stump  <mrs@cygnus.com>
8184         * atexit.c: New stub to provide atexit on systems that have
8185         on_exit, like SunOS 4.1.x systems.
8186         * functions.def (on_exit, atexit): Ditto.
8188 Mon Dec 11 15:42:14 1995  Stan Shebs  <shebs@andros.cygnus.com>
8190         * mpw.c (mpw_abort): Remove decl.
8191         (mpw_access): Move debugging printf.
8193 Sat Dec  2 01:25:23 1995  Ian Lance Taylor  <ian@cygnus.com>
8195         * config.table: Consistently use ${host} rather than ${xhost} or
8196         ${target}.
8197         * configure.in: Don't bother to set ${xhost} before calling
8198         config.table.
8200 Tue Nov 28 14:16:57 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
8202         * Makefile.in (.c.o): Use test instead of the left bracket, to
8203         avoid problems with some versions of make.
8205 Tue Nov 28 11:45:17 1995  Stan Shebs  <shebs@andros.cygnus.com>
8207         * mpw-make.sed: Fix INCDIR edit to work with Nov 14 change.
8209 Tue Nov 21 11:26:34 1995  Fred Fish  <fnf@rtl.cygnus.com>
8211         * config/mh-hpux: Remove.  It was only used to define EXTRA_OFILES,
8212         which was set to just alloca.o, which is now automatically marked
8213         as needed by the autoconfiguration process.
8215 Tue Nov 21 14:15:06 1995  Ian Lance Taylor  <ian@cygnus.com>
8217         * config.table: Check ${with_cross_host} rather than comparing
8218         ${host} and ${target}.
8220 Thu Nov 16 14:34:42 1995  Ian Lance Taylor  <ian@cygnus.com>
8222         * configure.in: If with_target_subdir is empty, set xhost to
8223         ${host} rather than ${target} before calling config.table.
8225 Tue Nov 14 01:38:30 1995  Doug Evans  <dje@canuck.cygnus.com>
8227         * Makefile.in (MULTITOP): Deleted.
8228         (MULTISRCTOP, MULTIBUILDTOP): New.
8229         (FLAGS_TO_PASS): Delete INCDIR.
8230         (INCDIR): Add $(MULTISRCTOP).
8231         (install_to_libdir): Add $(MULTISUBDIR).  Call $(MULTIDO).
8232         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
8233         instead of cfg-ml-pos.in.
8234         (cross-compile check): Change to test for with_target_subdir.
8235         (EXTRA_LINKS): Delete.
8237 Sun Nov 12 12:13:04 1995  Stan Shebs  <shebs@andros.cygnus.com>
8239         * mpw-make.sed: Add getpagesize.c.o to needed-list.
8240         * mpw.c [USE_MW_HEADERS]: Conditionalize compiling of
8241         functions that are supplied by Metrowerks libraries.
8242         (fstat): Clean up descriptor->pointer conversion code.
8243         (InstallConsole, etc): Empty definitions, for when linking
8244         with SIOUX.
8246 Sun Nov  5 19:25:27 1995  Per Bothner  <bothner@kalessin.cygnus.com>
8248         * Makefile.in (FLAGS_TO_PASS):  Also pass PICFLAGS.
8249         (.c.o):  Stylistic change.
8251 Thu Nov  2 12:06:29 1995  Ian Lance Taylor  <ian@cygnus.com>
8253         * strtol.c, strtoul.c: Don't include <stdlib.h>.  From
8254         phdm@info.ucl.ac.be (Philippe De Muyter).
8256 Wed Nov  1 11:59:36 1995  Ian Lance Taylor  <ian@cygnus.com>
8258         * configure.in: Correct sed call.
8260 Mon Oct 30 13:03:45 1995  Per Bothner  <bothner@kalessin.cygnus.com>
8262         * configure.in:  Clean up / simplify for native.
8264         * configure.in:  Merge in stuff from ../xiberty/configure.in.
8265         * Makefile.in (CC):  Add definition (so it can be overrridden
8266         by ../configure).
8268 Tue Oct 24 17:57:27 1995  Stan Shebs  <shebs@andros.cygnus.com>
8270         * mpw-make.sed: Leave strerror.c.o in standard list of functions.
8271         * mpw.c (R_OK, ENOENT, EACCESS, ENOSYS): Remove.
8272         (link): Remove useless definition with error return.
8273         (last_microseconds, warn_if_spin_delay, record_for_spin_delay):
8274         Use UnsignedWide type for microsecond counts.
8276 Thu Oct 19 10:52:07 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
8278         * memcmp.c (memcmp): Argument types are const void *, not void
8279         *const.
8281         * strncasecmp.c (strncasecmp): Include ansidecl.h/stdarg.h, not
8282         sys/types.h.
8283         * strcasecmp.c (strcasecmp): Ditto.
8285 Tue Oct 10 11:03:24 1995  Fred Fish  <fnf@cygnus.com>
8287         * Makefile.in (BISON):  Remove macro.
8289 Tue Sep 26 15:06:46 1995  Stan Shebs  <shebs@andros.cygnus.com>
8291         * Makefile.in (HFILES): Add default empty definition.
8292         * mpw-config.in (config.h): Only update if changed.
8293         * mpw-make.in: Remove.
8294         * mpw-make.sed: New file, edits Makefile.in into MPW makefile.
8295         * mpw.c: Remove semi-clone of strerror code.
8296         (sys_nerr, sys_errlist): Define here.
8297         (Microseconds): Only define as A-line trap if m68k Mac.
8299 Wed Sep 20 12:53:32 1995  Ian Lance Taylor  <ian@cygnus.com>
8301         * Makefile.in (maintainer-clean): New synonym for distclean.
8303 Mon Aug 28 19:47:52 1995  Per Bothner  <bothner@kalessin.cygnus.com>
8305         * config.table:  For host, generalize rs6000-ibm-aix*
8306         to *-ibm-aix* so we also include powerpc.
8308 Tue Aug 22 03:18:05 1995  Ken Raeburn  <raeburn@kr-laptop.cygnus.com>
8310         Fri Jun 16 18:35:40 1995  Pat Rankin  (rankin@eql.caltech.edu)
8312         * xstrerror.c: New file.
8313         * Makefile.in, vmsbuild.com: Compile it.
8315 Mon Jul 31 12:16:32 1995  steve chamberlain  <sac@slash.cygnus.com>
8317         * config.table (i386-*-win32): New.
8319 Fri Jul 21 11:35:52 1995  Doug Evans  <dje@canuck.cygnus.com>
8321         * Makefile.in (MULTITOP): New variable.
8322         (MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): Likewise.
8323         (all): Add multilib support.
8324         (install_to_tooldir, *clean): Likewise.
8326 Mon Jul 10 11:47:27 1995  Ken Raeburn  <raeburn@cygnus.com>
8328         * makefile.dos (OBJS): Add hex.o.  From DJ Delorie.
8330 Fri Jun 30 17:28:59 1995  Pat Rankin  (rankin@eql.caltech.edu)
8332         * vmsbuild.com:  create "new-lib.olb", build libiberty under that
8333         name, and then make it become "liberty.olb" when done, so that an
8334         incomplete build attempt never leaves behind something which looks
8335         like a complete library.
8337 Thu Jun 29 00:22:02 1995  Steve Chamberlain  <sac@slash.cygnus.com>
8339         * config/mh-i386pe: New file for PE hosts.
8340         * config.table: Understand PE hosts.
8342 Wed Jun 28 19:13:23 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
8344         * cplus-dem.c: Update from gcc.
8346         * argv.c, dummy.c: If __STDC__, #include "alloca-conf.h" after
8347         <stddef.h>.
8348         * alloca-norm.h: If __STDC__, declare alloca with its parameter.
8350 Thu Jun 22 18:57:47 1995  Stan Shebs  <shebs@andros.cygnus.com>
8352         * mpw-make.in (ALL_CFLAGS): Define NEED_basename.
8353         * mpw.c: Only test DebugPI once whenever printing debug info.
8354         (mpwify_filename): If filename is /tmp/foo, change it into :_foo,
8355         also fix to not write on input filename buffer.
8356         (mpw_access): Use stat() instead of open(), works for directories
8357         as well as files.
8359 Mon Jun 19 00:33:22 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
8361         * Makefile.in: Massage broken shells that require 'else true'.
8363 Sat Jun 17 23:21:58 1995  Fred Fish  <fnf@cygnus.com>
8365         * alloca-norm.h: Declare alloca as type "PTR" to match functions.def.
8366         Declare __builtin_alloca in the sparc case, as argv.c did.
8367         * argv.c: Replace inline version of alloca-norm.h at start of file with
8368         a #include of alloca-conf.h.  Precede it with an include of ansidecl.h
8369         because alloca-norm.h needs to declare alloca as "PTR".
8371 Mon Jun 12 14:24:26 1995  Steve Chamberlain  <sac@slash.cygnus.com>
8373         * win32.c: New file.
8375 Fri Jun  9 15:16:14 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
8377         * dummy.c: #include "alloca-conf.h".
8379 Wed Jun  7 11:46:23 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
8381         * Makefile.in (mostlyclean): Remove stamp-picdir.
8382         (clean): Don't.
8384 Mon Jun  5 18:46:06 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
8386         * config.table (frags): Use toplevel pic frags.
8388         * Makefile.in (PICFLAG): New macro.
8389         (all): Depend on stamp-picdir.
8390         (needed-list): Ditto.
8391         (.c.o): Also build pic object.
8392         (stamp-picdir): New rule.
8393         (mostlyclean): Remove pic.
8394         (clean): Remove stamp-picdir.
8396 Fri Mar 24 16:55:48 1995  Pat Rankin  (rankin@eql.caltech.edu)
8398         * vmsbuild.com (config.h): Add `#define NEED_basename'.
8400 Tue May 23 10:12:46 1995  Per Bothner  <bothner@kalessin.cygnus.com>
8402         * clock.c, getopt.c, strtod.c, vsprintf.c:  Change from using LGPL
8403         to libio-style copyright.
8404         * getpagesize.c:  Remove FSF copyright.
8406 Sat May 20 12:30:23 1995  Ken Raeburn  <raeburn@kr-laptop.cygnus.com>
8408         Added improved VMS support from Pat Rankin:
8410         Fri Mar 17 18:40:36 1995  Pat Rankin  (rankin@eql.caltech.edu)
8412         * vmsbuild.com:  new file.
8414         * getpagesize.c (getpagesize):  implement for VMS;
8415         * strerror.c (strerror, strerrno, strtoerrno):  add rudimentary
8416         support for EVMSERR.
8418 Thu May 18 17:01:42 1995  Ken Raeburn  <raeburn@kr-laptop.cygnus.com>
8420         Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
8422         * floatformat.c (floatformat_arm_ext): Define.
8424 Tue May 16 13:30:59 1995  Per Bothner  <bothner@kalessin.cygnus.com>
8426         * basename.c, bcmp.c, getcwd.c, insque.c, rename.c, sigsetmask.c,
8427         strerror.c, strsignal.c:  Remove FSF copyright.
8428         * sigsetmask.c: #include <sys/types.h> - seems to be needed by ISC.
8430 Mon May 15 19:53:17 1995  Per Bothner  <bothner@kalessin.cygnus.com>
8432         * bcopy.c, bzero.c, memcmp.c, memcpy.c, memset.c, strchr.c,
8433         strrchr.c, strstr.c, vfork.c:  Remove FSF Copyright, because this
8434         might contaminate libstdc++ with the LGPL.  (OK'd by RMS 11 Oct 94.)
8435         * strchr.c, strrchr.c:  Add cast to suppress const warning.
8437 Thu May  4 14:36:42 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
8439         * cplus-dem.c: Use const instead of CONST.  Don't include
8440         ansidecl.h directly.
8442 Wed Apr 19 01:30:27 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
8444         * cplus-dem.c: Don't include libiberty.h.  Do declare xmalloc and
8445         xrealloc.
8446         (-DMAIN): Don't rely on an externally-defined version number;
8447         instead, require the version number to be defined as a
8448         preprocessor macro.  Handle the RS/6000 leading dot.  Define
8449         xmalloc, xrealloc and fatal.  Don't strip a leading underscore
8450         if we couldn't demangle the word.
8452 Tue Apr  4 13:03:51 1995  Stan Shebs  <shebs@andros.cygnus.com>
8454         (Old mpw.c change descriptions retained for informational value.)
8455         * mpw.c (warning_threshold): Default to .4 sec.
8456         (overflow_count, current_progress): New globals.
8457         (warn_if_spin_delay): Include current progress type,
8458         such as program name, in message.
8459         (mpw_start_progress): Set current_progress variable from arg.
8460         (mpw_end_progress): Report spin delays by power-of-two-size
8461         buckets instead of constant-size buckets.
8463         * mpw.c: Clean up formatting, types, returns, etc.
8464         (ENOSYS): Define.
8465         (mpw_fread, mpw_fwrite): Define.
8466         (sleep): Define correctly.
8468         * mpw.c: New code to implement cursor spinning support.
8469         (umask): New function.
8470         (mpw_fopen, mpw_fseek, stat, fstat): Call PROGRESS.
8472         * mpw.c (mpw_basename, mpw_mixed_basename): New functions, find
8473         basenames for MPW and MPW/Unix filenames.
8474         (mpw_special_init): New function, calls Macsbug if desired.
8476         * mpw.c: Add GPL notice.
8477         (mpwify_filename): Add more transformations.
8478         (mpw_fopen): Call mpwify_filename on file names.
8479         (rename): Remove.
8480         (chdir, getcwd): Add simple definitions.
8482         * mpw.c: Random cleanups, remove unused code bits.
8483         Added copy of strerror.c for gcc's use.
8484         (stat, fstat, _stat): New versions based on Guido van Rossum code.
8486         * mpw.c (mpw_fseek): Make it work correctly when doing SEEK_CUR.
8488         * mpw.c (stat): Remove hack definition, get from sys/stat.h.
8489         (fork, vfork, etc): Print error messages if called.
8490         (getrusage, sbrk, environ, isatty, link, utime, mkdir, rmdir,
8491         rename, chown): Define.
8493         * mpw-config.in: New file, MPW version of configure.in.
8494         * mpw-make.in: New file, MPW version of Makefile.in.
8495         * mpw.c: New file, MPW compatibility routines.
8497 Fri Mar 24 14:10:30 1995  Jim Kingdon  (kingdon@lioth.cygnus.com)
8499         * basename.c: Include config.h before checking for NEED_basename.
8501 Thu Mar 23 19:09:54 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
8503         * functions.def: Add DEFFUNC for basename.
8505         * basename.c: Only define basename if NEED_basename.
8507 Thu Mar 16 13:36:05 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
8509         * config.table: Fix --enable-shared logic for native builds.
8511 Mon Mar 13 11:05:11 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
8513         * cplus-dem.c (demangle_template): Demangle bool literals properly.
8515 Mon Mar  6 23:57:28 1995  Stu Grossman  (grossman@cygnus.com)
8517         * strtol.c strtoul.c:  Replace these with less buggy versions from
8518         NetBSD.  (strtoul in particular couldn't handle base 16.)
8520 Wed Mar  1 15:59:01 1995  Ian Lance Taylor  <ian@cygnus.com>
8522         * config/mt-vxworks5 (HDEFINES): Define NO_SYS_PARAM_H.
8524         * clock.c: If NO_SYS_PARAM_H is defined, don't include
8525         <sys/param.h>.
8526         * getcwd.c, getpagesize.c, getruntime.c: Likewise.
8528 Fri Feb 17 15:40:55 1995  Ian Lance Taylor  <ian@cygnus.com>
8530         * getruntime.c (get_run_time): Don't assume that CLOCKS_PER_SEC is
8531         a number; ANSI appears to permit any expression, including a
8532         function call.
8534         * config.table (*-*-vxworks5*): Use mt-vxworks5 when configuring
8535         xiberty.
8536         * config/mt-vxworks5: New file.
8538 Thu Feb  9 14:19:45 1995  Ian Lance Taylor  <ian@cygnus.com>
8540         * basename.c (basename): Change argument to be const.
8542 Wed Feb  8 18:06:52 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
8544         * Makefile.in (lneeded-list): Don't worry about xmalloc.
8546 Sun Jan 15 00:40:36 1995  Jeff Law  (law@snake.cs.utah.edu)
8548         * Makefile.in (distclean): Delete xhost-mkfrag.
8550 Thu Jan 12 16:54:18 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
8552         * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
8554 Wed Jan 11 22:39:56 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
8556         * hex.c: New file.
8557         * Makefile.in (REQUIRED_OFILES, CFILES): List it.
8558         (hex.o): Add dependencies.
8560         * cplus-dem.c (demangle_prefix): For GNU style constructor and
8561         destructor names, try demangling the remainder of the string.
8563 Wed Dec 28 00:49:15 1994  Ian Lance Taylor  <ian@tweedledumb.cygnus.com>
8565         * vasprintf.c (int_vasprintf): New static function.
8566         (vasprintf): Use int_vasprintf.  Removes assumption that va_list
8567         is assignment compatible.
8569 Sat Nov  5 19:29:12 1994  Jason Merrill  (jason@phydeaux.cygnus.com)
8571         * Makefile.in (LIBCFLAGS): New variable.
8572         (FLAGS_TO_PASS): Pass it.
8573         (.c.o): Use it.
8575 Thu Nov  3 19:09:47 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
8577         * getopt.c, getopt1.c: Do compile these functions under Linux,
8578         since many native versions are based on glibc but are buggy.
8580 Mon Oct 24 15:16:46 1994  Per Bothner  <bothner@kalessin.cygnus.com>
8582         * vasprintf.c:  Make 'format' arg be const, to avoid a mismatch
8583         with prototype in GNU libc.  Support stdarg.h as well as varargs.h.
8585 Tue Oct 11 17:48:27 1994  Jason Merrill  (jason@phydeaux.cygnus.com)
8587         * Makefile.in (REQUIRED_OFILES): Add vasprintf.o.
8588         * functions.def: Remove vasprintf.
8590 Wed Sep 14 17:04:55 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8592         * xmalloc.c (first_break): New static variable.
8593         (xmalloc_set_program_name): Record sbrk (0) in first_break.
8594         (xmalloc): If memory allocation fails, try to report how much
8595         memory was allocated by the program up to this point.
8596         (xrealloc): Likewise.
8598 Sun Sep 04 17:58:10 1994  Richard Earnshaw (rwe@pegasus.esprit.ec.org)
8600         * Makefile.in (ERRORS_CC): New variable, defaulted to $(CC).  Use it
8601         when linking dummy.
8602         * config.table: Add host RISCiX Makefile frag.
8603         * config/mh-riscix: New file.
8605 Thu Aug 25 17:29:44 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8607         * Makefile.in (FLAGS_TO_PASS): Define.
8608         ($(RULE1)): Use $(FLAGS_TO_PASS).
8610 Wed Aug 24 17:08:47 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8612         * vasprintf.c: Include <string.h>.
8613         (vasprintf): Add casts to void for va_arg to avoid gcc warnings.
8614         * xatexit.c: Declare malloc.
8616 Fri Aug 19 15:29:12 1994  Kung Hsu  (kung@mexican.cygnus.com)
8618         * cplus-dem.c (demangle_args): Fix a bug in previous patch (the
8619         one below).
8621 Thu Aug 18 14:37:14 1994  Kung Hsu  (kung@mexican.cygnus.com)
8623         * cplus-dem.c (demangle args): Handle ARM repeat encoding where
8624         the type index is greater than 9.
8626 Wed Aug 17 16:13:49 1994  Kung Hsu  (kung@mexican.cygnus.com)
8628         * cplus-dem.c (demangle_qualified): accept optional '_' between
8629         qualified name. This is baecause the template name may end with
8630         numeric and can mixed up with the length of next qualified name.
8632 Wed Aug  3 05:52:14 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
8634         * config/mt-sunos4: Use our standard location for cross-includes
8635         and cross-libs when the target is also a "host" environment (ie no
8636         newlib; includes and such don't belong to us).  This is specific
8637         to the Cygnus Support environment.
8639 Tue Aug  2 15:25:12 1994  Kung Hsu  (kung@mexican.cygnus.com)
8641         * cplus-dem.c (demangle_template): demangle as xxx<'Q'> not
8642         xxx<ch=81>.
8644 Mon Aug  1 17:02:48 1994  Kung Hsu  (kung@mexican.cygnus.com)
8646         * cplus-dem.c (main): flush stdout to make pipe work.
8648 Sat Jul 16 12:56:32 1994  Stan Shebs  (shebs@andros.cygnus.com)
8650         * config.table (*-*-cxux7*):  Recognize.
8651         * floatformat.c (floatformat_m88110_ext) [HARRIS_FLOAT_FORMAT]:
8652         Harris-specific float format.
8653         * config/mh-cxux7: New file.
8655 Wed Jun 29 00:26:17 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
8657         * cplus-dem.c (demangle_template):  Make sure that the result of
8658         consume_count doesn't index beyond the end of the string.
8660 Mon Jun 20 23:54:37 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
8662         * cplus-dem.c (gnu_special):  Handle vtable mangling of gcc-2.4.5 and
8663         earlier. Improve test for new vtable mangling. Change output back
8664         to `virtual table'.
8666 Mon Jun 20 11:37:30 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8668         * obstack.c: Always compile this code, even if using the GNU
8669         library.  Avoids problems with relatively recent binary
8670         incompatibility.
8672 Thu Jun 16 17:54:01 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8674         * cplus-dem.c: Include libiberty.h.
8675         (xmalloc, xrealloc, free): Don't declare.
8676         (strstr): Don't declare parameters.
8677         (xmalloc, xrealloc): Don't define.
8678         (long_options): Add no-strip-underscores.
8679         (main): Call xmalloc_set_program_name.  Pass n in short options to
8680         getopt_long.  Handle option 'n' to not strip underscores.
8681         (usage): Mention -n and --no-strip-underscores.
8683 Sun Jun 12 01:37:09 1994  Jason Merrill  (jason@deneb.cygnus.com)
8685         * cplus-dem.c (demangle_template): Separate consecutive >'s with a
8686         space.
8687         (gnu_special): Demangle template and qualified names in a vtable name.
8689 Fri May 27 12:27:52 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
8691         From gas-2.3 and binutils-2.4 net releases:
8693         Wed May 11 22:32:00 1994  DJ Delorie (dj@ctron.com)
8695         * makefile.dos: [new] Makefile for dos/go32
8696         * configure.bat: update for latest files
8697         * msdos.c: remove some functions now in libc.a
8699 Fri May 20 18:53:32 1994  Per Bothner  (bothner@kalessin.cygnus.com)
8701         * cplus-dem.c (gnu_special):  Recognize thunks, as well as
8702         the new naming style for vtables (when -fvtable-thunks).
8704 Wed May 18 13:34:06 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8706         * Makefile.in (XTRAFLAGS): Don't define.
8707         (.c.o, dummy.o): Don't use XTRAFLAGS.
8708         ($(RULE1)): Don't pass XTRAFLAGS down in recursive call.
8710 Fri May 13 16:02:12 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
8712         * vasprintf.c: New file.
8713         * Makefile.in, functions.def: Add it.
8715 Fri May 13 16:20:28 1994  Jason Merrill  (jason@deneb.cygnus.com)
8717         * cplus-dem.c (demangle_fund_type): Grok bool.
8719 Fri May  6 14:44:21 1994  Steve Chamberlain  (sac@cygnus.com)
8721         * config.table: Add go32
8722         * config/mh-go32: New template.
8724 Fri May  6 11:01:59 1994  D. V. Henkel-Wallace  (gumby@rtl.cygnus.com)
8726         * config.table, config/mt-sunos4: config for when sun4 is cross target.
8728 Mon Apr 11 00:54:33 1994  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
8730         * getopt.c [not __GNU_LIBRARY__] [__GCC__] [not __STDC__]:
8731         Declare strlen to return int.  Don't include stddef.h.
8733 Fri Apr  1 00:38:17 1994  Jim Wilson  (wilson@mole.gnu.ai.mit.edu)
8735         * getopt.c: Delete use of IN_GCC to control whether
8736         stddef.h or gstddef.h is included.
8738 Thu Apr 14 14:00:56 1994  Kung Hsu  (kung@mexican.cygnus.com)
8740         * cplus-dem.c (demangle_signature): Fix a bug in template function
8741         type numbering.
8743 Wed Apr 13 17:23:03 1994  Kung Hsu  (kung@mexican.cygnus.com)
8745         * cplus-dem.c (demangle_signature): Fix template function with arm
8746         style argument type number, Tn.
8748 Wed Apr 13 17:11:15 1994  Jason Merrill  (jason@deneb.cygnus.com)
8750         * cplus-dem.c (optable): Add new[] and delete[].
8752 Fri Apr  8 11:21:42 1994  Jim Kingdon  (kingdon@deneb.cygnus.com)
8754         * argv.c (buildargv): Don't produce empty argument just because
8755         there is trailing whitespace.
8757 Wed Apr  6 11:42:14 1994  Kung Hsu  (kung@mexican.cygnus.com)
8759         * cplus-dem.c (demangle_template): fix 'Q' qualified name bug.
8760         Handle 'p' same as 'P'.
8761         * cplus-dem.c (do_type): Handle 'p' same as 'P'.
8763 Sat Mar 26 12:00:13 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
8765         * floatformat.c (get_field, put_field):  Fix off by one error in
8766         little endian case.
8768 Thu Mar 24 10:40:19 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
8770         * floatformat.c (floatformat_from_double): Pass unsigned char *,
8771         not char *, to put_field.
8773 Fri Mar 18 12:34:33 1994  Per Bothner  (bothner@kalessin.cygnus.com)
8775         * memmove.c:  Re-wrote;  placed in public domain.
8777 Wed Mar 16 10:33:07 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
8779         * cplus-dem.c (demangle_prefix): If ARM demangling, don't treat
8780         __Q* as a constructor.
8782 Mon Mar 14 12:26:02 1994  Ian Lance Taylor  (ian@cygnus.com)
8784         * ieee-float.c: Removed; no longer used.
8785         * Makefile.in: Changed accordingly.
8787 Mon Mar  7 12:28:17 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8789         * floatformat.c (get_field): Removed unused local variable i.
8790         (put_field): Removed unused local variable i.
8792 Sun Feb 27 21:50:11 1994  Jim Kingdon  (kingdon@deneb.cygnus.com)
8794         * floatformat.c: New file, intended to replace ieee-float.c.
8795         * Makefile.in: Change accordingly.
8797 Thu Feb 24 11:51:12 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
8799         * getopt.c: Remove #ifdef GETOPT_COMPAT and #if 0 code.
8800          (_getopt_initialize): New function, broken out of _getopt_internal.
8801          (_getopt_internal):
8802          If long_only and the ARGV-element has the form "-f", where f is
8803          a valid short option, don't consider it an abbreviated form of
8804          a long option that starts with f.  Otherwise there would be no
8805          way to give the -f short option.
8807 Thu Feb 10 14:44:16 1994  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
8809         * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]:
8810         Test just __STDC__, not emacs.
8812 Wed Feb  9 00:14:00 1994  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
8814         * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]
8815         [emacs] [not __STDC__]: Don't include stddef.h.  Don't declare strlen.
8817 Fri Dec 24 19:43:00 1993  Noah Friedman  (friedman@nutrimat.gnu.ai.mit.edu)
8819         * getopt.c (_NO_PROTO): Define before config.h is included.
8821 Mon Sep 20 15:59:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8823         * getopt.c, getopt1.c [emacs || CONFIG_BROKETS]: Include
8824         <config.h> only under these, else "config.h".
8826 Thu Aug 12 18:16:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8828         * getopt.c, getopt1.c [HAVE_CONFIG_H]: Include
8829         <config.h> instead of "config.h".
8831 Sun Feb 20 17:17:01 1994  Ian Lance Taylor  (ian@lisa.cygnus.com)
8833         * concat.c: Check ANSI_PROTOTYPES rather than __STDC__ to decide
8834         whether to use prototypes or not.
8835         * strerror.c (const): Never undefine; let ansidecl.h handle it.
8836         * strsignal.c (const): Likewise.
8838 Thu Feb 17 13:27:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8840         * xatexit.c (_xexit_cleanup): Declare as extern; don't initialize.
8841         Merging common and initialized variables need not be supported by
8842         ANSI C compilers.
8843         (xatexit): Initialize _xexit_cleanup if not already set.
8844         * xexit.c: Comment fix.
8846 Wed Feb 16 01:15:36 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8848         * xmalloc.c: Don't declare xexit; it's declared in libiberty.h.
8849         (xrealloc): If oldmem is NULL, allocate with malloc, rather than
8850         assuming that realloc works correctly.
8852 Tue Feb 15 09:26:16 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
8854         * concat.c, ieee-float.c:  Replace inclusion of <string.h>
8855         with explicit function declarations, as recommended by Ian Taylor.
8857 Sat Feb 12 10:31:11 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
8859         * xmalloc.c (xmalloc, xrealloc): Use PTR and size_t throughout.
8860         (malloc, realloc): Declare.
8862 Thu Feb 10 17:08:19 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8864         * argv.c, basename.c: Include ansidecl.h and libiberty.h.
8865         * concat.c, fdmatch.c, getruntime.c, spaces.c: Likewise.
8866         * strerror.c, strsignal.c, xatexit.c, xexit.c: Likewise.
8867         * xmalloc.c: Likewise.
8868         * concat.c: Don't declare xmalloc.  If __STDC__, use <stdarg.h>
8869         macros, not <varargs.h> macros.
8870         * spaces.c (spaces): Make return type const.  Don't crash if
8871         malloc returns NULL.
8872         * strerror.c (struct error_info): Make name and msg fields const.
8873         (error_names): Make const.
8874         (strerrno): Make const.
8875         (strtoerrno): Make argument const.
8876         * strsignal.c (struct signal_info): Make name and msg fields
8877         const.
8878         (signal_names, sys_siglist): Make const.
8879         (strsignal, strsigno): Make const.
8880         (strtosigno): Make argument const.
8881         * xatexit.c: Declare parameter types.
8882         * xmalloc.c (name): Make const.
8883         (xmalloc_set_program_name): Make argument const.
8884         * Makefile.in (INCDIR): Define.
8885         (.c.o): Use $(INCDIR).
8886         (dummy.o): Likewise.
8887         (argv.o, basename.o): New targets; depend on libiberty.h.
8888         (concat.o, fdmatch.o, getruntime.o, spaces.o): Likewise.
8889         (strerror.o, strsignal.o, xatexit.o, xexit.o): Likewise.
8890         (xmalloc.o): Likewise.
8891         (cplus-dem.o): New target; depend on demangle.h.
8892         (getopt.o, getopt1.o): New targets; depend on getopt.h.
8893         (ieee-float.o): New target; depend on ieee-float.h.
8894         (obstack.o): New target; depend on obstack.h.
8896 Tue Feb  8 05:29:08 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
8898         Handle obstack_chunk_alloc returning NULL.  This allows
8899         obstacks to be used by libraries, without forcing them
8900         to call exit or longjmp.
8901         * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
8902         If CALL_CHUNKFUN returns NULL, set alloc_failed, else clear it.
8903         (_obstack_begin, _obstack_begin_1): Return 1 if successful, 0 if not.
8905 Tue Feb  8 00:32:28 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
8907         * concat.c, ieee-float.c:  Include <string.h>.
8909 Sun Feb  6 21:28:46 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
8911         * xmalloc.c (xmalloc_set_program_name): New function.
8912         (xmalloc, xrealloc): Include the name in the error message, if set.
8914         * Replace atexit.c with xatexit.c.
8915         * Makefile.in (CFILES), functions.def: Change references.
8917 Sat Feb  5 14:02:32 1994  Stan Shebs  (shebs@andros.cygnus.com)
8919         * getruntime.c (get_run_time): Use getrusage or times if
8920         HAVE_GETRUSAGE or HAVE_TIMES are defined.
8922 Fri Feb  4 15:49:38 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
8924         * atexit.c: New file.
8925         * Makefile.in (CFILES), functions.def: Add it.
8926         * xexit.c: New file.
8927         * Makefile.in (CFILES, REQUIRED_OFILES): Add it.
8928         * xmalloc.c (xmalloc, xrealloc): Call xexit instead of exit.
8929         Change request for 0 bytes into request for 1 byte.
8931 Wed Feb  2 11:36:49 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8933         * xmalloc.c (xmalloc, xrealloc): Print size using %lu, and cast to
8934         unsigned long, to avoid warnings.
8936 Fri Jan 28 17:49:06 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
8938         * dummy.c: Don't include time.h ever; always define clock_t as
8939         "unsigned long".  Until gcc/fixincludes ensures that clock_t
8940         exists, __STDC__ isn't a sufficient test.  And if clock() doesn't
8941         exist, clock_t probably doesn't either.
8943 Mon Jan 24 11:52:31 1994  Stan Shebs  (shebs@andros.cygnus.com)
8945         * clock.c, getruntime.c: New files.
8946         * Makefile.in: Add to file lists.
8947         * functions.def (clock): Add to list.
8948         * dummy.c (time.h): Add if __STDC__.
8949         (clock_t): #define as "unsigned long" if not __STDC__.
8951 Tue Jan 11 11:27:44 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8953         * strtod.c: Declare atof.  From edler@jan.ultra.nyu.edu (Jan
8954         Edler).
8956 Tue Dec 28 14:17:30 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8958         * Makefile.in (errors): Use CFLAGS as well as LDFLAGS when
8959         linking.
8961 Fri Dec 17 12:26:07 1993  Kung Hsu  (kung@cirdan.cygnus.com)
8963         * cplus-dem.c (demangle_arm_pt): New function.  Common code
8964         for ARM template demangling.
8965         * cplus-dem.c (demangle_class_name): Use demangle_arm_pt.
8966         * cplus-dem.c (demangle_prefix): Likewise.
8968 Tue Nov 30 15:47:48 1993  Jason Merrill  (jason@deneb.cygnus.com)
8970         * cplus-dem.c (cplus_demangle_opname): Add CONST to please gcc.
8972 Sat Nov 27 11:05:50 1993  Fred Fish  (fnf@cygnus.com)
8974         Merge changes from tom@basil.icce.rug.nl (Tom R.Hageman)
8975         * strerror.c, strsignal.c:  As a small space optimization, don't
8976         include messages when they aren't actually used.
8978         Merge changes from takefive.co.at!joe (Josef Leherbauer)
8979         * cplus-dem.c (demangle_prefix, demangle_function_name,
8980         cplus_demangle_opname):  Fixes for systems where cplus_marker
8981         is something other than '$'.
8983 Fri Nov 26 13:51:11 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8985         * waitpid.c:  Simple-minded approcimation to waitpid
8986         using vanilla wait.
8987         * functions.def, Makefile.in:  Update accordingly,
8989 Thu Nov 18 18:01:15 1993  Kung Hsu  (kung@cirdan.cygnus.com)
8991         * cplus-dem.c(demangle_template): fix bug template instantiation
8992         with value of user defined type.
8994 Wed Nov 17 18:30:21 1993  Kung Hsu  (kung@cirdan.cygnus.com)
8996         * cplus-dem.c(cplus_demangle_opname): add the subject new function
8997         to support unified search of operator in class.
8999 Wed Nov 10 09:47:22 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
9001         gcc -Wall lint:
9002         * strtoul.c (strtoul): use "(digit = *s) != '\0'" not just
9003         "digit = *s" as condition in while loop.
9005 Tue Nov  9 15:52:22 1993  Mark Eichin  (eichin@cygnus.com)
9007         * Makefile.in: pass SHELL to recursive make
9009 Thu Nov  4 12:09:26 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9011         * vfprintf.c, vprintf.c, vsprintf.c:  Make format arg
9012         be (const char*), for ANSI (and gcc w/fixproto) consistency.
9014 Thu Nov  4 08:29:04 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
9016         * config.table: Make *-*-hiux* use mh-hpux.
9018 Fri Oct 22 07:53:15 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
9020         * config.table: Add * to end of all OS names.
9022 Tue Oct 19 17:12:01 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
9024         * Makefile.in (lneeded-list): ensure that object file names are
9025           not duplicated, as multiple instances of the same object file in
9026           a library causes problems on some machines
9028 Mon Oct 18 21:59:28 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
9030         * strcasecmp.c, strncasecmp.c: Change u_char to unsigned char.
9032 Fri Oct 15 22:17:11 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
9034         * strncasecmp.c: new file, implements strncasecmp
9035         * strcasecmp.c: new file, implement strcasecmp
9037         * Makefile.in (CFILES): list these two new source files
9039         * functions.def: add strcasecmp and strncasecmp entries
9041 Fri Oct 15 14:53:05 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9043         * strtoul.c (strtoul), strtol.c (strtol): Handle overflow
9044         according to ANSI C.
9046 Thu Oct 14 16:34:19 1993  Kung Hsu  (kung@cirdan.cygnus.com)
9048         * cplus-dem.c: add support of ARM global constructor/destructor,
9049         and 'G' for passing record or union in parameter.
9051 Wed Oct 13 13:36:19 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
9053         * Makefile.in: Fix comment to clarify that stuff in REQUIRED_OFILES
9054         should not be in functions.def.
9056 Wed Oct 13 13:13:38 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9058         * functions.def: Removed xmalloc.  Stuff in REQUIRED_OFILES should
9059         not be in functions.def.
9061 Mon Oct  4 18:26:39 1993  Kung Hsu  (kung@cirdan.cygnus.com)
9063         * cplus-dem.c: change globl constructor/destructor to proper name
9065 Tue Sep 28 18:11:07 1993  Kung Hsu  (kung@cirdan.cygnus.com)
9067         * cplus-dem.c: fix bug in constructor/destructor
9069 Tue Sep 28 16:20:49 1993  Kung Hsu  (kung@cirdan.cygnus.com)
9071         * cplus-dem.c: support both old and new _vt$... vtbl mangled names
9073 Fri Sep 24 19:07:16 1993  Jason Merrill  (jason@deneb.cygnus.com)
9075         * cplus-dem.c: Fix demangle_template prototype
9077 Fri Sep 24 17:32:55 1993  Kung Hsu  (kung@cirdan.cygnus.com)
9079         * cplus-dem.c: fix template demangling
9080         * cplus-dem.c: fix const type demangling
9081         * cplus-dem.c: fix constructor/destructor, virtual table,
9082         qualifier, global constructor/destructor demangling
9084 Wed Sep  1 23:13:11 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
9086         * strsignal.c, strerror.c: Use fully-bracketed initializer to
9087         keep gcc -Wall happy.
9089 Fri Aug 27 10:30:09 1993  Jason Merrill  (jason@deneb.cygnus.com)
9091         * cplus-dem.c (do_type): Add CONSTS to make gcc happy with last
9092         patch.
9094 Fri Aug 27 11:24:54 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
9096         Patch from Paul Flinders:
9097         * cplus-dem.c (do_type): Deal with arrays.
9099 Tue Aug 24 14:23:50 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
9101         * cplus-dem.c (demangle_qualified: Deal with GNU format for more
9102         than 9 classes.
9104 Wed Aug 18 19:50:29 1993  Jason Merrill  (jason@deneb.cygnus.com)
9106         * Makefile.in (dummy.o): Redirect to /dev/null to avoid "variable
9107         not initialized" warnings under HP/UX
9109 Sun Aug 15 20:42:40 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
9111         * strerror.c: Move include of stdio.h after sys_errlist #define.
9112         Also remove NULL definition (stdio.h always defines NULL, so it
9113         never did anything but clutter up the code).
9115 Sat Aug 14 14:21:49 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
9117         * Makefile.in, functions.def: handle xmalloc.c
9119         * xmalloc.c: provide xmalloc and xrealloc functions
9121 Thu Aug 12 17:38:57 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9123         * cplus-dem.c: Fix a comment.
9125 Sat Aug  7 13:56:35 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9127         * getopt1.c: Declare const the way getopt.c does.
9129 Fri Aug  6 17:03:13 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9131         * obstack.c, alloca.c: Update from FSF.
9132         * getopt.c, getopt1.c: Update to current FSF version, which
9133         doesn't use alloca.
9135 Tue Jul 27 14:03:57 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
9137         * Makefile.in (demangle): Add the target with a message saying
9138         where demangle went.
9140 Mon Jul 26 15:49:54 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
9142         * Makefile.in: Remove obsolete `demangle' target.
9144 Thu Jul 22 08:31:01 1993  Fred Fish  (fnf@deneb.cygnus.com)
9146         * cplus-dem.c (arm_special):  Apply patch from arg@lucid.com to
9147         avoid infinite loop on vtbl symbols with disambiguating "junk"
9148         tacked on the end.
9150 Mon Jul 19 14:10:37 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
9152         * strsignal.c: work around some systems losing definitions of
9153         sys_siglist
9155         * config/mh-lynxos: this system has a losing definition of
9156         sys_siglist
9158         * config.table: use mh-lynxos for *-*-lynxos
9160 Mon Jul 19 17:08:52 1993  Ken Raeburn  (raeburn@rtl.cygnus.com)
9162         * config.table: Add support for HPPA BSD hosts.
9164         * config/mh-hpbsd: New file.
9166 Mon Jul 12 18:00:40 1993  K. Richard Pixley  (rich@cygnus.com)
9168         * Makefile.in (TAGS): make work when srcdir != objdir.
9170 Sun Jun 27 15:35:31 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
9172         * cplus-dem.c (main): Add long options, including --help and
9173         --version.
9174         (usage): New function from code in main.
9176 Tue Jun 22 11:37:38 1993  Per Bothner  (bothner@deneb.cygnus.com)
9178         * config.table:  New shell scipt, sourced by both ./configure,in
9179         and ../xiberty/configure.in, to avoid maintainance lossages.
9180         * configure.in and ../xiberty/configure.in:  Use config.table.
9182         * configure.in: Don't use mh-aix for AIX 3.2, only for 3.1.
9183         * configure.in: Map *-*-irix* (except irix4) to mh-sysv.
9184         * ../xiberty/configure.in:  Update from ./configure.in.
9186 Tue Jun 15 17:05:31 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
9188         * Makefile.in: remove parentdir support
9190 Wed May 26 12:59:09 1993  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
9192         * cplus-dem.c (xrealloc):  Match definition with prototype.
9194 Tue May 25 14:27:51 1993  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
9196         * cplus-dem.c (demangle_prefix):  Demangle cfront
9197         local variables as an extension to ARM demangling.
9199 Fri May 21 09:53:57 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
9201         * ieee-float.c: Don't require pointers to double to be aligned.
9203 Tue May 18 17:12:10 1993  Fred Fish  (fnf@cygnus.com)
9205         (merge changes from dlong@cse.ucsc.edu)
9206         * cplus-dem.c (consume_count):  Simplify.
9207         * cplus-dem.c (arm_pt, demangle_class_name):  New functions.
9208         * cplus-dem.c (various):  Calls to arm_pt, demangle_class_name.
9210         * cplus-dem.c (xmalloc, xrealloc, strstr):  Make extern decls into
9211         full prototypes.
9212         * cplus-dem.c (free):  Add prototype.
9213         * cplus-dem.c (optable):  Fully bracketize initializer.
9215 Fri May 14 17:13:05 1993  Per Bothner  (bothner@cygnus.com)
9217         * cplus-dem.c:  Whether initial underscores are stripped
9218         depends on the external variable prepends_underscore
9219         (which is generated by the binutils Makefile).
9221 Fri May 14 07:32:20 1993  Ken Raeburn  (raeburn@deneb.cygnus.com)
9223         * cplus-dem.c (mop_up, arm_special): Remove some unused variables.
9225 Tue May  4 20:31:59 1993  Fred Fish  (fnf@cygnus.com)
9227         * cplus-dem.c (consume_count):  Return zero if arg does not
9228         start with digit, and don't consume any input.
9230 Tue May  4 08:10:28 1993  Jim Kingdon  (kingdon@cygnus.com)
9232         * Makefile.in (demangle): Use ${srcdir} not $^.
9234         * strtod.c: New file, needed at least for BSD 4.3.
9236 Sun May  2 11:30:42 1993  Fred Fish  (fnf@cygnus.com)
9238         * strsignal.c (sys_siglist):  For ANSI compilations, type is
9239         "const char *const".  Also remove conditionalization on __STDC__
9240         since const is defined away for non-ANSI.
9242 Wed Apr 28 19:29:55 1993  Ken Raeburn  (raeburn@deneb.cygnus.com)
9244         * configure.in: Recognize *-*-hpux.
9245         * config/mh-hpux: New file.
9247 Tue Apr 27 15:22:19 1993  Per Bothner  (bothner@cygnus.com)
9249         * tmpnam.c:  Added ANSI tmpnam() function.
9250         * functions.def, Makefile.in:  Update accordingly.
9252 Tue Apr 27 13:38:38 1993  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
9254         * cplus-dem.c (demangle_function_name): Get the demangling of
9255         stop__1A right.
9257 Fri Apr 16 23:48:24 1993  Jim Kingdon  (kingdon at calvin)
9259         * cplus-dem.c: Declare strstr return type.
9261 Fri Mar 26 12:01:26 1993  Jim Kingdon  (kingdon@cygnus.com)
9263         * strsignal.c: Add some AIX signals.
9265 Thu Mar 25 15:17:23 1993  Ian Lance Taylor  (ian@cygnus.com)
9267         * Makefile.in (MAKEOVERRIDES): Define to be empty.
9269 Wed Mar 24 01:59:25 1993  david d `zoo' zuhn  (zoo at poseidon.cygnus.com)
9271         * Makefile.in: add installcheck & dvi targets
9273 Thu Mar 18 14:05:44 1993  Per Bothner  (bothner@rtl.cygnus.com)
9275         * ieee-float.c:  New file, moved from ../gdb (since it is
9276         needed by ../opcode/m68k-dis.c).
9278 Tue Mar  2 17:47:31 1993  Fred Fish  (fnf@cygnus.com)
9280         * cplus-dem.c:  Replace all references to cfront with ARM.
9282 Fri Feb 26 00:17:07 1993  Per Bothner  (bothner@rtl.cygnus.com)
9284         * cplus-dem.c:  Fix main program (when compiled with -DMAIN)
9285         to be more useful as a filter.
9287 Sat Feb 20 21:41:39 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
9289         * Makefile.in (install_to_libdir, install_to_tooldir): Go into the
9290         destination directory before running $(RANLIB), in case that
9291         program tries to create a file in the current directory as part of
9292         its work.
9294 Thu Feb 18 23:00:19 1993  John Gilmore  (gnu@cygnus.com)
9296         * strsignal.c (sys_siglist):  Remove yet another *%^&%&$# "const"
9297         because BSD 4.4 lacks one.  Isn't this fun?
9299 Thu Feb 18 11:24:25 1993  Fred Fish  (fnf@cygnus.com)
9301         * cplus-dem.c (demangle_signature):  Set func_done after
9302         demangling a template.
9303         * cplus-dem.c (demangle_template):  Fix several small bugs
9304         in demangling GNU style templates.
9305         * cplus-dem.c (demangle_prefix):  Fix for templates in GNU
9306         style constructors.
9307         * cplus-dem.c (gnu_special):  Fix for templates in GNU style
9308         static data members.
9310 Tue Feb 16 17:28:35 1993  Fred Fish  (fnf@cygnus.com)
9312         * cplus-dem.c (demangle_signature):  Modify to include type
9313         modifiers like static and const in remembered types.
9315 Thu Feb 11 22:20:47 1993  Fred Fish  (fnf@cygnus.com)
9317         * cplus-dem.c (demangled_qualified):  Add new parameter that tells
9318         whether to prepend or append the qualifiers.
9319         * cplus-dem.c (string_prepends):  Used now, remove #if 0.
9320         * cplus-dem.c (demangle_signature):  Call demangle_qualified
9321         with prepending.
9322         * cplus-dem.c (gnu_special):  Recognize static data members that
9323         use qualified names.
9324         * cplus-dem.c (demangle_qualified):  Accumulate qualifiers in a
9325         temporary buffer and the prepend or append them to the result,
9326         as specified by the new "append" flag.
9327         * cplus-dem.c (do_type):  Call demangled_qualified with
9328         appending.
9330 Mon Dec 28 10:47:19 1992  Ken Raeburn  (raeburn@cygnus.com)
9332         * strsignal.c (signal_table): Now const.
9333         (init_signal_tables): Variable eip now points to const.
9335         * strerror.c (error_table): Now const.
9336         (init_error_tables): Variable eip now points to const.
9338 Tue Dec 15 15:36:50 1992  Per Bothner  (bothner@cygnus.com)
9340         * memchr.c (memchr):  New (ANSI standard) function.
9341         * Makefile.in, functions.def:  Added memchr.
9342         * Makefile.in (AR_FLAGS): Use rc instad of non-standard cq.
9344 Wed Dec  2 22:49:10 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
9346         * getopt.c: remove use of USG around <alloca.h>, which never meant
9347         anything anyway
9349         * config/mh-{aix,apollo68,ncr3000,sysv,sysv4}: removed definitions
9350         of USG and USGr4
9352 Thu Nov 19 03:09:33 1992  Brendan Kehoe  (brendan@lisa.cygnus.com)
9354         * cplus-dem.c (demangle_fund_type): Recognize `w', a wide character;
9355         it's now a type according to the ANSI X3J16 working paper; output
9356         "wchar_t" for it.
9357         (demangle_template): Accept `w' as an integral type.
9358         (xmalloc, xrealloc): Use `char *', not `PTR'.  Cast calls to their
9359         counterparts malloc and realloc to `char *'.
9360         (main): Exit with a 0 status.
9361         * Makefile.in (demangle): Don't expect the user to define
9362         DEMANGLE, instead force to be cplus-dem.c.  Look in $(srcdir)/../include
9363         for demangle.h.  Pass it any HDEFINES or XTRAFLAGS.
9365 Wed Nov 18 18:56:20 1992  John Gilmore  (gnu@cygnus.com)
9367         * Makefile.in (AR_FLAGS):  Avoid verbosity.
9368         * config/mh-sysv4:  Remove AR_FLAGS override, use INSTALL=cp,
9369         replace USGr4 with HAVE_SYSCONF.
9370         * config/mh-solaris:  Remove; mh-sysv4 works now.
9371         * getpagesize.c:  Replace USGr4 with HAVE_SYSCONF.
9372         * configure.in:  Simplify host matching table, remove separate
9373         solaris config file.
9375 Sun Nov 15 09:35:16 1992  Fred Fish  (fnf@cygnus.com)
9377         * configure.in (i[34]86-*-solaris2*):  Add, use mh-sysv4.
9379 Tue Nov  3 21:27:03 1992  Brendan Kehoe  (brendan@cygnus.com)
9381         * cplus-dem.c (xmalloc, xrealloc): Add decls.
9382         (remember_type): Don't cast xmalloc.
9383         (string_need): Likewise; don't cast xrealloc either.
9385 Fri Oct 23 08:52:01 1992  Ian Lance Taylor  (ian@cygnus.com)
9387         * Makefile.in, functions.defs, rename.c: added simple
9388         implementation of rename, since some binutils programs use it.
9390 Thu Oct 15 15:18:22 1992  Per Bothner  (bothner@cygnus.com)
9392         * strsignal.c:  Add appropriate 'const' to sys_siglist
9393         extern declaration (if __STDC__).  (Needed for Linux.)
9394         * strsignal.c (strsignal): Add cast to remove const-ness.
9396 Fri Oct  9 03:22:55 1992  John Gilmore  (gnu@cygnus.com)
9398         * Makefile.in (needed.awk, needed2.awk):  Remove erroneous \'s
9399         before "'s, diagnosed by BSD 4.4 awk.
9401 Thu Oct  8 15:25:12 1992  Ian Lance Taylor  (ian@cygnus.com)
9403         * Makefile.in: create config.h and needed-list through $(CONFIG_H)
9404         and $(NEEDED_LIST), to give some hooks for xiberty.
9406 Thu Oct  1 23:31:42 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
9408         * configure.in: use cpu-vendor-triple instead of nested cases
9410 Wed Sep 30 11:26:59 1992  Per Bothner  (bothner@rtl.cygnus.com)
9412         * Makefile.in, argv.c, basename.c, bcmp.c, bcopy.c, bzero.c,
9413         concat.c, cplus-dem.c, fdmatch.c, getcwd.c, getopt.c, getopt1.c,
9414         getpagesize.c, insque.c, memcmp.c, memcpy.c, memmove.c, memset.c,
9415         obstack.c, sigsetmask.c, spaces.c, strchr.c, strerror.c,
9416         strrchr.c, strsignal.c, strstr.c, vfork.c, vsprintf.c:
9417         Convert from using GPL to LGPL.
9419 Sat Sep 26 04:01:30 1992  John Gilmore  (gnu@cygnus.com)
9421         * Makefile.in (errors):  Leave dummy.o and dummy around so that
9422         we can see how the needed list was generated (it's sometimes wrong).
9423         (mostlyclean):  Remove them.
9425 Mon Sep 21 14:50:42 1992  Ian Lance Taylor  (ian@cygnus.com)
9427         * getcwd.c: supply a default if MAXPATHLEN is not defined.
9429         * config/mh-irix4: set EXTRA_OFILES to alloca.o, from WRS.
9431 Wed Sep  9 12:41:48 1992  Ian Lance Taylor  (ian@cygnus.com)
9433         * Makefile.in: Use XTRAFLAGS when compiling, so that xiberty works
9434         when cross-compiling.
9436 Thu Sep  3 13:29:39 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
9438         * cplus-dem.c: (demangle_prefix): reduction in strength of strstr
9439           as a time optimization.
9441         * cplus-dem.c (cplus_demangle): remove strpbrk test.  Appears to
9442           be more expensive than simply demangling.
9444         * cplus-dem.c (cplus_match): new function.
9446 Tue Sep  1 15:24:04 1992  Per Bothner  (bothner@rtl.cygnus.com)
9448         * cplus-dem.c:  #include <stdio.h>, to define NULL.
9449         Define current_demangling_style.
9451 Sun Aug 30 17:58:19 1992  Per Bothner  (bothner@rtl.cygnus.com)
9453         * cplus-dem.c:  New file, moved from ../gdb.
9454         * cplus-dem.c (set_cplus_marker_for_demangling):  New exported
9455         function, to avoid compiling in target-dependency for CPLUS_MARKER.
9456         * cplus-dem.c (cplus_demangle):  Allow demangling style option
9457         to be passed as a parameter, but using the global variable
9458         current_demangling_style as a default.
9459         * Makefile.in:  Update for cplus-dem.c
9461 Sat Aug 29 10:44:09 1992  Fred Fish  (fnf@cygnus.com)
9463         * obstack.c:  Merge in comment changes from FSF version.  Now
9464         matches the FSF version exactly.
9466 Fri Aug 28 18:39:08 1992  John Gilmore  (gnu@cygnus.com)
9468         * obstack.c (CALL_FREEFUN):  Can't use ?: with void values (at
9469         least on losing DECstations!); use if-then-else instead.
9471 Wed Aug 19 14:40:34 1992  Ian Lance Taylor  (ian@cygnus.com)
9473         * Makefile.in: always create installation directories.
9475 Mon Aug 10 17:33:40 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
9477         * Makefile.in: clean up definition of CFILES, more comments
9479 Sat Aug  8 23:10:59 1992  Fred Fish  (fnf@cygnus.com)
9481         * getopt.c (my_index):  Make first arg const to match strchr,
9482         which it sometimes is remapped to.
9484 Sat Aug  1 13:48:50 1992  Fred Fish  (fnf@cygnus.com)
9486         * obstack.c (DEFAULT_ALIGNMENT):  Update to match FSF version.
9487         * obstack.c (_obstack_begin):  Initialize use_extra_arg.
9488         * obstack.c (_obstack_begin_1):  New, from FSF version.
9490 Mon Jul 20 21:07:58 1992  Fred Fish  (fnf@cygnus.com)
9492         * obstack.c (CALL_CHECKFUN, CALL_FREEFUN):  Use use_extra_arg and
9493         extra_arg.
9494         * obstack.c (_obstack_begin):  Remove area_id and flags arguments
9495         (previously added for mmalloc support, interface has changed).
9496         Also convert flags usage to use use_extra_arg and maybe_empty_object.
9498 Fri Jul 10 00:41:53 1992  Fred Fish  (fnf@cygnus.com)
9500         * argv.c:  Move expandargv inline and eliminate static variables.
9501         Rewrite to always allocate in powers of two.  Fix to return an
9502         argv with a single null string arg if passed a null string.
9504 Fri Jul  3 20:27:29 1992  Fred Fish  (fnf@cygnus.com)
9506         * random.c, sigsetmask.c, strerror.c, strsignal.c:  Remove
9507         "(void)" casts from function calls where the return value is
9508         ignored, in accordance with GNU coding standards.
9510 Mon Jun 29 10:54:19 1992  Fred Fish  (fnf at cygnus.com)
9512         * bcopy.c, strerror.c, strsignal.c:  Lint.
9514 Thu Jun 25 09:18:41 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
9516         * getopt.c: merge changes from make.
9518 Thu Jun 25 04:43:22 1992  John Gilmore  (gnu at cygnus.com)
9520         * alloca.c:  Incorporate fixes from gdb/alloca.c.
9521         FIXME:  Eventually move gdb's alloca configuration files here,
9522         and remove gdb/alloca.c and its Makefile.in support.
9524 Tue Jun 23 21:56:30 1992  Fred Fish  (fnf@cygnus.com)
9526         * dummy.c:  Define NOTHING to /*nothing*/, change return type
9527         of main to int and return zero.
9528         * functions.def:  Supply NOTHING as the fourth arg to macros
9529         that don't have an explicit arg, to satisfy picky preprocessors.
9531 Wed Jun 17 18:13:58 1992  Per Bothner  (bothner@rtl.cygnus.com)
9533         * Makefile.in:  Clean up *clean rules, as per standards.texi.
9535 Tue Jun 16 16:11:59 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
9537         * getopt.c, getopt1.c: merged largely gratuitous, mostly
9538           whitespace diffs from other prep distributions.
9540 Mon Jun 15 12:25:46 1992  Fred Fish  (fnf@cygnus.com)
9542         * config/mh-ncr3000 (INSTALL):  Don't use /usr/ucb/install,
9543         it is broken on ncr 3000's.
9545 Mon Jun 15 01:03:26 1992  John Gilmore  (gnu at cygnus.com)
9547         * sigsetmask.c:  Rewrite.  Old one was very confused about its
9548         arguments and result.  New one can't do much, but at least knows
9549         what it can't do, and it's good enough for GDB's use.
9551 Sun Jun 14 15:17:40 1992  Stu Grossman  (grossman at cygnus.com)
9553         * functions.def:  Use proper prototype for strtoul.
9555 Fri Jun 12 19:22:40 1992  John Gilmore  (gnu at cygnus.com)
9557         * Makefile.in:  Add random.c.
9558         * config/mh-*:  Use "true" rather than "echo >/dev/null" for ranlib.
9559         * configure.in:  update solaris2 config.
9561 Wed Jun 10 16:31:29 1992  Fred Fish  (fnf@cygnus.com)
9563         * random.c:  Add for random() and srandom().
9564         * functions.def:  Add random
9566 Tue Jun  9 17:27:18 1992  Fred Fish  (fnf@cygnus.com)
9568         * config/{mh-ncr3000, mh-sysv4}:  Add definition for INSTALL
9569         using /usr/ucb/install.
9571 Mon Jun  1 13:20:17 1992  Per Bothner  (bothner@rtl.cygnus.com)
9573         * strerror.c:  Kludge to guard against a conflict with
9574         possible declaration of sys_errlist in errno.h.
9576 Sun May 31 15:07:47 1992  Mark Eichin  (eichin at cygnus.com)
9578         * configure.in, config/mh-solaris: add solaris2 config support.
9580 Fri May 29 17:23:23 1992  Per Bothner  (bothner@rtl.cygnus.com)
9582         * sigsetmask.c:  #ifdef out sigsetmask if SIG_SETMASK
9583         is not defined (should be defined in signal.h, says Posix.).
9585 Mon May 18 17:35:04 1992  K. Richard Pixley  (rich@cygnus.com)
9587         * getopt.c: merged changes from make-3.62.11.
9589 Fri May  8 14:53:07 1992  K. Richard Pixley  (rich@cygnus.com)
9591         * getopt.c: merged changes from bison-1.18.
9593 Tue May  5 11:51:40 1992  Per Bothner  (bothner@rtl.cygnus.com)
9595         * Makefile.in:  Don't have $(EXTRA_OFILES) depend on config.h,
9596         since that introduces a circular dependency.
9597         ($(EXTRA_OFILES) are used to build config.h.)
9599         * strtoul.c:  Fixes to handle non-decimal bases better.
9601 Wed Apr 22 09:27:51 1992  Fred Fish  (fnf@cygnus.com)
9603         * config/mh-ncr3000:  Replace MINUS_G with CFLAGS.
9604         * Makefile.dos:  Finish MINUS_G eradication.
9605         * Makefile.in (CFILES):  Add strsignal.c.
9606         * Makefile.in (REQUIRED_OFILES):  Add strerror.o strsignal.o
9607         * Makefile.in (needed-list):  Split creation of errors file to
9608         separate make target.
9609         * Makefile.in (config.h, needed2.awk, errors):  New targets.
9610         * Makefile.in (clean):  Split to multiple lines, add needed2.awk
9611         and config.h.
9612         * dummy.c (DEFFUNC, DEFVAR):  Add defines and undefs.
9613         * functions.def (strerror):  Remove from optional list.
9614         * functions.def (sys_nerr, sys_errlist, sys_siglist):  DEFVAR's
9615         * functions.def (strerror, psignal):  DEFFUNC's
9616         * strerror.c:  Rewrite from scratch to use sys_errlist only if
9617         available, add errno_max(), add strerrno(), add strtoerrno(),
9618         add test driver.
9619         * strsignal.c:  New file, signal equivalent to strerror.c.
9620         Uses sys_siglist if available, defines signo_max(), strsignal(),
9621         strsigno(), strtosigno(), psignal(), and test driver.
9623 Mon Apr 20 20:49:32 1992  K. Richard Pixley  (rich@cygnus.com)
9625         * Makefile.in: do not print recursion line.
9627         * Makefile.in: allow CFLAGS to be passed in from command line.
9628           Removed MINUS_G.  Default CFLAGS to -g.
9630 Mon Apr 20 12:57:46 1992  Per Bothner  (bothner@rtl.cygnus.com)
9632         * config/mh-aix:  New.  EXTRA_OFILES lists copysign.o,
9633         so libg++ users don't have to be inconvenienced by a
9634         libc.a bug (libc.a needs copysign, but doesn't define it!).
9635         * configure.in:  Use config/mh-aix.
9636         * strtoul.c:  Handle '-' as required by ANSI.
9637         Clean up radix handling.
9638         * strstr.c:  Fix buggy algorithm.
9639         * Makefile.in:  Change so that ${EXTRA_OFILES} is
9640         appended to needed-list (which is used by libg++).
9642 Fri Apr 10 22:51:41 1992  Fred Fish  (fnf@cygnus.com)
9644         * configure.in:  Recognize new ncr3000 config.
9645         * config/mh-ncr3000:  New config file.
9647 Wed Apr  1 23:31:43 1992  John Gilmore  (gnu at cygnus.com)
9649         * argv.c, dummy.c:  Lint.
9651 Tue Mar 31 18:46:44 1992  Fred Fish  (fnf@cygnus.com)
9653         * config/mh-sysv4:  New config file.
9654         * configure.in (host_makefile_frag):  Set to config/mh-sysv4 for
9655         host_os == sysv4.
9656         * getpagesize.c:  For SVR4, use sysconf(_SC_PAGESIZE) to get
9657         pagesize.
9659 Sun Mar 29 12:26:42 1992  John Gilmore  (gnu at cygnus.com)
9661         * getopt.c:  Lint.
9663 Fri Mar 27 08:32:55 1992  Fred Fish  (fnf@cygnus.com)
9665         * functions.def (alloca):  Fix return type and args to avoid
9666         type clash with gcc's builtin alloca.
9668 Tue Mar 24 23:33:42 1992  K. Richard Pixley  (rich@cygnus.com)
9670         * configure.in, config/mh-irix4: irix4 support.
9672         * Makefile.in, functions.def, alloca.c: added alloca.
9674 Tue Mar 24 17:34:46 1992  Stu Grossman  (grossman at cygnus.com)
9676         * obstack.c (CALL_FREEFUN):  Make it compile on DECstations.
9678 Thu Mar 19 13:57:42 1992  Fred Fish  (fnf@cygnus.com)
9680         * argv.c:  Fix various external function definitions to be
9681         correct in an ANSI compilation environment.
9683 Sat Mar 14 17:28:17 1992  Fred Fish  (fnf@cygnus.com)
9685         * obstack.c:  Changes to support calling mmalloc functions,
9686         which take an additional argument over malloc functions.
9688 Fri Mar  6 22:01:10 1992  K. Richard Pixley  (rich@cygnus.com)
9690         * added check target.
9692 Thu Feb 27 22:19:39 1992  Per Bothner  (bothner@cygnus.com)
9694         * argv.c:  #include alloca-conf.h (needed by AIX).
9696 Wed Feb 26 18:04:40 1992  K. Richard Pixley  (rich@cygnus.com)
9698         * Makefile.in, configure.in: removed traces of namesubdir,
9699           -subdirs, $(subdir), $(unsubdir), some rcs triggers.  Forced
9700           copyrights to '92, changed some from Cygnus to FSF.
9702 Sat Feb 22 01:09:21 1992  Stu Grossman  (grossman at cygnus.com)
9704         * argv.c:  Check in Fred's version which fixes problems with
9705         alloca().
9707 Fri Feb  7 21:46:08 1992  Stu Grossman  (grossman at cygnus.com)
9709         * makefile.dos:  Remove NUL to keep patch from failing.
9711 Thu Jan 30 22:48:41 1992  Stu Grossman  (grossman at cygnus.com)
9713         * getopt.c (_getopt_internal):  Fix usage of enum has_arg.
9715 Mon Jan 20 18:53:23 1992  Stu Grossman  (grossman at cygnus.com)
9717         * getopt.c, getopt1.c, ../include/getopt.h:  Get latest versions.
9719 Sat Jan 18 16:53:01 1992  Fred Fish  (fnf at cygnus.com)
9721         * argv.c:  New file to build and destroy standard argument
9722         vectors from a command string.
9724         * Makefile.in:  Add argv.c and argv.o to appropriate macros.
9726 Fri Dec 20 12:12:57 1991  Fred Fish  (fnf at cygnus.com)
9728         * configure.in:  Change svr4 references to sysv4.
9730         * rindex.c:  Declare return type of externally used function
9731         strrchr().
9733 Thu Dec 19 18:35:03 1991  John Gilmore  (gnu at cygnus.com)
9735         * Makefile.in:  Remove "***" in normal output, since Make produces
9736         this on errors, and it's convenient to search for.
9738 Tue Dec 17 23:21:30 1991  Per Bothner  (bothner at cygnus.com)
9740         * memcmp.c, memcpy.c, memmove.c, memset.c, strchr.c, strrchr.c:
9741         New ANSI functions.  The old non-ANSI functions (such as bcopy)
9742         should be avoided.
9743         * bcopy.c:  Fix to correctly handle overlapping regions.
9744         * index.c, rindex.c:  Re-write in terms of strchr() and strrchr().
9745         * functions.def:  Add the new functions.
9746         * functions.def:  Add 4th parameter to DEF macro,
9747         an ansidecl.h-style prototype.
9748         * dummy.c:  Use expanded DEF macro to create a dummy function
9749         call, with correct parameter types.  (This avoids some
9750         complaints from gcc about predefined builtins.)
9752         Move the functionality of config/mh-default into Makefile.in.
9753         This avoid duplication, and simplifies things slightly.
9754         * Makefile.in:  Tweak so we don't need config/mh-default.
9755         * README:  Update.
9756         * configure.in:  No longer need config/mh-default.
9757         * config/mh-default:  Deleted.
9758         * config/mh-sysv:  Remove lines copied from old mh-default.
9760 Tue Dec 17 05:46:46 1991  John Gilmore  (gnu at cygnus.com)
9762         * fdmatch.c (fdmatch):  Don't compare st_rdev, which is for
9763         'mknod' device numbers.
9765 Mon Dec 16 12:25:34 1991  Fred Fish  (fnf at cygnus.com)
9767         * fdmatch.c, Makefile.in:  Add new function that takes two
9768         open file descriptors and returns nonzero if they refer to
9769         the same file, zero otherwise.  (used in gdb)
9771 Wed Dec 11 17:40:39 1991  Steve Chamberlain  (sac at rtl.cygnus.com)
9772         From DJ:
9773         * msdos.c: stub functions for dos.
9774         * makefile.dos, configdj.bat: new.
9775         * getopt.c: Don't include alloca-conf.h in a GO32 world.
9778 Tue Dec 10 04:14:49 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
9780         * Makefile.in: infodir belongs in datadir.
9782 Fri Dec  6 23:26:45 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
9784         * Makefile.in: remove spaces following hyphens because bsd make
9785           can't cope.  added standards.text support.  install using
9786           INSTALL_DATA.
9788         * configure.in: remove commontargets as it is no longer a
9789           recognized hook.
9791 Thu Dec  5 22:46:46 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
9793         * Makefile.in: idestdir and ddestdir go away.  Added copyrights
9794           and shift gpl to v2.  Added ChangeLog if it didn't exist. docdir
9795           and mandir now keyed off datadir by default.
9797 Fri Nov 22 19:15:29 1991  John Gilmore  (gnu at cygnus.com)
9799         * Makefile.in:  find-needed.awk does not fit in 14 chars.
9801         * Makefile.in:  Suppress error checking when compiling the test
9802         program, because Ultrix make/sh aborts there due to a bug.
9804 Fri Nov 22 12:23:17 1991  Per Bothner  (bothner at cygnus.com)
9806         * Makefile.in:  Re-did how EXTRA_OFILES is used to be more useful.
9807         * README:  Explained how the auto-configuration works,
9808         and how to add new files and/or configurations.
9810 Fri Nov 22 09:45:23 1991  John Gilmore  (gnu at cygnus.com)
9812         * strtoul.c:  Avoid defining ULONG_MAX if already defined;
9813         cast a const char * to char * for pedants.
9815         * getopt.c:  Only define "const" after local include files get to,
9816         and only if they haven't defined it.
9818 Thu Nov 21 16:58:53 1991  John Gilmore  (gnu at cygnus.com)
9820         * getcwd.c (remove getwd.c): GNU code should call getcwd().  We
9821         emulate it with getwd() if available.  This avoids callers having
9822         to find a MAXPATHLEN or PATH_MAX value from somewhere.
9823         * Makefile.in, functions.def:  getwd->getcwd.
9824         * configure.in:  Use generic case for every system.
9825         * config/mh-{delta88,mach,rs6000,svr4}:  Remove.
9826         * config/mh-sysv:  Use default handling, just add -DUSG.
9828 Thu Nov 14 10:58:05 1991  Per Bothner  (bothner at cygnus.com)
9830         * Makefile.in, config/mh-default: Re-do make magic
9831         so that for the default ("automatic") mode we only
9832         compile the files we actually need.  Do this using
9833         a recursive make:  The top-level generates the list
9834         of needed files (loosely, the ones missing in libc),
9835         and then passes that list to the recursive make.
9836         * config/mh-mach:  Remove obsolete STRERROR-{C,O} macros.
9838 Tue Nov 12 19:10:57 1991  John Gilmore  (gnu at cygnus.com)
9840         RS/6000 host support (grumble).
9842         * configure.in:  Build alloca-conf.h file from alloca-norm.h
9843         (everything else) or alloca-botch.h (rs/6000).
9844         * Makefile.in:  Include . on the include path.
9845         * getopt.c:  Use alloca-conf.h.
9846         * alloca-norm.h:  How to declare alloca on reasonable machines.
9847         * alloca-botch.h: How to declare alloca on braindead machines.
9849 Tue Nov 12 09:21:48 1991  Fred Fish  (fnf at cygnus.com)
9851         * concat.c :  New file, like concat() in gdb but can take a
9852         variable number of arguments rather than fixed at 3 args.  For
9853         now, client applications must supply an xmalloc(), which is a
9854         front end function to malloc() that deals with out-of-memory
9855         conditions.
9857         * Makefile.in:  Add concat.c and concat.o to appropriate macros.
9859 Sat Nov  9 13:29:59 1991  Fred Fish  (fnf at cygnus.com)
9861         * config/mh-svr4:  Add sigsetmask to list of required functions.
9863 Sun Nov  3 11:57:56 1991  Per Bothner  (bothner at cygnus.com)
9865         * vsprintf.c:  New file.
9866         * functions.def, Makefile.in:  Add vsprintf.
9868 Sun Oct 27 16:31:22 1991  John Gilmore  (gnu at cygnus.com)
9870         * configure.in, config/mh-rs6000:  Add rs/6000 host support.
9871         * Makefile.in:  Compile with debug info.
9873 Fri Oct 25 17:01:12 1991  Per Bothner  (bothner at cygnus.com)
9875         * Makefile.in, configure.in, and new files: dummy.c, functions.def,
9876         config/mf-default:  Added a default configuration mode,
9877         which includes into libiberty.a functions that are "missing" in libc.
9878         * strdup.c, vprintf.c, vfprintf.c: New files.
9880 Thu Oct 24 02:29:26 1991  Fred Fish  (fnf at cygnus.com)
9882         * config/hmake-svr4: New file.
9884         * config/hmake-sysv: Add HOST_CFILES and HOST_OFILES.
9886         * basename.c, bcmp.c, bcopy.c, bzero.c, getpagesize.c getwd.c,
9887         index.c, insque.c, rindex.c, spaces.c, strstr.c, vfork.c: New
9888         files containing either portable C versions or emulations using
9889         native library calls.
9891         * strerror.c:  Add copyright, internal documentation, etc.
9893         * strtol.c:  Replace hardwired hex constants with some more
9894         portable macros.  Remove illegal (according to gcc) cast.
9896         * strtoul.c: Replace hardwired hex constant with more portable
9897         macro.
9899         * Makefile.in: Move TARGETLIB and CFLAGS where makefile fragments
9900         can override them.  Add new source and object file names to CFILES
9901         and OFILES respectively.
9903         * configure.in: Add support for SVR4 makefile fragments.
9905 Tue Oct 22 19:00:23 1991  Steve Chamberlain  (steve at cygnus.com)
9907         * Makefile.in: Move RANLIB, AR and AR_FLAGS to where they can be
9908         over-ridden by config/hmake-*
9909         * configure.in: added m88kcvs to sysv list
9911 Fri Oct  4 01:29:08 1991  John Gilmore  (gnu at cygnus.com)
9913         * Makefile.in:  Most hosts need strerror, but one or two don't,
9914         and they override these definitions in the host-dependent makefile
9915         fragment.
9916         * config/hmake-mach:  The odd man out on strerror -- it's supplied.
9917         * strerror.c:  New file.
9919         * strtol.c, strtoul.c:  Add strtol to libiberty, since Mach lacks
9920         it and bfd uses it.
9921         * configure.in, Makefile.in, config/hmake-mach:  Only configure
9922         strtol & strotoul in on Mach.
9924 Tue Sep  3 06:36:23 1991  John Gilmore  (gnu at cygint.cygnus.com)
9926         * obstack.c:  Merge with latest FSF version.
9929 Local Variables:
9930 version-control: never
9931 End: