OSDN Git Service

Index: include/ChangeLog
[pf3gnuchains/gcc-fork.git] / libiberty / ChangeLog
1 2005-06-20  Geoffrey Keating  <geoffk@apple.com>
2
3         * strverscmp.c: New.
4         * Makefile.in (CFILES): Add strverscmp.c.
5         (CONFIGURED_OFILES): Add strverscmp.o.
6         (strverscmp.o): New rule.
7         (stamp-functions): Add $(srcdir) to files in source directory.
8         * configure.ac (funcs): Add strverscmp.
9         (AC_CHECK_FUNCS): Add strverscmp.
10         * configure: Regenerate.
11         * functions.texi: Regenerate.
12
13 2005-05-28  Eli Zaretskii  <eliz@gnu.org>
14
15         * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
16         * config.in, configure: Regenerate.
17
18 2005-05-25  Richard Henderson  <rth@redhat.com>
19
20         * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
21         (d_make_comp, d_print_comp): Likewise.
22         (d_special_name): Generate one.
23         * testsuite/demangle-expected: Add a hidden alias test.
24
25 2005-05-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
26
27         * configure.ac: Check declarations for calloc(), getenv(),
28         malloc(), realloc() and sbrk().
29         * config.in: Regenerate.
30         * configure: Likewise.
31
32         * alloca.c (C_alloca): Change "new" to "new_storage".  Use XNEWVEC
33         instead of xmalloc.
34         * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
35         * concat.c (liiberty_concat_ptr): Surround definition with an
36         extern "C" block, if __cplusplus.
37         (concat): Use XNEWVEC instead of xmalloc.
38         (reconcat): Likewise.
39         * cp-demangle.c (struct d_print_template): Rename member
40         "template" to "template_decl".  Adjust use throughout the file.
41         (d_print_resize): Properly cast return value of realloc().
42         (cplus_demangle_print): Same for malloc().
43         (d_demangle): Likewise.
44         * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
45         "typename" to "type_name".
46         * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
47         (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
48         (demangle_template_value_parm): Likewise.
49         (demangle_template): Likewise.
50         (recursively_demangle): Likewise.
51         (do_hpacc_template_literal): Likewise.
52         (do_arg): Likewise.
53         (remember_type): Likewise.
54         (remember_Ktype): Likewise.
55         (register_Btype): Likewise.
56         (string_need): Use XRESIZEVEC instead of xrealloc().
57         * dyn-string.c (dyn_string_init): Use XNEWVEC.
58         (dyn_string_new): Use XNEW.
59         (dyn_string_resize): Use XRESIZEVEC.
60         * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
61         * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
62         Otherwise include <stdlib.h>.
63         (exchange): Cast return value of malloc().
64         * hashtab.c (htab_size): Define as both macro and non-inline
65         function.
66         (htab_elements): Likewise.
67         * getpwd.c (getpwd): Use XNEWVEC.
68         (htab_create_alloc_ex): Use C90 prototype-style.
69         * lrealpath.c (lrealpath): Appropriately cast return value of
70         malloc().
71         * make-relative-prefix.c (save_string): Likewise.
72         * make-temp-file.c (try_dir): Rename from "try".  Adjust use in
73         the file.
74         (choose_tmpdir): Use XNEWVEC.
75         * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
76         * pex-common.c (pex_init_common): Use XNEW.
77         (pex_add_remove): Use XRESIZEVEC.
78         (pex_run): Likewise.
79         (pex_get_status_and_time): Likewise.
80         * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
81         * pex-msdos.c (pex_init): Use XNEW.
82         (pex_msdos_exec_child): Likewise.
83         (pex_msdos_exec_child): Use XRESIZEVEC.
84         * pex-unix.c (pex_wait): Use XNEW.
85         * pex-win32.c (fix_argv): Use XNEWVEC.
86         * pexecute.c (pwait): Likewise.
87         * setenv.c (setenv): Properly cast return value of malloc().
88         * sigsetmask.c (sigsetmask): Rename local variables "old" and
89         "new" to "old_sig" and "new_sig".
90         * sort.c (main): Use XNEWVEC.
91         * spaces.c (spaces): Cast return value of malloc().
92         * strndup.c (strndup): Likewise.
93         * ternary.c (ternary_insert): Use XNEW.
94         * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
95         with an extern "C" block if __cplusplus.
96         * xstrdup.c (xstrdup): Cast return value of memcpy().
97         * xstrerror.c (strerror): Enclose declaration in an extern "C"
98         block if __cplusplus.
99         * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
100
101 2005-05-16  Andreas Jaeger  <aj@suse.de>
102
103         * getpwd.c: Remove unneeded prototype getcwd and move getwd so
104         that it's only declared if needed.
105
106         * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
107         defined.
108
109 2005-05-15  Andreas Jaeger  <aj@suse.de>
110
111         * functions.texi: Regenerated.
112
113 2005-05-15  Eli Zaretskii  <eliz@gnu.org>
114
115         * pexecute.txh: Enclose multi-word data types in @deftypefn in
116         braces.  Minor wording fixes.  Use --- for em-dash.  Use
117         @enumerate in enumerated lists.
118
119         * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
120         braces.
121
122 2005-05-11  Eli Zaretskii  <eliz@gnu.org>
123
124         * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
125         sys/stat.h.
126         (pex_init): Fix last argument to pex_init_common.
127         (pex_djgpp_exec_child): Remove leading underscore from _open,
128         _dup, _dup2, _close, and _spawnv/_spawnvp.  Replace `program',
129         which is undeclared, with `executable', which was unused.  Remove
130         unused variable `e'.  Fix casting of last arg to spawnv/spawnvp.
131         (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
132
133 2005-05-11  Paul Brook  <paul@codesourcery.com>
134
135         * Makefile.in: Regenerate dependencies.
136
137 2005-05-10  Nick Clifton  <nickc@redhat.com>
138
139         * Update the address and phone number of the FSF organization in
140         the GPL notices in the following files:
141         COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
142         choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
143         cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
144         fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
145         gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
146         lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
147         make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
148         obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
149         pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
150         physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
151         sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
152         strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
153         vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
154
155 2005-05-06  Kelley Cook  <kcook@gcc.gnu.org>
156
157         * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
158         * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
159         * configure: Regenerate.
160
161 2005-05-06  Kelley Cook  <kcook@gcc.gnu.org>
162
163         * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
164         Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
165         * aclocal.m4: Don't include accross.m4.
166         * configure, config.in: Regenerate.
167
168 2005-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
169
170         * fopen_unlocked.c (unlock_std_streams): New.
171
172         * functions.texi: Regenerate.
173
174 2005-04-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
175
176         * fopen_unlocked.c (unlock_stream): New.
177         Consolidate unlocking code into a helper function.
178
179         * functions.texi: Regenerate.
180
181 2005-04-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
182
183         * asprintf.c: Include config.h.
184         * basename.c: Likewise.
185         * fdmatch.c: Likewise.
186         * hex.c: Likewise.
187         * lbasename.c: Likewise.
188         * spaces.c: Likewise.
189         * xatexit.c:Likewise.
190         * configure.ac:  Do check declarations for basename, ffs, asprintf
191         and vasprintf for real.
192         * configure: Regenerate.
193
194 2005-04-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
195
196         * argv.c (dupargv): Allocate space of argv[argc], not
197         sizeof(char *) of that amount.  Cast result to char *.
198
199 2005-04-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
200
201         * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
202         Replace not with negate.
203
204 2005-04-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
205
206         * configure.ac: Check declarations for basename, ffs, asprintf,
207         vasprintf.
208         * configure: Regenerate.
209         * config.in: Likewise.
210
211 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
212
213         * Makefile.in (CFILES): Add fopen_unlocked.c.
214         (REQUIRED_OFILES): Add ./fopen_unlocked.o.
215         Regenerate dependencies.
216
217         * configure.ac: Check for stdio_ext.h and __fsetlocking.
218
219         * fopen_unlocked.c: New file.
220
221         * functions.texi, configure, config.in: Regenerate.
222
223 2005-04-04  Ian Lance Taylor  <ian@airs.com>
224
225         * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
226         declaration before statement.
227
228 2005-04-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
229
230         * bcmp.c: Fix warnings and implement using memcmp.
231         * bcopy.c: Fix warnings.
232         * bzero.c: Fix warnings and implement using memset.
233
234         * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
235         -Wstrict-prototypes.
236         * configure, config.in: Regenerate.
237
238         * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
239         warnings and reconcile interfaces with relevant standards.
240
241 2005-04-02  Ian Lance Taylor  <ian@airs.com>
242
243         * cp-demangle.c: Update copyright.
244
245 2005-03-31  Joseph S. Myers  <joseph@codesourcery.com>
246
247         * gettimeofday.c: Add "Supplemental" to @deftypefn.
248         * functions.texi: Regenerate.
249
250 2005-03-28  Ian Lance Taylor  <ian@airs.com>
251
252         * pex-common.c: New file.
253         * pex-one.c: New file.
254         * pexecute.c: New file.
255         * pex-common.h: Include <stdio.h>.
256         (struct pex_obj): Define.
257         (struct pex_funcs): Define.
258         (pex_init_common): Declare.
259         * pex-unix.c: Rewrite.
260         * pex-win32.c: Rewrite.
261         * pex-djgpp.c: Rewrite.
262         * pex-msdos.c: Rewrite.
263         * testsuite/text-pexecute.c: New file.
264         * pexecute.txh: Rewrite.
265         * configure.ac: Check for wait3 and wait4.  Set CHECK to
266         really-check rather than check-cplus-dem.
267         * functions.texi: Rebuild.
268         * Makefile.in: Rebuild dependencies.
269         (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
270         (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
271         * testsuite/Makefile.in (really-check): New target.
272         (check-pexecute, test-pexecute): New targets.
273         * configure: Rebuild.
274
275 2005-03-28  Mark Kettenis  <kettenis@gnu.org>
276
277         * unlink-if-ordinary.c: Include <sys/types.h>.
278
279 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
280
281         Convert libiberty to use ISO C prototype style 7/n.
282         * regex.c (PARAMS): Remove definition.
283         (PREFIX): Unconditionaly define using ISO C ## operator.
284         (init_syntax_once, extract_number, extract_number_and_incr,
285         print_fastmap, print_partial_compiled_pattern,
286         print_compiled_pattern, print_double_string, printchar,
287         convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
288         regex_compile, store_op1, store_op2, insert_op1, insert_op2,
289         at_begline_loc_p, at_endline_p, group_in_compile_stack,
290         insert_space, wcs_compile_range, byte_compile_range,
291         truncate_wchar, re_compile_fastmap, re_compile_fastmap,
292         re_set_registers, re_search, re_search_2, re_search_3, re_match,
293         re_match_2, count_mbs_length, wcs_re_match_2_internal,
294         byte_re_match_2_internal, group_match_null_string_p,
295         alt_match_null_string_p, common_op_match_null_string_p,
296         bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
297         regexec, regerror, regfree): Use ISO C prototype style.
298         * partition.c: (elem_compare): Likewise.
299         * cp-demangle.c (print_usage): Likewise.
300
301 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
302
303         Convert libiberty to use ISO C prototype style 5/n.
304         * random.c (srandom, initstate, setstate, random): Use ISO C
305         prototypes.
306         * putenv.c (putenv): Likewise.
307         * physmem.c (physmem_available, physmem_total, main): Likewise.
308         * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
309         * pex-unix.c (pexecute, pwait): Likewise.
310         * pex-msdos.c (pexecute, pwait): Likewise.
311         * pex-djgpp.c (pexecute, pwait): Likewise.
312         * partition.c (partition_new, partition_delete, partition_union)
313         (elem_compare, partition_print): Likewise.
314         * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
315         _obstack_allocated_p, _obstack_free, obstack_free,
316         _obstack_memory_used, print_and_abort, obstack_next_free,
317         obstack_object_size, obstack_base): Likewise.  Remove codes
318         predicated on !defined(__STDC__).
319         * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
320         objalloc_free_block): Use ISO C prototypes.
321         * mkstemps.c (mkstemps): Likewise.
322         * memset.c (memset): Likewise.
323         * mempcpy.c (mempcpy): Likewise.
324         * rename.c (rename): Likewise.
325         * rindex.c (rindex): Likewise.
326         * setenv.c (setenv, unsetenv): Likewise.
327         * sigsetmask.c (sigsetmask): Likewise.
328         * snprintf.c (snprintf): Likewise.
329         * sort.c (sort_pointers, xmalloc): Likewise.
330         * spaces.c (spaces): Likewise.
331         * splay-tree.c (splay_tree_delete_helper,
332         splay_tree_splay_helper, splay_tree_splay,
333         splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
334         splay_tree_new, splay_tree_xmalloc_allocate,
335         splay_tree_new_with_allocator, splay_tree_delete,
336         splay_tree_insert, splay_tree_remove, splay_tree_lookup,
337         splay_tree_max, splay_tree_min, splay_tree_predecessor,
338         splay_tree_successor, splay_tree_foreach,
339         splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
340         * stpcpy.c (stpcpy): Likewise.
341         * stpncpy.c (stpncpy): Likewise.
342         * strcasecmp.c (strcasecmp): Likewise.
343         * strchr.c (strchr): Likewise.
344         * strdup.c (strdup): Likewise.
345
346 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
347
348         Convert libiberty to use ISO C prototype style 6/n.
349         * strerror.c (init_error_tables, errno_max, strerror, strerrno,
350         strtoerrno, main): Use ISO C prototype style.
351         * strncasecmp.c (strncasecmp): Likewise.
352         * strncmp.c (strncmp): Likewise.
353         * strndup.c (strndup): Likewise.
354         * strrchr.c (strrchr): Likewise.
355         * strsignal.c (init_signal_tables, signo_max, strsignal,
356         strsigno, strtosigno, psignal, main): Likewise.
357         * strstr.c (strstr): Likewise.
358         * strtod.c (strtod, atof): Likewise.
359         * strtol.c (strtol): Likewise.
360         * strtoul.c (strtoul): Likewise.
361         * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
362         ternary_recursivesearch): Likewise.
363         * tmpnam.c (tmpnam): Likewise.
364         * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
365         * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
366         * vfork.c (vfork): Likewise.
367         * vfprintf.c (vfprintf): Likewise.
368         * vprintf.c (vprintf): Likewise.
369         * vsnprintf.c (vsnprintf, checkit, main): Likewise.
370         * vsprintf.c (vsprintf): Likewise.
371         * waitpid.c (waitpid): Likewise.
372         * xatexit.c (xatexit, xatexit_cleanup): Likewise.
373         * xexit.c (xexit): Likewise.
374         * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
375         xcalloc, xrealloc): Likewise.
376         * xmemdup.c (xmemdup): Likewise.
377         * xstrdup.c (xstrdup): Likewise.
378         * xstrerror.c (xstrerror): Likewise.
379         * xstrndup.c (xstrndup): Likewise.
380
381 2005-03-27  Andreas Jaeger  <aj@suse.de>
382
383         * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
384         flags.
385         * configure: Regenerated.
386
387 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
388
389         * getopt1.c (getopt_long_only): Fix thinko.
390
391 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
392
393         Convert libiberty to use ISO C prototype style 4/n.
394         * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
395         htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
396         htab_create_alloc, htab_set_functions_ex, htab_create,
397         htab_try_create, htab_delete, htab_empty,
398         find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
399         htab_find, htab_find_slot_with_hash, htab_find_slot,
400         htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
401         htab_traverse_noresize, htab_traverse, htab_collisions,
402         htab_hash_string, iterative_hash): Use ISO C prototype.
403         * hex.c (hex_init): Likewise.
404         * index.c (index): Likewise.
405         * insque.c (insque, remque): Likewise.
406         * lbasename.c (lbasename): Likewise.
407         * lrealpath.c (lrealpath): Likewise.
408         * make-relative-prefix.c (save_string, split_directories,
409         free_split_directories, make_relative_prefix): Likewise.
410         * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
411         * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
412         md5_buffer, md5_process_bytes, md5_process_block): Likewise.
413         * memchr.c (memchr): Likewise.
414         * memcpy.c (memcpy): Likewise.
415         * memmove.c (memmove): Likewise.
416         * gettimeofday.c (gettimeofday): Likewise.
417         * getruntime.c (get_run_time): Likewise.
418         * getpwd.c (getpwd, getpwd): Likewise.
419         * getpagesize.c (getpagesize): Likewise.
420         * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
421         * getopt.c (my_index, exchange, _getopt_initialize,
422         _getopt_internal, getopt, main): Likewise.
423         * getcwd.c (getcwd): Likewise.
424         * fnmatch.c (fnmatch): Likewise.
425         * floatformat.c (floatformat_always_valid,
426         floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
427         put_field, floatformat_from_double, floatformat_is_valid,
428         ieee_test, main): Likewise.
429         * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
430         fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
431         fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
432         fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
433         fibheap_delete, fibheap_empty, fibheap_extr_min_node,
434         fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
435         fibheap_link, fibheap_cut, fibheap_cascading_cut,
436         fibnode_insert_after, fibnode_remove): Likewise.
437         * ffs.c (ffs): Likewise.
438         * fdmatch.c (fdmatch): Likewise.
439         * dyn-string.c (dyn_string_init, dyn_string_new,
440         dyn_string_delete, dyn_string_release, dyn_string_resize,
441         dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
442         dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
443         dyn_string_insert_cstr, dyn_string_insert_char,
444         dyn_string_append, dyn_string_append_cstr,
445         dyn_string_append_char, dyn_string_substring, dyn_string_eq):
446         Likewise.
447
448 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
449
450         Convert libiberty to use ISO C prototype style 3/n.
451         * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
452         consume_count_with_underscores, code_for_qualifier,
453         qualifier_string, demangle_qualifier, cplus_demangle_opname,
454         cplus_mangle_opname, cplus_demangle_set_style,
455         cplus_demangle_name_to_style, cplus_demangle, grow_vect,
456         ada_demangle, internal_cplus_demangle, squangle_mop_up,
457         work_stuff_copy_to_from, delete_non_B_K_work_stuff,
458         delete_work_stuff, mop_up, demangle_signature,
459         demangle_method_args, demangle_template_template_parm,
460         demangle_expression, demangle_integral_value,
461         demangle_real_value, demangle_template_value_parm,
462         demangle_template, arm_pt, demangle_arm_hp_template,
463         demangle_class_name, demangle_class, iterate_demangle_function,
464         demangle_prefix, gnu_special, recursively_demangle, arm_special,
465         demangle_qualified, get_count, do_type, demangle_fund_type,
466         do_hpacc_template_const_value, do_hpacc_template_literal,
467         snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
468         register_Btype, remember_Btype, forget_B_and_K_types,
469         forget_types, demangle_args, demangle_nested_args,
470         demangle_function_name, string_need, string_delete, string_init,
471         string_clear, string_empty, string_append, string_appends,
472         string_appendn, string_prepend, string_prepends, string_prependn,
473         string_append_template_idx): Use ISO C prootype style.
474         * cp-demint.c (cplus_demangle_fill_component,
475         cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
476         cplus_demangle_v3_components): Likewise.
477
478 2005-03-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
479
480         Convert libiberty to use ISO C prototype style 2/n.
481         * cp-demangle.h: Remove uses of PARAMS.
482         * cp-demangle.c: Likewise.
483         (d_dump, cplus_demangle_fill_name,
484         cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
485         cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
486         d_make_builtin_type, d_make_operator, d_make_extended_operator,
487         d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
488         cplus_demangle_mangled_name, has_return_type,
489         is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
490         d_prefix, d_unqualified_name, d_source_name, d_number,
491         d_identifier, d_operator_name, d_special_name, d_call_offset,
492         d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
493         d_function_type, d_bare_function_type, d_class_enum_type,
494         d_array_type, d_pointer_to_member_type, d_template_param,
495         d_template_args, d_template_arg, d_expression, d_expr_primary,
496         d_local_name, d_discriminator, d_add_substitution,
497         d_substitution, d_print_resize, d_print_append_char,
498         d_print_append_buffer, d_print_error, cplus_demangle_print,
499         d_print_comp, d_print_java_identifier, d_print_mod_list,
500         d_print_mod, d_print_function_type, d_print_array_type,
501         d_print_expr_op, d_print_cast, cplus_demangle_init_info,
502         d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
503         is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
504         print_usage, main):
505
506 2005-03-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
507
508         Convert libiberty to ISO C prototype style 1/n.
509         * _doprnt.c: Remove conditional #include <varargs.h> on
510         ANSI_PROTOTYPES as the latter is always assumed.
511         (_doprnt, checkit, main): Use ISO C prototype.
512         * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
513         * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
514         (dupargv, freeargv, buildargv, main): Use ISO C prototype.
515         * atexit.c (atexit): Likewise
516         * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
517         (asprintf): Use ISO C prototype.
518         * basename.c (basename): Likewise
519         * bcmp.c (bcmp): Likewise.
520         * bcopy.c (bcopy): Likewise.
521         * bzero.c (bzero): Likewise.
522         * bsearch.c (bsearch): Likewise.  Improve const-correctness.
523         * choose-temp.c (choose_temp_base): Likewise.
524         * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
525         (calloc): Use ISO C prototype.
526         * clock.c (clock): Likewise.
527         * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
528         (vconcat_length, vconcat_copy, concat_length, concat_copy,
529         concat_copy2, concat, reconcat, main): Use ISO C prototype.
530         * copysign.c (copysign): Likewise.
531
532 2005-03-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
533
534         * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
535         (REQUIRED_OFILES): Add xstrndup.o.
536         (CONFIGURED_OFILES): Add strndup.o.
537         Regenerate dependencies.
538
539         * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
540
541         * strndup.c, xstrndup.c: New.
542
543         * config.in, configure, functions.texi: Regenerate.
544
545 2005-03-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
546
547         * xmemdup.c, xstrdup.c: Expose the tail call.
548
549 2005-03-09  Mark Mitchell  <mark@codesourcery.com>
550
551         * configure.ac (funcs): Add gettimeofday.
552         * configure: Regenerated.
553         * gettimeofday.c: New file.
554         * Makefile.in (CFILES): Add gettimeofday.
555         (CONFIGURED_OFILES): Add gettimeofday.o.
556         (./gettimeofday.o): New rule.
557
558 2005-03-09  Ian Lance Taylor  <ian@airs.com>
559
560         * pex-os2.c: Remove.
561         * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
562         * Makefile.in (CFILES): Remove pex-os2.c.
563         (CONFIGURED_OFILES): Remove pex-os2.o.
564         (pex-os2.o): Remove target.
565         * configure: Rebuild.
566
567 2005-03-07  Ian Lance Taylor  <ian@airs.com>
568
569         * mpw-config.in: Remove.
570         * mpw-make.sed: Remove.
571         * mpw.c: Remove.
572         * Makefile.in (CFILES): Remove pex-mpw.c.
573         (CONFIGURED_OFILES): Remove pex-mpw.o.
574         (mpw.o, pex-mpw.o): Remove targets.
575         * maint-tool (undoc): Remove reference to mpw.c.
576
577 2005-03-06  DJ Delorie  <dj@redhat.com>
578
579         * configure.ac (target_header_dir): vfork is a stub under djgpp.
580         * configure: Regenerated.
581
582 2005-03-01  Jan Beulich  <jbeulich@novell.com>
583
584         * Makefile.in (CFILES): Add unlink-if-ordinary.c
585         (REQUIRED_OFILES): Add unlink-if-ordinary.o.
586         Add dependencies and rule for unlink-if-ordinary.o.
587         * unlink-if-ordinary.c: New.
588
589 2005-03-01  Ben Elliston  <bje@au.ibm.com>
590
591         * hashtab.c (htab_find_slot_with_hash): Make function
592         documentation clearer.
593
594 2005-02-13  Jason Merrill  <jason@redhat.com>
595
596         * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
597         arguments.
598
599 2005-01-11  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
600
601         * hex.c (hex_value): Group 'unsigned int' together to get correct
602         markup.
603         * functions.texi: Regenerated.
604
605 2004-12-27  H.J. Lu  <hongjiu.lu@intel.com>
606
607         * Makefile.in: Undo to 2004-12-17.
608         * aclocal.m4: Likewise.
609         * config.table: Likewise.
610         * configure.ac: Likewise.
611         * maint-tool: Likewise.
612         * configure: Likewise.
613
614 2004-12-19  H.J. Lu  <hongjiu.lu@intel.com>
615
616         PR bootstrap/19072
617         * Makefile.in (enable_shared): New substitute.
618         (LTTARGETLIB): New.
619         (PREFIXTARGETLIB): New.
620         (LTTESTLIB): New.
621         (PREFIXTESTLIB): New.
622         (CCLD): New.
623         (LINK): New.
624         ($(TARGETLIB)): Use $(LINK) to create libraries and create
625         targets by hand.
626         ($(TESTLIB)): Likewise.
627         (mostlyclean): Don't remove .libs. Remove the libtool object
628         directory.
629
630         * config.table (enable_shared): Removed.
631
632         * configure.ac (enable_static): Set to yes.
633         (AC_PROG_LIBTOOL): Removed.
634         (AM_DISABLE_SHARED): Uncommented.
635         (AM_PROG_LIBTOOL): Likewise.
636         (LIBOBJS): Add `./' to avoid VPATH.
637         (LTLIBOBJS): Likewise.
638         (enable_shared): Substitute.
639         * configure: Regenerated.
640
641 2004-12-18  H.J. Lu  <hongjiu.lu@intel.com>
642
643         * Makefile.in (top_builddir): Set to `.'.
644         (OUTPUT_OPTION): Removed.
645         (LIBTOOL): New.
646         (LTLIBOBJS): New.
647         (EXTRA_LTOFILES): New.
648         (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
649         (all): Remove stamp-picdir.
650         (LTCOMPILE): New.
651         (.c.lo): New rule.
652         (REQUIRED_LTOFILES): New.
653         (CONFIGURED_LTOFILES): New.
654         ($(TARGETLIB)): Check .libs for PIC object files. Depend on
655         $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
656         (stamp-picdir): Completely removed.
657         (maint-missing): Pass $(REQUIRED_LTOFILES)
658         $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
659         $(CONFIGURED_OFILES)
660         (maint-buildall): Depend on $(REQUIRED_LTOFILES)
661         $(CONFIGURED_LTOFILES).
662         (mostlyclean): Also remove *.lo .libs.
663         Run "make maint-deps".
664
665         * aclocal.m4: Include ../libtool.m4.
666
667         * config.table: Don't check --enable-shared.
668
669         * configure.ac (AC_PROG_LIBTOOL): Add.
670         (AC_PROG_CC_C_O): Removed.
671         (OUTPUT_OPTION): Removed.
672         (NO_MINUS_C_MINUS_O): Removed.
673         (ltpexecute): New substitute.
674         (LIBOBJS): Cleanup.
675         * configure: Regenerated.
676
677         * maint-tool: Updated for .lo/libtool.
678
679 2004-12-11  Ben Elliston  <bje@au.ibm.com>
680
681         * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
682         * configure: Regenerate.
683         * config.in: Likewise.
684
685 2004-12-07  DJ Delorie  <dj@redhat.com>
686
687         * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
688         that recursion (and thus large stack space) is not needed.
689
690 2004-11-29  Matt Kraai  <kraai@alumni.cmu.edu>
691
692         * pex-unix.c: Fix the spelling of longjmp.
693
694 2004-11-23  Ian Lance Taylor  <ian@wasabisystems.com>
695
696         PR other/18623
697         * cp-demangle.c (d_call_offset): Remove useless local variables
698         offset and virtual_offset.
699         * cplus-dem.c (ada_demangle): Remove useless local variable
700         at_start_name.
701         (demangle_template): Remove useless local variable start.
702
703 2004-11-19  Roger Sayle  <roger@eyesopen.com>
704
705         * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
706         "ansidecl.h" to avoid redeclaration errors with native compilers.
707         * regex.c: Protect config.h from multiple inclusion.
708
709 2004-11-12  Mike Stump  <mrs@apple.com>
710
711         * Makefile.in (libiberty.html): Fix html generation.
712
713 2004-09-08  Adam Nemet  <anemet@lnxw.com>
714
715         * vasprintf.c: Accept __va_copy in addition to va_copy.
716
717 2004-09-03  Paolo Bonzini  <bonzini@gnu.org>
718
719         * configure: Regenerate.
720
721 2004-09-02  Paolo Bonzini  <bonzini@gnu.org>
722
723         * configure.ac: Do not enable multilibs for build-side libiberty.
724
725 2004-06-29  Danny Smith  <dannysmith@users.sourceforge.net>
726
727         * lrealpath.c (lrealpath): Add _WIN32 support.
728
729 2004-06-28  Zack Weinberg  <zack@codesourcery.com>
730
731         * cp-demangle.h: Declare cplus_demangle_operators,
732         cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
733         cplus_demangle_type as static if IN_GLIBCPP_V3.
734
735 2004-06-28  Ian Lance Taylor  <ian@wasabisystems.com>
736
737         PR other/16240
738         * cp-demangle.c (d_expr_primary): Check for a failure return from
739         cplus_demangle_type.
740         * testsuite/demangle-expected: Add test case.
741
742 2004-05-31  Danny Smith  <dannysmith@users.sourceforge.net>
743
744         * pex-win32.c (fix_argv): Expand comment.
745
746 2004-05-25  Daniel Jacobowitz  <drow@false.org>
747
748         * Makefile.in: Add .NOEXPORT.
749
750 2004-04-29  Douglas B Rupp  <rupp@gnat.com>
751
752         * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
753         copyright.
754
755 2004-04-26  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
756
757         * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
758         * configure: Regenerate.
759
760 2004-04-22  Richard Henderson  <rth@redhat.com>
761
762         * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
763         (CHAR_BIT): Provide default.
764         (struct prime_ent, prime_tab): New.
765         (higher_prime_index): Rename from higher_prime_number, return index.
766         (htab_mod_1): New.
767         (htab_mod, htab_mod_m2): Use it.
768         (htab_create_alloc, htab_create_alloc_ex): Store prime index.
769         (htab_expand): Likewise.
770         * configure.ac: Check for stdint.h.
771         (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
772         * config.in, configure: Rebuild.
773
774 2004-04-13  Ian Lance Taylor  <ian@wasabisystems.com>
775
776         * strerror.c: Include config.h, and redefine sys_nerr and
777         sys_errlist, before including ansidecl.h and libiberty.h.
778
779 2004-04-13  Jeff Law  <law@redhat.com>
780
781         * hashtab.c (htab_remove_elt_with_hash): New function.
782         (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
783
784 2004-03-31  Richard Henderson  <rth@redhat.com>
785
786         * hashtab.c (htab_size): Move to top of file; mark inline.
787         (htab_elements): Likewise.
788         (htab_mod, htab_mod_m2): New.
789         (htab_delete): Refactor htab->size and htab->entries.
790         (htab_empty): Likewise.
791         (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
792         (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
793         (htab_clear_slot): Use htab_size, htab_elements.
794         (htab_traverse_noresize, htab_traverse): Likewise.
795
796 2004-03-17  Ian Lance Taylor  <ian@wasabisystems.com>
797
798         * pex-unix.c (pexecute): Use vfork instead of fork, with
799         appropriate changes to make this safe.
800         * pex-common.h (STDERR_FILE_NO): Define.
801
802         * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
803         an 80 column screen.  Run maint-deps.
804
805 2004-03-09  Kelley Cook  <kcook@gcc.gnu.org>
806
807         * configure.ac: Bump version to 2.59.  Apply suggested autoupdates.
808         * acconfig.h: Delete redundant file.
809         * config.in: Regenerate.
810         * configure: Regenerate.
811
812 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
813
814         * configure: Regenerate for config/accross.m4 correction.
815
816 2004-03-07  Andreas Jaeger  <aj@suse.de>
817
818         * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
819         prototypes.
820         (main): Initialize style.
821
822 2004-02-24  Ian Lance Taylor  <ian@wasabisystems.com>
823
824         * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
825         D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
826         D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
827         * cp-demangle.c (cplus_demangle_builtin_types): Change char and
828         short types to D_PRINT_DEFAULT.  Change other integer types to use
829         new D_PRINT_* values where appropriate.  Change float types to
830         D_PRINT_FLOAT.
831         (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
832         values.
833         * testsuite/demangle-expected: Adjust two test cases.
834
835         * cp-demangle.c (d_print_function_type): Print a space before the
836         parenthesis around the function type in more cases.
837         * testsuite/demangle-expected: Adjust one test case.
838
839         * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
840         parentheses around a cast.
841         * testsuite/demangle-expected: Adjust two test cases to match new
842         output.
843
844         * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
845
846         * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
847         push more than one of the same CV-qualifier on the top of the
848         stack.
849         (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
850         move the CV-qualifiers to apply to the element type instead.
851         (d_print_array_type): When checking the modifiers, keep looking
852         past ones which have been printed already.
853         * testsuite/demangle-expected: Add three test cases.
854
855 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
856
857         * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
858         empty string correctly.
859
860         * cp-demangle.c (__cxa_demangle): It is not an error if status is
861         not NULL.  It is an error if the mangled name is the same as a
862         built-in type name.
863         (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
864         than cplus_demangle_v3.
865
866         * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
867         the associated #define of RETURN_ON_ALLOCATION_FAILURE.
868
869 2004-02-16  Matt Kraai  <kraai@alumni.cmu.edu>
870
871         * regex.c: Include <ansidecl.h>.
872         (regcomp): Cast i to int.
873         (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
874
875 2004-01-25  Ian Lance Taylor  <ian@wasabisystems.com>
876
877         * configure.ac: Add m4_pattern_allow(LIBOBJS).
878         * configure: Regenerate.
879
880 2004-01-22  DJ Delorie  <dj@redhat.com>
881
882         * Makefile.in: Convert to ./ throughout.  Rebuild dependencies
883         with explicit build rules.
884         (VPATH): Remove.
885         (.c.o): Poison.
886         * configure.ac (pexecute, LIBOBJS): Add ./ .
887         * maint-tool: Build dependencies with explicit rules.
888
889 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
890
891         * strdup.c (strdup): Constify the argument.
892
893 2004-01-14  Loren J. Rittle  <ljrittle@acm.org>
894
895         * Makefile.in (distclean): Remove config.cache.
896
897 2004-01-13  Daniel Jacobowitz  <drow@mvista.com>
898
899         * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
900         takes two parameters.
901         * cp-demint.c (cplus_demangle_fill_component): Likewise.
902
903 2004-01-12  Ian Lance Taylor  <ian@wasabisystems.com>
904
905         * cp-demangle.c: Include "cp-demangle.h".  If IN_GLIBCPP_V3 is
906         defined, rename some functions which are to become static via
907         #define.
908         (CP_STATIC_IF_GLIBCPP_V3): Define.
909         (struct d_operator_info): Move definition to cp-demangle.h, and
910         rename to demangle_operator_info.  Change all uses.
911         (enum d_builtin_type_print): Move definition to cp-demangle.h.
912         (struct d_builtin_type_info): Move definition to cp-demangle.h,
913         and rename to demangle_builtin_type_info.  Change all uses.
914         (enum d_comp_type): Move definition to include/demangle.h, and
915         rename to demangle_component_type, and change all enums to start
916         with DEMANGLE_COMPONENT_ instead of D_.  Change all uses.
917         (struct d_comp): Move definition to include/demangle.h, and rename
918         to demangle_component.  Change all uses.
919         (struct d_info): Move definition to cp-demangle.h.
920         (cplus_demangle_fill_name): New function.
921         (cplus_demangle_fill_extended_operator): New function.
922         (cplus_demangle_fill_ctor): New function.
923         (cplus_demangle_fill_dtor): New function.
924         (d_make_empty): Remove type parameter.  Change all callers.
925         (d_make_name): Use cplus_demangle_fill_name.
926         (d_make_extended_operator): Use
927         cplus_demangle_fill_extended_operator.
928         (d_make_ctor): Use cplus_demangle_fill_ctor.
929         (d_make_dtor): Use cplus_demangle_fill_dtor.
930         (cplus_demangle_mangled_name): Rename from d_mangled_name.  Make
931         non-static by default.  Change all callers.
932         (cplus_demangle_operators): Rename from d_operators.  Change all
933         uses.  Make non-static by default.  Add sentinel at end of array.
934         (d_operator_name): Adjust initialization of high for new sentinel
935         in cplus_demangle_operators.
936         (cplus_demangle_builtin_types): Rename from d_builtin_types.
937         Change all uses.  Make non-static by default.  Change initializer
938         to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
939         (cplus_demangle_type): Rename from d_type.  Make non-static by
940         default.  Change all callers.
941         (cplus_demangle_init_info): Rename from d_init_info.  Make
942         non-static by default.  Change all callers.
943         * cp-demangle.h: New file.
944         * cp-demint.c: New file.
945         * Makefile.in: Rebuild dependencies.
946         (CFILES): Add cp-demint.c.
947         (REQUIRED_OFILES): Add cp-demint.o.
948
949 2004-01-09  Kelley Cook  <kcook@gcc.gnu.org>
950
951         * configure.in:  Rename file to ...
952         * configure.ac:  ... this.
953         * Makefile.in: Update a comment for above change.
954         * README: Likewise.
955         * config.in: Regenerate.
956
957 2004-01-02  Ian Lance Taylor  <ian@wasabisystems.com>
958
959         * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
960         CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
961         * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
962         demangling template parameters.
963         * testsuite/test-demangle.c (fail): New static function.
964         (main): Support new options in input file: --no-params,
965         --is-v3-ctor, and --is-v3-dtor.
966         * testsuite/demangle-expected: Add --no-params to most tests, and
967         add the correct result when parameters are not demangled.  Add
968         some simple tests for V3 constructor/destructor recognition.
969
970 2003-12-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
971
972         * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
973
974 2003-12-22  Daniel Jacobowitz  <drow@mvista.com>
975
976         PR debug/13272
977         * Makefile.in (lbasename.o): Depend on filenames.h.
978         * lbasename.c: Include "filenames.h" instead of defining
979         its macros locally.
980
981 2003-12-22  Ian Lance Taylor  <ian@wasabisystems.com>
982
983         * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
984         dynamic arrays.
985         (struct d_operator_info): Add len field.
986         (struct d_builtin_type_info): Add len and java_len fields.
987         (struct d_standard_sub_info): Add simple_len, full_len, and
988         set_last_name_len fields.
989         (struct d_comp): Add len field to s_string.
990         (struct d_info): Add send, did_subs, and expansion fields.
991         (d_append_string_constant): Define.
992         (d_append_string): Remove.  Change all users to use
993         d_append_string_constant or d_append_buffer instead.
994         (d_make_sub): Add len parameter.  Change all callers.
995         (d_name): Increase expansion when substituting std::.
996         (d_unqualified_name): Increase expansion for an operator.
997         (d_number): Don't use multiplication for negative numbers.
998         (d_identifier): Make sure there are enough characters in the
999         string for the specified length.  Adjust expansion for an
1000         anonymous namespace.
1001         (d_operators): Initialize len field.
1002         (d_special_name, d_ctor_dtor_name): Increase expansion.
1003         (d_builtin_types): Initialize len and java_len fields.
1004         (d_type): Increase expansion for a builtin type.
1005         (d_cv_qualifiers): Increase expansion for each qualifier.
1006         (d_bare_function_type): Decrease expansion when removing single
1007         void parameter.
1008         (d_template_param): Increment did_subs.
1009         (d_expression): Increase expansion for an operator.
1010         (d_expr_primary): Decrease expansion for a type we will print
1011         specially.
1012         (standard_subs): Initialize new fields.
1013         (d_substitution): Increment did_subs when doing a normal
1014         substitution.  Increase expansion for a special substitution.
1015         (d_print): Add estimate parameter.  Change all callers.
1016         (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
1017         (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
1018         (d_print_java_identifier): Rename from d_print_identifier.  Handle
1019         only Java case.  Change caller.
1020         (d_init_info): Change return type to void.  Change all callers.
1021         Initialize send, did_subs, and expansion fields.  Do not
1022         initialize comps and subs fields.
1023         (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
1024         arrays on stack.  Make an estimate of the length of the demangled
1025         name.  Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
1026         (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
1027         subs arrays on stack.
1028
1029 2003-12-20  Ian Lance Taylor  <ian@wasabisystems.com>
1030
1031         * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
1032         after the identifier.
1033         * testsuite/demangle-expected: Add test case.
1034
1035 2003-12-19  Ian Lance Taylor  <ian@wasabisystems.com>
1036
1037         Fix for PR c++/13447:
1038         * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
1039         (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
1040         (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
1041         D_COMP_QUAL_NAME.
1042         (is_ctor_or_dtor): Likewise.
1043         (d_local_name): Use D_COMP_LOCAL_NAME rather than
1044         D_COMP_QUAL_NAME.
1045         (d_print_comp) [D_COMP_LOCAL_NAME]: New.
1046         (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
1047         D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
1048         (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
1049         * testsuite/demangle-expected: Add two test cases.
1050
1051         * cp-demangle.c (d_print_function_type): Clear the global modifier
1052         list when printing the modifiers, not just when printing the
1053         function parameters.
1054         * testsuite/demangle-expected: Add two test cases.
1055
1056 2003-12-15  Ian Lance Taylor  <ian@wasabisystems.com>
1057
1058         * cp-demangle.c (d_print_function_type): Print the function
1059         parameters with no modifiers.
1060         * testsuite/demangle-expected: Add test case.
1061
1062         * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
1063         expect that we've read the entire string.
1064         (is_ctor_or_dtor): Don't expect that we've read the entire
1065         string--reverse patch of 2003-11-29.
1066
1067 2003-12-15  Brendan Kehoe  <brendan@zen.org>
1068
1069         * libiberty/Makefile.in (floatformat.o): Add dependency on
1070         config.h to accompany change of 2003-12-03.
1071
1072 2003-12-15  Ian Lance Taylor  <ian@wasabisystems.com>
1073
1074         Fix handling of constructor/destructor of standard substitution:
1075         * cp-demangle.c (struct d_standard_sub_info): Define.
1076         (d_substitution): Add prefix argument.  Change all callers.
1077         Rework handling of standard substitutions to print full name when
1078         qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
1079         * testsuite/demangle-expected: Add test case.
1080
1081         Fix handling of negative literal constants:
1082         * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
1083         (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
1084         (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
1085         (d_print_comp): Handle D_COMP_LITERAL_NEG.
1086         * testsuite/demangle-expected: Add test case.
1087
1088 2003-12-04  Ian Lance Taylor  <ian@wasabisystems.com>
1089
1090         * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
1091         (d_last_char): Define new macro.
1092         (d_make_name): Reject an empty name.
1093         (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
1094         (d_substitution, d_print_identifier): Likewise.
1095         (d_print_comp) [D_COMP_OPERATOR]: Likewise.
1096         (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
1097         (d_print_mod) Use new d_last_char macro.
1098         (d_print_cast): Use new d_last_char macro.
1099         (is_ctor_or_dtor): Don't leak memory.
1100
1101         Fix handling of member function modifiers:
1102         * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
1103         D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
1104         (d_dump): Dump new d_comp_type values.
1105         (d_make_comp): Accept new d_comp_type values.
1106         (has_return_type): Only accept _THIS variants of qualifiers.
1107         (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
1108         qualifiers.
1109         (d_cv_qualifiers): Add member_fn parameter.  Change all callers.
1110         (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
1111         qualifiers and printing them at the end, add _THIS qualifiers to
1112         the modifier list.
1113         (d_print_comp) [D_COMP_*_THIS]: New cases.
1114         (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
1115         qualifiers.
1116         (d_print_mod_list): Add suffix parameter.  Change all callers.
1117         Keep walking the list even if the current modifier has been
1118         printed.
1119         (d_print_mod): Handle new _THIS qualifiers.
1120         (d_print_function_type): Handle new _THIS qualifiers when deciding
1121         whether to print a parenthesis.  Put a space before the
1122         parenthesis in some cases.  Call d_print_mod_list again at the
1123         end, passing suffix as 1.
1124         (is_ctor_or_dtor): Look for new _THIS qualifiers.
1125         * testsuite/demangle-expected: Add test case.
1126
1127         Fix for PR gcc/13304:
1128         * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
1129         before the '<' is itself a '<', insert a space.
1130         (d_print_cast): Likewise.
1131         * testsuite/demangle-expected: Add test case.
1132
1133         Fix for PR gcc/13244:
1134         * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
1135         which uses the '>' operator in an extra layer of parens.
1136         * testsuite/demangle-expected: Add test case.
1137
1138 2003-12-03  Ian Lance Taylor  <ian@wasabisystems.com>
1139
1140         * floatformat.c: Include "config.h" and <string.h> if available.
1141         (INFINITY, NAN): Define if not defined by <math.h>.
1142         (floatformat_to_double): Handle NaN, infinity, and denormalized
1143         numbers.
1144         (floatformat_from_double): Likewise.
1145         (ieee_test): In debugging code, use little endian rather than big
1146         endian.  Correct tests to handle NaN and to check correct sign of
1147         zero.  Omit m68k extended test.
1148         (main): Add more debugging cases.
1149
1150 2003-11-29  Ian Lance Taylor  <ian@wasabisystems.com>
1151
1152         * cp-demangle.c (d_demangle): Only return success if we consumed
1153         the entire demangled string.
1154         (is_ctor_or_dtor): Likewise.
1155
1156         * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
1157         to restore expected result of EDG test case to original expected
1158         result.
1159
1160 2003-11-26  Ian Lance Taylor  <ian@wasabisystems.com>
1161
1162         * cp-demangle.c (struct d_print_mod): Add templates field.
1163         (d_make_builtin_type): Check for NULL type.
1164         (d_make_extended_operator): Check for NULL name.
1165         (d_make_ctor, d_make_dtor): Likewise.
1166         (d_mangled_name): Add top_level parameter.  Change all callers.
1167         (d_encoding): If DMGL_PARAMS is not set, strip off initial
1168         CV-qualifiers.
1169         (d_type): Check some return values we rely on.
1170         (d_bare_function_type, d_array_type): Likewise.
1171         (d_pointer_to_member_type, d_template_args): Likewise.
1172         (d_add_substitution): Fail if argument is NULL.
1173         (d_print_resize): Check whether buf is NULL.
1174         (d_print_comp): Save current templates list with each modifier.
1175         Don't pass the modifier list down when printing a template.
1176         (d_print_cast): Don't pass the modifier list down when printing a
1177         template.
1178         (d_print_mod_list): Temporarily set templates list while printing
1179         a modifier.
1180         (d_print_mod): Check that buf is not NULL before using it.
1181         (d_print_function_type): Print parens if there is no modifier.
1182         (d_init_info): Permit as many substitutions as there are
1183         characters in the mangled name.
1184         * testsuite/demangle-expected: Add two new test cases.
1185
1186 2003-11-25  Ian Lance Taylor  <ian@wasabisystems.com>
1187
1188         * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
1189         d_demangle.
1190
1191 2003-11-22  Ian Lance Taylor  <ian@wasabisystems.com>
1192
1193         * cp-demangle.c (d_encoding): Add top_level parameter.  Change all
1194         callers.
1195         (print_usage): Display new -p option.
1196         (long_options): Add --no-params.
1197         (main): Accept and handle -p.
1198
1199 2003-11-21  Ian Lance Taylor  <ian@wasabisystems.com>
1200
1201         * cp-demangle.c (has_return_type): Skip qualifiers when checking
1202         whether we have a template.
1203         * testsuite/demangle-expected: Add four new tests.
1204
1205 2003-11-20  Ian Lance Taylor  <ian@wasabisystems.com>
1206
1207         * testsuite/demangle-expected: Minor changes to match output of
1208         new demangler: adjust whitespace in four tests, and change order
1209         of qualifiers in one test.
1210
1211         * cp-demangle.c: Complete rewrite.
1212
1213 2003-11-19  Mark Mitchell  <mark@codesourcery.com>
1214
1215         * cp-demangle.c (demangle_type): Correct thinko in substitution
1216         processing.
1217
1218 2003-11-18  Ian Lance Taylor  <ian@wasabisystems.com>
1219
1220         * cp-demangle.c (demangle_operator_name): Remove space before
1221         "sizeof".
1222         (demangle_type_ptr): Put qualifiers in the right place.  Handle
1223         qualifiers in pointer to member specially.
1224         (demangle_type): Handle qualifiers for pointer or reference
1225         specially.  Handle function type.
1226         (demangle_local_name): Save and restore caret around demangling of
1227         initial encoding.
1228
1229         * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
1230         cplus_demangle.
1231
1232         * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
1233
1234 2003-10-31  Andreas Jaeger  <aj@suse.de>
1235
1236         * floatformat.c (floatformat_always_valid): Add unused attribute.
1237
1238 2003-10-30  Josef Zlomek  <zlomekj@suse.cz>
1239
1240         Jan Hubicka <jh@suse.cz>
1241         * vasprintf.c (int_vasprintf): Pass va_list by value.
1242         Use va_copy for copying va_list.
1243         (vasprintf): Pass va_list by value.
1244
1245 2003-10-30  Josef Zlomek  <zlomekj@suse.cz>
1246
1247         * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
1248         instead of increasing n_elements when inserting to deleted slot.
1249
1250 2003-10-20  J. Brobecker  <brobecker@gnat.com>
1251
1252         * cplus-dem.c (demangle_template): Register a new Btype only
1253         when needed.
1254         * testsuite/demangle-expected: Add a new test.
1255
1256 2003-10-16  H.J. Lu  <hongjiu.lu@intel.com>
1257
1258         * testsuite/demangle-expected: Update the expected output of
1259         _GLOBAL__I__Z2fnv.
1260
1261 2003-10-02  Daniel Jacobowitz  <drow@mvista.com>
1262
1263         * strerror.c: Revert last change.  Declare static sys_nerr
1264         and sys_errlist using different names.
1265
1266 2003-10-01  Daniel Jacobowitz  <drow@mvista.com>
1267
1268         * strerror.c: Don't provide or reference sys_errlist if
1269         strerror is available.
1270
1271 2003-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1272
1273         * configure.in: Check if $MAKEINFO is missing.
1274         * configure: Regenerated.
1275
1276 2003-09-24  Daniel Jacobowitz  <drow@mvista.com>
1277
1278         * configure.in: Use AC_PROG_CPP_WERROR.
1279         * configure: Regenerated.
1280
1281 2003-09-22  Andrew Cagney  <cagney@redhat.com>
1282
1283         * floatformat.c (floatformat_i387_ext_is_valid): New function.
1284         (floatformat_always_valid): New function.
1285         (floatformat_i387_ext): Initialize new "is_valid" field to
1286         "floatformat_i387_ext_is_valid".
1287         (floatformat_ieee_single_little): Initialize "is_valid" field to
1288         floatformat_always_valid.
1289         (floatformat_ieee_double_big): Ditto.
1290         (floatformat_ieee_double_little): Ditto.
1291         (floatformat_ieee_double_little): Ditto.
1292         (floatformat_ieee_double_littlebyte_bigword): Ditto.
1293         (floatformat_i960_ext): Ditto.
1294         (floatformat_m88110_ext): Ditto.
1295         (floatformat_m88110_harris_ext): Ditto.
1296         (floatformat_arm_ext_big): Ditto.
1297         (floatformat_arm_ext_littlebyte_bigword): Ditto.
1298         (floatformat_ia64_spill_big): Ditto.
1299         (floatformat_ia64_spill_little): Ditto.
1300         (floatformat_ia64_quad_big): Ditto.
1301         (floatformat_ia64_quad_little): Ditto.
1302         (floatformat_ia64_quad_little): Ditto.
1303         (floatformat_is_valid): Call "is_valid".
1304
1305 2003-09-15  Andrew Cagney  <cagney@redhat.com>
1306
1307         * floatformat.c (get_field): Make "data" constant.
1308         (floatformat_is_valid, floatformat_to_double): Make "from"
1309         constant, fix casts.
1310         (floatformat_from_double): Make "from" constant.
1311
1312 2003-09-15  Daniel Jacobowitz  <drow@mvista.com>
1313
1314         * floatformat.c (floatformat_is_valid): New function.
1315         (get_field, put_field): Correct comments.
1316
1317 2003-09-06  Josef Zlomek  <zlomekj@suse.cz>
1318
1319         * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
1320         FIBHEAPKEY_T.
1321
1322 2003-09-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1323
1324         PR bootstrap/12100
1325         * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
1326         * configure: Rebuilt.
1327
1328 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
1329
1330         * aclocal.m4: Include acx.m4 and no-executables.m4.
1331         (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
1332         (LIB_AC_PROG_CC): Remove.
1333         * configure.in: Update AC_PREREQ to 2.57.  Use GCC_NO_EXECUTABLES.
1334         Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
1335         LIB_AC_PROG_CC.  Use AC_LIBOBJ.  Call AC_ISC_POSIX later, only if
1336         performing link tests.
1337         * configure: Regenerated.
1338
1339 2003-08-12  Nathanael Nerode  <neroden@gcc.gnu.org>
1340
1341         * cp-demangle.c: Clarify what package(s) this is part of.
1342
1343 2003-07-05  Danny Smith  <dannysmith@users.sourceforge.net>
1344
1345         * pex-win32.c (pexecute): Mark parameters this_pname and
1346         temp_base as unused. Remove unused variables retries,
1347         sleep_interval. Initialize org_stdin, org_stdout.
1348         (pwait): Mark parameter flags as unused.
1349
1350 2003-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
1351
1352         * pex-win32.c (fix_argv): Ensure that the executable pathname
1353         uses Win32 backslashes.
1354         (pexecute): Cast away constness when assigning *errmsg_arg.
1355
1356 2003-06-26  H.J. Lu <hongjiu.lu@intel.com>
1357
1358         * testsuite/demangle-expected: Add more GNU V3 testcases.
1359
1360 2003-06-22  Zack Weinberg  <zack@codesourcery.com>
1361
1362         * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
1363         not HC_ASCII and HC_EBCDIC.
1364         Add documentation in form expected by gather-docs.
1365         * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
1366         * Makefile.in, functions.texi: Regenerate.
1367
1368 2003-06-21  Zack Weinberg  <zack@codesourcery.com>
1369
1370         * safe-ctype.c: Separate out EOF==-1 check.  Use HOST_CHARSET
1371         for charset determination.
1372
1373 2003-06-19  Dara Hazeghi  <dhazeghi@yahoo.com>
1374
1375         * configure.in: Add check for malloc.h needed by
1376         m68k for function free().
1377         * configure: Regenerated.
1378         * config.in: Add HAVE_MALLOC_H.
1379         * hashtab.c: include malloc.h were available for
1380         free().
1381
1382 2003-06-09  Albert Chin-A-Young  <china@thewrittenword.com>
1383
1384         PR bootstrap/10974
1385         * physmem.c: Update comment.
1386         * configure.in: Modify test for _system_configuration for older
1387         AIX systems.
1388
1389         * config.in, configure: Regenerated.
1390
1391 2003-06-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1392
1393         PR other/10810
1394         * test-demangle.c (getline): Fix fence-post error.
1395
1396 2003-06-03  Nick Clifton  <nickc@redhat.com>
1397
1398         * asprintf.c: Change comment to note that -1 is returned upon
1399         error.
1400         * vasprintf.c: Likewise.
1401         (vasprintf): Return -1 upon error.
1402         * functions.texi: Document changes to asprintf and vasprintf.
1403
1404 2003-05-19  Kelley Cook  <kelleycook@wideopenwest.com>
1405
1406         * config.table: Accept i[345867]86 variant.
1407
1408 2003-05-15  Jim Blandy  <jimb@redhat.com>
1409
1410         * hex.c (_hex_value): Make this unsigned.
1411         (hex_value): Update documentation for new return type.  hex_value
1412         now expands to an unsigned int expression, to avoid unexpected
1413         sign extension when we store it in a bfd_vma, which is larger than
1414         int on some platforms.
1415         * functions.texi: Regenerated.
1416
1417 2003-05-07  Josef Zlomek  <zlomekj@suse.cz>
1418
1419         * splay-tree.c (splay_tree_predecessor): Fix comment.
1420         (splay_tree_successor): Fix comment.
1421
1422 2003-05-07  Jason Merrill  <jason@redhat.com>
1423
1424         * hashtab.c (iterative_hash): New fn.
1425         * configure.in: Add AC_C_BIGENDIAN_CROSS.
1426         * aclocal.m4: Include accross.m4.
1427         * configure, config.in: Regenerate.
1428
1429 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1430
1431         * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
1432         * configure: Regenerate.
1433
1434 2003-05-03  Carlo Wood  <carlo@alinoe.com>
1435
1436         * cp-demangle.c: Fix typo in "char_traints" string-literal.
1437
1438 2003-04-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1439
1440         * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
1441         (main): Test that we don't write too much data.
1442
1443 2003-04-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1444
1445         * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
1446         vsnprintf.
1447         * snprintf.c, vsnprintf.c: New files.
1448         * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
1449         (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
1450         Regenerate dependencies.
1451
1452         * functions.texi, configure, config.in: Regenerated.
1453
1454 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1455
1456         * mempcpy.c, stpcpy.c, stpncpy.c: New files.
1457         * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
1458         and stpncpy.
1459         * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
1460         (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
1461         Regenerate dependencies.
1462
1463         * functions.texi, configure, config.in: Regenerated.
1464
1465 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1466
1467         * argv.c: Fix comments.
1468         * calloc.c: Don't unnecessarily include "libiberty.h".
1469         (bzero): Add prototype.
1470         * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1471         * getcwd.c (getcwd): Use standard definition to avoid conflicts
1472         with system headers.
1473         * hashtab.c (htab_traverse): Delete unused variables.
1474         * rename.c: Include "ansidecl.h".
1475         (rename): Use standard definition to avoid conflicts with system
1476         headers.
1477         * strsignal.c: Rely on ANSI_PROTOTYPES.
1478         * strstr.c: Check GNUC >= 2, not GNUC == 2.
1479         * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1480         * vprintf.c: Include "ansidecl.h" earlier, rely on
1481         ANSI_PROTOTYPES.
1482         * vsprintf.c: Include "ansidecl.h" earlier, rely on
1483         ANSI_PROTOTYPES and possibly include <stdarg.h>.
1484
1485         * Makefile.in: Regenerate dependencies.
1486
1487 2003-04-15  DJ Delorie  <dj@redhat.com>
1488
1489         * maint-tool (deps): Scan for headers in $srcdir also.
1490
1491 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1492
1493         PR target/10338
1494         PR bootstrap/10198
1495         PR bootstrap/10140
1496         * getopt.c (exchange, _getopt_initialize): Use mempcpy not
1497         __mempcpy.
1498         * regex.c (regerror): Likewise.
1499
1500 2003-04-14  Roger Sayle  <roger@eyesopen.com>
1501
1502         * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
1503         * memchr.c: Likewise.
1504         * strcasecmp.c: Likewise.
1505         * strncasecmp.c: Likewise.
1506         * strncmp.c: Likewise.
1507         * xatexit.c: Likewise.
1508         * xmalloc.c: Likewise.
1509
1510         * copysign.c: Use traditional function declaration instead of DEFUN.
1511         * sigsetmask.c: Likewise.
1512
1513         * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
1514         * memset.c: Likewise.
1515
1516         * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
1517         * memmove.c: Likewise.
1518
1519 2003-04-14  Roger Sayle  <roger@eyesopen.com>
1520
1521         * strdup.c (strdup): Tweak implementation to use memcpy.
1522
1523 2003-04-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1524
1525         * configure.in (HAVE_UINTPTR_T): Always define.
1526         * configure: Regenerated.
1527
1528 2003-03-23  Alexandre Oliva  <aoliva@redhat.com>
1529
1530         * Makefile.in (MULTIOSDIR): New macro.  Use $(CC) $(LIBCFLAGS)
1531         instead of $$CC alone.
1532         (install_to_tooldir): Use it.
1533
1534 2003-17-03  Jan Hubicka  <jh@suse.cz>
1535
1536         * hashtab.c (htab_traverse_noresize): Break out from ...
1537         * hashtab.c (htab_traverse): ... here.
1538
1539 2003-12-03  Jan Hubicka  <jh@suse.cz>
1540
1541         * hashtab.c (htab_expand): Fix warning.
1542
1543         * hashtab.c (htab_expand): Compute the size of hashtable based
1544         on the number of elements actually used.
1545         (htab_traverse):  Call htab_expand when table is too empty.
1546
1547 2003-03-11  Carlo Wood  <carlo@gnu.org>
1548
1549         * cplus-dem.c (demangle_integral_value): Correction to reflect
1550         patch of 2002-01-10 in order to also make negative multi-digits
1551         without leading underscore work.
1552
1553 2003-03-03  Mark Mitchell  <mark@codesourcery.com>
1554
1555         * cplus-dem.c: Add license exception to copyright notice.
1556
1557 2003-02-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1558
1559         * physmem.c: Formatting changes from upstream.
1560
1561 2003-02-24  Danny Smith  <dannysmith@users.source.forge.net>
1562
1563         * physmem.c (physmem_total): Add _WIN32 support.
1564         (physmem_available): Likewise.
1565
1566 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1567
1568         * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
1569         GSI_PHYSMEM.
1570         (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
1571
1572 2003-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1573
1574         * configure.in: Check for sys/systemcfg.h and
1575         _system_configuration.
1576         * physmem.c: Add support for AIX.  Tweek formatting as per
1577         upstream coreutils beta.
1578
1579 2003-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1580             Richard Earnshaw  <rearnsha@arm.com>
1581             Geoffrey Keating  <geoffk@apple.com>
1582
1583         * configure.in: Check for sys/sysctl.h and sysctl.
1584         * physmem.c: Add support for *bsd and darwin.
1585         * Makefile.in: Generate depedency for physmem.o.
1586
1587 2003-02-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1588
1589         * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
1590         Tru64 UNIX.
1591         (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
1592         Tru64 UNIX.
1593
1594         * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
1595         machine/hal_sysinfo.h, sys/table.h.
1596         (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
1597         * configure, config.in: Regenerate.
1598
1599 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1600
1601         * configure.in: Check for sys/sysmp.h and sysmp.
1602         * physmem.c: Pull upstream copy, add support for irix6.
1603
1604         * config.in, configure: Regenerated.
1605
1606 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1607
1608         * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
1609         * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
1610         pstat_getdynamic.
1611
1612 2003-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1613
1614         * Makefile.in (CFILES): Add physmem.c.
1615         (REQUIRED_OFILES): Add physmem.o.
1616         * configure.in: Check for sys/pstat.h.
1617         (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
1618         * physmem.c: New file, copied from textutils.
1619
1620         * config.in, configure: Regenerated.
1621
1622 2003-02-20  Daniel Jacobowitz  <drow@mvista.com>
1623
1624         * Makefile.in (CFILES): Add lrealpath.c.
1625         (REQUIRED_OFILES): Add lrealpath.o.
1626         (lrealpath.o): Add rule.
1627         * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
1628         * configure.in: Add realpath and canonicalize_file_name to
1629         checkfuncs and AC_CHECK_FUNCS.  Use libiberty_NEED_DECLARATION
1630         for canonicalize_file_name.
1631         * lrealpath.c: New file.
1632         * make-relative-prefix.c: Update documentation.
1633         (make_relative_prefix): Simplify.  Use lbasename and lrealpath.
1634         * config.in: Regenerated.
1635         * configure: Regenerated.
1636         * functions.texi: Regenerated.
1637
1638 2003-02-20  jmc  <jmc@prioris.mini.pw.edu.pl>
1639
1640         * cplus_dem.c: Fix typo: intializes -> initializes.
1641
1642 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
1643
1644         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
1645         config.status.
1646         * configure: Rebuilt.
1647
1648 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
1649
1650         Fix PR c++/7612.
1651         * cplus-dem.c (demangle_signature): Call string_delete.
1652         Remove extra string_init.
1653         (demangle_arm_hp_template): Call string_delete instead of
1654         string_clear.  Add missing string_delete call.
1655         (demangle_qualified): Add missing string_delete call.
1656         (do_type): Remove unused variable btype.  Add missing string_delete
1657         call.  Call string_delete instead of string_clear.
1658         (demangle_fund_type): Move variable btype inside of the switch
1659         statement.  Add missing string_delete call.
1660         (do_arg): Call string_delete instead of string_clear.  Remove extra
1661         string_init.
1662         (demangle_nested_args): Free work->previous_argument.
1663
1664 2003-02-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1665
1666         * acconfig.h: New file.  Add uintptr_t.
1667         * config.in: Regenerated.
1668
1669 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
1670
1671         * libiberty.texi: Update to GFDL 1.2.
1672
1673 2003-01-30  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
1674
1675         * Makefile.in (libiberty_topdir): New subst.
1676         (mkinstalldirs): Redefine in terms of the above.
1677         * configure.in: AC_SUBST it.
1678         * configure: Regenerate.
1679
1680 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
1681
1682         * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
1683         (info-subdir, install-info-subdir, clean-info-subdir)
1684         (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
1685         (clean-subdir, distclean-subdir, maintainer-clean-subdir):
1686         Pass $(FLAGS_TO_PASS).
1687
1688 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
1689
1690         * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
1691         /`$$CC -print-multi-os-directory`.
1692
1693 2003-01-26  Daniel Jacobowitz  <drow@mvista.com>
1694
1695         * hashtab.c (htab_create_alloc_ex): New function.
1696         (hatab_set_functions_ex): New function.
1697         (htab_delete, htab_expand): Support alternate allocation functions.
1698
1699 2003-01-24  Christopher Faylor  <cgf@redhat.com>
1700
1701         * configure.in: Remove special pex-cygwin consideration.
1702         * configure: Regenerate.
1703         * pex-cygwin.c: Remove.
1704         * Makefile.in: Remove pex-cygwin.[co] lines.
1705
1706 2003-01-24  Zack Weinberg  <zack@codesourcery.com>
1707
1708         * Makefile.in (CFILES): Add pex-*.c.
1709         (REQUIRED_OFILES): Change pexecute.o to @pexecute@
1710         (CONFIGURED_OFILES): Add pex-*.o.
1711         (TEXIFILES): Add pexecute.txh.
1712         (pexecute.o): Delete rule.
1713         (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
1714         pex-unix.o, pex-win32.o): New rules.
1715         * configure.in: Change AC_INIT argument to xmalloc.c.
1716         Compute appropriate pexecute implementation and substitute it
1717         as @pexecute@.
1718
1719         * pexecute.c: Split up into...
1720         * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
1721         pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
1722         new files.
1723
1724         * functions.texi: Regenerate.
1725         * configure: Regenerate.
1726
1727 2003-01-20  Josef Zlomek  <zlomekj@suse.cz>
1728
1729         * hashtab.c (htab_expand): Fix allocation of new entries.
1730
1731 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
1732
1733         * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
1734
1735         * Makefile.in (install_to_libdir, install_to_tooldir): Add a
1736         mkinstalldirs command.
1737
1738 2002-12-04  Danny Smith  <dannysmith@users.sourceforge.net>
1739
1740         * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
1741         Define for hosts with HOST_EXECUTABLE_SUFFIX.
1742
1743 2002-11-24  Nick Clifton  <nickc@redhat.com>
1744
1745         * make-relative-prefix.c (make_relative_prefix): Ensure return
1746         string is empty before using strcat to construct it.
1747
1748 2002-11-22  Daniel Jacobowitz  <drow@mvista.com>
1749
1750         * Makefile.in: Add make-relative-prefix.c.
1751         * make-relative-prefix.c: New file.
1752         * functions.texi: Rebuilt.
1753
1754 2002-11-16  Jakub Jelinek  <jakub@redhat.com>
1755
1756         * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
1757         used with arguments in traditional C' warnings.
1758
1759 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
1760
1761         * config.table: Use mh-s390pic for s390x too.
1762
1763 2002-10-06  Andreas Jaeger  <aj@suse.de>
1764
1765         * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
1766         variable and of strict-aliasing warning.
1767         (grow_vect): Use char as first parameter.
1768
1769 2002-09-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1770
1771         * Makefile.in (all): Fix multilib parallel build.
1772
1773 2002-09-19  John David Anglin  <dave@hiuly1.hia.nrc.ca>
1774
1775         * cp-demangle.c (demangling_new): Cast 0 to enum.
1776         (demangle_char): Cast return of strdup to char *.
1777         (is_gnu_v3_mangled_ctor): Cast 0 to enum.
1778         (is_gnu_v3_mangled_dtor): Likewise.
1779         * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
1780         (work_stuff_copy_to_from): Cast return of xmalloc to char **.
1781         * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
1782         * md5.c (md5_process_bytes): Cast results back to const void *.
1783         (md5_process_block): Add cast to const md5_uint32 *.
1784         * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
1785         * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
1786         unsigned short.
1787         * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
1788         to void *.
1789         * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
1790
1791 2002-09-19  Nick Clifton  <nickc@redhat.com>
1792
1793         * README: Update email addresses for bugs and patches.
1794
1795 2002-09-10  Mike Stump  <mrs@apple.com>
1796
1797         * splay-tree.c (splay_tree_successor): Fix comments.
1798
1799 2002-09-11  Zack Weinberg  <zack@codesourcery.com>
1800
1801         * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
1802         * testsuite/Makefile.in: Adjust for test-demangle.
1803         * testsuite/regress-demangle: Deleted.
1804         * testsuite/test-demangle.c: New file.
1805         * testsuite/demangle-expected: Change \$ to $ throughout, now that
1806         this file is not being read by a shell script.
1807
1808 2002-09-05  Roger Sayle  <roger@eyesopen.com>
1809
1810         * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
1811
1812 2002-08-07  DJ Delorie  <dj@redhat.com>
1813
1814         * regex.c (re_error_msgid): Just use a simple array of strings.
1815         (re_compile_pattern): Compensate.
1816         (re_comp): Likewise.
1817         (re_comp): Likewise.
1818         (regerror): Likewise.
1819
1820 2002-07-29  Neil Booth  <neil@daikokuya.co.uk>
1821
1822         * cplus-dem.c (PREPEND_BLANK): Remove.
1823
1824 2002-07-10  Jason Merrill  <jason@redhat.com>
1825
1826         * cp-demangle.c (demangle_identifier): Support extended Unicode
1827         characters.
1828
1829 2002-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1830
1831         * cp-demangle.c (demangle_v3_with_details): Wrap in
1832         !defined IN_GLIBCPP_V3.
1833
1834 2002-07-01  Mark Mitchell  <mark@codesourcery.com>
1835
1836         * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
1837         Set it for the "st" operator.
1838         (demangle_expression): Handle expressions with types as arguments.
1839
1840 2002-06-30  Douglas Rupp  <rupp@gnat.com>
1841
1842         * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
1843         * Makefile.in (OUTPUT_OPTION): Use.
1844
1845 2002-06-22  Peter Breitenlohner <peb@mppmu.mpg.de>
1846
1847         * Makefile.in (install_to_libdir): Add $(DESTDIR).
1848         (install_to_tooldir): Likewise.
1849
1850 2002-06-17  Douglas Rupp  <rupp@gnat.com>
1851
1852         * lbasename.c: Add 2002 to copyright.
1853         (IS_DIR_SEPARATOR): Remove VMS junk.
1854
1855 2002-06-05  Geoffrey Keating  <geoffk@redhat.com>
1856
1857         * hashtab.c (htab_create): New stub function for backward
1858         compatibility.
1859         (htab_try_create): Likewise.
1860
1861 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
1862
1863         * hashtab.c (htab_create): Delete.
1864         (htab_try_create): Delete.
1865         (htab_create_alloc): New.
1866         (htab_delete): Support user-specified memory allocation.
1867         (htab_expand): Likewise.
1868
1869 2002-05-22  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
1870
1871         * configure.in: Fix typo in the code checking for sys_errlist.
1872         * configure: Regenerated.
1873
1874 2002-05-13  Andreas Schwab  <schwab@suse.de>
1875
1876         * config.table: Use mh-x86pic also for x86-64.
1877
1878 2002-05-08  Alexandre Oliva  <aoliva@redhat.com>
1879
1880         * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1881         script entry, and set LD to it when configuring multilibs.
1882         * configure: Rebuilt.
1883
1884 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
1885
1886         * configure.in (AC_TYPE_PID_T): Use it.
1887         * configure: Regenerated.
1888         * getruntime.c: Include <sys/types.h>.
1889         * waitpid.c: Likewise.  Use pid_t, not int, as the type of "pid".
1890
1891 2002-04-09  Richard Henderson  <rth@redhat.com>
1892
1893         * hashtab.c (higher_prime_number): Use 7 as minimum.
1894         (find_empty_slot_for_expand): Don't compute hash2 unless needed.
1895         (htab_find_slot_with_hash): Likewise.
1896
1897 2002-04-01  Phil Edwards  <pme@gcc.gnu.org>
1898
1899         * cp-demangle.c (__cxa_demangle):  Also protect with IN_GLIBCPP_V3.
1900         (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor):  Conditionally
1901         not compile if IN_GLIBCPP_V3 defined.
1902         * dyn-string.c:  Also allow IN_GLIBCPP_V3 to change allocation scheme.
1903
1904 2002-03-30  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1905
1906         * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
1907         if it is NULL.
1908
1909 2002-03-27  DJ Delorie  <dj@redhat.com>
1910
1911         * hex.c: Add documentation.
1912         (_hex_value): Provide non-ASCII empty table.
1913         (hex_init): Initialize the non-ASCII table.
1914         * functions.texi: Regenerate.
1915
1916 2002-03-27  Mark Mitchell  <mark@codesourcery.com>
1917
1918         * dyn-string.c: Add libgcc exception to copyright notice.
1919
1920 2002-03-26  H.J. Lu  (hjl@gnu.org)
1921
1922         * config.table: Support --with-build-subdir.
1923         * configure.in: Likewise.
1924         * configure: Rebuild.
1925
1926 2002-03-18  Stuart Griffith  <Stuart_Griffith@credence.com>
1927
1928         * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
1929         seen.
1930
1931 2002-03-12  Mark Mitchell  <mark@codesourcery.com>
1932
1933         * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
1934         notice.
1935
1936 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
1937
1938         * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
1939
1940 2002-03-06  Jim Blandy  <jimb@redhat.com>
1941
1942         * splay-tree.c (splay_tree_xmalloc_allocate,
1943         splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
1944         prototyped definitions.  Mark `data' arguments as unused.
1945
1946 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
1947
1948         * floatformat.c (floatformat_arm_ext_big): Delete definition.
1949
1950 2002-03-04  Phil Edwards  <pme@gcc.gnu.org>
1951
1952         * configure.in:  Add --enable-install-libiberty option.
1953         * Makefile.in (INSTALLED_HEADERS):  New variable.
1954         (install_to_libdir):  Possibly also copy headers.
1955         * configure:  Regenerated.
1956
1957 2002-03-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1958
1959         * xmalloc.c (xmalloc_fail): Clarify error message further.
1960
1961 2002-03-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1962
1963         * xmalloc.c (xmalloc_fail): Clarify error message.
1964
1965 2002-02-22  Jim Blandy  <jimb@redhat.com>
1966
1967         * splay-tree.c (splay_tree_xmalloc_allocate,
1968         splay_tree_xmalloc_deallocate): New functions.
1969         (splay_tree_new): Call splay_tree_new_with_allocator, passing the
1970         above functions and a dummy data pointer.
1971         (splay_tree_new_with_allocator): New function.
1972         (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
1973         splay_tree_remove): Use the splay tree's allocation and
1974         deallocation functions.
1975
1976 2002-02-19  Scott Snyder  <snyder@fnal.gov>
1977
1978         * testsuite/demangle-expected: Add test case for infinite loop in
1979         demangler.
1980         * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
1981         if do_type() doesn't make any progress --- prevents an infinite
1982         loop.
1983
1984 2002-02-18  Carlo Wood  <carlo@gnu.org>
1985
1986         PR c++/5390
1987         * cplus-dem.c (demangle_integral_value): Accept multi-digit
1988         numbers that do not start with an underscore; This is needed
1989         for integer template parameters. This doesn't break anything
1990         because multi-digit numbers are never followed by a digit.
1991         * testsuite/demangle-expected: Corrected all mangled test
1992         cases with multi-digit template parameters: g++ 2.95.x does
1993         not generate underscores around these parameters.
1994
1995 2002-02-05  Jason Merrill  <jason@redhat.com>
1996
1997         * cplus-dem.c (flags): Add DMGL_VERBOSE
1998         (cplus_demangle_v3_p): Remove.
1999         (demangle_it): Add DMGL_TYPES to passed flags.
2000         * cp-demangle.c (cplus_demangle_v3_all): Remove.
2001         (cplus_demangle_v3_type): Remove.
2002         (cplus_demangle_v3): Add options parm.
2003
2004 2002-02-02  H.J. Lu  (hjl@gnu.org)
2005
2006         * cp-demangle.c (cp_demangle_type): Do not protect with
2007         IN_LIBGCC2.
2008         (cplus_demangle_v3_all): New.
2009         (cplus_demangle_v3): Call cplus_demangle_v3_all.
2010         (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
2011
2012         * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
2013         Initialized to cplus_demangle_v3.
2014         (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
2015         of cplus_demangle_v3.
2016         (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
2017         command line symbol.
2018
2019         * testsuite/regress-demangle: Pass the mangled name at the
2020         command line.
2021
2022 2002-02-01  H.J. Lu  <hjl@gnu.org>
2023
2024         * cp-demangle.c (cp_demangle_type): Call demangling_new with
2025         DMGL_GNU_V3.
2026
2027 2002-01-31  Phil Edwards  <pme@gcc.gnu.org>
2028
2029         * cp-demangle.c:  Revert yesterday's change.
2030
2031 2002-01-31  Adam Megacz  <adam@xwt.org>
2032
2033         * gcc/libiberty/configure.in: Treat mingw the same as cywin
2034         wrt HAVE_SYS_ERRLIST.
2035
2036 2002-01-30  Phil Edwards  <pme@gcc.gnu.org>
2037
2038         * cp-demangle.c (cp_demangle_type):  Do not protect with IN_LIBGCC2.
2039         (cplus_demangle_v3):  Mimic __cxa_demangle and fall back on
2040         cp_demangle_type.
2041         * testsuite/demangle-expected:  New gnu-v3 test.
2042
2043 2002-01-22  Momchil Velikov  <velco@fadata.bg>
2044
2045         * configure.in (variable detection): Use arrays of unspecified
2046         size instead of plain integers.
2047
2048 2002-01-18  DJ Delorie  <dj@redhat.com>
2049
2050         * Makefile.in (TESTLIB): New.  This library is for future
2051         testsuites.
2052         (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
2053         break down by letter.
2054         (REQUIRED_OFILES): List long-to-compile files first.
2055         (maint-deps): New, target for updating dependencies.
2056         (dependencies): Update.
2057         * maint-tool: Add dependency-generating option.
2058         * configure.in: Check for _doprnt even if we're not providing it.
2059         * configure: Regenerate.
2060
2061         * _doprnt.c: Modifications to allow compiling on any platform.
2062         * copysign.c: Likewise.
2063         * putenv.c: Likewise.
2064         * setenv.c: Likewise.
2065         * vsprintf.c: Likewise.
2066
2067 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
2068
2069         * mkstemps.c (mkstemps): On VMS, open temp file with option
2070         that causes it to be deleted when closed.
2071
2072 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2073
2074         * cp-demangle.c (long_options): Const-ify.
2075         * cplus-dem.c (long_options): Likewise.
2076
2077         * cplus-dem.c (mystrstr): Delete.  All callers changed to use
2078         strstr instead.
2079
2080 2001-12-31  Ira Ruben   <ira@apple.com>
2081
2082         * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
2083         * configure: Regenerated.
2084
2085 2001-12-24  Douglas B. Rupp  <rupp@gnat.com>
2086
2087         * configure.in (uintptr_t): Use AC_CHECK_TYPE.
2088         * configure: Regenerated.
2089
2090 2001-12-12  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2091
2092         PR other/2719
2093         * cplus-dem.c (consume_count): Treat negative count as an error.
2094         * testsuite/demangle-expected: Added testcase.
2095
2096 Tue Dec 11 07:08:57 2001  Douglas B. Rupp  <rupp@gnat.com>
2097
2098         * configure.in: Hardcode that vfork works on VMS host.
2099         * configure: Regenerated.
2100
2101 2001-12-06  Richard Henderson  <rth@redhat.com>
2102
2103         * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
2104         (cplus_demangle): Support no_demangling.
2105
2106 2001-11-27  Zack Weinberg  <zack@codesourcery.com>
2107
2108         * _doprnt.c: Moved here from gcc/doprint.c.  Adjust to build
2109         in libiberty context.  Fix typo in leading comment.
2110         * configure.in: Fix various AC_DEFINEs so autoheader works.
2111         If any of vprintf, vsprintf, vfprintf is missing from libc,
2112         then AC_REPLACE_FUNCS(_doprnt).
2113
2114 2001-11-26  DJ Delorie  <dj@redhat.com>
2115             Daniel Jacobowitz  <drow@mvista.com>
2116
2117         * Makefile.in (stamp-h): Depend on Makefile for proper
2118         serialization.
2119         (*-subdir): Depend on config.h for proper serialization.
2120
2121 2001-11-26  DJ Delorie  <dj@redhat.com>
2122
2123         * configure.in: Check for alloca.h (for regex.c and putenv.c).
2124         * configure: Regenerate.
2125         * config.h: Add HAVE_ALLOCA_H.
2126
2127 2001-11-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2128
2129         * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
2130         defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
2131         is available.
2132
2133 Thu Nov 15 11:06:25 2001  Jeffrey A Law  (law@cygnus.com)
2134
2135         * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
2136         * configure.in (HAVE_UINTPTR_T): Test for system defining
2137         uintptr_t and define HAVE_UINTPTR_T appropriately.
2138         * regex.c (uintptr_t): Do not provide a definition if the
2139         system provided one.
2140
2141         * regex.c (PREFIX): Provide an alternate definition for
2142         non-ANSI/ISO compilers.
2143         (ARG_PREFIX): Likewise.
2144
2145 2001-11-12  Jim Meyering  <meyering@lucent.com>
2146
2147         * obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
2148         this code would end up calling gettext even in packages built
2149         with --disable-nls.
2150         * getopt.c (_): Likewise.
2151         * regex.c (_): Likewise.
2152
2153 2001-11-03  Alan Modra  <amodra@bigpond.net.au>
2154
2155         * configure.in: Cope with missing makeinfo.
2156         * configure: Regenerate.
2157
2158 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2159
2160         * hex.c (hex_init): Provide empty stub.
2161
2162         * hex.c (hex_init): Delete.
2163         (_hex_value): Const-ify and initialize at compile-time.
2164
2165 2001-10-19  H.J. Lu <hjl@gnu.org>
2166
2167         * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
2168         necessary.
2169
2170 2001-10-17  DJ Delorie  <dj@redhat.com>
2171
2172         * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
2173         ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
2174         mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
2175         Improve manual formatting.
2176         * functions.texi: Regenerate.
2177
2178 2001-10-15  DJ Delorie  <dj@redhat.com>
2179
2180         * Makefile.in (TEXIFILES): Add fnmatch.txh.
2181         (maint-undoc): New.
2182         maint-tool: Add "undoc" tool.
2183         * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
2184         fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
2185         make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
2186         strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
2187         documentation.
2188         * fnmatch.txh: New.
2189         * functions.texi: Regenerate.
2190
2191 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
2192
2193         * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
2194         * strtod.c: Use "ISO C" instead of "ANSI C".
2195         * functions.texi: Regenerate.
2196
2197 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
2198
2199         * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
2200         libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
2201         strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
2202         xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting.  Fix
2203         spelling.  Give names to function arguments in documentation.  Use
2204         (void) prototypes in documentation.
2205         * functions.texi: Regenerate.
2206
2207 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2208
2209         * argv.c (buildargv, tests, main): Const-ify.
2210         * cp-demangle.c (operator_code): Likewise.
2211         * cplus-dem.c (optable, libiberty_demanglers,
2212         cplus_demangle_set_style, cplus_demangle_name_to_style,
2213         print_demangler_list): Likewise.
2214         * hashtab.c (higher_prime_number): Likewise.
2215         * strcasecmp.c (charmap): Likewise.
2216         * strerror.c (error_info, strerror, main): Likewise.
2217         * strncasecmp.c (charmap): Likewise.
2218         * strsignal.c (signal_info): Likewise.
2219
2220 2001-09-29  DJ Delorie  <dj@redhat.com>
2221
2222         * configure: Regenerate.
2223
2224 2001-09-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2225
2226         * concat.c: Include stdlib.h.
2227
2228 2001-09-27  Eli Zaretskii  <eliz@is.elta.co.il>
2229
2230         * libiberty.texi: (Top level): Add syncodeindex pg.  Add
2231         @dircategory and @direntry directives.  Add @finalout.
2232         (many nodes): Lose the next,prev,up pointers on the @nide line.
2233         (Using, Supplemental Functions, Replacement Functions): Fix
2234         markup.
2235         (Functions): Move around, to allow makeinfo to build the manual
2236         without next,prev,up pointers in thye node lines.
2237         (Licenses): Fix typos.
2238
2239         * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
2240         strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
2241         * functions.texi: Regenerate.
2242
2243         * copying-lib.texi: Lose the next,prev,up pointers on the @node
2244         line.
2245
2246 2001-09-27  DJ Delorie  <dj@redhat.com>
2247
2248         * configure.in: Don't use in-tree texinfo, because libiberty must
2249         be built before it.  Check for makeinfo version 4 or higher.
2250         * functions.texi: Regenerate.
2251
2252 2001-09-20  DJ Delorie  <dj@redhat.com>
2253             Phil Edwards  <pedwards@disaster.jaj.com>
2254
2255         * configure.in (MAKEINFO, PERL): Detect these.
2256         (--enable-maintainer-mode): Add.
2257         * configure: Regenerate.
2258         * Makefile.in (MAKEINFO, PERL): Define.
2259         (libiberty.info, libiberty.dvi, libiberty.html): New.
2260         (CFILES): Add bsearch.c.
2261         (CONFIGURED_OFILES): New, list of objects configure might add.
2262         (maint-missing, maint-buildall): New, for maintainers only.
2263         (clean, mostlyclean): Add info/dvi/html files.
2264         * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
2265         * gather-docs: New, for maintainers.
2266         * maint-tool: New, for maintainers.
2267         * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
2268         bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
2269         getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
2270         memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
2271         sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
2272         strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
2273         tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
2274         xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
2275         documentation.
2276
2277 2001-09-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2278
2279         * concat.c (reconcat): Fix for traditional C.
2280
2281 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2282
2283         * concat.c (reconcat): New function.
2284
2285 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2286
2287         * concat.c (vconcat_length, vconcat_copy, concat_length,
2288         concat_copy, concat_copy2): New functions.
2289         (concat): Use vconcat_length/vconcat_copy.
2290
2291         * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
2292         Define.
2293
2294 2001-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2295
2296         * asprintf.c: Don't define USE_STDARG.  Use VPARAMS, VA_OPEN,
2297         VA_FIXEDARG & VA_CLOSE.
2298
2299         * vasprintf.c: Check HAVE_STRING_H when including string.h.
2300         (checkit): Delete redundant prototype.  Add ATTRIBUTE_PRINTF_1.
2301         Use VA_OPEN, VA_FIXEDARG & VA_CLOSE.  Free allocated string.
2302
2303 2001-08-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2304
2305         * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
2306
2307 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
2308
2309         * regex.c (truncate_wchar): Use wcrtomb not wctomb.
2310
2311 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
2312
2313         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2314         instead of mbrtowc.
2315         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2316         wcslen, and __wcscoll instead of wcscoll.
2317
2318 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
2319
2320         * fibheap.c (fibheap_init, fibnode_init): Remove.
2321         (fibheap_new, fibnode_new): Use xcalloc to allocate and
2322         initialize memory.
2323         (fibheap_insert): Remove check for node allocation failure.
2324
2325 2001-08-21  Richard Henderson  <rth@redhat.com>
2326
2327         * Makefile.in (fibheap.o): Depend on config.h.
2328         * fibheap.c: Tidy formatting.  Use config.h.` Rearrange some
2329         functions for inlining.
2330
2331 Tue Aug 21 12:35:04 2001  Christopher Faylor <cgf@cygnus.com>
2332
2333         * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
2334         hosting on cygwin.
2335         * configure: Regenerate.
2336
2337 2001-08-20  Andrew Cagney  <ac131313@redhat.com>
2338
2339         * floatformat.c (floatformat_m88110_ext): Remove #ifdef
2340         HARRIS_FLOAT_FORMAT.
2341         (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
2342         (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
2343         (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
2344         (floatformat_m88110_harris_ext): New float formats.
2345
2346 2001-08-20  Daniel Berlin  <dan@cgsoftware.com>
2347
2348         * fibheap.c: New file. Fibonacci heap.
2349
2350         * Makefile.in (CFILES): Add fibheap.c.
2351         (REQUIRED_OFILES): Add fibheap.o.
2352         (fibheap.o): Add dependencies for fibheap.o.
2353
2354 2001-08-17  Christopher Faylor <cgf@cygnus.com>
2355
2356         * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
2357         * configure: Regenerate.
2358
2359 2001-08-16  Richard Henderson  <rth@redhat.com>
2360
2361         * hashtab.c (htab_hash_string): New.
2362
2363 2001-08-13  Andrew Cagney  <ac131313@redhat.com>
2364
2365         * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
2366         name.
2367
2368 2001-08-12  Isamu Hasegawa  <isamu@yamato.ibm.com>
2369
2370         * regex.c (wcs_regex_compile): Use appropriate string
2371         to compare with collating element.
2372         Fix the padding for the alignment.
2373
2374 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
2375
2376         * lbasename.c (lbasename): Change function definition to return a
2377         const char pointer.
2378
2379 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
2380
2381         * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
2382         for".
2383
2384 2001-08-03  Richard Henderson  <rth@redhat.com>
2385
2386         * Makefile.in (concat.o): Depend on config.h.
2387
2388 2001-07-30  Andreas Jaeger  <aj@suse.de>
2389
2390         * concat.c: Include "config.h".
2391
2392 2001-07-30  Andreas Jaeger  <aj@suse.de>
2393
2394         * regex.c: Declare wcs functions only if compiling with
2395         MBS_SUPPORT.
2396         Don't use #elif for traditional C.
2397
2398 2001-07-23  Ulrich Drepper  <drepper@redhat.com>
2399
2400         * regex.c: Revamp memory allocation for WCHAR functions to
2401         not use too much stack.
2402
2403 2001-07-30  Andreas Jaeger  <aj@suse.de>
2404
2405         * regex.c: Declare wcs functions only if compiling with
2406         MBS_SUPPORT.
2407         Don't use #elif for traditional C.
2408
2409 2001-07-25  Daniel Jacobowitz  <drow@mvista.com>
2410
2411         * Makefile.in (regex.o): Add dependency on config.h.
2412
2413 2001-07-18  Andreas Schwab  <schwab@suse.de>
2414
2415         * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
2416         underscore character.
2417
2418 2001-07-18  Ulrich Drepper  <drepper@redhat.com>
2419
2420         * regex.c: Limit string length printed in debug messages to 100
2421         chars.
2422
2423 2001-07-18  Andreas Jaeger  <aj@suse.de>
2424
2425         * regex.c: Place under LGPL version 2.1.
2426
2427 2001-07-10  Jeff Johnston  <jjohnstn@redhat.com>
2428
2429         * Makefile.in: Add support for regex code.
2430         * regex.c: New file.
2431
2432 2001-07-05  Mark Klein  <mklein@dis.com>
2433
2434         * Makefile.in: Add ffs.c dependency.
2435         * configure.in: Add ffs.c.
2436         * ffs.c: New file.
2437
2438 2001-06-18  Richard Henderson  <rth@redhat.com>
2439
2440         * concat.c: Include <sys/types.h>.
2441
2442 2001-06-11  Loren J. Rittle  <ljrittle@acm.org>
2443
2444         bootstrap/3106
2445         * strerror.c (sys_nerr): Hide the OS header version.
2446         * strsignal.c (sys_nsig): Likewise.
2447
2448 2001-06-10  Richard Henderson  <rth@redhat.com>
2449
2450         * concat.c: Include string.h.  Fix int vs size_t usage.
2451         Simplify the iteration loops.  Use memcpy.
2452
2453 2001-05-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
2454
2455         * partition.c: Fix misspelling of `implementation'.
2456
2457 2001-05-09  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
2458
2459         * md5.c (md5_init_ctx): Declare constants as unsigned.
2460         (md5_process_block): Likewise.
2461
2462 2001-05-07  Zack Weinberg  <zackw@stanford.edu>
2463
2464         * cp-demangle.c (demangle_v3_with_details,
2465         is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
2466         function definition.
2467         * ternary.c: Use K+R style function definitions.  Use PTR, not
2468         void *.  Make arguments constant where possible.
2469
2470 2001-05-07  Mark Mitchell  <mark@codesourcery.com>
2471
2472         * splay-tree.h (splay_tree_max): New function.
2473         (splay_tree_min): Likewise.
2474
2475 2001-04-15  Daniel Berlin  <dan@cgsoftware.com>
2476
2477         * ternary.c: New file - Ternary search tree implementation.
2478
2479         * Makefile.in: Add ternary.o, and ternary.c dependencies.
2480
2481 2001-04-03  Zack Weinberg  <zackw@stanford.edu>
2482
2483         * make-temp-file.c (try): Inline.
2484
2485 2001-02-28  Richard Henderson  <rth@redhat.com>
2486
2487         * Makefile.in (make-temp-file.o): Depend on config.h.
2488
2489 2001-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2490
2491         * memchr.c (memchr): Adjust condition to avoid infinite loop.
2492
2493 2001-03-23  Jakub Jelinek  <jakub@redhat.com>
2494
2495         * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
2496         `_' not followed by a digit is invalid.
2497
2498 2001-03-22  Jim Blandy  <jimb@redhat.com>
2499
2500         * cp-demangle.c (string_list_delete): Use dyn_string_delete
2501         instead of free, to free the contents as well as the string
2502         structure.
2503
2504 2001-03-21  Zack Weinberg  <zackw@stanford.edu>
2505
2506         * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
2507         Don't default P_tmpdir to anything.  Try /var/tmp before
2508         /usr/tmp.
2509
2510 2001-03-20  Zack Weinberg  <zackw@stanford.edu>
2511
2512         * choose-temp.c: Split off make_temp_file, and the code
2513         duplicated between it and choose_temp_base, into...
2514         * make-temp-file.c: ... here; new file.
2515
2516         * Makefile.in (CFILES): Add make-temp-file.c.
2517         (REQUIRED_OFILES): Add make-temp-file.o.
2518
2519 2001-03-20  Jim Blandy  <jimb@redhat.com>
2520
2521         * cp-demangle.c (struct demangling_def): New fields:
2522         is_constructor and is_destructor.
2523         (demangling_new): Initialize them.
2524         (demangle_ctor_dtor_name): Set them, if we detect a constructor
2525         or destructor.
2526         (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
2527         is_gnu_v3_mangled_dtor): New functions.
2528
2529 2001-03-20  Jason Merrill  <jason@redhat.com>
2530
2531         * cplus-dem.c (main): Skip initial $.
2532
2533 2001-03-15  Michael Meissner  <meissner@redhat.com>
2534
2535         * hashtab.c (higher_prime_number): Silence warning that 4294967291
2536         might be a signed integer under pre-ISO C systems.
2537
2538 2001-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
2539             John David Anglin  <dave@hiauly1.hia.nrc.ca>
2540
2541         * libiberty/lbasename.c: New file.
2542         * libiberty/Makefile.in: Update for lbasename.
2543
2544 2001-03-06  Zack Weinberg  <zackw@stanford.edu>
2545
2546         * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
2547         * configure.in: Replace all alloca logic with a simple use of
2548         the above new macro.
2549         * config.table: Kill *-*-beos* entry.
2550         * config/mh-beos: Delete.
2551         * configure, config.in: Regenerate.
2552
2553         * Makefile.in (ALLOCA, HFILES): Kill.
2554         (REQUIRED_OFILES): Add alloca.o.
2555         (alloca.o): Depend on libiberty.h.
2556         (argv.o): Don't depend on alloca-conf.h.
2557         * alloca-conf.h: Delete.
2558         * alloca.c: Include libiberty.h.  Kill all #ifdef emacs
2559         blocks.  Provide the C alloca unconditionally.  Use PTR where
2560         appropriate.  Make i00afunc static.
2561         * argv.c: Don't include alloca-conf.h.
2562
2563 2001-03-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2564
2565         * cplus-dem.c (main): Cast enum style to int.
2566
2567 2001-02-16  Loren J. Rittle  <ljrittle@acm.org>
2568
2569         * cplus-dem.c (main): Initialize style.
2570
2571 2001-02-02  Phil Edwards  <pme@sources.redhat.com>
2572
2573         * COPYING.LIB:  Update to LGPL 2.1 from the FSF.
2574
2575 2001-01-31  Bryce McKinlay  <bryce@albatross.co.nz>
2576
2577         Add support for Java demangling under the v3 ABI:
2578         * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
2579         (struct demangling_def): Add `style' field.
2580         (demangling_new): New parameter `style'. Set it in demangling_t.
2581         (demangle_prefix): Use NAMESPACE_SEPARATOR.
2582         (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
2583         (cp_demangle): New parameter `style'. Pass it to demangling_new().
2584         (main): Call cp_demangle with extra parameter.
2585         (java_demangle_v3): New function.
2586         (java_builtin_type_names): New. Table of primitive type names used
2587         for Java demangling.
2588         (demangle_builtin_type): Look up in java_builtin_type_names if doing
2589         Java output.
2590         * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
2591         demangling.
2592         (long_options): Remove obsolete `java' option.
2593         (main): Remove explicit handling of `java' option. Instead, pass style
2594         parameter in cplus_demangle flags as gdb does.
2595         * testsuite/demangle.expected: Add some Java test cases.
2596
2597 2000-12-29  DJ Delorie  <dj@redhat.com>
2598
2599         * fnmatch.c: Make the note about the origins of this file more
2600         accurate, at least until we can sync with glibc.
2601         * getopt.c: Ditto.
2602         * getopt1.c: Ditto.
2603         * md5.c: Ditto.
2604         * obstack.c: Ditto.
2605
2606 2000-12-26  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2607
2608         * bsearch.c: New file.
2609         * configure.in (funcs): Add bsearch.
2610         (AC_CHECK_FUNCS): Likewise.
2611         * configure, config.in: Regenerate.
2612
2613 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2614
2615         * safe-ctype.c: #include "ansidecl.h".
2616         * strtod.c: Likewise.
2617
2618 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2619
2620         * strtoul.c: Include safe-ctype.h, not ctype.h.
2621
2622 2000-12-07  Zack Weinberg  <zack@wolery.stanford.edu>
2623
2624         * safe-ctype.c: New file.
2625         * Makefile.in (CFILES): Add safe-ctype.c.
2626         (REQUIRED_OFILES): Add safe-ctype.o.
2627
2628         * argv.c: Define ISBLANK and use it, not isspace.
2629         * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
2630         strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h.  Use
2631         uppercase ctype macros.  Don't test ISUPPER(c)/ISLOWER(c)
2632         before calling TOLOWER(c)/TOUPPER(c).
2633
2634 2000-12-07  Mike Stump  <mrs@wrs.com>
2635
2636         * Makefile.in (distclean): When cleaning, remove testsuite.
2637
2638 2000-12-05  Jason Merrill  <jason@redhat.com>
2639
2640         * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
2641         name before allocating the dyn_string.
2642
2643 2000-12-04  Jason Merrill  <jason@redhat.com>
2644
2645         * cp-demangle.c: s/new_abi/v3/.
2646         * cplus-dem.c: Likewise.
2647         (current_demangling_style): Now auto_demangling.
2648         (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
2649         (main): Use standard symbol chars for auto_demangling.
2650
2651 2000-11-26  Mark Mitchell  <mark@codesourcery.com>
2652
2653         * hashtab.c (higher_prime_number): Use a table, rather than a
2654         seive, to find the next prime.
2655
2656 2000-11-22  H.J. Lu  <hjl@gnu.org>
2657
2658         * cplus-dem.c (main): Handle gnat_demangling.
2659
2660 2000-11-22  Zack Weinberg  <zack@wolery.stanford.edu>
2661
2662         * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
2663         (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
2664         * configure.in: Call AC_C_INLINE and AC_C_CONST.  Use three
2665         argument form of AC_DEFINE in dummy definitions block.  Use
2666         AC_DEFINE_NOAUTOHEADER for real definitions of things defined
2667         in dummy block.  Preload cache variables instead of bypassing
2668         tests, where possible.
2669         * acconfig.h: Removed.
2670
2671         * xmalloc.c (xmalloc_failed): New function, does error
2672         reporting on failed allocation.
2673         (xmalloc, xcalloc, xrealloc): Use it.
2674
2675 2000-11-21  Hans-Peter Nilsson  <hp@bitrange.com>
2676
2677         * cplus-dem.c (cplus_demangle): Fix formatting.
2678         (grow_vect): Ditto.
2679         (ada_demangle): Ditto.
2680         (internal_cplus_demangle): Ditto.
2681         (mop_up): Ditto.
2682
2683 2000-11-21  H.J. Lu  <hjl@gnu.org>
2684
2685         * cplus-dem.c (main): Handle java_demangling.
2686
2687 2000-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2688
2689         * cplus-dem.c (grow_vect): Prototype.
2690         (ada_demangle): Cast the arg of ctype macros to unsigned char.
2691
2692 2000-11-15  Hans-Peter Nilsson  <hp@bitrange.com>
2693
2694         * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
2695         parameter `option'.
2696
2697 2000-11-15  Kenneth Block  <kenneth.block@compaq.com>
2698
2699         * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
2700         be used in GCC.
2701
2702 2000-11-15  Kenneth Block  <kenneth.block@compaq.com>
2703
2704         * cplus-dem.c: Add gnat demangler.  Add java to demangle style
2705         list.
2706
2707 2000-11-04  Hans-Peter Nilsson  <hp@bitrange.com>
2708
2709         * hashtab.c (htab_expand): Change to return int.  Use calloc or
2710         xcalloc depending on htab->return_allocation_failure.  Return zero
2711         if calloc fails.
2712         (htab_create): Update comment to cover memory allocation.
2713         (htab_try_create): New.
2714         (htab_find_slot_with_hash): Return NULL if htab_expand fails.
2715         Update comment to cover this.
2716
2717 2000-11-03  Hans-Peter Nilsson  <hp@bitrange.com>
2718
2719         * hashtab.c: Change void * to PTR where necessary.
2720         (htab_create, htab_expand): Correct formatting of comment before
2721         function.
2722
2723 2000-10-22  Alex Samuel  <samuel@codesourcery.com>
2724
2725         * cp-demangle.c (string_list_def): Add caret_position and comments.
2726         (result_caret_pos): New macro.
2727         (result_append_string): Rename to...
2728         (result_add_string): ... this, and insert at caret position.
2729         Rename throughout.
2730         (result_append): Rename to...
2731         (result_add): ... this, and insert at caret position.  Rename
2732         throughout.
2733         (result_append_char): Rename to...
2734         (result_add_char): ... this, and insert at caret position.  Rename
2735         throughout.
2736         (result_append_space): Remove.
2737         (string_list_new): Initialize caret position.
2738         (result_add_separated_char): Use caret position.
2739         (result_get_caret): New funtion.
2740         (result_set_caret): Likewise.
2741         (result_shift_caret): Likewise.
2742         (result_previous_char_is_space): Likewise.
2743         (substitution_start): Use caret position.
2744         (substitution_add): Likewise.
2745         (demangling_new): Initialize caret position.
2746         (demangle_encoding): Use caret position.
2747         (demanglin_nested_name): Put CV qualifiers after name.
2748         (demangle_type_ptr): Use switch statement.  Handle pointers to
2749         arrays.  Don't use result_append_space.  Use caret position.
2750         (demangle_type): Emit CV qualifiers after underlying type.  Adjust
2751         call to demangle_array_type.
2752         (demangle_array_type): Add parameter to handle pointers to arrays.
2753
2754 2000-10-01  Mark Mitchell  <mark@codesourcery.com>
2755
2756         * splay-tree.c (splay_tree_insert): Fix formatting.
2757
2758 2000-09-16  Mark Mitchell  <mark@codesourcery.com>
2759
2760         * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
2761
2762 2000-09-14  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2763
2764         * splay-tree.c: #include <stdio.h>.
2765
2766 2000-09-14  Hans-Peter Nilsson  <hp@axis.com>
2767
2768         * testsuite/demangle-expected: Add two tests for anonymous
2769         namespaces.
2770         * cplus-dem.c (gnu_special): Handle anonymous namespaces.
2771
2772 2000-09-10  Mark Mitchell  <mark@codesourcery.com>
2773
2774         * splay-tree.c (splay_tree_predecessor): New function.
2775         (splay_tree_successor): Likewise.
2776
2777 2000-09-10  Hans-Peter Nilsson  <hp@axis.com>
2778
2779         * testsuite/demangle-expected: Add four tests for type_info
2780         mangling.
2781         * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
2782         for a non-template non-qualified type_info function or node.
2783
2784 2000-09-08  Alex Samuel  <samuel@codesourcery.com>
2785
2786         * cp-demangle.c: Fix copyright banner.
2787
2788 2000-09-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2789
2790         * md5.c: #include "ansidecl.h".
2791
2792 2000-09-06  Alex Samuel  <samuel@codesourcery.com>
2793
2794         * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
2795         (demangle_type): Handle substitution candidates correctly in the
2796         face of special substitutions.
2797
2798 2000-09-05  Alex Samuel  <samuel@codesourcery.com>
2799
2800         * cp-demangle.c (demangle_encoding): Rename variable.
2801         (demangle_name): Rename parameter.  Handle return type
2802         suppression.
2803         (demangle_nested_name): Rename parameter.
2804         (demangle_prefix): Likewise.  Change return type suppression.
2805         (demangle_unqualified_name): Add parameter.  Flag constructors and
2806         conversion operators.
2807         (demangle_special_name): Fix comment.
2808         (demangle_type): Rename variable.
2809         (demangle_bare_function_type): Check for missing return type and
2810         parameter.
2811         (demangle_class_enum_type): Rename parameter.
2812         (demangle_discriminator): Fix misspelling in comment.
2813
2814 2000-08-31  DJ Delorie  <dj@redhat.com>
2815
2816         * configure.in (Cygwin): special case cygwin only when we're
2817         building cygwin, not when we're hosting cygwin.
2818
2819 2000-09-04  Alex Samuel  <samuel@codesourcery.com>
2820
2821         * cp-demangle.c (demangle_template_arg): Eat an `E' after an
2822         <expression>.
2823
2824 2000-09-04  Alex Samuel  <samuel@codesourcery.com>
2825
2826         * cp-demangle.c (demangle_type_ptr): Increment position past
2827         pointer and reference characters.
2828
2829 2000-09-04  Alex Samuel  <samuel@codesourcery.com>
2830
2831         * cp-demangle.c (demangle_nv_offset): New function.
2832         (demangle_v_offset): Likewise.
2833         (demangle_call_offset): Likewise.
2834         (demangle_special_name): Update thunk demangling to comply with
2835         ABI changes.
2836
2837 2000-09-03  Alex Samuel  <samuel@codesourcery.com>
2838
2839         * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
2840         (substitution_def): Remove template_parm_number.
2841         (NOT_TEMPLATE_PARM): Remove.
2842         (result_insert_string): New macro.
2843         (result_insert): Likewise.
2844         (result_insert_char): Likewise.
2845         (substitution_add): Remove last parameter.  Don't store template
2846         parm number.
2847         (BFT_NO_RETURN_TYPE): Define as NULL.
2848         (demangle_encoding): Adjust call to demangle_bare_function_type.
2849         (demangle_name): Adjust substitution.  Adjust call to
2850         substitution_add.
2851         (demangle_prefix): Adjust call to substitution_add.
2852         (demangle_identifier): Handle anonymous namespaces.
2853         (demangle_operator_name): Change demangling of vendor-extended
2854         operator to match ABI changes.
2855         (demangle_type_ptr): Change parameters.  Make recursive.  Handle
2856         substitutions here.
2857         (demangle_type): Adjust calls to demangle_template_param,
2858         substitution_add, and demangle_type_ptr.  Fix substitution of
2859         templated types.
2860         (demangle_function_type): Change parameter to a pointer.
2861         (demangle_bare_function_type): Likewise.  Adjust insertion point.
2862         (demangle_template_param): Remove last parameter.
2863         (demangle_expr_primary): Remove unused variable.  Adjust call to
2864         demangle_template_param.
2865         (is_mangled_char): Accept `$' and `.'.
2866         * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
2867         * dyn-string.c (dyn_string_insert_char): New function.
2868
2869 2000-08-31  Hans-Peter Nilsson  <hp@axis.com>
2870
2871         * testsuite/demangle-expected: Add nine tests for
2872         underscore-after-number followed by five tests for name-signature
2873         delimiter.
2874
2875 2000-08-28  Richard Henderson  <rth@cygnus.com>
2876
2877         * Makefile.in (md5.o): Depend on config.h.
2878
2879 2000-08-28  Jason Merrill  <jason@redhat.com>
2880
2881         * Makefile.in (REQUIRED_OFILES): Add md5.o.
2882         (CFILES): Add md5.c.
2883         * md5.c: New file.
2884
2885 2000-08-27  Alex Samuel  <samuel@codesourcery.com>
2886
2887         * cp-demangle.c (demangle_name): Initialize template_p in local
2888         name case.  Don't re-add substitutions as candidates.
2889         (demangle_nested_name): Use <unqualified-name>.
2890         (demangle_prefix): Likewise.  Don't add template names as
2891         substitution candidates twice, or re-add a substitution or the
2892         last prefix component.
2893         (demangle_local_name): Adjust output format.
2894
2895 2000-08-25  Alex Samuel  <samuel@codesourcery.com>
2896
2897         * cp-demangle.c (result_add_separated_char): Change parameter to
2898         int.
2899         (substitution_add): Don't check for duplicates.  Check if
2900         previously allocated size is zero.
2901         (demangle_name): Remove duplicate check for std substitution.
2902         Clear template flag appropriately.
2903         (demangle_prefix): Remove argument to demangle_substitution.
2904         Don't check that template flag is already set.
2905         (demangle_operator_name): Add pt operator.
2906         (demangle_type): Don't treat r as built-in type.  Remove argument
2907         to demangle_substitution.  Fix substitution candidate mechanics.
2908         Handle <template-template-parm>s.  Improve comments.
2909         (demangle_template_param): Don't handle template arg lists here.
2910         (demangle_substitution): Remove parameter.
2911         (print_usage): Remove extra fprintf option.
2912
2913 2000-08-24  Greg McGary  <greg@mcgary.org>
2914
2915         * libiberty/random.c (end_ptr): Revert previous change.
2916
2917 2000-08-24  Greg McGary  <greg@mcgary.org>
2918
2919         * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
2920         demangle_expression, demangle_function_name): Use ARRAY_SIZE.
2921         * libiberty/random.c (end_ptr): Likewise.
2922
2923 2000-08-23  Alex Samuel  <samuel@codesourcery.com>
2924
2925         * cp-demangle.c (result_close_template_list): Remove function.
2926         (result_add_separated_char): New function.
2927         (result_open_template_list): New macro.
2928         (result_close_template_list): Likewise.
2929         (demangle_prefix): Don't set template_p if the
2930         prefix ends with a ctor name.
2931         (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
2932         (demangle_type): Check for template args after substitution.
2933         (demangle_template_args): Use result_open_template_list.
2934
2935 2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
2936
2937         * pexecute.c:  Don't use vfork.  Initialize 'pid' before retry loop.
2938
2939 2000-07-26  Dave Pitts  <dpitts@cozx.com>
2940
2941         * config/mh-openedition.h: Added -DLE370 definition.
2942
2943 2000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
2944
2945         * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
2946         __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
2947         Cast program to 'char *' in errmsg_arg assignment.
2948         (PWAIT_ERROR): Define.
2949         (pwait): Use PWAIT_ERROR.  Adjust DJGPP's status code to conform
2950         to DJGPP's WIF* macros.
2951
2952 2000-07-27  RodneyBrown  <RodneyBrown@pmsc.com>
2953             Jeff Law <law@cygnus.com>
2954
2955         * getcwd.c: Include string.h, stdlib.h for prototypes
2956
2957         * Makefile.in (rename.o, waitpid.o): Depend on config.h
2958         * rename.c: Include config.h, unistd.h
2959         * waitpid.c: Include config.h, sys/wait.h
2960
2961 2000-07-24  Hans-Peter Nilsson  <hp@axis.com>
2962
2963         * cplus-dem.c (work_stuff_copy_to_from): New.
2964         (delete_non_B_K_work_stuff): New.
2965         (delete_work_stuff): New.
2966         (mop_up): Break out work_stuff partly destruction to
2967         delete_non_B_K_work_stuff.
2968         (iterate_demangle_function): New.
2969         (demangle_prefix): Call iterate_demangle_function instead of
2970         demangle_function_name.  Leave handling of name-signature
2971         __-delimiters to iterate_demangle_function.
2972         (demangle_integral_value): Strip an optional
2973         following underscore cautiously.  Handle negative numbers.
2974
2975 2000-07-24  Daniel Berlin <dberlin@redhat.com>
2976
2977         * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
2978         if (AUTO_DEMANGLING || GNU_DEMANGLING)
2979
2980 2000-07-21  Alex Samuel  <samuel@codesourcery.com>
2981
2982         * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
2983         allocating ctor mangling.
2984         (demangle_array_type): Handle empty and non-constant array length.
2985
2986 2000-07-23  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2987             Jeff Law <law@cygnus.com>
2988
2989         * configure.in (AC_CHECK_HEADERS): Add time.h.
2990         (AC_HEADER_TIME): Add check.
2991         * configure, config.in: Regenerate.
2992         * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
2993
2994         * configure.in (AC_CHECK_HEADERS): Add limits.h.
2995         * configure, config.in: Regenerate.
2996         * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
2997         * strtol.c, strtoul.c: #include "config.h". Portably #include
2998         <limits.h> and/or <sys/param.h>.
2999         * Makefile.in (strtol.o, strtoul.o): Update dependencies.
3000
3001         * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
3002         * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
3003         * configure, config.in: Regenerate.
3004         * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
3005
3006         * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
3007
3008 2000-07-21  Mike Stump  <mrs@wrs.com>
3009
3010         * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
3011         * (vasprintf.o): Add dependency for config.h in vasprintf.c.
3012
3013 2000-07-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3014
3015         * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
3016
3017         * setenv.c (setenv): Initialize variable `ep'.
3018
3019         * sigsetmask.c (abort): Prototype.
3020
3021         * vasprintf.c: Include config.h.  Check ANSI_PROTOTYPES, not
3022         __STDC__ for stdarg.h include.
3023         (int_vasprintf): Prototype.
3024         (checkit): Prototype.  Use VPARAMS/ANSI_PROTOTYPES/VA_START in
3025         definition.  Cast `global_total_width' in comparison.
3026         (main): Prototype.  Return a value.
3027
3028         * vfork.c (fork): Prototype.
3029
3030         * xexit.c: Include config.h.
3031
3032 2000-07-20  Joseph S. Myers  <jsm28@cam.ac.uk>
3033
3034         * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
3035         and print it with %u.
3036
3037 2000-07-17  Hans-Peter Nilsson  <hp@axis.com>
3038
3039         * testsuite/regress-demangle (failed test): Show result and
3040         expected output.
3041
3042 2000-07-07  Andrew Haley  <aph@cygnus.com>
3043
3044         * cplus-dem.c (main): fflush() after emitting last char before
3045         waiting for input.
3046
3047 2000-06-28  Alex Samuel  <samuel@codesourcery.com>
3048
3049         * cp-demangle.c (demangle_encoding): Accept no substitutions.
3050         (demangle_name): Handle <substitution> followed by
3051         <unqualified-template-name>.
3052         (demangle_type): Follow special substitutions with
3053         <class-enum-type>
3054         (demangle_subtitution): Set template_p for special substitutions.
3055         (main): Fix typos.
3056
3057 2000-06-27  Alex Samuel  <samuel@codesourcery.com>
3058
3059         * cp-demangle.c (demangle_special_name): Swap base and derived
3060         class when demangling construction vtables.
3061
3062 2000-06-21  Alex Samuel  <samuel@codesourcery.com>
3063
3064         * cp-demangle.c: Don't include ctype.h.
3065         (IS_DIGIT): New macro.
3066         (IS_ALPHA): Likewise.  Use IS_DIGIT and IS_ALPHA throughout
3067         instead of isdigit and isalpanum.
3068         (demangling_def): Make name and next const pointers.
3069         (STATUS_ALLOCATION_FAILED): New status code.
3070         (dyn_string_append_space): Handle failure in
3071         dyn_string_append_char.
3072         (int_to_dyn_string): Likewise.  Change return value to status_t.
3073         (string_list_new): Handle failure of dyn_string_init.
3074         (result_close_template_list): Change return type to status_t.
3075         Handle failure in dyn_string_append.
3076         (result_push): Change return value to status_t.  Handle failure in
3077         string_list_new.  Handle failure of result_push throughout.
3078         (substitution_add): Change return value to status_t.  Handle
3079         dyn_string failures.  Handle failure of substitution_add
3080         throughout.
3081         (template_arg_list_new): Return NULL on allocation failure.
3082         (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
3083         Handle error result throughout.
3084         (result_append): Likewise.
3085         (result_append_char): Likewise.
3086         (result_append_space): Likewise.
3087         (demangling_new): Make argument a const pointer.  Handle
3088         allocation failures.
3089         (demangle_template_args): Handle failure in template_arg_list_new
3090         and result_close_template_list.
3091         (demangle_discriminator): Return if int_to_dyn_string fails.
3092         (cp_demangle): Likewise.
3093         (cp_demangle_type): New function.
3094         (cplus_demangle_new_abi): Don't call dyn_string_delete.  Abort on
3095         memory allocation failure.
3096         (main): Likewise.
3097         * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
3098         IN_LIBGCC2.
3099         (dyn_string_init): Change return value to int.  Handle
3100         RETURN_ON_ALLOCATION_FAILURE case.
3101         (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
3102         (dyn_string_release): Delete the dyn_string.
3103         (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
3104         (dyn_string_copy): Change return type to int.
3105         (dyn_string_copy_cstr): Likewise.
3106         (dyn_string_prepend): Likewise.
3107         (dyn_string_prepend_cstr): Likewise.
3108         (dyn_string_insert): Likewise.
3109         (dyn_string_insert_cstr): Likewise.
3110         (dyn_string_append): Likewise.
3111         (dyn_string_append_cstr): Likewise.
3112         (dyn_string_append_char): Likewise.
3113         (dyn_string_substring): Likewise.
3114
3115 2000-06-09  Zack Weinberg  <zack@wolery.cumb.org>
3116
3117         * cp-demangle.c (demangle_operator_name): Add spaces before
3118         names beginning with a letter: delete, delete[], new, new[],
3119         sizeof.
3120         (demangle_special_name): Handle TF <type> and TJ <type>.
3121
3122 Thu Jun  8 18:52:24 2000  Philippe De Muyter  <phdm@macqel.be>
3123
3124         * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
3125
3126 Thu Jun  8 09:25:54 2000  Philippe De Muyter  <phdm@macqel.be>
3127
3128         * cp-demangle.c (stdio.h): File included unconditionaly.
3129         (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
3130         * dyn-string.c (stdio.h): File included.
3131         * partition.c (partition_print): No `&' needed to take the address of
3132         a function.
3133
3134 2000-06-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3135
3136         * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
3137
3138         * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
3139
3140         * cp-demangle.c (demangle_char): Change parameter from char to int.
3141         (demangle_expression, demangle_expr_primary): Remove extra
3142         semi-colon in prototype.
3143
3144         * dyn-string.c (dyn_string_append_char): Change parameter from
3145         char to int.
3146
3147         * memcmp.c (memcmp): Constify.
3148
3149         * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
3150         __extension__.
3151
3152         * partition.c (elem_compare): Prototype.  Don't cast away
3153         const-ness.
3154
3155         * setenv.c (setenv): Use braces to avoid ambiguous `else'.
3156
3157 2000-06-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3158
3159         * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
3160
3161         * cp-demangle.c: Include demangle.h.
3162         (template_arg_list_new): DeANSIfy.
3163         (cp_demangle): Make static and add prototype.
3164         (operator_code, operators): Constify.
3165         (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
3166
3167 2000-06-05  Alex Samuel  <samuel@codesourcery.com>
3168
3169         * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
3170         unsigned char.
3171         (demangle_unqualified_name): Likewise.
3172         (demangle_number_literally): Likewise.
3173         (demangle_type): Likewise.
3174         (demangle_substitution): Likewise.
3175         (is_mangled_char): Likewise, for isalnum.
3176
3177 2000-06-04  Alex Samuel  <samuel@codesourcery.com>
3178
3179         * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
3180         (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
3181         (cp-demangle.o): New dependency.
3182         (dyn-string.o): Likewise.
3183
3184         * dyn-string.c: Move here from gcc/dyn-string.c.  Add new functions.
3185
3186         * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
3187         demangler.
3188         (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
3189         demangling mode.
3190         (gnu_new_abi_symbol_characters): New function.
3191         (main): Use gnu_new_abi_symbol_characters.  * cp-demangle.c: New
3192         file.
3193         * cp-demangle.c: New file.
3194
3195 Tue May 30 16:45:25 2000  Andrew Cagney  <cagney@b1.cygnus.com>
3196
3197         * floatformat.c: Add name to each floatformat field.
3198
3199 Tue May 30 15:07:52 2000  Jeffrey A Law  (law@cygnus.com)
3200
3201         * Makefile.in (objalloc.o): Depend on config.h
3202
3203 2000-05-29  Zack Weinberg  <zack@wolery.cumb.org>
3204
3205         * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
3206         if HAVE_STRING_H.
3207         * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
3208         * objalloc.c: Include config.h.  Include stdlib.h and don't
3209         declare malloc or free if HAVE_STDLIB_H.
3210         * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
3211         else declare malloc without prototype.  Include string.h if
3212         HAVE_STRING_H, else declare memset without prototype.  Don't
3213         include stddef.h.
3214
3215 2000-05-23  Mike Stump  <mrs@wrs.com>
3216
3217         * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
3218         -j3.
3219
3220 2000-05-18  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
3221
3222         * xmalloc.c: Include config.h for HAVE_SBRK definition.
3223
3224 2000-05-16  Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
3225
3226         * hashtab.c (hash_pointer): Delete low-order bits which are
3227         probably zero, also eliminate a warning on alpha.
3228
3229 2000-05-15  David Edelsohn  <edelsohn@gnu.org>
3230
3231         * Makefile.in: Change "pic" to depend on $(PICFLAG), not
3232         on $(enable_shared).
3233
3234 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
3235
3236         * config.table: Use mh-sparcpic for sparc*-*-*.
3237
3238 2000-05-08  Nick Clifton  <nickc@cygnus.com>
3239
3240         * Makefile.in (CFILES): Add strncmp.c.
3241         (NEEDED): Add strncmp.
3242
3243 2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3244
3245         * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
3246         Cast the arguments to `islower' to `unsigned char'.
3247         (print_demangler_list): Prototype.
3248
3249 Thu May  4 17:14:41 2000  Philippe De Muyter  <phdm@macqel.be>
3250
3251         * sort.c (UCHAR_MAX): Provide fallback definition.
3252
3253 2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
3254
3255         * Makefile.in (maintainer-clean-subdir): Fix handling of empty
3256         SUBDIRS.
3257
3258 2000-04-28  Kenneth Block  <block@zk3.dec.com>
3259             Jason Merrill  <jason@casey.cygnus.com>
3260
3261         * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
3262         (cplus_demangle_set_style): New function for setting style.
3263         (cplus_demangle_name_to_style): New function to translate name.
3264
3265 2000-04-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3266
3267         * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
3268
3269         * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
3270         (libiberty_AC_FUNC_STRNCMP): Invoke.
3271
3272         * strncmp.c: New file.
3273
3274 Thu Apr 27 16:58:43 MET DST 2000  Jan Hubicka  <jh@suse.cz>
3275
3276         * hashtab.c (htab_expand): Add prototype.
3277         (find_empty_slot_for_expand): Likewise.
3278
3279 2000-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3280
3281         * hashtab.c (hash_pointer, eq_pointer): Make definition static to
3282         match prototype.
3283         (htab_expand): Cast the return value of xcalloc.
3284
3285 2000-04-24  Mark Mitchell  <mark@codesourcery.com>
3286
3287         * hashtab.c (hash_pointer): New function.
3288         (eq_pointer): Likewise.
3289         (htab_hash_pointer): New variable.
3290         (htab_eq_pointer): Likewise.
3291
3292 2000-04-23  Mark Mitchell  <mark@codesourcery.com>
3293
3294         * sort.c (sort_pointers): Fix endianness bugs.
3295
3296         * sort.c: New file.
3297         * Makefile.in (CFILES): Add sort.c
3298         (REQUIRED_OFILES): Add sort.o.
3299         (sort.o): New target.
3300
3301 2000-04-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3302
3303         * Makefile.in (*-subdir): Revamp slightly to avoid losing on
3304         4.3BSD systems.
3305
3306 Tue Apr 18 16:23:31 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3307
3308         * hashtab.c: Various minor cleanups.
3309         (htab_find_slot_with_hash): INSERT is now enum insert_option.
3310         (htab_find_slot): Likewise.
3311
3312 2000-04-16  Dave Pitts  <dpitts@cozx.com>
3313
3314         * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
3315
3316 2000-04-05  Richard Henderson  <rth@cygnus.com>
3317
3318         * splay-tree.c (splay_tree_remove): New.
3319
3320 2000-03-30  Mark Mitchell  <mark@codesourcery.com>
3321
3322         * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
3323         codes.
3324         (htab_find_with_hash): Likewise.
3325         (htab_find_slot_with_hash): Likewise.
3326
3327 2000-03-29  Zack Weinberg  <zack@wolery.cumb.org>
3328
3329         * hashtab.c (htab_find_with_hash): Avoid calculating hash2
3330         unless it will be used.  Rearrange loop for better
3331         optimization.
3332         (higher_prime_number): Add static prototype.
3333
3334 Thu Mar 16 01:33:58 2000  Jeffrey A Law  (law@cygnus.com)
3335
3336         * Makefile.in (partition.o): Depend on config.h
3337
3338 2000-03-14  Bernd Schmidt  <bernds@cygnus.co.uk>
3339
3340         * hashtab.c (find_empty_slot_for_expand): New function.
3341         (htab_expand): Use it instead of htab_find_slot.
3342         (htab_find_with_hash): Renamed from htab_find; now accepts extra
3343         argument HASH.
3344         (htab_find_slot_with_hash): Likewise for htab_find_slot.
3345         (htab_find): New wrapper function.
3346         (htab_find_slot): Likewise.
3347         (htab_traverse): Pass slot, not entry, to called function.
3348
3349 2000-03-09  Alex Samuel  <samuel@codesourcery.com>
3350
3351         * Makefile.in (CFILES): Add partition.c.
3352         (REQUIRED_OFILES): Add partition.o.
3353         (partition.o): New rule.
3354         * partition.c: New file.
3355
3356 2000-03-09  Zack Weinberg  <zack@wolery.cumb.org>
3357
3358         * hashtab.c (htab_create): Set del_f.
3359         (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
3360         Use it.
3361
3362 2000-03-08  Zack Weinberg  <zack@wolery.cumb.org>
3363
3364         * hashtab.c: Remove debugging variables (all_searches,
3365         all_collisions, all_expansions). Delete
3366         all_hash_table_collisions.
3367         (create_hash_table, delete_hash_table, empty_hash_table,
3368         find_hash_table_entry, remove_element_from_hash_table_entry,
3369         clear_hash_table_slot, traverse_hash_table, hash_table_size,
3370         hash_table_elements_number, hash_table_collisions): Rename to:
3371         htab_create, htab_delete, htab_empty, htab_find_slot,
3372         htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
3373         htab_elements, htab_collisions.
3374         (htab_find): New function, handles common case where you don't
3375         plan to add or delete an entry.
3376         (htab_expand): Don't create a whole new table, just a new
3377         entry vector.
3378         (htab_find_slot): Simplify logic.
3379
3380 1999-08-03  Ian Lance Taylor  <ian@zembu.com>
3381
3382         * floatformat.c: Add casts to avoid signed/unsigned warnings.
3383         * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
3384
3385         * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
3386         $(TARGETLIB)n so it works on MSDOS.
3387         (install_to_tooldir): Likewise.
3388
3389 1999-07-21  Ian Lance Taylor  <ian@zembu.com>
3390
3391         From Mark Elbrecht:
3392         * makefile.dos: Remove; obsolete.
3393         * configure.bat: Remove; obsolete.
3394
3395 1999-07-11  Ian Lance Taylor  <ian@zembu.com>
3396
3397         * splay-tree.c (splay_tree_insert): Add initialization to avoid
3398         warning.
3399
3400 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
3401
3402         * pexecute.c: Conditionally include string.h.
3403         (fix_argv): Handle embedded whitespace in args for Mingw32.
3404
3405 2000-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3406
3407         * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
3408         we're using gcc.
3409
3410         * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
3411
3412 1999-12-27  Geoff Keating  <geoffk@cygnus.com>
3413
3414         * vasprintf.c (int_vasprintf): Don't re-read the format character
3415         as this mishandles strings like '%%s'.
3416
3417 1999-12-05  Mark Mitchell  <mark@codesourcery.com>
3418
3419         * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
3420         rather than struct splay_tree_node.
3421         (splay_tree_insert): Use struct splay_tree_s rather than struct
3422         splay_tree.
3423
3424 Sun Nov 28 00:59:39 1999  Philippe De Muyter  <phdm@macqel.be>
3425
3426         * hashtab.c (sys/types.h): File included.
3427
3428 1999-11-22  Jason Merrill  <jason@casey.cygnus.com>
3429
3430         * strtoul.c, strtol.c, random.c: Remove advertising clause from
3431         BSD license, pursuant with
3432
3433           ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
3434
3435 Wed Nov 10 09:42:39 1999  Jeffrey A Law  (law@cygnus.com)
3436
3437         * hashtab.c: Include stdio.h.
3438
3439 Mon Nov  8 09:23:41 1999  Jeffrey A Law  (law@cygnus.com)
3440
3441         * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
3442
3443 Tue Nov  2 03:23:13 1999  Philippe De Muyter  <phdm@macqel.be>
3444
3445         * xstrdup (sys/types.h): Include this file.
3446
3447 1999-10-28  Nathan Sidwell  <nathan@acm.org>
3448
3449         * Makefile.in (SUBDIRS): New macro.
3450         (mostlyclean, clean, distclean, maintainer-clean): Adjust to
3451         avoid multiple subdirectory cleaning.
3452         (*-subdir): Use SUBDIRS.
3453
3454 1999-10-25  Jim Kingdon  <http://developer.redhat.com/>
3455
3456         * cplus-dem.c: Move declarations of standard_symbol_characters and
3457         hp_symbol_characters inside #ifdef MAIN to avoid compiler
3458         warnings.
3459
3460 1999-10-23 08:51 -0700  Zack Weinberg  <zack@bitmover.com>
3461
3462         * hashtab.c (find_hash_table_entry): When returning a
3463         DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
3464         (clear_hash_table_slot): New function which deletes an entry
3465         by its position in the table, not its value.
3466         (traverse_hash_table): New function which calls a hook
3467         function for every live entry in the table.
3468
3469 1999-10-19  Mark Mitchell  <mark@codesourcery.com>
3470
3471         * cplus-dem.c (INTBUF_SIZE): New macro.
3472         (string_append_template_idx): New function.
3473         (demangle_expression): Likewise.
3474         (demangle_integral_value): Use it.
3475         (demangle_real_value): New function, split out from ...
3476         (demangle_template_value_parm): ... here.  Use
3477         string_append_template_idx.  Use demangle_real_value.
3478         (demangle_template): Use string_append_template_idx.
3479         (demangle_qualified): Use consume_count_with_underscores.
3480         (get_count): Tweak formatting.
3481         (do_type): Use string_append_template_idx.
3482
3483 1999-10-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3484
3485         * calloc.c: Add a public domain notice.
3486
3487 Mon Oct 18 02:30:47 1999  Philippe De Muyter  <phdm@macqel.be>
3488
3489         * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
3490
3491 Fri Oct 15 01:47:51 1999  Vladimir Makarov  <vmakarov@loony.cygnus.com>
3492
3493         * Makefile.in (CFILES): Add hashtab.c
3494         (REQUIRED_OFILES): Add hashtab.o
3495         (hashtab.o): Add dependencies.
3496         * hashtab.c: New file
3497
3498 Wed Oct 13 01:16:47 1999  Mumit Khan  <khan@xraylith.wisc.edu>
3499
3500         * basename.c (DIR_SEPARATOR): New macro.
3501         (DIR_SEPARATOR_2): Likewise.
3502         (HAVE_DOS_BASED_FILESYSTEM): Likewise.
3503         (IS_DIR_SEPARATOR): Likewise.
3504         (main): Handle MSDOS style pathname.
3505
3506 1999-10-11  Mark Mitchell  <mark@codesourcery.com>
3507
3508         * cplus-dem.c (do_type): Handle pointer to member types whose
3509         enclosing classes have namespace scope.
3510
3511 Sun Oct 10 01:23:50 1999  Marc Espie <espie@cvs.openbsd.org>
3512
3513         * config.table:  Provide a backup shell for executing move-if-change.
3514
3515 1999-10-02  Mark Mitchell  <mark@codesourcery.com>
3516
3517         * xmalloc.c (xmalloc): Fix spelling error.
3518         (xcalloc, xrealloc): Likewise.
3519
3520 1999-10-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3521
3522         * cplus-dem.c (fancy_abort, demangle_integral_value,
3523         demangle_arm_hp_template, recursively_demangle,
3524         standard_symbol_characters, hp_symbol_characters, main): Add prototype.
3525         (program_name, program_version, fatal): Constify a char*.
3526         (usage, fatal): Mark with ATTRIBUTE_NORETURN.
3527         (main): Call return, not exit.
3528
3529 1999-09-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3530
3531         * choose-temp.c: Remove obsolete comment about gcc.
3532         (make_temp_file): Constify a char*.
3533
3534 Wed Sep  8 20:03:28 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3535
3536         * xmemdup.c: Include sys/types.h.
3537
3538 1999-09-07  Jeff Garzik  <jgarzik@pobox.com>
3539
3540         * xmemdup.c: New xmemdup function.
3541         * Makefile.in, makefile.vms, vmsbuild.com:  Use xmemdup.[co].
3542
3543 Tue Sep  7 23:32:18 1999  Linas Vepstas  <linas@linas.org>
3544
3545         * config.table: Add openedition target.
3546         * config/mh-openedition: New file.
3547
3548 Thu Sep  2 01:36:12 1999  Marc Espie <espie@cvs.openbsd.org>
3549
3550         * pexecute.c (pexecute):  Fill in temp_base when needed.
3551
3552 1999-08-31  Richard Henderson  <rth@cygnus.com>
3553
3554         * getpwd.c: Check HAVE_GETCWD before defining it away.
3555
3556 1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3557
3558         * Makefile.in (CFILES): Add calloc.c and getpwd.c.
3559         (REQUIRED_OFILES): Add getpwd.o.
3560         (getpwd.o): Add target.
3561
3562         * configure.in (AC_PREREQ): Bump to 2.13.
3563         (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
3564
3565         * getpwd.c: New file, moved here from gcc.
3566
3567 1999-08-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3568
3569         * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
3570         comparing against a signed quantity.
3571         (arm_special): Likewise.
3572         (demangle_fund_type): Likewise.
3573         (do_hpacc_template_const_value): Mark parameter `work' with
3574         ATTRIBUTE_UNUSED.
3575         (main): Constify variable `valid_symbols'.
3576
3577 Tue Aug 24 02:50:45 1999  Philippe De Muyter  <phdm@macqel.be>
3578
3579         * strtoul.c (strtoul): Add parentheses around && within ||.
3580
3581 Fri Aug  6 23:32:29 1999  Daniel Jacobowitz <drow@drow.them.org>
3582
3583         * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3584         libdir, libsubdir and tooldir.
3585
3586 1999-08-01  Mark Mitchell  <mark@codesourcery.com>
3587
3588         * splay-tree.c (splay_tree_insert): Return the new node.
3589
3590 1999-07-14  Richard Henderson  <rth@cygnus.com>
3591
3592         * argv.c: Include stdlib.h and string.h instead of
3593         prototyping directly.
3594         * choose-temp.c: Conditionally include string.h.
3595
3596 1999-07-12  Jason Merrill  <jason@yorick.cygnus.com>
3597
3598         * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
3599
3600 1999-07-11  Ian Lance Taylor  <ian@zembu.com>
3601
3602         * splay-tree.c (splay_tree_insert): Add initialization to avoid
3603         warning.
3604
3605 1999-07-07  Jason Merrill  <jason@yorick.cygnus.com>
3606
3607         * Makefile.in (needed-list): Only include stuff we actually need
3608         for libstdc++.
3609
3610 1999-06-21  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
3611
3612         * configure.in (checkfuncs): Add gettimeofday.
3613         * config.in, configure: Regenerated.
3614
3615 Mon Jun 21 05:56:01 1999  Mumit Khan  <khan@xraylith.wisc.edu>
3616
3617         * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
3618         the test fails.
3619         * configure: Regenerate.
3620
3621 1999-06-10  Mike Stump  <mrs@wrs.com>
3622
3623         * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
3624         parallel builds.
3625
3626 1999-05-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3627
3628         * putenv.c: Include ansidecl.h to define `const'.
3629         * setenv.c: Likewise.
3630
3631 Wed May 26 03:58:20 1999  "Melissa O'Neill" <oneill@cs.sfu.ca>
3632
3633         * Makefile.in (CFILES): Add putenv.c and setenv.c.
3634         * configure.in (funcs): Add putenv and setenv.
3635         (AC_CHECK_FUNCS): Check for putenv and setenv.
3636         * configure: Rebuilt.
3637         * putenv.c setenv.c: New files.
3638
3639         * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
3640         bytes of space using malloc.
3641
3642 Mon May 17 01:42:34 1999  Stu Grossman  <grossman@babylon-5.cygnus.com>
3643
3644         * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
3645         the *mangled pointer beyond the end of the string.  Clean up code to
3646         match prevailing coding style.
3647
3648 1999-05-13  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
3649
3650         * tmpnam.c (L_tmpnam): Fix typo.
3651
3652 Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
3653
3654         * cplus-dem.c (standard_symbol_characters): Renamed from
3655         standard_symbol_alphabet.  No longer modify TABLE.
3656         (hp_symbol_characters): Renamed from hp_symbol_alphabet.  No longer
3657         modify TABLE.
3658         (main): Corresponding changes.  Use strchr to determine if a
3659         character is valid.
3660
3661 1999-05-11  Jim Blandy  <jimb@zwingli.cygnus.com>
3662
3663         * cplus-dem.c (main): Use table lookup to distinguish identifier
3664         characters from non-identifier characters.
3665         (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
3666
3667 Thu May  6 20:34:42 1999  Fred Fish  <fnf@be.com>
3668
3669         * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
3670         * getruntime.c: Only attempt to include sys/resource.h and
3671         use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
3672         are defined.
3673
3674 Mon Apr 26 01:36:06 1999  Donn Terry (donn@interix.com)
3675
3676         * configure.in (alloca detection): Handle alloca directly for interix.
3677         * configure: Rebuilt.
3678
3679 Sun Apr 25 01:18:21 1999  Mumit Khan  <khan@xraylith.wisc.edu>
3680
3681         * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
3682
3683 1999-04-20  Jim Blandy  <jimb@zwingli.cygnus.com>
3684
3685         Fix from Dale Hawkins:
3686         * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
3687         reallocated properly if we use it again.
3688
3689         * cplus-dem.c (demangle_fund_type): Check for buffer overrun.  Be
3690         stricter about syntax.  Always null-terminate string.
3691
3692 Thu Apr 15 23:00:55 1999  Mumit Khan  <khan@xraylith.wisc.edu>
3693
3694         * configure.in (checkfuncs): Check for sbrk.
3695         * config.in: Rebuilt.
3696         * configure: Likewise.
3697         * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
3698
3699 1999-04-12  Jim Blandy  <jimb@zwingli.cygnus.com>
3700
3701         Fix from Marcus Daniels:
3702         * cplus-dem.c (demangle_fund_type): Don't run off the end of the
3703         identifier looking for another underscore.
3704
3705 Sun Apr 11 23:20:59 1999  Mumit Khan  <khan@xraylith.wisc.edu>
3706
3707         * pexecute.c: Change all references to __UWIN__ to _UWIN.
3708         * xmalloc.c: Likewise.
3709         (xcalloc): UWIN has sbrk.
3710         (xrealloc): Fix guard macro.
3711
3712 1999-04-11  Richard Henderson  <rth@cygnus.com>
3713
3714         * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
3715         or <alloca.h>.
3716         * clock.c (GNU_HZ): New definition.
3717         (clock): Use it.
3718         * getruntime.c: Likewise.
3719
3720         * config.table: Use mh-beos.
3721         * config/mh-beos: New file.
3722
3723 1999-04-11  Mark Mitchell  <mark@codesourcery.com>
3724
3725         * cplus-dem.c (demangle_template_value_parm): Handle
3726         pointers-to-members.
3727         (do_type): Handle template parameters as qualifiers.
3728
3729 1999-04-01  Jim Blandy  <jimb@zwingli.cygnus.com>
3730
3731         * cplus-dem.c: Attempt to handle overflows in counts with some
3732         semblance of grace.
3733         (consume_count): Detect overflows.  Return -1 to indicate errors,
3734         instead of zero.
3735         (demangle_template_value_parm, demangle_template): Handle change
3736         to consume_count's return convention.
3737
3738 1999-04-05  Tom Tromey  <tromey@cygnus.com>
3739
3740         * testsuite/regress-demangle: New file.
3741         * testsuite/demangle-expected: New file.
3742
3743         * Makefile.in (all, check, installcheck, info, install-info,
3744         clean-info, dvi, install, etags, tags, mostlyclean, clean,
3745         distclean, maintainer-clean, realclean): Depend on corresponding
3746         `-subdir' target.
3747         (all-subdir check-subdir installcheck-subdir info-subdir
3748         install-info-subdir clean-info-subdir dvi-subdir
3749         install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
3750         distclean-subdir maintainer-clean-subdir): New target.
3751         * testsuite/Makefile.in: New file.
3752         * configure: Rebuilt.
3753         * configure.in: Create testsuite/Makefile.
3754
3755 1999-04-02  Mark Mitchell  <mark@codesourcery.com>
3756
3757         * splay-tree.h (splay_tree_compare_pointers): Define.
3758
3759 1999-03-30  Mark Mitchell  <mark@codesourcery.com>
3760
3761         * splay-tree.c (splay_tree_compare_ints): Define.
3762
3763 1999-03-30  Tom Tromey  <tromey@cygnus.com>
3764
3765         * cplus-dem.c (consume_count): If `count' wraps, return 0 and
3766         don't advance input pointer.
3767         (demangle_class_name): If consume_count didn't find a count, do
3768         nothing.  Don't bother with `strlen' sanity check; consume_count
3769         does it for us.
3770
3771 1999-03-16  Stan Shebs  <shebs@andros.cygnus.com>
3772
3773         From Art Haas  <ahaas@neosoft.com>:
3774         * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
3775         when doing arm or hp style.
3776         (demangle_nested_args): Decr forgetting_types field when done.
3777
3778 Thu Mar 11 01:22:58 1999  Mumit Khan  <khan@xraylith.wisc.edu>
3779
3780         * pexecute.c (__CYGWIN32__): Rename to
3781         (__CYGWIN__): this.
3782         * xmalloc.c: Likewise.
3783
3784         Changes to support i386-pc-uwin.
3785         * configure.in (*-*-uwin*): Workaround for vfork bug.
3786         * configure: Regenerate.
3787         * pexecute.c (pexecute): Be like standard Unix.
3788         (pwait): Likewise.
3789         * xmalloc.c (first_break): Define.
3790         (xmalloc_set_program_name): Use.
3791         (xmalloc): Use.
3792
3793 Thu Mar 11 01:07:55 1999  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3794
3795         * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
3796
3797 Sun Feb 28 22:30:44 1999  Geoffrey Noer  <noer@cygnus.com>
3798
3799         * config.table: Check cygwin*, not cygwin32*.
3800
3801 Tue Feb  9 16:39:01 1999  Dave Brolley  <brolley@cygnus.com>
3802
3803         * Makefile.in: Change mkstemp -> mkstemps.
3804
3805 Tue Feb  9 01:12:27 1999  Marc Espie <Marc.Espie@liafa.jussieu.fr>
3806
3807         * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
3808         * configure.in (funcs): Check for and conditionally add mkstemps to
3809         the list of functions libiberty will provide.
3810         * configure: Rebuilt.
3811
3812 Wed Feb  3 00:01:15 1999  Mumit Khan  <khan@xraylith.wisc.edu>
3813
3814         * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
3815         platforms that don't have HZ.
3816         * getruntime.c (HZ): Likewise.
3817
3818 Sat Jan 30 13:28:04 1999  Richard Henderson  <rth@cygnus.com>
3819
3820         * Makefile.in (xstrdup.o): Depend on config.h.
3821
3822 Wed Jan 13 07:26:44 1999  H.J. Lu  (hjl@gnu.org)
3823
3824         * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
3825         freeing it.
3826
3827 Wed Jan 13 14:16:36 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3828
3829         * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
3830
3831 Tue Jan  5 15:58:29 1999  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
3832
3833         * Makefile.in (CFILES): fix typo, splay-tree.c instead of
3834         splay-tree.o.
3835
3836 1999-01-04  Jason Molenda  (jsm@bugshack.cygnus.com)
3837
3838         * configure.in: Require autoconf 2.12.1 or higher.
3839
3840 1998-12-30  Michael Meissner  <meissner@cygnus.com>
3841
3842         * random.c (NULL): Don't redefine NULL if it is already defined.
3843
3844 Tue Dec 22 09:43:35 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3845
3846         * argv.c (buildargv): Cast the result of alloca in assignment.
3847
3848         * choose-temp.c: Include stdlib.h.
3849
3850         * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
3851         (snarf_numeric_literal): Constify first parameter.
3852         (code_for_qualifier): Avoid a gcc extension, make the parameter an
3853         int, not a char.
3854         (demangle_qualifier): Likewise.
3855         (demangle_signature): Cast the argument of a ctype function to
3856         unsigned char.
3857         (arm_pt): Add parens around assignment used as truth value.
3858         (demangle_arm_hp_template): Constify variable `args'.
3859         (do_hpacc_template_const_value): Cast the argument of a ctype
3860         function to unsigned char.
3861         (do_hpacc_template_literal): Remove unused variable `i'.
3862         (snarf_numeric_literal): Constify parameter `args'.
3863         Cast the argument of a ctype function to unsigned char.
3864
3865         * floatformat.c (floatformat_to_double): Add explicit braces to
3866         avoid ambiguous `else'.
3867
3868         * fnmatch.c (fnmatch): Change type of variables `c', `c1',
3869         `cstart' and `cend' to unsigned char.  Cast the argument of macro
3870         `FOLD', which uses ctype functions, to unsigned char.
3871
3872         * objalloc.c (free): Add prototype.
3873
3874 Sun Dec 20 16:03:46 1998  Hans-Peter Nilsson  <hp@axis.se>
3875
3876         * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
3877
3878 Fri Dec 18 17:50:18 1998  David Taylor  <taylor@texas.cygnus.com>
3879
3880         * cplus-dem.c (demangle_arm_pt): remove declaration -- function
3881         doesn't exist.
3882         (do_hpacc_template_literal): remove unused variable `i'.
3883
3884 Fri Dec 18 16:11:43 EST 1998  Andrew MacLeod  <amacleod@cygnus.com>
3885
3886         * cplus-dem.c (demangle_fund_type): Process CV and u codes before
3887         bumping the pointer we read from. Also prepend these codes,
3888         as we do in other places.
3889
3890 1998-12-18  Nick Clifton  <nickc@cygnus.com>
3891
3892         * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
3893         'const char *' in order to match its usage when calling siblings.
3894         (snarf_numeric_literal): Make first arg 'const char **' in order
3895         to match usage.
3896
3897 Mon Dec 14 09:55:50 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3898
3899         * choose-temp.c: Don't check IN_GCC anymore.
3900
3901         * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
3902         * memchr.c (memchr): Likewise.
3903         * memcpy.c (memcpy): Likewise.
3904         * memmove.c (memmove): Likewise.
3905
3906         * mkstemp.c: Don't check IN_GCC anymore.
3907         * pexecute.c: Likewise.
3908         * splay-tree.c: Likewise.
3909
3910         * strchr.c (strchr): Use `const', not `CONST'.
3911         * strrchr.c (strrchr): Likewise.
3912         * strtol.c (strtol): Likewise.
3913         * strtoul.c (strtoul): Likewise.
3914
3915 Fri Dec  4 13:51:04 1998  David Taylor   <taylor@texas.cygnus.com>
3916                           Elena Zannoni  <ezannoni@cygnus.com>
3917                           Stan Shebs     <shebs@cygnus.com>
3918                           Edith Epstein  <eepstein@cygnus.com>
3919                           Andres MacLeod <amacleod@cygnus.com>
3920                           Satish Pai     <pai@apollo.hp.com>
3921
3922         * HP aCC demangling support.
3923         * cplus-dem.c
3924         (main): Remove default to HP style demangling, set to EDG
3925         demangling correctly when -edg specified; set the demangling style
3926         when user specifies 'edg'. Set strip_underscore to
3927         prepends_underscore, if not HPUXHPPA.  Set
3928         current_demangling_style to hp_demangling if HPUXHPPA.  Set
3929         current demangling style correctly if the switch is hp.  Read
3930         label correctly also in the HP style case.
3931         (work_stuff): add temp_start field; add field for volatile member
3932         function.
3933         (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
3934         style for this case is the same as ARM.
3935         (demangle_args): handle EDG_DEMANGLING style; support HP style.
3936         (demangle_arm_hp_template): new function. (It was
3937         demangle_arm_pt.); check and set value of temp_start field in
3938         multiple places. Also, when ceching for end of template args,
3939         check to see if at end of static member of template class.
3940         (demangle_class): new local variable : save_class_name_end Don't
3941         include template args in string defining class.
3942         (demangle_class_name): use demangel_arm_hp_template.
3943         (demangle_function_name): handle case where demangling style is
3944         HP_DEMANGLING and currently point at an 'X' in the mangled name.
3945         Handle EDG_DEMANGLING style.  Handle constructor and destructor
3946         ops for HP style.
3947         (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
3948         styles.  global destructor and constructor for HP style are same
3949         as for ARM style. Same for local variables.
3950         (demangle_qualified): handle EDG_DEMANGLING style.
3951         (demangle_signature): add case for volatile member function.  For
3952         cases '1' - '9' : initialize the temp_start field to -1 and handle
3953         the EDG_DEMANGLING style.  for case 'F' : handle EDG_DEMANGLING
3954         and AUTO_DEMANGLING styles.  If expecting a function and managed
3955         to demangle the funct args, then handle the LUCID_DEMANGLING,
3956         ARM_DEMANGLING, and EDG_DEMANGLING styles.  Add case for local
3957         class name after "Lnnn_ in HP style case. HP style too needs to
3958         forget types.  _nnn is OK for HP style, so don't report failure.
3959         (do_hpacc_template_const_value): new function. Handle template's
3960         value param for HP/aCC.
3961         (do_hpacc_template_literal): new function.  Handle a template's
3962         literal parameter for HP aCC.
3963         (recursively_demangle): new function
3964         (snarf_numeric_literal): new function.
3965         (usage): add 'edg' to the list of demangling styles; add hp switch
3966         to message.
3967
3968 Sat Nov 28 17:25:22 1998  Christopher Faylor <cgf@cygnus.com>
3969
3970         * pexecute.c: Remove obsolete ifdefed cygwin code.
3971
3972 Fri Nov 27 13:26:06 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3973
3974         * choose-temp.c: Always include libiberty.h.  Avoid redundancies.
3975         * cplus-dem.c: Likewise.  Conform to libiberty.h.
3976         * pexecute.c: Likewise.
3977         * splay-tree.c: Likewise.
3978
3979 1998-11-25  Mike Stump  <mrs@wrs.com>
3980
3981         * Makefile.in (splay-tree.o): Add config.h dependency.
3982
3983 Mon Nov 23 16:59:49 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3984
3985         *  configure.in: Use AC_PREREQ(2.12.1).
3986
3987 1998-11-16  Benjamin Kosnik  <bkoz@haight.constant.com>
3988
3989         * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
3990
3991 Thu Nov 19 22:15:50 1998  Jeffrey A Law  (law@cygnus.com)
3992
3993         * mpw.c (mpw_access): Add missing parens.
3994
3995 Thu Nov 19 12:59:21 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3996
3997         * configure.in: Call AC_HEADER_SYS_WAIT.
3998
3999         * pexecute.c: Include sys/wait.h when !IN_GCC.
4000
4001 Thu Nov 19 14:38:20 1998  Geoffrey Noer  <noer@cygnus.com>
4002
4003         * pexecute.c: revert back to checking old Cygwin
4004         preprocessor symbol until some time has passed.
4005
4006 Wed Nov 18 08:52:26 1998  Christopher Faylor <cgf@cygnus.com>
4007
4008         * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
4009         since it will now support similar constructs.
4010
4011 Fri Nov 13 19:18:05 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4012
4013         * configure.in: Check for calloc.
4014
4015         * calloc.c: New file.
4016
4017         * xmalloc.c (xcalloc): New function.
4018
4019 Fri Nov 13 08:51:46 EST 1998  Andrew MacLeod  <amacleod@cygnus.com>
4020
4021         *cplus-dem.c (demangle_prefix): Use the last "__"
4022         in the mangled name when looking for the signature. This allows
4023         template names to begin with "__".
4024
4025 1998-11-08  Mark Mitchell  <mark@markmitchell.com>
4026
4027         * cplus-dem.c (type_kind_t): Add tk_reference.
4028         (demangle_template_value_parm): Handle it.
4029         (do_type): Use it for references, instead of tk_pointer.
4030
4031         * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
4032         not internal_cplus_demangle.
4033
4034 Sat Nov  7 16:02:10 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4035
4036         * choose-temp.c: Don't include gansidecl.h.
4037         * mkstemp.c: Likewise.
4038         * pexecute.c: Likewise.
4039
4040 Mon Nov  2 15:05:33 1998  Geoffrey Noer  <noer@cygnus.com>
4041
4042         * configure.in: detect cygwin* instead of cygwin32*
4043         * configure: regenerate
4044
4045 Mon Nov  2 10:22:01 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4046
4047         * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
4048         whether to include config.h.  Possibly include unistd.h in the
4049         !IN_GCC case.  Define VFORK_STRING as a printable function call
4050         for error messages (either "vfork" or "fork".)  If HAVE_VFORK_H is
4051         defined, include vfork.h.  If VMS is defined, define vfork()
4052         appropriately.  Remove vfork check on USG, we're using autoconf.
4053         (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
4054         locally what string to use.
4055
4056 1998-10-26  Mark Mitchell  <mark@markmitchell.com>
4057
4058         * splay-tree.c: Tweak include directives to make sure declarations of
4059         xmalloc and free are available.
4060
4061 1998-10-25  Mark Mitchell  <mark@markmitchell.com>
4062
4063         * cplus-dem.c (gnu_special): Fix handling of virtual tables in
4064         anonymous namespaces.
4065
4066 1998-10-23  Mark Mitchell  <mark@markmitchell.com>
4067
4068         * cplus-dem.c (work_stuff): Replace const_type and volatile_type
4069         with type_quals.
4070         (TYPE_UNQUALIFIED): New macro.
4071         (TYPE_QUAL_CONST): Likewise.
4072         (TYPE_QUAL_VOLATILE): Likewise.
4073         (TYPE_QUAL_RESTRICT): Likewise.
4074         (code_for_qualifier): New function.
4075         (qualifier_string): Likewise.
4076         (demangle_qualifier): Likewise.
4077         (internal_cplus_demangle): Use them.
4078         (demangle_signature): Likewise.
4079         (demangle_template_value_parm): Likewise.
4080         (do_type): Likewise.
4081         (demangle_fund_type)): Likewise.
4082
4083 Thu Oct 22 19:58:43 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4084
4085         * splay-tree.c (splay_tree_foreach_helper): Make definition static
4086         to match prototype.
4087
4088 1998-10-21  Mark Mitchell  <mark@markmitchell.com>
4089
4090         * splay-tree.c: New file.
4091         * Makefile.in (CFILES): Add it.
4092         (REQUIRED_OFILES): Likewise.
4093         (splay-tree.o): Add dependencies.
4094
4095 Tue Oct 20 12:29:02 1998  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
4096
4097         * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
4098         range of 'K' index.
4099
4100 Thu Oct 15 18:51:12 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4101
4102         * choose-temp.c: Prototype mkstemps() when IN_GCC.
4103
4104         * cplus-dem.c (consume_count): Cast argument of ctype macro to
4105         `unsigned char'.
4106         (cplus_demangle_opname): Cast the result of `strlen' to (int) when
4107         comparing against one.
4108         (cplus_mangle_opname): Likewise.
4109         (demangle_integral_value): Cast argument of ctype macro to
4110         `unsigned char'.
4111         (demangle_template_value_parm): Likewise.
4112         (demangle_template): Initialize variable `bindex'.  Cast the
4113         result of `strlen' to (int) when comparing against one.  Remove
4114         unused variable `start_of_value_parm'.
4115         (demangle_class_name): Cast the result of `strlen' to (int) when
4116         comparing against one.
4117         (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
4118         (gnu_special): Likewise.  Cast the result of `strlen' to (int)
4119         when comparing against one.
4120         (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
4121         (get_count): Likewise.
4122         (do_type): Likewise.  Cast the result of `strlen' to (int) when
4123         comparing against one.
4124         (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
4125         (demangle_function_name): Cast the result of `strlen' to (int)
4126         when comparing against one.
4127
4128         * mkstemp.c (mkstemps): Cast variable `len' to (int) when
4129         comparing against one.
4130
4131 Tue Oct 13 23:51:51 1998  Jeffrey A Law  (law@cygnus.com)
4132
4133         * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
4134         * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
4135         * config.in, configure: Rebuilt.
4136
4137         * getopt.c: Check HAVE_STRINGS_H before including strings.h.
4138         * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
4139         * config.in, configure: Rebuilt.
4140
4141 Mon Oct 12 19:15:59 1998  Geoffrey Noer  <noer@cygnus.com>
4142
4143         * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
4144
4145 Sun Oct 11 17:36:06 1998  Michael Tiemann  <tiemann@holodeck.cygnus.com>
4146
4147         * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
4148
4149 Thu Oct  8 23:42:08 1998  Jeffrey A Law  (law@cygnus.com)
4150
4151         * Merge egcs & devo libiberty.
4152
4153 1998-09-08  Martin von Löwis  <loewis@informatik.hu-berlin.de>
4154
4155         * cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces.
4156
4157 Mon Sep  7 23:29:01 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4158
4159         * mkstemp.c: Include config.h even when not IN_GCC.  Wrap header
4160         inclusions inside HAVE_*_H macros.  Include ansidecl.h when not
4161         IN_GCC.
4162
4163         * vasprintf.c: Include stdarg.h/varargs.h first.
4164
4165         * vprintf.c: Likewise.
4166
4167 Sat Sep  5 03:24:49 1998  Jeffrey A Law  (law@cygnus.com)
4168
4169         * pexecute.c: Updates from gcc.  Copy in gcc has been removed.  This
4170         is the canonical copy.  Define ISSPACE if !IN_GCC.
4171         * alloca.c, vfprintf.c, choose-temp.c, mkstemp.c, getopt.c: Similarly.
4172         * getopt1.c, obstack.c: Similarly.
4173         * Makefile.in: Build mkstemp.o
4174
4175 Tue Sep  1 23:12:47 1998  Christopher Faylor <cgf@cygnus.com>
4176
4177         * configure.in: Include asprintf in list of functions known not
4178         to be in newlib.
4179         * configure: Rebuild.
4180
4181 Wed Aug 19 14:05:01 1998  Mumit Khan  <khan@xraylith.wisc.edu>
4182
4183         * cplus-dem.c (work_stuff): Add dllimported.
4184         (demangled_prefix): Mark symbols imported from PE DLL.
4185         (internal_cplus_demangled): Handle.
4186
4187 1998-08-17  Jason Merrill  <jason@yorick.cygnus.com>
4188
4189         * cplus-dem.c (do_type): Fix simple array handling.  If we fail,
4190         stay failed.
4191
4192 Mon Aug 17 10:40:34 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4193
4194         * cplus-dem.c: Include config.h if it exists.  Also, only
4195         prototype malloc/realloc if we can't get stdlib.h.
4196
4197 Sat Aug 15 16:15:01 1998  Ian Lance Taylor  <ian@cygnus.com>
4198
4199         * configure.in: Switch back to checking --with-target-subdir when
4200         deciding whether to check for newlib, undoing part of July 15
4201         change.
4202         * configure: Rebuild.
4203
4204 Thu Aug 13 16:47:38 1998  Mark Mitchell  <mark@markmitchell.com>
4205
4206         * cplus-dem.c (type_kind_t): New type.
4207         (demangle_template_value_parm): Add type_kind_t parameter.  Rely
4208         on this paramter, rather than demangling the type again.
4209         (demangle_integral_value): Pass tk_integral.
4210         (demangle_template_: Pass the value returned from do_type.
4211         (do_type): Return a type_kind_t.  Pass tk_integral to
4212         demangle_template_value_parm for array bounds.
4213         (demangle_fund_type): Likewise.
4214
4215         Also incorporate from GCC version:
4216
4217         Tue Jul 21 13:28:19 1998  Jason Merrill  <jason@yorick.cygnus.com>
4218
4219         * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
4220
4221 Thu Aug 13 16:47:38 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4222
4223         * cplus-dem.c (demangle_nested_args): Make function definition
4224         static to match the prototype.
4225
4226 Tue Jul 28 11:33:09 1998  Mark Mitchell  <mark@markmitchell.com>
4227
4228         * cplus-dem.c (type_kind_t): New type.
4229         (demangle_template_value_parm): Add type_kind_t parameter.  Rely
4230         on this paramter, rather than demangling the type again.
4231         (demangle_integral_value): Pass tk_integral.
4232         (demangle_template_: Pass the value returned from do_type.
4233         (do_type): Return a type_kind_t.  Pass tk_integral to
4234         demangle_template_value_parm for array bounds.
4235         (demangle_fund_type): Likewise.
4236
4237         Also incorporate from GCC version:
4238
4239         Tue Jul 21 13:28:19 1998  Jason Merrill  <jason@yorick.cygnus.com>
4240
4241         * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
4242
4243 Mon Jul 27 12:16:08 1998  Ian Lance Taylor  <ian@cygnus.com>
4244
4245         * Makefile.in (ALLOCA): New variable.
4246         ($(TARGETLIB)): Add $(ALLOCA) to library.
4247         (needed-list): Add $(ALLOCA).
4248         ($(ALLOCA)): Depend upon stamp-picdir.
4249
4250 Sun Jul 19 08:23:17 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4251
4252         * cplus-dem.c (demangle_nested_args): Make function definition
4253         static to match the prototype.
4254
4255 Wed Jul 15 00:12:58 1998  Ian Lance Taylor  <ian@cygnus.com>
4256
4257         * configure.in: Check --with-cross-host rather than
4258         --with-target-subdir when deciding whether build uses a cross
4259         compiler, and when deciding where to install the library.
4260         * configure: Rebuild.
4261
4262 Sun Jul 12 01:27:05 1998  Jason Merrill  <jason@yorick.cygnus.com>
4263
4264         * cplus-dem.c (demangle_nested_args): Return a value.
4265
4266 Sat Jul 11 16:19:48 1998  Mark Mitchell  <mark@markmitchell.com>
4267
4268         * cplus-dem.c (string): Move definition before work_stuff.
4269         (work_stuff): Add volatile_type, forgetting_types,
4270         previous_argument, and nrepeats fields.
4271         (SCOPE_STRING): New macro.
4272         (demangle_template): Add `remember' parameter.  Add comment.
4273         Register the `B' code type here, if remembering.  Tidy.  Fix crash
4274         on NULL tmpl_argvec.  Be consistent with use of tname/trawname.
4275         (demangle_nested_args): New function.
4276         (internal_cplus_demangle): Handle volatile-qualified member
4277         functions.
4278         (mop_up): Delete the previous_argument string if present.
4279         (demangle_signature): Tidy.  Handle volatile-qualified member
4280         functions.  Handle back-references using the `B' code.  Use extra
4281         parameter to demangle_template and SCOPE_STRING where appropriate.
4282         (demangle_template_value_parm): Fix thinko; 'B' is not an integral
4283         code.
4284         (demangle_class): Use SCOPE_STRING.
4285         (gnu_special): Pass additional argument to demangle_template.
4286         Use SCOPE_STRING.
4287         (demangle_qualified): Save qualified types for later
4288         back-references.  Handle constructors and destructors for template
4289         types correctly.
4290         (do_type): Tidy.  Use SCOPE_STRING.  Pass extra argument to
4291         demangle_template.  Use demangled_nested_args.  Don't remember
4292         qualified types here; that's now done in demangle_qualified.
4293         Similarly for templates.
4294         (do_arg): Improve commment.  Handle 'n' repeat code.
4295         (remember_type): Check forgetting_types.
4296         (demangle_args): Deal with 'n' repeat codes.  Tidy.
4297
4298 Thu Jul  2 16:26:24 1998  Ian Lance Taylor  <ian@cygnus.com>
4299
4300         * config.table: Only use mh-fbsd21 on *-*-freebsd2.2.[012], not on
4301         *-*-freebsd2.2.*.  From Dmitrij Tejblum <tejblum@arc.hq.cti.ru>.
4302
4303 Mon Jun 15 16:29:01 1998  Ian Lance Taylor  <ian@cygnus.com>
4304
4305         * configure.in (setobjs): Correct quoting error in cygwin32 case.
4306         From Chris Faylor <cgf@cygnus.com>.
4307
4308 Mon Jun  1 13:47:55 1998  Jason Molenda  (crash@bugshack.cygnus.com)
4309
4310         * obstack.c: Update to latest FSF version.
4311
4312 Mon Jun  1 14:17:36 1998  Mike Stump  <mrs@wrs.com>
4313
4314         * Makefile.in: Add a dependency on stamp-picdir for the
4315         objects, so that we can do a parallel build.
4316
4317 Sat May 30 22:17:13 1998  Mumit Khan  <khan@xraylith.wisc.edu>
4318
4319         * configure.in (checkfuncs): Add missing "'".
4320
4321 Fri May 29 12:40:41 1998  Jason Molenda  (crash@bugshack.cygnus.com)
4322
4323         * obstack.c (_obstack_memory_used):  Elide this function if we're
4324         on a system with GNU libc.
4325
4326 Tue May 26 18:28:43 1998  Ian Lance Taylor  <ian@cygnus.com>
4327
4328         * Makefile.in (distclean): Remove config.log.
4329
4330 Tue May 26 15:01:52 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4331
4332         * Makefile.in (distclean): Don't remove alloca-conf.h.
4333
4334 Fri May 22 01:38:07 1998  Hans-Peter Nilsson  <hp@axis.se>
4335
4336         * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.
4337
4338 1998-05-21  Mark Mitchell  <mmitchell@usa.net>
4339
4340         * cplus-dem.c (do_type): Handle volatile qualification.
4341
4342 1998-05-21  Manfred Hollstein  <manfred@s-direktnet.de>
4343
4344         * configure.in: Check for unistd.h as well.
4345         * configure: Rebuild.
4346         * config.in: Rebuild.
4347         * getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE
4348         is defined in unistd.h. Reformat conditional block for easier reading.
4349
4350         * config.table (shared): Default to no if ${enable_shared}
4351         is unset or empty; this logic is used by the toplevel
4352         configure scripts, too.
4353
4354 Sat May 16 14:01:26 1998  Jeffrey A Law  (law@cygnus.com)
4355
4356         * config.table: Add line to set enable_shared in the Makefile
4357         as needed.
4358
4359 Wed May 13 14:24:38 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4360
4361         * cplus-dem.c (squangle_mop_up): Change return type to void.
4362         (internal_cplus_demangle): Remove unused parameter `options'.
4363         All callers changed.
4364         (cplus_demangle_opname): Remove function wide variable `int i' and
4365         replace with `size_t i' at each location where it is used.
4366         (cplus_mangle_opname): change type of `i' from int to size_t.
4367
4368 Wed May 13 13:39:38 1998  Ian Lance Taylor  <ian@cygnus.com>
4369
4370         * alloca-conf.h: Include config.h.  Check HAVE_ALLOCA_H rather
4371         than sparc or sun.
4372         * Makefile.in (argv.o): Depend upon config.h and alloca-conf.h.
4373
4374 Fri May  8 00:23:51 1998  Ian Lance Taylor  <ian@cygnus.com>
4375
4376         * configure.in: Set libiberty_topdir correctly when srcdir is
4377         "." and with_target_subdir is not set.
4378         * configure: Rebuild.
4379
4380 Thu May  7 13:01:44 1998  Ian Lance Taylor  <ian@cygnus.com>
4381
4382         * configure.in: Add *-*-mingw32* case.
4383         * configure: Rebuild.
4384
4385 Wed May  6 11:33:51 1998  Ian Lance Taylor  <ian@cygnus.com>
4386
4387         * config.table: Never use a PIC file for *-*-cygwin32*.
4388
4389         * Makefile.in (config.status): Depend upon config.table.
4390
4391         * configure.in: On a cygwin32 host, always compile random, and
4392         don't test for sys_siglist, strsignal, or psignal.
4393         * configure: Rebuild.
4394
4395         * clock.c: Check HAVE_SYS_PARAM_H rather than NO_SYS_PARAM_H.
4396         * getcwd.c: Likewise.
4397         * getpagesize.c: Likewise.
4398         * getruntime.c: Likewise.
4399
4400 Tue May  5 18:08:32 1998  Ian Lance Taylor  <ian@cygnus.com>
4401
4402         Use autoconf tests rather than the old dummy.c test:
4403         * configure.in: Add AC_ARG_WITH calls for --with-target-subdir and
4404         --with-newlib.  Add AC_CONFIG_HEADER.  Use AC_REPLACE_FUNCS for
4405         most functions.  Add special cases to handle newlib and VxWorks.
4406         Remove target_makefile_frag.  Create stamp-h in AC_OUTPUT if
4407         CONFIG_HEADERS is set.  Only call config-ml.in in AC_OUTPUT if
4408         CONFIG_FILES is set; set ac_file before calling it.
4409         * config.table (arm-*-riscix*, *-*-cygwin32): Remove.
4410         (*-*-hpux*, *-*-hiux*, *-*-irix4*, *-*-solaris2*): Remove.
4411         (*-*-sysv4*, *-*-go32, *-*-vxworks5*, *-*-vxworks): Remove
4412         (i[3456]-*-mingw32*): Remove.
4413         * Makefile.in (ERRORS_CC, CONFIG_H, NEEDED_LIST): Remove.
4414         (LIBOBJS): New variable.
4415         (HOST_OFILES, DO_ALSO, STAGESTUFF): Remove.
4416         (all): Depend upon needed-list.  Don't check RULE1.
4417         (@target_makefile_frag@): Remove.
4418         (COMPILE.c): Include @DEFS@.
4419         (HFILES): Add alloca-conf.h.
4420         (REQUIRED_OFILES): Remove basename.o.
4421         ($(TARGETLIB)): New target.
4422         (stamp-needed, lneeded-list, needed.awk, stamp-config): Remove.
4423         (lconfig.h, needed2.awk, dummy.o, errors): Remove.
4424         (needed-list, config.h): Rewrite.
4425         (RULE1, $(RULE1), RULE2, $(RULE2)): Remove.
4426         (.always.): Remove.
4427         (Makefile): Set CONFIG_FILES and CONFIG_HEADERS.
4428         (stamp-h): New target.
4429         (atexit.o, clock.o, getcwd.o, getpagesize.o): New targets.
4430         (basename.o): Don't depend upon config.h.
4431         (getruntime.o): Depend upon config.h.
4432         * atexit.c: Include config.h.  Check HAVE_ON_EXIT rather than
4433         NEED_on_exit.
4434         * basename.c: Don't include config.h.  Don't check NEED_basename.
4435         * clock.c: Include config.h.
4436         * getcwd.c: Likewise.
4437         * getpagesize.c: Likewise.
4438         * getruntime.c: Likewise.  Fix checks which set HAVE_GETRUSAGE and
4439         HAVE_TIMES.
4440         * strerror.c: Change uses of NEED_sys_errlist to
4441         HAVE_SYS_ERRLIST.  Likewise for NEED_strerror and HAVE_STRERROR.
4442         * strsignal.c: Likewise for NEED_sys_siglist and HAVE_SYS_SIGLIST,
4443         and for NEED_strsignal and HAVE_STRSIGNAL and for NEED_psignal and
4444         HAVE_PSIGNAL.
4445         * acconfig.h: New file.
4446         * dummy.c: Remove.
4447         * functions.def: Remove.
4448         * config/mh-cxux7 (HDEFINES): Remove -DHAVE_SYSCONF.
4449         * config/mh-windows (HDEFINES): Remove.
4450         * config/mh-cygwin32: Remove.
4451         * config/mh-go32: Remove.
4452         * config/mh-irix4: Remove.
4453         * config/mh-riscix: Remove.
4454         * config/mh-sysv4: Remove.
4455         * config/mt-mingw32: Remove.
4456         * config/mt-vxworks5: Remove.
4457         * config.in: New file, generated using autoheader.
4458         * configure: Rebuild.
4459
4460 Mon May  4 13:00:28 1998  Ian Lance Taylor  <ian@cygnus.com>
4461
4462         * configure.in: Rewrite to use autoconf.
4463         * configure: Generate using autoconf.
4464         * config/mh-a68bsd: Remove.
4465         * config/mh-apollo68: Remove.
4466         * config/mh-hpbsd: Remove.
4467         * config/mh-ncr3000: Remove.
4468         * config/mh-sysv: Remove.
4469         * config/mh-aix (RANLIB, INSTALL): Don't define.
4470         * config/mh-cxux7 (RANLIB, INSTALL): Don't define.
4471         * config/mh-irix4 (CC, RANLIB, INSTALL): Don't define.
4472         * config/mh-sysv4 (RANLIB, INSTALL): Don't define.
4473         * config.table: Change config_shell to CONFIG_SHELL, and use
4474         libiberty_topdir to find move-if-change.
4475         (m68k-apollo-bsd*, m68k-apollo-sysv*): Remove.
4476         (i[3456]86-ncr-sysv4*, *-*-dgux*, hppa*-hp-bsd*): Remove.
4477         (*-*-irix*, *-*-m88kbcs*, *-*-sysv*): Remove.
4478         * Makefile.in (srcdir): Set to @srcdir@.
4479         (VPATH): Likewise.
4480         (prefix, exec_prefix, bindir, libdir): Set to autoconf variables.
4481         (SHELL, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Likewise.
4482         (CC, CFLAGS, RANLIB)): Likewise.
4483         (datadir, man*dir, infodir, includedir, MAKEINFO): Remove.
4484         (target_makefile_frag, host_makefile_frag): Add substitutions.
4485         (INSTALL_DEST): Set to @INSTALL_DEST@.
4486         (Makefile): Depend upon config.status.  Don't depend upon
4487         $(host_makefile_frag) or $(target_makefile_frag).
4488         (config.status): New target.
4489
4490 Sun May  3 17:58:49 1998  Ian Lance Taylor  <ian@cygnus.com>
4491
4492         * config/mt-sunos4: Remove.  Should be handled by --with-headers
4493         and --with-libraries options at top level.
4494         * config.table: Never use mt-sunos4.
4495
4496         * alloca-conf.h: New file, combining alloca-norm.h and
4497         alloca-botch.h.
4498         * alloca-norm.h: Remove.
4499         * alloca-botch.h: Remove.
4500         * configure.in: Set shell variables files and links to empty.
4501         * config.table: Don't set shell variable files.
4502         * configure.bat: Don't create alloca-conf.h.
4503         * makefile.vms: Likewise.
4504         * mpw-config.in: Likewise.
4505         * vmsbuild.com: Likewise.
4506
4507 Fri May  1 11:41:42 1998  Ian Lance Taylor  <ian@cygnus.com>
4508
4509         * Makefile.in ($(HOST_OFILES) $(REQUIRED_OFILES)): Remove old
4510         target depending upon config.h.
4511         (alloca.o): Add target depending upon config.h
4512         (basename.o, choose-temp.o, fnmatch.o): Likewise.
4513         (getopt.o, getopt1.o, pexecute.o, strerror.o): Likewise.
4514         (strsignal.o, xstrerror.o): Likewise.
4515
4516 Fri May  1 04:26:25 1998  Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4517
4518         * cplus-dem.c (cplus_demangle_opname):  Initialize work.
4519
4520 Mon Apr 27 15:53:30 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
4521
4522         * cplus-dem.c (demangle_qualified): Replace missing else.
4523
4524 Sun Apr 26 15:38:50 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4525
4526         * cplus-dem.c (gnu_special): Fix off-by-one bug when checking the
4527         length in the name of a virtual table.
4528
4529 Wed Apr 22 10:53:49 EDT 1998 Andrew MacLeod  <amacleod@cygnus.com>
4530
4531         * cplus-dem.c (struct work stuff): Add field for B and K mangle codes.
4532         (cplus_demangle_opname): Call mop_up_squangle.
4533         (cplus_demangle): Initialize squangle info, then call
4534         internal_cplus_demangle. (Most code moved there as well)
4535         (internal_cplus_demangle): New function, performs most of what use
4536         to be done in cplus_demangle, but is only called with this file.
4537         (squangle_mop_up): New function to clean up B and K code data.
4538         (mop_up): set pointers to NULL after freeing.
4539         (demangle_signature, demangle_template, demangle_class): Add
4540         switch elements to handle K and B codes.
4541         (demangle_prefix, gnu_special, demangle_qualified): Add
4542         code to handle K and B codes.
4543         (do_type, demangle_fund_type): Handle B and K codes.
4544         (remember_Ktype): New function to store K info.
4545         (register_Btype, remember_Btype): New functions for B codes.
4546         (forget_B_and_K_types): New function to destroy B and K info.
4547
4548 Fri Apr 10 01:49:10 1998  Jeffrey A Law  (law@cygnus.com)
4549
4550         * COPYING.LIB, choose-temp.c, cplus-dem.c: Sync with egcs & gcc.
4551
4552 Thu Mar  5 09:23:28 1998  Manfred Hollstein  <manfred@s-direktnet.de>
4553
4554         * config.table: Make locating frag files failsafe even for the
4555         special case if configuring and building in srcdir.
4556
4557 Mon Feb 23 14:33:15 1998  Ian Lance Taylor  <ian@cygnus.com>
4558
4559         * choose-temp.c: Fix handling of sys/file.h to work in libiberty.
4560
4561 Sun Feb 22 18:03:23 1998  Jeffrey A Law  (law@cygnus.com)
4562
4563         * choose-temp.c: Sync with copy in gcc.
4564
4565 Thu Feb 12 16:29:49 1998  Ian Lance Taylor  <ian@cygnus.com>
4566
4567         * getopt.c: Update to latest FSF version.
4568         * getopt1.c: Likewise.
4569
4570 Tue Feb 10 16:58:33 1998  Stan Shebs  <shebs@andros.cygnus.com>
4571
4572         * cplus-dem.c (gnu_special): Don't get confused by .<digits>
4573         strings that are not actually lengths.
4574
4575 Fri Feb  6 01:35:17 1998  Manfred Hollstein  <manfred@s-direktnet.de>
4576
4577         * Makefile.in (FLAGS_TO_PASS): Don't pass PICFLAG.
4578         (.c.o): Check value of enable_shared, not PICFLAG.
4579         (stamp-picdir): Dito.
4580
4581 Thu Feb  5 18:48:56 1998  Geoffrey Noer  <noer@cygnus.com>
4582
4583         * config/mh-cygwin32: remove vasprintf.o from EXTRA_OFILES
4584         since it gets built automatically
4585
4586 Sun Feb  1 02:52:32 1998  Mike Stump  <mrs@wrs.com>
4587
4588         * config.table (vxworks configs): Default to VxWorks 5.x, as that is
4589         the currently shipping OS.
4590
4591 Tue Jan 27 16:08:20 1998  Pat Rankin  <rankin@eql.caltech.edu>
4592
4593         * vmsbuild.com [REQUIRE_OFILES]: Synchronized with Makefile.in:
4594         Add fnmatch.o and objalloc.o; remove vasprintf.o.
4595         [config.h]: Define NEED_strsignal.
4596
4597 Mon Jan 19 12:20:01 1998  Ian Lance Taylor  <ian@cygnus.com>
4598
4599         * functions.def: Correct argument types for strerror and
4600         strsignal.  Reported by Alex Gutman <agutman@emc.com>.
4601
4602 Sun Jan 18 15:57:28 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
4603
4604         * vasprintf.c (int_vasprintf): Increase buffer size for float/double
4605         values.
4606
4607 Sat Jan 17 22:28:38 1998  Mumit Khan  <khan@xraylith.wisc.edu>
4608                           J.J. VanderHeijden <J.J.vanderHeijden@student.utwente.nl>
4609
4610         Add mingw32 support.
4611         * pexecute.c (pexecute): New function for mingw32. Supports pipes.
4612         (pwait): New function for mingw32.
4613
4614         * config.table (i[3456]86-*-mingw32*): Support for i386-mingw32.
4615         * config/mt-mingw32: New file.
4616         * xmalloc.c (first_break): Not used for mingw32.
4617         (xmalloc_set_program_name): Don't use sbrk on mingw32.
4618         (xmalloc): Likewise.
4619         (xrealloc): Likewise.
4620
4621 Sat Jan 17 22:28:05 1998  Jeffrey A Law  (law@cygnus.com)
4622
4623         * choose-temp.c: Sync with gcc version.
4624
4625 Tue Jan 13 18:34:39 1998  Jim Wilson  <wilson@cygnus.com>
4626
4627         * Makefile.in (install_to_libdir, install_to_tooldir): Add MULTISUBDIR
4628         to all filenames in libdir and tooldir.
4629         (distclean): Do MULTICLEAN before deleting Makefile.
4630         (stamp-needed, stamp-config): Add MULTISRCTOP to
4631         pathname for move-if-change.
4632
4633 Thu Dec  4 17:25:19 1997  Jeffrey A Law  (law@cygnus.com)
4634
4635         * strsignal.c (sys_nsig): Try NSIG and _NSIG.
4636
4637 Wed Nov 19 13:37:06 1997  Michael Meissner  <meissner@cygnus.com>
4638
4639         * alloca-norm.h (alloca, GCC case): Don't redefine alloca if it
4640         was already defined previously.
4641
4642 Mon Nov 10 12:48:03 1997  Philippe De Muyter  <phdm@macqel.be>
4643
4644         * Makefile.in (INSTALL): Use ../install-sh, not install.
4645
4646 Tue Oct 28 23:41:15 1997  Judy Goldberg  <jodyg@idt.net>
4647
4648         * Makefile.in (CFILES): Add pexecute.c.
4649
4650 Wed Oct 15 19:13:48 1997  Ian Lance Taylor  <ian@cygnus.com>
4651
4652         * asprintf.c: Consistently use either stdarg or varargs.
4653
4654 Tue Oct 14 12:01:00 1997  Mark Mitchell  <mmitchell@usa.net>
4655
4656         * cplus-dem.c (demangle_signature): Don't look for return types on
4657         constructors.  Handle member template constructors.
4658
4659 Fri Oct  3 17:53:30 1997  Ian Lance Taylor  <ian@cygnus.com>
4660
4661         * README: Fix configuration instructions.
4662
4663 Mon Sep 29 12:28:41 1997  Ian Lance Taylor  <ian@cygnus.com>
4664
4665         * pexecute.c: Update to current version from /gd/gnu/lib:
4666
4667         Mon Sep 29 12:27:59 1997  Ian Lance Taylor  <ian@cygnus.com>
4668
4669         * pexecute.c: Use spawn if __CYGWIN32__.
4670
4671         1997-08-08  Paul Eggert  <eggert@twinsun.com>
4672
4673         * pexecute.c: Include "config.h" first, as per autoconf manual.
4674
4675         Fri Jun 27 15:20:29 1997  Scott Christley <scottc@net-community.com>
4676
4677         * pexecute.c (fix_argv): New function.
4678         (pexecute): Win32 but not Cygwin32 needs its arguments fixed.
4679         Add underscore to cwait function call.
4680
4681 Sun Sep 28 12:00:52 1997  Mark Mitchell  <mmitchell@usa.net>
4682
4683         * cplus-dem.c (demangle_template): Add new parameter.  Handle new
4684         template-function mangling.
4685         (consume_count_with_underscores): New function.
4686         (demangle_signature): Handle new name-mangling scheme.
4687
4688 Wed Sep 24 00:31:59 1997  Felix Lee  <flee@yin.cygnus.com>
4689
4690         * asprintf.c: stdarg.h when ALMOST_STDC
4691         * config/mh-windows (EXTRA_OFILES): add asprintf.o and
4692         strncasecmp.o.
4693
4694 Thu Aug 28 14:27:15 1997  Andrew Cagney  <cagney@b1.cygnus.com>
4695
4696         * vasprintf.c (vasprintf): Allow for _BSD_VA_LIST_.
4697
4698         * config.table: Add case for FreeBSD 2.1 and 2.2, needs mh-fbsd21.
4699
4700         * config/mh-fbsd21 (EXTRA_OFILES): Force vasprintf.o
4701
4702 Wed Sep 10 12:43:10 1997  Jason Merrill  <jason@yorick.cygnus.com>
4703
4704         * cplus-dem.c (demangle_fund_type): Change "complex" to "__complex".
4705
4706 Fri Sep  5 16:34:42 1997  Andrew Cagney  <cagney@b1.cygnus.com>
4707
4708         * asprintf.c (asprintf): New file.
4709         * Makefile.in (CFILES): Add asprintf.c
4710         * functions.def: Ditto.
4711
4712 Thu Aug 28 18:53:34 1997  Andrew Cagney  <cagney@b1.cygnus.com>
4713
4714         * argv.c (dupargv): New function, duplicate an argument vector.
4715
4716 Tue Aug 19 20:28:45 1997  Geoffrey Noer  <noer@cygnus.com>
4717
4718         * config/mh-cygwin32: also build random.o
4719
4720 Tue Aug 19 17:10:56 1997  Jason Merrill  <jason@yorick.cygnus.com>
4721
4722         * cplus-dem.c: Add 'extern' to prepends_underscore.
4723
4724 Wed Jul 30 11:42:19 1997  Per Bothner  <bothner@cygnus.com>
4725
4726         * cplus-dem.c: Various changes to produce Java output when passed
4727         DMGL_JAVA.  Thus "::" becomes "." and "JArray<Foo>" becomes "Foo[]".
4728         (main): Support --java and -j flags to set DMGL_JAVA.
4729
4730 Tue Jul 22 19:05:23 1997  Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
4731
4732         * config/mh-go32 (CC, AR, RANLIB): Don't define.
4733
4734 Tue Jul 22 17:49:54 1997  Ian Lance Taylor  <ian@cygnus.com>
4735
4736         * Makefile.in (REQUIRED_OFILES): Add pexecute.o.
4737         (pexecute.o): New target.
4738
4739         * Makefile.in (stamp-needed): New target, replacing needed-list.
4740         (needed-list): Just depend upon stamp-needed.
4741         (stamp-config): New target, replacing config.h.
4742         (config.h): Just depend upon stamp-config.
4743         (mostlyclean): Remove stamp-*.
4744
4745 Thu Jun 12 11:00:18 1997  Angela Marie Thomas (angela@cygnus.com)
4746
4747         * Makefile.in (FLAGS_TO_PASS): pass INSTALL, INSTALL_PROGRAM and
4748         INSTALL_DATA for multilibbed installs
4749
4750 Tue Jun  3 13:21:05 1997  Doug Evans  <dje@canuck.cygnus.com>
4751
4752         Tue Dec 10 09:44:57 1996  Paul Eggert  <eggert@twinsun.com>
4753
4754         * choose-temp.c (choose_temp_base): Don't dump core if TMPDIR is empty.
4755
4756         * choose-temp.c (try): Insist that temp dir be searchable.
4757
4758         Wed Oct 23 17:36:39 1996  Doug Rupp  (rupp@gnat.com)
4759
4760         * choose-temp.c (choose_temp_base): On VMS, use proper syntax
4761         for current directory.
4762
4763         Sat Feb 15 19:03:48 1997  Geoffrey Noer  (noer@cygnus.com)
4764
4765         * pexecute.c: Remove special cases for cygwin32.
4766         (pwait): Remove local definition of `pid'.
4767
4768         Tue Nov 12 18:26:15 1996  Doug Rupp  (rupp@gnat.com)
4769
4770         * pexecute.c (vfork): Supply new definition for VMS.
4771         (pwait): Use waitpid instead of wait for VMS.
4772
4773 Tue May 20 14:02:20 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
4774
4775         * cplus-dem.c (do_type): Handle `J'.
4776         (demangle_fund_type): Print "complex" for it.
4777
4778 Wed Apr 30 12:15:45 1997  Jason Merrill  <jason@yorick.cygnus.com>
4779
4780         * configure.in: Don't turn on multilib here.
4781
4782 Mon Apr 28 19:04:31 1997  Michael Snyder  <msnyder@cleaver.cygnus.com>
4783
4784         * obstack.c: move _obstack_memory_used outside of ifdef.  Cannot be
4785         elided; needed by gdb and not present in libc.
4786
4787 Thu Apr 24 19:33:47 1997  Ian Lance Taylor  <ian@cygnus.com>
4788
4789         * Makefile.in (clean): Remove tmpmulti.out.
4790
4791 Tue Apr 22 10:25:15 1997  Fred Fish  <fnf@cygnus.com>
4792
4793         * floatformat.c (floatformat_ieee_double_littlebyte_bigword):
4794         Add new floatformat, mainly for ARM doubles.
4795
4796 Mon Apr 14 12:11:16 1997  Ian Lance Taylor  <ian@cygnus.com>
4797
4798         * config.table: Use ${config_shell} with ${moveifchange}.  From
4799         Thomas Graichen <graichen@rzpd.de>.
4800
4801 Fri Apr  4 03:09:24 1997  Ulrich Drepper  <drepper@cygnus.com>
4802
4803         * configure.in: Enable multilibing by default.
4804         Update multilib template to read config-ml.in.
4805
4806 Tue Apr  1 16:26:39 1997  Klaus Kaempf  <kkaempf@progis.de>
4807
4808         * makefile.vms: Add objalloc.
4809
4810 Mon Mar 31 23:57:51 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>
4811
4812         * cplus-dem.c (demangle_it): Add prototype declaration.
4813         (usage, fatal): Likewise.
4814
4815         * xexit.c (_xexit_cleanup): Add prototype.
4816
4817         * strerror.c (init_error_tables): Declare.
4818
4819 Fri Mar 28 11:43:20 1997  H.J. Lu  <hjl@lucon.org>
4820
4821         * functions.def: Add DEF of vasprintf, and DEFFUNC of strsignal.
4822         * strsignal.c: Only define strsignal if NEED_strsignal.
4823         * Makefile.in (REQUIRED_OFILES): Remove vasprintf.o.
4824         * configure.in: Add NEED_strsignal to xconfig.h.  Add vasprintf.o
4825         to xneeded-list.
4826         * config/mh-cygwin32 (HDEFINES): Add -DNEED_strsignal.
4827         (EXTRA_OFILES): Define to vasprintf.o.
4828         * config/mh-windows (HDEFINES): Add -DNEED_strsignal.
4829         (EXTRA_OFILES): Add vasprintf.o.
4830         * config/mt-vxworks5 (vxconfig.h): Define NEED_strsignal.
4831         (vxneeded-list): Add vasprintf.o.
4832
4833 Thu Mar 20 17:02:09 1997  Ian Lance Taylor  <ian@cygnus.com>
4834
4835         * objalloc.c: Include <stdio.h>.
4836
4837 Mon Mar 17 19:23:11 1997  Ian Lance Taylor  <ian@cygnus.com>
4838
4839         * objalloc.c: New file.
4840         * Makefile.in (CFILES): Add objalloc.c
4841         (REQUIRED_OFILES): Add objalloc.o.
4842         (objalloc.o): New target.
4843
4844 Sat Mar 15 18:49:41 1997  Ian Lance Taylor  <ian@cygnus.com>
4845
4846         * obstack.c: Update to current FSF version.
4847
4848 Fri Mar 14 14:18:47 1997  Ian Lance Taylor  <ian@cygnus.com>
4849
4850         * cplus-dem.c: Add prototypes for all static functions.
4851         (mystrstr): Make static.  Make arguments and result const.
4852         (cplus_match): Remove; not used.
4853
4854 Tue Mar 11 14:20:31 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
4855
4856         * cplus-dem.c (gnu_special): Call demangled_fund_type for other
4857         __t* symbols.
4858
4859 Tue Mar 11 15:41:21 1997  H.J. Lu  <hjl@lucon.org>
4860
4861         * spaces.c: Declare malloc and free properly.
4862         * strsignal.c (init_signal_tables): Add prototype.
4863         * xatexit.c (_xexit_cleanup): Add parameter declarations.
4864
4865 Wed Feb 19 15:43:24 1997  Brendan Kehoe  <brendan@lisa.cygnus.com>
4866
4867         * Makefile.in (lneeded-list): If alloca.o is needed, xexit.o is
4868         also required because of xmalloc.o.
4869
4870 Fri Feb 14 13:43:38 1997  Ian Lance Taylor  <ian@cygnus.com>
4871
4872         * strsignal.c: Unconditionally redefine sys_siglist around the
4873         inclusion of the system header files.
4874
4875 Thu Feb 13 22:01:04 1997  Klaus Kaempf  <kkaempf@progis.de>
4876
4877         * makefile.vms: Remove 8 bit characters.  Update to latest
4878         gcc release.
4879
4880 Tue Feb  4 11:52:19 1997  Ian Lance Taylor  <ian@cygnus.com>
4881
4882         * strsignal.c: Use NEED_sys_siglist instead of
4883         LOSING_SYS_SIGLIST.
4884         * config.table: Don't use mh-lynxos.
4885         * config/mh-lynxos: Remove.
4886
4887 Thu Jan 16 14:51:03 1997  Bob Manson  <manson@charmed.cygnus.com>
4888
4889         * cplus-dem.c: Fix indenting; make identical to the copy
4890         in GCC.
4891         (do_type, case 'M'): Check for a template as well as a class.
4892
4893 Thu Dec 19 13:51:33 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
4894
4895         * config/mt-vxworks5 (vxneeded-list): Remove sigsetmask.o, since
4896         vxworks 5.[0-3] all have sigsetmask in them; the one provided by
4897         libiberty is incorrect, as well.
4898
4899 Mon Dec  2 15:03:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
4900
4901         * alloca.c (alloca): When compiled with an ANSI/ISO compiler,
4902         alloca takes a size_t argument, not just unsigned.
4903
4904 Mon Nov 18 15:42:08 1996  Jason Merrill  <jason@yorick.cygnus.com>
4905
4906         * cplus-dem.c: Note that this file also lives in GCC.
4907
4908 Mon Nov 18 15:19:00 1996  Dawn Perchik  <dawn@critters.cygnus.com>
4909
4910         * alloca.c: Remove include of libiberty.h for hpux.
4911         * argv.c:  Replace defs from libiberty.h.
4912         * spaces.c: Put back externs from removed from libiberty.h.
4913         * vasprintf.c: Remove include of libiberty.h for hpux.
4914
4915 Mon Nov 18 14:08:00 1996  Dawn Perchik  <dawn@critters.cygnus.com>
4916
4917         * cplus-dem.c: Checking in again; last checkin filed due to sticky tag.
4918
4919 Wed Nov 13 08:22:00 1996  Dawn Perchik  <dawn@critters.cygnus.com>
4920
4921         * cplus-dem.c: Revert last two commits due to conflicts with
4922         hpux system headers.
4923
4924 Wed Nov 13 08:22:00 1996  Dawn Perchik  <dawn@critters.cygnus.com>
4925
4926         * alloca.c, argv.c, spaces.c, strcasecmp.c, vasprintf.c, vprintf.c:
4927         Revert last commit due to conflicts with hpux system headers.
4928
4929 Wed Nov 13 10:36:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
4930
4931         * cplus-dem.c (x{m,re}alloc): Make declarations compatibile with
4932         libiberty.h when compiled with a standard compiler.
4933
4934 Tue Nov 12 16:31:00 1996  Dawn Perchik  <dawn@critters.cygnus.com>
4935
4936         * alloca.c: Include libiberty.h for definition of xmalloc.
4937         Don't redefine NULL.
4938         * argv.c: Move prototypes to libiberty.h.
4939         * cplus-dem.c: Include libiberty.h for definition of xmalloc.
4940         Don't redefine NULL.
4941         Use casts to eliminate compiler warnings.
4942         * spaces.c: Remove prototypes for malloc and free which are
4943         already in libibrty.h.
4944         * strcasecmp.c: Use casts to eliminate compiler warnings.
4945         * vasprintf.c: Include libiberty.h for definition of malloc.
4946         Don't redefine NULL.
4947         * vprintf.c: Include stdarg.h if __STDC__.
4948
4949 Fri Oct 11 15:42:12 1996  Stu Grossman  (grossman@critters.cygnus.com)
4950
4951         * config/mh-windows:  Add strcasecmp.o to EXTRA_OFILES.
4952
4953 Fri Oct 11 11:16:31 1996  Stan Shebs  <shebs@andros.cygnus.com>
4954
4955         * mpw.c (mpwify_filename): Rewrite to simplify, and to handle
4956         upward components correctly.
4957
4958 Tue Oct  8 08:55:34 1996  Stu Grossman  (grossman@critters.cygnus.com)
4959
4960         * config.table, config/mh-windows:  Add support for building under
4961         MSVC (the Microsoft build environment).
4962
4963 Mon Oct  7 10:50:27 1996  Ian Lance Taylor  <ian@cygnus.com>
4964
4965         * fnmatch.c: Undef const if not __STDC__.
4966
4967 Thu Oct  3 13:46:39 1996  Ian Lance Taylor  <ian@cygnus.com>
4968
4969         * fnmatch.c: New file.
4970         * Makefile.in (CFILES): Add fnmatch.c.
4971         (REQUIRED_OFILES): Add fnmatch.o.
4972         (fnmatch.o): New target.
4973
4974 Wed Sep 18 14:49:13 1996  Jason Merrill  <jason@yorick.cygnus.com>
4975
4976         * cplus-dem.c (demangle_template): Fix handling of address args.
4977         (gnu_special): Handle type_info stuff.
4978
4979 Fri Sep 13 17:52:55 1996  Stan Shebs  <shebs@andros.cygnus.com>
4980
4981         * mpw.c (DebugPI): Make settable from the env var DEBUG_PATHNAMES.
4982         (mpwify_filename): Handle "::/" case.
4983
4984 Thu Sep 12 13:30:40 1996  Geoffrey Noer  <noer@cygnus.com>
4985
4986         * config/mh-cygwin32: new file (need -DNEED_basename and
4987                 -DNEED_sys_siglist for native NT rebuilding)
4988         * config.table (*-*-cygwin32): new entry
4989         * choose-temp.c: bring in sync with gcc (revert Aug 17 change)
4990
4991 Thu Aug 29 16:48:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
4992
4993         * config.table (i[345]86-*-*): Recognize i686 for pentium pro.
4994
4995 Tue Aug 27 13:47:58 1996  Stan Shebs  <shebs@andros.cygnus.com>
4996
4997         * pexecute.c (pexecute) [MPW]: Remove old bogus code that
4998         messed with arguments that included a '/', add escape chars
4999         to double quotes, remove const decl from arg that Mac
5000         compilers don't seem to like.
5001
5002 Sat Aug 17 04:44:27 1996  Geoffrey Noer  <noer@cygnus.com>
5003
5004         * pexecute.c: Update test for win32 (&& ! cygwin32).
5005         * choose-temp.c: fix WIN32 preprocessor defines
5006
5007 Thu Aug 15 12:26:48 1996  Stan Shebs  <shebs@andros.cygnus.com>
5008
5009         * mpw-make.sed: Add @DASH_C_FLAG@ and @SEGMENT_FLAG({Default})@
5010         to editing of default makefile rule.
5011
5012 Sun Aug 11 21:03:27 1996  Stu Grossman  (grossman@critters.cygnus.com)
5013
5014         * alloca-norm.h:  Include <malloc.h> if _WIN32.
5015         * argv.c:  Include non-prototyped decls for malloc and string
5016         functions if ! _WIN32 or if __GNUC__.
5017
5018 Thu Aug  8 12:42:40 1996  Klaus Kaempf  <kkaempf@progis.de>
5019
5020         * config.h-vms: New file.
5021         * makefile.vms: Use it.
5022
5023 Wed Aug  7 17:16:12 1996  Stu Grossman  (grossman@critters.cygnus.com)
5024
5025         * getopt.c (_getopt_internal):  If argc is 0, just return (before
5026         we reference *argv and segfault).
5027
5028 Mon Aug  5 01:29:08 1996  Jason Merrill  <jason@yorick.cygnus.com>
5029
5030         * Makefile.in (distclean): Add multilib.out.
5031
5032 Thu Jul 18 17:40:55 1996  Ian Lance Taylor  <ian@cygnus.com>
5033
5034         * alloca-norm.h: Change #ifdef sparc to #if defined (sparc) &&
5035         defined (sun).  From Andrew Gierth <ANDREWG@microlise.co.uk>.
5036
5037 Mon Jul  1 13:40:44 1996  Ken Raeburn  <raeburn@cygnus.com>
5038
5039         Tue May 28 15:29:03 1996  Pat Rankin  <rankin@eql.caltech.edu>
5040
5041         * vmsbuild.com (REQUIRD_OFILES): Add choose-temp.o and xstrdup.o.
5042
5043         Thu Jan 25 18:20:04 1996  Pat Rankin  <rankin@eql.caltech.edu>
5044
5045         * vmsbuild.com: Changes to handle DEFFUNC(on_exit).
5046         (do_ofiles): Allow nonexistent source file in pass 3.
5047         (chk_deffunc): New routine.
5048
5049 Tue Jun 25 19:24:43 1996  Doug Evans  <dje@canuck.cygnus.com>
5050
5051         * pexecute.c (PEXECUTE_VERBOSE): Define.
5052         (MPW pexecute): Check flags & PEXECUTE_VERBOSE instead of verbose_flag.
5053
5054 Tue Jun 25 23:11:48 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
5055
5056         * Makefile.in (docdir): Removed.
5057
5058 Tue Jun 25 23:01:07 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
5059
5060         * Makefile.in (oldincludedir): Removed.
5061
5062 Tue Jun 25 22:50:07 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
5063
5064         * Makefile.in (datadir): Set to $(prefix)/share.
5065
5066 Thu Jun 20 21:17:52 1996  Ian Lance Taylor  <ian@cygnus.com>
5067
5068         * cplus-dem.c (demangle_arm_pt): Reindent.  Avoid endless loop by
5069         checking for errors from do_type.
5070
5071 Tue Jun 18 14:36:19 1996  Klaus Kaempf  <kkaempf@progis.de>
5072
5073         * makefile.vms: New file.
5074         * xmalloc.c: If VMS, include <stdlib.h> and <unixlib.h> rather
5075         than declaring malloc, realloc, and sbrk.
5076
5077 Mon Jun 10 13:17:17 1996  Doug Evans  <dje@canuck.cygnus.com>
5078
5079         * pexecute.c: New file.
5080
5081 Wed Jun  5 16:57:45 1996  Richard Henderson  <rth@tamu.edu>
5082
5083         * xmalloc.c: Declare sbrk.
5084
5085 Sat May  4 05:08:45 1996  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
5086
5087         * alloca-norm.h:  Add SPARCworks cc compatible __builtin_alloca
5088         declaration.
5089
5090 Mon Apr 22 18:41:49 1996  Ian Lance Taylor  <ian@cygnus.com>
5091
5092         * xstrerror.c: Include <stdio.h>.
5093
5094 Sun Apr 21 11:55:12 1996  Doug Evans  <dje@canuck.cygnus.com>
5095
5096         * Makefile.in (CFILES): Add atexit.c.
5097
5098 Sun Apr 21 09:50:09 1996  Stephen L Moshier  (moshier@world.std.com)
5099
5100         * choose-temp.c: Include sys/types.h before sys/file.h for sco3.2v5.
5101
5102 Wed Apr 17 11:17:55 1996  Doug Evans  <dje@canuck.cygnus.com>
5103
5104         * choose-temp.c: Don't #include sys/file.h ifdef NO_SYS_FILE_H.
5105         #include <stdio.h>
5106         * config/mt-vxworks5 (HDEFINES): Define NO_SYS_FILE_H.
5107
5108 Tue Apr 16 11:27:16 1996  Jeffrey A Law  (law@cygnus.com)
5109
5110         * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
5111         Reverts Feb 8, 1995 change.
5112
5113 Mon Apr 15 12:53:26 1996  Doug Evans  <dje@canuck.cygnus.com>
5114
5115         * choose-temp.c: New file.
5116         * Makefile.in (CFILES): Add choose-temp.c.
5117         (REQUIRED_OFILES): Add choose-temp.o.
5118
5119 Sat Apr 13 14:19:30 1996  Stu Grossman  (grossman@critters.cygnus.com)
5120
5121         * floatformat.c (floatformat_to_double):  Don't bias exponent when
5122         handling zero's, denorms or NaNs.
5123
5124 Thu Apr 11 13:36:56 1996  Stu Grossman  (grossman@critters.cygnus.com)
5125
5126         * floatformat.c (floatformat_to_double):  Fix bugs with handling
5127         numbers with fractions < 32 bits.
5128
5129 Mon Apr  8 14:48:34 1996  Ian Lance Taylor  <ian@cygnus.com>
5130
5131         * config.table: Permit --enable-shared to specify a list of
5132         directories.
5133
5134 Tue Mar 19 22:02:07 1996  Jason Merrill  <jason@yorick.cygnus.com>
5135
5136         * cplus-dem.c (demangle_template): Fix for non-mangled pointer
5137         arguments.
5138
5139 Fri Mar  8 17:24:18 1996  Ian Lance Taylor  <ian@cygnus.com>
5140
5141         * configure.in: If srcdir is `.' and with_target_subdir is not
5142         `.', then set MULTISRCTOP before calling config-ml.in.
5143
5144 Thu Mar  7 13:37:10 1996  Stan Shebs  <shebs@andros.cygnus.com>
5145
5146         * mpw.c (mpw_open): Add debugging output option.
5147
5148 Wed Mar  6 17:36:03 1996  Jason Merrill  <jason@yorick.cygnus.com>
5149
5150         * cplus-dem.c (demangle_template): Fix for address-of-extern arguments.
5151
5152 Tue Feb 27 12:00:50 1996  Raymond Jou  <rjou@mexican.cygnus.com>
5153
5154         * mpw.c (mpwify_filename): Change 6 to 5 in
5155         strncmp (unixname, "/tmp/", 5).
5156
5157 Tue Feb 20 10:55:53 1996  Ian Lance Taylor  <ian@cygnus.com>
5158
5159         * cplus-dem.c (demangle_template): Initialize is_bool.  Correctly
5160         handle 0 as a pointer value parameter.
5161
5162 Mon Feb  5 16:41:44 1996  Ian Lance Taylor  <ian@cygnus.com>
5163
5164         * Makefile.in (all): Depend upon required-list.
5165         (required-list): New target.
5166         (clean): Remove required-list.
5167
5168 Wed Jan 31 10:19:41 1996  Steve Chamberlain  <sac@slash.cygnus.com>
5169
5170         * win32.c: Deleted.
5171         * config.table (i386-*-win32): Deleted.
5172         * config/mh-i386win32: Deleted.
5173
5174 Thu Jan 18 11:34:17 1996  Ian Lance Taylor  <ian@cygnus.com>
5175
5176         * cplus-dem.c (cplus_demangle_opname): Change opname parameter to
5177         const char *.
5178         (cplus_mangle_opname): Change return type and opname parameter to
5179         const char *.  Don't cast return value.
5180
5181 Tue Jan 16 12:13:11 1996  Stan Shebs  <shebs@andros.cygnus.com>
5182
5183         * mpw.c: Include Timer.h, in order to get m68k Microseconds trap
5184         definition.
5185
5186 Wed Jan  3 13:15:04 1996  Fred Fish  <fnf@cygnus.com>
5187
5188         * obstack.c: Update copyright to 1996.
5189         (_obstack_memory_used): Define new function.  Called via
5190         obstack_memory_used macro.
5191
5192 Thu Dec 28 11:39:40 1995  Ian Lance Taylor  <ian@cygnus.com>
5193
5194         * xstrdup.c: New file.
5195         * Makefile.in (CFILES): Add xstrdup.c.
5196         (REQUIRED_OFILES): Add xstrdup.o.
5197         (xstrdup.o): New target.
5198
5199 Mon Dec 11 18:18:52 1995  Mike Stump  <mrs@cygnus.com>
5200
5201         * atexit.c: New stub to provide atexit on systems that have
5202         on_exit, like SunOS 4.1.x systems.
5203         * functions.def (on_exit, atexit): Ditto.
5204
5205 Mon Dec 11 15:42:14 1995  Stan Shebs  <shebs@andros.cygnus.com>
5206
5207         * mpw.c (mpw_abort): Remove decl.
5208         (mpw_access): Move debugging printf.
5209
5210 Sat Dec  2 01:25:23 1995  Ian Lance Taylor  <ian@cygnus.com>
5211
5212         * config.table: Consistently use ${host} rather than ${xhost} or
5213         ${target}.
5214         * configure.in: Don't bother to set ${xhost} before calling
5215         config.table.
5216
5217 Tue Nov 28 14:16:57 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
5218
5219         * Makefile.in (.c.o): Use test instead of the left bracket, to
5220         avoid problems with some versions of make.
5221
5222 Tue Nov 28 11:45:17 1995  Stan Shebs  <shebs@andros.cygnus.com>
5223
5224         * mpw-make.sed: Fix INCDIR edit to work with Nov 14 change.
5225
5226 Tue Nov 21 11:26:34 1995  Fred Fish  <fnf@rtl.cygnus.com>
5227
5228         * config/mh-hpux: Remove.  It was only used to define EXTRA_OFILES,
5229         which was set to just alloca.o, which is now automatically marked
5230         as needed by the autoconfiguration process.
5231
5232 Tue Nov 21 14:15:06 1995  Ian Lance Taylor  <ian@cygnus.com>
5233
5234         * config.table: Check ${with_cross_host} rather than comparing
5235         ${host} and ${target}.
5236
5237 Thu Nov 16 14:34:42 1995  Ian Lance Taylor  <ian@cygnus.com>
5238
5239         * configure.in: If with_target_subdir is empty, set xhost to
5240         ${host} rather than ${target} before calling config.table.
5241
5242 Tue Nov 14 01:38:30 1995  Doug Evans  <dje@canuck.cygnus.com>
5243
5244         * Makefile.in (MULTITOP): Deleted.
5245         (MULTISRCTOP, MULTIBUILDTOP): New.
5246         (FLAGS_TO_PASS): Delete INCDIR.
5247         (INCDIR): Add $(MULTISRCTOP).
5248         (install_to_libdir): Add $(MULTISUBDIR).  Call $(MULTIDO).
5249         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
5250         instead of cfg-ml-pos.in.
5251         (cross-compile check): Change to test for with_target_subdir.
5252         (EXTRA_LINKS): Delete.
5253
5254 Sun Nov 12 12:13:04 1995  Stan Shebs  <shebs@andros.cygnus.com>
5255
5256         * mpw-make.sed: Add getpagesize.c.o to needed-list.
5257         * mpw.c [USE_MW_HEADERS]: Conditionalize compiling of
5258         functions that are supplied by Metrowerks libraries.
5259         (fstat): Clean up descriptor->pointer conversion code.
5260         (InstallConsole, etc): Empty definitions, for when linking
5261         with SIOUX.
5262
5263 Sun Nov  5 19:25:27 1995  Per Bothner  <bothner@kalessin.cygnus.com>
5264
5265         * Makefile.in (FLAGS_TO_PASS):  Also pass PICFLAGS.
5266         (.c.o):  Stylistic change.
5267
5268 Thu Nov  2 12:06:29 1995  Ian Lance Taylor  <ian@cygnus.com>
5269
5270         * strtol.c, strtoul.c: Don't include <stdlib.h>.  From
5271         phdm@info.ucl.ac.be (Philippe De Muyter).
5272
5273 Wed Nov  1 11:59:36 1995  Ian Lance Taylor  <ian@cygnus.com>
5274
5275         * configure.in: Correct sed call.
5276
5277 Mon Oct 30 13:03:45 1995  Per Bothner  <bothner@kalessin.cygnus.com>
5278
5279         * configure.in:  Clean up / simplify for native.
5280
5281         * configure.in:  Merge in stuff from ../xiberty/configure.in.
5282         * Makefile.in (CC):  Add definition (so it can be overrridden
5283         by ../configure).
5284
5285 Tue Oct 24 17:57:27 1995  Stan Shebs  <shebs@andros.cygnus.com>
5286
5287         * mpw-make.sed: Leave strerror.c.o in standard list of functions.
5288         * mpw.c (R_OK, ENOENT, EACCESS, ENOSYS): Remove.
5289         (link): Remove useless definition with error return.
5290         (last_microseconds, warn_if_spin_delay, record_for_spin_delay):
5291         Use UnsignedWide type for microsecond counts.
5292
5293 Thu Oct 19 10:52:07 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
5294
5295         * memcmp.c (memcmp): Argument types are const void *, not void
5296         *const.
5297
5298         * strncasecmp.c (strncasecmp): Include ansidecl.h/stdarg.h, not
5299         sys/types.h.
5300         * strcasecmp.c (strcasecmp): Ditto.
5301
5302 Tue Oct 10 11:03:24 1995  Fred Fish  <fnf@cygnus.com>
5303
5304         * Makefile.in (BISON):  Remove macro.
5305
5306 Tue Sep 26 15:06:46 1995  Stan Shebs  <shebs@andros.cygnus.com>
5307
5308         * Makefile.in (HFILES): Add default empty definition.
5309         * mpw-config.in (config.h): Only update if changed.
5310         * mpw-make.in: Remove.
5311         * mpw-make.sed: New file, edits Makefile.in into MPW makefile.
5312         * mpw.c: Remove semi-clone of strerror code.
5313         (sys_nerr, sys_errlist): Define here.
5314         (Microseconds): Only define as A-line trap if m68k Mac.
5315
5316 Wed Sep 20 12:53:32 1995  Ian Lance Taylor  <ian@cygnus.com>
5317
5318         * Makefile.in (maintainer-clean): New synonym for distclean.
5319
5320 Mon Aug 28 19:47:52 1995  Per Bothner  <bothner@kalessin.cygnus.com>
5321
5322         * config.table:  For host, generalize rs6000-ibm-aix*
5323         to *-ibm-aix* so we also include powerpc.
5324
5325 Tue Aug 22 03:18:05 1995  Ken Raeburn  <raeburn@kr-laptop.cygnus.com>
5326
5327         Fri Jun 16 18:35:40 1995  Pat Rankin  (rankin@eql.caltech.edu)
5328
5329         * xstrerror.c: New file.
5330         * Makefile.in, vmsbuild.com: Compile it.
5331
5332 Mon Jul 31 12:16:32 1995  steve chamberlain  <sac@slash.cygnus.com>
5333
5334         * config.table (i386-*-win32): New.
5335
5336 Fri Jul 21 11:35:52 1995  Doug Evans  <dje@canuck.cygnus.com>
5337
5338         * Makefile.in (MULTITOP): New variable.
5339         (MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): Likewise.
5340         (all): Add multilib support.
5341         (install_to_tooldir, *clean): Likewise.
5342
5343 Mon Jul 10 11:47:27 1995  Ken Raeburn  <raeburn@cygnus.com>
5344
5345         * makefile.dos (OBJS): Add hex.o.  From DJ Delorie.
5346
5347 Fri Jun 30 17:28:59 1995  Pat Rankin  (rankin@eql.caltech.edu)
5348
5349         * vmsbuild.com:  create "new-lib.olb", build libiberty under that
5350         name, and then make it become "liberty.olb" when done, so that an
5351         incomplete build attempt never leaves behind something which looks
5352         like a complete library.
5353
5354 Thu Jun 29 00:22:02 1995  Steve Chamberlain  <sac@slash.cygnus.com>
5355
5356         * config/mh-i386pe: New file for PE hosts.
5357         * config.table: Understand PE hosts.
5358
5359 Wed Jun 28 19:13:23 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
5360
5361         * cplus-dem.c: Update from gcc.
5362
5363         * argv.c, dummy.c: If __STDC__, #include "alloca-conf.h" after
5364         <stddef.h>.
5365         * alloca-norm.h: If __STDC__, declare alloca with its parameter.
5366
5367 Thu Jun 22 18:57:47 1995  Stan Shebs  <shebs@andros.cygnus.com>
5368
5369         * mpw-make.in (ALL_CFLAGS): Define NEED_basename.
5370         * mpw.c: Only test DebugPI once whenever printing debug info.
5371         (mpwify_filename): If filename is /tmp/foo, change it into :_foo,
5372         also fix to not write on input filename buffer.
5373         (mpw_access): Use stat() instead of open(), works for directories
5374         as well as files.
5375
5376 Mon Jun 19 00:33:22 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
5377
5378         * Makefile.in: Massage broken shells that require 'else true'.
5379
5380 Sat Jun 17 23:21:58 1995  Fred Fish  <fnf@cygnus.com>
5381
5382         * alloca-norm.h: Declare alloca as type "PTR" to match functions.def.
5383         Declare __builtin_alloca in the sparc case, as argv.c did.
5384         * argv.c: Replace inline version of alloca-norm.h at start of file with
5385         a #include of alloca-conf.h.  Precede it with an include of ansidecl.h
5386         because alloca-norm.h needs to declare alloca as "PTR".
5387
5388 Mon Jun 12 14:24:26 1995  Steve Chamberlain  <sac@slash.cygnus.com>
5389
5390         * win32.c: New file.
5391
5392 Fri Jun  9 15:16:14 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
5393
5394         * dummy.c: #include "alloca-conf.h".
5395
5396 Wed Jun  7 11:46:23 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
5397
5398         * Makefile.in (mostlyclean): Remove stamp-picdir.
5399         (clean): Don't.
5400
5401 Mon Jun  5 18:46:06 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
5402
5403         * config.table (frags): Use toplevel pic frags.
5404
5405         * Makefile.in (PICFLAG): New macro.
5406         (all): Depend on stamp-picdir.
5407         (needed-list): Ditto.
5408         (.c.o): Also build pic object.
5409         (stamp-picdir): New rule.
5410         (mostlyclean): Remove pic.
5411         (clean): Remove stamp-picdir.
5412
5413 Fri Mar 24 16:55:48 1995  Pat Rankin  (rankin@eql.caltech.edu)
5414
5415         * vmsbuild.com (config.h): Add `#define NEED_basename'.
5416
5417 Tue May 23 10:12:46 1995  Per Bothner  <bothner@kalessin.cygnus.com>
5418
5419         * clock.c, getopt.c, strtod.c, vsprintf.c:  Change from using LGPL
5420         to libio-style copyright.
5421         * getpagesize.c:  Remove FSF copyright.
5422
5423 Sat May 20 12:30:23 1995  Ken Raeburn  <raeburn@kr-laptop.cygnus.com>
5424
5425         Added improved VMS support from Pat Rankin:
5426
5427         Fri Mar 17 18:40:36 1995  Pat Rankin  (rankin@eql.caltech.edu)
5428
5429         * vmsbuild.com:  new file.
5430
5431         * getpagesize.c (getpagesize):  implement for VMS;
5432         * strerror.c (strerror, strerrno, strtoerrno):  add rudimentary
5433         support for EVMSERR.
5434
5435 Thu May 18 17:01:42 1995  Ken Raeburn  <raeburn@kr-laptop.cygnus.com>
5436
5437         Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
5438
5439         * floatformat.c (floatformat_arm_ext): Define.
5440
5441 Tue May 16 13:30:59 1995  Per Bothner  <bothner@kalessin.cygnus.com>
5442
5443         * basename.c, bcmp.c, getcwd.c, insque.c, rename.c, sigsetmask.c,
5444         strerror.c, strsignal.c:  Remove FSF copyright.
5445         * sigsetmask.c: #include <sys/types.h> - seems to be needed by ISC.
5446
5447 Mon May 15 19:53:17 1995  Per Bothner  <bothner@kalessin.cygnus.com>
5448
5449         * bcopy.c, bzero.c, memcmp.c, memcpy.c, memset.c, strchr.c,
5450         strrchr.c, strstr.c, vfork.c:  Remove FSF Copyright, because this
5451         might contaminate libstdc++ with the LGPL.  (OK'd by RMS 11 Oct 94.)
5452         * strchr.c, strrchr.c:  Add cast to suppress const warning.
5453
5454 Thu May  4 14:36:42 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
5455
5456         * cplus-dem.c: Use const instead of CONST.  Don't include
5457         ansidecl.h directly.
5458
5459 Wed Apr 19 01:30:27 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
5460
5461         * cplus-dem.c: Don't include libiberty.h.  Do declare xmalloc and
5462         xrealloc.
5463         (-DMAIN): Don't rely on an externally-defined version number;
5464         instead, require the version number to be defined as a
5465         preprocessor macro.  Handle the RS/6000 leading dot.  Define
5466         xmalloc, xrealloc and fatal.  Don't strip a leading underscore
5467         if we couldn't demangle the word.
5468
5469 Tue Apr  4 13:03:51 1995  Stan Shebs  <shebs@andros.cygnus.com>
5470
5471         (Old mpw.c change descriptions retained for informational value.)
5472         * mpw.c (warning_threshold): Default to .4 sec.
5473         (overflow_count, current_progress): New globals.
5474         (warn_if_spin_delay): Include current progress type,
5475         such as program name, in message.
5476         (mpw_start_progress): Set current_progress variable from arg.
5477         (mpw_end_progress): Report spin delays by power-of-two-size
5478         buckets instead of constant-size buckets.
5479
5480         * mpw.c: Clean up formatting, types, returns, etc.
5481         (ENOSYS): Define.
5482         (mpw_fread, mpw_fwrite): Define.
5483         (sleep): Define correctly.
5484
5485         * mpw.c: New code to implement cursor spinning support.
5486         (umask): New function.
5487         (mpw_fopen, mpw_fseek, stat, fstat): Call PROGRESS.
5488
5489         * mpw.c (mpw_basename, mpw_mixed_basename): New functions, find
5490         basenames for MPW and MPW/Unix filenames.
5491         (mpw_special_init): New function, calls Macsbug if desired.
5492
5493         * mpw.c: Add GPL notice.
5494         (mpwify_filename): Add more transformations.
5495         (mpw_fopen): Call mpwify_filename on file names.
5496         (rename): Remove.
5497         (chdir, getcwd): Add simple definitions.
5498
5499         * mpw.c: Random cleanups, remove unused code bits.
5500         Added copy of strerror.c for gcc's use.
5501         (stat, fstat, _stat): New versions based on Guido van Rossum code.
5502
5503         * mpw.c (mpw_fseek): Make it work correctly when doing SEEK_CUR.
5504
5505         * mpw.c (stat): Remove hack definition, get from sys/stat.h.
5506         (fork, vfork, etc): Print error messages if called.
5507         (getrusage, sbrk, environ, isatty, link, utime, mkdir, rmdir,
5508         rename, chown): Define.
5509
5510         * mpw-config.in: New file, MPW version of configure.in.
5511         * mpw-make.in: New file, MPW version of Makefile.in.
5512         * mpw.c: New file, MPW compatibility routines.
5513
5514 Fri Mar 24 14:10:30 1995  Jim Kingdon  (kingdon@lioth.cygnus.com)
5515
5516         * basename.c: Include config.h before checking for NEED_basename.
5517
5518 Thu Mar 23 19:09:54 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
5519
5520         * functions.def: Add DEFFUNC for basename.
5521
5522         * basename.c: Only define basename if NEED_basename.
5523
5524 Thu Mar 16 13:36:05 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
5525
5526         * config.table: Fix --enable-shared logic for native builds.
5527
5528 Mon Mar 13 11:05:11 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
5529
5530         * cplus-dem.c (demangle_template): Demangle bool literals properly.
5531
5532 Mon Mar  6 23:57:28 1995  Stu Grossman  (grossman@cygnus.com)
5533
5534         * strtol.c strtoul.c:  Replace these with less buggy versions from
5535         NetBSD.  (strtoul in particular couldn't handle base 16.)
5536
5537 Wed Mar  1 15:59:01 1995  Ian Lance Taylor  <ian@cygnus.com>
5538
5539         * config/mt-vxworks5 (HDEFINES): Define NO_SYS_PARAM_H.
5540
5541         * clock.c: If NO_SYS_PARAM_H is defined, don't include
5542         <sys/param.h>.
5543         * getcwd.c, getpagesize.c, getruntime.c: Likewise.
5544
5545 Fri Feb 17 15:40:55 1995  Ian Lance Taylor  <ian@cygnus.com>
5546
5547         * getruntime.c (get_run_time): Don't assume that CLOCKS_PER_SEC is
5548         a number; ANSI appears to permit any expression, including a
5549         function call.
5550
5551         * config.table (*-*-vxworks5*): Use mt-vxworks5 when configuring
5552         xiberty.
5553         * config/mt-vxworks5: New file.
5554
5555 Thu Feb  9 14:19:45 1995  Ian Lance Taylor  <ian@cygnus.com>
5556
5557         * basename.c (basename): Change argument to be const.
5558
5559 Wed Feb  8 18:06:52 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
5560
5561         * Makefile.in (lneeded-list): Don't worry about xmalloc.
5562
5563 Sun Jan 15 00:40:36 1995  Jeff Law  (law@snake.cs.utah.edu)
5564
5565         * Makefile.in (distclean): Delete xhost-mkfrag.
5566
5567 Thu Jan 12 16:54:18 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
5568
5569         * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
5570
5571 Wed Jan 11 22:39:56 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
5572
5573         * hex.c: New file.
5574         * Makefile.in (REQUIRED_OFILES, CFILES): List it.
5575         (hex.o): Add dependencies.
5576
5577         * cplus-dem.c (demangle_prefix): For GNU style constructor and
5578         destructor names, try demangling the remainder of the string.
5579
5580 Wed Dec 28 00:49:15 1994  Ian Lance Taylor  <ian@tweedledumb.cygnus.com>
5581
5582         * vasprintf.c (int_vasprintf): New static function.
5583         (vasprintf): Use int_vasprintf.  Removes assumption that va_list
5584         is assignment compatible.
5585
5586 Sat Nov  5 19:29:12 1994  Jason Merrill  (jason@phydeaux.cygnus.com)
5587
5588         * Makefile.in (LIBCFLAGS): New variable.
5589         (FLAGS_TO_PASS): Pass it.
5590         (.c.o): Use it.
5591
5592 Thu Nov  3 19:09:47 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
5593
5594         * getopt.c, getopt1.c: Do compile these functions under Linux,
5595         since many native versions are based on glibc but are buggy.
5596
5597 Mon Oct 24 15:16:46 1994  Per Bothner  <bothner@kalessin.cygnus.com>
5598
5599         * vasprintf.c:  Make 'format' arg be const, to avoid a mismatch
5600         with prototype in GNU libc.  Support stdarg.h as well as varargs.h.
5601
5602 Tue Oct 11 17:48:27 1994  Jason Merrill  (jason@phydeaux.cygnus.com)
5603
5604         * Makefile.in (REQUIRED_OFILES): Add vasprintf.o.
5605         * functions.def: Remove vasprintf.
5606
5607 Wed Sep 14 17:04:55 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5608
5609         * xmalloc.c (first_break): New static variable.
5610         (xmalloc_set_program_name): Record sbrk (0) in first_break.
5611         (xmalloc): If memory allocation fails, try to report how much
5612         memory was allocated by the program up to this point.
5613         (xrealloc): Likewise.
5614
5615 Sun Sep 04 17:58:10 1994  Richard Earnshaw (rwe@pegasus.esprit.ec.org)
5616
5617         * Makefile.in (ERRORS_CC): New variable, defaulted to $(CC).  Use it
5618         when linking dummy.
5619         * config.table: Add host RISCiX Makefile frag.
5620         * config/mh-riscix: New file.
5621
5622 Thu Aug 25 17:29:44 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5623
5624         * Makefile.in (FLAGS_TO_PASS): Define.
5625         ($(RULE1)): Use $(FLAGS_TO_PASS).
5626
5627 Wed Aug 24 17:08:47 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5628
5629         * vasprintf.c: Include <string.h>.
5630         (vasprintf): Add casts to void for va_arg to avoid gcc warnings.
5631         * xatexit.c: Declare malloc.
5632
5633 Fri Aug 19 15:29:12 1994  Kung Hsu  (kung@mexican.cygnus.com)
5634
5635         * cplus-dem.c (demangle_args): Fix a bug in previous patch (the
5636         one below).
5637
5638 Thu Aug 18 14:37:14 1994  Kung Hsu  (kung@mexican.cygnus.com)
5639
5640         * cplus-dem.c (demangle args): Handle ARM repeat encoding where
5641         the type index is greater than 9.
5642
5643 Wed Aug 17 16:13:49 1994  Kung Hsu  (kung@mexican.cygnus.com)
5644
5645         * cplus-dem.c (demangle_qualified): accept optional '_' between
5646         qualified name. This is baecause the template name may end with
5647         numeric and can mixed up with the length of next qualified name.
5648
5649 Wed Aug  3 05:52:14 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
5650
5651         * config/mt-sunos4: Use our standard location for cross-includes
5652         and cross-libs when the target is also a "host" environment (ie no
5653         newlib; includes and such don't belong to us).  This is specific
5654         to the Cygnus Support environment.
5655
5656 Tue Aug  2 15:25:12 1994  Kung Hsu  (kung@mexican.cygnus.com)
5657
5658         * cplus-dem.c (demangle_template): demangle as xxx<'Q'> not
5659         xxx<ch=81>.
5660
5661 Mon Aug  1 17:02:48 1994  Kung Hsu  (kung@mexican.cygnus.com)
5662
5663         * cplus-dem.c (main): flush stdout to make pipe work.
5664
5665 Sat Jul 16 12:56:32 1994  Stan Shebs  (shebs@andros.cygnus.com)
5666
5667         * config.table (*-*-cxux7*):  Recognize.
5668         * floatformat.c (floatformat_m88110_ext) [HARRIS_FLOAT_FORMAT]:
5669         Harris-specific float format.
5670         * config/mh-cxux7: New file.
5671
5672 Wed Jun 29 00:26:17 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
5673
5674         * cplus-dem.c (demangle_template):  Make sure that the result of
5675         consume_count doesn't index beyond the end of the string.
5676
5677 Mon Jun 20 23:54:37 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
5678
5679         * cplus-dem.c (gnu_special):  Handle vtable mangling of gcc-2.4.5 and
5680         earlier. Improve test for new vtable mangling. Change output back
5681         to `virtual table'.
5682
5683 Mon Jun 20 11:37:30 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5684
5685         * obstack.c: Always compile this code, even if using the GNU
5686         library.  Avoids problems with relatively recent binary
5687         incompatibility.
5688
5689 Thu Jun 16 17:54:01 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5690
5691         * cplus-dem.c: Include libiberty.h.
5692         (xmalloc, xrealloc, free): Don't declare.
5693         (strstr): Don't declare parameters.
5694         (xmalloc, xrealloc): Don't define.
5695         (long_options): Add no-strip-underscores.
5696         (main): Call xmalloc_set_program_name.  Pass n in short options to
5697         getopt_long.  Handle option 'n' to not strip underscores.
5698         (usage): Mention -n and --no-strip-underscores.
5699
5700 Sun Jun 12 01:37:09 1994  Jason Merrill  (jason@deneb.cygnus.com)
5701
5702         * cplus-dem.c (demangle_template): Separate consecutive >'s with a
5703         space.
5704         (gnu_special): Demangle template and qualified names in a vtable name.
5705
5706 Fri May 27 12:27:52 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
5707
5708         From gas-2.3 and binutils-2.4 net releases:
5709
5710         Wed May 11 22:32:00 1994  DJ Delorie (dj@ctron.com)
5711
5712         * makefile.dos: [new] Makefile for dos/go32
5713         * configure.bat: update for latest files
5714         * msdos.c: remove some functions now in libc.a
5715
5716 Fri May 20 18:53:32 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5717
5718         * cplus-dem.c (gnu_special):  Recognize thunks, as well as
5719         the new naming style for vtables (when -fvtable-thunks).
5720
5721 Wed May 18 13:34:06 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5722
5723         * Makefile.in (XTRAFLAGS): Don't define.
5724         (.c.o, dummy.o): Don't use XTRAFLAGS.
5725         ($(RULE1)): Don't pass XTRAFLAGS down in recursive call.
5726
5727 Fri May 13 16:02:12 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
5728
5729         * vasprintf.c: New file.
5730         * Makefile.in, functions.def: Add it.
5731
5732 Fri May 13 16:20:28 1994  Jason Merrill  (jason@deneb.cygnus.com)
5733
5734         * cplus-dem.c (demangle_fund_type): Grok bool.
5735
5736 Fri May  6 14:44:21 1994  Steve Chamberlain  (sac@cygnus.com)
5737
5738         * config.table: Add go32
5739         * config/mh-go32: New template.
5740
5741 Fri May  6 11:01:59 1994  D. V. Henkel-Wallace  (gumby@rtl.cygnus.com)
5742
5743         * config.table, config/mt-sunos4: config for when sun4 is cross target.
5744
5745 Mon Apr 11 00:54:33 1994  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
5746
5747         * getopt.c [not __GNU_LIBRARY__] [__GCC__] [not __STDC__]:
5748         Declare strlen to return int.  Don't include stddef.h.
5749
5750 Fri Apr  1 00:38:17 1994  Jim Wilson  (wilson@mole.gnu.ai.mit.edu)
5751
5752         * getopt.c: Delete use of IN_GCC to control whether
5753         stddef.h or gstddef.h is included.
5754
5755 Thu Apr 14 14:00:56 1994  Kung Hsu  (kung@mexican.cygnus.com)
5756
5757         * cplus-dem.c (demangle_signature): Fix a bug in template function
5758         type numbering.
5759
5760 Wed Apr 13 17:23:03 1994  Kung Hsu  (kung@mexican.cygnus.com)
5761
5762         * cplus-dem.c (demangle_signature): Fix template function with arm
5763         style argument type number, Tn.
5764
5765 Wed Apr 13 17:11:15 1994  Jason Merrill  (jason@deneb.cygnus.com)
5766
5767         * cplus-dem.c (optable): Add new[] and delete[].
5768
5769 Fri Apr  8 11:21:42 1994  Jim Kingdon  (kingdon@deneb.cygnus.com)
5770
5771         * argv.c (buildargv): Don't produce empty argument just because
5772         there is trailing whitespace.
5773
5774 Wed Apr  6 11:42:14 1994  Kung Hsu  (kung@mexican.cygnus.com)
5775
5776         * cplus-dem.c (demangle_template): fix 'Q' qualified name bug.
5777         Handle 'p' same as 'P'.
5778         * cplus-dem.c (do_type): Handle 'p' same as 'P'.
5779
5780 Sat Mar 26 12:00:13 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
5781
5782         * floatformat.c (get_field, put_field):  Fix off by one error in
5783         little endian case.
5784
5785 Thu Mar 24 10:40:19 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
5786
5787         * floatformat.c (floatformat_from_double): Pass unsigned char *,
5788         not char *, to put_field.
5789
5790 Fri Mar 18 12:34:33 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5791
5792         * memmove.c:  Re-wrote;  placed in public domain.
5793
5794 Wed Mar 16 10:33:07 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
5795
5796         * cplus-dem.c (demangle_prefix): If ARM demangling, don't treat
5797         __Q* as a constructor.
5798
5799 Mon Mar 14 12:26:02 1994  Ian Lance Taylor  (ian@cygnus.com)
5800
5801         * ieee-float.c: Removed; no longer used.
5802         * Makefile.in: Changed accordingly.
5803
5804 Mon Mar  7 12:28:17 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5805
5806         * floatformat.c (get_field): Removed unused local variable i.
5807         (put_field): Removed unused local variable i.
5808
5809 Sun Feb 27 21:50:11 1994  Jim Kingdon  (kingdon@deneb.cygnus.com)
5810
5811         * floatformat.c: New file, intended to replace ieee-float.c.
5812         * Makefile.in: Change accordingly.
5813
5814 Thu Feb 24 11:51:12 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
5815
5816         * getopt.c: Remove #ifdef GETOPT_COMPAT and #if 0 code.
5817          (_getopt_initialize): New function, broken out of _getopt_internal.
5818          (_getopt_internal):
5819          If long_only and the ARGV-element has the form "-f", where f is
5820          a valid short option, don't consider it an abbreviated form of
5821          a long option that starts with f.  Otherwise there would be no
5822          way to give the -f short option.
5823
5824 Thu Feb 10 14:44:16 1994  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
5825
5826         * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]:
5827         Test just __STDC__, not emacs.
5828
5829 Wed Feb  9 00:14:00 1994  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
5830
5831         * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]
5832         [emacs] [not __STDC__]: Don't include stddef.h.  Don't declare strlen.
5833
5834 Fri Dec 24 19:43:00 1993  Noah Friedman  (friedman@nutrimat.gnu.ai.mit.edu)
5835
5836         * getopt.c (_NO_PROTO): Define before config.h is included.
5837
5838 Mon Sep 20 15:59:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5839
5840         * getopt.c, getopt1.c [emacs || CONFIG_BROKETS]: Include
5841         <config.h> only under these, else "config.h".
5842
5843 Thu Aug 12 18:16:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5844
5845         * getopt.c, getopt1.c [HAVE_CONFIG_H]: Include
5846         <config.h> instead of "config.h".
5847
5848 Sun Feb 20 17:17:01 1994  Ian Lance Taylor  (ian@lisa.cygnus.com)
5849
5850         * concat.c: Check ANSI_PROTOTYPES rather than __STDC__ to decide
5851         whether to use prototypes or not.
5852         * strerror.c (const): Never undefine; let ansidecl.h handle it.
5853         * strsignal.c (const): Likewise.
5854
5855 Thu Feb 17 13:27:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5856
5857         * xatexit.c (_xexit_cleanup): Declare as extern; don't initialize.
5858         Merging common and initialized variables need not be supported by
5859         ANSI C compilers.
5860         (xatexit): Initialize _xexit_cleanup if not already set.
5861         * xexit.c: Comment fix.
5862
5863 Wed Feb 16 01:15:36 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5864
5865         * xmalloc.c: Don't declare xexit; it's declared in libiberty.h.
5866         (xrealloc): If oldmem is NULL, allocate with malloc, rather than
5867         assuming that realloc works correctly.
5868
5869 Tue Feb 15 09:26:16 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
5870
5871         * concat.c, ieee-float.c:  Replace inclusion of <string.h>
5872         with explicit function declarations, as recommended by Ian Taylor.
5873
5874 Sat Feb 12 10:31:11 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
5875
5876         * xmalloc.c (xmalloc, xrealloc): Use PTR and size_t throughout.
5877         (malloc, realloc): Declare.
5878
5879 Thu Feb 10 17:08:19 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5880
5881         * argv.c, basename.c: Include ansidecl.h and libiberty.h.
5882         * concat.c, fdmatch.c, getruntime.c, spaces.c: Likewise.
5883         * strerror.c, strsignal.c, xatexit.c, xexit.c: Likewise.
5884         * xmalloc.c: Likewise.
5885         * concat.c: Don't declare xmalloc.  If __STDC__, use <stdarg.h>
5886         macros, not <varargs.h> macros.
5887         * spaces.c (spaces): Make return type const.  Don't crash if
5888         malloc returns NULL.
5889         * strerror.c (struct error_info): Make name and msg fields const.
5890         (error_names): Make const.
5891         (strerrno): Make const.
5892         (strtoerrno): Make argument const.
5893         * strsignal.c (struct signal_info): Make name and msg fields
5894         const.
5895         (signal_names, sys_siglist): Make const.
5896         (strsignal, strsigno): Make const.
5897         (strtosigno): Make argument const.
5898         * xatexit.c: Declare parameter types.
5899         * xmalloc.c (name): Make const.
5900         (xmalloc_set_program_name): Make argument const.
5901         * Makefile.in (INCDIR): Define.
5902         (.c.o): Use $(INCDIR).
5903         (dummy.o): Likewise.
5904         (argv.o, basename.o): New targets; depend on libiberty.h.
5905         (concat.o, fdmatch.o, getruntime.o, spaces.o): Likewise.
5906         (strerror.o, strsignal.o, xatexit.o, xexit.o): Likewise.
5907         (xmalloc.o): Likewise.
5908         (cplus-dem.o): New target; depend on demangle.h.
5909         (getopt.o, getopt1.o): New targets; depend on getopt.h.
5910         (ieee-float.o): New target; depend on ieee-float.h.
5911         (obstack.o): New target; depend on obstack.h.
5912
5913 Tue Feb  8 05:29:08 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
5914
5915         Handle obstack_chunk_alloc returning NULL.  This allows
5916         obstacks to be used by libraries, without forcing them
5917         to call exit or longjmp.
5918         * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
5919         If CALL_CHUNKFUN returns NULL, set alloc_failed, else clear it.
5920         (_obstack_begin, _obstack_begin_1): Return 1 if successful, 0 if not.
5921
5922 Tue Feb  8 00:32:28 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
5923
5924         * concat.c, ieee-float.c:  Include <string.h>.
5925
5926 Sun Feb  6 21:28:46 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
5927
5928         * xmalloc.c (xmalloc_set_program_name): New function.
5929         (xmalloc, xrealloc): Include the name in the error message, if set.
5930
5931         * Replace atexit.c with xatexit.c.
5932         * Makefile.in (CFILES), functions.def: Change references.
5933
5934 Sat Feb  5 14:02:32 1994  Stan Shebs  (shebs@andros.cygnus.com)
5935
5936         * getruntime.c (get_run_time): Use getrusage or times if
5937         HAVE_GETRUSAGE or HAVE_TIMES are defined.
5938
5939 Fri Feb  4 15:49:38 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
5940
5941         * atexit.c: New file.
5942         * Makefile.in (CFILES), functions.def: Add it.
5943         * xexit.c: New file.
5944         * Makefile.in (CFILES, REQUIRED_OFILES): Add it.
5945         * xmalloc.c (xmalloc, xrealloc): Call xexit instead of exit.
5946         Change request for 0 bytes into request for 1 byte.
5947
5948 Wed Feb  2 11:36:49 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5949
5950         * xmalloc.c (xmalloc, xrealloc): Print size using %lu, and cast to
5951         unsigned long, to avoid warnings.
5952
5953 Fri Jan 28 17:49:06 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
5954
5955         * dummy.c: Don't include time.h ever; always define clock_t as
5956         "unsigned long".  Until gcc/fixincludes ensures that clock_t
5957         exists, __STDC__ isn't a sufficient test.  And if clock() doesn't
5958         exist, clock_t probably doesn't either.
5959
5960 Mon Jan 24 11:52:31 1994  Stan Shebs  (shebs@andros.cygnus.com)
5961
5962         * clock.c, getruntime.c: New files.
5963         * Makefile.in: Add to file lists.
5964         * functions.def (clock): Add to list.
5965         * dummy.c (time.h): Add if __STDC__.
5966         (clock_t): #define as "unsigned long" if not __STDC__.
5967
5968 Tue Jan 11 11:27:44 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5969
5970         * strtod.c: Declare atof.  From edler@jan.ultra.nyu.edu (Jan
5971         Edler).
5972
5973 Tue Dec 28 14:17:30 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5974
5975         * Makefile.in (errors): Use CFLAGS as well as LDFLAGS when
5976         linking.
5977
5978 Fri Dec 17 12:26:07 1993  Kung Hsu  (kung@cirdan.cygnus.com)
5979
5980         * cplus-dem.c (demangle_arm_pt): New function.  Common code
5981         for ARM template demangling.
5982         * cplus-dem.c (demangle_class_name): Use demangle_arm_pt.
5983         * cplus-dem.c (demangle_prefix): Likewise.
5984
5985 Tue Nov 30 15:47:48 1993  Jason Merrill  (jason@deneb.cygnus.com)
5986
5987         * cplus-dem.c (cplus_demangle_opname): Add CONST to please gcc.
5988
5989 Sat Nov 27 11:05:50 1993  Fred Fish  (fnf@cygnus.com)
5990
5991         Merge changes from tom@basil.icce.rug.nl (Tom R.Hageman)
5992         * strerror.c, strsignal.c:  As a small space optimization, don't
5993         include messages when they aren't actually used.
5994
5995         Merge changes from takefive.co.at!joe (Josef Leherbauer)
5996         * cplus-dem.c (demangle_prefix, demangle_function_name,
5997         cplus_demangle_opname):  Fixes for systems where cplus_marker
5998         is something other than '$'.
5999
6000 Fri Nov 26 13:51:11 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6001
6002         * waitpid.c:  Simple-minded approcimation to waitpid
6003         using vanilla wait.
6004         * functions.def, Makefile.in:  Update accordingly,
6005
6006 Thu Nov 18 18:01:15 1993  Kung Hsu  (kung@cirdan.cygnus.com)
6007
6008         * cplus-dem.c(demangle_template): fix bug template instantiation
6009         with value of user defined type.
6010
6011 Wed Nov 17 18:30:21 1993  Kung Hsu  (kung@cirdan.cygnus.com)
6012
6013         * cplus-dem.c(cplus_demangle_opname): add the subject new function
6014         to support unified search of operator in class.
6015
6016 Wed Nov 10 09:47:22 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
6017
6018         gcc -Wall lint:
6019         * strtoul.c (strtoul): use "(digit = *s) != '\0'" not just
6020         "digit = *s" as condition in while loop.
6021
6022 Tue Nov  9 15:52:22 1993  Mark Eichin  (eichin@cygnus.com)
6023
6024         * Makefile.in: pass SHELL to recursive make
6025
6026 Thu Nov  4 12:09:26 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6027
6028         * vfprintf.c, vprintf.c, vsprintf.c:  Make format arg
6029         be (const char*), for ANSI (and gcc w/fixproto) consistency.
6030
6031 Thu Nov  4 08:29:04 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
6032
6033         * config.table: Make *-*-hiux* use mh-hpux.
6034
6035 Fri Oct 22 07:53:15 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
6036
6037         * config.table: Add * to end of all OS names.
6038
6039 Tue Oct 19 17:12:01 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
6040
6041         * Makefile.in (lneeded-list): ensure that object file names are
6042           not duplicated, as multiple instances of the same object file in
6043           a library causes problems on some machines
6044
6045 Mon Oct 18 21:59:28 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
6046
6047         * strcasecmp.c, strncasecmp.c: Change u_char to unsigned char.
6048
6049 Fri Oct 15 22:17:11 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
6050
6051         * strncasecmp.c: new file, implements strncasecmp
6052         * strcasecmp.c: new file, implement strcasecmp
6053
6054         * Makefile.in (CFILES): list these two new source files
6055
6056         * functions.def: add strcasecmp and strncasecmp entries
6057
6058 Fri Oct 15 14:53:05 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6059
6060         * strtoul.c (strtoul), strtol.c (strtol): Handle overflow
6061         according to ANSI C.
6062
6063 Thu Oct 14 16:34:19 1993  Kung Hsu  (kung@cirdan.cygnus.com)
6064
6065         * cplus-dem.c: add support of ARM global constructor/destructor,
6066         and 'G' for passing record or union in parameter.
6067
6068 Wed Oct 13 13:36:19 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
6069
6070         * Makefile.in: Fix comment to clarify that stuff in REQUIRED_OFILES
6071         should not be in functions.def.
6072
6073 Wed Oct 13 13:13:38 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
6074
6075         * functions.def: Removed xmalloc.  Stuff in REQUIRED_OFILES should
6076         not be in functions.def.
6077
6078 Mon Oct  4 18:26:39 1993  Kung Hsu  (kung@cirdan.cygnus.com)
6079
6080         * cplus-dem.c: change globl constructor/destructor to proper name
6081
6082 Tue Sep 28 18:11:07 1993  Kung Hsu  (kung@cirdan.cygnus.com)
6083
6084         * cplus-dem.c: fix bug in constructor/destructor
6085
6086 Tue Sep 28 16:20:49 1993  Kung Hsu  (kung@cirdan.cygnus.com)
6087
6088         * cplus-dem.c: support both old and new _vt$... vtbl mangled names
6089
6090 Fri Sep 24 19:07:16 1993  Jason Merrill  (jason@deneb.cygnus.com)
6091
6092         * cplus-dem.c: Fix demangle_template prototype
6093
6094 Fri Sep 24 17:32:55 1993  Kung Hsu  (kung@cirdan.cygnus.com)
6095
6096         * cplus-dem.c: fix template demangling
6097         * cplus-dem.c: fix const type demangling
6098         * cplus-dem.c: fix constructor/destructor, virtual table,
6099         qualifier, global constructor/destructor demangling
6100
6101 Wed Sep  1 23:13:11 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
6102
6103         * strsignal.c, strerror.c: Use fully-bracketed initializer to
6104         keep gcc -Wall happy.
6105
6106 Fri Aug 27 10:30:09 1993  Jason Merrill  (jason@deneb.cygnus.com)
6107
6108         * cplus-dem.c (do_type): Add CONSTS to make gcc happy with last
6109         patch.
6110
6111 Fri Aug 27 11:24:54 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
6112
6113         Patch from Paul Flinders:
6114         * cplus-dem.c (do_type): Deal with arrays.
6115
6116 Tue Aug 24 14:23:50 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
6117
6118         * cplus-dem.c (demangle_qualified: Deal with GNU format for more
6119         than 9 classes.
6120
6121 Wed Aug 18 19:50:29 1993  Jason Merrill  (jason@deneb.cygnus.com)
6122
6123         * Makefile.in (dummy.o): Redirect to /dev/null to avoid "variable
6124         not initialized" warnings under HP/UX
6125
6126 Sun Aug 15 20:42:40 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
6127
6128         * strerror.c: Move include of stdio.h after sys_errlist #define.
6129         Also remove NULL definition (stdio.h always defines NULL, so it
6130         never did anything but clutter up the code).
6131
6132 Sat Aug 14 14:21:49 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
6133
6134         * Makefile.in, functions.def: handle xmalloc.c
6135
6136         * xmalloc.c: provide xmalloc and xrealloc functions
6137
6138 Thu Aug 12 17:38:57 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
6139
6140         * cplus-dem.c: Fix a comment.
6141
6142 Sat Aug  7 13:56:35 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
6143
6144         * getopt1.c: Declare const the way getopt.c does.
6145
6146 Fri Aug  6 17:03:13 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
6147
6148         * obstack.c, alloca.c: Update from FSF.
6149         * getopt.c, getopt1.c: Update to current FSF version, which
6150         doesn't use alloca.
6151
6152 Tue Jul 27 14:03:57 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
6153
6154         * Makefile.in (demangle): Add the target with a message saying
6155         where demangle went.
6156
6157 Mon Jul 26 15:49:54 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
6158
6159         * Makefile.in: Remove obsolete `demangle' target.
6160
6161 Thu Jul 22 08:31:01 1993  Fred Fish  (fnf@deneb.cygnus.com)
6162
6163         * cplus-dem.c (arm_special):  Apply patch from arg@lucid.com to
6164         avoid infinite loop on vtbl symbols with disambiguating "junk"
6165         tacked on the end.
6166
6167 Mon Jul 19 14:10:37 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
6168
6169         * strsignal.c: work around some systems losing definitions of
6170         sys_siglist
6171
6172         * config/mh-lynxos: this system has a losing definition of
6173         sys_siglist
6174
6175         * config.table: use mh-lynxos for *-*-lynxos
6176
6177 Mon Jul 19 17:08:52 1993  Ken Raeburn  (raeburn@rtl.cygnus.com)
6178
6179         * config.table: Add support for HPPA BSD hosts.
6180
6181         * config/mh-hpbsd: New file.
6182
6183 Mon Jul 12 18:00:40 1993  K. Richard Pixley  (rich@cygnus.com)
6184
6185         * Makefile.in (TAGS): make work when srcdir != objdir.
6186
6187 Sun Jun 27 15:35:31 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
6188
6189         * cplus-dem.c (main): Add long options, including --help and
6190         --version.
6191         (usage): New function from code in main.
6192
6193 Tue Jun 22 11:37:38 1993  Per Bothner  (bothner@deneb.cygnus.com)
6194
6195         * config.table:  New shell scipt, sourced by both ./configure,in
6196         and ../xiberty/configure.in, to avoid maintainance lossages.
6197         * configure.in and ../xiberty/configure.in:  Use config.table.
6198
6199         * configure.in: Don't use mh-aix for AIX 3.2, only for 3.1.
6200         * configure.in: Map *-*-irix* (except irix4) to mh-sysv.
6201         * ../xiberty/configure.in:  Update from ./configure.in.
6202
6203 Tue Jun 15 17:05:31 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
6204
6205         * Makefile.in: remove parentdir support
6206
6207 Wed May 26 12:59:09 1993  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
6208
6209         * cplus-dem.c (xrealloc):  Match definition with prototype.
6210
6211 Tue May 25 14:27:51 1993  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
6212
6213         * cplus-dem.c (demangle_prefix):  Demangle cfront
6214         local variables as an extension to ARM demangling.
6215
6216 Fri May 21 09:53:57 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
6217
6218         * ieee-float.c: Don't require pointers to double to be aligned.
6219
6220 Tue May 18 17:12:10 1993  Fred Fish  (fnf@cygnus.com)
6221
6222         (merge changes from dlong@cse.ucsc.edu)
6223         * cplus-dem.c (consume_count):  Simplify.
6224         * cplus-dem.c (arm_pt, demangle_class_name):  New functions.
6225         * cplus-dem.c (various):  Calls to arm_pt, demangle_class_name.
6226
6227         * cplus-dem.c (xmalloc, xrealloc, strstr):  Make extern decls into
6228         full prototypes.
6229         * cplus-dem.c (free):  Add prototype.
6230         * cplus-dem.c (optable):  Fully bracketize initializer.
6231
6232 Fri May 14 17:13:05 1993  Per Bothner  (bothner@cygnus.com)
6233
6234         * cplus-dem.c:  Whether initial underscores are stripped
6235         depends on the external variable prepends_underscore
6236         (which is generated by the binutils Makefile).
6237
6238 Fri May 14 07:32:20 1993  Ken Raeburn  (raeburn@deneb.cygnus.com)
6239
6240         * cplus-dem.c (mop_up, arm_special): Remove some unused variables.
6241
6242 Tue May  4 20:31:59 1993  Fred Fish  (fnf@cygnus.com)
6243
6244         * cplus-dem.c (consume_count):  Return zero if arg does not
6245         start with digit, and don't consume any input.
6246
6247 Tue May  4 08:10:28 1993  Jim Kingdon  (kingdon@cygnus.com)
6248
6249         * Makefile.in (demangle): Use ${srcdir} not $^.
6250
6251         * strtod.c: New file, needed at least for BSD 4.3.
6252
6253 Sun May  2 11:30:42 1993  Fred Fish  (fnf@cygnus.com)
6254
6255         * strsignal.c (sys_siglist):  For ANSI compilations, type is
6256         "const char *const".  Also remove conditionalization on __STDC__
6257         since const is defined away for non-ANSI.
6258
6259 Wed Apr 28 19:29:55 1993  Ken Raeburn  (raeburn@deneb.cygnus.com)
6260
6261         * configure.in: Recognize *-*-hpux.
6262         * config/mh-hpux: New file.
6263
6264 Tue Apr 27 15:22:19 1993  Per Bothner  (bothner@cygnus.com)
6265
6266         * tmpnam.c:  Added ANSI tmpnam() function.
6267         * functions.def, Makefile.in:  Update accordingly.
6268
6269 Tue Apr 27 13:38:38 1993  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
6270
6271         * cplus-dem.c (demangle_function_name): Get the demangling of
6272         stop__1A right.
6273
6274 Fri Apr 16 23:48:24 1993  Jim Kingdon  (kingdon at calvin)
6275
6276         * cplus-dem.c: Declare strstr return type.
6277
6278 Fri Mar 26 12:01:26 1993  Jim Kingdon  (kingdon@cygnus.com)
6279
6280         * strsignal.c: Add some AIX signals.
6281
6282 Thu Mar 25 15:17:23 1993  Ian Lance Taylor  (ian@cygnus.com)
6283
6284         * Makefile.in (MAKEOVERRIDES): Define to be empty.
6285
6286 Wed Mar 24 01:59:25 1993  david d `zoo' zuhn  (zoo at poseidon.cygnus.com)
6287
6288         * Makefile.in: add installcheck & dvi targets
6289
6290 Thu Mar 18 14:05:44 1993  Per Bothner  (bothner@rtl.cygnus.com)
6291
6292         * ieee-float.c:  New file, moved from ../gdb (since it is
6293         needed by ../opcode/m68k-dis.c).
6294
6295 Tue Mar  2 17:47:31 1993  Fred Fish  (fnf@cygnus.com)
6296
6297         * cplus-dem.c:  Replace all references to cfront with ARM.
6298
6299 Fri Feb 26 00:17:07 1993  Per Bothner  (bothner@rtl.cygnus.com)
6300
6301         * cplus-dem.c:  Fix main program (when compiled with -DMAIN)
6302         to be more useful as a filter.
6303
6304 Sat Feb 20 21:41:39 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
6305
6306         * Makefile.in (install_to_libdir, install_to_tooldir): Go into the
6307         destination directory before running $(RANLIB), in case that
6308         program tries to create a file in the current directory as part of
6309         its work.
6310
6311 Thu Feb 18 23:00:19 1993  John Gilmore  (gnu@cygnus.com)
6312
6313         * strsignal.c (sys_siglist):  Remove yet another *%^&%&$# "const"
6314         because BSD 4.4 lacks one.  Isn't this fun?
6315
6316 Thu Feb 18 11:24:25 1993  Fred Fish  (fnf@cygnus.com)
6317
6318         * cplus-dem.c (demangle_signature):  Set func_done after
6319         demangling a template.
6320         * cplus-dem.c (demangle_template):  Fix several small bugs
6321         in demangling GNU style templates.
6322         * cplus-dem.c (demangle_prefix):  Fix for templates in GNU
6323         style constructors.
6324         * cplus-dem.c (gnu_special):  Fix for templates in GNU style
6325         static data members.
6326
6327 Tue Feb 16 17:28:35 1993  Fred Fish  (fnf@cygnus.com)
6328
6329         * cplus-dem.c (demangle_signature):  Modify to include type
6330         modifiers like static and const in remembered types.
6331
6332 Thu Feb 11 22:20:47 1993  Fred Fish  (fnf@cygnus.com)
6333
6334         * cplus-dem.c (demangled_qualified):  Add new parameter that tells
6335         whether to prepend or append the qualifiers.
6336         * cplus-dem.c (string_prepends):  Used now, remove #if 0.
6337         * cplus-dem.c (demangle_signature):  Call demangle_qualified
6338         with prepending.
6339         * cplus-dem.c (gnu_special):  Recognize static data members that
6340         use qualified names.
6341         * cplus-dem.c (demangle_qualified):  Accumulate qualifiers in a
6342         temporary buffer and the prepend or append them to the result,
6343         as specified by the new "append" flag.
6344         * cplus-dem.c (do_type):  Call demangled_qualified with
6345         appending.
6346
6347 Mon Dec 28 10:47:19 1992  Ken Raeburn  (raeburn@cygnus.com)
6348
6349         * strsignal.c (signal_table): Now const.
6350         (init_signal_tables): Variable eip now points to const.
6351
6352         * strerror.c (error_table): Now const.
6353         (init_error_tables): Variable eip now points to const.
6354
6355 Tue Dec 15 15:36:50 1992  Per Bothner  (bothner@cygnus.com)
6356
6357         * memchr.c (memchr):  New (ANSI standard) function.
6358         * Makefile.in, functions.def:  Added memchr.
6359         * Makefile.in (AR_FLAGS): Use rc instad of non-standard cq.
6360
6361 Wed Dec  2 22:49:10 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
6362
6363         * getopt.c: remove use of USG around <alloca.h>, which never meant
6364         anything anyway
6365
6366         * config/mh-{aix,apollo68,ncr3000,sysv,sysv4}: removed definitions
6367         of USG and USGr4
6368
6369 Thu Nov 19 03:09:33 1992  Brendan Kehoe  (brendan@lisa.cygnus.com)
6370
6371         * cplus-dem.c (demangle_fund_type): Recognize `w', a wide character;
6372         it's now a type according to the ANSI X3J16 working paper; output
6373         "wchar_t" for it.
6374         (demangle_template): Accept `w' as an integral type.
6375         (xmalloc, xrealloc): Use `char *', not `PTR'.  Cast calls to their
6376         counterparts malloc and realloc to `char *'.
6377         (main): Exit with a 0 status.
6378         * Makefile.in (demangle): Don't expect the user to define
6379         DEMANGLE, instead force to be cplus-dem.c.  Look in $(srcdir)/../include
6380         for demangle.h.  Pass it any HDEFINES or XTRAFLAGS.
6381
6382 Wed Nov 18 18:56:20 1992  John Gilmore  (gnu@cygnus.com)
6383
6384         * Makefile.in (AR_FLAGS):  Avoid verbosity.
6385         * config/mh-sysv4:  Remove AR_FLAGS override, use INSTALL=cp,
6386         replace USGr4 with HAVE_SYSCONF.
6387         * config/mh-solaris:  Remove; mh-sysv4 works now.
6388         * getpagesize.c:  Replace USGr4 with HAVE_SYSCONF.
6389         * configure.in:  Simplify host matching table, remove separate
6390         solaris config file.
6391
6392 Sun Nov 15 09:35:16 1992  Fred Fish  (fnf@cygnus.com)
6393
6394         * configure.in (i[34]86-*-solaris2*):  Add, use mh-sysv4.
6395
6396 Tue Nov  3 21:27:03 1992  Brendan Kehoe  (brendan@cygnus.com)
6397
6398         * cplus-dem.c (xmalloc, xrealloc): Add decls.
6399         (remember_type): Don't cast xmalloc.
6400         (string_need): Likewise; don't cast xrealloc either.
6401
6402 Fri Oct 23 08:52:01 1992  Ian Lance Taylor  (ian@cygnus.com)
6403
6404         * Makefile.in, functions.defs, rename.c: added simple
6405         implementation of rename, since some binutils programs use it.
6406
6407 Thu Oct 15 15:18:22 1992  Per Bothner  (bothner@cygnus.com)
6408
6409         * strsignal.c:  Add appropriate 'const' to sys_siglist
6410         extern declaration (if __STDC__).  (Needed for Linux.)
6411         * strsignal.c (strsignal): Add cast to remove const-ness.
6412
6413 Fri Oct  9 03:22:55 1992  John Gilmore  (gnu@cygnus.com)
6414
6415         * Makefile.in (needed.awk, needed2.awk):  Remove erroneous \'s
6416         before "'s, diagnosed by BSD 4.4 awk.
6417
6418 Thu Oct  8 15:25:12 1992  Ian Lance Taylor  (ian@cygnus.com)
6419
6420         * Makefile.in: create config.h and needed-list through $(CONFIG_H)
6421         and $(NEEDED_LIST), to give some hooks for xiberty.
6422
6423 Thu Oct  1 23:31:42 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
6424
6425         * configure.in: use cpu-vendor-triple instead of nested cases
6426
6427 Wed Sep 30 11:26:59 1992  Per Bothner  (bothner@rtl.cygnus.com)
6428
6429         * Makefile.in, argv.c, basename.c, bcmp.c, bcopy.c, bzero.c,
6430         concat.c, cplus-dem.c, fdmatch.c, getcwd.c, getopt.c, getopt1.c,
6431         getpagesize.c, insque.c, memcmp.c, memcpy.c, memmove.c, memset.c,
6432         obstack.c, sigsetmask.c, spaces.c, strchr.c, strerror.c,
6433         strrchr.c, strsignal.c, strstr.c, vfork.c, vsprintf.c:
6434         Convert from using GPL to LGPL.
6435
6436 Sat Sep 26 04:01:30 1992  John Gilmore  (gnu@cygnus.com)
6437
6438         * Makefile.in (errors):  Leave dummy.o and dummy around so that
6439         we can see how the needed list was generated (it's sometimes wrong).
6440         (mostlyclean):  Remove them.
6441
6442 Mon Sep 21 14:50:42 1992  Ian Lance Taylor  (ian@cygnus.com)
6443
6444         * getcwd.c: supply a default if MAXPATHLEN is not defined.
6445
6446         * config/mh-irix4: set EXTRA_OFILES to alloca.o, from WRS.
6447
6448 Wed Sep  9 12:41:48 1992  Ian Lance Taylor  (ian@cygnus.com)
6449
6450         * Makefile.in: Use XTRAFLAGS when compiling, so that xiberty works
6451         when cross-compiling.
6452
6453 Thu Sep  3 13:29:39 1992  K. Richard Pixley  (rich@sendai.cygnus.com)
6454
6455         * cplus-dem.c: (demangle_prefix): reduction in strength of strstr
6456           as a time optimization.
6457
6458         * cplus-dem.c (cplus_demangle): remove strpbrk test.  Appears to
6459           be more expensive than simply demangling.
6460
6461         * cplus-dem.c (cplus_match): new function.
6462
6463 Tue Sep  1 15:24:04 1992  Per Bothner  (bothner@rtl.cygnus.com)
6464
6465         * cplus-dem.c:  #include <stdio.h>, to define NULL.
6466         Define current_demangling_style.
6467
6468 Sun Aug 30 17:58:19 1992  Per Bothner  (bothner@rtl.cygnus.com)
6469
6470         * cplus-dem.c:  New file, moved from ../gdb.
6471         * cplus-dem.c (set_cplus_marker_for_demangling):  New exported
6472         function, to avoid compiling in target-dependency for CPLUS_MARKER.
6473         * cplus-dem.c (cplus_demangle):  Allow demangling style option
6474         to be passed as a parameter, but using the global variable
6475         current_demangling_style as a default.
6476         * Makefile.in:  Update for cplus-dem.c
6477
6478 Sat Aug 29 10:44:09 1992  Fred Fish  (fnf@cygnus.com)
6479
6480         * obstack.c:  Merge in comment changes from FSF version.  Now
6481         matches the FSF version exactly.
6482
6483 Fri Aug 28 18:39:08 1992  John Gilmore  (gnu@cygnus.com)
6484
6485         * obstack.c (CALL_FREEFUN):  Can't use ?: with void values (at
6486         least on losing DECstations!); use if-then-else instead.
6487
6488 Wed Aug 19 14:40:34 1992  Ian Lance Taylor  (ian@cygnus.com)
6489
6490         * Makefile.in: always create installation directories.
6491
6492 Mon Aug 10 17:33:40 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
6493
6494        * Makefile.in: clean up definition of CFILES, more comments
6495
6496 Sat Aug  8 23:10:59 1992  Fred Fish  (fnf@cygnus.com)
6497
6498         * getopt.c (my_index):  Make first arg const to match strchr,
6499         which it sometimes is remapped to.
6500
6501 Sat Aug  1 13:48:50 1992  Fred Fish  (fnf@cygnus.com)
6502
6503         * obstack.c (DEFAULT_ALIGNMENT):  Update to match FSF version.
6504         * obstack.c (_obstack_begin):  Initialize use_extra_arg.
6505         * obstack.c (_obstack_begin_1):  New, from FSF version.
6506
6507 Mon Jul 20 21:07:58 1992  Fred Fish  (fnf@cygnus.com)
6508
6509         * obstack.c (CALL_CHECKFUN, CALL_FREEFUN):  Use use_extra_arg and
6510         extra_arg.
6511         * obstack.c (_obstack_begin):  Remove area_id and flags arguments
6512         (previously added for mmalloc support, interface has changed).
6513         Also convert flags usage to use use_extra_arg and maybe_empty_object.
6514
6515 Fri Jul 10 00:41:53 1992  Fred Fish  (fnf@cygnus.com)
6516
6517         * argv.c:  Move expandargv inline and eliminate static variables.
6518         Rewrite to always allocate in powers of two.  Fix to return an
6519         argv with a single null string arg if passed a null string.
6520
6521 Fri Jul  3 20:27:29 1992  Fred Fish  (fnf@cygnus.com)
6522
6523         * random.c, sigsetmask.c, strerror.c, strsignal.c:  Remove
6524         "(void)" casts from function calls where the return value is
6525         ignored, in accordance with GNU coding standards.
6526
6527 Mon Jun 29 10:54:19 1992  Fred Fish  (fnf at cygnus.com)
6528
6529         * bcopy.c, strerror.c, strsignal.c:  Lint.
6530
6531 Thu Jun 25 09:18:41 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
6532
6533         * getopt.c: merge changes from make.
6534
6535 Thu Jun 25 04:43:22 1992  John Gilmore  (gnu at cygnus.com)
6536
6537         * alloca.c:  Incorporate fixes from gdb/alloca.c.
6538         FIXME:  Eventually move gdb's alloca configuration files here,
6539         and remove gdb/alloca.c and its Makefile.in support.
6540
6541 Tue Jun 23 21:56:30 1992  Fred Fish  (fnf@cygnus.com)
6542
6543         * dummy.c:  Define NOTHING to /*nothing*/, change return type
6544         of main to int and return zero.
6545         * functions.def:  Supply NOTHING as the fourth arg to macros
6546         that don't have an explicit arg, to satisfy picky preprocessors.
6547
6548 Wed Jun 17 18:13:58 1992  Per Bothner  (bothner@rtl.cygnus.com)
6549
6550         * Makefile.in:  Clean up *clean rules, as per standards.texi.
6551
6552 Tue Jun 16 16:11:59 1992  K. Richard Pixley  (rich@rtl.cygnus.com)
6553
6554         * getopt.c, getopt1.c: merged largely gratuitous, mostly
6555           whitespace diffs from other prep distributions.
6556
6557 Mon Jun 15 12:25:46 1992  Fred Fish  (fnf@cygnus.com)
6558
6559         * config/mh-ncr3000 (INSTALL):  Don't use /usr/ucb/install,
6560         it is broken on ncr 3000's.
6561
6562 Mon Jun 15 01:03:26 1992  John Gilmore  (gnu at cygnus.com)
6563
6564         * sigsetmask.c:  Rewrite.  Old one was very confused about its
6565         arguments and result.  New one can't do much, but at least knows
6566         what it can't do, and it's good enough for GDB's use.
6567
6568 Sun Jun 14 15:17:40 1992  Stu Grossman  (grossman at cygnus.com)
6569
6570         * functions.def:  Use proper prototype for strtoul.
6571
6572 Fri Jun 12 19:22:40 1992  John Gilmore  (gnu at cygnus.com)
6573
6574         * Makefile.in:  Add random.c.
6575         * config/mh-*:  Use "true" rather than "echo >/dev/null" for ranlib.
6576         * configure.in:  update solaris2 config.
6577
6578 Wed Jun 10 16:31:29 1992  Fred Fish  (fnf@cygnus.com)
6579
6580         * random.c:  Add for random() and srandom().
6581         * functions.def:  Add random
6582
6583 Tue Jun  9 17:27:18 1992  Fred Fish  (fnf@cygnus.com)
6584
6585         * config/{mh-ncr3000, mh-sysv4}:  Add definition for INSTALL
6586         using /usr/ucb/install.
6587
6588 Mon Jun  1 13:20:17 1992  Per Bothner  (bothner@rtl.cygnus.com)
6589
6590         * strerror.c:  Kludge to guard against a conflict with
6591         possible declaration of sys_errlist in errno.h.
6592
6593 Sun May 31 15:07:47 1992  Mark Eichin  (eichin at cygnus.com)
6594
6595         * configure.in, config/mh-solaris: add solaris2 config support.
6596
6597 Fri May 29 17:23:23 1992  Per Bothner  (bothner@rtl.cygnus.com)
6598
6599         * sigsetmask.c:  #ifdef out sigsetmask if SIG_SETMASK
6600         is not defined (should be defined in signal.h, says Posix.).
6601
6602 Mon May 18 17:35:04 1992  K. Richard Pixley  (rich@cygnus.com)
6603
6604         * getopt.c: merged changes from make-3.62.11.
6605
6606 Fri May  8 14:53:07 1992  K. Richard Pixley  (rich@cygnus.com)
6607
6608         * getopt.c: merged changes from bison-1.18.
6609
6610 Tue May  5 11:51:40 1992  Per Bothner  (bothner@rtl.cygnus.com)
6611
6612         * Makefile.in:  Don't have $(EXTRA_OFILES) depend on config.h,
6613         since that introduces a circular dependency.
6614         ($(EXTRA_OFILES) are used to build config.h.)
6615
6616         * strtoul.c:  Fixes to handle non-decimal bases better.
6617
6618 Wed Apr 22 09:27:51 1992  Fred Fish  (fnf@cygnus.com)
6619
6620         * config/mh-ncr3000:  Replace MINUS_G with CFLAGS.
6621         * Makefile.dos:  Finish MINUS_G eradication.
6622         * Makefile.in (CFILES):  Add strsignal.c.
6623         * Makefile.in (REQUIRED_OFILES):  Add strerror.o strsignal.o
6624         * Makefile.in (needed-list):  Split creation of errors file to
6625         separate make target.
6626         * Makefile.in (config.h, needed2.awk, errors):  New targets.
6627         * Makefile.in (clean):  Split to multiple lines, add needed2.awk
6628         and config.h.
6629         * dummy.c (DEFFUNC, DEFVAR):  Add defines and undefs.
6630         * functions.def (strerror):  Remove from optional list.
6631         * functions.def (sys_nerr, sys_errlist, sys_siglist):  DEFVAR's
6632         * functions.def (strerror, psignal):  DEFFUNC's
6633         * strerror.c:  Rewrite from scratch to use sys_errlist only if
6634         available, add errno_max(), add strerrno(), add strtoerrno(),
6635         add test driver.
6636         * strsignal.c:  New file, signal equivalent to strerror.c.
6637         Uses sys_siglist if available, defines signo_max(), strsignal(),
6638         strsigno(), strtosigno(), psignal(), and test driver.
6639
6640 Mon Apr 20 20:49:32 1992  K. Richard Pixley  (rich@cygnus.com)
6641
6642         * Makefile.in: do not print recursion line.
6643
6644         * Makefile.in: allow CFLAGS to be passed in from command line.
6645           Removed MINUS_G.  Default CFLAGS to -g.
6646
6647 Mon Apr 20 12:57:46 1992  Per Bothner  (bothner@rtl.cygnus.com)
6648
6649         * config/mh-aix:  New.  EXTRA_OFILES lists copysign.o,
6650         so libg++ users don't have to be inconvenienced by a
6651         libc.a bug (libc.a needs copysign, but doesn't define it!).
6652         * configure.in:  Use config/mh-aix.
6653         * strtoul.c:  Handle '-' as required by ANSI.
6654         Clean up radix handling.
6655         * strstr.c:  Fix buggy algorithm.
6656         * Makefile.in:  Change so that ${EXTRA_OFILES} is
6657         appended to needed-list (which is used by libg++).
6658
6659 Fri Apr 10 22:51:41 1992  Fred Fish  (fnf@cygnus.com)
6660
6661         * configure.in:  Recognize new ncr3000 config.
6662         * config/mh-ncr3000:  New config file.
6663
6664 Wed Apr  1 23:31:43 1992  John Gilmore  (gnu at cygnus.com)
6665
6666         * argv.c, dummy.c:  Lint.
6667
6668 Tue Mar 31 18:46:44 1992  Fred Fish  (fnf@cygnus.com)
6669
6670         * config/mh-sysv4:  New config file.
6671         * configure.in (host_makefile_frag):  Set to config/mh-sysv4 for
6672         host_os == sysv4.
6673         * getpagesize.c:  For SVR4, use sysconf(_SC_PAGESIZE) to get
6674         pagesize.
6675
6676 Sun Mar 29 12:26:42 1992  John Gilmore  (gnu at cygnus.com)
6677
6678         * getopt.c:  Lint.
6679
6680 Fri Mar 27 08:32:55 1992  Fred Fish  (fnf@cygnus.com)
6681
6682         * functions.def (alloca):  Fix return type and args to avoid
6683         type clash with gcc's builtin alloca.
6684
6685 Tue Mar 24 23:33:42 1992  K. Richard Pixley  (rich@cygnus.com)
6686
6687         * configure.in, config/mh-irix4: irix4 support.
6688
6689         * Makefile.in, functions.def, alloca.c: added alloca.
6690
6691 Tue Mar 24 17:34:46 1992  Stu Grossman  (grossman at cygnus.com)
6692
6693         * obstack.c (CALL_FREEFUN):  Make it compile on DECstations.
6694
6695 Thu Mar 19 13:57:42 1992  Fred Fish  (fnf@cygnus.com)
6696
6697         * argv.c:  Fix various external function definitions to be
6698         correct in an ANSI compilation environment.
6699
6700 Sat Mar 14 17:28:17 1992  Fred Fish  (fnf@cygnus.com)
6701
6702         * obstack.c:  Changes to support calling mmalloc functions,
6703         which take an additional argument over malloc functions.
6704
6705 Fri Mar  6 22:01:10 1992  K. Richard Pixley  (rich@cygnus.com)
6706
6707         * added check target.
6708
6709 Thu Feb 27 22:19:39 1992  Per Bothner  (bothner@cygnus.com)
6710
6711         * argv.c:  #include alloca-conf.h (needed by AIX).
6712
6713 Wed Feb 26 18:04:40 1992  K. Richard Pixley  (rich@cygnus.com)
6714
6715         * Makefile.in, configure.in: removed traces of namesubdir,
6716           -subdirs, $(subdir), $(unsubdir), some rcs triggers.  Forced
6717           copyrights to '92, changed some from Cygnus to FSF.
6718
6719 Sat Feb 22 01:09:21 1992  Stu Grossman  (grossman at cygnus.com)
6720
6721         * argv.c:  Check in Fred's version which fixes problems with
6722         alloca().
6723
6724 Fri Feb  7 21:46:08 1992  Stu Grossman  (grossman at cygnus.com)
6725
6726         * makefile.dos:  Remove NUL to keep patch from failing.
6727
6728 Thu Jan 30 22:48:41 1992  Stu Grossman  (grossman at cygnus.com)
6729
6730         * getopt.c (_getopt_internal):  Fix usage of enum has_arg.
6731
6732 Mon Jan 20 18:53:23 1992  Stu Grossman  (grossman at cygnus.com)
6733
6734         * getopt.c, getopt1.c, ../include/getopt.h:  Get latest versions.
6735
6736 Sat Jan 18 16:53:01 1992  Fred Fish  (fnf at cygnus.com)
6737
6738         * argv.c:  New file to build and destroy standard argument
6739         vectors from a command string.
6740
6741         * Makefile.in:  Add argv.c and argv.o to appropriate macros.
6742
6743 Fri Dec 20 12:12:57 1991  Fred Fish  (fnf at cygnus.com)
6744
6745         * configure.in:  Change svr4 references to sysv4.
6746
6747         * rindex.c:  Declare return type of externally used function
6748         strrchr().
6749
6750 Thu Dec 19 18:35:03 1991  John Gilmore  (gnu at cygnus.com)
6751
6752         * Makefile.in:  Remove "***" in normal output, since Make produces
6753         this on errors, and it's convenient to search for.
6754
6755 Tue Dec 17 23:21:30 1991  Per Bothner  (bothner at cygnus.com)
6756
6757         * memcmp.c, memcpy.c, memmove.c, memset.c, strchr.c, strrchr.c:
6758         New ANSI functions.  The old non-ANSI functions (such as bcopy)
6759         should be avoided.
6760         * bcopy.c:  Fix to correctly handle overlapping regions.
6761         * index.c, rindex.c:  Re-write in terms of strchr() and strrchr().
6762         * functions.def:  Add the new functions.
6763         * functions.def:  Add 4th parameter to DEF macro,
6764         an ansidecl.h-style prototype.
6765         * dummy.c:  Use expanded DEF macro to create a dummy function
6766         call, with correct parameter types.  (This avoids some
6767         complaints from gcc about predefined builtins.)
6768
6769         Move the functionality of config/mh-default into Makefile.in.
6770         This avoid duplication, and simplifies things slightly.
6771         * Makefile.in:  Tweak so we don't need config/mh-default.
6772         * README:  Update.
6773         * configure.in:  No longer need config/mh-default.
6774         * config/mh-default:  Deleted.
6775         * config/mh-sysv:  Remove lines copied from old mh-default.
6776
6777 Tue Dec 17 05:46:46 1991  John Gilmore  (gnu at cygnus.com)
6778
6779         * fdmatch.c (fdmatch):  Don't compare st_rdev, which is for
6780         'mknod' device numbers.
6781
6782 Mon Dec 16 12:25:34 1991  Fred Fish  (fnf at cygnus.com)
6783
6784         * fdmatch.c, Makefile.in:  Add new function that takes two
6785         open file descriptors and returns nonzero if they refer to
6786         the same file, zero otherwise.  (used in gdb)
6787
6788 Wed Dec 11 17:40:39 1991  Steve Chamberlain  (sac at rtl.cygnus.com)
6789         From DJ:
6790         * msdos.c: stub functions for dos.
6791         * makefile.dos, configdj.bat: new.
6792         * getopt.c: Don't include alloca-conf.h in a GO32 world.
6793
6794
6795 Tue Dec 10 04:14:49 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
6796
6797         * Makefile.in: infodir belongs in datadir.
6798
6799 Fri Dec  6 23:26:45 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
6800
6801         * Makefile.in: remove spaces following hyphens because bsd make
6802           can't cope.  added standards.text support.  install using
6803           INSTALL_DATA.
6804
6805         * configure.in: remove commontargets as it is no longer a
6806           recognized hook.
6807
6808 Thu Dec  5 22:46:46 1991  K. Richard Pixley  (rich at rtl.cygnus.com)
6809
6810         * Makefile.in: idestdir and ddestdir go away.  Added copyrights
6811           and shift gpl to v2.  Added ChangeLog if it didn't exist. docdir
6812           and mandir now keyed off datadir by default.
6813
6814 Fri Nov 22 19:15:29 1991  John Gilmore  (gnu at cygnus.com)
6815
6816         * Makefile.in:  find-needed.awk does not fit in 14 chars.
6817
6818         * Makefile.in:  Suppress error checking when compiling the test
6819         program, because Ultrix make/sh aborts there due to a bug.
6820
6821 Fri Nov 22 12:23:17 1991  Per Bothner  (bothner at cygnus.com)
6822
6823         * Makefile.in:  Re-did how EXTRA_OFILES is used to be more useful.
6824         * README:  Explained how the auto-configuration works,
6825         and how to add new files and/or configurations.
6826
6827 Fri Nov 22 09:45:23 1991  John Gilmore  (gnu at cygnus.com)
6828
6829         * strtoul.c:  Avoid defining ULONG_MAX if already defined;
6830         cast a const char * to char * for pedants.
6831
6832         * getopt.c:  Only define "const" after local include files get to,
6833         and only if they haven't defined it.
6834
6835 Thu Nov 21 16:58:53 1991  John Gilmore  (gnu at cygnus.com)
6836
6837         * getcwd.c (remove getwd.c): GNU code should call getcwd().  We
6838         emulate it with getwd() if available.  This avoids callers having
6839         to find a MAXPATHLEN or PATH_MAX value from somewhere.
6840         * Makefile.in, functions.def:  getwd->getcwd.
6841         * configure.in:  Use generic case for every system.
6842         * config/mh-{delta88,mach,rs6000,svr4}:  Remove.
6843         * config/mh-sysv:  Use default handling, just add -DUSG.
6844
6845 Thu Nov 14 10:58:05 1991  Per Bothner  (bothner at cygnus.com)
6846
6847         * Makefile.in, config/mh-default: Re-do make magic
6848         so that for the default ("automatic") mode we only
6849         compile the files we actually need.  Do this using
6850         a recursive make:  The top-level generates the list
6851         of needed files (loosely, the ones missing in libc),
6852         and then passes that list to the recursive make.
6853         * config/mh-mach:  Remove obsolete STRERROR-{C,O} macros.
6854
6855 Tue Nov 12 19:10:57 1991  John Gilmore  (gnu at cygnus.com)
6856
6857         RS/6000 host support (grumble).
6858
6859         * configure.in:  Build alloca-conf.h file from alloca-norm.h
6860         (everything else) or alloca-botch.h (rs/6000).
6861         * Makefile.in:  Include . on the include path.
6862         * getopt.c:  Use alloca-conf.h.
6863         * alloca-norm.h:  How to declare alloca on reasonable machines.
6864         * alloca-botch.h: How to declare alloca on braindead machines.
6865
6866 Tue Nov 12 09:21:48 1991  Fred Fish  (fnf at cygnus.com)
6867
6868         * concat.c :  New file, like concat() in gdb but can take a
6869         variable number of arguments rather than fixed at 3 args.  For
6870         now, client applications must supply an xmalloc(), which is a
6871         front end function to malloc() that deals with out-of-memory
6872         conditions.
6873
6874         * Makefile.in:  Add concat.c and concat.o to appropriate macros.
6875
6876 Sat Nov  9 13:29:59 1991  Fred Fish  (fnf at cygnus.com)
6877
6878         * config/mh-svr4:  Add sigsetmask to list of required functions.
6879
6880 Sun Nov  3 11:57:56 1991  Per Bothner  (bothner at cygnus.com)
6881
6882         * vsprintf.c:  New file.
6883         * functions.def, Makefile.in:  Add vsprintf.
6884
6885 Sun Oct 27 16:31:22 1991  John Gilmore  (gnu at cygnus.com)
6886
6887         * configure.in, config/mh-rs6000:  Add rs/6000 host support.
6888         * Makefile.in:  Compile with debug info.
6889
6890 Fri Oct 25 17:01:12 1991  Per Bothner  (bothner at cygnus.com)
6891
6892         * Makefile.in, configure.in, and new files: dummy.c, functions.def,
6893         config/mf-default:  Added a default configuration mode,
6894         which includes into libiberty.a functions that are "missing" in libc.
6895         * strdup.c, vprintf.c, vfprintf.c: New files.
6896
6897 Thu Oct 24 02:29:26 1991  Fred Fish  (fnf at cygnus.com)
6898
6899         * config/hmake-svr4: New file.
6900
6901         * config/hmake-sysv: Add HOST_CFILES and HOST_OFILES.
6902
6903         * basename.c, bcmp.c, bcopy.c, bzero.c, getpagesize.c getwd.c,
6904         index.c, insque.c, rindex.c, spaces.c, strstr.c, vfork.c: New
6905         files containing either portable C versions or emulations using
6906         native library calls.
6907
6908         * strerror.c:  Add copyright, internal documentation, etc.
6909
6910         * strtol.c:  Replace hardwired hex constants with some more
6911         portable macros.  Remove illegal (according to gcc) cast.
6912
6913         * strtoul.c: Replace hardwired hex constant with more portable
6914         macro.
6915
6916         * Makefile.in: Move TARGETLIB and CFLAGS where makefile fragments
6917         can override them.  Add new source and object file names to CFILES
6918         and OFILES respectively.
6919
6920         * configure.in: Add support for SVR4 makefile fragments.
6921
6922 Tue Oct 22 19:00:23 1991  Steve Chamberlain  (steve at cygnus.com)
6923
6924         * Makefile.in: Move RANLIB, AR and AR_FLAGS to where they can be
6925         over-ridden by config/hmake-*
6926         * configure.in: added m88kcvs to sysv list
6927
6928 Fri Oct  4 01:29:08 1991  John Gilmore  (gnu at cygnus.com)
6929
6930         * Makefile.in:  Most hosts need strerror, but one or two don't,
6931         and they override these definitions in the host-dependent makefile
6932         fragment.
6933         * config/hmake-mach:  The odd man out on strerror -- it's supplied.
6934         * strerror.c:  New file.
6935
6936         * strtol.c, strtoul.c:  Add strtol to libiberty, since Mach lacks
6937         it and bfd uses it.
6938         * configure.in, Makefile.in, config/hmake-mach:  Only configure
6939         strtol & strotoul in on Mach.
6940
6941 Tue Sep  3 06:36:23 1991  John Gilmore  (gnu at cygint.cygnus.com)
6942
6943         * obstack.c:  Merge with latest FSF version.
6944
6945 \f
6946 Local Variables:
6947 version-control: never
6948 End: