]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
Index: include/ChangeLog
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
83fbfe42
GK
12005-06-20 Geoffrey Keating <geoffk@apple.com>
2
3 * strverscmp.c: New.
4 * Makefile.in (CFILES): Add strverscmp.c.
5 (CONFIGURED_OFILES): Add strverscmp.o.
6 (strverscmp.o): New rule.
7 (stamp-functions): Add $(srcdir) to files in source directory.
8 * configure.ac (funcs): Add strverscmp.
9 (AC_CHECK_FUNCS): Add strverscmp.
10 * configure: Regenerate.
11 * functions.texi: Regenerate.
12
ddcf783b
EZ
132005-05-28 Eli Zaretskii <eliz@gnu.org>
14
15 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
16 * config.in, configure: Regenerate.
17
15da2806
RH
182005-05-25 Richard Henderson <rth@redhat.com>
19
20 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
21 (d_make_comp, d_print_comp): Likewise.
22 (d_special_name): Generate one.
23 * testsuite/demangle-expected: Add a hidden alias test.
24
d7cf8390
GDR
252005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
26
27 * configure.ac: Check declarations for calloc(), getenv(),
ddcf783b 28 malloc(), realloc() and sbrk().
d7cf8390
GDR
29 * config.in: Regenerate.
30 * configure: Likewise.
31
32 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
33 instead of xmalloc.
34 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
35 * concat.c (liiberty_concat_ptr): Surround definition with an
36 extern "C" block, if __cplusplus.
37 (concat): Use XNEWVEC instead of xmalloc.
38 (reconcat): Likewise.
39 * cp-demangle.c (struct d_print_template): Rename member
ddcf783b 40 "template" to "template_decl". Adjust use throughout the file.
d7cf8390
GDR
41 (d_print_resize): Properly cast return value of realloc().
42 (cplus_demangle_print): Same for malloc().
43 (d_demangle): Likewise.
44 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
45 "typename" to "type_name".
46 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
47 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
48 (demangle_template_value_parm): Likewise.
49 (demangle_template): Likewise.
50 (recursively_demangle): Likewise.
51 (do_hpacc_template_literal): Likewise.
52 (do_arg): Likewise.
53 (remember_type): Likewise.
54 (remember_Ktype): Likewise.
55 (register_Btype): Likewise.
56 (string_need): Use XRESIZEVEC instead of xrealloc().
57 * dyn-string.c (dyn_string_init): Use XNEWVEC.
58 (dyn_string_new): Use XNEW.
59 (dyn_string_resize): Use XRESIZEVEC.
60 * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
61 * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
62 Otherwise include <stdlib.h>.
63 (exchange): Cast return value of malloc().
64 * hashtab.c (htab_size): Define as both macro and non-inline
65 function.
66 (htab_elements): Likewise.
67 * getpwd.c (getpwd): Use XNEWVEC.
68 (htab_create_alloc_ex): Use C90 prototype-style.
69 * lrealpath.c (lrealpath): Appropriately cast return value of
ddcf783b 70 malloc().
d7cf8390
GDR
71 * make-relative-prefix.c (save_string): Likewise.
72 * make-temp-file.c (try_dir): Rename from "try". Adjust use in
73 the file.
74 (choose_tmpdir): Use XNEWVEC.
75 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
76 * pex-common.c (pex_init_common): Use XNEW.
77 (pex_add_remove): Use XRESIZEVEC.
78 (pex_run): Likewise.
79 (pex_get_status_and_time): Likewise.
80 * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
81 * pex-msdos.c (pex_init): Use XNEW.
82 (pex_msdos_exec_child): Likewise.
83 (pex_msdos_exec_child): Use XRESIZEVEC.
84 * pex-unix.c (pex_wait): Use XNEW.
85 * pex-win32.c (fix_argv): Use XNEWVEC.
86 * pexecute.c (pwait): Likewise.
87 * setenv.c (setenv): Properly cast return value of malloc().
88 * sigsetmask.c (sigsetmask): Rename local variables "old" and
89 "new" to "old_sig" and "new_sig".
90 * sort.c (main): Use XNEWVEC.
91 * spaces.c (spaces): Cast return value of malloc().
92 * strndup.c (strndup): Likewise.
93 * ternary.c (ternary_insert): Use XNEW.
94 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
95 with an extern "C" block if __cplusplus.
96 * xstrdup.c (xstrdup): Cast return value of memcpy().
97 * xstrerror.c (strerror): Enclose declaration in an extern "C"
98 block if __cplusplus.
99 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
100
99e4078f
AJ
1012005-05-16 Andreas Jaeger <aj@suse.de>
102
103 * getpwd.c: Remove unneeded prototype getcwd and move getwd so
104 that it's only declared if needed.
105
106 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
107 defined.
108
766643be
AJ
1092005-05-15 Andreas Jaeger <aj@suse.de>
110
111 * functions.texi: Regenerated.
112
2b836651
EZ
1132005-05-15 Eli Zaretskii <eliz@gnu.org>
114
115 * pexecute.txh: Enclose multi-word data types in @deftypefn in
116 braces. Minor wording fixes. Use --- for em-dash. Use
117 @enumerate in enumerated lists.
118
d842a495
AJ
119 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
120 braces.
121
5db1c531
EZ
1222005-05-11 Eli Zaretskii <eliz@gnu.org>
123
124 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
125 sys/stat.h.
126 (pex_init): Fix last argument to pex_init_common.
127 (pex_djgpp_exec_child): Remove leading underscore from _open,
128 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
129 which is undeclared, with `executable', which was unused. Remove
130 unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
131 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
132
bd7d50f8
PB
1332005-05-11 Paul Brook <paul@codesourcery.com>
134
135 * Makefile.in: Regenerate dependencies.
136
ee58dffd
NC
1372005-05-10 Nick Clifton <nickc@redhat.com>
138
139 * Update the address and phone number of the FSF organization in
140 the GPL notices in the following files:
141 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
142 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
143 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
144 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
145 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
146 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
147 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
148 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
149 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
150 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
151 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
152 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
153 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
154
c1300f45
KC
1552005-05-06 Kelley Cook <kcook@gcc.gnu.org>
156
157 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
158 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
159 * configure: Regenerate.
160
fbc1bc09
KC
1612005-05-06 Kelley Cook <kcook@gcc.gnu.org>
162
163 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
164 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
165 * aclocal.m4: Don't include accross.m4.
166 * configure, config.in: Regenerate.
167
32e82bd8
KG
1682005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
169
170 * fopen_unlocked.c (unlock_std_streams): New.
2b836651 171
32e82bd8
KG
172 * functions.texi: Regenerate.
173
6feaa084
KG
1742005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
175
176 * fopen_unlocked.c (unlock_stream): New.
177 Consolidate unlocking code into a helper function.
178
179 * functions.texi: Regenerate.
180
3c60ae5a
GDR
1812005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
182
183 * asprintf.c: Include config.h.
184 * basename.c: Likewise.
185 * fdmatch.c: Likewise.
186 * hex.c: Likewise.
187 * lbasename.c: Likewise.
188 * spaces.c: Likewise.
189 * xatexit.c:Likewise.
2b836651 190 * configure.ac: Do check declarations for basename, ffs, asprintf
3c60ae5a
GDR
191 and vasprintf for real.
192 * configure: Regenerate.
193
0e0af50b
GDR
1942005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
195
2b836651 196 * argv.c (dupargv): Allocate space of argv[argc], not
fec02a2d 197 sizeof(char *) of that amount. Cast result to char *.
0e0af50b 198
4cf88ac3
GDR
1992005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
200
201 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
2b836651 202 Replace not with negate.
4cf88ac3 203
1ff7682c
GDR
2042005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
205
206 * configure.ac: Check declarations for basename, ffs, asprintf,
207 vasprintf.
208 * configure: Regenerate.
209 * config.in: Likewise.
210
78a7dc90
KG
2112005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
212
213 * Makefile.in (CFILES): Add fopen_unlocked.c.
214 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
215 Regenerate dependencies.
216
217 * configure.ac: Check for stdio_ext.h and __fsetlocking.
218
219 * fopen_unlocked.c: New file.
220
221 * functions.texi, configure, config.in: Regenerate.
222
2f84c996
ILT
2232005-04-04 Ian Lance Taylor <ian@airs.com>
224
225 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
226 declaration before statement.
227
f9a9ac80
KG
2282005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
229
29138797
KG
230 * bcmp.c: Fix warnings and implement using memcmp.
231 * bcopy.c: Fix warnings.
232 * bzero.c: Fix warnings and implement using memset.
233
f9a9ac80
KG
234 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
235 -Wstrict-prototypes.
236 * configure, config.in: Regenerate.
237
238 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
239 warnings and reconcile interfaces with relevant standards.
240
23ea4f4a
ILT
2412005-04-02 Ian Lance Taylor <ian@airs.com>
242
243 * cp-demangle.c: Update copyright.
244
1e3a2100
JM
2452005-03-31 Joseph S. Myers <joseph@codesourcery.com>
246
247 * gettimeofday.c: Add "Supplemental" to @deftypefn.
248 * functions.texi: Regenerate.
249
a584cf65
ILT
2502005-03-28 Ian Lance Taylor <ian@airs.com>
251
252 * pex-common.c: New file.
253 * pex-one.c: New file.
254 * pexecute.c: New file.
255 * pex-common.h: Include <stdio.h>.
256 (struct pex_obj): Define.
257 (struct pex_funcs): Define.
258 (pex_init_common): Declare.
259 * pex-unix.c: Rewrite.
260 * pex-win32.c: Rewrite.
261 * pex-djgpp.c: Rewrite.
262 * pex-msdos.c: Rewrite.
263 * testsuite/text-pexecute.c: New file.
264 * pexecute.txh: Rewrite.
265 * configure.ac: Check for wait3 and wait4. Set CHECK to
266 really-check rather than check-cplus-dem.
267 * functions.texi: Rebuild.
268 * Makefile.in: Rebuild dependencies.
269 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
270 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
271 * testsuite/Makefile.in (really-check): New target.
272 (check-pexecute, test-pexecute): New targets.
273 * configure: Rebuild.
274
93764b5b 2752005-03-28 Mark Kettenis <kettenis@gnu.org>
2b836651 276
93764b5b
MK
277 * unlink-if-ordinary.c: Include <sys/types.h>.
278
93079c81
GDR
2792005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
280
281 Convert libiberty to use ISO C prototype style 7/n.
282 * regex.c (PARAMS): Remove definition.
283 (PREFIX): Unconditionaly define using ISO C ## operator.
2b836651 284 (init_syntax_once, extract_number, extract_number_and_incr,
93079c81 285 print_fastmap, print_partial_compiled_pattern,
2b836651 286 print_compiled_pattern, print_double_string, printchar,
93079c81
GDR
287 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
288 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
2b836651
EZ
289 at_begline_loc_p, at_endline_p, group_in_compile_stack,
290 insert_space, wcs_compile_range, byte_compile_range,
291 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
292 re_set_registers, re_search, re_search_2, re_search_3, re_match,
93079c81
GDR
293 re_match_2, count_mbs_length, wcs_re_match_2_internal,
294 byte_re_match_2_internal, group_match_null_string_p,
295 alt_match_null_string_p, common_op_match_null_string_p,
2b836651 296 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
93079c81
GDR
297 regexec, regerror, regfree): Use ISO C prototype style.
298 * partition.c: (elem_compare): Likewise.
299 * cp-demangle.c (print_usage): Likewise.
300
885f2199
GDR
3012005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
302
303 Convert libiberty to use ISO C prototype style 5/n.
304 * random.c (srandom, initstate, setstate, random): Use ISO C
2b836651 305 prototypes.
885f2199
GDR
306 * putenv.c (putenv): Likewise.
307 * physmem.c (physmem_available, physmem_total, main): Likewise.
308 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
309 * pex-unix.c (pexecute, pwait): Likewise.
310 * pex-msdos.c (pexecute, pwait): Likewise.
311 * pex-djgpp.c (pexecute, pwait): Likewise.
2b836651 312 * partition.c (partition_new, partition_delete, partition_union)
885f2199 313 (elem_compare, partition_print): Likewise.
2b836651
EZ
314 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
315 _obstack_allocated_p, _obstack_free, obstack_free,
885f2199
GDR
316 _obstack_memory_used, print_and_abort, obstack_next_free,
317 obstack_object_size, obstack_base): Likewise. Remove codes
318 predicated on !defined(__STDC__).
2b836651 319 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
885f2199
GDR
320 objalloc_free_block): Use ISO C prototypes.
321 * mkstemps.c (mkstemps): Likewise.
322 * memset.c (memset): Likewise.
323 * mempcpy.c (mempcpy): Likewise.
324 * rename.c (rename): Likewise.
325 * rindex.c (rindex): Likewise.
326 * setenv.c (setenv, unsetenv): Likewise.
327 * sigsetmask.c (sigsetmask): Likewise.
328 * snprintf.c (snprintf): Likewise.
2b836651 329 * sort.c (sort_pointers, xmalloc): Likewise.
885f2199 330 * spaces.c (spaces): Likewise.
2b836651
EZ
331 * splay-tree.c (splay_tree_delete_helper,
332 splay_tree_splay_helper, splay_tree_splay,
885f2199 333 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
2b836651 334 splay_tree_new, splay_tree_xmalloc_allocate,
885f2199 335 splay_tree_new_with_allocator, splay_tree_delete,
2b836651
EZ
336 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
337 splay_tree_max, splay_tree_min, splay_tree_predecessor,
338 splay_tree_successor, splay_tree_foreach,
885f2199
GDR
339 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
340 * stpcpy.c (stpcpy): Likewise.
341 * stpncpy.c (stpncpy): Likewise.
342 * strcasecmp.c (strcasecmp): Likewise.
343 * strchr.c (strchr): Likewise.
344 * strdup.c (strdup): Likewise.
345
7a17ef5e
GDR
3462005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
347
348 Convert libiberty to use ISO C prototype style 6/n.
2b836651 349 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
7a17ef5e
GDR
350 strtoerrno, main): Use ISO C prototype style.
351 * strncasecmp.c (strncasecmp): Likewise.
352 * strncmp.c (strncmp): Likewise.
353 * strndup.c (strndup): Likewise.
354 * strrchr.c (strrchr): Likewise.
2b836651 355 * strsignal.c (init_signal_tables, signo_max, strsignal,
7a17ef5e
GDR
356 strsigno, strtosigno, psignal, main): Likewise.
357 * strstr.c (strstr): Likewise.
358 * strtod.c (strtod, atof): Likewise.
359 * strtol.c (strtol): Likewise.
360 * strtoul.c (strtoul): Likewise.
2b836651 361 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
7a17ef5e
GDR
362 ternary_recursivesearch): Likewise.
363 * tmpnam.c (tmpnam): Likewise.
364 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
365 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
366 * vfork.c (vfork): Likewise.
367 * vfprintf.c (vfprintf): Likewise.
368 * vprintf.c (vprintf): Likewise.
369 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
370 * vsprintf.c (vsprintf): Likewise.
371 * waitpid.c (waitpid): Likewise.
372 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
373 * xexit.c (xexit): Likewise.
2b836651 374 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
7a17ef5e
GDR
375 xcalloc, xrealloc): Likewise.
376 * xmemdup.c (xmemdup): Likewise.
377 * xstrdup.c (xstrdup): Likewise.
378 * xstrerror.c (xstrerror): Likewise.
379 * xstrndup.c (xstrndup): Likewise.
380
1134b11d
AJ
3812005-03-27 Andreas Jaeger <aj@suse.de>
382
383 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
384 flags.
385 * configure: Regenerated.
386
e78410c1
GDR
3872005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
388
389 * getopt1.c (getopt_long_only): Fix thinko.
390
6da879de
GDR
3912005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
392
393 Convert libiberty to use ISO C prototype style 4/n.
1134b11d
AJ
394 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
395 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
396 htab_create_alloc, htab_set_functions_ex, htab_create,
397 htab_try_create, htab_delete, htab_empty,
398 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
399 htab_find, htab_find_slot_with_hash, htab_find_slot,
400 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
401 htab_traverse_noresize, htab_traverse, htab_collisions,
6da879de
GDR
402 htab_hash_string, iterative_hash): Use ISO C prototype.
403 * hex.c (hex_init): Likewise.
404 * index.c (index): Likewise.
1134b11d 405 * insque.c (insque, remque): Likewise.
6da879de
GDR
406 * lbasename.c (lbasename): Likewise.
407 * lrealpath.c (lrealpath): Likewise.
1134b11d 408 * make-relative-prefix.c (save_string, split_directories,
6da879de 409 free_split_directories, make_relative_prefix): Likewise.
1134b11d
AJ
410 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
411 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
6da879de
GDR
412 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
413 * memchr.c (memchr): Likewise.
414 * memcpy.c (memcpy): Likewise.
415 * memmove.c (memmove): Likewise.
416 * gettimeofday.c (gettimeofday): Likewise.
417 * getruntime.c (get_run_time): Likewise.
418 * getpwd.c (getpwd, getpwd): Likewise.
419 * getpagesize.c (getpagesize): Likewise.
420 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
1134b11d 421 * getopt.c (my_index, exchange, _getopt_initialize,
6da879de
GDR
422 _getopt_internal, getopt, main): Likewise.
423 * getcwd.c (getcwd): Likewise.
424 * fnmatch.c (fnmatch): Likewise.
1134b11d
AJ
425 * floatformat.c (floatformat_always_valid,
426 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
427 put_field, floatformat_from_double, floatformat_is_valid,
6da879de 428 ieee_test, main): Likewise.
1134b11d
AJ
429 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
430 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
431 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
432 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
433 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
434 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
435 fibheap_link, fibheap_cut, fibheap_cascading_cut,
6da879de
GDR
436 fibnode_insert_after, fibnode_remove): Likewise.
437 * ffs.c (ffs): Likewise.
438 * fdmatch.c (fdmatch): Likewise.
1134b11d
AJ
439 * dyn-string.c (dyn_string_init, dyn_string_new,
440 dyn_string_delete, dyn_string_release, dyn_string_resize,
441 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
442 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
443 dyn_string_insert_cstr, dyn_string_insert_char,
444 dyn_string_append, dyn_string_append_cstr,
6da879de 445 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
1134b11d 446 Likewise.
6da879de 447
500d7701
GDR
4482005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
449
450 Convert libiberty to use ISO C prototype style 3/n.
1134b11d
AJ
451 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
452 consume_count_with_underscores, code_for_qualifier,
453 qualifier_string, demangle_qualifier, cplus_demangle_opname,
454 cplus_mangle_opname, cplus_demangle_set_style,
455 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
500d7701 456 ada_demangle, internal_cplus_demangle, squangle_mop_up,
1134b11d
AJ
457 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
458 delete_work_stuff, mop_up, demangle_signature,
459 demangle_method_args, demangle_template_template_parm,
460 demangle_expression, demangle_integral_value,
461 demangle_real_value, demangle_template_value_parm,
462 demangle_template, arm_pt, demangle_arm_hp_template,
463 demangle_class_name, demangle_class, iterate_demangle_function,
464 demangle_prefix, gnu_special, recursively_demangle, arm_special,
465 demangle_qualified, get_count, do_type, demangle_fund_type,
466 do_hpacc_template_const_value, do_hpacc_template_literal,
467 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
468 register_Btype, remember_Btype, forget_B_and_K_types,
469 forget_types, demangle_args, demangle_nested_args,
470 demangle_function_name, string_need, string_delete, string_init,
471 string_clear, string_empty, string_append, string_appends,
500d7701
GDR
472 string_appendn, string_prepend, string_prepends, string_prependn,
473 string_append_template_idx): Use ISO C prootype style.
474 * cp-demint.c (cplus_demangle_fill_component,
1134b11d 475 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
500d7701
GDR
476 cplus_demangle_v3_components): Likewise.
477
9486db4f
GDR
4782005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
479
480 Convert libiberty to use ISO C prototype style 2/n.
481 * cp-demangle.h: Remove uses of PARAMS.
482 * cp-demangle.c: Likewise.
1134b11d
AJ
483 (d_dump, cplus_demangle_fill_name,
484 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
485 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
486 d_make_builtin_type, d_make_operator, d_make_extended_operator,
487 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
488 cplus_demangle_mangled_name, has_return_type,
489 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
490 d_prefix, d_unqualified_name, d_source_name, d_number,
491 d_identifier, d_operator_name, d_special_name, d_call_offset,
492 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
493 d_function_type, d_bare_function_type, d_class_enum_type,
494 d_array_type, d_pointer_to_member_type, d_template_param,
495 d_template_args, d_template_arg, d_expression, d_expr_primary,
496 d_local_name, d_discriminator, d_add_substitution,
497 d_substitution, d_print_resize, d_print_append_char,
498 d_print_append_buffer, d_print_error, cplus_demangle_print,
499 d_print_comp, d_print_java_identifier, d_print_mod_list,
500 d_print_mod, d_print_function_type, d_print_array_type,
501 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
502 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
9486db4f 503 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
1134b11d 504 print_usage, main):
9486db4f
GDR
505
5062005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
507
508 Convert libiberty to ISO C prototype style 1/n.
509 * _doprnt.c: Remove conditional #include <varargs.h> on
510 ANSI_PROTOTYPES as the latter is always assumed.
511 (_doprnt, checkit, main): Use ISO C prototype.
512 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
513 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
1134b11d 514 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
9486db4f
GDR
515 * atexit.c (atexit): Likewise
516 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
1134b11d 517 (asprintf): Use ISO C prototype.
9486db4f
GDR
518 * basename.c (basename): Likewise
519 * bcmp.c (bcmp): Likewise.
520 * bcopy.c (bcopy): Likewise.
521 * bzero.c (bzero): Likewise.
522 * bsearch.c (bsearch): Likewise. Improve const-correctness.
523 * choose-temp.c (choose_temp_base): Likewise.
524 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
525 (calloc): Use ISO C prototype.
526 * clock.c (clock): Likewise.
527 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
1134b11d 528 (vconcat_length, vconcat_copy, concat_length, concat_copy,
9486db4f
GDR
529 concat_copy2, concat, reconcat, main): Use ISO C prototype.
530 * copysign.c (copysign): Likewise.
531
17998b22
KG
5322005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
533
534 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
535 (REQUIRED_OFILES): Add xstrndup.o.
536 (CONFIGURED_OFILES): Add strndup.o.
537 Regenerate dependencies.
538
539 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
540
541 * strndup.c, xstrndup.c: New.
542
543 * config.in, configure, functions.texi: Regenerate.
544
bb99744f
KG
5452005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
546
547 * xmemdup.c, xstrdup.c: Expose the tail call.
548
17049f0b
MM
5492005-03-09 Mark Mitchell <mark@codesourcery.com>
550
551 * configure.ac (funcs): Add gettimeofday.
552 * configure: Regenerated.
553 * gettimeofday.c: New file.
554 * Makefile.in (CFILES): Add gettimeofday.
555 (CONFIGURED_OFILES): Add gettimeofday.o.
556 (./gettimeofday.o): New rule.
557
6af8bd50
ILT
5582005-03-09 Ian Lance Taylor <ian@airs.com>
559
560 * pex-os2.c: Remove.
561 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
562 * Makefile.in (CFILES): Remove pex-os2.c.
563 (CONFIGURED_OFILES): Remove pex-os2.o.
564 (pex-os2.o): Remove target.
565 * configure: Rebuild.
566
c80d391c
ILT
5672005-03-07 Ian Lance Taylor <ian@airs.com>
568
569 * mpw-config.in: Remove.
570 * mpw-make.sed: Remove.
571 * mpw.c: Remove.
572 * Makefile.in (CFILES): Remove pex-mpw.c.
573 (CONFIGURED_OFILES): Remove pex-mpw.o.
574 (mpw.o, pex-mpw.o): Remove targets.
575 * maint-tool (undoc): Remove reference to mpw.c.
576
fe8ee922
DD
5772005-03-06 DJ Delorie <dj@redhat.com>
578
579 * configure.ac (target_header_dir): vfork is a stub under djgpp.
580 * configure: Regenerated.
581
c363985d
JB
5822005-03-01 Jan Beulich <jbeulich@novell.com>
583
584 * Makefile.in (CFILES): Add unlink-if-ordinary.c
585 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
586 Add dependencies and rule for unlink-if-ordinary.o.
587 * unlink-if-ordinary.c: New.
588
6a88516c
BE
5892005-03-01 Ben Elliston <bje@au.ibm.com>
590
591 * hashtab.c (htab_find_slot_with_hash): Make function
592 documentation clearer.
593
b8b3c655
JM
5942005-02-13 Jason Merrill <jason@redhat.com>
595
596 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
597 arguments.
598
e8805990
TS
5992005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
600
601 * hex.c (hex_value): Group 'unsigned int' together to get correct
602 markup.
603 * functions.texi: Regenerated.
1134b11d 604
24f2cabb
L
6052004-12-27 H.J. Lu <hongjiu.lu@intel.com>
606
607 * Makefile.in: Undo to 2004-12-17.
608 * aclocal.m4: Likewise.
609 * config.table: Likewise.
610 * configure.ac: Likewise.
611 * maint-tool: Likewise.
612 * configure: Likewise.
613
3d815594
L
6142004-12-19 H.J. Lu <hongjiu.lu@intel.com>
615
616 PR bootstrap/19072
617 * Makefile.in (enable_shared): New substitute.
618 (LTTARGETLIB): New.
619 (PREFIXTARGETLIB): New.
620 (LTTESTLIB): New.
621 (PREFIXTESTLIB): New.
622 (CCLD): New.
623 (LINK): New.
624 ($(TARGETLIB)): Use $(LINK) to create libraries and create
625 targets by hand.
626 ($(TESTLIB)): Likewise.
627 (mostlyclean): Don't remove .libs. Remove the libtool object
628 directory.
629
630 * config.table (enable_shared): Removed.
631
632 * configure.ac (enable_static): Set to yes.
633 (AC_PROG_LIBTOOL): Removed.
634 (AM_DISABLE_SHARED): Uncommented.
635 (AM_PROG_LIBTOOL): Likewise.
636 (LIBOBJS): Add `./' to avoid VPATH.
637 (LTLIBOBJS): Likewise.
638 (enable_shared): Substitute.
639 * configure: Regenerated.
640
207db768
L
6412004-12-18 H.J. Lu <hongjiu.lu@intel.com>
642
643 * Makefile.in (top_builddir): Set to `.'.
644 (OUTPUT_OPTION): Removed.
645 (LIBTOOL): New.
646 (LTLIBOBJS): New.
647 (EXTRA_LTOFILES): New.
648 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
649 (all): Remove stamp-picdir.
650 (LTCOMPILE): New.
651 (.c.lo): New rule.
652 (REQUIRED_LTOFILES): New.
653 (CONFIGURED_LTOFILES): New.
654 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
655 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
656 (stamp-picdir): Completely removed.
657 (maint-missing): Pass $(REQUIRED_LTOFILES)
658 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
659 $(CONFIGURED_OFILES)
660 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
661 $(CONFIGURED_LTOFILES).
662 (mostlyclean): Also remove *.lo .libs.
663 Run "make maint-deps".
664
665 * aclocal.m4: Include ../libtool.m4.
666
667 * config.table: Don't check --enable-shared.
668
669 * configure.ac (AC_PROG_LIBTOOL): Add.
670 (AC_PROG_CC_C_O): Removed.
671 (OUTPUT_OPTION): Removed.
672 (NO_MINUS_C_MINUS_O): Removed.
673 (ltpexecute): New substitute.
674 (LIBOBJS): Cleanup.
675 * configure: Regenerated.
676
677 * maint-tool: Updated for .lo/libtool.
678
d49d0907
BE
6792004-12-11 Ben Elliston <bje@au.ibm.com>
680
681 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
682 * configure: Regenerate.
683 * config.in: Likewise.
684
b180d5fb
DD
6852004-12-07 DJ Delorie <dj@redhat.com>
686
687 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
688 that recursion (and thus large stack space) is not needed.
689
ecc30353
MK
6902004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
691
692 * pex-unix.c: Fix the spelling of longjmp.
693
0b167d51
ILT
6942004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
695
696 PR other/18623
697 * cp-demangle.c (d_call_offset): Remove useless local variables
698 offset and virtual_offset.
699 * cplus-dem.c (ada_demangle): Remove useless local variable
700 at_start_name.
701 (demangle_template): Remove useless local variable start.
702
2d59754f
RS
7032004-11-19 Roger Sayle <roger@eyesopen.com>
704
705 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
706 "ansidecl.h" to avoid redeclaration errors with native compilers.
707 * regex.c: Protect config.h from multiple inclusion.
708
ea27a394
MS
7092004-11-12 Mike Stump <mrs@apple.com>
710
610784f0
MS
711 * Makefile.in (libiberty.html): Fix html generation.
712
626ff3de
AN
7132004-09-08 Adam Nemet <anemet@lnxw.com>
714
715 * vasprintf.c: Accept __va_copy in addition to va_copy.
716
1134b11d 7172004-09-03 Paolo Bonzini <bonzini@gnu.org>
7b3ed47d
PB
718
719 * configure: Regenerate.
720
1134b11d 7212004-09-02 Paolo Bonzini <bonzini@gnu.org>
27cfe310
PB
722
723 * configure.ac: Do not enable multilibs for build-side libiberty.
724
1134b11d 7252004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
50a2de96
DS
726
727 * lrealpath.c (lrealpath): Add _WIN32 support.
728
0cf61401
ZW
7292004-06-28 Zack Weinberg <zack@codesourcery.com>
730
731 * cp-demangle.h: Declare cplus_demangle_operators,
732 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
733 cplus_demangle_type as static if IN_GLIBCPP_V3.
734
00a5aa9c
ILT
7352004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
736
737 PR other/16240
738 * cp-demangle.c (d_expr_primary): Check for a failure return from
739 cplus_demangle_type.
5cd29062 740 * testsuite/demangle-expected: Add test case.
00a5aa9c 741
b47785f4
DS
7422004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
743
744 * pex-win32.c (fix_argv): Expand comment.
745
54b2f310
DJ
7462004-05-25 Daniel Jacobowitz <drow@false.org>
747
748 * Makefile.in: Add .NOEXPORT.
749
8fd58397
DR
7502004-04-29 Douglas B Rupp <rupp@gnat.com>
751
752 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
753 copyright.
754
6489430a
MR
7552004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
756
757 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
758 * configure: Regenerate.
759
9bf3c9cc
RH
7602004-04-22 Richard Henderson <rth@redhat.com>
761
762 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
763 (CHAR_BIT): Provide default.
764 (struct prime_ent, prime_tab): New.
765 (higher_prime_index): Rename from higher_prime_number, return index.
766 (htab_mod_1): New.
767 (htab_mod, htab_mod_m2): Use it.
768 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
769 (htab_expand): Likewise.
770 * configure.ac: Check for stdint.h.
771 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
772 * config.in, configure: Rebuild.
773
80790b05
ILT
7742004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
775
776 * strerror.c: Include config.h, and redefine sys_nerr and
777 sys_errlist, before including ansidecl.h and libiberty.h.
778
7f96816a
JL
7792004-04-13 Jeff Law <law@redhat.com>
780
781 * hashtab.c (htab_remove_elt_with_hash): New function.
782 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
783
d9175b87
RH
7842004-03-31 Richard Henderson <rth@redhat.com>
785
786 * hashtab.c (htab_size): Move to top of file; mark inline.
787 (htab_elements): Likewise.
788 (htab_mod, htab_mod_m2): New.
789 (htab_delete): Refactor htab->size and htab->entries.
790 (htab_empty): Likewise.
791 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
792 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
793 (htab_clear_slot): Use htab_size, htab_elements.
794 (htab_traverse_noresize, htab_traverse): Likewise.
795
e8190aa2
ILT
7962004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
797
fed8129b
ILT
798 * pex-unix.c (pexecute): Use vfork instead of fork, with
799 appropriate changes to make this safe.
800 * pex-common.h (STDERR_FILE_NO): Define.
801
e8190aa2
ILT
802 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
803 an 80 column screen. Run maint-deps.
804
a4f74b58
KC
8052004-03-09 Kelley Cook <kcook@gcc.gnu.org>
806
807 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
808 * acconfig.h: Delete redundant file.
809 * config.in: Regenerate.
810 * configure: Regenerate.
811
3beb1315
HPN
8122004-03-09 Hans-Peter Nilsson <hp@axis.com>
813
814 * configure: Regenerate for config/accross.m4 correction.
815
688556b9
AJ
8162004-03-07 Andreas Jaeger <aj@suse.de>
817
818 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
819 prototypes.
820 (main): Initialize style.
821
80a19ac8
ILT
8222004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
823
31058ee3
ILT
824 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
825 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
826 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
827 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
828 short types to D_PRINT_DEFAULT. Change other integer types to use
829 new D_PRINT_* values where appropriate. Change float types to
830 D_PRINT_FLOAT.
831 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
832 values.
833 * testsuite/demangle-expected: Adjust two test cases.
834
835 * cp-demangle.c (d_print_function_type): Print a space before the
836 parenthesis around the function type in more cases.
837 * testsuite/demangle-expected: Adjust one test case.
838
93f20626
ILT
839 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
840 parentheses around a cast.
841 * testsuite/demangle-expected: Adjust two test cases to match new
842 output.
843
dbd6ec2b
ILT
844 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
845
80a19ac8
ILT
846 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
847 push more than one of the same CV-qualifier on the top of the
848 stack.
849 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
850 move the CV-qualifiers to apply to the element type instead.
851 (d_print_array_type): When checking the modifiers, keep looking
852 past ones which have been printed already.
853 * testsuite/demangle-expected: Add three test cases.
854
8ad1c80e
ILT
8552004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
856
e8ed4ac2
ILT
857 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
858 empty string correctly.
859
4a368ffd
ILT
860 * cp-demangle.c (__cxa_demangle): It is not an error if status is
861 not NULL. It is an error if the mangled name is the same as a
862 built-in type name.
863 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
864 than cplus_demangle_v3.
865
8ad1c80e
ILT
866 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
867 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
868
ef2a223f
MK
8692004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
870
871 * regex.c: Include <ansidecl.h>.
872 (regcomp): Cast i to int.
873 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
874
5254fd7b
ILT
8752004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
876
877 * configure.ac: Add m4_pattern_allow(LIBOBJS).
878 * configure: Regenerate.
879
398b3deb
DD
8802004-01-22 DJ Delorie <dj@redhat.com>
881
882 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
883 with explicit build rules.
884 (VPATH): Remove.
885 (.c.o): Poison.
886 * configure.ac (pexecute, LIBOBJS): Add ./ .
887 * maint-tool: Build dependencies with explicit rules.
888
4e394293
KH
8892004-01-15 Kazu Hirata <kazu@cs.umass.edu>
890
891 * strdup.c (strdup): Constify the argument.
892
0046e342
LR
8932004-01-14 Loren J. Rittle <ljrittle@acm.org>
894
895 * Makefile.in (distclean): Remove config.cache.
896
d4f3ce5c
DJ
8972004-01-13 Daniel Jacobowitz <drow@mvista.com>
898
899 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
900 takes two parameters.
901 * cp-demint.c (cplus_demangle_fill_component): Likewise.
902
5e777af5
ILT
9032004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
904
905 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
906 defined, rename some functions which are to become static via
907 #define.
908 (CP_STATIC_IF_GLIBCPP_V3): Define.
909 (struct d_operator_info): Move definition to cp-demangle.h, and
910 rename to demangle_operator_info. Change all uses.
911 (enum d_builtin_type_print): Move definition to cp-demangle.h.
912 (struct d_builtin_type_info): Move definition to cp-demangle.h,
913 and rename to demangle_builtin_type_info. Change all uses.
914 (enum d_comp_type): Move definition to include/demangle.h, and
915 rename to demangle_component_type, and change all enums to start
916 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
917 (struct d_comp): Move definition to include/demangle.h, and rename
918 to demangle_component. Change all uses.
919 (struct d_info): Move definition to cp-demangle.h.
920 (cplus_demangle_fill_name): New function.
921 (cplus_demangle_fill_extended_operator): New function.
922 (cplus_demangle_fill_ctor): New function.
923 (cplus_demangle_fill_dtor): New function.
924 (d_make_empty): Remove type parameter. Change all callers.
925 (d_make_name): Use cplus_demangle_fill_name.
926 (d_make_extended_operator): Use
927 cplus_demangle_fill_extended_operator.
928 (d_make_ctor): Use cplus_demangle_fill_ctor.
929 (d_make_dtor): Use cplus_demangle_fill_dtor.
930 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
931 non-static by default. Change all callers.
932 (cplus_demangle_operators): Rename from d_operators. Change all
933 uses. Make non-static by default. Add sentinel at end of array.
934 (d_operator_name): Adjust initialization of high for new sentinel
935 in cplus_demangle_operators.
936 (cplus_demangle_builtin_types): Rename from d_builtin_types.
937 Change all uses. Make non-static by default. Change initializer
938 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
939 (cplus_demangle_type): Rename from d_type. Make non-static by
940 default. Change all callers.
941 (cplus_demangle_init_info): Rename from d_init_info. Make
942 non-static by default. Change all callers.
943 * cp-demangle.h: New file.
944 * cp-demint.c: New file.
945 * Makefile.in: Rebuild dependencies.
946 (CFILES): Add cp-demint.c.
947 (REQUIRED_OFILES): Add cp-demint.o.
948
c31d56ed
KC
9492004-01-09 Kelley Cook <kcook@gcc.gnu.org>
950
951 * configure.in: Rename file to ...
952 * configure.ac: ... this.
953 * Makefile.in: Update a comment for above change.
954 * README: Likewise.
955 * config.in: Regenerate.
956
e4796f1c
ILT
9572004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
958
959 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
960 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
961 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
962 demangling template parameters.
963 * testsuite/test-demangle.c (fail): New static function.
964 (main): Support new options in input file: --no-params,
965 --is-v3-ctor, and --is-v3-dtor.
966 * testsuite/demangle-expected: Add --no-params to most tests, and
967 add the correct result when parameters are not demangled. Add
968 some simple tests for V3 constructor/destructor recognition.
969
4d425229
KG
9702003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
971
972 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
973
6b309c6e
DJ
9742003-12-22 Daniel Jacobowitz <drow@mvista.com>
975
976 PR debug/13272
977 * Makefile.in (lbasename.o): Depend on filenames.h.
978 * lbasename.c: Include "filenames.h" instead of defining
979 its macros locally.
980
2d6c4025
ILT
9812003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
982
983 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
984 dynamic arrays.
985 (struct d_operator_info): Add len field.
986 (struct d_builtin_type_info): Add len and java_len fields.
987 (struct d_standard_sub_info): Add simple_len, full_len, and
988 set_last_name_len fields.
989 (struct d_comp): Add len field to s_string.
990 (struct d_info): Add send, did_subs, and expansion fields.
991 (d_append_string_constant): Define.
992 (d_append_string): Remove. Change all users to use
993 d_append_string_constant or d_append_buffer instead.
994 (d_make_sub): Add len parameter. Change all callers.
995 (d_name): Increase expansion when substituting std::.
996 (d_unqualified_name): Increase expansion for an operator.
997 (d_number): Don't use multiplication for negative numbers.
998 (d_identifier): Make sure there are enough characters in the
999 string for the specified length. Adjust expansion for an
1000 anonymous namespace.
1001 (d_operators): Initialize len field.
1002 (d_special_name, d_ctor_dtor_name): Increase expansion.
1003 (d_builtin_types): Initialize len and java_len fields.
1004 (d_type): Increase expansion for a builtin type.
1005 (d_cv_qualifiers): Increase expansion for each qualifier.
1006 (d_bare_function_type): Decrease expansion when removing single
1007 void parameter.
1008 (d_template_param): Increment did_subs.
1009 (d_expression): Increase expansion for an operator.
1010 (d_expr_primary): Decrease expansion for a type we will print
1011 specially.
1012 (standard_subs): Initialize new fields.
1013 (d_substitution): Increment did_subs when doing a normal
1014 substitution. Increase expansion for a special substitution.
1015 (d_print): Add estimate parameter. Change all callers.
1016 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
1017 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
1018 (d_print_java_identifier): Rename from d_print_identifier. Handle
1019 only Java case. Change caller.
1020 (d_init_info): Change return type to void. Change all callers.
1021 Initialize send, did_subs, and expansion fields. Do not
1022 initialize comps and subs fields.
1023 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
1024 arrays on stack. Make an estimate of the length of the demangled
1025 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
1026 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
1027 subs arrays on stack.
1028
2307e075
ILT
10292003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
1030
1031 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
1032 after the identifier.
1033 * testsuite/demangle-expected: Add test case.
1034
a91d1af0
ILT
10352003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
1036
1037 Fix for PR c++/13447:
1038 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
1039 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
1040 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
1041 D_COMP_QUAL_NAME.
1042 (is_ctor_or_dtor): Likewise.
1043 (d_local_name): Use D_COMP_LOCAL_NAME rather than
1044 D_COMP_QUAL_NAME.
1045 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
1046 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
1047 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
1048 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
1049 * testsuite/demangle-expected: Add two test cases.
1050
1051 * cp-demangle.c (d_print_function_type): Clear the global modifier
1052 list when printing the modifiers, not just when printing the
1053 function parameters.
1054 * testsuite/demangle-expected: Add two test cases.
1055
8d686df2
ILT
10562003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1057
cbc278f4
ILT
1058 * cp-demangle.c (d_print_function_type): Print the function
1059 parameters with no modifiers.
1060 * testsuite/demangle-expected: Add test case.
1061
8d686df2
ILT
1062 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
1063 expect that we've read the entire string.
1064 (is_ctor_or_dtor): Don't expect that we've read the entire
1065 string--reverse patch of 2003-11-29.
1066
adf269c7
BK
10672003-12-15 Brendan Kehoe <brendan@zen.org>
1068
1069 * libiberty/Makefile.in (floatformat.o): Add dependency on
1070 config.h to accompany change of 2003-12-03.
1071
374caa50
ILT
10722003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1073
1074 Fix handling of constructor/destructor of standard substitution:
1075 * cp-demangle.c (struct d_standard_sub_info): Define.
1076 (d_substitution): Add prefix argument. Change all callers.
1077 Rework handling of standard substitutions to print full name when
1078 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
1079 * testsuite/demangle-expected: Add test case.
1080
1081 Fix handling of negative literal constants:
1082 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
1083 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
1084 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
1085 (d_print_comp): Handle D_COMP_LITERAL_NEG.
1086 * testsuite/demangle-expected: Add test case.
1087
a51753e4
ILT
10882003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
1089
1090 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
1091 (d_last_char): Define new macro.
1092 (d_make_name): Reject an empty name.
1093 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
1094 (d_substitution, d_print_identifier): Likewise.
1095 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
1096 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
1097 (d_print_mod) Use new d_last_char macro.
1098 (d_print_cast): Use new d_last_char macro.
1099 (is_ctor_or_dtor): Don't leak memory.
1100
1101 Fix handling of member function modifiers:
1102 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
1103 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
1104 (d_dump): Dump new d_comp_type values.
1105 (d_make_comp): Accept new d_comp_type values.
1106 (has_return_type): Only accept _THIS variants of qualifiers.
1107 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
1108 qualifiers.
1109 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
1110 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
1111 qualifiers and printing them at the end, add _THIS qualifiers to
1112 the modifier list.
1113 (d_print_comp) [D_COMP_*_THIS]: New cases.
1114 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
1115 qualifiers.
1116 (d_print_mod_list): Add suffix parameter. Change all callers.
1117 Keep walking the list even if the current modifier has been
1118 printed.
1119 (d_print_mod): Handle new _THIS qualifiers.
1120 (d_print_function_type): Handle new _THIS qualifiers when deciding
1121 whether to print a parenthesis. Put a space before the
1122 parenthesis in some cases. Call d_print_mod_list again at the
1123 end, passing suffix as 1.
1124 (is_ctor_or_dtor): Look for new _THIS qualifiers.
1125 * testsuite/demangle-expected: Add test case.
1126
1127 Fix for PR gcc/13304:
1128 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
1129 before the '<' is itself a '<', insert a space.
1130 (d_print_cast): Likewise.
1131 * testsuite/demangle-expected: Add test case.
1132
1133 Fix for PR gcc/13244:
1134 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
1135 which uses the '>' operator in an extra layer of parens.
1136 * testsuite/demangle-expected: Add test case.
1137
bee6ab3e
ILT
11382003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
1139
1140 * floatformat.c: Include "config.h" and <string.h> if available.
1141 (INFINITY, NAN): Define if not defined by <math.h>.
1142 (floatformat_to_double): Handle NaN, infinity, and denormalized
1143 numbers.
1144 (floatformat_from_double): Likewise.
1145 (ieee_test): In debugging code, use little endian rather than big
1146 endian. Correct tests to handle NaN and to check correct sign of
1147 zero. Omit m68k extended test.
1148 (main): Add more debugging cases.
1149
f26deb3d
ILT
11502003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
1151
1152 * cp-demangle.c (d_demangle): Only return success if we consumed
1153 the entire demangled string.
1154 (is_ctor_or_dtor): Likewise.
1155
1156 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
1157 to restore expected result of EDG test case to original expected
1158 result.
1159
81dc098b
ILT
11602003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
1161
1162 * cp-demangle.c (struct d_print_mod): Add templates field.
1163 (d_make_builtin_type): Check for NULL type.
1164 (d_make_extended_operator): Check for NULL name.
1165 (d_make_ctor, d_make_dtor): Likewise.
1166 (d_mangled_name): Add top_level parameter. Change all callers.
1167 (d_encoding): If DMGL_PARAMS is not set, strip off initial
1168 CV-qualifiers.
1169 (d_type): Check some return values we rely on.
1170 (d_bare_function_type, d_array_type): Likewise.
1171 (d_pointer_to_member_type, d_template_args): Likewise.
1172 (d_add_substitution): Fail if argument is NULL.
1173 (d_print_resize): Check whether buf is NULL.
1174 (d_print_comp): Save current templates list with each modifier.
1175 Don't pass the modifier list down when printing a template.
1176 (d_print_cast): Don't pass the modifier list down when printing a
1177 template.
1178 (d_print_mod_list): Temporarily set templates list while printing
1179 a modifier.
1180 (d_print_mod): Check that buf is not NULL before using it.
1181 (d_print_function_type): Print parens if there is no modifier.
1182 (d_init_info): Permit as many substitutions as there are
1183 characters in the mangled name.
1184 * testsuite/demangle-expected: Add two new test cases.
1185
eb459c81
ILT
11862003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
1187
1188 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
1189 d_demangle.
1190
ad07f5e5
ILT
11912003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
1192
1193 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
1194 callers.
1195 (print_usage): Display new -p option.
1196 (long_options): Add --no-params.
1197 (main): Accept and handle -p.
1198
0ba5c8a2
ILT
11992003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
1200
1201 * cp-demangle.c (has_return_type): Skip qualifiers when checking
1202 whether we have a template.
1203 * testsuite/demangle-expected: Add four new tests.
1204
bd6946d1
ILT
12052003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
1206
9cca376f
ILT
1207 * testsuite/demangle-expected: Minor changes to match output of
1208 new demangler: adjust whitespace in four tests, and change order
1209 of qualifiers in one test.
1210
bd6946d1
ILT
1211 * cp-demangle.c: Complete rewrite.
1212
6df5a5c7
MM
12132003-11-19 Mark Mitchell <mark@codesourcery.com>
1214
1215 * cp-demangle.c (demangle_type): Correct thinko in substitution
1216 processing.
1217
a9b571f2
ILT
12182003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
1219
820555e6
ILT
1220 * cp-demangle.c (demangle_operator_name): Remove space before
1221 "sizeof".
1222 (demangle_type_ptr): Put qualifiers in the right place. Handle
1223 qualifiers in pointer to member specially.
1224 (demangle_type): Handle qualifiers for pointer or reference
1225 specially. Handle function type.
1226 (demangle_local_name): Save and restore caret around demangling of
1227 initial encoding.
1228
c4328d32
ILT
1229 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
1230 cplus_demangle.
1231
a9b571f2
ILT
1232 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
1233
ad37274a
AJ
12342003-10-31 Andreas Jaeger <aj@suse.de>
1235
1236 * floatformat.c (floatformat_always_valid): Add unused attribute.
1237
27eb8ab1
JZ
12382003-10-30 Josef Zlomek <zlomekj@suse.cz>
1239
1240 Jan Hubicka <jh@suse.cz>
1241 * vasprintf.c (int_vasprintf): Pass va_list by value.
1242 Use va_copy for copying va_list.
1243 (vasprintf): Pass va_list by value.
1244
e0432c1c
JZ
12452003-10-30 Josef Zlomek <zlomekj@suse.cz>
1246
1247 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
1248 instead of increasing n_elements when inserting to deleted slot.
1249
08c5b96d
B
12502003-10-20 J. Brobecker <brobecker@gnat.com>
1251
1252 * cplus-dem.c (demangle_template): Register a new Btype only
1253 when needed.
1254 * testsuite/demangle-expected: Add a new test.
1255
968e3f93
L
12562003-10-16 H.J. Lu <hongjiu.lu@intel.com>
1257
1258 * testsuite/demangle-expected: Update the expected output of
1259 _GLOBAL__I__Z2fnv.
1260
bca48dc6
DJ
12612003-10-02 Daniel Jacobowitz <drow@mvista.com>
1262
1263 * strerror.c: Revert last change. Declare static sys_nerr
1264 and sys_errlist using different names.
1265
b9e8f4b3
DJ
12662003-10-01 Daniel Jacobowitz <drow@mvista.com>
1267
1268 * strerror.c: Don't provide or reference sys_errlist if
1269 strerror is available.
1270
c0590bfd
L
12712003-10-01 H.J. Lu <hongjiu.lu@intel.com>
1272
1273 * configure.in: Check if $MAKEINFO is missing.
1274 * configure: Regenerated.
1275
b033df90
DJ
12762003-09-24 Daniel Jacobowitz <drow@mvista.com>
1277
1278 * configure.in: Use AC_PROG_CPP_WERROR.
1279 * configure: Regenerated.
1280
83c07342
AC
12812003-09-22 Andrew Cagney <cagney@redhat.com>
1282
1283 * floatformat.c (floatformat_i387_ext_is_valid): New function.
1284 (floatformat_always_valid): New function.
1285 (floatformat_i387_ext): Initialize new "is_valid" field to
1286 "floatformat_i387_ext_is_valid".
1287 (floatformat_ieee_single_little): Initialize "is_valid" field to
1288 floatformat_always_valid.
1289 (floatformat_ieee_double_big): Ditto.
1290 (floatformat_ieee_double_little): Ditto.
1291 (floatformat_ieee_double_little): Ditto.
1292 (floatformat_ieee_double_littlebyte_bigword): Ditto.
1293 (floatformat_i960_ext): Ditto.
1294 (floatformat_m88110_ext): Ditto.
1295 (floatformat_m88110_harris_ext): Ditto.
1296 (floatformat_arm_ext_big): Ditto.
1297 (floatformat_arm_ext_littlebyte_bigword): Ditto.
1298 (floatformat_ia64_spill_big): Ditto.
1299 (floatformat_ia64_spill_little): Ditto.
1300 (floatformat_ia64_quad_big): Ditto.
1301 (floatformat_ia64_quad_little): Ditto.
1302 (floatformat_ia64_quad_little): Ditto.
1303 (floatformat_is_valid): Call "is_valid".
1304
c9fbef12
AC
13052003-09-15 Andrew Cagney <cagney@redhat.com>
1306
1307 * floatformat.c (get_field): Make "data" constant.
1308 (floatformat_is_valid, floatformat_to_double): Make "from"
1309 constant, fix casts.
1310 (floatformat_from_double): Make "from" constant.
1311
9c8860c3
DJ
13122003-09-15 Daniel Jacobowitz <drow@mvista.com>
1313
1314 * floatformat.c (floatformat_is_valid): New function.
1315 (get_field, put_field): Correct comments.
1316
13f7d3a1
JZ
13172003-09-06 Josef Zlomek <zlomekj@suse.cz>
1318
1319 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
1320 FIBHEAPKEY_T.
1321
03eec143 13222003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
86d75906
JDA
1323
1324 PR bootstrap/12100
1325 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
1326 * configure: Rebuilt.
1327
238235ef
DJ
13282003-08-27 Daniel Jacobowitz <drow@mvista.com>
1329
1330 * aclocal.m4: Include acx.m4 and no-executables.m4.
1331 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
1332 (LIB_AC_PROG_CC): Remove.
1333 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
1334 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
1335 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
1336 performing link tests.
1337 * configure: Regenerated.
1338
2b81b2c9
NN
13392003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
1340
0cf61401 1341 * cp-demangle.c: Clarify what package(s) this is part of.
2b81b2c9 1342
7b96f3e4
DS
13432003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
1344
1345 * pex-win32.c (pexecute): Mark parameters this_pname and
1346 temp_base as unused. Remove unused variables retries,
1347 sleep_interval. Initialize org_stdin, org_stdout.
1348 (pwait): Mark parameter flags as unused.
1349
13502003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
bacb96b2
DS
1351
1352 * pex-win32.c (fix_argv): Ensure that the executable pathname
1353 uses Win32 backslashes.
1354 (pexecute): Cast away constness when assigning *errmsg_arg.
1355
6f8507b1
L
13562003-06-26 H.J. Lu <hongjiu.lu@intel.com>
1357
1358 * testsuite/demangle-expected: Add more GNU V3 testcases.
1359
21299dbd
ZW
13602003-06-22 Zack Weinberg <zack@codesourcery.com>
1361
1362 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
1363 not HC_ASCII and HC_EBCDIC.
1364 Add documentation in form expected by gather-docs.
1365 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
1366 * Makefile.in, functions.texi: Regenerate.
1367
7468e0b5
ZW
13682003-06-21 Zack Weinberg <zack@codesourcery.com>
1369
1370 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
1371 for charset determination.
1372
cf8e4b78
DH
13732003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
1374
1375 * configure.in: Add check for malloc.h needed by
1376 m68k for function free().
1377 * configure: Regenerated.
1378 * config.in: Add HAVE_MALLOC_H.
1379 * hashtab.c: include malloc.h were available for
1380 free().
1381
aa9dc53d 13822003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
7468e0b5 1383
aa9dc53d
ACY
1384 PR bootstrap/10974
1385 * physmem.c: Update comment.
1386 * configure.in: Modify test for _system_configuration for older
1387 AIX systems.
1388
1389 * config.in, configure: Regenerated.
7468e0b5 1390
8191fe81
JDA
13912003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1392
1393 PR other/10810
1394 * test-demangle.c (getline): Fix fence-post error.
1395
8d398258
NC
13962003-06-03 Nick Clifton <nickc@redhat.com>
1397
1398 * asprintf.c: Change comment to note that -1 is returned upon
1399 error.
1400 * vasprintf.c: Likewise.
1401 (vasprintf): Return -1 upon error.
1402 * functions.texi: Document changes to asprintf and vasprintf.
1403
29ad6d3f
KC
14042003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
1405
1406 * config.table: Accept i[345867]86 variant.
1407
49a19cfd
JB
14082003-05-15 Jim Blandy <jimb@redhat.com>
1409
1410 * hex.c (_hex_value): Make this unsigned.
1411 (hex_value): Update documentation for new return type. hex_value
1412 now expands to an unsigned int expression, to avoid unexpected
1413 sign extension when we store it in a bfd_vma, which is larger than
1414 int on some platforms.
1415 * functions.texi: Regenerated.
1416
d5d4eae2
JZ
14172003-05-07 Josef Zlomek <zlomekj@suse.cz>
1418
1419 * splay-tree.c (splay_tree_predecessor): Fix comment.
1420 (splay_tree_successor): Fix comment.
1421
5cc5a0d0
JM
14222003-05-07 Jason Merrill <jason@redhat.com>
1423
9d70d418 1424 * hashtab.c (iterative_hash): New fn.
5cc5a0d0
JM
1425 * configure.in: Add AC_C_BIGENDIAN_CROSS.
1426 * aclocal.m4: Include accross.m4.
1427 * configure, config.in: Regenerate.
1428
05c30f22
KG
14292003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1430
1431 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
1432 * configure: Regenerate.
1433
41fe9404
CW
14342003-05-03 Carlo Wood <carlo@alinoe.com>
1435
1436 * cp-demangle.c: Fix typo in "char_traints" string-literal.
1437
52dd3224
KG
14382003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1439
1440 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
1441 (main): Test that we don't write too much data.
1442
bd3fbc6b
KG
14432003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1444
1445 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
1446 vsnprintf.
1447 * snprintf.c, vsnprintf.c: New files.
1448 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
1449 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
1450 Regenerate dependencies.
1451
1452 * functions.texi, configure, config.in: Regenerated.
1453
029bcc09
KG
14542003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1455
1456 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
1457 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
1458 and stpncpy.
1459 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
1460 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
1461 Regenerate dependencies.
1462
1463 * functions.texi, configure, config.in: Regenerated.
1464
c9ac9147
KG
14652003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1466
1467 * argv.c: Fix comments.
1468 * calloc.c: Don't unnecessarily include "libiberty.h".
1469 (bzero): Add prototype.
1470 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1471 * getcwd.c (getcwd): Use standard definition to avoid conflicts
1472 with system headers.
1473 * hashtab.c (htab_traverse): Delete unused variables.
1474 * rename.c: Include "ansidecl.h".
1475 (rename): Use standard definition to avoid conflicts with system
1476 headers.
1477 * strsignal.c: Rely on ANSI_PROTOTYPES.
1478 * strstr.c: Check GNUC >= 2, not GNUC == 2.
1479 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1480 * vprintf.c: Include "ansidecl.h" earlier, rely on
1481 ANSI_PROTOTYPES.
1482 * vsprintf.c: Include "ansidecl.h" earlier, rely on
1483 ANSI_PROTOTYPES and possibly include <stdarg.h>.
7468e0b5 1484
c9ac9147
KG
1485 * Makefile.in: Regenerate dependencies.
1486
98475c57
DD
14872003-04-15 DJ Delorie <dj@redhat.com>
1488
1489 * maint-tool (deps): Scan for headers in $srcdir also.
1490
55adc7bd
KG
14912003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1492
1493 PR target/10338
1494 PR bootstrap/10198
1495 PR bootstrap/10140
1496 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
1497 __mempcpy.
1498 * regex.c (regerror): Likewise.
1499
0ae0f1b0
RS
15002003-04-14 Roger Sayle <roger@eyesopen.com>
1501
1502 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
1503 * memchr.c: Likewise.
1504 * strcasecmp.c: Likewise.
1505 * strncasecmp.c: Likewise.
1506 * strncmp.c: Likewise.
1507 * xatexit.c: Likewise.
1508 * xmalloc.c: Likewise.
1509
1510 * copysign.c: Use traditional function declaration instead of DEFUN.
1511 * sigsetmask.c: Likewise.
1512
1513 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
1514 * memset.c: Likewise.
1515
1516 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
1517 * memmove.c: Likewise.
1518
88702c45
RS
15192003-04-14 Roger Sayle <roger@eyesopen.com>
1520
1521 * strdup.c (strdup): Tweak implementation to use memcpy.
1522
39e8d049
KG
15232003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1524
1525 * configure.in (HAVE_UINTPTR_T): Always define.
1526 * configure: Regenerated.
1527
9f2e0608
AO
15282003-03-23 Alexandre Oliva <aoliva@redhat.com>
1529
1530 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
1531 instead of $$CC alone.
1532 (install_to_tooldir): Use it.
1533
dbccdc42
JH
15342003-17-03 Jan Hubicka <jh@suse.cz>
1535
1536 * hashtab.c (htab_traverse_noresize): Break out from ...
1537 * hashtab.c (htab_traverse): ... here.
1538
0a8e3de3
JH
15392003-12-03 Jan Hubicka <jh@suse.cz>
1540
cd22e4af
JH
1541 * hashtab.c (htab_expand): Fix warning.
1542
0a8e3de3
JH
1543 * hashtab.c (htab_expand): Compute the size of hashtable based
1544 on the number of elements actually used.
1545 (htab_traverse): Call htab_expand when table is too empty.
1546
8fe85775
CW
15472003-03-11 Carlo Wood <carlo@gnu.org>
1548
1549 * cplus-dem.c (demangle_integral_value): Correction to reflect
1550 patch of 2002-01-10 in order to also make negative multi-digits
1551 without leading underscore work.
1552
3bf27822
MM
15532003-03-03 Mark Mitchell <mark@codesourcery.com>
1554
1555 * cplus-dem.c: Add license exception to copyright notice.
1556
434fa0b8
KG
15572003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1558
1559 * physmem.c: Formatting changes from upstream.
1560
ed935c35
DS
15612003-02-24 Danny Smith <dannysmith@users.source.forge.net>
1562
1563 * physmem.c (physmem_total): Add _WIN32 support.
1564 (physmem_available): Likewise.
1565
7f9fc006
RO
15662003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1567
1568 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
1569 GSI_PHYSMEM.
1570 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
1571
d47f75c4
KG
15722003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1573
1574 * configure.in: Check for sys/systemcfg.h and
1575 _system_configuration.
1576 * physmem.c: Add support for AIX. Tweek formatting as per
1577 upstream coreutils beta.
1578
170230b7
KG
15792003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1580 Richard Earnshaw <rearnsha@arm.com>
1581 Geoffrey Keating <geoffk@apple.com>
7468e0b5 1582
170230b7
KG
1583 * configure.in: Check for sys/sysctl.h and sysctl.
1584 * physmem.c: Add support for *bsd and darwin.
1585 * Makefile.in: Generate depedency for physmem.o.
1586
4a06f7f2
RO
15872003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1588
1589 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
1590 Tru64 UNIX.
1591 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
1592 Tru64 UNIX.
1593
1594 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
1595 machine/hal_sysinfo.h, sys/table.h.
1596 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
1597 * configure, config.in: Regenerate.
1598
64c7e556
KG
15992003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1600
1601 * configure.in: Check for sys/sysmp.h and sysmp.
1602 * physmem.c: Pull upstream copy, add support for irix6.
1603
1604 * config.in, configure: Regenerated.
1605
e9019af6
KG
16062003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1607
1608 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
1609 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
1610 pstat_getdynamic.
7468e0b5 1611
a354191e
KG
16122003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1613
1614 * Makefile.in (CFILES): Add physmem.c.
1615 (REQUIRED_OFILES): Add physmem.o.
1616 * configure.in: Check for sys/pstat.h.
1617 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
1618 * physmem.c: New file, copied from textutils.
1619
1620 * config.in, configure: Regenerated.
1621
4876b2b4
DJ
16222003-02-20 Daniel Jacobowitz <drow@mvista.com>
1623
1624 * Makefile.in (CFILES): Add lrealpath.c.
1625 (REQUIRED_OFILES): Add lrealpath.o.
1626 (lrealpath.o): Add rule.
1627 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
1628 * configure.in: Add realpath and canonicalize_file_name to
1629 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
1630 for canonicalize_file_name.
1631 * lrealpath.c: New file.
1632 * make-relative-prefix.c: Update documentation.
1633 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
1634 * config.in: Regenerated.
1635 * configure: Regenerated.
1636 * functions.texi: Regenerated.
1637
e182f0a3 16382003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1639
1640 * cplus_dem.c: Fix typo: intializes -> initializes.
1641
3343fdd2
AO
16422003-02-20 Alexandre Oliva <aoliva@redhat.com>
1643
1644 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
1645 config.status.
1646 * configure: Rebuilt.
1647
902cf50c
DJ
16482003-02-13 Daniel Jacobowitz <drow@mvista.com>
1649
1650 Fix PR c++/7612.
1651 * cplus-dem.c (demangle_signature): Call string_delete.
1652 Remove extra string_init.
1653 (demangle_arm_hp_template): Call string_delete instead of
1654 string_clear. Add missing string_delete call.
1655 (demangle_qualified): Add missing string_delete call.
1656 (do_type): Remove unused variable btype. Add missing string_delete
1657 call. Call string_delete instead of string_clear.
1658 (demangle_fund_type): Move variable btype inside of the switch
1659 statement. Add missing string_delete call.
1660 (do_arg): Call string_delete instead of string_clear. Remove extra
1661 string_init.
1662 (demangle_nested_args): Free work->previous_argument.
1663
7ac27e08
KG
16642003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1665
1666 * acconfig.h: New file. Add uintptr_t.
1667 * config.in: Regenerated.
1668
b3a8389d
JM
16692003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
1670
1671 * libiberty.texi: Update to GFDL 1.2.
1672
d8c22ce7
CC
16732003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1674
1675 * Makefile.in (libiberty_topdir): New subst.
1676 (mkinstalldirs): Redefine in terms of the above.
1677 * configure.in: AC_SUBST it.
1678 * configure: Regenerate.
1679
4ce1921a
CC
16802003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1681
1682 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
1683 (info-subdir, install-info-subdir, clean-info-subdir)
1684 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
1685 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
1686 Pass $(FLAGS_TO_PASS).
1687
93239fdb
AO
16882003-01-27 Alexandre Oliva <aoliva@redhat.com>
1689
1690 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
1691 /`$$CC -print-multi-os-directory`.
1692
74828682
DJ
16932003-01-26 Daniel Jacobowitz <drow@mvista.com>
1694
1695 * hashtab.c (htab_create_alloc_ex): New function.
1696 (hatab_set_functions_ex): New function.
1697 (htab_delete, htab_expand): Support alternate allocation functions.
1698
ece0e59f
CF
16992003-01-24 Christopher Faylor <cgf@redhat.com>
1700
1701 * configure.in: Remove special pex-cygwin consideration.
1702 * configure: Regenerate.
1703 * pex-cygwin.c: Remove.
1704 * Makefile.in: Remove pex-cygwin.[co] lines.
1705
55d0e5e0
ZW
17062003-01-24 Zack Weinberg <zack@codesourcery.com>
1707
1708 * Makefile.in (CFILES): Add pex-*.c.
1709 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
1710 (CONFIGURED_OFILES): Add pex-*.o.
1711 (TEXIFILES): Add pexecute.txh.
1712 (pexecute.o): Delete rule.
1713 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
1714 pex-unix.o, pex-win32.o): New rules.
1715 * configure.in: Change AC_INIT argument to xmalloc.c.
1716 Compute appropriate pexecute implementation and substitute it
1717 as @pexecute@.
1718
1719 * pexecute.c: Split up into...
1720 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
1721 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
1722 new files.
1723
1724 * functions.texi: Regenerate.
1725 * configure: Regenerate.
1726
120cdf68
JZ
17272003-01-20 Josef Zlomek <zlomekj@suse.cz>
1728
1729 * hashtab.c (htab_expand): Fix allocation of new entries.
1730
90e5b39f
CC
17312003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1732
1733 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
1734
d7082cd7
CC
1735 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
1736 mkinstalldirs command.
1737
eaed9290
DS
17382002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
1739
1740 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
1741 Define for hosts with HOST_EXECUTABLE_SUFFIX.
1742
ef4e4181
NC
17432002-11-24 Nick Clifton <nickc@redhat.com>
1744
1745 * make-relative-prefix.c (make_relative_prefix): Ensure return
1746 string is empty before using strcat to construct it.
1747
42766f8d
DJ
17482002-11-22 Daniel Jacobowitz <drow@mvista.com>
1749
1750 * Makefile.in: Add make-relative-prefix.c.
1751 * make-relative-prefix.c: New file.
1752 * functions.texi: Rebuilt.
1753
783080ab
JJ
17542002-11-16 Jakub Jelinek <jakub@redhat.com>
1755
1756 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
1757 used with arguments in traditional C' warnings.
1758
7da64d7a
JJ
17592002-10-16 Jakub Jelinek <jakub@redhat.com>
1760
1761 * config.table: Use mh-s390pic for s390x too.
1762
de78f58b
AJ
17632002-10-06 Andreas Jaeger <aj@suse.de>
1764
1765 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
1766 variable and of strict-aliasing warning.
1767 (grow_vect): Use char as first parameter.
1768
6c5d742e
KG
17692002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1770
1771 * Makefile.in (all): Fix multilib parallel build.
1772
f08b7eee
JDA
17732002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
1774
1775 * cp-demangle.c (demangling_new): Cast 0 to enum.
1776 (demangle_char): Cast return of strdup to char *.
1777 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
1778 (is_gnu_v3_mangled_dtor): Likewise.
1779 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
1780 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
1781 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
1782 * md5.c (md5_process_bytes): Cast results back to const void *.
1783 (md5_process_block): Add cast to const md5_uint32 *.
1784 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
1785 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
1786 unsigned short.
1787 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
1788 to void *.
1789 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
1790
8d87f295
NC
17912002-09-19 Nick Clifton <nickc@redhat.com>
1792
1793 * README: Update email addresses for bugs and patches.
1794
6eedb9ca
MS
17952002-09-10 Mike Stump <mrs@apple.com>
1796
1797 * splay-tree.c (splay_tree_successor): Fix comments.
1798
3fd9d606
ZW
17992002-09-11 Zack Weinberg <zack@codesourcery.com>
1800
b2196e8f 1801 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
3fd9d606
ZW
1802 * testsuite/Makefile.in: Adjust for test-demangle.
1803 * testsuite/regress-demangle: Deleted.
1804 * testsuite/test-demangle.c: New file.
1805 * testsuite/demangle-expected: Change \$ to $ throughout, now that
1806 this file is not being read by a shell script.
1807
70c4e67a
RS
18082002-09-05 Roger Sayle <roger@eyesopen.com>
1809
1810 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
1811
65b91091
DD
18122002-08-07 DJ Delorie <dj@redhat.com>
1813
1814 * regex.c (re_error_msgid): Just use a simple array of strings.
1815 (re_compile_pattern): Compensate.
1816 (re_comp): Likewise.
1817 (re_comp): Likewise.
1818 (regerror): Likewise.
1819
437974a9
NB
18202002-07-29 Neil Booth <neil@daikokuya.co.uk>
1821
1822 * cplus-dem.c (PREPEND_BLANK): Remove.
de78f58b 1823
28a34ec1
JM
18242002-07-10 Jason Merrill <jason@redhat.com>
1825
1826 * cp-demangle.c (demangle_identifier): Support extended Unicode
1827 characters.
1828
84326592
KG
18292002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1830
1831 * cp-demangle.c (demangle_v3_with_details): Wrap in
de78f58b 1832 !defined IN_GLIBCPP_V3.
84326592 1833
5d69ba1f
MM
18342002-07-01 Mark Mitchell <mark@codesourcery.com>
1835
1836 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
1837 Set it for the "st" operator.
1838 (demangle_expression): Handle expressions with types as arguments.
1839
7fda878c
DR
18402002-06-30 Douglas Rupp <rupp@gnat.com>
1841
1842 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
1843 * Makefile.in (OUTPUT_OPTION): Use.
1844
112bae77
PB
18452002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
1846
1847 * Makefile.in (install_to_libdir): Add $(DESTDIR).
1848 (install_to_tooldir): Likewise.
1849
53309d5c
DR
18502002-06-17 Douglas Rupp <rupp@gnat.com>
1851
1852 * lbasename.c: Add 2002 to copyright.
1853 (IS_DIR_SEPARATOR): Remove VMS junk.
1854
045b3a49
GK
18552002-06-05 Geoffrey Keating <geoffk@redhat.com>
1856
1857 * hashtab.c (htab_create): New stub function for backward
1858 compatibility.
1859 (htab_try_create): Likewise.
1860
e2500fed
GK
18612002-06-03 Geoffrey Keating <geoffk@redhat.com>
1862
1863 * hashtab.c (htab_create): Delete.
1864 (htab_try_create): Delete.
1865 (htab_create_alloc): New.
1866 (htab_delete): Support user-specified memory allocation.
1867 (htab_expand): Likewise.
1868
9f3dbd92
RL
18692002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
1870
1871 * configure.in: Fix typo in the code checking for sys_errlist.
1872 * configure: Regenerated.
1873
e4723404
AS
18742002-05-13 Andreas Schwab <schwab@suse.de>
1875
1876 * config.table: Use mh-x86pic also for x86-64.
1877
6706f116
AO
18782002-05-08 Alexandre Oliva <aoliva@redhat.com>
1879
1880 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1881 script entry, and set LD to it when configuring multilibs.
1882 * configure: Rebuilt.
1883
deae2ed9
MM
18842002-05-07 Mark Mitchell <mark@codesourcery.com>
1885
1886 * configure.in (AC_TYPE_PID_T): Use it.
1887 * configure: Regenerated.
1888 * getruntime.c: Include <sys/types.h>.
1889 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
1890
4fc4e478
RH
18912002-04-09 Richard Henderson <rth@redhat.com>
1892
1893 * hashtab.c (higher_prime_number): Use 7 as minimum.
1894 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
1895 (htab_find_slot_with_hash): Likewise.
1896
bd7e6f2d
PE
18972002-04-01 Phil Edwards <pme@gcc.gnu.org>
1898
1899 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
1900 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
1901 not compile if IN_GLIBCPP_V3 defined.
1902 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
1903
a8f55e51
BM
19042002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1905
de78f58b 1906 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
a8f55e51
BM
1907 if it is NULL.
1908
96adcacb
DD
19092002-03-27 DJ Delorie <dj@redhat.com>
1910
1911 * hex.c: Add documentation.
1912 (_hex_value): Provide non-ASCII empty table.
1913 (hex_init): Initialize the non-ASCII table.
1914 * functions.texi: Regenerate.
1915
2b613c6a
MM
19162002-03-27 Mark Mitchell <mark@codesourcery.com>
1917
1918 * dyn-string.c: Add libgcc exception to copyright notice.
1919
cd862df8
L
19202002-03-26 H.J. Lu (hjl@gnu.org)
1921
1922 * config.table: Support --with-build-subdir.
1923 * configure.in: Likewise.
1924 * configure: Rebuild.
1925
ed300793
SG
19262002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
1927
1928 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
1929 seen.
1930
b3dd43df
MM
19312002-03-12 Mark Mitchell <mark@codesourcery.com>
1932
1933 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
1934 notice.
1935
50c74579
DR
19362002-03-11 Douglas B Rupp <rupp@gnat.com>
1937
1938 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
1939
957978a4
JB
19402002-03-06 Jim Blandy <jimb@redhat.com>
1941
1942 * splay-tree.c (splay_tree_xmalloc_allocate,
1943 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
1944 prototyped definitions. Mark `data' arguments as unused.
1945
ccc49bed
AC
19462002-03-06 Andrew Cagney <ac131313@redhat.com>
1947
1948 * floatformat.c (floatformat_arm_ext_big): Delete definition.
1949
48d7db63
PE
19502002-03-04 Phil Edwards <pme@gcc.gnu.org>
1951
1952 * configure.in: Add --enable-install-libiberty option.
1953 * Makefile.in (INSTALLED_HEADERS): New variable.
1954 (install_to_libdir): Possibly also copy headers.
1955 * configure: Regenerated.
1956
af18e951
NB
19572002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
1958
1959 * xmalloc.c (xmalloc_fail): Clarify error message further.
1960
d8d7c3c3
NB
19612002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
1962
1963 * xmalloc.c (xmalloc_fail): Clarify error message.
1964
00c2f96f
JB
19652002-02-22 Jim Blandy <jimb@redhat.com>
1966
1967 * splay-tree.c (splay_tree_xmalloc_allocate,
1968 splay_tree_xmalloc_deallocate): New functions.
1969 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
1970 above functions and a dummy data pointer.
1971 (splay_tree_new_with_allocator): New function.
1972 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
1973 splay_tree_remove): Use the splay tree's allocation and
1974 deallocation functions.
1975
b1c1a22f
SS
19762002-02-19 Scott Snyder <snyder@fnal.gov>
1977
1978 * testsuite/demangle-expected: Add test case for infinite loop in
1979 demangler.
1980 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
1981 if do_type() doesn't make any progress --- prevents an infinite
1982 loop.
1983
336669e7
CW
19842002-02-18 Carlo Wood <carlo@gnu.org>
1985
1986 PR c++/5390
1987 * cplus-dem.c (demangle_integral_value): Accept multi-digit
1988 numbers that do not start with an underscore; This is needed
1989 for integer template parameters. This doesn't break anything
1990 because multi-digit numbers are never followed by a digit.
1991 * testsuite/demangle-expected: Corrected all mangled test
1992 cases with multi-digit template parameters: g++ 2.95.x does
1993 not generate underscores around these parameters.
1994
c13db5d1
JM
19952002-02-05 Jason Merrill <jason@redhat.com>
1996
1997 * cplus-dem.c (flags): Add DMGL_VERBOSE
1998 (cplus_demangle_v3_p): Remove.
1999 (demangle_it): Add DMGL_TYPES to passed flags.
2000 * cp-demangle.c (cplus_demangle_v3_all): Remove.
2001 (cplus_demangle_v3_type): Remove.
2002 (cplus_demangle_v3): Add options parm.
2003
d74697b8
L
20042002-02-02 H.J. Lu (hjl@gnu.org)
2005
2006 * cp-demangle.c (cp_demangle_type): Do not protect with
2007 IN_LIBGCC2.
2008 (cplus_demangle_v3_all): New.
2009 (cplus_demangle_v3): Call cplus_demangle_v3_all.
2010 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
2011
2012 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
2013 Initialized to cplus_demangle_v3.
2014 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
2015 of cplus_demangle_v3.
2016 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
2017 command line symbol.
2018
2019 * testsuite/regress-demangle: Pass the mangled name at the
2020 command line.
2021
3a441e38
L
20222002-02-01 H.J. Lu <hjl@gnu.org>
2023
2024 * cp-demangle.c (cp_demangle_type): Call demangling_new with
2025 DMGL_GNU_V3.
2026
6d747e63
PE
20272002-01-31 Phil Edwards <pme@gcc.gnu.org>
2028
2029 * cp-demangle.c: Revert yesterday's change.
2030
46af757b
AM
20312002-01-31 Adam Megacz <adam@xwt.org>
2032
2033 * gcc/libiberty/configure.in: Treat mingw the same as cywin
2034 wrt HAVE_SYS_ERRLIST.
2035
46ab74b1
PE
20362002-01-30 Phil Edwards <pme@gcc.gnu.org>
2037
2038 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
2039 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
2040 cp_demangle_type.
2041 * testsuite/demangle-expected: New gnu-v3 test.
2042
e64d0626
MV
20432002-01-22 Momchil Velikov <velco@fadata.bg>
2044
2045 * configure.in (variable detection): Use arrays of unspecified
2046 size instead of plain integers.
2047
9ce3f7e5
DD
20482002-01-18 DJ Delorie <dj@redhat.com>
2049
2050 * Makefile.in (TESTLIB): New. This library is for future
2051 testsuites.
2052 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
2053 break down by letter.
2054 (REQUIRED_OFILES): List long-to-compile files first.
2055 (maint-deps): New, target for updating dependencies.
2056 (dependencies): Update.
2057 * maint-tool: Add dependency-generating option.
2058 * configure.in: Check for _doprnt even if we're not providing it.
2059 * configure: Regenerate.
2060
2061 * _doprnt.c: Modifications to allow compiling on any platform.
2062 * copysign.c: Likewise.
2063 * putenv.c: Likewise.
2064 * setenv.c: Likewise.
2065 * vsprintf.c: Likewise.
2066
0e83ceb1
DR
20672002-01-15 Douglas B Rupp <rupp@gnat.com>
2068
2069 * mkstemps.c (mkstemps): On VMS, open temp file with option
2070 that causes it to be deleted when closed.
2071
adddf5bf
KG
20722002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2073
5e65297b
KG
2074 * cp-demangle.c (long_options): Const-ify.
2075 * cplus-dem.c (long_options): Likewise.
2076
adddf5bf
KG
2077 * cplus-dem.c (mystrstr): Delete. All callers changed to use
2078 strstr instead.
2079
a4219437
IR
20802001-12-31 Ira Ruben <ira@apple.com>
2081
2082 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
2083 * configure: Regenerated.
af328d8d
DR
2084
20852001-12-24 Douglas B. Rupp <rupp@gnat.com>
2086
2087 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
2088 * configure: Regenerated.
a4219437 2089
63de15a4
CR
20902001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
2091
2092 PR other/2719
2093 * cplus-dem.c (consume_count): Treat negative count as an error.
2094 * testsuite/demangle-expected: Added testcase.
2095
ee262b6f
DR
2096Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
2097
2098 * configure.in: Hardcode that vfork works on VMS host.
2099 * configure: Regenerated.
2100
d06ba3c7
RH
21012001-12-06 Richard Henderson <rth@redhat.com>
2102
2103 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
2104 (cplus_demangle): Support no_demangling.
2105
e490616e
ZW
21062001-11-27 Zack Weinberg <zack@codesourcery.com>
2107
2108 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
2109 in libiberty context. Fix typo in leading comment.
2110 * configure.in: Fix various AC_DEFINEs so autoheader works.
2111 If any of vprintf, vsprintf, vfprintf is missing from libc,
2112 then AC_REPLACE_FUNCS(_doprnt).
2113
97e620cf 21142001-11-26 DJ Delorie <dj@redhat.com>
e490616e 2115 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
2116
2117 * Makefile.in (stamp-h): Depend on Makefile for proper
2118 serialization.
2119 (*-subdir): Depend on config.h for proper serialization.
2120
c3bb7df0
DD
21212001-11-26 DJ Delorie <dj@redhat.com>
2122
2123 * configure.in: Check for alloca.h (for regex.c and putenv.c).
2124 * configure: Regenerate.
2125 * config.h: Add HAVE_ALLOCA_H.
2126
23850d35
KG
21272001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2128
2c47b56b
KG
2129 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
2130 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
2131 is available.
23850d35 2132
7ddfb651
JL
2133Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
2134
d3982b71
JL
2135 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
2136 * configure.in (HAVE_UINTPTR_T): Test for system defining
2137 uintptr_t and define HAVE_UINTPTR_T appropriately.
2138 * regex.c (uintptr_t): Do not provide a definition if the
2139 system provided one.
2140
7ddfb651
JL
2141 * regex.c (PREFIX): Provide an alternate definition for
2142 non-ANSI/ISO compilers.
2143 (ARG_PREFIX): Likewise.
2144
2e683037
JM
21452001-11-12 Jim Meyering <meyering@lucent.com>
2146
2147 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
2148 this code would end up calling gettext even in packages built
2149 with --disable-nls.
2150 * getopt.c (_): Likewise.
2151 * regex.c (_): Likewise.
2152
f749bd83
AM
21532001-11-03 Alan Modra <amodra@bigpond.net.au>
2154
2155 * configure.in: Cope with missing makeinfo.
55a10d7c 2156 * configure: Regenerate.
f749bd83 2157
26ad2982
KG
21582001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2159
e5969ba6
KG
2160 * hex.c (hex_init): Provide empty stub.
2161
26ad2982
KG
2162 * hex.c (hex_init): Delete.
2163 (_hex_value): Const-ify and initialize at compile-time.
2164
afb649d5
L
21652001-10-19 H.J. Lu <hjl@gnu.org>
2166
2167 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
2168 necessary.
2169
5bed56d9
DD
21702001-10-17 DJ Delorie <dj@redhat.com>
2171
2172 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
2173 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
4dcc42a3 2174 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
2175 Improve manual formatting.
2176 * functions.texi: Regenerate.
2177
aac04c15
DD
21782001-10-15 DJ Delorie <dj@redhat.com>
2179
2180 * Makefile.in (TEXIFILES): Add fnmatch.txh.
2181 (maint-undoc): New.
2182 maint-tool: Add "undoc" tool.
2183 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
2184 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
2185 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
2186 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
2187 documentation.
2188 * fnmatch.txh: New.
2189 * functions.texi: Regenerate.
fae8182a 2190
0e4e9e8f
JM
21912001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
2192
2193 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
2194 * strtod.c: Use "ISO C" instead of "ANSI C".
2195 * functions.texi: Regenerate.
2196
7f8fa05d
JM
21972001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
2198
2199 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
2200 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
2201 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
2202 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
2203 spelling. Give names to function arguments in documentation. Use
2204 (void) prototypes in documentation.
2205 * functions.texi: Regenerate.
2206
0be6abca
KG
22072001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2208
2209 * argv.c (buildargv, tests, main): Const-ify.
2210 * cp-demangle.c (operator_code): Likewise.
2211 * cplus-dem.c (optable, libiberty_demanglers,
2212 cplus_demangle_set_style, cplus_demangle_name_to_style,
2213 print_demangler_list): Likewise.
2214 * hashtab.c (higher_prime_number): Likewise.
2215 * strcasecmp.c (charmap): Likewise.
2216 * strerror.c (error_info, strerror, main): Likewise.
2217 * strncasecmp.c (charmap): Likewise.
2218 * strsignal.c (signal_info): Likewise.
2219
0e30ffc5
DD
22202001-09-29 DJ Delorie <dj@redhat.com>
2221
2222 * configure: Regenerate.
2223
576fb787
KG
22242001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2225
2226 * concat.c: Include stdlib.h.
2227
e922f978
EZ
22282001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2229
2230 * libiberty.texi: (Top level): Add syncodeindex pg. Add
2231 @dircategory and @direntry directives. Add @finalout.
2232 (many nodes): Lose the next,prev,up pointers on the @nide line.
2233 (Using, Supplemental Functions, Replacement Functions): Fix
2234 markup.
2235 (Functions): Move around, to allow makeinfo to build the manual
2236 without next,prev,up pointers in thye node lines.
2237 (Licenses): Fix typos.
2238
2239 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
2240 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
2241 * functions.texi: Regenerate.
2242
2243 * copying-lib.texi: Lose the next,prev,up pointers on the @node
2244 line.
2245
ae9092da
DD
22462001-09-27 DJ Delorie <dj@redhat.com>
2247
2248 * configure.in: Don't use in-tree texinfo, because libiberty must
2249 be built before it. Check for makeinfo version 4 or higher.
2250 * functions.texi: Regenerate.
fae8182a 2251
aaa5f039
DD
22522001-09-20 DJ Delorie <dj@redhat.com>
2253 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 2254
aaa5f039
DD
2255 * configure.in (MAKEINFO, PERL): Detect these.
2256 (--enable-maintainer-mode): Add.
2257 * configure: Regenerate.
2258 * Makefile.in (MAKEINFO, PERL): Define.
2259 (libiberty.info, libiberty.dvi, libiberty.html): New.
2260 (CFILES): Add bsearch.c.
2261 (CONFIGURED_OFILES): New, list of objects configure might add.
2262 (maint-missing, maint-buildall): New, for maintainers only.
2263 (clean, mostlyclean): Add info/dvi/html files.
2264 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
2265 * gather-docs: New, for maintainers.
2266 * maint-tool: New, for maintainers.
2267 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
2268 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
2269 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
2270 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
2271 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
2272 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
2273 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
2274 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
2275 documentation.
fae8182a 2276
c1766881
KG
22772001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2278
2279 * concat.c (reconcat): Fix for traditional C.
2280
ad43d46f
KG
22812001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2282
2283 * concat.c (reconcat): New function.
2284
c1d49704
KG
22852001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2286
c793eea7
KG
2287 * concat.c (vconcat_length, vconcat_copy, concat_length,
2288 concat_copy, concat_copy2): New functions.
2289 (concat): Use vconcat_length/vconcat_copy.
2290
c1d49704
KG
2291 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
2292 Define.
2293
7a98d9b2
KG
22942001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2295
2296 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
2297 VA_FIXEDARG & VA_CLOSE.
fae8182a 2298
7a98d9b2
KG
2299 * vasprintf.c: Check HAVE_STRING_H when including string.h.
2300 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
2301 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
2302
e2dff3f2
KG
23032001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2304
2305 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
2306
d0708dc1
UD
23072001-08-23 Ulrich Drepper <drepper@redhat.com>
2308
2309 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
2310
23112001-08-23 Ulrich Drepper <drepper@redhat.com>
2312
2313 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2314 instead of mbrtowc.
2315 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2316 wcslen, and __wcscoll instead of wcscoll.
2317
ffb9435b
MK
23182001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2319
de78f58b
AJ
2320 * fibheap.c (fibheap_init, fibnode_init): Remove.
2321 (fibheap_new, fibnode_new): Use xcalloc to allocate and
2322 initialize memory.
2323 (fibheap_insert): Remove check for node allocation failure.
ffb9435b 2324
f379eac3
RH
23252001-08-21 Richard Henderson <rth@redhat.com>
2326
2327 * Makefile.in (fibheap.o): Depend on config.h.
2328 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
2329 functions for inlining.
2330
b1c45ae4
CF
2331Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
2332
2333 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
2334 hosting on cygwin.
2335 * configure: Regenerate.
2336
0310e5ac
AC
23372001-08-20 Andrew Cagney <ac131313@redhat.com>
2338
2339 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
2340 HARRIS_FLOAT_FORMAT.
2341 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
2342 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
2343 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
2344 (floatformat_m88110_harris_ext): New float formats.
2345
8c23e0a4
DB
23462001-08-20 Daniel Berlin <dan@cgsoftware.com>
2347
2348 * fibheap.c: New file. Fibonacci heap.
2349
2350 * Makefile.in (CFILES): Add fibheap.c.
2351 (REQUIRED_OFILES): Add fibheap.o.
2352 (fibheap.o): Add dependencies for fibheap.o.
2353
91625004
CF
23542001-08-17 Christopher Faylor <cgf@cygnus.com>
2355
2356 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
2357 * configure: Regenerate.
2358
9e0ba685
RH
23592001-08-16 Richard Henderson <rth@redhat.com>
2360
2361 * hashtab.c (htab_hash_string): New.
2362
d80dedbe
AC
23632001-08-13 Andrew Cagney <ac131313@redhat.com>
2364
2365 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
2366 name.
2367
ccea0d85
IH
23682001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
2369
2370 * regex.c (wcs_regex_compile): Use appropriate string
2371 to compare with collating element.
2372 Fix the padding for the alignment.
2373
b0e9bc8c 23742001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
2375
2376 * lbasename.c (lbasename): Change function definition to return a
2377 const char pointer.
2378
056400f1
JM
23792001-08-07 Jason Merrill <jason_merrill@redhat.com>
2380
2381 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
2382 for".
2383
4e627c41
RH
23842001-08-03 Richard Henderson <rth@redhat.com>
2385
2386 * Makefile.in (concat.o): Depend on config.h.
2387
b6a2f884
AJ
23882001-07-30 Andreas Jaeger <aj@suse.de>
2389
2390 * concat.c: Include "config.h".
2391
c4b9cfe0
AJ
23922001-07-30 Andreas Jaeger <aj@suse.de>
2393
2394 * regex.c: Declare wcs functions only if compiling with
2395 MBS_SUPPORT.
2396 Don't use #elif for traditional C.
2397
23982001-07-23 Ulrich Drepper <drepper@redhat.com>
2399
2400 * regex.c: Revamp memory allocation for WCHAR functions to
2401 not use too much stack.
2402
24032001-07-30 Andreas Jaeger <aj@suse.de>
2404
2405 * regex.c: Declare wcs functions only if compiling with
2406 MBS_SUPPORT.
2407 Don't use #elif for traditional C.
2408
2cf50fd3
DJ
24092001-07-25 Daniel Jacobowitz <drow@mvista.com>
2410
2411 * Makefile.in (regex.o): Add dependency on config.h.
2412
27ffc806
DD
24132001-07-18 Andreas Schwab <schwab@suse.de>
2414
2415 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
2416 underscore character.
2417
24182001-07-18 Ulrich Drepper <drepper@redhat.com>
2419
2420 * regex.c: Limit string length printed in debug messages to 100
2421 chars.
2422
24232001-07-18 Andreas Jaeger <aj@suse.de>
2424
2425 * regex.c: Place under LGPL version 2.1.
2426
dd771632
JJ
24272001-07-10 Jeff Johnston <jjohnstn@redhat.com>
2428
2429 * Makefile.in: Add support for regex code.
2430 * regex.c: New file.
2431
29650b2b
MK
24322001-07-05 Mark Klein <mklein@dis.com>
2433
2434 * Makefile.in: Add ffs.c dependency.
2435 * configure.in: Add ffs.c.
2436 * ffs.c: New file.
2437
c8b28221
RH
24382001-06-18 Richard Henderson <rth@redhat.com>
2439
2440 * concat.c: Include <sys/types.h>.
2441
473c2d0b
LR
24422001-06-11 Loren J. Rittle <ljrittle@acm.org>
2443
a4c03da2 2444 bootstrap/3106
473c2d0b
LR
2445 * strerror.c (sys_nerr): Hide the OS header version.
2446 * strsignal.c (sys_nsig): Likewise.
2447
0bdcca68
RH
24482001-06-10 Richard Henderson <rth@redhat.com>
2449
2450 * concat.c: Include string.h. Fix int vs size_t usage.
2451 Simplify the iteration loops. Use memcpy.
2452
6de133d3
MK
24532001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2454
2455 * partition.c: Fix misspelling of `implementation'.
2456
8a153288
TS
24572001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2458
2459 * md5.c (md5_init_ctx): Declare constants as unsigned.
2460 (md5_process_block): Likewise.
2461
641b2721
ZW
24622001-05-07 Zack Weinberg <zackw@stanford.edu>
2463
2464 * cp-demangle.c (demangle_v3_with_details,
2465 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
2466 function definition.
2467 * ternary.c: Use K+R style function definitions. Use PTR, not
2468 void *. Make arguments constant where possible.
2469
5cdba4ff
MM
24702001-05-07 Mark Mitchell <mark@codesourcery.com>
2471
2472 * splay-tree.h (splay_tree_max): New function.
2473 (splay_tree_min): Likewise.
2474
9dab060e
DB
24752001-04-15 Daniel Berlin <dan@cgsoftware.com>
2476
2477 * ternary.c: New file - Ternary search tree implementation.
2478
2479 * Makefile.in: Add ternary.o, and ternary.c dependencies.
2480
d02af173
ZW
24812001-04-03 Zack Weinberg <zackw@stanford.edu>
2482
2483 * make-temp-file.c (try): Inline.
2484
94b68558
RH
24852001-02-28 Richard Henderson <rth@redhat.com>
2486
2487 * Makefile.in (make-temp-file.o): Depend on config.h.
2488
27f66c0b
KG
24892001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2490
2491 * memchr.c (memchr): Adjust condition to avoid infinite loop.
2492
f1a0345c
JJ
24932001-03-23 Jakub Jelinek <jakub@redhat.com>
2494
2495 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
2496 `_' not followed by a digit is invalid.
2497
a519fba6
JB
24982001-03-22 Jim Blandy <jimb@redhat.com>
2499
2500 * cp-demangle.c (string_list_delete): Use dyn_string_delete
2501 instead of free, to free the contents as well as the string
2502 structure.
2503
49ee944b
ZW
25042001-03-21 Zack Weinberg <zackw@stanford.edu>
2505
2506 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
2507 Don't default P_tmpdir to anything. Try /var/tmp before
2508 /usr/tmp.
2509
33437dc7
ZW
25102001-03-20 Zack Weinberg <zackw@stanford.edu>
2511
2512 * choose-temp.c: Split off make_temp_file, and the code
2513 duplicated between it and choose_temp_base, into...
2514 * make-temp-file.c: ... here; new file.
2515
2516 * Makefile.in (CFILES): Add make-temp-file.c.
2517 (REQUIRED_OFILES): Add make-temp-file.o.
2518
7dce2eff
JB
25192001-03-20 Jim Blandy <jimb@redhat.com>
2520
2521 * cp-demangle.c (struct demangling_def): New fields:
2522 is_constructor and is_destructor.
2523 (demangling_new): Initialize them.
2524 (demangle_ctor_dtor_name): Set them, if we detect a constructor
2525 or destructor.
2526 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
2527 is_gnu_v3_mangled_dtor): New functions.
2528
e03a61f1
JM
25292001-03-20 Jason Merrill <jason@redhat.com>
2530
2531 * cplus-dem.c (main): Skip initial $.
2532
8860ddab
MM
25332001-03-15 Michael Meissner <meissner@redhat.com>
2534
2535 * hashtab.c (higher_prime_number): Silence warning that 4294967291
2536 might be a signed integer under pre-ISO C systems.
2537
2b757d51
NB
25382001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
2539 John David Anglin <dave@hiauly1.hia.nrc.ca>
2540
2541 * libiberty/lbasename.c: New file.
2542 * libiberty/Makefile.in: Update for lbasename.
2543
1f50aafb
ZW
25442001-03-06 Zack Weinberg <zackw@stanford.edu>
2545
2546 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
2547 * configure.in: Replace all alloca logic with a simple use of
2548 the above new macro.
2549 * config.table: Kill *-*-beos* entry.
2550 * config/mh-beos: Delete.
2551 * configure, config.in: Regenerate.
2552
2553 * Makefile.in (ALLOCA, HFILES): Kill.
2554 (REQUIRED_OFILES): Add alloca.o.
2555 (alloca.o): Depend on libiberty.h.
2556 (argv.o): Don't depend on alloca-conf.h.
2557 * alloca-conf.h: Delete.
2558 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
2559 blocks. Provide the C alloca unconditionally. Use PTR where
2560 appropriate. Make i00afunc static.
2561 * argv.c: Don't include alloca-conf.h.
2562
d9fd5aae
JDA
25632001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2564
2565 * cplus-dem.c (main): Cast enum style to int.
2566
4031ed65
LR
25672001-02-16 Loren J. Rittle <ljrittle@acm.org>
2568
2569 * cplus-dem.c (main): Initialize style.
2570
2ca46e8a
PE
25712001-02-02 Phil Edwards <pme@sources.redhat.com>
2572
2573 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
2574
3b60dd8e
BM
25752001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
2576
2577 Add support for Java demangling under the v3 ABI:
2578 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
2579 (struct demangling_def): Add `style' field.
2580 (demangling_new): New parameter `style'. Set it in demangling_t.
2581 (demangle_prefix): Use NAMESPACE_SEPARATOR.
2582 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
2583 (cp_demangle): New parameter `style'. Pass it to demangling_new().
2584 (main): Call cp_demangle with extra parameter.
2585 (java_demangle_v3): New function.
2586 (java_builtin_type_names): New. Table of primitive type names used
2587 for Java demangling.
2588 (demangle_builtin_type): Look up in java_builtin_type_names if doing
2589 Java output.
1f50aafb 2590 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
2591 demangling.
2592 (long_options): Remove obsolete `java' option.
2593 (main): Remove explicit handling of `java' option. Instead, pass style
2594 parameter in cplus_demangle flags as gdb does.
2595 * testsuite/demangle.expected: Add some Java test cases.
2596
584932e9
DD
25972000-12-29 DJ Delorie <dj@redhat.com>
2598
2599 * fnmatch.c: Make the note about the origins of this file more
2600 accurate, at least until we can sync with glibc.
2601 * getopt.c: Ditto.
2602 * getopt1.c: Ditto.
2603 * md5.c: Ditto.
2604 * obstack.c: Ditto.
2605
dac45916
MS
26062000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2607
2608 * bsearch.c: New file.
2609 * configure.in (funcs): Add bsearch.
2610 (AC_CHECK_FUNCS): Likewise.
2611 * configure, config.in: Regenerate.
2612
a8e4a997
MS
26132000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2614
2615 * safe-ctype.c: #include "ansidecl.h".
2616 * strtod.c: Likewise.
2617
75444da7
MS
26182000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2619
2620 * strtoul.c: Include safe-ctype.h, not ctype.h.
2621
f6bbde28
ZW
26222000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
2623
2624 * safe-ctype.c: New file.
2625 * Makefile.in (CFILES): Add safe-ctype.c.
2626 (REQUIRED_OFILES): Add safe-ctype.o.
2627
2628 * argv.c: Define ISBLANK and use it, not isspace.
2629 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
2630 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
2631 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
2632 before calling TOLOWER(c)/TOUPPER(c).
2633
6c1ce62b 26342000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
2635
2636 * Makefile.in (distclean): When cleaning, remove testsuite.
2637
b5d1497d
JM
26382000-12-05 Jason Merrill <jason@redhat.com>
2639
2640 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
2641 name before allocating the dyn_string.
2642
c6e13630
JM
26432000-12-04 Jason Merrill <jason@redhat.com>
2644
2645 * cp-demangle.c: s/new_abi/v3/.
2646 * cplus-dem.c: Likewise.
2647 (current_demangling_style): Now auto_demangling.
2648 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 2649 (main): Use standard symbol chars for auto_demangling.
c6e13630 2650
a4c9b97e
MM
26512000-11-26 Mark Mitchell <mark@codesourcery.com>
2652
2653 * hashtab.c (higher_prime_number): Use a table, rather than a
2654 seive, to find the next prime.
2655
3b3bd9a7
L
26562000-11-22 H.J. Lu <hjl@gnu.org>
2657
2658 * cplus-dem.c (main): Handle gnat_demangling.
2659
d1209685
ZW
26602000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2661
2662 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
2663 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
2664 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
2665 argument form of AC_DEFINE in dummy definitions block. Use
2666 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
2667 in dummy block. Preload cache variables instead of bypassing
2668 tests, where possible.
2669 * acconfig.h: Removed.
2670
2671 * xmalloc.c (xmalloc_failed): New function, does error
2672 reporting on failed allocation.
2673 (xmalloc, xcalloc, xrealloc): Use it.
2674
cf183ac2
HPN
26752000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
2676
2677 * cplus-dem.c (cplus_demangle): Fix formatting.
2678 (grow_vect): Ditto.
2679 (ada_demangle): Ditto.
2680 (internal_cplus_demangle): Ditto.
2681 (mop_up): Ditto.
2682
26832000-11-21 H.J. Lu <hjl@gnu.org>
2684
2685 * cplus-dem.c (main): Handle java_demangling.
2686
8bcc782c
KG
26872000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2688
2689 * cplus-dem.c (grow_vect): Prototype.
2690 (ada_demangle): Cast the arg of ctype macros to unsigned char.
2691
29120f44
HPN
26922000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
2693
2694 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
2695 parameter `option'.
2696
0437a5a8
KB
26972000-11-15 Kenneth Block <kenneth.block@compaq.com>
2698
9e038f71 2699 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
2700 be used in GCC.
2701
eab0c1ab 27022000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 2703
29120f44 2704 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
2705 list.
2706
d50d20ec
HPN
27072000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
2708
2709 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
2710 xcalloc depending on htab->return_allocation_failure. Return zero
2711 if calloc fails.
d50d20ec
HPN
2712 (htab_create): Update comment to cover memory allocation.
2713 (htab_try_create): New.
2714 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 2715 Update comment to cover this.
d50d20ec 2716
35e9340f
HPN
27172000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
2718
2719 * hashtab.c: Change void * to PTR where necessary.
2720 (htab_create, htab_expand): Correct formatting of comment before
2721 function.
2722
ea343d1a 27232000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
2724
2725 * cp-demangle.c (string_list_def): Add caret_position and comments.
2726 (result_caret_pos): New macro.
2727 (result_append_string): Rename to...
2728 (result_add_string): ... this, and insert at caret position.
d1209685 2729 Rename throughout.
0870bfd6
AS
2730 (result_append): Rename to...
2731 (result_add): ... this, and insert at caret position. Rename
d1209685 2732 throughout.
0870bfd6
AS
2733 (result_append_char): Rename to...
2734 (result_add_char): ... this, and insert at caret position. Rename
d1209685 2735 throughout.
0870bfd6
AS
2736 (result_append_space): Remove.
2737 (string_list_new): Initialize caret position.
2738 (result_add_separated_char): Use caret position.
2739 (result_get_caret): New funtion.
2740 (result_set_caret): Likewise.
2741 (result_shift_caret): Likewise.
2742 (result_previous_char_is_space): Likewise.
2743 (substitution_start): Use caret position.
2744 (substitution_add): Likewise.
2745 (demangling_new): Initialize caret position.
2746 (demangle_encoding): Use caret position.
d1209685 2747 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
2748 (demangle_type_ptr): Use switch statement. Handle pointers to
2749 arrays. Don't use result_append_space. Use caret position.
2750 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
2751 call to demangle_array_type.
2752 (demangle_array_type): Add parameter to handle pointers to arrays.
2753
f15b9af9
MM
27542000-10-01 Mark Mitchell <mark@codesourcery.com>
2755
2756 * splay-tree.c (splay_tree_insert): Fix formatting.
2757
8f17b5c5
MM
27582000-09-16 Mark Mitchell <mark@codesourcery.com>
2759
2760 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
2761
4eaa189a
MS
27622000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2763
2764 * splay-tree.c: #include <stdio.h>.
2765
29791078
HPN
27662000-09-14 Hans-Peter Nilsson <hp@axis.com>
2767
2768 * testsuite/demangle-expected: Add two tests for anonymous
2769 namespaces.
2770 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
2771
2c9f4db7
MM
27722000-09-10 Mark Mitchell <mark@codesourcery.com>
2773
2774 * splay-tree.c (splay_tree_predecessor): New function.
2775 (splay_tree_successor): Likewise.
2776
bb22da4b
HPN
27772000-09-10 Hans-Peter Nilsson <hp@axis.com>
2778
2779 * testsuite/demangle-expected: Add four tests for type_info
2780 mangling.
bb22da4b
HPN
2781 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
2782 for a non-template non-qualified type_info function or node.
2783
759e8187
AS
27842000-09-08 Alex Samuel <samuel@codesourcery.com>
2785
2786 * cp-demangle.c: Fix copyright banner.
2787
2ecd81ef
MS
27882000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2789
2790 * md5.c: #include "ansidecl.h".
2791
d93998ec
AS
27922000-09-06 Alex Samuel <samuel@codesourcery.com>
2793
2794 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
2795 (demangle_type): Handle substitution candidates correctly in the
2796 face of special substitutions.
2797
1056d228
AS
27982000-09-05 Alex Samuel <samuel@codesourcery.com>
2799
2800 * cp-demangle.c (demangle_encoding): Rename variable.
2801 (demangle_name): Rename parameter. Handle return type
2802 suppression.
2803 (demangle_nested_name): Rename parameter.
2804 (demangle_prefix): Likewise. Change return type suppression.
2805 (demangle_unqualified_name): Add parameter. Flag constructors and
2806 conversion operators.
2807 (demangle_special_name): Fix comment.
2808 (demangle_type): Rename variable.
2809 (demangle_bare_function_type): Check for missing return type and
d1209685 2810 parameter.
1056d228
AS
2811 (demangle_class_enum_type): Rename parameter.
2812 (demangle_discriminator): Fix misspelling in comment.
2813
2f31ed7e
DD
28142000-08-31 DJ Delorie <dj@redhat.com>
2815
2816 * configure.in (Cygwin): special case cygwin only when we're
2817 building cygwin, not when we're hosting cygwin.
2818
02bcb9c6
AS
28192000-09-04 Alex Samuel <samuel@codesourcery.com>
2820
2821 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
2822 <expression>.
2823
aee749cf
AS
28242000-09-04 Alex Samuel <samuel@codesourcery.com>
2825
2826 * cp-demangle.c (demangle_type_ptr): Increment position past
2827 pointer and reference characters.
2828
92a16bbe
AS
28292000-09-04 Alex Samuel <samuel@codesourcery.com>
2830
2831 * cp-demangle.c (demangle_nv_offset): New function.
2832 (demangle_v_offset): Likewise.
2833 (demangle_call_offset): Likewise.
2834 (demangle_special_name): Update thunk demangling to comply with
2835 ABI changes.
d1209685 2836
31e0ab1f
AS
28372000-09-03 Alex Samuel <samuel@codesourcery.com>
2838
2839 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
2840 (substitution_def): Remove template_parm_number.
2841 (NOT_TEMPLATE_PARM): Remove.
2842 (result_insert_string): New macro.
2843 (result_insert): Likewise.
2844 (result_insert_char): Likewise.
2845 (substitution_add): Remove last parameter. Don't store template
d1209685 2846 parm number.
31e0ab1f
AS
2847 (BFT_NO_RETURN_TYPE): Define as NULL.
2848 (demangle_encoding): Adjust call to demangle_bare_function_type.
2849 (demangle_name): Adjust substitution. Adjust call to
d1209685 2850 substitution_add.
31e0ab1f
AS
2851 (demangle_prefix): Adjust call to substitution_add.
2852 (demangle_identifier): Handle anonymous namespaces.
2853 (demangle_operator_name): Change demangling of vendor-extended
2854 operator to match ABI changes.
2855 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 2856 substitutions here.
31e0ab1f
AS
2857 (demangle_type): Adjust calls to demangle_template_param,
2858 substitution_add, and demangle_type_ptr. Fix substitution of
2859 templated types.
2860 (demangle_function_type): Change parameter to a pointer.
2861 (demangle_bare_function_type): Likewise. Adjust insertion point.
2862 (demangle_template_param): Remove last parameter.
2863 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 2864 demangle_template_param.
31e0ab1f
AS
2865 (is_mangled_char): Accept `$' and `.'.
2866 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
2867 * dyn-string.c (dyn_string_insert_char): New function.
2868
ccbc3eb7
HPN
28692000-08-31 Hans-Peter Nilsson <hp@axis.com>
2870
2871 * testsuite/demangle-expected: Add nine tests for
2872 underscore-after-number followed by five tests for name-signature
2873 delimiter.
2874
53dce582
RH
28752000-08-28 Richard Henderson <rth@cygnus.com>
2876
2877 * Makefile.in (md5.o): Depend on config.h.
2878
881c6935
JM
28792000-08-28 Jason Merrill <jason@redhat.com>
2880
2881 * Makefile.in (REQUIRED_OFILES): Add md5.o.
2882 (CFILES): Add md5.c.
2883 * md5.c: New file.
2884
a440fd19
AS
28852000-08-27 Alex Samuel <samuel@codesourcery.com>
2886
2887 * cp-demangle.c (demangle_name): Initialize template_p in local
2888 name case. Don't re-add substitutions as candidates.
2889 (demangle_nested_name): Use <unqualified-name>.
2890 (demangle_prefix): Likewise. Don't add template names as
2891 substitution candidates twice, or re-add a substitution or the
2892 last prefix component.
2893 (demangle_local_name): Adjust output format.
2894
d01ce591
AS
28952000-08-25 Alex Samuel <samuel@codesourcery.com>
2896
2897 * cp-demangle.c (result_add_separated_char): Change parameter to
2898 int.
2899 (substitution_add): Don't check for duplicates. Check if
2900 previously allocated size is zero.
2901 (demangle_name): Remove duplicate check for std substitution.
2902 Clear template flag appropriately.
2903 (demangle_prefix): Remove argument to demangle_substitution.
2904 Don't check that template flag is already set.
2905 (demangle_operator_name): Add pt operator.
2906 (demangle_type): Don't treat r as built-in type. Remove argument
2907 to demangle_substitution. Fix substitution candidate mechanics.
2908 Handle <template-template-parm>s. Improve comments.
d1209685 2909 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
2910 (demangle_substitution): Remove parameter.
2911 (print_usage): Remove extra fprintf option.
2912
2f59c8eb
GM
29132000-08-24 Greg McGary <greg@mcgary.org>
2914
2915 * libiberty/random.c (end_ptr): Revert previous change.
2916
2f26c11d
GM
29172000-08-24 Greg McGary <greg@mcgary.org>
2918
2919 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
2920 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
2921 * libiberty/random.c (end_ptr): Likewise.
2922
e282c9c9
AS
29232000-08-23 Alex Samuel <samuel@codesourcery.com>
2924
2925 * cp-demangle.c (result_close_template_list): Remove function.
2926 (result_add_separated_char): New function.
2927 (result_open_template_list): New macro.
2928 (result_close_template_list): Likewise.
2929 (demangle_prefix): Don't set template_p if the
2930 prefix ends with a ctor name.
2931 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
2932 (demangle_type): Check for template args after substitution.
2933 (demangle_template_args): Use result_open_template_list.
d1209685 2934
c9b6494a
ZW
29352000-08-02 Zack Weinberg <zack@wolery.cumb.org>
2936
2937 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
2938
d1209685 29392000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
2940
2941 * config/mh-openedition.h: Added -DLE370 definition.
2942
0aab2795
ME
29432000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
2944
2945 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
2946 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
2947 Cast program to 'char *' in errmsg_arg assignment.
2948 (PWAIT_ERROR): Define.
2949 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
2950 to DJGPP's WIF* macros.
2951
c2f275e4
RB
29522000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
2953 Jeff Law <law@cygnus.com>
2954
73aa9564
RB
2955 * getcwd.c: Include string.h, stdlib.h for prototypes
2956
c2f275e4 2957 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
2958 * rename.c: Include config.h, unistd.h
2959 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 2960
ccbc3eb7
HPN
29612000-07-24 Hans-Peter Nilsson <hp@axis.com>
2962
2963 * cplus-dem.c (work_stuff_copy_to_from): New.
2964 (delete_non_B_K_work_stuff): New.
2965 (delete_work_stuff): New.
2966 (mop_up): Break out work_stuff partly destruction to
2967 delete_non_B_K_work_stuff.
2968 (iterate_demangle_function): New.
2969 (demangle_prefix): Call iterate_demangle_function instead of
2970 demangle_function_name. Leave handling of name-signature
2971 __-delimiters to iterate_demangle_function.
2972 (demangle_integral_value): Strip an optional
2973 following underscore cautiously. Handle negative numbers.
2974
3388651c
DB
29752000-07-24 Daniel Berlin <dberlin@redhat.com>
2976
d1209685 2977 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
2978 if (AUTO_DEMANGLING || GNU_DEMANGLING)
2979
0fac482e
AS
29802000-07-21 Alex Samuel <samuel@codesourcery.com>
2981
2982 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
2983 allocating ctor mangling.
2984 (demangle_array_type): Handle empty and non-constant array length.
2985
8502a100 29862000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
2987 Jeff Law <law@cygnus.com>
2988
c6451ce1
MS
2989 * configure.in (AC_CHECK_HEADERS): Add time.h.
2990 (AC_HEADER_TIME): Add check.
2991 * configure, config.in: Regenerate.
2992 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
2993
cd447360
MS
2994 * configure.in (AC_CHECK_HEADERS): Add limits.h.
2995 * configure, config.in: Regenerate.
2996 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
2997 * strtol.c, strtoul.c: #include "config.h". Portably #include
2998 <limits.h> and/or <sys/param.h>.
2999 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 3000
3b58c099
MS
3001 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
3002 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
3003 * configure, config.in: Regenerate.
3004 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
3005
8502a100
MS
3006 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
3007
da0c7743
MS
30082000-07-21 Mike Stump <mrs@wrs.com>
3009
3010 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 3011 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 3012
838f8562
KG
30132000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3014
3015 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
3016
3017 * setenv.c (setenv): Initialize variable `ep'.
3018
3019 * sigsetmask.c (abort): Prototype.
3020
3021 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
3022 __STDC__ for stdarg.h include.
3023 (int_vasprintf): Prototype.
3024 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
3025 definition. Cast `global_total_width' in comparison.
3026 (main): Prototype. Return a value.
3027
3028 * vfork.c (fork): Prototype.
3029
3030 * xexit.c: Include config.h.
3031
e9958132
JM
30322000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
3033
3034 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
3035 and print it with %u.
3036
39a6492f
HPN
30372000-07-17 Hans-Peter Nilsson <hp@axis.com>
3038
3039 * testsuite/regress-demangle (failed test): Show result and
3040 expected output.
3041
6d0be369
AH
30422000-07-07 Andrew Haley <aph@cygnus.com>
3043
3044 * cplus-dem.c (main): fflush() after emitting last char before
3045 waiting for input.
3046
bece74bd
AS
30472000-06-28 Alex Samuel <samuel@codesourcery.com>
3048
3049 * cp-demangle.c (demangle_encoding): Accept no substitutions.
3050 (demangle_name): Handle <substitution> followed by
3051 <unqualified-template-name>.
3052 (demangle_type): Follow special substitutions with
3053 <class-enum-type>
3054 (demangle_subtitution): Set template_p for special substitutions.
3055 (main): Fix typos.
d1209685 3056
229b8ec7
AS
30572000-06-27 Alex Samuel <samuel@codesourcery.com>
3058
3059 * cp-demangle.c (demangle_special_name): Swap base and derived
3060 class when demangling construction vtables.
3061
051664b0
AS
30622000-06-21 Alex Samuel <samuel@codesourcery.com>
3063
3064 * cp-demangle.c: Don't include ctype.h.
3065 (IS_DIGIT): New macro.
3066 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
3067 instead of isdigit and isalpanum.
3068 (demangling_def): Make name and next const pointers.
3069 (STATUS_ALLOCATION_FAILED): New status code.
3070 (dyn_string_append_space): Handle failure in
3071 dyn_string_append_char.
3072 (int_to_dyn_string): Likewise. Change return value to status_t.
3073 (string_list_new): Handle failure of dyn_string_init.
3074 (result_close_template_list): Change return type to status_t.
3075 Handle failure in dyn_string_append.
3076 (result_push): Change return value to status_t. Handle failure in
3077 string_list_new. Handle failure of result_push throughout.
3078 (substitution_add): Change return value to status_t. Handle
3079 dyn_string failures. Handle failure of substitution_add
3080 throughout.
3081 (template_arg_list_new): Return NULL on allocation failure.
3082 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
3083 Handle error result throughout.
3084 (result_append): Likewise.
3085 (result_append_char): Likewise.
3086 (result_append_space): Likewise.
3087 (demangling_new): Make argument a const pointer. Handle
3088 allocation failures.
3089 (demangle_template_args): Handle failure in template_arg_list_new
3090 and result_close_template_list.
3091 (demangle_discriminator): Return if int_to_dyn_string fails.
3092 (cp_demangle): Likewise.
3093 (cp_demangle_type): New function.
3094 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
3095 memory allocation failure.
3096 (main): Likewise.
3097 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
3098 IN_LIBGCC2.
3099 (dyn_string_init): Change return value to int. Handle
3100 RETURN_ON_ALLOCATION_FAILURE case.
3101 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
3102 (dyn_string_release): Delete the dyn_string.
3103 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
3104 (dyn_string_copy): Change return type to int.
3105 (dyn_string_copy_cstr): Likewise.
3106 (dyn_string_prepend): Likewise.
3107 (dyn_string_prepend_cstr): Likewise.
3108 (dyn_string_insert): Likewise.
3109 (dyn_string_insert_cstr): Likewise.
3110 (dyn_string_append): Likewise.
3111 (dyn_string_append_cstr): Likewise.
3112 (dyn_string_append_char): Likewise.
3113 (dyn_string_substring): Likewise.
d1209685 3114
fe06b696
ZW
31152000-06-09 Zack Weinberg <zack@wolery.cumb.org>
3116
3117 * cp-demangle.c (demangle_operator_name): Add spaces before
3118 names beginning with a letter: delete, delete[], new, new[],
3119 sizeof.
3120 (demangle_special_name): Handle TF <type> and TJ <type>.
3121
6223e158
PDM
3122Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
3123
3124 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
3125
48f3e29b
PDM
3126Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
3127
3128 * cp-demangle.c (stdio.h): File included unconditionaly.
3129 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
3130 * dyn-string.c (stdio.h): File included.
3131 * partition.c (partition_print): No `&' needed to take the address of
3132 a function.
3133
69197e7e
KG
31342000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3135
3136 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 3137
69197e7e
KG
3138 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
3139
3140 * cp-demangle.c (demangle_char): Change parameter from char to int.
3141 (demangle_expression, demangle_expr_primary): Remove extra
3142 semi-colon in prototype.
3143
3144 * dyn-string.c (dyn_string_append_char): Change parameter from
3145 char to int.
3146
3147 * memcmp.c (memcmp): Constify.
3148
3149 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
3150 __extension__.
3151
3152 * partition.c (elem_compare): Prototype. Don't cast away
3153 const-ness.
3154
3155 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 3156
7eb23b1f
KG
31572000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3158
3159 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
3160
3161 * cp-demangle.c: Include demangle.h.
3162 (template_arg_list_new): DeANSIfy.
3163 (cp_demangle): Make static and add prototype.
3164 (operator_code, operators): Constify.
3165 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
3166
3faa108c
AS
31672000-06-05 Alex Samuel <samuel@codesourcery.com>
3168
3169 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
3170 unsigned char.
3171 (demangle_unqualified_name): Likewise.
3172 (demangle_number_literally): Likewise.
3173 (demangle_type): Likewise.
3174 (demangle_substitution): Likewise.
3175 (is_mangled_char): Likewise, for isalnum.
3176
69afa80d
AS
31772000-06-04 Alex Samuel <samuel@codesourcery.com>
3178
3179 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
3180 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
3181 (cp-demangle.o): New dependency.
3182 (dyn-string.o): Likewise.
3183
3184 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
3185
3186 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
3187 demangler.
3188 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
3189 demangling mode.
3190 (gnu_new_abi_symbol_characters): New function.
3191 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
3192 file.
3193 * cp-demangle.c: New file.
d1209685 3194
0b72c3df
AC
3195Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
3196
3197 * floatformat.c: Add name to each floatformat field.
3198
270cea06
JL
3199Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
3200
3201 * Makefile.in (objalloc.o): Depend on config.h
3202
d11ec6f0
ZW
32032000-05-29 Zack Weinberg <zack@wolery.cumb.org>
3204
3205 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
3206 if HAVE_STRING_H.
3207 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
3208 * objalloc.c: Include config.h. Include stdlib.h and don't
3209 declare malloc or free if HAVE_STDLIB_H.
3210 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
3211 else declare malloc without prototype. Include string.h if
3212 HAVE_STRING_H, else declare memset without prototype. Don't
3213 include stddef.h.
3214
f8e2da56
MS
32152000-05-23 Mike Stump <mrs@wrs.com>
3216
3217 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 3218 -j3.
f8e2da56 3219
650f3068
DA
32202000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3221
3222 * xmalloc.c: Include config.h for HAVE_SBRK definition.
3223
1d2da2e1
HB
32242000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
3225
d1209685 3226 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
3227 probably zero, also eliminate a warning on alpha.
3228
47668d0a
DE
32292000-05-15 David Edelsohn <edelsohn@gnu.org>
3230
c7a79a32 3231 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
3232 on $(enable_shared).
3233
36348eab
JJ
32342000-05-10 Jakub Jelinek <jakub@redhat.com>
3235
3236 * config.table: Use mh-sparcpic for sparc*-*-*.
3237
209bbe34
NC
32382000-05-08 Nick Clifton <nickc@cygnus.com>
3239
3240 * Makefile.in (CFILES): Add strncmp.c.
3241 (NEEDED): Add strncmp.
3242
a85a47fb
KG
32432000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3244
3245 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
3246 Cast the arguments to `islower' to `unsigned char'.
3247 (print_demangler_list): Prototype.
3248
4aef973c
PDM
3249Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
3250
3251 * sort.c (UCHAR_MAX): Provide fallback definition.
3252
3b94497c
AO
32532000-04-29 Alexandre Oliva <aoliva@cygnus.com>
3254
3255 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
3256 SUBDIRS.
3257
24eaa47a
KB
32582000-04-28 Kenneth Block <block@zk3.dec.com>
3259 Jason Merrill <jason@casey.cygnus.com>
3260
d1209685
ZW
3261 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
3262 (cplus_demangle_set_style): New function for setting style.
3263 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 3264
a9266bfa
KG
32652000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3266
3267 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
3268
3269 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
3270 (libiberty_AC_FUNC_STRNCMP): Invoke.
3271
3272 * strncmp.c: New file.
3273
8e02c4d0
JH
3274Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
3275
3276 * hashtab.c (htab_expand): Add prototype.
3277 (find_empty_slot_for_expand): Likewise.
3278
4feeaae3
KG
32792000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3280
3281 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
3282 match prototype.
3283 (htab_expand): Cast the return value of xcalloc.
3284
18a94a2f
MM
32852000-04-24 Mark Mitchell <mark@codesourcery.com>
3286
3287 * hashtab.c (hash_pointer): New function.
3288 (eq_pointer): Likewise.
3289 (htab_hash_pointer): New variable.
3290 (htab_eq_pointer): Likewise.
3291
eeb0656f
MM
32922000-04-23 Mark Mitchell <mark@codesourcery.com>
3293
b51024fc
MM
3294 * sort.c (sort_pointers): Fix endianness bugs.
3295
eeb0656f
MM
3296 * sort.c: New file.
3297 * Makefile.in (CFILES): Add sort.c
3298 (REQUIRED_OFILES): Add sort.o.
3299 (sort.o): New target.
3300
7277f72d
MS
33012000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3302
3303 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
3304 4.3BSD systems.
3305
e38992e8
RK
3306Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3307
3308 * hashtab.c: Various minor cleanups.
3309 (htab_find_slot_with_hash): INSERT is now enum insert_option.
3310 (htab_find_slot): Likewise.
3311
498e1ab1
DP
33122000-04-16 Dave Pitts <dpitts@cozx.com>
3313
3314 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 3315
dc17cc7b
RH
33162000-04-05 Richard Henderson <rth@cygnus.com>
3317
3318 * splay-tree.c (splay_tree_remove): New.
3319
b13eb66b
MM
33202000-03-30 Mark Mitchell <mark@codesourcery.com>
3321
3322 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
3323 codes.
3324 (htab_find_with_hash): Likewise.
3325 (htab_find_slot_with_hash): Likewise.
d1209685 3326
0194e877
ZW
33272000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3328
3329 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
3330 unless it will be used. Rearrange loop for better
3331 optimization.
3332 (higher_prime_number): Add static prototype.
3333
abc61fd4
JL
3334Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
3335
3336 * Makefile.in (partition.o): Depend on config.h
3337
8c5d513f
BS
33382000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
3339
3340 * hashtab.c (find_empty_slot_for_expand): New function.
3341 (htab_expand): Use it instead of htab_find_slot.
3342 (htab_find_with_hash): Renamed from htab_find; now accepts extra
3343 argument HASH.
3344 (htab_find_slot_with_hash): Likewise for htab_find_slot.
3345 (htab_find): New wrapper function.
3346 (htab_find_slot): Likewise.
3347 (htab_traverse): Pass slot, not entry, to called function.
3348
d9d4fb43
AS
33492000-03-09 Alex Samuel <samuel@codesourcery.com>
3350
3351 * Makefile.in (CFILES): Add partition.c.
3352 (REQUIRED_OFILES): Add partition.o.
3353 (partition.o): New rule.
3354 * partition.c: New file.
d1209685 3355
5dc9cffd
ZW
33562000-03-09 Zack Weinberg <zack@wolery.cumb.org>
3357
3358 * hashtab.c (htab_create): Set del_f.
3359 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
3360 Use it.
3361
5194cf08
ZW
33622000-03-08 Zack Weinberg <zack@wolery.cumb.org>
3363
3364 * hashtab.c: Remove debugging variables (all_searches,
3365 all_collisions, all_expansions). Delete
3366 all_hash_table_collisions.
3367 (create_hash_table, delete_hash_table, empty_hash_table,
3368 find_hash_table_entry, remove_element_from_hash_table_entry,
3369 clear_hash_table_slot, traverse_hash_table, hash_table_size,
3370 hash_table_elements_number, hash_table_collisions): Rename to:
3371 htab_create, htab_delete, htab_empty, htab_find_slot,
3372 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
3373 htab_elements, htab_collisions.
3374 (htab_find): New function, handles common case where you don't
3375 plan to add or delete an entry.
3376 (htab_expand): Don't create a whole new table, just a new
3377 entry vector.
3378 (htab_find_slot): Simplify logic.
3379
5ad5a984
ILT
33801999-08-03 Ian Lance Taylor <ian@zembu.com>
3381
3382 * floatformat.c: Add casts to avoid signed/unsigned warnings.
3383 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
3384
3385 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
3386 $(TARGETLIB)n so it works on MSDOS.
3387 (install_to_tooldir): Likewise.
3388
33891999-07-21 Ian Lance Taylor <ian@zembu.com>
3390
3391 From Mark Elbrecht:
3392 * makefile.dos: Remove; obsolete.
3393 * configure.bat: Remove; obsolete.
3394
33951999-07-11 Ian Lance Taylor <ian@zembu.com>
3396
3397 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3398 warning.
3399
aeecce42
MK
34002000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3401
3402 * pexecute.c: Conditionally include string.h.
5194cf08 3403 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 3404
1eaf7d9c
KG
34052000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3406
3407 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
3408 we're using gcc.
3409
3410 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
3411
0fadedb2
GK
34121999-12-27 Geoff Keating <geoffk@cygnus.com>
3413
3414 * vasprintf.c (int_vasprintf): Don't re-read the format character
3415 as this mishandles strings like '%%s'.
3416
08230f26
MM
34171999-12-05 Mark Mitchell <mark@codesourcery.com>
3418
3419 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
3420 rather than struct splay_tree_node.
3421 (splay_tree_insert): Use struct splay_tree_s rather than struct
3422 splay_tree.
3423
6de9b8ff
PDM
3424Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
3425
3426 * hashtab.c (sys/types.h): File included.
3427
f3636679
JM
34281999-11-22 Jason Merrill <jason@casey.cygnus.com>
3429
3430 * strtoul.c, strtol.c, random.c: Remove advertising clause from
3431 BSD license, pursuant with
3432
3433 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
3434
36dd3a44
JL
3435Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
3436
3437 * hashtab.c: Include stdio.h.
3438
6e300472
JL
3439Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
3440
3441 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
3442
df548dfc
PDM
3443Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
3444
3445 * xstrdup (sys/types.h): Include this file.
3446
2c375143
NS
34471999-10-28 Nathan Sidwell <nathan@acm.org>
3448
3449 * Makefile.in (SUBDIRS): New macro.
3450 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
3451 avoid multiple subdirectory cleaning.
3452 (*-subdir): Use SUBDIRS.
3453
a82cecda
JK
34541999-10-25 Jim Kingdon <http://developer.redhat.com/>
3455
3456 * cplus-dem.c: Move declarations of standard_symbol_characters and
3457 hp_symbol_characters inside #ifdef MAIN to avoid compiler
3458 warnings.
3459
ed38f5d5
ZW
34601999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
3461
3462 * hashtab.c (find_hash_table_entry): When returning a
3463 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
3464 (clear_hash_table_slot): New function which deletes an entry
3465 by its position in the table, not its value.
3466 (traverse_hash_table): New function which calls a hook
3467 function for every live entry in the table.
3468
b60fe4a7
MM
34691999-10-19 Mark Mitchell <mark@codesourcery.com>
3470
3471 * cplus-dem.c (INTBUF_SIZE): New macro.
3472 (string_append_template_idx): New function.
3473 (demangle_expression): Likewise.
3474 (demangle_integral_value): Use it.
3475 (demangle_real_value): New function, split out from ...
3476 (demangle_template_value_parm): ... here. Use
3477 string_append_template_idx. Use demangle_real_value.
3478 (demangle_template): Use string_append_template_idx.
3479 (demangle_qualified): Use consume_count_with_underscores.
3480 (get_count): Tweak formatting.
3481 (do_type): Use string_append_template_idx.
5194cf08 3482
3da5522a
KG
34831999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3484
3485 * calloc.c: Add a public domain notice.
3486
d7d36ea8
PDM
3487Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
3488
3489 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
3490
a2f945c6
VM
3491Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
3492
3493 * Makefile.in (CFILES): Add hashtab.c
3494 (REQUIRED_OFILES): Add hashtab.o
3495 (hashtab.o): Add dependencies.
3496 * hashtab.c: New file
3497
7f22ec2e
MK
3498Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
3499
3500 * basename.c (DIR_SEPARATOR): New macro.
3501 (DIR_SEPARATOR_2): Likewise.
3502 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
3503 (IS_DIR_SEPARATOR): Likewise.
3504 (main): Handle MSDOS style pathname.
3505
7c56a6ce
MM
35061999-10-11 Mark Mitchell <mark@codesourcery.com>
3507
3508 * cplus-dem.c (do_type): Handle pointer to member types whose
3509 enclosing classes have namespace scope.
3510
cd32188b
ME
3511Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
3512
3513 * config.table: Provide a backup shell for executing move-if-change.
3514
fc232f7a
MM
35151999-10-02 Mark Mitchell <mark@codesourcery.com>
3516
3517 * xmalloc.c (xmalloc): Fix spelling error.
3518 (xcalloc, xrealloc): Likewise.
3519
2a138827
KG
35201999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3521
3522 * cplus-dem.c (fancy_abort, demangle_integral_value,
3523 demangle_arm_hp_template, recursively_demangle,
3524 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
3525 (program_name, program_version, fatal): Constify a char*.
3526 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
3527 (main): Call return, not exit.
3528
5a657fc3
KG
35291999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3530
3531 * choose-temp.c: Remove obsolete comment about gcc.
3532 (make_temp_file): Constify a char*.
3533
33c5ddcd
KG
3534Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3535
3536 * xmemdup.c: Include sys/types.h.
3537
b10647f1
JG
35381999-09-07 Jeff Garzik <jgarzik@pobox.com>
3539
3540 * xmemdup.c: New xmemdup function.
3541 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
3542
3dd6c3af
LV
3543Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
3544
5194cf08 3545 * config.table: Add openedition target.
3dd6c3af
LV
3546 * config/mh-openedition: New file.
3547
19e28e2a
ME
3548Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
3549
3550 * pexecute.c (pexecute): Fill in temp_base when needed.
3551
4dfeccf9
RH
35521999-08-31 Richard Henderson <rth@cygnus.com>
3553
3554 * getpwd.c: Check HAVE_GETCWD before defining it away.
3555
4ac3cb83
KG
35561999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3557
3558 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
3559 (REQUIRED_OFILES): Add getpwd.o.
3560 (getpwd.o): Add target.
3561
3562 * configure.in (AC_PREREQ): Bump to 2.13.
3563 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
3564
3565 * getpwd.c: New file, moved here from gcc.
3566
e797ff70
KG
35671999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3568
3569 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
3570 comparing against a signed quantity.
3571 (arm_special): Likewise.
3572 (demangle_fund_type): Likewise.
3573 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 3574 ATTRIBUTE_UNUSED.
e797ff70
KG
3575 (main): Constify variable `valid_symbols'.
3576
55247fce
PDM
3577Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
3578
3579 * strtoul.c (strtoul): Add parentheses around && within ||.
3580
76632dd0
DJ
3581Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
3582
3583 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3584 libdir, libsubdir and tooldir.
3585
d080bbfa
MM
35861999-08-01 Mark Mitchell <mark@codesourcery.com>
3587
3588 * splay-tree.c (splay_tree_insert): Return the new node.
3589
a81c752a
RH
35901999-07-14 Richard Henderson <rth@cygnus.com>
3591
5194cf08 3592 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
3593 prototyping directly.
3594 * choose-temp.c: Conditionally include string.h.
3595
8f1824d9
JM
35961999-07-12 Jason Merrill <jason@yorick.cygnus.com>
3597
3598 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
3599
652374d3
ILT
36001999-07-11 Ian Lance Taylor <ian@zembu.com>
3601
3602 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3603 warning.
3604
a4494286
JM
36051999-07-07 Jason Merrill <jason@yorick.cygnus.com>
3606
3607 * Makefile.in (needed-list): Only include stuff we actually need
3608 for libstdc++.
3609
90e72e20
AS
36101999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3611
3612 * configure.in (checkfuncs): Add gettimeofday.
3613 * config.in, configure: Regenerated.
3614
b569200e
MK
3615Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
3616
3617 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
3618 the test fails.
3619 * configure: Regenerate.
3620
73919448
MS
36211999-06-10 Mike Stump <mrs@wrs.com>
3622
3623 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
3624 parallel builds.
3625
fee9125c
KG
36261999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3627
3628 * putenv.c: Include ansidecl.h to define `const'.
3629 * setenv.c: Likewise.
3630
71cce721
MN
3631Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
3632
a7c9637f
JL
3633 * Makefile.in (CFILES): Add putenv.c and setenv.c.
3634 * configure.in (funcs): Add putenv and setenv.
3635 (AC_CHECK_FUNCS): Check for putenv and setenv.
3636 * configure: Rebuilt.
3637 * putenv.c setenv.c: New files.
3638
71cce721
MN
3639 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
3640 bytes of space using malloc.
3641
53504016
SG
3642Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
3643
3644 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
3645 the *mangled pointer beyond the end of the string. Clean up code to
3646 match prevailing coding style.
3647
34842539
MH
36481999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3649
3650 * tmpnam.c (L_tmpnam): Fix typo.
3651
3a08531d
ME
3652Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
3653
3654 * cplus-dem.c (standard_symbol_characters): Renamed from
3655 standard_symbol_alphabet. No longer modify TABLE.
3656 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
3657 modify TABLE.
3658 (main): Corresponding changes. Use strchr to determine if a
3659 character is valid.
3660
8db9d08b
JB
36611999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
3662
3663 * cplus-dem.c (main): Use table lookup to distinguish identifier
3664 characters from non-identifier characters.
3665 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
3666
6a071f4a
FF
3667Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
3668
3669 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
3670 * getruntime.c: Only attempt to include sys/resource.h and
3671 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
3672 are defined.
3673
7dd88617
DT
3674Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
3675
3676 * configure.in (alloca detection): Handle alloca directly for interix.
3677 * configure: Rebuilt.
3678
7a1528bc
MK
3679Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
3680
3681 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
3682
76409268
JB
36831999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
3684
3685 Fix from Dale Hawkins:
5194cf08 3686 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
3687 reallocated properly if we use it again.
3688
3689 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
3690 stricter about syntax. Always null-terminate string.
3691
acbbd80a
MK
3692Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
3693
3694 * configure.in (checkfuncs): Check for sbrk.
3695 * config.in: Rebuilt.
3696 * configure: Likewise.
3697 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
3698
92523551
JB
36991999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
3700
3701 Fix from Marcus Daniels:
3702 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
3703 identifier looking for another underscore.
3704
36eb4217
MK
3705Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
3706
3707 * pexecute.c: Change all references to __UWIN__ to _UWIN.
3708 * xmalloc.c: Likewise.
3709 (xcalloc): UWIN has sbrk.
3710 (xrealloc): Fix guard macro.
3711
2c45d1a0
RH
37121999-04-11 Richard Henderson <rth@cygnus.com>
3713
3714 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
3715 or <alloca.h>.
3716 * clock.c (GNU_HZ): New definition.
3717 (clock): Use it.
3718 * getruntime.c: Likewise.
3719
3720 * config.table: Use mh-beos.
3721 * config/mh-beos: New file.
3722
391cdef0
MM
37231999-04-11 Mark Mitchell <mark@codesourcery.com>
3724
3725 * cplus-dem.c (demangle_template_value_parm): Handle
3726 pointers-to-members.
3727 (do_type): Handle template parameters as qualifiers.
3728
9d229989
JB
37291999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
3730
3731 * cplus-dem.c: Attempt to handle overflows in counts with some
3732 semblance of grace.
3733 (consume_count): Detect overflows. Return -1 to indicate errors,
3734 instead of zero.
3735 (demangle_template_value_parm, demangle_template): Handle change
3736 to consume_count's return convention.
3737
7c72138a
TT
37381999-04-05 Tom Tromey <tromey@cygnus.com>
3739
3740 * testsuite/regress-demangle: New file.
3741 * testsuite/demangle-expected: New file.
3742
3743 * Makefile.in (all, check, installcheck, info, install-info,
3744 clean-info, dvi, install, etags, tags, mostlyclean, clean,
3745 distclean, maintainer-clean, realclean): Depend on corresponding
3746 `-subdir' target.
3747 (all-subdir check-subdir installcheck-subdir info-subdir
3748 install-info-subdir clean-info-subdir dvi-subdir
3749 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
3750 distclean-subdir maintainer-clean-subdir): New target.
3751 * testsuite/Makefile.in: New file.
3752 * configure: Rebuilt.
3753 * configure.in: Create testsuite/Makefile.
3754
ae7f7270
MM
37551999-04-02 Mark Mitchell <mark@codesourcery.com>
3756
3757 * splay-tree.h (splay_tree_compare_pointers): Define.
3758
30f72379
MM
37591999-03-30 Mark Mitchell <mark@codesourcery.com>
3760
3761 * splay-tree.c (splay_tree_compare_ints): Define.
3762
4cc48683
TT
37631999-03-30 Tom Tromey <tromey@cygnus.com>
3764
3765 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
3766 don't advance input pointer.
3767 (demangle_class_name): If consume_count didn't find a count, do
3768 nothing. Don't bother with `strlen' sanity check; consume_count
3769 does it for us.
3770
3510075c
JL
37711999-03-16 Stan Shebs <shebs@andros.cygnus.com>
3772
3773 From Art Haas <ahaas@neosoft.com>:
3774 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
3775 when doing arm or hp style.
3776 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 3777
89f602a7
MK
3778Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
3779
3780 * pexecute.c (__CYGWIN32__): Rename to
3781 (__CYGWIN__): this.
3782 * xmalloc.c: Likewise.
3783
3784 Changes to support i386-pc-uwin.
3785 * configure.in (*-*-uwin*): Workaround for vfork bug.
3786 * configure: Regenerate.
3787 * pexecute.c (pexecute): Be like standard Unix.
3788 (pwait): Likewise.
3789 * xmalloc.c (first_break): Define.
3790 (xmalloc_set_program_name): Use.
3791 (xmalloc): Use.
3792
9346c824
FS
3793Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3794
3795 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
3796
3510075c
JL
3797Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
3798
3799 * config.table: Check cygwin*, not cygwin32*.
3800
8ec65f13
DB
3801Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
3802
3803 * Makefile.in: Change mkstemp -> mkstemps.
3804
687361c8
ME
3805Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
3806
3807 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
3808 * configure.in (funcs): Check for and conditionally add mkstemps to
3809 the list of functions libiberty will provide.
3810 * configure: Rebuilt.
5194cf08 3811
b207e09c
MK
3812Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
3813
5194cf08 3814 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
3815 platforms that don't have HZ.
3816 * getruntime.c (HZ): Likewise.
3817
16b4c15e
RH
3818Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
3819
3820 * Makefile.in (xstrdup.o): Depend on config.h.
3821
38beb75c
UD
3822Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
3823
3824 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
3825 freeing it.
3826
7e4311a3
KG
3827Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3828
3829 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
3830
3510075c
JL
3831Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3832
3833 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
3834 splay-tree.o.
3835
38361999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
3837
3838 * configure.in: Require autoconf 2.12.1 or higher.
3839
fb9939b8
MM
38401998-12-30 Michael Meissner <meissner@cygnus.com>
3841
3842 * random.c (NULL): Don't redefine NULL if it is already defined.
3843
087aa398
KG
3844Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3845
3846 * argv.c (buildargv): Cast the result of alloca in assignment.
3847
3848 * choose-temp.c: Include stdlib.h.
38beb75c 3849
087aa398 3850 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
3851 (snarf_numeric_literal): Constify first parameter.
3852 (code_for_qualifier): Avoid a gcc extension, make the parameter an
3853 int, not a char.
087aa398
KG
3854 (demangle_qualifier): Likewise.
3855 (demangle_signature): Cast the argument of a ctype function to
3856 unsigned char.
3857 (arm_pt): Add parens around assignment used as truth value.
3858 (demangle_arm_hp_template): Constify variable `args'.
3859 (do_hpacc_template_const_value): Cast the argument of a ctype
3860 function to unsigned char.
3861 (do_hpacc_template_literal): Remove unused variable `i'.
3862 (snarf_numeric_literal): Constify parameter `args'.
3863 Cast the argument of a ctype function to unsigned char.
3864
3865 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 3866 avoid ambiguous `else'.
38beb75c 3867
087aa398 3868 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
3869 `cstart' and `cend' to unsigned char. Cast the argument of macro
3870 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
3871
3872 * objalloc.c (free): Add prototype.
3873
21f2174d
HPN
3874Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
3875
3876 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
3877
3510075c
JL
3878Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
3879
3880 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 3881 doesn't exist.
3510075c 3882 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 3883
e8fc8222
AM
3884Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
3885
3886 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
3887 bumping the pointer we read from. Also prepend these codes,
3888 as we do in other places.
3889
3510075c
JL
38901998-12-18 Nick Clifton <nickc@cygnus.com>
3891
3892 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
3893 'const char *' in order to match its usage when calling siblings.
3894 (snarf_numeric_literal): Make first arg 'const char **' in order
3895 to match usage.
11a0bb74 3896
f4f30aa1
JL
3897Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3898
11a0bb74
KG
3899 * choose-temp.c: Don't check IN_GCC anymore.
3900
3901 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
3902 * memchr.c (memchr): Likewise.
3903 * memcpy.c (memcpy): Likewise.
3904 * memmove.c (memmove): Likewise.
38beb75c 3905
11a0bb74
KG
3906 * mkstemp.c: Don't check IN_GCC anymore.
3907 * pexecute.c: Likewise.
3908 * splay-tree.c: Likewise.
38beb75c 3909
11a0bb74
KG
3910 * strchr.c (strchr): Use `const', not `CONST'.
3911 * strrchr.c (strrchr): Likewise.
3912 * strtol.c (strtol): Likewise.
3913 * strtoul.c (strtoul): Likewise.
3914
70d5ccef
DT
3915Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
3916 Elena Zannoni <ezannoni@cygnus.com>
3917 Stan Shebs <shebs@cygnus.com>
3918 Edith Epstein <eepstein@cygnus.com>
3919 Andres MacLeod <amacleod@cygnus.com>
3920 Satish Pai <pai@apollo.hp.com>
3921
3922 * HP aCC demangling support.
3923 * cplus-dem.c
3924 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
3925 demangling correctly when -edg specified; set the demangling style
3926 when user specifies 'edg'. Set strip_underscore to
3927 prepends_underscore, if not HPUXHPPA. Set
3928 current_demangling_style to hp_demangling if HPUXHPPA. Set
3929 current demangling style correctly if the switch is hp. Read
3930 label correctly also in the HP style case.
70d5ccef 3931 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 3932 function.
70d5ccef 3933 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 3934 style for this case is the same as ARM.
70d5ccef
DT
3935 (demangle_args): handle EDG_DEMANGLING style; support HP style.
3936 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
3937 demangle_arm_pt.); check and set value of temp_start field in
3938 multiple places. Also, when ceching for end of template args,
3939 check to see if at end of static member of template class.
70d5ccef 3940 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 3941 include template args in string defining class.
70d5ccef
DT
3942 (demangle_class_name): use demangel_arm_hp_template.
3943 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
3944 HP_DEMANGLING and currently point at an 'X' in the mangled name.
3945 Handle EDG_DEMANGLING style. Handle constructor and destructor
3946 ops for HP style.
70d5ccef 3947 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
3948 styles. global destructor and constructor for HP style are same
3949 as for ARM style. Same for local variables.
70d5ccef
DT
3950 (demangle_qualified): handle EDG_DEMANGLING style.
3951 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
3952 cases '1' - '9' : initialize the temp_start field to -1 and handle
3953 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
3954 and AUTO_DEMANGLING styles. If expecting a function and managed
3955 to demangle the funct args, then handle the LUCID_DEMANGLING,
3956 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
3957 class name after "Lnnn_ in HP style case. HP style too needs to
3958 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 3959 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 3960 value param for HP/aCC.
70d5ccef 3961 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 3962 literal parameter for HP aCC.
70d5ccef
DT
3963 (recursively_demangle): new function
3964 (snarf_numeric_literal): new function.
3965 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 3966 to message.
70d5ccef 3967
8d525fa8
CF
3968Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
3969
3970 * pexecute.c: Remove obsolete ifdefed cygwin code.
3971
9b1a92d8
KG
3972Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3973
3974 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
3975 * cplus-dem.c: Likewise. Conform to libiberty.h.
3976 * pexecute.c: Likewise.
3977 * splay-tree.c: Likewise.
3978
c85c3232
MS
39791998-11-25 Mike Stump <mrs@wrs.com>
3980
3981 * Makefile.in (splay-tree.o): Add config.h dependency.
3982
35a6cd99
KG
3983Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3984
3985 * configure.in: Use AC_PREREQ(2.12.1).
3986
6e6e34b7
BK
39871998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
3988
5194cf08 3989 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 3990
59b67c11
JL
3991Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
3992
3993 * mpw.c (mpw_access): Add missing parens.
3994
a6458d1d
KG
3995Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3996
3997 * configure.in: Call AC_HEADER_SYS_WAIT.
3998
3999 * pexecute.c: Include sys/wait.h when !IN_GCC.
4000
3510075c
JL
4001Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
4002
4003 * pexecute.c: revert back to checking old Cygwin
4004 preprocessor symbol until some time has passed.
4005
4006Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
4007
4008 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
4009 since it will now support similar constructs.
4010
a9acf741
KG
4011Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4012
4013 * configure.in: Check for calloc.
4014
4015 * calloc.c: New file.
4016
4017 * xmalloc.c (xcalloc): New function.
4018
a49fb37a
AM
4019Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
4020
4021 *cplus-dem.c (demangle_prefix): Use the last "__"
4022 in the mangled name when looking for the signature. This allows
4023 template names to begin with "__".
4024
0e714131
MM
40251998-11-08 Mark Mitchell <mark@markmitchell.com>
4026
ec2288ff
MM
4027 * cplus-dem.c (type_kind_t): Add tk_reference.
4028 (demangle_template_value_parm): Handle it.
4029 (do_type): Use it for references, instead of tk_pointer.
4030
0e714131
MM
4031 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
4032 not internal_cplus_demangle.
4033
2931b6d4
KG
4034Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4035
4036 * choose-temp.c: Don't include gansidecl.h.
4037 * mkstemp.c: Likewise.
4038 * pexecute.c: Likewise.
4039
dd8f3ed5
GN
4040Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
4041
5194cf08
ZW
4042 * configure.in: detect cygwin* instead of cygwin32*
4043 * configure: regenerate
dd8f3ed5 4044
c5f7c445
KG
4045Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4046
4047 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
4048 whether to include config.h. Possibly include unistd.h in the
4049 !IN_GCC case. Define VFORK_STRING as a printable function call
4050 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
4051 defined, include vfork.h. If VMS is defined, define vfork()
4052 appropriately. Remove vfork check on USG, we're using autoconf.
4053 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
4054 locally what string to use.
c5f7c445 4055
ad3ef78e
MM
40561998-10-26 Mark Mitchell <mark@markmitchell.com>
4057
4058 * splay-tree.c: Tweak include directives to make sure declarations of
4059 xmalloc and free are available.
4060
224301c1
MM
40611998-10-25 Mark Mitchell <mark@markmitchell.com>
4062
4063 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
4064 anonymous namespaces.
38beb75c 4065
d9db46fd
MM
40661998-10-23 Mark Mitchell <mark@markmitchell.com>
4067
4068 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
4069 with type_quals.
4070 (TYPE_UNQUALIFIED): New macro.
4071 (TYPE_QUAL_CONST): Likewise.
4072 (TYPE_QUAL_VOLATILE): Likewise.
4073 (TYPE_QUAL_RESTRICT): Likewise.
4074 (code_for_qualifier): New function.
4075 (qualifier_string): Likewise.
4076 (demangle_qualifier): Likewise.
4077 (internal_cplus_demangle): Use them.
4078 (demangle_signature): Likewise.
4079 (demangle_template_value_parm): Likewise.
4080 (do_type): Likewise.
4081 (demangle_fund_type)): Likewise.
224301c1 4082
b056ad1c
KG
4083Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4084
4085 * splay-tree.c (splay_tree_foreach_helper): Make definition static
4086 to match prototype.
4087
ed87f9c8
MM
40881998-10-21 Mark Mitchell <mark@markmitchell.com>
4089
4090 * splay-tree.c: New file.
4091 * Makefile.in (CFILES): Add it.
4092 (REQUIRED_OFILES): Likewise.
4093 (splay-tree.o): Add dependencies.
4094
e0c13971
AS
4095Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4096
4097 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
4098 range of 'K' index.
4099
91e0f659
KG
4100Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4101
4102 * choose-temp.c: Prototype mkstemps() when IN_GCC.
4103
4104 * cplus-dem.c (consume_count): Cast argument of ctype macro to
4105 `unsigned char'.
4106 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
4107 comparing against one.
4108 (cplus_mangle_opname): Likewise.
4109 (demangle_integral_value): Cast argument of ctype macro to
4110 `unsigned char'.
4111 (demangle_template_value_parm): Likewise.
4112 (demangle_template): Initialize variable `bindex'. Cast the
4113 result of `strlen' to (int) when comparing against one. Remove
4114 unused variable `start_of_value_parm'.
4115 (demangle_class_name): Cast the result of `strlen' to (int) when
4116 comparing against one.
4117 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
4118 (gnu_special): Likewise. Cast the result of `strlen' to (int)
4119 when comparing against one.
4120 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
4121 (get_count): Likewise.
4122 (do_type): Likewise. Cast the result of `strlen' to (int) when
4123 comparing against one.
4124 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
4125 (demangle_function_name): Cast the result of `strlen' to (int)
4126 when comparing against one.
4127
4128 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
4129 comparing against one.
4130
73aeb2ff
JL
4131Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
4132
5194cf08
ZW
4133 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
4134 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
4135 * config.in, configure: Rebuilt.
ae76f1be 4136
73aeb2ff
JL
4137 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
4138 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
4139 * config.in, configure: Rebuilt.
4140
dd8f3ed5
GN
4141Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
4142
5194cf08 4143 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 4144
f77d8413
MT
4145Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
4146
4147 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
4148
ca6b370d
JL
4149Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
4150
4151 * Merge egcs & devo libiberty.
4152
ab4856b1
ML
4153