Correct ChangeLog entry
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
67f3cb05
GK
12005-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
01e94249
DD
132005-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
839e4798
RH
182005-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
abf6a75b
DD
252005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
26
27 * configure.ac: Check declarations for calloc(), getenv(),
01e94249 28 malloc(), realloc() and sbrk().
abf6a75b
DD
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
01e94249 40 "template" to "template_decl". Adjust use throughout the file.
abf6a75b
DD
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
01e94249 70 malloc().
abf6a75b
DD
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
2349f557
DD
1012005-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
e9edcedc
DD
1092005-05-15 Andreas Jaeger <aj@suse.de>
110
111 * functions.texi: Regenerated.
112
f13c9bea
DD
1132005-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
e9edcedc
DD
119 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
120 braces.
121
282d9ec3
ILT
1222005-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
75919f94
DD
1332005-05-11 Paul Brook <paul@codesourcery.com>
134
135 * Makefile.in: Regenerate dependencies.
136
979c05d3
NC
1372005-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:
75919f94
DD
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
979c05d3 154
0093138c
DD
1552005-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
1612005-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
c631edf1
DD
1682005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
169
170 * fopen_unlocked.c (unlock_std_streams): New.
f13c9bea 171
c631edf1
DD
172 * functions.texi: Regenerate.
173
7b6f6286
DD
1742005-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
fa99459d
DD
1812005-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.
f13c9bea 190 * configure.ac: Do check declarations for basename, ffs, asprintf
fa99459d
DD
191 and vasprintf for real.
192 * configure: Regenerate.
193
ab70e2a5
DD
1942005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
195
f13c9bea 196 * argv.c (dupargv): Allocate space of argv[argc], not
ab70e2a5
DD
197 sizeof(char *) of that amount. Cast result to char *.
198
ea7143ac
DD
1992005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
200
201 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
f13c9bea 202 Replace not with negate.
ea7143ac 203
41c953f9
DD
2042005-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
ac119ae8
DD
2112005-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
6e933b47
DD
2232005-04-04 Ian Lance Taylor <ian@airs.com>
224
225 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
226 declaration before statement.
227
aa55ccb1
DD
2282005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
229
14a88c49
DD
230 * bcmp.c: Fix warnings and implement using memcmp.
231 * bcopy.c: Fix warnings.
232 * bzero.c: Fix warnings and implement using memset.
233
aa55ccb1
DD
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
b31a49d7
ILT
2412005-04-02 Ian Lance Taylor <ian@airs.com>
242
243 * cp-demangle.c: Update copyright.
244
0e867e79
DD
2452005-03-31 Joseph S. Myers <joseph@codesourcery.com>
246
247 * gettimeofday.c: Add "Supplemental" to @deftypefn.
248 * functions.texi: Regenerate.
249
b109e79a
ILT
2502005-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
864e8148 2752005-03-28 Mark Kettenis <kettenis@gnu.org>
f13c9bea 276
864e8148
DD
277 * unlink-if-ordinary.c: Include <sys/types.h>.
278
e064c173
DD
2792005-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.
f13c9bea 284 (init_syntax_once, extract_number, extract_number_and_incr,
e064c173 285 print_fastmap, print_partial_compiled_pattern,
f13c9bea 286 print_compiled_pattern, print_double_string, printchar,
e064c173
DD
287 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
288 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
f13c9bea
DD
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,
e064c173
DD
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,
f13c9bea 296 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
e064c173
DD
297 regexec, regerror, regfree): Use ISO C prototype style.
298 * partition.c: (elem_compare): Likewise.
299 * cp-demangle.c (print_usage): Likewise.
300
1e45deed
DD
3012005-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
f13c9bea 305 prototypes.
1e45deed
DD
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.
f13c9bea 312 * partition.c (partition_new, partition_delete, partition_union)
1e45deed 313 (elem_compare, partition_print): Likewise.
f13c9bea
DD
314 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
315 _obstack_allocated_p, _obstack_free, obstack_free,
1e45deed
DD
316 _obstack_memory_used, print_and_abort, obstack_next_free,
317 obstack_object_size, obstack_base): Likewise. Remove codes
318 predicated on !defined(__STDC__).
f13c9bea 319 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
1e45deed
DD
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.
f13c9bea 329 * sort.c (sort_pointers, xmalloc): Likewise.
1e45deed 330 * spaces.c (spaces): Likewise.
f13c9bea
DD
331 * splay-tree.c (splay_tree_delete_helper,
332 splay_tree_splay_helper, splay_tree_splay,
1e45deed 333 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
f13c9bea 334 splay_tree_new, splay_tree_xmalloc_allocate,
1e45deed 335 splay_tree_new_with_allocator, splay_tree_delete,
f13c9bea
DD
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,
1e45deed
DD
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
49b1fae4
DD
3462005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
347
348 Convert libiberty to use ISO C prototype style 6/n.
f13c9bea 349 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
49b1fae4
DD
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.
f13c9bea 355 * strsignal.c (init_signal_tables, signo_max, strsignal,
49b1fae4
DD
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.
f13c9bea 361 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
49b1fae4
DD
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.
f13c9bea 374 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
49b1fae4
DD
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
3812005-03-27 Andreas Jaeger <aj@suse.de>
382
383 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
384 flags.
385 * configure: Regenerated.
386
3872005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
388
389 * getopt1.c (getopt_long_only): Fix thinko.
390
3912005-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
9334f9c6
DD
4482005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
449
450 Convert libiberty to use ISO C prototype style 3/n.
49b1fae4
DD
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,
9334f9c6 456 ada_demangle, internal_cplus_demangle, squangle_mop_up,
49b1fae4
DD
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,
9334f9c6
DD
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,
49b1fae4 475 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
9334f9c6
DD
476 cplus_demangle_v3_components): Likewise.
477
4782005-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.
49b1fae4
DD
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,
9334f9c6 503 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
49b1fae4 504 print_usage, main):
9334f9c6
DD
505
5062005-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.
49b1fae4 514 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
9334f9c6
DD
515 * atexit.c (atexit): Likewise
516 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
49b1fae4 517 (asprintf): Use ISO C prototype.
9334f9c6
DD
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.
49b1fae4 528 (vconcat_length, vconcat_copy, concat_length, concat_copy,
9334f9c6
DD
529 concat_copy2, concat, reconcat, main): Use ISO C prototype.
530 * copysign.c (copysign): Likewise.
531
0fad4bdb
DD
5322005-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
51e32d64
DD
5452005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
546
547 * xmemdup.c, xstrdup.c: Expose the tail call.
548
8ec32723
DD
5492005-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
27ff8836
ILT
5582005-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
48e39b59
ILT
5672005-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
65dce80e
DD
5772005-03-06 DJ Delorie <dj@redhat.com>
578
579 * configure.ac (target_header_dir): vfork is a stub under djgpp.
580 * configure: Regenerated.
581
190eb137
DD
5822005-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
bac7199c
DD
5892005-03-01 Ben Elliston <bje@au.ibm.com>
590
591 * hashtab.c (htab_find_slot_with_hash): Make function
592 documentation clearer.
593
aca9a742
JM
5942005-02-13 Jason Merrill <jason@redhat.com>
595
596 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
597 arguments.
598
b5c3b3de
DD
5992005-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.
49b1fae4 604
46a10049
DD
6052004-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
fbfdf750
DD
6142004-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
96e00b33
L
6412004-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
40a59a4c
DD
6792004-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
9923bc33
DD
6852004-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
70615d15
DD
6902004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
691
692 * pex-unix.c: Fix the spelling of longjmp.
693
eb129e35
DD
6942004-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
3e0f1404
DD
7032004-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
6cfb3176
DD
7092004-11-12 Mike Stump <mrs@apple.com>
710
711 * Makefile.in (libiberty.html): Fix html generation.
712
f9b4e353
DD
7132004-09-08 Adam Nemet <anemet@lnxw.com>
714
715 * vasprintf.c: Accept __va_copy in addition to va_copy.
716
49b1fae4 7172004-09-03 Paolo Bonzini <bonzini@gnu.org>
c7efc4d5
PB
718
719 * configure: Regenerate.
720
49b1fae4 7212004-09-02 Paolo Bonzini <bonzini@gnu.org>
f5396bbe
PB
722
723 * configure.ac: Do not enable multilibs for build-side libiberty.
724
49b1fae4 7252004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
950ad202
DD
726
727 * lrealpath.c (lrealpath): Add _WIN32 support.
728
a21da8bf
DD
7292004-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
7352004-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
9f7d3e7d
DD
7422004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
743
744 * pex-win32.c (fix_argv): Expand comment.
745
0cb2db3a
DD
7462004-05-25 Daniel Jacobowitz <drow@false.org>
747
748 * Makefile.in: Add .NOEXPORT.
749
25319993
DD
7502004-04-29 Douglas B Rupp <rupp@gnat.com>
751
752 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
753 copyright.
754
7e9f5c71
DD
7552004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
756
757 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
758 * configure: Regenerate.
759
bb6a587d
DD
7602004-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
53239e41
DD
7742004-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
d6ea4e80
DD
7792004-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
fe046a17
DD
7842004-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
e0c148a7
DD
7962004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
797
12a7367e
DD
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
e0c148a7
DD
802 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
803 an 80 column screen. Run maint-deps.
804
85f969cd
DD
8052004-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
58670637
DD
8122004-03-09 Hans-Peter Nilsson <hp@axis.com>
813
814 * configure: Regenerate for config/accross.m4 correction.
815
758d77be
DD
8162004-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
74aee4eb
DD
8222004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
823
2d733211
DD
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
099f84cf
DD
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
74aee4eb
DD
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
8552004-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
f9375305
DD
8692004-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
cbf0ee79
DD
8752004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
876
877 * configure.ac: Add m4_pattern_allow(LIBOBJS).
878 * configure: Regenerate.
879
37254c9a
DD
8802004-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
211333f6
DD
8892004-01-15 Kazu Hirata <kazu@cs.umass.edu>
890
891 * strdup.c (strdup): Constify the argument.
892
3795d586
DD
8932004-01-14 Loren J. Rittle <ljrittle@acm.org>
894
895 * Makefile.in (distclean): Remove config.cache.
896
2d6520ee
DJ
8972004-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
59727473
DD
9032004-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
1a79b024
DD
9492004-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
820542c9
DD
9572004-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
2f9c4058
DD
9702003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
971
972 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
973
4fd47f10
DJ
9742003-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
b6fb00c0
DD
9812003-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
2730f651
DD
10292003-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
d4edd112
DD
10352003-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
d35d0cd4
DD
10562003-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
09e9708c
DD
10672003-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
97ceaf5b
DD
10722003-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
858b45cf
DD
10882003-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
b52927b7
DD
11382003-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
24afc00d
DD
11502003-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
331c3da2
DD
11602003-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
51948b34
DD
11862003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
1187
1188 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
1189 d_demangle.
1190
6d95373e
DD
11912003-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
54a962d9
DD
11992003-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
8fe0d347
DD
12052003-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
dd9d4b48
DD
12132003-11-19 Mark Mitchell <mark@codesourcery.com>
1214
1215 * cp-demangle.c (demangle_type): Correct thinko in substitution
1216 processing.
1217
0976f6a7
DD
12182003-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
e7e6980b
DD
12342003-10-31 Andreas Jaeger <aj@suse.de>
1235
1236 * floatformat.c (floatformat_always_valid): Add unused attribute.
1237
97ceaf5b
DD
12382003-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
686e72d7
DD
12452003-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
eec65ede
JB
12502003-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
cd275bff
L
12562003-10-16 H.J. Lu <hongjiu.lu@intel.com>
1257
1258 * testsuite/demangle-expected: Update the expected output of
1259 _GLOBAL__I__Z2fnv.
1260
e3b1168e
DJ
12612003-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
efb150d5
DJ
12662003-10-01 Daniel Jacobowitz <drow@mvista.com>
1267
1268 * strerror.c: Don't provide or reference sys_errlist if
1269 strerror is available.
1270
b7ca9213
L
12712003-10-01 H.J. Lu <hongjiu.lu@intel.com>
1272
1273 * configure.in: Check if $MAKEINFO is missing.
1274 * configure: Regenerated.
1275
8ddbb593
DJ
12762003-09-24 Daniel Jacobowitz <drow@mvista.com>
1277
1278 * configure.in: Use AC_PROG_CPP_WERROR.
1279 * configure: Regenerated.
1280
5324d185
AC
12812003-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
34f4a113
AC
13052003-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
3f2aacaf
DJ
13122003-09-15 Daniel Jacobowitz <drow@mvista.com>
1313
1314 * floatformat.c (floatformat_is_valid): New function.
1315 (get_field, put_field): Correct comments.
1316
aae66b9f
DD
13172003-09-06 Josef Zlomek <zlomekj@suse.cz>
1318
1319 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
1320 FIBHEAPKEY_T.
1321
60b04ee8
DD
13222003-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
2299a76d
DJ
13282003-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
9ad1aa29
DD
13392003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
1340
a21da8bf 1341 * cp-demangle.c: Clarify what package(s) this is part of.
9ad1aa29 1342
dbb9d0f3
DD
13432003-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
13502003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
ab8c7bb1
DD
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
78c5b0a5
L
13562003-06-26 H.J. Lu <hongjiu.lu@intel.com>
1357
1358 * testsuite/demangle-expected: Add more GNU V3 testcases.
1359
70ecf948
DD
13602003-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
cbc0188b
DD
13682003-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
5f73c378
DD
13732003-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
e69f6c8c 13822003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
cbc0188b 1383
e69f6c8c
DD
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.
cbc0188b 1390
54c60684
DD
13912003-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
5a4e47bd
NC
13962003-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
916f5d13
DD
14042003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
1405
1406 * config.table: Accept i[345867]86 variant.
1407
e4f79046
JB
14082003-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
0f3538e7
DD
14172003-05-07 Josef Zlomek <zlomekj@suse.cz>
1418
1419 * splay-tree.c (splay_tree_predecessor): Fix comment.
1420 (splay_tree_successor): Fix comment.
1421
7108c5dc
JM
14222003-05-07 Jason Merrill <jason@redhat.com>
1423
eafaf5eb 1424 * hashtab.c (iterative_hash): New fn.
7108c5dc
JM
1425 * configure.in: Add AC_C_BIGENDIAN_CROSS.
1426 * aclocal.m4: Include accross.m4.
1427 * configure, config.in: Regenerate.
1428
0b555173
DD
14292003-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
8730135a
DD
14342003-05-03 Carlo Wood <carlo@alinoe.com>
1435
1436 * cp-demangle.c: Fix typo in "char_traints" string-literal.
1437
341eccbc
DD
14382003-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
2ed1e5cc
DD
14432003-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
10b57b38
DD
14542003-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
ff773b85
DD
14652003-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>.
cbc0188b 1484
ff773b85
DD
1485 * Makefile.in: Regenerate dependencies.
1486
bb325820
DD
14872003-04-15 DJ Delorie <dj@redhat.com>
1488
1489 * maint-tool (deps): Scan for headers in $srcdir also.
1490
258a4893
DD
14912003-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
ff773b85
DD
15002003-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
eec539c7
DD
15192003-04-14 Roger Sayle <roger@eyesopen.com>
1520
1521 * strdup.c (strdup): Tweak implementation to use memcpy.
1522
daf7c4ad
DD
15232003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1524
1525 * configure.in (HAVE_UINTPTR_T): Always define.
1526 * configure: Regenerated.
1527
aa072e59
AO
15282003-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
f77ed96c
DD
15342003-17-03 Jan Hubicka <jh@suse.cz>
1535
1536 * hashtab.c (htab_traverse_noresize): Break out from ...
1537 * hashtab.c (htab_traverse): ... here.
1538
2336e177
DD
15392003-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
d8cbbf95
DD
15472003-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
a01fefeb
DD
15532003-03-03 Mark Mitchell <mark@codesourcery.com>
1554
1555 * cplus-dem.c: Add license exception to copyright notice.
1556
638ceb1a
DD
15572003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1558
1559 * physmem.c: Formatting changes from upstream.
1560
ef803806
DD
15612003-02-24 Danny Smith <dannysmith@users.source.forge.net>
1562
1563 * physmem.c (physmem_total): Add _WIN32 support.
1564 (physmem_available): Likewise.
1565
181fa229
DD
15662003-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
cc529274
DD
15722003-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
15792003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1580 Richard Earnshaw <rearnsha@arm.com>
1581 Geoffrey Keating <geoffk@apple.com>
cbc0188b 1582
cc529274
DD
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
192cbe66
DD
15872003-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
ff773b85
DD
15992003-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
900d2082
DD
16062003-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.
cbc0188b 1611
4938384a
DD
16122003-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
ba61a412
DJ
16222003-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
25dfe0ac
DD
16382003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1639
1640 * cplus_dem.c: Fix typo: intializes -> initializes.
1641
8b90eef4
AO
16422003-02-20 Alexandre Oliva <aoliva@redhat.com>
1643
1644 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
1645 config.status.
1646 * configure: Rebuilt.
1647
fcd7c7c9
DD
16482003-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
073c427b
DD
16642003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1665
1666 * acconfig.h: New file. Add uintptr_t.
1667 * config.in: Regenerated.
1668
f8bd3000
DD
16692003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
1670
1671 * libiberty.texi: Update to GFDL 1.2.
1672
85b9a938
DD
16732003-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
578460f2
AO
16802003-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
7f285245
AO
16882003-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
5f9624e3
DJ
16932003-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
9c2259b8
DD
16992003-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
5a17353c
DD
17062003-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
eed2b28c
DD
17272003-01-20 Josef Zlomek <zlomekj@suse.cz>
1728
1729 * hashtab.c (htab_expand): Fix allocation of new entries.
1730
27a39a5f
DD
17312003-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
b51c1553
DD
17382002-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
756954c3
DD
17432002-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
2a80c0a4
DD
17482002-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
768b20d8
JJ
17542002-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
f52d1d64
JJ
17592002-10-16 Jakub Jelinek <jakub@redhat.com>
1760
1761 * config.table: Use mh-s390pic for s390x too.
1762
0d3deb8d
DD
17632002-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
1b67de92
DD
17692002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1770
1771 * Makefile.in (all): Fix multilib parallel build.
1772
585cc78f
DD
17732002-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
e21b0cc1
NC
17912002-09-19 Nick Clifton <nickc@redhat.com>
1792
1793 * README: Update email addresses for bugs and patches.
1794
a54ba43f
DD
17952002-09-10 Mike Stump <mrs@apple.com>
1796
1797 * splay-tree.c (splay_tree_successor): Fix comments.
1798
17992002-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
01cea699
DD
18082002-09-05 Roger Sayle <roger@eyesopen.com>
1809
1810 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
1811
a2832523
DD
18122002-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
1e3f0be0
DD
18202002-07-29 Neil Booth <neil@daikokuya.co.uk>
1821
1822 * cplus-dem.c (PREPEND_BLANK): Remove.
1823
b851d07b
DD
18242002-07-10 Jason Merrill <jason@redhat.com>
1825
1826 * cp-demangle.c (demangle_identifier): Support extended Unicode
1827 characters.
1828
2a9dffbf
DD
18292002-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
793011ca
DD
18342002-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
b39b76b8
DD
18402002-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
4748c6d8
DD
18452002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
1846
1847 * Makefile.in (install_to_libdir): Add $(DESTDIR).
1848 (install_to_tooldir): Likewise.
1849
f9c3326a
DD
18502002-06-17 Douglas Rupp <rupp@gnat.com>
1851
1852 * lbasename.c: Add 2002 to copyright.
1853 (IS_DIR_SEPARATOR): Remove VMS junk.
1854
18893690
DD
18552002-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
18612002-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
18692002-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
9296c8b2
DD
18742002-05-13 Andreas Schwab <schwab@suse.de>
1875
1876 * config.table: Use mh-x86pic also for x86-64.
1877
52d98c2d
DD
18782002-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
cafa3917
DD
18842002-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
b1c933fc
RH
18912002-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
0c4460bb
DD
18972002-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
f2160d2b
DD
19042002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1905
3ebf1f59 1906 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
1907 if it is NULL.
1908
7dd4d42a
DD
19092002-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
38e57a35
DD
19162002-03-27 Mark Mitchell <mark@codesourcery.com>
1917
1918 * dyn-string.c: Add libgcc exception to copyright notice.
1919
cfed0715
DD
19202002-03-26 H.J. Lu (hjl@gnu.org)
1921
1922 * config.table: Support --with-build-subdir.
1923 * configure.in: Likewise.
1924 * configure: Rebuild.
1925
1504972f
DD
19262002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
1927
1928 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
1929 seen.
1930
35efcd67
DD
19312002-03-12 Mark Mitchell <mark@codesourcery.com>
1932
1933 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
1934 notice.
1935
dabc64ea
DD
19362002-03-11 Douglas B Rupp <rupp@gnat.com>
1937
1938 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
1939
3ddbd84c
JB
19402002-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
efdab807
AC
19462002-03-06 Andrew Cagney <ac131313@redhat.com>
1947
1948 * floatformat.c (floatformat_arm_ext_big): Delete definition.
1949
50d4562d
DD
19502002-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
19572002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
1958
1959 * xmalloc.c (xmalloc_fail): Clarify error message further.
1960
6e9980f5
DD
19612002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
1962
1963 * xmalloc.c (xmalloc_fail): Clarify error message.
1964
18893690 19652002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
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
59ea9fe7
DD
19762002-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
6f848550
DD
19842002-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
44354ae1
DD
19952002-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
42da15d6
DD
20042002-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
b117c158
DD
20222002-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
c78d91b1
DD
20272002-01-31 Phil Edwards <pme@gcc.gnu.org>
2028
2029 * cp-demangle.c: Revert yesterday's change.
2030
bef8b55d
DD
20312002-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
2c955b8b
DD
20362002-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
58b1717a
RH
20432002-01-22 Momchil Velikov <velco@fadata.bg>
2044
2045 * configure.in (variable detection): Use arrays of unspecified
2046 size instead of plain integers.
2047
cc096b71
DD
20482002-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
20672002-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
20d54542
DD
20722002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2073
c23795e2
DD
2074 * cp-demangle.c (long_options): Const-ify.
2075 * cplus-dem.c (long_options): Likewise.
2076
20d54542
DD
2077 * cplus-dem.c (mystrstr): Delete. All callers changed to use
2078 strstr instead.
2079
f348a7b1
DD
20802001-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
d86cd745
DD
20852001-12-24 Douglas B. Rupp <rupp@gnat.com>
2086
2087 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
2088 * configure: Regenerated.
2089
ae533646
DD
20902001-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
c0eb281b
DD
2096Tue 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
2da4c07f
RH
21012001-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
24acd898
DD
21062001-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
fec50157 21142001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 2115 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
2116
2117 * Makefile.in (stamp-h): Depend on Makefile for proper
2118 serialization.
2119 (*-subdir): Depend on config.h for proper serialization.
2120
5527febf
DD
21212001-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
941d74a0
DD
21272001-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
dc579051
DD
2133Thu 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
1a78a35a
DD
21452001-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
4e55c4b6
DD
21532001-11-03 Alan Modra <amodra@bigpond.net.au>
2154
2155 * configure.in: Cope with missing makeinfo.
2156 * configure: Regenerate.
2157
d311a83a
DD
21582001-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
3bc62f91
DD
21652001-10-19 H.J. Lu <hjl@gnu.org>
2166
2167 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
2168 necessary.
2169
5d852400
DD
21702001-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,
5527febf 2174 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
2175 Improve manual formatting.
2176 * functions.texi: Regenerate.
2177
ba19b94f
DD
21782001-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
56056af5
DD
21912001-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
99b58139
DD
21972001-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
e6450fe5
DD
22072001-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
da191b5b
DD
22202001-09-29 DJ Delorie <dj@redhat.com>
2221
2222 * configure: Regenerate.
2223
916aaa12
DD
22242001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2225
2226 * concat.c: Include stdlib.h.
2227
fa9f0e33
DD
22282001-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
22462001-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
39423523
DD
22522001-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
66c94e19
DD
22772001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2278
2279 * concat.c (reconcat): Fix for traditional C.
2280
99ee3a8f
DD
22812001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2282
2283 * concat.c (reconcat): New function.
2284
54c20242
DD
22852001-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
843f21be
DD
22942001-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
8a423cb3
DD
23032001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2304
2305 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
2306
dc676635
DD
23072001-08-23 Ulrich Drepper <drepper@redhat.com>
2308
2309 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
2310
23112001-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
f080c76d
DD
23182001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2319
3ebf1f59
DD
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.
f080c76d 2324
f01b59ed
DD
23252001-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
2331Tue 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
eb828599
AC
23372001-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
4e55c4b6
DD
23462001-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
68a41de7
DD
23542001-08-17 Christopher Faylor <cgf@cygnus.com>
2355
2356 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
2357 * configure: Regenerate.
2358
8fc34799
DD
23592001-08-16 Richard Henderson <rth@redhat.com>
2360
2361 * hashtab.c (htab_hash_string): New.
2362
16bad250
AC
23632001-08-13 Andrew Cagney <ac131313@redhat.com>
2364
2365 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
2366 name.
2367
a9022147
DD
23682001-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
8aefe91a 23742001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
2375
2376 * lbasename.c (lbasename): Change function definition to return a
2377 const char pointer.
2378
e7e9b069
DD
23792001-08-07 Jason Merrill <jason_merrill@redhat.com>
2380
2381 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
2382 for".
2383
cc5144f8
DD
23842001-08-03 Richard Henderson <rth@redhat.com>
2385
2386 * Makefile.in (concat.o): Depend on config.h.
2387
8aefe91a
DD
23882001-07-30 Andreas Jaeger <aj@suse.de>
2389
2390 * concat.c: Include "config.h".
2391
86710ce2
DD
23922001-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
23982001-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
24032001-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
a5d8f731
DD
24092001-07-25 Daniel Jacobowitz <drow@mvista.com>
2410
2411 * Makefile.in (regex.o): Add dependency on config.h.
2412
6ad8a379
DD
24132001-07-18 Andreas Schwab <schwab@suse.de>
2414
2415 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
2416 underscore character.
2417
24182001-07-18 Ulrich Drepper <drepper@redhat.com>
2419
2420 * regex.c: Limit string length printed in debug messages to 100
2421 chars.
2422
24232001-07-18 Andreas Jaeger <aj@suse.de>
2424
2425 * regex.c: Place under LGPL version 2.1.
2426
2a6ef469
DD
24272001-07-10 Jeff Johnston <jjohnstn@redhat.com>
2428
2429 * Makefile.in: Add support for regex code.
2430 * regex.c: New file.
2431
7b78baae
DD
24322001-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
926150e2
DD
24382001-06-18 Richard Henderson <rth@redhat.com>
2439
2440 * concat.c: Include <sys/types.h>.
2441
11f6f21d
DD
24422001-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
d42dae6c
DD
24482001-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
e05c6d27
DD
24532001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2454
2455 * partition.c: Fix misspelling of `implementation'.
2456
b50c4073
DD
24572001-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
457161bf
DD
24622001-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
e00bc6a7
DD
24702001-05-07 Mark Mitchell <mark@codesourcery.com>
2471
2472 * splay-tree.h (splay_tree_max): New function.
2473 (splay_tree_min): Likewise.
2474
400ee7e1
DB
24752001-04-15 Daniel Berlin <dan@cgsoftware.com>
2476
2477 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
2478
2479 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 2480
d9697354
DD
24812001-04-03 Zack Weinberg <zackw@stanford.edu>
2482
2483 * make-temp-file.c (try): Inline.
2484
a7bf099b
DD
24852001-02-28 Richard Henderson <rth@redhat.com>
2486
2487 * Makefile.in (make-temp-file.o): Depend on config.h.
2488
30a1def2
DD
24892001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2490
2491 * memchr.c (memchr): Adjust condition to avoid infinite loop.
2492
079c672a
DD
24932001-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
a88e356a
JB
24982001-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
1dffcc66
DD
25042001-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
25102001-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
e61231f1
JB
25192001-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
a9cbbe6d
DD
25292001-03-20 Jason Merrill <jason@redhat.com>
2530
2531 * cplus-dem.c (main): Skip initial $.
2532
b1e51b3c
DD
25332001-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
8aa30e60 25382001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 2539 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 2540
8aa30e60
DD
2541 * libiberty/lbasename.c: New file.
2542 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 2543
30673bf5
DD
25442001-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.
fa03f0a7 2552
30673bf5
DD
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.
fa03f0a7 2562
5810f394
DD
25632001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2564
2565 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 2566
a9db032a
DD
25672001-02-16 Loren J. Rittle <ljrittle@acm.org>
2568
2569 * cplus-dem.c (main): Initialize style.
fa03f0a7 2570
8aefe91a
DD
25712001-02-02 Phil Edwards <pme@sources.redhat.com>
2572
2573 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
2574
bc9bf259
DD
25752001-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.
fa03f0a7 2596
f6528837
DD
25972000-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.
9d969b59 2605
c6da642e
DD
26062000-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
ae7d06ad 26132000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
2614
2615 * safe-ctype.c: #include "ansidecl.h".
2616 * strtod.c: Likewise.
2617
ae7d06ad 26182000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
2619
2620 * strtoul.c: Include safe-ctype.h, not ctype.h.
2621
ac424eb3
DD
26222000-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
4415a860
DD
26342000-12-07 Mike Stump <mrs@wrs.com>
2635
2636 * Makefile.in (distclean): When cleaning, remove testsuite.
2637
849ee224
DD
26382000-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
ae7d06ad 26432000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
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.
ae7d06ad 2649 (main): Use standard symbol chars for auto_demangling.
e49a569c 2650
ae7d06ad 26512000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
2652
2653 * hashtab.c (higher_prime_number): Use a table, rather than a
2654 seive, to find the next prime.
ae7d06ad
NC
2655
26562000-11-22 H.J. Lu <hjl@gnu.org>
2657
2658 * cplus-dem.c (main): Handle gnat_demangling.
2659
26602000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
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.
ae7d06ad 2670
2ea7befd
DD
2671 * xmalloc.c (xmalloc_failed): New function, does error
2672 reporting on failed allocation.
2673 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 2674
f1775526
HPN
26752000-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
26832000-11-21 H.J. Lu <hjl@gnu.org>
2684
2685 * cplus-dem.c (main): Handle java_demangling.
2686
ae7d06ad 26872000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
2688
2689 * cplus-dem.c (grow_vect): Prototype.
2690 (ada_demangle): Cast the arg of ctype macros to unsigned char.
2691
5dd42ef4
HPN
26922000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
2693
2694 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
2695 parameter `option'.
2696
296731c1
DD
26972000-11-15 Kenneth Block <kenneth.block@compaq.com>
2698
8944fb9d 2699 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
2700 be used in GCC.
2701
6e53a714 27022000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 2703
5dd42ef4 2704 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
2705 list.
2706
99a4c1bd
HPN
27072000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
2708
2709 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
2710 xcalloc depending on htab->return_allocation_failure. Return zero
2711 if calloc fails.
99a4c1bd
HPN
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.
8aefe91a 2715 Update comment to cover this.
99a4c1bd 2716
e0f3df8f
HPN
27172000-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
ae7d06ad 27232000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
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.
ae7d06ad 2729 Rename throughout.
59666b35
DD
2730 (result_append): Rename to...
2731 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 2732 throughout.
59666b35
DD
2733 (result_append_char): Rename to...
2734 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 2735 throughout.
59666b35
DD
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.
ae7d06ad 2747 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
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
ae7d06ad
NC
2751 call to demangle_array_type.
2752 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 2753
ae7d06ad 27542000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
2755
2756 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
2757
27582000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
2759
2760 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
2761
27622000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2763
2764 * splay-tree.c: #include <stdio.h>.
2765
27662000-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
27722000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
2773
2774 * splay-tree.c (splay_tree_predecessor): New function.
2775 (splay_tree_successor): Likewise.
ae7d06ad
NC
2776
27772000-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
27842000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2785
2786 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
2787
27882000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2789
2790 * md5.c: #include "ansidecl.h".
2791
27922000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2793
2794 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
2795 (demangle_type): Handle substitution candidates correctly in the
2796 face of special substitutions.
ae7d06ad
NC
2797
27982000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
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.
ae7d06ad
NC
2813
28142000-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
28192000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2820
2821 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
2822 <expression>.
ae7d06ad
NC
2823
28242000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2825
2826 * cp-demangle.c (demangle_type_ptr): Increment position past
2827 pointer and reference characters.
ae7d06ad
NC
2828
28292000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
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.
ae7d06ad
NC
2836
28372000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
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.
ae7d06ad
NC
2868
28692000-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
28752000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
2876
2877 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
2878
28792000-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
28852000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
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.
ae7d06ad
NC
2894
28952000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
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.
ae7d06ad
NC
2912
29132000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
2914
2915 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
2916
29172000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
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.
ae7d06ad
NC
2922
29232000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
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.
d3e85005 2934
ae7d06ad 29352000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 2936
ae7d06ad 2937 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 2938
ae7d06ad 29392000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
2940
2941 * config/mh-openedition.h: Added -DLE370 definition.
2942
a9f34fb6
JL
29432000-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
90aaccd1 29522000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 2953 Jeff Law <law@cygnus.com>
90aaccd1 2954
ae7d06ad 2955 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 2956
90aaccd1 2957 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
2958 * rename.c: Include config.h, unistd.h
2959 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 2960
6ef554e3
HPN
29612000-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
ae7d06ad 29752000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 2976
ae7d06ad 2977 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
2978 if (AUTO_DEMANGLING || GNU_DEMANGLING)
2979
ae7d06ad
NC
29802000-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
b1233257 29862000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
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.
b1233257 3000
7d3ffcaf
JL
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
b1233257
JL
3006 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
3007
ae7d06ad
NC
30082000-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
30132000-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
9adf30b2
JL
30322000-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
2ed78d1b
HPN
30372000-07-17 Hans-Peter Nilsson <hp@axis.com>
3038
3039 * testsuite/regress-demangle (failed test): Show result and
3040 expected output.
3041
0473bdf7
AH
30422000-07-07 Andrew Haley <aph@cygnus.com>
3043
3044 * cplus-dem.c (main): fflush() after emitting last char before
3045 waiting for input.
3046
03d5f569
JM
30472000-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.
ae7d06ad 3056
03d5f569
JM
30572000-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
30622000-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.
ae7d06ad 3114
eb383413 31152000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 3116
eb383413
L
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>.
9cc28cc8 3121
eb383413
L
3122Thu 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
3126Thu 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
31342000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3135
3136 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 3137
eb383413
L
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'.
ae7d06ad 3156
eb383413
L
31572000-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
31672000-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
31772000-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.
ae7d06ad 3194
f03aa80d
AC
3195Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
3196
3197 * floatformat.c: Add name to each floatformat field.
3198
77bfb694
JL
3199Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
3200
3201 * Makefile.in (objalloc.o): Depend on config.h
3202
5c82d20a
ZW
32032000-05-29 Zack Weinberg <zack@wolery.cumb.org>
3204
eb383413 3205 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
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
eb383413
L
32152000-05-23 Mike Stump <mrs@wrs.com>
3216
3217 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 3218 -j3.
eb383413
L
3219
32202000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3221
3222 * xmalloc.c: Include config.h for HAVE_SBRK definition.
3223
32242000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
3225
ae7d06ad 3226 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
3227 probably zero, also eliminate a warning on alpha.
3228
32292000-05-15 David Edelsohn <edelsohn@gnu.org>
3230
3231 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
3232 on $(enable_shared).
3233
32342000-05-10 Jakub Jelinek <jakub@redhat.com>
3235
3236 * config.table: Use mh-sparcpic for sparc*-*-*.
3237
32382000-05-08 Nick Clifton <nickc@cygnus.com>
3239
3240 * Makefile.in (CFILES): Add strncmp.c.
3241 (NEEDED): Add strncmp.
3242
32432000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 3244
eb383413
L
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
3249Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
3250
3251 * sort.c (UCHAR_MAX): Provide fallback definition.
3252
32532000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
3254
3255 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
3256 SUBDIRS.
3257
eb383413
L
32582000-04-28 Kenneth Block <block@zk3.dec.com>
3259 Jason Merrill <jason@casey.cygnus.com>
3260
ae7d06ad
NC
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.
eb383413
L
3264
32652000-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
3274Thu 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
32792000-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
32852000-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
32922000-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
19be4303
JL
33012000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3302
3303 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
3304 4.3BSD systems.
3305
eb383413
L
3306Tue 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
33122000-04-16 Dave Pitts <dpitts@cozx.com>
3313
3314 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 3315
afe36a78
RH
33162000-04-05 Richard Henderson <rth@cygnus.com>
3317
3318 * splay-tree.c (splay_tree_remove): New.
3319
eb383413
L
33202000-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.
ae7d06ad 3326
eb383413
L
33272000-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
b4fe2683
JM
3334Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
3335
3336 * Makefile.in (partition.o): Depend on config.h
3337
33382000-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
33492000-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.
ae7d06ad 3355
b4fe2683
JM
33562000-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
33622000-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
08372f14
ILT
33801999-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
9c8ac5a9
ILT
33891999-07-21 Ian Lance Taylor <ian@zembu.com>
3390
3391 From Mark Elbrecht:
3392 * makefile.dos: Remove; obsolete.
8f36e47c 3393 * configure.bat: Remove; obsolete.
9c8ac5a9 3394
0c0a36a4
ILT
33951999-07-11 Ian Lance Taylor <ian@zembu.com>
3396
3397 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3398 warning.
3399
34002000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3401
3402 * pexecute.c: Conditionally include string.h.
b4fe2683 3403 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
3404
34052000-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
34121999-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
34171999-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
3424Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
3425
3426 * hashtab.c (sys/types.h): File included.
3427
34281999-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
3435Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
3436
3437 * hashtab.c: Include stdio.h.
3438
3439Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
3440
3441 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
3442
3443Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
3444
3445 * xstrdup (sys/types.h): Include this file.
3446
34471999-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
34541999-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
34601999-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
34691999-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.
b4fe2683 3482
0c0a36a4
ILT
34831999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3484
3485 * calloc.c: Add a public domain notice.
3486
3487Mon 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
3491Fri 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
3498Wed 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
35061999-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
3511Sun 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
35151999-10-02 Mark Mitchell <mark@codesourcery.com>
3516
3517 * xmalloc.c (xmalloc): Fix spelling error.
3518 (xcalloc, xrealloc): Likewise.
3519
35201999-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
35291999-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
3534Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3535
3536 * xmemdup.c: Include sys/types.h.
3537
35381999-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
3543Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
3544
b4fe2683 3545 * config.table: Add openedition target.
0c0a36a4
ILT
3546 * config/mh-openedition: New file.
3547
3548Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
3549
3550 * pexecute.c (pexecute): Fill in temp_base when needed.
3551
35521999-08-31 Richard Henderson <rth@cygnus.com>
3553
3554 * getpwd.c: Check HAVE_GETCWD before defining it away.
3555
35561999-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
35671999-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
b4fe2683 3574 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
3575 (main): Constify variable `valid_symbols'.
3576
3577Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
3578
3579 * strtoul.c (strtoul): Add parentheses around && within ||.
3580
3581Fri 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
35861999-08-01 Mark Mitchell <mark@codesourcery.com>
3587
3588 * splay-tree.c (splay_tree_insert): Return the new node.
3589
35ca97ea
RH
35901999-07-14 Richard Henderson <rth@cygnus.com>
3591
b4fe2683 3592 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
3593 prototyping directly.
3594 * choose-temp.c: Conditionally include string.h.
3595
0c0a36a4
ILT
35961999-07-12 Jason Merrill <jason@yorick.cygnus.com>
3597
3598 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
3599
af32ff69
ILT
36001999-07-11 Ian Lance Taylor <ian@zembu.com>
3601
3602 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3603 warning.
3604
0c0a36a4
ILT
36051999-07-07 Jason Merrill <jason@yorick.cygnus.com>
3606
3607 * Makefile.in (needed-list): Only include stuff we actually need
3608 for libstdc++.
3609
36101999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3611
3612 * configure.in (checkfuncs): Add gettimeofday.
3613 * config.in, configure: Regenerated.
3614
3615Mon 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
36211999-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
36261999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3627
3628 * putenv.c: Include ansidecl.h to define `const'.
3629 * setenv.c: Likewise.
3630
3631Wed 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
3642Mon 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
36481999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3649
3650 * tmpnam.c (L_tmpnam): Fix typo.
3651
3652Thu 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
e9868447
JB
36611999-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
33fbbfbc
RH
3667Thu 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
0c0a36a4
ILT
3674Mon 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
3679Sun 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
252b5132
RH
36831999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
3684
3685 Fix from Dale Hawkins:
b4fe2683 3686 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
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
c1687039
ILT
3692Thu 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
0c0a36a4
ILT
36991999-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
3705Sun 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
252b5132
RH
37121999-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
0c0a36a4
ILT
37231999-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
252b5132
RH
37291999-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
0c0a36a4
ILT
37381999-04-05 Tom Tromey <tromey@cygnus.com>
3739
3740 * testsuite/regress-demangle: New file.
3741 * testsuite/demangle-expected: New file.
252b5132 3742
0c0a36a4
ILT
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.
252b5132
RH
3754
37551999-04-02 Mark Mitchell <mark@codesourcery.com>
3756
3757 * splay-tree.h (splay_tree_compare_pointers): Define.
3758
37591999-03-30 Mark Mitchell <mark@codesourcery.com>
3760
3761 * splay-tree.c (splay_tree_compare_ints): Define.
3762
37631999-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
37711999-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.
b4fe2683 3777
252b5132
RH
3778Thu 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
3793Thu 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
3797Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
3798
3799 * config.table: Check cygwin*, not cygwin32*.
3800
3801Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
3802
3803 * Makefile.in: Change mkstemp -> mkstemps.
3804
3805Tue 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.
b4fe2683 3811
252b5132
RH
3812Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
3813
b4fe2683 3814 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
3815 platforms that don't have HZ.
3816 * getruntime.c (HZ): Likewise.
3817
3818Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
3819
3820 * Makefile.in (xstrdup.o): Depend on config.h.
3821
3822Wed 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
3827Wed 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
3831Tue 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
38361999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
3837
3838 * configure.in: Require autoconf 2.12.1 or higher.
3839
38401998-12-30 Michael Meissner <meissner@cygnus.com>
3841
3842 * random.c (NULL): Don't redefine NULL if it is already defined.
3843
3844Tue 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.
8aefe91a
DD
3851 (snarf_numeric_literal): Constify first parameter.
3852 (code_for_qualifier): Avoid a gcc extension, make the parameter an
3853 int, not a char.
252b5132
RH
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
8aefe91a 3866 avoid ambiguous `else'.
252b5132
RH
3867
3868 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
3869 `cstart' and `cend' to unsigned char. Cast the argument of macro
3870 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
3871
3872 * objalloc.c (free): Add prototype.
3873
3874Sun 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
3878Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
3879
3880 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 3881 doesn't exist.
252b5132 3882 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 3883
252b5132
RH
3884Fri 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
38901998-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
3897Mon 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
3915Fri 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
8aefe91a
DD
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.
252b5132 3931 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 3932 function.
252b5132 3933 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 3934 style for this case is the same as ARM.
252b5132
RH
3935 (demangle_args): handle EDG_DEMANGLING style; support HP style.
3936 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
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.
252b5132 3940 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 3941 include template args in string defining class.
252b5132
RH
3942 (demangle_class_name): use demangel_arm_hp_template.
3943 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
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.
252b5132 3947 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
3948 styles. global destructor and constructor for HP style are same
3949 as for ARM style. Same for local variables.
252b5132
RH
3950 (demangle_qualified): handle EDG_DEMANGLING style.
3951 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
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.
252b5132 3959 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 3960 value param for HP/aCC.
252b5132 3961 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 3962 literal parameter for HP aCC.
252b5132
RH
3963 (recursively_demangle): new function
3964 (snarf_numeric_literal): new function.
3965 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 3966 to message.
252b5132
RH
3967
3968Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
3969
3970 * pexecute.c: Remove obsolete ifdefed cygwin code.
3971
3972Fri 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
39791998-11-25 Mike Stump <mrs@wrs.com>
3980
3981 * Makefile.in (splay-tree.o): Add config.h dependency.
3982
3983Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3984
3985 * configure.in: Use AC_PREREQ(2.12.1).
3986
39871998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
3988
b4fe2683 3989 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
3990
3991Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
3992
3993 * mpw.c (mpw_access): Add missing parens.
3994
3995Thu 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
4001Thu 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
4006Wed 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
4011Fri 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
4019Fri 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
40251998-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
4034Sat 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
4040Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
4041
b4fe2683
JM
4042 * configure.in: detect cygwin* instead of cygwin32*
4043 * configure: regenerate
252b5132
RH
4044
4045Mon 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
8aefe91a
DD
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.
252b5132
RH
4055
40561998-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
40611998-10-25 Mark Mitchell <mark@markmitchell.com>
4062
4063 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
4064 anonymous namespaces.
4065
40661998-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
4083Thu 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
40881998-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
4095Tue 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
4100Thu 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
4131Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
4132
b4fe2683
JM
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.
252b5132
RH
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
4141Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
4142
b4fe2683 4143 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
4144
4145Sun 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
4149Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
4150
4151 * Merge egcs & devo libiberty.
4152