]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
fbc1bc09
KC
12005-05-06 Kelley Cook <kcook@gcc.gnu.org>
2
3 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
4 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
5 * aclocal.m4: Don't include accross.m4.
6 * configure, config.in: Regenerate.
7
32e82bd8
KG
82005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9
10 * fopen_unlocked.c (unlock_std_streams): New.
11
12 * functions.texi: Regenerate.
13
6feaa084
KG
142005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15
16 * fopen_unlocked.c (unlock_stream): New.
17 Consolidate unlocking code into a helper function.
18
19 * functions.texi: Regenerate.
20
3c60ae5a
GDR
212005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
22
23 * asprintf.c: Include config.h.
24 * basename.c: Likewise.
25 * fdmatch.c: Likewise.
26 * hex.c: Likewise.
27 * lbasename.c: Likewise.
28 * spaces.c: Likewise.
29 * xatexit.c:Likewise.
30 * configure.ac: Do check declarations for basename, ffs, asprintf
31 and vasprintf for real.
32 * configure: Regenerate.
33
0e0af50b
GDR
342005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
35
fec02a2d
GDR
36 * argv.c (dupargv): Allocate space of argv[argc], not
37 sizeof(char *) of that amount. Cast result to char *.
0e0af50b 38
4cf88ac3
GDR
392005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
40
41 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
42 Replace not with negate.
43
1ff7682c
GDR
442005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
45
46 * configure.ac: Check declarations for basename, ffs, asprintf,
47 vasprintf.
48 * configure: Regenerate.
49 * config.in: Likewise.
50
78a7dc90
KG
512005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
52
53 * Makefile.in (CFILES): Add fopen_unlocked.c.
54 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
55 Regenerate dependencies.
56
57 * configure.ac: Check for stdio_ext.h and __fsetlocking.
58
59 * fopen_unlocked.c: New file.
60
61 * functions.texi, configure, config.in: Regenerate.
62
2f84c996
ILT
632005-04-04 Ian Lance Taylor <ian@airs.com>
64
65 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
66 declaration before statement.
67
f9a9ac80
KG
682005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
69
29138797
KG
70 * bcmp.c: Fix warnings and implement using memcmp.
71 * bcopy.c: Fix warnings.
72 * bzero.c: Fix warnings and implement using memset.
73
f9a9ac80
KG
74 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
75 -Wstrict-prototypes.
76 * configure, config.in: Regenerate.
77
78 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
79 warnings and reconcile interfaces with relevant standards.
80
23ea4f4a
ILT
812005-04-02 Ian Lance Taylor <ian@airs.com>
82
83 * cp-demangle.c: Update copyright.
84
1e3a2100
JM
852005-03-31 Joseph S. Myers <joseph@codesourcery.com>
86
87 * gettimeofday.c: Add "Supplemental" to @deftypefn.
88 * functions.texi: Regenerate.
89
a584cf65
ILT
902005-03-28 Ian Lance Taylor <ian@airs.com>
91
92 * pex-common.c: New file.
93 * pex-one.c: New file.
94 * pexecute.c: New file.
95 * pex-common.h: Include <stdio.h>.
96 (struct pex_obj): Define.
97 (struct pex_funcs): Define.
98 (pex_init_common): Declare.
99 * pex-unix.c: Rewrite.
100 * pex-win32.c: Rewrite.
101 * pex-djgpp.c: Rewrite.
102 * pex-msdos.c: Rewrite.
103 * testsuite/text-pexecute.c: New file.
104 * pexecute.txh: Rewrite.
105 * configure.ac: Check for wait3 and wait4. Set CHECK to
106 really-check rather than check-cplus-dem.
107 * functions.texi: Rebuild.
108 * Makefile.in: Rebuild dependencies.
109 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
110 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
111 * testsuite/Makefile.in (really-check): New target.
112 (check-pexecute, test-pexecute): New targets.
113 * configure: Rebuild.
114
93764b5b
MK
1152005-03-28 Mark Kettenis <kettenis@gnu.org>
116
117 * unlink-if-ordinary.c: Include <sys/types.h>.
118
93079c81
GDR
1192005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
120
121 Convert libiberty to use ISO C prototype style 7/n.
122 * regex.c (PARAMS): Remove definition.
123 (PREFIX): Unconditionaly define using ISO C ## operator.
124 (init_syntax_once, extract_number, extract_number_and_incr,
125 print_fastmap, print_partial_compiled_pattern,
126 print_compiled_pattern, print_double_string, printchar,
127 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
128 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
129 at_begline_loc_p, at_endline_p, group_in_compile_stack,
130 insert_space, wcs_compile_range, byte_compile_range,
131 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
132 re_set_registers, re_search, re_search_2, re_search_3, re_match,
133 re_match_2, count_mbs_length, wcs_re_match_2_internal,
134 byte_re_match_2_internal, group_match_null_string_p,
135 alt_match_null_string_p, common_op_match_null_string_p,
136 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
137 regexec, regerror, regfree): Use ISO C prototype style.
138 * partition.c: (elem_compare): Likewise.
139 * cp-demangle.c (print_usage): Likewise.
140
885f2199
GDR
1412005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
142
143 Convert libiberty to use ISO C prototype style 5/n.
144 * random.c (srandom, initstate, setstate, random): Use ISO C
145 prototypes.
146 * putenv.c (putenv): Likewise.
147 * physmem.c (physmem_available, physmem_total, main): Likewise.
148 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
149 * pex-unix.c (pexecute, pwait): Likewise.
150 * pex-msdos.c (pexecute, pwait): Likewise.
151 * pex-djgpp.c (pexecute, pwait): Likewise.
152 * partition.c (partition_new, partition_delete, partition_union)
153 (elem_compare, partition_print): Likewise.
154 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
155 _obstack_allocated_p, _obstack_free, obstack_free,
156 _obstack_memory_used, print_and_abort, obstack_next_free,
157 obstack_object_size, obstack_base): Likewise. Remove codes
158 predicated on !defined(__STDC__).
159 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
160 objalloc_free_block): Use ISO C prototypes.
161 * mkstemps.c (mkstemps): Likewise.
162 * memset.c (memset): Likewise.
163 * mempcpy.c (mempcpy): Likewise.
164 * rename.c (rename): Likewise.
165 * rindex.c (rindex): Likewise.
166 * setenv.c (setenv, unsetenv): Likewise.
167 * sigsetmask.c (sigsetmask): Likewise.
168 * snprintf.c (snprintf): Likewise.
169 * sort.c (sort_pointers, xmalloc): Likewise.
170 * spaces.c (spaces): Likewise.
171 * splay-tree.c (splay_tree_delete_helper,
172 splay_tree_splay_helper, splay_tree_splay,
173 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
174 splay_tree_new, splay_tree_xmalloc_allocate,
175 splay_tree_new_with_allocator, splay_tree_delete,
176 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
177 splay_tree_max, splay_tree_min, splay_tree_predecessor,
178 splay_tree_successor, splay_tree_foreach,
179 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
180 * stpcpy.c (stpcpy): Likewise.
181 * stpncpy.c (stpncpy): Likewise.
182 * strcasecmp.c (strcasecmp): Likewise.
183 * strchr.c (strchr): Likewise.
184 * strdup.c (strdup): Likewise.
185
7a17ef5e
GDR
1862005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
187
188 Convert libiberty to use ISO C prototype style 6/n.
189 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
190 strtoerrno, main): Use ISO C prototype style.
191 * strncasecmp.c (strncasecmp): Likewise.
192 * strncmp.c (strncmp): Likewise.
193 * strndup.c (strndup): Likewise.
194 * strrchr.c (strrchr): Likewise.
195 * strsignal.c (init_signal_tables, signo_max, strsignal,
196 strsigno, strtosigno, psignal, main): Likewise.
197 * strstr.c (strstr): Likewise.
198 * strtod.c (strtod, atof): Likewise.
199 * strtol.c (strtol): Likewise.
200 * strtoul.c (strtoul): Likewise.
201 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
202 ternary_recursivesearch): Likewise.
203 * tmpnam.c (tmpnam): Likewise.
204 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
205 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
206 * vfork.c (vfork): Likewise.
207 * vfprintf.c (vfprintf): Likewise.
208 * vprintf.c (vprintf): Likewise.
209 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
210 * vsprintf.c (vsprintf): Likewise.
211 * waitpid.c (waitpid): Likewise.
212 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
213 * xexit.c (xexit): Likewise.
214 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
215 xcalloc, xrealloc): Likewise.
216 * xmemdup.c (xmemdup): Likewise.
217 * xstrdup.c (xstrdup): Likewise.
218 * xstrerror.c (xstrerror): Likewise.
219 * xstrndup.c (xstrndup): Likewise.
220
1134b11d
AJ
2212005-03-27 Andreas Jaeger <aj@suse.de>
222
223 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
224 flags.
225 * configure: Regenerated.
226
e78410c1
GDR
2272005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
228
229 * getopt1.c (getopt_long_only): Fix thinko.
230
6da879de
GDR
2312005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
232
233 Convert libiberty to use ISO C prototype style 4/n.
1134b11d
AJ
234 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
235 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
236 htab_create_alloc, htab_set_functions_ex, htab_create,
237 htab_try_create, htab_delete, htab_empty,
238 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
239 htab_find, htab_find_slot_with_hash, htab_find_slot,
240 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
241 htab_traverse_noresize, htab_traverse, htab_collisions,
6da879de
GDR
242 htab_hash_string, iterative_hash): Use ISO C prototype.
243 * hex.c (hex_init): Likewise.
244 * index.c (index): Likewise.
1134b11d 245 * insque.c (insque, remque): Likewise.
6da879de
GDR
246 * lbasename.c (lbasename): Likewise.
247 * lrealpath.c (lrealpath): Likewise.
1134b11d 248 * make-relative-prefix.c (save_string, split_directories,
6da879de 249 free_split_directories, make_relative_prefix): Likewise.
1134b11d
AJ
250 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
251 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
6da879de
GDR
252 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
253 * memchr.c (memchr): Likewise.
254 * memcpy.c (memcpy): Likewise.
255 * memmove.c (memmove): Likewise.
256 * gettimeofday.c (gettimeofday): Likewise.
257 * getruntime.c (get_run_time): Likewise.
258 * getpwd.c (getpwd, getpwd): Likewise.
259 * getpagesize.c (getpagesize): Likewise.
260 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
1134b11d 261 * getopt.c (my_index, exchange, _getopt_initialize,
6da879de
GDR
262 _getopt_internal, getopt, main): Likewise.
263 * getcwd.c (getcwd): Likewise.
264 * fnmatch.c (fnmatch): Likewise.
1134b11d
AJ
265 * floatformat.c (floatformat_always_valid,
266 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
267 put_field, floatformat_from_double, floatformat_is_valid,
6da879de 268 ieee_test, main): Likewise.
1134b11d
AJ
269 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
270 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
271 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
272 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
273 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
274 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
275 fibheap_link, fibheap_cut, fibheap_cascading_cut,
6da879de
GDR
276 fibnode_insert_after, fibnode_remove): Likewise.
277 * ffs.c (ffs): Likewise.
278 * fdmatch.c (fdmatch): Likewise.
1134b11d
AJ
279 * dyn-string.c (dyn_string_init, dyn_string_new,
280 dyn_string_delete, dyn_string_release, dyn_string_resize,
281 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
282 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
283 dyn_string_insert_cstr, dyn_string_insert_char,
284 dyn_string_append, dyn_string_append_cstr,
6da879de 285 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
1134b11d 286 Likewise.
6da879de 287
500d7701
GDR
2882005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
289
290 Convert libiberty to use ISO C prototype style 3/n.
1134b11d
AJ
291 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
292 consume_count_with_underscores, code_for_qualifier,
293 qualifier_string, demangle_qualifier, cplus_demangle_opname,
294 cplus_mangle_opname, cplus_demangle_set_style,
295 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
500d7701 296 ada_demangle, internal_cplus_demangle, squangle_mop_up,
1134b11d
AJ
297 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
298 delete_work_stuff, mop_up, demangle_signature,
299 demangle_method_args, demangle_template_template_parm,
300 demangle_expression, demangle_integral_value,
301 demangle_real_value, demangle_template_value_parm,
302 demangle_template, arm_pt, demangle_arm_hp_template,
303 demangle_class_name, demangle_class, iterate_demangle_function,
304 demangle_prefix, gnu_special, recursively_demangle, arm_special,
305 demangle_qualified, get_count, do_type, demangle_fund_type,
306 do_hpacc_template_const_value, do_hpacc_template_literal,
307 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
308 register_Btype, remember_Btype, forget_B_and_K_types,
309 forget_types, demangle_args, demangle_nested_args,
310 demangle_function_name, string_need, string_delete, string_init,
311 string_clear, string_empty, string_append, string_appends,
500d7701
GDR
312 string_appendn, string_prepend, string_prepends, string_prependn,
313 string_append_template_idx): Use ISO C prootype style.
314 * cp-demint.c (cplus_demangle_fill_component,
1134b11d 315 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
500d7701
GDR
316 cplus_demangle_v3_components): Likewise.
317
9486db4f
GDR
3182005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
319
320 Convert libiberty to use ISO C prototype style 2/n.
321 * cp-demangle.h: Remove uses of PARAMS.
322 * cp-demangle.c: Likewise.
1134b11d
AJ
323 (d_dump, cplus_demangle_fill_name,
324 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
325 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
326 d_make_builtin_type, d_make_operator, d_make_extended_operator,
327 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
328 cplus_demangle_mangled_name, has_return_type,
329 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
330 d_prefix, d_unqualified_name, d_source_name, d_number,
331 d_identifier, d_operator_name, d_special_name, d_call_offset,
332 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
333 d_function_type, d_bare_function_type, d_class_enum_type,
334 d_array_type, d_pointer_to_member_type, d_template_param,
335 d_template_args, d_template_arg, d_expression, d_expr_primary,
336 d_local_name, d_discriminator, d_add_substitution,
337 d_substitution, d_print_resize, d_print_append_char,
338 d_print_append_buffer, d_print_error, cplus_demangle_print,
339 d_print_comp, d_print_java_identifier, d_print_mod_list,
340 d_print_mod, d_print_function_type, d_print_array_type,
341 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
342 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
9486db4f 343 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
1134b11d 344 print_usage, main):
9486db4f
GDR
345
3462005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
347
348 Convert libiberty to ISO C prototype style 1/n.
349 * _doprnt.c: Remove conditional #include <varargs.h> on
350 ANSI_PROTOTYPES as the latter is always assumed.
351 (_doprnt, checkit, main): Use ISO C prototype.
352 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
353 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
1134b11d 354 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
9486db4f
GDR
355 * atexit.c (atexit): Likewise
356 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
1134b11d 357 (asprintf): Use ISO C prototype.
9486db4f
GDR
358 * basename.c (basename): Likewise
359 * bcmp.c (bcmp): Likewise.
360 * bcopy.c (bcopy): Likewise.
361 * bzero.c (bzero): Likewise.
362 * bsearch.c (bsearch): Likewise. Improve const-correctness.
363 * choose-temp.c (choose_temp_base): Likewise.
364 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
365 (calloc): Use ISO C prototype.
366 * clock.c (clock): Likewise.
367 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
1134b11d 368 (vconcat_length, vconcat_copy, concat_length, concat_copy,
9486db4f
GDR
369 concat_copy2, concat, reconcat, main): Use ISO C prototype.
370 * copysign.c (copysign): Likewise.
371
17998b22
KG
3722005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
373
374 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
375 (REQUIRED_OFILES): Add xstrndup.o.
376 (CONFIGURED_OFILES): Add strndup.o.
377 Regenerate dependencies.
378
379 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
380
381 * strndup.c, xstrndup.c: New.
382
383 * config.in, configure, functions.texi: Regenerate.
384
bb99744f
KG
3852005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
386
387 * xmemdup.c, xstrdup.c: Expose the tail call.
388
17049f0b
MM
3892005-03-09 Mark Mitchell <mark@codesourcery.com>
390
391 * configure.ac (funcs): Add gettimeofday.
392 * configure: Regenerated.
393 * gettimeofday.c: New file.
394 * Makefile.in (CFILES): Add gettimeofday.
395 (CONFIGURED_OFILES): Add gettimeofday.o.
396 (./gettimeofday.o): New rule.
397
6af8bd50
ILT
3982005-03-09 Ian Lance Taylor <ian@airs.com>
399
400 * pex-os2.c: Remove.
401 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
402 * Makefile.in (CFILES): Remove pex-os2.c.
403 (CONFIGURED_OFILES): Remove pex-os2.o.
404 (pex-os2.o): Remove target.
405 * configure: Rebuild.
406
c80d391c
ILT
4072005-03-07 Ian Lance Taylor <ian@airs.com>
408
409 * mpw-config.in: Remove.
410 * mpw-make.sed: Remove.
411 * mpw.c: Remove.
412 * Makefile.in (CFILES): Remove pex-mpw.c.
413 (CONFIGURED_OFILES): Remove pex-mpw.o.
414 (mpw.o, pex-mpw.o): Remove targets.
415 * maint-tool (undoc): Remove reference to mpw.c.
416
fe8ee922
DD
4172005-03-06 DJ Delorie <dj@redhat.com>
418
419 * configure.ac (target_header_dir): vfork is a stub under djgpp.
420 * configure: Regenerated.
421
c363985d
JB
4222005-03-01 Jan Beulich <jbeulich@novell.com>
423
424 * Makefile.in (CFILES): Add unlink-if-ordinary.c
425 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
426 Add dependencies and rule for unlink-if-ordinary.o.
427 * unlink-if-ordinary.c: New.
428
6a88516c
BE
4292005-03-01 Ben Elliston <bje@au.ibm.com>
430
431 * hashtab.c (htab_find_slot_with_hash): Make function
432 documentation clearer.
433
b8b3c655
JM
4342005-02-13 Jason Merrill <jason@redhat.com>
435
436 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
437 arguments.
438
e8805990
TS
4392005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
440
441 * hex.c (hex_value): Group 'unsigned int' together to get correct
442 markup.
443 * functions.texi: Regenerated.
1134b11d 444
24f2cabb
L
4452004-12-27 H.J. Lu <hongjiu.lu@intel.com>
446
447 * Makefile.in: Undo to 2004-12-17.
448 * aclocal.m4: Likewise.
449 * config.table: Likewise.
450 * configure.ac: Likewise.
451 * maint-tool: Likewise.
452 * configure: Likewise.
453
3d815594
L
4542004-12-19 H.J. Lu <hongjiu.lu@intel.com>
455
456 PR bootstrap/19072
457 * Makefile.in (enable_shared): New substitute.
458 (LTTARGETLIB): New.
459 (PREFIXTARGETLIB): New.
460 (LTTESTLIB): New.
461 (PREFIXTESTLIB): New.
462 (CCLD): New.
463 (LINK): New.
464 ($(TARGETLIB)): Use $(LINK) to create libraries and create
465 targets by hand.
466 ($(TESTLIB)): Likewise.
467 (mostlyclean): Don't remove .libs. Remove the libtool object
468 directory.
469
470 * config.table (enable_shared): Removed.
471
472 * configure.ac (enable_static): Set to yes.
473 (AC_PROG_LIBTOOL): Removed.
474 (AM_DISABLE_SHARED): Uncommented.
475 (AM_PROG_LIBTOOL): Likewise.
476 (LIBOBJS): Add `./' to avoid VPATH.
477 (LTLIBOBJS): Likewise.
478 (enable_shared): Substitute.
479 * configure: Regenerated.
480
207db768
L
4812004-12-18 H.J. Lu <hongjiu.lu@intel.com>
482
483 * Makefile.in (top_builddir): Set to `.'.
484 (OUTPUT_OPTION): Removed.
485 (LIBTOOL): New.
486 (LTLIBOBJS): New.
487 (EXTRA_LTOFILES): New.
488 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
489 (all): Remove stamp-picdir.
490 (LTCOMPILE): New.
491 (.c.lo): New rule.
492 (REQUIRED_LTOFILES): New.
493 (CONFIGURED_LTOFILES): New.
494 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
495 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
496 (stamp-picdir): Completely removed.
497 (maint-missing): Pass $(REQUIRED_LTOFILES)
498 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
499 $(CONFIGURED_OFILES)
500 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
501 $(CONFIGURED_LTOFILES).
502 (mostlyclean): Also remove *.lo .libs.
503 Run "make maint-deps".
504
505 * aclocal.m4: Include ../libtool.m4.
506
507 * config.table: Don't check --enable-shared.
508
509 * configure.ac (AC_PROG_LIBTOOL): Add.
510 (AC_PROG_CC_C_O): Removed.
511 (OUTPUT_OPTION): Removed.
512 (NO_MINUS_C_MINUS_O): Removed.
513 (ltpexecute): New substitute.
514 (LIBOBJS): Cleanup.
515 * configure: Regenerated.
516
517 * maint-tool: Updated for .lo/libtool.
518
d49d0907
BE
5192004-12-11 Ben Elliston <bje@au.ibm.com>
520
521 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
522 * configure: Regenerate.
523 * config.in: Likewise.
524
b180d5fb
DD
5252004-12-07 DJ Delorie <dj@redhat.com>
526
527 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
528 that recursion (and thus large stack space) is not needed.
529
ecc30353
MK
5302004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
531
532 * pex-unix.c: Fix the spelling of longjmp.
533
0b167d51
ILT
5342004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
535
536 PR other/18623
537 * cp-demangle.c (d_call_offset): Remove useless local variables
538 offset and virtual_offset.
539 * cplus-dem.c (ada_demangle): Remove useless local variable
540 at_start_name.
541 (demangle_template): Remove useless local variable start.
542
2d59754f
RS
5432004-11-19 Roger Sayle <roger@eyesopen.com>
544
545 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
546 "ansidecl.h" to avoid redeclaration errors with native compilers.
547 * regex.c: Protect config.h from multiple inclusion.
548
ea27a394
MS
5492004-11-12 Mike Stump <mrs@apple.com>
550
610784f0
MS
551 * Makefile.in (libiberty.html): Fix html generation.
552
626ff3de
AN
5532004-09-08 Adam Nemet <anemet@lnxw.com>
554
555 * vasprintf.c: Accept __va_copy in addition to va_copy.
556
1134b11d 5572004-09-03 Paolo Bonzini <bonzini@gnu.org>
7b3ed47d
PB
558
559 * configure: Regenerate.
560
1134b11d 5612004-09-02 Paolo Bonzini <bonzini@gnu.org>
27cfe310
PB
562
563 * configure.ac: Do not enable multilibs for build-side libiberty.
564
1134b11d 5652004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
50a2de96
DS
566
567 * lrealpath.c (lrealpath): Add _WIN32 support.
568
0cf61401
ZW
5692004-06-28 Zack Weinberg <zack@codesourcery.com>
570
571 * cp-demangle.h: Declare cplus_demangle_operators,
572 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
573 cplus_demangle_type as static if IN_GLIBCPP_V3.
574
00a5aa9c
ILT
5752004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
576
577 PR other/16240
578 * cp-demangle.c (d_expr_primary): Check for a failure return from
579 cplus_demangle_type.
5cd29062 580 * testsuite/demangle-expected: Add test case.
00a5aa9c 581
b47785f4
DS
5822004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
583
584 * pex-win32.c (fix_argv): Expand comment.
585
54b2f310
DJ
5862004-05-25 Daniel Jacobowitz <drow@false.org>
587
588 * Makefile.in: Add .NOEXPORT.
589
8fd58397
DR
5902004-04-29 Douglas B Rupp <rupp@gnat.com>
591
592 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
593 copyright.
594
6489430a
MR
5952004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
596
597 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
598 * configure: Regenerate.
599
9bf3c9cc
RH
6002004-04-22 Richard Henderson <rth@redhat.com>
601
602 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
603 (CHAR_BIT): Provide default.
604 (struct prime_ent, prime_tab): New.
605 (higher_prime_index): Rename from higher_prime_number, return index.
606 (htab_mod_1): New.
607 (htab_mod, htab_mod_m2): Use it.
608 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
609 (htab_expand): Likewise.
610 * configure.ac: Check for stdint.h.
611 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
612 * config.in, configure: Rebuild.
613
80790b05
ILT
6142004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
615
616 * strerror.c: Include config.h, and redefine sys_nerr and
617 sys_errlist, before including ansidecl.h and libiberty.h.
618
7f96816a
JL
6192004-04-13 Jeff Law <law@redhat.com>
620
621 * hashtab.c (htab_remove_elt_with_hash): New function.
622 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
623
d9175b87
RH
6242004-03-31 Richard Henderson <rth@redhat.com>
625
626 * hashtab.c (htab_size): Move to top of file; mark inline.
627 (htab_elements): Likewise.
628 (htab_mod, htab_mod_m2): New.
629 (htab_delete): Refactor htab->size and htab->entries.
630 (htab_empty): Likewise.
631 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
632 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
633 (htab_clear_slot): Use htab_size, htab_elements.
634 (htab_traverse_noresize, htab_traverse): Likewise.
635
e8190aa2
ILT
6362004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
637
fed8129b
ILT
638 * pex-unix.c (pexecute): Use vfork instead of fork, with
639 appropriate changes to make this safe.
640 * pex-common.h (STDERR_FILE_NO): Define.
641
e8190aa2
ILT
642 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
643 an 80 column screen. Run maint-deps.
644
a4f74b58
KC
6452004-03-09 Kelley Cook <kcook@gcc.gnu.org>
646
647 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
648 * acconfig.h: Delete redundant file.
649 * config.in: Regenerate.
650 * configure: Regenerate.
651
3beb1315
HPN
6522004-03-09 Hans-Peter Nilsson <hp@axis.com>
653
654 * configure: Regenerate for config/accross.m4 correction.
655
688556b9
AJ
6562004-03-07 Andreas Jaeger <aj@suse.de>
657
658 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
659 prototypes.
660 (main): Initialize style.
661
80a19ac8
ILT
6622004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
663
31058ee3
ILT
664 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
665 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
666 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
667 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
668 short types to D_PRINT_DEFAULT. Change other integer types to use
669 new D_PRINT_* values where appropriate. Change float types to
670 D_PRINT_FLOAT.
671 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
672 values.
673 * testsuite/demangle-expected: Adjust two test cases.
674
675 * cp-demangle.c (d_print_function_type): Print a space before the
676 parenthesis around the function type in more cases.
677 * testsuite/demangle-expected: Adjust one test case.
678
93f20626
ILT
679 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
680 parentheses around a cast.
681 * testsuite/demangle-expected: Adjust two test cases to match new
682 output.
683
dbd6ec2b
ILT
684 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
685
80a19ac8
ILT
686 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
687 push more than one of the same CV-qualifier on the top of the
688 stack.
689 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
690 move the CV-qualifiers to apply to the element type instead.
691 (d_print_array_type): When checking the modifiers, keep looking
692 past ones which have been printed already.
693 * testsuite/demangle-expected: Add three test cases.
694
8ad1c80e
ILT
6952004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
696
e8ed4ac2
ILT
697 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
698 empty string correctly.
699
4a368ffd
ILT
700 * cp-demangle.c (__cxa_demangle): It is not an error if status is
701 not NULL. It is an error if the mangled name is the same as a
702 built-in type name.
703 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
704 than cplus_demangle_v3.
705
8ad1c80e
ILT
706 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
707 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
708
ef2a223f
MK
7092004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
710
711 * regex.c: Include <ansidecl.h>.
712 (regcomp): Cast i to int.
713 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
714
5254fd7b
ILT
7152004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
716
717 * configure.ac: Add m4_pattern_allow(LIBOBJS).
718 * configure: Regenerate.
719
398b3deb
DD
7202004-01-22 DJ Delorie <dj@redhat.com>
721
722 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
723 with explicit build rules.
724 (VPATH): Remove.
725 (.c.o): Poison.
726 * configure.ac (pexecute, LIBOBJS): Add ./ .
727 * maint-tool: Build dependencies with explicit rules.
728
4e394293
KH
7292004-01-15 Kazu Hirata <kazu@cs.umass.edu>
730
731 * strdup.c (strdup): Constify the argument.
732
0046e342
LR
7332004-01-14 Loren J. Rittle <ljrittle@acm.org>
734
735 * Makefile.in (distclean): Remove config.cache.
736
d4f3ce5c
DJ
7372004-01-13 Daniel Jacobowitz <drow@mvista.com>
738
739 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
740 takes two parameters.
741 * cp-demint.c (cplus_demangle_fill_component): Likewise.
742
5e777af5
ILT
7432004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
744
745 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
746 defined, rename some functions which are to become static via
747 #define.
748 (CP_STATIC_IF_GLIBCPP_V3): Define.
749 (struct d_operator_info): Move definition to cp-demangle.h, and
750 rename to demangle_operator_info. Change all uses.
751 (enum d_builtin_type_print): Move definition to cp-demangle.h.
752 (struct d_builtin_type_info): Move definition to cp-demangle.h,
753 and rename to demangle_builtin_type_info. Change all uses.
754 (enum d_comp_type): Move definition to include/demangle.h, and
755 rename to demangle_component_type, and change all enums to start
756 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
757 (struct d_comp): Move definition to include/demangle.h, and rename
758 to demangle_component. Change all uses.
759 (struct d_info): Move definition to cp-demangle.h.
760 (cplus_demangle_fill_name): New function.
761 (cplus_demangle_fill_extended_operator): New function.
762 (cplus_demangle_fill_ctor): New function.
763 (cplus_demangle_fill_dtor): New function.
764 (d_make_empty): Remove type parameter. Change all callers.
765 (d_make_name): Use cplus_demangle_fill_name.
766 (d_make_extended_operator): Use
767 cplus_demangle_fill_extended_operator.
768 (d_make_ctor): Use cplus_demangle_fill_ctor.
769 (d_make_dtor): Use cplus_demangle_fill_dtor.
770 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
771 non-static by default. Change all callers.
772 (cplus_demangle_operators): Rename from d_operators. Change all
773 uses. Make non-static by default. Add sentinel at end of array.
774 (d_operator_name): Adjust initialization of high for new sentinel
775 in cplus_demangle_operators.
776 (cplus_demangle_builtin_types): Rename from d_builtin_types.
777 Change all uses. Make non-static by default. Change initializer
778 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
779 (cplus_demangle_type): Rename from d_type. Make non-static by
780 default. Change all callers.
781 (cplus_demangle_init_info): Rename from d_init_info. Make
782 non-static by default. Change all callers.
783 * cp-demangle.h: New file.
784 * cp-demint.c: New file.
785 * Makefile.in: Rebuild dependencies.
786 (CFILES): Add cp-demint.c.
787 (REQUIRED_OFILES): Add cp-demint.o.
788
c31d56ed
KC
7892004-01-09 Kelley Cook <kcook@gcc.gnu.org>
790
791 * configure.in: Rename file to ...
792 * configure.ac: ... this.
793 * Makefile.in: Update a comment for above change.
794 * README: Likewise.
795 * config.in: Regenerate.
796
e4796f1c
ILT
7972004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
798
799 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
800 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
801 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
802 demangling template parameters.
803 * testsuite/test-demangle.c (fail): New static function.
804 (main): Support new options in input file: --no-params,
805 --is-v3-ctor, and --is-v3-dtor.
806 * testsuite/demangle-expected: Add --no-params to most tests, and
807 add the correct result when parameters are not demangled. Add
808 some simple tests for V3 constructor/destructor recognition.
809
4d425229
KG
8102003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
811
812 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
813
6b309c6e
DJ
8142003-12-22 Daniel Jacobowitz <drow@mvista.com>
815
816 PR debug/13272
817 * Makefile.in (lbasename.o): Depend on filenames.h.
818 * lbasename.c: Include "filenames.h" instead of defining
819 its macros locally.
820
2d6c4025
ILT
8212003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
822
823 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
824 dynamic arrays.
825 (struct d_operator_info): Add len field.
826 (struct d_builtin_type_info): Add len and java_len fields.
827 (struct d_standard_sub_info): Add simple_len, full_len, and
828 set_last_name_len fields.
829 (struct d_comp): Add len field to s_string.
830 (struct d_info): Add send, did_subs, and expansion fields.
831 (d_append_string_constant): Define.
832 (d_append_string): Remove. Change all users to use
833 d_append_string_constant or d_append_buffer instead.
834 (d_make_sub): Add len parameter. Change all callers.
835 (d_name): Increase expansion when substituting std::.
836 (d_unqualified_name): Increase expansion for an operator.
837 (d_number): Don't use multiplication for negative numbers.
838 (d_identifier): Make sure there are enough characters in the
839 string for the specified length. Adjust expansion for an
840 anonymous namespace.
841 (d_operators): Initialize len field.
842 (d_special_name, d_ctor_dtor_name): Increase expansion.
843 (d_builtin_types): Initialize len and java_len fields.
844 (d_type): Increase expansion for a builtin type.
845 (d_cv_qualifiers): Increase expansion for each qualifier.
846 (d_bare_function_type): Decrease expansion when removing single
847 void parameter.
848 (d_template_param): Increment did_subs.
849 (d_expression): Increase expansion for an operator.
850 (d_expr_primary): Decrease expansion for a type we will print
851 specially.
852 (standard_subs): Initialize new fields.
853 (d_substitution): Increment did_subs when doing a normal
854 substitution. Increase expansion for a special substitution.
855 (d_print): Add estimate parameter. Change all callers.
856 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
857 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
858 (d_print_java_identifier): Rename from d_print_identifier. Handle
859 only Java case. Change caller.
860 (d_init_info): Change return type to void. Change all callers.
861 Initialize send, did_subs, and expansion fields. Do not
862 initialize comps and subs fields.
863 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
864 arrays on stack. Make an estimate of the length of the demangled
865 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
866 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
867 subs arrays on stack.
868
2307e075
ILT
8692003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
870
871 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
872 after the identifier.
873 * testsuite/demangle-expected: Add test case.
874
a91d1af0
ILT
8752003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
876
877 Fix for PR c++/13447:
878 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
879 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
880 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
881 D_COMP_QUAL_NAME.
882 (is_ctor_or_dtor): Likewise.
883 (d_local_name): Use D_COMP_LOCAL_NAME rather than
884 D_COMP_QUAL_NAME.
885 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
886 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
887 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
888 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
889 * testsuite/demangle-expected: Add two test cases.
890
891 * cp-demangle.c (d_print_function_type): Clear the global modifier
892 list when printing the modifiers, not just when printing the
893 function parameters.
894 * testsuite/demangle-expected: Add two test cases.
895
8d686df2
ILT
8962003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
897
cbc278f4
ILT
898 * cp-demangle.c (d_print_function_type): Print the function
899 parameters with no modifiers.
900 * testsuite/demangle-expected: Add test case.
901
8d686df2
ILT
902 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
903 expect that we've read the entire string.
904 (is_ctor_or_dtor): Don't expect that we've read the entire
905 string--reverse patch of 2003-11-29.
906
adf269c7
BK
9072003-12-15 Brendan Kehoe <brendan@zen.org>
908
909 * libiberty/Makefile.in (floatformat.o): Add dependency on
910 config.h to accompany change of 2003-12-03.
911
374caa50
ILT
9122003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
913
914 Fix handling of constructor/destructor of standard substitution:
915 * cp-demangle.c (struct d_standard_sub_info): Define.
916 (d_substitution): Add prefix argument. Change all callers.
917 Rework handling of standard substitutions to print full name when
918 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
919 * testsuite/demangle-expected: Add test case.
920
921 Fix handling of negative literal constants:
922 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
923 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
924 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
925 (d_print_comp): Handle D_COMP_LITERAL_NEG.
926 * testsuite/demangle-expected: Add test case.
927
a51753e4
ILT
9282003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
929
930 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
931 (d_last_char): Define new macro.
932 (d_make_name): Reject an empty name.
933 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
934 (d_substitution, d_print_identifier): Likewise.
935 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
936 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
937 (d_print_mod) Use new d_last_char macro.
938 (d_print_cast): Use new d_last_char macro.
939 (is_ctor_or_dtor): Don't leak memory.
940
941 Fix handling of member function modifiers:
942 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
943 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
944 (d_dump): Dump new d_comp_type values.
945 (d_make_comp): Accept new d_comp_type values.
946 (has_return_type): Only accept _THIS variants of qualifiers.
947 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
948 qualifiers.
949 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
950 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
951 qualifiers and printing them at the end, add _THIS qualifiers to
952 the modifier list.
953 (d_print_comp) [D_COMP_*_THIS]: New cases.
954 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
955 qualifiers.
956 (d_print_mod_list): Add suffix parameter. Change all callers.
957 Keep walking the list even if the current modifier has been
958 printed.
959 (d_print_mod): Handle new _THIS qualifiers.
960 (d_print_function_type): Handle new _THIS qualifiers when deciding
961 whether to print a parenthesis. Put a space before the
962 parenthesis in some cases. Call d_print_mod_list again at the
963 end, passing suffix as 1.
964 (is_ctor_or_dtor): Look for new _THIS qualifiers.
965 * testsuite/demangle-expected: Add test case.
966
967 Fix for PR gcc/13304:
968 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
969 before the '<' is itself a '<', insert a space.
970 (d_print_cast): Likewise.
971 * testsuite/demangle-expected: Add test case.
972
973 Fix for PR gcc/13244:
974 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
975 which uses the '>' operator in an extra layer of parens.
976 * testsuite/demangle-expected: Add test case.
977
bee6ab3e
ILT
9782003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
979
980 * floatformat.c: Include "config.h" and <string.h> if available.
981 (INFINITY, NAN): Define if not defined by <math.h>.
982 (floatformat_to_double): Handle NaN, infinity, and denormalized
983 numbers.
984 (floatformat_from_double): Likewise.
985 (ieee_test): In debugging code, use little endian rather than big
986 endian. Correct tests to handle NaN and to check correct sign of
987 zero. Omit m68k extended test.
988 (main): Add more debugging cases.
989
f26deb3d
ILT
9902003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
991
992 * cp-demangle.c (d_demangle): Only return success if we consumed
993 the entire demangled string.
994 (is_ctor_or_dtor): Likewise.
995
996 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
997 to restore expected result of EDG test case to original expected
998 result.
999
81dc098b
ILT
10002003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
1001
1002 * cp-demangle.c (struct d_print_mod): Add templates field.
1003 (d_make_builtin_type): Check for NULL type.
1004 (d_make_extended_operator): Check for NULL name.
1005 (d_make_ctor, d_make_dtor): Likewise.
1006 (d_mangled_name): Add top_level parameter. Change all callers.
1007 (d_encoding): If DMGL_PARAMS is not set, strip off initial
1008 CV-qualifiers.
1009 (d_type): Check some return values we rely on.
1010 (d_bare_function_type, d_array_type): Likewise.
1011 (d_pointer_to_member_type, d_template_args): Likewise.
1012 (d_add_substitution): Fail if argument is NULL.
1013 (d_print_resize): Check whether buf is NULL.
1014 (d_print_comp): Save current templates list with each modifier.
1015 Don't pass the modifier list down when printing a template.
1016 (d_print_cast): Don't pass the modifier list down when printing a
1017 template.
1018 (d_print_mod_list): Temporarily set templates list while printing
1019 a modifier.
1020 (d_print_mod): Check that buf is not NULL before using it.
1021 (d_print_function_type): Print parens if there is no modifier.
1022 (d_init_info): Permit as many substitutions as there are
1023 characters in the mangled name.
1024 * testsuite/demangle-expected: Add two new test cases.
1025
eb459c81
ILT
10262003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
1027
1028 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
1029 d_demangle.
1030
ad07f5e5
ILT
10312003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
1032
1033 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
1034 callers.
1035 (print_usage): Display new -p option.
1036 (long_options): Add --no-params.
1037 (main): Accept and handle -p.
1038
0ba5c8a2
ILT
10392003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
1040
1041 * cp-demangle.c (has_return_type): Skip qualifiers when checking
1042 whether we have a template.
1043 * testsuite/demangle-expected: Add four new tests.
1044
bd6946d1
ILT
10452003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
1046
9cca376f
ILT
1047 * testsuite/demangle-expected: Minor changes to match output of
1048 new demangler: adjust whitespace in four tests, and change order
1049 of qualifiers in one test.
1050
bd6946d1
ILT
1051 * cp-demangle.c: Complete rewrite.
1052
6df5a5c7
MM
10532003-11-19 Mark Mitchell <mark@codesourcery.com>
1054
1055 * cp-demangle.c (demangle_type): Correct thinko in substitution
1056 processing.
1057
a9b571f2
ILT
10582003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
1059
820555e6
ILT
1060 * cp-demangle.c (demangle_operator_name): Remove space before
1061 "sizeof".
1062 (demangle_type_ptr): Put qualifiers in the right place. Handle
1063 qualifiers in pointer to member specially.
1064 (demangle_type): Handle qualifiers for pointer or reference
1065 specially. Handle function type.
1066 (demangle_local_name): Save and restore caret around demangling of
1067 initial encoding.
1068
c4328d32
ILT
1069 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
1070 cplus_demangle.
1071
a9b571f2
ILT
1072 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
1073
ad37274a
AJ
10742003-10-31 Andreas Jaeger <aj@suse.de>
1075
1076 * floatformat.c (floatformat_always_valid): Add unused attribute.
1077
27eb8ab1
JZ
10782003-10-30 Josef Zlomek <zlomekj@suse.cz>
1079
1080 Jan Hubicka <jh@suse.cz>
1081 * vasprintf.c (int_vasprintf): Pass va_list by value.
1082 Use va_copy for copying va_list.
1083 (vasprintf): Pass va_list by value.
1084
e0432c1c
JZ
10852003-10-30 Josef Zlomek <zlomekj@suse.cz>
1086
1087 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
1088 instead of increasing n_elements when inserting to deleted slot.
1089
08c5b96d
B
10902003-10-20 J. Brobecker <brobecker@gnat.com>
1091
1092 * cplus-dem.c (demangle_template): Register a new Btype only
1093 when needed.
1094 * testsuite/demangle-expected: Add a new test.
1095
968e3f93
L
10962003-10-16 H.J. Lu <hongjiu.lu@intel.com>
1097
1098 * testsuite/demangle-expected: Update the expected output of
1099 _GLOBAL__I__Z2fnv.
1100
bca48dc6
DJ
11012003-10-02 Daniel Jacobowitz <drow@mvista.com>
1102
1103 * strerror.c: Revert last change. Declare static sys_nerr
1104 and sys_errlist using different names.
1105
b9e8f4b3
DJ
11062003-10-01 Daniel Jacobowitz <drow@mvista.com>
1107
1108 * strerror.c: Don't provide or reference sys_errlist if
1109 strerror is available.
1110
c0590bfd
L
11112003-10-01 H.J. Lu <hongjiu.lu@intel.com>
1112
1113 * configure.in: Check if $MAKEINFO is missing.
1114 * configure: Regenerated.
1115
b033df90
DJ
11162003-09-24 Daniel Jacobowitz <drow@mvista.com>
1117
1118 * configure.in: Use AC_PROG_CPP_WERROR.
1119 * configure: Regenerated.
1120
83c07342
AC
11212003-09-22 Andrew Cagney <cagney@redhat.com>
1122
1123 * floatformat.c (floatformat_i387_ext_is_valid): New function.
1124 (floatformat_always_valid): New function.
1125 (floatformat_i387_ext): Initialize new "is_valid" field to
1126 "floatformat_i387_ext_is_valid".
1127 (floatformat_ieee_single_little): Initialize "is_valid" field to
1128 floatformat_always_valid.
1129 (floatformat_ieee_double_big): Ditto.
1130 (floatformat_ieee_double_little): Ditto.
1131 (floatformat_ieee_double_little): Ditto.
1132 (floatformat_ieee_double_littlebyte_bigword): Ditto.
1133 (floatformat_i960_ext): Ditto.
1134 (floatformat_m88110_ext): Ditto.
1135 (floatformat_m88110_harris_ext): Ditto.
1136 (floatformat_arm_ext_big): Ditto.
1137 (floatformat_arm_ext_littlebyte_bigword): Ditto.
1138 (floatformat_ia64_spill_big): Ditto.
1139 (floatformat_ia64_spill_little): Ditto.
1140 (floatformat_ia64_quad_big): Ditto.
1141 (floatformat_ia64_quad_little): Ditto.
1142 (floatformat_ia64_quad_little): Ditto.
1143 (floatformat_is_valid): Call "is_valid".
1144
c9fbef12
AC
11452003-09-15 Andrew Cagney <cagney@redhat.com>
1146
1147 * floatformat.c (get_field): Make "data" constant.
1148 (floatformat_is_valid, floatformat_to_double): Make "from"
1149 constant, fix casts.
1150 (floatformat_from_double): Make "from" constant.
1151
9c8860c3
DJ
11522003-09-15 Daniel Jacobowitz <drow@mvista.com>
1153
1154 * floatformat.c (floatformat_is_valid): New function.
1155 (get_field, put_field): Correct comments.
1156
13f7d3a1
JZ
11572003-09-06 Josef Zlomek <zlomekj@suse.cz>
1158
1159 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
1160 FIBHEAPKEY_T.
1161
03eec143 11622003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
86d75906
JDA
1163
1164 PR bootstrap/12100
1165 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
1166 * configure: Rebuilt.
1167
238235ef
DJ
11682003-08-27 Daniel Jacobowitz <drow@mvista.com>
1169
1170 * aclocal.m4: Include acx.m4 and no-executables.m4.
1171 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
1172 (LIB_AC_PROG_CC): Remove.
1173 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
1174 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
1175 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
1176 performing link tests.
1177 * configure: Regenerated.
1178
2b81b2c9
NN
11792003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
1180
0cf61401 1181 * cp-demangle.c: Clarify what package(s) this is part of.
2b81b2c9 1182
7b96f3e4
DS
11832003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
1184
1185 * pex-win32.c (pexecute): Mark parameters this_pname and
1186 temp_base as unused. Remove unused variables retries,
1187 sleep_interval. Initialize org_stdin, org_stdout.
1188 (pwait): Mark parameter flags as unused.
1189
11902003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
bacb96b2
DS
1191
1192 * pex-win32.c (fix_argv): Ensure that the executable pathname
1193 uses Win32 backslashes.
1194 (pexecute): Cast away constness when assigning *errmsg_arg.
1195
6f8507b1
L
11962003-06-26 H.J. Lu <hongjiu.lu@intel.com>
1197
1198 * testsuite/demangle-expected: Add more GNU V3 testcases.
1199
21299dbd
ZW
12002003-06-22 Zack Weinberg <zack@codesourcery.com>
1201
1202 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
1203 not HC_ASCII and HC_EBCDIC.
1204 Add documentation in form expected by gather-docs.
1205 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
1206 * Makefile.in, functions.texi: Regenerate.
1207
7468e0b5
ZW
12082003-06-21 Zack Weinberg <zack@codesourcery.com>
1209
1210 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
1211 for charset determination.
1212
cf8e4b78
DH
12132003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
1214
1215 * configure.in: Add check for malloc.h needed by
1216 m68k for function free().
1217 * configure: Regenerated.
1218 * config.in: Add HAVE_MALLOC_H.
1219 * hashtab.c: include malloc.h were available for
1220 free().
1221
aa9dc53d 12222003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
7468e0b5 1223
aa9dc53d
ACY
1224 PR bootstrap/10974
1225 * physmem.c: Update comment.
1226 * configure.in: Modify test for _system_configuration for older
1227 AIX systems.
1228
1229 * config.in, configure: Regenerated.
7468e0b5 1230
8191fe81
JDA
12312003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1232
1233 PR other/10810
1234 * test-demangle.c (getline): Fix fence-post error.
1235
8d398258
NC
12362003-06-03 Nick Clifton <nickc@redhat.com>
1237
1238 * asprintf.c: Change comment to note that -1 is returned upon
1239 error.
1240 * vasprintf.c: Likewise.
1241 (vasprintf): Return -1 upon error.
1242 * functions.texi: Document changes to asprintf and vasprintf.
1243
29ad6d3f
KC
12442003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
1245
1246 * config.table: Accept i[345867]86 variant.
1247
49a19cfd
JB
12482003-05-15 Jim Blandy <jimb@redhat.com>
1249
1250 * hex.c (_hex_value): Make this unsigned.
1251 (hex_value): Update documentation for new return type. hex_value
1252 now expands to an unsigned int expression, to avoid unexpected
1253 sign extension when we store it in a bfd_vma, which is larger than
1254 int on some platforms.
1255 * functions.texi: Regenerated.
1256
d5d4eae2
JZ
12572003-05-07 Josef Zlomek <zlomekj@suse.cz>
1258
1259 * splay-tree.c (splay_tree_predecessor): Fix comment.
1260 (splay_tree_successor): Fix comment.
1261
5cc5a0d0
JM
12622003-05-07 Jason Merrill <jason@redhat.com>
1263
9d70d418 1264 * hashtab.c (iterative_hash): New fn.
5cc5a0d0
JM
1265 * configure.in: Add AC_C_BIGENDIAN_CROSS.
1266 * aclocal.m4: Include accross.m4.
1267 * configure, config.in: Regenerate.
1268
05c30f22
KG
12692003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1270
1271 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
1272 * configure: Regenerate.
1273
41fe9404
CW
12742003-05-03 Carlo Wood <carlo@alinoe.com>
1275
1276 * cp-demangle.c: Fix typo in "char_traints" string-literal.
1277
52dd3224
KG
12782003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1279
1280 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
1281 (main): Test that we don't write too much data.
1282
bd3fbc6b
KG
12832003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1284
1285 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
1286 vsnprintf.
1287 * snprintf.c, vsnprintf.c: New files.
1288 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
1289 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
1290 Regenerate dependencies.
1291
1292 * functions.texi, configure, config.in: Regenerated.
1293
029bcc09
KG
12942003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1295
1296 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
1297 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
1298 and stpncpy.
1299 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
1300 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
1301 Regenerate dependencies.
1302
1303 * functions.texi, configure, config.in: Regenerated.
1304
c9ac9147
KG
13052003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1306
1307 * argv.c: Fix comments.
1308 * calloc.c: Don't unnecessarily include "libiberty.h".
1309 (bzero): Add prototype.
1310 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1311 * getcwd.c (getcwd): Use standard definition to avoid conflicts
1312 with system headers.
1313 * hashtab.c (htab_traverse): Delete unused variables.
1314 * rename.c: Include "ansidecl.h".
1315 (rename): Use standard definition to avoid conflicts with system
1316 headers.
1317 * strsignal.c: Rely on ANSI_PROTOTYPES.
1318 * strstr.c: Check GNUC >= 2, not GNUC == 2.
1319 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1320 * vprintf.c: Include "ansidecl.h" earlier, rely on
1321 ANSI_PROTOTYPES.
1322 * vsprintf.c: Include "ansidecl.h" earlier, rely on
1323 ANSI_PROTOTYPES and possibly include <stdarg.h>.
7468e0b5 1324
c9ac9147
KG
1325 * Makefile.in: Regenerate dependencies.
1326
98475c57
DD
13272003-04-15 DJ Delorie <dj@redhat.com>
1328
1329 * maint-tool (deps): Scan for headers in $srcdir also.
1330
55adc7bd
KG
13312003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1332
1333 PR target/10338
1334 PR bootstrap/10198
1335 PR bootstrap/10140
1336 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
1337 __mempcpy.
1338 * regex.c (regerror): Likewise.
1339
0ae0f1b0
RS
13402003-04-14 Roger Sayle <roger@eyesopen.com>
1341
1342 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
1343 * memchr.c: Likewise.
1344 * strcasecmp.c: Likewise.
1345 * strncasecmp.c: Likewise.
1346 * strncmp.c: Likewise.
1347 * xatexit.c: Likewise.
1348 * xmalloc.c: Likewise.
1349
1350 * copysign.c: Use traditional function declaration instead of DEFUN.
1351 * sigsetmask.c: Likewise.
1352
1353 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
1354 * memset.c: Likewise.
1355
1356 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
1357 * memmove.c: Likewise.
1358
88702c45
RS
13592003-04-14 Roger Sayle <roger@eyesopen.com>
1360
1361 * strdup.c (strdup): Tweak implementation to use memcpy.
1362
39e8d049
KG
13632003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1364
1365 * configure.in (HAVE_UINTPTR_T): Always define.
1366 * configure: Regenerated.
1367
9f2e0608
AO
13682003-03-23 Alexandre Oliva <aoliva@redhat.com>
1369
1370 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
1371 instead of $$CC alone.
1372 (install_to_tooldir): Use it.
1373
dbccdc42
JH
13742003-17-03 Jan Hubicka <jh@suse.cz>
1375
1376 * hashtab.c (htab_traverse_noresize): Break out from ...
1377 * hashtab.c (htab_traverse): ... here.
1378
0a8e3de3
JH
13792003-12-03 Jan Hubicka <jh@suse.cz>
1380
cd22e4af
JH
1381 * hashtab.c (htab_expand): Fix warning.
1382
0a8e3de3
JH
1383 * hashtab.c (htab_expand): Compute the size of hashtable based
1384 on the number of elements actually used.
1385 (htab_traverse): Call htab_expand when table is too empty.
1386
8fe85775
CW
13872003-03-11 Carlo Wood <carlo@gnu.org>
1388
1389 * cplus-dem.c (demangle_integral_value): Correction to reflect
1390 patch of 2002-01-10 in order to also make negative multi-digits
1391 without leading underscore work.
1392
3bf27822
MM
13932003-03-03 Mark Mitchell <mark@codesourcery.com>
1394
1395 * cplus-dem.c: Add license exception to copyright notice.
1396
434fa0b8
KG
13972003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1398
1399 * physmem.c: Formatting changes from upstream.
1400
ed935c35
DS
14012003-02-24 Danny Smith <dannysmith@users.source.forge.net>
1402
1403 * physmem.c (physmem_total): Add _WIN32 support.
1404 (physmem_available): Likewise.
1405
7f9fc006
RO
14062003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1407
1408 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
1409 GSI_PHYSMEM.
1410 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
1411
d47f75c4
KG
14122003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1413
1414 * configure.in: Check for sys/systemcfg.h and
1415 _system_configuration.
1416 * physmem.c: Add support for AIX. Tweek formatting as per
1417 upstream coreutils beta.
1418
170230b7
KG
14192003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1420 Richard Earnshaw <rearnsha@arm.com>
1421 Geoffrey Keating <geoffk@apple.com>
7468e0b5 1422
170230b7
KG
1423 * configure.in: Check for sys/sysctl.h and sysctl.
1424 * physmem.c: Add support for *bsd and darwin.
1425 * Makefile.in: Generate depedency for physmem.o.
1426
4a06f7f2
RO
14272003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1428
1429 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
1430 Tru64 UNIX.
1431 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
1432 Tru64 UNIX.
1433
1434 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
1435 machine/hal_sysinfo.h, sys/table.h.
1436 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
1437 * configure, config.in: Regenerate.
1438
64c7e556
KG
14392003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1440
1441 * configure.in: Check for sys/sysmp.h and sysmp.
1442 * physmem.c: Pull upstream copy, add support for irix6.
1443
1444 * config.in, configure: Regenerated.
1445
e9019af6
KG
14462003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1447
1448 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
1449 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
1450 pstat_getdynamic.
7468e0b5 1451
a354191e
KG
14522003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1453
1454 * Makefile.in (CFILES): Add physmem.c.
1455 (REQUIRED_OFILES): Add physmem.o.
1456 * configure.in: Check for sys/pstat.h.
1457 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
1458 * physmem.c: New file, copied from textutils.
1459
1460 * config.in, configure: Regenerated.
1461
4876b2b4
DJ
14622003-02-20 Daniel Jacobowitz <drow@mvista.com>
1463
1464 * Makefile.in (CFILES): Add lrealpath.c.
1465 (REQUIRED_OFILES): Add lrealpath.o.
1466 (lrealpath.o): Add rule.
1467 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
1468 * configure.in: Add realpath and canonicalize_file_name to
1469 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
1470 for canonicalize_file_name.
1471 * lrealpath.c: New file.
1472 * make-relative-prefix.c: Update documentation.
1473 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
1474 * config.in: Regenerated.
1475 * configure: Regenerated.
1476 * functions.texi: Regenerated.
1477
e182f0a3 14782003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1479
1480 * cplus_dem.c: Fix typo: intializes -> initializes.
1481
3343fdd2
AO
14822003-02-20 Alexandre Oliva <aoliva@redhat.com>
1483
1484 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
1485 config.status.
1486 * configure: Rebuilt.
1487
902cf50c
DJ
14882003-02-13 Daniel Jacobowitz <drow@mvista.com>
1489
1490 Fix PR c++/7612.
1491 * cplus-dem.c (demangle_signature): Call string_delete.
1492 Remove extra string_init.
1493 (demangle_arm_hp_template): Call string_delete instead of
1494 string_clear. Add missing string_delete call.
1495 (demangle_qualified): Add missing string_delete call.
1496 (do_type): Remove unused variable btype. Add missing string_delete
1497 call. Call string_delete instead of string_clear.
1498 (demangle_fund_type): Move variable btype inside of the switch
1499 statement. Add missing string_delete call.
1500 (do_arg): Call string_delete instead of string_clear. Remove extra
1501 string_init.
1502 (demangle_nested_args): Free work->previous_argument.
1503
7ac27e08
KG
15042003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1505
1506 * acconfig.h: New file. Add uintptr_t.
1507 * config.in: Regenerated.
1508
b3a8389d
JM
15092003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
1510
1511 * libiberty.texi: Update to GFDL 1.2.
1512
d8c22ce7
CC
15132003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1514
1515 * Makefile.in (libiberty_topdir): New subst.
1516 (mkinstalldirs): Redefine in terms of the above.
1517 * configure.in: AC_SUBST it.
1518 * configure: Regenerate.
1519
4ce1921a
CC
15202003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1521
1522 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
1523 (info-subdir, install-info-subdir, clean-info-subdir)
1524 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
1525 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
1526 Pass $(FLAGS_TO_PASS).
1527
93239fdb
AO
15282003-01-27 Alexandre Oliva <aoliva@redhat.com>
1529
1530 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
1531 /`$$CC -print-multi-os-directory`.
1532
74828682
DJ
15332003-01-26 Daniel Jacobowitz <drow@mvista.com>
1534
1535 * hashtab.c (htab_create_alloc_ex): New function.
1536 (hatab_set_functions_ex): New function.
1537 (htab_delete, htab_expand): Support alternate allocation functions.
1538
ece0e59f
CF
15392003-01-24 Christopher Faylor <cgf@redhat.com>
1540
1541 * configure.in: Remove special pex-cygwin consideration.
1542 * configure: Regenerate.
1543 * pex-cygwin.c: Remove.
1544 * Makefile.in: Remove pex-cygwin.[co] lines.
1545
55d0e5e0
ZW
15462003-01-24 Zack Weinberg <zack@codesourcery.com>
1547
1548 * Makefile.in (CFILES): Add pex-*.c.
1549 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
1550 (CONFIGURED_OFILES): Add pex-*.o.
1551 (TEXIFILES): Add pexecute.txh.
1552 (pexecute.o): Delete rule.
1553 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
1554 pex-unix.o, pex-win32.o): New rules.
1555 * configure.in: Change AC_INIT argument to xmalloc.c.
1556 Compute appropriate pexecute implementation and substitute it
1557 as @pexecute@.
1558
1559 * pexecute.c: Split up into...
1560 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
1561 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
1562 new files.
1563
1564 * functions.texi: Regenerate.
1565 * configure: Regenerate.
1566
120cdf68
JZ
15672003-01-20 Josef Zlomek <zlomekj@suse.cz>
1568
1569 * hashtab.c (htab_expand): Fix allocation of new entries.
1570
90e5b39f
CC
15712003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1572
1573 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
1574
d7082cd7
CC
1575 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
1576 mkinstalldirs command.
1577
eaed9290
DS
15782002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
1579
1580 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
1581 Define for hosts with HOST_EXECUTABLE_SUFFIX.
1582
ef4e4181
NC
15832002-11-24 Nick Clifton <nickc@redhat.com>
1584
1585 * make-relative-prefix.c (make_relative_prefix): Ensure return
1586 string is empty before using strcat to construct it.
1587
42766f8d
DJ
15882002-11-22 Daniel Jacobowitz <drow@mvista.com>
1589
1590 * Makefile.in: Add make-relative-prefix.c.
1591 * make-relative-prefix.c: New file.
1592 * functions.texi: Rebuilt.
1593
783080ab
JJ
15942002-11-16 Jakub Jelinek <jakub@redhat.com>
1595
1596 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
1597 used with arguments in traditional C' warnings.
1598
7da64d7a
JJ
15992002-10-16 Jakub Jelinek <jakub@redhat.com>
1600
1601 * config.table: Use mh-s390pic for s390x too.
1602
de78f58b
AJ
16032002-10-06 Andreas Jaeger <aj@suse.de>
1604
1605 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
1606 variable and of strict-aliasing warning.
1607 (grow_vect): Use char as first parameter.
1608
6c5d742e
KG
16092002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1610
1611 * Makefile.in (all): Fix multilib parallel build.
1612
f08b7eee
JDA
16132002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
1614
1615 * cp-demangle.c (demangling_new): Cast 0 to enum.
1616 (demangle_char): Cast return of strdup to char *.
1617 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
1618 (is_gnu_v3_mangled_dtor): Likewise.
1619 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
1620 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
1621 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
1622 * md5.c (md5_process_bytes): Cast results back to const void *.
1623 (md5_process_block): Add cast to const md5_uint32 *.
1624 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
1625 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
1626 unsigned short.
1627 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
1628 to void *.
1629 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
1630
8d87f295
NC
16312002-09-19 Nick Clifton <nickc@redhat.com>
1632
1633 * README: Update email addresses for bugs and patches.
1634
6eedb9ca
MS
16352002-09-10 Mike Stump <mrs@apple.com>
1636
1637 * splay-tree.c (splay_tree_successor): Fix comments.
1638
3fd9d606
ZW
16392002-09-11 Zack Weinberg <zack@codesourcery.com>
1640
b2196e8f 1641 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
3fd9d606
ZW
1642 * testsuite/Makefile.in: Adjust for test-demangle.
1643 * testsuite/regress-demangle: Deleted.
1644 * testsuite/test-demangle.c: New file.
1645 * testsuite/demangle-expected: Change \$ to $ throughout, now that
1646 this file is not being read by a shell script.
1647
70c4e67a
RS
16482002-09-05 Roger Sayle <roger@eyesopen.com>
1649
1650 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
1651
65b91091
DD
16522002-08-07 DJ Delorie <dj@redhat.com>
1653
1654 * regex.c (re_error_msgid): Just use a simple array of strings.
1655 (re_compile_pattern): Compensate.
1656 (re_comp): Likewise.
1657 (re_comp): Likewise.
1658 (regerror): Likewise.
1659
437974a9
NB
16602002-07-29 Neil Booth <neil@daikokuya.co.uk>
1661
1662 * cplus-dem.c (PREPEND_BLANK): Remove.
de78f58b 1663
28a34ec1
JM
16642002-07-10 Jason Merrill <jason@redhat.com>
1665
1666 * cp-demangle.c (demangle_identifier): Support extended Unicode
1667 characters.
1668
84326592
KG
16692002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1670
1671 * cp-demangle.c (demangle_v3_with_details): Wrap in
de78f58b 1672 !defined IN_GLIBCPP_V3.
84326592 1673
5d69ba1f
MM
16742002-07-01 Mark Mitchell <mark@codesourcery.com>
1675
1676 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
1677 Set it for the "st" operator.
1678 (demangle_expression): Handle expressions with types as arguments.
1679
7fda878c
DR
16802002-06-30 Douglas Rupp <rupp@gnat.com>
1681
1682 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
1683 * Makefile.in (OUTPUT_OPTION): Use.
1684
112bae77
PB
16852002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
1686
1687 * Makefile.in (install_to_libdir): Add $(DESTDIR).
1688 (install_to_tooldir): Likewise.
1689
53309d5c
DR
16902002-06-17 Douglas Rupp <rupp@gnat.com>
1691
1692 * lbasename.c: Add 2002 to copyright.
1693 (IS_DIR_SEPARATOR): Remove VMS junk.
1694
045b3a49
GK
16952002-06-05 Geoffrey Keating <geoffk@redhat.com>
1696
1697 * hashtab.c (htab_create): New stub function for backward
1698 compatibility.
1699 (htab_try_create): Likewise.
1700
e2500fed
GK
17012002-06-03 Geoffrey Keating <geoffk@redhat.com>
1702
1703 * hashtab.c (htab_create): Delete.
1704 (htab_try_create): Delete.
1705 (htab_create_alloc): New.
1706 (htab_delete): Support user-specified memory allocation.
1707 (htab_expand): Likewise.
1708
9f3dbd92
RL
17092002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
1710
1711 * configure.in: Fix typo in the code checking for sys_errlist.
1712 * configure: Regenerated.
1713
e4723404
AS
17142002-05-13 Andreas Schwab <schwab@suse.de>
1715
1716 * config.table: Use mh-x86pic also for x86-64.
1717
6706f116
AO
17182002-05-08 Alexandre Oliva <aoliva@redhat.com>
1719
1720 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1721 script entry, and set LD to it when configuring multilibs.
1722 * configure: Rebuilt.
1723
deae2ed9
MM
17242002-05-07 Mark Mitchell <mark@codesourcery.com>
1725
1726 * configure.in (AC_TYPE_PID_T): Use it.
1727 * configure: Regenerated.
1728 * getruntime.c: Include <sys/types.h>.
1729 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
1730
4fc4e478
RH
17312002-04-09 Richard Henderson <rth@redhat.com>
1732
1733 * hashtab.c (higher_prime_number): Use 7 as minimum.
1734 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
1735 (htab_find_slot_with_hash): Likewise.
1736
bd7e6f2d
PE
17372002-04-01 Phil Edwards <pme@gcc.gnu.org>
1738
1739 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
1740 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
1741 not compile if IN_GLIBCPP_V3 defined.
1742 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
1743
a8f55e51
BM
17442002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1745
de78f58b 1746 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
a8f55e51
BM
1747 if it is NULL.
1748
96adcacb
DD
17492002-03-27 DJ Delorie <dj@redhat.com>
1750
1751 * hex.c: Add documentation.
1752 (_hex_value): Provide non-ASCII empty table.
1753 (hex_init): Initialize the non-ASCII table.
1754 * functions.texi: Regenerate.
1755
2b613c6a
MM
17562002-03-27 Mark Mitchell <mark@codesourcery.com>
1757
1758 * dyn-string.c: Add libgcc exception to copyright notice.
1759
cd862df8
L
17602002-03-26 H.J. Lu (hjl@gnu.org)
1761
1762 * config.table: Support --with-build-subdir.
1763 * configure.in: Likewise.
1764 * configure: Rebuild.
1765
ed300793
SG
17662002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
1767
1768 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
1769 seen.
1770
b3dd43df
MM
17712002-03-12 Mark Mitchell <mark@codesourcery.com>
1772
1773 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
1774 notice.
1775
50c74579
DR
17762002-03-11 Douglas B Rupp <rupp@gnat.com>
1777
1778 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
1779
957978a4
JB
17802002-03-06 Jim Blandy <jimb@redhat.com>
1781
1782 * splay-tree.c (splay_tree_xmalloc_allocate,
1783 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
1784 prototyped definitions. Mark `data' arguments as unused.
1785
ccc49bed
AC
17862002-03-06 Andrew Cagney <ac131313@redhat.com>
1787
1788 * floatformat.c (floatformat_arm_ext_big): Delete definition.
1789
48d7db63
PE
17902002-03-04 Phil Edwards <pme@gcc.gnu.org>
1791
1792 * configure.in: Add --enable-install-libiberty option.
1793 * Makefile.in (INSTALLED_HEADERS): New variable.
1794 (install_to_libdir): Possibly also copy headers.
1795 * configure: Regenerated.
1796
af18e951
NB
17972002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
1798
1799 * xmalloc.c (xmalloc_fail): Clarify error message further.
1800
d8d7c3c3
NB
18012002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
1802
1803 * xmalloc.c (xmalloc_fail): Clarify error message.
1804
00c2f96f
JB
18052002-02-22 Jim Blandy <jimb@redhat.com>
1806
1807 * splay-tree.c (splay_tree_xmalloc_allocate,
1808 splay_tree_xmalloc_deallocate): New functions.
1809 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
1810 above functions and a dummy data pointer.
1811 (splay_tree_new_with_allocator): New function.
1812 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
1813 splay_tree_remove): Use the splay tree's allocation and
1814 deallocation functions.
1815
b1c1a22f
SS
18162002-02-19 Scott Snyder <snyder@fnal.gov>
1817
1818 * testsuite/demangle-expected: Add test case for infinite loop in
1819 demangler.
1820 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
1821 if do_type() doesn't make any progress --- prevents an infinite
1822 loop.
1823
336669e7
CW
18242002-02-18 Carlo Wood <carlo@gnu.org>
1825
1826 PR c++/5390
1827 * cplus-dem.c (demangle_integral_value): Accept multi-digit
1828 numbers that do not start with an underscore; This is needed
1829 for integer template parameters. This doesn't break anything
1830 because multi-digit numbers are never followed by a digit.
1831 * testsuite/demangle-expected: Corrected all mangled test
1832 cases with multi-digit template parameters: g++ 2.95.x does
1833 not generate underscores around these parameters.
1834
c13db5d1
JM
18352002-02-05 Jason Merrill <jason@redhat.com>
1836
1837 * cplus-dem.c (flags): Add DMGL_VERBOSE
1838 (cplus_demangle_v3_p): Remove.
1839 (demangle_it): Add DMGL_TYPES to passed flags.
1840 * cp-demangle.c (cplus_demangle_v3_all): Remove.
1841 (cplus_demangle_v3_type): Remove.
1842 (cplus_demangle_v3): Add options parm.
1843
d74697b8
L
18442002-02-02 H.J. Lu (hjl@gnu.org)
1845
1846 * cp-demangle.c (cp_demangle_type): Do not protect with
1847 IN_LIBGCC2.
1848 (cplus_demangle_v3_all): New.
1849 (cplus_demangle_v3): Call cplus_demangle_v3_all.
1850 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
1851
1852 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
1853 Initialized to cplus_demangle_v3.
1854 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
1855 of cplus_demangle_v3.
1856 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
1857 command line symbol.
1858
1859 * testsuite/regress-demangle: Pass the mangled name at the
1860 command line.
1861
3a441e38
L
18622002-02-01 H.J. Lu <hjl@gnu.org>
1863
1864 * cp-demangle.c (cp_demangle_type): Call demangling_new with
1865 DMGL_GNU_V3.
1866
6d747e63
PE
18672002-01-31 Phil Edwards <pme@gcc.gnu.org>
1868
1869 * cp-demangle.c: Revert yesterday's change.
1870
46af757b
AM
18712002-01-31 Adam Megacz <adam@xwt.org>
1872
1873 * gcc/libiberty/configure.in: Treat mingw the same as cywin
1874 wrt HAVE_SYS_ERRLIST.
1875
46ab74b1
PE
18762002-01-30 Phil Edwards <pme@gcc.gnu.org>
1877
1878 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
1879 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
1880 cp_demangle_type.
1881 * testsuite/demangle-expected: New gnu-v3 test.
1882
e64d0626
MV
18832002-01-22 Momchil Velikov <velco@fadata.bg>
1884
1885 * configure.in (variable detection): Use arrays of unspecified
1886 size instead of plain integers.
1887
9ce3f7e5
DD
18882002-01-18 DJ Delorie <dj@redhat.com>
1889
1890 * Makefile.in (TESTLIB): New. This library is for future
1891 testsuites.
1892 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
1893 break down by letter.
1894 (REQUIRED_OFILES): List long-to-compile files first.
1895 (maint-deps): New, target for updating dependencies.
1896 (dependencies): Update.
1897 * maint-tool: Add dependency-generating option.
1898 * configure.in: Check for _doprnt even if we're not providing it.
1899 * configure: Regenerate.
1900
1901 * _doprnt.c: Modifications to allow compiling on any platform.
1902 * copysign.c: Likewise.
1903 * putenv.c: Likewise.
1904 * setenv.c: Likewise.
1905 * vsprintf.c: Likewise.
1906
0e83ceb1
DR
19072002-01-15 Douglas B Rupp <rupp@gnat.com>
1908
1909 * mkstemps.c (mkstemps): On VMS, open temp file with option
1910 that causes it to be deleted when closed.
1911
adddf5bf
KG
19122002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1913
5e65297b
KG
1914 * cp-demangle.c (long_options): Const-ify.
1915 * cplus-dem.c (long_options): Likewise.
1916
adddf5bf
KG
1917 * cplus-dem.c (mystrstr): Delete. All callers changed to use
1918 strstr instead.
1919
a4219437
IR
19202001-12-31 Ira Ruben <ira@apple.com>
1921
1922 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
1923 * configure: Regenerated.
af328d8d
DR
1924
19252001-12-24 Douglas B. Rupp <rupp@gnat.com>
1926
1927 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
1928 * configure: Regenerated.
a4219437 1929
63de15a4
CR
19302001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
1931
1932 PR other/2719
1933 * cplus-dem.c (consume_count): Treat negative count as an error.
1934 * testsuite/demangle-expected: Added testcase.
1935
ee262b6f
DR
1936Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
1937
1938 * configure.in: Hardcode that vfork works on VMS host.
1939 * configure: Regenerated.
1940
d06ba3c7
RH
19412001-12-06 Richard Henderson <rth@redhat.com>
1942
1943 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
1944 (cplus_demangle): Support no_demangling.
1945
e490616e
ZW
19462001-11-27 Zack Weinberg <zack@codesourcery.com>
1947
1948 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
1949 in libiberty context. Fix typo in leading comment.
1950 * configure.in: Fix various AC_DEFINEs so autoheader works.
1951 If any of vprintf, vsprintf, vfprintf is missing from libc,
1952 then AC_REPLACE_FUNCS(_doprnt).
1953
97e620cf 19542001-11-26 DJ Delorie <dj@redhat.com>
e490616e 1955 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
1956
1957 * Makefile.in (stamp-h): Depend on Makefile for proper
1958 serialization.
1959 (*-subdir): Depend on config.h for proper serialization.
1960
c3bb7df0
DD
19612001-11-26 DJ Delorie <dj@redhat.com>
1962
1963 * configure.in: Check for alloca.h (for regex.c and putenv.c).
1964 * configure: Regenerate.
1965 * config.h: Add HAVE_ALLOCA_H.
1966
23850d35
KG
19672001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1968
2c47b56b
KG
1969 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
1970 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
1971 is available.
23850d35 1972
7ddfb651
JL
1973Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
1974
d3982b71
JL
1975 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
1976 * configure.in (HAVE_UINTPTR_T): Test for system defining
1977 uintptr_t and define HAVE_UINTPTR_T appropriately.
1978 * regex.c (uintptr_t): Do not provide a definition if the
1979 system provided one.
1980
7ddfb651
JL
1981 * regex.c (PREFIX): Provide an alternate definition for
1982 non-ANSI/ISO compilers.
1983 (ARG_PREFIX): Likewise.
1984
2e683037
JM
19852001-11-12 Jim Meyering <meyering@lucent.com>
1986
1987 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
1988 this code would end up calling gettext even in packages built
1989 with --disable-nls.
1990 * getopt.c (_): Likewise.
1991 * regex.c (_): Likewise.
1992
f749bd83
AM
19932001-11-03 Alan Modra <amodra@bigpond.net.au>
1994
1995 * configure.in: Cope with missing makeinfo.
55a10d7c 1996 * configure: Regenerate.
f749bd83 1997
26ad2982
KG
19982001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1999
e5969ba6
KG
2000 * hex.c (hex_init): Provide empty stub.
2001
26ad2982
KG
2002 * hex.c (hex_init): Delete.
2003 (_hex_value): Const-ify and initialize at compile-time.
2004
afb649d5
L
20052001-10-19 H.J. Lu <hjl@gnu.org>
2006
2007 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
2008 necessary.
2009
5bed56d9
DD
20102001-10-17 DJ Delorie <dj@redhat.com>
2011
2012 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
2013 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
4dcc42a3 2014 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
2015 Improve manual formatting.
2016 * functions.texi: Regenerate.
2017
aac04c15
DD
20182001-10-15 DJ Delorie <dj@redhat.com>
2019
2020 * Makefile.in (TEXIFILES): Add fnmatch.txh.
2021 (maint-undoc): New.
2022 maint-tool: Add "undoc" tool.
2023 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
2024 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
2025 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
2026 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
2027 documentation.
2028 * fnmatch.txh: New.
2029 * functions.texi: Regenerate.
fae8182a 2030
0e4e9e8f
JM
20312001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
2032
2033 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
2034 * strtod.c: Use "ISO C" instead of "ANSI C".
2035 * functions.texi: Regenerate.
2036
7f8fa05d
JM
20372001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
2038
2039 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
2040 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
2041 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
2042 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
2043 spelling. Give names to function arguments in documentation. Use
2044 (void) prototypes in documentation.
2045 * functions.texi: Regenerate.
2046
0be6abca
KG
20472001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2048
2049 * argv.c (buildargv, tests, main): Const-ify.
2050 * cp-demangle.c (operator_code): Likewise.
2051 * cplus-dem.c (optable, libiberty_demanglers,
2052 cplus_demangle_set_style, cplus_demangle_name_to_style,
2053 print_demangler_list): Likewise.
2054 * hashtab.c (higher_prime_number): Likewise.
2055 * strcasecmp.c (charmap): Likewise.
2056 * strerror.c (error_info, strerror, main): Likewise.
2057 * strncasecmp.c (charmap): Likewise.
2058 * strsignal.c (signal_info): Likewise.
2059
0e30ffc5
DD
20602001-09-29 DJ Delorie <dj@redhat.com>
2061
2062 * configure: Regenerate.
2063
576fb787
KG
20642001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2065
2066 * concat.c: Include stdlib.h.
2067
e922f978
EZ
20682001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2069
2070 * libiberty.texi: (Top level): Add syncodeindex pg. Add
2071 @dircategory and @direntry directives. Add @finalout.
2072 (many nodes): Lose the next,prev,up pointers on the @nide line.
2073 (Using, Supplemental Functions, Replacement Functions): Fix
2074 markup.
2075 (Functions): Move around, to allow makeinfo to build the manual
2076 without next,prev,up pointers in thye node lines.
2077 (Licenses): Fix typos.
2078
2079 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
2080 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
2081 * functions.texi: Regenerate.
2082
2083 * copying-lib.texi: Lose the next,prev,up pointers on the @node
2084 line.
2085
ae9092da
DD
20862001-09-27 DJ Delorie <dj@redhat.com>
2087
2088 * configure.in: Don't use in-tree texinfo, because libiberty must
2089 be built before it. Check for makeinfo version 4 or higher.
2090 * functions.texi: Regenerate.
fae8182a 2091
aaa5f039
DD
20922001-09-20 DJ Delorie <dj@redhat.com>
2093 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 2094
aaa5f039
DD
2095 * configure.in (MAKEINFO, PERL): Detect these.
2096 (--enable-maintainer-mode): Add.
2097 * configure: Regenerate.
2098 * Makefile.in (MAKEINFO, PERL): Define.
2099 (libiberty.info, libiberty.dvi, libiberty.html): New.
2100 (CFILES): Add bsearch.c.
2101 (CONFIGURED_OFILES): New, list of objects configure might add.
2102 (maint-missing, maint-buildall): New, for maintainers only.
2103 (clean, mostlyclean): Add info/dvi/html files.
2104 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
2105 * gather-docs: New, for maintainers.
2106 * maint-tool: New, for maintainers.
2107 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
2108 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
2109 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
2110 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
2111 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
2112 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
2113 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
2114 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
2115 documentation.
fae8182a 2116
c1766881
KG
21172001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2118
2119 * concat.c (reconcat): Fix for traditional C.
2120
ad43d46f
KG
21212001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2122
2123 * concat.c (reconcat): New function.
2124
c1d49704
KG
21252001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2126
c793eea7
KG
2127 * concat.c (vconcat_length, vconcat_copy, concat_length,
2128 concat_copy, concat_copy2): New functions.
2129 (concat): Use vconcat_length/vconcat_copy.
2130
c1d49704
KG
2131 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
2132 Define.
2133
7a98d9b2
KG
21342001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2135
2136 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
2137 VA_FIXEDARG & VA_CLOSE.
fae8182a 2138
7a98d9b2
KG
2139 * vasprintf.c: Check HAVE_STRING_H when including string.h.
2140 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
2141 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
2142
e2dff3f2
KG
21432001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2144
2145 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
2146
d0708dc1
UD
21472001-08-23 Ulrich Drepper <drepper@redhat.com>
2148
2149 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
2150
21512001-08-23 Ulrich Drepper <drepper@redhat.com>
2152
2153 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2154 instead of mbrtowc.
2155 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2156 wcslen, and __wcscoll instead of wcscoll.
2157
ffb9435b
MK
21582001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2159
de78f58b
AJ
2160 * fibheap.c (fibheap_init, fibnode_init): Remove.
2161 (fibheap_new, fibnode_new): Use xcalloc to allocate and
2162 initialize memory.
2163 (fibheap_insert): Remove check for node allocation failure.
ffb9435b 2164
f379eac3
RH
21652001-08-21 Richard Henderson <rth@redhat.com>
2166
2167 * Makefile.in (fibheap.o): Depend on config.h.
2168 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
2169 functions for inlining.
2170
b1c45ae4
CF
2171Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
2172
2173 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
2174 hosting on cygwin.
2175 * configure: Regenerate.
2176
0310e5ac
AC
21772001-08-20 Andrew Cagney <ac131313@redhat.com>
2178
2179 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
2180 HARRIS_FLOAT_FORMAT.
2181 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
2182 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
2183 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
2184 (floatformat_m88110_harris_ext): New float formats.
2185
8c23e0a4
DB
21862001-08-20 Daniel Berlin <dan@cgsoftware.com>
2187
2188 * fibheap.c: New file. Fibonacci heap.
2189
2190 * Makefile.in (CFILES): Add fibheap.c.
2191 (REQUIRED_OFILES): Add fibheap.o.
2192 (fibheap.o): Add dependencies for fibheap.o.
2193
91625004
CF
21942001-08-17 Christopher Faylor <cgf@cygnus.com>
2195
2196 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
2197 * configure: Regenerate.
2198
9e0ba685
RH
21992001-08-16 Richard Henderson <rth@redhat.com>
2200
2201 * hashtab.c (htab_hash_string): New.
2202
d80dedbe
AC
22032001-08-13 Andrew Cagney <ac131313@redhat.com>
2204
2205 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
2206 name.
2207
ccea0d85
IH
22082001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
2209
2210 * regex.c (wcs_regex_compile): Use appropriate string
2211 to compare with collating element.
2212 Fix the padding for the alignment.
2213
b0e9bc8c 22142001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
2215
2216 * lbasename.c (lbasename): Change function definition to return a
2217 const char pointer.
2218
056400f1
JM
22192001-08-07 Jason Merrill <jason_merrill@redhat.com>
2220
2221 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
2222 for".
2223
4e627c41
RH
22242001-08-03 Richard Henderson <rth@redhat.com>
2225
2226 * Makefile.in (concat.o): Depend on config.h.
2227
b6a2f884
AJ
22282001-07-30 Andreas Jaeger <aj@suse.de>
2229
2230 * concat.c: Include "config.h".
2231
c4b9cfe0
AJ
22322001-07-30 Andreas Jaeger <aj@suse.de>
2233
2234 * regex.c: Declare wcs functions only if compiling with
2235 MBS_SUPPORT.
2236 Don't use #elif for traditional C.
2237
22382001-07-23 Ulrich Drepper <drepper@redhat.com>
2239
2240 * regex.c: Revamp memory allocation for WCHAR functions to
2241 not use too much stack.
2242
22432001-07-30 Andreas Jaeger <aj@suse.de>
2244
2245 * regex.c: Declare wcs functions only if compiling with
2246 MBS_SUPPORT.
2247 Don't use #elif for traditional C.
2248
2cf50fd3
DJ
22492001-07-25 Daniel Jacobowitz <drow@mvista.com>
2250
2251 * Makefile.in (regex.o): Add dependency on config.h.
2252
27ffc806
DD
22532001-07-18 Andreas Schwab <schwab@suse.de>
2254
2255 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
2256 underscore character.
2257
22582001-07-18 Ulrich Drepper <drepper@redhat.com>
2259
2260 * regex.c: Limit string length printed in debug messages to 100
2261 chars.
2262
22632001-07-18 Andreas Jaeger <aj@suse.de>
2264
2265 * regex.c: Place under LGPL version 2.1.
2266
dd771632
JJ
22672001-07-10 Jeff Johnston <jjohnstn@redhat.com>
2268
2269 * Makefile.in: Add support for regex code.
2270 * regex.c: New file.
2271
29650b2b
MK
22722001-07-05 Mark Klein <mklein@dis.com>
2273
2274 * Makefile.in: Add ffs.c dependency.
2275 * configure.in: Add ffs.c.
2276 * ffs.c: New file.
2277
c8b28221
RH
22782001-06-18 Richard Henderson <rth@redhat.com>
2279
2280 * concat.c: Include <sys/types.h>.
2281
473c2d0b
LR
22822001-06-11 Loren J. Rittle <ljrittle@acm.org>
2283
a4c03da2 2284 bootstrap/3106
473c2d0b
LR
2285 * strerror.c (sys_nerr): Hide the OS header version.
2286 * strsignal.c (sys_nsig): Likewise.
2287
0bdcca68
RH
22882001-06-10 Richard Henderson <rth@redhat.com>
2289
2290 * concat.c: Include string.h. Fix int vs size_t usage.
2291 Simplify the iteration loops. Use memcpy.
2292
6de133d3
MK
22932001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2294
2295 * partition.c: Fix misspelling of `implementation'.
2296
8a153288
TS
22972001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2298
2299 * md5.c (md5_init_ctx): Declare constants as unsigned.
2300 (md5_process_block): Likewise.
2301
641b2721
ZW
23022001-05-07 Zack Weinberg <zackw@stanford.edu>
2303
2304 * cp-demangle.c (demangle_v3_with_details,
2305 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
2306 function definition.
2307 * ternary.c: Use K+R style function definitions. Use PTR, not
2308 void *. Make arguments constant where possible.
2309
5cdba4ff
MM
23102001-05-07 Mark Mitchell <mark@codesourcery.com>
2311
2312 * splay-tree.h (splay_tree_max): New function.
2313 (splay_tree_min): Likewise.
2314
9dab060e
DB
23152001-04-15 Daniel Berlin <dan@cgsoftware.com>
2316
2317 * ternary.c: New file - Ternary search tree implementation.
2318
2319 * Makefile.in: Add ternary.o, and ternary.c dependencies.
2320
d02af173
ZW
23212001-04-03 Zack Weinberg <zackw@stanford.edu>
2322
2323 * make-temp-file.c (try): Inline.
2324
94b68558
RH
23252001-02-28 Richard Henderson <rth@redhat.com>
2326
2327 * Makefile.in (make-temp-file.o): Depend on config.h.
2328
27f66c0b
KG
23292001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2330
2331 * memchr.c (memchr): Adjust condition to avoid infinite loop.
2332
f1a0345c
JJ
23332001-03-23 Jakub Jelinek <jakub@redhat.com>
2334
2335 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
2336 `_' not followed by a digit is invalid.
2337
a519fba6
JB
23382001-03-22 Jim Blandy <jimb@redhat.com>
2339
2340 * cp-demangle.c (string_list_delete): Use dyn_string_delete
2341 instead of free, to free the contents as well as the string
2342 structure.
2343
49ee944b
ZW
23442001-03-21 Zack Weinberg <zackw@stanford.edu>
2345
2346 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
2347 Don't default P_tmpdir to anything. Try /var/tmp before
2348 /usr/tmp.
2349
33437dc7
ZW
23502001-03-20 Zack Weinberg <zackw@stanford.edu>
2351
2352 * choose-temp.c: Split off make_temp_file, and the code
2353 duplicated between it and choose_temp_base, into...
2354 * make-temp-file.c: ... here; new file.
2355
2356 * Makefile.in (CFILES): Add make-temp-file.c.
2357 (REQUIRED_OFILES): Add make-temp-file.o.
2358
7dce2eff
JB
23592001-03-20 Jim Blandy <jimb@redhat.com>
2360
2361 * cp-demangle.c (struct demangling_def): New fields:
2362 is_constructor and is_destructor.
2363 (demangling_new): Initialize them.
2364 (demangle_ctor_dtor_name): Set them, if we detect a constructor
2365 or destructor.
2366 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
2367 is_gnu_v3_mangled_dtor): New functions.
2368
e03a61f1
JM
23692001-03-20 Jason Merrill <jason@redhat.com>
2370
2371 * cplus-dem.c (main): Skip initial $.
2372
8860ddab
MM
23732001-03-15 Michael Meissner <meissner@redhat.com>
2374
2375 * hashtab.c (higher_prime_number): Silence warning that 4294967291
2376 might be a signed integer under pre-ISO C systems.
2377
2b757d51
NB
23782001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
2379 John David Anglin <dave@hiauly1.hia.nrc.ca>
2380
2381 * libiberty/lbasename.c: New file.
2382 * libiberty/Makefile.in: Update for lbasename.
2383
1f50aafb
ZW
23842001-03-06 Zack Weinberg <zackw@stanford.edu>
2385
2386 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
2387 * configure.in: Replace all alloca logic with a simple use of
2388 the above new macro.
2389 * config.table: Kill *-*-beos* entry.
2390 * config/mh-beos: Delete.
2391 * configure, config.in: Regenerate.
2392
2393 * Makefile.in (ALLOCA, HFILES): Kill.
2394 (REQUIRED_OFILES): Add alloca.o.
2395 (alloca.o): Depend on libiberty.h.
2396 (argv.o): Don't depend on alloca-conf.h.
2397 * alloca-conf.h: Delete.
2398 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
2399 blocks. Provide the C alloca unconditionally. Use PTR where
2400 appropriate. Make i00afunc static.
2401 * argv.c: Don't include alloca-conf.h.
2402
d9fd5aae
JDA
24032001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2404
2405 * cplus-dem.c (main): Cast enum style to int.
2406
4031ed65
LR
24072001-02-16 Loren J. Rittle <ljrittle@acm.org>
2408
2409 * cplus-dem.c (main): Initialize style.
2410
2ca46e8a
PE
24112001-02-02 Phil Edwards <pme@sources.redhat.com>
2412
2413 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
2414
3b60dd8e
BM
24152001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
2416
2417 Add support for Java demangling under the v3 ABI:
2418 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
2419 (struct demangling_def): Add `style' field.
2420 (demangling_new): New parameter `style'. Set it in demangling_t.
2421 (demangle_prefix): Use NAMESPACE_SEPARATOR.
2422 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
2423 (cp_demangle): New parameter `style'. Pass it to demangling_new().
2424 (main): Call cp_demangle with extra parameter.
2425 (java_demangle_v3): New function.
2426 (java_builtin_type_names): New. Table of primitive type names used
2427 for Java demangling.
2428 (demangle_builtin_type): Look up in java_builtin_type_names if doing
2429 Java output.
1f50aafb 2430 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
2431 demangling.
2432 (long_options): Remove obsolete `java' option.
2433 (main): Remove explicit handling of `java' option. Instead, pass style
2434 parameter in cplus_demangle flags as gdb does.
2435 * testsuite/demangle.expected: Add some Java test cases.
2436
584932e9
DD
24372000-12-29 DJ Delorie <dj@redhat.com>
2438
2439 * fnmatch.c: Make the note about the origins of this file more
2440 accurate, at least until we can sync with glibc.
2441 * getopt.c: Ditto.
2442 * getopt1.c: Ditto.
2443 * md5.c: Ditto.
2444 * obstack.c: Ditto.
2445
dac45916
MS
24462000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2447
2448 * bsearch.c: New file.
2449 * configure.in (funcs): Add bsearch.
2450 (AC_CHECK_FUNCS): Likewise.
2451 * configure, config.in: Regenerate.
2452
a8e4a997
MS
24532000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2454
2455 * safe-ctype.c: #include "ansidecl.h".
2456 * strtod.c: Likewise.
2457
75444da7
MS
24582000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2459
2460 * strtoul.c: Include safe-ctype.h, not ctype.h.
2461
f6bbde28
ZW
24622000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
2463
2464 * safe-ctype.c: New file.
2465 * Makefile.in (CFILES): Add safe-ctype.c.
2466 (REQUIRED_OFILES): Add safe-ctype.o.
2467
2468 * argv.c: Define ISBLANK and use it, not isspace.
2469 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
2470 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
2471 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
2472 before calling TOLOWER(c)/TOUPPER(c).
2473
6c1ce62b 24742000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
2475
2476 * Makefile.in (distclean): When cleaning, remove testsuite.
2477
b5d1497d
JM
24782000-12-05 Jason Merrill <jason@redhat.com>
2479
2480 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
2481 name before allocating the dyn_string.
2482
c6e13630
JM
24832000-12-04 Jason Merrill <jason@redhat.com>
2484
2485 * cp-demangle.c: s/new_abi/v3/.
2486 * cplus-dem.c: Likewise.
2487 (current_demangling_style): Now auto_demangling.
2488 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 2489 (main): Use standard symbol chars for auto_demangling.
c6e13630 2490
a4c9b97e
MM
24912000-11-26 Mark Mitchell <mark@codesourcery.com>
2492
2493 * hashtab.c (higher_prime_number): Use a table, rather than a
2494 seive, to find the next prime.
2495
3b3bd9a7
L
24962000-11-22 H.J. Lu <hjl@gnu.org>
2497
2498 * cplus-dem.c (main): Handle gnat_demangling.
2499
d1209685
ZW
25002000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2501
2502 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
2503 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
2504 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
2505 argument form of AC_DEFINE in dummy definitions block. Use
2506 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
2507 in dummy block. Preload cache variables instead of bypassing
2508 tests, where possible.
2509 * acconfig.h: Removed.
2510
2511 * xmalloc.c (xmalloc_failed): New function, does error
2512 reporting on failed allocation.
2513 (xmalloc, xcalloc, xrealloc): Use it.
2514
cf183ac2
HPN
25152000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
2516
2517 * cplus-dem.c (cplus_demangle): Fix formatting.
2518 (grow_vect): Ditto.
2519 (ada_demangle): Ditto.
2520 (internal_cplus_demangle): Ditto.
2521 (mop_up): Ditto.
2522
25232000-11-21 H.J. Lu <hjl@gnu.org>
2524
2525 * cplus-dem.c (main): Handle java_demangling.
2526
8bcc782c
KG
25272000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2528
2529 * cplus-dem.c (grow_vect): Prototype.
2530 (ada_demangle): Cast the arg of ctype macros to unsigned char.
2531
29120f44
HPN
25322000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
2533
2534 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
2535 parameter `option'.
2536
0437a5a8
KB
25372000-11-15 Kenneth Block <kenneth.block@compaq.com>
2538
9e038f71 2539 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
2540 be used in GCC.
2541
eab0c1ab 25422000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 2543
29120f44 2544 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
2545 list.
2546
d50d20ec
HPN
25472000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
2548
2549 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
2550 xcalloc depending on htab->return_allocation_failure. Return zero
2551 if calloc fails.
d50d20ec
HPN
2552 (htab_create): Update comment to cover memory allocation.
2553 (htab_try_create): New.
2554 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 2555 Update comment to cover this.
d50d20ec 2556
35e9340f
HPN
25572000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
2558
2559 * hashtab.c: Change void * to PTR where necessary.
2560 (htab_create, htab_expand): Correct formatting of comment before
2561 function.
2562
ea343d1a 25632000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
2564
2565 * cp-demangle.c (string_list_def): Add caret_position and comments.
2566 (result_caret_pos): New macro.
2567 (result_append_string): Rename to...
2568 (result_add_string): ... this, and insert at caret position.
d1209685 2569 Rename throughout.
0870bfd6
AS
2570 (result_append): Rename to...
2571 (result_add): ... this, and insert at caret position. Rename
d1209685 2572 throughout.
0870bfd6
AS
2573 (result_append_char): Rename to...
2574 (result_add_char): ... this, and insert at caret position. Rename
d1209685 2575 throughout.
0870bfd6
AS
2576 (result_append_space): Remove.
2577 (string_list_new): Initialize caret position.
2578 (result_add_separated_char): Use caret position.
2579 (result_get_caret): New funtion.
2580 (result_set_caret): Likewise.
2581 (result_shift_caret): Likewise.
2582 (result_previous_char_is_space): Likewise.
2583 (substitution_start): Use caret position.
2584 (substitution_add): Likewise.
2585 (demangling_new): Initialize caret position.
2586 (demangle_encoding): Use caret position.
d1209685 2587 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
2588 (demangle_type_ptr): Use switch statement. Handle pointers to
2589 arrays. Don't use result_append_space. Use caret position.
2590 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
2591 call to demangle_array_type.
2592 (demangle_array_type): Add parameter to handle pointers to arrays.
2593
f15b9af9
MM
25942000-10-01 Mark Mitchell <mark@codesourcery.com>
2595
2596 * splay-tree.c (splay_tree_insert): Fix formatting.
2597
8f17b5c5
MM
25982000-09-16 Mark Mitchell <mark@codesourcery.com>
2599
2600 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
2601
4eaa189a
MS
26022000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2603
2604 * splay-tree.c: #include <stdio.h>.
2605
29791078
HPN
26062000-09-14 Hans-Peter Nilsson <hp@axis.com>
2607
2608 * testsuite/demangle-expected: Add two tests for anonymous
2609 namespaces.
2610 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
2611
2c9f4db7
MM
26122000-09-10 Mark Mitchell <mark@codesourcery.com>
2613
2614 * splay-tree.c (splay_tree_predecessor): New function.
2615 (splay_tree_successor): Likewise.
2616
bb22da4b
HPN
26172000-09-10 Hans-Peter Nilsson <hp@axis.com>
2618
2619 * testsuite/demangle-expected: Add four tests for type_info
2620 mangling.
bb22da4b
HPN
2621 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
2622 for a non-template non-qualified type_info function or node.
2623
759e8187
AS
26242000-09-08 Alex Samuel <samuel@codesourcery.com>
2625
2626 * cp-demangle.c: Fix copyright banner.
2627
2ecd81ef
MS
26282000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2629
2630 * md5.c: #include "ansidecl.h".
2631
d93998ec
AS
26322000-09-06 Alex Samuel <samuel@codesourcery.com>
2633
2634 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
2635 (demangle_type): Handle substitution candidates correctly in the
2636 face of special substitutions.
2637
1056d228
AS
26382000-09-05 Alex Samuel <samuel@codesourcery.com>
2639
2640 * cp-demangle.c (demangle_encoding): Rename variable.
2641 (demangle_name): Rename parameter. Handle return type
2642 suppression.
2643 (demangle_nested_name): Rename parameter.
2644 (demangle_prefix): Likewise. Change return type suppression.
2645 (demangle_unqualified_name): Add parameter. Flag constructors and
2646 conversion operators.
2647 (demangle_special_name): Fix comment.
2648 (demangle_type): Rename variable.
2649 (demangle_bare_function_type): Check for missing return type and
d1209685 2650 parameter.
1056d228
AS
2651 (demangle_class_enum_type): Rename parameter.
2652 (demangle_discriminator): Fix misspelling in comment.
2653
2f31ed7e
DD
26542000-08-31 DJ Delorie <dj@redhat.com>
2655
2656 * configure.in (Cygwin): special case cygwin only when we're
2657 building cygwin, not when we're hosting cygwin.
2658
02bcb9c6
AS
26592000-09-04 Alex Samuel <samuel@codesourcery.com>
2660
2661 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
2662 <expression>.
2663
aee749cf
AS
26642000-09-04 Alex Samuel <samuel@codesourcery.com>
2665
2666 * cp-demangle.c (demangle_type_ptr): Increment position past
2667 pointer and reference characters.
2668
92a16bbe
AS
26692000-09-04 Alex Samuel <samuel@codesourcery.com>
2670
2671 * cp-demangle.c (demangle_nv_offset): New function.
2672 (demangle_v_offset): Likewise.
2673 (demangle_call_offset): Likewise.
2674 (demangle_special_name): Update thunk demangling to comply with
2675 ABI changes.
d1209685 2676
31e0ab1f
AS
26772000-09-03 Alex Samuel <samuel@codesourcery.com>
2678
2679 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
2680 (substitution_def): Remove template_parm_number.
2681 (NOT_TEMPLATE_PARM): Remove.
2682 (result_insert_string): New macro.
2683 (result_insert): Likewise.
2684 (result_insert_char): Likewise.
2685 (substitution_add): Remove last parameter. Don't store template
d1209685 2686 parm number.
31e0ab1f
AS
2687 (BFT_NO_RETURN_TYPE): Define as NULL.
2688 (demangle_encoding): Adjust call to demangle_bare_function_type.
2689 (demangle_name): Adjust substitution. Adjust call to
d1209685 2690 substitution_add.
31e0ab1f
AS
2691 (demangle_prefix): Adjust call to substitution_add.
2692 (demangle_identifier): Handle anonymous namespaces.
2693 (demangle_operator_name): Change demangling of vendor-extended
2694 operator to match ABI changes.
2695 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 2696 substitutions here.
31e0ab1f
AS
2697 (demangle_type): Adjust calls to demangle_template_param,
2698 substitution_add, and demangle_type_ptr. Fix substitution of
2699 templated types.
2700 (demangle_function_type): Change parameter to a pointer.
2701 (demangle_bare_function_type): Likewise. Adjust insertion point.
2702 (demangle_template_param): Remove last parameter.
2703 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 2704 demangle_template_param.
31e0ab1f
AS
2705 (is_mangled_char): Accept `$' and `.'.
2706 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
2707 * dyn-string.c (dyn_string_insert_char): New function.
2708
ccbc3eb7
HPN
27092000-08-31 Hans-Peter Nilsson <hp@axis.com>
2710
2711 * testsuite/demangle-expected: Add nine tests for
2712 underscore-after-number followed by five tests for name-signature
2713 delimiter.
2714
53dce582
RH
27152000-08-28 Richard Henderson <rth@cygnus.com>
2716
2717 * Makefile.in (md5.o): Depend on config.h.
2718
881c6935
JM
27192000-08-28 Jason Merrill <jason@redhat.com>
2720
2721 * Makefile.in (REQUIRED_OFILES): Add md5.o.
2722 (CFILES): Add md5.c.
2723 * md5.c: New file.
2724
a440fd19
AS
27252000-08-27 Alex Samuel <samuel@codesourcery.com>
2726
2727 * cp-demangle.c (demangle_name): Initialize template_p in local
2728 name case. Don't re-add substitutions as candidates.
2729 (demangle_nested_name): Use <unqualified-name>.
2730 (demangle_prefix): Likewise. Don't add template names as
2731 substitution candidates twice, or re-add a substitution or the
2732 last prefix component.
2733 (demangle_local_name): Adjust output format.
2734
d01ce591
AS
27352000-08-25 Alex Samuel <samuel@codesourcery.com>
2736
2737 * cp-demangle.c (result_add_separated_char): Change parameter to
2738 int.
2739 (substitution_add): Don't check for duplicates. Check if
2740 previously allocated size is zero.
2741 (demangle_name): Remove duplicate check for std substitution.
2742 Clear template flag appropriately.
2743 (demangle_prefix): Remove argument to demangle_substitution.
2744 Don't check that template flag is already set.
2745 (demangle_operator_name): Add pt operator.
2746 (demangle_type): Don't treat r as built-in type. Remove argument
2747 to demangle_substitution. Fix substitution candidate mechanics.
2748 Handle <template-template-parm>s. Improve comments.
d1209685 2749 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
2750 (demangle_substitution): Remove parameter.
2751 (print_usage): Remove extra fprintf option.
2752
2f59c8eb
GM
27532000-08-24 Greg McGary <greg@mcgary.org>
2754
2755 * libiberty/random.c (end_ptr): Revert previous change.
2756
2f26c11d
GM
27572000-08-24 Greg McGary <greg@mcgary.org>
2758
2759 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
2760 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
2761 * libiberty/random.c (end_ptr): Likewise.
2762
e282c9c9
AS
27632000-08-23 Alex Samuel <samuel@codesourcery.com>
2764
2765 * cp-demangle.c (result_close_template_list): Remove function.
2766 (result_add_separated_char): New function.
2767 (result_open_template_list): New macro.
2768 (result_close_template_list): Likewise.
2769 (demangle_prefix): Don't set template_p if the
2770 prefix ends with a ctor name.
2771 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
2772 (demangle_type): Check for template args after substitution.
2773 (demangle_template_args): Use result_open_template_list.
d1209685 2774
c9b6494a
ZW
27752000-08-02 Zack Weinberg <zack@wolery.cumb.org>
2776
2777 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
2778
d1209685 27792000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
2780
2781 * config/mh-openedition.h: Added -DLE370 definition.
2782
0aab2795
ME
27832000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
2784
2785 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
2786 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
2787 Cast program to 'char *' in errmsg_arg assignment.
2788 (PWAIT_ERROR): Define.
2789 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
2790 to DJGPP's WIF* macros.
2791
c2f275e4
RB
27922000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
2793 Jeff Law <law@cygnus.com>
2794
73aa9564
RB
2795 * getcwd.c: Include string.h, stdlib.h for prototypes
2796
c2f275e4 2797 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
2798 * rename.c: Include config.h, unistd.h
2799 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 2800
ccbc3eb7
HPN
28012000-07-24 Hans-Peter Nilsson <hp@axis.com>
2802
2803 * cplus-dem.c (work_stuff_copy_to_from): New.
2804 (delete_non_B_K_work_stuff): New.
2805 (delete_work_stuff): New.
2806 (mop_up): Break out work_stuff partly destruction to
2807 delete_non_B_K_work_stuff.
2808 (iterate_demangle_function): New.
2809 (demangle_prefix): Call iterate_demangle_function instead of
2810 demangle_function_name. Leave handling of name-signature
2811 __-delimiters to iterate_demangle_function.
2812 (demangle_integral_value): Strip an optional
2813 following underscore cautiously. Handle negative numbers.
2814
3388651c
DB
28152000-07-24 Daniel Berlin <dberlin@redhat.com>
2816
d1209685 2817 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
2818 if (AUTO_DEMANGLING || GNU_DEMANGLING)
2819
0fac482e
AS
28202000-07-21 Alex Samuel <samuel@codesourcery.com>
2821
2822 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
2823 allocating ctor mangling.
2824 (demangle_array_type): Handle empty and non-constant array length.
2825
8502a100 28262000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
2827 Jeff Law <law@cygnus.com>
2828
c6451ce1
MS
2829 * configure.in (AC_CHECK_HEADERS): Add time.h.
2830 (AC_HEADER_TIME): Add check.
2831 * configure, config.in: Regenerate.
2832 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
2833
cd447360
MS
2834 * configure.in (AC_CHECK_HEADERS): Add limits.h.
2835 * configure, config.in: Regenerate.
2836 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
2837 * strtol.c, strtoul.c: #include "config.h". Portably #include
2838 <limits.h> and/or <sys/param.h>.
2839 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 2840
3b58c099
MS
2841 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
2842 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
2843 * configure, config.in: Regenerate.
2844 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
2845
8502a100
MS
2846 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
2847
da0c7743
MS
28482000-07-21 Mike Stump <mrs@wrs.com>
2849
2850 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 2851 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 2852
838f8562
KG
28532000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2854
2855 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
2856
2857 * setenv.c (setenv): Initialize variable `ep'.
2858
2859 * sigsetmask.c (abort): Prototype.
2860
2861 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
2862 __STDC__ for stdarg.h include.
2863 (int_vasprintf): Prototype.
2864 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
2865 definition. Cast `global_total_width' in comparison.
2866 (main): Prototype. Return a value.
2867
2868 * vfork.c (fork): Prototype.
2869
2870 * xexit.c: Include config.h.
2871
e9958132
JM
28722000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
2873
2874 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
2875 and print it with %u.
2876
39a6492f
HPN
28772000-07-17 Hans-Peter Nilsson <hp@axis.com>
2878
2879 * testsuite/regress-demangle (failed test): Show result and
2880 expected output.
2881
6d0be369
AH
28822000-07-07 Andrew Haley <aph@cygnus.com>
2883
2884 * cplus-dem.c (main): fflush() after emitting last char before
2885 waiting for input.
2886
bece74bd
AS
28872000-06-28 Alex Samuel <samuel@codesourcery.com>
2888
2889 * cp-demangle.c (demangle_encoding): Accept no substitutions.
2890 (demangle_name): Handle <substitution> followed by
2891 <unqualified-template-name>.
2892 (demangle_type): Follow special substitutions with
2893 <class-enum-type>
2894 (demangle_subtitution): Set template_p for special substitutions.
2895 (main): Fix typos.
d1209685 2896
229b8ec7
AS
28972000-06-27 Alex Samuel <samuel@codesourcery.com>
2898
2899 * cp-demangle.c (demangle_special_name): Swap base and derived
2900 class when demangling construction vtables.
2901
051664b0
AS
29022000-06-21 Alex Samuel <samuel@codesourcery.com>
2903
2904 * cp-demangle.c: Don't include ctype.h.
2905 (IS_DIGIT): New macro.
2906 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
2907 instead of isdigit and isalpanum.
2908 (demangling_def): Make name and next const pointers.
2909 (STATUS_ALLOCATION_FAILED): New status code.
2910 (dyn_string_append_space): Handle failure in
2911 dyn_string_append_char.
2912 (int_to_dyn_string): Likewise. Change return value to status_t.
2913 (string_list_new): Handle failure of dyn_string_init.
2914 (result_close_template_list): Change return type to status_t.
2915 Handle failure in dyn_string_append.
2916 (result_push): Change return value to status_t. Handle failure in
2917 string_list_new. Handle failure of result_push throughout.
2918 (substitution_add): Change return value to status_t. Handle
2919 dyn_string failures. Handle failure of substitution_add
2920 throughout.
2921 (template_arg_list_new): Return NULL on allocation failure.
2922 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
2923 Handle error result throughout.
2924 (result_append): Likewise.
2925 (result_append_char): Likewise.
2926 (result_append_space): Likewise.
2927 (demangling_new): Make argument a const pointer. Handle
2928 allocation failures.
2929 (demangle_template_args): Handle failure in template_arg_list_new
2930 and result_close_template_list.
2931 (demangle_discriminator): Return if int_to_dyn_string fails.
2932 (cp_demangle): Likewise.
2933 (cp_demangle_type): New function.
2934 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
2935 memory allocation failure.
2936 (main): Likewise.
2937 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
2938 IN_LIBGCC2.
2939 (dyn_string_init): Change return value to int. Handle
2940 RETURN_ON_ALLOCATION_FAILURE case.
2941 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
2942 (dyn_string_release): Delete the dyn_string.
2943 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
2944 (dyn_string_copy): Change return type to int.
2945 (dyn_string_copy_cstr): Likewise.
2946 (dyn_string_prepend): Likewise.
2947 (dyn_string_prepend_cstr): Likewise.
2948 (dyn_string_insert): Likewise.
2949 (dyn_string_insert_cstr): Likewise.
2950 (dyn_string_append): Likewise.
2951 (dyn_string_append_cstr): Likewise.
2952 (dyn_string_append_char): Likewise.
2953 (dyn_string_substring): Likewise.
d1209685 2954
fe06b696
ZW
29552000-06-09 Zack Weinberg <zack@wolery.cumb.org>
2956
2957 * cp-demangle.c (demangle_operator_name): Add spaces before
2958 names beginning with a letter: delete, delete[], new, new[],
2959 sizeof.
2960 (demangle_special_name): Handle TF <type> and TJ <type>.
2961
6223e158
PDM
2962Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
2963
2964 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
2965
48f3e29b
PDM
2966Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
2967
2968 * cp-demangle.c (stdio.h): File included unconditionaly.
2969 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
2970 * dyn-string.c (stdio.h): File included.
2971 * partition.c (partition_print): No `&' needed to take the address of
2972 a function.
2973
69197e7e
KG
29742000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2975
2976 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 2977
69197e7e
KG
2978 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
2979
2980 * cp-demangle.c (demangle_char): Change parameter from char to int.
2981 (demangle_expression, demangle_expr_primary): Remove extra
2982 semi-colon in prototype.
2983
2984 * dyn-string.c (dyn_string_append_char): Change parameter from
2985 char to int.
2986
2987 * memcmp.c (memcmp): Constify.
2988
2989 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
2990 __extension__.
2991
2992 * partition.c (elem_compare): Prototype. Don't cast away
2993 const-ness.
2994
2995 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 2996
7eb23b1f
KG
29972000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2998
2999 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
3000
3001 * cp-demangle.c: Include demangle.h.
3002 (template_arg_list_new): DeANSIfy.
3003 (cp_demangle): Make static and add prototype.
3004 (operator_code, operators): Constify.
3005 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
3006
3faa108c
AS
30072000-06-05 Alex Samuel <samuel@codesourcery.com>
3008
3009 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
3010 unsigned char.
3011 (demangle_unqualified_name): Likewise.
3012 (demangle_number_literally): Likewise.
3013 (demangle_type): Likewise.
3014 (demangle_substitution): Likewise.
3015 (is_mangled_char): Likewise, for isalnum.
3016
69afa80d
AS
30172000-06-04 Alex Samuel <samuel@codesourcery.com>
3018
3019 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
3020 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
3021 (cp-demangle.o): New dependency.
3022 (dyn-string.o): Likewise.
3023
3024 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
3025
3026 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
3027 demangler.
3028 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
3029 demangling mode.
3030 (gnu_new_abi_symbol_characters): New function.
3031 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
3032 file.
3033 * cp-demangle.c: New file.
d1209685 3034
0b72c3df
AC
3035Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
3036
3037 * floatformat.c: Add name to each floatformat field.
3038
270cea06
JL
3039Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
3040
3041 * Makefile.in (objalloc.o): Depend on config.h
3042
d11ec6f0
ZW
30432000-05-29 Zack Weinberg <zack@wolery.cumb.org>
3044
3045 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
3046 if HAVE_STRING_H.
3047 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
3048 * objalloc.c: Include config.h. Include stdlib.h and don't
3049 declare malloc or free if HAVE_STDLIB_H.
3050 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
3051 else declare malloc without prototype. Include string.h if
3052 HAVE_STRING_H, else declare memset without prototype. Don't
3053 include stddef.h.
3054
f8e2da56
MS
30552000-05-23 Mike Stump <mrs@wrs.com>
3056
3057 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 3058 -j3.
f8e2da56 3059
650f3068
DA
30602000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3061
3062 * xmalloc.c: Include config.h for HAVE_SBRK definition.
3063
1d2da2e1
HB
30642000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
3065
d1209685 3066 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
3067 probably zero, also eliminate a warning on alpha.
3068
47668d0a
DE
30692000-05-15 David Edelsohn <edelsohn@gnu.org>
3070
c7a79a32 3071 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
3072 on $(enable_shared).
3073
36348eab
JJ
30742000-05-10 Jakub Jelinek <jakub@redhat.com>
3075
3076 * config.table: Use mh-sparcpic for sparc*-*-*.
3077
209bbe34
NC
30782000-05-08 Nick Clifton <nickc@cygnus.com>
3079
3080 * Makefile.in (CFILES): Add strncmp.c.
3081 (NEEDED): Add strncmp.
3082
a85a47fb
KG
30832000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3084
3085 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
3086 Cast the arguments to `islower' to `unsigned char'.
3087 (print_demangler_list): Prototype.
3088
4aef973c
PDM
3089Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
3090
3091 * sort.c (UCHAR_MAX): Provide fallback definition.
3092
3b94497c
AO
30932000-04-29 Alexandre Oliva <aoliva@cygnus.com>
3094
3095 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
3096 SUBDIRS.
3097
24eaa47a
KB
30982000-04-28 Kenneth Block <block@zk3.dec.com>
3099 Jason Merrill <jason@casey.cygnus.com>
3100
d1209685
ZW
3101 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
3102 (cplus_demangle_set_style): New function for setting style.
3103 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 3104
a9266bfa
KG
31052000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3106
3107 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
3108
3109 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
3110 (libiberty_AC_FUNC_STRNCMP): Invoke.
3111
3112 * strncmp.c: New file.
3113
8e02c4d0
JH
3114Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
3115
3116 * hashtab.c (htab_expand): Add prototype.
3117 (find_empty_slot_for_expand): Likewise.
3118
4feeaae3
KG
31192000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3120
3121 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
3122 match prototype.
3123 (htab_expand): Cast the return value of xcalloc.
3124
18a94a2f
MM
31252000-04-24 Mark Mitchell <mark@codesourcery.com>
3126
3127 * hashtab.c (hash_pointer): New function.
3128 (eq_pointer): Likewise.
3129 (htab_hash_pointer): New variable.
3130 (htab_eq_pointer): Likewise.
3131
eeb0656f
MM
31322000-04-23 Mark Mitchell <mark@codesourcery.com>
3133
b51024fc
MM
3134 * sort.c (sort_pointers): Fix endianness bugs.
3135
eeb0656f
MM
3136 * sort.c: New file.
3137 * Makefile.in (CFILES): Add sort.c
3138 (REQUIRED_OFILES): Add sort.o.
3139 (sort.o): New target.
3140
7277f72d
MS
31412000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3142
3143 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
3144 4.3BSD systems.
3145
e38992e8
RK
3146Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3147
3148 * hashtab.c: Various minor cleanups.
3149 (htab_find_slot_with_hash): INSERT is now enum insert_option.
3150 (htab_find_slot): Likewise.
3151
498e1ab1
DP
31522000-04-16 Dave Pitts <dpitts@cozx.com>
3153
3154 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 3155
dc17cc7b
RH
31562000-04-05 Richard Henderson <rth@cygnus.com>
3157
3158 * splay-tree.c (splay_tree_remove): New.
3159
b13eb66b
MM
31602000-03-30 Mark Mitchell <mark@codesourcery.com>
3161
3162 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
3163 codes.
3164 (htab_find_with_hash): Likewise.
3165 (htab_find_slot_with_hash): Likewise.
d1209685 3166
0194e877
ZW
31672000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3168
3169 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
3170 unless it will be used. Rearrange loop for better
3171 optimization.
3172 (higher_prime_number): Add static prototype.
3173
abc61fd4
JL
3174Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
3175
3176 * Makefile.in (partition.o): Depend on config.h
3177
8c5d513f
BS
31782000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
3179
3180 * hashtab.c (find_empty_slot_for_expand): New function.
3181 (htab_expand): Use it instead of htab_find_slot.
3182 (htab_find_with_hash): Renamed from htab_find; now accepts extra
3183 argument HASH.
3184 (htab_find_slot_with_hash): Likewise for htab_find_slot.
3185 (htab_find): New wrapper function.
3186 (htab_find_slot): Likewise.
3187 (htab_traverse): Pass slot, not entry, to called function.
3188
d9d4fb43
AS
31892000-03-09 Alex Samuel <samuel@codesourcery.com>
3190
3191 * Makefile.in (CFILES): Add partition.c.
3192 (REQUIRED_OFILES): Add partition.o.
3193 (partition.o): New rule.
3194 * partition.c: New file.
d1209685 3195
5dc9cffd
ZW
31962000-03-09 Zack Weinberg <zack@wolery.cumb.org>
3197
3198 * hashtab.c (htab_create): Set del_f.
3199 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
3200 Use it.
3201
5194cf08
ZW
32022000-03-08 Zack Weinberg <zack@wolery.cumb.org>
3203
3204 * hashtab.c: Remove debugging variables (all_searches,
3205 all_collisions, all_expansions). Delete
3206 all_hash_table_collisions.
3207 (create_hash_table, delete_hash_table, empty_hash_table,
3208 find_hash_table_entry, remove_element_from_hash_table_entry,
3209 clear_hash_table_slot, traverse_hash_table, hash_table_size,
3210 hash_table_elements_number, hash_table_collisions): Rename to:
3211 htab_create, htab_delete, htab_empty, htab_find_slot,
3212 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
3213 htab_elements, htab_collisions.
3214 (htab_find): New function, handles common case where you don't
3215 plan to add or delete an entry.
3216 (htab_expand): Don't create a whole new table, just a new
3217 entry vector.
3218 (htab_find_slot): Simplify logic.
3219
5ad5a984
ILT
32201999-08-03 Ian Lance Taylor <ian@zembu.com>
3221
3222 * floatformat.c: Add casts to avoid signed/unsigned warnings.
3223 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
3224
3225 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
3226 $(TARGETLIB)n so it works on MSDOS.
3227 (install_to_tooldir): Likewise.
3228
32291999-07-21 Ian Lance Taylor <ian@zembu.com>
3230
3231 From Mark Elbrecht:
3232 * makefile.dos: Remove; obsolete.
3233 * configure.bat: Remove; obsolete.
3234
32351999-07-11 Ian Lance Taylor <ian@zembu.com>
3236
3237 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3238 warning.
3239
aeecce42
MK
32402000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3241
3242 * pexecute.c: Conditionally include string.h.
5194cf08 3243 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 3244
1eaf7d9c
KG
32452000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3246
3247 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
3248 we're using gcc.
3249
3250 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
3251
0fadedb2
GK
32521999-12-27 Geoff Keating <geoffk@cygnus.com>
3253
3254 * vasprintf.c (int_vasprintf): Don't re-read the format character
3255 as this mishandles strings like '%%s'.
3256
08230f26
MM
32571999-12-05 Mark Mitchell <mark@codesourcery.com>
3258
3259 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
3260 rather than struct splay_tree_node.
3261 (splay_tree_insert): Use struct splay_tree_s rather than struct
3262 splay_tree.
3263
6de9b8ff
PDM
3264Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
3265
3266 * hashtab.c (sys/types.h): File included.
3267
f3636679
JM
32681999-11-22 Jason Merrill <jason@casey.cygnus.com>
3269
3270 * strtoul.c, strtol.c, random.c: Remove advertising clause from
3271 BSD license, pursuant with
3272
3273 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
3274
36dd3a44
JL
3275Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
3276
3277 * hashtab.c: Include stdio.h.
3278
6e300472
JL
3279Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
3280
3281 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
3282
df548dfc
PDM
3283Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
3284
3285 * xstrdup (sys/types.h): Include this file.
3286
2c375143
NS
32871999-10-28 Nathan Sidwell <nathan@acm.org>
3288
3289 * Makefile.in (SUBDIRS): New macro.
3290 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
3291 avoid multiple subdirectory cleaning.
3292 (*-subdir): Use SUBDIRS.
3293
a82cecda
JK
32941999-10-25 Jim Kingdon <http://developer.redhat.com/>
3295
3296 * cplus-dem.c: Move declarations of standard_symbol_characters and
3297 hp_symbol_characters inside #ifdef MAIN to avoid compiler
3298 warnings.
3299
ed38f5d5
ZW
33001999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
3301
3302 * hashtab.c (find_hash_table_entry): When returning a
3303 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
3304 (clear_hash_table_slot): New function which deletes an entry
3305 by its position in the table, not its value.
3306 (traverse_hash_table): New function which calls a hook
3307 function for every live entry in the table.
3308
b60fe4a7
MM
33091999-10-19 Mark Mitchell <mark@codesourcery.com>
3310
3311 * cplus-dem.c (INTBUF_SIZE): New macro.
3312 (string_append_template_idx): New function.
3313 (demangle_expression): Likewise.
3314 (demangle_integral_value): Use it.
3315 (demangle_real_value): New function, split out from ...
3316 (demangle_template_value_parm): ... here. Use
3317 string_append_template_idx. Use demangle_real_value.
3318 (demangle_template): Use string_append_template_idx.
3319 (demangle_qualified): Use consume_count_with_underscores.
3320 (get_count): Tweak formatting.
3321 (do_type): Use string_append_template_idx.
5194cf08 3322
3da5522a
KG
33231999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3324
3325 * calloc.c: Add a public domain notice.
3326
d7d36ea8
PDM
3327Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
3328
3329 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
3330
a2f945c6
VM
3331Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
3332
3333 * Makefile.in (CFILES): Add hashtab.c
3334 (REQUIRED_OFILES): Add hashtab.o
3335 (hashtab.o): Add dependencies.
3336 * hashtab.c: New file
3337
7f22ec2e
MK
3338Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
3339
3340 * basename.c (DIR_SEPARATOR): New macro.
3341 (DIR_SEPARATOR_2): Likewise.
3342 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
3343 (IS_DIR_SEPARATOR): Likewise.
3344 (main): Handle MSDOS style pathname.
3345
7c56a6ce
MM
33461999-10-11 Mark Mitchell <mark@codesourcery.com>
3347
3348 * cplus-dem.c (do_type): Handle pointer to member types whose
3349 enclosing classes have namespace scope.
3350
cd32188b
ME
3351Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
3352
3353 * config.table: Provide a backup shell for executing move-if-change.
3354
fc232f7a
MM
33551999-10-02 Mark Mitchell <mark@codesourcery.com>
3356
3357 * xmalloc.c (xmalloc): Fix spelling error.
3358 (xcalloc, xrealloc): Likewise.
3359
2a138827
KG
33601999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3361
3362 * cplus-dem.c (fancy_abort, demangle_integral_value,
3363 demangle_arm_hp_template, recursively_demangle,
3364 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
3365 (program_name, program_version, fatal): Constify a char*.
3366 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
3367 (main): Call return, not exit.
3368
5a657fc3
KG
33691999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3370
3371 * choose-temp.c: Remove obsolete comment about gcc.
3372 (make_temp_file): Constify a char*.
3373
33c5ddcd
KG
3374Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3375
3376 * xmemdup.c: Include sys/types.h.
3377
b10647f1
JG
33781999-09-07 Jeff Garzik <jgarzik@pobox.com>
3379
3380 * xmemdup.c: New xmemdup function.
3381 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
3382
3dd6c3af
LV
3383Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
3384
5194cf08 3385 * config.table: Add openedition target.
3dd6c3af
LV
3386 * config/mh-openedition: New file.
3387
19e28e2a
ME
3388Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
3389
3390 * pexecute.c (pexecute): Fill in temp_base when needed.
3391
4dfeccf9
RH
33921999-08-31 Richard Henderson <rth@cygnus.com>
3393
3394 * getpwd.c: Check HAVE_GETCWD before defining it away.
3395
4ac3cb83
KG
33961999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3397
3398 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
3399 (REQUIRED_OFILES): Add getpwd.o.
3400 (getpwd.o): Add target.
3401
3402 * configure.in (AC_PREREQ): Bump to 2.13.
3403 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
3404
3405 * getpwd.c: New file, moved here from gcc.
3406
e797ff70
KG
34071999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3408
3409 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
3410 comparing against a signed quantity.
3411 (arm_special): Likewise.
3412 (demangle_fund_type): Likewise.
3413 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 3414 ATTRIBUTE_UNUSED.
e797ff70
KG
3415 (main): Constify variable `valid_symbols'.
3416
55247fce
PDM
3417Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
3418
3419 * strtoul.c (strtoul): Add parentheses around && within ||.
3420
76632dd0
DJ
3421Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
3422
3423 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3424 libdir, libsubdir and tooldir.
3425
d080bbfa
MM
34261999-08-01 Mark Mitchell <mark@codesourcery.com>
3427
3428 * splay-tree.c (splay_tree_insert): Return the new node.
3429
a81c752a
RH
34301999-07-14 Richard Henderson <rth@cygnus.com>
3431
5194cf08 3432 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
3433 prototyping directly.
3434 * choose-temp.c: Conditionally include string.h.
3435
8f1824d9
JM
34361999-07-12 Jason Merrill <jason@yorick.cygnus.com>
3437
3438 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
3439
652374d3
ILT
34401999-07-11 Ian Lance Taylor <ian@zembu.com>
3441
3442 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3443 warning.
3444
a4494286
JM
34451999-07-07 Jason Merrill <jason@yorick.cygnus.com>
3446
3447 * Makefile.in (needed-list): Only include stuff we actually need
3448 for libstdc++.
3449
90e72e20
AS
34501999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3451
3452 * configure.in (checkfuncs): Add gettimeofday.
3453 * config.in, configure: Regenerated.
3454
b569200e
MK
3455Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
3456
3457 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
3458 the test fails.
3459 * configure: Regenerate.
3460
73919448
MS
34611999-06-10 Mike Stump <mrs@wrs.com>
3462
3463 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
3464 parallel builds.
3465
fee9125c
KG
34661999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3467
3468 * putenv.c: Include ansidecl.h to define `const'.
3469 * setenv.c: Likewise.
3470
71cce721
MN
3471Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
3472
a7c9637f
JL
3473 * Makefile.in (CFILES): Add putenv.c and setenv.c.
3474 * configure.in (funcs): Add putenv and setenv.
3475 (AC_CHECK_FUNCS): Check for putenv and setenv.
3476 * configure: Rebuilt.
3477 * putenv.c setenv.c: New files.
3478
71cce721
MN
3479 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
3480 bytes of space using malloc.
3481
53504016
SG
3482Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
3483
3484 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
3485 the *mangled pointer beyond the end of the string. Clean up code to
3486 match prevailing coding style.
3487
34842539
MH
34881999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3489
3490 * tmpnam.c (L_tmpnam): Fix typo.
3491
3a08531d
ME
3492Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
3493
3494 * cplus-dem.c (standard_symbol_characters): Renamed from
3495 standard_symbol_alphabet. No longer modify TABLE.
3496 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
3497 modify TABLE.
3498 (main): Corresponding changes. Use strchr to determine if a
3499 character is valid.
3500
8db9d08b
JB
35011999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
3502
3503 * cplus-dem.c (main): Use table lookup to distinguish identifier
3504 characters from non-identifier characters.
3505 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
3506
6a071f4a
FF
3507Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
3508
3509 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
3510 * getruntime.c: Only attempt to include sys/resource.h and
3511 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
3512 are defined.
3513
7dd88617
DT
3514Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
3515
3516 * configure.in (alloca detection): Handle alloca directly for interix.
3517 * configure: Rebuilt.
3518
7a1528bc
MK
3519Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
3520
3521 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
3522
76409268
JB
35231999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
3524
3525 Fix from Dale Hawkins:
5194cf08 3526 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
3527 reallocated properly if we use it again.
3528
3529 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
3530 stricter about syntax. Always null-terminate string.
3531
acbbd80a
MK
3532Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
3533
3534 * configure.in (checkfuncs): Check for sbrk.
3535 * config.in: Rebuilt.
3536 * configure: Likewise.
3537 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
3538
92523551
JB
35391999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
3540
3541 Fix from Marcus Daniels:
3542 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
3543 identifier looking for another underscore.
3544
36eb4217
MK
3545Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
3546
3547 * pexecute.c: Change all references to __UWIN__ to _UWIN.
3548 * xmalloc.c: Likewise.
3549 (xcalloc): UWIN has sbrk.
3550 (xrealloc): Fix guard macro.
3551
2c45d1a0
RH
35521999-04-11 Richard Henderson <rth@cygnus.com>
3553
3554 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
3555 or <alloca.h>.
3556 * clock.c (GNU_HZ): New definition.
3557 (clock): Use it.
3558 * getruntime.c: Likewise.
3559
3560 * config.table: Use mh-beos.
3561 * config/mh-beos: New file.
3562
391cdef0
MM
35631999-04-11 Mark Mitchell <mark@codesourcery.com>
3564
3565 * cplus-dem.c (demangle_template_value_parm): Handle
3566 pointers-to-members.
3567 (do_type): Handle template parameters as qualifiers.
3568
9d229989
JB
35691999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
3570
3571 * cplus-dem.c: Attempt to handle overflows in counts with some
3572 semblance of grace.
3573 (consume_count): Detect overflows. Return -1 to indicate errors,
3574 instead of zero.
3575 (demangle_template_value_parm, demangle_template): Handle change
3576 to consume_count's return convention.
3577
7c72138a
TT
35781999-04-05 Tom Tromey <tromey@cygnus.com>
3579
3580 * testsuite/regress-demangle: New file.
3581 * testsuite/demangle-expected: New file.
3582
3583 * Makefile.in (all, check, installcheck, info, install-info,
3584 clean-info, dvi, install, etags, tags, mostlyclean, clean,
3585 distclean, maintainer-clean, realclean): Depend on corresponding
3586 `-subdir' target.
3587 (all-subdir check-subdir installcheck-subdir info-subdir
3588 install-info-subdir clean-info-subdir dvi-subdir
3589 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
3590 distclean-subdir maintainer-clean-subdir): New target.
3591 * testsuite/Makefile.in: New file.
3592 * configure: Rebuilt.
3593 * configure.in: Create testsuite/Makefile.
3594
ae7f7270
MM
35951999-04-02 Mark Mitchell <mark@codesourcery.com>
3596
3597 * splay-tree.h (splay_tree_compare_pointers): Define.
3598
30f72379
MM
35991999-03-30 Mark Mitchell <mark@codesourcery.com>
3600
3601 * splay-tree.c (splay_tree_compare_ints): Define.
3602
4cc48683
TT
36031999-03-30 Tom Tromey <tromey@cygnus.com>
3604
3605 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
3606 don't advance input pointer.
3607 (demangle_class_name): If consume_count didn't find a count, do
3608 nothing. Don't bother with `strlen' sanity check; consume_count
3609 does it for us.
3610
3510075c
JL
36111999-03-16 Stan Shebs <shebs@andros.cygnus.com>
3612
3613 From Art Haas <ahaas@neosoft.com>:
3614 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
3615 when doing arm or hp style.
3616 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 3617
89f602a7
MK
3618Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
3619
3620 * pexecute.c (__CYGWIN32__): Rename to
3621 (__CYGWIN__): this.
3622 * xmalloc.c: Likewise.
3623
3624 Changes to support i386-pc-uwin.
3625 * configure.in (*-*-uwin*): Workaround for vfork bug.
3626 * configure: Regenerate.
3627 * pexecute.c (pexecute): Be like standard Unix.
3628 (pwait): Likewise.
3629 * xmalloc.c (first_break): Define.
3630 (xmalloc_set_program_name): Use.
3631 (xmalloc): Use.
3632
9346c824
FS
3633Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3634
3635 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
3636
3510075c
JL
3637Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
3638
3639 * config.table: Check cygwin*, not cygwin32*.
3640
8ec65f13
DB
3641Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
3642
3643 * Makefile.in: Change mkstemp -> mkstemps.
3644
687361c8
ME
3645Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
3646
3647 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
3648 * configure.in (funcs): Check for and conditionally add mkstemps to
3649 the list of functions libiberty will provide.
3650 * configure: Rebuilt.
5194cf08 3651
b207e09c
MK
3652Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
3653
5194cf08 3654 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
3655 platforms that don't have HZ.
3656 * getruntime.c (HZ): Likewise.
3657
16b4c15e
RH
3658Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
3659
3660 * Makefile.in (xstrdup.o): Depend on config.h.
3661
38beb75c
UD
3662Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
3663
3664 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
3665 freeing it.
3666
7e4311a3
KG
3667Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3668
3669 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
3670
3510075c
JL
3671Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3672
3673 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
3674 splay-tree.o.
3675
36761999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
3677
3678 * configure.in: Require autoconf 2.12.1 or higher.
3679
fb9939b8
MM
36801998-12-30 Michael Meissner <meissner@cygnus.com>
3681
3682 * random.c (NULL): Don't redefine NULL if it is already defined.
3683
087aa398
KG
3684Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3685
3686 * argv.c (buildargv): Cast the result of alloca in assignment.
3687
3688 * choose-temp.c: Include stdlib.h.
38beb75c 3689
087aa398 3690 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
3691 (snarf_numeric_literal): Constify first parameter.
3692 (code_for_qualifier): Avoid a gcc extension, make the parameter an
3693 int, not a char.
087aa398
KG
3694 (demangle_qualifier): Likewise.
3695 (demangle_signature): Cast the argument of a ctype function to
3696 unsigned char.
3697 (arm_pt): Add parens around assignment used as truth value.
3698 (demangle_arm_hp_template): Constify variable `args'.
3699 (do_hpacc_template_const_value): Cast the argument of a ctype
3700 function to unsigned char.
3701 (do_hpacc_template_literal): Remove unused variable `i'.
3702 (snarf_numeric_literal): Constify parameter `args'.
3703 Cast the argument of a ctype function to unsigned char.
3704
3705 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 3706 avoid ambiguous `else'.
38beb75c 3707
087aa398 3708 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
3709 `cstart' and `cend' to unsigned char. Cast the argument of macro
3710 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
3711
3712 * objalloc.c (free): Add prototype.
3713
21f2174d
HPN
3714Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
3715
3716 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
3717
3510075c
JL
3718Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
3719
3720 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 3721 doesn't exist.
3510075c 3722 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 3723
e8fc8222
AM
3724Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
3725
3726 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
3727 bumping the pointer we read from. Also prepend these codes,
3728 as we do in other places.
3729
3510075c
JL
37301998-12-18 Nick Clifton <nickc@cygnus.com>
3731
3732 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
3733 'const char *' in order to match its usage when calling siblings.
3734 (snarf_numeric_literal): Make first arg 'const char **' in order
3735 to match usage.
11a0bb74 3736
f4f30aa1
JL
3737Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3738
11a0bb74
KG
3739 * choose-temp.c: Don't check IN_GCC anymore.
3740
3741 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
3742 * memchr.c (memchr): Likewise.
3743 * memcpy.c (memcpy): Likewise.
3744 * memmove.c (memmove): Likewise.
38beb75c 3745
11a0bb74
KG
3746 * mkstemp.c: Don't check IN_GCC anymore.
3747 * pexecute.c: Likewise.
3748 * splay-tree.c: Likewise.
38beb75c 3749
11a0bb74
KG
3750 * strchr.c (strchr): Use `const', not `CONST'.
3751 * strrchr.c (strrchr): Likewise.
3752 * strtol.c (strtol): Likewise.
3753 * strtoul.c (strtoul): Likewise.
3754
70d5ccef
DT
3755Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
3756 Elena Zannoni <ezannoni@cygnus.com>
3757 Stan Shebs <shebs@cygnus.com>
3758 Edith Epstein <eepstein@cygnus.com>
3759 Andres MacLeod <amacleod@cygnus.com>
3760 Satish Pai <pai@apollo.hp.com>
3761
3762 * HP aCC demangling support.
3763 * cplus-dem.c
3764 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
3765 demangling correctly when -edg specified; set the demangling style
3766 when user specifies 'edg'. Set strip_underscore to
3767 prepends_underscore, if not HPUXHPPA. Set
3768 current_demangling_style to hp_demangling if HPUXHPPA. Set
3769 current demangling style correctly if the switch is hp. Read
3770 label correctly also in the HP style case.
70d5ccef 3771 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 3772 function.
70d5ccef 3773 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 3774 style for this case is the same as ARM.
70d5ccef
DT
3775 (demangle_args): handle EDG_DEMANGLING style; support HP style.
3776 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
3777 demangle_arm_pt.); check and set value of temp_start field in
3778 multiple places. Also, when ceching for end of template args,
3779 check to see if at end of static member of template class.
70d5ccef 3780 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 3781 include template args in string defining class.
70d5ccef
DT
3782 (demangle_class_name): use demangel_arm_hp_template.
3783 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
3784 HP_DEMANGLING and currently point at an 'X' in the mangled name.
3785 Handle EDG_DEMANGLING style. Handle constructor and destructor
3786 ops for HP style.
70d5ccef 3787 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
3788 styles. global destructor and constructor for HP style are same
3789 as for ARM style. Same for local variables.
70d5ccef
DT
3790 (demangle_qualified): handle EDG_DEMANGLING style.
3791 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
3792 cases '1' - '9' : initialize the temp_start field to -1 and handle
3793 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
3794 and AUTO_DEMANGLING styles. If expecting a function and managed
3795 to demangle the funct args, then handle the LUCID_DEMANGLING,
3796 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
3797 class name after "Lnnn_ in HP style case. HP style too needs to
3798 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 3799 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 3800 value param for HP/aCC.
70d5ccef 3801 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 3802 literal parameter for HP aCC.
70d5ccef
DT
3803 (recursively_demangle): new function
3804 (snarf_numeric_literal): new function.
3805 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 3806 to message.
70d5ccef 3807
8d525fa8
CF
3808Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
3809
3810 * pexecute.c: Remove obsolete ifdefed cygwin code.
3811
9b1a92d8
KG
3812Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3813
3814 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
3815 * cplus-dem.c: Likewise. Conform to libiberty.h.
3816 * pexecute.c: Likewise.
3817 * splay-tree.c: Likewise.
3818
c85c3232
MS
38191998-11-25 Mike Stump <mrs@wrs.com>
3820
3821 * Makefile.in (splay-tree.o): Add config.h dependency.
3822
35a6cd99
KG
3823Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3824
3825 * configure.in: Use AC_PREREQ(2.12.1).
3826
6e6e34b7
BK
38271998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
3828
5194cf08 3829 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 3830
59b67c11
JL
3831Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
3832
3833 * mpw.c (mpw_access): Add missing parens.
3834
a6458d1d
KG
3835Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3836
3837 * configure.in: Call AC_HEADER_SYS_WAIT.
3838
3839 * pexecute.c: Include sys/wait.h when !IN_GCC.
3840
3510075c
JL
3841Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
3842
3843 * pexecute.c: revert back to checking old Cygwin
3844 preprocessor symbol until some time has passed.
3845
3846Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
3847
3848 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
3849 since it will now support similar constructs.
3850
a9acf741
KG
3851Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3852
3853 * configure.in: Check for calloc.
3854
3855 * calloc.c: New file.
3856
3857 * xmalloc.c (xcalloc): New function.
3858
a49fb37a
AM
3859Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
3860
3861 *cplus-dem.c (demangle_prefix): Use the last "__"
3862 in the mangled name when looking for the signature. This allows
3863 template names to begin with "__".
3864
0e714131
MM
38651998-11-08 Mark Mitchell <mark@markmitchell.com>
3866
ec2288ff
MM
3867 * cplus-dem.c (type_kind_t): Add tk_reference.
3868 (demangle_template_value_parm): Handle it.
3869 (do_type): Use it for references, instead of tk_pointer.
3870
0e714131
MM
3871 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
3872 not internal_cplus_demangle.
3873
2931b6d4
KG
3874Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3875
3876 * choose-temp.c: Don't include gansidecl.h.
3877 * mkstemp.c: Likewise.
3878 * pexecute.c: Likewise.
3879
dd8f3ed5
GN
3880Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
3881
5194cf08
ZW
3882 * configure.in: detect cygwin* instead of cygwin32*
3883 * configure: regenerate
dd8f3ed5 3884
c5f7c445
KG
3885Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3886
3887 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
3888 whether to include config.h. Possibly include unistd.h in the
3889 !IN_GCC case. Define VFORK_STRING as a printable function call
3890 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
3891 defined, include vfork.h. If VMS is defined, define vfork()
3892 appropriately. Remove vfork check on USG, we're using autoconf.
3893 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
3894 locally what string to use.
c5f7c445 3895
ad3ef78e
MM
38961998-10-26 Mark Mitchell <mark@markmitchell.com>
3897
3898 * splay-tree.c: Tweak include directives to make sure declarations of
3899 xmalloc and free are available.
3900
224301c1
MM
39011998-10-25 Mark Mitchell <mark@markmitchell.com>
3902
3903 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
3904 anonymous namespaces.
38beb75c 3905
d9db46fd
MM
39061998-10-23 Mark Mitchell <mark@markmitchell.com>
3907
3908 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
3909 with type_quals.
3910 (TYPE_UNQUALIFIED): New macro.
3911 (TYPE_QUAL_CONST): Likewise.
3912 (TYPE_QUAL_VOLATILE): Likewise.
3913 (TYPE_QUAL_RESTRICT): Likewise.
3914 (code_for_qualifier): New function.
3915 (qualifier_string): Likewise.
3916 (demangle_qualifier): Likewise.
3917 (internal_cplus_demangle): Use them.
3918 (demangle_signature): Likewise.
3919 (demangle_template_value_parm): Likewise.
3920 (do_type): Likewise.
3921 (demangle_fund_type)): Likewise.
224301c1 3922
b056ad1c
KG
3923Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3924
3925 * splay-tree.c (splay_tree_foreach_helper): Make definition static
3926 to match prototype.
3927
ed87f9c8
MM
39281998-10-21 Mark Mitchell <mark@markmitchell.com>
3929
3930 * splay-tree.c: New file.
3931 * Makefile.in (CFILES): Add it.
3932 (REQUIRED_OFILES): Likewise.
3933 (splay-tree.o): Add dependencies.
3934
e0c13971
AS
3935Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3936
3937 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
3938 range of 'K' index.
3939
91e0f659
KG
3940Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3941
3942 * choose-temp.c: Prototype mkstemps() when IN_GCC.
3943
3944 * cplus-dem.c (consume_count): Cast argument of ctype macro to
3945 `unsigned char'.
3946 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
3947 comparing against one.
3948 (cplus_mangle_opname): Likewise.
3949 (demangle_integral_value): Cast argument of ctype macro to
3950 `unsigned char'.
3951 (demangle_template_value_parm): Likewise.
3952 (demangle_template): Initialize variable `bindex'. Cast the
3953 result of `strlen' to (int) when comparing against one. Remove
3954 unused variable `start_of_value_parm'.
3955 (demangle_class_name): Cast the result of `strlen' to (int) when
3956 comparing against one.
3957 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
3958 (gnu_special): Likewise. Cast the result of `strlen' to (int)
3959 when comparing against one.
3960 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
3961 (get_count): Likewise.
3962 (do_type): Likewise. Cast the result of `strlen' to (int) when
3963 comparing against one.
3964 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
3965 (demangle_function_name): Cast the result of `strlen' to (int)
3966 when comparing against one.
3967
3968 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
3969 comparing against one.
3970
73aeb2ff
JL
3971Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
3972
5194cf08
ZW
3973 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
3974 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
3975 * config.in, configure: Rebuilt.
ae76f1be 3976
73aeb2ff
JL
3977 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
3978 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
3979 * config.in, configure: Rebuilt.
3980
dd8f3ed5
GN
3981Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
3982
5194cf08 3983 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 3984
f77d8413
MT
3985Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
3986
3987 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
3988
ca6b370d
JL
3989Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
3990
3991 * Merge egcs & devo libiberty.
3992
ab4856b1
ML
3993