]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
* simplify.c: Fix a comment typo.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
35f4c956 12005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2
3 * Makefile.in (CFILES): Add fopen_unlocked.c.
4 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
5 Regenerate dependencies.
6
7 * configure.ac: Check for stdio_ext.h and __fsetlocking.
8
9 * fopen_unlocked.c: New file.
10
11 * functions.texi, configure, config.in: Regenerate.
12
0e10155a 132005-04-04 Ian Lance Taylor <ian@airs.com>
14
15 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
16 declaration before statement.
17
8e1547da 182005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19
943c390a 20 * bcmp.c: Fix warnings and implement using memcmp.
21 * bcopy.c: Fix warnings.
22 * bzero.c: Fix warnings and implement using memset.
23
8e1547da 24 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
25 -Wstrict-prototypes.
26 * configure, config.in: Regenerate.
27
28 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
29 warnings and reconcile interfaces with relevant standards.
30
d24fd8a0 312005-04-02 Ian Lance Taylor <ian@airs.com>
32
33 * cp-demangle.c: Update copyright.
34
f2ccbede 352005-03-31 Joseph S. Myers <joseph@codesourcery.com>
36
37 * gettimeofday.c: Add "Supplemental" to @deftypefn.
38 * functions.texi: Regenerate.
39
22683dca 402005-03-28 Ian Lance Taylor <ian@airs.com>
41
42 * pex-common.c: New file.
43 * pex-one.c: New file.
44 * pexecute.c: New file.
45 * pex-common.h: Include <stdio.h>.
46 (struct pex_obj): Define.
47 (struct pex_funcs): Define.
48 (pex_init_common): Declare.
49 * pex-unix.c: Rewrite.
50 * pex-win32.c: Rewrite.
51 * pex-djgpp.c: Rewrite.
52 * pex-msdos.c: Rewrite.
53 * testsuite/text-pexecute.c: New file.
54 * pexecute.txh: Rewrite.
55 * configure.ac: Check for wait3 and wait4. Set CHECK to
56 really-check rather than check-cplus-dem.
57 * functions.texi: Rebuild.
58 * Makefile.in: Rebuild dependencies.
59 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
60 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
61 * testsuite/Makefile.in (really-check): New target.
62 (check-pexecute, test-pexecute): New targets.
63 * configure: Rebuild.
64
0bd5e4e1 652005-03-28 Mark Kettenis <kettenis@gnu.org>
66
67 * unlink-if-ordinary.c: Include <sys/types.h>.
68
320d4d0a 692005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
70
71 Convert libiberty to use ISO C prototype style 7/n.
72 * regex.c (PARAMS): Remove definition.
73 (PREFIX): Unconditionaly define using ISO C ## operator.
74 (init_syntax_once, extract_number, extract_number_and_incr,
75 print_fastmap, print_partial_compiled_pattern,
76 print_compiled_pattern, print_double_string, printchar,
77 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
78 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
79 at_begline_loc_p, at_endline_p, group_in_compile_stack,
80 insert_space, wcs_compile_range, byte_compile_range,
81 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
82 re_set_registers, re_search, re_search_2, re_search_3, re_match,
83 re_match_2, count_mbs_length, wcs_re_match_2_internal,
84 byte_re_match_2_internal, group_match_null_string_p,
85 alt_match_null_string_p, common_op_match_null_string_p,
86 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
87 regexec, regerror, regfree): Use ISO C prototype style.
88 * partition.c: (elem_compare): Likewise.
89 * cp-demangle.c (print_usage): Likewise.
90
f8d9d6a0 912005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
92
93 Convert libiberty to use ISO C prototype style 5/n.
94 * random.c (srandom, initstate, setstate, random): Use ISO C
95 prototypes.
96 * putenv.c (putenv): Likewise.
97 * physmem.c (physmem_available, physmem_total, main): Likewise.
98 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
99 * pex-unix.c (pexecute, pwait): Likewise.
100 * pex-msdos.c (pexecute, pwait): Likewise.
101 * pex-djgpp.c (pexecute, pwait): Likewise.
102 * partition.c (partition_new, partition_delete, partition_union)
103 (elem_compare, partition_print): Likewise.
104 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
105 _obstack_allocated_p, _obstack_free, obstack_free,
106 _obstack_memory_used, print_and_abort, obstack_next_free,
107 obstack_object_size, obstack_base): Likewise. Remove codes
108 predicated on !defined(__STDC__).
109 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
110 objalloc_free_block): Use ISO C prototypes.
111 * mkstemps.c (mkstemps): Likewise.
112 * memset.c (memset): Likewise.
113 * mempcpy.c (mempcpy): Likewise.
114 * rename.c (rename): Likewise.
115 * rindex.c (rindex): Likewise.
116 * setenv.c (setenv, unsetenv): Likewise.
117 * sigsetmask.c (sigsetmask): Likewise.
118 * snprintf.c (snprintf): Likewise.
119 * sort.c (sort_pointers, xmalloc): Likewise.
120 * spaces.c (spaces): Likewise.
121 * splay-tree.c (splay_tree_delete_helper,
122 splay_tree_splay_helper, splay_tree_splay,
123 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
124 splay_tree_new, splay_tree_xmalloc_allocate,
125 splay_tree_new_with_allocator, splay_tree_delete,
126 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
127 splay_tree_max, splay_tree_min, splay_tree_predecessor,
128 splay_tree_successor, splay_tree_foreach,
129 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
130 * stpcpy.c (stpcpy): Likewise.
131 * stpncpy.c (stpncpy): Likewise.
132 * strcasecmp.c (strcasecmp): Likewise.
133 * strchr.c (strchr): Likewise.
134 * strdup.c (strdup): Likewise.
135
cd72df1f 1362005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
137
138 Convert libiberty to use ISO C prototype style 6/n.
139 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
140 strtoerrno, main): Use ISO C prototype style.
141 * strncasecmp.c (strncasecmp): Likewise.
142 * strncmp.c (strncmp): Likewise.
143 * strndup.c (strndup): Likewise.
144 * strrchr.c (strrchr): Likewise.
145 * strsignal.c (init_signal_tables, signo_max, strsignal,
146 strsigno, strtosigno, psignal, main): Likewise.
147 * strstr.c (strstr): Likewise.
148 * strtod.c (strtod, atof): Likewise.
149 * strtol.c (strtol): Likewise.
150 * strtoul.c (strtoul): Likewise.
151 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
152 ternary_recursivesearch): Likewise.
153 * tmpnam.c (tmpnam): Likewise.
154 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
155 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
156 * vfork.c (vfork): Likewise.
157 * vfprintf.c (vfprintf): Likewise.
158 * vprintf.c (vprintf): Likewise.
159 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
160 * vsprintf.c (vsprintf): Likewise.
161 * waitpid.c (waitpid): Likewise.
162 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
163 * xexit.c (xexit): Likewise.
164 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
165 xcalloc, xrealloc): Likewise.
166 * xmemdup.c (xmemdup): Likewise.
167 * xstrdup.c (xstrdup): Likewise.
168 * xstrerror.c (xstrerror): Likewise.
169 * xstrndup.c (xstrndup): Likewise.
170
53f5a998 1712005-03-27 Andreas Jaeger <aj@suse.de>
172
173 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
174 flags.
175 * configure: Regenerated.
176
84565a75 1772005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
178
179 * getopt1.c (getopt_long_only): Fix thinko.
180
8858115e 1812005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
182
183 Convert libiberty to use ISO C prototype style 4/n.
53f5a998 184 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
185 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
186 htab_create_alloc, htab_set_functions_ex, htab_create,
187 htab_try_create, htab_delete, htab_empty,
188 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
189 htab_find, htab_find_slot_with_hash, htab_find_slot,
190 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
191 htab_traverse_noresize, htab_traverse, htab_collisions,
8858115e 192 htab_hash_string, iterative_hash): Use ISO C prototype.
193 * hex.c (hex_init): Likewise.
194 * index.c (index): Likewise.
53f5a998 195 * insque.c (insque, remque): Likewise.
8858115e 196 * lbasename.c (lbasename): Likewise.
197 * lrealpath.c (lrealpath): Likewise.
53f5a998 198 * make-relative-prefix.c (save_string, split_directories,
8858115e 199 free_split_directories, make_relative_prefix): Likewise.
53f5a998 200 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
201 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
8858115e 202 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
203 * memchr.c (memchr): Likewise.
204 * memcpy.c (memcpy): Likewise.
205 * memmove.c (memmove): Likewise.
206 * gettimeofday.c (gettimeofday): Likewise.
207 * getruntime.c (get_run_time): Likewise.
208 * getpwd.c (getpwd, getpwd): Likewise.
209 * getpagesize.c (getpagesize): Likewise.
210 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
53f5a998 211 * getopt.c (my_index, exchange, _getopt_initialize,
8858115e 212 _getopt_internal, getopt, main): Likewise.
213 * getcwd.c (getcwd): Likewise.
214 * fnmatch.c (fnmatch): Likewise.
53f5a998 215 * floatformat.c (floatformat_always_valid,
216 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
217 put_field, floatformat_from_double, floatformat_is_valid,
8858115e 218 ieee_test, main): Likewise.
53f5a998 219 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
220 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
221 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
222 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
223 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
224 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
225 fibheap_link, fibheap_cut, fibheap_cascading_cut,
8858115e 226 fibnode_insert_after, fibnode_remove): Likewise.
227 * ffs.c (ffs): Likewise.
228 * fdmatch.c (fdmatch): Likewise.
53f5a998 229 * dyn-string.c (dyn_string_init, dyn_string_new,
230 dyn_string_delete, dyn_string_release, dyn_string_resize,
231 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
232 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
233 dyn_string_insert_cstr, dyn_string_insert_char,
234 dyn_string_append, dyn_string_append_cstr,
8858115e 235 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
53f5a998 236 Likewise.
8858115e 237
79e4e63f 2382005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
239
240 Convert libiberty to use ISO C prototype style 3/n.
53f5a998 241 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
242 consume_count_with_underscores, code_for_qualifier,
243 qualifier_string, demangle_qualifier, cplus_demangle_opname,
244 cplus_mangle_opname, cplus_demangle_set_style,
245 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
79e4e63f 246 ada_demangle, internal_cplus_demangle, squangle_mop_up,
53f5a998 247 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
248 delete_work_stuff, mop_up, demangle_signature,
249 demangle_method_args, demangle_template_template_parm,
250 demangle_expression, demangle_integral_value,
251 demangle_real_value, demangle_template_value_parm,
252 demangle_template, arm_pt, demangle_arm_hp_template,
253 demangle_class_name, demangle_class, iterate_demangle_function,
254 demangle_prefix, gnu_special, recursively_demangle, arm_special,
255 demangle_qualified, get_count, do_type, demangle_fund_type,
256 do_hpacc_template_const_value, do_hpacc_template_literal,
257 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
258 register_Btype, remember_Btype, forget_B_and_K_types,
259 forget_types, demangle_args, demangle_nested_args,
260 demangle_function_name, string_need, string_delete, string_init,
261 string_clear, string_empty, string_append, string_appends,
79e4e63f 262 string_appendn, string_prepend, string_prepends, string_prependn,
263 string_append_template_idx): Use ISO C prootype style.
264 * cp-demint.c (cplus_demangle_fill_component,
53f5a998 265 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
79e4e63f 266 cplus_demangle_v3_components): Likewise.
267
d94aaf66 2682005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
269
270 Convert libiberty to use ISO C prototype style 2/n.
271 * cp-demangle.h: Remove uses of PARAMS.
272 * cp-demangle.c: Likewise.
53f5a998 273 (d_dump, cplus_demangle_fill_name,
274 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
275 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
276 d_make_builtin_type, d_make_operator, d_make_extended_operator,
277 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
278 cplus_demangle_mangled_name, has_return_type,
279 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
280 d_prefix, d_unqualified_name, d_source_name, d_number,
281 d_identifier, d_operator_name, d_special_name, d_call_offset,
282 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
283 d_function_type, d_bare_function_type, d_class_enum_type,
284 d_array_type, d_pointer_to_member_type, d_template_param,
285 d_template_args, d_template_arg, d_expression, d_expr_primary,
286 d_local_name, d_discriminator, d_add_substitution,
287 d_substitution, d_print_resize, d_print_append_char,
288 d_print_append_buffer, d_print_error, cplus_demangle_print,
289 d_print_comp, d_print_java_identifier, d_print_mod_list,
290 d_print_mod, d_print_function_type, d_print_array_type,
291 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
292 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
d94aaf66 293 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
53f5a998 294 print_usage, main):
d94aaf66 295
2962005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
297
298 Convert libiberty to ISO C prototype style 1/n.
299 * _doprnt.c: Remove conditional #include <varargs.h> on
300 ANSI_PROTOTYPES as the latter is always assumed.
301 (_doprnt, checkit, main): Use ISO C prototype.
302 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
303 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
53f5a998 304 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
d94aaf66 305 * atexit.c (atexit): Likewise
306 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
53f5a998 307 (asprintf): Use ISO C prototype.
d94aaf66 308 * basename.c (basename): Likewise
309 * bcmp.c (bcmp): Likewise.
310 * bcopy.c (bcopy): Likewise.
311 * bzero.c (bzero): Likewise.
312 * bsearch.c (bsearch): Likewise. Improve const-correctness.
313 * choose-temp.c (choose_temp_base): Likewise.
314 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
315 (calloc): Use ISO C prototype.
316 * clock.c (clock): Likewise.
317 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
53f5a998 318 (vconcat_length, vconcat_copy, concat_length, concat_copy,
d94aaf66 319 concat_copy2, concat, reconcat, main): Use ISO C prototype.
320 * copysign.c (copysign): Likewise.
321
a2ef32b0 3222005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
323
324 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
325 (REQUIRED_OFILES): Add xstrndup.o.
326 (CONFIGURED_OFILES): Add strndup.o.
327 Regenerate dependencies.
328
329 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
330
331 * strndup.c, xstrndup.c: New.
332
333 * config.in, configure, functions.texi: Regenerate.
334
1cf8f41f 3352005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
336
337 * xmemdup.c, xstrdup.c: Expose the tail call.
338
5a24a79a 3392005-03-09 Mark Mitchell <mark@codesourcery.com>
340
341 * configure.ac (funcs): Add gettimeofday.
342 * configure: Regenerated.
343 * gettimeofday.c: New file.
344 * Makefile.in (CFILES): Add gettimeofday.
345 (CONFIGURED_OFILES): Add gettimeofday.o.
346 (./gettimeofday.o): New rule.
347
b3165cc0 3482005-03-09 Ian Lance Taylor <ian@airs.com>
349
350 * pex-os2.c: Remove.
351 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
352 * Makefile.in (CFILES): Remove pex-os2.c.
353 (CONFIGURED_OFILES): Remove pex-os2.o.
354 (pex-os2.o): Remove target.
355 * configure: Rebuild.
356
376d874c 3572005-03-07 Ian Lance Taylor <ian@airs.com>
358
359 * mpw-config.in: Remove.
360 * mpw-make.sed: Remove.
361 * mpw.c: Remove.
362 * Makefile.in (CFILES): Remove pex-mpw.c.
363 (CONFIGURED_OFILES): Remove pex-mpw.o.
364 (mpw.o, pex-mpw.o): Remove targets.
365 * maint-tool (undoc): Remove reference to mpw.c.
366
40aad480 3672005-03-06 DJ Delorie <dj@redhat.com>
368
369 * configure.ac (target_header_dir): vfork is a stub under djgpp.
370 * configure: Regenerated.
371
4e0e2181 3722005-03-01 Jan Beulich <jbeulich@novell.com>
373
374 * Makefile.in (CFILES): Add unlink-if-ordinary.c
375 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
376 Add dependencies and rule for unlink-if-ordinary.o.
377 * unlink-if-ordinary.c: New.
378
9d3fdb75 3792005-03-01 Ben Elliston <bje@au.ibm.com>
380
381 * hashtab.c (htab_find_slot_with_hash): Make function
382 documentation clearer.
383
d9de0b06 3842005-02-13 Jason Merrill <jason@redhat.com>
385
386 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
387 arguments.
388
4fed4555 3892005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
390
391 * hex.c (hex_value): Group 'unsigned int' together to get correct
392 markup.
393 * functions.texi: Regenerated.
53f5a998 394
a1ba1d98 3952004-12-27 H.J. Lu <hongjiu.lu@intel.com>
396
397 * Makefile.in: Undo to 2004-12-17.
398 * aclocal.m4: Likewise.
399 * config.table: Likewise.
400 * configure.ac: Likewise.
401 * maint-tool: Likewise.
402 * configure: Likewise.
403
c6af84ca 4042004-12-19 H.J. Lu <hongjiu.lu@intel.com>
405
406 PR bootstrap/19072
407 * Makefile.in (enable_shared): New substitute.
408 (LTTARGETLIB): New.
409 (PREFIXTARGETLIB): New.
410 (LTTESTLIB): New.
411 (PREFIXTESTLIB): New.
412 (CCLD): New.
413 (LINK): New.
414 ($(TARGETLIB)): Use $(LINK) to create libraries and create
415 targets by hand.
416 ($(TESTLIB)): Likewise.
417 (mostlyclean): Don't remove .libs. Remove the libtool object
418 directory.
419
420 * config.table (enable_shared): Removed.
421
422 * configure.ac (enable_static): Set to yes.
423 (AC_PROG_LIBTOOL): Removed.
424 (AM_DISABLE_SHARED): Uncommented.
425 (AM_PROG_LIBTOOL): Likewise.
426 (LIBOBJS): Add `./' to avoid VPATH.
427 (LTLIBOBJS): Likewise.
428 (enable_shared): Substitute.
429 * configure: Regenerated.
430
0bc5435c 4312004-12-18 H.J. Lu <hongjiu.lu@intel.com>
432
433 * Makefile.in (top_builddir): Set to `.'.
434 (OUTPUT_OPTION): Removed.
435 (LIBTOOL): New.
436 (LTLIBOBJS): New.
437 (EXTRA_LTOFILES): New.
438 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
439 (all): Remove stamp-picdir.
440 (LTCOMPILE): New.
441 (.c.lo): New rule.
442 (REQUIRED_LTOFILES): New.
443 (CONFIGURED_LTOFILES): New.
444 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
445 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
446 (stamp-picdir): Completely removed.
447 (maint-missing): Pass $(REQUIRED_LTOFILES)
448 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
449 $(CONFIGURED_OFILES)
450 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
451 $(CONFIGURED_LTOFILES).
452 (mostlyclean): Also remove *.lo .libs.
453 Run "make maint-deps".
454
455 * aclocal.m4: Include ../libtool.m4.
456
457 * config.table: Don't check --enable-shared.
458
459 * configure.ac (AC_PROG_LIBTOOL): Add.
460 (AC_PROG_CC_C_O): Removed.
461 (OUTPUT_OPTION): Removed.
462 (NO_MINUS_C_MINUS_O): Removed.
463 (ltpexecute): New substitute.
464 (LIBOBJS): Cleanup.
465 * configure: Regenerated.
466
467 * maint-tool: Updated for .lo/libtool.
468
4927c18d 4692004-12-11 Ben Elliston <bje@au.ibm.com>
470
471 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
472 * configure: Regenerate.
473 * config.in: Likewise.
474
7fcf5937 4752004-12-07 DJ Delorie <dj@redhat.com>
476
477 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
478 that recursion (and thus large stack space) is not needed.
479
8682c630 4802004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
481
482 * pex-unix.c: Fix the spelling of longjmp.
483
0aef8b79 4842004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
485
486 PR other/18623
487 * cp-demangle.c (d_call_offset): Remove useless local variables
488 offset and virtual_offset.
489 * cplus-dem.c (ada_demangle): Remove useless local variable
490 at_start_name.
491 (demangle_template): Remove useless local variable start.
492
ad1a4db8 4932004-11-19 Roger Sayle <roger@eyesopen.com>
494
495 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
496 "ansidecl.h" to avoid redeclaration errors with native compilers.
497 * regex.c: Protect config.h from multiple inclusion.
498
f6069ff0 4992004-11-12 Mike Stump <mrs@apple.com>
500
52ae5fe7 501 * Makefile.in (libiberty.html): Fix html generation.
502
6f2cd531 5032004-09-08 Adam Nemet <anemet@lnxw.com>
504
505 * vasprintf.c: Accept __va_copy in addition to va_copy.
506
53f5a998 5072004-09-03 Paolo Bonzini <bonzini@gnu.org>
b279e2c1 508
509 * configure: Regenerate.
510
53f5a998 5112004-09-02 Paolo Bonzini <bonzini@gnu.org>
ee0c04f5 512
513 * configure.ac: Do not enable multilibs for build-side libiberty.
514
53f5a998 5152004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
c295e612 516
517 * lrealpath.c (lrealpath): Add _WIN32 support.
518
78f7fe68 5192004-06-28 Zack Weinberg <zack@codesourcery.com>
520
521 * cp-demangle.h: Declare cplus_demangle_operators,
522 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
523 cplus_demangle_type as static if IN_GLIBCPP_V3.
524
a2e044d6 5252004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
526
527 PR other/16240
528 * cp-demangle.c (d_expr_primary): Check for a failure return from
529 cplus_demangle_type.
16795cfb 530 * testsuite/demangle-expected: Add test case.
a2e044d6 531
155c5d86 5322004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
533
534 * pex-win32.c (fix_argv): Expand comment.
535
428b4753 5362004-05-25 Daniel Jacobowitz <drow@false.org>
537
538 * Makefile.in: Add .NOEXPORT.
539
767efd18 5402004-04-29 Douglas B Rupp <rupp@gnat.com>
541
542 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
543 copyright.
544
b6b1fbb6 5452004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
546
547 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
548 * configure: Regenerate.
549
6c13736f 5502004-04-22 Richard Henderson <rth@redhat.com>
551
552 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
553 (CHAR_BIT): Provide default.
554 (struct prime_ent, prime_tab): New.
555 (higher_prime_index): Rename from higher_prime_number, return index.
556 (htab_mod_1): New.
557 (htab_mod, htab_mod_m2): Use it.
558 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
559 (htab_expand): Likewise.
560 * configure.ac: Check for stdint.h.
561 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
562 * config.in, configure: Rebuild.
563
4d0c11d1 5642004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
565
566 * strerror.c: Include config.h, and redefine sys_nerr and
567 sys_errlist, before including ansidecl.h and libiberty.h.
568
14c235d9 5692004-04-13 Jeff Law <law@redhat.com>
570
571 * hashtab.c (htab_remove_elt_with_hash): New function.
572 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
573
dd070f65 5742004-03-31 Richard Henderson <rth@redhat.com>
575
576 * hashtab.c (htab_size): Move to top of file; mark inline.
577 (htab_elements): Likewise.
578 (htab_mod, htab_mod_m2): New.
579 (htab_delete): Refactor htab->size and htab->entries.
580 (htab_empty): Likewise.
581 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
582 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
583 (htab_clear_slot): Use htab_size, htab_elements.
584 (htab_traverse_noresize, htab_traverse): Likewise.
585
fa714a54 5862004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
587
e1e51a4a 588 * pex-unix.c (pexecute): Use vfork instead of fork, with
589 appropriate changes to make this safe.
590 * pex-common.h (STDERR_FILE_NO): Define.
591
fa714a54 592 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
593 an 80 column screen. Run maint-deps.
594
7f759422 5952004-03-09 Kelley Cook <kcook@gcc.gnu.org>
596
597 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
598 * acconfig.h: Delete redundant file.
599 * config.in: Regenerate.
600 * configure: Regenerate.
601
ac09b42b 6022004-03-09 Hans-Peter Nilsson <hp@axis.com>
603
604 * configure: Regenerate for config/accross.m4 correction.
605
daf4fdb0 6062004-03-07 Andreas Jaeger <aj@suse.de>
607
608 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
609 prototypes.
610 (main): Initialize style.
611
6ff4434d 6122004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
613
a86aec34 614 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
615 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
616 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
617 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
618 short types to D_PRINT_DEFAULT. Change other integer types to use
619 new D_PRINT_* values where appropriate. Change float types to
620 D_PRINT_FLOAT.
621 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
622 values.
623 * testsuite/demangle-expected: Adjust two test cases.
624
625 * cp-demangle.c (d_print_function_type): Print a space before the
626 parenthesis around the function type in more cases.
627 * testsuite/demangle-expected: Adjust one test case.
628
1649ae17 629 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
630 parentheses around a cast.
631 * testsuite/demangle-expected: Adjust two test cases to match new
632 output.
633
d87adc77 634 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
635
6ff4434d 636 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
637 push more than one of the same CV-qualifier on the top of the
638 stack.
639 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
640 move the CV-qualifiers to apply to the element type instead.
641 (d_print_array_type): When checking the modifiers, keep looking
642 past ones which have been printed already.
643 * testsuite/demangle-expected: Add three test cases.
644
0765a988 6452004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
646
f356b171 647 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
648 empty string correctly.
649
dbe9febb 650 * cp-demangle.c (__cxa_demangle): It is not an error if status is
651 not NULL. It is an error if the mangled name is the same as a
652 built-in type name.
653 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
654 than cplus_demangle_v3.
655
0765a988 656 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
657 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
658
b8f2aeef 6592004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
660
661 * regex.c: Include <ansidecl.h>.
662 (regcomp): Cast i to int.
663 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
664
bcf8d2c0 6652004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
666
667 * configure.ac: Add m4_pattern_allow(LIBOBJS).
668 * configure: Regenerate.
669
acecd7dc 6702004-01-22 DJ Delorie <dj@redhat.com>
671
672 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
673 with explicit build rules.
674 (VPATH): Remove.
675 (.c.o): Poison.
676 * configure.ac (pexecute, LIBOBJS): Add ./ .
677 * maint-tool: Build dependencies with explicit rules.
678
37350d39 6792004-01-15 Kazu Hirata <kazu@cs.umass.edu>
680
681 * strdup.c (strdup): Constify the argument.
682
2ee927a4 6832004-01-14 Loren J. Rittle <ljrittle@acm.org>
684
685 * Makefile.in (distclean): Remove config.cache.
686
a79e1701 6872004-01-13 Daniel Jacobowitz <drow@mvista.com>
688
689 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
690 takes two parameters.
691 * cp-demint.c (cplus_demangle_fill_component): Likewise.
692
f95cb811 6932004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
694
695 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
696 defined, rename some functions which are to become static via
697 #define.
698 (CP_STATIC_IF_GLIBCPP_V3): Define.
699 (struct d_operator_info): Move definition to cp-demangle.h, and
700 rename to demangle_operator_info. Change all uses.
701 (enum d_builtin_type_print): Move definition to cp-demangle.h.
702 (struct d_builtin_type_info): Move definition to cp-demangle.h,
703 and rename to demangle_builtin_type_info. Change all uses.
704 (enum d_comp_type): Move definition to include/demangle.h, and
705 rename to demangle_component_type, and change all enums to start
706 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
707 (struct d_comp): Move definition to include/demangle.h, and rename
708 to demangle_component. Change all uses.
709 (struct d_info): Move definition to cp-demangle.h.
710 (cplus_demangle_fill_name): New function.
711 (cplus_demangle_fill_extended_operator): New function.
712 (cplus_demangle_fill_ctor): New function.
713 (cplus_demangle_fill_dtor): New function.
714 (d_make_empty): Remove type parameter. Change all callers.
715 (d_make_name): Use cplus_demangle_fill_name.
716 (d_make_extended_operator): Use
717 cplus_demangle_fill_extended_operator.
718 (d_make_ctor): Use cplus_demangle_fill_ctor.
719 (d_make_dtor): Use cplus_demangle_fill_dtor.
720 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
721 non-static by default. Change all callers.
722 (cplus_demangle_operators): Rename from d_operators. Change all
723 uses. Make non-static by default. Add sentinel at end of array.
724 (d_operator_name): Adjust initialization of high for new sentinel
725 in cplus_demangle_operators.
726 (cplus_demangle_builtin_types): Rename from d_builtin_types.
727 Change all uses. Make non-static by default. Change initializer
728 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
729 (cplus_demangle_type): Rename from d_type. Make non-static by
730 default. Change all callers.
731 (cplus_demangle_init_info): Rename from d_init_info. Make
732 non-static by default. Change all callers.
733 * cp-demangle.h: New file.
734 * cp-demint.c: New file.
735 * Makefile.in: Rebuild dependencies.
736 (CFILES): Add cp-demint.c.
737 (REQUIRED_OFILES): Add cp-demint.o.
738
a1e9c76c 7392004-01-09 Kelley Cook <kcook@gcc.gnu.org>
740
741 * configure.in: Rename file to ...
742 * configure.ac: ... this.
743 * Makefile.in: Update a comment for above change.
744 * README: Likewise.
745 * config.in: Regenerate.
746
f2c17d01 7472004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
748
749 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
750 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
751 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
752 demangling template parameters.
753 * testsuite/test-demangle.c (fail): New static function.
754 (main): Support new options in input file: --no-params,
755 --is-v3-ctor, and --is-v3-dtor.
756 * testsuite/demangle-expected: Add --no-params to most tests, and
757 add the correct result when parameters are not demangled. Add
758 some simple tests for V3 constructor/destructor recognition.
759
a5731f2a 7602003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
761
762 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
763
7b2b97f9 7642003-12-22 Daniel Jacobowitz <drow@mvista.com>
765
766 PR debug/13272
767 * Makefile.in (lbasename.o): Depend on filenames.h.
768 * lbasename.c: Include "filenames.h" instead of defining
769 its macros locally.
770
2c0843db 7712003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
772
773 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
774 dynamic arrays.
775 (struct d_operator_info): Add len field.
776 (struct d_builtin_type_info): Add len and java_len fields.
777 (struct d_standard_sub_info): Add simple_len, full_len, and
778 set_last_name_len fields.
779 (struct d_comp): Add len field to s_string.
780 (struct d_info): Add send, did_subs, and expansion fields.
781 (d_append_string_constant): Define.
782 (d_append_string): Remove. Change all users to use
783 d_append_string_constant or d_append_buffer instead.
784 (d_make_sub): Add len parameter. Change all callers.
785 (d_name): Increase expansion when substituting std::.
786 (d_unqualified_name): Increase expansion for an operator.
787 (d_number): Don't use multiplication for negative numbers.
788 (d_identifier): Make sure there are enough characters in the
789 string for the specified length. Adjust expansion for an
790 anonymous namespace.
791 (d_operators): Initialize len field.
792 (d_special_name, d_ctor_dtor_name): Increase expansion.
793 (d_builtin_types): Initialize len and java_len fields.
794 (d_type): Increase expansion for a builtin type.
795 (d_cv_qualifiers): Increase expansion for each qualifier.
796 (d_bare_function_type): Decrease expansion when removing single
797 void parameter.
798 (d_template_param): Increment did_subs.
799 (d_expression): Increase expansion for an operator.
800 (d_expr_primary): Decrease expansion for a type we will print
801 specially.
802 (standard_subs): Initialize new fields.
803 (d_substitution): Increment did_subs when doing a normal
804 substitution. Increase expansion for a special substitution.
805 (d_print): Add estimate parameter. Change all callers.
806 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
807 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
808 (d_print_java_identifier): Rename from d_print_identifier. Handle
809 only Java case. Change caller.
810 (d_init_info): Change return type to void. Change all callers.
811 Initialize send, did_subs, and expansion fields. Do not
812 initialize comps and subs fields.
813 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
814 arrays on stack. Make an estimate of the length of the demangled
815 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
816 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
817 subs arrays on stack.
818
abe6933a 8192003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
820
821 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
822 after the identifier.
823 * testsuite/demangle-expected: Add test case.
824
77097adf 8252003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
826
827 Fix for PR c++/13447:
828 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
829 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
830 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
831 D_COMP_QUAL_NAME.
832 (is_ctor_or_dtor): Likewise.
833 (d_local_name): Use D_COMP_LOCAL_NAME rather than
834 D_COMP_QUAL_NAME.
835 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
836 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
837 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
838 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
839 * testsuite/demangle-expected: Add two test cases.
840
841 * cp-demangle.c (d_print_function_type): Clear the global modifier
842 list when printing the modifiers, not just when printing the
843 function parameters.
844 * testsuite/demangle-expected: Add two test cases.
845
08d5ae10 8462003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
847
8ef443ab 848 * cp-demangle.c (d_print_function_type): Print the function
849 parameters with no modifiers.
850 * testsuite/demangle-expected: Add test case.
851
08d5ae10 852 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
853 expect that we've read the entire string.
854 (is_ctor_or_dtor): Don't expect that we've read the entire
855 string--reverse patch of 2003-11-29.
856
11037b2e 8572003-12-15 Brendan Kehoe <brendan@zen.org>
858
859 * libiberty/Makefile.in (floatformat.o): Add dependency on
860 config.h to accompany change of 2003-12-03.
861
b69d25f7 8622003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
863
864 Fix handling of constructor/destructor of standard substitution:
865 * cp-demangle.c (struct d_standard_sub_info): Define.
866 (d_substitution): Add prefix argument. Change all callers.
867 Rework handling of standard substitutions to print full name when
868 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
869 * testsuite/demangle-expected: Add test case.
870
871 Fix handling of negative literal constants:
872 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
873 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
874 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
875 (d_print_comp): Handle D_COMP_LITERAL_NEG.
876 * testsuite/demangle-expected: Add test case.
877
3c87c5c3 8782003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
879
880 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
881 (d_last_char): Define new macro.
882 (d_make_name): Reject an empty name.
883 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
884 (d_substitution, d_print_identifier): Likewise.
885 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
886 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
887 (d_print_mod) Use new d_last_char macro.
888 (d_print_cast): Use new d_last_char macro.
889 (is_ctor_or_dtor): Don't leak memory.
890
891 Fix handling of member function modifiers:
892 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
893 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
894 (d_dump): Dump new d_comp_type values.
895 (d_make_comp): Accept new d_comp_type values.
896 (has_return_type): Only accept _THIS variants of qualifiers.
897 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
898 qualifiers.
899 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
900 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
901 qualifiers and printing them at the end, add _THIS qualifiers to
902 the modifier list.
903 (d_print_comp) [D_COMP_*_THIS]: New cases.
904 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
905 qualifiers.
906 (d_print_mod_list): Add suffix parameter. Change all callers.
907 Keep walking the list even if the current modifier has been
908 printed.
909 (d_print_mod): Handle new _THIS qualifiers.
910 (d_print_function_type): Handle new _THIS qualifiers when deciding
911 whether to print a parenthesis. Put a space before the
912 parenthesis in some cases. Call d_print_mod_list again at the
913 end, passing suffix as 1.
914 (is_ctor_or_dtor): Look for new _THIS qualifiers.
915 * testsuite/demangle-expected: Add test case.
916
917 Fix for PR gcc/13304:
918 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
919 before the '<' is itself a '<', insert a space.
920 (d_print_cast): Likewise.
921 * testsuite/demangle-expected: Add test case.
922
923 Fix for PR gcc/13244:
924 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
925 which uses the '>' operator in an extra layer of parens.
926 * testsuite/demangle-expected: Add test case.
927
fa152dff 9282003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
929
930 * floatformat.c: Include "config.h" and <string.h> if available.
931 (INFINITY, NAN): Define if not defined by <math.h>.
932 (floatformat_to_double): Handle NaN, infinity, and denormalized
933 numbers.
934 (floatformat_from_double): Likewise.
935 (ieee_test): In debugging code, use little endian rather than big
936 endian. Correct tests to handle NaN and to check correct sign of
937 zero. Omit m68k extended test.
938 (main): Add more debugging cases.
939
72983aaa 9402003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
941
942 * cp-demangle.c (d_demangle): Only return success if we consumed
943 the entire demangled string.
944 (is_ctor_or_dtor): Likewise.
945
946 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
947 to restore expected result of EDG test case to original expected
948 result.
949
c1ea6f0c 9502003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
951
952 * cp-demangle.c (struct d_print_mod): Add templates field.
953 (d_make_builtin_type): Check for NULL type.
954 (d_make_extended_operator): Check for NULL name.
955 (d_make_ctor, d_make_dtor): Likewise.
956 (d_mangled_name): Add top_level parameter. Change all callers.
957 (d_encoding): If DMGL_PARAMS is not set, strip off initial
958 CV-qualifiers.
959 (d_type): Check some return values we rely on.
960 (d_bare_function_type, d_array_type): Likewise.
961 (d_pointer_to_member_type, d_template_args): Likewise.
962 (d_add_substitution): Fail if argument is NULL.
963 (d_print_resize): Check whether buf is NULL.
964 (d_print_comp): Save current templates list with each modifier.
965 Don't pass the modifier list down when printing a template.
966 (d_print_cast): Don't pass the modifier list down when printing a
967 template.
968 (d_print_mod_list): Temporarily set templates list while printing
969 a modifier.
970 (d_print_mod): Check that buf is not NULL before using it.
971 (d_print_function_type): Print parens if there is no modifier.
972 (d_init_info): Permit as many substitutions as there are
973 characters in the mangled name.
974 * testsuite/demangle-expected: Add two new test cases.
975
8a238b4d 9762003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
977
978 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
979 d_demangle.
980
55faa696 9812003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
982
983 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
984 callers.
985 (print_usage): Display new -p option.
986 (long_options): Add --no-params.
987 (main): Accept and handle -p.
988
7522af2a 9892003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
990
991 * cp-demangle.c (has_return_type): Skip qualifiers when checking
992 whether we have a template.
993 * testsuite/demangle-expected: Add four new tests.
994
1b4974e7 9952003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
996
3365aca7 997 * testsuite/demangle-expected: Minor changes to match output of
998 new demangler: adjust whitespace in four tests, and change order
999 of qualifiers in one test.
1000
1b4974e7 1001 * cp-demangle.c: Complete rewrite.
1002
c8f6de64 10032003-11-19 Mark Mitchell <mark@codesourcery.com>
1004
1005 * cp-demangle.c (demangle_type): Correct thinko in substitution
1006 processing.
1007
0d45f4fe 10082003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
1009
6b45c28d 1010 * cp-demangle.c (demangle_operator_name): Remove space before
1011 "sizeof".
1012 (demangle_type_ptr): Put qualifiers in the right place. Handle
1013 qualifiers in pointer to member specially.
1014 (demangle_type): Handle qualifiers for pointer or reference
1015 specially. Handle function type.
1016 (demangle_local_name): Save and restore caret around demangling of
1017 initial encoding.
1018
28277092 1019 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
1020 cplus_demangle.
1021
0d45f4fe 1022 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
1023
04bf85aa 10242003-10-31 Andreas Jaeger <aj@suse.de>
1025
1026 * floatformat.c (floatformat_always_valid): Add unused attribute.
1027
82ac7060 10282003-10-30 Josef Zlomek <zlomekj@suse.cz>
1029
1030 Jan Hubicka <jh@suse.cz>
1031 * vasprintf.c (int_vasprintf): Pass va_list by value.
1032 Use va_copy for copying va_list.
1033 (vasprintf): Pass va_list by value.
1034
f324afe5 10352003-10-30 Josef Zlomek <zlomekj@suse.cz>
1036
1037 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
1038 instead of increasing n_elements when inserting to deleted slot.
1039
147ca737 10402003-10-20 J. Brobecker <brobecker@gnat.com>
1041
1042 * cplus-dem.c (demangle_template): Register a new Btype only
1043 when needed.
1044 * testsuite/demangle-expected: Add a new test.
1045
12440823 10462003-10-16 H.J. Lu <hongjiu.lu@intel.com>
1047
1048 * testsuite/demangle-expected: Update the expected output of
1049 _GLOBAL__I__Z2fnv.
1050
c5eb53ab 10512003-10-02 Daniel Jacobowitz <drow@mvista.com>
1052
1053 * strerror.c: Revert last change. Declare static sys_nerr
1054 and sys_errlist using different names.
1055
704579f5 10562003-10-01 Daniel Jacobowitz <drow@mvista.com>
1057
1058 * strerror.c: Don't provide or reference sys_errlist if
1059 strerror is available.
1060
40a84a93 10612003-10-01 H.J. Lu <hongjiu.lu@intel.com>
1062
1063 * configure.in: Check if $MAKEINFO is missing.
1064 * configure: Regenerated.
1065
90305aaf 10662003-09-24 Daniel Jacobowitz <drow@mvista.com>
1067
1068 * configure.in: Use AC_PROG_CPP_WERROR.
1069 * configure: Regenerated.
1070
63cb126c 10712003-09-22 Andrew Cagney <cagney@redhat.com>
1072
1073 * floatformat.c (floatformat_i387_ext_is_valid): New function.
1074 (floatformat_always_valid): New function.
1075 (floatformat_i387_ext): Initialize new "is_valid" field to
1076 "floatformat_i387_ext_is_valid".
1077 (floatformat_ieee_single_little): Initialize "is_valid" field to
1078 floatformat_always_valid.
1079 (floatformat_ieee_double_big): Ditto.
1080 (floatformat_ieee_double_little): Ditto.
1081 (floatformat_ieee_double_little): Ditto.
1082 (floatformat_ieee_double_littlebyte_bigword): Ditto.
1083 (floatformat_i960_ext): Ditto.
1084 (floatformat_m88110_ext): Ditto.
1085 (floatformat_m88110_harris_ext): Ditto.
1086 (floatformat_arm_ext_big): Ditto.
1087 (floatformat_arm_ext_littlebyte_bigword): Ditto.
1088 (floatformat_ia64_spill_big): Ditto.
1089 (floatformat_ia64_spill_little): Ditto.
1090 (floatformat_ia64_quad_big): Ditto.
1091 (floatformat_ia64_quad_little): Ditto.
1092 (floatformat_ia64_quad_little): Ditto.
1093 (floatformat_is_valid): Call "is_valid".
1094
8d083f49 10952003-09-15 Andrew Cagney <cagney@redhat.com>
1096
1097 * floatformat.c (get_field): Make "data" constant.
1098 (floatformat_is_valid, floatformat_to_double): Make "from"
1099 constant, fix casts.
1100 (floatformat_from_double): Make "from" constant.
1101
8109b385 11022003-09-15 Daniel Jacobowitz <drow@mvista.com>
1103
1104 * floatformat.c (floatformat_is_valid): New function.
1105 (get_field, put_field): Correct comments.
1106
76b64c1c 11072003-09-06 Josef Zlomek <zlomekj@suse.cz>
1108
1109 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
1110 FIBHEAPKEY_T.
1111
71babb92 11122003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
fc139dea 1113
1114 PR bootstrap/12100
1115 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
1116 * configure: Rebuilt.
1117
a6089b1e 11182003-08-27 Daniel Jacobowitz <drow@mvista.com>
1119
1120 * aclocal.m4: Include acx.m4 and no-executables.m4.
1121 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
1122 (LIB_AC_PROG_CC): Remove.
1123 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
1124 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
1125 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
1126 performing link tests.
1127 * configure: Regenerated.
1128
484e4040 11292003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
1130
78f7fe68 1131 * cp-demangle.c: Clarify what package(s) this is part of.
484e4040 1132
945220d6 11332003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
1134
1135 * pex-win32.c (pexecute): Mark parameters this_pname and
1136 temp_base as unused. Remove unused variables retries,
1137 sleep_interval. Initialize org_stdin, org_stdout.
1138 (pwait): Mark parameter flags as unused.
1139
11402003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
eeaf6b14 1141
1142 * pex-win32.c (fix_argv): Ensure that the executable pathname
1143 uses Win32 backslashes.
1144 (pexecute): Cast away constness when assigning *errmsg_arg.
1145
de885da0 11462003-06-26 H.J. Lu <hongjiu.lu@intel.com>
1147
1148 * testsuite/demangle-expected: Add more GNU V3 testcases.
1149
b60500ad 11502003-06-22 Zack Weinberg <zack@codesourcery.com>
1151
1152 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
1153 not HC_ASCII and HC_EBCDIC.
1154 Add documentation in form expected by gather-docs.
1155 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
1156 * Makefile.in, functions.texi: Regenerate.
1157
05b93640 11582003-06-21 Zack Weinberg <zack@codesourcery.com>
1159
1160 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
1161 for charset determination.
1162
c08775b2 11632003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
1164
1165 * configure.in: Add check for malloc.h needed by
1166 m68k for function free().
1167 * configure: Regenerated.
1168 * config.in: Add HAVE_MALLOC_H.
1169 * hashtab.c: include malloc.h were available for
1170 free().
1171
5e90539e 11722003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
05b93640 1173
5e90539e 1174 PR bootstrap/10974
1175 * physmem.c: Update comment.
1176 * configure.in: Modify test for _system_configuration for older
1177 AIX systems.
1178
1179 * config.in, configure: Regenerated.
05b93640 1180
b4c6b6f4 11812003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1182
1183 PR other/10810
1184 * test-demangle.c (getline): Fix fence-post error.
1185
5958dc33 11862003-06-03 Nick Clifton <nickc@redhat.com>
1187
1188 * asprintf.c: Change comment to note that -1 is returned upon
1189 error.
1190 * vasprintf.c: Likewise.
1191 (vasprintf): Return -1 upon error.
1192 * functions.texi: Document changes to asprintf and vasprintf.
1193
f11036bc 11942003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
1195
1196 * config.table: Accept i[345867]86 variant.
1197
ffa082ba 11982003-05-15 Jim Blandy <jimb@redhat.com>
1199
1200 * hex.c (_hex_value): Make this unsigned.
1201 (hex_value): Update documentation for new return type. hex_value
1202 now expands to an unsigned int expression, to avoid unexpected
1203 sign extension when we store it in a bfd_vma, which is larger than
1204 int on some platforms.
1205 * functions.texi: Regenerated.
1206
d6dfdca2 12072003-05-07 Josef Zlomek <zlomekj@suse.cz>
1208
1209 * splay-tree.c (splay_tree_predecessor): Fix comment.
1210 (splay_tree_successor): Fix comment.
1211
b3552be1 12122003-05-07 Jason Merrill <jason@redhat.com>
1213
24bfa234 1214 * hashtab.c (iterative_hash): New fn.
b3552be1 1215 * configure.in: Add AC_C_BIGENDIAN_CROSS.
1216 * aclocal.m4: Include accross.m4.
1217 * configure, config.in: Regenerate.
1218
9bb0a517 12192003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1220
1221 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
1222 * configure: Regenerate.
1223
ddb6bca9 12242003-05-03 Carlo Wood <carlo@alinoe.com>
1225
1226 * cp-demangle.c: Fix typo in "char_traints" string-literal.
1227
8806a402 12282003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1229
1230 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
1231 (main): Test that we don't write too much data.
1232
09fd37ef 12332003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1234
1235 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
1236 vsnprintf.
1237 * snprintf.c, vsnprintf.c: New files.
1238 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
1239 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
1240 Regenerate dependencies.
1241
1242 * functions.texi, configure, config.in: Regenerated.
1243
79d940a3 12442003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1245
1246 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
1247 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
1248 and stpncpy.
1249 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
1250 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
1251 Regenerate dependencies.
1252
1253 * functions.texi, configure, config.in: Regenerated.
1254
ca3ccdf6 12552003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1256
1257 * argv.c: Fix comments.
1258 * calloc.c: Don't unnecessarily include "libiberty.h".
1259 (bzero): Add prototype.
1260 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1261 * getcwd.c (getcwd): Use standard definition to avoid conflicts
1262 with system headers.
1263 * hashtab.c (htab_traverse): Delete unused variables.
1264 * rename.c: Include "ansidecl.h".
1265 (rename): Use standard definition to avoid conflicts with system
1266 headers.
1267 * strsignal.c: Rely on ANSI_PROTOTYPES.
1268 * strstr.c: Check GNUC >= 2, not GNUC == 2.
1269 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1270 * vprintf.c: Include "ansidecl.h" earlier, rely on
1271 ANSI_PROTOTYPES.
1272 * vsprintf.c: Include "ansidecl.h" earlier, rely on
1273 ANSI_PROTOTYPES and possibly include <stdarg.h>.
05b93640 1274
ca3ccdf6 1275 * Makefile.in: Regenerate dependencies.
1276
6b5ad644 12772003-04-15 DJ Delorie <dj@redhat.com>
1278
1279 * maint-tool (deps): Scan for headers in $srcdir also.
1280
d526b550 12812003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1282
1283 PR target/10338
1284 PR bootstrap/10198
1285 PR bootstrap/10140
1286 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
1287 __mempcpy.
1288 * regex.c (regerror): Likewise.
1289
83f85421 12902003-04-14 Roger Sayle <roger@eyesopen.com>
1291
1292 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
1293 * memchr.c: Likewise.
1294 * strcasecmp.c: Likewise.
1295 * strncasecmp.c: Likewise.
1296 * strncmp.c: Likewise.
1297 * xatexit.c: Likewise.
1298 * xmalloc.c: Likewise.
1299
1300 * copysign.c: Use traditional function declaration instead of DEFUN.
1301 * sigsetmask.c: Likewise.
1302
1303 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
1304 * memset.c: Likewise.
1305
1306 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
1307 * memmove.c: Likewise.
1308
68acb842 13092003-04-14 Roger Sayle <roger@eyesopen.com>
1310
1311 * strdup.c (strdup): Tweak implementation to use memcpy.
1312
b5e94eb4 13132003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1314
1315 * configure.in (HAVE_UINTPTR_T): Always define.
1316 * configure: Regenerated.
1317
62133c30 13182003-03-23 Alexandre Oliva <aoliva@redhat.com>
1319
1320 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
1321 instead of $$CC alone.
1322 (install_to_tooldir): Use it.
1323
6d05ae35 13242003-17-03 Jan Hubicka <jh@suse.cz>
1325
1326 * hashtab.c (htab_traverse_noresize): Break out from ...
1327 * hashtab.c (htab_traverse): ... here.
1328
b9af005f 13292003-12-03 Jan Hubicka <jh@suse.cz>
1330
6d4061d0 1331 * hashtab.c (htab_expand): Fix warning.
1332
b9af005f 1333 * hashtab.c (htab_expand): Compute the size of hashtable based
1334 on the number of elements actually used.
1335 (htab_traverse): Call htab_expand when table is too empty.
1336
68f6f1d9 13372003-03-11 Carlo Wood <carlo@gnu.org>
1338
1339 * cplus-dem.c (demangle_integral_value): Correction to reflect
1340 patch of 2002-01-10 in order to also make negative multi-digits
1341 without leading underscore work.
1342
ac5e00d3 13432003-03-03 Mark Mitchell <mark@codesourcery.com>
1344
1345 * cplus-dem.c: Add license exception to copyright notice.
1346
df4b17bf 13472003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1348
1349 * physmem.c: Formatting changes from upstream.
1350
eafe92ea 13512003-02-24 Danny Smith <dannysmith@users.source.forge.net>
1352
1353 * physmem.c (physmem_total): Add _WIN32 support.
1354 (physmem_available): Likewise.
1355
5833978f 13562003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1357
1358 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
1359 GSI_PHYSMEM.
1360 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
1361
4195ec6a 13622003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1363
1364 * configure.in: Check for sys/systemcfg.h and
1365 _system_configuration.
1366 * physmem.c: Add support for AIX. Tweek formatting as per
1367 upstream coreutils beta.
1368
0991d38e 13692003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1370 Richard Earnshaw <rearnsha@arm.com>
1371 Geoffrey Keating <geoffk@apple.com>
05b93640 1372
0991d38e 1373 * configure.in: Check for sys/sysctl.h and sysctl.
1374 * physmem.c: Add support for *bsd and darwin.
1375 * Makefile.in: Generate depedency for physmem.o.
1376
622d92fb 13772003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1378
1379 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
1380 Tru64 UNIX.
1381 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
1382 Tru64 UNIX.
1383
1384 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
1385 machine/hal_sysinfo.h, sys/table.h.
1386 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
1387 * configure, config.in: Regenerate.
1388
8f3b8386 13892003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1390
1391 * configure.in: Check for sys/sysmp.h and sysmp.
1392 * physmem.c: Pull upstream copy, add support for irix6.
1393
1394 * config.in, configure: Regenerated.
1395
25b160f7 13962003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1397
1398 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
1399 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
1400 pstat_getdynamic.
05b93640 1401
5cf67f1b 14022003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1403
1404 * Makefile.in (CFILES): Add physmem.c.
1405 (REQUIRED_OFILES): Add physmem.o.
1406 * configure.in: Check for sys/pstat.h.
1407 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
1408 * physmem.c: New file, copied from textutils.
1409
1410 * config.in, configure: Regenerated.
1411
846a645c 14122003-02-20 Daniel Jacobowitz <drow@mvista.com>
1413
1414 * Makefile.in (CFILES): Add lrealpath.c.
1415 (REQUIRED_OFILES): Add lrealpath.o.
1416 (lrealpath.o): Add rule.
1417 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
1418 * configure.in: Add realpath and canonicalize_file_name to
1419 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
1420 for canonicalize_file_name.
1421 * lrealpath.c: New file.
1422 * make-relative-prefix.c: Update documentation.
1423 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
1424 * config.in: Regenerated.
1425 * configure: Regenerated.
1426 * functions.texi: Regenerated.
1427
82561650 14282003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1429
1430 * cplus_dem.c: Fix typo: intializes -> initializes.
1431
e4e6363f 14322003-02-20 Alexandre Oliva <aoliva@redhat.com>
1433
1434 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
1435 config.status.
1436 * configure: Rebuilt.
1437
cc720498 14382003-02-13 Daniel Jacobowitz <drow@mvista.com>
1439
1440 Fix PR c++/7612.
1441 * cplus-dem.c (demangle_signature): Call string_delete.
1442 Remove extra string_init.
1443 (demangle_arm_hp_template): Call string_delete instead of
1444 string_clear. Add missing string_delete call.
1445 (demangle_qualified): Add missing string_delete call.
1446 (do_type): Remove unused variable btype. Add missing string_delete
1447 call. Call string_delete instead of string_clear.
1448 (demangle_fund_type): Move variable btype inside of the switch
1449 statement. Add missing string_delete call.
1450 (do_arg): Call string_delete instead of string_clear. Remove extra
1451 string_init.
1452 (demangle_nested_args): Free work->previous_argument.
1453
d94d977c 14542003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1455
1456 * acconfig.h: New file. Add uintptr_t.
1457 * config.in: Regenerated.
1458
5533bc76 14592003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
1460
1461 * libiberty.texi: Update to GFDL 1.2.
1462
7f13318a 14632003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1464
1465 * Makefile.in (libiberty_topdir): New subst.
1466 (mkinstalldirs): Redefine in terms of the above.
1467 * configure.in: AC_SUBST it.
1468 * configure: Regenerate.
1469
9d2299ec 14702003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1471
1472 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
1473 (info-subdir, install-info-subdir, clean-info-subdir)
1474 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
1475 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
1476 Pass $(FLAGS_TO_PASS).
1477
49f7db63 14782003-01-27 Alexandre Oliva <aoliva@redhat.com>
1479
1480 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
1481 /`$$CC -print-multi-os-directory`.
1482
a21acbbb 14832003-01-26 Daniel Jacobowitz <drow@mvista.com>
1484
1485 * hashtab.c (htab_create_alloc_ex): New function.
1486 (hatab_set_functions_ex): New function.
1487 (htab_delete, htab_expand): Support alternate allocation functions.
1488
8c171144 14892003-01-24 Christopher Faylor <cgf@redhat.com>
1490
1491 * configure.in: Remove special pex-cygwin consideration.
1492 * configure: Regenerate.
1493 * pex-cygwin.c: Remove.
1494 * Makefile.in: Remove pex-cygwin.[co] lines.
1495
8cb0536d 14962003-01-24 Zack Weinberg <zack@codesourcery.com>
1497
1498 * Makefile.in (CFILES): Add pex-*.c.
1499 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
1500 (CONFIGURED_OFILES): Add pex-*.o.
1501 (TEXIFILES): Add pexecute.txh.
1502 (pexecute.o): Delete rule.
1503 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
1504 pex-unix.o, pex-win32.o): New rules.
1505 * configure.in: Change AC_INIT argument to xmalloc.c.
1506 Compute appropriate pexecute implementation and substitute it
1507 as @pexecute@.
1508
1509 * pexecute.c: Split up into...
1510 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
1511 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
1512 new files.
1513
1514 * functions.texi: Regenerate.
1515 * configure: Regenerate.
1516
aa5761b7 15172003-01-20 Josef Zlomek <zlomekj@suse.cz>
1518
1519 * hashtab.c (htab_expand): Fix allocation of new entries.
1520
71aad3b8 15212003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1522
1523 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
1524
2e6a336d 1525 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
1526 mkinstalldirs command.
1527
e162e528 15282002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
1529
1530 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
1531 Define for hosts with HOST_EXECUTABLE_SUFFIX.
1532
aba68506 15332002-11-24 Nick Clifton <nickc@redhat.com>
1534
1535 * make-relative-prefix.c (make_relative_prefix): Ensure return
1536 string is empty before using strcat to construct it.
1537
5feeeb38 15382002-11-22 Daniel Jacobowitz <drow@mvista.com>
1539
1540 * Makefile.in: Add make-relative-prefix.c.
1541 * make-relative-prefix.c: New file.
1542 * functions.texi: Rebuilt.
1543
d7022963 15442002-11-16 Jakub Jelinek <jakub@redhat.com>
1545
1546 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
1547 used with arguments in traditional C' warnings.
1548
dacb9fcc 15492002-10-16 Jakub Jelinek <jakub@redhat.com>
1550
1551 * config.table: Use mh-s390pic for s390x too.
1552
ff02de61 15532002-10-06 Andreas Jaeger <aj@suse.de>
1554
1555 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
1556 variable and of strict-aliasing warning.
1557 (grow_vect): Use char as first parameter.
1558
5f7912d8 15592002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1560
1561 * Makefile.in (all): Fix multilib parallel build.
1562
05455547 15632002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
1564
1565 * cp-demangle.c (demangling_new): Cast 0 to enum.
1566 (demangle_char): Cast return of strdup to char *.
1567 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
1568 (is_gnu_v3_mangled_dtor): Likewise.
1569 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
1570 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
1571 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
1572 * md5.c (md5_process_bytes): Cast results back to const void *.
1573 (md5_process_block): Add cast to const md5_uint32 *.
1574 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
1575 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
1576 unsigned short.
1577 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
1578 to void *.
1579 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
1580
bd5d1805 15812002-09-19 Nick Clifton <nickc@redhat.com>
1582
1583 * README: Update email addresses for bugs and patches.
1584
0fe3478a 15852002-09-10 Mike Stump <mrs@apple.com>
1586
1587 * splay-tree.c (splay_tree_successor): Fix comments.
1588
65e49ff1 15892002-09-11 Zack Weinberg <zack@codesourcery.com>
1590
808b5085 1591 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
65e49ff1 1592 * testsuite/Makefile.in: Adjust for test-demangle.
1593 * testsuite/regress-demangle: Deleted.
1594 * testsuite/test-demangle.c: New file.
1595 * testsuite/demangle-expected: Change \$ to $ throughout, now that
1596 this file is not being read by a shell script.
1597
5ca95c55 15982002-09-05 Roger Sayle <roger@eyesopen.com>
1599
1600 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
1601
b251a88a 16022002-08-07 DJ Delorie <dj@redhat.com>
1603
1604 * regex.c (re_error_msgid): Just use a simple array of strings.
1605 (re_compile_pattern): Compensate.
1606 (re_comp): Likewise.
1607 (re_comp): Likewise.
1608 (regerror): Likewise.
1609
f4e29b4a 16102002-07-29 Neil Booth <neil@daikokuya.co.uk>
1611
1612 * cplus-dem.c (PREPEND_BLANK): Remove.
ff02de61 1613
abcf0552 16142002-07-10 Jason Merrill <jason@redhat.com>
1615
1616 * cp-demangle.c (demangle_identifier): Support extended Unicode
1617 characters.
1618
c62ef5b5 16192002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1620
1621 * cp-demangle.c (demangle_v3_with_details): Wrap in
ff02de61 1622 !defined IN_GLIBCPP_V3.
c62ef5b5 1623
74c75ba5 16242002-07-01 Mark Mitchell <mark@codesourcery.com>
1625
1626 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
1627 Set it for the "st" operator.
1628 (demangle_expression): Handle expressions with types as arguments.
1629
b2835908 16302002-06-30 Douglas Rupp <rupp@gnat.com>
1631
1632 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
1633 * Makefile.in (OUTPUT_OPTION): Use.
1634
c75cb827 16352002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
1636
1637 * Makefile.in (install_to_libdir): Add $(DESTDIR).
1638 (install_to_tooldir): Likewise.
1639
55fc5d04 16402002-06-17 Douglas Rupp <rupp@gnat.com>
1641
1642 * lbasename.c: Add 2002 to copyright.
1643 (IS_DIR_SEPARATOR): Remove VMS junk.
1644
8d24e548 16452002-06-05 Geoffrey Keating <geoffk@redhat.com>
1646
1647 * hashtab.c (htab_create): New stub function for backward
1648 compatibility.
1649 (htab_try_create): Likewise.
1650
1f3233d1 16512002-06-03 Geoffrey Keating <geoffk@redhat.com>
1652
1653 * hashtab.c (htab_create): Delete.
1654 (htab_try_create): Delete.
1655 (htab_create_alloc): New.
1656 (htab_delete): Support user-specified memory allocation.
1657 (htab_expand): Likewise.
1658
daa2cd64 16592002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
1660
1661 * configure.in: Fix typo in the code checking for sys_errlist.
1662 * configure: Regenerated.
1663
70102259 16642002-05-13 Andreas Schwab <schwab@suse.de>
1665
1666 * config.table: Use mh-x86pic also for x86-64.
1667
0b045cf7 16682002-05-08 Alexandre Oliva <aoliva@redhat.com>
1669
1670 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1671 script entry, and set LD to it when configuring multilibs.
1672 * configure: Rebuilt.
1673
63e428d5 16742002-05-07 Mark Mitchell <mark@codesourcery.com>
1675
1676 * configure.in (AC_TYPE_PID_T): Use it.
1677 * configure: Regenerated.
1678 * getruntime.c: Include <sys/types.h>.
1679 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
1680
8c8eb750 16812002-04-09 Richard Henderson <rth@redhat.com>
1682
1683 * hashtab.c (higher_prime_number): Use 7 as minimum.
1684 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
1685 (htab_find_slot_with_hash): Likewise.
1686
5acfe29d 16872002-04-01 Phil Edwards <pme@gcc.gnu.org>
1688
1689 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
1690 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
1691 not compile if IN_GLIBCPP_V3 defined.
1692 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
1693
87591c4a 16942002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1695
ff02de61 1696 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
87591c4a 1697 if it is NULL.
1698
b8327a91 16992002-03-27 DJ Delorie <dj@redhat.com>
1700
1701 * hex.c: Add documentation.
1702 (_hex_value): Provide non-ASCII empty table.
1703 (hex_init): Initialize the non-ASCII table.
1704 * functions.texi: Regenerate.
1705
baf716a5 17062002-03-27 Mark Mitchell <mark@codesourcery.com>
1707
1708 * dyn-string.c: Add libgcc exception to copyright notice.
1709
60d10194 17102002-03-26 H.J. Lu (hjl@gnu.org)
1711
1712 * config.table: Support --with-build-subdir.
1713 * configure.in: Likewise.
1714 * configure: Rebuild.
1715
8b7d2865 17162002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
1717
1718 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
1719 seen.
1720
8916275c 17212002-03-12 Mark Mitchell <mark@codesourcery.com>
1722
1723 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
1724 notice.
1725
241f7b9c 17262002-03-11 Douglas B Rupp <rupp@gnat.com>
1727
1728 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
1729
bc95356d 17302002-03-06 Jim Blandy <jimb@redhat.com>
1731
1732 * splay-tree.c (splay_tree_xmalloc_allocate,
1733 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
1734 prototyped definitions. Mark `data' arguments as unused.
1735
5a3c5094 17362002-03-06 Andrew Cagney <ac131313@redhat.com>
1737
1738 * floatformat.c (floatformat_arm_ext_big): Delete definition.
1739
9123512a 17402002-03-04 Phil Edwards <pme@gcc.gnu.org>
1741
1742 * configure.in: Add --enable-install-libiberty option.
1743 * Makefile.in (INSTALLED_HEADERS): New variable.
1744 (install_to_libdir): Possibly also copy headers.
1745 * configure: Regenerated.
1746
5e571023 17472002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
1748
1749 * xmalloc.c (xmalloc_fail): Clarify error message further.
1750
323c06f5 17512002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
1752
1753 * xmalloc.c (xmalloc_fail): Clarify error message.
1754
a3af3ae8 17552002-02-22 Jim Blandy <jimb@redhat.com>
1756
1757 * splay-tree.c (splay_tree_xmalloc_allocate,
1758 splay_tree_xmalloc_deallocate): New functions.
1759 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
1760 above functions and a dummy data pointer.
1761 (splay_tree_new_with_allocator): New function.
1762 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
1763 splay_tree_remove): Use the splay tree's allocation and
1764 deallocation functions.
1765
080f842c 17662002-02-19 Scott Snyder <snyder@fnal.gov>
1767
1768 * testsuite/demangle-expected: Add test case for infinite loop in
1769 demangler.
1770 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
1771 if do_type() doesn't make any progress --- prevents an infinite
1772 loop.
1773
a9e05c62 17742002-02-18 Carlo Wood <carlo@gnu.org>
1775
1776 PR c++/5390
1777 * cplus-dem.c (demangle_integral_value): Accept multi-digit
1778 numbers that do not start with an underscore; This is needed
1779 for integer template parameters. This doesn't break anything
1780 because multi-digit numbers are never followed by a digit.
1781 * testsuite/demangle-expected: Corrected all mangled test
1782 cases with multi-digit template parameters: g++ 2.95.x does
1783 not generate underscores around these parameters.
1784
c6d86b63 17852002-02-05 Jason Merrill <jason@redhat.com>
1786
1787 * cplus-dem.c (flags): Add DMGL_VERBOSE
1788 (cplus_demangle_v3_p): Remove.
1789 (demangle_it): Add DMGL_TYPES to passed flags.
1790 * cp-demangle.c (cplus_demangle_v3_all): Remove.
1791 (cplus_demangle_v3_type): Remove.
1792 (cplus_demangle_v3): Add options parm.
1793
9bd54051 17942002-02-02 H.J. Lu (hjl@gnu.org)
1795
1796 * cp-demangle.c (cp_demangle_type): Do not protect with
1797 IN_LIBGCC2.
1798 (cplus_demangle_v3_all): New.
1799 (cplus_demangle_v3): Call cplus_demangle_v3_all.
1800 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
1801
1802 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
1803 Initialized to cplus_demangle_v3.
1804 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
1805 of cplus_demangle_v3.
1806 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
1807 command line symbol.
1808
1809 * testsuite/regress-demangle: Pass the mangled name at the
1810 command line.
1811
db248273 18122002-02-01 H.J. Lu <hjl@gnu.org>
1813
1814 * cp-demangle.c (cp_demangle_type): Call demangling_new with
1815 DMGL_GNU_V3.
1816
89a5385c 18172002-01-31 Phil Edwards <pme@gcc.gnu.org>
1818
1819 * cp-demangle.c: Revert yesterday's change.
1820
da383dd4 18212002-01-31 Adam Megacz <adam@xwt.org>
1822
1823 * gcc/libiberty/configure.in: Treat mingw the same as cywin
1824 wrt HAVE_SYS_ERRLIST.
1825
1e72f309 18262002-01-30 Phil Edwards <pme@gcc.gnu.org>
1827
1828 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
1829 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
1830 cp_demangle_type.
1831 * testsuite/demangle-expected: New gnu-v3 test.
1832
2c79f170 18332002-01-22 Momchil Velikov <velco@fadata.bg>
1834
1835 * configure.in (variable detection): Use arrays of unspecified
1836 size instead of plain integers.
1837
98b6fc70 18382002-01-18 DJ Delorie <dj@redhat.com>
1839
1840 * Makefile.in (TESTLIB): New. This library is for future
1841 testsuites.
1842 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
1843 break down by letter.
1844 (REQUIRED_OFILES): List long-to-compile files first.
1845 (maint-deps): New, target for updating dependencies.
1846 (dependencies): Update.
1847 * maint-tool: Add dependency-generating option.
1848 * configure.in: Check for _doprnt even if we're not providing it.
1849 * configure: Regenerate.
1850
1851 * _doprnt.c: Modifications to allow compiling on any platform.
1852 * copysign.c: Likewise.
1853 * putenv.c: Likewise.
1854 * setenv.c: Likewise.
1855 * vsprintf.c: Likewise.
1856
b4eac72f 18572002-01-15 Douglas B Rupp <rupp@gnat.com>
1858
1859 * mkstemps.c (mkstemps): On VMS, open temp file with option
1860 that causes it to be deleted when closed.
1861
7806d7a4 18622002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1863
c077395f 1864 * cp-demangle.c (long_options): Const-ify.
1865 * cplus-dem.c (long_options): Likewise.
1866
7806d7a4 1867 * cplus-dem.c (mystrstr): Delete. All callers changed to use
1868 strstr instead.
1869
936c37fd 18702001-12-31 Ira Ruben <ira@apple.com>
1871
1872 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
1873 * configure: Regenerated.
e9894157 1874
18752001-12-24 Douglas B. Rupp <rupp@gnat.com>
1876
1877 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
1878 * configure: Regenerated.
936c37fd 1879
4e3ed534 18802001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
1881
1882 PR other/2719
1883 * cplus-dem.c (consume_count): Treat negative count as an error.
1884 * testsuite/demangle-expected: Added testcase.
1885
8f966bdb 1886Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
1887
1888 * configure.in: Hardcode that vfork works on VMS host.
1889 * configure: Regenerated.
1890
8d87ccec 18912001-12-06 Richard Henderson <rth@redhat.com>
1892
1893 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
1894 (cplus_demangle): Support no_demangling.
1895
31972771 18962001-11-27 Zack Weinberg <zack@codesourcery.com>
1897
1898 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
1899 in libiberty context. Fix typo in leading comment.
1900 * configure.in: Fix various AC_DEFINEs so autoheader works.
1901 If any of vprintf, vsprintf, vfprintf is missing from libc,
1902 then AC_REPLACE_FUNCS(_doprnt).
1903
8e198eb2 19042001-11-26 DJ Delorie <dj@redhat.com>
31972771 1905 Daniel Jacobowitz <drow@mvista.com>
8e198eb2 1906
1907 * Makefile.in (stamp-h): Depend on Makefile for proper
1908 serialization.
1909 (*-subdir): Depend on config.h for proper serialization.
1910
c660fab8 19112001-11-26 DJ Delorie <dj@redhat.com>
1912
1913 * configure.in: Check for alloca.h (for regex.c and putenv.c).
1914 * configure: Regenerate.
1915 * config.h: Add HAVE_ALLOCA_H.
1916
43eb13f7 19172001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1918
81cea2ab 1919 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
1920 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
1921 is available.
43eb13f7 1922
e9fb7b39 1923Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
1924
7b190504 1925 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
1926 * configure.in (HAVE_UINTPTR_T): Test for system defining
1927 uintptr_t and define HAVE_UINTPTR_T appropriately.
1928 * regex.c (uintptr_t): Do not provide a definition if the
1929 system provided one.
1930
e9fb7b39 1931 * regex.c (PREFIX): Provide an alternate definition for
1932 non-ANSI/ISO compilers.
1933 (ARG_PREFIX): Likewise.
1934
448378fc 19352001-11-12 Jim Meyering <meyering@lucent.com>
1936
1937 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
1938 this code would end up calling gettext even in packages built
1939 with --disable-nls.
1940 * getopt.c (_): Likewise.
1941 * regex.c (_): Likewise.
1942
7c9e70dd 19432001-11-03 Alan Modra <amodra@bigpond.net.au>
1944
1945 * configure.in: Cope with missing makeinfo.
ebfeb892 1946 * configure: Regenerate.
7c9e70dd 1947
a3493641 19482001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1949
e500d428 1950 * hex.c (hex_init): Provide empty stub.
1951
a3493641 1952 * hex.c (hex_init): Delete.
1953 (_hex_value): Const-ify and initialize at compile-time.
1954
3de15244 19552001-10-19 H.J. Lu <hjl@gnu.org>
1956
1957 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
1958 necessary.
1959
f0ed5ac1 19602001-10-17 DJ Delorie <dj@redhat.com>
1961
1962 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
1963 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
0af1044a 1964 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
f0ed5ac1 1965 Improve manual formatting.
1966 * functions.texi: Regenerate.
1967
349e8276 19682001-10-15 DJ Delorie <dj@redhat.com>
1969
1970 * Makefile.in (TEXIFILES): Add fnmatch.txh.
1971 (maint-undoc): New.
1972 maint-tool: Add "undoc" tool.
1973 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
1974 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
1975 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
1976 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
1977 documentation.
1978 * fnmatch.txh: New.
1979 * functions.texi: Regenerate.
8cc9ccc9 1980
8a630ee4 19812001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
1982
1983 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
1984 * strtod.c: Use "ISO C" instead of "ANSI C".
1985 * functions.texi: Regenerate.
1986
a3a8a3df 19872001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
1988
1989 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
1990 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
1991 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
1992 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
1993 spelling. Give names to function arguments in documentation. Use
1994 (void) prototypes in documentation.
1995 * functions.texi: Regenerate.
1996
542e9271 19972001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1998
1999 * argv.c (buildargv, tests, main): Const-ify.
2000 * cp-demangle.c (operator_code): Likewise.
2001 * cplus-dem.c (optable, libiberty_demanglers,
2002 cplus_demangle_set_style, cplus_demangle_name_to_style,
2003 print_demangler_list): Likewise.
2004 * hashtab.c (higher_prime_number): Likewise.
2005 * strcasecmp.c (charmap): Likewise.
2006 * strerror.c (error_info, strerror, main): Likewise.
2007 * strncasecmp.c (charmap): Likewise.
2008 * strsignal.c (signal_info): Likewise.
2009
5b7836cc 20102001-09-29 DJ Delorie <dj@redhat.com>
2011
2012 * configure: Regenerate.
2013
e7faea46 20142001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2015
2016 * concat.c: Include stdlib.h.
2017
997fdf4a 20182001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2019
2020 * libiberty.texi: (Top level): Add syncodeindex pg. Add
2021 @dircategory and @direntry directives. Add @finalout.
2022 (many nodes): Lose the next,prev,up pointers on the @nide line.
2023 (Using, Supplemental Functions, Replacement Functions): Fix
2024 markup.
2025 (Functions): Move around, to allow makeinfo to build the manual
2026 without next,prev,up pointers in thye node lines.
2027 (Licenses): Fix typos.
2028
2029 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
2030 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
2031 * functions.texi: Regenerate.
2032
2033 * copying-lib.texi: Lose the next,prev,up pointers on the @node
2034 line.
2035
eb765d0c 20362001-09-27 DJ Delorie <dj@redhat.com>
2037
2038 * configure.in: Don't use in-tree texinfo, because libiberty must
2039 be built before it. Check for makeinfo version 4 or higher.
2040 * functions.texi: Regenerate.
8cc9ccc9 2041
614a23c6 20422001-09-20 DJ Delorie <dj@redhat.com>
2043 Phil Edwards <pedwards@disaster.jaj.com>
8cc9ccc9 2044
614a23c6 2045 * configure.in (MAKEINFO, PERL): Detect these.
2046 (--enable-maintainer-mode): Add.
2047 * configure: Regenerate.
2048 * Makefile.in (MAKEINFO, PERL): Define.
2049 (libiberty.info, libiberty.dvi, libiberty.html): New.
2050 (CFILES): Add bsearch.c.
2051 (CONFIGURED_OFILES): New, list of objects configure might add.
2052 (maint-missing, maint-buildall): New, for maintainers only.
2053 (clean, mostlyclean): Add info/dvi/html files.
2054 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
2055 * gather-docs: New, for maintainers.
2056 * maint-tool: New, for maintainers.
2057 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
2058 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
2059 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
2060 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
2061 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
2062 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
2063 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
2064 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
2065 documentation.
8cc9ccc9 2066
92f03c00 20672001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2068
2069 * concat.c (reconcat): Fix for traditional C.
2070
0be2ebc7 20712001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2072
2073 * concat.c (reconcat): New function.
2074
add62f6a 20752001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2076
9659201a 2077 * concat.c (vconcat_length, vconcat_copy, concat_length,
2078 concat_copy, concat_copy2): New functions.
2079 (concat): Use vconcat_length/vconcat_copy.
2080
add62f6a 2081 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
2082 Define.
2083
2bfbbd2b 20842001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2085
2086 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
2087 VA_FIXEDARG & VA_CLOSE.
8cc9ccc9 2088
2bfbbd2b 2089 * vasprintf.c: Check HAVE_STRING_H when including string.h.
2090 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
2091 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
2092
68036f05 20932001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2094
2095 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
2096
958cb671 20972001-08-23 Ulrich Drepper <drepper@redhat.com>
2098
2099 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
2100
21012001-08-23 Ulrich Drepper <drepper@redhat.com>
2102
2103 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2104 instead of mbrtowc.
2105 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2106 wcslen, and __wcscoll instead of wcscoll.
2107
b266b68b 21082001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2109
ff02de61 2110 * fibheap.c (fibheap_init, fibnode_init): Remove.
2111 (fibheap_new, fibnode_new): Use xcalloc to allocate and
2112 initialize memory.
2113 (fibheap_insert): Remove check for node allocation failure.
b266b68b 2114
c6028964 21152001-08-21 Richard Henderson <rth@redhat.com>
2116
2117 * Makefile.in (fibheap.o): Depend on config.h.
2118 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
2119 functions for inlining.
2120
3652f680 2121Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
2122
2123 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
2124 hosting on cygwin.
2125 * configure: Regenerate.
2126
95f0a124 21272001-08-20 Andrew Cagney <ac131313@redhat.com>
2128
2129 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
2130 HARRIS_FLOAT_FORMAT.
2131 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
2132 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
2133 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
2134 (floatformat_m88110_harris_ext): New float formats.
2135
522a00cd 21362001-08-20 Daniel Berlin <dan@cgsoftware.com>
2137
2138 * fibheap.c: New file. Fibonacci heap.
2139
2140 * Makefile.in (CFILES): Add fibheap.c.
2141 (REQUIRED_OFILES): Add fibheap.o.
2142 (fibheap.o): Add dependencies for fibheap.o.
2143
6a51e4c4 21442001-08-17 Christopher Faylor <cgf@cygnus.com>
2145
2146 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
2147 * configure: Regenerate.
2148
80f07f6c 21492001-08-16 Richard Henderson <rth@redhat.com>
2150
2151 * hashtab.c (htab_hash_string): New.
2152
e9106811 21532001-08-13 Andrew Cagney <ac131313@redhat.com>
2154
2155 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
2156 name.
2157
458e9fd0 21582001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
2159
2160 * regex.c (wcs_regex_compile): Use appropriate string
2161 to compare with collating element.
2162 Fix the padding for the alignment.
2163
da8a7320 21642001-08-10 Andrew Cagney <ac131313@redhat.com>
2bce2a69 2165
2166 * lbasename.c (lbasename): Change function definition to return a
2167 const char pointer.
2168
6539a5d8 21692001-08-07 Jason Merrill <jason_merrill@redhat.com>
2170
2171 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
2172 for".
2173
2644ae20 21742001-08-03 Richard Henderson <rth@redhat.com>
2175
2176 * Makefile.in (concat.o): Depend on config.h.
2177
6c9ffcbc 21782001-07-30 Andreas Jaeger <aj@suse.de>
2179
2180 * concat.c: Include "config.h".
2181
9f21bac8 21822001-07-30 Andreas Jaeger <aj@suse.de>
2183
2184 * regex.c: Declare wcs functions only if compiling with
2185 MBS_SUPPORT.
2186 Don't use #elif for traditional C.
2187
21882001-07-23 Ulrich Drepper <drepper@redhat.com>
2189
2190 * regex.c: Revamp memory allocation for WCHAR functions to
2191 not use too much stack.
2192
21932001-07-30 Andreas Jaeger <aj@suse.de>
2194
2195 * regex.c: Declare wcs functions only if compiling with
2196 MBS_SUPPORT.
2197 Don't use #elif for traditional C.
2198
2bbbdf1a 21992001-07-25 Daniel Jacobowitz <drow@mvista.com>
2200
2201 * Makefile.in (regex.o): Add dependency on config.h.
2202
b92e80db 22032001-07-18 Andreas Schwab <schwab@suse.de>
2204
2205 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
2206 underscore character.
2207
22082001-07-18 Ulrich Drepper <drepper@redhat.com>
2209
2210 * regex.c: Limit string length printed in debug messages to 100
2211 chars.
2212
22132001-07-18 Andreas Jaeger <aj@suse.de>
2214
2215 * regex.c: Place under LGPL version 2.1.
2216
7703a7de 22172001-07-10 Jeff Johnston <jjohnstn@redhat.com>
2218
2219 * Makefile.in: Add support for regex code.
2220 * regex.c: New file.
2221
8568af22 22222001-07-05 Mark Klein <mklein@dis.com>
2223
2224 * Makefile.in: Add ffs.c dependency.
2225 * configure.in: Add ffs.c.
2226 * ffs.c: New file.
2227
c1a60b7d 22282001-06-18 Richard Henderson <rth@redhat.com>
2229
2230 * concat.c: Include <sys/types.h>.
2231
66806be2 22322001-06-11 Loren J. Rittle <ljrittle@acm.org>
2233
2778f1dc 2234 bootstrap/3106
66806be2 2235 * strerror.c (sys_nerr): Hide the OS header version.
2236 * strsignal.c (sys_nsig): Likewise.
2237
222ce6b9 22382001-06-10 Richard Henderson <rth@redhat.com>
2239
2240 * concat.c: Include string.h. Fix int vs size_t usage.
2241 Simplify the iteration loops. Use memcpy.
2242
cb6758b9 22432001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2244
2245 * partition.c: Fix misspelling of `implementation'.
2246
091eef96 22472001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2248
2249 * md5.c (md5_init_ctx): Declare constants as unsigned.
2250 (md5_process_block): Likewise.
2251
e5f55ef4 22522001-05-07 Zack Weinberg <zackw@stanford.edu>
2253
2254 * cp-demangle.c (demangle_v3_with_details,
2255 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
2256 function definition.
2257 * ternary.c: Use K+R style function definitions. Use PTR, not
2258 void *. Make arguments constant where possible.
2259
c99b4ef9 22602001-05-07 Mark Mitchell <mark@codesourcery.com>
2261
2262 * splay-tree.h (splay_tree_max): New function.
2263 (splay_tree_min): Likewise.
2264
eec19420 22652001-04-15 Daniel Berlin <dan@cgsoftware.com>
2266
2267 * ternary.c: New file - Ternary search tree implementation.
2268
2269 * Makefile.in: Add ternary.o, and ternary.c dependencies.
2270
673b6e5a 22712001-04-03 Zack Weinberg <zackw@stanford.edu>
2272
2273 * make-temp-file.c (try): Inline.
2274
b8f02fb2 22752001-02-28 Richard Henderson <rth@redhat.com>
2276
2277 * Makefile.in (make-temp-file.o): Depend on config.h.
2278
b130ede9 22792001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2280
2281 * memchr.c (memchr): Adjust condition to avoid infinite loop.
2282
5a4fcef0 22832001-03-23 Jakub Jelinek <jakub@redhat.com>
2284
2285 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
2286 `_' not followed by a digit is invalid.
2287
c83c8218 22882001-03-22 Jim Blandy <jimb@redhat.com>
2289
2290 * cp-demangle.c (string_list_delete): Use dyn_string_delete
2291 instead of free, to free the contents as well as the string
2292 structure.
2293
7e660a1b 22942001-03-21 Zack Weinberg <zackw@stanford.edu>
2295
2296 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
2297 Don't default P_tmpdir to anything. Try /var/tmp before
2298 /usr/tmp.
2299
e6351181 23002001-03-20 Zack Weinberg <zackw@stanford.edu>
2301
2302 * choose-temp.c: Split off make_temp_file, and the code
2303 duplicated between it and choose_temp_base, into...
2304 * make-temp-file.c: ... here; new file.
2305
2306 * Makefile.in (CFILES): Add make-temp-file.c.
2307 (REQUIRED_OFILES): Add make-temp-file.o.
2308
3a18c9fc 23092001-03-20 Jim Blandy <jimb@redhat.com>
2310
2311 * cp-demangle.c (struct demangling_def): New fields:
2312 is_constructor and is_destructor.
2313 (demangling_new): Initialize them.
2314 (demangle_ctor_dtor_name): Set them, if we detect a constructor
2315 or destructor.
2316 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
2317 is_gnu_v3_mangled_dtor): New functions.
2318
d219f684 23192001-03-20 Jason Merrill <jason@redhat.com>
2320
2321 * cplus-dem.c (main): Skip initial $.
2322
dfc58e62 23232001-03-15 Michael Meissner <meissner@redhat.com>
2324
2325 * hashtab.c (higher_prime_number): Silence warning that 4294967291
2326 might be a signed integer under pre-ISO C systems.
2327
0bce9b89 23282001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
2329 John David Anglin <dave@hiauly1.hia.nrc.ca>
2330
2331 * libiberty/lbasename.c: New file.
2332 * libiberty/Makefile.in: Update for lbasename.
2333
012f1707 23342001-03-06 Zack Weinberg <zackw@stanford.edu>
2335
2336 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
2337 * configure.in: Replace all alloca logic with a simple use of
2338 the above new macro.
2339 * config.table: Kill *-*-beos* entry.
2340 * config/mh-beos: Delete.
2341 * configure, config.in: Regenerate.
2342
2343 * Makefile.in (ALLOCA, HFILES): Kill.
2344 (REQUIRED_OFILES): Add alloca.o.
2345 (alloca.o): Depend on libiberty.h.
2346 (argv.o): Don't depend on alloca-conf.h.
2347 * alloca-conf.h: Delete.
2348 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
2349 blocks. Provide the C alloca unconditionally. Use PTR where
2350 appropriate. Make i00afunc static.
2351 * argv.c: Don't include alloca-conf.h.
2352
163369e7 23532001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2354
2355 * cplus-dem.c (main): Cast enum style to int.
2356
39fb1bb6 23572001-02-16 Loren J. Rittle <ljrittle@acm.org>
2358
2359 * cplus-dem.c (main): Initialize style.
2360
bace101a 23612001-02-02 Phil Edwards <pme@sources.redhat.com>
2362
2363 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
2364
1c1033dd 23652001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
2366
2367 Add support for Java demangling under the v3 ABI:
2368 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
2369 (struct demangling_def): Add `style' field.
2370 (demangling_new): New parameter `style'. Set it in demangling_t.
2371 (demangle_prefix): Use NAMESPACE_SEPARATOR.
2372 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
2373 (cp_demangle): New parameter `style'. Pass it to demangling_new().
2374 (main): Call cp_demangle with extra parameter.
2375 (java_demangle_v3): New function.
2376 (java_builtin_type_names): New. Table of primitive type names used
2377 for Java demangling.
2378 (demangle_builtin_type): Look up in java_builtin_type_names if doing
2379 Java output.
012f1707 2380 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
1c1033dd 2381 demangling.
2382 (long_options): Remove obsolete `java' option.
2383 (main): Remove explicit handling of `java' option. Instead, pass style
2384 parameter in cplus_demangle flags as gdb does.
2385 * testsuite/demangle.expected: Add some Java test cases.
2386
fec9182b 23872000-12-29 DJ Delorie <dj@redhat.com>
2388
2389 * fnmatch.c: Make the note about the origins of this file more
2390 accurate, at least until we can sync with glibc.
2391 * getopt.c: Ditto.
2392 * getopt1.c: Ditto.
2393 * md5.c: Ditto.
2394 * obstack.c: Ditto.
2395
5b9c32cc 23962000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2397
2398 * bsearch.c: New file.
2399 * configure.in (funcs): Add bsearch.
2400 (AC_CHECK_FUNCS): Likewise.
2401 * configure, config.in: Regenerate.
2402
a973e2b1 24032000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2404
2405 * safe-ctype.c: #include "ansidecl.h".
2406 * strtod.c: Likewise.
2407
14282c1a 24082000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2409
2410 * strtoul.c: Include safe-ctype.h, not ctype.h.
2411
93ce8ce4 24122000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
2413
2414 * safe-ctype.c: New file.
2415 * Makefile.in (CFILES): Add safe-ctype.c.
2416 (REQUIRED_OFILES): Add safe-ctype.o.
2417
2418 * argv.c: Define ISBLANK and use it, not isspace.
2419 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
2420 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
2421 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
2422 before calling TOLOWER(c)/TOUPPER(c).
2423
be6afa8f 24242000-12-07 Mike Stump <mrs@wrs.com>
e5fb0a98 2425
2426 * Makefile.in (distclean): When cleaning, remove testsuite.
2427
cf0ad6a8 24282000-12-05 Jason Merrill <jason@redhat.com>
2429
2430 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
2431 name before allocating the dyn_string.
2432
bb505139 24332000-12-04 Jason Merrill <jason@redhat.com>
2434
2435 * cp-demangle.c: s/new_abi/v3/.
2436 * cplus-dem.c: Likewise.
2437 (current_demangling_style): Now auto_demangling.
2438 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
93ce8ce4 2439 (main): Use standard symbol chars for auto_demangling.
bb505139 2440
54b3a5af 24412000-11-26 Mark Mitchell <mark@codesourcery.com>
2442
2443 * hashtab.c (higher_prime_number): Use a table, rather than a
2444 seive, to find the next prime.
2445
9628d706 24462000-11-22 H.J. Lu <hjl@gnu.org>
2447
2448 * cplus-dem.c (main): Handle gnat_demangling.
2449
ec255163 24502000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2451
2452 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
2453 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
2454 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
2455 argument form of AC_DEFINE in dummy definitions block. Use
2456 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
2457 in dummy block. Preload cache variables instead of bypassing
2458 tests, where possible.
2459 * acconfig.h: Removed.
2460
2461 * xmalloc.c (xmalloc_failed): New function, does error
2462 reporting on failed allocation.
2463 (xmalloc, xcalloc, xrealloc): Use it.
2464
626946fb 24652000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
2466
2467 * cplus-dem.c (cplus_demangle): Fix formatting.
2468 (grow_vect): Ditto.
2469 (ada_demangle): Ditto.
2470 (internal_cplus_demangle): Ditto.
2471 (mop_up): Ditto.
2472
24732000-11-21 H.J. Lu <hjl@gnu.org>
2474
2475 * cplus-dem.c (main): Handle java_demangling.
2476
918a89ef 24772000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2478
2479 * cplus-dem.c (grow_vect): Prototype.
2480 (ada_demangle): Cast the arg of ctype macros to unsigned char.
2481
582f72ad 24822000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
2483
2484 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
2485 parameter `option'.
2486
0d6e3c59 24872000-11-15 Kenneth Block <kenneth.block@compaq.com>
2488
42ded3a1 2489 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0d6e3c59 2490 be used in GCC.
2491
9df8b754 24922000-11-15 Kenneth Block <kenneth.block@compaq.com>
d7c1c148 2493
582f72ad 2494 * cplus-dem.c: Add gnat demangler. Add java to demangle style
d7c1c148 2495 list.
2496
e4c2dc6e 24972000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
2498
2499 * hashtab.c (htab_expand): Change to return int. Use calloc or
9f21bac8 2500 xcalloc depending on htab->return_allocation_failure. Return zero
2501 if calloc fails.
e4c2dc6e 2502 (htab_create): Update comment to cover memory allocation.
2503 (htab_try_create): New.
2504 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
9f21bac8 2505 Update comment to cover this.
e4c2dc6e 2506
696d6593 25072000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
2508
2509 * hashtab.c: Change void * to PTR where necessary.
2510 (htab_create, htab_expand): Correct formatting of comment before
2511 function.
2512
8f2b45d4 25132000-10-22 Alex Samuel <samuel@codesourcery.com>
f99edf23 2514
2515 * cp-demangle.c (string_list_def): Add caret_position and comments.
2516 (result_caret_pos): New macro.
2517 (result_append_string): Rename to...
2518 (result_add_string): ... this, and insert at caret position.
ec255163 2519 Rename throughout.
f99edf23 2520 (result_append): Rename to...
2521 (result_add): ... this, and insert at caret position. Rename
ec255163 2522 throughout.
f99edf23 2523 (result_append_char): Rename to...
2524 (result_add_char): ... this, and insert at caret position. Rename
ec255163 2525 throughout.
f99edf23 2526 (result_append_space): Remove.
2527 (string_list_new): Initialize caret position.
2528 (result_add_separated_char): Use caret position.
2529 (result_get_caret): New funtion.
2530 (result_set_caret): Likewise.
2531 (result_shift_caret): Likewise.
2532 (result_previous_char_is_space): Likewise.
2533 (substitution_start): Use caret position.
2534 (substitution_add): Likewise.
2535 (demangling_new): Initialize caret position.
2536 (demangle_encoding): Use caret position.
ec255163 2537 (demanglin_nested_name): Put CV qualifiers after name.
f99edf23 2538 (demangle_type_ptr): Use switch statement. Handle pointers to
2539 arrays. Don't use result_append_space. Use caret position.
2540 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ec255163 2541 call to demangle_array_type.
2542 (demangle_array_type): Add parameter to handle pointers to arrays.
2543
a4e59c31 25442000-10-01 Mark Mitchell <mark@codesourcery.com>
2545
2546 * splay-tree.c (splay_tree_insert): Fix formatting.
2547
e41f0d80 25482000-09-16 Mark Mitchell <mark@codesourcery.com>
2549
2550 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
2551
83d86ada 25522000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2553
2554 * splay-tree.c: #include <stdio.h>.
2555
78631810 25562000-09-14 Hans-Peter Nilsson <hp@axis.com>
2557
2558 * testsuite/demangle-expected: Add two tests for anonymous
2559 namespaces.
2560 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
2561
508f18c8 25622000-09-10 Mark Mitchell <mark@codesourcery.com>
2563
2564 * splay-tree.c (splay_tree_predecessor): New function.
2565 (splay_tree_successor): Likewise.
2566
1a2d2193 25672000-09-10 Hans-Peter Nilsson <hp@axis.com>
2568
2569 * testsuite/demangle-expected: Add four tests for type_info
2570 mangling.
1a2d2193 2571 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
2572 for a non-template non-qualified type_info function or node.
2573
09656987 25742000-09-08 Alex Samuel <samuel@codesourcery.com>
2575
2576 * cp-demangle.c: Fix copyright banner.
2577
7cc2d24b 25782000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2579
2580 * md5.c: #include "ansidecl.h".
2581
b83e8722 25822000-09-06 Alex Samuel <samuel@codesourcery.com>
2583
2584 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
2585 (demangle_type): Handle substitution candidates correctly in the
2586 face of special substitutions.
2587
cf70278e 25882000-09-05 Alex Samuel <samuel@codesourcery.com>
2589
2590 * cp-demangle.c (demangle_encoding): Rename variable.
2591 (demangle_name): Rename parameter. Handle return type
2592 suppression.
2593 (demangle_nested_name): Rename parameter.
2594 (demangle_prefix): Likewise. Change return type suppression.
2595 (demangle_unqualified_name): Add parameter. Flag constructors and
2596 conversion operators.
2597 (demangle_special_name): Fix comment.
2598 (demangle_type): Rename variable.
2599 (demangle_bare_function_type): Check for missing return type and
ec255163 2600 parameter.
cf70278e 2601 (demangle_class_enum_type): Rename parameter.
2602 (demangle_discriminator): Fix misspelling in comment.
2603
4aabc076 26042000-08-31 DJ Delorie <dj@redhat.com>
2605
2606 * configure.in (Cygwin): special case cygwin only when we're
2607 building cygwin, not when we're hosting cygwin.
2608
804ddfd1 26092000-09-04 Alex Samuel <samuel@codesourcery.com>
2610
2611 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
ec255163 2612 <expression>.
2613
e015a852 26142000-09-04 Alex Samuel <samuel@codesourcery.com>
2615
2616 * cp-demangle.c (demangle_type_ptr): Increment position past
2617 pointer and reference characters.
2618
2b6805b4 26192000-09-04 Alex Samuel <samuel@codesourcery.com>
2620
2621 * cp-demangle.c (demangle_nv_offset): New function.
2622 (demangle_v_offset): Likewise.
2623 (demangle_call_offset): Likewise.
2624 (demangle_special_name): Update thunk demangling to comply with
2625 ABI changes.
ec255163 2626
40e00cb0 26272000-09-03 Alex Samuel <samuel@codesourcery.com>
2628
2629 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
2630 (substitution_def): Remove template_parm_number.
2631 (NOT_TEMPLATE_PARM): Remove.
2632 (result_insert_string): New macro.
2633 (result_insert): Likewise.
2634 (result_insert_char): Likewise.
2635 (substitution_add): Remove last parameter. Don't store template
ec255163 2636 parm number.
40e00cb0 2637 (BFT_NO_RETURN_TYPE): Define as NULL.
2638 (demangle_encoding): Adjust call to demangle_bare_function_type.
2639 (demangle_name): Adjust substitution. Adjust call to
ec255163 2640 substitution_add.
40e00cb0 2641 (demangle_prefix): Adjust call to substitution_add.
2642 (demangle_identifier): Handle anonymous namespaces.
2643 (demangle_operator_name): Change demangling of vendor-extended
2644 operator to match ABI changes.
2645 (demangle_type_ptr): Change parameters. Make recursive. Handle
ec255163 2646 substitutions here.
40e00cb0 2647 (demangle_type): Adjust calls to demangle_template_param,
2648 substitution_add, and demangle_type_ptr. Fix substitution of
2649 templated types.
2650 (demangle_function_type): Change parameter to a pointer.
2651 (demangle_bare_function_type): Likewise. Adjust insertion point.
2652 (demangle_template_param): Remove last parameter.
2653 (demangle_expr_primary): Remove unused variable. Adjust call to
ec255163 2654 demangle_template_param.
40e00cb0 2655 (is_mangled_char): Accept `$' and `.'.
2656 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
2657 * dyn-string.c (dyn_string_insert_char): New function.
2658
01f404a2 26592000-08-31 Hans-Peter Nilsson <hp@axis.com>
2660
2661 * testsuite/demangle-expected: Add nine tests for
2662 underscore-after-number followed by five tests for name-signature
2663 delimiter.
2664
d74245d4 26652000-08-28 Richard Henderson <rth@cygnus.com>
2666
2667 * Makefile.in (md5.o): Depend on config.h.
2668
19f716e5 26692000-08-28 Jason Merrill <jason@redhat.com>
2670
2671 * Makefile.in (REQUIRED_OFILES): Add md5.o.
2672 (CFILES): Add md5.c.
2673 * md5.c: New file.
2674
f8aeab41 26752000-08-27 Alex Samuel <samuel@codesourcery.com>
2676
2677 * cp-demangle.c (demangle_name): Initialize template_p in local
2678 name case. Don't re-add substitutions as candidates.
2679 (demangle_nested_name): Use <unqualified-name>.
2680 (demangle_prefix): Likewise. Don't add template names as
2681 substitution candidates twice, or re-add a substitution or the
2682 last prefix component.
2683 (demangle_local_name): Adjust output format.
2684
62c2feed 26852000-08-25 Alex Samuel <samuel@codesourcery.com>
2686
2687 * cp-demangle.c (result_add_separated_char): Change parameter to
2688 int.
2689 (substitution_add): Don't check for duplicates. Check if
2690 previously allocated size is zero.
2691 (demangle_name): Remove duplicate check for std substitution.
2692 Clear template flag appropriately.
2693 (demangle_prefix): Remove argument to demangle_substitution.
2694 Don't check that template flag is already set.
2695 (demangle_operator_name): Add pt operator.
2696 (demangle_type): Don't treat r as built-in type. Remove argument
2697 to demangle_substitution. Fix substitution candidate mechanics.
2698 Handle <template-template-parm>s. Improve comments.
ec255163 2699 (demangle_template_param): Don't handle template arg lists here.
62c2feed 2700 (demangle_substitution): Remove parameter.
2701 (print_usage): Remove extra fprintf option.
2702
ee1d4c3d 27032000-08-24 Greg McGary <greg@mcgary.org>
2704
2705 * libiberty/random.c (end_ptr): Revert previous change.
2706
f0bff53d 27072000-08-24 Greg McGary <greg@mcgary.org>
2708
2709 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
2710 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
2711 * libiberty/random.c (end_ptr): Likewise.
2712
c1b316c0 27132000-08-23 Alex Samuel <samuel@codesourcery.com>
2714
2715 * cp-demangle.c (result_close_template_list): Remove function.
2716 (result_add_separated_char): New function.
2717 (result_open_template_list): New macro.
2718 (result_close_template_list): Likewise.
2719 (demangle_prefix): Don't set template_p if the
2720 prefix ends with a ctor name.
2721 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
2722 (demangle_type): Check for template args after substitution.
2723 (demangle_template_args): Use result_open_template_list.
ec255163 2724
385b48fc 27252000-08-02 Zack Weinberg <zack@wolery.cumb.org>
2726
2727 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
2728
ec255163 27292000-07-26 Dave Pitts <dpitts@cozx.com>
ba886691 2730
2731 * config/mh-openedition.h: Added -DLE370 definition.
2732
8fc0efd2 27332000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
2734
2735 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
2736 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
2737 Cast program to 'char *' in errmsg_arg assignment.
2738 (PWAIT_ERROR): Define.
2739 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
2740 to DJGPP's WIF* macros.
2741
a1d4f79a 27422000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
2743 Jeff Law <law@cygnus.com>
2744
98b4c197 2745 * getcwd.c: Include string.h, stdlib.h for prototypes
2746
a1d4f79a 2747 * Makefile.in (rename.o, waitpid.o): Depend on config.h
98b4c197 2748 * rename.c: Include config.h, unistd.h
2749 * waitpid.c: Include config.h, sys/wait.h
a1d4f79a 2750
01f404a2 27512000-07-24 Hans-Peter Nilsson <hp@axis.com>
2752
2753 * cplus-dem.c (work_stuff_copy_to_from): New.
2754 (delete_non_B_K_work_stuff): New.
2755 (delete_work_stuff): New.
2756 (mop_up): Break out work_stuff partly destruction to
2757 delete_non_B_K_work_stuff.
2758 (iterate_demangle_function): New.
2759 (demangle_prefix): Call iterate_demangle_function instead of
2760 demangle_function_name. Leave handling of name-signature
2761 __-delimiters to iterate_demangle_function.
2762 (demangle_integral_value): Strip an optional
2763 following underscore cautiously. Handle negative numbers.
2764
f2e5a608 27652000-07-24 Daniel Berlin <dberlin@redhat.com>
2766
ec255163 2767 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
f2e5a608 2768 if (AUTO_DEMANGLING || GNU_DEMANGLING)
2769
65bcf503 27702000-07-21 Alex Samuel <samuel@codesourcery.com>
2771
2772 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
2773 allocating ctor mangling.
2774 (demangle_array_type): Handle empty and non-constant array length.
2775
68e6b6e1 27762000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
a451eef0 2777 Jeff Law <law@cygnus.com>
2778
1a163ca8 2779 * configure.in (AC_CHECK_HEADERS): Add time.h.
2780 (AC_HEADER_TIME): Add check.
2781 * configure, config.in: Regenerate.
2782 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
2783
a451eef0 2784 * configure.in (AC_CHECK_HEADERS): Add limits.h.
2785 * configure, config.in: Regenerate.
2786 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
2787 * strtol.c, strtoul.c: #include "config.h". Portably #include
2788 <limits.h> and/or <sys/param.h>.
2789 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
68e6b6e1 2790
fb758229 2791 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
2792 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
2793 * configure, config.in: Regenerate.
2794 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
2795
68e6b6e1 2796 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
2797
ad46fec4 27982000-07-21 Mike Stump <mrs@wrs.com>
2799
2800 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
7b23d366 2801 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
ad46fec4 2802
bb37062f 28032000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2804
2805 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
2806
2807 * setenv.c (setenv): Initialize variable `ep'.
2808
2809 * sigsetmask.c (abort): Prototype.
2810
2811 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
2812 __STDC__ for stdarg.h include.
2813 (int_vasprintf): Prototype.
2814 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
2815 definition. Cast `global_total_width' in comparison.
2816 (main): Prototype. Return a value.
2817
2818 * vfork.c (fork): Prototype.
2819
2820 * xexit.c: Include config.h.
2821
6cb730c2 28222000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
2823
2824 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
2825 and print it with %u.
2826
e42d7fe1 28272000-07-17 Hans-Peter Nilsson <hp@axis.com>
2828
2829 * testsuite/regress-demangle (failed test): Show result and
2830 expected output.
2831
04ef60ef 28322000-07-07 Andrew Haley <aph@cygnus.com>
2833
2834 * cplus-dem.c (main): fflush() after emitting last char before
2835 waiting for input.
2836
b7f68aff 28372000-06-28 Alex Samuel <samuel@codesourcery.com>
2838
2839 * cp-demangle.c (demangle_encoding): Accept no substitutions.
2840 (demangle_name): Handle <substitution> followed by
2841 <unqualified-template-name>.
2842 (demangle_type): Follow special substitutions with
2843 <class-enum-type>
2844 (demangle_subtitution): Set template_p for special substitutions.
2845 (main): Fix typos.
ec255163 2846
597f928d 28472000-06-27 Alex Samuel <samuel@codesourcery.com>
2848
2849 * cp-demangle.c (demangle_special_name): Swap base and derived
2850 class when demangling construction vtables.
2851
140d75d7 28522000-06-21 Alex Samuel <samuel@codesourcery.com>
2853
2854 * cp-demangle.c: Don't include ctype.h.
2855 (IS_DIGIT): New macro.
2856 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
2857 instead of isdigit and isalpanum.
2858 (demangling_def): Make name and next const pointers.
2859 (STATUS_ALLOCATION_FAILED): New status code.
2860 (dyn_string_append_space): Handle failure in
2861 dyn_string_append_char.
2862 (int_to_dyn_string): Likewise. Change return value to status_t.
2863 (string_list_new): Handle failure of dyn_string_init.
2864 (result_close_template_list): Change return type to status_t.
2865 Handle failure in dyn_string_append.
2866 (result_push): Change return value to status_t. Handle failure in
2867 string_list_new. Handle failure of result_push throughout.
2868 (substitution_add): Change return value to status_t. Handle
2869 dyn_string failures. Handle failure of substitution_add
2870 throughout.
2871 (template_arg_list_new): Return NULL on allocation failure.
2872 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
2873 Handle error result throughout.
2874 (result_append): Likewise.
2875 (result_append_char): Likewise.
2876 (result_append_space): Likewise.
2877 (demangling_new): Make argument a const pointer. Handle
2878 allocation failures.
2879 (demangle_template_args): Handle failure in template_arg_list_new
2880 and result_close_template_list.
2881 (demangle_discriminator): Return if int_to_dyn_string fails.
2882 (cp_demangle): Likewise.
2883 (cp_demangle_type): New function.
2884 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
2885 memory allocation failure.
2886 (main): Likewise.
2887 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
2888 IN_LIBGCC2.
2889 (dyn_string_init): Change return value to int. Handle
2890 RETURN_ON_ALLOCATION_FAILURE case.
2891 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
2892 (dyn_string_release): Delete the dyn_string.
2893 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
2894 (dyn_string_copy): Change return type to int.
2895 (dyn_string_copy_cstr): Likewise.
2896 (dyn_string_prepend): Likewise.
2897 (dyn_string_prepend_cstr): Likewise.
2898 (dyn_string_insert): Likewise.
2899 (dyn_string_insert_cstr): Likewise.
2900 (dyn_string_append): Likewise.
2901 (dyn_string_append_cstr): Likewise.
2902 (dyn_string_append_char): Likewise.
2903 (dyn_string_substring): Likewise.
ec255163 2904
210aba33 29052000-06-09 Zack Weinberg <zack@wolery.cumb.org>
2906
2907 * cp-demangle.c (demangle_operator_name): Add spaces before
2908 names beginning with a letter: delete, delete[], new, new[],
2909 sizeof.
2910 (demangle_special_name): Handle TF <type> and TJ <type>.
2911
0b4450c1 2912Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
2913
2914 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
2915
e5d6924a 2916Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
2917
2918 * cp-demangle.c (stdio.h): File included unconditionaly.
2919 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
2920 * dyn-string.c (stdio.h): File included.
2921 * partition.c (partition_print): No `&' needed to take the address of
2922 a function.
2923
da8bd873 29242000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2925
2926 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ec255163 2927
da8bd873 2928 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
2929
2930 * cp-demangle.c (demangle_char): Change parameter from char to int.
2931 (demangle_expression, demangle_expr_primary): Remove extra
2932 semi-colon in prototype.
2933
2934 * dyn-string.c (dyn_string_append_char): Change parameter from
2935 char to int.
2936
2937 * memcmp.c (memcmp): Constify.
2938
2939 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
2940 __extension__.
2941
2942 * partition.c (elem_compare): Prototype. Don't cast away
2943 const-ness.
2944
2945 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ec255163 2946
4b7bc488 29472000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2948
2949 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
2950
2951 * cp-demangle.c: Include demangle.h.
2952 (template_arg_list_new): DeANSIfy.
2953 (cp_demangle): Make static and add prototype.
2954 (operator_code, operators): Constify.
2955 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
2956
7ae7b54c 29572000-06-05 Alex Samuel <samuel@codesourcery.com>
2958
2959 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
2960 unsigned char.
2961 (demangle_unqualified_name): Likewise.
2962 (demangle_number_literally): Likewise.
2963 (demangle_type): Likewise.
2964 (demangle_substitution): Likewise.
2965 (is_mangled_char): Likewise, for isalnum.
2966
168d63e5 29672000-06-04 Alex Samuel <samuel@codesourcery.com>
2968
2969 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
2970 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
2971 (cp-demangle.o): New dependency.
2972 (dyn-string.o): Likewise.
2973
2974 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
2975
2976 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
2977 demangler.
2978 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
2979 demangling mode.
2980 (gnu_new_abi_symbol_characters): New function.
2981 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
2982 file.
2983 * cp-demangle.c: New file.
ec255163 2984
b5495c1d 2985Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
2986
2987 * floatformat.c: Add name to each floatformat field.
2988
8fab1737 2989Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
2990
2991 * Makefile.in (objalloc.o): Depend on config.h
2992
317ab997 29932000-05-29 Zack Weinberg <zack@wolery.cumb.org>
2994
2995 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
2996 if HAVE_STRING_H.
2997 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
2998 * objalloc.c: Include config.h. Include stdlib.h and don't
2999 declare malloc or free if HAVE_STDLIB_H.
3000 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
3001 else declare malloc without prototype. Include string.h if
3002 HAVE_STRING_H, else declare memset without prototype. Don't
3003 include stddef.h.
3004
874478ba 30052000-05-23 Mike Stump <mrs@wrs.com>
3006
3007 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
9f21bac8 3008 -j3.
874478ba 3009
55de1520 30102000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3011
3012 * xmalloc.c: Include config.h for HAVE_SBRK definition.
3013
e51b357b 30142000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
3015
ec255163 3016 * hashtab.c (hash_pointer): Delete low-order bits which are
e51b357b 3017 probably zero, also eliminate a warning on alpha.
3018
9e362499 30192000-05-15 David Edelsohn <edelsohn@gnu.org>
3020
e390e838 3021 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
9e362499 3022 on $(enable_shared).
3023
06c6487f 30242000-05-10 Jakub Jelinek <jakub@redhat.com>
3025
3026 * config.table: Use mh-sparcpic for sparc*-*-*.
3027
0baf89fb 30282000-05-08 Nick Clifton <nickc@cygnus.com>
3029
3030 * Makefile.in (CFILES): Add strncmp.c.
3031 (NEEDED): Add strncmp.
3032
59f72e4d 30332000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3034
3035 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
3036 Cast the arguments to `islower' to `unsigned char'.
3037 (print_demangler_list): Prototype.
3038
fb0c90ed 3039Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
3040
3041 * sort.c (UCHAR_MAX): Provide fallback definition.
3042
167a5f18 30432000-04-29 Alexandre Oliva <aoliva@cygnus.com>
3044
3045 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
3046 SUBDIRS.
3047
6f572555 30482000-04-28 Kenneth Block <block@zk3.dec.com>
3049 Jason Merrill <jason@casey.cygnus.com>
3050
ec255163 3051 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
3052 (cplus_demangle_set_style): New function for setting style.
3053 (cplus_demangle_name_to_style): New function to translate name.
6f572555 3054
b3524c8f 30552000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3056
3057 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
3058
3059 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
3060 (libiberty_AC_FUNC_STRNCMP): Invoke.
3061
3062 * strncmp.c: New file.
3063
a5f725a3 3064Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
3065
3066 * hashtab.c (htab_expand): Add prototype.
3067 (find_empty_slot_for_expand): Likewise.
3068
8afd4145 30692000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3070
3071 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
3072 match prototype.
3073 (htab_expand): Cast the return value of xcalloc.
3074
c9dfb8ae 30752000-04-24 Mark Mitchell <mark@codesourcery.com>
3076
3077 * hashtab.c (hash_pointer): New function.
3078 (eq_pointer): Likewise.
3079 (htab_hash_pointer): New variable.
3080 (htab_eq_pointer): Likewise.
3081
85993fc6 30822000-04-23 Mark Mitchell <mark@codesourcery.com>
3083
9517f453 3084 * sort.c (sort_pointers): Fix endianness bugs.
3085
85993fc6 3086 * sort.c: New file.
3087 * Makefile.in (CFILES): Add sort.c
3088 (REQUIRED_OFILES): Add sort.o.
3089 (sort.o): New target.
3090
c9b2f47c 30912000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3092
3093 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
3094 4.3BSD systems.
3095
2b3dbc20 3096Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3097
3098 * hashtab.c: Various minor cleanups.
3099 (htab_find_slot_with_hash): INSERT is now enum insert_option.
3100 (htab_find_slot): Likewise.
3101
6ea8a864 31022000-04-16 Dave Pitts <dpitts@cozx.com>
3103
3104 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ec255163 3105
105211e5 31062000-04-05 Richard Henderson <rth@cygnus.com>
3107
3108 * splay-tree.c (splay_tree_remove): New.
3109
7669680f 31102000-03-30 Mark Mitchell <mark@codesourcery.com>
3111
3112 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
3113 codes.
3114 (htab_find_with_hash): Likewise.
3115 (htab_find_slot_with_hash): Likewise.
ec255163 3116
07c797e3 31172000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3118
3119 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
3120 unless it will be used. Rearrange loop for better
3121 optimization.
3122 (higher_prime_number): Add static prototype.
3123
8ef1b8d1 3124Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
3125
3126 * Makefile.in (partition.o): Depend on config.h
3127
ed26da85 31282000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
3129
3130 * hashtab.c (find_empty_slot_for_expand): New function.
3131 (htab_expand): Use it instead of htab_find_slot.
3132 (htab_find_with_hash): Renamed from htab_find; now accepts extra
3133 argument HASH.
3134 (htab_find_slot_with_hash): Likewise for htab_find_slot.
3135 (htab_find): New wrapper function.
3136 (htab_find_slot): Likewise.
3137 (htab_traverse): Pass slot, not entry, to called function.
3138
dadde703 31392000-03-09 Alex Samuel <samuel@codesourcery.com>
3140
3141 * Makefile.in (CFILES): Add partition.c.
3142 (REQUIRED_OFILES): Add partition.o.
3143 (partition.o): New rule.
3144 * partition.c: New file.
ec255163 3145
3fdd387a 31462000-03-09 Zack Weinberg <zack@wolery.cumb.org>
3147
3148 * hashtab.c (htab_create): Set del_f.
3149 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
3150 Use it.
3151
07c967f9 31522000-03-08 Zack Weinberg <zack@wolery.cumb.org>
3153
3154 * hashtab.c: Remove debugging variables (all_searches,
3155 all_collisions, all_expansions). Delete
3156 all_hash_table_collisions.
3157 (create_hash_table, delete_hash_table, empty_hash_table,
3158 find_hash_table_entry, remove_element_from_hash_table_entry,
3159 clear_hash_table_slot, traverse_hash_table, hash_table_size,
3160 hash_table_elements_number, hash_table_collisions): Rename to:
3161 htab_create, htab_delete, htab_empty, htab_find_slot,
3162 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
3163 htab_elements, htab_collisions.
3164 (htab_find): New function, handles common case where you don't
3165 plan to add or delete an entry.
3166 (htab_expand): Don't create a whole new table, just a new
3167 entry vector.
3168 (htab_find_slot): Simplify logic.
3169
1f33a375 31701999-08-03 Ian Lance Taylor <ian@zembu.com>
3171
3172 * floatformat.c: Add casts to avoid signed/unsigned warnings.
3173 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
3174
3175 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
3176 $(TARGETLIB)n so it works on MSDOS.
3177 (install_to_tooldir): Likewise.
3178
31791999-07-21 Ian Lance Taylor <ian@zembu.com>
3180
3181 From Mark Elbrecht:
3182 * makefile.dos: Remove; obsolete.
3183 * configure.bat: Remove; obsolete.
3184
31851999-07-11 Ian Lance Taylor <ian@zembu.com>
3186
3187 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3188 warning.
3189
b99e5aef 31902000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3191
3192 * pexecute.c: Conditionally include string.h.
07c967f9 3193 (fix_argv): Handle embedded whitespace in args for Mingw32.
b99e5aef 3194
6d93ad38 31952000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3196
3197 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
3198 we're using gcc.
3199
3200 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
3201
59dfb43e 32021999-12-27 Geoff Keating <geoffk@cygnus.com>
3203
3204 * vasprintf.c (int_vasprintf): Don't re-read the format character
3205 as this mishandles strings like '%%s'.
3206
b04bbebb 32071999-12-05 Mark Mitchell <mark@codesourcery.com>
3208
3209 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
3210 rather than struct splay_tree_node.
3211 (splay_tree_insert): Use struct splay_tree_s rather than struct
3212 splay_tree.
3213
d7f8de75 3214Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
3215
3216 * hashtab.c (sys/types.h): File included.
3217
7202ac7d 32181999-11-22 Jason Merrill <jason@casey.cygnus.com>
3219
3220 * strtoul.c, strtol.c, random.c: Remove advertising clause from
3221 BSD license, pursuant with
3222
3223 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
3224
bd41a79e 3225Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
3226
3227 * hashtab.c: Include stdio.h.
3228
b77d3fd0 3229Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
3230
3231 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
3232
1b4391fe 3233Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
3234
3235 * xstrdup (sys/types.h): Include this file.
3236
4bc57096 32371999-10-28 Nathan Sidwell <nathan@acm.org>
3238
3239 * Makefile.in (SUBDIRS): New macro.
3240 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
3241 avoid multiple subdirectory cleaning.
3242 (*-subdir): Use SUBDIRS.
3243
9087cad2 32441999-10-25 Jim Kingdon <http://developer.redhat.com/>
3245
3246 * cplus-dem.c: Move declarations of standard_symbol_characters and
3247 hp_symbol_characters inside #ifdef MAIN to avoid compiler
3248 warnings.
3249
21a7d507 32501999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
3251
3252 * hashtab.c (find_hash_table_entry): When returning a
3253 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
3254 (clear_hash_table_slot): New function which deletes an entry
3255 by its position in the table, not its value.
3256 (traverse_hash_table): New function which calls a hook
3257 function for every live entry in the table.
3258
42c870f1 32591999-10-19 Mark Mitchell <mark@codesourcery.com>
3260
3261 * cplus-dem.c (INTBUF_SIZE): New macro.
3262 (string_append_template_idx): New function.
3263 (demangle_expression): Likewise.
3264 (demangle_integral_value): Use it.
3265 (demangle_real_value): New function, split out from ...
3266 (demangle_template_value_parm): ... here. Use
3267 string_append_template_idx. Use demangle_real_value.
3268 (demangle_template): Use string_append_template_idx.
3269 (demangle_qualified): Use consume_count_with_underscores.
3270 (get_count): Tweak formatting.
3271 (do_type): Use string_append_template_idx.
07c967f9 3272
33b090eb 32731999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3274
3275 * calloc.c: Add a public domain notice.
3276
9879c2ce 3277Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
3278
3279 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
3280
5da6c26f 3281Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
3282
3283 * Makefile.in (CFILES): Add hashtab.c
3284 (REQUIRED_OFILES): Add hashtab.o
3285 (hashtab.o): Add dependencies.
3286 * hashtab.c: New file
3287
be42b79e 3288Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
3289
3290 * basename.c (DIR_SEPARATOR): New macro.
3291 (DIR_SEPARATOR_2): Likewise.
3292 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
3293 (IS_DIR_SEPARATOR): Likewise.
3294 (main): Handle MSDOS style pathname.
3295
6c65e8d7 32961999-10-11 Mark Mitchell <mark@codesourcery.com>
3297
3298 * cplus-dem.c (do_type): Handle pointer to member types whose
3299 enclosing classes have namespace scope.
3300
278929f3 3301Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
3302
3303 * config.table: Provide a backup shell for executing move-if-change.
3304
a7599ac8 33051999-10-02 Mark Mitchell <mark@codesourcery.com>
3306
3307 * xmalloc.c (xmalloc): Fix spelling error.
3308 (xcalloc, xrealloc): Likewise.
3309
4d84eafd 33101999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3311
3312 * cplus-dem.c (fancy_abort, demangle_integral_value,
3313 demangle_arm_hp_template, recursively_demangle,
3314 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
3315 (program_name, program_version, fatal): Constify a char*.
3316 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
3317 (main): Call return, not exit.
3318
8f376364 33191999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3320
3321 * choose-temp.c: Remove obsolete comment about gcc.
3322 (make_temp_file): Constify a char*.
3323
3a4fff76 3324Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3325
3326 * xmemdup.c: Include sys/types.h.
3327
7570bccb 33281999-09-07 Jeff Garzik <jgarzik@pobox.com>
3329
3330 * xmemdup.c: New xmemdup function.
3331 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
3332
b50c7be3 3333Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
3334
07c967f9 3335 * config.table: Add openedition target.
b50c7be3 3336 * config/mh-openedition: New file.
3337
fd0c1d22 3338Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
3339
3340 * pexecute.c (pexecute): Fill in temp_base when needed.
3341
be342bf0 33421999-08-31 Richard Henderson <rth@cygnus.com>
3343
3344 * getpwd.c: Check HAVE_GETCWD before defining it away.
3345
71774460 33461999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3347
3348 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
3349 (REQUIRED_OFILES): Add getpwd.o.
3350 (getpwd.o): Add target.
3351
3352 * configure.in (AC_PREREQ): Bump to 2.13.
3353 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
3354
3355 * getpwd.c: New file, moved here from gcc.
3356
ac126d82 33571999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3358
3359 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
3360 comparing against a signed quantity.
3361 (arm_special): Likewise.
3362 (demangle_fund_type): Likewise.
3363 (do_hpacc_template_const_value): Mark parameter `work' with
07c967f9 3364 ATTRIBUTE_UNUSED.
ac126d82 3365 (main): Constify variable `valid_symbols'.
3366
4f3b4661 3367Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
3368
3369 * strtoul.c (strtoul): Add parentheses around && within ||.
3370
f92ff492 3371Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
3372
3373 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3374 libdir, libsubdir and tooldir.
3375
a9f46aed 33761999-08-01 Mark Mitchell <mark@codesourcery.com>
3377
3378 * splay-tree.c (splay_tree_insert): Return the new node.
3379
db081298 33801999-07-14 Richard Henderson <rth@cygnus.com>
3381
07c967f9 3382 * argv.c: Include stdlib.h and string.h instead of
db081298 3383 prototyping directly.
3384 * choose-temp.c: Conditionally include string.h.
3385
e5aa3a54 33861999-07-12 Jason Merrill <jason@yorick.cygnus.com>
3387
3388 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
3389
4ef402f7 33901999-07-11 Ian Lance Taylor <ian@zembu.com>
3391
3392 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3393 warning.
3394
d65034bd 33951999-07-07 Jason Merrill <jason@yorick.cygnus.com>
3396
3397 * Makefile.in (needed-list): Only include stuff we actually need
3398 for libstdc++.
3399
18912799 34001999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3401
3402 * configure.in (checkfuncs): Add gettimeofday.
3403 * config.in, configure: Regenerated.
3404
d96f58b6 3405Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
3406
3407 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
3408 the test fails.
3409 * configure: Regenerate.
3410
4248b202 34111999-06-10 Mike Stump <mrs@wrs.com>
3412
3413 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
3414 parallel builds.
3415
3c243ded 34161999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3417
3418 * putenv.c: Include ansidecl.h to define `const'.
3419 * setenv.c: Likewise.
3420
654c70ae 3421Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
3422
34f75864 3423 * Makefile.in (CFILES): Add putenv.c and setenv.c.
3424 * configure.in (funcs): Add putenv and setenv.
3425 (AC_CHECK_FUNCS): Check for putenv and setenv.
3426 * configure: Rebuilt.
3427 * putenv.c setenv.c: New files.
3428
654c70ae 3429 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
3430 bytes of space using malloc.
3431
41980611 3432Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
3433
3434 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
3435 the *mangled pointer beyond the end of the string. Clean up code to
3436 match prevailing coding style.
3437
08b8ada9 34381999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3439
3440 * tmpnam.c (L_tmpnam): Fix typo.
3441
2fb1c6e9 3442Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
3443
3444 * cplus-dem.c (standard_symbol_characters): Renamed from
3445 standard_symbol_alphabet. No longer modify TABLE.
3446 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
3447 modify TABLE.
3448 (main): Corresponding changes. Use strchr to determine if a
3449 character is valid.
3450
25398e41 34511999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
3452
3453 * cplus-dem.c (main): Use table lookup to distinguish identifier
3454 characters from non-identifier characters.
3455 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
3456
29723d26 3457Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
3458
3459 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
3460 * getruntime.c: Only attempt to include sys/resource.h and
3461 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
3462 are defined.
3463
dde96550 3464Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
3465
3466 * configure.in (alloca detection): Handle alloca directly for interix.
3467 * configure: Rebuilt.
3468
e98ba651 3469Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
3470
3471 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
3472
3460a017 34731999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
3474
3475 Fix from Dale Hawkins:
07c967f9 3476 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
3460a017 3477 reallocated properly if we use it again.
3478
3479 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
3480 stricter about syntax. Always null-terminate string.
3481
b01c0955 3482Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
3483
3484 * configure.in (checkfuncs): Check for sbrk.
3485 * config.in: Rebuilt.
3486 * configure: Likewise.
3487 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
3488
87c2e884 34891999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
3490
3491 Fix from Marcus Daniels:
3492 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
3493 identifier looking for another underscore.
3494
16b8e80f 3495Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
3496
3497 * pexecute.c: Change all references to __UWIN__ to _UWIN.
3498 * xmalloc.c: Likewise.
3499 (xcalloc): UWIN has sbrk.
3500 (xrealloc): Fix guard macro.
3501
4d0cfb7e 35021999-04-11 Richard Henderson <rth@cygnus.com>
3503
3504 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
3505 or <alloca.h>.
3506 * clock.c (GNU_HZ): New definition.
3507 (clock): Use it.
3508 * getruntime.c: Likewise.
3509
3510 * config.table: Use mh-beos.
3511 * config/mh-beos: New file.
3512
0dc64970 35131999-04-11 Mark Mitchell <mark@codesourcery.com>
3514
3515 * cplus-dem.c (demangle_template_value_parm): Handle
3516 pointers-to-members.
3517 (do_type): Handle template parameters as qualifiers.
3518
9fec6063 35191999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
3520
3521 * cplus-dem.c: Attempt to handle overflows in counts with some
3522 semblance of grace.
3523 (consume_count): Detect overflows. Return -1 to indicate errors,
3524 instead of zero.
3525 (demangle_template_value_parm, demangle_template): Handle change
3526 to consume_count's return convention.
3527
715f424c 35281999-04-05 Tom Tromey <tromey@cygnus.com>
3529
3530 * testsuite/regress-demangle: New file.
3531 * testsuite/demangle-expected: New file.
3532
3533 * Makefile.in (all, check, installcheck, info, install-info,
3534 clean-info, dvi, install, etags, tags, mostlyclean, clean,
3535 distclean, maintainer-clean, realclean): Depend on corresponding
3536 `-subdir' target.
3537 (all-subdir check-subdir installcheck-subdir info-subdir
3538 install-info-subdir clean-info-subdir dvi-subdir
3539 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
3540 distclean-subdir maintainer-clean-subdir): New target.
3541 * testsuite/Makefile.in: New file.
3542 * configure: Rebuilt.
3543 * configure.in: Create testsuite/Makefile.
3544
71c5948c 35451999-04-02 Mark Mitchell <mark@codesourcery.com>
3546
3547 * splay-tree.h (splay_tree_compare_pointers): Define.
3548
d1264606 35491999-03-30 Mark Mitchell <mark@codesourcery.com>
3550
3551 * splay-tree.c (splay_tree_compare_ints): Define.
3552
6fd618e7 35531999-03-30 Tom Tromey <tromey@cygnus.com>
3554
3555 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
3556 don't advance input pointer.
3557 (demangle_class_name): If consume_count didn't find a count, do
3558 nothing. Don't bother with `strlen' sanity check; consume_count
3559 does it for us.
3560
bdaa26ad 35611999-03-16 Stan Shebs <shebs@andros.cygnus.com>
3562
3563 From Art Haas <ahaas@neosoft.com>:
3564 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
3565 when doing arm or hp style.
3566 (demangle_nested_args): Decr forgetting_types field when done.
07c967f9 3567
d267f778 3568Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
3569
3570 * pexecute.c (__CYGWIN32__): Rename to
3571 (__CYGWIN__): this.
3572 * xmalloc.c: Likewise.
3573
3574 Changes to support i386-pc-uwin.
3575 * configure.in (*-*-uwin*): Workaround for vfork bug.
3576 * configure: Regenerate.
3577 * pexecute.c (pexecute): Be like standard Unix.
3578 (pwait): Likewise.
3579 * xmalloc.c (first_break): Define.
3580 (xmalloc_set_program_name): Use.
3581 (xmalloc): Use.
3582
90405950 3583Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3584
3585 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
3586
bdaa26ad 3587Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
3588
3589 * config.table: Check cygwin*, not cygwin32*.
3590
e6ed8194 3591Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
3592
3593 * Makefile.in: Change mkstemp -> mkstemps.
3594
301e59c9 3595Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
3596
3597 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
3598 * configure.in (funcs): Check for and conditionally add mkstemps to
3599 the list of functions libiberty will provide.
3600 * configure: Rebuilt.
07c967f9 3601
89e305f9 3602Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
3603
07c967f9 3604 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
89e305f9 3605 platforms that don't have HZ.
3606 * getruntime.c (HZ): Likewise.
3607
ecfe64e7 3608Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
3609
3610 * Makefile.in (xstrdup.o): Depend on config.h.
3611
2e5e2114 3612Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
3613
3614 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
3615 freeing it.
3616
6aa62a59 3617Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3618
3619 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
3620
bdaa26ad 3621Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3622
3623 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
3624 splay-tree.o.
3625
36261999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
3627
3628 * configure.in: Require autoconf 2.12.1 or higher.
3629
9e1ed734 36301998-12-30 Michael Meissner <meissner@cygnus.com>
3631
3632 * random.c (NULL): Don't redefine NULL if it is already defined.
3633
7c8c70e9 3634Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3635
3636 * argv.c (buildargv): Cast the result of alloca in assignment.
3637
3638 * choose-temp.c: Include stdlib.h.
2e5e2114 3639
7c8c70e9 3640 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
9f21bac8 3641 (snarf_numeric_literal): Constify first parameter.
3642 (code_for_qualifier): Avoid a gcc extension, make the parameter an
3643 int, not a char.
7c8c70e9 3644 (demangle_qualifier): Likewise.
3645 (demangle_signature): Cast the argument of a ctype function to
3646 unsigned char.
3647 (arm_pt): Add parens around assignment used as truth value.
3648 (demangle_arm_hp_template): Constify variable `args'.
3649 (do_hpacc_template_const_value): Cast the argument of a ctype
3650 function to unsigned char.
3651 (do_hpacc_template_literal): Remove unused variable `i'.
3652 (snarf_numeric_literal): Constify parameter `args'.
3653 Cast the argument of a ctype function to unsigned char.
3654
3655 * floatformat.c (floatformat_to_double): Add explicit braces to
9f21bac8 3656 avoid ambiguous `else'.
2e5e2114 3657
7c8c70e9 3658 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
9f21bac8 3659 `cstart' and `cend' to unsigned char. Cast the argument of macro
3660 `FOLD', which uses ctype functions, to unsigned char.
7c8c70e9 3661
3662 * objalloc.c (free): Add prototype.
3663
9070a37e 3664Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
3665
3666 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
3667
bdaa26ad 3668Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
3669
3670 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
9f21bac8 3671 doesn't exist.
bdaa26ad 3672 (do_hpacc_template_literal): remove unused variable `i'.
07c967f9 3673
0a5a5994 3674Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
3675
3676 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
3677 bumping the pointer we read from. Also prepend these codes,
3678 as we do in other places.
3679
bdaa26ad 36801998-12-18 Nick Clifton <nickc@cygnus.com>
3681
3682 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
3683 'const char *' in order to match its usage when calling siblings.
3684 (snarf_numeric_literal): Make first arg 'const char **' in order
3685 to match usage.
4ed77eec 3686
50cbddd6 3687Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3688
4ed77eec 3689 * choose-temp.c: Don't check IN_GCC anymore.
3690
3691 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
3692 * memchr.c (memchr): Likewise.
3693 * memcpy.c (memcpy): Likewise.
3694 * memmove.c (memmove): Likewise.
2e5e2114 3695
4ed77eec 3696 * mkstemp.c: Don't check IN_GCC anymore.
3697 * pexecute.c: Likewise.
3698 * splay-tree.c: Likewise.
2e5e2114 3699
4ed77eec 3700 * strchr.c (strchr): Use `const', not `CONST'.
3701 * strrchr.c (strrchr): Likewise.
3702 * strtol.c (strtol): Likewise.
3703 * strtoul.c (strtoul): Likewise.
3704
f75dc4de 3705Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
3706 Elena Zannoni <ezannoni@cygnus.com>
3707 Stan Shebs <shebs@cygnus.com>
3708 Edith Epstein <eepstein@cygnus.com>
3709 Andres MacLeod <amacleod@cygnus.com>
3710 Satish Pai <pai@apollo.hp.com>
3711
3712 * HP aCC demangling support.
3713 * cplus-dem.c
3714 (main): Remove default to HP style demangling, set to EDG
9f21bac8 3715 demangling correctly when -edg specified; set the demangling style
3716 when user specifies 'edg'. Set strip_underscore to
3717 prepends_underscore, if not HPUXHPPA. Set
3718 current_demangling_style to hp_demangling if HPUXHPPA. Set
3719 current demangling style correctly if the switch is hp. Read
3720 label correctly also in the HP style case.
f75dc4de 3721 (work_stuff): add temp_start field; add field for volatile member
9f21bac8 3722 function.
f75dc4de 3723 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
9f21bac8 3724 style for this case is the same as ARM.
f75dc4de 3725 (demangle_args): handle EDG_DEMANGLING style; support HP style.
3726 (demangle_arm_hp_template): new function. (It was
9f21bac8 3727 demangle_arm_pt.); check and set value of temp_start field in
3728 multiple places. Also, when ceching for end of template args,
3729 check to see if at end of static member of template class.
f75dc4de 3730 (demangle_class): new local variable : save_class_name_end Don't
9f21bac8 3731 include template args in string defining class.
f75dc4de 3732 (demangle_class_name): use demangel_arm_hp_template.
3733 (demangle_function_name): handle case where demangling style is
9f21bac8 3734 HP_DEMANGLING and currently point at an 'X' in the mangled name.
3735 Handle EDG_DEMANGLING style. Handle constructor and destructor
3736 ops for HP style.
f75dc4de 3737 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
9f21bac8 3738 styles. global destructor and constructor for HP style are same
3739 as for ARM style. Same for local variables.
f75dc4de 3740 (demangle_qualified): handle EDG_DEMANGLING style.
3741 (demangle_signature): add case for volatile member function. For
9f21bac8 3742 cases '1' - '9' : initialize the temp_start field to -1 and handle
3743 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
3744 and AUTO_DEMANGLING styles. If expecting a function and managed
3745 to demangle the funct args, then handle the LUCID_DEMANGLING,
3746 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
3747 class name after "Lnnn_ in HP style case. HP style too needs to
3748 forget types. _nnn is OK for HP style, so don't report failure.
f75dc4de 3749 (do_hpacc_template_const_value): new function. Handle template's
9f21bac8 3750 value param for HP/aCC.
f75dc4de 3751 (do_hpacc_template_literal): new function. Handle a template's
9f21bac8 3752 literal parameter for HP aCC.
f75dc4de 3753 (recursively_demangle): new function
3754 (snarf_numeric_literal): new function.
3755 (usage): add 'edg' to the list of demangling styles; add hp switch
9f21bac8 3756 to message.
f75dc4de 3757
a5c56042 3758Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
3759
3760 * pexecute.c: Remove obsolete ifdefed cygwin code.
3761
4ae63959 3762Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3763
3764 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
3765 * cplus-dem.c: Likewise. Conform to libiberty.h.
3766 * pexecute.c: Likewise.
3767 * splay-tree.c: Likewise.
3768
b41b6b67 37691998-11-25 Mike Stump <mrs@wrs.com>
3770
3771 * Makefile.in (splay-tree.o): Add config.h dependency.
3772
a1dd5bff 3773Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3774
3775 * configure.in: Use AC_PREREQ(2.12.1).
3776
d54546fb 37771998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
3778
07c967f9 3779 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
d54546fb 3780
9fdb1080 3781Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
3782
3783 * mpw.c (mpw_access): Add missing parens.
3784
1ed7db2f 3785Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3786
3787 * configure.in: Call AC_HEADER_SYS_WAIT.
3788
3789 * pexecute.c: Include sys/wait.h when !IN_GCC.
3790
bdaa26ad 3791Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
3792
3793 * pexecute.c: revert back to checking old Cygwin
3794 preprocessor symbol until some time has passed.
3795
3796Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
3797
3798 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
3799 since it will now support similar constructs.
3800
34fa8831 3801Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3802
3803 * configure.in: Check for calloc.
3804
3805 * calloc.c: New file.
3806
3807 * xmalloc.c (xcalloc): New function.
3808
75ebb412 3809Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
3810
3811 *cplus-dem.c (demangle_prefix): Use the last "__"
3812 in the mangled name when looking for the signature. This allows
3813 template names to begin with "__".
3814
5b546829 38151998-11-08 Mark Mitchell <mark@markmitchell.com>
3816
73bea962 3817 * cplus-dem.c (type_kind_t): Add tk_reference.
3818 (demangle_template_value_parm): Handle it.
3819 (do_type): Use it for references, instead of tk_pointer.
3820
5b546829 3821 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
3822 not internal_cplus_demangle.
3823
0e4558d2 3824Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3825
3826 * choose-temp.c: Don't include gansidecl.h.
3827 * mkstemp.c: Likewise.
3828 * pexecute.c: Likewise.
3829
7b8b8d43 3830Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
3831
07c967f9 3832 * configure.in: detect cygwin* instead of cygwin32*
3833 * configure: regenerate
7b8b8d43 3834
f9a39df1 3835Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3836
3837 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
9f21bac8 3838 whether to include config.h. Possibly include unistd.h in the
3839 !IN_GCC case. Define VFORK_STRING as a printable function call
3840 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
3841 defined, include vfork.h. If VMS is defined, define vfork()
3842 appropriately. Remove vfork check on USG, we're using autoconf.
3843 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
3844 locally what string to use.
f9a39df1 3845
797ba725 38461998-10-26 Mark Mitchell <mark@markmitchell.com>
3847
3848 * splay-tree.c: Tweak include directives to make sure declarations of
3849 xmalloc and free are available.
3850
3662c79b 38511998-10-25 Mark Mitchell <mark@markmitchell.com>
3852
3853 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
3854 anonymous namespaces.
2e5e2114 3855
af5199c0 38561998-10-23 Mark Mitchell <mark@markmitchell.com>
3857
3858 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
3859 with type_quals.
3860 (TYPE_UNQUALIFIED): New macro.
3861 (TYPE_QUAL_CONST): Likewise.
3862 (TYPE_QUAL_VOLATILE): Likewise.
3863 (TYPE_QUAL_RESTRICT): Likewise.
3864 (code_for_qualifier): New function.
3865 (qualifier_string): Likewise.
3866 (demangle_qualifier): Likewise.
3867 (internal_cplus_demangle): Use them.
3868 (demangle_signature): Likewise.
3869 (demangle_template_value_parm): Likewise.
3870 (do_type): Likewise.
3871 (demangle_fund_type)): Likewise.
3662c79b 3872
e61da89d 3873Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3874
3875 * splay-tree.c (splay_tree_foreach_helper): Make definition static
3876 to match prototype.
3877
9a4eb61d 38781998-10-21 Mark Mitchell <mark@markmitchell.com>
3879
3880 * splay-tree.c: New file.
3881 * Makefile.in (CFILES): Add it.
3882 (REQUIRED_OFILES): Likewise.
3883 (splay-tree.o): Add dependencies.
3884
e5d3a45b 3885Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3886
3887 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
3888 range of 'K' index.
3889
4350e959 3890Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3891
3892 * choose-temp.c: Prototype mkstemps() when IN_GCC.
3893
3894 * cplus-dem.c (consume_count): Cast argument of ctype macro to
3895 `unsigned char'.
3896 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
3897 comparing against one.
3898 (cplus_mangle_opname): Likewise.
3899 (demangle_integral_value): Cast argument of ctype macro to
3900 `unsigned char'.
3901 (demangle_template_value_parm): Likewise.
3902 (demangle_template): Initialize variable `bindex'. Cast the
3903 result of `strlen' to (int) when comparing against one. Remove
3904 unused variable `start_of_value_parm'.
3905 (demangle_class_name): Cast the result of `strlen' to (int) when
3906 comparing against one.
3907 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
3908 (gnu_special): Likewise. Cast the result of `strlen' to (int)
3909 when comparing against one.
3910 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
3911 (get_count): Likewise.
3912 (do_type): Likewise. Cast the result of `strlen' to (int) when
3913 comparing against one.
3914 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
3915 (demangle_function_name): Cast the result of `strlen' to (int)
3916 when comparing against one.
3917
3918 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
3919 comparing against one.
3920
5dfe2c03 3921Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
3922
07c967f9 3923 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
3924 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
3925 * config.in, configure: Rebuilt.
0be6f86d 3926
5dfe2c03 3927 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
3928 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
3929 * config.in, configure: Rebuilt.
3930
7b8b8d43 3931Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
3932
07c967f9 3933 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
7b8b8d43 3934
68b78c88 3935Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
3936
3937 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
3938
804ec1bf 3939Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
3940
3941 * Merge egcs & devo libiberty.
3942
7a1ec54f 3943