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