merge from gcc
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
c750388a
DD
12005-07-22 Ben Elliston <bje@gnu.org>
2
3 Recover patch lost in the sourceware repository:
4 2005-07-09 Ben Elliston <bje@au.ibm.com>
5 * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
6 * memmove.c: Likewise.
7 * objalloc.c: Likewise.
8
a4e5c0d8
DD
92005-07-22 Ben Elliston <bje@gnu.org>
10
11 * configure.ac: Check for a getopt(3) declaration.
12 * configure, config.in: Regenerate.
13
4fe19082
DD
142005-07-15 Ben Elliston <bje@au.ibm.com>
15
16 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
17
f2942ea4
DD
182005-07-12 Ben Elliston <bje@au.ibm.com>
19
20 * floatformat.c (floatformat_to_double): Add a comment about a
21 potential source of warnings when compiling this file.
22
232005-07-12 Ben Elliston <bje@au.ibm.com>
24
25 * pexecute.c (pexecute): Cast string litrals to char *.
26 * regex.c (re_comp): Cast a call to gettext() to char *.
27
4cf896a5
KC
282005-07-07 Kelley Cook <kcook@gcc.gnu.org>
29
30 * config.table: Delete file. Move former contents into ...
31 * configure.ac: ... here and escape any brackets for m4.
32 * Makefile.in (config.status): Remove dependency on config.table.
33 * configure: Regenerate.
34
20ae7c34
KC
352005-07-07 Kelley Cook <kcook@gcc.gnu.org>
36
37 * config.in: Regenerate for 6/20 change.
38
6ba85b8c
DD
392005-07-03 Steve Ellcey <sje@cup.hp.com>
40
41 PR other/13906
42 * md5.c (md5_process_bytes): Check alignment.
43
442005-07-01 Ian Lance Taylor <ian@airs.com>
45
46 PR other/22268
47 * cp-demangle.c (d_expr_primary): Don't run off the end of the
48 string while looking for the end of a literal value.
49 * testsuite/demangle-expected: Add test case.
50
c3cca4c9
DD
512005-06-30 Daniel Berlin <dberlin@dberlin.org>
52
53 * hashtab.c (EMPTY_ENTRY): Moved and renamed.
54 (DELETED_ENTRY): Ditto.
55
67f3cb05
GK
562005-06-20 Geoffrey Keating <geoffk@apple.com>
57
58 * strverscmp.c: New.
59 * Makefile.in (CFILES): Add strverscmp.c.
60 (CONFIGURED_OFILES): Add strverscmp.o.
61 (strverscmp.o): New rule.
62 (stamp-functions): Add $(srcdir) to files in source directory.
63 * configure.ac (funcs): Add strverscmp.
64 (AC_CHECK_FUNCS): Add strverscmp.
65 * configure: Regenerate.
66 * functions.texi: Regenerate.
67
01e94249
DD
682005-05-28 Eli Zaretskii <eliz@gnu.org>
69
70 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
71 * config.in, configure: Regenerate.
72
839e4798
RH
732005-05-25 Richard Henderson <rth@redhat.com>
74
75 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
76 (d_make_comp, d_print_comp): Likewise.
77 (d_special_name): Generate one.
78 * testsuite/demangle-expected: Add a hidden alias test.
79
abf6a75b
DD
802005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
81
82 * configure.ac: Check declarations for calloc(), getenv(),
01e94249 83 malloc(), realloc() and sbrk().
abf6a75b
DD
84 * config.in: Regenerate.
85 * configure: Likewise.
86
87 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
88 instead of xmalloc.
89 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
90 * concat.c (liiberty_concat_ptr): Surround definition with an
91 extern "C" block, if __cplusplus.
92 (concat): Use XNEWVEC instead of xmalloc.
93 (reconcat): Likewise.
94 * cp-demangle.c (struct d_print_template): Rename member
01e94249 95 "template" to "template_decl". Adjust use throughout the file.
abf6a75b
DD
96 (d_print_resize): Properly cast return value of realloc().
97 (cplus_demangle_print): Same for malloc().
98 (d_demangle): Likewise.
99 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
100 "typename" to "type_name".
101 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
102 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
103 (demangle_template_value_parm): Likewise.
104 (demangle_template): Likewise.
105 (recursively_demangle): Likewise.
106 (do_hpacc_template_literal): Likewise.
107 (do_arg): Likewise.
108 (remember_type): Likewise.
109 (remember_Ktype): Likewise.
110 (register_Btype): Likewise.
111 (string_need): Use XRESIZEVEC instead of xrealloc().
112 * dyn-string.c (dyn_string_init): Use XNEWVEC.
113 (dyn_string_new): Use XNEW.
114 (dyn_string_resize): Use XRESIZEVEC.
115 * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
116 * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
117 Otherwise include <stdlib.h>.
118 (exchange): Cast return value of malloc().
119 * hashtab.c (htab_size): Define as both macro and non-inline
120 function.
121 (htab_elements): Likewise.
122 * getpwd.c (getpwd): Use XNEWVEC.
123 (htab_create_alloc_ex): Use C90 prototype-style.
124 * lrealpath.c (lrealpath): Appropriately cast return value of
01e94249 125 malloc().
abf6a75b
DD
126 * make-relative-prefix.c (save_string): Likewise.
127 * make-temp-file.c (try_dir): Rename from "try". Adjust use in
128 the file.
129 (choose_tmpdir): Use XNEWVEC.
130 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
131 * pex-common.c (pex_init_common): Use XNEW.
132 (pex_add_remove): Use XRESIZEVEC.
133 (pex_run): Likewise.
134 (pex_get_status_and_time): Likewise.
135 * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
136 * pex-msdos.c (pex_init): Use XNEW.
137 (pex_msdos_exec_child): Likewise.
138 (pex_msdos_exec_child): Use XRESIZEVEC.
139 * pex-unix.c (pex_wait): Use XNEW.
140 * pex-win32.c (fix_argv): Use XNEWVEC.
141 * pexecute.c (pwait): Likewise.
142 * setenv.c (setenv): Properly cast return value of malloc().
143 * sigsetmask.c (sigsetmask): Rename local variables "old" and
144 "new" to "old_sig" and "new_sig".
145 * sort.c (main): Use XNEWVEC.
146 * spaces.c (spaces): Cast return value of malloc().
147 * strndup.c (strndup): Likewise.
148 * ternary.c (ternary_insert): Use XNEW.
149 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
150 with an extern "C" block if __cplusplus.
151 * xstrdup.c (xstrdup): Cast return value of memcpy().
152 * xstrerror.c (strerror): Enclose declaration in an extern "C"
153 block if __cplusplus.
154 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
155
2349f557
DD
1562005-05-16 Andreas Jaeger <aj@suse.de>
157
158 * getpwd.c: Remove unneeded prototype getcwd and move getwd so
159 that it's only declared if needed.
160
161 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
162 defined.
163
e9edcedc
DD
1642005-05-15 Andreas Jaeger <aj@suse.de>
165
166 * functions.texi: Regenerated.
167
f13c9bea
DD
1682005-05-15 Eli Zaretskii <eliz@gnu.org>
169
170 * pexecute.txh: Enclose multi-word data types in @deftypefn in
171 braces. Minor wording fixes. Use --- for em-dash. Use
172 @enumerate in enumerated lists.
173
e9edcedc
DD
174 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
175 braces.
176
282d9ec3
ILT
1772005-05-11 Eli Zaretskii <eliz@gnu.org>
178
179 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
180 sys/stat.h.
181 (pex_init): Fix last argument to pex_init_common.
182 (pex_djgpp_exec_child): Remove leading underscore from _open,
183 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
184 which is undeclared, with `executable', which was unused. Remove
185 unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
186 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
187
75919f94
DD
1882005-05-11 Paul Brook <paul@codesourcery.com>
189
190 * Makefile.in: Regenerate dependencies.
191
979c05d3
NC
1922005-05-10 Nick Clifton <nickc@redhat.com>
193
194 * Update the address and phone number of the FSF organization in
195 the GPL notices in the following files:
75919f94
DD
196 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
197 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
198 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
199 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
200 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
201 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
202 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
203 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
204 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
205 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
206 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
207 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
208 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
979c05d3 209
0093138c
DD
2102005-05-06 Kelley Cook <kcook@gcc.gnu.org>
211
212 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
213 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
214 * configure: Regenerate.
215
2162005-05-06 Kelley Cook <kcook@gcc.gnu.org>
217
218 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
219 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
220 * aclocal.m4: Don't include accross.m4.
221 * configure, config.in: Regenerate.
222
c631edf1
DD
2232005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
224
225 * fopen_unlocked.c (unlock_std_streams): New.
f13c9bea 226
c631edf1
DD
227 * functions.texi: Regenerate.
228
7b6f6286
DD
2292005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
230
231 * fopen_unlocked.c (unlock_stream): New.
232 Consolidate unlocking code into a helper function.
233
234 * functions.texi: Regenerate.
235
fa99459d
DD
2362005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
237
238 * asprintf.c: Include config.h.
239 * basename.c: Likewise.
240 * fdmatch.c: Likewise.
241 * hex.c: Likewise.
242 * lbasename.c: Likewise.
243 * spaces.c: Likewise.
244 * xatexit.c:Likewise.
f13c9bea 245 * configure.ac: Do check declarations for basename, ffs, asprintf
fa99459d
DD
246 and vasprintf for real.
247 * configure: Regenerate.
248
ab70e2a5
DD
2492005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
250
f13c9bea 251 * argv.c (dupargv): Allocate space of argv[argc], not
ab70e2a5
DD
252 sizeof(char *) of that amount. Cast result to char *.
253
ea7143ac
DD
2542005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
255
256 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
f13c9bea 257 Replace not with negate.
ea7143ac 258
41c953f9
DD
2592005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
260
261 * configure.ac: Check declarations for basename, ffs, asprintf,
262 vasprintf.
263 * configure: Regenerate.
264 * config.in: Likewise.
265
ac119ae8
DD
2662005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
267
268 * Makefile.in (CFILES): Add fopen_unlocked.c.
269 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
270 Regenerate dependencies.
271
272 * configure.ac: Check for stdio_ext.h and __fsetlocking.
273
274 * fopen_unlocked.c: New file.
275
276 * functions.texi, configure, config.in: Regenerate.
277
6e933b47
DD
2782005-04-04 Ian Lance Taylor <ian@airs.com>
279
280 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
281 declaration before statement.
282
aa55ccb1
DD
2832005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
284
14a88c49
DD
285 * bcmp.c: Fix warnings and implement using memcmp.
286 * bcopy.c: Fix warnings.
287 * bzero.c: Fix warnings and implement using memset.
288
aa55ccb1
DD
289 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
290 -Wstrict-prototypes.
291 * configure, config.in: Regenerate.
292
293 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
294 warnings and reconcile interfaces with relevant standards.
295
b31a49d7
ILT
2962005-04-02 Ian Lance Taylor <ian@airs.com>
297
298 * cp-demangle.c: Update copyright.
299
0e867e79
DD
3002005-03-31 Joseph S. Myers <joseph@codesourcery.com>
301
302 * gettimeofday.c: Add "Supplemental" to @deftypefn.
303 * functions.texi: Regenerate.
304
b109e79a
ILT
3052005-03-28 Ian Lance Taylor <ian@airs.com>
306
307 * pex-common.c: New file.
308 * pex-one.c: New file.
309 * pexecute.c: New file.
310 * pex-common.h: Include <stdio.h>.
311 (struct pex_obj): Define.
312 (struct pex_funcs): Define.
313 (pex_init_common): Declare.
314 * pex-unix.c: Rewrite.
315 * pex-win32.c: Rewrite.
316 * pex-djgpp.c: Rewrite.
317 * pex-msdos.c: Rewrite.
318 * testsuite/text-pexecute.c: New file.
319 * pexecute.txh: Rewrite.
320 * configure.ac: Check for wait3 and wait4. Set CHECK to
321 really-check rather than check-cplus-dem.
322 * functions.texi: Rebuild.
323 * Makefile.in: Rebuild dependencies.
324 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
325 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
326 * testsuite/Makefile.in (really-check): New target.
327 (check-pexecute, test-pexecute): New targets.
328 * configure: Rebuild.
329
864e8148 3302005-03-28 Mark Kettenis <kettenis@gnu.org>
f13c9bea 331
864e8148
DD
332 * unlink-if-ordinary.c: Include <sys/types.h>.
333
e064c173
DD
3342005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
335
336 Convert libiberty to use ISO C prototype style 7/n.
337 * regex.c (PARAMS): Remove definition.
338 (PREFIX): Unconditionaly define using ISO C ## operator.
f13c9bea 339 (init_syntax_once, extract_number, extract_number_and_incr,
e064c173 340 print_fastmap, print_partial_compiled_pattern,
f13c9bea 341 print_compiled_pattern, print_double_string, printchar,
e064c173
DD
342 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
343 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
f13c9bea
DD
344 at_begline_loc_p, at_endline_p, group_in_compile_stack,
345 insert_space, wcs_compile_range, byte_compile_range,
346 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
347 re_set_registers, re_search, re_search_2, re_search_3, re_match,
e064c173
DD
348 re_match_2, count_mbs_length, wcs_re_match_2_internal,
349 byte_re_match_2_internal, group_match_null_string_p,
350 alt_match_null_string_p, common_op_match_null_string_p,
f13c9bea 351 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
e064c173
DD
352 regexec, regerror, regfree): Use ISO C prototype style.
353 * partition.c: (elem_compare): Likewise.
354 * cp-demangle.c (print_usage): Likewise.
355
1e45deed
DD
3562005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
357
358 Convert libiberty to use ISO C prototype style 5/n.
359 * random.c (srandom, initstate, setstate, random): Use ISO C
f13c9bea 360 prototypes.
1e45deed
DD
361 * putenv.c (putenv): Likewise.
362 * physmem.c (physmem_available, physmem_total, main): Likewise.
363 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
364 * pex-unix.c (pexecute, pwait): Likewise.
365 * pex-msdos.c (pexecute, pwait): Likewise.
366 * pex-djgpp.c (pexecute, pwait): Likewise.
f13c9bea 367 * partition.c (partition_new, partition_delete, partition_union)
1e45deed 368 (elem_compare, partition_print): Likewise.
f13c9bea
DD
369 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
370 _obstack_allocated_p, _obstack_free, obstack_free,
1e45deed
DD
371 _obstack_memory_used, print_and_abort, obstack_next_free,
372 obstack_object_size, obstack_base): Likewise. Remove codes
373 predicated on !defined(__STDC__).
f13c9bea 374 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
1e45deed
DD
375 objalloc_free_block): Use ISO C prototypes.
376 * mkstemps.c (mkstemps): Likewise.
377 * memset.c (memset): Likewise.
378 * mempcpy.c (mempcpy): Likewise.
379 * rename.c (rename): Likewise.
380 * rindex.c (rindex): Likewise.
381 * setenv.c (setenv, unsetenv): Likewise.
382 * sigsetmask.c (sigsetmask): Likewise.
383 * snprintf.c (snprintf): Likewise.
f13c9bea 384 * sort.c (sort_pointers, xmalloc): Likewise.
1e45deed 385 * spaces.c (spaces): Likewise.
f13c9bea
DD
386 * splay-tree.c (splay_tree_delete_helper,
387 splay_tree_splay_helper, splay_tree_splay,
1e45deed 388 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
f13c9bea 389 splay_tree_new, splay_tree_xmalloc_allocate,
1e45deed 390 splay_tree_new_with_allocator, splay_tree_delete,
f13c9bea
DD
391 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
392 splay_tree_max, splay_tree_min, splay_tree_predecessor,
393 splay_tree_successor, splay_tree_foreach,
1e45deed
DD
394 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
395 * stpcpy.c (stpcpy): Likewise.
396 * stpncpy.c (stpncpy): Likewise.
397 * strcasecmp.c (strcasecmp): Likewise.
398 * strchr.c (strchr): Likewise.
399 * strdup.c (strdup): Likewise.
400
49b1fae4
DD
4012005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
402
403 Convert libiberty to use ISO C prototype style 6/n.
f13c9bea 404 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
49b1fae4
DD
405 strtoerrno, main): Use ISO C prototype style.
406 * strncasecmp.c (strncasecmp): Likewise.
407 * strncmp.c (strncmp): Likewise.
408 * strndup.c (strndup): Likewise.
409 * strrchr.c (strrchr): Likewise.
f13c9bea 410 * strsignal.c (init_signal_tables, signo_max, strsignal,
49b1fae4
DD
411 strsigno, strtosigno, psignal, main): Likewise.
412 * strstr.c (strstr): Likewise.
413 * strtod.c (strtod, atof): Likewise.
414 * strtol.c (strtol): Likewise.
415 * strtoul.c (strtoul): Likewise.
f13c9bea 416 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
49b1fae4
DD
417 ternary_recursivesearch): Likewise.
418 * tmpnam.c (tmpnam): Likewise.
419 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
420 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
421 * vfork.c (vfork): Likewise.
422 * vfprintf.c (vfprintf): Likewise.
423 * vprintf.c (vprintf): Likewise.
424 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
425 * vsprintf.c (vsprintf): Likewise.
426 * waitpid.c (waitpid): Likewise.
427 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
428 * xexit.c (xexit): Likewise.
f13c9bea 429 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
49b1fae4
DD
430 xcalloc, xrealloc): Likewise.
431 * xmemdup.c (xmemdup): Likewise.
432 * xstrdup.c (xstrdup): Likewise.
433 * xstrerror.c (xstrerror): Likewise.
434 * xstrndup.c (xstrndup): Likewise.
435
4362005-03-27 Andreas Jaeger <aj@suse.de>
437
438 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
439 flags.
440 * configure: Regenerated.
441
4422005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
443
444 * getopt1.c (getopt_long_only): Fix thinko.
445
4462005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
447
448 Convert libiberty to use ISO C prototype style 4/n.
449 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
450 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
451 htab_create_alloc, htab_set_functions_ex, htab_create,
452 htab_try_create, htab_delete, htab_empty,
453 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
454 htab_find, htab_find_slot_with_hash, htab_find_slot,
455 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
456 htab_traverse_noresize, htab_traverse, htab_collisions,
457 htab_hash_string, iterative_hash): Use ISO C prototype.
458 * hex.c (hex_init): Likewise.
459 * index.c (index): Likewise.
460 * insque.c (insque, remque): Likewise.
461 * lbasename.c (lbasename): Likewise.
462 * lrealpath.c (lrealpath): Likewise.
463 * make-relative-prefix.c (save_string, split_directories,
464 free_split_directories, make_relative_prefix): Likewise.
465 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
466 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
467 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
468 * memchr.c (memchr): Likewise.
469 * memcpy.c (memcpy): Likewise.
470 * memmove.c (memmove): Likewise.
471 * gettimeofday.c (gettimeofday): Likewise.
472 * getruntime.c (get_run_time): Likewise.
473 * getpwd.c (getpwd, getpwd): Likewise.
474 * getpagesize.c (getpagesize): Likewise.
475 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
476 * getopt.c (my_index, exchange, _getopt_initialize,
477 _getopt_internal, getopt, main): Likewise.
478 * getcwd.c (getcwd): Likewise.
479 * fnmatch.c (fnmatch): Likewise.
480 * floatformat.c (floatformat_always_valid,
481 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
482 put_field, floatformat_from_double, floatformat_is_valid,
483 ieee_test, main): Likewise.
484 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
485 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
486 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
487 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
488 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
489 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
490 fibheap_link, fibheap_cut, fibheap_cascading_cut,
491 fibnode_insert_after, fibnode_remove): Likewise.
492 * ffs.c (ffs): Likewise.
493 * fdmatch.c (fdmatch): Likewise.
494 * dyn-string.c (dyn_string_init, dyn_string_new,
495 dyn_string_delete, dyn_string_release, dyn_string_resize,
496 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
497 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
498 dyn_string_insert_cstr, dyn_string_insert_char,
499 dyn_string_append, dyn_string_append_cstr,
500 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
501 Likewise.
502
9334f9c6
DD
5032005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
504
505 Convert libiberty to use ISO C prototype style 3/n.
49b1fae4
DD
506 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
507 consume_count_with_underscores, code_for_qualifier,
508 qualifier_string, demangle_qualifier, cplus_demangle_opname,
509 cplus_mangle_opname, cplus_demangle_set_style,
510 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
9334f9c6 511 ada_demangle, internal_cplus_demangle, squangle_mop_up,
49b1fae4
DD
512 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
513 delete_work_stuff, mop_up, demangle_signature,
514 demangle_method_args, demangle_template_template_parm,
515 demangle_expression, demangle_integral_value,
516 demangle_real_value, demangle_template_value_parm,
517 demangle_template, arm_pt, demangle_arm_hp_template,
518 demangle_class_name, demangle_class, iterate_demangle_function,
519 demangle_prefix, gnu_special, recursively_demangle, arm_special,
520 demangle_qualified, get_count, do_type, demangle_fund_type,
521 do_hpacc_template_const_value, do_hpacc_template_literal,
522 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
523 register_Btype, remember_Btype, forget_B_and_K_types,
524 forget_types, demangle_args, demangle_nested_args,
525 demangle_function_name, string_need, string_delete, string_init,
526 string_clear, string_empty, string_append, string_appends,
9334f9c6
DD
527 string_appendn, string_prepend, string_prepends, string_prependn,
528 string_append_template_idx): Use ISO C prootype style.
529 * cp-demint.c (cplus_demangle_fill_component,
49b1fae4 530 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
9334f9c6
DD
531 cplus_demangle_v3_components): Likewise.
532
5332005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
534
535 Convert libiberty to use ISO C prototype style 2/n.
536 * cp-demangle.h: Remove uses of PARAMS.
537 * cp-demangle.c: Likewise.
49b1fae4
DD
538 (d_dump, cplus_demangle_fill_name,
539 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
540 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
541 d_make_builtin_type, d_make_operator, d_make_extended_operator,
542 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
543 cplus_demangle_mangled_name, has_return_type,
544 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
545 d_prefix, d_unqualified_name, d_source_name, d_number,
546 d_identifier, d_operator_name, d_special_name, d_call_offset,
547 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
548 d_function_type, d_bare_function_type, d_class_enum_type,
549 d_array_type, d_pointer_to_member_type, d_template_param,
550 d_template_args, d_template_arg, d_expression, d_expr_primary,
551 d_local_name, d_discriminator, d_add_substitution,
552 d_substitution, d_print_resize, d_print_append_char,
553 d_print_append_buffer, d_print_error, cplus_demangle_print,
554 d_print_comp, d_print_java_identifier, d_print_mod_list,
555 d_print_mod, d_print_function_type, d_print_array_type,
556 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
557 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
9334f9c6 558 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
49b1fae4 559 print_usage, main):
9334f9c6
DD
560
5612005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
562
563 Convert libiberty to ISO C prototype style 1/n.
564 * _doprnt.c: Remove conditional #include <varargs.h> on
565 ANSI_PROTOTYPES as the latter is always assumed.
566 (_doprnt, checkit, main): Use ISO C prototype.
567 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
568 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
49b1fae4 569 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
9334f9c6
DD
570 * atexit.c (atexit): Likewise
571 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
49b1fae4 572 (asprintf): Use ISO C prototype.
9334f9c6
DD
573 * basename.c (basename): Likewise
574 * bcmp.c (bcmp): Likewise.
575 * bcopy.c (bcopy): Likewise.
576 * bzero.c (bzero): Likewise.
577 * bsearch.c (bsearch): Likewise. Improve const-correctness.
578 * choose-temp.c (choose_temp_base): Likewise.
579 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
580 (calloc): Use ISO C prototype.
581 * clock.c (clock): Likewise.
582 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
49b1fae4 583 (vconcat_length, vconcat_copy, concat_length, concat_copy,
9334f9c6
DD
584 concat_copy2, concat, reconcat, main): Use ISO C prototype.
585 * copysign.c (copysign): Likewise.
586
0fad4bdb
DD
5872005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
588
589 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
590 (REQUIRED_OFILES): Add xstrndup.o.
591 (CONFIGURED_OFILES): Add strndup.o.
592 Regenerate dependencies.
593
594 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
595
596 * strndup.c, xstrndup.c: New.
597
598 * config.in, configure, functions.texi: Regenerate.
599
51e32d64
DD
6002005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
601
602 * xmemdup.c, xstrdup.c: Expose the tail call.
603
8ec32723
DD
6042005-03-09 Mark Mitchell <mark@codesourcery.com>
605
606 * configure.ac (funcs): Add gettimeofday.
607 * configure: Regenerated.
608 * gettimeofday.c: New file.
609 * Makefile.in (CFILES): Add gettimeofday.
610 (CONFIGURED_OFILES): Add gettimeofday.o.
611 (./gettimeofday.o): New rule.
612
27ff8836
ILT
6132005-03-09 Ian Lance Taylor <ian@airs.com>
614
615 * pex-os2.c: Remove.
616 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
617 * Makefile.in (CFILES): Remove pex-os2.c.
618 (CONFIGURED_OFILES): Remove pex-os2.o.
619 (pex-os2.o): Remove target.
620 * configure: Rebuild.
621
48e39b59
ILT
6222005-03-07 Ian Lance Taylor <ian@airs.com>
623
624 * mpw-config.in: Remove.
625 * mpw-make.sed: Remove.
626 * mpw.c: Remove.
627 * Makefile.in (CFILES): Remove pex-mpw.c.
628 (CONFIGURED_OFILES): Remove pex-mpw.o.
629 (mpw.o, pex-mpw.o): Remove targets.
630 * maint-tool (undoc): Remove reference to mpw.c.
631
65dce80e
DD
6322005-03-06 DJ Delorie <dj@redhat.com>
633
634 * configure.ac (target_header_dir): vfork is a stub under djgpp.
635 * configure: Regenerated.
636
190eb137
DD
6372005-03-01 Jan Beulich <jbeulich@novell.com>
638
639 * Makefile.in (CFILES): Add unlink-if-ordinary.c
640 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
641 Add dependencies and rule for unlink-if-ordinary.o.
642 * unlink-if-ordinary.c: New.
643
bac7199c
DD
6442005-03-01 Ben Elliston <bje@au.ibm.com>
645
646 * hashtab.c (htab_find_slot_with_hash): Make function
647 documentation clearer.
648
aca9a742
JM
6492005-02-13 Jason Merrill <jason@redhat.com>
650
651 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
652 arguments.
653
b5c3b3de
DD
6542005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
655
656 * hex.c (hex_value): Group 'unsigned int' together to get correct
657 markup.
658 * functions.texi: Regenerated.
49b1fae4 659
46a10049
DD
6602004-12-27 H.J. Lu <hongjiu.lu@intel.com>
661
662 * Makefile.in: Undo to 2004-12-17.
663 * aclocal.m4: Likewise.
664 * config.table: Likewise.
665 * configure.ac: Likewise.
666 * maint-tool: Likewise.
667 * configure: Likewise.
668
fbfdf750
DD
6692004-12-19 H.J. Lu <hongjiu.lu@intel.com>
670
671 PR bootstrap/19072
672 * Makefile.in (enable_shared): New substitute.
673 (LTTARGETLIB): New.
674 (PREFIXTARGETLIB): New.
675 (LTTESTLIB): New.
676 (PREFIXTESTLIB): New.
677 (CCLD): New.
678 (LINK): New.
679 ($(TARGETLIB)): Use $(LINK) to create libraries and create
680 targets by hand.
681 ($(TESTLIB)): Likewise.
682 (mostlyclean): Don't remove .libs. Remove the libtool object
683 directory.
684
685 * config.table (enable_shared): Removed.
686
687 * configure.ac (enable_static): Set to yes.
688 (AC_PROG_LIBTOOL): Removed.
689 (AM_DISABLE_SHARED): Uncommented.
690 (AM_PROG_LIBTOOL): Likewise.
691 (LIBOBJS): Add `./' to avoid VPATH.
692 (LTLIBOBJS): Likewise.
693 (enable_shared): Substitute.
694 * configure: Regenerated.
695
96e00b33
L
6962004-12-18 H.J. Lu <hongjiu.lu@intel.com>
697
698 * Makefile.in (top_builddir): Set to `.'.
699 (OUTPUT_OPTION): Removed.
700 (LIBTOOL): New.
701 (LTLIBOBJS): New.
702 (EXTRA_LTOFILES): New.
703 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
704 (all): Remove stamp-picdir.
705 (LTCOMPILE): New.
706 (.c.lo): New rule.
707 (REQUIRED_LTOFILES): New.
708 (CONFIGURED_LTOFILES): New.
709 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
710 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
711 (stamp-picdir): Completely removed.
712 (maint-missing): Pass $(REQUIRED_LTOFILES)
713 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
714 $(CONFIGURED_OFILES)
715 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
716 $(CONFIGURED_LTOFILES).
717 (mostlyclean): Also remove *.lo .libs.
718 Run "make maint-deps".
719
720 * aclocal.m4: Include ../libtool.m4.
721
722 * config.table: Don't check --enable-shared.
723
724 * configure.ac (AC_PROG_LIBTOOL): Add.
725 (AC_PROG_CC_C_O): Removed.
726 (OUTPUT_OPTION): Removed.
727 (NO_MINUS_C_MINUS_O): Removed.
728 (ltpexecute): New substitute.
729 (LIBOBJS): Cleanup.
730 * configure: Regenerated.
731
732 * maint-tool: Updated for .lo/libtool.
733
40a59a4c
DD
7342004-12-11 Ben Elliston <bje@au.ibm.com>
735
736 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
737 * configure: Regenerate.
738 * config.in: Likewise.
739
9923bc33
DD
7402004-12-07 DJ Delorie <dj@redhat.com>
741
742 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
743 that recursion (and thus large stack space) is not needed.
744
70615d15
DD
7452004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
746
747 * pex-unix.c: Fix the spelling of longjmp.
748
eb129e35
DD
7492004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
750
751 PR other/18623
752 * cp-demangle.c (d_call_offset): Remove useless local variables
753 offset and virtual_offset.
754 * cplus-dem.c (ada_demangle): Remove useless local variable
755 at_start_name.
756 (demangle_template): Remove useless local variable start.
757
3e0f1404
DD
7582004-11-19 Roger Sayle <roger@eyesopen.com>
759
760 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
761 "ansidecl.h" to avoid redeclaration errors with native compilers.
762 * regex.c: Protect config.h from multiple inclusion.
763
6cfb3176
DD
7642004-11-12 Mike Stump <mrs@apple.com>
765
766 * Makefile.in (libiberty.html): Fix html generation.
767
f9b4e353
DD
7682004-09-08 Adam Nemet <anemet@lnxw.com>
769
770 * vasprintf.c: Accept __va_copy in addition to va_copy.
771
49b1fae4 7722004-09-03 Paolo Bonzini <bonzini@gnu.org>
c7efc4d5
PB
773
774 * configure: Regenerate.
775
49b1fae4 7762004-09-02 Paolo Bonzini <bonzini@gnu.org>
f5396bbe
PB
777
778 * configure.ac: Do not enable multilibs for build-side libiberty.
779
49b1fae4 7802004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
950ad202
DD
781
782 * lrealpath.c (lrealpath): Add _WIN32 support.
783
a21da8bf
DD
7842004-06-28 Zack Weinberg <zack@codesourcery.com>
785
786 * cp-demangle.h: Declare cplus_demangle_operators,
787 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
788 cplus_demangle_type as static if IN_GLIBCPP_V3.
789
7902004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
791
792 PR other/16240
793 * cp-demangle.c (d_expr_primary): Check for a failure return from
794 cplus_demangle_type.
795 * testsuite/demangle-expected: Add test case.
796
9f7d3e7d
DD
7972004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
798
799 * pex-win32.c (fix_argv): Expand comment.
800
0cb2db3a
DD
8012004-05-25 Daniel Jacobowitz <drow@false.org>
802
803 * Makefile.in: Add .NOEXPORT.
804
25319993
DD
8052004-04-29 Douglas B Rupp <rupp@gnat.com>
806
807 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
808 copyright.
809
7e9f5c71
DD
8102004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
811
812 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
813 * configure: Regenerate.
814
bb6a587d
DD
8152004-04-22 Richard Henderson <rth@redhat.com>
816
817 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
818 (CHAR_BIT): Provide default.
819 (struct prime_ent, prime_tab): New.
820 (higher_prime_index): Rename from higher_prime_number, return index.
821 (htab_mod_1): New.
822 (htab_mod, htab_mod_m2): Use it.
823 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
824 (htab_expand): Likewise.
825 * configure.ac: Check for stdint.h.
826 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
827 * config.in, configure: Rebuild.
828
53239e41
DD
8292004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
830
831 * strerror.c: Include config.h, and redefine sys_nerr and
832 sys_errlist, before including ansidecl.h and libiberty.h.
833
d6ea4e80
DD
8342004-04-13 Jeff Law <law@redhat.com>
835
836 * hashtab.c (htab_remove_elt_with_hash): New function.
837 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
838
fe046a17
DD
8392004-03-31 Richard Henderson <rth@redhat.com>
840
841 * hashtab.c (htab_size): Move to top of file; mark inline.
842 (htab_elements): Likewise.
843 (htab_mod, htab_mod_m2): New.
844 (htab_delete): Refactor htab->size and htab->entries.
845 (htab_empty): Likewise.
846 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
847 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
848 (htab_clear_slot): Use htab_size, htab_elements.
849 (htab_traverse_noresize, htab_traverse): Likewise.
850
e0c148a7
DD
8512004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
852
12a7367e
DD
853 * pex-unix.c (pexecute): Use vfork instead of fork, with
854 appropriate changes to make this safe.
855 * pex-common.h (STDERR_FILE_NO): Define.
856
e0c148a7
DD
857 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
858 an 80 column screen. Run maint-deps.
859
85f969cd
DD
8602004-03-09 Kelley Cook <kcook@gcc.gnu.org>
861
862 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
863 * acconfig.h: Delete redundant file.
864 * config.in: Regenerate.
865 * configure: Regenerate.
866
58670637
DD
8672004-03-09 Hans-Peter Nilsson <hp@axis.com>
868
869 * configure: Regenerate for config/accross.m4 correction.
870
758d77be
DD
8712004-03-07 Andreas Jaeger <aj@suse.de>
872
873 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
874 prototypes.
875 (main): Initialize style.
876
74aee4eb
DD
8772004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
878
2d733211
DD
879 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
880 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
881 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
882 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
883 short types to D_PRINT_DEFAULT. Change other integer types to use
884 new D_PRINT_* values where appropriate. Change float types to
885 D_PRINT_FLOAT.
886 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
887 values.
888 * testsuite/demangle-expected: Adjust two test cases.
889
890 * cp-demangle.c (d_print_function_type): Print a space before the
891 parenthesis around the function type in more cases.
892 * testsuite/demangle-expected: Adjust one test case.
893
099f84cf
DD
894 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
895 parentheses around a cast.
896 * testsuite/demangle-expected: Adjust two test cases to match new
897 output.
898
74aee4eb
DD
899 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
900
901 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
902 push more than one of the same CV-qualifier on the top of the
903 stack.
904 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
905 move the CV-qualifiers to apply to the element type instead.
906 (d_print_array_type): When checking the modifiers, keep looking
907 past ones which have been printed already.
908 * testsuite/demangle-expected: Add three test cases.
909
9102004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
911
912 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
913 empty string correctly.
914
915 * cp-demangle.c (__cxa_demangle): It is not an error if status is
916 not NULL. It is an error if the mangled name is the same as a
917 built-in type name.
918 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
919 than cplus_demangle_v3.
920
921 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
922 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
923
f9375305
DD
9242004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
925
926 * regex.c: Include <ansidecl.h>.
927 (regcomp): Cast i to int.
928 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
929
cbf0ee79
DD
9302004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
931
932 * configure.ac: Add m4_pattern_allow(LIBOBJS).
933 * configure: Regenerate.
934
37254c9a
DD
9352004-01-22 DJ Delorie <dj@redhat.com>
936
937 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
938 with explicit build rules.
939 (VPATH): Remove.
940 (.c.o): Poison.
941 * configure.ac (pexecute, LIBOBJS): Add ./ .
942 * maint-tool: Build dependencies with explicit rules.
943
211333f6
DD
9442004-01-15 Kazu Hirata <kazu@cs.umass.edu>
945
946 * strdup.c (strdup): Constify the argument.
947
3795d586
DD
9482004-01-14 Loren J. Rittle <ljrittle@acm.org>
949
950 * Makefile.in (distclean): Remove config.cache.
951
2d6520ee
DJ
9522004-01-13 Daniel Jacobowitz <drow@mvista.com>
953
954 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
955 takes two parameters.
956 * cp-demint.c (cplus_demangle_fill_component): Likewise.
957
59727473
DD
9582004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
959
960 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
961 defined, rename some functions which are to become static via
962 #define.
963 (CP_STATIC_IF_GLIBCPP_V3): Define.
964 (struct d_operator_info): Move definition to cp-demangle.h, and
965 rename to demangle_operator_info. Change all uses.
966 (enum d_builtin_type_print): Move definition to cp-demangle.h.
967 (struct d_builtin_type_info): Move definition to cp-demangle.h,
968 and rename to demangle_builtin_type_info. Change all uses.
969 (enum d_comp_type): Move definition to include/demangle.h, and
970 rename to demangle_component_type, and change all enums to start
971 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
972 (struct d_comp): Move definition to include/demangle.h, and rename
973 to demangle_component. Change all uses.
974 (struct d_info): Move definition to cp-demangle.h.
975 (cplus_demangle_fill_name): New function.
976 (cplus_demangle_fill_extended_operator): New function.
977 (cplus_demangle_fill_ctor): New function.
978 (cplus_demangle_fill_dtor): New function.
979 (d_make_empty): Remove type parameter. Change all callers.
980 (d_make_name): Use cplus_demangle_fill_name.
981 (d_make_extended_operator): Use
982 cplus_demangle_fill_extended_operator.
983 (d_make_ctor): Use cplus_demangle_fill_ctor.
984 (d_make_dtor): Use cplus_demangle_fill_dtor.
985 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
986 non-static by default. Change all callers.
987 (cplus_demangle_operators): Rename from d_operators. Change all
988 uses. Make non-static by default. Add sentinel at end of array.
989 (d_operator_name): Adjust initialization of high for new sentinel
990 in cplus_demangle_operators.
991 (cplus_demangle_builtin_types): Rename from d_builtin_types.
992 Change all uses. Make non-static by default. Change initializer
993 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
994 (cplus_demangle_type): Rename from d_type. Make non-static by
995 default. Change all callers.
996 (cplus_demangle_init_info): Rename from d_init_info. Make
997 non-static by default. Change all callers.
998 * cp-demangle.h: New file.
999 * cp-demint.c: New file.
1000 * Makefile.in: Rebuild dependencies.
1001 (CFILES): Add cp-demint.c.
1002 (REQUIRED_OFILES): Add cp-demint.o.
1003
1a79b024
DD
10042004-01-09 Kelley Cook <kcook@gcc.gnu.org>
1005
1006 * configure.in: Rename file to ...
1007 * configure.ac: ... this.
1008 * Makefile.in: Update a comment for above change.
1009 * README: Likewise.
1010 * config.in: Regenerate.
1011
820542c9
DD
10122004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
1013
1014 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
1015 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
1016 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
1017 demangling template parameters.
1018 * testsuite/test-demangle.c (fail): New static function.
1019 (main): Support new options in input file: --no-params,
1020 --is-v3-ctor, and --is-v3-dtor.
1021 * testsuite/demangle-expected: Add --no-params to most tests, and
1022 add the correct result when parameters are not demangled. Add
1023 some simple tests for V3 constructor/destructor recognition.
1024
2f9c4058
DD
10252003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1026
1027 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
1028
4fd47f10
DJ
10292003-12-22 Daniel Jacobowitz <drow@mvista.com>
1030
1031 PR debug/13272
1032 * Makefile.in (lbasename.o): Depend on filenames.h.
1033 * lbasename.c: Include "filenames.h" instead of defining
1034 its macros locally.
1035
b6fb00c0
DD
10362003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
1037
1038 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
1039 dynamic arrays.
1040 (struct d_operator_info): Add len field.
1041 (struct d_builtin_type_info): Add len and java_len fields.
1042 (struct d_standard_sub_info): Add simple_len, full_len, and
1043 set_last_name_len fields.
1044 (struct d_comp): Add len field to s_string.
1045 (struct d_info): Add send, did_subs, and expansion fields.
1046 (d_append_string_constant): Define.
1047 (d_append_string): Remove. Change all users to use
1048 d_append_string_constant or d_append_buffer instead.
1049 (d_make_sub): Add len parameter. Change all callers.
1050 (d_name): Increase expansion when substituting std::.
1051 (d_unqualified_name): Increase expansion for an operator.
1052 (d_number): Don't use multiplication for negative numbers.
1053 (d_identifier): Make sure there are enough characters in the
1054 string for the specified length. Adjust expansion for an
1055 anonymous namespace.
1056 (d_operators): Initialize len field.
1057 (d_special_name, d_ctor_dtor_name): Increase expansion.
1058 (d_builtin_types): Initialize len and java_len fields.
1059 (d_type): Increase expansion for a builtin type.
1060 (d_cv_qualifiers): Increase expansion for each qualifier.
1061 (d_bare_function_type): Decrease expansion when removing single
1062 void parameter.
1063 (d_template_param): Increment did_subs.
1064 (d_expression): Increase expansion for an operator.
1065 (d_expr_primary): Decrease expansion for a type we will print
1066 specially.
1067 (standard_subs): Initialize new fields.
1068 (d_substitution): Increment did_subs when doing a normal
1069 substitution. Increase expansion for a special substitution.
1070 (d_print): Add estimate parameter. Change all callers.
1071 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
1072 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
1073 (d_print_java_identifier): Rename from d_print_identifier. Handle
1074 only Java case. Change caller.
1075 (d_init_info): Change return type to void. Change all callers.
1076 Initialize send, did_subs, and expansion fields. Do not
1077 initialize comps and subs fields.
1078 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
1079 arrays on stack. Make an estimate of the length of the demangled
1080 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
1081 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
1082 subs arrays on stack.
1083
2730f651
DD
10842003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
1085
1086 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
1087 after the identifier.
1088 * testsuite/demangle-expected: Add test case.
1089
d4edd112
DD
10902003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
1091
1092 Fix for PR c++/13447:
1093 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
1094 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
1095 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
1096 D_COMP_QUAL_NAME.
1097 (is_ctor_or_dtor): Likewise.
1098 (d_local_name): Use D_COMP_LOCAL_NAME rather than
1099 D_COMP_QUAL_NAME.
1100 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
1101 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
1102 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
1103 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
1104 * testsuite/demangle-expected: Add two test cases.
1105
1106 * cp-demangle.c (d_print_function_type): Clear the global modifier
1107 list when printing the modifiers, not just when printing the
1108 function parameters.
1109 * testsuite/demangle-expected: Add two test cases.
1110
d35d0cd4
DD
11112003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1112
1113 * cp-demangle.c (d_print_function_type): Print the function
1114 parameters with no modifiers.
1115 * testsuite/demangle-expected: Add test case.
1116
1117 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
1118 expect that we've read the entire string.
1119 (is_ctor_or_dtor): Don't expect that we've read the entire
1120 string--reverse patch of 2003-11-29.
1121
09e9708c
DD
11222003-12-15 Brendan Kehoe <brendan@zen.org>
1123
1124 * libiberty/Makefile.in (floatformat.o): Add dependency on
1125 config.h to accompany change of 2003-12-03.
1126
97ceaf5b
DD
11272003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1128
1129 Fix handling of constructor/destructor of standard substitution:
1130 * cp-demangle.c (struct d_standard_sub_info): Define.
1131 (d_substitution): Add prefix argument. Change all callers.
1132 Rework handling of standard substitutions to print full name when
1133 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
1134 * testsuite/demangle-expected: Add test case.
1135
1136 Fix handling of negative literal constants:
1137 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
1138 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
1139 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
1140 (d_print_comp): Handle D_COMP_LITERAL_NEG.
1141 * testsuite/demangle-expected: Add test case.
1142
858b45cf
DD
11432003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
1144
1145 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
1146 (d_last_char): Define new macro.
1147 (d_make_name): Reject an empty name.
1148 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
1149 (d_substitution, d_print_identifier): Likewise.
1150 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
1151 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
1152 (d_print_mod) Use new d_last_char macro.
1153 (d_print_cast): Use new d_last_char macro.
1154 (is_ctor_or_dtor): Don't leak memory.
1155
1156 Fix handling of member function modifiers:
1157 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
1158 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
1159 (d_dump): Dump new d_comp_type values.
1160 (d_make_comp): Accept new d_comp_type values.
1161 (has_return_type): Only accept _THIS variants of qualifiers.
1162 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
1163 qualifiers.
1164 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
1165 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
1166 qualifiers and printing them at the end, add _THIS qualifiers to
1167 the modifier list.
1168 (d_print_comp) [D_COMP_*_THIS]: New cases.
1169 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
1170 qualifiers.
1171 (d_print_mod_list): Add suffix parameter. Change all callers.
1172 Keep walking the list even if the current modifier has been
1173 printed.
1174 (d_print_mod): Handle new _THIS qualifiers.
1175 (d_print_function_type): Handle new _THIS qualifiers when deciding
1176 whether to print a parenthesis. Put a space before the
1177 parenthesis in some cases. Call d_print_mod_list again at the
1178 end, passing suffix as 1.
1179 (is_ctor_or_dtor): Look for new _THIS qualifiers.
1180 * testsuite/demangle-expected: Add test case.
1181
1182 Fix for PR gcc/13304:
1183 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
1184 before the '<' is itself a '<', insert a space.
1185 (d_print_cast): Likewise.
1186 * testsuite/demangle-expected: Add test case.
1187
1188 Fix for PR gcc/13244:
1189 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
1190 which uses the '>' operator in an extra layer of parens.
1191 * testsuite/demangle-expected: Add test case.
1192
b52927b7
DD
11932003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
1194
1195 * floatformat.c: Include "config.h" and <string.h> if available.
1196 (INFINITY, NAN): Define if not defined by <math.h>.
1197 (floatformat_to_double): Handle NaN, infinity, and denormalized
1198 numbers.
1199 (floatformat_from_double): Likewise.
1200 (ieee_test): In debugging code, use little endian rather than big
1201 endian. Correct tests to handle NaN and to check correct sign of
1202 zero. Omit m68k extended test.
1203 (main): Add more debugging cases.
1204
24afc00d
DD
12052003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
1206
1207 * cp-demangle.c (d_demangle): Only return success if we consumed
1208 the entire demangled string.
1209 (is_ctor_or_dtor): Likewise.
1210
1211 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
1212 to restore expected result of EDG test case to original expected
1213 result.
1214
331c3da2
DD
12152003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
1216
1217 * cp-demangle.c (struct d_print_mod): Add templates field.
1218 (d_make_builtin_type): Check for NULL type.
1219 (d_make_extended_operator): Check for NULL name.
1220 (d_make_ctor, d_make_dtor): Likewise.
1221 (d_mangled_name): Add top_level parameter. Change all callers.
1222 (d_encoding): If DMGL_PARAMS is not set, strip off initial
1223 CV-qualifiers.
1224 (d_type): Check some return values we rely on.
1225 (d_bare_function_type, d_array_type): Likewise.
1226 (d_pointer_to_member_type, d_template_args): Likewise.
1227 (d_add_substitution): Fail if argument is NULL.
1228 (d_print_resize): Check whether buf is NULL.
1229 (d_print_comp): Save current templates list with each modifier.
1230 Don't pass the modifier list down when printing a template.
1231 (d_print_cast): Don't pass the modifier list down when printing a
1232 template.
1233 (d_print_mod_list): Temporarily set templates list while printing
1234 a modifier.
1235 (d_print_mod): Check that buf is not NULL before using it.
1236 (d_print_function_type): Print parens if there is no modifier.
1237 (d_init_info): Permit as many substitutions as there are
1238 characters in the mangled name.
1239 * testsuite/demangle-expected: Add two new test cases.
1240
51948b34
DD
12412003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
1242
1243 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
1244 d_demangle.
1245
6d95373e
DD
12462003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
1247
1248 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
1249 callers.
1250 (print_usage): Display new -p option.
1251 (long_options): Add --no-params.
1252 (main): Accept and handle -p.
1253
54a962d9
DD
12542003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
1255
1256 * cp-demangle.c (has_return_type): Skip qualifiers when checking
1257 whether we have a template.
1258 * testsuite/demangle-expected: Add four new tests.
1259
8fe0d347
DD
12602003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
1261
1262 * testsuite/demangle-expected: Minor changes to match output of
1263 new demangler: adjust whitespace in four tests, and change order
1264 of qualifiers in one test.
1265
1266 * cp-demangle.c: Complete rewrite.
1267
dd9d4b48
DD
12682003-11-19 Mark Mitchell <mark@codesourcery.com>
1269
1270 * cp-demangle.c (demangle_type): Correct thinko in substitution
1271 processing.
1272
0976f6a7
DD
12732003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
1274
1275 * cp-demangle.c (demangle_operator_name): Remove space before
1276 "sizeof".
1277 (demangle_type_ptr): Put qualifiers in the right place. Handle
1278 qualifiers in pointer to member specially.
1279 (demangle_type): Handle qualifiers for pointer or reference
1280 specially. Handle function type.
1281 (demangle_local_name): Save and restore caret around demangling of
1282 initial encoding.
1283
1284 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
1285 cplus_demangle.
1286
1287 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
1288
e7e6980b
DD
12892003-10-31 Andreas Jaeger <aj@suse.de>
1290
1291 * floatformat.c (floatformat_always_valid): Add unused attribute.
1292
97ceaf5b
DD
12932003-10-30 Josef Zlomek <zlomekj@suse.cz>
1294
1295 Jan Hubicka <jh@suse.cz>
1296 * vasprintf.c (int_vasprintf): Pass va_list by value.
1297 Use va_copy for copying va_list.
1298 (vasprintf): Pass va_list by value.
1299
686e72d7
DD
13002003-10-30 Josef Zlomek <zlomekj@suse.cz>
1301
1302 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
1303 instead of increasing n_elements when inserting to deleted slot.
1304
eec65ede
JB
13052003-10-20 J. Brobecker <brobecker@gnat.com>
1306
1307 * cplus-dem.c (demangle_template): Register a new Btype only
1308 when needed.
1309 * testsuite/demangle-expected: Add a new test.
1310
cd275bff
L
13112003-10-16 H.J. Lu <hongjiu.lu@intel.com>
1312
1313 * testsuite/demangle-expected: Update the expected output of
1314 _GLOBAL__I__Z2fnv.
1315
e3b1168e
DJ
13162003-10-02 Daniel Jacobowitz <drow@mvista.com>
1317
1318 * strerror.c: Revert last change. Declare static sys_nerr
1319 and sys_errlist using different names.
1320
efb150d5
DJ
13212003-10-01 Daniel Jacobowitz <drow@mvista.com>
1322
1323 * strerror.c: Don't provide or reference sys_errlist if
1324 strerror is available.
1325
b7ca9213
L
13262003-10-01 H.J. Lu <hongjiu.lu@intel.com>
1327
1328 * configure.in: Check if $MAKEINFO is missing.
1329 * configure: Regenerated.
1330
8ddbb593
DJ
13312003-09-24 Daniel Jacobowitz <drow@mvista.com>
1332
1333 * configure.in: Use AC_PROG_CPP_WERROR.
1334 * configure: Regenerated.
1335
5324d185
AC
13362003-09-22 Andrew Cagney <cagney@redhat.com>
1337
1338 * floatformat.c (floatformat_i387_ext_is_valid): New function.
1339 (floatformat_always_valid): New function.
1340 (floatformat_i387_ext): Initialize new "is_valid" field to
1341 "floatformat_i387_ext_is_valid".
1342 (floatformat_ieee_single_little): Initialize "is_valid" field to
1343 floatformat_always_valid.
1344 (floatformat_ieee_double_big): Ditto.
1345 (floatformat_ieee_double_little): Ditto.
1346 (floatformat_ieee_double_little): Ditto.
1347 (floatformat_ieee_double_littlebyte_bigword): Ditto.
1348 (floatformat_i960_ext): Ditto.
1349 (floatformat_m88110_ext): Ditto.
1350 (floatformat_m88110_harris_ext): Ditto.
1351 (floatformat_arm_ext_big): Ditto.
1352 (floatformat_arm_ext_littlebyte_bigword): Ditto.
1353 (floatformat_ia64_spill_big): Ditto.
1354 (floatformat_ia64_spill_little): Ditto.
1355 (floatformat_ia64_quad_big): Ditto.
1356 (floatformat_ia64_quad_little): Ditto.
1357 (floatformat_ia64_quad_little): Ditto.
1358 (floatformat_is_valid): Call "is_valid".
1359
34f4a113
AC
13602003-09-15 Andrew Cagney <cagney@redhat.com>
1361
1362 * floatformat.c (get_field): Make "data" constant.
1363 (floatformat_is_valid, floatformat_to_double): Make "from"
1364 constant, fix casts.
1365 (floatformat_from_double): Make "from" constant.
1366
3f2aacaf
DJ
13672003-09-15 Daniel Jacobowitz <drow@mvista.com>
1368
1369 * floatformat.c (floatformat_is_valid): New function.
1370 (get_field, put_field): Correct comments.
1371
aae66b9f
DD
13722003-09-06 Josef Zlomek <zlomekj@suse.cz>
1373
1374 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
1375 FIBHEAPKEY_T.
1376
60b04ee8
DD
13772003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1378
1379 PR bootstrap/12100
1380 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
1381 * configure: Rebuilt.
1382
2299a76d
DJ
13832003-08-27 Daniel Jacobowitz <drow@mvista.com>
1384
1385 * aclocal.m4: Include acx.m4 and no-executables.m4.
1386 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
1387 (LIB_AC_PROG_CC): Remove.
1388 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
1389 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
1390 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
1391 performing link tests.
1392 * configure: Regenerated.
1393
9ad1aa29
DD
13942003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
1395
a21da8bf 1396 * cp-demangle.c: Clarify what package(s) this is part of.
9ad1aa29 1397
dbb9d0f3
DD
13982003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
1399
1400 * pex-win32.c (pexecute): Mark parameters this_pname and
1401 temp_base as unused. Remove unused variables retries,
1402 sleep_interval. Initialize org_stdin, org_stdout.
1403 (pwait): Mark parameter flags as unused.
1404
14052003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
ab8c7bb1
DD
1406
1407 * pex-win32.c (fix_argv): Ensure that the executable pathname
1408 uses Win32 backslashes.
1409 (pexecute): Cast away constness when assigning *errmsg_arg.
1410
78c5b0a5
L
14112003-06-26 H.J. Lu <hongjiu.lu@intel.com>
1412
1413 * testsuite/demangle-expected: Add more GNU V3 testcases.
1414
70ecf948
DD
14152003-06-22 Zack Weinberg <zack@codesourcery.com>
1416
1417 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
1418 not HC_ASCII and HC_EBCDIC.
1419 Add documentation in form expected by gather-docs.
1420 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
1421 * Makefile.in, functions.texi: Regenerate.
1422
cbc0188b
DD
14232003-06-21 Zack Weinberg <zack@codesourcery.com>
1424
1425 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
1426 for charset determination.
1427
5f73c378
DD
14282003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
1429
1430 * configure.in: Add check for malloc.h needed by
1431 m68k for function free().
1432 * configure: Regenerated.
1433 * config.in: Add HAVE_MALLOC_H.
1434 * hashtab.c: include malloc.h were available for
1435 free().
1436
e69f6c8c 14372003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
cbc0188b 1438
e69f6c8c
DD
1439 PR bootstrap/10974
1440 * physmem.c: Update comment.
1441 * configure.in: Modify test for _system_configuration for older
1442 AIX systems.
1443
1444 * config.in, configure: Regenerated.
cbc0188b 1445
54c60684
DD
14462003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1447
1448 PR other/10810
1449 * test-demangle.c (getline): Fix fence-post error.
1450
5a4e47bd
NC
14512003-06-03 Nick Clifton <nickc@redhat.com>
1452
1453 * asprintf.c: Change comment to note that -1 is returned upon
1454 error.
1455 * vasprintf.c: Likewise.
1456 (vasprintf): Return -1 upon error.
1457 * functions.texi: Document changes to asprintf and vasprintf.
1458
916f5d13
DD
14592003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
1460
1461 * config.table: Accept i[345867]86 variant.
1462
e4f79046
JB
14632003-05-15 Jim Blandy <jimb@redhat.com>
1464
1465 * hex.c (_hex_value): Make this unsigned.
1466 (hex_value): Update documentation for new return type. hex_value
1467 now expands to an unsigned int expression, to avoid unexpected
1468 sign extension when we store it in a bfd_vma, which is larger than
1469 int on some platforms.
1470 * functions.texi: Regenerated.
1471
0f3538e7
DD
14722003-05-07 Josef Zlomek <zlomekj@suse.cz>
1473
1474 * splay-tree.c (splay_tree_predecessor): Fix comment.
1475 (splay_tree_successor): Fix comment.
1476
7108c5dc
JM
14772003-05-07 Jason Merrill <jason@redhat.com>
1478
eafaf5eb 1479 * hashtab.c (iterative_hash): New fn.
7108c5dc
JM
1480 * configure.in: Add AC_C_BIGENDIAN_CROSS.
1481 * aclocal.m4: Include accross.m4.
1482 * configure, config.in: Regenerate.
1483
0b555173
DD
14842003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1485
1486 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
1487 * configure: Regenerate.
1488
8730135a
DD
14892003-05-03 Carlo Wood <carlo@alinoe.com>
1490
1491 * cp-demangle.c: Fix typo in "char_traints" string-literal.
1492
341eccbc
DD
14932003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1494
1495 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
1496 (main): Test that we don't write too much data.
1497
2ed1e5cc
DD
14982003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1499
1500 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
1501 vsnprintf.
1502 * snprintf.c, vsnprintf.c: New files.
1503 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
1504 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
1505 Regenerate dependencies.
1506
1507 * functions.texi, configure, config.in: Regenerated.
1508
10b57b38
DD
15092003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1510
1511 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
1512 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
1513 and stpncpy.
1514 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
1515 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
1516 Regenerate dependencies.
1517
1518 * functions.texi, configure, config.in: Regenerated.
1519
ff773b85
DD
15202003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1521
1522 * argv.c: Fix comments.
1523 * calloc.c: Don't unnecessarily include "libiberty.h".
1524 (bzero): Add prototype.
1525 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1526 * getcwd.c (getcwd): Use standard definition to avoid conflicts
1527 with system headers.
1528 * hashtab.c (htab_traverse): Delete unused variables.
1529 * rename.c: Include "ansidecl.h".
1530 (rename): Use standard definition to avoid conflicts with system
1531 headers.
1532 * strsignal.c: Rely on ANSI_PROTOTYPES.
1533 * strstr.c: Check GNUC >= 2, not GNUC == 2.
1534 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1535 * vprintf.c: Include "ansidecl.h" earlier, rely on
1536 ANSI_PROTOTYPES.
1537 * vsprintf.c: Include "ansidecl.h" earlier, rely on
1538 ANSI_PROTOTYPES and possibly include <stdarg.h>.
cbc0188b 1539
ff773b85
DD
1540 * Makefile.in: Regenerate dependencies.
1541
bb325820
DD
15422003-04-15 DJ Delorie <dj@redhat.com>
1543
1544 * maint-tool (deps): Scan for headers in $srcdir also.
1545
258a4893
DD
15462003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1547
1548 PR target/10338
1549 PR bootstrap/10198
1550 PR bootstrap/10140
1551 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
1552 __mempcpy.
1553 * regex.c (regerror): Likewise.
1554
ff773b85
DD
15552003-04-14 Roger Sayle <roger@eyesopen.com>
1556
1557 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
1558 * memchr.c: Likewise.
1559 * strcasecmp.c: Likewise.
1560 * strncasecmp.c: Likewise.
1561 * strncmp.c: Likewise.
1562 * xatexit.c: Likewise.
1563 * xmalloc.c: Likewise.
1564
1565 * copysign.c: Use traditional function declaration instead of DEFUN.
1566 * sigsetmask.c: Likewise.
1567
1568 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
1569 * memset.c: Likewise.
1570
1571 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
1572 * memmove.c: Likewise.
1573
eec539c7
DD
15742003-04-14 Roger Sayle <roger@eyesopen.com>
1575
1576 * strdup.c (strdup): Tweak implementation to use memcpy.
1577
daf7c4ad
DD
15782003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1579
1580 * configure.in (HAVE_UINTPTR_T): Always define.
1581 * configure: Regenerated.
1582
aa072e59
AO
15832003-03-23 Alexandre Oliva <aoliva@redhat.com>
1584
1585 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
1586 instead of $$CC alone.
1587 (install_to_tooldir): Use it.
1588
f77ed96c
DD
15892003-17-03 Jan Hubicka <jh@suse.cz>
1590
1591 * hashtab.c (htab_traverse_noresize): Break out from ...
1592 * hashtab.c (htab_traverse): ... here.
1593
2336e177
DD
15942003-12-03 Jan Hubicka <jh@suse.cz>
1595
1596 * hashtab.c (htab_expand): Fix warning.
1597
1598 * hashtab.c (htab_expand): Compute the size of hashtable based
1599 on the number of elements actually used.
1600 (htab_traverse): Call htab_expand when table is too empty.
1601
d8cbbf95
DD
16022003-03-11 Carlo Wood <carlo@gnu.org>
1603
1604 * cplus-dem.c (demangle_integral_value): Correction to reflect
1605 patch of 2002-01-10 in order to also make negative multi-digits
1606 without leading underscore work.
1607
a01fefeb
DD
16082003-03-03 Mark Mitchell <mark@codesourcery.com>
1609
1610 * cplus-dem.c: Add license exception to copyright notice.
1611
638ceb1a
DD
16122003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1613
1614 * physmem.c: Formatting changes from upstream.
1615
ef803806
DD
16162003-02-24 Danny Smith <dannysmith@users.source.forge.net>
1617
1618 * physmem.c (physmem_total): Add _WIN32 support.
1619 (physmem_available): Likewise.
1620
181fa229
DD
16212003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1622
1623 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
1624 GSI_PHYSMEM.
1625 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
1626
cc529274
DD
16272003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1628
1629 * configure.in: Check for sys/systemcfg.h and
1630 _system_configuration.
1631 * physmem.c: Add support for AIX. Tweek formatting as per
1632 upstream coreutils beta.
1633
16342003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1635 Richard Earnshaw <rearnsha@arm.com>
1636 Geoffrey Keating <geoffk@apple.com>
cbc0188b 1637
cc529274
DD
1638 * configure.in: Check for sys/sysctl.h and sysctl.
1639 * physmem.c: Add support for *bsd and darwin.
1640 * Makefile.in: Generate depedency for physmem.o.
1641
192cbe66
DD
16422003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1643
1644 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
1645 Tru64 UNIX.
1646 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
1647 Tru64 UNIX.
1648
1649 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
1650 machine/hal_sysinfo.h, sys/table.h.
1651 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
1652 * configure, config.in: Regenerate.
1653
ff773b85
DD
16542003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1655
1656 * configure.in: Check for sys/sysmp.h and sysmp.
1657 * physmem.c: Pull upstream copy, add support for irix6.
1658
1659 * config.in, configure: Regenerated.
1660
900d2082
DD
16612003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1662
1663 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
1664 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
1665 pstat_getdynamic.
cbc0188b 1666
4938384a
DD
16672003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1668
1669 * Makefile.in (CFILES): Add physmem.c.
1670 (REQUIRED_OFILES): Add physmem.o.
1671 * configure.in: Check for sys/pstat.h.
1672 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
1673 * physmem.c: New file, copied from textutils.
1674
1675 * config.in, configure: Regenerated.
1676
ba61a412
DJ
16772003-02-20 Daniel Jacobowitz <drow@mvista.com>
1678
1679 * Makefile.in (CFILES): Add lrealpath.c.
1680 (REQUIRED_OFILES): Add lrealpath.o.
1681 (lrealpath.o): Add rule.
1682 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
1683 * configure.in: Add realpath and canonicalize_file_name to
1684 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
1685 for canonicalize_file_name.
1686 * lrealpath.c: New file.
1687 * make-relative-prefix.c: Update documentation.
1688 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
1689 * config.in: Regenerated.
1690 * configure: Regenerated.
1691 * functions.texi: Regenerated.
1692
25dfe0ac
DD
16932003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1694
1695 * cplus_dem.c: Fix typo: intializes -> initializes.
1696
8b90eef4
AO
16972003-02-20 Alexandre Oliva <aoliva@redhat.com>
1698
1699 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
1700 config.status.
1701 * configure: Rebuilt.
1702
fcd7c7c9
DD
17032003-02-13 Daniel Jacobowitz <drow@mvista.com>
1704
1705 Fix PR c++/7612.
1706 * cplus-dem.c (demangle_signature): Call string_delete.
1707 Remove extra string_init.
1708 (demangle_arm_hp_template): Call string_delete instead of
1709 string_clear. Add missing string_delete call.
1710 (demangle_qualified): Add missing string_delete call.
1711 (do_type): Remove unused variable btype. Add missing string_delete
1712 call. Call string_delete instead of string_clear.
1713 (demangle_fund_type): Move variable btype inside of the switch
1714 statement. Add missing string_delete call.
1715 (do_arg): Call string_delete instead of string_clear. Remove extra
1716 string_init.
1717 (demangle_nested_args): Free work->previous_argument.
1718
073c427b
DD
17192003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1720
1721 * acconfig.h: New file. Add uintptr_t.
1722 * config.in: Regenerated.
1723
f8bd3000
DD
17242003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
1725
1726 * libiberty.texi: Update to GFDL 1.2.
1727
85b9a938
DD
17282003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1729
1730 * Makefile.in (libiberty_topdir): New subst.
1731 (mkinstalldirs): Redefine in terms of the above.
1732 * configure.in: AC_SUBST it.
1733 * configure: Regenerate.
1734
578460f2
AO
17352003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1736
1737 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
1738 (info-subdir, install-info-subdir, clean-info-subdir)
1739 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
1740 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
1741 Pass $(FLAGS_TO_PASS).
1742
7f285245
AO
17432003-01-27 Alexandre Oliva <aoliva@redhat.com>
1744
1745 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
1746 /`$$CC -print-multi-os-directory`.
1747
5f9624e3
DJ
17482003-01-26 Daniel Jacobowitz <drow@mvista.com>
1749
1750 * hashtab.c (htab_create_alloc_ex): New function.
1751 (hatab_set_functions_ex): New function.
1752 (htab_delete, htab_expand): Support alternate allocation functions.
1753
9c2259b8
DD
17542003-01-24 Christopher Faylor <cgf@redhat.com>
1755
1756 * configure.in: Remove special pex-cygwin consideration.
1757 * configure: Regenerate.
1758 * pex-cygwin.c: Remove.
1759 * Makefile.in: Remove pex-cygwin.[co] lines.
1760
5a17353c
DD
17612003-01-24 Zack Weinberg <zack@codesourcery.com>
1762
1763 * Makefile.in (CFILES): Add pex-*.c.
1764 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
1765 (CONFIGURED_OFILES): Add pex-*.o.
1766 (TEXIFILES): Add pexecute.txh.
1767 (pexecute.o): Delete rule.
1768 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
1769 pex-unix.o, pex-win32.o): New rules.
1770 * configure.in: Change AC_INIT argument to xmalloc.c.
1771 Compute appropriate pexecute implementation and substitute it
1772 as @pexecute@.
1773
1774 * pexecute.c: Split up into...
1775 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
1776 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
1777 new files.
1778
1779 * functions.texi: Regenerate.
1780 * configure: Regenerate.
1781
eed2b28c
DD
17822003-01-20 Josef Zlomek <zlomekj@suse.cz>
1783
1784 * hashtab.c (htab_expand): Fix allocation of new entries.
1785
27a39a5f
DD
17862003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1787
1788 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
1789
1790 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
1791 mkinstalldirs command.
1792
b51c1553
DD
17932002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
1794
1795 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
1796 Define for hosts with HOST_EXECUTABLE_SUFFIX.
1797
756954c3
DD
17982002-11-24 Nick Clifton <nickc@redhat.com>
1799
1800 * make-relative-prefix.c (make_relative_prefix): Ensure return
1801 string is empty before using strcat to construct it.
1802
2a80c0a4
DD
18032002-11-22 Daniel Jacobowitz <drow@mvista.com>
1804
1805 * Makefile.in: Add make-relative-prefix.c.
1806 * make-relative-prefix.c: New file.
1807 * functions.texi: Rebuilt.
1808
768b20d8
JJ
18092002-11-16 Jakub Jelinek <jakub@redhat.com>
1810
1811 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
1812 used with arguments in traditional C' warnings.
1813
f52d1d64
JJ
18142002-10-16 Jakub Jelinek <jakub@redhat.com>
1815
1816 * config.table: Use mh-s390pic for s390x too.
1817
0d3deb8d
DD
18182002-10-06 Andreas Jaeger <aj@suse.de>
1819
1820 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
1821 variable and of strict-aliasing warning.
1822 (grow_vect): Use char as first parameter.
1823
1b67de92
DD
18242002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1825
1826 * Makefile.in (all): Fix multilib parallel build.
1827
585cc78f
DD
18282002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
1829
1830 * cp-demangle.c (demangling_new): Cast 0 to enum.
1831 (demangle_char): Cast return of strdup to char *.
1832 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
1833 (is_gnu_v3_mangled_dtor): Likewise.
1834 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
1835 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
1836 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
1837 * md5.c (md5_process_bytes): Cast results back to const void *.
1838 (md5_process_block): Add cast to const md5_uint32 *.
1839 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
1840 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
1841 unsigned short.
1842 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
1843 to void *.
1844 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
1845
e21b0cc1
NC
18462002-09-19 Nick Clifton <nickc@redhat.com>
1847
1848 * README: Update email addresses for bugs and patches.
1849
a54ba43f
DD
18502002-09-10 Mike Stump <mrs@apple.com>
1851
1852 * splay-tree.c (splay_tree_successor): Fix comments.
1853
18542002-09-11 Zack Weinberg <zack@codesourcery.com>
1855
1856 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
1857 * testsuite/Makefile.in: Adjust for test-demangle.
1858 * testsuite/regress-demangle: Deleted.
1859 * testsuite/test-demangle.c: New file.
1860 * testsuite/demangle-expected: Change \$ to $ throughout, now that
1861 this file is not being read by a shell script.
1862
01cea699
DD
18632002-09-05 Roger Sayle <roger@eyesopen.com>
1864
1865 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
1866
a2832523
DD
18672002-08-07 DJ Delorie <dj@redhat.com>
1868
1869 * regex.c (re_error_msgid): Just use a simple array of strings.
1870 (re_compile_pattern): Compensate.
1871 (re_comp): Likewise.
1872 (re_comp): Likewise.
1873 (regerror): Likewise.
1874
1e3f0be0
DD
18752002-07-29 Neil Booth <neil@daikokuya.co.uk>
1876
1877 * cplus-dem.c (PREPEND_BLANK): Remove.
1878
b851d07b
DD
18792002-07-10 Jason Merrill <jason@redhat.com>
1880
1881 * cp-demangle.c (demangle_identifier): Support extended Unicode
1882 characters.
1883
2a9dffbf
DD
18842002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1885
1886 * cp-demangle.c (demangle_v3_with_details): Wrap in
1887 !defined IN_GLIBCPP_V3.
1888
793011ca
DD
18892002-07-01 Mark Mitchell <mark@codesourcery.com>
1890
1891 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
1892 Set it for the "st" operator.
1893 (demangle_expression): Handle expressions with types as arguments.
1894
b39b76b8
DD
18952002-06-30 Douglas Rupp <rupp@gnat.com>
1896
1897 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
1898 * Makefile.in (OUTPUT_OPTION): Use.
1899
4748c6d8
DD
19002002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
1901
1902 * Makefile.in (install_to_libdir): Add $(DESTDIR).
1903 (install_to_tooldir): Likewise.
1904
f9c3326a
DD
19052002-06-17 Douglas Rupp <rupp@gnat.com>
1906
1907 * lbasename.c: Add 2002 to copyright.
1908 (IS_DIR_SEPARATOR): Remove VMS junk.
1909
18893690
DD
19102002-06-05 Geoffrey Keating <geoffk@redhat.com>
1911
1912 * hashtab.c (htab_create): New stub function for backward
1913 compatibility.
1914 (htab_try_create): Likewise.
1915
19162002-06-03 Geoffrey Keating <geoffk@redhat.com>
1917
1918 * hashtab.c (htab_create): Delete.
1919 (htab_try_create): Delete.
1920 (htab_create_alloc): New.
1921 (htab_delete): Support user-specified memory allocation.
1922 (htab_expand): Likewise.
1923
19242002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
1925
1926 * configure.in: Fix typo in the code checking for sys_errlist.
1927 * configure: Regenerated.
1928
9296c8b2
DD
19292002-05-13 Andreas Schwab <schwab@suse.de>
1930
1931 * config.table: Use mh-x86pic also for x86-64.
1932
52d98c2d
DD
19332002-05-08 Alexandre Oliva <aoliva@redhat.com>
1934
1935 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1936 script entry, and set LD to it when configuring multilibs.
1937 * configure: Rebuilt.
1938
cafa3917
DD
19392002-05-07 Mark Mitchell <mark@codesourcery.com>
1940
1941 * configure.in (AC_TYPE_PID_T): Use it.
1942 * configure: Regenerated.
1943 * getruntime.c: Include <sys/types.h>.
1944 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
1945
b1c933fc
RH
19462002-04-09 Richard Henderson <rth@redhat.com>
1947
1948 * hashtab.c (higher_prime_number): Use 7 as minimum.
1949 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
1950 (htab_find_slot_with_hash): Likewise.
1951
0c4460bb
DD
19522002-04-01 Phil Edwards <pme@gcc.gnu.org>
1953
1954 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
1955 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
1956 not compile if IN_GLIBCPP_V3 defined.
1957 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
1958
f2160d2b
DD
19592002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1960
3ebf1f59 1961 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
1962 if it is NULL.
1963
7dd4d42a
DD
19642002-03-27 DJ Delorie <dj@redhat.com>
1965
1966 * hex.c: Add documentation.
1967 (_hex_value): Provide non-ASCII empty table.
1968 (hex_init): Initialize the non-ASCII table.
1969 * functions.texi: Regenerate.
1970
38e57a35
DD
19712002-03-27 Mark Mitchell <mark@codesourcery.com>
1972
1973 * dyn-string.c: Add libgcc exception to copyright notice.
1974
cfed0715
DD
19752002-03-26 H.J. Lu (hjl@gnu.org)
1976
1977 * config.table: Support --with-build-subdir.
1978 * configure.in: Likewise.
1979 * configure: Rebuild.
1980
1504972f
DD
19812002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
1982
1983 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
1984 seen.
1985
35efcd67
DD
19862002-03-12 Mark Mitchell <mark@codesourcery.com>
1987
1988 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
1989 notice.
1990
dabc64ea
DD
19912002-03-11 Douglas B Rupp <rupp@gnat.com>
1992
1993 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
1994
3ddbd84c
JB
19952002-03-06 Jim Blandy <jimb@redhat.com>
1996
1997 * splay-tree.c (splay_tree_xmalloc_allocate,
1998 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
1999 prototyped definitions. Mark `data' arguments as unused.
2000
efdab807
AC
20012002-03-06 Andrew Cagney <ac131313@redhat.com>
2002
2003 * floatformat.c (floatformat_arm_ext_big): Delete definition.
2004
50d4562d
DD
20052002-03-04 Phil Edwards <pme@gcc.gnu.org>
2006
2007 * configure.in: Add --enable-install-libiberty option.
2008 * Makefile.in (INSTALLED_HEADERS): New variable.
2009 (install_to_libdir): Possibly also copy headers.
2010 * configure: Regenerated.
2011
20122002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
2013
2014 * xmalloc.c (xmalloc_fail): Clarify error message further.
2015
6e9980f5
DD
20162002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
2017
2018 * xmalloc.c (xmalloc_fail): Clarify error message.
2019
18893690 20202002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
2021
2022 * splay-tree.c (splay_tree_xmalloc_allocate,
2023 splay_tree_xmalloc_deallocate): New functions.
2024 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
2025 above functions and a dummy data pointer.
2026 (splay_tree_new_with_allocator): New function.
2027 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
2028 splay_tree_remove): Use the splay tree's allocation and
2029 deallocation functions.
2030
59ea9fe7
DD
20312002-02-19 Scott Snyder <snyder@fnal.gov>
2032
2033 * testsuite/demangle-expected: Add test case for infinite loop in
2034 demangler.
2035 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
2036 if do_type() doesn't make any progress --- prevents an infinite
2037 loop.
2038
6f848550
DD
20392002-02-18 Carlo Wood <carlo@gnu.org>
2040
2041 PR c++/5390
2042 * cplus-dem.c (demangle_integral_value): Accept multi-digit
2043 numbers that do not start with an underscore; This is needed
2044 for integer template parameters. This doesn't break anything
2045 because multi-digit numbers are never followed by a digit.
2046 * testsuite/demangle-expected: Corrected all mangled test
2047 cases with multi-digit template parameters: g++ 2.95.x does
2048 not generate underscores around these parameters.
2049
44354ae1
DD
20502002-02-05 Jason Merrill <jason@redhat.com>
2051
2052 * cplus-dem.c (flags): Add DMGL_VERBOSE
2053 (cplus_demangle_v3_p): Remove.
2054 (demangle_it): Add DMGL_TYPES to passed flags.
2055 * cp-demangle.c (cplus_demangle_v3_all): Remove.
2056 (cplus_demangle_v3_type): Remove.
2057 (cplus_demangle_v3): Add options parm.
2058
42da15d6
DD
20592002-02-02 H.J. Lu (hjl@gnu.org)
2060
2061 * cp-demangle.c (cp_demangle_type): Do not protect with
2062 IN_LIBGCC2.
2063 (cplus_demangle_v3_all): New.
2064 (cplus_demangle_v3): Call cplus_demangle_v3_all.
2065 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
2066
2067 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
2068 Initialized to cplus_demangle_v3.
2069 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
2070 of cplus_demangle_v3.
2071 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
2072 command line symbol.
2073
2074 * testsuite/regress-demangle: Pass the mangled name at the
2075 command line.
2076
b117c158
DD
20772002-02-01 H.J. Lu <hjl@gnu.org>
2078
2079 * cp-demangle.c (cp_demangle_type): Call demangling_new with
2080 DMGL_GNU_V3.
2081
c78d91b1
DD
20822002-01-31 Phil Edwards <pme@gcc.gnu.org>
2083
2084 * cp-demangle.c: Revert yesterday's change.
2085
bef8b55d
DD
20862002-01-31 Adam Megacz <adam@xwt.org>
2087
2088 * gcc/libiberty/configure.in: Treat mingw the same as cywin
2089 wrt HAVE_SYS_ERRLIST.
2090
2c955b8b
DD
20912002-01-30 Phil Edwards <pme@gcc.gnu.org>
2092
2093 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
2094 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
2095 cp_demangle_type.
2096 * testsuite/demangle-expected: New gnu-v3 test.
2097
58b1717a
RH
20982002-01-22 Momchil Velikov <velco@fadata.bg>
2099
2100 * configure.in (variable detection): Use arrays of unspecified
2101 size instead of plain integers.
2102
cc096b71
DD
21032002-01-18 DJ Delorie <dj@redhat.com>
2104
2105 * Makefile.in (TESTLIB): New. This library is for future
2106 testsuites.
2107 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
2108 break down by letter.
2109 (REQUIRED_OFILES): List long-to-compile files first.
2110 (maint-deps): New, target for updating dependencies.
2111 (dependencies): Update.
2112 * maint-tool: Add dependency-generating option.
2113 * configure.in: Check for _doprnt even if we're not providing it.
2114 * configure: Regenerate.
2115
2116 * _doprnt.c: Modifications to allow compiling on any platform.
2117 * copysign.c: Likewise.
2118 * putenv.c: Likewise.
2119 * setenv.c: Likewise.
2120 * vsprintf.c: Likewise.
2121
21222002-01-15 Douglas B Rupp <rupp@gnat.com>
2123
2124 * mkstemps.c (mkstemps): On VMS, open temp file with option
2125 that causes it to be deleted when closed.
2126
20d54542
DD
21272002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2128
c23795e2
DD
2129 * cp-demangle.c (long_options): Const-ify.
2130 * cplus-dem.c (long_options): Likewise.
2131
20d54542
DD
2132 * cplus-dem.c (mystrstr): Delete. All callers changed to use
2133 strstr instead.
2134
f348a7b1
DD
21352001-12-31 Ira Ruben <ira@apple.com>
2136
2137 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
2138 * configure: Regenerated.
2139
d86cd745
DD
21402001-12-24 Douglas B. Rupp <rupp@gnat.com>
2141
2142 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
2143 * configure: Regenerated.
2144
ae533646
DD
21452001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
2146
2147 PR other/2719
2148 * cplus-dem.c (consume_count): Treat negative count as an error.
2149 * testsuite/demangle-expected: Added testcase.
2150
c0eb281b
DD
2151Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
2152
2153 * configure.in: Hardcode that vfork works on VMS host.
2154 * configure: Regenerated.
2155
2da4c07f
RH
21562001-12-06 Richard Henderson <rth@redhat.com>
2157
2158 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
2159 (cplus_demangle): Support no_demangling.
2160
24acd898
DD
21612001-11-27 Zack Weinberg <zack@codesourcery.com>
2162
2163 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
2164 in libiberty context. Fix typo in leading comment.
2165 * configure.in: Fix various AC_DEFINEs so autoheader works.
2166 If any of vprintf, vsprintf, vfprintf is missing from libc,
2167 then AC_REPLACE_FUNCS(_doprnt).
2168
fec50157 21692001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 2170 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
2171
2172 * Makefile.in (stamp-h): Depend on Makefile for proper
2173 serialization.
2174 (*-subdir): Depend on config.h for proper serialization.
2175
5527febf
DD
21762001-11-26 DJ Delorie <dj@redhat.com>
2177
2178 * configure.in: Check for alloca.h (for regex.c and putenv.c).
2179 * configure: Regenerate.
2180 * config.h: Add HAVE_ALLOCA_H.
2181
941d74a0
DD
21822001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2183
2184 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
2185 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
2186 is available.
2187
dc579051
DD
2188Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
2189
2190 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
2191 * configure.in (HAVE_UINTPTR_T): Test for system defining
2192 uintptr_t and define HAVE_UINTPTR_T appropriately.
2193 * regex.c (uintptr_t): Do not provide a definition if the
2194 system provided one.
2195
2196 * regex.c (PREFIX): Provide an alternate definition for
2197 non-ANSI/ISO compilers.
2198 (ARG_PREFIX): Likewise.
2199
1a78a35a
DD
22002001-11-12 Jim Meyering <meyering@lucent.com>
2201
2202 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
2203 this code would end up calling gettext even in packages built
2204 with --disable-nls.
2205 * getopt.c (_): Likewise.
2206 * regex.c (_): Likewise.
2207
4e55c4b6
DD
22082001-11-03 Alan Modra <amodra@bigpond.net.au>
2209
2210 * configure.in: Cope with missing makeinfo.
2211 * configure: Regenerate.
2212
d311a83a
DD
22132001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2214
2215 * hex.c (hex_init): Provide empty stub.
2216
2217 * hex.c (hex_init): Delete.
2218 (_hex_value): Const-ify and initialize at compile-time.
2219
3bc62f91
DD
22202001-10-19 H.J. Lu <hjl@gnu.org>
2221
2222 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
2223 necessary.
2224
5d852400
DD
22252001-10-17 DJ Delorie <dj@redhat.com>
2226
2227 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
2228 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 2229 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
2230 Improve manual formatting.
2231 * functions.texi: Regenerate.
2232
ba19b94f
DD
22332001-10-15 DJ Delorie <dj@redhat.com>
2234
2235 * Makefile.in (TEXIFILES): Add fnmatch.txh.
2236 (maint-undoc): New.
2237 maint-tool: Add "undoc" tool.
2238 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
2239 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
2240 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
2241 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
2242 documentation.
2243 * fnmatch.txh: New.
2244 * functions.texi: Regenerate.
2245
56056af5
DD
22462001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
2247
2248 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
2249 * strtod.c: Use "ISO C" instead of "ANSI C".
2250 * functions.texi: Regenerate.
2251
99b58139
DD
22522001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
2253
2254 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
2255 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
2256 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
2257 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
2258 spelling. Give names to function arguments in documentation. Use
2259 (void) prototypes in documentation.
2260 * functions.texi: Regenerate.
2261
e6450fe5
DD
22622001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2263
2264 * argv.c (buildargv, tests, main): Const-ify.
2265 * cp-demangle.c (operator_code): Likewise.
2266 * cplus-dem.c (optable, libiberty_demanglers,
2267 cplus_demangle_set_style, cplus_demangle_name_to_style,
2268 print_demangler_list): Likewise.
2269 * hashtab.c (higher_prime_number): Likewise.
2270 * strcasecmp.c (charmap): Likewise.
2271 * strerror.c (error_info, strerror, main): Likewise.
2272 * strncasecmp.c (charmap): Likewise.
2273 * strsignal.c (signal_info): Likewise.
2274
da191b5b
DD
22752001-09-29 DJ Delorie <dj@redhat.com>
2276
2277 * configure: Regenerate.
2278
916aaa12
DD
22792001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2280
2281 * concat.c: Include stdlib.h.
2282
fa9f0e33
DD
22832001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2284
2285 * libiberty.texi: (Top level): Add syncodeindex pg. Add
2286 @dircategory and @direntry directives. Add @finalout.
2287 (many nodes): Lose the next,prev,up pointers on the @nide line.
2288 (Using, Supplemental Functions, Replacement Functions): Fix
2289 markup.
2290 (Functions): Move around, to allow makeinfo to build the manual
2291 without next,prev,up pointers in thye node lines.
2292 (Licenses): Fix typos.
2293
2294 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
2295 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
2296 * functions.texi: Regenerate.
2297
2298 * copying-lib.texi: Lose the next,prev,up pointers on the @node
2299 line.
2300
23012001-09-27 DJ Delorie <dj@redhat.com>
2302
2303 * configure.in: Don't use in-tree texinfo, because libiberty must
2304 be built before it. Check for makeinfo version 4 or higher.
2305 * functions.texi: Regenerate.
2306
39423523
DD
23072001-09-20 DJ Delorie <dj@redhat.com>
2308 Phil Edwards <pedwards@disaster.jaj.com>
2309
2310 * configure.in (MAKEINFO, PERL): Detect these.
2311 (--enable-maintainer-mode): Add.
2312 * configure: Regenerate.
2313 * Makefile.in (MAKEINFO, PERL): Define.
2314 (libiberty.info, libiberty.dvi, libiberty.html): New.
2315 (CFILES): Add bsearch.c.
2316 (CONFIGURED_OFILES): New, list of objects configure might add.
2317 (maint-missing, maint-buildall): New, for maintainers only.
2318 (clean, mostlyclean): Add info/dvi/html files.
2319 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
2320 * gather-docs: New, for maintainers.
2321 * maint-tool: New, for maintainers.
2322 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
2323 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
2324 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
2325 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
2326 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
2327 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
2328 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
2329 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
2330 documentation.
2331
66c94e19
DD
23322001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2333
2334 * concat.c (reconcat): Fix for traditional C.
2335
99ee3a8f
DD
23362001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2337
2338 * concat.c (reconcat): New function.
2339
54c20242
DD
23402001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2341
2342 * concat.c (vconcat_length, vconcat_copy, concat_length,
2343 concat_copy, concat_copy2): New functions.
2344 (concat): Use vconcat_length/vconcat_copy.
2345
2346 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
2347 Define.
2348
843f21be
DD
23492001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2350
2351 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
2352 VA_FIXEDARG & VA_CLOSE.
2353
2354 * vasprintf.c: Check HAVE_STRING_H when including string.h.
2355 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
2356 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
2357
8a423cb3
DD
23582001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2359
2360 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
2361
dc676635
DD
23622001-08-23 Ulrich Drepper <drepper@redhat.com>
2363
2364 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
2365
23662001-08-23 Ulrich Drepper <drepper@redhat.com>
2367
2368 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2369 instead of mbrtowc.
2370 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2371 wcslen, and __wcscoll instead of wcscoll.
2372
f080c76d
DD
23732001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2374
3ebf1f59
DD
2375 * fibheap.c (fibheap_init, fibnode_init): Remove.
2376 (fibheap_new, fibnode_new): Use xcalloc to allocate and
2377 initialize memory.
2378 (fibheap_insert): Remove check for node allocation failure.
f080c76d 2379
f01b59ed
DD
23802001-08-21 Richard Henderson <rth@redhat.com>
2381
2382 * Makefile.in (fibheap.o): Depend on config.h.
2383 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
2384 functions for inlining.
2385
2386Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
2387
2388 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
2389 hosting on cygwin.
2390 * configure: Regenerate.
2391
eb828599
AC
23922001-08-20 Andrew Cagney <ac131313@redhat.com>
2393
2394 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
2395 HARRIS_FLOAT_FORMAT.
2396 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
2397 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
2398 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
2399 (floatformat_m88110_harris_ext): New float formats.
2400
4e55c4b6
DD
24012001-08-20 Daniel Berlin <dan@cgsoftware.com>
2402
2403 * fibheap.c: New file. Fibonacci heap.
2404
2405 * Makefile.in (CFILES): Add fibheap.c.
2406 (REQUIRED_OFILES): Add fibheap.o.
2407 (fibheap.o): Add dependencies for fibheap.o.
2408
68a41de7
DD
24092001-08-17 Christopher Faylor <cgf@cygnus.com>
2410
2411 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
2412 * configure: Regenerate.
2413
8fc34799
DD
24142001-08-16 Richard Henderson <rth@redhat.com>
2415
2416 * hashtab.c (htab_hash_string): New.
2417
16bad250
AC
24182001-08-13 Andrew Cagney <ac131313@redhat.com>
2419
2420 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
2421 name.
2422
a9022147
DD
24232001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
2424
2425 * regex.c (wcs_regex_compile): Use appropriate string
2426 to compare with collating element.
2427 Fix the padding for the alignment.
2428
8aefe91a 24292001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
2430
2431 * lbasename.c (lbasename): Change function definition to return a
2432 const char pointer.
2433
e7e9b069
DD
24342001-08-07 Jason Merrill <jason_merrill@redhat.com>
2435
2436 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
2437 for".
2438
cc5144f8
DD
24392001-08-03 Richard Henderson <rth@redhat.com>
2440
2441 * Makefile.in (concat.o): Depend on config.h.
2442
8aefe91a
DD
24432001-07-30 Andreas Jaeger <aj@suse.de>
2444
2445 * concat.c: Include "config.h".
2446
86710ce2
DD
24472001-07-30 Andreas Jaeger <aj@suse.de>
2448
2449 * regex.c: Declare wcs functions only if compiling with
2450 MBS_SUPPORT.
2451 Don't use #elif for traditional C.
2452
24532001-07-23 Ulrich Drepper <drepper@redhat.com>
2454
2455 * regex.c: Revamp memory allocation for WCHAR functions to
2456 not use too much stack.
2457
24582001-07-30 Andreas Jaeger <aj@suse.de>
2459
2460 * regex.c: Declare wcs functions only if compiling with
2461 MBS_SUPPORT.
2462 Don't use #elif for traditional C.
2463
a5d8f731
DD
24642001-07-25 Daniel Jacobowitz <drow@mvista.com>
2465
2466 * Makefile.in (regex.o): Add dependency on config.h.
2467
6ad8a379
DD
24682001-07-18 Andreas Schwab <schwab@suse.de>
2469
2470 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
2471 underscore character.
2472
24732001-07-18 Ulrich Drepper <drepper@redhat.com>
2474
2475 * regex.c: Limit string length printed in debug messages to 100
2476 chars.
2477
24782001-07-18 Andreas Jaeger <aj@suse.de>
2479
2480 * regex.c: Place under LGPL version 2.1.
2481
2a6ef469
DD
24822001-07-10 Jeff Johnston <jjohnstn@redhat.com>
2483
2484 * Makefile.in: Add support for regex code.
2485 * regex.c: New file.
2486
7b78baae
DD
24872001-07-05 Mark Klein <mklein@dis.com>
2488
2489 * Makefile.in: Add ffs.c dependency.
2490 * configure.in: Add ffs.c.
2491 * ffs.c: New file.
2492
926150e2
DD
24932001-06-18 Richard Henderson <rth@redhat.com>
2494
2495 * concat.c: Include <sys/types.h>.
2496
11f6f21d
DD
24972001-06-11 Loren J. Rittle <ljrittle@acm.org>
2498
2499 bootstrap/3106
2500 * strerror.c (sys_nerr): Hide the OS header version.
2501 * strsignal.c (sys_nsig): Likewise.
2502
d42dae6c
DD
25032001-06-10 Richard Henderson <rth@redhat.com>
2504
2505 * concat.c: Include string.h. Fix int vs size_t usage.
2506 Simplify the iteration loops. Use memcpy.
2507
e05c6d27
DD
25082001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2509
2510 * partition.c: Fix misspelling of `implementation'.
2511
b50c4073
DD
25122001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2513
2514 * md5.c (md5_init_ctx): Declare constants as unsigned.
2515 (md5_process_block): Likewise.
2516
457161bf
DD
25172001-05-07 Zack Weinberg <zackw@stanford.edu>
2518
2519 * cp-demangle.c (demangle_v3_with_details,
2520 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
2521 function definition.
2522 * ternary.c: Use K+R style function definitions. Use PTR, not
2523 void *. Make arguments constant where possible.
2524
e00bc6a7
DD
25252001-05-07 Mark Mitchell <mark@codesourcery.com>
2526
2527 * splay-tree.h (splay_tree_max): New function.
2528 (splay_tree_min): Likewise.
2529
400ee7e1
DB
25302001-04-15 Daniel Berlin <dan@cgsoftware.com>
2531
2532 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
2533
2534 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 2535
d9697354
DD
25362001-04-03 Zack Weinberg <zackw@stanford.edu>
2537
2538 * make-temp-file.c (try): Inline.
2539
a7bf099b
DD
25402001-02-28 Richard Henderson <rth@redhat.com>
2541
2542 * Makefile.in (make-temp-file.o): Depend on config.h.
2543
30a1def2
DD
25442001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2545
2546 * memchr.c (memchr): Adjust condition to avoid infinite loop.
2547
079c672a
DD
25482001-03-23 Jakub Jelinek <jakub@redhat.com>
2549
2550 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
2551 `_' not followed by a digit is invalid.
2552
a88e356a
JB
25532001-03-22 Jim Blandy <jimb@redhat.com>
2554
2555 * cp-demangle.c (string_list_delete): Use dyn_string_delete
2556 instead of free, to free the contents as well as the string
2557 structure.
2558
1dffcc66
DD
25592001-03-21 Zack Weinberg <zackw@stanford.edu>
2560
2561 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
2562 Don't default P_tmpdir to anything. Try /var/tmp before
2563 /usr/tmp.
2564
25652001-03-20 Zack Weinberg <zackw@stanford.edu>
2566
2567 * choose-temp.c: Split off make_temp_file, and the code
2568 duplicated between it and choose_temp_base, into...
2569 * make-temp-file.c: ... here; new file.
2570
2571 * Makefile.in (CFILES): Add make-temp-file.c.
2572 (REQUIRED_OFILES): Add make-temp-file.o.
2573
e61231f1
JB
25742001-03-20 Jim Blandy <jimb@redhat.com>
2575
2576 * cp-demangle.c (struct demangling_def): New fields:
2577 is_constructor and is_destructor.
2578 (demangling_new): Initialize them.
2579 (demangle_ctor_dtor_name): Set them, if we detect a constructor
2580 or destructor.
2581 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
2582 is_gnu_v3_mangled_dtor): New functions.
2583
a9cbbe6d
DD
25842001-03-20 Jason Merrill <jason@redhat.com>
2585
2586 * cplus-dem.c (main): Skip initial $.
2587
b1e51b3c
DD
25882001-03-15 Michael Meissner <meissner@redhat.com>
2589
2590 * hashtab.c (higher_prime_number): Silence warning that 4294967291
2591 might be a signed integer under pre-ISO C systems.
2592
8aa30e60 25932001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 2594 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 2595
8aa30e60
DD
2596 * libiberty/lbasename.c: New file.
2597 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 2598
30673bf5
DD
25992001-03-06 Zack Weinberg <zackw@stanford.edu>
2600
2601 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
2602 * configure.in: Replace all alloca logic with a simple use of
2603 the above new macro.
2604 * config.table: Kill *-*-beos* entry.
2605 * config/mh-beos: Delete.
2606 * configure, config.in: Regenerate.
fa03f0a7 2607
30673bf5
DD
2608 * Makefile.in (ALLOCA, HFILES): Kill.
2609 (REQUIRED_OFILES): Add alloca.o.
2610 (alloca.o): Depend on libiberty.h.
2611 (argv.o): Don't depend on alloca-conf.h.
2612 * alloca-conf.h: Delete.
2613 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
2614 blocks. Provide the C alloca unconditionally. Use PTR where
2615 appropriate. Make i00afunc static.
2616 * argv.c: Don't include alloca-conf.h.
fa03f0a7 2617
5810f394
DD
26182001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2619
2620 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 2621
a9db032a
DD
26222001-02-16 Loren J. Rittle <ljrittle@acm.org>
2623
2624 * cplus-dem.c (main): Initialize style.
fa03f0a7 2625
8aefe91a
DD
26262001-02-02 Phil Edwards <pme@sources.redhat.com>
2627
2628 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
2629
bc9bf259
DD
26302001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
2631
2632 Add support for Java demangling under the v3 ABI:
2633 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
2634 (struct demangling_def): Add `style' field.
2635 (demangling_new): New parameter `style'. Set it in demangling_t.
2636 (demangle_prefix): Use NAMESPACE_SEPARATOR.
2637 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
2638 (cp_demangle): New parameter `style'. Pass it to demangling_new().
2639 (main): Call cp_demangle with extra parameter.
2640 (java_demangle_v3): New function.
2641 (java_builtin_type_names): New. Table of primitive type names used
2642 for Java demangling.
2643 (demangle_builtin_type): Look up in java_builtin_type_names if doing
2644 Java output.
2645 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
2646 demangling.
2647 (long_options): Remove obsolete `java' option.
2648 (main): Remove explicit handling of `java' option. Instead, pass style
2649 parameter in cplus_demangle flags as gdb does.
2650 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 2651
f6528837
DD
26522000-12-29 DJ Delorie <dj@redhat.com>
2653
2654 * fnmatch.c: Make the note about the origins of this file more
2655 accurate, at least until we can sync with glibc.
2656 * getopt.c: Ditto.
2657 * getopt1.c: Ditto.
2658 * md5.c: Ditto.
2659 * obstack.c: Ditto.
9d969b59 2660
c6da642e
DD
26612000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2662
2663 * bsearch.c: New file.
2664 * configure.in (funcs): Add bsearch.
2665 (AC_CHECK_FUNCS): Likewise.
2666 * configure, config.in: Regenerate.
2667
ae7d06ad 26682000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
2669
2670 * safe-ctype.c: #include "ansidecl.h".
2671 * strtod.c: Likewise.
2672
ae7d06ad 26732000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
2674
2675 * strtoul.c: Include safe-ctype.h, not ctype.h.
2676
ac424eb3
DD
26772000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
2678
2679 * safe-ctype.c: New file.
2680 * Makefile.in (CFILES): Add safe-ctype.c.
2681 (REQUIRED_OFILES): Add safe-ctype.o.
2682
2683 * argv.c: Define ISBLANK and use it, not isspace.
2684 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
2685 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
2686 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
2687 before calling TOLOWER(c)/TOUPPER(c).
2688
4415a860
DD
26892000-12-07 Mike Stump <mrs@wrs.com>
2690
2691 * Makefile.in (distclean): When cleaning, remove testsuite.
2692
849ee224
DD
26932000-12-05 Jason Merrill <jason@redhat.com>
2694
2695 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
2696 name before allocating the dyn_string.
2697
ae7d06ad 26982000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
2699
2700 * cp-demangle.c: s/new_abi/v3/.
2701 * cplus-dem.c: Likewise.
2702 (current_demangling_style): Now auto_demangling.
2703 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 2704 (main): Use standard symbol chars for auto_demangling.
e49a569c 2705
ae7d06ad 27062000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
2707
2708 * hashtab.c (higher_prime_number): Use a table, rather than a
2709 seive, to find the next prime.
ae7d06ad
NC
2710
27112000-11-22 H.J. Lu <hjl@gnu.org>
2712
2713 * cplus-dem.c (main): Handle gnat_demangling.
2714
27152000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
2716
2717 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
2718 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
2719 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
2720 argument form of AC_DEFINE in dummy definitions block. Use
2721 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
2722 in dummy block. Preload cache variables instead of bypassing
2723 tests, where possible.
2724 * acconfig.h: Removed.
ae7d06ad 2725
2ea7befd
DD
2726 * xmalloc.c (xmalloc_failed): New function, does error
2727 reporting on failed allocation.
2728 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 2729
f1775526
HPN
27302000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
2731
2732 * cplus-dem.c (cplus_demangle): Fix formatting.
2733 (grow_vect): Ditto.
2734 (ada_demangle): Ditto.
2735 (internal_cplus_demangle): Ditto.
2736 (mop_up): Ditto.
2737
27382000-11-21 H.J. Lu <hjl@gnu.org>
2739
2740 * cplus-dem.c (main): Handle java_demangling.
2741
ae7d06ad 27422000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
2743
2744 * cplus-dem.c (grow_vect): Prototype.
2745 (ada_demangle): Cast the arg of ctype macros to unsigned char.
2746
5dd42ef4
HPN
27472000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
2748
2749 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
2750 parameter `option'.
2751
296731c1
DD
27522000-11-15 Kenneth Block <kenneth.block@compaq.com>
2753
8944fb9d 2754 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
2755 be used in GCC.
2756
6e53a714 27572000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 2758
5dd42ef4 2759 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
2760 list.
2761
99a4c1bd
HPN
27622000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
2763
2764 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
2765 xcalloc depending on htab->return_allocation_failure. Return zero
2766 if calloc fails.
99a4c1bd
HPN
2767 (htab_create): Update comment to cover memory allocation.
2768 (htab_try_create): New.
2769 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 2770 Update comment to cover this.
99a4c1bd 2771
e0f3df8f
HPN
27722000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
2773
2774 * hashtab.c: Change void * to PTR where necessary.
2775 (htab_create, htab_expand): Correct formatting of comment before
2776 function.
2777
ae7d06ad 27782000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
2779
2780 * cp-demangle.c (string_list_def): Add caret_position and comments.
2781 (result_caret_pos): New macro.
2782 (result_append_string): Rename to...
2783 (result_add_string): ... this, and insert at caret position.
ae7d06ad 2784 Rename throughout.
59666b35
DD
2785 (result_append): Rename to...
2786 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 2787 throughout.
59666b35
DD
2788 (result_append_char): Rename to...
2789 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 2790 throughout.
59666b35
DD
2791 (result_append_space): Remove.
2792 (string_list_new): Initialize caret position.
2793 (result_add_separated_char): Use caret position.
2794 (result_get_caret): New funtion.
2795 (result_set_caret): Likewise.
2796 (result_shift_caret): Likewise.
2797 (result_previous_char_is_space): Likewise.
2798 (substitution_start): Use caret position.
2799 (substitution_add): Likewise.
2800 (demangling_new): Initialize caret position.
2801 (demangle_encoding): Use caret position.
ae7d06ad 2802 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
2803 (demangle_type_ptr): Use switch statement. Handle pointers to
2804 arrays. Don't use result_append_space. Use caret position.
2805 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
2806 call to demangle_array_type.
2807 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 2808
ae7d06ad 28092000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
2810
2811 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
2812
28132000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
2814
2815 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
2816
28172000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2818
2819 * splay-tree.c: #include <stdio.h>.
2820
28212000-09-14 Hans-Peter Nilsson <hp@axis.com>
2822
2823 * testsuite/demangle-expected: Add two tests for anonymous
2824 namespaces.
2825 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
2826
28272000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
2828
2829 * splay-tree.c (splay_tree_predecessor): New function.
2830 (splay_tree_successor): Likewise.
ae7d06ad
NC
2831
28322000-09-10 Hans-Peter Nilsson <hp@axis.com>
2833
2834 * testsuite/demangle-expected: Add four tests for type_info
2835 mangling.
2836 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
2837 for a non-template non-qualified type_info function or node.
2838
28392000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2840
2841 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
2842
28432000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2844
2845 * md5.c: #include "ansidecl.h".
2846
28472000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2848
2849 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
2850 (demangle_type): Handle substitution candidates correctly in the
2851 face of special substitutions.
ae7d06ad
NC
2852
28532000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2854
2855 * cp-demangle.c (demangle_encoding): Rename variable.
2856 (demangle_name): Rename parameter. Handle return type
2857 suppression.
2858 (demangle_nested_name): Rename parameter.
2859 (demangle_prefix): Likewise. Change return type suppression.
2860 (demangle_unqualified_name): Add parameter. Flag constructors and
2861 conversion operators.
2862 (demangle_special_name): Fix comment.
2863 (demangle_type): Rename variable.
2864 (demangle_bare_function_type): Check for missing return type and
2865 parameter.
2866 (demangle_class_enum_type): Rename parameter.
2867 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
2868
28692000-08-31 DJ Delorie <dj@redhat.com>
2870
2871 * configure.in (Cygwin): special case cygwin only when we're
2872 building cygwin, not when we're hosting cygwin.
2873
28742000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2875
2876 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
2877 <expression>.
ae7d06ad
NC
2878
28792000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2880
2881 * cp-demangle.c (demangle_type_ptr): Increment position past
2882 pointer and reference characters.
ae7d06ad
NC
2883
28842000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2885
2886 * cp-demangle.c (demangle_nv_offset): New function.
2887 (demangle_v_offset): Likewise.
2888 (demangle_call_offset): Likewise.
2889 (demangle_special_name): Update thunk demangling to comply with
2890 ABI changes.
ae7d06ad
NC
2891
28922000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2893
2894 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
2895 (substitution_def): Remove template_parm_number.
2896 (NOT_TEMPLATE_PARM): Remove.
2897 (result_insert_string): New macro.
2898 (result_insert): Likewise.
2899 (result_insert_char): Likewise.
2900 (substitution_add): Remove last parameter. Don't store template
2901 parm number.
2902 (BFT_NO_RETURN_TYPE): Define as NULL.
2903 (demangle_encoding): Adjust call to demangle_bare_function_type.
2904 (demangle_name): Adjust substitution. Adjust call to
2905 substitution_add.
2906 (demangle_prefix): Adjust call to substitution_add.
2907 (demangle_identifier): Handle anonymous namespaces.
2908 (demangle_operator_name): Change demangling of vendor-extended
2909 operator to match ABI changes.
2910 (demangle_type_ptr): Change parameters. Make recursive. Handle
2911 substitutions here.
2912 (demangle_type): Adjust calls to demangle_template_param,
2913 substitution_add, and demangle_type_ptr. Fix substitution of
2914 templated types.
2915 (demangle_function_type): Change parameter to a pointer.
2916 (demangle_bare_function_type): Likewise. Adjust insertion point.
2917 (demangle_template_param): Remove last parameter.
2918 (demangle_expr_primary): Remove unused variable. Adjust call to
2919 demangle_template_param.
2920 (is_mangled_char): Accept `$' and `.'.
2921 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
2922 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
2923
29242000-08-31 Hans-Peter Nilsson <hp@axis.com>
2925
2926 * testsuite/demangle-expected: Add nine tests for
2927 underscore-after-number followed by five tests for name-signature
2928 delimiter.
2929
29302000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
2931
2932 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
2933
29342000-08-28 Jason Merrill <jason@redhat.com>
2935
2936 * Makefile.in (REQUIRED_OFILES): Add md5.o.
2937 (CFILES): Add md5.c.
2938 * md5.c: New file.
2939
29402000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2941
2942 * cp-demangle.c (demangle_name): Initialize template_p in local
2943 name case. Don't re-add substitutions as candidates.
2944 (demangle_nested_name): Use <unqualified-name>.
2945 (demangle_prefix): Likewise. Don't add template names as
2946 substitution candidates twice, or re-add a substitution or the
2947 last prefix component.
2948 (demangle_local_name): Adjust output format.
ae7d06ad
NC
2949
29502000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2951
2952 * cp-demangle.c (result_add_separated_char): Change parameter to
2953 int.
2954 (substitution_add): Don't check for duplicates. Check if
2955 previously allocated size is zero.
2956 (demangle_name): Remove duplicate check for std substitution.
2957 Clear template flag appropriately.
2958 (demangle_prefix): Remove argument to demangle_substitution.
2959 Don't check that template flag is already set.
2960 (demangle_operator_name): Add pt operator.
2961 (demangle_type): Don't treat r as built-in type. Remove argument
2962 to demangle_substitution. Fix substitution candidate mechanics.
2963 Handle <template-template-parm>s. Improve comments.
2964 (demangle_template_param): Don't handle template arg lists here.
2965 (demangle_substitution): Remove parameter.
2966 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
2967
29682000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
2969
2970 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
2971
29722000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
2973
2974 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
2975 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
2976 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
2977
29782000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2979
2980 * cp-demangle.c (result_close_template_list): Remove function.
2981 (result_add_separated_char): New function.
2982 (result_open_template_list): New macro.
2983 (result_close_template_list): Likewise.
2984 (demangle_prefix): Don't set template_p if the
2985 prefix ends with a ctor name.
2986 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
2987 (demangle_type): Check for template args after substitution.
2988 (demangle_template_args): Use result_open_template_list.
d3e85005 2989
ae7d06ad 29902000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 2991
ae7d06ad 2992 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 2993
ae7d06ad 29942000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
2995
2996 * config/mh-openedition.h: Added -DLE370 definition.
2997
a9f34fb6
JL
29982000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
2999
3000 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
3001 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
3002 Cast program to 'char *' in errmsg_arg assignment.
3003 (PWAIT_ERROR): Define.
3004 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
3005 to DJGPP's WIF* macros.
3006
90aaccd1 30072000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 3008 Jeff Law <law@cygnus.com>
90aaccd1 3009
ae7d06ad 3010 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 3011
90aaccd1 3012 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
3013 * rename.c: Include config.h, unistd.h
3014 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 3015
6ef554e3
HPN
30162000-07-24 Hans-Peter Nilsson <hp@axis.com>
3017
3018 * cplus-dem.c (work_stuff_copy_to_from): New.
3019 (delete_non_B_K_work_stuff): New.
3020 (delete_work_stuff): New.
3021 (mop_up): Break out work_stuff partly destruction to
3022 delete_non_B_K_work_stuff.
3023 (iterate_demangle_function): New.
3024 (demangle_prefix): Call iterate_demangle_function instead of
3025 demangle_function_name. Leave handling of name-signature
3026 __-delimiters to iterate_demangle_function.
3027 (demangle_integral_value): Strip an optional
3028 following underscore cautiously. Handle negative numbers.
3029
ae7d06ad 30302000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 3031
ae7d06ad 3032 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
3033 if (AUTO_DEMANGLING || GNU_DEMANGLING)
3034
ae7d06ad
NC
30352000-07-21 Alex Samuel <samuel@codesourcery.com>
3036
3037 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
3038 allocating ctor mangling.
3039 (demangle_array_type): Handle empty and non-constant array length.
3040
b1233257 30412000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
3042 Jeff Law <law@cygnus.com>
3043
3044 * configure.in (AC_CHECK_HEADERS): Add time.h.
3045 (AC_HEADER_TIME): Add check.
3046 * configure, config.in: Regenerate.
3047 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
3048
3049 * configure.in (AC_CHECK_HEADERS): Add limits.h.
3050 * configure, config.in: Regenerate.
3051 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
3052 * strtol.c, strtoul.c: #include "config.h". Portably #include
3053 <limits.h> and/or <sys/param.h>.
3054 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 3055
7d3ffcaf
JL
3056 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
3057 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
3058 * configure, config.in: Regenerate.
3059 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
3060
b1233257
JL
3061 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
3062
ae7d06ad
NC
30632000-07-21 Mike Stump <mrs@wrs.com>
3064
3065 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
3066 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
3067
30682000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3069
3070 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
3071
3072 * setenv.c (setenv): Initialize variable `ep'.
3073
3074 * sigsetmask.c (abort): Prototype.
3075
3076 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
3077 __STDC__ for stdarg.h include.
3078 (int_vasprintf): Prototype.
3079 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
3080 definition. Cast `global_total_width' in comparison.
3081 (main): Prototype. Return a value.
3082
3083 * vfork.c (fork): Prototype.
3084
3085 * xexit.c: Include config.h.
3086
9adf30b2
JL
30872000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
3088
3089 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
3090 and print it with %u.
3091
2ed78d1b
HPN
30922000-07-17 Hans-Peter Nilsson <hp@axis.com>
3093
3094 * testsuite/regress-demangle (failed test): Show result and
3095 expected output.
3096
0473bdf7
AH
30972000-07-07 Andrew Haley <aph@cygnus.com>
3098
3099 * cplus-dem.c (main): fflush() after emitting last char before
3100 waiting for input.
3101
03d5f569
JM
31022000-06-28 Alex Samuel <samuel@codesourcery.com>
3103
3104 * cp-demangle.c (demangle_encoding): Accept no substitutions.
3105 (demangle_name): Handle <substitution> followed by
3106 <unqualified-template-name>.
3107 (demangle_type): Follow special substitutions with
3108 <class-enum-type>
3109 (demangle_subtitution): Set template_p for special substitutions.
3110 (main): Fix typos.
ae7d06ad 3111
03d5f569
JM
31122000-06-27 Alex Samuel <samuel@codesourcery.com>
3113
3114 * cp-demangle.c (demangle_special_name): Swap base and derived
3115 class when demangling construction vtables.
3116
31172000-06-21 Alex Samuel <samuel@codesourcery.com>
3118
3119 * cp-demangle.c: Don't include ctype.h.
3120 (IS_DIGIT): New macro.
3121 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
3122 instead of isdigit and isalpanum.
3123 (demangling_def): Make name and next const pointers.
3124 (STATUS_ALLOCATION_FAILED): New status code.
3125 (dyn_string_append_space): Handle failure in
3126 dyn_string_append_char.
3127 (int_to_dyn_string): Likewise. Change return value to status_t.
3128 (string_list_new): Handle failure of dyn_string_init.
3129 (result_close_template_list): Change return type to status_t.
3130 Handle failure in dyn_string_append.
3131 (result_push): Change return value to status_t. Handle failure in
3132 string_list_new. Handle failure of result_push throughout.
3133 (substitution_add): Change return value to status_t. Handle
3134 dyn_string failures. Handle failure of substitution_add
3135 throughout.
3136 (template_arg_list_new): Return NULL on allocation failure.
3137 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
3138 Handle error result throughout.
3139 (result_append): Likewise.
3140 (result_append_char): Likewise.
3141 (result_append_space): Likewise.
3142 (demangling_new): Make argument a const pointer. Handle
3143 allocation failures.
3144 (demangle_template_args): Handle failure in template_arg_list_new
3145 and result_close_template_list.
3146 (demangle_discriminator): Return if int_to_dyn_string fails.
3147 (cp_demangle): Likewise.
3148 (cp_demangle_type): New function.
3149 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
3150 memory allocation failure.
3151 (main): Likewise.
3152 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
3153 IN_LIBGCC2.
3154 (dyn_string_init): Change return value to int. Handle
3155 RETURN_ON_ALLOCATION_FAILURE case.
3156 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
3157 (dyn_string_release): Delete the dyn_string.
3158 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
3159 (dyn_string_copy): Change return type to int.
3160 (dyn_string_copy_cstr): Likewise.
3161 (dyn_string_prepend): Likewise.
3162 (dyn_string_prepend_cstr): Likewise.
3163 (dyn_string_insert): Likewise.
3164 (dyn_string_insert_cstr): Likewise.
3165 (dyn_string_append): Likewise.
3166 (dyn_string_append_cstr): Likewise.
3167 (dyn_string_append_char): Likewise.
3168 (dyn_string_substring): Likewise.
ae7d06ad 3169
eb383413 31702000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 3171
eb383413
L
3172 * cp-demangle.c (demangle_operator_name): Add spaces before
3173 names beginning with a letter: delete, delete[], new, new[],
3174 sizeof.
3175 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 3176
eb383413
L
3177Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
3178
3179 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
3180
3181Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
3182
3183 * cp-demangle.c (stdio.h): File included unconditionaly.
3184 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
3185 * dyn-string.c (stdio.h): File included.
3186 * partition.c (partition_print): No `&' needed to take the address of
3187 a function.
3188
31892000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3190
3191 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 3192
eb383413
L
3193 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
3194
3195 * cp-demangle.c (demangle_char): Change parameter from char to int.
3196 (demangle_expression, demangle_expr_primary): Remove extra
3197 semi-colon in prototype.
3198
3199 * dyn-string.c (dyn_string_append_char): Change parameter from
3200 char to int.
3201
3202 * memcmp.c (memcmp): Constify.
3203
3204 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
3205 __extension__.
3206
3207 * partition.c (elem_compare): Prototype. Don't cast away
3208 const-ness.
3209
3210 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 3211
eb383413
L
32122000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3213
3214 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
3215
3216 * cp-demangle.c: Include demangle.h.
3217 (template_arg_list_new): DeANSIfy.
3218 (cp_demangle): Make static and add prototype.
3219 (operator_code, operators): Constify.
3220 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
3221
32222000-06-05 Alex Samuel <samuel@codesourcery.com>
3223
3224 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
3225 unsigned char.
3226 (demangle_unqualified_name): Likewise.
3227 (demangle_number_literally): Likewise.
3228 (demangle_type): Likewise.
3229 (demangle_substitution): Likewise.
3230 (is_mangled_char): Likewise, for isalnum.
3231
32322000-06-04 Alex Samuel <samuel@codesourcery.com>
3233
3234 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
3235 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
3236 (cp-demangle.o): New dependency.
3237 (dyn-string.o): Likewise.
3238
3239 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
3240
3241 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
3242 demangler.
3243 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
3244 demangling mode.
3245 (gnu_new_abi_symbol_characters): New function.
3246 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
3247 file.
3248 * cp-demangle.c: New file.
ae7d06ad 3249
f03aa80d
AC
3250Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
3251
3252 * floatformat.c: Add name to each floatformat field.
3253
77bfb694
JL
3254Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
3255
3256 * Makefile.in (objalloc.o): Depend on config.h
3257
5c82d20a
ZW
32582000-05-29 Zack Weinberg <zack@wolery.cumb.org>
3259
eb383413 3260 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
3261 if HAVE_STRING_H.
3262 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
3263 * objalloc.c: Include config.h. Include stdlib.h and don't
3264 declare malloc or free if HAVE_STDLIB_H.
3265 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
3266 else declare malloc without prototype. Include string.h if
3267 HAVE_STRING_H, else declare memset without prototype. Don't
3268 include stddef.h.
3269
eb383413
L
32702000-05-23 Mike Stump <mrs@wrs.com>
3271
3272 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 3273 -j3.
eb383413
L
3274
32752000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3276
3277 * xmalloc.c: Include config.h for HAVE_SBRK definition.
3278
32792000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
3280
ae7d06ad 3281 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
3282 probably zero, also eliminate a warning on alpha.
3283
32842000-05-15 David Edelsohn <edelsohn@gnu.org>
3285
3286 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
3287 on $(enable_shared).
3288
32892000-05-10 Jakub Jelinek <jakub@redhat.com>
3290
3291 * config.table: Use mh-sparcpic for sparc*-*-*.
3292
32932000-05-08 Nick Clifton <nickc@cygnus.com>
3294
3295 * Makefile.in (CFILES): Add strncmp.c.
3296 (NEEDED): Add strncmp.
3297
32982000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 3299
eb383413
L
3300 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
3301 Cast the arguments to `islower' to `unsigned char'.
3302 (print_demangler_list): Prototype.
3303
3304Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
3305
3306 * sort.c (UCHAR_MAX): Provide fallback definition.
3307
33082000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
3309
3310 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
3311 SUBDIRS.
3312
eb383413
L
33132000-04-28 Kenneth Block <block@zk3.dec.com>
3314 Jason Merrill <jason@casey.cygnus.com>
3315
ae7d06ad
NC
3316 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
3317 (cplus_demangle_set_style): New function for setting style.
3318 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
3319
33202000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3321
3322 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
3323
3324 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
3325 (libiberty_AC_FUNC_STRNCMP): Invoke.
3326
3327 * strncmp.c: New file.
3328
3329Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
3330
3331 * hashtab.c (htab_expand): Add prototype.
3332 (find_empty_slot_for_expand): Likewise.
3333
33342000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3335
3336 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
3337 match prototype.
3338 (htab_expand): Cast the return value of xcalloc.
3339
33402000-04-24 Mark Mitchell <mark@codesourcery.com>
3341
3342 * hashtab.c (hash_pointer): New function.
3343 (eq_pointer): Likewise.
3344 (htab_hash_pointer): New variable.
3345 (htab_eq_pointer): Likewise.
3346
33472000-04-23 Mark Mitchell <mark@codesourcery.com>
3348
3349 * sort.c (sort_pointers): Fix endianness bugs.
3350
3351 * sort.c: New file.
3352 * Makefile.in (CFILES): Add sort.c
3353 (REQUIRED_OFILES): Add sort.o.
3354 (sort.o): New target.
3355
19be4303
JL
33562000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3357
3358 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
3359 4.3BSD systems.
3360
eb383413
L
3361Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3362
3363 * hashtab.c: Various minor cleanups.
3364 (htab_find_slot_with_hash): INSERT is now enum insert_option.
3365 (htab_find_slot): Likewise.
3366
33672000-04-16 Dave Pitts <dpitts@cozx.com>
3368
3369 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 3370
afe36a78
RH
33712000-04-05 Richard Henderson <rth@cygnus.com>
3372
3373 * splay-tree.c (splay_tree_remove): New.
3374
eb383413
L
33752000-03-30 Mark Mitchell <mark@codesourcery.com>
3376
3377 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
3378 codes.
3379 (htab_find_with_hash): Likewise.
3380 (htab_find_slot_with_hash): Likewise.
ae7d06ad 3381
eb383413
L
33822000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3383
3384 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
3385 unless it will be used. Rearrange loop for better
3386 optimization.
3387 (higher_prime_number): Add static prototype.
3388
b4fe2683
JM
3389Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
3390
3391 * Makefile.in (partition.o): Depend on config.h
3392
33932000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
3394
3395 * hashtab.c (find_empty_slot_for_expand): New function.
3396 (htab_expand): Use it instead of htab_find_slot.
3397 (htab_find_with_hash): Renamed from htab_find; now accepts extra
3398 argument HASH.
3399 (htab_find_slot_with_hash): Likewise for htab_find_slot.
3400 (htab_find): New wrapper function.
3401 (htab_find_slot): Likewise.
3402 (htab_traverse): Pass slot, not entry, to called function.
3403
34042000-03-09 Alex Samuel <samuel@codesourcery.com>
3405
3406 * Makefile.in (CFILES): Add partition.c.
3407 (REQUIRED_OFILES): Add partition.o.
3408 (partition.o): New rule.
3409 * partition.c: New file.
ae7d06ad 3410
b4fe2683
JM
34112000-03-09 Zack Weinberg <zack@wolery.cumb.org>
3412
3413 * hashtab.c (htab_create): Set del_f.
3414 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
3415 Use it.
3416
34172000-03-08 Zack Weinberg <zack@wolery.cumb.org>
3418
3419 * hashtab.c: Remove debugging variables (all_searches,
3420 all_collisions, all_expansions). Delete
3421 all_hash_table_collisions.
3422 (create_hash_table, delete_hash_table, empty_hash_table,
3423 find_hash_table_entry, remove_element_from_hash_table_entry,
3424 clear_hash_table_slot, traverse_hash_table, hash_table_size,
3425 hash_table_elements_number, hash_table_collisions): Rename to:
3426 htab_create, htab_delete, htab_empty, htab_find_slot,
3427 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
3428 htab_elements, htab_collisions.
3429 (htab_find): New function, handles common case where you don't
3430 plan to add or delete an entry.
3431 (htab_expand): Don't create a whole new table, just a new
3432 entry vector.
3433 (htab_find_slot): Simplify logic.
3434
08372f14
ILT
34351999-08-03 Ian Lance Taylor <ian@zembu.com>
3436
3437 * floatformat.c: Add casts to avoid signed/unsigned warnings.
3438 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
3439
3440 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
3441 $(TARGETLIB)n so it works on MSDOS.
3442 (install_to_tooldir): Likewise.
3443
9c8ac5a9
ILT
34441999-07-21 Ian Lance Taylor <ian@zembu.com>
3445
3446 From Mark Elbrecht:
3447 * makefile.dos: Remove; obsolete.
8f36e47c 3448 * configure.bat: Remove; obsolete.
9c8ac5a9 3449
0c0a36a4
ILT
34501999-07-11 Ian Lance Taylor <ian@zembu.com>
3451
3452 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3453 warning.
3454
34552000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3456
3457 * pexecute.c: Conditionally include string.h.
b4fe2683 3458 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
3459
34602000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3461
3462 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
3463 we're using gcc.
3464
3465 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
3466
34671999-12-27 Geoff Keating <geoffk@cygnus.com>
3468
3469 * vasprintf.c (int_vasprintf): Don't re-read the format character
3470 as this mishandles strings like '%%s'.
3471
34721999-12-05 Mark Mitchell <mark@codesourcery.com>
3473
3474 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
3475 rather than struct splay_tree_node.
3476 (splay_tree_insert): Use struct splay_tree_s rather than struct
3477 splay_tree.
3478
3479Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
3480
3481 * hashtab.c (sys/types.h): File included.
3482
34831999-11-22 Jason Merrill <jason@casey.cygnus.com>
3484
3485 * strtoul.c, strtol.c, random.c: Remove advertising clause from
3486 BSD license, pursuant with
3487
3488 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
3489
3490Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
3491
3492 * hashtab.c: Include stdio.h.
3493
3494Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
3495
3496 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
3497
3498Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
3499
3500 * xstrdup (sys/types.h): Include this file.
3501
35021999-10-28 Nathan Sidwell <nathan@acm.org>
3503
3504 * Makefile.in (SUBDIRS): New macro.
3505 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
3506 avoid multiple subdirectory cleaning.
3507 (*-subdir): Use SUBDIRS.
3508
35091999-10-25 Jim Kingdon <http://developer.redhat.com/>
3510
3511 * cplus-dem.c: Move declarations of standard_symbol_characters and
3512 hp_symbol_characters inside #ifdef MAIN to avoid compiler
3513 warnings.
3514
35151999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
3516
3517 * hashtab.c (find_hash_table_entry): When returning a
3518 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
3519 (clear_hash_table_slot): New function which deletes an entry
3520 by its position in the table, not its value.
3521 (traverse_hash_table): New function which calls a hook
3522 function for every live entry in the table.
3523
35241999-10-19 Mark Mitchell <mark@codesourcery.com>
3525
3526 * cplus-dem.c (INTBUF_SIZE): New macro.
3527 (string_append_template_idx): New function.
3528 (demangle_expression): Likewise.
3529 (demangle_integral_value): Use it.
3530 (demangle_real_value): New function, split out from ...
3531 (demangle_template_value_parm): ... here. Use
3532 string_append_template_idx. Use demangle_real_value.
3533 (demangle_template): Use string_append_template_idx.
3534 (demangle_qualified): Use consume_count_with_underscores.
3535 (get_count): Tweak formatting.
3536 (do_type): Use string_append_template_idx.
b4fe2683 3537
0c0a36a4
ILT
35381999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3539
3540 * calloc.c: Add a public domain notice.
3541
3542Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
3543
3544 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
3545
3546Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
3547
3548 * Makefile.in (CFILES): Add hashtab.c
3549 (REQUIRED_OFILES): Add hashtab.o
3550 (hashtab.o): Add dependencies.
3551 * hashtab.c: New file
3552
3553Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
3554
3555 * basename.c (DIR_SEPARATOR): New macro.
3556 (DIR_SEPARATOR_2): Likewise.
3557 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
3558 (IS_DIR_SEPARATOR): Likewise.
3559 (main): Handle MSDOS style pathname.
3560
35611999-10-11 Mark Mitchell <mark@codesourcery.com>
3562
3563 * cplus-dem.c (do_type): Handle pointer to member types whose
3564 enclosing classes have namespace scope.
3565
3566Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
3567
3568 * config.table: Provide a backup shell for executing move-if-change.
3569
35701999-10-02 Mark Mitchell <mark@codesourcery.com>
3571
3572 * xmalloc.c (xmalloc): Fix spelling error.
3573 (xcalloc, xrealloc): Likewise.
3574
35751999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3576
3577 * cplus-dem.c (fancy_abort, demangle_integral_value,
3578 demangle_arm_hp_template, recursively_demangle,
3579 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
3580 (program_name, program_version, fatal): Constify a char*.
3581 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
3582 (main): Call return, not exit.
3583
35841999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3585
3586 * choose-temp.c: Remove obsolete comment about gcc.
3587 (make_temp_file): Constify a char*.
3588
3589Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3590
3591 * xmemdup.c: Include sys/types.h.
3592
35931999-09-07 Jeff Garzik <jgarzik@pobox.com>
3594
3595 * xmemdup.c: New xmemdup function.
3596 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
3597
3598Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
3599
b4fe2683 3600 * config.table: Add openedition target.
0c0a36a4
ILT
3601 * config/mh-openedition: New file.
3602
3603Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
3604
3605 * pexecute.c (pexecute): Fill in temp_base when needed.
3606
36071999-08-31 Richard Henderson <rth@cygnus.com>
3608
3609 * getpwd.c: Check HAVE_GETCWD before defining it away.
3610
36111999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3612
3613 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
3614 (REQUIRED_OFILES): Add getpwd.o.
3615 (getpwd.o): Add target.
3616
3617 * configure.in (AC_PREREQ): Bump to 2.13.
3618 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
3619
3620 * getpwd.c: New file, moved here from gcc.
3621
36221999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3623
3624 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
3625 comparing against a signed quantity.
3626 (arm_special): Likewise.
3627 (demangle_fund_type): Likewise.
3628 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 3629 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
3630 (main): Constify variable `valid_symbols'.
3631
3632Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
3633
3634 * strtoul.c (strtoul): Add parentheses around && within ||.
3635
3636Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
3637
3638 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3639 libdir, libsubdir and tooldir.
3640
36411999-08-01 Mark Mitchell <mark@codesourcery.com>
3642
3643 * splay-tree.c (splay_tree_insert): Return the new node.
3644
35ca97ea
RH
36451999-07-14 Richard Henderson <rth@cygnus.com>
3646
b4fe2683 3647 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
3648 prototyping directly.
3649 * choose-temp.c: Conditionally include string.h.
3650
0c0a36a4
ILT
36511999-07-12 Jason Merrill <jason@yorick.cygnus.com>
3652
3653 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
3654
af32ff69
ILT
36551999-07-11 Ian Lance Taylor <ian@zembu.com>
3656
3657 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3658 warning.
3659
0c0a36a4
ILT
36601999-07-07 Jason Merrill <jason@yorick.cygnus.com>
3661
3662 * Makefile.in (needed-list): Only include stuff we actually need
3663 for libstdc++.
3664
36651999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3666
3667 * configure.in (checkfuncs): Add gettimeofday.
3668 * config.in, configure: Regenerated.
3669
3670Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
3671
3672 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
3673 the test fails.
3674 * configure: Regenerate.
3675
36761999-06-10 Mike Stump <mrs@wrs.com>
3677
3678 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
3679 parallel builds.
3680
36811999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3682
3683 * putenv.c: Include ansidecl.h to define `const'.
3684 * setenv.c: Likewise.
3685
3686Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
3687
3688 * Makefile.in (CFILES): Add putenv.c and setenv.c.
3689 * configure.in (funcs): Add putenv and setenv.
3690 (AC_CHECK_FUNCS): Check for putenv and setenv.
3691 * configure: Rebuilt.
3692 * putenv.c setenv.c: New files.
3693
3694 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
3695 bytes of space using malloc.
3696
3697Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
3698
3699 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
3700 the *mangled pointer beyond the end of the string. Clean up code to
3701 match prevailing coding style.
3702
37031999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3704
3705 * tmpnam.c (L_tmpnam): Fix typo.
3706
3707Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
3708
3709 * cplus-dem.c (standard_symbol_characters): Renamed from
3710 standard_symbol_alphabet. No longer modify TABLE.
3711 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
3712 modify TABLE.
3713 (main): Corresponding changes. Use strchr to determine if a
3714 character is valid.
3715
e9868447
JB
37161999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
3717
3718 * cplus-dem.c (main): Use table lookup to distinguish identifier
3719 characters from non-identifier characters.
3720 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
3721
33fbbfbc
RH
3722Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
3723
3724 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
3725 * getruntime.c: Only attempt to include sys/resource.h and
3726 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
3727 are defined.
3728
0c0a36a4
ILT
3729Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
3730
3731 * configure.in (alloca detection): Handle alloca directly for interix.
3732 * configure: Rebuilt.
3733
3734Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
3735
3736 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
3737
252b5132
RH
37381999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
3739
3740 Fix from Dale Hawkins:
b4fe2683 3741 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
3742 reallocated properly if we use it again.
3743
3744 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
3745 stricter about syntax. Always null-terminate string.
3746
c1687039
ILT
3747Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
3748
3749 * configure.in (checkfuncs): Check for sbrk.
3750 * config.in: Rebuilt.
3751 * configure: Likewise.
3752 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
3753
0c0a36a4
ILT
37541999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
3755
3756 Fix from Marcus Daniels:
3757 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
3758 identifier looking for another underscore.
3759
3760Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
3761
3762 * pexecute.c: Change all references to __UWIN__ to _UWIN.
3763 * xmalloc.c: Likewise.
3764 (xcalloc): UWIN has sbrk.
3765 (xrealloc): Fix guard macro.
3766
252b5132
RH
37671999-04-11 Richard Henderson <rth@cygnus.com>
3768
3769 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
3770 or <alloca.h>.
3771 * clock.c (GNU_HZ): New definition.
3772 (clock): Use it.
3773 * getruntime.c: Likewise.
3774
3775 * config.table: Use mh-beos.
3776 * config/mh-beos: New file.
3777
0c0a36a4
ILT
37781999-04-11 Mark Mitchell <mark@codesourcery.com>
3779
3780 * cplus-dem.c (demangle_template_value_parm): Handle
3781 pointers-to-members.
3782 (do_type): Handle template parameters as qualifiers.
3783
252b5132
RH
37841999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
3785
3786 * cplus-dem.c: Attempt to handle overflows in counts with some
3787 semblance of grace.
3788 (consume_count): Detect overflows. Return -1 to indicate errors,
3789 instead of zero.
3790 (demangle_template_value_parm, demangle_template): Handle change
3791 to consume_count's return convention.
3792
0c0a36a4
ILT
37931999-04-05 Tom Tromey <tromey@cygnus.com>
3794
3795 * testsuite/regress-demangle: New file.
3796 * testsuite/demangle-expected: New file.
252b5132 3797
0c0a36a4
ILT
3798 * Makefile.in (all, check, installcheck, info, install-info,
3799 clean-info, dvi, install, etags, tags, mostlyclean, clean,
3800 distclean, maintainer-clean, realclean): Depend on corresponding
3801 `-subdir' target.
3802 (all-subdir check-subdir installcheck-subdir info-subdir
3803 install-info-subdir clean-info-subdir dvi-subdir
3804 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
3805 distclean-subdir maintainer-clean-subdir): New target.
3806 * testsuite/Makefile.in: New file.
3807 * configure: Rebuilt.
3808 * configure.in: Create testsuite/Makefile.
252b5132
RH
3809
38101999-04-02 Mark Mitchell <mark@codesourcery.com>
3811
3812 * splay-tree.h (splay_tree_compare_pointers): Define.
3813
38141999-03-30 Mark Mitchell <mark@codesourcery.com>
3815
3816 * splay-tree.c (splay_tree_compare_ints): Define.
3817
38181999-03-30 Tom Tromey <tromey@cygnus.com>
3819
3820 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
3821 don't advance input pointer.
3822 (demangle_class_name): If consume_count didn't find a count, do
3823 nothing. Don't bother with `strlen' sanity check; consume_count
3824 does it for us.
3825
38261999-03-16 Stan Shebs <shebs@andros.cygnus.com>
3827
3828 From Art Haas <ahaas@neosoft.com>:
3829 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
3830 when doing arm or hp style.
3831 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 3832
252b5132
RH
3833Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
3834
3835 * pexecute.c (__CYGWIN32__): Rename to
3836 (__CYGWIN__): this.
3837 * xmalloc.c: Likewise.
3838
3839 Changes to support i386-pc-uwin.
3840 * configure.in (*-*-uwin*): Workaround for vfork bug.
3841 * configure: Regenerate.
3842 * pexecute.c (pexecute): Be like standard Unix.
3843 (pwait): Likewise.
3844 * xmalloc.c (first_break): Define.
3845 (xmalloc_set_program_name): Use.
3846 (xmalloc): Use.
3847
3848Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3849
3850 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
3851
3852Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
3853
3854 * config.table: Check cygwin*, not cygwin32*.
3855
3856Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
3857
3858 * Makefile.in: Change mkstemp -> mkstemps.
3859
3860Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
3861
3862 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
3863 * configure.in (funcs): Check for and conditionally add mkstemps to
3864 the list of functions libiberty will provide.
3865 * configure: Rebuilt.
b4fe2683 3866
252b5132
RH
3867Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
3868
b4fe2683 3869 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
3870 platforms that don't have HZ.
3871 * getruntime.c (HZ): Likewise.
3872
3873Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
3874
3875 * Makefile.in (xstrdup.o): Depend on config.h.
3876
3877Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
3878
3879 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
3880 freeing it.
3881
3882Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3883
3884 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
3885
3886Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3887
3888 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
3889 splay-tree.o.
3890
38911999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
3892
3893 * configure.in: Require autoconf 2.12.1 or higher.
3894
38951998-12-30 Michael Meissner <meissner@cygnus.com>
3896
3897 * random.c (NULL): Don't redefine NULL if it is already defined.
3898
3899Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3900
3901 * argv.c (buildargv): Cast the result of alloca in assignment.
3902
3903 * choose-temp.c: Include stdlib.h.
3904
3905 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
3906 (snarf_numeric_literal): Constify first parameter.
3907 (code_for_qualifier): Avoid a gcc extension, make the parameter an
3908 int, not a char.
252b5132
RH
3909 (demangle_qualifier): Likewise.
3910 (demangle_signature): Cast the argument of a ctype function to
3911 unsigned char.
3912 (arm_pt): Add parens around assignment used as truth value.
3913 (demangle_arm_hp_template): Constify variable `args'.
3914 (do_hpacc_template_const_value): Cast the argument of a ctype
3915 function to unsigned char.
3916 (do_hpacc_template_literal): Remove unused variable `i'.
3917 (snarf_numeric_literal): Constify parameter `args'.
3918 Cast the argument of a ctype function to unsigned char.
3919
3920 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 3921 avoid ambiguous `else'.
252b5132
RH
3922
3923 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
3924 `cstart' and `cend' to unsigned char. Cast the argument of macro
3925 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
3926
3927 * objalloc.c (free): Add prototype.
3928
3929Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
3930
3931 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
3932
3933Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
3934
3935 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 3936 doesn't exist.
252b5132 3937 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 3938
252b5132
RH
3939Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
3940
3941 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
3942 bumping the pointer we read from. Also prepend these codes,
3943 as we do in other places.
3944
39451998-12-18 Nick Clifton <nickc@cygnus.com>
3946
3947 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
3948 'const char *' in order to match its usage when calling siblings.
3949 (snarf_numeric_literal): Make first arg 'const char **' in order
3950 to match usage.
3951
3952Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3953
3954 * choose-temp.c: Don't check IN_GCC anymore.
3955
3956 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
3957 * memchr.c (memchr): Likewise.
3958 * memcpy.c (memcpy): Likewise.
3959 * memmove.c (memmove): Likewise.
3960
3961 * mkstemp.c: Don't check IN_GCC anymore.
3962 * pexecute.c: Likewise.
3963 * splay-tree.c: Likewise.
3964
3965 * strchr.c (strchr): Use `const', not `CONST'.
3966 * strrchr.c (strrchr): Likewise.
3967 * strtol.c (strtol): Likewise.
3968 * strtoul.c (strtoul): Likewise.
3969
3970Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
3971 Elena Zannoni <ezannoni@cygnus.com>
3972 Stan Shebs <shebs@cygnus.com>
3973 Edith Epstein <eepstein@cygnus.com>
3974 Andres MacLeod <amacleod@cygnus.com>
3975 Satish Pai <pai@apollo.hp.com>
3976
3977 * HP aCC demangling support.
3978 * cplus-dem.c
3979 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
3980 demangling correctly when -edg specified; set the demangling style
3981 when user specifies 'edg'. Set strip_underscore to
3982 prepends_underscore, if not HPUXHPPA. Set
3983 current_demangling_style to hp_demangling if HPUXHPPA. Set
3984 current demangling style correctly if the switch is hp. Read
3985 label correctly also in the HP style case.
252b5132 3986 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 3987 function.
252b5132 3988 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 3989 style for this case is the same as ARM.
252b5132
RH
3990 (demangle_args): handle EDG_DEMANGLING style; support HP style.
3991 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
3992 demangle_arm_pt.); check and set value of temp_start field in
3993 multiple places. Also, when ceching for end of template args,
3994 check to see if at end of static member of template class.
252b5132 3995 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 3996 include template args in string defining class.
252b5132
RH
3997 (demangle_class_name): use demangel_arm_hp_template.
3998 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
3999 HP_DEMANGLING and currently point at an 'X' in the mangled name.
4000 Handle EDG_DEMANGLING style. Handle constructor and destructor
4001 ops for HP style.
252b5132 4002 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
4003 styles. global destructor and constructor for HP style are same
4004 as for ARM style. Same for local variables.
252b5132
RH
4005 (demangle_qualified): handle EDG_DEMANGLING style.
4006 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
4007 cases '1' - '9' : initialize the temp_start field to -1 and handle
4008 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
4009 and AUTO_DEMANGLING styles. If expecting a function and managed
4010 to demangle the funct args, then handle the LUCID_DEMANGLING,
4011 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
4012 class name after "Lnnn_ in HP style case. HP style too needs to
4013 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 4014 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 4015 value param for HP/aCC.
252b5132 4016 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 4017 literal parameter for HP aCC.
252b5132
RH
4018 (recursively_demangle): new function
4019 (snarf_numeric_literal): new function.
4020 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 4021 to message.
252b5132
RH
4022
4023Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
4024
4025 * pexecute.c: Remove obsolete ifdefed cygwin code.
4026
4027Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4028
4029 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
4030 * cplus-dem.c: Likewise. Conform to libiberty.h.
4031 * pexecute.c: Likewise.
4032 * splay-tree.c: Likewise.
4033
40341998-11-25 Mike Stump <mrs@wrs.com>
4035
4036 * Makefile.in (splay-tree.o): Add config.h dependency.
4037
4038Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4039
4040 * configure.in: Use AC_PREREQ(2.12.1).
4041
40421998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
4043
b4fe2683 4044 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
4045
4046Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
4047
4048 * mpw.c (mpw_access): Add missing parens.
4049
4050Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4051
4052 * configure.in: Call AC_HEADER_SYS_WAIT.
4053
4054 * pexecute.c: Include sys/wait.h when !IN_GCC.
4055
4056Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
4057
4058 * pexecute.c: revert back to checking old Cygwin
4059 preprocessor symbol until some time has passed.
4060
4061Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
4062
4063 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
4064 since it will now support similar constructs.
4065
4066Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4067
4068 * configure.in: Check for calloc.
4069
4070 * calloc.c: New file.
4071
4072 * xmalloc.c (xcalloc): New function.
4073
4074Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
4075
4076 *cplus-dem.c (demangle_prefix): Use the last "__"
4077 in the mangled name when looking for the signature. This allows
4078 template names to begin with "__".
4079
40801998-11-08 Mark Mitchell <mark@markmitchell.com>
4081
4082 * cplus-dem.c (type_kind_t): Add tk_reference.
4083 (demangle_template_value_parm): Handle it.
4084 (do_type): Use it for references, instead of tk_pointer.
4085
4086 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
4087 not internal_cplus_demangle.
4088
4089Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4090
4091 * choose-temp.c: Don't include gansidecl.h.
4092 * mkstemp.c: Likewise.
4093 * pexecute.c: Likewise.
4094
4095Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
4096
b4fe2683
JM
4097 * configure.in: detect cygwin* instead of cygwin32*
4098 * configure: regenerate
252b5132
RH
4099
4100Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4101
4102 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
4103 whether to include config.h. Possibly include unistd.h in the
4104 !IN_GCC case. Define VFORK_STRING as a printable function call
4105 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
4106 defined, include vfork.h. If VMS is defined, define vfork()
4107 appropriately. Remove vfork check on USG, we're using autoconf.
4108 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
4109 locally what string to use.
252b5132
RH
4110
41111998-10-26 Mark Mitchell <mark@markmitchell.com>
4112
4113 * splay-tree.c: Tweak include directives to make sure declarations of
4114 xmalloc and free are available.
4115
41161998-10-25 Mark Mitchell <mark@markmitchell.com>
4117
4118 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
4119 anonymous namespaces.
4120
41211998-10-23 Mark Mitchell <mark@markmitchell.com>
4122
4123 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
4124 with type_quals.
4125 (TYPE_UNQUALIFIED): New macro.
4126 (TYPE_QUAL_CONST): Likewise.
4127 (TYPE_QUAL_VOLATILE): Likewise.
4128 (TYPE_QUAL_RESTRICT): Likewise.
4129 (code_for_qualifier): New function.
4130 (qualifier_string): Likewise.
4131 (demangle_qualifier): Likewise.
4132 (internal_cplus_demangle): Use them.
4133 (demangle_signature): Likewise.
4134 (demangle_template_value_parm): Likewise.
4135 (do_type): Likewise.
4136 (demangle_fund_type)): Likewise.
4137
4138Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4139
4140 * splay-tree.c (splay_tree_foreach_helper): Make definition static
4141 to match prototype.
4142
41431998-10-21 Mark Mitchell <mark@markmitchell.com>
4144
4145 * splay-tree.c: New file.
4146 * Makefile.in (CFILES): Add it.
4147 (REQUIRED_OFILES): Likewise.
4148 (splay-tree.o): Add dependencies.
4149
4150Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4151
4152 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
4153 range of 'K' index.
4154
4155Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4156
4157 * choose-temp.c: Prototype mkstemps() when IN_GCC.
4158
4159 * cplus-dem.c (consume_count): Cast argument of ctype macro to
4160 `unsigned char'.
4161 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
4162 comparing against one.
4163 (cplus_mangle_opname): Likewise.
4164 (demangle_integral_value): Cast argument of ctype macro to
4165 `unsigned char'.
4166 (demangle_template_value_parm): Likewise.
4167 (demangle_template): Initialize variable `bindex'. Cast the
4168 result of `strlen' to (int) when comparing against one. Remove
4169 unused variable `start_of_value_parm'.
4170 (demangle_class_name): Cast the result of `strlen' to (int) when
4171 comparing against one.
4172 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
4173 (gnu_special): Likewise. Cast the result of `strlen' to (int)
4174 when comparing against one.
4175 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
4176 (get_count): Likewise.
4177 (do_type): Likewise. Cast the result of `strlen' to (int) when
4178 comparing against one.
4179 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
4180 (demangle_function_name): Cast the result of `strlen' to (int)
4181 when comparing against one.
4182
4183 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
4184 comparing against one.
4185
4186Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
4187
b4fe2683
JM
4188 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
4189 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
4190 * config.in, configure: Rebuilt.
252b5132
RH
4191
4192 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
4193 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
4194 * config.in, configure: Rebuilt.
4195
4196Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
4197
b4fe2683 4198 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
4199
4200Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
4201
4202 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
4203
4204Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
4205
4206 * Merge egcs & devo libiberty.
4207