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