]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
partition.h: Remove use of PARAMS.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
885f2199
GDR
12005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2
3 Convert libiberty to use ISO C prototype style 5/n.
4 * random.c (srandom, initstate, setstate, random): Use ISO C
5 prototypes.
6 * putenv.c (putenv): Likewise.
7 * physmem.c (physmem_available, physmem_total, main): Likewise.
8 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
9 * pex-unix.c (pexecute, pwait): Likewise.
10 * pex-msdos.c (pexecute, pwait): Likewise.
11 * pex-djgpp.c (pexecute, pwait): Likewise.
12 * partition.c (partition_new, partition_delete, partition_union)
13 (elem_compare, partition_print): Likewise.
14 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
15 _obstack_allocated_p, _obstack_free, obstack_free,
16 _obstack_memory_used, print_and_abort, obstack_next_free,
17 obstack_object_size, obstack_base): Likewise. Remove codes
18 predicated on !defined(__STDC__).
19 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
20 objalloc_free_block): Use ISO C prototypes.
21 * mkstemps.c (mkstemps): Likewise.
22 * memset.c (memset): Likewise.
23 * mempcpy.c (mempcpy): Likewise.
24 * rename.c (rename): Likewise.
25 * rindex.c (rindex): Likewise.
26 * setenv.c (setenv, unsetenv): Likewise.
27 * sigsetmask.c (sigsetmask): Likewise.
28 * snprintf.c (snprintf): Likewise.
29 * sort.c (sort_pointers, xmalloc): Likewise.
30 * spaces.c (spaces): Likewise.
31 * splay-tree.c (splay_tree_delete_helper,
32 splay_tree_splay_helper, splay_tree_splay,
33 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
34 splay_tree_new, splay_tree_xmalloc_allocate,
35 splay_tree_new_with_allocator, splay_tree_delete,
36 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
37 splay_tree_max, splay_tree_min, splay_tree_predecessor,
38 splay_tree_successor, splay_tree_foreach,
39 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
40 * stpcpy.c (stpcpy): Likewise.
41 * stpncpy.c (stpncpy): Likewise.
42 * strcasecmp.c (strcasecmp): Likewise.
43 * strchr.c (strchr): Likewise.
44 * strdup.c (strdup): Likewise.
45
7a17ef5e
GDR
462005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
47
48 Convert libiberty to use ISO C prototype style 6/n.
49 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
50 strtoerrno, main): Use ISO C prototype style.
51 * strncasecmp.c (strncasecmp): Likewise.
52 * strncmp.c (strncmp): Likewise.
53 * strndup.c (strndup): Likewise.
54 * strrchr.c (strrchr): Likewise.
55 * strsignal.c (init_signal_tables, signo_max, strsignal,
56 strsigno, strtosigno, psignal, main): Likewise.
57 * strstr.c (strstr): Likewise.
58 * strtod.c (strtod, atof): Likewise.
59 * strtol.c (strtol): Likewise.
60 * strtoul.c (strtoul): Likewise.
61 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
62 ternary_recursivesearch): Likewise.
63 * tmpnam.c (tmpnam): Likewise.
64 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
65 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
66 * vfork.c (vfork): Likewise.
67 * vfprintf.c (vfprintf): Likewise.
68 * vprintf.c (vprintf): Likewise.
69 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
70 * vsprintf.c (vsprintf): Likewise.
71 * waitpid.c (waitpid): Likewise.
72 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
73 * xexit.c (xexit): Likewise.
74 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
75 xcalloc, xrealloc): Likewise.
76 * xmemdup.c (xmemdup): Likewise.
77 * xstrdup.c (xstrdup): Likewise.
78 * xstrerror.c (xstrerror): Likewise.
79 * xstrndup.c (xstrndup): Likewise.
80
1134b11d
AJ
812005-03-27 Andreas Jaeger <aj@suse.de>
82
83 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
84 flags.
85 * configure: Regenerated.
86
e78410c1
GDR
872005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
88
89 * getopt1.c (getopt_long_only): Fix thinko.
90
6da879de
GDR
912005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
92
93 Convert libiberty to use ISO C prototype style 4/n.
1134b11d
AJ
94 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
95 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
96 htab_create_alloc, htab_set_functions_ex, htab_create,
97 htab_try_create, htab_delete, htab_empty,
98 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
99 htab_find, htab_find_slot_with_hash, htab_find_slot,
100 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
101 htab_traverse_noresize, htab_traverse, htab_collisions,
6da879de
GDR
102 htab_hash_string, iterative_hash): Use ISO C prototype.
103 * hex.c (hex_init): Likewise.
104 * index.c (index): Likewise.
1134b11d 105 * insque.c (insque, remque): Likewise.
6da879de
GDR
106 * lbasename.c (lbasename): Likewise.
107 * lrealpath.c (lrealpath): Likewise.
1134b11d 108 * make-relative-prefix.c (save_string, split_directories,
6da879de 109 free_split_directories, make_relative_prefix): Likewise.
1134b11d
AJ
110 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
111 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
6da879de
GDR
112 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
113 * memchr.c (memchr): Likewise.
114 * memcpy.c (memcpy): Likewise.
115 * memmove.c (memmove): Likewise.
116 * gettimeofday.c (gettimeofday): Likewise.
117 * getruntime.c (get_run_time): Likewise.
118 * getpwd.c (getpwd, getpwd): Likewise.
119 * getpagesize.c (getpagesize): Likewise.
120 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
1134b11d 121 * getopt.c (my_index, exchange, _getopt_initialize,
6da879de
GDR
122 _getopt_internal, getopt, main): Likewise.
123 * getcwd.c (getcwd): Likewise.
124 * fnmatch.c (fnmatch): Likewise.
1134b11d
AJ
125 * floatformat.c (floatformat_always_valid,
126 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
127 put_field, floatformat_from_double, floatformat_is_valid,
6da879de 128 ieee_test, main): Likewise.
1134b11d
AJ
129 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
130 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
131 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
132 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
133 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
134 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
135 fibheap_link, fibheap_cut, fibheap_cascading_cut,
6da879de
GDR
136 fibnode_insert_after, fibnode_remove): Likewise.
137 * ffs.c (ffs): Likewise.
138 * fdmatch.c (fdmatch): Likewise.
1134b11d
AJ
139 * dyn-string.c (dyn_string_init, dyn_string_new,
140 dyn_string_delete, dyn_string_release, dyn_string_resize,
141 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
142 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
143 dyn_string_insert_cstr, dyn_string_insert_char,
144 dyn_string_append, dyn_string_append_cstr,
6da879de 145 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
1134b11d 146 Likewise.
6da879de 147
500d7701
GDR
1482005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
149
150 Convert libiberty to use ISO C prototype style 3/n.
1134b11d
AJ
151 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
152 consume_count_with_underscores, code_for_qualifier,
153 qualifier_string, demangle_qualifier, cplus_demangle_opname,
154 cplus_mangle_opname, cplus_demangle_set_style,
155 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
500d7701 156 ada_demangle, internal_cplus_demangle, squangle_mop_up,
1134b11d
AJ
157 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
158 delete_work_stuff, mop_up, demangle_signature,
159 demangle_method_args, demangle_template_template_parm,
160 demangle_expression, demangle_integral_value,
161 demangle_real_value, demangle_template_value_parm,
162 demangle_template, arm_pt, demangle_arm_hp_template,
163 demangle_class_name, demangle_class, iterate_demangle_function,
164 demangle_prefix, gnu_special, recursively_demangle, arm_special,
165 demangle_qualified, get_count, do_type, demangle_fund_type,
166 do_hpacc_template_const_value, do_hpacc_template_literal,
167 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
168 register_Btype, remember_Btype, forget_B_and_K_types,
169 forget_types, demangle_args, demangle_nested_args,
170 demangle_function_name, string_need, string_delete, string_init,
171 string_clear, string_empty, string_append, string_appends,
500d7701
GDR
172 string_appendn, string_prepend, string_prepends, string_prependn,
173 string_append_template_idx): Use ISO C prootype style.
174 * cp-demint.c (cplus_demangle_fill_component,
1134b11d 175 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
500d7701
GDR
176 cplus_demangle_v3_components): Likewise.
177
9486db4f
GDR
1782005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
179
180 Convert libiberty to use ISO C prototype style 2/n.
181 * cp-demangle.h: Remove uses of PARAMS.
182 * cp-demangle.c: Likewise.
1134b11d
AJ
183 (d_dump, cplus_demangle_fill_name,
184 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
185 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
186 d_make_builtin_type, d_make_operator, d_make_extended_operator,
187 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
188 cplus_demangle_mangled_name, has_return_type,
189 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
190 d_prefix, d_unqualified_name, d_source_name, d_number,
191 d_identifier, d_operator_name, d_special_name, d_call_offset,
192 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
193 d_function_type, d_bare_function_type, d_class_enum_type,
194 d_array_type, d_pointer_to_member_type, d_template_param,
195 d_template_args, d_template_arg, d_expression, d_expr_primary,
196 d_local_name, d_discriminator, d_add_substitution,
197 d_substitution, d_print_resize, d_print_append_char,
198 d_print_append_buffer, d_print_error, cplus_demangle_print,
199 d_print_comp, d_print_java_identifier, d_print_mod_list,
200 d_print_mod, d_print_function_type, d_print_array_type,
201 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
202 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
9486db4f 203 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
1134b11d 204 print_usage, main):
9486db4f
GDR
205
2062005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
207
208 Convert libiberty to ISO C prototype style 1/n.
209 * _doprnt.c: Remove conditional #include <varargs.h> on
210 ANSI_PROTOTYPES as the latter is always assumed.
211 (_doprnt, checkit, main): Use ISO C prototype.
212 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
213 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
1134b11d 214 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
9486db4f
GDR
215 * atexit.c (atexit): Likewise
216 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
1134b11d 217 (asprintf): Use ISO C prototype.
9486db4f
GDR
218 * basename.c (basename): Likewise
219 * bcmp.c (bcmp): Likewise.
220 * bcopy.c (bcopy): Likewise.
221 * bzero.c (bzero): Likewise.
222 * bsearch.c (bsearch): Likewise. Improve const-correctness.
223 * choose-temp.c (choose_temp_base): Likewise.
224 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
225 (calloc): Use ISO C prototype.
226 * clock.c (clock): Likewise.
227 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
1134b11d 228 (vconcat_length, vconcat_copy, concat_length, concat_copy,
9486db4f
GDR
229 concat_copy2, concat, reconcat, main): Use ISO C prototype.
230 * copysign.c (copysign): Likewise.
231
17998b22
KG
2322005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
233
234 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
235 (REQUIRED_OFILES): Add xstrndup.o.
236 (CONFIGURED_OFILES): Add strndup.o.
237 Regenerate dependencies.
238
239 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
240
241 * strndup.c, xstrndup.c: New.
242
243 * config.in, configure, functions.texi: Regenerate.
244
bb99744f
KG
2452005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
246
247 * xmemdup.c, xstrdup.c: Expose the tail call.
248
17049f0b
MM
2492005-03-09 Mark Mitchell <mark@codesourcery.com>
250
251 * configure.ac (funcs): Add gettimeofday.
252 * configure: Regenerated.
253 * gettimeofday.c: New file.
254 * Makefile.in (CFILES): Add gettimeofday.
255 (CONFIGURED_OFILES): Add gettimeofday.o.
256 (./gettimeofday.o): New rule.
257
6af8bd50
ILT
2582005-03-09 Ian Lance Taylor <ian@airs.com>
259
260 * pex-os2.c: Remove.
261 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
262 * Makefile.in (CFILES): Remove pex-os2.c.
263 (CONFIGURED_OFILES): Remove pex-os2.o.
264 (pex-os2.o): Remove target.
265 * configure: Rebuild.
266
c80d391c
ILT
2672005-03-07 Ian Lance Taylor <ian@airs.com>
268
269 * mpw-config.in: Remove.
270 * mpw-make.sed: Remove.
271 * mpw.c: Remove.
272 * Makefile.in (CFILES): Remove pex-mpw.c.
273 (CONFIGURED_OFILES): Remove pex-mpw.o.
274 (mpw.o, pex-mpw.o): Remove targets.
275 * maint-tool (undoc): Remove reference to mpw.c.
276
fe8ee922
DD
2772005-03-06 DJ Delorie <dj@redhat.com>
278
279 * configure.ac (target_header_dir): vfork is a stub under djgpp.
280 * configure: Regenerated.
281
c363985d
JB
2822005-03-01 Jan Beulich <jbeulich@novell.com>
283
284 * Makefile.in (CFILES): Add unlink-if-ordinary.c
285 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
286 Add dependencies and rule for unlink-if-ordinary.o.
287 * unlink-if-ordinary.c: New.
288
6a88516c
BE
2892005-03-01 Ben Elliston <bje@au.ibm.com>
290
291 * hashtab.c (htab_find_slot_with_hash): Make function
292 documentation clearer.
293
b8b3c655
JM
2942005-02-13 Jason Merrill <jason@redhat.com>
295
296 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
297 arguments.
298
e8805990
TS
2992005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
300
301 * hex.c (hex_value): Group 'unsigned int' together to get correct
302 markup.
303 * functions.texi: Regenerated.
1134b11d 304
24f2cabb
L
3052004-12-27 H.J. Lu <hongjiu.lu@intel.com>
306
307 * Makefile.in: Undo to 2004-12-17.
308 * aclocal.m4: Likewise.
309 * config.table: Likewise.
310 * configure.ac: Likewise.
311 * maint-tool: Likewise.
312 * configure: Likewise.
313
3d815594
L
3142004-12-19 H.J. Lu <hongjiu.lu@intel.com>
315
316 PR bootstrap/19072
317 * Makefile.in (enable_shared): New substitute.
318 (LTTARGETLIB): New.
319 (PREFIXTARGETLIB): New.
320 (LTTESTLIB): New.
321 (PREFIXTESTLIB): New.
322 (CCLD): New.
323 (LINK): New.
324 ($(TARGETLIB)): Use $(LINK) to create libraries and create
325 targets by hand.
326 ($(TESTLIB)): Likewise.
327 (mostlyclean): Don't remove .libs. Remove the libtool object
328 directory.
329
330 * config.table (enable_shared): Removed.
331
332 * configure.ac (enable_static): Set to yes.
333 (AC_PROG_LIBTOOL): Removed.
334 (AM_DISABLE_SHARED): Uncommented.
335 (AM_PROG_LIBTOOL): Likewise.
336 (LIBOBJS): Add `./' to avoid VPATH.
337 (LTLIBOBJS): Likewise.
338 (enable_shared): Substitute.
339 * configure: Regenerated.
340
207db768
L
3412004-12-18 H.J. Lu <hongjiu.lu@intel.com>
342
343 * Makefile.in (top_builddir): Set to `.'.
344 (OUTPUT_OPTION): Removed.
345 (LIBTOOL): New.
346 (LTLIBOBJS): New.
347 (EXTRA_LTOFILES): New.
348 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
349 (all): Remove stamp-picdir.
350 (LTCOMPILE): New.
351 (.c.lo): New rule.
352 (REQUIRED_LTOFILES): New.
353 (CONFIGURED_LTOFILES): New.
354 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
355 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
356 (stamp-picdir): Completely removed.
357 (maint-missing): Pass $(REQUIRED_LTOFILES)
358 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
359 $(CONFIGURED_OFILES)
360 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
361 $(CONFIGURED_LTOFILES).
362 (mostlyclean): Also remove *.lo .libs.
363 Run "make maint-deps".
364
365 * aclocal.m4: Include ../libtool.m4.
366
367 * config.table: Don't check --enable-shared.
368
369 * configure.ac (AC_PROG_LIBTOOL): Add.
370 (AC_PROG_CC_C_O): Removed.
371 (OUTPUT_OPTION): Removed.
372 (NO_MINUS_C_MINUS_O): Removed.
373 (ltpexecute): New substitute.
374 (LIBOBJS): Cleanup.
375 * configure: Regenerated.
376
377 * maint-tool: Updated for .lo/libtool.
378
d49d0907
BE
3792004-12-11 Ben Elliston <bje@au.ibm.com>
380
381 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
382 * configure: Regenerate.
383 * config.in: Likewise.
384
b180d5fb
DD
3852004-12-07 DJ Delorie <dj@redhat.com>
386
387 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
388 that recursion (and thus large stack space) is not needed.
389
ecc30353
MK
3902004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
391
392 * pex-unix.c: Fix the spelling of longjmp.
393
0b167d51
ILT
3942004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
395
396 PR other/18623
397 * cp-demangle.c (d_call_offset): Remove useless local variables
398 offset and virtual_offset.
399 * cplus-dem.c (ada_demangle): Remove useless local variable
400 at_start_name.
401 (demangle_template): Remove useless local variable start.
402
2d59754f
RS
4032004-11-19 Roger Sayle <roger@eyesopen.com>
404
405 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
406 "ansidecl.h" to avoid redeclaration errors with native compilers.
407 * regex.c: Protect config.h from multiple inclusion.
408
ea27a394
MS
4092004-11-12 Mike Stump <mrs@apple.com>
410
610784f0
MS
411 * Makefile.in (libiberty.html): Fix html generation.
412
626ff3de
AN
4132004-09-08 Adam Nemet <anemet@lnxw.com>
414
415 * vasprintf.c: Accept __va_copy in addition to va_copy.
416
1134b11d 4172004-09-03 Paolo Bonzini <bonzini@gnu.org>
7b3ed47d
PB
418
419 * configure: Regenerate.
420
1134b11d 4212004-09-02 Paolo Bonzini <bonzini@gnu.org>
27cfe310
PB
422
423 * configure.ac: Do not enable multilibs for build-side libiberty.
424
1134b11d 4252004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
50a2de96
DS
426
427 * lrealpath.c (lrealpath): Add _WIN32 support.
428
0cf61401
ZW
4292004-06-28 Zack Weinberg <zack@codesourcery.com>
430
431 * cp-demangle.h: Declare cplus_demangle_operators,
432 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
433 cplus_demangle_type as static if IN_GLIBCPP_V3.
434
00a5aa9c
ILT
4352004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
436
437 PR other/16240
438 * cp-demangle.c (d_expr_primary): Check for a failure return from
439 cplus_demangle_type.
5cd29062 440 * testsuite/demangle-expected: Add test case.
00a5aa9c 441
b47785f4
DS
4422004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
443
444 * pex-win32.c (fix_argv): Expand comment.
445
54b2f310
DJ
4462004-05-25 Daniel Jacobowitz <drow@false.org>
447
448 * Makefile.in: Add .NOEXPORT.
449
8fd58397
DR
4502004-04-29 Douglas B Rupp <rupp@gnat.com>
451
452 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
453 copyright.
454
6489430a
MR
4552004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
456
457 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
458 * configure: Regenerate.
459
9bf3c9cc
RH
4602004-04-22 Richard Henderson <rth@redhat.com>
461
462 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
463 (CHAR_BIT): Provide default.
464 (struct prime_ent, prime_tab): New.
465 (higher_prime_index): Rename from higher_prime_number, return index.
466 (htab_mod_1): New.
467 (htab_mod, htab_mod_m2): Use it.
468 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
469 (htab_expand): Likewise.
470 * configure.ac: Check for stdint.h.
471 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
472 * config.in, configure: Rebuild.
473
80790b05
ILT
4742004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
475
476 * strerror.c: Include config.h, and redefine sys_nerr and
477 sys_errlist, before including ansidecl.h and libiberty.h.
478
7f96816a
JL
4792004-04-13 Jeff Law <law@redhat.com>
480
481 * hashtab.c (htab_remove_elt_with_hash): New function.
482 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
483
d9175b87
RH
4842004-03-31 Richard Henderson <rth@redhat.com>
485
486 * hashtab.c (htab_size): Move to top of file; mark inline.
487 (htab_elements): Likewise.
488 (htab_mod, htab_mod_m2): New.
489 (htab_delete): Refactor htab->size and htab->entries.
490 (htab_empty): Likewise.
491 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
492 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
493 (htab_clear_slot): Use htab_size, htab_elements.
494 (htab_traverse_noresize, htab_traverse): Likewise.
495
e8190aa2
ILT
4962004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
497
fed8129b
ILT
498 * pex-unix.c (pexecute): Use vfork instead of fork, with
499 appropriate changes to make this safe.
500 * pex-common.h (STDERR_FILE_NO): Define.
501
e8190aa2
ILT
502 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
503 an 80 column screen. Run maint-deps.
504
a4f74b58
KC
5052004-03-09 Kelley Cook <kcook@gcc.gnu.org>
506
507 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
508 * acconfig.h: Delete redundant file.
509 * config.in: Regenerate.
510 * configure: Regenerate.
511
3beb1315
HPN
5122004-03-09 Hans-Peter Nilsson <hp@axis.com>
513
514 * configure: Regenerate for config/accross.m4 correction.
515
688556b9
AJ
5162004-03-07 Andreas Jaeger <aj@suse.de>
517
518 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
519 prototypes.
520 (main): Initialize style.
521
80a19ac8
ILT
5222004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
523
31058ee3
ILT
524 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
525 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
526 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
527 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
528 short types to D_PRINT_DEFAULT. Change other integer types to use
529 new D_PRINT_* values where appropriate. Change float types to
530 D_PRINT_FLOAT.
531 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
532 values.
533 * testsuite/demangle-expected: Adjust two test cases.
534
535 * cp-demangle.c (d_print_function_type): Print a space before the
536 parenthesis around the function type in more cases.
537 * testsuite/demangle-expected: Adjust one test case.
538
93f20626
ILT
539 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
540 parentheses around a cast.
541 * testsuite/demangle-expected: Adjust two test cases to match new
542 output.
543
dbd6ec2b
ILT
544 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
545
80a19ac8
ILT
546 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
547 push more than one of the same CV-qualifier on the top of the
548 stack.
549 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
550 move the CV-qualifiers to apply to the element type instead.
551 (d_print_array_type): When checking the modifiers, keep looking
552 past ones which have been printed already.
553 * testsuite/demangle-expected: Add three test cases.
554
8ad1c80e
ILT
5552004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
556
e8ed4ac2
ILT
557 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
558 empty string correctly.
559
4a368ffd
ILT
560 * cp-demangle.c (__cxa_demangle): It is not an error if status is
561 not NULL. It is an error if the mangled name is the same as a
562 built-in type name.
563 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
564 than cplus_demangle_v3.
565
8ad1c80e
ILT
566 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
567 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
568
ef2a223f
MK
5692004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
570
571 * regex.c: Include <ansidecl.h>.
572 (regcomp): Cast i to int.
573 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
574
5254fd7b
ILT
5752004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
576
577 * configure.ac: Add m4_pattern_allow(LIBOBJS).
578 * configure: Regenerate.
579
398b3deb
DD
5802004-01-22 DJ Delorie <dj@redhat.com>
581
582 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
583 with explicit build rules.
584 (VPATH): Remove.
585 (.c.o): Poison.
586 * configure.ac (pexecute, LIBOBJS): Add ./ .
587 * maint-tool: Build dependencies with explicit rules.
588
4e394293
KH
5892004-01-15 Kazu Hirata <kazu@cs.umass.edu>
590
591 * strdup.c (strdup): Constify the argument.
592
0046e342
LR
5932004-01-14 Loren J. Rittle <ljrittle@acm.org>
594
595 * Makefile.in (distclean): Remove config.cache.
596
d4f3ce5c
DJ
5972004-01-13 Daniel Jacobowitz <drow@mvista.com>
598
599 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
600 takes two parameters.
601 * cp-demint.c (cplus_demangle_fill_component): Likewise.
602
5e777af5
ILT
6032004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
604
605 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
606 defined, rename some functions which are to become static via
607 #define.
608 (CP_STATIC_IF_GLIBCPP_V3): Define.
609 (struct d_operator_info): Move definition to cp-demangle.h, and
610 rename to demangle_operator_info. Change all uses.
611 (enum d_builtin_type_print): Move definition to cp-demangle.h.
612 (struct d_builtin_type_info): Move definition to cp-demangle.h,
613 and rename to demangle_builtin_type_info. Change all uses.
614 (enum d_comp_type): Move definition to include/demangle.h, and
615 rename to demangle_component_type, and change all enums to start
616 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
617 (struct d_comp): Move definition to include/demangle.h, and rename
618 to demangle_component. Change all uses.
619 (struct d_info): Move definition to cp-demangle.h.
620 (cplus_demangle_fill_name): New function.
621 (cplus_demangle_fill_extended_operator): New function.
622 (cplus_demangle_fill_ctor): New function.
623 (cplus_demangle_fill_dtor): New function.
624 (d_make_empty): Remove type parameter. Change all callers.
625 (d_make_name): Use cplus_demangle_fill_name.
626 (d_make_extended_operator): Use
627 cplus_demangle_fill_extended_operator.
628 (d_make_ctor): Use cplus_demangle_fill_ctor.
629 (d_make_dtor): Use cplus_demangle_fill_dtor.
630 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
631 non-static by default. Change all callers.
632 (cplus_demangle_operators): Rename from d_operators. Change all
633 uses. Make non-static by default. Add sentinel at end of array.
634 (d_operator_name): Adjust initialization of high for new sentinel
635 in cplus_demangle_operators.
636 (cplus_demangle_builtin_types): Rename from d_builtin_types.
637 Change all uses. Make non-static by default. Change initializer
638 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
639 (cplus_demangle_type): Rename from d_type. Make non-static by
640 default. Change all callers.
641 (cplus_demangle_init_info): Rename from d_init_info. Make
642 non-static by default. Change all callers.
643 * cp-demangle.h: New file.
644 * cp-demint.c: New file.
645 * Makefile.in: Rebuild dependencies.
646 (CFILES): Add cp-demint.c.
647 (REQUIRED_OFILES): Add cp-demint.o.
648
c31d56ed
KC
6492004-01-09 Kelley Cook <kcook@gcc.gnu.org>
650
651 * configure.in: Rename file to ...
652 * configure.ac: ... this.
653 * Makefile.in: Update a comment for above change.
654 * README: Likewise.
655 * config.in: Regenerate.
656
e4796f1c
ILT
6572004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
658
659 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
660 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
661 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
662 demangling template parameters.
663 * testsuite/test-demangle.c (fail): New static function.
664 (main): Support new options in input file: --no-params,
665 --is-v3-ctor, and --is-v3-dtor.
666 * testsuite/demangle-expected: Add --no-params to most tests, and
667 add the correct result when parameters are not demangled. Add
668 some simple tests for V3 constructor/destructor recognition.
669
4d425229
KG
6702003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
671
672 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
673
6b309c6e
DJ
6742003-12-22 Daniel Jacobowitz <drow@mvista.com>
675
676 PR debug/13272
677 * Makefile.in (lbasename.o): Depend on filenames.h.
678 * lbasename.c: Include "filenames.h" instead of defining
679 its macros locally.
680
2d6c4025
ILT
6812003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
682
683 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
684 dynamic arrays.
685 (struct d_operator_info): Add len field.
686 (struct d_builtin_type_info): Add len and java_len fields.
687 (struct d_standard_sub_info): Add simple_len, full_len, and
688 set_last_name_len fields.
689 (struct d_comp): Add len field to s_string.
690 (struct d_info): Add send, did_subs, and expansion fields.
691 (d_append_string_constant): Define.
692 (d_append_string): Remove. Change all users to use
693 d_append_string_constant or d_append_buffer instead.
694 (d_make_sub): Add len parameter. Change all callers.
695 (d_name): Increase expansion when substituting std::.
696 (d_unqualified_name): Increase expansion for an operator.
697 (d_number): Don't use multiplication for negative numbers.
698 (d_identifier): Make sure there are enough characters in the
699 string for the specified length. Adjust expansion for an
700 anonymous namespace.
701 (d_operators): Initialize len field.
702 (d_special_name, d_ctor_dtor_name): Increase expansion.
703 (d_builtin_types): Initialize len and java_len fields.
704 (d_type): Increase expansion for a builtin type.
705 (d_cv_qualifiers): Increase expansion for each qualifier.
706 (d_bare_function_type): Decrease expansion when removing single
707 void parameter.
708 (d_template_param): Increment did_subs.
709 (d_expression): Increase expansion for an operator.
710 (d_expr_primary): Decrease expansion for a type we will print
711 specially.
712 (standard_subs): Initialize new fields.
713 (d_substitution): Increment did_subs when doing a normal
714 substitution. Increase expansion for a special substitution.
715 (d_print): Add estimate parameter. Change all callers.
716 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
717 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
718 (d_print_java_identifier): Rename from d_print_identifier. Handle
719 only Java case. Change caller.
720 (d_init_info): Change return type to void. Change all callers.
721 Initialize send, did_subs, and expansion fields. Do not
722 initialize comps and subs fields.
723 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
724 arrays on stack. Make an estimate of the length of the demangled
725 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
726 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
727 subs arrays on stack.
728
2307e075
ILT
7292003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
730
731 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
732 after the identifier.
733 * testsuite/demangle-expected: Add test case.
734
a91d1af0
ILT
7352003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
736
737 Fix for PR c++/13447:
738 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
739 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
740 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
741 D_COMP_QUAL_NAME.
742 (is_ctor_or_dtor): Likewise.
743 (d_local_name): Use D_COMP_LOCAL_NAME rather than
744 D_COMP_QUAL_NAME.
745 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
746 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
747 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
748 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
749 * testsuite/demangle-expected: Add two test cases.
750
751 * cp-demangle.c (d_print_function_type): Clear the global modifier
752 list when printing the modifiers, not just when printing the
753 function parameters.
754 * testsuite/demangle-expected: Add two test cases.
755
8d686df2
ILT
7562003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
757
cbc278f4
ILT
758 * cp-demangle.c (d_print_function_type): Print the function
759 parameters with no modifiers.
760 * testsuite/demangle-expected: Add test case.
761
8d686df2
ILT
762 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
763 expect that we've read the entire string.
764 (is_ctor_or_dtor): Don't expect that we've read the entire
765 string--reverse patch of 2003-11-29.
766
adf269c7
BK
7672003-12-15 Brendan Kehoe <brendan@zen.org>
768
769 * libiberty/Makefile.in (floatformat.o): Add dependency on
770 config.h to accompany change of 2003-12-03.
771
374caa50
ILT
7722003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
773
774 Fix handling of constructor/destructor of standard substitution:
775 * cp-demangle.c (struct d_standard_sub_info): Define.
776 (d_substitution): Add prefix argument. Change all callers.
777 Rework handling of standard substitutions to print full name when
778 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
779 * testsuite/demangle-expected: Add test case.
780
781 Fix handling of negative literal constants:
782 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
783 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
784 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
785 (d_print_comp): Handle D_COMP_LITERAL_NEG.
786 * testsuite/demangle-expected: Add test case.
787
a51753e4
ILT
7882003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
789
790 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
791 (d_last_char): Define new macro.
792 (d_make_name): Reject an empty name.
793 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
794 (d_substitution, d_print_identifier): Likewise.
795 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
796 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
797 (d_print_mod) Use new d_last_char macro.
798 (d_print_cast): Use new d_last_char macro.
799 (is_ctor_or_dtor): Don't leak memory.
800
801 Fix handling of member function modifiers:
802 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
803 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
804 (d_dump): Dump new d_comp_type values.
805 (d_make_comp): Accept new d_comp_type values.
806 (has_return_type): Only accept _THIS variants of qualifiers.
807 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
808 qualifiers.
809 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
810 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
811 qualifiers and printing them at the end, add _THIS qualifiers to
812 the modifier list.
813 (d_print_comp) [D_COMP_*_THIS]: New cases.
814 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
815 qualifiers.
816 (d_print_mod_list): Add suffix parameter. Change all callers.
817 Keep walking the list even if the current modifier has been
818 printed.
819 (d_print_mod): Handle new _THIS qualifiers.
820 (d_print_function_type): Handle new _THIS qualifiers when deciding
821 whether to print a parenthesis. Put a space before the
822 parenthesis in some cases. Call d_print_mod_list again at the
823 end, passing suffix as 1.
824 (is_ctor_or_dtor): Look for new _THIS qualifiers.
825 * testsuite/demangle-expected: Add test case.
826
827 Fix for PR gcc/13304:
828 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
829 before the '<' is itself a '<', insert a space.
830 (d_print_cast): Likewise.
831 * testsuite/demangle-expected: Add test case.
832
833 Fix for PR gcc/13244:
834 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
835 which uses the '>' operator in an extra layer of parens.
836 * testsuite/demangle-expected: Add test case.
837
bee6ab3e
ILT
8382003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
839
840 * floatformat.c: Include "config.h" and <string.h> if available.
841 (INFINITY, NAN): Define if not defined by <math.h>.
842 (floatformat_to_double): Handle NaN, infinity, and denormalized
843 numbers.
844 (floatformat_from_double): Likewise.
845 (ieee_test): In debugging code, use little endian rather than big
846 endian. Correct tests to handle NaN and to check correct sign of
847 zero. Omit m68k extended test.
848 (main): Add more debugging cases.
849
f26deb3d
ILT
8502003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
851
852 * cp-demangle.c (d_demangle): Only return success if we consumed
853 the entire demangled string.
854 (is_ctor_or_dtor): Likewise.
855
856 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
857 to restore expected result of EDG test case to original expected
858 result.
859
81dc098b
ILT
8602003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
861
862 * cp-demangle.c (struct d_print_mod): Add templates field.
863 (d_make_builtin_type): Check for NULL type.
864 (d_make_extended_operator): Check for NULL name.
865 (d_make_ctor, d_make_dtor): Likewise.
866 (d_mangled_name): Add top_level parameter. Change all callers.
867 (d_encoding): If DMGL_PARAMS is not set, strip off initial
868 CV-qualifiers.
869 (d_type): Check some return values we rely on.
870 (d_bare_function_type, d_array_type): Likewise.
871 (d_pointer_to_member_type, d_template_args): Likewise.
872 (d_add_substitution): Fail if argument is NULL.
873 (d_print_resize): Check whether buf is NULL.
874 (d_print_comp): Save current templates list with each modifier.
875 Don't pass the modifier list down when printing a template.
876 (d_print_cast): Don't pass the modifier list down when printing a
877 template.
878 (d_print_mod_list): Temporarily set templates list while printing
879 a modifier.
880 (d_print_mod): Check that buf is not NULL before using it.
881 (d_print_function_type): Print parens if there is no modifier.
882 (d_init_info): Permit as many substitutions as there are
883 characters in the mangled name.
884 * testsuite/demangle-expected: Add two new test cases.
885
eb459c81
ILT
8862003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
887
888 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
889 d_demangle.
890
ad07f5e5
ILT
8912003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
892
893 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
894 callers.
895 (print_usage): Display new -p option.
896 (long_options): Add --no-params.
897 (main): Accept and handle -p.
898
0ba5c8a2
ILT
8992003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
900
901 * cp-demangle.c (has_return_type): Skip qualifiers when checking
902 whether we have a template.
903 * testsuite/demangle-expected: Add four new tests.
904
bd6946d1
ILT
9052003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
906
9cca376f
ILT
907 * testsuite/demangle-expected: Minor changes to match output of
908 new demangler: adjust whitespace in four tests, and change order
909 of qualifiers in one test.
910
bd6946d1
ILT
911 * cp-demangle.c: Complete rewrite.
912
6df5a5c7
MM
9132003-11-19 Mark Mitchell <mark@codesourcery.com>
914
915 * cp-demangle.c (demangle_type): Correct thinko in substitution
916 processing.
917
a9b571f2
ILT
9182003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
919
820555e6
ILT
920 * cp-demangle.c (demangle_operator_name): Remove space before
921 "sizeof".
922 (demangle_type_ptr): Put qualifiers in the right place. Handle
923 qualifiers in pointer to member specially.
924 (demangle_type): Handle qualifiers for pointer or reference
925 specially. Handle function type.
926 (demangle_local_name): Save and restore caret around demangling of
927 initial encoding.
928
c4328d32
ILT
929 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
930 cplus_demangle.
931
a9b571f2
ILT
932 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
933
ad37274a
AJ
9342003-10-31 Andreas Jaeger <aj@suse.de>
935
936 * floatformat.c (floatformat_always_valid): Add unused attribute.
937
27eb8ab1
JZ
9382003-10-30 Josef Zlomek <zlomekj@suse.cz>
939
940 Jan Hubicka <jh@suse.cz>
941 * vasprintf.c (int_vasprintf): Pass va_list by value.
942 Use va_copy for copying va_list.
943 (vasprintf): Pass va_list by value.
944
e0432c1c
JZ
9452003-10-30 Josef Zlomek <zlomekj@suse.cz>
946
947 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
948 instead of increasing n_elements when inserting to deleted slot.
949
08c5b96d
B
9502003-10-20 J. Brobecker <brobecker@gnat.com>
951
952 * cplus-dem.c (demangle_template): Register a new Btype only
953 when needed.
954 * testsuite/demangle-expected: Add a new test.
955
968e3f93
L
9562003-10-16 H.J. Lu <hongjiu.lu@intel.com>
957
958 * testsuite/demangle-expected: Update the expected output of
959 _GLOBAL__I__Z2fnv.
960
bca48dc6
DJ
9612003-10-02 Daniel Jacobowitz <drow@mvista.com>
962
963 * strerror.c: Revert last change. Declare static sys_nerr
964 and sys_errlist using different names.
965
b9e8f4b3
DJ
9662003-10-01 Daniel Jacobowitz <drow@mvista.com>
967
968 * strerror.c: Don't provide or reference sys_errlist if
969 strerror is available.
970
c0590bfd
L
9712003-10-01 H.J. Lu <hongjiu.lu@intel.com>
972
973 * configure.in: Check if $MAKEINFO is missing.
974 * configure: Regenerated.
975
b033df90
DJ
9762003-09-24 Daniel Jacobowitz <drow@mvista.com>
977
978 * configure.in: Use AC_PROG_CPP_WERROR.
979 * configure: Regenerated.
980
83c07342
AC
9812003-09-22 Andrew Cagney <cagney@redhat.com>
982
983 * floatformat.c (floatformat_i387_ext_is_valid): New function.
984 (floatformat_always_valid): New function.
985 (floatformat_i387_ext): Initialize new "is_valid" field to
986 "floatformat_i387_ext_is_valid".
987 (floatformat_ieee_single_little): Initialize "is_valid" field to
988 floatformat_always_valid.
989 (floatformat_ieee_double_big): Ditto.
990 (floatformat_ieee_double_little): Ditto.
991 (floatformat_ieee_double_little): Ditto.
992 (floatformat_ieee_double_littlebyte_bigword): Ditto.
993 (floatformat_i960_ext): Ditto.
994 (floatformat_m88110_ext): Ditto.
995 (floatformat_m88110_harris_ext): Ditto.
996 (floatformat_arm_ext_big): Ditto.
997 (floatformat_arm_ext_littlebyte_bigword): Ditto.
998 (floatformat_ia64_spill_big): Ditto.
999 (floatformat_ia64_spill_little): Ditto.
1000 (floatformat_ia64_quad_big): Ditto.
1001 (floatformat_ia64_quad_little): Ditto.
1002 (floatformat_ia64_quad_little): Ditto.
1003 (floatformat_is_valid): Call "is_valid".
1004
c9fbef12
AC
10052003-09-15 Andrew Cagney <cagney@redhat.com>
1006
1007 * floatformat.c (get_field): Make "data" constant.
1008 (floatformat_is_valid, floatformat_to_double): Make "from"
1009 constant, fix casts.
1010 (floatformat_from_double): Make "from" constant.
1011
9c8860c3
DJ
10122003-09-15 Daniel Jacobowitz <drow@mvista.com>
1013
1014 * floatformat.c (floatformat_is_valid): New function.
1015 (get_field, put_field): Correct comments.
1016
13f7d3a1
JZ
10172003-09-06 Josef Zlomek <zlomekj@suse.cz>
1018
1019 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
1020 FIBHEAPKEY_T.
1021
03eec143 10222003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
86d75906
JDA
1023
1024 PR bootstrap/12100
1025 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
1026 * configure: Rebuilt.
1027
238235ef
DJ
10282003-08-27 Daniel Jacobowitz <drow@mvista.com>
1029
1030 * aclocal.m4: Include acx.m4 and no-executables.m4.
1031 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
1032 (LIB_AC_PROG_CC): Remove.
1033 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
1034 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
1035 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
1036 performing link tests.
1037 * configure: Regenerated.
1038
2b81b2c9
NN
10392003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
1040
0cf61401 1041 * cp-demangle.c: Clarify what package(s) this is part of.
2b81b2c9 1042
7b96f3e4
DS
10432003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
1044
1045 * pex-win32.c (pexecute): Mark parameters this_pname and
1046 temp_base as unused. Remove unused variables retries,
1047 sleep_interval. Initialize org_stdin, org_stdout.
1048 (pwait): Mark parameter flags as unused.
1049
10502003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
bacb96b2
DS
1051
1052 * pex-win32.c (fix_argv): Ensure that the executable pathname
1053 uses Win32 backslashes.
1054 (pexecute): Cast away constness when assigning *errmsg_arg.
1055
6f8507b1
L
10562003-06-26 H.J. Lu <hongjiu.lu@intel.com>
1057
1058 * testsuite/demangle-expected: Add more GNU V3 testcases.
1059
21299dbd
ZW
10602003-06-22 Zack Weinberg <zack@codesourcery.com>
1061
1062 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
1063 not HC_ASCII and HC_EBCDIC.
1064 Add documentation in form expected by gather-docs.
1065 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
1066 * Makefile.in, functions.texi: Regenerate.
1067
7468e0b5
ZW
10682003-06-21 Zack Weinberg <zack@codesourcery.com>
1069
1070 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
1071 for charset determination.
1072
cf8e4b78
DH
10732003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
1074
1075 * configure.in: Add check for malloc.h needed by
1076 m68k for function free().
1077 * configure: Regenerated.
1078 * config.in: Add HAVE_MALLOC_H.
1079 * hashtab.c: include malloc.h were available for
1080 free().
1081
aa9dc53d 10822003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
7468e0b5 1083
aa9dc53d
ACY
1084 PR bootstrap/10974
1085 * physmem.c: Update comment.
1086 * configure.in: Modify test for _system_configuration for older
1087 AIX systems.
1088
1089 * config.in, configure: Regenerated.
7468e0b5 1090
8191fe81
JDA
10912003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1092
1093 PR other/10810
1094 * test-demangle.c (getline): Fix fence-post error.
1095
8d398258
NC
10962003-06-03 Nick Clifton <nickc@redhat.com>
1097
1098 * asprintf.c: Change comment to note that -1 is returned upon
1099 error.
1100 * vasprintf.c: Likewise.
1101 (vasprintf): Return -1 upon error.
1102 * functions.texi: Document changes to asprintf and vasprintf.
1103
29ad6d3f
KC
11042003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
1105
1106 * config.table: Accept i[345867]86 variant.
1107
49a19cfd
JB
11082003-05-15 Jim Blandy <jimb@redhat.com>
1109
1110 * hex.c (_hex_value): Make this unsigned.
1111 (hex_value): Update documentation for new return type. hex_value
1112 now expands to an unsigned int expression, to avoid unexpected
1113 sign extension when we store it in a bfd_vma, which is larger than
1114 int on some platforms.
1115 * functions.texi: Regenerated.
1116
d5d4eae2
JZ
11172003-05-07 Josef Zlomek <zlomekj@suse.cz>
1118
1119 * splay-tree.c (splay_tree_predecessor): Fix comment.
1120 (splay_tree_successor): Fix comment.
1121
5cc5a0d0
JM
11222003-05-07 Jason Merrill <jason@redhat.com>
1123
9d70d418 1124 * hashtab.c (iterative_hash): New fn.
5cc5a0d0
JM
1125 * configure.in: Add AC_C_BIGENDIAN_CROSS.
1126 * aclocal.m4: Include accross.m4.
1127 * configure, config.in: Regenerate.
1128
05c30f22
KG
11292003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1130
1131 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
1132 * configure: Regenerate.
1133
41fe9404
CW
11342003-05-03 Carlo Wood <carlo@alinoe.com>
1135
1136 * cp-demangle.c: Fix typo in "char_traints" string-literal.
1137
52dd3224
KG
11382003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1139
1140 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
1141 (main): Test that we don't write too much data.
1142
bd3fbc6b
KG
11432003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1144
1145 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
1146 vsnprintf.
1147 * snprintf.c, vsnprintf.c: New files.
1148 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
1149 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
1150 Regenerate dependencies.
1151
1152 * functions.texi, configure, config.in: Regenerated.
1153
029bcc09
KG
11542003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1155
1156 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
1157 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
1158 and stpncpy.
1159 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
1160 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
1161 Regenerate dependencies.
1162
1163 * functions.texi, configure, config.in: Regenerated.
1164
c9ac9147
KG
11652003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1166
1167 * argv.c: Fix comments.
1168 * calloc.c: Don't unnecessarily include "libiberty.h".
1169 (bzero): Add prototype.
1170 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1171 * getcwd.c (getcwd): Use standard definition to avoid conflicts
1172 with system headers.
1173 * hashtab.c (htab_traverse): Delete unused variables.
1174 * rename.c: Include "ansidecl.h".
1175 (rename): Use standard definition to avoid conflicts with system
1176 headers.
1177 * strsignal.c: Rely on ANSI_PROTOTYPES.
1178 * strstr.c: Check GNUC >= 2, not GNUC == 2.
1179 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1180 * vprintf.c: Include "ansidecl.h" earlier, rely on
1181 ANSI_PROTOTYPES.
1182 * vsprintf.c: Include "ansidecl.h" earlier, rely on
1183 ANSI_PROTOTYPES and possibly include <stdarg.h>.
7468e0b5 1184
c9ac9147
KG
1185 * Makefile.in: Regenerate dependencies.
1186
98475c57
DD
11872003-04-15 DJ Delorie <dj@redhat.com>
1188
1189 * maint-tool (deps): Scan for headers in $srcdir also.
1190
55adc7bd
KG
11912003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1192
1193 PR target/10338
1194 PR bootstrap/10198
1195 PR bootstrap/10140
1196 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
1197 __mempcpy.
1198 * regex.c (regerror): Likewise.
1199
0ae0f1b0
RS
12002003-04-14 Roger Sayle <roger@eyesopen.com>
1201
1202 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
1203 * memchr.c: Likewise.
1204 * strcasecmp.c: Likewise.
1205 * strncasecmp.c: Likewise.
1206 * strncmp.c: Likewise.
1207 * xatexit.c: Likewise.
1208 * xmalloc.c: Likewise.
1209
1210 * copysign.c: Use traditional function declaration instead of DEFUN.
1211 * sigsetmask.c: Likewise.
1212
1213 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
1214 * memset.c: Likewise.
1215
1216 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
1217 * memmove.c: Likewise.
1218
88702c45
RS
12192003-04-14 Roger Sayle <roger@eyesopen.com>
1220
1221 * strdup.c (strdup): Tweak implementation to use memcpy.
1222
39e8d049
KG
12232003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1224
1225 * configure.in (HAVE_UINTPTR_T): Always define.
1226 * configure: Regenerated.
1227
9f2e0608
AO
12282003-03-23 Alexandre Oliva <aoliva@redhat.com>
1229
1230 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
1231 instead of $$CC alone.
1232 (install_to_tooldir): Use it.
1233
dbccdc42
JH
12342003-17-03 Jan Hubicka <jh@suse.cz>
1235
1236 * hashtab.c (htab_traverse_noresize): Break out from ...
1237 * hashtab.c (htab_traverse): ... here.
1238
0a8e3de3
JH
12392003-12-03 Jan Hubicka <jh@suse.cz>
1240
cd22e4af
JH
1241 * hashtab.c (htab_expand): Fix warning.
1242
0a8e3de3
JH
1243 * hashtab.c (htab_expand): Compute the size of hashtable based
1244 on the number of elements actually used.
1245 (htab_traverse): Call htab_expand when table is too empty.
1246
8fe85775
CW
12472003-03-11 Carlo Wood <carlo@gnu.org>
1248
1249 * cplus-dem.c (demangle_integral_value): Correction to reflect
1250 patch of 2002-01-10 in order to also make negative multi-digits
1251 without leading underscore work.
1252
3bf27822
MM
12532003-03-03 Mark Mitchell <mark@codesourcery.com>
1254
1255 * cplus-dem.c: Add license exception to copyright notice.
1256
434fa0b8
KG
12572003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1258
1259 * physmem.c: Formatting changes from upstream.
1260
ed935c35
DS
12612003-02-24 Danny Smith <dannysmith@users.source.forge.net>
1262
1263 * physmem.c (physmem_total): Add _WIN32 support.
1264 (physmem_available): Likewise.
1265
7f9fc006
RO
12662003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1267
1268 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
1269 GSI_PHYSMEM.
1270 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
1271
d47f75c4
KG
12722003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1273
1274 * configure.in: Check for sys/systemcfg.h and
1275 _system_configuration.
1276 * physmem.c: Add support for AIX. Tweek formatting as per
1277 upstream coreutils beta.
1278
170230b7
KG
12792003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1280 Richard Earnshaw <rearnsha@arm.com>
1281 Geoffrey Keating <geoffk@apple.com>
7468e0b5 1282
170230b7
KG
1283 * configure.in: Check for sys/sysctl.h and sysctl.
1284 * physmem.c: Add support for *bsd and darwin.
1285 * Makefile.in: Generate depedency for physmem.o.
1286
4a06f7f2
RO
12872003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1288
1289 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
1290 Tru64 UNIX.
1291 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
1292 Tru64 UNIX.
1293
1294 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
1295 machine/hal_sysinfo.h, sys/table.h.
1296 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
1297 * configure, config.in: Regenerate.
1298
64c7e556
KG
12992003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1300
1301 * configure.in: Check for sys/sysmp.h and sysmp.
1302 * physmem.c: Pull upstream copy, add support for irix6.
1303
1304 * config.in, configure: Regenerated.
1305
e9019af6
KG
13062003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1307
1308 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
1309 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
1310 pstat_getdynamic.
7468e0b5 1311
a354191e
KG
13122003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1313
1314 * Makefile.in (CFILES): Add physmem.c.
1315 (REQUIRED_OFILES): Add physmem.o.
1316 * configure.in: Check for sys/pstat.h.
1317 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
1318 * physmem.c: New file, copied from textutils.
1319
1320 * config.in, configure: Regenerated.
1321
4876b2b4
DJ
13222003-02-20 Daniel Jacobowitz <drow@mvista.com>
1323
1324 * Makefile.in (CFILES): Add lrealpath.c.
1325 (REQUIRED_OFILES): Add lrealpath.o.
1326 (lrealpath.o): Add rule.
1327 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
1328 * configure.in: Add realpath and canonicalize_file_name to
1329 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
1330 for canonicalize_file_name.
1331 * lrealpath.c: New file.
1332 * make-relative-prefix.c: Update documentation.
1333 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
1334 * config.in: Regenerated.
1335 * configure: Regenerated.
1336 * functions.texi: Regenerated.
1337
e182f0a3 13382003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1339
1340 * cplus_dem.c: Fix typo: intializes -> initializes.
1341
3343fdd2
AO
13422003-02-20 Alexandre Oliva <aoliva@redhat.com>
1343
1344 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
1345 config.status.
1346 * configure: Rebuilt.
1347
902cf50c
DJ
13482003-02-13 Daniel Jacobowitz <drow@mvista.com>
1349
1350 Fix PR c++/7612.
1351 * cplus-dem.c (demangle_signature): Call string_delete.
1352 Remove extra string_init.
1353 (demangle_arm_hp_template): Call string_delete instead of
1354 string_clear. Add missing string_delete call.
1355 (demangle_qualified): Add missing string_delete call.
1356 (do_type): Remove unused variable btype. Add missing string_delete
1357 call. Call string_delete instead of string_clear.
1358 (demangle_fund_type): Move variable btype inside of the switch
1359 statement. Add missing string_delete call.
1360 (do_arg): Call string_delete instead of string_clear. Remove extra
1361 string_init.
1362 (demangle_nested_args): Free work->previous_argument.
1363
7ac27e08
KG
13642003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1365
1366 * acconfig.h: New file. Add uintptr_t.
1367 * config.in: Regenerated.
1368
b3a8389d
JM
13692003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
1370
1371 * libiberty.texi: Update to GFDL 1.2.
1372
d8c22ce7
CC
13732003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1374
1375 * Makefile.in (libiberty_topdir): New subst.
1376 (mkinstalldirs): Redefine in terms of the above.
1377 * configure.in: AC_SUBST it.
1378 * configure: Regenerate.
1379
4ce1921a
CC
13802003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1381
1382 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
1383 (info-subdir, install-info-subdir, clean-info-subdir)
1384 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
1385 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
1386 Pass $(FLAGS_TO_PASS).
1387
93239fdb
AO
13882003-01-27 Alexandre Oliva <aoliva@redhat.com>
1389
1390 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
1391 /`$$CC -print-multi-os-directory`.
1392
74828682
DJ
13932003-01-26 Daniel Jacobowitz <drow@mvista.com>
1394
1395 * hashtab.c (htab_create_alloc_ex): New function.
1396 (hatab_set_functions_ex): New function.
1397 (htab_delete, htab_expand): Support alternate allocation functions.
1398
ece0e59f
CF
13992003-01-24 Christopher Faylor <cgf@redhat.com>
1400
1401 * configure.in: Remove special pex-cygwin consideration.
1402 * configure: Regenerate.
1403 * pex-cygwin.c: Remove.
1404 * Makefile.in: Remove pex-cygwin.[co] lines.
1405
55d0e5e0
ZW
14062003-01-24 Zack Weinberg <zack@codesourcery.com>
1407
1408 * Makefile.in (CFILES): Add pex-*.c.
1409 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
1410 (CONFIGURED_OFILES): Add pex-*.o.
1411 (TEXIFILES): Add pexecute.txh.
1412 (pexecute.o): Delete rule.
1413 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
1414 pex-unix.o, pex-win32.o): New rules.
1415 * configure.in: Change AC_INIT argument to xmalloc.c.
1416 Compute appropriate pexecute implementation and substitute it
1417 as @pexecute@.
1418
1419 * pexecute.c: Split up into...
1420 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
1421 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
1422 new files.
1423
1424 * functions.texi: Regenerate.
1425 * configure: Regenerate.
1426
120cdf68
JZ
14272003-01-20 Josef Zlomek <zlomekj@suse.cz>
1428
1429 * hashtab.c (htab_expand): Fix allocation of new entries.
1430
90e5b39f
CC
14312003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1432
1433 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
1434
d7082cd7
CC
1435 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
1436 mkinstalldirs command.
1437
eaed9290
DS
14382002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
1439
1440 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
1441 Define for hosts with HOST_EXECUTABLE_SUFFIX.
1442
ef4e4181
NC
14432002-11-24 Nick Clifton <nickc@redhat.com>
1444
1445 * make-relative-prefix.c (make_relative_prefix): Ensure return
1446 string is empty before using strcat to construct it.
1447
42766f8d
DJ
14482002-11-22 Daniel Jacobowitz <drow@mvista.com>
1449
1450 * Makefile.in: Add make-relative-prefix.c.
1451 * make-relative-prefix.c: New file.
1452 * functions.texi: Rebuilt.
1453
783080ab
JJ
14542002-11-16 Jakub Jelinek <jakub@redhat.com>
1455
1456 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
1457 used with arguments in traditional C' warnings.
1458
7da64d7a
JJ
14592002-10-16 Jakub Jelinek <jakub@redhat.com>
1460
1461 * config.table: Use mh-s390pic for s390x too.
1462
de78f58b
AJ
14632002-10-06 Andreas Jaeger <aj@suse.de>
1464
1465 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
1466 variable and of strict-aliasing warning.
1467 (grow_vect): Use char as first parameter.
1468
6c5d742e
KG
14692002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1470
1471 * Makefile.in (all): Fix multilib parallel build.
1472
f08b7eee
JDA
14732002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
1474
1475 * cp-demangle.c (demangling_new): Cast 0 to enum.
1476 (demangle_char): Cast return of strdup to char *.
1477 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
1478 (is_gnu_v3_mangled_dtor): Likewise.
1479 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
1480 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
1481 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
1482 * md5.c (md5_process_bytes): Cast results back to const void *.
1483 (md5_process_block): Add cast to const md5_uint32 *.
1484 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
1485 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
1486 unsigned short.
1487 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
1488 to void *.
1489 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
1490
8d87f295
NC
14912002-09-19 Nick Clifton <nickc@redhat.com>
1492
1493 * README: Update email addresses for bugs and patches.
1494
6eedb9ca
MS
14952002-09-10 Mike Stump <mrs@apple.com>
1496
1497 * splay-tree.c (splay_tree_successor): Fix comments.
1498
3fd9d606
ZW
14992002-09-11 Zack Weinberg <zack@codesourcery.com>
1500
b2196e8f 1501 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
3fd9d606
ZW
1502 * testsuite/Makefile.in: Adjust for test-demangle.
1503 * testsuite/regress-demangle: Deleted.
1504 * testsuite/test-demangle.c: New file.
1505 * testsuite/demangle-expected: Change \$ to $ throughout, now that
1506 this file is not being read by a shell script.
1507
70c4e67a
RS
15082002-09-05 Roger Sayle <roger@eyesopen.com>
1509
1510 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
1511
65b91091
DD
15122002-08-07 DJ Delorie <dj@redhat.com>
1513
1514 * regex.c (re_error_msgid): Just use a simple array of strings.
1515 (re_compile_pattern): Compensate.
1516 (re_comp): Likewise.
1517 (re_comp): Likewise.
1518 (regerror): Likewise.
1519
437974a9
NB
15202002-07-29 Neil Booth <neil@daikokuya.co.uk>
1521
1522 * cplus-dem.c (PREPEND_BLANK): Remove.
de78f58b 1523
28a34ec1
JM
15242002-07-10 Jason Merrill <jason@redhat.com>
1525
1526 * cp-demangle.c (demangle_identifier): Support extended Unicode
1527 characters.
1528
84326592
KG
15292002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1530
1531 * cp-demangle.c (demangle_v3_with_details): Wrap in
de78f58b 1532 !defined IN_GLIBCPP_V3.
84326592 1533
5d69ba1f
MM
15342002-07-01 Mark Mitchell <mark@codesourcery.com>
1535
1536 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
1537 Set it for the "st" operator.
1538 (demangle_expression): Handle expressions with types as arguments.
1539
7fda878c
DR
15402002-06-30 Douglas Rupp <rupp@gnat.com>
1541
1542 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
1543 * Makefile.in (OUTPUT_OPTION): Use.
1544
112bae77
PB
15452002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
1546
1547 * Makefile.in (install_to_libdir): Add $(DESTDIR).
1548 (install_to_tooldir): Likewise.
1549
53309d5c
DR
15502002-06-17 Douglas Rupp <rupp@gnat.com>
1551
1552 * lbasename.c: Add 2002 to copyright.
1553 (IS_DIR_SEPARATOR): Remove VMS junk.
1554
045b3a49
GK
15552002-06-05 Geoffrey Keating <geoffk@redhat.com>
1556
1557 * hashtab.c (htab_create): New stub function for backward
1558 compatibility.
1559 (htab_try_create): Likewise.
1560
e2500fed
GK
15612002-06-03 Geoffrey Keating <geoffk@redhat.com>
1562
1563 * hashtab.c (htab_create): Delete.
1564 (htab_try_create): Delete.
1565 (htab_create_alloc): New.
1566 (htab_delete): Support user-specified memory allocation.
1567 (htab_expand): Likewise.
1568
9f3dbd92
RL
15692002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
1570
1571 * configure.in: Fix typo in the code checking for sys_errlist.
1572 * configure: Regenerated.
1573
e4723404
AS
15742002-05-13 Andreas Schwab <schwab@suse.de>
1575
1576 * config.table: Use mh-x86pic also for x86-64.
1577
6706f116
AO
15782002-05-08 Alexandre Oliva <aoliva@redhat.com>
1579
1580 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1581 script entry, and set LD to it when configuring multilibs.
1582 * configure: Rebuilt.
1583
deae2ed9
MM
15842002-05-07 Mark Mitchell <mark@codesourcery.com>
1585
1586 * configure.in (AC_TYPE_PID_T): Use it.
1587 * configure: Regenerated.
1588 * getruntime.c: Include <sys/types.h>.
1589 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
1590
4fc4e478
RH
15912002-04-09 Richard Henderson <rth@redhat.com>
1592
1593 * hashtab.c (higher_prime_number): Use 7 as minimum.
1594 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
1595 (htab_find_slot_with_hash): Likewise.
1596
bd7e6f2d
PE
15972002-04-01 Phil Edwards <pme@gcc.gnu.org>
1598
1599 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
1600 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
1601 not compile if IN_GLIBCPP_V3 defined.
1602 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
1603
a8f55e51
BM
16042002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1605
de78f58b 1606 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
a8f55e51
BM
1607 if it is NULL.
1608
96adcacb
DD
16092002-03-27 DJ Delorie <dj@redhat.com>
1610
1611 * hex.c: Add documentation.
1612 (_hex_value): Provide non-ASCII empty table.
1613 (hex_init): Initialize the non-ASCII table.
1614 * functions.texi: Regenerate.
1615
2b613c6a
MM
16162002-03-27 Mark Mitchell <mark@codesourcery.com>
1617
1618 * dyn-string.c: Add libgcc exception to copyright notice.
1619
cd862df8
L
16202002-03-26 H.J. Lu (hjl@gnu.org)
1621
1622 * config.table: Support --with-build-subdir.
1623 * configure.in: Likewise.
1624 * configure: Rebuild.
1625
ed300793
SG
16262002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
1627
1628 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
1629 seen.
1630
b3dd43df
MM
16312002-03-12 Mark Mitchell <mark@codesourcery.com>
1632
1633 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
1634 notice.
1635
50c74579
DR
16362002-03-11 Douglas B Rupp <rupp@gnat.com>
1637
1638 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
1639
957978a4
JB
16402002-03-06 Jim Blandy <jimb@redhat.com>
1641
1642 * splay-tree.c (splay_tree_xmalloc_allocate,
1643 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
1644 prototyped definitions. Mark `data' arguments as unused.
1645
ccc49bed
AC
16462002-03-06 Andrew Cagney <ac131313@redhat.com>
1647
1648 * floatformat.c (floatformat_arm_ext_big): Delete definition.
1649
48d7db63
PE
16502002-03-04 Phil Edwards <pme@gcc.gnu.org>
1651
1652 * configure.in: Add --enable-install-libiberty option.
1653 * Makefile.in (INSTALLED_HEADERS): New variable.
1654 (install_to_libdir): Possibly also copy headers.
1655 * configure: Regenerated.
1656
af18e951
NB
16572002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
1658
1659 * xmalloc.c (xmalloc_fail): Clarify error message further.
1660
d8d7c3c3
NB
16612002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
1662
1663 * xmalloc.c (xmalloc_fail): Clarify error message.
1664
00c2f96f
JB
16652002-02-22 Jim Blandy <jimb@redhat.com>
1666
1667 * splay-tree.c (splay_tree_xmalloc_allocate,
1668 splay_tree_xmalloc_deallocate): New functions.
1669 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
1670 above functions and a dummy data pointer.
1671 (splay_tree_new_with_allocator): New function.
1672 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
1673 splay_tree_remove): Use the splay tree's allocation and
1674 deallocation functions.
1675
b1c1a22f
SS
16762002-02-19 Scott Snyder <snyder@fnal.gov>
1677
1678 * testsuite/demangle-expected: Add test case for infinite loop in
1679 demangler.
1680 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
1681 if do_type() doesn't make any progress --- prevents an infinite
1682 loop.
1683
336669e7
CW
16842002-02-18 Carlo Wood <carlo@gnu.org>
1685
1686 PR c++/5390
1687 * cplus-dem.c (demangle_integral_value): Accept multi-digit
1688 numbers that do not start with an underscore; This is needed
1689 for integer template parameters. This doesn't break anything
1690 because multi-digit numbers are never followed by a digit.
1691 * testsuite/demangle-expected: Corrected all mangled test
1692 cases with multi-digit template parameters: g++ 2.95.x does
1693 not generate underscores around these parameters.
1694
c13db5d1
JM
16952002-02-05 Jason Merrill <jason@redhat.com>
1696
1697 * cplus-dem.c (flags): Add DMGL_VERBOSE
1698 (cplus_demangle_v3_p): Remove.
1699 (demangle_it): Add DMGL_TYPES to passed flags.
1700 * cp-demangle.c (cplus_demangle_v3_all): Remove.
1701 (cplus_demangle_v3_type): Remove.
1702 (cplus_demangle_v3): Add options parm.
1703
d74697b8
L
17042002-02-02 H.J. Lu (hjl@gnu.org)
1705
1706 * cp-demangle.c (cp_demangle_type): Do not protect with
1707 IN_LIBGCC2.
1708 (cplus_demangle_v3_all): New.
1709 (cplus_demangle_v3): Call cplus_demangle_v3_all.
1710 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
1711
1712 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
1713 Initialized to cplus_demangle_v3.
1714 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
1715 of cplus_demangle_v3.
1716 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
1717 command line symbol.
1718
1719 * testsuite/regress-demangle: Pass the mangled name at the
1720 command line.
1721
3a441e38
L
17222002-02-01 H.J. Lu <hjl@gnu.org>
1723
1724 * cp-demangle.c (cp_demangle_type): Call demangling_new with
1725 DMGL_GNU_V3.
1726
6d747e63
PE
17272002-01-31 Phil Edwards <pme@gcc.gnu.org>
1728
1729 * cp-demangle.c: Revert yesterday's change.
1730
46af757b
AM
17312002-01-31 Adam Megacz <adam@xwt.org>
1732
1733 * gcc/libiberty/configure.in: Treat mingw the same as cywin
1734 wrt HAVE_SYS_ERRLIST.
1735
46ab74b1
PE
17362002-01-30 Phil Edwards <pme@gcc.gnu.org>
1737
1738 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
1739 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
1740 cp_demangle_type.
1741 * testsuite/demangle-expected: New gnu-v3 test.
1742
e64d0626
MV
17432002-01-22 Momchil Velikov <velco@fadata.bg>
1744
1745 * configure.in (variable detection): Use arrays of unspecified
1746 size instead of plain integers.
1747
9ce3f7e5
DD
17482002-01-18 DJ Delorie <dj@redhat.com>
1749
1750 * Makefile.in (TESTLIB): New. This library is for future
1751 testsuites.
1752 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
1753 break down by letter.
1754 (REQUIRED_OFILES): List long-to-compile files first.
1755 (maint-deps): New, target for updating dependencies.
1756 (dependencies): Update.
1757 * maint-tool: Add dependency-generating option.
1758 * configure.in: Check for _doprnt even if we're not providing it.
1759 * configure: Regenerate.
1760
1761 * _doprnt.c: Modifications to allow compiling on any platform.
1762 * copysign.c: Likewise.
1763 * putenv.c: Likewise.
1764 * setenv.c: Likewise.
1765 * vsprintf.c: Likewise.
1766
0e83ceb1
DR
17672002-01-15 Douglas B Rupp <rupp@gnat.com>
1768
1769 * mkstemps.c (mkstemps): On VMS, open temp file with option
1770 that causes it to be deleted when closed.
1771
adddf5bf
KG
17722002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1773
5e65297b
KG
1774 * cp-demangle.c (long_options): Const-ify.
1775 * cplus-dem.c (long_options): Likewise.
1776
adddf5bf
KG
1777 * cplus-dem.c (mystrstr): Delete. All callers changed to use
1778 strstr instead.
1779
a4219437
IR
17802001-12-31 Ira Ruben <ira@apple.com>
1781
1782 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
1783 * configure: Regenerated.
af328d8d
DR
1784
17852001-12-24 Douglas B. Rupp <rupp@gnat.com>
1786
1787 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
1788 * configure: Regenerated.
a4219437 1789
63de15a4
CR
17902001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
1791
1792 PR other/2719
1793 * cplus-dem.c (consume_count): Treat negative count as an error.
1794 * testsuite/demangle-expected: Added testcase.
1795
ee262b6f
DR
1796Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
1797
1798 * configure.in: Hardcode that vfork works on VMS host.
1799 * configure: Regenerated.
1800
d06ba3c7
RH
18012001-12-06 Richard Henderson <rth@redhat.com>
1802
1803 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
1804 (cplus_demangle): Support no_demangling.
1805
e490616e
ZW
18062001-11-27 Zack Weinberg <zack@codesourcery.com>
1807
1808 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
1809 in libiberty context. Fix typo in leading comment.
1810 * configure.in: Fix various AC_DEFINEs so autoheader works.
1811 If any of vprintf, vsprintf, vfprintf is missing from libc,
1812 then AC_REPLACE_FUNCS(_doprnt).
1813
97e620cf 18142001-11-26 DJ Delorie <dj@redhat.com>
e490616e 1815 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
1816
1817 * Makefile.in (stamp-h): Depend on Makefile for proper
1818 serialization.
1819 (*-subdir): Depend on config.h for proper serialization.
1820
c3bb7df0
DD
18212001-11-26 DJ Delorie <dj@redhat.com>
1822
1823 * configure.in: Check for alloca.h (for regex.c and putenv.c).
1824 * configure: Regenerate.
1825 * config.h: Add HAVE_ALLOCA_H.
1826
23850d35
KG
18272001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1828
2c47b56b
KG
1829 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
1830 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
1831 is available.
23850d35 1832
7ddfb651
JL
1833Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
1834
d3982b71
JL
1835 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
1836 * configure.in (HAVE_UINTPTR_T): Test for system defining
1837 uintptr_t and define HAVE_UINTPTR_T appropriately.
1838 * regex.c (uintptr_t): Do not provide a definition if the
1839 system provided one.
1840
7ddfb651
JL
1841 * regex.c (PREFIX): Provide an alternate definition for
1842 non-ANSI/ISO compilers.
1843 (ARG_PREFIX): Likewise.
1844
2e683037
JM
18452001-11-12 Jim Meyering <meyering@lucent.com>
1846
1847 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
1848 this code would end up calling gettext even in packages built
1849 with --disable-nls.
1850 * getopt.c (_): Likewise.
1851 * regex.c (_): Likewise.
1852
f749bd83
AM
18532001-11-03 Alan Modra <amodra@bigpond.net.au>
1854
1855 * configure.in: Cope with missing makeinfo.
55a10d7c 1856 * configure: Regenerate.
f749bd83 1857
26ad2982
KG
18582001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1859
e5969ba6
KG
1860 * hex.c (hex_init): Provide empty stub.
1861
26ad2982
KG
1862 * hex.c (hex_init): Delete.
1863 (_hex_value): Const-ify and initialize at compile-time.
1864
afb649d5
L
18652001-10-19 H.J. Lu <hjl@gnu.org>
1866
1867 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
1868 necessary.
1869
5bed56d9
DD
18702001-10-17 DJ Delorie <dj@redhat.com>
1871
1872 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
1873 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
4dcc42a3 1874 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
1875 Improve manual formatting.
1876 * functions.texi: Regenerate.
1877
aac04c15
DD
18782001-10-15 DJ Delorie <dj@redhat.com>
1879
1880 * Makefile.in (TEXIFILES): Add fnmatch.txh.
1881 (maint-undoc): New.
1882 maint-tool: Add "undoc" tool.
1883 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
1884 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
1885 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
1886 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
1887 documentation.
1888 * fnmatch.txh: New.
1889 * functions.texi: Regenerate.
fae8182a 1890
0e4e9e8f
JM
18912001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
1892
1893 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
1894 * strtod.c: Use "ISO C" instead of "ANSI C".
1895 * functions.texi: Regenerate.
1896
7f8fa05d
JM
18972001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
1898
1899 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
1900 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
1901 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
1902 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
1903 spelling. Give names to function arguments in documentation. Use
1904 (void) prototypes in documentation.
1905 * functions.texi: Regenerate.
1906
0be6abca
KG
19072001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1908
1909 * argv.c (buildargv, tests, main): Const-ify.
1910 * cp-demangle.c (operator_code): Likewise.
1911 * cplus-dem.c (optable, libiberty_demanglers,
1912 cplus_demangle_set_style, cplus_demangle_name_to_style,
1913 print_demangler_list): Likewise.
1914 * hashtab.c (higher_prime_number): Likewise.
1915 * strcasecmp.c (charmap): Likewise.
1916 * strerror.c (error_info, strerror, main): Likewise.
1917 * strncasecmp.c (charmap): Likewise.
1918 * strsignal.c (signal_info): Likewise.
1919
0e30ffc5
DD
19202001-09-29 DJ Delorie <dj@redhat.com>
1921
1922 * configure: Regenerate.
1923
576fb787
KG
19242001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1925
1926 * concat.c: Include stdlib.h.
1927
e922f978
EZ
19282001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
1929
1930 * libiberty.texi: (Top level): Add syncodeindex pg. Add
1931 @dircategory and @direntry directives. Add @finalout.
1932 (many nodes): Lose the next,prev,up pointers on the @nide line.
1933 (Using, Supplemental Functions, Replacement Functions): Fix
1934 markup.
1935 (Functions): Move around, to allow makeinfo to build the manual
1936 without next,prev,up pointers in thye node lines.
1937 (Licenses): Fix typos.
1938
1939 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
1940 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
1941 * functions.texi: Regenerate.
1942
1943 * copying-lib.texi: Lose the next,prev,up pointers on the @node
1944 line.
1945
ae9092da
DD
19462001-09-27 DJ Delorie <dj@redhat.com>
1947
1948 * configure.in: Don't use in-tree texinfo, because libiberty must
1949 be built before it. Check for makeinfo version 4 or higher.
1950 * functions.texi: Regenerate.
fae8182a 1951
aaa5f039
DD
19522001-09-20 DJ Delorie <dj@redhat.com>
1953 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 1954
aaa5f039
DD
1955 * configure.in (MAKEINFO, PERL): Detect these.
1956 (--enable-maintainer-mode): Add.
1957 * configure: Regenerate.
1958 * Makefile.in (MAKEINFO, PERL): Define.
1959 (libiberty.info, libiberty.dvi, libiberty.html): New.
1960 (CFILES): Add bsearch.c.
1961 (CONFIGURED_OFILES): New, list of objects configure might add.
1962 (maint-missing, maint-buildall): New, for maintainers only.
1963 (clean, mostlyclean): Add info/dvi/html files.
1964 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
1965 * gather-docs: New, for maintainers.
1966 * maint-tool: New, for maintainers.
1967 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
1968 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
1969 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
1970 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
1971 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
1972 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
1973 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
1974 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
1975 documentation.
fae8182a 1976
c1766881
KG
19772001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1978
1979 * concat.c (reconcat): Fix for traditional C.
1980
ad43d46f
KG
19812001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1982
1983 * concat.c (reconcat): New function.
1984
c1d49704
KG
19852001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1986
c793eea7
KG
1987 * concat.c (vconcat_length, vconcat_copy, concat_length,
1988 concat_copy, concat_copy2): New functions.
1989 (concat): Use vconcat_length/vconcat_copy.
1990
c1d49704
KG
1991 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
1992 Define.
1993
7a98d9b2
KG
19942001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1995
1996 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
1997 VA_FIXEDARG & VA_CLOSE.
fae8182a 1998
7a98d9b2
KG
1999 * vasprintf.c: Check HAVE_STRING_H when including string.h.
2000 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
2001 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
2002
e2dff3f2
KG
20032001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2004
2005 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
2006
d0708dc1
UD
20072001-08-23 Ulrich Drepper <drepper@redhat.com>
2008
2009 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
2010
20112001-08-23 Ulrich Drepper <drepper@redhat.com>
2012
2013 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2014 instead of mbrtowc.
2015 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2016 wcslen, and __wcscoll instead of wcscoll.
2017
ffb9435b
MK
20182001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2019
de78f58b
AJ
2020 * fibheap.c (fibheap_init, fibnode_init): Remove.
2021 (fibheap_new, fibnode_new): Use xcalloc to allocate and
2022 initialize memory.
2023 (fibheap_insert): Remove check for node allocation failure.
ffb9435b 2024
f379eac3
RH
20252001-08-21 Richard Henderson <rth@redhat.com>
2026
2027 * Makefile.in (fibheap.o): Depend on config.h.
2028 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
2029 functions for inlining.
2030
b1c45ae4
CF
2031Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
2032
2033 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
2034 hosting on cygwin.
2035 * configure: Regenerate.
2036
0310e5ac
AC
20372001-08-20 Andrew Cagney <ac131313@redhat.com>
2038
2039 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
2040 HARRIS_FLOAT_FORMAT.
2041 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
2042 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
2043 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
2044 (floatformat_m88110_harris_ext): New float formats.
2045
8c23e0a4
DB
20462001-08-20 Daniel Berlin <dan@cgsoftware.com>
2047
2048 * fibheap.c: New file. Fibonacci heap.
2049
2050 * Makefile.in (CFILES): Add fibheap.c.
2051 (REQUIRED_OFILES): Add fibheap.o.
2052 (fibheap.o): Add dependencies for fibheap.o.
2053
91625004
CF
20542001-08-17 Christopher Faylor <cgf@cygnus.com>
2055
2056 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
2057 * configure: Regenerate.
2058
9e0ba685
RH
20592001-08-16 Richard Henderson <rth@redhat.com>
2060
2061 * hashtab.c (htab_hash_string): New.
2062
d80dedbe
AC
20632001-08-13 Andrew Cagney <ac131313@redhat.com>
2064
2065 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
2066 name.
2067
ccea0d85
IH
20682001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
2069
2070 * regex.c (wcs_regex_compile): Use appropriate string
2071 to compare with collating element.
2072 Fix the padding for the alignment.
2073
b0e9bc8c 20742001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
2075
2076 * lbasename.c (lbasename): Change function definition to return a
2077 const char pointer.
2078
056400f1
JM
20792001-08-07 Jason Merrill <jason_merrill@redhat.com>
2080
2081 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
2082 for".
2083
4e627c41
RH
20842001-08-03 Richard Henderson <rth@redhat.com>
2085
2086 * Makefile.in (concat.o): Depend on config.h.
2087
b6a2f884
AJ
20882001-07-30 Andreas Jaeger <aj@suse.de>
2089
2090 * concat.c: Include "config.h".
2091
c4b9cfe0
AJ
20922001-07-30 Andreas Jaeger <aj@suse.de>
2093
2094 * regex.c: Declare wcs functions only if compiling with
2095 MBS_SUPPORT.
2096 Don't use #elif for traditional C.
2097
20982001-07-23 Ulrich Drepper <drepper@redhat.com>
2099
2100 * regex.c: Revamp memory allocation for WCHAR functions to
2101 not use too much stack.
2102
21032001-07-30 Andreas Jaeger <aj@suse.de>
2104
2105 * regex.c: Declare wcs functions only if compiling with
2106 MBS_SUPPORT.
2107 Don't use #elif for traditional C.
2108
2cf50fd3
DJ
21092001-07-25 Daniel Jacobowitz <drow@mvista.com>
2110
2111 * Makefile.in (regex.o): Add dependency on config.h.
2112
27ffc806
DD
21132001-07-18 Andreas Schwab <schwab@suse.de>
2114
2115 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
2116 underscore character.
2117
21182001-07-18 Ulrich Drepper <drepper@redhat.com>
2119
2120 * regex.c: Limit string length printed in debug messages to 100
2121 chars.
2122
21232001-07-18 Andreas Jaeger <aj@suse.de>
2124
2125 * regex.c: Place under LGPL version 2.1.
2126
dd771632
JJ
21272001-07-10 Jeff Johnston <jjohnstn@redhat.com>
2128
2129 * Makefile.in: Add support for regex code.
2130 * regex.c: New file.
2131
29650b2b
MK
21322001-07-05 Mark Klein <mklein@dis.com>
2133
2134 * Makefile.in: Add ffs.c dependency.
2135 * configure.in: Add ffs.c.
2136 * ffs.c: New file.
2137
c8b28221
RH
21382001-06-18 Richard Henderson <rth@redhat.com>
2139
2140 * concat.c: Include <sys/types.h>.
2141
473c2d0b
LR
21422001-06-11 Loren J. Rittle <ljrittle@acm.org>
2143
a4c03da2 2144 bootstrap/3106
473c2d0b
LR
2145 * strerror.c (sys_nerr): Hide the OS header version.
2146 * strsignal.c (sys_nsig): Likewise.
2147
0bdcca68
RH
21482001-06-10 Richard Henderson <rth@redhat.com>
2149
2150 * concat.c: Include string.h. Fix int vs size_t usage.
2151 Simplify the iteration loops. Use memcpy.
2152
6de133d3
MK
21532001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2154
2155 * partition.c: Fix misspelling of `implementation'.
2156
8a153288
TS
21572001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2158
2159 * md5.c (md5_init_ctx): Declare constants as unsigned.
2160 (md5_process_block): Likewise.
2161
641b2721
ZW
21622001-05-07 Zack Weinberg <zackw@stanford.edu>
2163
2164 * cp-demangle.c (demangle_v3_with_details,
2165 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
2166 function definition.
2167 * ternary.c: Use K+R style function definitions. Use PTR, not
2168 void *. Make arguments constant where possible.
2169
5cdba4ff
MM
21702001-05-07 Mark Mitchell <mark@codesourcery.com>
2171
2172 * splay-tree.h (splay_tree_max): New function.
2173 (splay_tree_min): Likewise.
2174
9dab060e
DB
21752001-04-15 Daniel Berlin <dan@cgsoftware.com>
2176
2177 * ternary.c: New file - Ternary search tree implementation.
2178
2179 * Makefile.in: Add ternary.o, and ternary.c dependencies.
2180
d02af173
ZW
21812001-04-03 Zack Weinberg <zackw@stanford.edu>
2182
2183 * make-temp-file.c (try): Inline.
2184
94b68558
RH
21852001-02-28 Richard Henderson <rth@redhat.com>
2186
2187 * Makefile.in (make-temp-file.o): Depend on config.h.
2188
27f66c0b
KG
21892001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2190
2191 * memchr.c (memchr): Adjust condition to avoid infinite loop.
2192
f1a0345c
JJ
21932001-03-23 Jakub Jelinek <jakub@redhat.com>
2194
2195 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
2196 `_' not followed by a digit is invalid.
2197
a519fba6
JB
21982001-03-22 Jim Blandy <jimb@redhat.com>
2199
2200 * cp-demangle.c (string_list_delete): Use dyn_string_delete
2201 instead of free, to free the contents as well as the string
2202 structure.
2203
49ee944b
ZW
22042001-03-21 Zack Weinberg <zackw@stanford.edu>
2205
2206 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
2207 Don't default P_tmpdir to anything. Try /var/tmp before
2208 /usr/tmp.
2209
33437dc7
ZW
22102001-03-20 Zack Weinberg <zackw@stanford.edu>
2211
2212 * choose-temp.c: Split off make_temp_file, and the code
2213 duplicated between it and choose_temp_base, into...
2214 * make-temp-file.c: ... here; new file.
2215
2216 * Makefile.in (CFILES): Add make-temp-file.c.
2217 (REQUIRED_OFILES): Add make-temp-file.o.
2218
7dce2eff
JB
22192001-03-20 Jim Blandy <jimb@redhat.com>
2220
2221 * cp-demangle.c (struct demangling_def): New fields:
2222 is_constructor and is_destructor.
2223 (demangling_new): Initialize them.
2224 (demangle_ctor_dtor_name): Set them, if we detect a constructor
2225 or destructor.
2226 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
2227 is_gnu_v3_mangled_dtor): New functions.
2228
e03a61f1
JM
22292001-03-20 Jason Merrill <jason@redhat.com>
2230
2231 * cplus-dem.c (main): Skip initial $.
2232
8860ddab
MM
22332001-03-15 Michael Meissner <meissner@redhat.com>
2234
2235 * hashtab.c (higher_prime_number): Silence warning that 4294967291
2236 might be a signed integer under pre-ISO C systems.
2237
2b757d51
NB
22382001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
2239 John David Anglin <dave@hiauly1.hia.nrc.ca>
2240
2241 * libiberty/lbasename.c: New file.
2242 * libiberty/Makefile.in: Update for lbasename.
2243
1f50aafb
ZW
22442001-03-06 Zack Weinberg <zackw@stanford.edu>
2245
2246 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
2247 * configure.in: Replace all alloca logic with a simple use of
2248 the above new macro.
2249 * config.table: Kill *-*-beos* entry.
2250 * config/mh-beos: Delete.
2251 * configure, config.in: Regenerate.
2252
2253 * Makefile.in (ALLOCA, HFILES): Kill.
2254 (REQUIRED_OFILES): Add alloca.o.
2255 (alloca.o): Depend on libiberty.h.
2256 (argv.o): Don't depend on alloca-conf.h.
2257 * alloca-conf.h: Delete.
2258 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
2259 blocks. Provide the C alloca unconditionally. Use PTR where
2260 appropriate. Make i00afunc static.
2261 * argv.c: Don't include alloca-conf.h.
2262
d9fd5aae
JDA
22632001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2264
2265 * cplus-dem.c (main): Cast enum style to int.
2266
4031ed65
LR
22672001-02-16 Loren J. Rittle <ljrittle@acm.org>
2268
2269 * cplus-dem.c (main): Initialize style.
2270
2ca46e8a
PE
22712001-02-02 Phil Edwards <pme@sources.redhat.com>
2272
2273 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
2274
3b60dd8e
BM
22752001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
2276
2277 Add support for Java demangling under the v3 ABI:
2278 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
2279 (struct demangling_def): Add `style' field.
2280 (demangling_new): New parameter `style'. Set it in demangling_t.
2281 (demangle_prefix): Use NAMESPACE_SEPARATOR.
2282 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
2283 (cp_demangle): New parameter `style'. Pass it to demangling_new().
2284 (main): Call cp_demangle with extra parameter.
2285 (java_demangle_v3): New function.
2286 (java_builtin_type_names): New. Table of primitive type names used
2287 for Java demangling.
2288 (demangle_builtin_type): Look up in java_builtin_type_names if doing
2289 Java output.
1f50aafb 2290 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
2291 demangling.
2292 (long_options): Remove obsolete `java' option.
2293 (main): Remove explicit handling of `java' option. Instead, pass style
2294 parameter in cplus_demangle flags as gdb does.
2295 * testsuite/demangle.expected: Add some Java test cases.
2296
584932e9
DD
22972000-12-29 DJ Delorie <dj@redhat.com>
2298
2299 * fnmatch.c: Make the note about the origins of this file more
2300 accurate, at least until we can sync with glibc.
2301 * getopt.c: Ditto.
2302 * getopt1.c: Ditto.
2303 * md5.c: Ditto.
2304 * obstack.c: Ditto.
2305
dac45916
MS
23062000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2307
2308 * bsearch.c: New file.
2309 * configure.in (funcs): Add bsearch.
2310 (AC_CHECK_FUNCS): Likewise.
2311 * configure, config.in: Regenerate.
2312
a8e4a997
MS
23132000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2314
2315 * safe-ctype.c: #include "ansidecl.h".
2316 * strtod.c: Likewise.
2317
75444da7
MS
23182000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2319
2320 * strtoul.c: Include safe-ctype.h, not ctype.h.
2321
f6bbde28
ZW
23222000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
2323
2324 * safe-ctype.c: New file.
2325 * Makefile.in (CFILES): Add safe-ctype.c.
2326 (REQUIRED_OFILES): Add safe-ctype.o.
2327
2328 * argv.c: Define ISBLANK and use it, not isspace.
2329 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
2330 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
2331 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
2332 before calling TOLOWER(c)/TOUPPER(c).
2333
6c1ce62b 23342000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
2335
2336 * Makefile.in (distclean): When cleaning, remove testsuite.
2337
b5d1497d
JM
23382000-12-05 Jason Merrill <jason@redhat.com>
2339
2340 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
2341 name before allocating the dyn_string.
2342
c6e13630
JM
23432000-12-04 Jason Merrill <jason@redhat.com>
2344
2345 * cp-demangle.c: s/new_abi/v3/.
2346 * cplus-dem.c: Likewise.
2347 (current_demangling_style): Now auto_demangling.
2348 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 2349 (main): Use standard symbol chars for auto_demangling.
c6e13630 2350
a4c9b97e
MM
23512000-11-26 Mark Mitchell <mark@codesourcery.com>
2352
2353 * hashtab.c (higher_prime_number): Use a table, rather than a
2354 seive, to find the next prime.
2355
3b3bd9a7
L
23562000-11-22 H.J. Lu <hjl@gnu.org>
2357
2358 * cplus-dem.c (main): Handle gnat_demangling.
2359
d1209685
ZW
23602000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2361
2362 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
2363 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
2364 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
2365 argument form of AC_DEFINE in dummy definitions block. Use
2366 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
2367 in dummy block. Preload cache variables instead of bypassing
2368 tests, where possible.
2369 * acconfig.h: Removed.
2370
2371 * xmalloc.c (xmalloc_failed): New function, does error
2372 reporting on failed allocation.
2373 (xmalloc, xcalloc, xrealloc): Use it.
2374
cf183ac2
HPN
23752000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
2376
2377 * cplus-dem.c (cplus_demangle): Fix formatting.
2378 (grow_vect): Ditto.
2379 (ada_demangle): Ditto.
2380 (internal_cplus_demangle): Ditto.
2381 (mop_up): Ditto.
2382
23832000-11-21 H.J. Lu <hjl@gnu.org>
2384
2385 * cplus-dem.c (main): Handle java_demangling.
2386
8bcc782c
KG
23872000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2388
2389 * cplus-dem.c (grow_vect): Prototype.
2390 (ada_demangle): Cast the arg of ctype macros to unsigned char.
2391
29120f44
HPN
23922000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
2393
2394 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
2395 parameter `option'.
2396
0437a5a8
KB
23972000-11-15 Kenneth Block <kenneth.block@compaq.com>
2398
9e038f71 2399 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
2400 be used in GCC.
2401
eab0c1ab 24022000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 2403
29120f44 2404 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
2405 list.
2406
d50d20ec
HPN
24072000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
2408
2409 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
2410 xcalloc depending on htab->return_allocation_failure. Return zero
2411 if calloc fails.
d50d20ec
HPN
2412 (htab_create): Update comment to cover memory allocation.
2413 (htab_try_create): New.
2414 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 2415 Update comment to cover this.
d50d20ec 2416
35e9340f
HPN
24172000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
2418
2419 * hashtab.c: Change void * to PTR where necessary.
2420 (htab_create, htab_expand): Correct formatting of comment before
2421 function.
2422
ea343d1a 24232000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
2424
2425 * cp-demangle.c (string_list_def): Add caret_position and comments.
2426 (result_caret_pos): New macro.
2427 (result_append_string): Rename to...
2428 (result_add_string): ... this, and insert at caret position.
d1209685 2429 Rename throughout.
0870bfd6
AS
2430 (result_append): Rename to...
2431 (result_add): ... this, and insert at caret position. Rename
d1209685 2432 throughout.
0870bfd6
AS
2433 (result_append_char): Rename to...
2434 (result_add_char): ... this, and insert at caret position. Rename
d1209685 2435 throughout.
0870bfd6
AS
2436 (result_append_space): Remove.
2437 (string_list_new): Initialize caret position.
2438 (result_add_separated_char): Use caret position.
2439 (result_get_caret): New funtion.
2440 (result_set_caret): Likewise.
2441 (result_shift_caret): Likewise.
2442 (result_previous_char_is_space): Likewise.
2443 (substitution_start): Use caret position.
2444 (substitution_add): Likewise.
2445 (demangling_new): Initialize caret position.
2446 (demangle_encoding): Use caret position.
d1209685 2447 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
2448 (demangle_type_ptr): Use switch statement. Handle pointers to
2449 arrays. Don't use result_append_space. Use caret position.
2450 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
2451 call to demangle_array_type.
2452 (demangle_array_type): Add parameter to handle pointers to arrays.
2453
f15b9af9
MM
24542000-10-01 Mark Mitchell <mark@codesourcery.com>
2455
2456 * splay-tree.c (splay_tree_insert): Fix formatting.
2457
8f17b5c5
MM
24582000-09-16 Mark Mitchell <mark@codesourcery.com>
2459
2460 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
2461
4eaa189a
MS
24622000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2463
2464 * splay-tree.c: #include <stdio.h>.
2465
29791078
HPN
24662000-09-14 Hans-Peter Nilsson <hp@axis.com>
2467
2468 * testsuite/demangle-expected: Add two tests for anonymous
2469 namespaces.
2470 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
2471
2c9f4db7
MM
24722000-09-10 Mark Mitchell <mark@codesourcery.com>
2473
2474 * splay-tree.c (splay_tree_predecessor): New function.
2475 (splay_tree_successor): Likewise.
2476
bb22da4b
HPN
24772000-09-10 Hans-Peter Nilsson <hp@axis.com>
2478
2479 * testsuite/demangle-expected: Add four tests for type_info
2480 mangling.
bb22da4b
HPN
2481 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
2482 for a non-template non-qualified type_info function or node.
2483
759e8187
AS
24842000-09-08 Alex Samuel <samuel@codesourcery.com>
2485
2486 * cp-demangle.c: Fix copyright banner.
2487
2ecd81ef
MS
24882000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2489
2490 * md5.c: #include "ansidecl.h".
2491
d93998ec
AS
24922000-09-06 Alex Samuel <samuel@codesourcery.com>
2493
2494 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
2495 (demangle_type): Handle substitution candidates correctly in the
2496 face of special substitutions.
2497
1056d228
AS
24982000-09-05 Alex Samuel <samuel@codesourcery.com>
2499
2500 * cp-demangle.c (demangle_encoding): Rename variable.
2501 (demangle_name): Rename parameter. Handle return type
2502 suppression.
2503 (demangle_nested_name): Rename parameter.
2504 (demangle_prefix): Likewise. Change return type suppression.
2505 (demangle_unqualified_name): Add parameter. Flag constructors and
2506 conversion operators.
2507 (demangle_special_name): Fix comment.
2508 (demangle_type): Rename variable.
2509 (demangle_bare_function_type): Check for missing return type and
d1209685 2510 parameter.
1056d228
AS
2511 (demangle_class_enum_type): Rename parameter.
2512 (demangle_discriminator): Fix misspelling in comment.
2513
2f31ed7e
DD
25142000-08-31 DJ Delorie <dj@redhat.com>
2515
2516 * configure.in (Cygwin): special case cygwin only when we're
2517 building cygwin, not when we're hosting cygwin.
2518
02bcb9c6
AS
25192000-09-04 Alex Samuel <samuel@codesourcery.com>
2520
2521 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
2522 <expression>.
2523
aee749cf
AS
25242000-09-04 Alex Samuel <samuel@codesourcery.com>
2525
2526 * cp-demangle.c (demangle_type_ptr): Increment position past
2527 pointer and reference characters.
2528
92a16bbe
AS
25292000-09-04 Alex Samuel <samuel@codesourcery.com>
2530
2531 * cp-demangle.c (demangle_nv_offset): New function.
2532 (demangle_v_offset): Likewise.
2533 (demangle_call_offset): Likewise.
2534 (demangle_special_name): Update thunk demangling to comply with
2535 ABI changes.
d1209685 2536
31e0ab1f
AS
25372000-09-03 Alex Samuel <samuel@codesourcery.com>
2538
2539 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
2540 (substitution_def): Remove template_parm_number.
2541 (NOT_TEMPLATE_PARM): Remove.
2542 (result_insert_string): New macro.
2543 (result_insert): Likewise.
2544 (result_insert_char): Likewise.
2545 (substitution_add): Remove last parameter. Don't store template
d1209685 2546 parm number.
31e0ab1f
AS
2547 (BFT_NO_RETURN_TYPE): Define as NULL.
2548 (demangle_encoding): Adjust call to demangle_bare_function_type.
2549 (demangle_name): Adjust substitution. Adjust call to
d1209685 2550 substitution_add.
31e0ab1f
AS
2551 (demangle_prefix): Adjust call to substitution_add.
2552 (demangle_identifier): Handle anonymous namespaces.
2553 (demangle_operator_name): Change demangling of vendor-extended
2554 operator to match ABI changes.
2555 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 2556 substitutions here.
31e0ab1f
AS
2557 (demangle_type): Adjust calls to demangle_template_param,
2558 substitution_add, and demangle_type_ptr. Fix substitution of
2559 templated types.
2560 (demangle_function_type): Change parameter to a pointer.
2561 (demangle_bare_function_type): Likewise. Adjust insertion point.
2562 (demangle_template_param): Remove last parameter.
2563 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 2564 demangle_template_param.
31e0ab1f
AS
2565 (is_mangled_char): Accept `$' and `.'.
2566 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
2567 * dyn-string.c (dyn_string_insert_char): New function.
2568
ccbc3eb7
HPN
25692000-08-31 Hans-Peter Nilsson <hp@axis.com>
2570
2571 * testsuite/demangle-expected: Add nine tests for
2572 underscore-after-number followed by five tests for name-signature
2573 delimiter.
2574
53dce582
RH
25752000-08-28 Richard Henderson <rth@cygnus.com>
2576
2577 * Makefile.in (md5.o): Depend on config.h.
2578
881c6935
JM
25792000-08-28 Jason Merrill <jason@redhat.com>
2580
2581 * Makefile.in (REQUIRED_OFILES): Add md5.o.
2582 (CFILES): Add md5.c.
2583 * md5.c: New file.
2584
a440fd19
AS
25852000-08-27 Alex Samuel <samuel@codesourcery.com>
2586
2587 * cp-demangle.c (demangle_name): Initialize template_p in local
2588 name case. Don't re-add substitutions as candidates.
2589 (demangle_nested_name): Use <unqualified-name>.
2590 (demangle_prefix): Likewise. Don't add template names as
2591 substitution candidates twice, or re-add a substitution or the
2592 last prefix component.
2593 (demangle_local_name): Adjust output format.
2594
d01ce591
AS
25952000-08-25 Alex Samuel <samuel@codesourcery.com>
2596
2597 * cp-demangle.c (result_add_separated_char): Change parameter to
2598 int.
2599 (substitution_add): Don't check for duplicates. Check if
2600 previously allocated size is zero.
2601 (demangle_name): Remove duplicate check for std substitution.
2602 Clear template flag appropriately.
2603 (demangle_prefix): Remove argument to demangle_substitution.
2604 Don't check that template flag is already set.
2605 (demangle_operator_name): Add pt operator.
2606 (demangle_type): Don't treat r as built-in type. Remove argument
2607 to demangle_substitution. Fix substitution candidate mechanics.
2608 Handle <template-template-parm>s. Improve comments.
d1209685 2609 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
2610 (demangle_substitution): Remove parameter.
2611 (print_usage): Remove extra fprintf option.
2612
2f59c8eb
GM
26132000-08-24 Greg McGary <greg@mcgary.org>
2614
2615 * libiberty/random.c (end_ptr): Revert previous change.
2616
2f26c11d
GM
26172000-08-24 Greg McGary <greg@mcgary.org>
2618
2619 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
2620 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
2621 * libiberty/random.c (end_ptr): Likewise.
2622
e282c9c9
AS
26232000-08-23 Alex Samuel <samuel@codesourcery.com>
2624
2625 * cp-demangle.c (result_close_template_list): Remove function.
2626 (result_add_separated_char): New function.
2627 (result_open_template_list): New macro.
2628 (result_close_template_list): Likewise.
2629 (demangle_prefix): Don't set template_p if the
2630 prefix ends with a ctor name.
2631 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
2632 (demangle_type): Check for template args after substitution.
2633 (demangle_template_args): Use result_open_template_list.
d1209685 2634
c9b6494a
ZW
26352000-08-02 Zack Weinberg <zack@wolery.cumb.org>
2636
2637 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
2638
d1209685 26392000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
2640
2641 * config/mh-openedition.h: Added -DLE370 definition.
2642
0aab2795
ME
26432000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
2644
2645 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
2646 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
2647 Cast program to 'char *' in errmsg_arg assignment.
2648 (PWAIT_ERROR): Define.
2649 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
2650 to DJGPP's WIF* macros.
2651
c2f275e4
RB
26522000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
2653 Jeff Law <law@cygnus.com>
2654
73aa9564
RB
2655 * getcwd.c: Include string.h, stdlib.h for prototypes
2656
c2f275e4 2657 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
2658 * rename.c: Include config.h, unistd.h
2659 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 2660
ccbc3eb7
HPN
26612000-07-24 Hans-Peter Nilsson <hp@axis.com>
2662
2663 * cplus-dem.c (work_stuff_copy_to_from): New.
2664 (delete_non_B_K_work_stuff): New.
2665 (delete_work_stuff): New.
2666 (mop_up): Break out work_stuff partly destruction to
2667 delete_non_B_K_work_stuff.
2668 (iterate_demangle_function): New.
2669 (demangle_prefix): Call iterate_demangle_function instead of
2670 demangle_function_name. Leave handling of name-signature
2671 __-delimiters to iterate_demangle_function.
2672 (demangle_integral_value): Strip an optional
2673 following underscore cautiously. Handle negative numbers.
2674
3388651c
DB
26752000-07-24 Daniel Berlin <dberlin@redhat.com>
2676
d1209685 2677 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
2678 if (AUTO_DEMANGLING || GNU_DEMANGLING)
2679
0fac482e
AS
26802000-07-21 Alex Samuel <samuel@codesourcery.com>
2681
2682 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
2683 allocating ctor mangling.
2684 (demangle_array_type): Handle empty and non-constant array length.
2685
8502a100 26862000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
2687 Jeff Law <law@cygnus.com>
2688
c6451ce1
MS
2689 * configure.in (AC_CHECK_HEADERS): Add time.h.
2690 (AC_HEADER_TIME): Add check.
2691 * configure, config.in: Regenerate.
2692 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
2693
cd447360
MS
2694 * configure.in (AC_CHECK_HEADERS): Add limits.h.
2695 * configure, config.in: Regenerate.
2696 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
2697 * strtol.c, strtoul.c: #include "config.h". Portably #include
2698 <limits.h> and/or <sys/param.h>.
2699 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 2700
3b58c099
MS
2701 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
2702 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
2703 * configure, config.in: Regenerate.
2704 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
2705
8502a100
MS
2706 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
2707
da0c7743
MS
27082000-07-21 Mike Stump <mrs@wrs.com>
2709
2710 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 2711 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 2712
838f8562
KG
27132000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2714
2715 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
2716
2717 * setenv.c (setenv): Initialize variable `ep'.
2718
2719 * sigsetmask.c (abort): Prototype.
2720
2721 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
2722 __STDC__ for stdarg.h include.
2723 (int_vasprintf): Prototype.
2724 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
2725 definition. Cast `global_total_width' in comparison.
2726 (main): Prototype. Return a value.
2727
2728 * vfork.c (fork): Prototype.
2729
2730 * xexit.c: Include config.h.
2731
e9958132
JM
27322000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
2733
2734 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
2735 and print it with %u.
2736
39a6492f
HPN
27372000-07-17 Hans-Peter Nilsson <hp@axis.com>
2738
2739 * testsuite/regress-demangle (failed test): Show result and
2740 expected output.
2741
6d0be369
AH
27422000-07-07 Andrew Haley <aph@cygnus.com>
2743
2744 * cplus-dem.c (main): fflush() after emitting last char before
2745 waiting for input.
2746
bece74bd
AS
27472000-06-28 Alex Samuel <samuel@codesourcery.com>
2748
2749 * cp-demangle.c (demangle_encoding): Accept no substitutions.
2750 (demangle_name): Handle <substitution> followed by
2751 <unqualified-template-name>.
2752 (demangle_type): Follow special substitutions with
2753 <class-enum-type>
2754 (demangle_subtitution): Set template_p for special substitutions.
2755 (main): Fix typos.
d1209685 2756
229b8ec7
AS
27572000-06-27 Alex Samuel <samuel@codesourcery.com>
2758
2759 * cp-demangle.c (demangle_special_name): Swap base and derived
2760 class when demangling construction vtables.
2761
051664b0
AS
27622000-06-21 Alex Samuel <samuel@codesourcery.com>
2763
2764 * cp-demangle.c: Don't include ctype.h.
2765 (IS_DIGIT): New macro.
2766 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
2767 instead of isdigit and isalpanum.
2768 (demangling_def): Make name and next const pointers.
2769 (STATUS_ALLOCATION_FAILED): New status code.
2770 (dyn_string_append_space): Handle failure in
2771 dyn_string_append_char.
2772 (int_to_dyn_string): Likewise. Change return value to status_t.
2773 (string_list_new): Handle failure of dyn_string_init.
2774 (result_close_template_list): Change return type to status_t.
2775 Handle failure in dyn_string_append.
2776 (result_push): Change return value to status_t. Handle failure in
2777 string_list_new. Handle failure of result_push throughout.
2778 (substitution_add): Change return value to status_t. Handle
2779 dyn_string failures. Handle failure of substitution_add
2780 throughout.
2781 (template_arg_list_new): Return NULL on allocation failure.
2782 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
2783 Handle error result throughout.
2784 (result_append): Likewise.
2785 (result_append_char): Likewise.
2786 (result_append_space): Likewise.
2787 (demangling_new): Make argument a const pointer. Handle
2788 allocation failures.
2789 (demangle_template_args): Handle failure in template_arg_list_new
2790 and result_close_template_list.
2791 (demangle_discriminator): Return if int_to_dyn_string fails.
2792 (cp_demangle): Likewise.
2793 (cp_demangle_type): New function.
2794 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
2795 memory allocation failure.
2796 (main): Likewise.
2797 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
2798 IN_LIBGCC2.
2799 (dyn_string_init): Change return value to int. Handle
2800 RETURN_ON_ALLOCATION_FAILURE case.
2801 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
2802 (dyn_string_release): Delete the dyn_string.
2803 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
2804 (dyn_string_copy): Change return type to int.
2805 (dyn_string_copy_cstr): Likewise.
2806 (dyn_string_prepend): Likewise.
2807 (dyn_string_prepend_cstr): Likewise.
2808 (dyn_string_insert): Likewise.
2809 (dyn_string_insert_cstr): Likewise.
2810 (dyn_string_append): Likewise.
2811 (dyn_string_append_cstr): Likewise.
2812 (dyn_string_append_char): Likewise.
2813 (dyn_string_substring): Likewise.
d1209685 2814
fe06b696
ZW
28152000-06-09 Zack Weinberg <zack@wolery.cumb.org>
2816
2817 * cp-demangle.c (demangle_operator_name): Add spaces before
2818 names beginning with a letter: delete, delete[], new, new[],
2819 sizeof.
2820 (demangle_special_name): Handle TF <type> and TJ <type>.
2821
6223e158
PDM
2822Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
2823
2824 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
2825
48f3e29b
PDM
2826Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
2827
2828 * cp-demangle.c (stdio.h): File included unconditionaly.
2829 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
2830 * dyn-string.c (stdio.h): File included.
2831 * partition.c (partition_print): No `&' needed to take the address of
2832 a function.
2833
69197e7e
KG
28342000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2835
2836 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 2837
69197e7e
KG
2838 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
2839
2840 * cp-demangle.c (demangle_char): Change parameter from char to int.
2841 (demangle_expression, demangle_expr_primary): Remove extra
2842 semi-colon in prototype.
2843
2844 * dyn-string.c (dyn_string_append_char): Change parameter from
2845 char to int.
2846
2847 * memcmp.c (memcmp): Constify.
2848
2849 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
2850 __extension__.
2851
2852 * partition.c (elem_compare): Prototype. Don't cast away
2853 const-ness.
2854
2855 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 2856
7eb23b1f
KG
28572000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2858
2859 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
2860
2861 * cp-demangle.c: Include demangle.h.
2862 (template_arg_list_new): DeANSIfy.
2863 (cp_demangle): Make static and add prototype.
2864 (operator_code, operators): Constify.
2865 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
2866
3faa108c
AS
28672000-06-05 Alex Samuel <samuel@codesourcery.com>
2868
2869 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
2870 unsigned char.
2871 (demangle_unqualified_name): Likewise.
2872 (demangle_number_literally): Likewise.
2873 (demangle_type): Likewise.
2874 (demangle_substitution): Likewise.
2875 (is_mangled_char): Likewise, for isalnum.
2876
69afa80d
AS
28772000-06-04 Alex Samuel <samuel@codesourcery.com>
2878
2879 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
2880 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
2881 (cp-demangle.o): New dependency.
2882 (dyn-string.o): Likewise.
2883
2884 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
2885
2886 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
2887 demangler.
2888 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
2889 demangling mode.
2890 (gnu_new_abi_symbol_characters): New function.
2891 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
2892 file.
2893 * cp-demangle.c: New file.
d1209685 2894
0b72c3df
AC
2895Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
2896
2897 * floatformat.c: Add name to each floatformat field.
2898
270cea06
JL
2899Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
2900
2901 * Makefile.in (objalloc.o): Depend on config.h
2902
d11ec6f0
ZW
29032000-05-29 Zack Weinberg <zack@wolery.cumb.org>
2904
2905 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
2906 if HAVE_STRING_H.
2907 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
2908 * objalloc.c: Include config.h. Include stdlib.h and don't
2909 declare malloc or free if HAVE_STDLIB_H.
2910 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
2911 else declare malloc without prototype. Include string.h if
2912 HAVE_STRING_H, else declare memset without prototype. Don't
2913 include stddef.h.
2914
f8e2da56
MS
29152000-05-23 Mike Stump <mrs@wrs.com>
2916
2917 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 2918 -j3.
f8e2da56 2919
650f3068
DA
29202000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2921
2922 * xmalloc.c: Include config.h for HAVE_SBRK definition.
2923
1d2da2e1
HB
29242000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
2925
d1209685 2926 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
2927 probably zero, also eliminate a warning on alpha.
2928
47668d0a
DE
29292000-05-15 David Edelsohn <edelsohn@gnu.org>
2930
c7a79a32 2931 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
2932 on $(enable_shared).
2933
36348eab
JJ
29342000-05-10 Jakub Jelinek <jakub@redhat.com>
2935
2936 * config.table: Use mh-sparcpic for sparc*-*-*.
2937
209bbe34
NC
29382000-05-08 Nick Clifton <nickc@cygnus.com>
2939
2940 * Makefile.in (CFILES): Add strncmp.c.
2941 (NEEDED): Add strncmp.
2942
a85a47fb
KG
29432000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2944
2945 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
2946 Cast the arguments to `islower' to `unsigned char'.
2947 (print_demangler_list): Prototype.
2948
4aef973c
PDM
2949Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
2950
2951 * sort.c (UCHAR_MAX): Provide fallback definition.
2952
3b94497c
AO
29532000-04-29 Alexandre Oliva <aoliva@cygnus.com>
2954
2955 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
2956 SUBDIRS.
2957
24eaa47a
KB
29582000-04-28 Kenneth Block <block@zk3.dec.com>
2959 Jason Merrill <jason@casey.cygnus.com>
2960
d1209685
ZW
2961 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
2962 (cplus_demangle_set_style): New function for setting style.
2963 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 2964
a9266bfa
KG
29652000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2966
2967 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
2968
2969 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
2970 (libiberty_AC_FUNC_STRNCMP): Invoke.
2971
2972 * strncmp.c: New file.
2973
8e02c4d0
JH
2974Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
2975
2976 * hashtab.c (htab_expand): Add prototype.
2977 (find_empty_slot_for_expand): Likewise.
2978
4feeaae3
KG
29792000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2980
2981 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
2982 match prototype.
2983 (htab_expand): Cast the return value of xcalloc.
2984
18a94a2f
MM
29852000-04-24 Mark Mitchell <mark@codesourcery.com>
2986
2987 * hashtab.c (hash_pointer): New function.
2988 (eq_pointer): Likewise.
2989 (htab_hash_pointer): New variable.
2990 (htab_eq_pointer): Likewise.
2991
eeb0656f
MM
29922000-04-23 Mark Mitchell <mark@codesourcery.com>
2993
b51024fc
MM
2994 * sort.c (sort_pointers): Fix endianness bugs.
2995
eeb0656f
MM
2996 * sort.c: New file.
2997 * Makefile.in (CFILES): Add sort.c
2998 (REQUIRED_OFILES): Add sort.o.
2999 (sort.o): New target.
3000
7277f72d
MS
30012000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3002
3003 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
3004 4.3BSD systems.
3005
e38992e8
RK
3006Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3007
3008 * hashtab.c: Various minor cleanups.
3009 (htab_find_slot_with_hash): INSERT is now enum insert_option.
3010 (htab_find_slot): Likewise.
3011
498e1ab1
DP
30122000-04-16 Dave Pitts <dpitts@cozx.com>
3013
3014 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 3015
dc17cc7b
RH
30162000-04-05 Richard Henderson <rth@cygnus.com>
3017
3018 * splay-tree.c (splay_tree_remove): New.
3019
b13eb66b
MM
30202000-03-30 Mark Mitchell <mark@codesourcery.com>
3021
3022 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
3023 codes.
3024 (htab_find_with_hash): Likewise.
3025 (htab_find_slot_with_hash): Likewise.
d1209685 3026
0194e877
ZW
30272000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3028
3029 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
3030 unless it will be used. Rearrange loop for better
3031 optimization.
3032 (higher_prime_number): Add static prototype.
3033
abc61fd4
JL
3034Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
3035
3036 * Makefile.in (partition.o): Depend on config.h
3037
8c5d513f
BS
30382000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
3039
3040 * hashtab.c (find_empty_slot_for_expand): New function.
3041 (htab_expand): Use it instead of htab_find_slot.
3042 (htab_find_with_hash): Renamed from htab_find; now accepts extra
3043 argument HASH.
3044 (htab_find_slot_with_hash): Likewise for htab_find_slot.
3045 (htab_find): New wrapper function.
3046 (htab_find_slot): Likewise.
3047 (htab_traverse): Pass slot, not entry, to called function.
3048
d9d4fb43
AS
30492000-03-09 Alex Samuel <samuel@codesourcery.com>
3050
3051 * Makefile.in (CFILES): Add partition.c.
3052 (REQUIRED_OFILES): Add partition.o.
3053 (partition.o): New rule.
3054 * partition.c: New file.
d1209685 3055
5dc9cffd
ZW
30562000-03-09 Zack Weinberg <zack@wolery.cumb.org>
3057
3058 * hashtab.c (htab_create): Set del_f.
3059 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
3060 Use it.
3061
5194cf08
ZW
30622000-03-08 Zack Weinberg <zack@wolery.cumb.org>
3063
3064 * hashtab.c: Remove debugging variables (all_searches,
3065 all_collisions, all_expansions). Delete
3066 all_hash_table_collisions.
3067 (create_hash_table, delete_hash_table, empty_hash_table,
3068 find_hash_table_entry, remove_element_from_hash_table_entry,
3069 clear_hash_table_slot, traverse_hash_table, hash_table_size,
3070 hash_table_elements_number, hash_table_collisions): Rename to:
3071 htab_create, htab_delete, htab_empty, htab_find_slot,
3072 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
3073 htab_elements, htab_collisions.
3074 (htab_find): New function, handles common case where you don't
3075 plan to add or delete an entry.
3076 (htab_expand): Don't create a whole new table, just a new
3077 entry vector.
3078 (htab_find_slot): Simplify logic.
3079
5ad5a984
ILT
30801999-08-03 Ian Lance Taylor <ian@zembu.com>
3081
3082 * floatformat.c: Add casts to avoid signed/unsigned warnings.
3083 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
3084
3085 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
3086 $(TARGETLIB)n so it works on MSDOS.
3087 (install_to_tooldir): Likewise.
3088
30891999-07-21 Ian Lance Taylor <ian@zembu.com>
3090
3091 From Mark Elbrecht:
3092 * makefile.dos: Remove; obsolete.
3093 * configure.bat: Remove; obsolete.
3094
30951999-07-11 Ian Lance Taylor <ian@zembu.com>
3096
3097 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3098 warning.
3099
aeecce42
MK
31002000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3101
3102 * pexecute.c: Conditionally include string.h.
5194cf08 3103 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 3104
1eaf7d9c
KG
31052000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3106
3107 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
3108 we're using gcc.
3109
3110 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
3111
0fadedb2
GK
31121999-12-27 Geoff Keating <geoffk@cygnus.com>
3113
3114 * vasprintf.c (int_vasprintf): Don't re-read the format character
3115 as this mishandles strings like '%%s'.
3116
08230f26
MM
31171999-12-05 Mark Mitchell <mark@codesourcery.com>
3118
3119 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
3120 rather than struct splay_tree_node.
3121 (splay_tree_insert): Use struct splay_tree_s rather than struct
3122 splay_tree.
3123
6de9b8ff
PDM
3124Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
3125
3126 * hashtab.c (sys/types.h): File included.
3127
f3636679
JM
31281999-11-22 Jason Merrill <jason@casey.cygnus.com>
3129
3130 * strtoul.c, strtol.c, random.c: Remove advertising clause from
3131 BSD license, pursuant with
3132
3133 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
3134
36dd3a44
JL
3135Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
3136
3137 * hashtab.c: Include stdio.h.
3138
6e300472
JL
3139Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
3140
3141 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
3142
df548dfc
PDM
3143Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
3144
3145 * xstrdup (sys/types.h): Include this file.
3146
2c375143
NS
31471999-10-28 Nathan Sidwell <nathan@acm.org>
3148
3149 * Makefile.in (SUBDIRS): New macro.
3150 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
3151 avoid multiple subdirectory cleaning.
3152 (*-subdir): Use SUBDIRS.
3153
a82cecda
JK
31541999-10-25 Jim Kingdon <http://developer.redhat.com/>
3155
3156 * cplus-dem.c: Move declarations of standard_symbol_characters and
3157 hp_symbol_characters inside #ifdef MAIN to avoid compiler
3158 warnings.
3159
ed38f5d5
ZW
31601999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
3161
3162 * hashtab.c (find_hash_table_entry): When returning a
3163 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
3164 (clear_hash_table_slot): New function which deletes an entry
3165 by its position in the table, not its value.
3166 (traverse_hash_table): New function which calls a hook
3167 function for every live entry in the table.
3168
b60fe4a7
MM
31691999-10-19 Mark Mitchell <mark@codesourcery.com>
3170
3171 * cplus-dem.c (INTBUF_SIZE): New macro.
3172 (string_append_template_idx): New function.
3173 (demangle_expression): Likewise.
3174 (demangle_integral_value): Use it.
3175 (demangle_real_value): New function, split out from ...
3176 (demangle_template_value_parm): ... here. Use
3177 string_append_template_idx. Use demangle_real_value.
3178 (demangle_template): Use string_append_template_idx.
3179 (demangle_qualified): Use consume_count_with_underscores.
3180 (get_count): Tweak formatting.
3181 (do_type): Use string_append_template_idx.
5194cf08 3182
3da5522a
KG
31831999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3184
3185 * calloc.c: Add a public domain notice.
3186
d7d36ea8
PDM
3187Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
3188
3189 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
3190
a2f945c6
VM
3191Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
3192
3193 * Makefile.in (CFILES): Add hashtab.c
3194 (REQUIRED_OFILES): Add hashtab.o
3195 (hashtab.o): Add dependencies.
3196 * hashtab.c: New file
3197
7f22ec2e
MK
3198Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
3199
3200 * basename.c (DIR_SEPARATOR): New macro.
3201 (DIR_SEPARATOR_2): Likewise.
3202 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
3203 (IS_DIR_SEPARATOR): Likewise.
3204 (main): Handle MSDOS style pathname.
3205
7c56a6ce
MM
32061999-10-11 Mark Mitchell <mark@codesourcery.com>
3207
3208 * cplus-dem.c (do_type): Handle pointer to member types whose
3209 enclosing classes have namespace scope.
3210
cd32188b
ME
3211Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
3212
3213 * config.table: Provide a backup shell for executing move-if-change.
3214
fc232f7a
MM
32151999-10-02 Mark Mitchell <mark@codesourcery.com>
3216
3217 * xmalloc.c (xmalloc): Fix spelling error.
3218 (xcalloc, xrealloc): Likewise.
3219
2a138827
KG
32201999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3221
3222 * cplus-dem.c (fancy_abort, demangle_integral_value,
3223 demangle_arm_hp_template, recursively_demangle,
3224 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
3225 (program_name, program_version, fatal): Constify a char*.
3226 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
3227 (main): Call return, not exit.
3228
5a657fc3
KG
32291999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3230
3231 * choose-temp.c: Remove obsolete comment about gcc.
3232 (make_temp_file): Constify a char*.
3233
33c5ddcd
KG
3234Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3235
3236 * xmemdup.c: Include sys/types.h.
3237
b10647f1
JG
32381999-09-07 Jeff Garzik <jgarzik@pobox.com>
3239
3240 * xmemdup.c: New xmemdup function.
3241 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
3242
3dd6c3af
LV
3243Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
3244
5194cf08 3245 * config.table: Add openedition target.
3dd6c3af
LV
3246 * config/mh-openedition: New file.
3247
19e28e2a
ME
3248Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
3249
3250 * pexecute.c (pexecute): Fill in temp_base when needed.
3251
4dfeccf9
RH
32521999-08-31 Richard Henderson <rth@cygnus.com>
3253
3254 * getpwd.c: Check HAVE_GETCWD before defining it away.
3255
4ac3cb83
KG
32561999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3257
3258 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
3259 (REQUIRED_OFILES): Add getpwd.o.
3260 (getpwd.o): Add target.
3261
3262 * configure.in (AC_PREREQ): Bump to 2.13.
3263 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
3264
3265 * getpwd.c: New file, moved here from gcc.
3266
e797ff70
KG
32671999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3268
3269 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
3270 comparing against a signed quantity.
3271 (arm_special): Likewise.
3272 (demangle_fund_type): Likewise.
3273 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 3274 ATTRIBUTE_UNUSED.
e797ff70
KG
3275 (main): Constify variable `valid_symbols'.
3276
55247fce
PDM
3277Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
3278
3279 * strtoul.c (strtoul): Add parentheses around && within ||.
3280
76632dd0
DJ
3281Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
3282
3283 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3284 libdir, libsubdir and tooldir.
3285
d080bbfa
MM
32861999-08-01 Mark Mitchell <mark@codesourcery.com>
3287
3288 * splay-tree.c (splay_tree_insert): Return the new node.
3289
a81c752a
RH
32901999-07-14 Richard Henderson <rth@cygnus.com>
3291
5194cf08 3292 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
3293 prototyping directly.
3294 * choose-temp.c: Conditionally include string.h.
3295
8f1824d9
JM
32961999-07-12 Jason Merrill <jason@yorick.cygnus.com>
3297
3298 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
3299
652374d3
ILT
33001999-07-11 Ian Lance Taylor <ian@zembu.com>
3301
3302 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3303 warning.
3304
a4494286
JM
33051999-07-07 Jason Merrill <jason@yorick.cygnus.com>
3306
3307 * Makefile.in (needed-list): Only include stuff we actually need
3308 for libstdc++.
3309
90e72e20
AS
33101999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3311
3312 * configure.in (checkfuncs): Add gettimeofday.
3313 * config.in, configure: Regenerated.
3314
b569200e
MK
3315Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
3316
3317 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
3318 the test fails.
3319 * configure: Regenerate.
3320
73919448
MS
33211999-06-10 Mike Stump <mrs@wrs.com>
3322
3323 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
3324 parallel builds.
3325
fee9125c
KG
33261999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3327
3328 * putenv.c: Include ansidecl.h to define `const'.
3329 * setenv.c: Likewise.
3330
71cce721
MN
3331Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
3332
a7c9637f
JL
3333 * Makefile.in (CFILES): Add putenv.c and setenv.c.
3334 * configure.in (funcs): Add putenv and setenv.
3335 (AC_CHECK_FUNCS): Check for putenv and setenv.
3336 * configure: Rebuilt.
3337 * putenv.c setenv.c: New files.
3338
71cce721
MN
3339 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
3340 bytes of space using malloc.
3341
53504016
SG
3342Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
3343
3344 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
3345 the *mangled pointer beyond the end of the string. Clean up code to
3346 match prevailing coding style.
3347
34842539
MH
33481999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3349
3350 * tmpnam.c (L_tmpnam): Fix typo.
3351
3a08531d
ME
3352Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
3353
3354 * cplus-dem.c (standard_symbol_characters): Renamed from
3355 standard_symbol_alphabet. No longer modify TABLE.
3356 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
3357 modify TABLE.
3358 (main): Corresponding changes. Use strchr to determine if a
3359 character is valid.
3360
8db9d08b
JB
33611999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
3362
3363 * cplus-dem.c (main): Use table lookup to distinguish identifier
3364 characters from non-identifier characters.
3365 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
3366
6a071f4a
FF
3367Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
3368
3369 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
3370 * getruntime.c: Only attempt to include sys/resource.h and
3371 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
3372 are defined.
3373
7dd88617
DT
3374Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
3375
3376 * configure.in (alloca detection): Handle alloca directly for interix.
3377 * configure: Rebuilt.
3378
7a1528bc
MK
3379Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
3380
3381 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
3382
76409268
JB
33831999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
3384
3385 Fix from Dale Hawkins:
5194cf08 3386 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
3387 reallocated properly if we use it again.
3388
3389 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
3390 stricter about syntax. Always null-terminate string.
3391
acbbd80a
MK
3392Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
3393
3394 * configure.in (checkfuncs): Check for sbrk.
3395 * config.in: Rebuilt.
3396 * configure: Likewise.
3397 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
3398
92523551
JB
33991999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
3400
3401 Fix from Marcus Daniels:
3402 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
3403 identifier looking for another underscore.
3404
36eb4217
MK
3405Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
3406
3407 * pexecute.c: Change all references to __UWIN__ to _UWIN.
3408 * xmalloc.c: Likewise.
3409 (xcalloc): UWIN has sbrk.
3410 (xrealloc): Fix guard macro.
3411
2c45d1a0
RH
34121999-04-11 Richard Henderson <rth@cygnus.com>
3413
3414 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
3415 or <alloca.h>.
3416 * clock.c (GNU_HZ): New definition.
3417 (clock): Use it.
3418 * getruntime.c: Likewise.
3419
3420 * config.table: Use mh-beos.
3421 * config/mh-beos: New file.
3422
391cdef0
MM
34231999-04-11 Mark Mitchell <mark@codesourcery.com>
3424
3425 * cplus-dem.c (demangle_template_value_parm): Handle
3426 pointers-to-members.
3427 (do_type): Handle template parameters as qualifiers.
3428
9d229989
JB
34291999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
3430
3431 * cplus-dem.c: Attempt to handle overflows in counts with some
3432 semblance of grace.
3433 (consume_count): Detect overflows. Return -1 to indicate errors,
3434 instead of zero.
3435 (demangle_template_value_parm, demangle_template): Handle change
3436 to consume_count's return convention.
3437
7c72138a
TT
34381999-04-05 Tom Tromey <tromey@cygnus.com>
3439
3440 * testsuite/regress-demangle: New file.
3441 * testsuite/demangle-expected: New file.
3442
3443 * Makefile.in (all, check, installcheck, info, install-info,
3444 clean-info, dvi, install, etags, tags, mostlyclean, clean,
3445 distclean, maintainer-clean, realclean): Depend on corresponding
3446 `-subdir' target.
3447 (all-subdir check-subdir installcheck-subdir info-subdir
3448 install-info-subdir clean-info-subdir dvi-subdir
3449 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
3450 distclean-subdir maintainer-clean-subdir): New target.
3451 * testsuite/Makefile.in: New file.
3452 * configure: Rebuilt.
3453 * configure.in: Create testsuite/Makefile.
3454
ae7f7270
MM
34551999-04-02 Mark Mitchell <mark@codesourcery.com>
3456
3457 * splay-tree.h (splay_tree_compare_pointers): Define.
3458
30f72379
MM
34591999-03-30 Mark Mitchell <mark@codesourcery.com>
3460
3461 * splay-tree.c (splay_tree_compare_ints): Define.
3462
4cc48683
TT
34631999-03-30 Tom Tromey <tromey@cygnus.com>
3464
3465 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
3466 don't advance input pointer.
3467 (demangle_class_name): If consume_count didn't find a count, do
3468 nothing. Don't bother with `strlen' sanity check; consume_count
3469 does it for us.
3470
3510075c
JL
34711999-03-16 Stan Shebs <shebs@andros.cygnus.com>
3472
3473 From Art Haas <ahaas@neosoft.com>:
3474 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
3475 when doing arm or hp style.
3476 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 3477
89f602a7
MK
3478Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
3479
3480 * pexecute.c (__CYGWIN32__): Rename to
3481 (__CYGWIN__): this.
3482 * xmalloc.c: Likewise.
3483
3484 Changes to support i386-pc-uwin.
3485 * configure.in (*-*-uwin*): Workaround for vfork bug.
3486 * configure: Regenerate.
3487 * pexecute.c (pexecute): Be like standard Unix.
3488 (pwait): Likewise.
3489 * xmalloc.c (first_break): Define.
3490 (xmalloc_set_program_name): Use.
3491 (xmalloc): Use.
3492
9346c824
FS
3493Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3494
3495 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
3496
3510075c
JL
3497Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
3498
3499 * config.table: Check cygwin*, not cygwin32*.
3500
8ec65f13
DB
3501Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
3502
3503 * Makefile.in: Change mkstemp -> mkstemps.
3504
687361c8
ME
3505Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
3506
3507 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
3508 * configure.in (funcs): Check for and conditionally add mkstemps to
3509 the list of functions libiberty will provide.
3510 * configure: Rebuilt.
5194cf08 3511
b207e09c
MK
3512Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
3513
5194cf08 3514 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
3515 platforms that don't have HZ.
3516 * getruntime.c (HZ): Likewise.
3517
16b4c15e
RH
3518Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
3519
3520 * Makefile.in (xstrdup.o): Depend on config.h.
3521
38beb75c
UD
3522Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
3523
3524 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
3525 freeing it.
3526
7e4311a3
KG
3527Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3528
3529 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
3530
3510075c
JL
3531Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3532
3533 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
3534 splay-tree.o.
3535
35361999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
3537
3538 * configure.in: Require autoconf 2.12.1 or higher.
3539
fb9939b8
MM
35401998-12-30 Michael Meissner <meissner@cygnus.com>
3541
3542 * random.c (NULL): Don't redefine NULL if it is already defined.
3543
087aa398
KG
3544Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3545
3546 * argv.c (buildargv): Cast the result of alloca in assignment.
3547
3548 * choose-temp.c: Include stdlib.h.
38beb75c 3549
087aa398 3550 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
3551 (snarf_numeric_literal): Constify first parameter.
3552 (code_for_qualifier): Avoid a gcc extension, make the parameter an
3553 int, not a char.
087aa398
KG
3554 (demangle_qualifier): Likewise.
3555 (demangle_signature): Cast the argument of a ctype function to
3556 unsigned char.
3557 (arm_pt): Add parens around assignment used as truth value.
3558 (demangle_arm_hp_template): Constify variable `args'.
3559 (do_hpacc_template_const_value): Cast the argument of a ctype
3560 function to unsigned char.
3561 (do_hpacc_template_literal): Remove unused variable `i'.
3562 (snarf_numeric_literal): Constify parameter `args'.
3563 Cast the argument of a ctype function to unsigned char.
3564
3565 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 3566 avoid ambiguous `else'.
38beb75c 3567
087aa398 3568 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
3569 `cstart' and `cend' to unsigned char. Cast the argument of macro
3570 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
3571
3572 * objalloc.c (free): Add prototype.
3573
21f2174d
HPN
3574Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
3575
3576 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
3577
3510075c
JL
3578Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
3579
3580 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 3581 doesn't exist.
3510075c 3582 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 3583
e8fc8222
AM
3584Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
3585
3586 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
3587 bumping the pointer we read from. Also prepend these codes,
3588 as we do in other places.
3589
3510075c
JL
35901998-12-18 Nick Clifton <nickc@cygnus.com>
3591
3592 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
3593 'const char *' in order to match its usage when calling siblings.
3594 (snarf_numeric_literal): Make first arg 'const char **' in order
3595 to match usage.
11a0bb74 3596
f4f30aa1
JL
3597Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3598
11a0bb74
KG
3599 * choose-temp.c: Don't check IN_GCC anymore.
3600
3601 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
3602 * memchr.c (memchr): Likewise.
3603 * memcpy.c (memcpy): Likewise.
3604 * memmove.c (memmove): Likewise.
38beb75c 3605
11a0bb74
KG
3606 * mkstemp.c: Don't check IN_GCC anymore.
3607 * pexecute.c: Likewise.
3608 * splay-tree.c: Likewise.
38beb75c 3609
11a0bb74
KG
3610 * strchr.c (strchr): Use `const', not `CONST'.
3611 * strrchr.c (strrchr): Likewise.
3612 * strtol.c (strtol): Likewise.
3613 * strtoul.c (strtoul): Likewise.
3614
70d5ccef
DT
3615Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
3616 Elena Zannoni <ezannoni@cygnus.com>
3617 Stan Shebs <shebs@cygnus.com>
3618 Edith Epstein <eepstein@cygnus.com>
3619 Andres MacLeod <amacleod@cygnus.com>
3620 Satish Pai <pai@apollo.hp.com>
3621
3622 * HP aCC demangling support.
3623 * cplus-dem.c
3624 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
3625 demangling correctly when -edg specified; set the demangling style
3626 when user specifies 'edg'. Set strip_underscore to
3627 prepends_underscore, if not HPUXHPPA. Set
3628 current_demangling_style to hp_demangling if HPUXHPPA. Set
3629 current demangling style correctly if the switch is hp. Read
3630 label correctly also in the HP style case.
70d5ccef 3631 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 3632 function.
70d5ccef 3633 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 3634 style for this case is the same as ARM.
70d5ccef
DT
3635 (demangle_args): handle EDG_DEMANGLING style; support HP style.
3636 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
3637 demangle_arm_pt.); check and set value of temp_start field in
3638 multiple places. Also, when ceching for end of template args,
3639 check to see if at end of static member of template class.
70d5ccef 3640 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 3641 include template args in string defining class.
70d5ccef
DT
3642 (demangle_class_name): use demangel_arm_hp_template.
3643 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
3644 HP_DEMANGLING and currently point at an 'X' in the mangled name.
3645 Handle EDG_DEMANGLING style. Handle constructor and destructor
3646 ops for HP style.
70d5ccef 3647 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
3648 styles. global destructor and constructor for HP style are same
3649 as for ARM style. Same for local variables.
70d5ccef
DT
3650 (demangle_qualified): handle EDG_DEMANGLING style.
3651 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
3652 cases '1' - '9' : initialize the temp_start field to -1 and handle
3653 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
3654 and AUTO_DEMANGLING styles. If expecting a function and managed
3655 to demangle the funct args, then handle the LUCID_DEMANGLING,
3656 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
3657 class name after "Lnnn_ in HP style case. HP style too needs to
3658 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 3659 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 3660 value param for HP/aCC.
70d5ccef 3661 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 3662 literal parameter for HP aCC.
70d5ccef
DT
3663 (recursively_demangle): new function
3664 (snarf_numeric_literal): new function.
3665 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 3666 to message.
70d5ccef 3667
8d525fa8
CF
3668Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
3669
3670 * pexecute.c: Remove obsolete ifdefed cygwin code.
3671
9b1a92d8
KG
3672Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3673
3674 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
3675 * cplus-dem.c: Likewise. Conform to libiberty.h.
3676 * pexecute.c: Likewise.
3677 * splay-tree.c: Likewise.
3678
c85c3232
MS
36791998-11-25 Mike Stump <mrs@wrs.com>
3680
3681 * Makefile.in (splay-tree.o): Add config.h dependency.
3682
35a6cd99
KG
3683Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3684
3685 * configure.in: Use AC_PREREQ(2.12.1).
3686
6e6e34b7
BK
36871998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
3688
5194cf08 3689 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 3690
59b67c11
JL
3691Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
3692
3693 * mpw.c (mpw_access): Add missing parens.
3694
a6458d1d
KG
3695Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3696
3697 * configure.in: Call AC_HEADER_SYS_WAIT.
3698
3699 * pexecute.c: Include sys/wait.h when !IN_GCC.
3700
3510075c
JL
3701Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
3702
3703 * pexecute.c: revert back to checking old Cygwin
3704 preprocessor symbol until some time has passed.
3705
3706Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
3707
3708 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
3709 since it will now support similar constructs.
3710
a9acf741
KG
3711Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3712
3713 * configure.in: Check for calloc.
3714
3715 * calloc.c: New file.
3716
3717 * xmalloc.c (xcalloc): New function.
3718
a49fb37a
AM
3719Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
3720
3721 *cplus-dem.c (demangle_prefix): Use the last "__"
3722 in the mangled name when looking for the signature. This allows
3723 template names to begin with "__".
3724
0e714131
MM
37251998-11-08 Mark Mitchell <mark@markmitchell.com>
3726
ec2288ff
MM
3727 * cplus-dem.c (type_kind_t): Add tk_reference.
3728 (demangle_template_value_parm): Handle it.
3729 (do_type): Use it for references, instead of tk_pointer.
3730
0e714131
MM
3731 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
3732 not internal_cplus_demangle.
3733
2931b6d4
KG
3734Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3735
3736 * choose-temp.c: Don't include gansidecl.h.
3737 * mkstemp.c: Likewise.
3738 * pexecute.c: Likewise.
3739
dd8f3ed5
GN
3740Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
3741
5194cf08
ZW
3742 * configure.in: detect cygwin* instead of cygwin32*
3743 * configure: regenerate
dd8f3ed5 3744
c5f7c445
KG
3745Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3746
3747 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
3748 whether to include config.h. Possibly include unistd.h in the
3749 !IN_GCC case. Define VFORK_STRING as a printable function call
3750 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
3751 defined, include vfork.h. If VMS is defined, define vfork()
3752 appropriately. Remove vfork check on USG, we're using autoconf.
3753 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
3754 locally what string to use.
c5f7c445 3755
ad3ef78e
MM
37561998-10-26 Mark Mitchell <mark@markmitchell.com>
3757
3758 * splay-tree.c: Tweak include directives to make sure declarations of
3759 xmalloc and free are available.
3760
224301c1
MM
37611998-10-25 Mark Mitchell <mark@markmitchell.com>
3762
3763 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
3764 anonymous namespaces.
38beb75c 3765
d9db46fd
MM
37661998-10-23 Mark Mitchell <mark@markmitchell.com>
3767
3768 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
3769 with type_quals.
3770 (TYPE_UNQUALIFIED): New macro.
3771 (TYPE_QUAL_CONST): Likewise.
3772 (TYPE_QUAL_VOLATILE): Likewise.
3773 (TYPE_QUAL_RESTRICT): Likewise.
3774 (code_for_qualifier): New function.
3775 (qualifier_string): Likewise.
3776 (demangle_qualifier): Likewise.
3777 (internal_cplus_demangle): Use them.
3778 (demangle_signature): Likewise.
3779 (demangle_template_value_parm): Likewise.
3780 (do_type): Likewise.
3781 (demangle_fund_type)): Likewise.
224301c1 3782
b056ad1c
KG
3783Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3784
3785 * splay-tree.c (splay_tree_foreach_helper): Make definition static
3786 to match prototype.
3787
ed87f9c8
MM
37881998-10-21 Mark Mitchell <mark@markmitchell.com>
3789
3790 * splay-tree.c: New file.
3791 * Makefile.in (CFILES): Add it.
3792 (REQUIRED_OFILES): Likewise.
3793 (splay-tree.o): Add dependencies.
3794
e0c13971
AS
3795Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3796
3797 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
3798 range of 'K' index.
3799
91e0f659
KG
3800Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3801
3802 * choose-temp.c: Prototype mkstemps() when IN_GCC.
3803
3804 * cplus-dem.c (consume_count): Cast argument of ctype macro to
3805 `unsigned char'.
3806 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
3807 comparing against one.
3808 (cplus_mangle_opname): Likewise.
3809 (demangle_integral_value): Cast argument of ctype macro to
3810 `unsigned char'.
3811 (demangle_template_value_parm): Likewise.
3812 (demangle_template): Initialize variable `bindex'. Cast the
3813 result of `strlen' to (int) when comparing against one. Remove
3814 unused variable `start_of_value_parm'.
3815 (demangle_class_name): Cast the result of `strlen' to (int) when
3816 comparing against one.
3817 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
3818 (gnu_special): Likewise. Cast the result of `strlen' to (int)
3819 when comparing against one.
3820 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
3821 (get_count): Likewise.
3822 (do_type): Likewise. Cast the result of `strlen' to (int) when
3823 comparing against one.
3824 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
3825 (demangle_function_name): Cast the result of `strlen' to (int)
3826 when comparing against one.
3827
3828 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
3829 comparing against one.
3830
73aeb2ff
JL
3831Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
3832
5194cf08
ZW
3833 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
3834 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
3835 * config.in, configure: Rebuilt.
ae76f1be 3836
73aeb2ff
JL
3837 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
3838 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
3839 * config.in, configure: Rebuilt.
3840
dd8f3ed5
GN
3841Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
3842
5194cf08 3843 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 3844
f77d8413
MT
3845Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
3846
3847 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
3848
ca6b370d
JL
3849Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
3850
3851 * Merge egcs & devo libiberty.
3852
ab4856b1
ML
3853