merge from gcc
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
24afc00d
DD
12003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
2
3 * cp-demangle.c (d_demangle): Only return success if we consumed
4 the entire demangled string.
5 (is_ctor_or_dtor): Likewise.
6
7 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
8 to restore expected result of EDG test case to original expected
9 result.
10
331c3da2
DD
112003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
12
13 * cp-demangle.c (struct d_print_mod): Add templates field.
14 (d_make_builtin_type): Check for NULL type.
15 (d_make_extended_operator): Check for NULL name.
16 (d_make_ctor, d_make_dtor): Likewise.
17 (d_mangled_name): Add top_level parameter. Change all callers.
18 (d_encoding): If DMGL_PARAMS is not set, strip off initial
19 CV-qualifiers.
20 (d_type): Check some return values we rely on.
21 (d_bare_function_type, d_array_type): Likewise.
22 (d_pointer_to_member_type, d_template_args): Likewise.
23 (d_add_substitution): Fail if argument is NULL.
24 (d_print_resize): Check whether buf is NULL.
25 (d_print_comp): Save current templates list with each modifier.
26 Don't pass the modifier list down when printing a template.
27 (d_print_cast): Don't pass the modifier list down when printing a
28 template.
29 (d_print_mod_list): Temporarily set templates list while printing
30 a modifier.
31 (d_print_mod): Check that buf is not NULL before using it.
32 (d_print_function_type): Print parens if there is no modifier.
33 (d_init_info): Permit as many substitutions as there are
34 characters in the mangled name.
35 * testsuite/demangle-expected: Add two new test cases.
36
51948b34
DD
372003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
38
39 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
40 d_demangle.
41
6d95373e
DD
422003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
43
44 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
45 callers.
46 (print_usage): Display new -p option.
47 (long_options): Add --no-params.
48 (main): Accept and handle -p.
49
54a962d9
DD
502003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
51
52 * cp-demangle.c (has_return_type): Skip qualifiers when checking
53 whether we have a template.
54 * testsuite/demangle-expected: Add four new tests.
55
8fe0d347
DD
562003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
57
58 * testsuite/demangle-expected: Minor changes to match output of
59 new demangler: adjust whitespace in four tests, and change order
60 of qualifiers in one test.
61
62 * cp-demangle.c: Complete rewrite.
63
d00edca5
DD
642003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
65
66 * cp-demangle.c: Complete rewrite.
67
dd9d4b48
DD
682003-11-19 Mark Mitchell <mark@codesourcery.com>
69
70 * cp-demangle.c (demangle_type): Correct thinko in substitution
71 processing.
72
0976f6a7
DD
732003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
74
75 * cp-demangle.c (demangle_operator_name): Remove space before
76 "sizeof".
77 (demangle_type_ptr): Put qualifiers in the right place. Handle
78 qualifiers in pointer to member specially.
79 (demangle_type): Handle qualifiers for pointer or reference
80 specially. Handle function type.
81 (demangle_local_name): Save and restore caret around demangling of
82 initial encoding.
83
84 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
85 cplus_demangle.
86
87 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
88
5659daa1
DD
892003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
90
91 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
92 cplus_demangle.
93
94 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
95
e7e6980b
DD
962003-10-31 Andreas Jaeger <aj@suse.de>
97
98 * floatformat.c (floatformat_always_valid): Add unused attribute.
99
686e72d7
DD
1002003-10-30 Josef Zlomek <zlomekj@suse.cz>
101
102 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
103 instead of increasing n_elements when inserting to deleted slot.
104
eec65ede
JB
1052003-10-20 J. Brobecker <brobecker@gnat.com>
106
107 * cplus-dem.c (demangle_template): Register a new Btype only
108 when needed.
109 * testsuite/demangle-expected: Add a new test.
110
cd275bff
L
1112003-10-16 H.J. Lu <hongjiu.lu@intel.com>
112
113 * testsuite/demangle-expected: Update the expected output of
114 _GLOBAL__I__Z2fnv.
115
e3b1168e
DJ
1162003-10-02 Daniel Jacobowitz <drow@mvista.com>
117
118 * strerror.c: Revert last change. Declare static sys_nerr
119 and sys_errlist using different names.
120
efb150d5
DJ
1212003-10-01 Daniel Jacobowitz <drow@mvista.com>
122
123 * strerror.c: Don't provide or reference sys_errlist if
124 strerror is available.
125
b7ca9213
L
1262003-10-01 H.J. Lu <hongjiu.lu@intel.com>
127
128 * configure.in: Check if $MAKEINFO is missing.
129 * configure: Regenerated.
130
8ddbb593
DJ
1312003-09-24 Daniel Jacobowitz <drow@mvista.com>
132
133 * configure.in: Use AC_PROG_CPP_WERROR.
134 * configure: Regenerated.
135
5324d185
AC
1362003-09-22 Andrew Cagney <cagney@redhat.com>
137
138 * floatformat.c (floatformat_i387_ext_is_valid): New function.
139 (floatformat_always_valid): New function.
140 (floatformat_i387_ext): Initialize new "is_valid" field to
141 "floatformat_i387_ext_is_valid".
142 (floatformat_ieee_single_little): Initialize "is_valid" field to
143 floatformat_always_valid.
144 (floatformat_ieee_double_big): Ditto.
145 (floatformat_ieee_double_little): Ditto.
146 (floatformat_ieee_double_little): Ditto.
147 (floatformat_ieee_double_littlebyte_bigword): Ditto.
148 (floatformat_i960_ext): Ditto.
149 (floatformat_m88110_ext): Ditto.
150 (floatformat_m88110_harris_ext): Ditto.
151 (floatformat_arm_ext_big): Ditto.
152 (floatformat_arm_ext_littlebyte_bigword): Ditto.
153 (floatformat_ia64_spill_big): Ditto.
154 (floatformat_ia64_spill_little): Ditto.
155 (floatformat_ia64_quad_big): Ditto.
156 (floatformat_ia64_quad_little): Ditto.
157 (floatformat_ia64_quad_little): Ditto.
158 (floatformat_is_valid): Call "is_valid".
159
34f4a113
AC
1602003-09-15 Andrew Cagney <cagney@redhat.com>
161
162 * floatformat.c (get_field): Make "data" constant.
163 (floatformat_is_valid, floatformat_to_double): Make "from"
164 constant, fix casts.
165 (floatformat_from_double): Make "from" constant.
166
3f2aacaf
DJ
1672003-09-15 Daniel Jacobowitz <drow@mvista.com>
168
169 * floatformat.c (floatformat_is_valid): New function.
170 (get_field, put_field): Correct comments.
171
aae66b9f
DD
1722003-09-06 Josef Zlomek <zlomekj@suse.cz>
173
174 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
175 FIBHEAPKEY_T.
176
60b04ee8
DD
1772003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
178
179 PR bootstrap/12100
180 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
181 * configure: Rebuilt.
182
2299a76d
DJ
1832003-08-27 Daniel Jacobowitz <drow@mvista.com>
184
185 * aclocal.m4: Include acx.m4 and no-executables.m4.
186 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
187 (LIB_AC_PROG_CC): Remove.
188 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
189 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
190 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
191 performing link tests.
192 * configure: Regenerated.
193
9ad1aa29
DD
1942003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
195
196 * cp-demangle.c: Clarify what package(s) this is part of.
197
dbb9d0f3
DD
1982003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
199
200 * pex-win32.c (pexecute): Mark parameters this_pname and
201 temp_base as unused. Remove unused variables retries,
202 sleep_interval. Initialize org_stdin, org_stdout.
203 (pwait): Mark parameter flags as unused.
204
2052003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
ab8c7bb1
DD
206
207 * pex-win32.c (fix_argv): Ensure that the executable pathname
208 uses Win32 backslashes.
209 (pexecute): Cast away constness when assigning *errmsg_arg.
210
78c5b0a5
L
2112003-06-26 H.J. Lu <hongjiu.lu@intel.com>
212
213 * testsuite/demangle-expected: Add more GNU V3 testcases.
214
70ecf948
DD
2152003-06-22 Zack Weinberg <zack@codesourcery.com>
216
217 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
218 not HC_ASCII and HC_EBCDIC.
219 Add documentation in form expected by gather-docs.
220 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
221 * Makefile.in, functions.texi: Regenerate.
222
cbc0188b
DD
2232003-06-21 Zack Weinberg <zack@codesourcery.com>
224
225 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
226 for charset determination.
227
5f73c378
DD
2282003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
229
230 * configure.in: Add check for malloc.h needed by
231 m68k for function free().
232 * configure: Regenerated.
233 * config.in: Add HAVE_MALLOC_H.
234 * hashtab.c: include malloc.h were available for
235 free().
236
e69f6c8c 2372003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
cbc0188b 238
e69f6c8c
DD
239 PR bootstrap/10974
240 * physmem.c: Update comment.
241 * configure.in: Modify test for _system_configuration for older
242 AIX systems.
243
244 * config.in, configure: Regenerated.
cbc0188b 245
54c60684
DD
2462003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
247
248 PR other/10810
249 * test-demangle.c (getline): Fix fence-post error.
250
5a4e47bd
NC
2512003-06-03 Nick Clifton <nickc@redhat.com>
252
253 * asprintf.c: Change comment to note that -1 is returned upon
254 error.
255 * vasprintf.c: Likewise.
256 (vasprintf): Return -1 upon error.
257 * functions.texi: Document changes to asprintf and vasprintf.
258
916f5d13
DD
2592003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
260
261 * config.table: Accept i[345867]86 variant.
262
e4f79046
JB
2632003-05-15 Jim Blandy <jimb@redhat.com>
264
265 * hex.c (_hex_value): Make this unsigned.
266 (hex_value): Update documentation for new return type. hex_value
267 now expands to an unsigned int expression, to avoid unexpected
268 sign extension when we store it in a bfd_vma, which is larger than
269 int on some platforms.
270 * functions.texi: Regenerated.
271
0f3538e7
DD
2722003-05-07 Josef Zlomek <zlomekj@suse.cz>
273
274 * splay-tree.c (splay_tree_predecessor): Fix comment.
275 (splay_tree_successor): Fix comment.
276
7108c5dc
JM
2772003-05-07 Jason Merrill <jason@redhat.com>
278
eafaf5eb 279 * hashtab.c (iterative_hash): New fn.
7108c5dc
JM
280 * configure.in: Add AC_C_BIGENDIAN_CROSS.
281 * aclocal.m4: Include accross.m4.
282 * configure, config.in: Regenerate.
283
0b555173
DD
2842003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
285
286 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
287 * configure: Regenerate.
288
8730135a
DD
2892003-05-03 Carlo Wood <carlo@alinoe.com>
290
291 * cp-demangle.c: Fix typo in "char_traints" string-literal.
292
341eccbc
DD
2932003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
294
295 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
296 (main): Test that we don't write too much data.
297
2ed1e5cc
DD
2982003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
299
300 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
301 vsnprintf.
302 * snprintf.c, vsnprintf.c: New files.
303 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
304 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
305 Regenerate dependencies.
306
307 * functions.texi, configure, config.in: Regenerated.
308
10b57b38
DD
3092003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
310
311 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
312 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
313 and stpncpy.
314 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
315 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
316 Regenerate dependencies.
317
318 * functions.texi, configure, config.in: Regenerated.
319
ff773b85
DD
3202003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
321
322 * argv.c: Fix comments.
323 * calloc.c: Don't unnecessarily include "libiberty.h".
324 (bzero): Add prototype.
325 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
326 * getcwd.c (getcwd): Use standard definition to avoid conflicts
327 with system headers.
328 * hashtab.c (htab_traverse): Delete unused variables.
329 * rename.c: Include "ansidecl.h".
330 (rename): Use standard definition to avoid conflicts with system
331 headers.
332 * strsignal.c: Rely on ANSI_PROTOTYPES.
333 * strstr.c: Check GNUC >= 2, not GNUC == 2.
334 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
335 * vprintf.c: Include "ansidecl.h" earlier, rely on
336 ANSI_PROTOTYPES.
337 * vsprintf.c: Include "ansidecl.h" earlier, rely on
338 ANSI_PROTOTYPES and possibly include <stdarg.h>.
cbc0188b 339
ff773b85
DD
340 * Makefile.in: Regenerate dependencies.
341
bb325820
DD
3422003-04-15 DJ Delorie <dj@redhat.com>
343
344 * maint-tool (deps): Scan for headers in $srcdir also.
345
258a4893
DD
3462003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
347
348 PR target/10338
349 PR bootstrap/10198
350 PR bootstrap/10140
351 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
352 __mempcpy.
353 * regex.c (regerror): Likewise.
354
ff773b85
DD
3552003-04-14 Roger Sayle <roger@eyesopen.com>
356
357 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
358 * memchr.c: Likewise.
359 * strcasecmp.c: Likewise.
360 * strncasecmp.c: Likewise.
361 * strncmp.c: Likewise.
362 * xatexit.c: Likewise.
363 * xmalloc.c: Likewise.
364
365 * copysign.c: Use traditional function declaration instead of DEFUN.
366 * sigsetmask.c: Likewise.
367
368 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
369 * memset.c: Likewise.
370
371 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
372 * memmove.c: Likewise.
373
eec539c7
DD
3742003-04-14 Roger Sayle <roger@eyesopen.com>
375
376 * strdup.c (strdup): Tweak implementation to use memcpy.
377
daf7c4ad
DD
3782003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
379
380 * configure.in (HAVE_UINTPTR_T): Always define.
381 * configure: Regenerated.
382
aa072e59
AO
3832003-03-23 Alexandre Oliva <aoliva@redhat.com>
384
385 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
386 instead of $$CC alone.
387 (install_to_tooldir): Use it.
388
f77ed96c
DD
3892003-17-03 Jan Hubicka <jh@suse.cz>
390
391 * hashtab.c (htab_traverse_noresize): Break out from ...
392 * hashtab.c (htab_traverse): ... here.
393
2336e177
DD
3942003-12-03 Jan Hubicka <jh@suse.cz>
395
396 * hashtab.c (htab_expand): Fix warning.
397
398 * hashtab.c (htab_expand): Compute the size of hashtable based
399 on the number of elements actually used.
400 (htab_traverse): Call htab_expand when table is too empty.
401
d8cbbf95
DD
4022003-03-11 Carlo Wood <carlo@gnu.org>
403
404 * cplus-dem.c (demangle_integral_value): Correction to reflect
405 patch of 2002-01-10 in order to also make negative multi-digits
406 without leading underscore work.
407
a01fefeb
DD
4082003-03-03 Mark Mitchell <mark@codesourcery.com>
409
410 * cplus-dem.c: Add license exception to copyright notice.
411
638ceb1a
DD
4122003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
413
414 * physmem.c: Formatting changes from upstream.
415
ef803806
DD
4162003-02-24 Danny Smith <dannysmith@users.source.forge.net>
417
418 * physmem.c (physmem_total): Add _WIN32 support.
419 (physmem_available): Likewise.
420
181fa229
DD
4212003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
422
423 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
424 GSI_PHYSMEM.
425 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
426
cc529274
DD
4272003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
428
429 * configure.in: Check for sys/systemcfg.h and
430 _system_configuration.
431 * physmem.c: Add support for AIX. Tweek formatting as per
432 upstream coreutils beta.
433
4342003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
435 Richard Earnshaw <rearnsha@arm.com>
436 Geoffrey Keating <geoffk@apple.com>
cbc0188b 437
cc529274
DD
438 * configure.in: Check for sys/sysctl.h and sysctl.
439 * physmem.c: Add support for *bsd and darwin.
440 * Makefile.in: Generate depedency for physmem.o.
441
192cbe66
DD
4422003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
443
444 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
445 Tru64 UNIX.
446 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
447 Tru64 UNIX.
448
449 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
450 machine/hal_sysinfo.h, sys/table.h.
451 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
452 * configure, config.in: Regenerate.
453
ff773b85
DD
4542003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
455
456 * configure.in: Check for sys/sysmp.h and sysmp.
457 * physmem.c: Pull upstream copy, add support for irix6.
458
459 * config.in, configure: Regenerated.
460
900d2082
DD
4612003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
462
463 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
464 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
465 pstat_getdynamic.
cbc0188b 466
4938384a
DD
4672003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
468
469 * Makefile.in (CFILES): Add physmem.c.
470 (REQUIRED_OFILES): Add physmem.o.
471 * configure.in: Check for sys/pstat.h.
472 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
473 * physmem.c: New file, copied from textutils.
474
475 * config.in, configure: Regenerated.
476
ba61a412
DJ
4772003-02-20 Daniel Jacobowitz <drow@mvista.com>
478
479 * Makefile.in (CFILES): Add lrealpath.c.
480 (REQUIRED_OFILES): Add lrealpath.o.
481 (lrealpath.o): Add rule.
482 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
483 * configure.in: Add realpath and canonicalize_file_name to
484 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
485 for canonicalize_file_name.
486 * lrealpath.c: New file.
487 * make-relative-prefix.c: Update documentation.
488 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
489 * config.in: Regenerated.
490 * configure: Regenerated.
491 * functions.texi: Regenerated.
492
25dfe0ac
DD
4932003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
494
495 * cplus_dem.c: Fix typo: intializes -> initializes.
496
8b90eef4
AO
4972003-02-20 Alexandre Oliva <aoliva@redhat.com>
498
499 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
500 config.status.
501 * configure: Rebuilt.
502
fcd7c7c9
DD
5032003-02-13 Daniel Jacobowitz <drow@mvista.com>
504
505 Fix PR c++/7612.
506 * cplus-dem.c (demangle_signature): Call string_delete.
507 Remove extra string_init.
508 (demangle_arm_hp_template): Call string_delete instead of
509 string_clear. Add missing string_delete call.
510 (demangle_qualified): Add missing string_delete call.
511 (do_type): Remove unused variable btype. Add missing string_delete
512 call. Call string_delete instead of string_clear.
513 (demangle_fund_type): Move variable btype inside of the switch
514 statement. Add missing string_delete call.
515 (do_arg): Call string_delete instead of string_clear. Remove extra
516 string_init.
517 (demangle_nested_args): Free work->previous_argument.
518
073c427b
DD
5192003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
520
521 * acconfig.h: New file. Add uintptr_t.
522 * config.in: Regenerated.
523
f8bd3000
DD
5242003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
525
526 * libiberty.texi: Update to GFDL 1.2.
527
85b9a938
DD
5282003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
529
530 * Makefile.in (libiberty_topdir): New subst.
531 (mkinstalldirs): Redefine in terms of the above.
532 * configure.in: AC_SUBST it.
533 * configure: Regenerate.
534
578460f2
AO
5352003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
536
537 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
538 (info-subdir, install-info-subdir, clean-info-subdir)
539 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
540 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
541 Pass $(FLAGS_TO_PASS).
542
7f285245
AO
5432003-01-27 Alexandre Oliva <aoliva@redhat.com>
544
545 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
546 /`$$CC -print-multi-os-directory`.
547
5f9624e3
DJ
5482003-01-26 Daniel Jacobowitz <drow@mvista.com>
549
550 * hashtab.c (htab_create_alloc_ex): New function.
551 (hatab_set_functions_ex): New function.
552 (htab_delete, htab_expand): Support alternate allocation functions.
553
9c2259b8
DD
5542003-01-24 Christopher Faylor <cgf@redhat.com>
555
556 * configure.in: Remove special pex-cygwin consideration.
557 * configure: Regenerate.
558 * pex-cygwin.c: Remove.
559 * Makefile.in: Remove pex-cygwin.[co] lines.
560
5a17353c
DD
5612003-01-24 Zack Weinberg <zack@codesourcery.com>
562
563 * Makefile.in (CFILES): Add pex-*.c.
564 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
565 (CONFIGURED_OFILES): Add pex-*.o.
566 (TEXIFILES): Add pexecute.txh.
567 (pexecute.o): Delete rule.
568 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
569 pex-unix.o, pex-win32.o): New rules.
570 * configure.in: Change AC_INIT argument to xmalloc.c.
571 Compute appropriate pexecute implementation and substitute it
572 as @pexecute@.
573
574 * pexecute.c: Split up into...
575 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
576 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
577 new files.
578
579 * functions.texi: Regenerate.
580 * configure: Regenerate.
581
eed2b28c
DD
5822003-01-20 Josef Zlomek <zlomekj@suse.cz>
583
584 * hashtab.c (htab_expand): Fix allocation of new entries.
585
27a39a5f
DD
5862003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
587
588 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
589
590 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
591 mkinstalldirs command.
592
b51c1553
DD
5932002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
594
595 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
596 Define for hosts with HOST_EXECUTABLE_SUFFIX.
597
756954c3
DD
5982002-11-24 Nick Clifton <nickc@redhat.com>
599
600 * make-relative-prefix.c (make_relative_prefix): Ensure return
601 string is empty before using strcat to construct it.
602
2a80c0a4
DD
6032002-11-22 Daniel Jacobowitz <drow@mvista.com>
604
605 * Makefile.in: Add make-relative-prefix.c.
606 * make-relative-prefix.c: New file.
607 * functions.texi: Rebuilt.
608
768b20d8
JJ
6092002-11-16 Jakub Jelinek <jakub@redhat.com>
610
611 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
612 used with arguments in traditional C' warnings.
613
f52d1d64
JJ
6142002-10-16 Jakub Jelinek <jakub@redhat.com>
615
616 * config.table: Use mh-s390pic for s390x too.
617
0d3deb8d
DD
6182002-10-06 Andreas Jaeger <aj@suse.de>
619
620 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
621 variable and of strict-aliasing warning.
622 (grow_vect): Use char as first parameter.
623
1b67de92
DD
6242002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
625
626 * Makefile.in (all): Fix multilib parallel build.
627
585cc78f
DD
6282002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
629
630 * cp-demangle.c (demangling_new): Cast 0 to enum.
631 (demangle_char): Cast return of strdup to char *.
632 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
633 (is_gnu_v3_mangled_dtor): Likewise.
634 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
635 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
636 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
637 * md5.c (md5_process_bytes): Cast results back to const void *.
638 (md5_process_block): Add cast to const md5_uint32 *.
639 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
640 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
641 unsigned short.
642 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
643 to void *.
644 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
645
e21b0cc1
NC
6462002-09-19 Nick Clifton <nickc@redhat.com>
647
648 * README: Update email addresses for bugs and patches.
649
a54ba43f
DD
6502002-09-10 Mike Stump <mrs@apple.com>
651
652 * splay-tree.c (splay_tree_successor): Fix comments.
653
6542002-09-11 Zack Weinberg <zack@codesourcery.com>
655
656 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
657 * testsuite/Makefile.in: Adjust for test-demangle.
658 * testsuite/regress-demangle: Deleted.
659 * testsuite/test-demangle.c: New file.
660 * testsuite/demangle-expected: Change \$ to $ throughout, now that
661 this file is not being read by a shell script.
662
01cea699
DD
6632002-09-05 Roger Sayle <roger@eyesopen.com>
664
665 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
666
a2832523
DD
6672002-08-07 DJ Delorie <dj@redhat.com>
668
669 * regex.c (re_error_msgid): Just use a simple array of strings.
670 (re_compile_pattern): Compensate.
671 (re_comp): Likewise.
672 (re_comp): Likewise.
673 (regerror): Likewise.
674
1e3f0be0
DD
6752002-07-29 Neil Booth <neil@daikokuya.co.uk>
676
677 * cplus-dem.c (PREPEND_BLANK): Remove.
678
b851d07b
DD
6792002-07-10 Jason Merrill <jason@redhat.com>
680
681 * cp-demangle.c (demangle_identifier): Support extended Unicode
682 characters.
683
2a9dffbf
DD
6842002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
685
686 * cp-demangle.c (demangle_v3_with_details): Wrap in
687 !defined IN_GLIBCPP_V3.
688
793011ca
DD
6892002-07-01 Mark Mitchell <mark@codesourcery.com>
690
691 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
692 Set it for the "st" operator.
693 (demangle_expression): Handle expressions with types as arguments.
694
b39b76b8
DD
6952002-06-30 Douglas Rupp <rupp@gnat.com>
696
697 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
698 * Makefile.in (OUTPUT_OPTION): Use.
699
4748c6d8
DD
7002002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
701
702 * Makefile.in (install_to_libdir): Add $(DESTDIR).
703 (install_to_tooldir): Likewise.
704
f9c3326a
DD
7052002-06-17 Douglas Rupp <rupp@gnat.com>
706
707 * lbasename.c: Add 2002 to copyright.
708 (IS_DIR_SEPARATOR): Remove VMS junk.
709
18893690
DD
7102002-06-05 Geoffrey Keating <geoffk@redhat.com>
711
712 * hashtab.c (htab_create): New stub function for backward
713 compatibility.
714 (htab_try_create): Likewise.
715
7162002-06-03 Geoffrey Keating <geoffk@redhat.com>
717
718 * hashtab.c (htab_create): Delete.
719 (htab_try_create): Delete.
720 (htab_create_alloc): New.
721 (htab_delete): Support user-specified memory allocation.
722 (htab_expand): Likewise.
723
7242002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
725
726 * configure.in: Fix typo in the code checking for sys_errlist.
727 * configure: Regenerated.
728
9296c8b2
DD
7292002-05-13 Andreas Schwab <schwab@suse.de>
730
731 * config.table: Use mh-x86pic also for x86-64.
732
52d98c2d
DD
7332002-05-08 Alexandre Oliva <aoliva@redhat.com>
734
735 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
736 script entry, and set LD to it when configuring multilibs.
737 * configure: Rebuilt.
738
cafa3917
DD
7392002-05-07 Mark Mitchell <mark@codesourcery.com>
740
741 * configure.in (AC_TYPE_PID_T): Use it.
742 * configure: Regenerated.
743 * getruntime.c: Include <sys/types.h>.
744 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
745
b1c933fc
RH
7462002-04-09 Richard Henderson <rth@redhat.com>
747
748 * hashtab.c (higher_prime_number): Use 7 as minimum.
749 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
750 (htab_find_slot_with_hash): Likewise.
751
0c4460bb
DD
7522002-04-01 Phil Edwards <pme@gcc.gnu.org>
753
754 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
755 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
756 not compile if IN_GLIBCPP_V3 defined.
757 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
758
f2160d2b
DD
7592002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
760
3ebf1f59 761 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
762 if it is NULL.
763
7dd4d42a
DD
7642002-03-27 DJ Delorie <dj@redhat.com>
765
766 * hex.c: Add documentation.
767 (_hex_value): Provide non-ASCII empty table.
768 (hex_init): Initialize the non-ASCII table.
769 * functions.texi: Regenerate.
770
38e57a35
DD
7712002-03-27 Mark Mitchell <mark@codesourcery.com>
772
773 * dyn-string.c: Add libgcc exception to copyright notice.
774
cfed0715
DD
7752002-03-26 H.J. Lu (hjl@gnu.org)
776
777 * config.table: Support --with-build-subdir.
778 * configure.in: Likewise.
779 * configure: Rebuild.
780
1504972f
DD
7812002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
782
783 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
784 seen.
785
35efcd67
DD
7862002-03-12 Mark Mitchell <mark@codesourcery.com>
787
788 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
789 notice.
790
dabc64ea
DD
7912002-03-11 Douglas B Rupp <rupp@gnat.com>
792
793 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
794
3ddbd84c
JB
7952002-03-06 Jim Blandy <jimb@redhat.com>
796
797 * splay-tree.c (splay_tree_xmalloc_allocate,
798 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
799 prototyped definitions. Mark `data' arguments as unused.
800
efdab807
AC
8012002-03-06 Andrew Cagney <ac131313@redhat.com>
802
803 * floatformat.c (floatformat_arm_ext_big): Delete definition.
804
50d4562d
DD
8052002-03-04 Phil Edwards <pme@gcc.gnu.org>
806
807 * configure.in: Add --enable-install-libiberty option.
808 * Makefile.in (INSTALLED_HEADERS): New variable.
809 (install_to_libdir): Possibly also copy headers.
810 * configure: Regenerated.
811
8122002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
813
814 * xmalloc.c (xmalloc_fail): Clarify error message further.
815
6e9980f5
DD
8162002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
817
818 * xmalloc.c (xmalloc_fail): Clarify error message.
819
18893690 8202002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
821
822 * splay-tree.c (splay_tree_xmalloc_allocate,
823 splay_tree_xmalloc_deallocate): New functions.
824 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
825 above functions and a dummy data pointer.
826 (splay_tree_new_with_allocator): New function.
827 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
828 splay_tree_remove): Use the splay tree's allocation and
829 deallocation functions.
830
59ea9fe7
DD
8312002-02-19 Scott Snyder <snyder@fnal.gov>
832
833 * testsuite/demangle-expected: Add test case for infinite loop in
834 demangler.
835 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
836 if do_type() doesn't make any progress --- prevents an infinite
837 loop.
838
6f848550
DD
8392002-02-18 Carlo Wood <carlo@gnu.org>
840
841 PR c++/5390
842 * cplus-dem.c (demangle_integral_value): Accept multi-digit
843 numbers that do not start with an underscore; This is needed
844 for integer template parameters. This doesn't break anything
845 because multi-digit numbers are never followed by a digit.
846 * testsuite/demangle-expected: Corrected all mangled test
847 cases with multi-digit template parameters: g++ 2.95.x does
848 not generate underscores around these parameters.
849
44354ae1
DD
8502002-02-05 Jason Merrill <jason@redhat.com>
851
852 * cplus-dem.c (flags): Add DMGL_VERBOSE
853 (cplus_demangle_v3_p): Remove.
854 (demangle_it): Add DMGL_TYPES to passed flags.
855 * cp-demangle.c (cplus_demangle_v3_all): Remove.
856 (cplus_demangle_v3_type): Remove.
857 (cplus_demangle_v3): Add options parm.
858
42da15d6
DD
8592002-02-02 H.J. Lu (hjl@gnu.org)
860
861 * cp-demangle.c (cp_demangle_type): Do not protect with
862 IN_LIBGCC2.
863 (cplus_demangle_v3_all): New.
864 (cplus_demangle_v3): Call cplus_demangle_v3_all.
865 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
866
867 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
868 Initialized to cplus_demangle_v3.
869 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
870 of cplus_demangle_v3.
871 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
872 command line symbol.
873
874 * testsuite/regress-demangle: Pass the mangled name at the
875 command line.
876
b117c158
DD
8772002-02-01 H.J. Lu <hjl@gnu.org>
878
879 * cp-demangle.c (cp_demangle_type): Call demangling_new with
880 DMGL_GNU_V3.
881
c78d91b1
DD
8822002-01-31 Phil Edwards <pme@gcc.gnu.org>
883
884 * cp-demangle.c: Revert yesterday's change.
885
bef8b55d
DD
8862002-01-31 Adam Megacz <adam@xwt.org>
887
888 * gcc/libiberty/configure.in: Treat mingw the same as cywin
889 wrt HAVE_SYS_ERRLIST.
890
2c955b8b
DD
8912002-01-30 Phil Edwards <pme@gcc.gnu.org>
892
893 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
894 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
895 cp_demangle_type.
896 * testsuite/demangle-expected: New gnu-v3 test.
897
58b1717a
RH
8982002-01-22 Momchil Velikov <velco@fadata.bg>
899
900 * configure.in (variable detection): Use arrays of unspecified
901 size instead of plain integers.
902
cc096b71
DD
9032002-01-18 DJ Delorie <dj@redhat.com>
904
905 * Makefile.in (TESTLIB): New. This library is for future
906 testsuites.
907 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
908 break down by letter.
909 (REQUIRED_OFILES): List long-to-compile files first.
910 (maint-deps): New, target for updating dependencies.
911 (dependencies): Update.
912 * maint-tool: Add dependency-generating option.
913 * configure.in: Check for _doprnt even if we're not providing it.
914 * configure: Regenerate.
915
916 * _doprnt.c: Modifications to allow compiling on any platform.
917 * copysign.c: Likewise.
918 * putenv.c: Likewise.
919 * setenv.c: Likewise.
920 * vsprintf.c: Likewise.
921
9222002-01-15 Douglas B Rupp <rupp@gnat.com>
923
924 * mkstemps.c (mkstemps): On VMS, open temp file with option
925 that causes it to be deleted when closed.
926
20d54542
DD
9272002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
928
c23795e2
DD
929 * cp-demangle.c (long_options): Const-ify.
930 * cplus-dem.c (long_options): Likewise.
931
20d54542
DD
932 * cplus-dem.c (mystrstr): Delete. All callers changed to use
933 strstr instead.
934
f348a7b1
DD
9352001-12-31 Ira Ruben <ira@apple.com>
936
937 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
938 * configure: Regenerated.
939
d86cd745
DD
9402001-12-24 Douglas B. Rupp <rupp@gnat.com>
941
942 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
943 * configure: Regenerated.
944
ae533646
DD
9452001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
946
947 PR other/2719
948 * cplus-dem.c (consume_count): Treat negative count as an error.
949 * testsuite/demangle-expected: Added testcase.
950
c0eb281b
DD
951Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
952
953 * configure.in: Hardcode that vfork works on VMS host.
954 * configure: Regenerated.
955
2da4c07f
RH
9562001-12-06 Richard Henderson <rth@redhat.com>
957
958 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
959 (cplus_demangle): Support no_demangling.
960
24acd898
DD
9612001-11-27 Zack Weinberg <zack@codesourcery.com>
962
963 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
964 in libiberty context. Fix typo in leading comment.
965 * configure.in: Fix various AC_DEFINEs so autoheader works.
966 If any of vprintf, vsprintf, vfprintf is missing from libc,
967 then AC_REPLACE_FUNCS(_doprnt).
968
fec50157 9692001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 970 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
971
972 * Makefile.in (stamp-h): Depend on Makefile for proper
973 serialization.
974 (*-subdir): Depend on config.h for proper serialization.
975
5527febf
DD
9762001-11-26 DJ Delorie <dj@redhat.com>
977
978 * configure.in: Check for alloca.h (for regex.c and putenv.c).
979 * configure: Regenerate.
980 * config.h: Add HAVE_ALLOCA_H.
981
941d74a0
DD
9822001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
983
984 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
985 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
986 is available.
987
dc579051
DD
988Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
989
990 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
991 * configure.in (HAVE_UINTPTR_T): Test for system defining
992 uintptr_t and define HAVE_UINTPTR_T appropriately.
993 * regex.c (uintptr_t): Do not provide a definition if the
994 system provided one.
995
996 * regex.c (PREFIX): Provide an alternate definition for
997 non-ANSI/ISO compilers.
998 (ARG_PREFIX): Likewise.
999
1a78a35a
DD
10002001-11-12 Jim Meyering <meyering@lucent.com>
1001
1002 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
1003 this code would end up calling gettext even in packages built
1004 with --disable-nls.
1005 * getopt.c (_): Likewise.
1006 * regex.c (_): Likewise.
1007
4e55c4b6
DD
10082001-11-03 Alan Modra <amodra@bigpond.net.au>
1009
1010 * configure.in: Cope with missing makeinfo.
1011 * configure: Regenerate.
1012
d311a83a
DD
10132001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1014
1015 * hex.c (hex_init): Provide empty stub.
1016
1017 * hex.c (hex_init): Delete.
1018 (_hex_value): Const-ify and initialize at compile-time.
1019
3bc62f91
DD
10202001-10-19 H.J. Lu <hjl@gnu.org>
1021
1022 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
1023 necessary.
1024
5d852400
DD
10252001-10-17 DJ Delorie <dj@redhat.com>
1026
1027 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
1028 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 1029 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
1030 Improve manual formatting.
1031 * functions.texi: Regenerate.
1032
ba19b94f
DD
10332001-10-15 DJ Delorie <dj@redhat.com>
1034
1035 * Makefile.in (TEXIFILES): Add fnmatch.txh.
1036 (maint-undoc): New.
1037 maint-tool: Add "undoc" tool.
1038 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
1039 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
1040 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
1041 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
1042 documentation.
1043 * fnmatch.txh: New.
1044 * functions.texi: Regenerate.
1045
56056af5
DD
10462001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
1047
1048 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
1049 * strtod.c: Use "ISO C" instead of "ANSI C".
1050 * functions.texi: Regenerate.
1051
99b58139
DD
10522001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
1053
1054 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
1055 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
1056 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
1057 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
1058 spelling. Give names to function arguments in documentation. Use
1059 (void) prototypes in documentation.
1060 * functions.texi: Regenerate.
1061
e6450fe5
DD
10622001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1063
1064 * argv.c (buildargv, tests, main): Const-ify.
1065 * cp-demangle.c (operator_code): Likewise.
1066 * cplus-dem.c (optable, libiberty_demanglers,
1067 cplus_demangle_set_style, cplus_demangle_name_to_style,
1068 print_demangler_list): Likewise.
1069 * hashtab.c (higher_prime_number): Likewise.
1070 * strcasecmp.c (charmap): Likewise.
1071 * strerror.c (error_info, strerror, main): Likewise.
1072 * strncasecmp.c (charmap): Likewise.
1073 * strsignal.c (signal_info): Likewise.
1074
da191b5b
DD
10752001-09-29 DJ Delorie <dj@redhat.com>
1076
1077 * configure: Regenerate.
1078
916aaa12
DD
10792001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1080
1081 * concat.c: Include stdlib.h.
1082
fa9f0e33
DD
10832001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
1084
1085 * libiberty.texi: (Top level): Add syncodeindex pg. Add
1086 @dircategory and @direntry directives. Add @finalout.
1087 (many nodes): Lose the next,prev,up pointers on the @nide line.
1088 (Using, Supplemental Functions, Replacement Functions): Fix
1089 markup.
1090 (Functions): Move around, to allow makeinfo to build the manual
1091 without next,prev,up pointers in thye node lines.
1092 (Licenses): Fix typos.
1093
1094 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
1095 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
1096 * functions.texi: Regenerate.
1097
1098 * copying-lib.texi: Lose the next,prev,up pointers on the @node
1099 line.
1100
11012001-09-27 DJ Delorie <dj@redhat.com>
1102
1103 * configure.in: Don't use in-tree texinfo, because libiberty must
1104 be built before it. Check for makeinfo version 4 or higher.
1105 * functions.texi: Regenerate.
1106
39423523
DD
11072001-09-20 DJ Delorie <dj@redhat.com>
1108 Phil Edwards <pedwards@disaster.jaj.com>
1109
1110 * configure.in (MAKEINFO, PERL): Detect these.
1111 (--enable-maintainer-mode): Add.
1112 * configure: Regenerate.
1113 * Makefile.in (MAKEINFO, PERL): Define.
1114 (libiberty.info, libiberty.dvi, libiberty.html): New.
1115 (CFILES): Add bsearch.c.
1116 (CONFIGURED_OFILES): New, list of objects configure might add.
1117 (maint-missing, maint-buildall): New, for maintainers only.
1118 (clean, mostlyclean): Add info/dvi/html files.
1119 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
1120 * gather-docs: New, for maintainers.
1121 * maint-tool: New, for maintainers.
1122 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
1123 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
1124 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
1125 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
1126 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
1127 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
1128 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
1129 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
1130 documentation.
1131
66c94e19
DD
11322001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1133
1134 * concat.c (reconcat): Fix for traditional C.
1135
99ee3a8f
DD
11362001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1137
1138 * concat.c (reconcat): New function.
1139
54c20242
DD
11402001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1141
1142 * concat.c (vconcat_length, vconcat_copy, concat_length,
1143 concat_copy, concat_copy2): New functions.
1144 (concat): Use vconcat_length/vconcat_copy.
1145
1146 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
1147 Define.
1148
843f21be
DD
11492001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1150
1151 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
1152 VA_FIXEDARG & VA_CLOSE.
1153
1154 * vasprintf.c: Check HAVE_STRING_H when including string.h.
1155 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
1156 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
1157
8a423cb3
DD
11582001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1159
1160 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
1161
dc676635
DD
11622001-08-23 Ulrich Drepper <drepper@redhat.com>
1163
1164 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
1165
11662001-08-23 Ulrich Drepper <drepper@redhat.com>
1167
1168 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1169 instead of mbrtowc.
1170 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1171 wcslen, and __wcscoll instead of wcscoll.
1172
f080c76d
DD
11732001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1174
3ebf1f59
DD
1175 * fibheap.c (fibheap_init, fibnode_init): Remove.
1176 (fibheap_new, fibnode_new): Use xcalloc to allocate and
1177 initialize memory.
1178 (fibheap_insert): Remove check for node allocation failure.
f080c76d 1179
f01b59ed
DD
11802001-08-21 Richard Henderson <rth@redhat.com>
1181
1182 * Makefile.in (fibheap.o): Depend on config.h.
1183 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
1184 functions for inlining.
1185
1186Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
1187
1188 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
1189 hosting on cygwin.
1190 * configure: Regenerate.
1191
eb828599
AC
11922001-08-20 Andrew Cagney <ac131313@redhat.com>
1193
1194 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
1195 HARRIS_FLOAT_FORMAT.
1196 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
1197 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
1198 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
1199 (floatformat_m88110_harris_ext): New float formats.
1200
4e55c4b6
DD
12012001-08-20 Daniel Berlin <dan@cgsoftware.com>
1202
1203 * fibheap.c: New file. Fibonacci heap.
1204
1205 * Makefile.in (CFILES): Add fibheap.c.
1206 (REQUIRED_OFILES): Add fibheap.o.
1207 (fibheap.o): Add dependencies for fibheap.o.
1208
68a41de7
DD
12092001-08-17 Christopher Faylor <cgf@cygnus.com>
1210
1211 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
1212 * configure: Regenerate.
1213
8fc34799
DD
12142001-08-16 Richard Henderson <rth@redhat.com>
1215
1216 * hashtab.c (htab_hash_string): New.
1217
16bad250
AC
12182001-08-13 Andrew Cagney <ac131313@redhat.com>
1219
1220 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
1221 name.
1222
a9022147
DD
12232001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
1224
1225 * regex.c (wcs_regex_compile): Use appropriate string
1226 to compare with collating element.
1227 Fix the padding for the alignment.
1228
8aefe91a 12292001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
1230
1231 * lbasename.c (lbasename): Change function definition to return a
1232 const char pointer.
1233
e7e9b069
DD
12342001-08-07 Jason Merrill <jason_merrill@redhat.com>
1235
1236 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
1237 for".
1238
cc5144f8
DD
12392001-08-03 Richard Henderson <rth@redhat.com>
1240
1241 * Makefile.in (concat.o): Depend on config.h.
1242
8aefe91a
DD
12432001-07-30 Andreas Jaeger <aj@suse.de>
1244
1245 * concat.c: Include "config.h".
1246
86710ce2
DD
12472001-07-30 Andreas Jaeger <aj@suse.de>
1248
1249 * regex.c: Declare wcs functions only if compiling with
1250 MBS_SUPPORT.
1251 Don't use #elif for traditional C.
1252
12532001-07-23 Ulrich Drepper <drepper@redhat.com>
1254
1255 * regex.c: Revamp memory allocation for WCHAR functions to
1256 not use too much stack.
1257
12582001-07-30 Andreas Jaeger <aj@suse.de>
1259
1260 * regex.c: Declare wcs functions only if compiling with
1261 MBS_SUPPORT.
1262 Don't use #elif for traditional C.
1263
a5d8f731
DD
12642001-07-25 Daniel Jacobowitz <drow@mvista.com>
1265
1266 * Makefile.in (regex.o): Add dependency on config.h.
1267
6ad8a379
DD
12682001-07-18 Andreas Schwab <schwab@suse.de>
1269
1270 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
1271 underscore character.
1272
12732001-07-18 Ulrich Drepper <drepper@redhat.com>
1274
1275 * regex.c: Limit string length printed in debug messages to 100
1276 chars.
1277
12782001-07-18 Andreas Jaeger <aj@suse.de>
1279
1280 * regex.c: Place under LGPL version 2.1.
1281
2a6ef469
DD
12822001-07-10 Jeff Johnston <jjohnstn@redhat.com>
1283
1284 * Makefile.in: Add support for regex code.
1285 * regex.c: New file.
1286
7b78baae
DD
12872001-07-05 Mark Klein <mklein@dis.com>
1288
1289 * Makefile.in: Add ffs.c dependency.
1290 * configure.in: Add ffs.c.
1291 * ffs.c: New file.
1292
926150e2
DD
12932001-06-18 Richard Henderson <rth@redhat.com>
1294
1295 * concat.c: Include <sys/types.h>.
1296
11f6f21d
DD
12972001-06-11 Loren J. Rittle <ljrittle@acm.org>
1298
1299 bootstrap/3106
1300 * strerror.c (sys_nerr): Hide the OS header version.
1301 * strsignal.c (sys_nsig): Likewise.
1302
d42dae6c
DD
13032001-06-10 Richard Henderson <rth@redhat.com>
1304
1305 * concat.c: Include string.h. Fix int vs size_t usage.
1306 Simplify the iteration loops. Use memcpy.
1307
e05c6d27
DD
13082001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1309
1310 * partition.c: Fix misspelling of `implementation'.
1311
b50c4073
DD
13122001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1313
1314 * md5.c (md5_init_ctx): Declare constants as unsigned.
1315 (md5_process_block): Likewise.
1316
457161bf
DD
13172001-05-07 Zack Weinberg <zackw@stanford.edu>
1318
1319 * cp-demangle.c (demangle_v3_with_details,
1320 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
1321 function definition.
1322 * ternary.c: Use K+R style function definitions. Use PTR, not
1323 void *. Make arguments constant where possible.
1324
e00bc6a7
DD
13252001-05-07 Mark Mitchell <mark@codesourcery.com>
1326
1327 * splay-tree.h (splay_tree_max): New function.
1328 (splay_tree_min): Likewise.
1329
400ee7e1
DB
13302001-04-15 Daniel Berlin <dan@cgsoftware.com>
1331
1332 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
1333
1334 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 1335
d9697354
DD
13362001-04-03 Zack Weinberg <zackw@stanford.edu>
1337
1338 * make-temp-file.c (try): Inline.
1339
a7bf099b
DD
13402001-02-28 Richard Henderson <rth@redhat.com>
1341
1342 * Makefile.in (make-temp-file.o): Depend on config.h.
1343
30a1def2
DD
13442001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1345
1346 * memchr.c (memchr): Adjust condition to avoid infinite loop.
1347
079c672a
DD
13482001-03-23 Jakub Jelinek <jakub@redhat.com>
1349
1350 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
1351 `_' not followed by a digit is invalid.
1352
a88e356a
JB
13532001-03-22 Jim Blandy <jimb@redhat.com>
1354
1355 * cp-demangle.c (string_list_delete): Use dyn_string_delete
1356 instead of free, to free the contents as well as the string
1357 structure.
1358
1dffcc66
DD
13592001-03-21 Zack Weinberg <zackw@stanford.edu>
1360
1361 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
1362 Don't default P_tmpdir to anything. Try /var/tmp before
1363 /usr/tmp.
1364
13652001-03-20 Zack Weinberg <zackw@stanford.edu>
1366
1367 * choose-temp.c: Split off make_temp_file, and the code
1368 duplicated between it and choose_temp_base, into...
1369 * make-temp-file.c: ... here; new file.
1370
1371 * Makefile.in (CFILES): Add make-temp-file.c.
1372 (REQUIRED_OFILES): Add make-temp-file.o.
1373
e61231f1
JB
13742001-03-20 Jim Blandy <jimb@redhat.com>
1375
1376 * cp-demangle.c (struct demangling_def): New fields:
1377 is_constructor and is_destructor.
1378 (demangling_new): Initialize them.
1379 (demangle_ctor_dtor_name): Set them, if we detect a constructor
1380 or destructor.
1381 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
1382 is_gnu_v3_mangled_dtor): New functions.
1383
a9cbbe6d
DD
13842001-03-20 Jason Merrill <jason@redhat.com>
1385
1386 * cplus-dem.c (main): Skip initial $.
1387
b1e51b3c
DD
13882001-03-15 Michael Meissner <meissner@redhat.com>
1389
1390 * hashtab.c (higher_prime_number): Silence warning that 4294967291
1391 might be a signed integer under pre-ISO C systems.
1392
8aa30e60 13932001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 1394 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 1395
8aa30e60
DD
1396 * libiberty/lbasename.c: New file.
1397 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 1398
30673bf5
DD
13992001-03-06 Zack Weinberg <zackw@stanford.edu>
1400
1401 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
1402 * configure.in: Replace all alloca logic with a simple use of
1403 the above new macro.
1404 * config.table: Kill *-*-beos* entry.
1405 * config/mh-beos: Delete.
1406 * configure, config.in: Regenerate.
fa03f0a7 1407
30673bf5
DD
1408 * Makefile.in (ALLOCA, HFILES): Kill.
1409 (REQUIRED_OFILES): Add alloca.o.
1410 (alloca.o): Depend on libiberty.h.
1411 (argv.o): Don't depend on alloca-conf.h.
1412 * alloca-conf.h: Delete.
1413 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
1414 blocks. Provide the C alloca unconditionally. Use PTR where
1415 appropriate. Make i00afunc static.
1416 * argv.c: Don't include alloca-conf.h.
fa03f0a7 1417
5810f394
DD
14182001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1419
1420 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 1421
a9db032a
DD
14222001-02-16 Loren J. Rittle <ljrittle@acm.org>
1423
1424 * cplus-dem.c (main): Initialize style.
fa03f0a7 1425
8aefe91a
DD
14262001-02-02 Phil Edwards <pme@sources.redhat.com>
1427
1428 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
1429
bc9bf259
DD
14302001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
1431
1432 Add support for Java demangling under the v3 ABI:
1433 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
1434 (struct demangling_def): Add `style' field.
1435 (demangling_new): New parameter `style'. Set it in demangling_t.
1436 (demangle_prefix): Use NAMESPACE_SEPARATOR.
1437 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
1438 (cp_demangle): New parameter `style'. Pass it to demangling_new().
1439 (main): Call cp_demangle with extra parameter.
1440 (java_demangle_v3): New function.
1441 (java_builtin_type_names): New. Table of primitive type names used
1442 for Java demangling.
1443 (demangle_builtin_type): Look up in java_builtin_type_names if doing
1444 Java output.
1445 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
1446 demangling.
1447 (long_options): Remove obsolete `java' option.
1448 (main): Remove explicit handling of `java' option. Instead, pass style
1449 parameter in cplus_demangle flags as gdb does.
1450 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 1451
f6528837
DD
14522000-12-29 DJ Delorie <dj@redhat.com>
1453
1454 * fnmatch.c: Make the note about the origins of this file more
1455 accurate, at least until we can sync with glibc.
1456 * getopt.c: Ditto.
1457 * getopt1.c: Ditto.
1458 * md5.c: Ditto.
1459 * obstack.c: Ditto.
9d969b59 1460
c6da642e
DD
14612000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1462
1463 * bsearch.c: New file.
1464 * configure.in (funcs): Add bsearch.
1465 (AC_CHECK_FUNCS): Likewise.
1466 * configure, config.in: Regenerate.
1467
ae7d06ad 14682000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
1469
1470 * safe-ctype.c: #include "ansidecl.h".
1471 * strtod.c: Likewise.
1472
ae7d06ad 14732000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
1474
1475 * strtoul.c: Include safe-ctype.h, not ctype.h.
1476
ac424eb3
DD
14772000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1478
1479 * safe-ctype.c: New file.
1480 * Makefile.in (CFILES): Add safe-ctype.c.
1481 (REQUIRED_OFILES): Add safe-ctype.o.
1482
1483 * argv.c: Define ISBLANK and use it, not isspace.
1484 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
1485 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
1486 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
1487 before calling TOLOWER(c)/TOUPPER(c).
1488
4415a860
DD
14892000-12-07 Mike Stump <mrs@wrs.com>
1490
1491 * Makefile.in (distclean): When cleaning, remove testsuite.
1492
849ee224
DD
14932000-12-05 Jason Merrill <jason@redhat.com>
1494
1495 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1496 name before allocating the dyn_string.
1497
ae7d06ad 14982000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
1499
1500 * cp-demangle.c: s/new_abi/v3/.
1501 * cplus-dem.c: Likewise.
1502 (current_demangling_style): Now auto_demangling.
1503 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 1504 (main): Use standard symbol chars for auto_demangling.
e49a569c 1505
ae7d06ad 15062000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
1507
1508 * hashtab.c (higher_prime_number): Use a table, rather than a
1509 seive, to find the next prime.
ae7d06ad
NC
1510
15112000-11-22 H.J. Lu <hjl@gnu.org>
1512
1513 * cplus-dem.c (main): Handle gnat_demangling.
1514
15152000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
1516
1517 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1518 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1519 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1520 argument form of AC_DEFINE in dummy definitions block. Use
1521 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1522 in dummy block. Preload cache variables instead of bypassing
1523 tests, where possible.
1524 * acconfig.h: Removed.
ae7d06ad 1525
2ea7befd
DD
1526 * xmalloc.c (xmalloc_failed): New function, does error
1527 reporting on failed allocation.
1528 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 1529
f1775526
HPN
15302000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1531
1532 * cplus-dem.c (cplus_demangle): Fix formatting.
1533 (grow_vect): Ditto.
1534 (ada_demangle): Ditto.
1535 (internal_cplus_demangle): Ditto.
1536 (mop_up): Ditto.
1537
15382000-11-21 H.J. Lu <hjl@gnu.org>
1539
1540 * cplus-dem.c (main): Handle java_demangling.
1541
ae7d06ad 15422000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
1543
1544 * cplus-dem.c (grow_vect): Prototype.
1545 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1546
5dd42ef4
HPN
15472000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1548
1549 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1550 parameter `option'.
1551
296731c1
DD
15522000-11-15 Kenneth Block <kenneth.block@compaq.com>
1553
8944fb9d 1554 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
1555 be used in GCC.
1556
6e53a714 15572000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 1558
5dd42ef4 1559 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
1560 list.
1561
99a4c1bd
HPN
15622000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1563
1564 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
1565 xcalloc depending on htab->return_allocation_failure. Return zero
1566 if calloc fails.
99a4c1bd
HPN
1567 (htab_create): Update comment to cover memory allocation.
1568 (htab_try_create): New.
1569 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 1570 Update comment to cover this.
99a4c1bd 1571
e0f3df8f
HPN
15722000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1573
1574 * hashtab.c: Change void * to PTR where necessary.
1575 (htab_create, htab_expand): Correct formatting of comment before
1576 function.
1577
ae7d06ad 15782000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
1579
1580 * cp-demangle.c (string_list_def): Add caret_position and comments.
1581 (result_caret_pos): New macro.
1582 (result_append_string): Rename to...
1583 (result_add_string): ... this, and insert at caret position.
ae7d06ad 1584 Rename throughout.
59666b35
DD
1585 (result_append): Rename to...
1586 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 1587 throughout.
59666b35
DD
1588 (result_append_char): Rename to...
1589 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 1590 throughout.
59666b35
DD
1591 (result_append_space): Remove.
1592 (string_list_new): Initialize caret position.
1593 (result_add_separated_char): Use caret position.
1594 (result_get_caret): New funtion.
1595 (result_set_caret): Likewise.
1596 (result_shift_caret): Likewise.
1597 (result_previous_char_is_space): Likewise.
1598 (substitution_start): Use caret position.
1599 (substitution_add): Likewise.
1600 (demangling_new): Initialize caret position.
1601 (demangle_encoding): Use caret position.
ae7d06ad 1602 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
1603 (demangle_type_ptr): Use switch statement. Handle pointers to
1604 arrays. Don't use result_append_space. Use caret position.
1605 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
1606 call to demangle_array_type.
1607 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 1608
ae7d06ad 16092000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1610
1611 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
1612
16132000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1614
1615 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
1616
16172000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1618
1619 * splay-tree.c: #include <stdio.h>.
1620
16212000-09-14 Hans-Peter Nilsson <hp@axis.com>
1622
1623 * testsuite/demangle-expected: Add two tests for anonymous
1624 namespaces.
1625 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1626
16272000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1628
1629 * splay-tree.c (splay_tree_predecessor): New function.
1630 (splay_tree_successor): Likewise.
ae7d06ad
NC
1631
16322000-09-10 Hans-Peter Nilsson <hp@axis.com>
1633
1634 * testsuite/demangle-expected: Add four tests for type_info
1635 mangling.
1636 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1637 for a non-template non-qualified type_info function or node.
1638
16392000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1640
1641 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
1642
16432000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1644
1645 * md5.c: #include "ansidecl.h".
1646
16472000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1648
1649 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1650 (demangle_type): Handle substitution candidates correctly in the
1651 face of special substitutions.
ae7d06ad
NC
1652
16532000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1654
1655 * cp-demangle.c (demangle_encoding): Rename variable.
1656 (demangle_name): Rename parameter. Handle return type
1657 suppression.
1658 (demangle_nested_name): Rename parameter.
1659 (demangle_prefix): Likewise. Change return type suppression.
1660 (demangle_unqualified_name): Add parameter. Flag constructors and
1661 conversion operators.
1662 (demangle_special_name): Fix comment.
1663 (demangle_type): Rename variable.
1664 (demangle_bare_function_type): Check for missing return type and
1665 parameter.
1666 (demangle_class_enum_type): Rename parameter.
1667 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
1668
16692000-08-31 DJ Delorie <dj@redhat.com>
1670
1671 * configure.in (Cygwin): special case cygwin only when we're
1672 building cygwin, not when we're hosting cygwin.
1673
16742000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1675
1676 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
1677 <expression>.
ae7d06ad
NC
1678
16792000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1680
1681 * cp-demangle.c (demangle_type_ptr): Increment position past
1682 pointer and reference characters.
ae7d06ad
NC
1683
16842000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1685
1686 * cp-demangle.c (demangle_nv_offset): New function.
1687 (demangle_v_offset): Likewise.
1688 (demangle_call_offset): Likewise.
1689 (demangle_special_name): Update thunk demangling to comply with
1690 ABI changes.
ae7d06ad
NC
1691
16922000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1693
1694 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1695 (substitution_def): Remove template_parm_number.
1696 (NOT_TEMPLATE_PARM): Remove.
1697 (result_insert_string): New macro.
1698 (result_insert): Likewise.
1699 (result_insert_char): Likewise.
1700 (substitution_add): Remove last parameter. Don't store template
1701 parm number.
1702 (BFT_NO_RETURN_TYPE): Define as NULL.
1703 (demangle_encoding): Adjust call to demangle_bare_function_type.
1704 (demangle_name): Adjust substitution. Adjust call to
1705 substitution_add.
1706 (demangle_prefix): Adjust call to substitution_add.
1707 (demangle_identifier): Handle anonymous namespaces.
1708 (demangle_operator_name): Change demangling of vendor-extended
1709 operator to match ABI changes.
1710 (demangle_type_ptr): Change parameters. Make recursive. Handle
1711 substitutions here.
1712 (demangle_type): Adjust calls to demangle_template_param,
1713 substitution_add, and demangle_type_ptr. Fix substitution of
1714 templated types.
1715 (demangle_function_type): Change parameter to a pointer.
1716 (demangle_bare_function_type): Likewise. Adjust insertion point.
1717 (demangle_template_param): Remove last parameter.
1718 (demangle_expr_primary): Remove unused variable. Adjust call to
1719 demangle_template_param.
1720 (is_mangled_char): Accept `$' and `.'.
1721 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1722 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
1723
17242000-08-31 Hans-Peter Nilsson <hp@axis.com>
1725
1726 * testsuite/demangle-expected: Add nine tests for
1727 underscore-after-number followed by five tests for name-signature
1728 delimiter.
1729
17302000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
1731
1732 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
1733
17342000-08-28 Jason Merrill <jason@redhat.com>
1735
1736 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1737 (CFILES): Add md5.c.
1738 * md5.c: New file.
1739
17402000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1741
1742 * cp-demangle.c (demangle_name): Initialize template_p in local
1743 name case. Don't re-add substitutions as candidates.
1744 (demangle_nested_name): Use <unqualified-name>.
1745 (demangle_prefix): Likewise. Don't add template names as
1746 substitution candidates twice, or re-add a substitution or the
1747 last prefix component.
1748 (demangle_local_name): Adjust output format.
ae7d06ad
NC
1749
17502000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1751
1752 * cp-demangle.c (result_add_separated_char): Change parameter to
1753 int.
1754 (substitution_add): Don't check for duplicates. Check if
1755 previously allocated size is zero.
1756 (demangle_name): Remove duplicate check for std substitution.
1757 Clear template flag appropriately.
1758 (demangle_prefix): Remove argument to demangle_substitution.
1759 Don't check that template flag is already set.
1760 (demangle_operator_name): Add pt operator.
1761 (demangle_type): Don't treat r as built-in type. Remove argument
1762 to demangle_substitution. Fix substitution candidate mechanics.
1763 Handle <template-template-parm>s. Improve comments.
1764 (demangle_template_param): Don't handle template arg lists here.
1765 (demangle_substitution): Remove parameter.
1766 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
1767
17682000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1769
1770 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
1771
17722000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1773
1774 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1775 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1776 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
1777
17782000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1779
1780 * cp-demangle.c (result_close_template_list): Remove function.
1781 (result_add_separated_char): New function.
1782 (result_open_template_list): New macro.
1783 (result_close_template_list): Likewise.
1784 (demangle_prefix): Don't set template_p if the
1785 prefix ends with a ctor name.
1786 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1787 (demangle_type): Check for template args after substitution.
1788 (demangle_template_args): Use result_open_template_list.
d3e85005 1789
ae7d06ad 17902000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 1791
ae7d06ad 1792 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 1793
ae7d06ad 17942000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
1795
1796 * config/mh-openedition.h: Added -DLE370 definition.
1797
a9f34fb6
JL
17982000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1799
1800 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1801 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1802 Cast program to 'char *' in errmsg_arg assignment.
1803 (PWAIT_ERROR): Define.
1804 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1805 to DJGPP's WIF* macros.
1806
90aaccd1 18072000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 1808 Jeff Law <law@cygnus.com>
90aaccd1 1809
ae7d06ad 1810 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 1811
90aaccd1 1812 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
1813 * rename.c: Include config.h, unistd.h
1814 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 1815
6ef554e3
HPN
18162000-07-24 Hans-Peter Nilsson <hp@axis.com>
1817
1818 * cplus-dem.c (work_stuff_copy_to_from): New.
1819 (delete_non_B_K_work_stuff): New.
1820 (delete_work_stuff): New.
1821 (mop_up): Break out work_stuff partly destruction to
1822 delete_non_B_K_work_stuff.
1823 (iterate_demangle_function): New.
1824 (demangle_prefix): Call iterate_demangle_function instead of
1825 demangle_function_name. Leave handling of name-signature
1826 __-delimiters to iterate_demangle_function.
1827 (demangle_integral_value): Strip an optional
1828 following underscore cautiously. Handle negative numbers.
1829
ae7d06ad 18302000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 1831
ae7d06ad 1832 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
1833 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1834
ae7d06ad
NC
18352000-07-21 Alex Samuel <samuel@codesourcery.com>
1836
1837 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1838 allocating ctor mangling.
1839 (demangle_array_type): Handle empty and non-constant array length.
1840
b1233257 18412000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
1842 Jeff Law <law@cygnus.com>
1843
1844 * configure.in (AC_CHECK_HEADERS): Add time.h.
1845 (AC_HEADER_TIME): Add check.
1846 * configure, config.in: Regenerate.
1847 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1848
1849 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1850 * configure, config.in: Regenerate.
1851 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1852 * strtol.c, strtoul.c: #include "config.h". Portably #include
1853 <limits.h> and/or <sys/param.h>.
1854 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 1855
7d3ffcaf
JL
1856 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1857 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1858 * configure, config.in: Regenerate.
1859 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1860
b1233257
JL
1861 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1862
ae7d06ad
NC
18632000-07-21 Mike Stump <mrs@wrs.com>
1864
1865 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
1866 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
1867
18682000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1869
1870 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1871
1872 * setenv.c (setenv): Initialize variable `ep'.
1873
1874 * sigsetmask.c (abort): Prototype.
1875
1876 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1877 __STDC__ for stdarg.h include.
1878 (int_vasprintf): Prototype.
1879 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1880 definition. Cast `global_total_width' in comparison.
1881 (main): Prototype. Return a value.
1882
1883 * vfork.c (fork): Prototype.
1884
1885 * xexit.c: Include config.h.
1886
9adf30b2
JL
18872000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1888
1889 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1890 and print it with %u.
1891
2ed78d1b
HPN
18922000-07-17 Hans-Peter Nilsson <hp@axis.com>
1893
1894 * testsuite/regress-demangle (failed test): Show result and
1895 expected output.
1896
0473bdf7
AH
18972000-07-07 Andrew Haley <aph@cygnus.com>
1898
1899 * cplus-dem.c (main): fflush() after emitting last char before
1900 waiting for input.
1901
03d5f569
JM
19022000-06-28 Alex Samuel <samuel@codesourcery.com>
1903
1904 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1905 (demangle_name): Handle <substitution> followed by
1906 <unqualified-template-name>.
1907 (demangle_type): Follow special substitutions with
1908 <class-enum-type>
1909 (demangle_subtitution): Set template_p for special substitutions.
1910 (main): Fix typos.
ae7d06ad 1911
03d5f569
JM
19122000-06-27 Alex Samuel <samuel@codesourcery.com>
1913
1914 * cp-demangle.c (demangle_special_name): Swap base and derived
1915 class when demangling construction vtables.
1916
19172000-06-21 Alex Samuel <samuel@codesourcery.com>
1918
1919 * cp-demangle.c: Don't include ctype.h.
1920 (IS_DIGIT): New macro.
1921 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1922 instead of isdigit and isalpanum.
1923 (demangling_def): Make name and next const pointers.
1924 (STATUS_ALLOCATION_FAILED): New status code.
1925 (dyn_string_append_space): Handle failure in
1926 dyn_string_append_char.
1927 (int_to_dyn_string): Likewise. Change return value to status_t.
1928 (string_list_new): Handle failure of dyn_string_init.
1929 (result_close_template_list): Change return type to status_t.
1930 Handle failure in dyn_string_append.
1931 (result_push): Change return value to status_t. Handle failure in
1932 string_list_new. Handle failure of result_push throughout.
1933 (substitution_add): Change return value to status_t. Handle
1934 dyn_string failures. Handle failure of substitution_add
1935 throughout.
1936 (template_arg_list_new): Return NULL on allocation failure.
1937 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1938 Handle error result throughout.
1939 (result_append): Likewise.
1940 (result_append_char): Likewise.
1941 (result_append_space): Likewise.
1942 (demangling_new): Make argument a const pointer. Handle
1943 allocation failures.
1944 (demangle_template_args): Handle failure in template_arg_list_new
1945 and result_close_template_list.
1946 (demangle_discriminator): Return if int_to_dyn_string fails.
1947 (cp_demangle): Likewise.
1948 (cp_demangle_type): New function.
1949 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1950 memory allocation failure.
1951 (main): Likewise.
1952 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1953 IN_LIBGCC2.
1954 (dyn_string_init): Change return value to int. Handle
1955 RETURN_ON_ALLOCATION_FAILURE case.
1956 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1957 (dyn_string_release): Delete the dyn_string.
1958 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1959 (dyn_string_copy): Change return type to int.
1960 (dyn_string_copy_cstr): Likewise.
1961 (dyn_string_prepend): Likewise.
1962 (dyn_string_prepend_cstr): Likewise.
1963 (dyn_string_insert): Likewise.
1964 (dyn_string_insert_cstr): Likewise.
1965 (dyn_string_append): Likewise.
1966 (dyn_string_append_cstr): Likewise.
1967 (dyn_string_append_char): Likewise.
1968 (dyn_string_substring): Likewise.
ae7d06ad 1969
eb383413 19702000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 1971
eb383413
L
1972 * cp-demangle.c (demangle_operator_name): Add spaces before
1973 names beginning with a letter: delete, delete[], new, new[],
1974 sizeof.
1975 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 1976
eb383413
L
1977Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1978
1979 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1980
1981Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1982
1983 * cp-demangle.c (stdio.h): File included unconditionaly.
1984 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1985 * dyn-string.c (stdio.h): File included.
1986 * partition.c (partition_print): No `&' needed to take the address of
1987 a function.
1988
19892000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1990
1991 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 1992
eb383413
L
1993 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1994
1995 * cp-demangle.c (demangle_char): Change parameter from char to int.
1996 (demangle_expression, demangle_expr_primary): Remove extra
1997 semi-colon in prototype.
1998
1999 * dyn-string.c (dyn_string_append_char): Change parameter from
2000 char to int.
2001
2002 * memcmp.c (memcmp): Constify.
2003
2004 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
2005 __extension__.
2006
2007 * partition.c (elem_compare): Prototype. Don't cast away
2008 const-ness.
2009
2010 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 2011
eb383413
L
20122000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2013
2014 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
2015
2016 * cp-demangle.c: Include demangle.h.
2017 (template_arg_list_new): DeANSIfy.
2018 (cp_demangle): Make static and add prototype.
2019 (operator_code, operators): Constify.
2020 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
2021
20222000-06-05 Alex Samuel <samuel@codesourcery.com>
2023
2024 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
2025 unsigned char.
2026 (demangle_unqualified_name): Likewise.
2027 (demangle_number_literally): Likewise.
2028 (demangle_type): Likewise.
2029 (demangle_substitution): Likewise.
2030 (is_mangled_char): Likewise, for isalnum.
2031
20322000-06-04 Alex Samuel <samuel@codesourcery.com>
2033
2034 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
2035 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
2036 (cp-demangle.o): New dependency.
2037 (dyn-string.o): Likewise.
2038
2039 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
2040
2041 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
2042 demangler.
2043 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
2044 demangling mode.
2045 (gnu_new_abi_symbol_characters): New function.
2046 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
2047 file.
2048 * cp-demangle.c: New file.
ae7d06ad 2049
f03aa80d
AC
2050Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
2051
2052 * floatformat.c: Add name to each floatformat field.
2053
77bfb694
JL
2054Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
2055
2056 * Makefile.in (objalloc.o): Depend on config.h
2057
5c82d20a
ZW
20582000-05-29 Zack Weinberg <zack@wolery.cumb.org>
2059
eb383413 2060 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
2061 if HAVE_STRING_H.
2062 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
2063 * objalloc.c: Include config.h. Include stdlib.h and don't
2064 declare malloc or free if HAVE_STDLIB_H.
2065 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
2066 else declare malloc without prototype. Include string.h if
2067 HAVE_STRING_H, else declare memset without prototype. Don't
2068 include stddef.h.
2069
eb383413
L
20702000-05-23 Mike Stump <mrs@wrs.com>
2071
2072 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 2073 -j3.
eb383413
L
2074
20752000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2076
2077 * xmalloc.c: Include config.h for HAVE_SBRK definition.
2078
20792000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
2080
ae7d06ad 2081 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
2082 probably zero, also eliminate a warning on alpha.
2083
20842000-05-15 David Edelsohn <edelsohn@gnu.org>
2085
2086 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
2087 on $(enable_shared).
2088
20892000-05-10 Jakub Jelinek <jakub@redhat.com>
2090
2091 * config.table: Use mh-sparcpic for sparc*-*-*.
2092
20932000-05-08 Nick Clifton <nickc@cygnus.com>
2094
2095 * Makefile.in (CFILES): Add strncmp.c.
2096 (NEEDED): Add strncmp.
2097
20982000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 2099
eb383413
L
2100 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
2101 Cast the arguments to `islower' to `unsigned char'.
2102 (print_demangler_list): Prototype.
2103
2104Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
2105
2106 * sort.c (UCHAR_MAX): Provide fallback definition.
2107
21082000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
2109
2110 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
2111 SUBDIRS.
2112
eb383413
L
21132000-04-28 Kenneth Block <block@zk3.dec.com>
2114 Jason Merrill <jason@casey.cygnus.com>
2115
ae7d06ad
NC
2116 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
2117 (cplus_demangle_set_style): New function for setting style.
2118 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
2119
21202000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2121
2122 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
2123
2124 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
2125 (libiberty_AC_FUNC_STRNCMP): Invoke.
2126
2127 * strncmp.c: New file.
2128
2129Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
2130
2131 * hashtab.c (htab_expand): Add prototype.
2132 (find_empty_slot_for_expand): Likewise.
2133
21342000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2135
2136 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
2137 match prototype.
2138 (htab_expand): Cast the return value of xcalloc.
2139
21402000-04-24 Mark Mitchell <mark@codesourcery.com>
2141
2142 * hashtab.c (hash_pointer): New function.
2143 (eq_pointer): Likewise.
2144 (htab_hash_pointer): New variable.
2145 (htab_eq_pointer): Likewise.
2146
21472000-04-23 Mark Mitchell <mark@codesourcery.com>
2148
2149 * sort.c (sort_pointers): Fix endianness bugs.
2150
2151 * sort.c: New file.
2152 * Makefile.in (CFILES): Add sort.c
2153 (REQUIRED_OFILES): Add sort.o.
2154 (sort.o): New target.
2155
19be4303
JL
21562000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2157
2158 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
2159 4.3BSD systems.
2160
eb383413
L
2161Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2162
2163 * hashtab.c: Various minor cleanups.
2164 (htab_find_slot_with_hash): INSERT is now enum insert_option.
2165 (htab_find_slot): Likewise.
2166
21672000-04-16 Dave Pitts <dpitts@cozx.com>
2168
2169 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 2170
afe36a78
RH
21712000-04-05 Richard Henderson <rth@cygnus.com>
2172
2173 * splay-tree.c (splay_tree_remove): New.
2174
eb383413
L
21752000-03-30 Mark Mitchell <mark@codesourcery.com>
2176
2177 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
2178 codes.
2179 (htab_find_with_hash): Likewise.
2180 (htab_find_slot_with_hash): Likewise.
ae7d06ad 2181
eb383413
L
21822000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2183
2184 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
2185 unless it will be used. Rearrange loop for better
2186 optimization.
2187 (higher_prime_number): Add static prototype.
2188
b4fe2683
JM
2189Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
2190
2191 * Makefile.in (partition.o): Depend on config.h
2192
21932000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
2194
2195 * hashtab.c (find_empty_slot_for_expand): New function.
2196 (htab_expand): Use it instead of htab_find_slot.
2197 (htab_find_with_hash): Renamed from htab_find; now accepts extra
2198 argument HASH.
2199 (htab_find_slot_with_hash): Likewise for htab_find_slot.
2200 (htab_find): New wrapper function.
2201 (htab_find_slot): Likewise.
2202 (htab_traverse): Pass slot, not entry, to called function.
2203
22042000-03-09 Alex Samuel <samuel@codesourcery.com>
2205
2206 * Makefile.in (CFILES): Add partition.c.
2207 (REQUIRED_OFILES): Add partition.o.
2208 (partition.o): New rule.
2209 * partition.c: New file.
ae7d06ad 2210
b4fe2683
JM
22112000-03-09 Zack Weinberg <zack@wolery.cumb.org>
2212
2213 * hashtab.c (htab_create): Set del_f.
2214 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
2215 Use it.
2216
22172000-03-08 Zack Weinberg <zack@wolery.cumb.org>
2218
2219 * hashtab.c: Remove debugging variables (all_searches,
2220 all_collisions, all_expansions). Delete
2221 all_hash_table_collisions.
2222 (create_hash_table, delete_hash_table, empty_hash_table,
2223 find_hash_table_entry, remove_element_from_hash_table_entry,
2224 clear_hash_table_slot, traverse_hash_table, hash_table_size,
2225 hash_table_elements_number, hash_table_collisions): Rename to:
2226 htab_create, htab_delete, htab_empty, htab_find_slot,
2227 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
2228 htab_elements, htab_collisions.
2229 (htab_find): New function, handles common case where you don't
2230 plan to add or delete an entry.
2231 (htab_expand): Don't create a whole new table, just a new
2232 entry vector.
2233 (htab_find_slot): Simplify logic.
2234
08372f14
ILT
22351999-08-03 Ian Lance Taylor <ian@zembu.com>
2236
2237 * floatformat.c: Add casts to avoid signed/unsigned warnings.
2238 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
2239
2240 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
2241 $(TARGETLIB)n so it works on MSDOS.
2242 (install_to_tooldir): Likewise.
2243
9c8ac5a9
ILT
22441999-07-21 Ian Lance Taylor <ian@zembu.com>
2245
2246 From Mark Elbrecht:
2247 * makefile.dos: Remove; obsolete.
8f36e47c 2248 * configure.bat: Remove; obsolete.
9c8ac5a9 2249
0c0a36a4
ILT
22501999-07-11 Ian Lance Taylor <ian@zembu.com>
2251
2252 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2253 warning.
2254
22552000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2256
2257 * pexecute.c: Conditionally include string.h.
b4fe2683 2258 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
2259
22602000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2261
2262 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
2263 we're using gcc.
2264
2265 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
2266
22671999-12-27 Geoff Keating <geoffk@cygnus.com>
2268
2269 * vasprintf.c (int_vasprintf): Don't re-read the format character
2270 as this mishandles strings like '%%s'.
2271
22721999-12-05 Mark Mitchell <mark@codesourcery.com>
2273
2274 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
2275 rather than struct splay_tree_node.
2276 (splay_tree_insert): Use struct splay_tree_s rather than struct
2277 splay_tree.
2278
2279Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
2280
2281 * hashtab.c (sys/types.h): File included.
2282
22831999-11-22 Jason Merrill <jason@casey.cygnus.com>
2284
2285 * strtoul.c, strtol.c, random.c: Remove advertising clause from
2286 BSD license, pursuant with
2287
2288 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
2289
2290Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
2291
2292 * hashtab.c: Include stdio.h.
2293
2294Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
2295
2296 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
2297
2298Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
2299
2300 * xstrdup (sys/types.h): Include this file.
2301
23021999-10-28 Nathan Sidwell <nathan@acm.org>
2303
2304 * Makefile.in (SUBDIRS): New macro.
2305 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
2306 avoid multiple subdirectory cleaning.
2307 (*-subdir): Use SUBDIRS.
2308
23091999-10-25 Jim Kingdon <http://developer.redhat.com/>
2310
2311 * cplus-dem.c: Move declarations of standard_symbol_characters and
2312 hp_symbol_characters inside #ifdef MAIN to avoid compiler
2313 warnings.
2314
23151999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
2316
2317 * hashtab.c (find_hash_table_entry): When returning a
2318 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
2319 (clear_hash_table_slot): New function which deletes an entry
2320 by its position in the table, not its value.
2321 (traverse_hash_table): New function which calls a hook
2322 function for every live entry in the table.
2323
23241999-10-19 Mark Mitchell <mark@codesourcery.com>
2325
2326 * cplus-dem.c (INTBUF_SIZE): New macro.
2327 (string_append_template_idx): New function.
2328 (demangle_expression): Likewise.
2329 (demangle_integral_value): Use it.
2330 (demangle_real_value): New function, split out from ...
2331 (demangle_template_value_parm): ... here. Use
2332 string_append_template_idx. Use demangle_real_value.
2333 (demangle_template): Use string_append_template_idx.
2334 (demangle_qualified): Use consume_count_with_underscores.
2335 (get_count): Tweak formatting.
2336 (do_type): Use string_append_template_idx.
b4fe2683 2337
0c0a36a4
ILT
23381999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2339
2340 * calloc.c: Add a public domain notice.
2341
2342Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
2343
2344 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
2345
2346Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
2347
2348 * Makefile.in (CFILES): Add hashtab.c
2349 (REQUIRED_OFILES): Add hashtab.o
2350 (hashtab.o): Add dependencies.
2351 * hashtab.c: New file
2352
2353Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
2354
2355 * basename.c (DIR_SEPARATOR): New macro.
2356 (DIR_SEPARATOR_2): Likewise.
2357 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
2358 (IS_DIR_SEPARATOR): Likewise.
2359 (main): Handle MSDOS style pathname.
2360
23611999-10-11 Mark Mitchell <mark@codesourcery.com>
2362
2363 * cplus-dem.c (do_type): Handle pointer to member types whose
2364 enclosing classes have namespace scope.
2365
2366Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
2367
2368 * config.table: Provide a backup shell for executing move-if-change.
2369
23701999-10-02 Mark Mitchell <mark@codesourcery.com>
2371
2372 * xmalloc.c (xmalloc): Fix spelling error.
2373 (xcalloc, xrealloc): Likewise.
2374
23751999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2376
2377 * cplus-dem.c (fancy_abort, demangle_integral_value,
2378 demangle_arm_hp_template, recursively_demangle,
2379 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
2380 (program_name, program_version, fatal): Constify a char*.
2381 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
2382 (main): Call return, not exit.
2383
23841999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2385
2386 * choose-temp.c: Remove obsolete comment about gcc.
2387 (make_temp_file): Constify a char*.
2388
2389Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2390
2391 * xmemdup.c: Include sys/types.h.
2392
23931999-09-07 Jeff Garzik <jgarzik@pobox.com>
2394
2395 * xmemdup.c: New xmemdup function.
2396 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
2397
2398Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
2399
b4fe2683 2400 * config.table: Add openedition target.
0c0a36a4
ILT
2401 * config/mh-openedition: New file.
2402
2403Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
2404
2405 * pexecute.c (pexecute): Fill in temp_base when needed.
2406
24071999-08-31 Richard Henderson <rth@cygnus.com>
2408
2409 * getpwd.c: Check HAVE_GETCWD before defining it away.
2410
24111999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2412
2413 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
2414 (REQUIRED_OFILES): Add getpwd.o.
2415 (getpwd.o): Add target.
2416
2417 * configure.in (AC_PREREQ): Bump to 2.13.
2418 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
2419
2420 * getpwd.c: New file, moved here from gcc.
2421
24221999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2423
2424 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
2425 comparing against a signed quantity.
2426 (arm_special): Likewise.
2427 (demangle_fund_type): Likewise.
2428 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 2429 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
2430 (main): Constify variable `valid_symbols'.
2431
2432Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
2433
2434 * strtoul.c (strtoul): Add parentheses around && within ||.
2435
2436Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2437
2438 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2439 libdir, libsubdir and tooldir.
2440
24411999-08-01 Mark Mitchell <mark@codesourcery.com>
2442
2443 * splay-tree.c (splay_tree_insert): Return the new node.
2444
35ca97ea
RH
24451999-07-14 Richard Henderson <rth@cygnus.com>
2446
b4fe2683 2447 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
2448 prototyping directly.
2449 * choose-temp.c: Conditionally include string.h.
2450
0c0a36a4
ILT
24511999-07-12 Jason Merrill <jason@yorick.cygnus.com>
2452
2453 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
2454
af32ff69
ILT
24551999-07-11 Ian Lance Taylor <ian@zembu.com>
2456
2457 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2458 warning.
2459
0c0a36a4
ILT
24601999-07-07 Jason Merrill <jason@yorick.cygnus.com>
2461
2462 * Makefile.in (needed-list): Only include stuff we actually need
2463 for libstdc++.
2464
24651999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2466
2467 * configure.in (checkfuncs): Add gettimeofday.
2468 * config.in, configure: Regenerated.
2469
2470Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
2471
2472 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
2473 the test fails.
2474 * configure: Regenerate.
2475
24761999-06-10 Mike Stump <mrs@wrs.com>
2477
2478 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
2479 parallel builds.
2480
24811999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2482
2483 * putenv.c: Include ansidecl.h to define `const'.
2484 * setenv.c: Likewise.
2485
2486Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
2487
2488 * Makefile.in (CFILES): Add putenv.c and setenv.c.
2489 * configure.in (funcs): Add putenv and setenv.
2490 (AC_CHECK_FUNCS): Check for putenv and setenv.
2491 * configure: Rebuilt.
2492 * putenv.c setenv.c: New files.
2493
2494 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2495 bytes of space using malloc.
2496
2497Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2498
2499 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2500 the *mangled pointer beyond the end of the string. Clean up code to
2501 match prevailing coding style.
2502
25031999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2504
2505 * tmpnam.c (L_tmpnam): Fix typo.
2506
2507Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2508
2509 * cplus-dem.c (standard_symbol_characters): Renamed from
2510 standard_symbol_alphabet. No longer modify TABLE.
2511 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2512 modify TABLE.
2513 (main): Corresponding changes. Use strchr to determine if a
2514 character is valid.
2515
e9868447
JB
25161999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2517
2518 * cplus-dem.c (main): Use table lookup to distinguish identifier
2519 characters from non-identifier characters.
2520 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2521
33fbbfbc
RH
2522Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2523
2524 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2525 * getruntime.c: Only attempt to include sys/resource.h and
2526 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2527 are defined.
2528
0c0a36a4
ILT
2529Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2530
2531 * configure.in (alloca detection): Handle alloca directly for interix.
2532 * configure: Rebuilt.
2533
2534Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2535
2536 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2537
252b5132
RH
25381999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2539
2540 Fix from Dale Hawkins:
b4fe2683 2541 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
2542 reallocated properly if we use it again.
2543
2544 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2545 stricter about syntax. Always null-terminate string.
2546
c1687039
ILT
2547Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2548
2549 * configure.in (checkfuncs): Check for sbrk.
2550 * config.in: Rebuilt.
2551 * configure: Likewise.
2552 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2553
0c0a36a4
ILT
25541999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2555
2556 Fix from Marcus Daniels:
2557 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2558 identifier looking for another underscore.
2559
2560Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2561
2562 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2563 * xmalloc.c: Likewise.
2564 (xcalloc): UWIN has sbrk.
2565 (xrealloc): Fix guard macro.
2566
252b5132
RH
25671999-04-11 Richard Henderson <rth@cygnus.com>
2568
2569 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2570 or <alloca.h>.
2571 * clock.c (GNU_HZ): New definition.
2572 (clock): Use it.
2573 * getruntime.c: Likewise.
2574
2575 * config.table: Use mh-beos.
2576 * config/mh-beos: New file.
2577
0c0a36a4
ILT
25781999-04-11 Mark Mitchell <mark@codesourcery.com>
2579
2580 * cplus-dem.c (demangle_template_value_parm): Handle
2581 pointers-to-members.
2582 (do_type): Handle template parameters as qualifiers.
2583
252b5132
RH
25841999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2585
2586 * cplus-dem.c: Attempt to handle overflows in counts with some
2587 semblance of grace.
2588 (consume_count): Detect overflows. Return -1 to indicate errors,
2589 instead of zero.
2590 (demangle_template_value_parm, demangle_template): Handle change
2591 to consume_count's return convention.
2592
0c0a36a4
ILT
25931999-04-05 Tom Tromey <tromey@cygnus.com>
2594
2595 * testsuite/regress-demangle: New file.
2596 * testsuite/demangle-expected: New file.
252b5132 2597
0c0a36a4
ILT
2598 * Makefile.in (all, check, installcheck, info, install-info,
2599 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2600 distclean, maintainer-clean, realclean): Depend on corresponding
2601 `-subdir' target.
2602 (all-subdir check-subdir installcheck-subdir info-subdir
2603 install-info-subdir clean-info-subdir dvi-subdir
2604 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2605 distclean-subdir maintainer-clean-subdir): New target.
2606 * testsuite/Makefile.in: New file.
2607 * configure: Rebuilt.
2608 * configure.in: Create testsuite/Makefile.
252b5132
RH
2609
26101999-04-02 Mark Mitchell <mark@codesourcery.com>
2611
2612 * splay-tree.h (splay_tree_compare_pointers): Define.
2613
26141999-03-30 Mark Mitchell <mark@codesourcery.com>
2615
2616 * splay-tree.c (splay_tree_compare_ints): Define.
2617
26181999-03-30 Tom Tromey <tromey@cygnus.com>
2619
2620 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2621 don't advance input pointer.
2622 (demangle_class_name): If consume_count didn't find a count, do
2623 nothing. Don't bother with `strlen' sanity check; consume_count
2624 does it for us.
2625
26261999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2627
2628 From Art Haas <ahaas@neosoft.com>:
2629 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2630 when doing arm or hp style.
2631 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 2632
252b5132
RH
2633Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2634
2635 * pexecute.c (__CYGWIN32__): Rename to
2636 (__CYGWIN__): this.
2637 * xmalloc.c: Likewise.
2638
2639 Changes to support i386-pc-uwin.
2640 * configure.in (*-*-uwin*): Workaround for vfork bug.
2641 * configure: Regenerate.
2642 * pexecute.c (pexecute): Be like standard Unix.
2643 (pwait): Likewise.
2644 * xmalloc.c (first_break): Define.
2645 (xmalloc_set_program_name): Use.
2646 (xmalloc): Use.
2647
2648Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2649
2650 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2651
2652Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2653
2654 * config.table: Check cygwin*, not cygwin32*.
2655
2656Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2657
2658 * Makefile.in: Change mkstemp -> mkstemps.
2659
2660Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2661
2662 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2663 * configure.in (funcs): Check for and conditionally add mkstemps to
2664 the list of functions libiberty will provide.
2665 * configure: Rebuilt.
b4fe2683 2666
252b5132
RH
2667Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2668
b4fe2683 2669 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
2670 platforms that don't have HZ.
2671 * getruntime.c (HZ): Likewise.
2672
2673Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2674
2675 * Makefile.in (xstrdup.o): Depend on config.h.
2676
2677Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2678
2679 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2680 freeing it.
2681
2682Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2683
2684 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2685
2686Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2687
2688 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2689 splay-tree.o.
2690
26911999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2692
2693 * configure.in: Require autoconf 2.12.1 or higher.
2694
26951998-12-30 Michael Meissner <meissner@cygnus.com>
2696
2697 * random.c (NULL): Don't redefine NULL if it is already defined.
2698
2699Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2700
2701 * argv.c (buildargv): Cast the result of alloca in assignment.
2702
2703 * choose-temp.c: Include stdlib.h.
2704
2705 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
2706 (snarf_numeric_literal): Constify first parameter.
2707 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2708 int, not a char.
252b5132
RH
2709 (demangle_qualifier): Likewise.
2710 (demangle_signature): Cast the argument of a ctype function to
2711 unsigned char.
2712 (arm_pt): Add parens around assignment used as truth value.
2713 (demangle_arm_hp_template): Constify variable `args'.
2714 (do_hpacc_template_const_value): Cast the argument of a ctype
2715 function to unsigned char.
2716 (do_hpacc_template_literal): Remove unused variable `i'.
2717 (snarf_numeric_literal): Constify parameter `args'.
2718 Cast the argument of a ctype function to unsigned char.
2719
2720 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 2721 avoid ambiguous `else'.
252b5132
RH
2722
2723 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
2724 `cstart' and `cend' to unsigned char. Cast the argument of macro
2725 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
2726
2727 * objalloc.c (free): Add prototype.
2728
2729Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2730
2731 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2732
2733Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2734
2735 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 2736 doesn't exist.
252b5132 2737 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 2738
252b5132
RH
2739Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2740
2741 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2742 bumping the pointer we read from. Also prepend these codes,
2743 as we do in other places.
2744
27451998-12-18 Nick Clifton <nickc@cygnus.com>
2746
2747 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2748 'const char *' in order to match its usage when calling siblings.
2749 (snarf_numeric_literal): Make first arg 'const char **' in order
2750 to match usage.
2751
2752Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2753
2754 * choose-temp.c: Don't check IN_GCC anymore.
2755
2756 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2757 * memchr.c (memchr): Likewise.
2758 * memcpy.c (memcpy): Likewise.
2759 * memmove.c (memmove): Likewise.
2760
2761 * mkstemp.c: Don't check IN_GCC anymore.
2762 * pexecute.c: Likewise.
2763 * splay-tree.c: Likewise.
2764
2765 * strchr.c (strchr): Use `const', not `CONST'.
2766 * strrchr.c (strrchr): Likewise.
2767 * strtol.c (strtol): Likewise.
2768 * strtoul.c (strtoul): Likewise.
2769
2770Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2771 Elena Zannoni <ezannoni@cygnus.com>
2772 Stan Shebs <shebs@cygnus.com>
2773 Edith Epstein <eepstein@cygnus.com>
2774 Andres MacLeod <amacleod@cygnus.com>
2775 Satish Pai <pai@apollo.hp.com>
2776
2777 * HP aCC demangling support.
2778 * cplus-dem.c
2779 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
2780 demangling correctly when -edg specified; set the demangling style
2781 when user specifies 'edg'. Set strip_underscore to
2782 prepends_underscore, if not HPUXHPPA. Set
2783 current_demangling_style to hp_demangling if HPUXHPPA. Set
2784 current demangling style correctly if the switch is hp. Read
2785 label correctly also in the HP style case.
252b5132 2786 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 2787 function.
252b5132 2788 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 2789 style for this case is the same as ARM.
252b5132
RH
2790 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2791 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
2792 demangle_arm_pt.); check and set value of temp_start field in
2793 multiple places. Also, when ceching for end of template args,
2794 check to see if at end of static member of template class.
252b5132 2795 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 2796 include template args in string defining class.
252b5132
RH
2797 (demangle_class_name): use demangel_arm_hp_template.
2798 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
2799 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2800 Handle EDG_DEMANGLING style. Handle constructor and destructor
2801 ops for HP style.
252b5132 2802 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
2803 styles. global destructor and constructor for HP style are same
2804 as for ARM style. Same for local variables.
252b5132
RH
2805 (demangle_qualified): handle EDG_DEMANGLING style.
2806 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
2807 cases '1' - '9' : initialize the temp_start field to -1 and handle
2808 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2809 and AUTO_DEMANGLING styles. If expecting a function and managed
2810 to demangle the funct args, then handle the LUCID_DEMANGLING,
2811 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2812 class name after "Lnnn_ in HP style case. HP style too needs to
2813 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 2814 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 2815 value param for HP/aCC.
252b5132 2816 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 2817 literal parameter for HP aCC.
252b5132
RH
2818 (recursively_demangle): new function
2819 (snarf_numeric_literal): new function.
2820 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 2821 to message.
252b5132
RH
2822
2823Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2824
2825 * pexecute.c: Remove obsolete ifdefed cygwin code.
2826
2827Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2828
2829 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2830 * cplus-dem.c: Likewise. Conform to libiberty.h.
2831 * pexecute.c: Likewise.
2832 * splay-tree.c: Likewise.
2833
28341998-11-25 Mike Stump <mrs@wrs.com>
2835
2836 * Makefile.in (splay-tree.o): Add config.h dependency.
2837
2838Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2839
2840 * configure.in: Use AC_PREREQ(2.12.1).
2841
28421998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2843
b4fe2683 2844 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
2845
2846Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2847
2848 * mpw.c (mpw_access): Add missing parens.
2849
2850Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2851
2852 * configure.in: Call AC_HEADER_SYS_WAIT.
2853
2854 * pexecute.c: Include sys/wait.h when !IN_GCC.
2855
2856Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2857
2858 * pexecute.c: revert back to checking old Cygwin
2859 preprocessor symbol until some time has passed.
2860
2861Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2862
2863 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2864 since it will now support similar constructs.
2865
2866Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2867
2868 * configure.in: Check for calloc.
2869
2870 * calloc.c: New file.
2871
2872 * xmalloc.c (xcalloc): New function.
2873
2874Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2875
2876 *cplus-dem.c (demangle_prefix): Use the last "__"
2877 in the mangled name when looking for the signature. This allows
2878 template names to begin with "__".
2879
28801998-11-08 Mark Mitchell <mark@markmitchell.com>
2881
2882 * cplus-dem.c (type_kind_t): Add tk_reference.
2883 (demangle_template_value_parm): Handle it.
2884 (do_type): Use it for references, instead of tk_pointer.
2885
2886 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2887 not internal_cplus_demangle.
2888
2889Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2890
2891 * choose-temp.c: Don't include gansidecl.h.
2892 * mkstemp.c: Likewise.
2893 * pexecute.c: Likewise.
2894
2895Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2896
b4fe2683
JM
2897 * configure.in: detect cygwin* instead of cygwin32*
2898 * configure: regenerate
252b5132
RH
2899
2900Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2901
2902 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
2903 whether to include config.h. Possibly include unistd.h in the
2904 !IN_GCC case. Define VFORK_STRING as a printable function call
2905 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2906 defined, include vfork.h. If VMS is defined, define vfork()
2907 appropriately. Remove vfork check on USG, we're using autoconf.
2908 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2909 locally what string to use.
252b5132
RH
2910
29111998-10-26 Mark Mitchell <mark@markmitchell.com>
2912
2913 * splay-tree.c: Tweak include directives to make sure declarations of
2914 xmalloc and free are available.
2915
29161998-10-25 Mark Mitchell <mark@markmitchell.com>
2917
2918 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2919 anonymous namespaces.
2920
29211998-10-23 Mark Mitchell <mark@markmitchell.com>
2922
2923 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2924 with type_quals.
2925 (TYPE_UNQUALIFIED): New macro.
2926 (TYPE_QUAL_CONST): Likewise.
2927 (TYPE_QUAL_VOLATILE): Likewise.
2928 (TYPE_QUAL_RESTRICT): Likewise.
2929 (code_for_qualifier): New function.
2930 (qualifier_string): Likewise.
2931 (demangle_qualifier): Likewise.
2932 (internal_cplus_demangle): Use them.
2933 (demangle_signature): Likewise.
2934 (demangle_template_value_parm): Likewise.
2935 (do_type): Likewise.
2936 (demangle_fund_type)): Likewise.
2937
2938Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2939
2940 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2941 to match prototype.
2942
29431998-10-21 Mark Mitchell <mark@markmitchell.com>
2944
2945 * splay-tree.c: New file.
2946 * Makefile.in (CFILES): Add it.
2947 (REQUIRED_OFILES): Likewise.
2948 (splay-tree.o): Add dependencies.
2949
2950Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2951
2952 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2953 range of 'K' index.
2954
2955Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2956
2957 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2958
2959 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2960 `unsigned char'.
2961 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2962 comparing against one.
2963 (cplus_mangle_opname): Likewise.
2964 (demangle_integral_value): Cast argument of ctype macro to
2965 `unsigned char'.
2966 (demangle_template_value_parm): Likewise.
2967 (demangle_template): Initialize variable `bindex'. Cast the
2968 result of `strlen' to (int) when comparing against one. Remove
2969 unused variable `start_of_value_parm'.
2970 (demangle_class_name): Cast the result of `strlen' to (int) when
2971 comparing against one.
2972 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2973 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2974 when comparing against one.
2975 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2976 (get_count): Likewise.
2977 (do_type): Likewise. Cast the result of `strlen' to (int) when
2978 comparing against one.
2979 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2980 (demangle_function_name): Cast the result of `strlen' to (int)
2981 when comparing against one.
2982
2983 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2984 comparing against one.
2985
2986Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2987
b4fe2683
JM
2988 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2989 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2990 * config.in, configure: Rebuilt.
252b5132
RH
2991
2992 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2993 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2994 * config.in, configure: Rebuilt.
2995
2996Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2997
b4fe2683 2998 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
2999
3000Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
3001
3002 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
3003
3004Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
3005
3006 * Merge egcs & devo libiberty.
3007