Update the address and phone number of the FSF organization.
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
979c05d3
NC
12005-05-10 Nick Clifton <nickc@redhat.com>
2
3 * Update the address and phone number of the FSF organization in
4 the GPL notices in the following files:
5 COPYING, ansidecl.h, bfdlink.h, bout.h, demangle.h, dis-asm.h,
6 dyn-string.h, fibheap.h, filenames.h, floatformat.h,
7 fnmatch.h, gdbm.h, getopt.h, hashtab.h, hp-symtab.h, ieee.h,
8 libiberty.h, md5.h, oasys.h, objalloc.h, obstack.h, os9k.h,
9 partition.h, progress.h, safe-ctype.h, sort.h, splay-tree.h,
10 symcat.h, ternary.h, xregex2.h, xtensa-config.h,
11 xtensa-isa-internal.h, xtensa-isa.h
12
0093138c
DD
132005-05-06 Kelley Cook <kcook@gcc.gnu.org>
14
15 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
16 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
17 * configure: Regenerate.
18
192005-05-06 Kelley Cook <kcook@gcc.gnu.org>
20
21 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
22 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
23 * aclocal.m4: Don't include accross.m4.
24 * configure, config.in: Regenerate.
25
c631edf1
DD
262005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27
28 * fopen_unlocked.c (unlock_std_streams): New.
29
30 * functions.texi: Regenerate.
31
7b6f6286
DD
322005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
33
34 * fopen_unlocked.c (unlock_stream): New.
35 Consolidate unlocking code into a helper function.
36
37 * functions.texi: Regenerate.
38
fa99459d
DD
392005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
40
41 * asprintf.c: Include config.h.
42 * basename.c: Likewise.
43 * fdmatch.c: Likewise.
44 * hex.c: Likewise.
45 * lbasename.c: Likewise.
46 * spaces.c: Likewise.
47 * xatexit.c:Likewise.
48 * configure.ac: Do check declarations for basename, ffs, asprintf
49 and vasprintf for real.
50 * configure: Regenerate.
51
ab70e2a5
DD
522005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
53
54 * argv.c (dupargv): Allocate space of argv[argc], not
55 sizeof(char *) of that amount. Cast result to char *.
56
ea7143ac
DD
572005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
58
59 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
60 Replace not with negate.
61
41c953f9
DD
622005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
63
64 * configure.ac: Check declarations for basename, ffs, asprintf,
65 vasprintf.
66 * configure: Regenerate.
67 * config.in: Likewise.
68
ac119ae8
DD
692005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
70
71 * Makefile.in (CFILES): Add fopen_unlocked.c.
72 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
73 Regenerate dependencies.
74
75 * configure.ac: Check for stdio_ext.h and __fsetlocking.
76
77 * fopen_unlocked.c: New file.
78
79 * functions.texi, configure, config.in: Regenerate.
80
6e933b47
DD
812005-04-04 Ian Lance Taylor <ian@airs.com>
82
83 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
84 declaration before statement.
85
aa55ccb1
DD
862005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
87
14a88c49
DD
88 * bcmp.c: Fix warnings and implement using memcmp.
89 * bcopy.c: Fix warnings.
90 * bzero.c: Fix warnings and implement using memset.
91
aa55ccb1
DD
92 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
93 -Wstrict-prototypes.
94 * configure, config.in: Regenerate.
95
96 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
97 warnings and reconcile interfaces with relevant standards.
98
b31a49d7
ILT
992005-04-02 Ian Lance Taylor <ian@airs.com>
100
101 * cp-demangle.c: Update copyright.
102
0e867e79
DD
1032005-03-31 Joseph S. Myers <joseph@codesourcery.com>
104
105 * gettimeofday.c: Add "Supplemental" to @deftypefn.
106 * functions.texi: Regenerate.
107
b109e79a
ILT
1082005-03-28 Ian Lance Taylor <ian@airs.com>
109
110 * pex-common.c: New file.
111 * pex-one.c: New file.
112 * pexecute.c: New file.
113 * pex-common.h: Include <stdio.h>.
114 (struct pex_obj): Define.
115 (struct pex_funcs): Define.
116 (pex_init_common): Declare.
117 * pex-unix.c: Rewrite.
118 * pex-win32.c: Rewrite.
119 * pex-djgpp.c: Rewrite.
120 * pex-msdos.c: Rewrite.
121 * testsuite/text-pexecute.c: New file.
122 * pexecute.txh: Rewrite.
123 * configure.ac: Check for wait3 and wait4. Set CHECK to
124 really-check rather than check-cplus-dem.
125 * functions.texi: Rebuild.
126 * Makefile.in: Rebuild dependencies.
127 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
128 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
129 * testsuite/Makefile.in (really-check): New target.
130 (check-pexecute, test-pexecute): New targets.
131 * configure: Rebuild.
132
864e8148
DD
1332005-03-28 Mark Kettenis <kettenis@gnu.org>
134
135 * unlink-if-ordinary.c: Include <sys/types.h>.
136
e064c173
DD
1372005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
138
139 Convert libiberty to use ISO C prototype style 7/n.
140 * regex.c (PARAMS): Remove definition.
141 (PREFIX): Unconditionaly define using ISO C ## operator.
142 (init_syntax_once, extract_number, extract_number_and_incr,
143 print_fastmap, print_partial_compiled_pattern,
144 print_compiled_pattern, print_double_string, printchar,
145 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
146 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
147 at_begline_loc_p, at_endline_p, group_in_compile_stack,
148 insert_space, wcs_compile_range, byte_compile_range,
149 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
150 re_set_registers, re_search, re_search_2, re_search_3, re_match,
151 re_match_2, count_mbs_length, wcs_re_match_2_internal,
152 byte_re_match_2_internal, group_match_null_string_p,
153 alt_match_null_string_p, common_op_match_null_string_p,
154 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
155 regexec, regerror, regfree): Use ISO C prototype style.
156 * partition.c: (elem_compare): Likewise.
157 * cp-demangle.c (print_usage): Likewise.
158
1e45deed
DD
1592005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
160
161 Convert libiberty to use ISO C prototype style 5/n.
162 * random.c (srandom, initstate, setstate, random): Use ISO C
163 prototypes.
164 * putenv.c (putenv): Likewise.
165 * physmem.c (physmem_available, physmem_total, main): Likewise.
166 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
167 * pex-unix.c (pexecute, pwait): Likewise.
168 * pex-msdos.c (pexecute, pwait): Likewise.
169 * pex-djgpp.c (pexecute, pwait): Likewise.
170 * partition.c (partition_new, partition_delete, partition_union)
171 (elem_compare, partition_print): Likewise.
172 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
173 _obstack_allocated_p, _obstack_free, obstack_free,
174 _obstack_memory_used, print_and_abort, obstack_next_free,
175 obstack_object_size, obstack_base): Likewise. Remove codes
176 predicated on !defined(__STDC__).
177 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
178 objalloc_free_block): Use ISO C prototypes.
179 * mkstemps.c (mkstemps): Likewise.
180 * memset.c (memset): Likewise.
181 * mempcpy.c (mempcpy): Likewise.
182 * rename.c (rename): Likewise.
183 * rindex.c (rindex): Likewise.
184 * setenv.c (setenv, unsetenv): Likewise.
185 * sigsetmask.c (sigsetmask): Likewise.
186 * snprintf.c (snprintf): Likewise.
187 * sort.c (sort_pointers, xmalloc): Likewise.
188 * spaces.c (spaces): Likewise.
189 * splay-tree.c (splay_tree_delete_helper,
190 splay_tree_splay_helper, splay_tree_splay,
191 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
192 splay_tree_new, splay_tree_xmalloc_allocate,
193 splay_tree_new_with_allocator, splay_tree_delete,
194 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
195 splay_tree_max, splay_tree_min, splay_tree_predecessor,
196 splay_tree_successor, splay_tree_foreach,
197 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
198 * stpcpy.c (stpcpy): Likewise.
199 * stpncpy.c (stpncpy): Likewise.
200 * strcasecmp.c (strcasecmp): Likewise.
201 * strchr.c (strchr): Likewise.
202 * strdup.c (strdup): Likewise.
203
49b1fae4
DD
2042005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
205
206 Convert libiberty to use ISO C prototype style 6/n.
207 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
208 strtoerrno, main): Use ISO C prototype style.
209 * strncasecmp.c (strncasecmp): Likewise.
210 * strncmp.c (strncmp): Likewise.
211 * strndup.c (strndup): Likewise.
212 * strrchr.c (strrchr): Likewise.
213 * strsignal.c (init_signal_tables, signo_max, strsignal,
214 strsigno, strtosigno, psignal, main): Likewise.
215 * strstr.c (strstr): Likewise.
216 * strtod.c (strtod, atof): Likewise.
217 * strtol.c (strtol): Likewise.
218 * strtoul.c (strtoul): Likewise.
219 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
220 ternary_recursivesearch): Likewise.
221 * tmpnam.c (tmpnam): Likewise.
222 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
223 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
224 * vfork.c (vfork): Likewise.
225 * vfprintf.c (vfprintf): Likewise.
226 * vprintf.c (vprintf): Likewise.
227 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
228 * vsprintf.c (vsprintf): Likewise.
229 * waitpid.c (waitpid): Likewise.
230 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
231 * xexit.c (xexit): Likewise.
232 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
233 xcalloc, xrealloc): Likewise.
234 * xmemdup.c (xmemdup): Likewise.
235 * xstrdup.c (xstrdup): Likewise.
236 * xstrerror.c (xstrerror): Likewise.
237 * xstrndup.c (xstrndup): Likewise.
238
2392005-03-27 Andreas Jaeger <aj@suse.de>
240
241 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
242 flags.
243 * configure: Regenerated.
244
2452005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
246
247 * getopt1.c (getopt_long_only): Fix thinko.
248
2492005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
250
251 Convert libiberty to use ISO C prototype style 4/n.
252 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
253 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
254 htab_create_alloc, htab_set_functions_ex, htab_create,
255 htab_try_create, htab_delete, htab_empty,
256 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
257 htab_find, htab_find_slot_with_hash, htab_find_slot,
258 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
259 htab_traverse_noresize, htab_traverse, htab_collisions,
260 htab_hash_string, iterative_hash): Use ISO C prototype.
261 * hex.c (hex_init): Likewise.
262 * index.c (index): Likewise.
263 * insque.c (insque, remque): Likewise.
264 * lbasename.c (lbasename): Likewise.
265 * lrealpath.c (lrealpath): Likewise.
266 * make-relative-prefix.c (save_string, split_directories,
267 free_split_directories, make_relative_prefix): Likewise.
268 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
269 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
270 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
271 * memchr.c (memchr): Likewise.
272 * memcpy.c (memcpy): Likewise.
273 * memmove.c (memmove): Likewise.
274 * gettimeofday.c (gettimeofday): Likewise.
275 * getruntime.c (get_run_time): Likewise.
276 * getpwd.c (getpwd, getpwd): Likewise.
277 * getpagesize.c (getpagesize): Likewise.
278 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
279 * getopt.c (my_index, exchange, _getopt_initialize,
280 _getopt_internal, getopt, main): Likewise.
281 * getcwd.c (getcwd): Likewise.
282 * fnmatch.c (fnmatch): Likewise.
283 * floatformat.c (floatformat_always_valid,
284 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
285 put_field, floatformat_from_double, floatformat_is_valid,
286 ieee_test, main): Likewise.
287 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
288 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
289 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
290 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
291 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
292 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
293 fibheap_link, fibheap_cut, fibheap_cascading_cut,
294 fibnode_insert_after, fibnode_remove): Likewise.
295 * ffs.c (ffs): Likewise.
296 * fdmatch.c (fdmatch): Likewise.
297 * dyn-string.c (dyn_string_init, dyn_string_new,
298 dyn_string_delete, dyn_string_release, dyn_string_resize,
299 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
300 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
301 dyn_string_insert_cstr, dyn_string_insert_char,
302 dyn_string_append, dyn_string_append_cstr,
303 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
304 Likewise.
305
9334f9c6
DD
3062005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
307
308 Convert libiberty to use ISO C prototype style 3/n.
49b1fae4
DD
309 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
310 consume_count_with_underscores, code_for_qualifier,
311 qualifier_string, demangle_qualifier, cplus_demangle_opname,
312 cplus_mangle_opname, cplus_demangle_set_style,
313 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
9334f9c6 314 ada_demangle, internal_cplus_demangle, squangle_mop_up,
49b1fae4
DD
315 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
316 delete_work_stuff, mop_up, demangle_signature,
317 demangle_method_args, demangle_template_template_parm,
318 demangle_expression, demangle_integral_value,
319 demangle_real_value, demangle_template_value_parm,
320 demangle_template, arm_pt, demangle_arm_hp_template,
321 demangle_class_name, demangle_class, iterate_demangle_function,
322 demangle_prefix, gnu_special, recursively_demangle, arm_special,
323 demangle_qualified, get_count, do_type, demangle_fund_type,
324 do_hpacc_template_const_value, do_hpacc_template_literal,
325 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
326 register_Btype, remember_Btype, forget_B_and_K_types,
327 forget_types, demangle_args, demangle_nested_args,
328 demangle_function_name, string_need, string_delete, string_init,
329 string_clear, string_empty, string_append, string_appends,
9334f9c6
DD
330 string_appendn, string_prepend, string_prepends, string_prependn,
331 string_append_template_idx): Use ISO C prootype style.
332 * cp-demint.c (cplus_demangle_fill_component,
49b1fae4 333 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
9334f9c6
DD
334 cplus_demangle_v3_components): Likewise.
335
3362005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
337
338 Convert libiberty to use ISO C prototype style 2/n.
339 * cp-demangle.h: Remove uses of PARAMS.
340 * cp-demangle.c: Likewise.
49b1fae4
DD
341 (d_dump, cplus_demangle_fill_name,
342 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
343 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
344 d_make_builtin_type, d_make_operator, d_make_extended_operator,
345 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
346 cplus_demangle_mangled_name, has_return_type,
347 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
348 d_prefix, d_unqualified_name, d_source_name, d_number,
349 d_identifier, d_operator_name, d_special_name, d_call_offset,
350 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
351 d_function_type, d_bare_function_type, d_class_enum_type,
352 d_array_type, d_pointer_to_member_type, d_template_param,
353 d_template_args, d_template_arg, d_expression, d_expr_primary,
354 d_local_name, d_discriminator, d_add_substitution,
355 d_substitution, d_print_resize, d_print_append_char,
356 d_print_append_buffer, d_print_error, cplus_demangle_print,
357 d_print_comp, d_print_java_identifier, d_print_mod_list,
358 d_print_mod, d_print_function_type, d_print_array_type,
359 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
360 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
9334f9c6 361 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
49b1fae4 362 print_usage, main):
9334f9c6
DD
363
3642005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
365
366 Convert libiberty to ISO C prototype style 1/n.
367 * _doprnt.c: Remove conditional #include <varargs.h> on
368 ANSI_PROTOTYPES as the latter is always assumed.
369 (_doprnt, checkit, main): Use ISO C prototype.
370 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
371 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
49b1fae4 372 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
9334f9c6
DD
373 * atexit.c (atexit): Likewise
374 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
49b1fae4 375 (asprintf): Use ISO C prototype.
9334f9c6
DD
376 * basename.c (basename): Likewise
377 * bcmp.c (bcmp): Likewise.
378 * bcopy.c (bcopy): Likewise.
379 * bzero.c (bzero): Likewise.
380 * bsearch.c (bsearch): Likewise. Improve const-correctness.
381 * choose-temp.c (choose_temp_base): Likewise.
382 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
383 (calloc): Use ISO C prototype.
384 * clock.c (clock): Likewise.
385 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
49b1fae4 386 (vconcat_length, vconcat_copy, concat_length, concat_copy,
9334f9c6
DD
387 concat_copy2, concat, reconcat, main): Use ISO C prototype.
388 * copysign.c (copysign): Likewise.
389
0fad4bdb
DD
3902005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
391
392 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
393 (REQUIRED_OFILES): Add xstrndup.o.
394 (CONFIGURED_OFILES): Add strndup.o.
395 Regenerate dependencies.
396
397 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
398
399 * strndup.c, xstrndup.c: New.
400
401 * config.in, configure, functions.texi: Regenerate.
402
51e32d64
DD
4032005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
404
405 * xmemdup.c, xstrdup.c: Expose the tail call.
406
8ec32723
DD
4072005-03-09 Mark Mitchell <mark@codesourcery.com>
408
409 * configure.ac (funcs): Add gettimeofday.
410 * configure: Regenerated.
411 * gettimeofday.c: New file.
412 * Makefile.in (CFILES): Add gettimeofday.
413 (CONFIGURED_OFILES): Add gettimeofday.o.
414 (./gettimeofday.o): New rule.
415
27ff8836
ILT
4162005-03-09 Ian Lance Taylor <ian@airs.com>
417
418 * pex-os2.c: Remove.
419 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
420 * Makefile.in (CFILES): Remove pex-os2.c.
421 (CONFIGURED_OFILES): Remove pex-os2.o.
422 (pex-os2.o): Remove target.
423 * configure: Rebuild.
424
48e39b59
ILT
4252005-03-07 Ian Lance Taylor <ian@airs.com>
426
427 * mpw-config.in: Remove.
428 * mpw-make.sed: Remove.
429 * mpw.c: Remove.
430 * Makefile.in (CFILES): Remove pex-mpw.c.
431 (CONFIGURED_OFILES): Remove pex-mpw.o.
432 (mpw.o, pex-mpw.o): Remove targets.
433 * maint-tool (undoc): Remove reference to mpw.c.
434
65dce80e
DD
4352005-03-06 DJ Delorie <dj@redhat.com>
436
437 * configure.ac (target_header_dir): vfork is a stub under djgpp.
438 * configure: Regenerated.
439
190eb137
DD
4402005-03-01 Jan Beulich <jbeulich@novell.com>
441
442 * Makefile.in (CFILES): Add unlink-if-ordinary.c
443 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
444 Add dependencies and rule for unlink-if-ordinary.o.
445 * unlink-if-ordinary.c: New.
446
bac7199c
DD
4472005-03-01 Ben Elliston <bje@au.ibm.com>
448
449 * hashtab.c (htab_find_slot_with_hash): Make function
450 documentation clearer.
451
aca9a742
JM
4522005-02-13 Jason Merrill <jason@redhat.com>
453
454 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
455 arguments.
456
b5c3b3de
DD
4572005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
458
459 * hex.c (hex_value): Group 'unsigned int' together to get correct
460 markup.
461 * functions.texi: Regenerated.
49b1fae4 462
46a10049
DD
4632004-12-27 H.J. Lu <hongjiu.lu@intel.com>
464
465 * Makefile.in: Undo to 2004-12-17.
466 * aclocal.m4: Likewise.
467 * config.table: Likewise.
468 * configure.ac: Likewise.
469 * maint-tool: Likewise.
470 * configure: Likewise.
471
fbfdf750
DD
4722004-12-19 H.J. Lu <hongjiu.lu@intel.com>
473
474 PR bootstrap/19072
475 * Makefile.in (enable_shared): New substitute.
476 (LTTARGETLIB): New.
477 (PREFIXTARGETLIB): New.
478 (LTTESTLIB): New.
479 (PREFIXTESTLIB): New.
480 (CCLD): New.
481 (LINK): New.
482 ($(TARGETLIB)): Use $(LINK) to create libraries and create
483 targets by hand.
484 ($(TESTLIB)): Likewise.
485 (mostlyclean): Don't remove .libs. Remove the libtool object
486 directory.
487
488 * config.table (enable_shared): Removed.
489
490 * configure.ac (enable_static): Set to yes.
491 (AC_PROG_LIBTOOL): Removed.
492 (AM_DISABLE_SHARED): Uncommented.
493 (AM_PROG_LIBTOOL): Likewise.
494 (LIBOBJS): Add `./' to avoid VPATH.
495 (LTLIBOBJS): Likewise.
496 (enable_shared): Substitute.
497 * configure: Regenerated.
498
96e00b33
L
4992004-12-18 H.J. Lu <hongjiu.lu@intel.com>
500
501 * Makefile.in (top_builddir): Set to `.'.
502 (OUTPUT_OPTION): Removed.
503 (LIBTOOL): New.
504 (LTLIBOBJS): New.
505 (EXTRA_LTOFILES): New.
506 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
507 (all): Remove stamp-picdir.
508 (LTCOMPILE): New.
509 (.c.lo): New rule.
510 (REQUIRED_LTOFILES): New.
511 (CONFIGURED_LTOFILES): New.
512 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
513 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
514 (stamp-picdir): Completely removed.
515 (maint-missing): Pass $(REQUIRED_LTOFILES)
516 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
517 $(CONFIGURED_OFILES)
518 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
519 $(CONFIGURED_LTOFILES).
520 (mostlyclean): Also remove *.lo .libs.
521 Run "make maint-deps".
522
523 * aclocal.m4: Include ../libtool.m4.
524
525 * config.table: Don't check --enable-shared.
526
527 * configure.ac (AC_PROG_LIBTOOL): Add.
528 (AC_PROG_CC_C_O): Removed.
529 (OUTPUT_OPTION): Removed.
530 (NO_MINUS_C_MINUS_O): Removed.
531 (ltpexecute): New substitute.
532 (LIBOBJS): Cleanup.
533 * configure: Regenerated.
534
535 * maint-tool: Updated for .lo/libtool.
536
40a59a4c
DD
5372004-12-11 Ben Elliston <bje@au.ibm.com>
538
539 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
540 * configure: Regenerate.
541 * config.in: Likewise.
542
9923bc33
DD
5432004-12-07 DJ Delorie <dj@redhat.com>
544
545 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
546 that recursion (and thus large stack space) is not needed.
547
70615d15
DD
5482004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
549
550 * pex-unix.c: Fix the spelling of longjmp.
551
eb129e35
DD
5522004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
553
554 PR other/18623
555 * cp-demangle.c (d_call_offset): Remove useless local variables
556 offset and virtual_offset.
557 * cplus-dem.c (ada_demangle): Remove useless local variable
558 at_start_name.
559 (demangle_template): Remove useless local variable start.
560
3e0f1404
DD
5612004-11-19 Roger Sayle <roger@eyesopen.com>
562
563 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
564 "ansidecl.h" to avoid redeclaration errors with native compilers.
565 * regex.c: Protect config.h from multiple inclusion.
566
6cfb3176
DD
5672004-11-12 Mike Stump <mrs@apple.com>
568
569 * Makefile.in (libiberty.html): Fix html generation.
570
f9b4e353
DD
5712004-09-08 Adam Nemet <anemet@lnxw.com>
572
573 * vasprintf.c: Accept __va_copy in addition to va_copy.
574
49b1fae4 5752004-09-03 Paolo Bonzini <bonzini@gnu.org>
c7efc4d5
PB
576
577 * configure: Regenerate.
578
49b1fae4 5792004-09-02 Paolo Bonzini <bonzini@gnu.org>
f5396bbe
PB
580
581 * configure.ac: Do not enable multilibs for build-side libiberty.
582
49b1fae4 5832004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
950ad202
DD
584
585 * lrealpath.c (lrealpath): Add _WIN32 support.
586
a21da8bf
DD
5872004-06-28 Zack Weinberg <zack@codesourcery.com>
588
589 * cp-demangle.h: Declare cplus_demangle_operators,
590 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
591 cplus_demangle_type as static if IN_GLIBCPP_V3.
592
5932004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
594
595 PR other/16240
596 * cp-demangle.c (d_expr_primary): Check for a failure return from
597 cplus_demangle_type.
598 * testsuite/demangle-expected: Add test case.
599
9f7d3e7d
DD
6002004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
601
602 * pex-win32.c (fix_argv): Expand comment.
603
0cb2db3a
DD
6042004-05-25 Daniel Jacobowitz <drow@false.org>
605
606 * Makefile.in: Add .NOEXPORT.
607
25319993
DD
6082004-04-29 Douglas B Rupp <rupp@gnat.com>
609
610 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
611 copyright.
612
7e9f5c71
DD
6132004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
614
615 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
616 * configure: Regenerate.
617
bb6a587d
DD
6182004-04-22 Richard Henderson <rth@redhat.com>
619
620 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
621 (CHAR_BIT): Provide default.
622 (struct prime_ent, prime_tab): New.
623 (higher_prime_index): Rename from higher_prime_number, return index.
624 (htab_mod_1): New.
625 (htab_mod, htab_mod_m2): Use it.
626 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
627 (htab_expand): Likewise.
628 * configure.ac: Check for stdint.h.
629 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
630 * config.in, configure: Rebuild.
631
53239e41
DD
6322004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
633
634 * strerror.c: Include config.h, and redefine sys_nerr and
635 sys_errlist, before including ansidecl.h and libiberty.h.
636
d6ea4e80
DD
6372004-04-13 Jeff Law <law@redhat.com>
638
639 * hashtab.c (htab_remove_elt_with_hash): New function.
640 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
641
fe046a17
DD
6422004-03-31 Richard Henderson <rth@redhat.com>
643
644 * hashtab.c (htab_size): Move to top of file; mark inline.
645 (htab_elements): Likewise.
646 (htab_mod, htab_mod_m2): New.
647 (htab_delete): Refactor htab->size and htab->entries.
648 (htab_empty): Likewise.
649 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
650 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
651 (htab_clear_slot): Use htab_size, htab_elements.
652 (htab_traverse_noresize, htab_traverse): Likewise.
653
e0c148a7
DD
6542004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
655
12a7367e
DD
656 * pex-unix.c (pexecute): Use vfork instead of fork, with
657 appropriate changes to make this safe.
658 * pex-common.h (STDERR_FILE_NO): Define.
659
e0c148a7
DD
660 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
661 an 80 column screen. Run maint-deps.
662
85f969cd
DD
6632004-03-09 Kelley Cook <kcook@gcc.gnu.org>
664
665 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
666 * acconfig.h: Delete redundant file.
667 * config.in: Regenerate.
668 * configure: Regenerate.
669
58670637
DD
6702004-03-09 Hans-Peter Nilsson <hp@axis.com>
671
672 * configure: Regenerate for config/accross.m4 correction.
673
758d77be
DD
6742004-03-07 Andreas Jaeger <aj@suse.de>
675
676 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
677 prototypes.
678 (main): Initialize style.
679
74aee4eb
DD
6802004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
681
2d733211
DD
682 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
683 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
684 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
685 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
686 short types to D_PRINT_DEFAULT. Change other integer types to use
687 new D_PRINT_* values where appropriate. Change float types to
688 D_PRINT_FLOAT.
689 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
690 values.
691 * testsuite/demangle-expected: Adjust two test cases.
692
693 * cp-demangle.c (d_print_function_type): Print a space before the
694 parenthesis around the function type in more cases.
695 * testsuite/demangle-expected: Adjust one test case.
696
099f84cf
DD
697 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
698 parentheses around a cast.
699 * testsuite/demangle-expected: Adjust two test cases to match new
700 output.
701
74aee4eb
DD
702 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
703
704 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
705 push more than one of the same CV-qualifier on the top of the
706 stack.
707 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
708 move the CV-qualifiers to apply to the element type instead.
709 (d_print_array_type): When checking the modifiers, keep looking
710 past ones which have been printed already.
711 * testsuite/demangle-expected: Add three test cases.
712
7132004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
714
715 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
716 empty string correctly.
717
718 * cp-demangle.c (__cxa_demangle): It is not an error if status is
719 not NULL. It is an error if the mangled name is the same as a
720 built-in type name.
721 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
722 than cplus_demangle_v3.
723
724 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
725 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
726
f9375305
DD
7272004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
728
729 * regex.c: Include <ansidecl.h>.
730 (regcomp): Cast i to int.
731 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
732
cbf0ee79
DD
7332004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
734
735 * configure.ac: Add m4_pattern_allow(LIBOBJS).
736 * configure: Regenerate.
737
37254c9a
DD
7382004-01-22 DJ Delorie <dj@redhat.com>
739
740 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
741 with explicit build rules.
742 (VPATH): Remove.
743 (.c.o): Poison.
744 * configure.ac (pexecute, LIBOBJS): Add ./ .
745 * maint-tool: Build dependencies with explicit rules.
746
211333f6
DD
7472004-01-15 Kazu Hirata <kazu@cs.umass.edu>
748
749 * strdup.c (strdup): Constify the argument.
750
3795d586
DD
7512004-01-14 Loren J. Rittle <ljrittle@acm.org>
752
753 * Makefile.in (distclean): Remove config.cache.
754
2d6520ee
DJ
7552004-01-13 Daniel Jacobowitz <drow@mvista.com>
756
757 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
758 takes two parameters.
759 * cp-demint.c (cplus_demangle_fill_component): Likewise.
760
59727473
DD
7612004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
762
763 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
764 defined, rename some functions which are to become static via
765 #define.
766 (CP_STATIC_IF_GLIBCPP_V3): Define.
767 (struct d_operator_info): Move definition to cp-demangle.h, and
768 rename to demangle_operator_info. Change all uses.
769 (enum d_builtin_type_print): Move definition to cp-demangle.h.
770 (struct d_builtin_type_info): Move definition to cp-demangle.h,
771 and rename to demangle_builtin_type_info. Change all uses.
772 (enum d_comp_type): Move definition to include/demangle.h, and
773 rename to demangle_component_type, and change all enums to start
774 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
775 (struct d_comp): Move definition to include/demangle.h, and rename
776 to demangle_component. Change all uses.
777 (struct d_info): Move definition to cp-demangle.h.
778 (cplus_demangle_fill_name): New function.
779 (cplus_demangle_fill_extended_operator): New function.
780 (cplus_demangle_fill_ctor): New function.
781 (cplus_demangle_fill_dtor): New function.
782 (d_make_empty): Remove type parameter. Change all callers.
783 (d_make_name): Use cplus_demangle_fill_name.
784 (d_make_extended_operator): Use
785 cplus_demangle_fill_extended_operator.
786 (d_make_ctor): Use cplus_demangle_fill_ctor.
787 (d_make_dtor): Use cplus_demangle_fill_dtor.
788 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
789 non-static by default. Change all callers.
790 (cplus_demangle_operators): Rename from d_operators. Change all
791 uses. Make non-static by default. Add sentinel at end of array.
792 (d_operator_name): Adjust initialization of high for new sentinel
793 in cplus_demangle_operators.
794 (cplus_demangle_builtin_types): Rename from d_builtin_types.
795 Change all uses. Make non-static by default. Change initializer
796 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
797 (cplus_demangle_type): Rename from d_type. Make non-static by
798 default. Change all callers.
799 (cplus_demangle_init_info): Rename from d_init_info. Make
800 non-static by default. Change all callers.
801 * cp-demangle.h: New file.
802 * cp-demint.c: New file.
803 * Makefile.in: Rebuild dependencies.
804 (CFILES): Add cp-demint.c.
805 (REQUIRED_OFILES): Add cp-demint.o.
806
1a79b024
DD
8072004-01-09 Kelley Cook <kcook@gcc.gnu.org>
808
809 * configure.in: Rename file to ...
810 * configure.ac: ... this.
811 * Makefile.in: Update a comment for above change.
812 * README: Likewise.
813 * config.in: Regenerate.
814
820542c9
DD
8152004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
816
817 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
818 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
819 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
820 demangling template parameters.
821 * testsuite/test-demangle.c (fail): New static function.
822 (main): Support new options in input file: --no-params,
823 --is-v3-ctor, and --is-v3-dtor.
824 * testsuite/demangle-expected: Add --no-params to most tests, and
825 add the correct result when parameters are not demangled. Add
826 some simple tests for V3 constructor/destructor recognition.
827
2f9c4058
DD
8282003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
829
830 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
831
4fd47f10
DJ
8322003-12-22 Daniel Jacobowitz <drow@mvista.com>
833
834 PR debug/13272
835 * Makefile.in (lbasename.o): Depend on filenames.h.
836 * lbasename.c: Include "filenames.h" instead of defining
837 its macros locally.
838
b6fb00c0
DD
8392003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
840
841 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
842 dynamic arrays.
843 (struct d_operator_info): Add len field.
844 (struct d_builtin_type_info): Add len and java_len fields.
845 (struct d_standard_sub_info): Add simple_len, full_len, and
846 set_last_name_len fields.
847 (struct d_comp): Add len field to s_string.
848 (struct d_info): Add send, did_subs, and expansion fields.
849 (d_append_string_constant): Define.
850 (d_append_string): Remove. Change all users to use
851 d_append_string_constant or d_append_buffer instead.
852 (d_make_sub): Add len parameter. Change all callers.
853 (d_name): Increase expansion when substituting std::.
854 (d_unqualified_name): Increase expansion for an operator.
855 (d_number): Don't use multiplication for negative numbers.
856 (d_identifier): Make sure there are enough characters in the
857 string for the specified length. Adjust expansion for an
858 anonymous namespace.
859 (d_operators): Initialize len field.
860 (d_special_name, d_ctor_dtor_name): Increase expansion.
861 (d_builtin_types): Initialize len and java_len fields.
862 (d_type): Increase expansion for a builtin type.
863 (d_cv_qualifiers): Increase expansion for each qualifier.
864 (d_bare_function_type): Decrease expansion when removing single
865 void parameter.
866 (d_template_param): Increment did_subs.
867 (d_expression): Increase expansion for an operator.
868 (d_expr_primary): Decrease expansion for a type we will print
869 specially.
870 (standard_subs): Initialize new fields.
871 (d_substitution): Increment did_subs when doing a normal
872 substitution. Increase expansion for a special substitution.
873 (d_print): Add estimate parameter. Change all callers.
874 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
875 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
876 (d_print_java_identifier): Rename from d_print_identifier. Handle
877 only Java case. Change caller.
878 (d_init_info): Change return type to void. Change all callers.
879 Initialize send, did_subs, and expansion fields. Do not
880 initialize comps and subs fields.
881 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
882 arrays on stack. Make an estimate of the length of the demangled
883 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
884 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
885 subs arrays on stack.
886
2730f651
DD
8872003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
888
889 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
890 after the identifier.
891 * testsuite/demangle-expected: Add test case.
892
d4edd112
DD
8932003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
894
895 Fix for PR c++/13447:
896 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
897 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
898 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
899 D_COMP_QUAL_NAME.
900 (is_ctor_or_dtor): Likewise.
901 (d_local_name): Use D_COMP_LOCAL_NAME rather than
902 D_COMP_QUAL_NAME.
903 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
904 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
905 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
906 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
907 * testsuite/demangle-expected: Add two test cases.
908
909 * cp-demangle.c (d_print_function_type): Clear the global modifier
910 list when printing the modifiers, not just when printing the
911 function parameters.
912 * testsuite/demangle-expected: Add two test cases.
913
d35d0cd4
DD
9142003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
915
916 * cp-demangle.c (d_print_function_type): Print the function
917 parameters with no modifiers.
918 * testsuite/demangle-expected: Add test case.
919
920 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
921 expect that we've read the entire string.
922 (is_ctor_or_dtor): Don't expect that we've read the entire
923 string--reverse patch of 2003-11-29.
924
09e9708c
DD
9252003-12-15 Brendan Kehoe <brendan@zen.org>
926
927 * libiberty/Makefile.in (floatformat.o): Add dependency on
928 config.h to accompany change of 2003-12-03.
929
97ceaf5b
DD
9302003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
931
932 Fix handling of constructor/destructor of standard substitution:
933 * cp-demangle.c (struct d_standard_sub_info): Define.
934 (d_substitution): Add prefix argument. Change all callers.
935 Rework handling of standard substitutions to print full name when
936 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
937 * testsuite/demangle-expected: Add test case.
938
939 Fix handling of negative literal constants:
940 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
941 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
942 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
943 (d_print_comp): Handle D_COMP_LITERAL_NEG.
944 * testsuite/demangle-expected: Add test case.
945
858b45cf
DD
9462003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
947
948 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
949 (d_last_char): Define new macro.
950 (d_make_name): Reject an empty name.
951 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
952 (d_substitution, d_print_identifier): Likewise.
953 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
954 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
955 (d_print_mod) Use new d_last_char macro.
956 (d_print_cast): Use new d_last_char macro.
957 (is_ctor_or_dtor): Don't leak memory.
958
959 Fix handling of member function modifiers:
960 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
961 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
962 (d_dump): Dump new d_comp_type values.
963 (d_make_comp): Accept new d_comp_type values.
964 (has_return_type): Only accept _THIS variants of qualifiers.
965 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
966 qualifiers.
967 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
968 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
969 qualifiers and printing them at the end, add _THIS qualifiers to
970 the modifier list.
971 (d_print_comp) [D_COMP_*_THIS]: New cases.
972 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
973 qualifiers.
974 (d_print_mod_list): Add suffix parameter. Change all callers.
975 Keep walking the list even if the current modifier has been
976 printed.
977 (d_print_mod): Handle new _THIS qualifiers.
978 (d_print_function_type): Handle new _THIS qualifiers when deciding
979 whether to print a parenthesis. Put a space before the
980 parenthesis in some cases. Call d_print_mod_list again at the
981 end, passing suffix as 1.
982 (is_ctor_or_dtor): Look for new _THIS qualifiers.
983 * testsuite/demangle-expected: Add test case.
984
985 Fix for PR gcc/13304:
986 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
987 before the '<' is itself a '<', insert a space.
988 (d_print_cast): Likewise.
989 * testsuite/demangle-expected: Add test case.
990
991 Fix for PR gcc/13244:
992 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
993 which uses the '>' operator in an extra layer of parens.
994 * testsuite/demangle-expected: Add test case.
995
b52927b7
DD
9962003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
997
998 * floatformat.c: Include "config.h" and <string.h> if available.
999 (INFINITY, NAN): Define if not defined by <math.h>.
1000 (floatformat_to_double): Handle NaN, infinity, and denormalized
1001 numbers.
1002 (floatformat_from_double): Likewise.
1003 (ieee_test): In debugging code, use little endian rather than big
1004 endian. Correct tests to handle NaN and to check correct sign of
1005 zero. Omit m68k extended test.
1006 (main): Add more debugging cases.
1007
24afc00d
DD
10082003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
1009
1010 * cp-demangle.c (d_demangle): Only return success if we consumed
1011 the entire demangled string.
1012 (is_ctor_or_dtor): Likewise.
1013
1014 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
1015 to restore expected result of EDG test case to original expected
1016 result.
1017
331c3da2
DD
10182003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
1019
1020 * cp-demangle.c (struct d_print_mod): Add templates field.
1021 (d_make_builtin_type): Check for NULL type.
1022 (d_make_extended_operator): Check for NULL name.
1023 (d_make_ctor, d_make_dtor): Likewise.
1024 (d_mangled_name): Add top_level parameter. Change all callers.
1025 (d_encoding): If DMGL_PARAMS is not set, strip off initial
1026 CV-qualifiers.
1027 (d_type): Check some return values we rely on.
1028 (d_bare_function_type, d_array_type): Likewise.
1029 (d_pointer_to_member_type, d_template_args): Likewise.
1030 (d_add_substitution): Fail if argument is NULL.
1031 (d_print_resize): Check whether buf is NULL.
1032 (d_print_comp): Save current templates list with each modifier.
1033 Don't pass the modifier list down when printing a template.
1034 (d_print_cast): Don't pass the modifier list down when printing a
1035 template.
1036 (d_print_mod_list): Temporarily set templates list while printing
1037 a modifier.
1038 (d_print_mod): Check that buf is not NULL before using it.
1039 (d_print_function_type): Print parens if there is no modifier.
1040 (d_init_info): Permit as many substitutions as there are
1041 characters in the mangled name.
1042 * testsuite/demangle-expected: Add two new test cases.
1043
51948b34
DD
10442003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
1045
1046 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
1047 d_demangle.
1048
6d95373e
DD
10492003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
1050
1051 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
1052 callers.
1053 (print_usage): Display new -p option.
1054 (long_options): Add --no-params.
1055 (main): Accept and handle -p.
1056
54a962d9
DD
10572003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
1058
1059 * cp-demangle.c (has_return_type): Skip qualifiers when checking
1060 whether we have a template.
1061 * testsuite/demangle-expected: Add four new tests.
1062
8fe0d347
DD
10632003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
1064
1065 * testsuite/demangle-expected: Minor changes to match output of
1066 new demangler: adjust whitespace in four tests, and change order
1067 of qualifiers in one test.
1068
1069 * cp-demangle.c: Complete rewrite.
1070
dd9d4b48
DD
10712003-11-19 Mark Mitchell <mark@codesourcery.com>
1072
1073 * cp-demangle.c (demangle_type): Correct thinko in substitution
1074 processing.
1075
0976f6a7
DD
10762003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
1077
1078 * cp-demangle.c (demangle_operator_name): Remove space before
1079 "sizeof".
1080 (demangle_type_ptr): Put qualifiers in the right place. Handle
1081 qualifiers in pointer to member specially.
1082 (demangle_type): Handle qualifiers for pointer or reference
1083 specially. Handle function type.
1084 (demangle_local_name): Save and restore caret around demangling of
1085 initial encoding.
1086
1087 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
1088 cplus_demangle.
1089
1090 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
1091
e7e6980b
DD
10922003-10-31 Andreas Jaeger <aj@suse.de>
1093
1094 * floatformat.c (floatformat_always_valid): Add unused attribute.
1095
97ceaf5b
DD
10962003-10-30 Josef Zlomek <zlomekj@suse.cz>
1097
1098 Jan Hubicka <jh@suse.cz>
1099 * vasprintf.c (int_vasprintf): Pass va_list by value.
1100 Use va_copy for copying va_list.
1101 (vasprintf): Pass va_list by value.
1102
686e72d7
DD
11032003-10-30 Josef Zlomek <zlomekj@suse.cz>
1104
1105 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
1106 instead of increasing n_elements when inserting to deleted slot.
1107
eec65ede
JB
11082003-10-20 J. Brobecker <brobecker@gnat.com>
1109
1110 * cplus-dem.c (demangle_template): Register a new Btype only
1111 when needed.
1112 * testsuite/demangle-expected: Add a new test.
1113
cd275bff
L
11142003-10-16 H.J. Lu <hongjiu.lu@intel.com>
1115
1116 * testsuite/demangle-expected: Update the expected output of
1117 _GLOBAL__I__Z2fnv.
1118
e3b1168e
DJ
11192003-10-02 Daniel Jacobowitz <drow@mvista.com>
1120
1121 * strerror.c: Revert last change. Declare static sys_nerr
1122 and sys_errlist using different names.
1123
efb150d5
DJ
11242003-10-01 Daniel Jacobowitz <drow@mvista.com>
1125
1126 * strerror.c: Don't provide or reference sys_errlist if
1127 strerror is available.
1128
b7ca9213
L
11292003-10-01 H.J. Lu <hongjiu.lu@intel.com>
1130
1131 * configure.in: Check if $MAKEINFO is missing.
1132 * configure: Regenerated.
1133
8ddbb593
DJ
11342003-09-24 Daniel Jacobowitz <drow@mvista.com>
1135
1136 * configure.in: Use AC_PROG_CPP_WERROR.
1137 * configure: Regenerated.
1138
5324d185
AC
11392003-09-22 Andrew Cagney <cagney@redhat.com>
1140
1141 * floatformat.c (floatformat_i387_ext_is_valid): New function.
1142 (floatformat_always_valid): New function.
1143 (floatformat_i387_ext): Initialize new "is_valid" field to
1144 "floatformat_i387_ext_is_valid".
1145 (floatformat_ieee_single_little): Initialize "is_valid" field to
1146 floatformat_always_valid.
1147 (floatformat_ieee_double_big): Ditto.
1148 (floatformat_ieee_double_little): Ditto.
1149 (floatformat_ieee_double_little): Ditto.
1150 (floatformat_ieee_double_littlebyte_bigword): Ditto.
1151 (floatformat_i960_ext): Ditto.
1152 (floatformat_m88110_ext): Ditto.
1153 (floatformat_m88110_harris_ext): Ditto.
1154 (floatformat_arm_ext_big): Ditto.
1155 (floatformat_arm_ext_littlebyte_bigword): Ditto.
1156 (floatformat_ia64_spill_big): Ditto.
1157 (floatformat_ia64_spill_little): Ditto.
1158 (floatformat_ia64_quad_big): Ditto.
1159 (floatformat_ia64_quad_little): Ditto.
1160 (floatformat_ia64_quad_little): Ditto.
1161 (floatformat_is_valid): Call "is_valid".
1162
34f4a113
AC
11632003-09-15 Andrew Cagney <cagney@redhat.com>
1164
1165 * floatformat.c (get_field): Make "data" constant.
1166 (floatformat_is_valid, floatformat_to_double): Make "from"
1167 constant, fix casts.
1168 (floatformat_from_double): Make "from" constant.
1169
3f2aacaf
DJ
11702003-09-15 Daniel Jacobowitz <drow@mvista.com>
1171
1172 * floatformat.c (floatformat_is_valid): New function.
1173 (get_field, put_field): Correct comments.
1174
aae66b9f
DD
11752003-09-06 Josef Zlomek <zlomekj@suse.cz>
1176
1177 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
1178 FIBHEAPKEY_T.
1179
60b04ee8
DD
11802003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1181
1182 PR bootstrap/12100
1183 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
1184 * configure: Rebuilt.
1185
2299a76d
DJ
11862003-08-27 Daniel Jacobowitz <drow@mvista.com>
1187
1188 * aclocal.m4: Include acx.m4 and no-executables.m4.
1189 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
1190 (LIB_AC_PROG_CC): Remove.
1191 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
1192 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
1193 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
1194 performing link tests.
1195 * configure: Regenerated.
1196
9ad1aa29
DD
11972003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
1198
a21da8bf 1199 * cp-demangle.c: Clarify what package(s) this is part of.
9ad1aa29 1200
dbb9d0f3
DD
12012003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
1202
1203 * pex-win32.c (pexecute): Mark parameters this_pname and
1204 temp_base as unused. Remove unused variables retries,
1205 sleep_interval. Initialize org_stdin, org_stdout.
1206 (pwait): Mark parameter flags as unused.
1207
12082003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
ab8c7bb1
DD
1209
1210 * pex-win32.c (fix_argv): Ensure that the executable pathname
1211 uses Win32 backslashes.
1212 (pexecute): Cast away constness when assigning *errmsg_arg.
1213
78c5b0a5
L
12142003-06-26 H.J. Lu <hongjiu.lu@intel.com>
1215
1216 * testsuite/demangle-expected: Add more GNU V3 testcases.
1217
70ecf948
DD
12182003-06-22 Zack Weinberg <zack@codesourcery.com>
1219
1220 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
1221 not HC_ASCII and HC_EBCDIC.
1222 Add documentation in form expected by gather-docs.
1223 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
1224 * Makefile.in, functions.texi: Regenerate.
1225
cbc0188b
DD
12262003-06-21 Zack Weinberg <zack@codesourcery.com>
1227
1228 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
1229 for charset determination.
1230
5f73c378
DD
12312003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
1232
1233 * configure.in: Add check for malloc.h needed by
1234 m68k for function free().
1235 * configure: Regenerated.
1236 * config.in: Add HAVE_MALLOC_H.
1237 * hashtab.c: include malloc.h were available for
1238 free().
1239
e69f6c8c 12402003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
cbc0188b 1241
e69f6c8c
DD
1242 PR bootstrap/10974
1243 * physmem.c: Update comment.
1244 * configure.in: Modify test for _system_configuration for older
1245 AIX systems.
1246
1247 * config.in, configure: Regenerated.
cbc0188b 1248
54c60684
DD
12492003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1250
1251 PR other/10810
1252 * test-demangle.c (getline): Fix fence-post error.
1253
5a4e47bd
NC
12542003-06-03 Nick Clifton <nickc@redhat.com>
1255
1256 * asprintf.c: Change comment to note that -1 is returned upon
1257 error.
1258 * vasprintf.c: Likewise.
1259 (vasprintf): Return -1 upon error.
1260 * functions.texi: Document changes to asprintf and vasprintf.
1261
916f5d13
DD
12622003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
1263
1264 * config.table: Accept i[345867]86 variant.
1265
e4f79046
JB
12662003-05-15 Jim Blandy <jimb@redhat.com>
1267
1268 * hex.c (_hex_value): Make this unsigned.
1269 (hex_value): Update documentation for new return type. hex_value
1270 now expands to an unsigned int expression, to avoid unexpected
1271 sign extension when we store it in a bfd_vma, which is larger than
1272 int on some platforms.
1273 * functions.texi: Regenerated.
1274
0f3538e7
DD
12752003-05-07 Josef Zlomek <zlomekj@suse.cz>
1276
1277 * splay-tree.c (splay_tree_predecessor): Fix comment.
1278 (splay_tree_successor): Fix comment.
1279
7108c5dc
JM
12802003-05-07 Jason Merrill <jason@redhat.com>
1281
eafaf5eb 1282 * hashtab.c (iterative_hash): New fn.
7108c5dc
JM
1283 * configure.in: Add AC_C_BIGENDIAN_CROSS.
1284 * aclocal.m4: Include accross.m4.
1285 * configure, config.in: Regenerate.
1286
0b555173
DD
12872003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1288
1289 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
1290 * configure: Regenerate.
1291
8730135a
DD
12922003-05-03 Carlo Wood <carlo@alinoe.com>
1293
1294 * cp-demangle.c: Fix typo in "char_traints" string-literal.
1295
341eccbc
DD
12962003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1297
1298 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
1299 (main): Test that we don't write too much data.
1300
2ed1e5cc
DD
13012003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1302
1303 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
1304 vsnprintf.
1305 * snprintf.c, vsnprintf.c: New files.
1306 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
1307 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
1308 Regenerate dependencies.
1309
1310 * functions.texi, configure, config.in: Regenerated.
1311
10b57b38
DD
13122003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1313
1314 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
1315 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
1316 and stpncpy.
1317 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
1318 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
1319 Regenerate dependencies.
1320
1321 * functions.texi, configure, config.in: Regenerated.
1322
ff773b85
DD
13232003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1324
1325 * argv.c: Fix comments.
1326 * calloc.c: Don't unnecessarily include "libiberty.h".
1327 (bzero): Add prototype.
1328 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1329 * getcwd.c (getcwd): Use standard definition to avoid conflicts
1330 with system headers.
1331 * hashtab.c (htab_traverse): Delete unused variables.
1332 * rename.c: Include "ansidecl.h".
1333 (rename): Use standard definition to avoid conflicts with system
1334 headers.
1335 * strsignal.c: Rely on ANSI_PROTOTYPES.
1336 * strstr.c: Check GNUC >= 2, not GNUC == 2.
1337 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1338 * vprintf.c: Include "ansidecl.h" earlier, rely on
1339 ANSI_PROTOTYPES.
1340 * vsprintf.c: Include "ansidecl.h" earlier, rely on
1341 ANSI_PROTOTYPES and possibly include <stdarg.h>.
cbc0188b 1342
ff773b85
DD
1343 * Makefile.in: Regenerate dependencies.
1344
bb325820
DD
13452003-04-15 DJ Delorie <dj@redhat.com>
1346
1347 * maint-tool (deps): Scan for headers in $srcdir also.
1348
258a4893
DD
13492003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1350
1351 PR target/10338
1352 PR bootstrap/10198
1353 PR bootstrap/10140
1354 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
1355 __mempcpy.
1356 * regex.c (regerror): Likewise.
1357
ff773b85
DD
13582003-04-14 Roger Sayle <roger@eyesopen.com>
1359
1360 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
1361 * memchr.c: Likewise.
1362 * strcasecmp.c: Likewise.
1363 * strncasecmp.c: Likewise.
1364 * strncmp.c: Likewise.
1365 * xatexit.c: Likewise.
1366 * xmalloc.c: Likewise.
1367
1368 * copysign.c: Use traditional function declaration instead of DEFUN.
1369 * sigsetmask.c: Likewise.
1370
1371 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
1372 * memset.c: Likewise.
1373
1374 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
1375 * memmove.c: Likewise.
1376
eec539c7
DD
13772003-04-14 Roger Sayle <roger@eyesopen.com>
1378
1379 * strdup.c (strdup): Tweak implementation to use memcpy.
1380
daf7c4ad
DD
13812003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1382
1383 * configure.in (HAVE_UINTPTR_T): Always define.
1384 * configure: Regenerated.
1385
aa072e59
AO
13862003-03-23 Alexandre Oliva <aoliva@redhat.com>
1387
1388 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
1389 instead of $$CC alone.
1390 (install_to_tooldir): Use it.
1391
f77ed96c
DD
13922003-17-03 Jan Hubicka <jh@suse.cz>
1393
1394 * hashtab.c (htab_traverse_noresize): Break out from ...
1395 * hashtab.c (htab_traverse): ... here.
1396
2336e177
DD
13972003-12-03 Jan Hubicka <jh@suse.cz>
1398
1399 * hashtab.c (htab_expand): Fix warning.
1400
1401 * hashtab.c (htab_expand): Compute the size of hashtable based
1402 on the number of elements actually used.
1403 (htab_traverse): Call htab_expand when table is too empty.
1404
d8cbbf95
DD
14052003-03-11 Carlo Wood <carlo@gnu.org>
1406
1407 * cplus-dem.c (demangle_integral_value): Correction to reflect
1408 patch of 2002-01-10 in order to also make negative multi-digits
1409 without leading underscore work.
1410
a01fefeb
DD
14112003-03-03 Mark Mitchell <mark@codesourcery.com>
1412
1413 * cplus-dem.c: Add license exception to copyright notice.
1414
638ceb1a
DD
14152003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1416
1417 * physmem.c: Formatting changes from upstream.
1418
ef803806
DD
14192003-02-24 Danny Smith <dannysmith@users.source.forge.net>
1420
1421 * physmem.c (physmem_total): Add _WIN32 support.
1422 (physmem_available): Likewise.
1423
181fa229
DD
14242003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1425
1426 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
1427 GSI_PHYSMEM.
1428 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
1429
cc529274
DD
14302003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1431
1432 * configure.in: Check for sys/systemcfg.h and
1433 _system_configuration.
1434 * physmem.c: Add support for AIX. Tweek formatting as per
1435 upstream coreutils beta.
1436
14372003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1438 Richard Earnshaw <rearnsha@arm.com>
1439 Geoffrey Keating <geoffk@apple.com>
cbc0188b 1440
cc529274
DD
1441 * configure.in: Check for sys/sysctl.h and sysctl.
1442 * physmem.c: Add support for *bsd and darwin.
1443 * Makefile.in: Generate depedency for physmem.o.
1444
192cbe66
DD
14452003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1446
1447 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
1448 Tru64 UNIX.
1449 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
1450 Tru64 UNIX.
1451
1452 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
1453 machine/hal_sysinfo.h, sys/table.h.
1454 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
1455 * configure, config.in: Regenerate.
1456
ff773b85
DD
14572003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1458
1459 * configure.in: Check for sys/sysmp.h and sysmp.
1460 * physmem.c: Pull upstream copy, add support for irix6.
1461
1462 * config.in, configure: Regenerated.
1463
900d2082
DD
14642003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1465
1466 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
1467 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
1468 pstat_getdynamic.
cbc0188b 1469
4938384a
DD
14702003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1471
1472 * Makefile.in (CFILES): Add physmem.c.
1473 (REQUIRED_OFILES): Add physmem.o.
1474 * configure.in: Check for sys/pstat.h.
1475 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
1476 * physmem.c: New file, copied from textutils.
1477
1478 * config.in, configure: Regenerated.
1479
ba61a412
DJ
14802003-02-20 Daniel Jacobowitz <drow@mvista.com>
1481
1482 * Makefile.in (CFILES): Add lrealpath.c.
1483 (REQUIRED_OFILES): Add lrealpath.o.
1484 (lrealpath.o): Add rule.
1485 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
1486 * configure.in: Add realpath and canonicalize_file_name to
1487 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
1488 for canonicalize_file_name.
1489 * lrealpath.c: New file.
1490 * make-relative-prefix.c: Update documentation.
1491 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
1492 * config.in: Regenerated.
1493 * configure: Regenerated.
1494 * functions.texi: Regenerated.
1495
25dfe0ac
DD
14962003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1497
1498 * cplus_dem.c: Fix typo: intializes -> initializes.
1499
8b90eef4
AO
15002003-02-20 Alexandre Oliva <aoliva@redhat.com>
1501
1502 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
1503 config.status.
1504 * configure: Rebuilt.
1505
fcd7c7c9
DD
15062003-02-13 Daniel Jacobowitz <drow@mvista.com>
1507
1508 Fix PR c++/7612.
1509 * cplus-dem.c (demangle_signature): Call string_delete.
1510 Remove extra string_init.
1511 (demangle_arm_hp_template): Call string_delete instead of
1512 string_clear. Add missing string_delete call.
1513 (demangle_qualified): Add missing string_delete call.
1514 (do_type): Remove unused variable btype. Add missing string_delete
1515 call. Call string_delete instead of string_clear.
1516 (demangle_fund_type): Move variable btype inside of the switch
1517 statement. Add missing string_delete call.
1518 (do_arg): Call string_delete instead of string_clear. Remove extra
1519 string_init.
1520 (demangle_nested_args): Free work->previous_argument.
1521
073c427b
DD
15222003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1523
1524 * acconfig.h: New file. Add uintptr_t.
1525 * config.in: Regenerated.
1526
f8bd3000
DD
15272003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
1528
1529 * libiberty.texi: Update to GFDL 1.2.
1530
85b9a938
DD
15312003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1532
1533 * Makefile.in (libiberty_topdir): New subst.
1534 (mkinstalldirs): Redefine in terms of the above.
1535 * configure.in: AC_SUBST it.
1536 * configure: Regenerate.
1537
578460f2
AO
15382003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1539
1540 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
1541 (info-subdir, install-info-subdir, clean-info-subdir)
1542 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
1543 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
1544 Pass $(FLAGS_TO_PASS).
1545
7f285245
AO
15462003-01-27 Alexandre Oliva <aoliva@redhat.com>
1547
1548 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
1549 /`$$CC -print-multi-os-directory`.
1550
5f9624e3
DJ
15512003-01-26 Daniel Jacobowitz <drow@mvista.com>
1552
1553 * hashtab.c (htab_create_alloc_ex): New function.
1554 (hatab_set_functions_ex): New function.
1555 (htab_delete, htab_expand): Support alternate allocation functions.
1556
9c2259b8
DD
15572003-01-24 Christopher Faylor <cgf@redhat.com>
1558
1559 * configure.in: Remove special pex-cygwin consideration.
1560 * configure: Regenerate.
1561 * pex-cygwin.c: Remove.
1562 * Makefile.in: Remove pex-cygwin.[co] lines.
1563
5a17353c
DD
15642003-01-24 Zack Weinberg <zack@codesourcery.com>
1565
1566 * Makefile.in (CFILES): Add pex-*.c.
1567 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
1568 (CONFIGURED_OFILES): Add pex-*.o.
1569 (TEXIFILES): Add pexecute.txh.
1570 (pexecute.o): Delete rule.
1571 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
1572 pex-unix.o, pex-win32.o): New rules.
1573 * configure.in: Change AC_INIT argument to xmalloc.c.
1574 Compute appropriate pexecute implementation and substitute it
1575 as @pexecute@.
1576
1577 * pexecute.c: Split up into...
1578 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
1579 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
1580 new files.
1581
1582 * functions.texi: Regenerate.
1583 * configure: Regenerate.
1584
eed2b28c
DD
15852003-01-20 Josef Zlomek <zlomekj@suse.cz>
1586
1587 * hashtab.c (htab_expand): Fix allocation of new entries.
1588
27a39a5f
DD
15892003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1590
1591 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
1592
1593 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
1594 mkinstalldirs command.
1595
b51c1553
DD
15962002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
1597
1598 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
1599 Define for hosts with HOST_EXECUTABLE_SUFFIX.
1600
756954c3
DD
16012002-11-24 Nick Clifton <nickc@redhat.com>
1602
1603 * make-relative-prefix.c (make_relative_prefix): Ensure return
1604 string is empty before using strcat to construct it.
1605
2a80c0a4
DD
16062002-11-22 Daniel Jacobowitz <drow@mvista.com>
1607
1608 * Makefile.in: Add make-relative-prefix.c.
1609 * make-relative-prefix.c: New file.
1610 * functions.texi: Rebuilt.
1611
768b20d8
JJ
16122002-11-16 Jakub Jelinek <jakub@redhat.com>
1613
1614 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
1615 used with arguments in traditional C' warnings.
1616
f52d1d64
JJ
16172002-10-16 Jakub Jelinek <jakub@redhat.com>
1618
1619 * config.table: Use mh-s390pic for s390x too.
1620
0d3deb8d
DD
16212002-10-06 Andreas Jaeger <aj@suse.de>
1622
1623 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
1624 variable and of strict-aliasing warning.
1625 (grow_vect): Use char as first parameter.
1626
1b67de92
DD
16272002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1628
1629 * Makefile.in (all): Fix multilib parallel build.
1630
585cc78f
DD
16312002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
1632
1633 * cp-demangle.c (demangling_new): Cast 0 to enum.
1634 (demangle_char): Cast return of strdup to char *.
1635 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
1636 (is_gnu_v3_mangled_dtor): Likewise.
1637 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
1638 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
1639 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
1640 * md5.c (md5_process_bytes): Cast results back to const void *.
1641 (md5_process_block): Add cast to const md5_uint32 *.
1642 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
1643 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
1644 unsigned short.
1645 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
1646 to void *.
1647 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
1648
e21b0cc1
NC
16492002-09-19 Nick Clifton <nickc@redhat.com>
1650
1651 * README: Update email addresses for bugs and patches.
1652
a54ba43f
DD
16532002-09-10 Mike Stump <mrs@apple.com>
1654
1655 * splay-tree.c (splay_tree_successor): Fix comments.
1656
16572002-09-11 Zack Weinberg <zack@codesourcery.com>
1658
1659 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
1660 * testsuite/Makefile.in: Adjust for test-demangle.
1661 * testsuite/regress-demangle: Deleted.
1662 * testsuite/test-demangle.c: New file.
1663 * testsuite/demangle-expected: Change \$ to $ throughout, now that
1664 this file is not being read by a shell script.
1665
01cea699
DD
16662002-09-05 Roger Sayle <roger@eyesopen.com>
1667
1668 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
1669
a2832523
DD
16702002-08-07 DJ Delorie <dj@redhat.com>
1671
1672 * regex.c (re_error_msgid): Just use a simple array of strings.
1673 (re_compile_pattern): Compensate.
1674 (re_comp): Likewise.
1675 (re_comp): Likewise.
1676 (regerror): Likewise.
1677
1e3f0be0
DD
16782002-07-29 Neil Booth <neil@daikokuya.co.uk>
1679
1680 * cplus-dem.c (PREPEND_BLANK): Remove.
1681
b851d07b
DD
16822002-07-10 Jason Merrill <jason@redhat.com>
1683
1684 * cp-demangle.c (demangle_identifier): Support extended Unicode
1685 characters.
1686
2a9dffbf
DD
16872002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1688
1689 * cp-demangle.c (demangle_v3_with_details): Wrap in
1690 !defined IN_GLIBCPP_V3.
1691
793011ca
DD
16922002-07-01 Mark Mitchell <mark@codesourcery.com>
1693
1694 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
1695 Set it for the "st" operator.
1696 (demangle_expression): Handle expressions with types as arguments.
1697
b39b76b8
DD
16982002-06-30 Douglas Rupp <rupp@gnat.com>
1699
1700 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
1701 * Makefile.in (OUTPUT_OPTION): Use.
1702
4748c6d8
DD
17032002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
1704
1705 * Makefile.in (install_to_libdir): Add $(DESTDIR).
1706 (install_to_tooldir): Likewise.
1707
f9c3326a
DD
17082002-06-17 Douglas Rupp <rupp@gnat.com>
1709
1710 * lbasename.c: Add 2002 to copyright.
1711 (IS_DIR_SEPARATOR): Remove VMS junk.
1712
18893690
DD
17132002-06-05 Geoffrey Keating <geoffk@redhat.com>
1714
1715 * hashtab.c (htab_create): New stub function for backward
1716 compatibility.
1717 (htab_try_create): Likewise.
1718
17192002-06-03 Geoffrey Keating <geoffk@redhat.com>
1720
1721 * hashtab.c (htab_create): Delete.
1722 (htab_try_create): Delete.
1723 (htab_create_alloc): New.
1724 (htab_delete): Support user-specified memory allocation.
1725 (htab_expand): Likewise.
1726
17272002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
1728
1729 * configure.in: Fix typo in the code checking for sys_errlist.
1730 * configure: Regenerated.
1731
9296c8b2
DD
17322002-05-13 Andreas Schwab <schwab@suse.de>
1733
1734 * config.table: Use mh-x86pic also for x86-64.
1735
52d98c2d
DD
17362002-05-08 Alexandre Oliva <aoliva@redhat.com>
1737
1738 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1739 script entry, and set LD to it when configuring multilibs.
1740 * configure: Rebuilt.
1741
cafa3917
DD
17422002-05-07 Mark Mitchell <mark@codesourcery.com>
1743
1744 * configure.in (AC_TYPE_PID_T): Use it.
1745 * configure: Regenerated.
1746 * getruntime.c: Include <sys/types.h>.
1747 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
1748
b1c933fc
RH
17492002-04-09 Richard Henderson <rth@redhat.com>
1750
1751 * hashtab.c (higher_prime_number): Use 7 as minimum.
1752 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
1753 (htab_find_slot_with_hash): Likewise.
1754
0c4460bb
DD
17552002-04-01 Phil Edwards <pme@gcc.gnu.org>
1756
1757 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
1758 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
1759 not compile if IN_GLIBCPP_V3 defined.
1760 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
1761
f2160d2b
DD
17622002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1763
3ebf1f59 1764 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
1765 if it is NULL.
1766
7dd4d42a
DD
17672002-03-27 DJ Delorie <dj@redhat.com>
1768
1769 * hex.c: Add documentation.
1770 (_hex_value): Provide non-ASCII empty table.
1771 (hex_init): Initialize the non-ASCII table.
1772 * functions.texi: Regenerate.
1773
38e57a35
DD
17742002-03-27 Mark Mitchell <mark@codesourcery.com>
1775
1776 * dyn-string.c: Add libgcc exception to copyright notice.
1777
cfed0715
DD
17782002-03-26 H.J. Lu (hjl@gnu.org)
1779
1780 * config.table: Support --with-build-subdir.
1781 * configure.in: Likewise.
1782 * configure: Rebuild.
1783
1504972f
DD
17842002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
1785
1786 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
1787 seen.
1788
35efcd67
DD
17892002-03-12 Mark Mitchell <mark@codesourcery.com>
1790
1791 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
1792 notice.
1793
dabc64ea
DD
17942002-03-11 Douglas B Rupp <rupp@gnat.com>
1795
1796 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
1797
3ddbd84c
JB
17982002-03-06 Jim Blandy <jimb@redhat.com>
1799
1800 * splay-tree.c (splay_tree_xmalloc_allocate,
1801 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
1802 prototyped definitions. Mark `data' arguments as unused.
1803
efdab807
AC
18042002-03-06 Andrew Cagney <ac131313@redhat.com>
1805
1806 * floatformat.c (floatformat_arm_ext_big): Delete definition.
1807
50d4562d
DD
18082002-03-04 Phil Edwards <pme@gcc.gnu.org>
1809
1810 * configure.in: Add --enable-install-libiberty option.
1811 * Makefile.in (INSTALLED_HEADERS): New variable.
1812 (install_to_libdir): Possibly also copy headers.
1813 * configure: Regenerated.
1814
18152002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
1816
1817 * xmalloc.c (xmalloc_fail): Clarify error message further.
1818
6e9980f5
DD
18192002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
1820
1821 * xmalloc.c (xmalloc_fail): Clarify error message.
1822
18893690 18232002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
1824
1825 * splay-tree.c (splay_tree_xmalloc_allocate,
1826 splay_tree_xmalloc_deallocate): New functions.
1827 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
1828 above functions and a dummy data pointer.
1829 (splay_tree_new_with_allocator): New function.
1830 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
1831 splay_tree_remove): Use the splay tree's allocation and
1832 deallocation functions.
1833
59ea9fe7
DD
18342002-02-19 Scott Snyder <snyder@fnal.gov>
1835
1836 * testsuite/demangle-expected: Add test case for infinite loop in
1837 demangler.
1838 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
1839 if do_type() doesn't make any progress --- prevents an infinite
1840 loop.
1841
6f848550
DD
18422002-02-18 Carlo Wood <carlo@gnu.org>
1843
1844 PR c++/5390
1845 * cplus-dem.c (demangle_integral_value): Accept multi-digit
1846 numbers that do not start with an underscore; This is needed
1847 for integer template parameters. This doesn't break anything
1848 because multi-digit numbers are never followed by a digit.
1849 * testsuite/demangle-expected: Corrected all mangled test
1850 cases with multi-digit template parameters: g++ 2.95.x does
1851 not generate underscores around these parameters.
1852
44354ae1
DD
18532002-02-05 Jason Merrill <jason@redhat.com>
1854
1855 * cplus-dem.c (flags): Add DMGL_VERBOSE
1856 (cplus_demangle_v3_p): Remove.
1857 (demangle_it): Add DMGL_TYPES to passed flags.
1858 * cp-demangle.c (cplus_demangle_v3_all): Remove.
1859 (cplus_demangle_v3_type): Remove.
1860 (cplus_demangle_v3): Add options parm.
1861
42da15d6
DD
18622002-02-02 H.J. Lu (hjl@gnu.org)
1863
1864 * cp-demangle.c (cp_demangle_type): Do not protect with
1865 IN_LIBGCC2.
1866 (cplus_demangle_v3_all): New.
1867 (cplus_demangle_v3): Call cplus_demangle_v3_all.
1868 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
1869
1870 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
1871 Initialized to cplus_demangle_v3.
1872 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
1873 of cplus_demangle_v3.
1874 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
1875 command line symbol.
1876
1877 * testsuite/regress-demangle: Pass the mangled name at the
1878 command line.
1879
b117c158
DD
18802002-02-01 H.J. Lu <hjl@gnu.org>
1881
1882 * cp-demangle.c (cp_demangle_type): Call demangling_new with
1883 DMGL_GNU_V3.
1884
c78d91b1
DD
18852002-01-31 Phil Edwards <pme@gcc.gnu.org>
1886
1887 * cp-demangle.c: Revert yesterday's change.
1888
bef8b55d
DD
18892002-01-31 Adam Megacz <adam@xwt.org>
1890
1891 * gcc/libiberty/configure.in: Treat mingw the same as cywin
1892 wrt HAVE_SYS_ERRLIST.
1893
2c955b8b
DD
18942002-01-30 Phil Edwards <pme@gcc.gnu.org>
1895
1896 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
1897 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
1898 cp_demangle_type.
1899 * testsuite/demangle-expected: New gnu-v3 test.
1900
58b1717a
RH
19012002-01-22 Momchil Velikov <velco@fadata.bg>
1902
1903 * configure.in (variable detection): Use arrays of unspecified
1904 size instead of plain integers.
1905
cc096b71
DD
19062002-01-18 DJ Delorie <dj@redhat.com>
1907
1908 * Makefile.in (TESTLIB): New. This library is for future
1909 testsuites.
1910 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
1911 break down by letter.
1912 (REQUIRED_OFILES): List long-to-compile files first.
1913 (maint-deps): New, target for updating dependencies.
1914 (dependencies): Update.
1915 * maint-tool: Add dependency-generating option.
1916 * configure.in: Check for _doprnt even if we're not providing it.
1917 * configure: Regenerate.
1918
1919 * _doprnt.c: Modifications to allow compiling on any platform.
1920 * copysign.c: Likewise.
1921 * putenv.c: Likewise.
1922 * setenv.c: Likewise.
1923 * vsprintf.c: Likewise.
1924
19252002-01-15 Douglas B Rupp <rupp@gnat.com>
1926
1927 * mkstemps.c (mkstemps): On VMS, open temp file with option
1928 that causes it to be deleted when closed.
1929
20d54542
DD
19302002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1931
c23795e2
DD
1932 * cp-demangle.c (long_options): Const-ify.
1933 * cplus-dem.c (long_options): Likewise.
1934
20d54542
DD
1935 * cplus-dem.c (mystrstr): Delete. All callers changed to use
1936 strstr instead.
1937
f348a7b1
DD
19382001-12-31 Ira Ruben <ira@apple.com>
1939
1940 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
1941 * configure: Regenerated.
1942
d86cd745
DD
19432001-12-24 Douglas B. Rupp <rupp@gnat.com>
1944
1945 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
1946 * configure: Regenerated.
1947
ae533646
DD
19482001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
1949
1950 PR other/2719
1951 * cplus-dem.c (consume_count): Treat negative count as an error.
1952 * testsuite/demangle-expected: Added testcase.
1953
c0eb281b
DD
1954Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
1955
1956 * configure.in: Hardcode that vfork works on VMS host.
1957 * configure: Regenerated.
1958
2da4c07f
RH
19592001-12-06 Richard Henderson <rth@redhat.com>
1960
1961 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
1962 (cplus_demangle): Support no_demangling.
1963
24acd898
DD
19642001-11-27 Zack Weinberg <zack@codesourcery.com>
1965
1966 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
1967 in libiberty context. Fix typo in leading comment.
1968 * configure.in: Fix various AC_DEFINEs so autoheader works.
1969 If any of vprintf, vsprintf, vfprintf is missing from libc,
1970 then AC_REPLACE_FUNCS(_doprnt).
1971
fec50157 19722001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 1973 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
1974
1975 * Makefile.in (stamp-h): Depend on Makefile for proper
1976 serialization.
1977 (*-subdir): Depend on config.h for proper serialization.
1978
5527febf
DD
19792001-11-26 DJ Delorie <dj@redhat.com>
1980
1981 * configure.in: Check for alloca.h (for regex.c and putenv.c).
1982 * configure: Regenerate.
1983 * config.h: Add HAVE_ALLOCA_H.
1984
941d74a0
DD
19852001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1986
1987 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
1988 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
1989 is available.
1990
dc579051
DD
1991Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
1992
1993 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
1994 * configure.in (HAVE_UINTPTR_T): Test for system defining
1995 uintptr_t and define HAVE_UINTPTR_T appropriately.
1996 * regex.c (uintptr_t): Do not provide a definition if the
1997 system provided one.
1998
1999 * regex.c (PREFIX): Provide an alternate definition for
2000 non-ANSI/ISO compilers.
2001 (ARG_PREFIX): Likewise.
2002
1a78a35a
DD
20032001-11-12 Jim Meyering <meyering@lucent.com>
2004
2005 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
2006 this code would end up calling gettext even in packages built
2007 with --disable-nls.
2008 * getopt.c (_): Likewise.
2009 * regex.c (_): Likewise.
2010
4e55c4b6
DD
20112001-11-03 Alan Modra <amodra@bigpond.net.au>
2012
2013 * configure.in: Cope with missing makeinfo.
2014 * configure: Regenerate.
2015
d311a83a
DD
20162001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2017
2018 * hex.c (hex_init): Provide empty stub.
2019
2020 * hex.c (hex_init): Delete.
2021 (_hex_value): Const-ify and initialize at compile-time.
2022
3bc62f91
DD
20232001-10-19 H.J. Lu <hjl@gnu.org>
2024
2025 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
2026 necessary.
2027
5d852400
DD
20282001-10-17 DJ Delorie <dj@redhat.com>
2029
2030 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
2031 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 2032 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
2033 Improve manual formatting.
2034 * functions.texi: Regenerate.
2035
ba19b94f
DD
20362001-10-15 DJ Delorie <dj@redhat.com>
2037
2038 * Makefile.in (TEXIFILES): Add fnmatch.txh.
2039 (maint-undoc): New.
2040 maint-tool: Add "undoc" tool.
2041 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
2042 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
2043 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
2044 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
2045 documentation.
2046 * fnmatch.txh: New.
2047 * functions.texi: Regenerate.
2048
56056af5
DD
20492001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
2050
2051 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
2052 * strtod.c: Use "ISO C" instead of "ANSI C".
2053 * functions.texi: Regenerate.
2054
99b58139
DD
20552001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
2056
2057 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
2058 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
2059 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
2060 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
2061 spelling. Give names to function arguments in documentation. Use
2062 (void) prototypes in documentation.
2063 * functions.texi: Regenerate.
2064
e6450fe5
DD
20652001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2066
2067 * argv.c (buildargv, tests, main): Const-ify.
2068 * cp-demangle.c (operator_code): Likewise.
2069 * cplus-dem.c (optable, libiberty_demanglers,
2070 cplus_demangle_set_style, cplus_demangle_name_to_style,
2071 print_demangler_list): Likewise.
2072 * hashtab.c (higher_prime_number): Likewise.
2073 * strcasecmp.c (charmap): Likewise.
2074 * strerror.c (error_info, strerror, main): Likewise.
2075 * strncasecmp.c (charmap): Likewise.
2076 * strsignal.c (signal_info): Likewise.
2077
da191b5b
DD
20782001-09-29 DJ Delorie <dj@redhat.com>
2079
2080 * configure: Regenerate.
2081
916aaa12
DD
20822001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2083
2084 * concat.c: Include stdlib.h.
2085
fa9f0e33
DD
20862001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2087
2088 * libiberty.texi: (Top level): Add syncodeindex pg. Add
2089 @dircategory and @direntry directives. Add @finalout.
2090 (many nodes): Lose the next,prev,up pointers on the @nide line.
2091 (Using, Supplemental Functions, Replacement Functions): Fix
2092 markup.
2093 (Functions): Move around, to allow makeinfo to build the manual
2094 without next,prev,up pointers in thye node lines.
2095 (Licenses): Fix typos.
2096
2097 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
2098 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
2099 * functions.texi: Regenerate.
2100
2101 * copying-lib.texi: Lose the next,prev,up pointers on the @node
2102 line.
2103
21042001-09-27 DJ Delorie <dj@redhat.com>
2105
2106 * configure.in: Don't use in-tree texinfo, because libiberty must
2107 be built before it. Check for makeinfo version 4 or higher.
2108 * functions.texi: Regenerate.
2109
39423523
DD
21102001-09-20 DJ Delorie <dj@redhat.com>
2111 Phil Edwards <pedwards@disaster.jaj.com>
2112
2113 * configure.in (MAKEINFO, PERL): Detect these.
2114 (--enable-maintainer-mode): Add.
2115 * configure: Regenerate.
2116 * Makefile.in (MAKEINFO, PERL): Define.
2117 (libiberty.info, libiberty.dvi, libiberty.html): New.
2118 (CFILES): Add bsearch.c.
2119 (CONFIGURED_OFILES): New, list of objects configure might add.
2120 (maint-missing, maint-buildall): New, for maintainers only.
2121 (clean, mostlyclean): Add info/dvi/html files.
2122 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
2123 * gather-docs: New, for maintainers.
2124 * maint-tool: New, for maintainers.
2125 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
2126 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
2127 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
2128 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
2129 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
2130 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
2131 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
2132 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
2133 documentation.
2134
66c94e19
DD
21352001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2136
2137 * concat.c (reconcat): Fix for traditional C.
2138
99ee3a8f
DD
21392001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2140
2141 * concat.c (reconcat): New function.
2142
54c20242
DD
21432001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2144
2145 * concat.c (vconcat_length, vconcat_copy, concat_length,
2146 concat_copy, concat_copy2): New functions.
2147 (concat): Use vconcat_length/vconcat_copy.
2148
2149 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
2150 Define.
2151
843f21be
DD
21522001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2153
2154 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
2155 VA_FIXEDARG & VA_CLOSE.
2156
2157 * vasprintf.c: Check HAVE_STRING_H when including string.h.
2158 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
2159 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
2160
8a423cb3
DD
21612001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2162
2163 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
2164
dc676635
DD
21652001-08-23 Ulrich Drepper <drepper@redhat.com>
2166
2167 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
2168
21692001-08-23 Ulrich Drepper <drepper@redhat.com>
2170
2171 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2172 instead of mbrtowc.
2173 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2174 wcslen, and __wcscoll instead of wcscoll.
2175
f080c76d
DD
21762001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2177
3ebf1f59
DD
2178 * fibheap.c (fibheap_init, fibnode_init): Remove.
2179 (fibheap_new, fibnode_new): Use xcalloc to allocate and
2180 initialize memory.
2181 (fibheap_insert): Remove check for node allocation failure.
f080c76d 2182
f01b59ed
DD
21832001-08-21 Richard Henderson <rth@redhat.com>
2184
2185 * Makefile.in (fibheap.o): Depend on config.h.
2186 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
2187 functions for inlining.
2188
2189Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
2190
2191 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
2192 hosting on cygwin.
2193 * configure: Regenerate.
2194
eb828599
AC
21952001-08-20 Andrew Cagney <ac131313@redhat.com>
2196
2197 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
2198 HARRIS_FLOAT_FORMAT.
2199 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
2200 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
2201 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
2202 (floatformat_m88110_harris_ext): New float formats.
2203
4e55c4b6
DD
22042001-08-20 Daniel Berlin <dan@cgsoftware.com>
2205
2206 * fibheap.c: New file. Fibonacci heap.
2207
2208 * Makefile.in (CFILES): Add fibheap.c.
2209 (REQUIRED_OFILES): Add fibheap.o.
2210 (fibheap.o): Add dependencies for fibheap.o.
2211
68a41de7
DD
22122001-08-17 Christopher Faylor <cgf@cygnus.com>
2213
2214 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
2215 * configure: Regenerate.
2216
8fc34799
DD
22172001-08-16 Richard Henderson <rth@redhat.com>
2218
2219 * hashtab.c (htab_hash_string): New.
2220
16bad250
AC
22212001-08-13 Andrew Cagney <ac131313@redhat.com>
2222
2223 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
2224 name.
2225
a9022147
DD
22262001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
2227
2228 * regex.c (wcs_regex_compile): Use appropriate string
2229 to compare with collating element.
2230 Fix the padding for the alignment.
2231
8aefe91a 22322001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
2233
2234 * lbasename.c (lbasename): Change function definition to return a
2235 const char pointer.
2236
e7e9b069
DD
22372001-08-07 Jason Merrill <jason_merrill@redhat.com>
2238
2239 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
2240 for".
2241
cc5144f8
DD
22422001-08-03 Richard Henderson <rth@redhat.com>
2243
2244 * Makefile.in (concat.o): Depend on config.h.
2245
8aefe91a
DD
22462001-07-30 Andreas Jaeger <aj@suse.de>
2247
2248 * concat.c: Include "config.h".
2249
86710ce2
DD
22502001-07-30 Andreas Jaeger <aj@suse.de>
2251
2252 * regex.c: Declare wcs functions only if compiling with
2253 MBS_SUPPORT.
2254 Don't use #elif for traditional C.
2255
22562001-07-23 Ulrich Drepper <drepper@redhat.com>
2257
2258 * regex.c: Revamp memory allocation for WCHAR functions to
2259 not use too much stack.
2260
22612001-07-30 Andreas Jaeger <aj@suse.de>
2262
2263 * regex.c: Declare wcs functions only if compiling with
2264 MBS_SUPPORT.
2265 Don't use #elif for traditional C.
2266
a5d8f731
DD
22672001-07-25 Daniel Jacobowitz <drow@mvista.com>
2268
2269 * Makefile.in (regex.o): Add dependency on config.h.
2270
6ad8a379
DD
22712001-07-18 Andreas Schwab <schwab@suse.de>
2272
2273 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
2274 underscore character.
2275
22762001-07-18 Ulrich Drepper <drepper@redhat.com>
2277
2278 * regex.c: Limit string length printed in debug messages to 100
2279 chars.
2280
22812001-07-18 Andreas Jaeger <aj@suse.de>
2282
2283 * regex.c: Place under LGPL version 2.1.
2284
2a6ef469
DD
22852001-07-10 Jeff Johnston <jjohnstn@redhat.com>
2286
2287 * Makefile.in: Add support for regex code.
2288 * regex.c: New file.
2289
7b78baae
DD
22902001-07-05 Mark Klein <mklein@dis.com>
2291
2292 * Makefile.in: Add ffs.c dependency.
2293 * configure.in: Add ffs.c.
2294 * ffs.c: New file.
2295
926150e2
DD
22962001-06-18 Richard Henderson <rth@redhat.com>
2297
2298 * concat.c: Include <sys/types.h>.
2299
11f6f21d
DD
23002001-06-11 Loren J. Rittle <ljrittle@acm.org>
2301
2302 bootstrap/3106
2303 * strerror.c (sys_nerr): Hide the OS header version.
2304 * strsignal.c (sys_nsig): Likewise.
2305
d42dae6c
DD
23062001-06-10 Richard Henderson <rth@redhat.com>
2307
2308 * concat.c: Include string.h. Fix int vs size_t usage.
2309 Simplify the iteration loops. Use memcpy.
2310
e05c6d27
DD
23112001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2312
2313 * partition.c: Fix misspelling of `implementation'.
2314
b50c4073
DD
23152001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2316
2317 * md5.c (md5_init_ctx): Declare constants as unsigned.
2318 (md5_process_block): Likewise.
2319
457161bf
DD
23202001-05-07 Zack Weinberg <zackw@stanford.edu>
2321
2322 * cp-demangle.c (demangle_v3_with_details,
2323 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
2324 function definition.
2325 * ternary.c: Use K+R style function definitions. Use PTR, not
2326 void *. Make arguments constant where possible.
2327
e00bc6a7
DD
23282001-05-07 Mark Mitchell <mark@codesourcery.com>
2329
2330 * splay-tree.h (splay_tree_max): New function.
2331 (splay_tree_min): Likewise.
2332
400ee7e1
DB
23332001-04-15 Daniel Berlin <dan@cgsoftware.com>
2334
2335 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
2336
2337 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 2338
d9697354
DD
23392001-04-03 Zack Weinberg <zackw@stanford.edu>
2340
2341 * make-temp-file.c (try): Inline.
2342
a7bf099b
DD
23432001-02-28 Richard Henderson <rth@redhat.com>
2344
2345 * Makefile.in (make-temp-file.o): Depend on config.h.
2346
30a1def2
DD
23472001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2348
2349 * memchr.c (memchr): Adjust condition to avoid infinite loop.
2350
079c672a
DD
23512001-03-23 Jakub Jelinek <jakub@redhat.com>
2352
2353 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
2354 `_' not followed by a digit is invalid.
2355
a88e356a
JB
23562001-03-22 Jim Blandy <jimb@redhat.com>
2357
2358 * cp-demangle.c (string_list_delete): Use dyn_string_delete
2359 instead of free, to free the contents as well as the string
2360 structure.
2361
1dffcc66
DD
23622001-03-21 Zack Weinberg <zackw@stanford.edu>
2363
2364 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
2365 Don't default P_tmpdir to anything. Try /var/tmp before
2366 /usr/tmp.
2367
23682001-03-20 Zack Weinberg <zackw@stanford.edu>
2369
2370 * choose-temp.c: Split off make_temp_file, and the code
2371 duplicated between it and choose_temp_base, into...
2372 * make-temp-file.c: ... here; new file.
2373
2374 * Makefile.in (CFILES): Add make-temp-file.c.
2375 (REQUIRED_OFILES): Add make-temp-file.o.
2376
e61231f1
JB
23772001-03-20 Jim Blandy <jimb@redhat.com>
2378
2379 * cp-demangle.c (struct demangling_def): New fields:
2380 is_constructor and is_destructor.
2381 (demangling_new): Initialize them.
2382 (demangle_ctor_dtor_name): Set them, if we detect a constructor
2383 or destructor.
2384 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
2385 is_gnu_v3_mangled_dtor): New functions.
2386
a9cbbe6d
DD
23872001-03-20 Jason Merrill <jason@redhat.com>
2388
2389 * cplus-dem.c (main): Skip initial $.
2390
b1e51b3c
DD
23912001-03-15 Michael Meissner <meissner@redhat.com>
2392
2393 * hashtab.c (higher_prime_number): Silence warning that 4294967291
2394 might be a signed integer under pre-ISO C systems.
2395
8aa30e60 23962001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 2397 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 2398
8aa30e60
DD
2399 * libiberty/lbasename.c: New file.
2400 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 2401
30673bf5
DD
24022001-03-06 Zack Weinberg <zackw@stanford.edu>
2403
2404 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
2405 * configure.in: Replace all alloca logic with a simple use of
2406 the above new macro.
2407 * config.table: Kill *-*-beos* entry.
2408 * config/mh-beos: Delete.
2409 * configure, config.in: Regenerate.
fa03f0a7 2410
30673bf5
DD
2411 * Makefile.in (ALLOCA, HFILES): Kill.
2412 (REQUIRED_OFILES): Add alloca.o.
2413 (alloca.o): Depend on libiberty.h.
2414 (argv.o): Don't depend on alloca-conf.h.
2415 * alloca-conf.h: Delete.
2416 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
2417 blocks. Provide the C alloca unconditionally. Use PTR where
2418 appropriate. Make i00afunc static.
2419 * argv.c: Don't include alloca-conf.h.
fa03f0a7 2420
5810f394
DD
24212001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2422
2423 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 2424
a9db032a
DD
24252001-02-16 Loren J. Rittle <ljrittle@acm.org>
2426
2427 * cplus-dem.c (main): Initialize style.
fa03f0a7 2428
8aefe91a
DD
24292001-02-02 Phil Edwards <pme@sources.redhat.com>
2430
2431 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
2432
bc9bf259
DD
24332001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
2434
2435 Add support for Java demangling under the v3 ABI:
2436 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
2437 (struct demangling_def): Add `style' field.
2438 (demangling_new): New parameter `style'. Set it in demangling_t.
2439 (demangle_prefix): Use NAMESPACE_SEPARATOR.
2440 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
2441 (cp_demangle): New parameter `style'. Pass it to demangling_new().
2442 (main): Call cp_demangle with extra parameter.
2443 (java_demangle_v3): New function.
2444 (java_builtin_type_names): New. Table of primitive type names used
2445 for Java demangling.
2446 (demangle_builtin_type): Look up in java_builtin_type_names if doing
2447 Java output.
2448 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
2449 demangling.
2450 (long_options): Remove obsolete `java' option.
2451 (main): Remove explicit handling of `java' option. Instead, pass style
2452 parameter in cplus_demangle flags as gdb does.
2453 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 2454
f6528837
DD
24552000-12-29 DJ Delorie <dj@redhat.com>
2456
2457 * fnmatch.c: Make the note about the origins of this file more
2458 accurate, at least until we can sync with glibc.
2459 * getopt.c: Ditto.
2460 * getopt1.c: Ditto.
2461 * md5.c: Ditto.
2462 * obstack.c: Ditto.
9d969b59 2463
c6da642e
DD
24642000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2465
2466 * bsearch.c: New file.
2467 * configure.in (funcs): Add bsearch.
2468 (AC_CHECK_FUNCS): Likewise.
2469 * configure, config.in: Regenerate.
2470
ae7d06ad 24712000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
2472
2473 * safe-ctype.c: #include "ansidecl.h".
2474 * strtod.c: Likewise.
2475
ae7d06ad 24762000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
2477
2478 * strtoul.c: Include safe-ctype.h, not ctype.h.
2479
ac424eb3
DD
24802000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
2481
2482 * safe-ctype.c: New file.
2483 * Makefile.in (CFILES): Add safe-ctype.c.
2484 (REQUIRED_OFILES): Add safe-ctype.o.
2485
2486 * argv.c: Define ISBLANK and use it, not isspace.
2487 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
2488 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
2489 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
2490 before calling TOLOWER(c)/TOUPPER(c).
2491
4415a860
DD
24922000-12-07 Mike Stump <mrs@wrs.com>
2493
2494 * Makefile.in (distclean): When cleaning, remove testsuite.
2495
849ee224
DD
24962000-12-05 Jason Merrill <jason@redhat.com>
2497
2498 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
2499 name before allocating the dyn_string.
2500
ae7d06ad 25012000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
2502
2503 * cp-demangle.c: s/new_abi/v3/.
2504 * cplus-dem.c: Likewise.
2505 (current_demangling_style): Now auto_demangling.
2506 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 2507 (main): Use standard symbol chars for auto_demangling.
e49a569c 2508
ae7d06ad 25092000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
2510
2511 * hashtab.c (higher_prime_number): Use a table, rather than a
2512 seive, to find the next prime.
ae7d06ad
NC
2513
25142000-11-22 H.J. Lu <hjl@gnu.org>
2515
2516 * cplus-dem.c (main): Handle gnat_demangling.
2517
25182000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
2519
2520 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
2521 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
2522 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
2523 argument form of AC_DEFINE in dummy definitions block. Use
2524 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
2525 in dummy block. Preload cache variables instead of bypassing
2526 tests, where possible.
2527 * acconfig.h: Removed.
ae7d06ad 2528
2ea7befd
DD
2529 * xmalloc.c (xmalloc_failed): New function, does error
2530 reporting on failed allocation.
2531 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 2532
f1775526
HPN
25332000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
2534
2535 * cplus-dem.c (cplus_demangle): Fix formatting.
2536 (grow_vect): Ditto.
2537 (ada_demangle): Ditto.
2538 (internal_cplus_demangle): Ditto.
2539 (mop_up): Ditto.
2540
25412000-11-21 H.J. Lu <hjl@gnu.org>
2542
2543 * cplus-dem.c (main): Handle java_demangling.
2544
ae7d06ad 25452000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
2546
2547 * cplus-dem.c (grow_vect): Prototype.
2548 (ada_demangle): Cast the arg of ctype macros to unsigned char.
2549
5dd42ef4
HPN
25502000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
2551
2552 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
2553 parameter `option'.
2554
296731c1
DD
25552000-11-15 Kenneth Block <kenneth.block@compaq.com>
2556
8944fb9d 2557 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
2558 be used in GCC.
2559
6e53a714 25602000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 2561
5dd42ef4 2562 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
2563 list.
2564
99a4c1bd
HPN
25652000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
2566
2567 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
2568 xcalloc depending on htab->return_allocation_failure. Return zero
2569 if calloc fails.
99a4c1bd
HPN
2570 (htab_create): Update comment to cover memory allocation.
2571 (htab_try_create): New.
2572 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 2573 Update comment to cover this.
99a4c1bd 2574
e0f3df8f
HPN
25752000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
2576
2577 * hashtab.c: Change void * to PTR where necessary.
2578 (htab_create, htab_expand): Correct formatting of comment before
2579 function.
2580
ae7d06ad 25812000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
2582
2583 * cp-demangle.c (string_list_def): Add caret_position and comments.
2584 (result_caret_pos): New macro.
2585 (result_append_string): Rename to...
2586 (result_add_string): ... this, and insert at caret position.
ae7d06ad 2587 Rename throughout.
59666b35
DD
2588 (result_append): Rename to...
2589 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 2590 throughout.
59666b35
DD
2591 (result_append_char): Rename to...
2592 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 2593 throughout.
59666b35
DD
2594 (result_append_space): Remove.
2595 (string_list_new): Initialize caret position.
2596 (result_add_separated_char): Use caret position.
2597 (result_get_caret): New funtion.
2598 (result_set_caret): Likewise.
2599 (result_shift_caret): Likewise.
2600 (result_previous_char_is_space): Likewise.
2601 (substitution_start): Use caret position.
2602 (substitution_add): Likewise.
2603 (demangling_new): Initialize caret position.
2604 (demangle_encoding): Use caret position.
ae7d06ad 2605 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
2606 (demangle_type_ptr): Use switch statement. Handle pointers to
2607 arrays. Don't use result_append_space. Use caret position.
2608 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
2609 call to demangle_array_type.
2610 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 2611
ae7d06ad 26122000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
2613
2614 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
2615
26162000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
2617
2618 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
2619
26202000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2621
2622 * splay-tree.c: #include <stdio.h>.
2623
26242000-09-14 Hans-Peter Nilsson <hp@axis.com>
2625
2626 * testsuite/demangle-expected: Add two tests for anonymous
2627 namespaces.
2628 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
2629
26302000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
2631
2632 * splay-tree.c (splay_tree_predecessor): New function.
2633 (splay_tree_successor): Likewise.
ae7d06ad
NC
2634
26352000-09-10 Hans-Peter Nilsson <hp@axis.com>
2636
2637 * testsuite/demangle-expected: Add four tests for type_info
2638 mangling.
2639 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
2640 for a non-template non-qualified type_info function or node.
2641
26422000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2643
2644 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
2645
26462000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2647
2648 * md5.c: #include "ansidecl.h".
2649
26502000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2651
2652 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
2653 (demangle_type): Handle substitution candidates correctly in the
2654 face of special substitutions.
ae7d06ad
NC
2655
26562000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2657
2658 * cp-demangle.c (demangle_encoding): Rename variable.
2659 (demangle_name): Rename parameter. Handle return type
2660 suppression.
2661 (demangle_nested_name): Rename parameter.
2662 (demangle_prefix): Likewise. Change return type suppression.
2663 (demangle_unqualified_name): Add parameter. Flag constructors and
2664 conversion operators.
2665 (demangle_special_name): Fix comment.
2666 (demangle_type): Rename variable.
2667 (demangle_bare_function_type): Check for missing return type and
2668 parameter.
2669 (demangle_class_enum_type): Rename parameter.
2670 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
2671
26722000-08-31 DJ Delorie <dj@redhat.com>
2673
2674 * configure.in (Cygwin): special case cygwin only when we're
2675 building cygwin, not when we're hosting cygwin.
2676
26772000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2678
2679 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
2680 <expression>.
ae7d06ad
NC
2681
26822000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2683
2684 * cp-demangle.c (demangle_type_ptr): Increment position past
2685 pointer and reference characters.
ae7d06ad
NC
2686
26872000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2688
2689 * cp-demangle.c (demangle_nv_offset): New function.
2690 (demangle_v_offset): Likewise.
2691 (demangle_call_offset): Likewise.
2692 (demangle_special_name): Update thunk demangling to comply with
2693 ABI changes.
ae7d06ad
NC
2694
26952000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2696
2697 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
2698 (substitution_def): Remove template_parm_number.
2699 (NOT_TEMPLATE_PARM): Remove.
2700 (result_insert_string): New macro.
2701 (result_insert): Likewise.
2702 (result_insert_char): Likewise.
2703 (substitution_add): Remove last parameter. Don't store template
2704 parm number.
2705 (BFT_NO_RETURN_TYPE): Define as NULL.
2706 (demangle_encoding): Adjust call to demangle_bare_function_type.
2707 (demangle_name): Adjust substitution. Adjust call to
2708 substitution_add.
2709 (demangle_prefix): Adjust call to substitution_add.
2710 (demangle_identifier): Handle anonymous namespaces.
2711 (demangle_operator_name): Change demangling of vendor-extended
2712 operator to match ABI changes.
2713 (demangle_type_ptr): Change parameters. Make recursive. Handle
2714 substitutions here.
2715 (demangle_type): Adjust calls to demangle_template_param,
2716 substitution_add, and demangle_type_ptr. Fix substitution of
2717 templated types.
2718 (demangle_function_type): Change parameter to a pointer.
2719 (demangle_bare_function_type): Likewise. Adjust insertion point.
2720 (demangle_template_param): Remove last parameter.
2721 (demangle_expr_primary): Remove unused variable. Adjust call to
2722 demangle_template_param.
2723 (is_mangled_char): Accept `$' and `.'.
2724 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
2725 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
2726
27272000-08-31 Hans-Peter Nilsson <hp@axis.com>
2728
2729 * testsuite/demangle-expected: Add nine tests for
2730 underscore-after-number followed by five tests for name-signature
2731 delimiter.
2732
27332000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
2734
2735 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
2736
27372000-08-28 Jason Merrill <jason@redhat.com>
2738
2739 * Makefile.in (REQUIRED_OFILES): Add md5.o.
2740 (CFILES): Add md5.c.
2741 * md5.c: New file.
2742
27432000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2744
2745 * cp-demangle.c (demangle_name): Initialize template_p in local
2746 name case. Don't re-add substitutions as candidates.
2747 (demangle_nested_name): Use <unqualified-name>.
2748 (demangle_prefix): Likewise. Don't add template names as
2749 substitution candidates twice, or re-add a substitution or the
2750 last prefix component.
2751 (demangle_local_name): Adjust output format.
ae7d06ad
NC
2752
27532000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2754
2755 * cp-demangle.c (result_add_separated_char): Change parameter to
2756 int.
2757 (substitution_add): Don't check for duplicates. Check if
2758 previously allocated size is zero.
2759 (demangle_name): Remove duplicate check for std substitution.
2760 Clear template flag appropriately.
2761 (demangle_prefix): Remove argument to demangle_substitution.
2762 Don't check that template flag is already set.
2763 (demangle_operator_name): Add pt operator.
2764 (demangle_type): Don't treat r as built-in type. Remove argument
2765 to demangle_substitution. Fix substitution candidate mechanics.
2766 Handle <template-template-parm>s. Improve comments.
2767 (demangle_template_param): Don't handle template arg lists here.
2768 (demangle_substitution): Remove parameter.
2769 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
2770
27712000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
2772
2773 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
2774
27752000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
2776
2777 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
2778 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
2779 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
2780
27812000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2782
2783 * cp-demangle.c (result_close_template_list): Remove function.
2784 (result_add_separated_char): New function.
2785 (result_open_template_list): New macro.
2786 (result_close_template_list): Likewise.
2787 (demangle_prefix): Don't set template_p if the
2788 prefix ends with a ctor name.
2789 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
2790 (demangle_type): Check for template args after substitution.
2791 (demangle_template_args): Use result_open_template_list.
d3e85005 2792
ae7d06ad 27932000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 2794
ae7d06ad 2795 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 2796
ae7d06ad 27972000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
2798
2799 * config/mh-openedition.h: Added -DLE370 definition.
2800
a9f34fb6
JL
28012000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
2802
2803 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
2804 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
2805 Cast program to 'char *' in errmsg_arg assignment.
2806 (PWAIT_ERROR): Define.
2807 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
2808 to DJGPP's WIF* macros.
2809
90aaccd1 28102000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 2811 Jeff Law <law@cygnus.com>
90aaccd1 2812
ae7d06ad 2813 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 2814
90aaccd1 2815 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
2816 * rename.c: Include config.h, unistd.h
2817 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 2818
6ef554e3
HPN
28192000-07-24 Hans-Peter Nilsson <hp@axis.com>
2820
2821 * cplus-dem.c (work_stuff_copy_to_from): New.
2822 (delete_non_B_K_work_stuff): New.
2823 (delete_work_stuff): New.
2824 (mop_up): Break out work_stuff partly destruction to
2825 delete_non_B_K_work_stuff.
2826 (iterate_demangle_function): New.
2827 (demangle_prefix): Call iterate_demangle_function instead of
2828 demangle_function_name. Leave handling of name-signature
2829 __-delimiters to iterate_demangle_function.
2830 (demangle_integral_value): Strip an optional
2831 following underscore cautiously. Handle negative numbers.
2832
ae7d06ad 28332000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 2834
ae7d06ad 2835 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
2836 if (AUTO_DEMANGLING || GNU_DEMANGLING)
2837
ae7d06ad
NC
28382000-07-21 Alex Samuel <samuel@codesourcery.com>
2839
2840 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
2841 allocating ctor mangling.
2842 (demangle_array_type): Handle empty and non-constant array length.
2843
b1233257 28442000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
2845 Jeff Law <law@cygnus.com>
2846
2847 * configure.in (AC_CHECK_HEADERS): Add time.h.
2848 (AC_HEADER_TIME): Add check.
2849 * configure, config.in: Regenerate.
2850 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
2851
2852 * configure.in (AC_CHECK_HEADERS): Add limits.h.
2853 * configure, config.in: Regenerate.
2854 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
2855 * strtol.c, strtoul.c: #include "config.h". Portably #include
2856 <limits.h> and/or <sys/param.h>.
2857 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 2858
7d3ffcaf
JL
2859 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
2860 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
2861 * configure, config.in: Regenerate.
2862 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
2863
b1233257
JL
2864 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
2865
ae7d06ad
NC
28662000-07-21 Mike Stump <mrs@wrs.com>
2867
2868 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
2869 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
2870
28712000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2872
2873 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
2874
2875 * setenv.c (setenv): Initialize variable `ep'.
2876
2877 * sigsetmask.c (abort): Prototype.
2878
2879 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
2880 __STDC__ for stdarg.h include.
2881 (int_vasprintf): Prototype.
2882 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
2883 definition. Cast `global_total_width' in comparison.
2884 (main): Prototype. Return a value.
2885
2886 * vfork.c (fork): Prototype.
2887
2888 * xexit.c: Include config.h.
2889
9adf30b2
JL
28902000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
2891
2892 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
2893 and print it with %u.
2894
2ed78d1b
HPN
28952000-07-17 Hans-Peter Nilsson <hp@axis.com>
2896
2897 * testsuite/regress-demangle (failed test): Show result and
2898 expected output.
2899
0473bdf7
AH
29002000-07-07 Andrew Haley <aph@cygnus.com>
2901
2902 * cplus-dem.c (main): fflush() after emitting last char before
2903 waiting for input.
2904
03d5f569
JM
29052000-06-28 Alex Samuel <samuel@codesourcery.com>
2906
2907 * cp-demangle.c (demangle_encoding): Accept no substitutions.
2908 (demangle_name): Handle <substitution> followed by
2909 <unqualified-template-name>.
2910 (demangle_type): Follow special substitutions with
2911 <class-enum-type>
2912 (demangle_subtitution): Set template_p for special substitutions.
2913 (main): Fix typos.
ae7d06ad 2914
03d5f569
JM
29152000-06-27 Alex Samuel <samuel@codesourcery.com>
2916
2917 * cp-demangle.c (demangle_special_name): Swap base and derived
2918 class when demangling construction vtables.
2919
29202000-06-21 Alex Samuel <samuel@codesourcery.com>
2921
2922 * cp-demangle.c: Don't include ctype.h.
2923 (IS_DIGIT): New macro.
2924 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
2925 instead of isdigit and isalpanum.
2926 (demangling_def): Make name and next const pointers.
2927 (STATUS_ALLOCATION_FAILED): New status code.
2928 (dyn_string_append_space): Handle failure in
2929 dyn_string_append_char.
2930 (int_to_dyn_string): Likewise. Change return value to status_t.
2931 (string_list_new): Handle failure of dyn_string_init.
2932 (result_close_template_list): Change return type to status_t.
2933 Handle failure in dyn_string_append.
2934 (result_push): Change return value to status_t. Handle failure in
2935 string_list_new. Handle failure of result_push throughout.
2936 (substitution_add): Change return value to status_t. Handle
2937 dyn_string failures. Handle failure of substitution_add
2938 throughout.
2939 (template_arg_list_new): Return NULL on allocation failure.
2940 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
2941 Handle error result throughout.
2942 (result_append): Likewise.
2943 (result_append_char): Likewise.
2944 (result_append_space): Likewise.
2945 (demangling_new): Make argument a const pointer. Handle
2946 allocation failures.
2947 (demangle_template_args): Handle failure in template_arg_list_new
2948 and result_close_template_list.
2949 (demangle_discriminator): Return if int_to_dyn_string fails.
2950 (cp_demangle): Likewise.
2951 (cp_demangle_type): New function.
2952 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
2953 memory allocation failure.
2954 (main): Likewise.
2955 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
2956 IN_LIBGCC2.
2957 (dyn_string_init): Change return value to int. Handle
2958 RETURN_ON_ALLOCATION_FAILURE case.
2959 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
2960 (dyn_string_release): Delete the dyn_string.
2961 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
2962 (dyn_string_copy): Change return type to int.
2963 (dyn_string_copy_cstr): Likewise.
2964 (dyn_string_prepend): Likewise.
2965 (dyn_string_prepend_cstr): Likewise.
2966 (dyn_string_insert): Likewise.
2967 (dyn_string_insert_cstr): Likewise.
2968 (dyn_string_append): Likewise.
2969 (dyn_string_append_cstr): Likewise.
2970 (dyn_string_append_char): Likewise.
2971 (dyn_string_substring): Likewise.
ae7d06ad 2972
eb383413 29732000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 2974
eb383413
L
2975 * cp-demangle.c (demangle_operator_name): Add spaces before
2976 names beginning with a letter: delete, delete[], new, new[],
2977 sizeof.
2978 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 2979
eb383413
L
2980Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
2981
2982 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
2983
2984Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
2985
2986 * cp-demangle.c (stdio.h): File included unconditionaly.
2987 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
2988 * dyn-string.c (stdio.h): File included.
2989 * partition.c (partition_print): No `&' needed to take the address of
2990 a function.
2991
29922000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2993
2994 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 2995
eb383413
L
2996 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
2997
2998 * cp-demangle.c (demangle_char): Change parameter from char to int.
2999 (demangle_expression, demangle_expr_primary): Remove extra
3000 semi-colon in prototype.
3001
3002 * dyn-string.c (dyn_string_append_char): Change parameter from
3003 char to int.
3004
3005 * memcmp.c (memcmp): Constify.
3006
3007 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
3008 __extension__.
3009
3010 * partition.c (elem_compare): Prototype. Don't cast away
3011 const-ness.
3012
3013 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 3014
eb383413
L
30152000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3016
3017 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
3018
3019 * cp-demangle.c: Include demangle.h.
3020 (template_arg_list_new): DeANSIfy.
3021 (cp_demangle): Make static and add prototype.
3022 (operator_code, operators): Constify.
3023 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
3024
30252000-06-05 Alex Samuel <samuel@codesourcery.com>
3026
3027 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
3028 unsigned char.
3029 (demangle_unqualified_name): Likewise.
3030 (demangle_number_literally): Likewise.
3031 (demangle_type): Likewise.
3032 (demangle_substitution): Likewise.
3033 (is_mangled_char): Likewise, for isalnum.
3034
30352000-06-04 Alex Samuel <samuel@codesourcery.com>
3036
3037 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
3038 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
3039 (cp-demangle.o): New dependency.
3040 (dyn-string.o): Likewise.
3041
3042 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
3043
3044 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
3045 demangler.
3046 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
3047 demangling mode.
3048 (gnu_new_abi_symbol_characters): New function.
3049 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
3050 file.
3051 * cp-demangle.c: New file.
ae7d06ad 3052
f03aa80d
AC
3053Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
3054
3055 * floatformat.c: Add name to each floatformat field.
3056
77bfb694
JL
3057Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
3058
3059 * Makefile.in (objalloc.o): Depend on config.h
3060
5c82d20a
ZW
30612000-05-29 Zack Weinberg <zack@wolery.cumb.org>
3062
eb383413 3063 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
3064 if HAVE_STRING_H.
3065 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
3066 * objalloc.c: Include config.h. Include stdlib.h and don't
3067 declare malloc or free if HAVE_STDLIB_H.
3068 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
3069 else declare malloc without prototype. Include string.h if
3070 HAVE_STRING_H, else declare memset without prototype. Don't
3071 include stddef.h.
3072
eb383413
L
30732000-05-23 Mike Stump <mrs@wrs.com>
3074
3075 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 3076 -j3.
eb383413
L
3077
30782000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3079
3080 * xmalloc.c: Include config.h for HAVE_SBRK definition.
3081
30822000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
3083
ae7d06ad 3084 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
3085 probably zero, also eliminate a warning on alpha.
3086
30872000-05-15 David Edelsohn <edelsohn@gnu.org>
3088
3089 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
3090 on $(enable_shared).
3091
30922000-05-10 Jakub Jelinek <jakub@redhat.com>
3093
3094 * config.table: Use mh-sparcpic for sparc*-*-*.
3095
30962000-05-08 Nick Clifton <nickc@cygnus.com>
3097
3098 * Makefile.in (CFILES): Add strncmp.c.
3099 (NEEDED): Add strncmp.
3100
31012000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 3102
eb383413
L
3103 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
3104 Cast the arguments to `islower' to `unsigned char'.
3105 (print_demangler_list): Prototype.
3106
3107Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
3108
3109 * sort.c (UCHAR_MAX): Provide fallback definition.
3110
31112000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
3112
3113 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
3114 SUBDIRS.
3115
eb383413
L
31162000-04-28 Kenneth Block <block@zk3.dec.com>
3117 Jason Merrill <jason@casey.cygnus.com>
3118
ae7d06ad
NC
3119 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
3120 (cplus_demangle_set_style): New function for setting style.
3121 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
3122
31232000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3124
3125 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
3126
3127 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
3128 (libiberty_AC_FUNC_STRNCMP): Invoke.
3129
3130 * strncmp.c: New file.
3131
3132Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
3133
3134 * hashtab.c (htab_expand): Add prototype.
3135 (find_empty_slot_for_expand): Likewise.
3136
31372000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3138
3139 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
3140 match prototype.
3141 (htab_expand): Cast the return value of xcalloc.
3142
31432000-04-24 Mark Mitchell <mark@codesourcery.com>
3144
3145 * hashtab.c (hash_pointer): New function.
3146 (eq_pointer): Likewise.
3147 (htab_hash_pointer): New variable.
3148 (htab_eq_pointer): Likewise.
3149
31502000-04-23 Mark Mitchell <mark@codesourcery.com>
3151
3152 * sort.c (sort_pointers): Fix endianness bugs.
3153
3154 * sort.c: New file.
3155 * Makefile.in (CFILES): Add sort.c
3156 (REQUIRED_OFILES): Add sort.o.
3157 (sort.o): New target.
3158
19be4303
JL
31592000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3160
3161 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
3162 4.3BSD systems.
3163
eb383413
L
3164Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3165
3166 * hashtab.c: Various minor cleanups.
3167 (htab_find_slot_with_hash): INSERT is now enum insert_option.
3168 (htab_find_slot): Likewise.
3169
31702000-04-16 Dave Pitts <dpitts@cozx.com>
3171
3172 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 3173
afe36a78
RH
31742000-04-05 Richard Henderson <rth@cygnus.com>
3175
3176 * splay-tree.c (splay_tree_remove): New.
3177
eb383413
L
31782000-03-30 Mark Mitchell <mark@codesourcery.com>
3179
3180 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
3181 codes.
3182 (htab_find_with_hash): Likewise.
3183 (htab_find_slot_with_hash): Likewise.
ae7d06ad 3184
eb383413
L
31852000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3186
3187 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
3188 unless it will be used. Rearrange loop for better
3189 optimization.
3190 (higher_prime_number): Add static prototype.
3191
b4fe2683
JM
3192Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
3193
3194 * Makefile.in (partition.o): Depend on config.h
3195
31962000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
3197
3198 * hashtab.c (find_empty_slot_for_expand): New function.
3199 (htab_expand): Use it instead of htab_find_slot.
3200 (htab_find_with_hash): Renamed from htab_find; now accepts extra
3201 argument HASH.
3202 (htab_find_slot_with_hash): Likewise for htab_find_slot.
3203 (htab_find): New wrapper function.
3204 (htab_find_slot): Likewise.
3205 (htab_traverse): Pass slot, not entry, to called function.
3206
32072000-03-09 Alex Samuel <samuel@codesourcery.com>
3208
3209 * Makefile.in (CFILES): Add partition.c.
3210 (REQUIRED_OFILES): Add partition.o.
3211 (partition.o): New rule.
3212 * partition.c: New file.
ae7d06ad 3213
b4fe2683
JM
32142000-03-09 Zack Weinberg <zack@wolery.cumb.org>
3215
3216 * hashtab.c (htab_create): Set del_f.
3217 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
3218 Use it.
3219
32202000-03-08 Zack Weinberg <zack@wolery.cumb.org>
3221
3222 * hashtab.c: Remove debugging variables (all_searches,
3223 all_collisions, all_expansions). Delete
3224 all_hash_table_collisions.
3225 (create_hash_table, delete_hash_table, empty_hash_table,
3226 find_hash_table_entry, remove_element_from_hash_table_entry,
3227 clear_hash_table_slot, traverse_hash_table, hash_table_size,
3228 hash_table_elements_number, hash_table_collisions): Rename to:
3229 htab_create, htab_delete, htab_empty, htab_find_slot,
3230 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
3231 htab_elements, htab_collisions.
3232 (htab_find): New function, handles common case where you don't
3233 plan to add or delete an entry.
3234 (htab_expand): Don't create a whole new table, just a new
3235 entry vector.
3236 (htab_find_slot): Simplify logic.
3237
08372f14
ILT
32381999-08-03 Ian Lance Taylor <ian@zembu.com>
3239
3240 * floatformat.c: Add casts to avoid signed/unsigned warnings.
3241 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
3242
3243 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
3244 $(TARGETLIB)n so it works on MSDOS.
3245 (install_to_tooldir): Likewise.
3246
9c8ac5a9
ILT
32471999-07-21 Ian Lance Taylor <ian@zembu.com>
3248
3249 From Mark Elbrecht:
3250 * makefile.dos: Remove; obsolete.
8f36e47c 3251 * configure.bat: Remove; obsolete.
9c8ac5a9 3252
0c0a36a4
ILT
32531999-07-11 Ian Lance Taylor <ian@zembu.com>
3254
3255 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3256 warning.
3257
32582000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3259
3260 * pexecute.c: Conditionally include string.h.
b4fe2683 3261 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
3262
32632000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3264
3265 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
3266 we're using gcc.
3267
3268 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
3269
32701999-12-27 Geoff Keating <geoffk@cygnus.com>
3271
3272 * vasprintf.c (int_vasprintf): Don't re-read the format character
3273 as this mishandles strings like '%%s'.
3274
32751999-12-05 Mark Mitchell <mark@codesourcery.com>
3276
3277 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
3278 rather than struct splay_tree_node.
3279 (splay_tree_insert): Use struct splay_tree_s rather than struct
3280 splay_tree.
3281
3282Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
3283
3284 * hashtab.c (sys/types.h): File included.
3285
32861999-11-22 Jason Merrill <jason@casey.cygnus.com>
3287
3288 * strtoul.c, strtol.c, random.c: Remove advertising clause from
3289 BSD license, pursuant with
3290
3291 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
3292
3293Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
3294
3295 * hashtab.c: Include stdio.h.
3296
3297Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
3298
3299 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
3300
3301Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
3302
3303 * xstrdup (sys/types.h): Include this file.
3304
33051999-10-28 Nathan Sidwell <nathan@acm.org>
3306
3307 * Makefile.in (SUBDIRS): New macro.
3308 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
3309 avoid multiple subdirectory cleaning.
3310 (*-subdir): Use SUBDIRS.
3311
33121999-10-25 Jim Kingdon <http://developer.redhat.com/>
3313
3314 * cplus-dem.c: Move declarations of standard_symbol_characters and
3315 hp_symbol_characters inside #ifdef MAIN to avoid compiler
3316 warnings.
3317
33181999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
3319
3320 * hashtab.c (find_hash_table_entry): When returning a
3321 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
3322 (clear_hash_table_slot): New function which deletes an entry
3323 by its position in the table, not its value.
3324 (traverse_hash_table): New function which calls a hook
3325 function for every live entry in the table.
3326
33271999-10-19 Mark Mitchell <mark@codesourcery.com>
3328
3329 * cplus-dem.c (INTBUF_SIZE): New macro.
3330 (string_append_template_idx): New function.
3331 (demangle_expression): Likewise.
3332 (demangle_integral_value): Use it.
3333 (demangle_real_value): New function, split out from ...
3334 (demangle_template_value_parm): ... here. Use
3335 string_append_template_idx. Use demangle_real_value.
3336 (demangle_template): Use string_append_template_idx.
3337 (demangle_qualified): Use consume_count_with_underscores.
3338 (get_count): Tweak formatting.
3339 (do_type): Use string_append_template_idx.
b4fe2683 3340
0c0a36a4
ILT
33411999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3342
3343 * calloc.c: Add a public domain notice.
3344
3345Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
3346
3347 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
3348
3349Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
3350
3351 * Makefile.in (CFILES): Add hashtab.c
3352 (REQUIRED_OFILES): Add hashtab.o
3353 (hashtab.o): Add dependencies.
3354 * hashtab.c: New file
3355
3356Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
3357
3358 * basename.c (DIR_SEPARATOR): New macro.
3359 (DIR_SEPARATOR_2): Likewise.
3360 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
3361 (IS_DIR_SEPARATOR): Likewise.
3362 (main): Handle MSDOS style pathname.
3363
33641999-10-11 Mark Mitchell <mark@codesourcery.com>
3365
3366 * cplus-dem.c (do_type): Handle pointer to member types whose
3367 enclosing classes have namespace scope.
3368
3369Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
3370
3371 * config.table: Provide a backup shell for executing move-if-change.
3372
33731999-10-02 Mark Mitchell <mark@codesourcery.com>
3374
3375 * xmalloc.c (xmalloc): Fix spelling error.
3376 (xcalloc, xrealloc): Likewise.
3377
33781999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3379
3380 * cplus-dem.c (fancy_abort, demangle_integral_value,
3381 demangle_arm_hp_template, recursively_demangle,
3382 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
3383 (program_name, program_version, fatal): Constify a char*.
3384 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
3385 (main): Call return, not exit.
3386
33871999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3388
3389 * choose-temp.c: Remove obsolete comment about gcc.
3390 (make_temp_file): Constify a char*.
3391
3392Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3393
3394 * xmemdup.c: Include sys/types.h.
3395
33961999-09-07 Jeff Garzik <jgarzik@pobox.com>
3397
3398 * xmemdup.c: New xmemdup function.
3399 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
3400
3401Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
3402
b4fe2683 3403 * config.table: Add openedition target.
0c0a36a4
ILT
3404 * config/mh-openedition: New file.
3405
3406Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
3407
3408 * pexecute.c (pexecute): Fill in temp_base when needed.
3409
34101999-08-31 Richard Henderson <rth@cygnus.com>
3411
3412 * getpwd.c: Check HAVE_GETCWD before defining it away.
3413
34141999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3415
3416 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
3417 (REQUIRED_OFILES): Add getpwd.o.
3418 (getpwd.o): Add target.
3419
3420 * configure.in (AC_PREREQ): Bump to 2.13.
3421 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
3422
3423 * getpwd.c: New file, moved here from gcc.
3424
34251999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3426
3427 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
3428 comparing against a signed quantity.
3429 (arm_special): Likewise.
3430 (demangle_fund_type): Likewise.
3431 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 3432 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
3433 (main): Constify variable `valid_symbols'.
3434
3435Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
3436
3437 * strtoul.c (strtoul): Add parentheses around && within ||.
3438
3439Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
3440
3441 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3442 libdir, libsubdir and tooldir.
3443
34441999-08-01 Mark Mitchell <mark@codesourcery.com>
3445
3446 * splay-tree.c (splay_tree_insert): Return the new node.
3447
35ca97ea
RH
34481999-07-14 Richard Henderson <rth@cygnus.com>
3449
b4fe2683 3450 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
3451 prototyping directly.
3452 * choose-temp.c: Conditionally include string.h.
3453
0c0a36a4
ILT
34541999-07-12 Jason Merrill <jason@yorick.cygnus.com>
3455
3456 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
3457
af32ff69
ILT
34581999-07-11 Ian Lance Taylor <ian@zembu.com>
3459
3460 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3461 warning.
3462
0c0a36a4
ILT
34631999-07-07 Jason Merrill <jason@yorick.cygnus.com>
3464
3465 * Makefile.in (needed-list): Only include stuff we actually need
3466 for libstdc++.
3467
34681999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3469
3470 * configure.in (checkfuncs): Add gettimeofday.
3471 * config.in, configure: Regenerated.
3472
3473Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
3474
3475 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
3476 the test fails.
3477 * configure: Regenerate.
3478
34791999-06-10 Mike Stump <mrs@wrs.com>
3480
3481 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
3482 parallel builds.
3483
34841999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3485
3486 * putenv.c: Include ansidecl.h to define `const'.
3487 * setenv.c: Likewise.
3488
3489Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
3490
3491 * Makefile.in (CFILES): Add putenv.c and setenv.c.
3492 * configure.in (funcs): Add putenv and setenv.
3493 (AC_CHECK_FUNCS): Check for putenv and setenv.
3494 * configure: Rebuilt.
3495 * putenv.c setenv.c: New files.
3496
3497 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
3498 bytes of space using malloc.
3499
3500Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
3501
3502 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
3503 the *mangled pointer beyond the end of the string. Clean up code to
3504 match prevailing coding style.
3505
35061999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3507
3508 * tmpnam.c (L_tmpnam): Fix typo.
3509
3510Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
3511
3512 * cplus-dem.c (standard_symbol_characters): Renamed from
3513 standard_symbol_alphabet. No longer modify TABLE.
3514 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
3515 modify TABLE.
3516 (main): Corresponding changes. Use strchr to determine if a
3517 character is valid.
3518
e9868447
JB
35191999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
3520
3521 * cplus-dem.c (main): Use table lookup to distinguish identifier
3522 characters from non-identifier characters.
3523 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
3524
33fbbfbc
RH
3525Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
3526
3527 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
3528 * getruntime.c: Only attempt to include sys/resource.h and
3529 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
3530 are defined.
3531
0c0a36a4
ILT
3532Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
3533
3534 * configure.in (alloca detection): Handle alloca directly for interix.
3535 * configure: Rebuilt.
3536
3537Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
3538
3539 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
3540
252b5132
RH
35411999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
3542
3543 Fix from Dale Hawkins:
b4fe2683 3544 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
3545 reallocated properly if we use it again.
3546
3547 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
3548 stricter about syntax. Always null-terminate string.
3549
c1687039
ILT
3550Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
3551
3552 * configure.in (checkfuncs): Check for sbrk.
3553 * config.in: Rebuilt.
3554 * configure: Likewise.
3555 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
3556
0c0a36a4
ILT
35571999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
3558
3559 Fix from Marcus Daniels:
3560 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
3561 identifier looking for another underscore.
3562
3563Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
3564
3565 * pexecute.c: Change all references to __UWIN__ to _UWIN.
3566 * xmalloc.c: Likewise.
3567 (xcalloc): UWIN has sbrk.
3568 (xrealloc): Fix guard macro.
3569
252b5132
RH
35701999-04-11 Richard Henderson <rth@cygnus.com>
3571
3572 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
3573 or <alloca.h>.
3574 * clock.c (GNU_HZ): New definition.
3575 (clock): Use it.
3576 * getruntime.c: Likewise.
3577
3578 * config.table: Use mh-beos.
3579 * config/mh-beos: New file.
3580
0c0a36a4
ILT
35811999-04-11 Mark Mitchell <mark@codesourcery.com>
3582
3583 * cplus-dem.c (demangle_template_value_parm): Handle
3584 pointers-to-members.
3585 (do_type): Handle template parameters as qualifiers.
3586
252b5132
RH
35871999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
3588
3589 * cplus-dem.c: Attempt to handle overflows in counts with some
3590 semblance of grace.
3591 (consume_count): Detect overflows. Return -1 to indicate errors,
3592 instead of zero.
3593 (demangle_template_value_parm, demangle_template): Handle change
3594 to consume_count's return convention.
3595
0c0a36a4
ILT
35961999-04-05 Tom Tromey <tromey@cygnus.com>
3597
3598 * testsuite/regress-demangle: New file.
3599 * testsuite/demangle-expected: New file.
252b5132 3600
0c0a36a4
ILT
3601 * Makefile.in (all, check, installcheck, info, install-info,
3602 clean-info, dvi, install, etags, tags, mostlyclean, clean,
3603 distclean, maintainer-clean, realclean): Depend on corresponding
3604 `-subdir' target.
3605 (all-subdir check-subdir installcheck-subdir info-subdir
3606 install-info-subdir clean-info-subdir dvi-subdir
3607 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
3608 distclean-subdir maintainer-clean-subdir): New target.
3609 * testsuite/Makefile.in: New file.
3610 * configure: Rebuilt.
3611 * configure.in: Create testsuite/Makefile.
252b5132
RH
3612
36131999-04-02 Mark Mitchell <mark@codesourcery.com>
3614
3615 * splay-tree.h (splay_tree_compare_pointers): Define.
3616
36171999-03-30 Mark Mitchell <mark@codesourcery.com>
3618
3619 * splay-tree.c (splay_tree_compare_ints): Define.
3620
36211999-03-30 Tom Tromey <tromey@cygnus.com>
3622
3623 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
3624 don't advance input pointer.
3625 (demangle_class_name): If consume_count didn't find a count, do
3626 nothing. Don't bother with `strlen' sanity check; consume_count
3627 does it for us.
3628
36291999-03-16 Stan Shebs <shebs@andros.cygnus.com>
3630
3631 From Art Haas <ahaas@neosoft.com>:
3632 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
3633 when doing arm or hp style.
3634 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 3635
252b5132
RH
3636Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
3637
3638 * pexecute.c (__CYGWIN32__): Rename to
3639 (__CYGWIN__): this.
3640 * xmalloc.c: Likewise.
3641
3642 Changes to support i386-pc-uwin.
3643 * configure.in (*-*-uwin*): Workaround for vfork bug.
3644 * configure: Regenerate.
3645 * pexecute.c (pexecute): Be like standard Unix.
3646 (pwait): Likewise.
3647 * xmalloc.c (first_break): Define.
3648 (xmalloc_set_program_name): Use.
3649 (xmalloc): Use.
3650
3651Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3652
3653 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
3654
3655Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
3656
3657 * config.table: Check cygwin*, not cygwin32*.
3658
3659Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
3660
3661 * Makefile.in: Change mkstemp -> mkstemps.
3662
3663Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
3664
3665 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
3666 * configure.in (funcs): Check for and conditionally add mkstemps to
3667 the list of functions libiberty will provide.
3668 * configure: Rebuilt.
b4fe2683 3669
252b5132
RH
3670Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
3671
b4fe2683 3672 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
3673 platforms that don't have HZ.
3674 * getruntime.c (HZ): Likewise.
3675
3676Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
3677
3678 * Makefile.in (xstrdup.o): Depend on config.h.
3679
3680Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
3681
3682 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
3683 freeing it.
3684
3685Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3686
3687 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
3688
3689Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3690
3691 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
3692 splay-tree.o.
3693
36941999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
3695
3696 * configure.in: Require autoconf 2.12.1 or higher.
3697
36981998-12-30 Michael Meissner <meissner@cygnus.com>
3699
3700 * random.c (NULL): Don't redefine NULL if it is already defined.
3701
3702Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3703
3704 * argv.c (buildargv): Cast the result of alloca in assignment.
3705
3706 * choose-temp.c: Include stdlib.h.
3707
3708 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
3709 (snarf_numeric_literal): Constify first parameter.
3710 (code_for_qualifier): Avoid a gcc extension, make the parameter an
3711 int, not a char.
252b5132
RH
3712 (demangle_qualifier): Likewise.
3713 (demangle_signature): Cast the argument of a ctype function to
3714 unsigned char.
3715 (arm_pt): Add parens around assignment used as truth value.
3716 (demangle_arm_hp_template): Constify variable `args'.
3717 (do_hpacc_template_const_value): Cast the argument of a ctype
3718 function to unsigned char.
3719 (do_hpacc_template_literal): Remove unused variable `i'.
3720 (snarf_numeric_literal): Constify parameter `args'.
3721 Cast the argument of a ctype function to unsigned char.
3722
3723 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 3724 avoid ambiguous `else'.
252b5132
RH
3725
3726 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
3727 `cstart' and `cend' to unsigned char. Cast the argument of macro
3728 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
3729
3730 * objalloc.c (free): Add prototype.
3731
3732Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
3733
3734 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
3735
3736Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
3737
3738 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 3739 doesn't exist.
252b5132 3740 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 3741
252b5132
RH
3742Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
3743
3744 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
3745 bumping the pointer we read from. Also prepend these codes,
3746 as we do in other places.
3747
37481998-12-18 Nick Clifton <nickc@cygnus.com>
3749
3750 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
3751 'const char *' in order to match its usage when calling siblings.
3752 (snarf_numeric_literal): Make first arg 'const char **' in order
3753 to match usage.
3754
3755Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3756
3757 * choose-temp.c: Don't check IN_GCC anymore.
3758
3759 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
3760 * memchr.c (memchr): Likewise.
3761 * memcpy.c (memcpy): Likewise.
3762 * memmove.c (memmove): Likewise.
3763
3764 * mkstemp.c: Don't check IN_GCC anymore.
3765 * pexecute.c: Likewise.
3766 * splay-tree.c: Likewise.
3767
3768 * strchr.c (strchr): Use `const', not `CONST'.
3769 * strrchr.c (strrchr): Likewise.
3770 * strtol.c (strtol): Likewise.
3771 * strtoul.c (strtoul): Likewise.
3772
3773Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
3774 Elena Zannoni <ezannoni@cygnus.com>
3775 Stan Shebs <shebs@cygnus.com>
3776 Edith Epstein <eepstein@cygnus.com>
3777 Andres MacLeod <amacleod@cygnus.com>
3778 Satish Pai <pai@apollo.hp.com>
3779
3780 * HP aCC demangling support.
3781 * cplus-dem.c
3782 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
3783 demangling correctly when -edg specified; set the demangling style
3784 when user specifies 'edg'. Set strip_underscore to
3785 prepends_underscore, if not HPUXHPPA. Set
3786 current_demangling_style to hp_demangling if HPUXHPPA. Set
3787 current demangling style correctly if the switch is hp. Read
3788 label correctly also in the HP style case.
252b5132 3789 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 3790 function.
252b5132 3791 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 3792 style for this case is the same as ARM.
252b5132
RH
3793 (demangle_args): handle EDG_DEMANGLING style; support HP style.
3794 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
3795 demangle_arm_pt.); check and set value of temp_start field in
3796 multiple places. Also, when ceching for end of template args,
3797 check to see if at end of static member of template class.
252b5132 3798 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 3799 include template args in string defining class.
252b5132
RH
3800 (demangle_class_name): use demangel_arm_hp_template.
3801 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
3802 HP_DEMANGLING and currently point at an 'X' in the mangled name.
3803 Handle EDG_DEMANGLING style. Handle constructor and destructor
3804 ops for HP style.
252b5132 3805 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
3806 styles. global destructor and constructor for HP style are same
3807 as for ARM style. Same for local variables.
252b5132
RH
3808 (demangle_qualified): handle EDG_DEMANGLING style.
3809 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
3810 cases '1' - '9' : initialize the temp_start field to -1 and handle
3811 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
3812 and AUTO_DEMANGLING styles. If expecting a function and managed
3813 to demangle the funct args, then handle the LUCID_DEMANGLING,
3814 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
3815 class name after "Lnnn_ in HP style case. HP style too needs to
3816 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 3817 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 3818 value param for HP/aCC.
252b5132 3819 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 3820 literal parameter for HP aCC.
252b5132
RH
3821 (recursively_demangle): new function
3822 (snarf_numeric_literal): new function.
3823 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 3824 to message.
252b5132
RH
3825
3826Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
3827
3828 * pexecute.c: Remove obsolete ifdefed cygwin code.
3829
3830Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3831
3832 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
3833 * cplus-dem.c: Likewise. Conform to libiberty.h.
3834 * pexecute.c: Likewise.
3835 * splay-tree.c: Likewise.
3836
38371998-11-25 Mike Stump <mrs@wrs.com>
3838
3839 * Makefile.in (splay-tree.o): Add config.h dependency.
3840
3841Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3842
3843 * configure.in: Use AC_PREREQ(2.12.1).
3844
38451998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
3846
b4fe2683 3847 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
3848
3849Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
3850
3851 * mpw.c (mpw_access): Add missing parens.
3852
3853Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3854
3855 * configure.in: Call AC_HEADER_SYS_WAIT.
3856
3857 * pexecute.c: Include sys/wait.h when !IN_GCC.
3858
3859Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
3860
3861 * pexecute.c: revert back to checking old Cygwin
3862 preprocessor symbol until some time has passed.
3863
3864Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
3865
3866 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
3867 since it will now support similar constructs.
3868
3869Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3870
3871 * configure.in: Check for calloc.
3872
3873 * calloc.c: New file.
3874
3875 * xmalloc.c (xcalloc): New function.
3876
3877Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
3878
3879 *cplus-dem.c (demangle_prefix): Use the last "__"
3880 in the mangled name when looking for the signature. This allows
3881 template names to begin with "__".
3882
38831998-11-08 Mark Mitchell <mark@markmitchell.com>
3884
3885 * cplus-dem.c (type_kind_t): Add tk_reference.
3886 (demangle_template_value_parm): Handle it.
3887 (do_type): Use it for references, instead of tk_pointer.
3888
3889 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
3890 not internal_cplus_demangle.
3891
3892Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3893
3894 * choose-temp.c: Don't include gansidecl.h.
3895 * mkstemp.c: Likewise.
3896 * pexecute.c: Likewise.
3897
3898Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
3899
b4fe2683
JM
3900 * configure.in: detect cygwin* instead of cygwin32*
3901 * configure: regenerate
252b5132
RH
3902
3903Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3904
3905 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
3906 whether to include config.h. Possibly include unistd.h in the
3907 !IN_GCC case. Define VFORK_STRING as a printable function call
3908 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
3909 defined, include vfork.h. If VMS is defined, define vfork()
3910 appropriately. Remove vfork check on USG, we're using autoconf.
3911 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
3912 locally what string to use.
252b5132
RH
3913
39141998-10-26 Mark Mitchell <mark@markmitchell.com>
3915
3916 * splay-tree.c: Tweak include directives to make sure declarations of
3917 xmalloc and free are available.
3918
39191998-10-25 Mark Mitchell <mark@markmitchell.com>
3920
3921 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
3922 anonymous namespaces.
3923
39241998-10-23 Mark Mitchell <mark@markmitchell.com>
3925
3926 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
3927 with type_quals.
3928 (TYPE_UNQUALIFIED): New macro.
3929 (TYPE_QUAL_CONST): Likewise.
3930 (TYPE_QUAL_VOLATILE): Likewise.
3931 (TYPE_QUAL_RESTRICT): Likewise.
3932 (code_for_qualifier): New function.
3933 (qualifier_string): Likewise.
3934 (demangle_qualifier): Likewise.
3935 (internal_cplus_demangle): Use them.
3936 (demangle_signature): Likewise.
3937 (demangle_template_value_parm): Likewise.
3938 (do_type): Likewise.
3939 (demangle_fund_type)): Likewise.
3940
3941Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3942
3943 * splay-tree.c (splay_tree_foreach_helper): Make definition static
3944 to match prototype.
3945
39461998-10-21 Mark Mitchell <mark@markmitchell.com>
3947
3948 * splay-tree.c: New file.
3949 * Makefile.in (CFILES): Add it.
3950 (REQUIRED_OFILES): Likewise.
3951 (splay-tree.o): Add dependencies.
3952
3953Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3954
3955 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
3956 range of 'K' index.
3957
3958Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3959
3960 * choose-temp.c: Prototype mkstemps() when IN_GCC.
3961
3962 * cplus-dem.c (consume_count): Cast argument of ctype macro to
3963 `unsigned char'.
3964 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
3965 comparing against one.
3966 (cplus_mangle_opname): Likewise.
3967 (demangle_integral_value): Cast argument of ctype macro to
3968 `unsigned char'.
3969 (demangle_template_value_parm): Likewise.
3970 (demangle_template): Initialize variable `bindex'. Cast the
3971 result of `strlen' to (int) when comparing against one. Remove
3972 unused variable `start_of_value_parm'.
3973 (demangle_class_name): Cast the result of `strlen' to (int) when
3974 comparing against one.
3975 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
3976 (gnu_special): Likewise. Cast the result of `strlen' to (int)
3977 when comparing against one.
3978 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
3979 (get_count): Likewise.
3980 (do_type): Likewise. Cast the result of `strlen' to (int) when
3981 comparing against one.
3982 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
3983 (demangle_function_name): Cast the result of `strlen' to (int)
3984 when comparing against one.
3985
3986 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
3987 comparing against one.
3988
3989Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
3990
b4fe2683
JM
3991 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
3992 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
3993 * config.in, configure: Rebuilt.
252b5132
RH
3994
3995 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
3996 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
3997 * config.in, configure: Rebuilt.
3998
3999Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
4000
b4fe2683 4001 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
4002
4003Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
4004
4005 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
4006
4007Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
4008
4009 * Merge egcs & devo libiberty.
4010