]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
cp-demangle.c (struct d_print_mod): Add templates field.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
81dc098b
ILT
12003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
2
3 * cp-demangle.c (struct d_print_mod): Add templates field.
4 (d_make_builtin_type): Check for NULL type.
5 (d_make_extended_operator): Check for NULL name.
6 (d_make_ctor, d_make_dtor): Likewise.
7 (d_mangled_name): Add top_level parameter. Change all callers.
8 (d_encoding): If DMGL_PARAMS is not set, strip off initial
9 CV-qualifiers.
10 (d_type): Check some return values we rely on.
11 (d_bare_function_type, d_array_type): Likewise.
12 (d_pointer_to_member_type, d_template_args): Likewise.
13 (d_add_substitution): Fail if argument is NULL.
14 (d_print_resize): Check whether buf is NULL.
15 (d_print_comp): Save current templates list with each modifier.
16 Don't pass the modifier list down when printing a template.
17 (d_print_cast): Don't pass the modifier list down when printing a
18 template.
19 (d_print_mod_list): Temporarily set templates list while printing
20 a modifier.
21 (d_print_mod): Check that buf is not NULL before using it.
22 (d_print_function_type): Print parens if there is no modifier.
23 (d_init_info): Permit as many substitutions as there are
24 characters in the mangled name.
25 * testsuite/demangle-expected: Add two new test cases.
26
eb459c81
ILT
272003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
28
29 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
30 d_demangle.
31
ad07f5e5
ILT
322003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
33
34 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
35 callers.
36 (print_usage): Display new -p option.
37 (long_options): Add --no-params.
38 (main): Accept and handle -p.
39
0ba5c8a2
ILT
402003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
41
42 * cp-demangle.c (has_return_type): Skip qualifiers when checking
43 whether we have a template.
44 * testsuite/demangle-expected: Add four new tests.
45
bd6946d1
ILT
462003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
47
9cca376f
ILT
48 * testsuite/demangle-expected: Minor changes to match output of
49 new demangler: adjust whitespace in four tests, and change order
50 of qualifiers in one test.
51
bd6946d1
ILT
52 * cp-demangle.c: Complete rewrite.
53
6df5a5c7
MM
542003-11-19 Mark Mitchell <mark@codesourcery.com>
55
56 * cp-demangle.c (demangle_type): Correct thinko in substitution
57 processing.
58
a9b571f2
ILT
592003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
60
820555e6
ILT
61 * cp-demangle.c (demangle_operator_name): Remove space before
62 "sizeof".
63 (demangle_type_ptr): Put qualifiers in the right place. Handle
64 qualifiers in pointer to member specially.
65 (demangle_type): Handle qualifiers for pointer or reference
66 specially. Handle function type.
67 (demangle_local_name): Save and restore caret around demangling of
68 initial encoding.
69
c4328d32
ILT
70 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
71 cplus_demangle.
72
a9b571f2
ILT
73 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
74
ad37274a
AJ
752003-10-31 Andreas Jaeger <aj@suse.de>
76
77 * floatformat.c (floatformat_always_valid): Add unused attribute.
78
27eb8ab1
JZ
792003-10-30 Josef Zlomek <zlomekj@suse.cz>
80
81 Jan Hubicka <jh@suse.cz>
82 * vasprintf.c (int_vasprintf): Pass va_list by value.
83 Use va_copy for copying va_list.
84 (vasprintf): Pass va_list by value.
85
e0432c1c
JZ
862003-10-30 Josef Zlomek <zlomekj@suse.cz>
87
88 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
89 instead of increasing n_elements when inserting to deleted slot.
90
08c5b96d
B
912003-10-20 J. Brobecker <brobecker@gnat.com>
92
93 * cplus-dem.c (demangle_template): Register a new Btype only
94 when needed.
95 * testsuite/demangle-expected: Add a new test.
96
968e3f93
L
972003-10-16 H.J. Lu <hongjiu.lu@intel.com>
98
99 * testsuite/demangle-expected: Update the expected output of
100 _GLOBAL__I__Z2fnv.
101
bca48dc6
DJ
1022003-10-02 Daniel Jacobowitz <drow@mvista.com>
103
104 * strerror.c: Revert last change. Declare static sys_nerr
105 and sys_errlist using different names.
106
b9e8f4b3
DJ
1072003-10-01 Daniel Jacobowitz <drow@mvista.com>
108
109 * strerror.c: Don't provide or reference sys_errlist if
110 strerror is available.
111
c0590bfd
L
1122003-10-01 H.J. Lu <hongjiu.lu@intel.com>
113
114 * configure.in: Check if $MAKEINFO is missing.
115 * configure: Regenerated.
116
b033df90
DJ
1172003-09-24 Daniel Jacobowitz <drow@mvista.com>
118
119 * configure.in: Use AC_PROG_CPP_WERROR.
120 * configure: Regenerated.
121
83c07342
AC
1222003-09-22 Andrew Cagney <cagney@redhat.com>
123
124 * floatformat.c (floatformat_i387_ext_is_valid): New function.
125 (floatformat_always_valid): New function.
126 (floatformat_i387_ext): Initialize new "is_valid" field to
127 "floatformat_i387_ext_is_valid".
128 (floatformat_ieee_single_little): Initialize "is_valid" field to
129 floatformat_always_valid.
130 (floatformat_ieee_double_big): Ditto.
131 (floatformat_ieee_double_little): Ditto.
132 (floatformat_ieee_double_little): Ditto.
133 (floatformat_ieee_double_littlebyte_bigword): Ditto.
134 (floatformat_i960_ext): Ditto.
135 (floatformat_m88110_ext): Ditto.
136 (floatformat_m88110_harris_ext): Ditto.
137 (floatformat_arm_ext_big): Ditto.
138 (floatformat_arm_ext_littlebyte_bigword): Ditto.
139 (floatformat_ia64_spill_big): Ditto.
140 (floatformat_ia64_spill_little): Ditto.
141 (floatformat_ia64_quad_big): Ditto.
142 (floatformat_ia64_quad_little): Ditto.
143 (floatformat_ia64_quad_little): Ditto.
144 (floatformat_is_valid): Call "is_valid".
145
c9fbef12
AC
1462003-09-15 Andrew Cagney <cagney@redhat.com>
147
148 * floatformat.c (get_field): Make "data" constant.
149 (floatformat_is_valid, floatformat_to_double): Make "from"
150 constant, fix casts.
151 (floatformat_from_double): Make "from" constant.
152
9c8860c3
DJ
1532003-09-15 Daniel Jacobowitz <drow@mvista.com>
154
155 * floatformat.c (floatformat_is_valid): New function.
156 (get_field, put_field): Correct comments.
157
13f7d3a1
JZ
1582003-09-06 Josef Zlomek <zlomekj@suse.cz>
159
160 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
161 FIBHEAPKEY_T.
162
03eec143 1632003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
86d75906
JDA
164
165 PR bootstrap/12100
166 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
167 * configure: Rebuilt.
168
238235ef
DJ
1692003-08-27 Daniel Jacobowitz <drow@mvista.com>
170
171 * aclocal.m4: Include acx.m4 and no-executables.m4.
172 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
173 (LIB_AC_PROG_CC): Remove.
174 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
175 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
176 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
177 performing link tests.
178 * configure: Regenerated.
179
2b81b2c9
NN
1802003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
181
182 * cp-demangle.c: Clarify what package(s) this is part of.
183
7b96f3e4
DS
1842003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
185
186 * pex-win32.c (pexecute): Mark parameters this_pname and
187 temp_base as unused. Remove unused variables retries,
188 sleep_interval. Initialize org_stdin, org_stdout.
189 (pwait): Mark parameter flags as unused.
190
1912003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
bacb96b2
DS
192
193 * pex-win32.c (fix_argv): Ensure that the executable pathname
194 uses Win32 backslashes.
195 (pexecute): Cast away constness when assigning *errmsg_arg.
196
6f8507b1
L
1972003-06-26 H.J. Lu <hongjiu.lu@intel.com>
198
199 * testsuite/demangle-expected: Add more GNU V3 testcases.
200
21299dbd
ZW
2012003-06-22 Zack Weinberg <zack@codesourcery.com>
202
203 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
204 not HC_ASCII and HC_EBCDIC.
205 Add documentation in form expected by gather-docs.
206 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
207 * Makefile.in, functions.texi: Regenerate.
208
7468e0b5
ZW
2092003-06-21 Zack Weinberg <zack@codesourcery.com>
210
211 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
212 for charset determination.
213
cf8e4b78
DH
2142003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
215
216 * configure.in: Add check for malloc.h needed by
217 m68k for function free().
218 * configure: Regenerated.
219 * config.in: Add HAVE_MALLOC_H.
220 * hashtab.c: include malloc.h were available for
221 free().
222
aa9dc53d 2232003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
7468e0b5 224
aa9dc53d
ACY
225 PR bootstrap/10974
226 * physmem.c: Update comment.
227 * configure.in: Modify test for _system_configuration for older
228 AIX systems.
229
230 * config.in, configure: Regenerated.
7468e0b5 231
8191fe81
JDA
2322003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
233
234 PR other/10810
235 * test-demangle.c (getline): Fix fence-post error.
236
8d398258
NC
2372003-06-03 Nick Clifton <nickc@redhat.com>
238
239 * asprintf.c: Change comment to note that -1 is returned upon
240 error.
241 * vasprintf.c: Likewise.
242 (vasprintf): Return -1 upon error.
243 * functions.texi: Document changes to asprintf and vasprintf.
244
29ad6d3f
KC
2452003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
246
247 * config.table: Accept i[345867]86 variant.
248
49a19cfd
JB
2492003-05-15 Jim Blandy <jimb@redhat.com>
250
251 * hex.c (_hex_value): Make this unsigned.
252 (hex_value): Update documentation for new return type. hex_value
253 now expands to an unsigned int expression, to avoid unexpected
254 sign extension when we store it in a bfd_vma, which is larger than
255 int on some platforms.
256 * functions.texi: Regenerated.
257
d5d4eae2
JZ
2582003-05-07 Josef Zlomek <zlomekj@suse.cz>
259
260 * splay-tree.c (splay_tree_predecessor): Fix comment.
261 (splay_tree_successor): Fix comment.
262
5cc5a0d0
JM
2632003-05-07 Jason Merrill <jason@redhat.com>
264
9d70d418 265 * hashtab.c (iterative_hash): New fn.
5cc5a0d0
JM
266 * configure.in: Add AC_C_BIGENDIAN_CROSS.
267 * aclocal.m4: Include accross.m4.
268 * configure, config.in: Regenerate.
269
05c30f22
KG
2702003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
271
272 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
273 * configure: Regenerate.
274
41fe9404
CW
2752003-05-03 Carlo Wood <carlo@alinoe.com>
276
277 * cp-demangle.c: Fix typo in "char_traints" string-literal.
278
52dd3224
KG
2792003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
280
281 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
282 (main): Test that we don't write too much data.
283
bd3fbc6b
KG
2842003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
285
286 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
287 vsnprintf.
288 * snprintf.c, vsnprintf.c: New files.
289 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
290 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
291 Regenerate dependencies.
292
293 * functions.texi, configure, config.in: Regenerated.
294
029bcc09
KG
2952003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
296
297 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
298 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
299 and stpncpy.
300 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
301 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
302 Regenerate dependencies.
303
304 * functions.texi, configure, config.in: Regenerated.
305
c9ac9147
KG
3062003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
307
308 * argv.c: Fix comments.
309 * calloc.c: Don't unnecessarily include "libiberty.h".
310 (bzero): Add prototype.
311 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
312 * getcwd.c (getcwd): Use standard definition to avoid conflicts
313 with system headers.
314 * hashtab.c (htab_traverse): Delete unused variables.
315 * rename.c: Include "ansidecl.h".
316 (rename): Use standard definition to avoid conflicts with system
317 headers.
318 * strsignal.c: Rely on ANSI_PROTOTYPES.
319 * strstr.c: Check GNUC >= 2, not GNUC == 2.
320 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
321 * vprintf.c: Include "ansidecl.h" earlier, rely on
322 ANSI_PROTOTYPES.
323 * vsprintf.c: Include "ansidecl.h" earlier, rely on
324 ANSI_PROTOTYPES and possibly include <stdarg.h>.
7468e0b5 325
c9ac9147
KG
326 * Makefile.in: Regenerate dependencies.
327
98475c57
DD
3282003-04-15 DJ Delorie <dj@redhat.com>
329
330 * maint-tool (deps): Scan for headers in $srcdir also.
331
55adc7bd
KG
3322003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
333
334 PR target/10338
335 PR bootstrap/10198
336 PR bootstrap/10140
337 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
338 __mempcpy.
339 * regex.c (regerror): Likewise.
340
0ae0f1b0
RS
3412003-04-14 Roger Sayle <roger@eyesopen.com>
342
343 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
344 * memchr.c: Likewise.
345 * strcasecmp.c: Likewise.
346 * strncasecmp.c: Likewise.
347 * strncmp.c: Likewise.
348 * xatexit.c: Likewise.
349 * xmalloc.c: Likewise.
350
351 * copysign.c: Use traditional function declaration instead of DEFUN.
352 * sigsetmask.c: Likewise.
353
354 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
355 * memset.c: Likewise.
356
357 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
358 * memmove.c: Likewise.
359
88702c45
RS
3602003-04-14 Roger Sayle <roger@eyesopen.com>
361
362 * strdup.c (strdup): Tweak implementation to use memcpy.
363
39e8d049
KG
3642003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
365
366 * configure.in (HAVE_UINTPTR_T): Always define.
367 * configure: Regenerated.
368
9f2e0608
AO
3692003-03-23 Alexandre Oliva <aoliva@redhat.com>
370
371 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
372 instead of $$CC alone.
373 (install_to_tooldir): Use it.
374
dbccdc42
JH
3752003-17-03 Jan Hubicka <jh@suse.cz>
376
377 * hashtab.c (htab_traverse_noresize): Break out from ...
378 * hashtab.c (htab_traverse): ... here.
379
0a8e3de3
JH
3802003-12-03 Jan Hubicka <jh@suse.cz>
381
cd22e4af
JH
382 * hashtab.c (htab_expand): Fix warning.
383
0a8e3de3
JH
384 * hashtab.c (htab_expand): Compute the size of hashtable based
385 on the number of elements actually used.
386 (htab_traverse): Call htab_expand when table is too empty.
387
8fe85775
CW
3882003-03-11 Carlo Wood <carlo@gnu.org>
389
390 * cplus-dem.c (demangle_integral_value): Correction to reflect
391 patch of 2002-01-10 in order to also make negative multi-digits
392 without leading underscore work.
393
3bf27822
MM
3942003-03-03 Mark Mitchell <mark@codesourcery.com>
395
396 * cplus-dem.c: Add license exception to copyright notice.
397
434fa0b8
KG
3982003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
399
400 * physmem.c: Formatting changes from upstream.
401
ed935c35
DS
4022003-02-24 Danny Smith <dannysmith@users.source.forge.net>
403
404 * physmem.c (physmem_total): Add _WIN32 support.
405 (physmem_available): Likewise.
406
7f9fc006
RO
4072003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
408
409 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
410 GSI_PHYSMEM.
411 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
412
d47f75c4
KG
4132003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
414
415 * configure.in: Check for sys/systemcfg.h and
416 _system_configuration.
417 * physmem.c: Add support for AIX. Tweek formatting as per
418 upstream coreutils beta.
419
170230b7
KG
4202003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
421 Richard Earnshaw <rearnsha@arm.com>
422 Geoffrey Keating <geoffk@apple.com>
7468e0b5 423
170230b7
KG
424 * configure.in: Check for sys/sysctl.h and sysctl.
425 * physmem.c: Add support for *bsd and darwin.
426 * Makefile.in: Generate depedency for physmem.o.
427
4a06f7f2
RO
4282003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
429
430 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
431 Tru64 UNIX.
432 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
433 Tru64 UNIX.
434
435 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
436 machine/hal_sysinfo.h, sys/table.h.
437 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
438 * configure, config.in: Regenerate.
439
64c7e556
KG
4402003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
441
442 * configure.in: Check for sys/sysmp.h and sysmp.
443 * physmem.c: Pull upstream copy, add support for irix6.
444
445 * config.in, configure: Regenerated.
446
e9019af6
KG
4472003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
448
449 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
450 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
451 pstat_getdynamic.
7468e0b5 452
a354191e
KG
4532003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
454
455 * Makefile.in (CFILES): Add physmem.c.
456 (REQUIRED_OFILES): Add physmem.o.
457 * configure.in: Check for sys/pstat.h.
458 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
459 * physmem.c: New file, copied from textutils.
460
461 * config.in, configure: Regenerated.
462
4876b2b4
DJ
4632003-02-20 Daniel Jacobowitz <drow@mvista.com>
464
465 * Makefile.in (CFILES): Add lrealpath.c.
466 (REQUIRED_OFILES): Add lrealpath.o.
467 (lrealpath.o): Add rule.
468 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
469 * configure.in: Add realpath and canonicalize_file_name to
470 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
471 for canonicalize_file_name.
472 * lrealpath.c: New file.
473 * make-relative-prefix.c: Update documentation.
474 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
475 * config.in: Regenerated.
476 * configure: Regenerated.
477 * functions.texi: Regenerated.
478
e182f0a3 4792003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
480
481 * cplus_dem.c: Fix typo: intializes -> initializes.
482
3343fdd2
AO
4832003-02-20 Alexandre Oliva <aoliva@redhat.com>
484
485 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
486 config.status.
487 * configure: Rebuilt.
488
902cf50c
DJ
4892003-02-13 Daniel Jacobowitz <drow@mvista.com>
490
491 Fix PR c++/7612.
492 * cplus-dem.c (demangle_signature): Call string_delete.
493 Remove extra string_init.
494 (demangle_arm_hp_template): Call string_delete instead of
495 string_clear. Add missing string_delete call.
496 (demangle_qualified): Add missing string_delete call.
497 (do_type): Remove unused variable btype. Add missing string_delete
498 call. Call string_delete instead of string_clear.
499 (demangle_fund_type): Move variable btype inside of the switch
500 statement. Add missing string_delete call.
501 (do_arg): Call string_delete instead of string_clear. Remove extra
502 string_init.
503 (demangle_nested_args): Free work->previous_argument.
504
7ac27e08
KG
5052003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
506
507 * acconfig.h: New file. Add uintptr_t.
508 * config.in: Regenerated.
509
b3a8389d
JM
5102003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
511
512 * libiberty.texi: Update to GFDL 1.2.
513
d8c22ce7
CC
5142003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
515
516 * Makefile.in (libiberty_topdir): New subst.
517 (mkinstalldirs): Redefine in terms of the above.
518 * configure.in: AC_SUBST it.
519 * configure: Regenerate.
520
4ce1921a
CC
5212003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
522
523 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
524 (info-subdir, install-info-subdir, clean-info-subdir)
525 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
526 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
527 Pass $(FLAGS_TO_PASS).
528
93239fdb
AO
5292003-01-27 Alexandre Oliva <aoliva@redhat.com>
530
531 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
532 /`$$CC -print-multi-os-directory`.
533
74828682
DJ
5342003-01-26 Daniel Jacobowitz <drow@mvista.com>
535
536 * hashtab.c (htab_create_alloc_ex): New function.
537 (hatab_set_functions_ex): New function.
538 (htab_delete, htab_expand): Support alternate allocation functions.
539
ece0e59f
CF
5402003-01-24 Christopher Faylor <cgf@redhat.com>
541
542 * configure.in: Remove special pex-cygwin consideration.
543 * configure: Regenerate.
544 * pex-cygwin.c: Remove.
545 * Makefile.in: Remove pex-cygwin.[co] lines.
546
55d0e5e0
ZW
5472003-01-24 Zack Weinberg <zack@codesourcery.com>
548
549 * Makefile.in (CFILES): Add pex-*.c.
550 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
551 (CONFIGURED_OFILES): Add pex-*.o.
552 (TEXIFILES): Add pexecute.txh.
553 (pexecute.o): Delete rule.
554 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
555 pex-unix.o, pex-win32.o): New rules.
556 * configure.in: Change AC_INIT argument to xmalloc.c.
557 Compute appropriate pexecute implementation and substitute it
558 as @pexecute@.
559
560 * pexecute.c: Split up into...
561 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
562 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
563 new files.
564
565 * functions.texi: Regenerate.
566 * configure: Regenerate.
567
120cdf68
JZ
5682003-01-20 Josef Zlomek <zlomekj@suse.cz>
569
570 * hashtab.c (htab_expand): Fix allocation of new entries.
571
90e5b39f
CC
5722003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
573
574 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
575
d7082cd7
CC
576 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
577 mkinstalldirs command.
578
eaed9290
DS
5792002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
580
581 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
582 Define for hosts with HOST_EXECUTABLE_SUFFIX.
583
ef4e4181
NC
5842002-11-24 Nick Clifton <nickc@redhat.com>
585
586 * make-relative-prefix.c (make_relative_prefix): Ensure return
587 string is empty before using strcat to construct it.
588
42766f8d
DJ
5892002-11-22 Daniel Jacobowitz <drow@mvista.com>
590
591 * Makefile.in: Add make-relative-prefix.c.
592 * make-relative-prefix.c: New file.
593 * functions.texi: Rebuilt.
594
783080ab
JJ
5952002-11-16 Jakub Jelinek <jakub@redhat.com>
596
597 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
598 used with arguments in traditional C' warnings.
599
7da64d7a
JJ
6002002-10-16 Jakub Jelinek <jakub@redhat.com>
601
602 * config.table: Use mh-s390pic for s390x too.
603
de78f58b
AJ
6042002-10-06 Andreas Jaeger <aj@suse.de>
605
606 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
607 variable and of strict-aliasing warning.
608 (grow_vect): Use char as first parameter.
609
6c5d742e
KG
6102002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
611
612 * Makefile.in (all): Fix multilib parallel build.
613
f08b7eee
JDA
6142002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
615
616 * cp-demangle.c (demangling_new): Cast 0 to enum.
617 (demangle_char): Cast return of strdup to char *.
618 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
619 (is_gnu_v3_mangled_dtor): Likewise.
620 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
621 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
622 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
623 * md5.c (md5_process_bytes): Cast results back to const void *.
624 (md5_process_block): Add cast to const md5_uint32 *.
625 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
626 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
627 unsigned short.
628 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
629 to void *.
630 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
631
8d87f295
NC
6322002-09-19 Nick Clifton <nickc@redhat.com>
633
634 * README: Update email addresses for bugs and patches.
635
6eedb9ca
MS
6362002-09-10 Mike Stump <mrs@apple.com>
637
638 * splay-tree.c (splay_tree_successor): Fix comments.
639
3fd9d606
ZW
6402002-09-11 Zack Weinberg <zack@codesourcery.com>
641
b2196e8f 642 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
3fd9d606
ZW
643 * testsuite/Makefile.in: Adjust for test-demangle.
644 * testsuite/regress-demangle: Deleted.
645 * testsuite/test-demangle.c: New file.
646 * testsuite/demangle-expected: Change \$ to $ throughout, now that
647 this file is not being read by a shell script.
648
70c4e67a
RS
6492002-09-05 Roger Sayle <roger@eyesopen.com>
650
651 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
652
65b91091
DD
6532002-08-07 DJ Delorie <dj@redhat.com>
654
655 * regex.c (re_error_msgid): Just use a simple array of strings.
656 (re_compile_pattern): Compensate.
657 (re_comp): Likewise.
658 (re_comp): Likewise.
659 (regerror): Likewise.
660
437974a9
NB
6612002-07-29 Neil Booth <neil@daikokuya.co.uk>
662
663 * cplus-dem.c (PREPEND_BLANK): Remove.
de78f58b 664
28a34ec1
JM
6652002-07-10 Jason Merrill <jason@redhat.com>
666
667 * cp-demangle.c (demangle_identifier): Support extended Unicode
668 characters.
669
84326592
KG
6702002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
671
672 * cp-demangle.c (demangle_v3_with_details): Wrap in
de78f58b 673 !defined IN_GLIBCPP_V3.
84326592 674
5d69ba1f
MM
6752002-07-01 Mark Mitchell <mark@codesourcery.com>
676
677 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
678 Set it for the "st" operator.
679 (demangle_expression): Handle expressions with types as arguments.
680
7fda878c
DR
6812002-06-30 Douglas Rupp <rupp@gnat.com>
682
683 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
684 * Makefile.in (OUTPUT_OPTION): Use.
685
112bae77
PB
6862002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
687
688 * Makefile.in (install_to_libdir): Add $(DESTDIR).
689 (install_to_tooldir): Likewise.
690
53309d5c
DR
6912002-06-17 Douglas Rupp <rupp@gnat.com>
692
693 * lbasename.c: Add 2002 to copyright.
694 (IS_DIR_SEPARATOR): Remove VMS junk.
695
045b3a49
GK
6962002-06-05 Geoffrey Keating <geoffk@redhat.com>
697
698 * hashtab.c (htab_create): New stub function for backward
699 compatibility.
700 (htab_try_create): Likewise.
701
e2500fed
GK
7022002-06-03 Geoffrey Keating <geoffk@redhat.com>
703
704 * hashtab.c (htab_create): Delete.
705 (htab_try_create): Delete.
706 (htab_create_alloc): New.
707 (htab_delete): Support user-specified memory allocation.
708 (htab_expand): Likewise.
709
9f3dbd92
RL
7102002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
711
712 * configure.in: Fix typo in the code checking for sys_errlist.
713 * configure: Regenerated.
714
e4723404
AS
7152002-05-13 Andreas Schwab <schwab@suse.de>
716
717 * config.table: Use mh-x86pic also for x86-64.
718
6706f116
AO
7192002-05-08 Alexandre Oliva <aoliva@redhat.com>
720
721 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
722 script entry, and set LD to it when configuring multilibs.
723 * configure: Rebuilt.
724
deae2ed9
MM
7252002-05-07 Mark Mitchell <mark@codesourcery.com>
726
727 * configure.in (AC_TYPE_PID_T): Use it.
728 * configure: Regenerated.
729 * getruntime.c: Include <sys/types.h>.
730 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
731
4fc4e478
RH
7322002-04-09 Richard Henderson <rth@redhat.com>
733
734 * hashtab.c (higher_prime_number): Use 7 as minimum.
735 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
736 (htab_find_slot_with_hash): Likewise.
737
bd7e6f2d
PE
7382002-04-01 Phil Edwards <pme@gcc.gnu.org>
739
740 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
741 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
742 not compile if IN_GLIBCPP_V3 defined.
743 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
744
a8f55e51
BM
7452002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
746
de78f58b 747 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
a8f55e51
BM
748 if it is NULL.
749
96adcacb
DD
7502002-03-27 DJ Delorie <dj@redhat.com>
751
752 * hex.c: Add documentation.
753 (_hex_value): Provide non-ASCII empty table.
754 (hex_init): Initialize the non-ASCII table.
755 * functions.texi: Regenerate.
756
2b613c6a
MM
7572002-03-27 Mark Mitchell <mark@codesourcery.com>
758
759 * dyn-string.c: Add libgcc exception to copyright notice.
760
cd862df8
L
7612002-03-26 H.J. Lu (hjl@gnu.org)
762
763 * config.table: Support --with-build-subdir.
764 * configure.in: Likewise.
765 * configure: Rebuild.
766
ed300793
SG
7672002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
768
769 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
770 seen.
771
b3dd43df
MM
7722002-03-12 Mark Mitchell <mark@codesourcery.com>
773
774 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
775 notice.
776
50c74579
DR
7772002-03-11 Douglas B Rupp <rupp@gnat.com>
778
779 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
780
957978a4
JB
7812002-03-06 Jim Blandy <jimb@redhat.com>
782
783 * splay-tree.c (splay_tree_xmalloc_allocate,
784 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
785 prototyped definitions. Mark `data' arguments as unused.
786
ccc49bed
AC
7872002-03-06 Andrew Cagney <ac131313@redhat.com>
788
789 * floatformat.c (floatformat_arm_ext_big): Delete definition.
790
48d7db63
PE
7912002-03-04 Phil Edwards <pme@gcc.gnu.org>
792
793 * configure.in: Add --enable-install-libiberty option.
794 * Makefile.in (INSTALLED_HEADERS): New variable.
795 (install_to_libdir): Possibly also copy headers.
796 * configure: Regenerated.
797
af18e951
NB
7982002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
799
800 * xmalloc.c (xmalloc_fail): Clarify error message further.
801
d8d7c3c3
NB
8022002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
803
804 * xmalloc.c (xmalloc_fail): Clarify error message.
805
00c2f96f
JB
8062002-02-22 Jim Blandy <jimb@redhat.com>
807
808 * splay-tree.c (splay_tree_xmalloc_allocate,
809 splay_tree_xmalloc_deallocate): New functions.
810 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
811 above functions and a dummy data pointer.
812 (splay_tree_new_with_allocator): New function.
813 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
814 splay_tree_remove): Use the splay tree's allocation and
815 deallocation functions.
816
b1c1a22f
SS
8172002-02-19 Scott Snyder <snyder@fnal.gov>
818
819 * testsuite/demangle-expected: Add test case for infinite loop in
820 demangler.
821 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
822 if do_type() doesn't make any progress --- prevents an infinite
823 loop.
824
336669e7
CW
8252002-02-18 Carlo Wood <carlo@gnu.org>
826
827 PR c++/5390
828 * cplus-dem.c (demangle_integral_value): Accept multi-digit
829 numbers that do not start with an underscore; This is needed
830 for integer template parameters. This doesn't break anything
831 because multi-digit numbers are never followed by a digit.
832 * testsuite/demangle-expected: Corrected all mangled test
833 cases with multi-digit template parameters: g++ 2.95.x does
834 not generate underscores around these parameters.
835
c13db5d1
JM
8362002-02-05 Jason Merrill <jason@redhat.com>
837
838 * cplus-dem.c (flags): Add DMGL_VERBOSE
839 (cplus_demangle_v3_p): Remove.
840 (demangle_it): Add DMGL_TYPES to passed flags.
841 * cp-demangle.c (cplus_demangle_v3_all): Remove.
842 (cplus_demangle_v3_type): Remove.
843 (cplus_demangle_v3): Add options parm.
844
d74697b8
L
8452002-02-02 H.J. Lu (hjl@gnu.org)
846
847 * cp-demangle.c (cp_demangle_type): Do not protect with
848 IN_LIBGCC2.
849 (cplus_demangle_v3_all): New.
850 (cplus_demangle_v3): Call cplus_demangle_v3_all.
851 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
852
853 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
854 Initialized to cplus_demangle_v3.
855 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
856 of cplus_demangle_v3.
857 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
858 command line symbol.
859
860 * testsuite/regress-demangle: Pass the mangled name at the
861 command line.
862
3a441e38
L
8632002-02-01 H.J. Lu <hjl@gnu.org>
864
865 * cp-demangle.c (cp_demangle_type): Call demangling_new with
866 DMGL_GNU_V3.
867
6d747e63
PE
8682002-01-31 Phil Edwards <pme@gcc.gnu.org>
869
870 * cp-demangle.c: Revert yesterday's change.
871
46af757b
AM
8722002-01-31 Adam Megacz <adam@xwt.org>
873
874 * gcc/libiberty/configure.in: Treat mingw the same as cywin
875 wrt HAVE_SYS_ERRLIST.
876
46ab74b1
PE
8772002-01-30 Phil Edwards <pme@gcc.gnu.org>
878
879 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
880 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
881 cp_demangle_type.
882 * testsuite/demangle-expected: New gnu-v3 test.
883
e64d0626
MV
8842002-01-22 Momchil Velikov <velco@fadata.bg>
885
886 * configure.in (variable detection): Use arrays of unspecified
887 size instead of plain integers.
888
9ce3f7e5
DD
8892002-01-18 DJ Delorie <dj@redhat.com>
890
891 * Makefile.in (TESTLIB): New. This library is for future
892 testsuites.
893 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
894 break down by letter.
895 (REQUIRED_OFILES): List long-to-compile files first.
896 (maint-deps): New, target for updating dependencies.
897 (dependencies): Update.
898 * maint-tool: Add dependency-generating option.
899 * configure.in: Check for _doprnt even if we're not providing it.
900 * configure: Regenerate.
901
902 * _doprnt.c: Modifications to allow compiling on any platform.
903 * copysign.c: Likewise.
904 * putenv.c: Likewise.
905 * setenv.c: Likewise.
906 * vsprintf.c: Likewise.
907
0e83ceb1
DR
9082002-01-15 Douglas B Rupp <rupp@gnat.com>
909
910 * mkstemps.c (mkstemps): On VMS, open temp file with option
911 that causes it to be deleted when closed.
912
adddf5bf
KG
9132002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
914
5e65297b
KG
915 * cp-demangle.c (long_options): Const-ify.
916 * cplus-dem.c (long_options): Likewise.
917
adddf5bf
KG
918 * cplus-dem.c (mystrstr): Delete. All callers changed to use
919 strstr instead.
920
a4219437
IR
9212001-12-31 Ira Ruben <ira@apple.com>
922
923 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
924 * configure: Regenerated.
af328d8d
DR
925
9262001-12-24 Douglas B. Rupp <rupp@gnat.com>
927
928 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
929 * configure: Regenerated.
a4219437 930
63de15a4
CR
9312001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
932
933 PR other/2719
934 * cplus-dem.c (consume_count): Treat negative count as an error.
935 * testsuite/demangle-expected: Added testcase.
936
ee262b6f
DR
937Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
938
939 * configure.in: Hardcode that vfork works on VMS host.
940 * configure: Regenerated.
941
d06ba3c7
RH
9422001-12-06 Richard Henderson <rth@redhat.com>
943
944 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
945 (cplus_demangle): Support no_demangling.
946
e490616e
ZW
9472001-11-27 Zack Weinberg <zack@codesourcery.com>
948
949 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
950 in libiberty context. Fix typo in leading comment.
951 * configure.in: Fix various AC_DEFINEs so autoheader works.
952 If any of vprintf, vsprintf, vfprintf is missing from libc,
953 then AC_REPLACE_FUNCS(_doprnt).
954
97e620cf 9552001-11-26 DJ Delorie <dj@redhat.com>
e490616e 956 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
957
958 * Makefile.in (stamp-h): Depend on Makefile for proper
959 serialization.
960 (*-subdir): Depend on config.h for proper serialization.
961
c3bb7df0
DD
9622001-11-26 DJ Delorie <dj@redhat.com>
963
964 * configure.in: Check for alloca.h (for regex.c and putenv.c).
965 * configure: Regenerate.
966 * config.h: Add HAVE_ALLOCA_H.
967
23850d35
KG
9682001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
969
2c47b56b
KG
970 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
971 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
972 is available.
23850d35 973
7ddfb651
JL
974Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
975
d3982b71
JL
976 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
977 * configure.in (HAVE_UINTPTR_T): Test for system defining
978 uintptr_t and define HAVE_UINTPTR_T appropriately.
979 * regex.c (uintptr_t): Do not provide a definition if the
980 system provided one.
981
7ddfb651
JL
982 * regex.c (PREFIX): Provide an alternate definition for
983 non-ANSI/ISO compilers.
984 (ARG_PREFIX): Likewise.
985
2e683037
JM
9862001-11-12 Jim Meyering <meyering@lucent.com>
987
988 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
989 this code would end up calling gettext even in packages built
990 with --disable-nls.
991 * getopt.c (_): Likewise.
992 * regex.c (_): Likewise.
993
f749bd83
AM
9942001-11-03 Alan Modra <amodra@bigpond.net.au>
995
996 * configure.in: Cope with missing makeinfo.
55a10d7c 997 * configure: Regenerate.
f749bd83 998
26ad2982
KG
9992001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1000
e5969ba6
KG
1001 * hex.c (hex_init): Provide empty stub.
1002
26ad2982
KG
1003 * hex.c (hex_init): Delete.
1004 (_hex_value): Const-ify and initialize at compile-time.
1005
afb649d5
L
10062001-10-19 H.J. Lu <hjl@gnu.org>
1007
1008 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
1009 necessary.
1010
5bed56d9
DD
10112001-10-17 DJ Delorie <dj@redhat.com>
1012
1013 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
1014 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
4dcc42a3 1015 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
1016 Improve manual formatting.
1017 * functions.texi: Regenerate.
1018
aac04c15
DD
10192001-10-15 DJ Delorie <dj@redhat.com>
1020
1021 * Makefile.in (TEXIFILES): Add fnmatch.txh.
1022 (maint-undoc): New.
1023 maint-tool: Add "undoc" tool.
1024 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
1025 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
1026 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
1027 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
1028 documentation.
1029 * fnmatch.txh: New.
1030 * functions.texi: Regenerate.
fae8182a 1031
0e4e9e8f
JM
10322001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
1033
1034 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
1035 * strtod.c: Use "ISO C" instead of "ANSI C".
1036 * functions.texi: Regenerate.
1037
7f8fa05d
JM
10382001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
1039
1040 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
1041 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
1042 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
1043 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
1044 spelling. Give names to function arguments in documentation. Use
1045 (void) prototypes in documentation.
1046 * functions.texi: Regenerate.
1047
0be6abca
KG
10482001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1049
1050 * argv.c (buildargv, tests, main): Const-ify.
1051 * cp-demangle.c (operator_code): Likewise.
1052 * cplus-dem.c (optable, libiberty_demanglers,
1053 cplus_demangle_set_style, cplus_demangle_name_to_style,
1054 print_demangler_list): Likewise.
1055 * hashtab.c (higher_prime_number): Likewise.
1056 * strcasecmp.c (charmap): Likewise.
1057 * strerror.c (error_info, strerror, main): Likewise.
1058 * strncasecmp.c (charmap): Likewise.
1059 * strsignal.c (signal_info): Likewise.
1060
0e30ffc5
DD
10612001-09-29 DJ Delorie <dj@redhat.com>
1062
1063 * configure: Regenerate.
1064
576fb787
KG
10652001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1066
1067 * concat.c: Include stdlib.h.
1068
e922f978
EZ
10692001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
1070
1071 * libiberty.texi: (Top level): Add syncodeindex pg. Add
1072 @dircategory and @direntry directives. Add @finalout.
1073 (many nodes): Lose the next,prev,up pointers on the @nide line.
1074 (Using, Supplemental Functions, Replacement Functions): Fix
1075 markup.
1076 (Functions): Move around, to allow makeinfo to build the manual
1077 without next,prev,up pointers in thye node lines.
1078 (Licenses): Fix typos.
1079
1080 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
1081 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
1082 * functions.texi: Regenerate.
1083
1084 * copying-lib.texi: Lose the next,prev,up pointers on the @node
1085 line.
1086
ae9092da
DD
10872001-09-27 DJ Delorie <dj@redhat.com>
1088
1089 * configure.in: Don't use in-tree texinfo, because libiberty must
1090 be built before it. Check for makeinfo version 4 or higher.
1091 * functions.texi: Regenerate.
fae8182a 1092
aaa5f039
DD
10932001-09-20 DJ Delorie <dj@redhat.com>
1094 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 1095
aaa5f039
DD
1096 * configure.in (MAKEINFO, PERL): Detect these.
1097 (--enable-maintainer-mode): Add.
1098 * configure: Regenerate.
1099 * Makefile.in (MAKEINFO, PERL): Define.
1100 (libiberty.info, libiberty.dvi, libiberty.html): New.
1101 (CFILES): Add bsearch.c.
1102 (CONFIGURED_OFILES): New, list of objects configure might add.
1103 (maint-missing, maint-buildall): New, for maintainers only.
1104 (clean, mostlyclean): Add info/dvi/html files.
1105 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
1106 * gather-docs: New, for maintainers.
1107 * maint-tool: New, for maintainers.
1108 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
1109 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
1110 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
1111 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
1112 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
1113 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
1114 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
1115 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
1116 documentation.
fae8182a 1117
c1766881
KG
11182001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1119
1120 * concat.c (reconcat): Fix for traditional C.
1121
ad43d46f
KG
11222001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1123
1124 * concat.c (reconcat): New function.
1125
c1d49704
KG
11262001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1127
c793eea7
KG
1128 * concat.c (vconcat_length, vconcat_copy, concat_length,
1129 concat_copy, concat_copy2): New functions.
1130 (concat): Use vconcat_length/vconcat_copy.
1131
c1d49704
KG
1132 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
1133 Define.
1134
7a98d9b2
KG
11352001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1136
1137 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
1138 VA_FIXEDARG & VA_CLOSE.
fae8182a 1139
7a98d9b2
KG
1140 * vasprintf.c: Check HAVE_STRING_H when including string.h.
1141 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
1142 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
1143
e2dff3f2
KG
11442001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1145
1146 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
1147
d0708dc1
UD
11482001-08-23 Ulrich Drepper <drepper@redhat.com>
1149
1150 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
1151
11522001-08-23 Ulrich Drepper <drepper@redhat.com>
1153
1154 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1155 instead of mbrtowc.
1156 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1157 wcslen, and __wcscoll instead of wcscoll.
1158
ffb9435b
MK
11592001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1160
de78f58b
AJ
1161 * fibheap.c (fibheap_init, fibnode_init): Remove.
1162 (fibheap_new, fibnode_new): Use xcalloc to allocate and
1163 initialize memory.
1164 (fibheap_insert): Remove check for node allocation failure.
ffb9435b 1165
f379eac3
RH
11662001-08-21 Richard Henderson <rth@redhat.com>
1167
1168 * Makefile.in (fibheap.o): Depend on config.h.
1169 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
1170 functions for inlining.
1171
b1c45ae4
CF
1172Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
1173
1174 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
1175 hosting on cygwin.
1176 * configure: Regenerate.
1177
0310e5ac
AC
11782001-08-20 Andrew Cagney <ac131313@redhat.com>
1179
1180 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
1181 HARRIS_FLOAT_FORMAT.
1182 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
1183 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
1184 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
1185 (floatformat_m88110_harris_ext): New float formats.
1186
8c23e0a4
DB
11872001-08-20 Daniel Berlin <dan@cgsoftware.com>
1188
1189 * fibheap.c: New file. Fibonacci heap.
1190
1191 * Makefile.in (CFILES): Add fibheap.c.
1192 (REQUIRED_OFILES): Add fibheap.o.
1193 (fibheap.o): Add dependencies for fibheap.o.
1194
91625004
CF
11952001-08-17 Christopher Faylor <cgf@cygnus.com>
1196
1197 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
1198 * configure: Regenerate.
1199
9e0ba685
RH
12002001-08-16 Richard Henderson <rth@redhat.com>
1201
1202 * hashtab.c (htab_hash_string): New.
1203
d80dedbe
AC
12042001-08-13 Andrew Cagney <ac131313@redhat.com>
1205
1206 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
1207 name.
1208
ccea0d85
IH
12092001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
1210
1211 * regex.c (wcs_regex_compile): Use appropriate string
1212 to compare with collating element.
1213 Fix the padding for the alignment.
1214
b0e9bc8c 12152001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
1216
1217 * lbasename.c (lbasename): Change function definition to return a
1218 const char pointer.
1219
056400f1
JM
12202001-08-07 Jason Merrill <jason_merrill@redhat.com>
1221
1222 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
1223 for".
1224
4e627c41
RH
12252001-08-03 Richard Henderson <rth@redhat.com>
1226
1227 * Makefile.in (concat.o): Depend on config.h.
1228
b6a2f884
AJ
12292001-07-30 Andreas Jaeger <aj@suse.de>
1230
1231 * concat.c: Include "config.h".
1232
c4b9cfe0
AJ
12332001-07-30 Andreas Jaeger <aj@suse.de>
1234
1235 * regex.c: Declare wcs functions only if compiling with
1236 MBS_SUPPORT.
1237 Don't use #elif for traditional C.
1238
12392001-07-23 Ulrich Drepper <drepper@redhat.com>
1240
1241 * regex.c: Revamp memory allocation for WCHAR functions to
1242 not use too much stack.
1243
12442001-07-30 Andreas Jaeger <aj@suse.de>
1245
1246 * regex.c: Declare wcs functions only if compiling with
1247 MBS_SUPPORT.
1248 Don't use #elif for traditional C.
1249
2cf50fd3
DJ
12502001-07-25 Daniel Jacobowitz <drow@mvista.com>
1251
1252 * Makefile.in (regex.o): Add dependency on config.h.
1253
27ffc806
DD
12542001-07-18 Andreas Schwab <schwab@suse.de>
1255
1256 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
1257 underscore character.
1258
12592001-07-18 Ulrich Drepper <drepper@redhat.com>
1260
1261 * regex.c: Limit string length printed in debug messages to 100
1262 chars.
1263
12642001-07-18 Andreas Jaeger <aj@suse.de>
1265
1266 * regex.c: Place under LGPL version 2.1.
1267
dd771632
JJ
12682001-07-10 Jeff Johnston <jjohnstn@redhat.com>
1269
1270 * Makefile.in: Add support for regex code.
1271 * regex.c: New file.
1272
29650b2b
MK
12732001-07-05 Mark Klein <mklein@dis.com>
1274
1275 * Makefile.in: Add ffs.c dependency.
1276 * configure.in: Add ffs.c.
1277 * ffs.c: New file.
1278
c8b28221
RH
12792001-06-18 Richard Henderson <rth@redhat.com>
1280
1281 * concat.c: Include <sys/types.h>.
1282
473c2d0b
LR
12832001-06-11 Loren J. Rittle <ljrittle@acm.org>
1284
a4c03da2 1285 bootstrap/3106
473c2d0b
LR
1286 * strerror.c (sys_nerr): Hide the OS header version.
1287 * strsignal.c (sys_nsig): Likewise.
1288
0bdcca68
RH
12892001-06-10 Richard Henderson <rth@redhat.com>
1290
1291 * concat.c: Include string.h. Fix int vs size_t usage.
1292 Simplify the iteration loops. Use memcpy.
1293
6de133d3
MK
12942001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1295
1296 * partition.c: Fix misspelling of `implementation'.
1297
8a153288
TS
12982001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1299
1300 * md5.c (md5_init_ctx): Declare constants as unsigned.
1301 (md5_process_block): Likewise.
1302
641b2721
ZW
13032001-05-07 Zack Weinberg <zackw@stanford.edu>
1304
1305 * cp-demangle.c (demangle_v3_with_details,
1306 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
1307 function definition.
1308 * ternary.c: Use K+R style function definitions. Use PTR, not
1309 void *. Make arguments constant where possible.
1310
5cdba4ff
MM
13112001-05-07 Mark Mitchell <mark@codesourcery.com>
1312
1313 * splay-tree.h (splay_tree_max): New function.
1314 (splay_tree_min): Likewise.
1315
9dab060e
DB
13162001-04-15 Daniel Berlin <dan@cgsoftware.com>
1317
1318 * ternary.c: New file - Ternary search tree implementation.
1319
1320 * Makefile.in: Add ternary.o, and ternary.c dependencies.
1321
d02af173
ZW
13222001-04-03 Zack Weinberg <zackw@stanford.edu>
1323
1324 * make-temp-file.c (try): Inline.
1325
94b68558
RH
13262001-02-28 Richard Henderson <rth@redhat.com>
1327
1328 * Makefile.in (make-temp-file.o): Depend on config.h.
1329
27f66c0b
KG
13302001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1331
1332 * memchr.c (memchr): Adjust condition to avoid infinite loop.
1333
f1a0345c
JJ
13342001-03-23 Jakub Jelinek <jakub@redhat.com>
1335
1336 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
1337 `_' not followed by a digit is invalid.
1338
a519fba6
JB
13392001-03-22 Jim Blandy <jimb@redhat.com>
1340
1341 * cp-demangle.c (string_list_delete): Use dyn_string_delete
1342 instead of free, to free the contents as well as the string
1343 structure.
1344
49ee944b
ZW
13452001-03-21 Zack Weinberg <zackw@stanford.edu>
1346
1347 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
1348 Don't default P_tmpdir to anything. Try /var/tmp before
1349 /usr/tmp.
1350
33437dc7
ZW
13512001-03-20 Zack Weinberg <zackw@stanford.edu>
1352
1353 * choose-temp.c: Split off make_temp_file, and the code
1354 duplicated between it and choose_temp_base, into...
1355 * make-temp-file.c: ... here; new file.
1356
1357 * Makefile.in (CFILES): Add make-temp-file.c.
1358 (REQUIRED_OFILES): Add make-temp-file.o.
1359
7dce2eff
JB
13602001-03-20 Jim Blandy <jimb@redhat.com>
1361
1362 * cp-demangle.c (struct demangling_def): New fields:
1363 is_constructor and is_destructor.
1364 (demangling_new): Initialize them.
1365 (demangle_ctor_dtor_name): Set them, if we detect a constructor
1366 or destructor.
1367 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
1368 is_gnu_v3_mangled_dtor): New functions.
1369
e03a61f1
JM
13702001-03-20 Jason Merrill <jason@redhat.com>
1371
1372 * cplus-dem.c (main): Skip initial $.
1373
8860ddab
MM
13742001-03-15 Michael Meissner <meissner@redhat.com>
1375
1376 * hashtab.c (higher_prime_number): Silence warning that 4294967291
1377 might be a signed integer under pre-ISO C systems.
1378
2b757d51
NB
13792001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
1380 John David Anglin <dave@hiauly1.hia.nrc.ca>
1381
1382 * libiberty/lbasename.c: New file.
1383 * libiberty/Makefile.in: Update for lbasename.
1384
1f50aafb
ZW
13852001-03-06 Zack Weinberg <zackw@stanford.edu>
1386
1387 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
1388 * configure.in: Replace all alloca logic with a simple use of
1389 the above new macro.
1390 * config.table: Kill *-*-beos* entry.
1391 * config/mh-beos: Delete.
1392 * configure, config.in: Regenerate.
1393
1394 * Makefile.in (ALLOCA, HFILES): Kill.
1395 (REQUIRED_OFILES): Add alloca.o.
1396 (alloca.o): Depend on libiberty.h.
1397 (argv.o): Don't depend on alloca-conf.h.
1398 * alloca-conf.h: Delete.
1399 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
1400 blocks. Provide the C alloca unconditionally. Use PTR where
1401 appropriate. Make i00afunc static.
1402 * argv.c: Don't include alloca-conf.h.
1403
d9fd5aae
JDA
14042001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1405
1406 * cplus-dem.c (main): Cast enum style to int.
1407
4031ed65
LR
14082001-02-16 Loren J. Rittle <ljrittle@acm.org>
1409
1410 * cplus-dem.c (main): Initialize style.
1411
2ca46e8a
PE
14122001-02-02 Phil Edwards <pme@sources.redhat.com>
1413
1414 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
1415
3b60dd8e
BM
14162001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
1417
1418 Add support for Java demangling under the v3 ABI:
1419 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
1420 (struct demangling_def): Add `style' field.
1421 (demangling_new): New parameter `style'. Set it in demangling_t.
1422 (demangle_prefix): Use NAMESPACE_SEPARATOR.
1423 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
1424 (cp_demangle): New parameter `style'. Pass it to demangling_new().
1425 (main): Call cp_demangle with extra parameter.
1426 (java_demangle_v3): New function.
1427 (java_builtin_type_names): New. Table of primitive type names used
1428 for Java demangling.
1429 (demangle_builtin_type): Look up in java_builtin_type_names if doing
1430 Java output.
1f50aafb 1431 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
1432 demangling.
1433 (long_options): Remove obsolete `java' option.
1434 (main): Remove explicit handling of `java' option. Instead, pass style
1435 parameter in cplus_demangle flags as gdb does.
1436 * testsuite/demangle.expected: Add some Java test cases.
1437
584932e9
DD
14382000-12-29 DJ Delorie <dj@redhat.com>
1439
1440 * fnmatch.c: Make the note about the origins of this file more
1441 accurate, at least until we can sync with glibc.
1442 * getopt.c: Ditto.
1443 * getopt1.c: Ditto.
1444 * md5.c: Ditto.
1445 * obstack.c: Ditto.
1446
dac45916
MS
14472000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1448
1449 * bsearch.c: New file.
1450 * configure.in (funcs): Add bsearch.
1451 (AC_CHECK_FUNCS): Likewise.
1452 * configure, config.in: Regenerate.
1453
a8e4a997
MS
14542000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1455
1456 * safe-ctype.c: #include "ansidecl.h".
1457 * strtod.c: Likewise.
1458
75444da7
MS
14592000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1460
1461 * strtoul.c: Include safe-ctype.h, not ctype.h.
1462
f6bbde28
ZW
14632000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1464
1465 * safe-ctype.c: New file.
1466 * Makefile.in (CFILES): Add safe-ctype.c.
1467 (REQUIRED_OFILES): Add safe-ctype.o.
1468
1469 * argv.c: Define ISBLANK and use it, not isspace.
1470 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
1471 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
1472 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
1473 before calling TOLOWER(c)/TOUPPER(c).
1474
6c1ce62b 14752000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
1476
1477 * Makefile.in (distclean): When cleaning, remove testsuite.
1478
b5d1497d
JM
14792000-12-05 Jason Merrill <jason@redhat.com>
1480
1481 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1482 name before allocating the dyn_string.
1483
c6e13630
JM
14842000-12-04 Jason Merrill <jason@redhat.com>
1485
1486 * cp-demangle.c: s/new_abi/v3/.
1487 * cplus-dem.c: Likewise.
1488 (current_demangling_style): Now auto_demangling.
1489 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 1490 (main): Use standard symbol chars for auto_demangling.
c6e13630 1491
a4c9b97e
MM
14922000-11-26 Mark Mitchell <mark@codesourcery.com>
1493
1494 * hashtab.c (higher_prime_number): Use a table, rather than a
1495 seive, to find the next prime.
1496
3b3bd9a7
L
14972000-11-22 H.J. Lu <hjl@gnu.org>
1498
1499 * cplus-dem.c (main): Handle gnat_demangling.
1500
d1209685
ZW
15012000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
1502
1503 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1504 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1505 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1506 argument form of AC_DEFINE in dummy definitions block. Use
1507 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1508 in dummy block. Preload cache variables instead of bypassing
1509 tests, where possible.
1510 * acconfig.h: Removed.
1511
1512 * xmalloc.c (xmalloc_failed): New function, does error
1513 reporting on failed allocation.
1514 (xmalloc, xcalloc, xrealloc): Use it.
1515
cf183ac2
HPN
15162000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1517
1518 * cplus-dem.c (cplus_demangle): Fix formatting.
1519 (grow_vect): Ditto.
1520 (ada_demangle): Ditto.
1521 (internal_cplus_demangle): Ditto.
1522 (mop_up): Ditto.
1523
15242000-11-21 H.J. Lu <hjl@gnu.org>
1525
1526 * cplus-dem.c (main): Handle java_demangling.
1527
8bcc782c
KG
15282000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1529
1530 * cplus-dem.c (grow_vect): Prototype.
1531 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1532
29120f44
HPN
15332000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1534
1535 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1536 parameter `option'.
1537
0437a5a8
KB
15382000-11-15 Kenneth Block <kenneth.block@compaq.com>
1539
9e038f71 1540 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
1541 be used in GCC.
1542
eab0c1ab 15432000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 1544
29120f44 1545 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
1546 list.
1547
d50d20ec
HPN
15482000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1549
1550 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
1551 xcalloc depending on htab->return_allocation_failure. Return zero
1552 if calloc fails.
d50d20ec
HPN
1553 (htab_create): Update comment to cover memory allocation.
1554 (htab_try_create): New.
1555 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 1556 Update comment to cover this.
d50d20ec 1557
35e9340f
HPN
15582000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1559
1560 * hashtab.c: Change void * to PTR where necessary.
1561 (htab_create, htab_expand): Correct formatting of comment before
1562 function.
1563
ea343d1a 15642000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
1565
1566 * cp-demangle.c (string_list_def): Add caret_position and comments.
1567 (result_caret_pos): New macro.
1568 (result_append_string): Rename to...
1569 (result_add_string): ... this, and insert at caret position.
d1209685 1570 Rename throughout.
0870bfd6
AS
1571 (result_append): Rename to...
1572 (result_add): ... this, and insert at caret position. Rename
d1209685 1573 throughout.
0870bfd6
AS
1574 (result_append_char): Rename to...
1575 (result_add_char): ... this, and insert at caret position. Rename
d1209685 1576 throughout.
0870bfd6
AS
1577 (result_append_space): Remove.
1578 (string_list_new): Initialize caret position.
1579 (result_add_separated_char): Use caret position.
1580 (result_get_caret): New funtion.
1581 (result_set_caret): Likewise.
1582 (result_shift_caret): Likewise.
1583 (result_previous_char_is_space): Likewise.
1584 (substitution_start): Use caret position.
1585 (substitution_add): Likewise.
1586 (demangling_new): Initialize caret position.
1587 (demangle_encoding): Use caret position.
d1209685 1588 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
1589 (demangle_type_ptr): Use switch statement. Handle pointers to
1590 arrays. Don't use result_append_space. Use caret position.
1591 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
1592 call to demangle_array_type.
1593 (demangle_array_type): Add parameter to handle pointers to arrays.
1594
f15b9af9
MM
15952000-10-01 Mark Mitchell <mark@codesourcery.com>
1596
1597 * splay-tree.c (splay_tree_insert): Fix formatting.
1598
8f17b5c5
MM
15992000-09-16 Mark Mitchell <mark@codesourcery.com>
1600
1601 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
1602
4eaa189a
MS
16032000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1604
1605 * splay-tree.c: #include <stdio.h>.
1606
29791078
HPN
16072000-09-14 Hans-Peter Nilsson <hp@axis.com>
1608
1609 * testsuite/demangle-expected: Add two tests for anonymous
1610 namespaces.
1611 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1612
2c9f4db7
MM
16132000-09-10 Mark Mitchell <mark@codesourcery.com>
1614
1615 * splay-tree.c (splay_tree_predecessor): New function.
1616 (splay_tree_successor): Likewise.
1617
bb22da4b
HPN
16182000-09-10 Hans-Peter Nilsson <hp@axis.com>
1619
1620 * testsuite/demangle-expected: Add four tests for type_info
1621 mangling.
bb22da4b
HPN
1622 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1623 for a non-template non-qualified type_info function or node.
1624
759e8187
AS
16252000-09-08 Alex Samuel <samuel@codesourcery.com>
1626
1627 * cp-demangle.c: Fix copyright banner.
1628
2ecd81ef
MS
16292000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1630
1631 * md5.c: #include "ansidecl.h".
1632
d93998ec
AS
16332000-09-06 Alex Samuel <samuel@codesourcery.com>
1634
1635 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1636 (demangle_type): Handle substitution candidates correctly in the
1637 face of special substitutions.
1638
1056d228
AS
16392000-09-05 Alex Samuel <samuel@codesourcery.com>
1640
1641 * cp-demangle.c (demangle_encoding): Rename variable.
1642 (demangle_name): Rename parameter. Handle return type
1643 suppression.
1644 (demangle_nested_name): Rename parameter.
1645 (demangle_prefix): Likewise. Change return type suppression.
1646 (demangle_unqualified_name): Add parameter. Flag constructors and
1647 conversion operators.
1648 (demangle_special_name): Fix comment.
1649 (demangle_type): Rename variable.
1650 (demangle_bare_function_type): Check for missing return type and
d1209685 1651 parameter.
1056d228
AS
1652 (demangle_class_enum_type): Rename parameter.
1653 (demangle_discriminator): Fix misspelling in comment.
1654
2f31ed7e
DD
16552000-08-31 DJ Delorie <dj@redhat.com>
1656
1657 * configure.in (Cygwin): special case cygwin only when we're
1658 building cygwin, not when we're hosting cygwin.
1659
02bcb9c6
AS
16602000-09-04 Alex Samuel <samuel@codesourcery.com>
1661
1662 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
1663 <expression>.
1664
aee749cf
AS
16652000-09-04 Alex Samuel <samuel@codesourcery.com>
1666
1667 * cp-demangle.c (demangle_type_ptr): Increment position past
1668 pointer and reference characters.
1669
92a16bbe
AS
16702000-09-04 Alex Samuel <samuel@codesourcery.com>
1671
1672 * cp-demangle.c (demangle_nv_offset): New function.
1673 (demangle_v_offset): Likewise.
1674 (demangle_call_offset): Likewise.
1675 (demangle_special_name): Update thunk demangling to comply with
1676 ABI changes.
d1209685 1677
31e0ab1f
AS
16782000-09-03 Alex Samuel <samuel@codesourcery.com>
1679
1680 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1681 (substitution_def): Remove template_parm_number.
1682 (NOT_TEMPLATE_PARM): Remove.
1683 (result_insert_string): New macro.
1684 (result_insert): Likewise.
1685 (result_insert_char): Likewise.
1686 (substitution_add): Remove last parameter. Don't store template
d1209685 1687 parm number.
31e0ab1f
AS
1688 (BFT_NO_RETURN_TYPE): Define as NULL.
1689 (demangle_encoding): Adjust call to demangle_bare_function_type.
1690 (demangle_name): Adjust substitution. Adjust call to
d1209685 1691 substitution_add.
31e0ab1f
AS
1692 (demangle_prefix): Adjust call to substitution_add.
1693 (demangle_identifier): Handle anonymous namespaces.
1694 (demangle_operator_name): Change demangling of vendor-extended
1695 operator to match ABI changes.
1696 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 1697 substitutions here.
31e0ab1f
AS
1698 (demangle_type): Adjust calls to demangle_template_param,
1699 substitution_add, and demangle_type_ptr. Fix substitution of
1700 templated types.
1701 (demangle_function_type): Change parameter to a pointer.
1702 (demangle_bare_function_type): Likewise. Adjust insertion point.
1703 (demangle_template_param): Remove last parameter.
1704 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 1705 demangle_template_param.
31e0ab1f
AS
1706 (is_mangled_char): Accept `$' and `.'.
1707 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1708 * dyn-string.c (dyn_string_insert_char): New function.
1709
ccbc3eb7
HPN
17102000-08-31 Hans-Peter Nilsson <hp@axis.com>
1711
1712 * testsuite/demangle-expected: Add nine tests for
1713 underscore-after-number followed by five tests for name-signature
1714 delimiter.
1715
53dce582
RH
17162000-08-28 Richard Henderson <rth@cygnus.com>
1717
1718 * Makefile.in (md5.o): Depend on config.h.
1719
881c6935
JM
17202000-08-28 Jason Merrill <jason@redhat.com>
1721
1722 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1723 (CFILES): Add md5.c.
1724 * md5.c: New file.
1725
a440fd19
AS
17262000-08-27 Alex Samuel <samuel@codesourcery.com>
1727
1728 * cp-demangle.c (demangle_name): Initialize template_p in local
1729 name case. Don't re-add substitutions as candidates.
1730 (demangle_nested_name): Use <unqualified-name>.
1731 (demangle_prefix): Likewise. Don't add template names as
1732 substitution candidates twice, or re-add a substitution or the
1733 last prefix component.
1734 (demangle_local_name): Adjust output format.
1735
d01ce591
AS
17362000-08-25 Alex Samuel <samuel@codesourcery.com>
1737
1738 * cp-demangle.c (result_add_separated_char): Change parameter to
1739 int.
1740 (substitution_add): Don't check for duplicates. Check if
1741 previously allocated size is zero.
1742 (demangle_name): Remove duplicate check for std substitution.
1743 Clear template flag appropriately.
1744 (demangle_prefix): Remove argument to demangle_substitution.
1745 Don't check that template flag is already set.
1746 (demangle_operator_name): Add pt operator.
1747 (demangle_type): Don't treat r as built-in type. Remove argument
1748 to demangle_substitution. Fix substitution candidate mechanics.
1749 Handle <template-template-parm>s. Improve comments.
d1209685 1750 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
1751 (demangle_substitution): Remove parameter.
1752 (print_usage): Remove extra fprintf option.
1753
2f59c8eb
GM
17542000-08-24 Greg McGary <greg@mcgary.org>
1755
1756 * libiberty/random.c (end_ptr): Revert previous change.
1757
2f26c11d
GM
17582000-08-24 Greg McGary <greg@mcgary.org>
1759
1760 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1761 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1762 * libiberty/random.c (end_ptr): Likewise.
1763
e282c9c9
AS
17642000-08-23 Alex Samuel <samuel@codesourcery.com>
1765
1766 * cp-demangle.c (result_close_template_list): Remove function.
1767 (result_add_separated_char): New function.
1768 (result_open_template_list): New macro.
1769 (result_close_template_list): Likewise.
1770 (demangle_prefix): Don't set template_p if the
1771 prefix ends with a ctor name.
1772 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1773 (demangle_type): Check for template args after substitution.
1774 (demangle_template_args): Use result_open_template_list.
d1209685 1775
c9b6494a
ZW
17762000-08-02 Zack Weinberg <zack@wolery.cumb.org>
1777
1778 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
1779
d1209685 17802000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
1781
1782 * config/mh-openedition.h: Added -DLE370 definition.
1783
0aab2795
ME
17842000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1785
1786 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1787 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1788 Cast program to 'char *' in errmsg_arg assignment.
1789 (PWAIT_ERROR): Define.
1790 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1791 to DJGPP's WIF* macros.
1792
c2f275e4
RB
17932000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
1794 Jeff Law <law@cygnus.com>
1795
73aa9564
RB
1796 * getcwd.c: Include string.h, stdlib.h for prototypes
1797
c2f275e4 1798 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
1799 * rename.c: Include config.h, unistd.h
1800 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 1801
ccbc3eb7
HPN
18022000-07-24 Hans-Peter Nilsson <hp@axis.com>
1803
1804 * cplus-dem.c (work_stuff_copy_to_from): New.
1805 (delete_non_B_K_work_stuff): New.
1806 (delete_work_stuff): New.
1807 (mop_up): Break out work_stuff partly destruction to
1808 delete_non_B_K_work_stuff.
1809 (iterate_demangle_function): New.
1810 (demangle_prefix): Call iterate_demangle_function instead of
1811 demangle_function_name. Leave handling of name-signature
1812 __-delimiters to iterate_demangle_function.
1813 (demangle_integral_value): Strip an optional
1814 following underscore cautiously. Handle negative numbers.
1815
3388651c
DB
18162000-07-24 Daniel Berlin <dberlin@redhat.com>
1817
d1209685 1818 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
1819 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1820
0fac482e
AS
18212000-07-21 Alex Samuel <samuel@codesourcery.com>
1822
1823 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1824 allocating ctor mangling.
1825 (demangle_array_type): Handle empty and non-constant array length.
1826
8502a100 18272000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
1828 Jeff Law <law@cygnus.com>
1829
c6451ce1
MS
1830 * configure.in (AC_CHECK_HEADERS): Add time.h.
1831 (AC_HEADER_TIME): Add check.
1832 * configure, config.in: Regenerate.
1833 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1834
cd447360
MS
1835 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1836 * configure, config.in: Regenerate.
1837 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1838 * strtol.c, strtoul.c: #include "config.h". Portably #include
1839 <limits.h> and/or <sys/param.h>.
1840 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 1841
3b58c099
MS
1842 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1843 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1844 * configure, config.in: Regenerate.
1845 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1846
8502a100
MS
1847 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1848
da0c7743
MS
18492000-07-21 Mike Stump <mrs@wrs.com>
1850
1851 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 1852 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 1853
838f8562
KG
18542000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1855
1856 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1857
1858 * setenv.c (setenv): Initialize variable `ep'.
1859
1860 * sigsetmask.c (abort): Prototype.
1861
1862 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1863 __STDC__ for stdarg.h include.
1864 (int_vasprintf): Prototype.
1865 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1866 definition. Cast `global_total_width' in comparison.
1867 (main): Prototype. Return a value.
1868
1869 * vfork.c (fork): Prototype.
1870
1871 * xexit.c: Include config.h.
1872
e9958132
JM
18732000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1874
1875 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1876 and print it with %u.
1877
39a6492f
HPN
18782000-07-17 Hans-Peter Nilsson <hp@axis.com>
1879
1880 * testsuite/regress-demangle (failed test): Show result and
1881 expected output.
1882
6d0be369
AH
18832000-07-07 Andrew Haley <aph@cygnus.com>
1884
1885 * cplus-dem.c (main): fflush() after emitting last char before
1886 waiting for input.
1887
bece74bd
AS
18882000-06-28 Alex Samuel <samuel@codesourcery.com>
1889
1890 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1891 (demangle_name): Handle <substitution> followed by
1892 <unqualified-template-name>.
1893 (demangle_type): Follow special substitutions with
1894 <class-enum-type>
1895 (demangle_subtitution): Set template_p for special substitutions.
1896 (main): Fix typos.
d1209685 1897
229b8ec7
AS
18982000-06-27 Alex Samuel <samuel@codesourcery.com>
1899
1900 * cp-demangle.c (demangle_special_name): Swap base and derived
1901 class when demangling construction vtables.
1902
051664b0
AS
19032000-06-21 Alex Samuel <samuel@codesourcery.com>
1904
1905 * cp-demangle.c: Don't include ctype.h.
1906 (IS_DIGIT): New macro.
1907 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1908 instead of isdigit and isalpanum.
1909 (demangling_def): Make name and next const pointers.
1910 (STATUS_ALLOCATION_FAILED): New status code.
1911 (dyn_string_append_space): Handle failure in
1912 dyn_string_append_char.
1913 (int_to_dyn_string): Likewise. Change return value to status_t.
1914 (string_list_new): Handle failure of dyn_string_init.
1915 (result_close_template_list): Change return type to status_t.
1916 Handle failure in dyn_string_append.
1917 (result_push): Change return value to status_t. Handle failure in
1918 string_list_new. Handle failure of result_push throughout.
1919 (substitution_add): Change return value to status_t. Handle
1920 dyn_string failures. Handle failure of substitution_add
1921 throughout.
1922 (template_arg_list_new): Return NULL on allocation failure.
1923 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1924 Handle error result throughout.
1925 (result_append): Likewise.
1926 (result_append_char): Likewise.
1927 (result_append_space): Likewise.
1928 (demangling_new): Make argument a const pointer. Handle
1929 allocation failures.
1930 (demangle_template_args): Handle failure in template_arg_list_new
1931 and result_close_template_list.
1932 (demangle_discriminator): Return if int_to_dyn_string fails.
1933 (cp_demangle): Likewise.
1934 (cp_demangle_type): New function.
1935 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1936 memory allocation failure.
1937 (main): Likewise.
1938 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1939 IN_LIBGCC2.
1940 (dyn_string_init): Change return value to int. Handle
1941 RETURN_ON_ALLOCATION_FAILURE case.
1942 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1943 (dyn_string_release): Delete the dyn_string.
1944 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1945 (dyn_string_copy): Change return type to int.
1946 (dyn_string_copy_cstr): Likewise.
1947 (dyn_string_prepend): Likewise.
1948 (dyn_string_prepend_cstr): Likewise.
1949 (dyn_string_insert): Likewise.
1950 (dyn_string_insert_cstr): Likewise.
1951 (dyn_string_append): Likewise.
1952 (dyn_string_append_cstr): Likewise.
1953 (dyn_string_append_char): Likewise.
1954 (dyn_string_substring): Likewise.
d1209685 1955
fe06b696
ZW
19562000-06-09 Zack Weinberg <zack@wolery.cumb.org>
1957
1958 * cp-demangle.c (demangle_operator_name): Add spaces before
1959 names beginning with a letter: delete, delete[], new, new[],
1960 sizeof.
1961 (demangle_special_name): Handle TF <type> and TJ <type>.
1962
6223e158
PDM
1963Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1964
1965 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1966
48f3e29b
PDM
1967Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1968
1969 * cp-demangle.c (stdio.h): File included unconditionaly.
1970 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1971 * dyn-string.c (stdio.h): File included.
1972 * partition.c (partition_print): No `&' needed to take the address of
1973 a function.
1974
69197e7e
KG
19752000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1976
1977 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 1978
69197e7e
KG
1979 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1980
1981 * cp-demangle.c (demangle_char): Change parameter from char to int.
1982 (demangle_expression, demangle_expr_primary): Remove extra
1983 semi-colon in prototype.
1984
1985 * dyn-string.c (dyn_string_append_char): Change parameter from
1986 char to int.
1987
1988 * memcmp.c (memcmp): Constify.
1989
1990 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1991 __extension__.
1992
1993 * partition.c (elem_compare): Prototype. Don't cast away
1994 const-ness.
1995
1996 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 1997
7eb23b1f
KG
19982000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1999
2000 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
2001
2002 * cp-demangle.c: Include demangle.h.
2003 (template_arg_list_new): DeANSIfy.
2004 (cp_demangle): Make static and add prototype.
2005 (operator_code, operators): Constify.
2006 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
2007
3faa108c
AS
20082000-06-05 Alex Samuel <samuel@codesourcery.com>
2009
2010 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
2011 unsigned char.
2012 (demangle_unqualified_name): Likewise.
2013 (demangle_number_literally): Likewise.
2014 (demangle_type): Likewise.
2015 (demangle_substitution): Likewise.
2016 (is_mangled_char): Likewise, for isalnum.
2017
69afa80d
AS
20182000-06-04 Alex Samuel <samuel@codesourcery.com>
2019
2020 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
2021 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
2022 (cp-demangle.o): New dependency.
2023 (dyn-string.o): Likewise.
2024
2025 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
2026
2027 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
2028 demangler.
2029 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
2030 demangling mode.
2031 (gnu_new_abi_symbol_characters): New function.
2032 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
2033 file.
2034 * cp-demangle.c: New file.
d1209685 2035
0b72c3df
AC
2036Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
2037
2038 * floatformat.c: Add name to each floatformat field.
2039
270cea06
JL
2040Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
2041
2042 * Makefile.in (objalloc.o): Depend on config.h
2043
d11ec6f0
ZW
20442000-05-29 Zack Weinberg <zack@wolery.cumb.org>
2045
2046 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
2047 if HAVE_STRING_H.
2048 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
2049 * objalloc.c: Include config.h. Include stdlib.h and don't
2050 declare malloc or free if HAVE_STDLIB_H.
2051 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
2052 else declare malloc without prototype. Include string.h if
2053 HAVE_STRING_H, else declare memset without prototype. Don't
2054 include stddef.h.
2055
f8e2da56
MS
20562000-05-23 Mike Stump <mrs@wrs.com>
2057
2058 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 2059 -j3.
f8e2da56 2060
650f3068
DA
20612000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2062
2063 * xmalloc.c: Include config.h for HAVE_SBRK definition.
2064
1d2da2e1
HB
20652000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
2066
d1209685 2067 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
2068 probably zero, also eliminate a warning on alpha.
2069
47668d0a
DE
20702000-05-15 David Edelsohn <edelsohn@gnu.org>
2071
c7a79a32 2072 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
2073 on $(enable_shared).
2074
36348eab
JJ
20752000-05-10 Jakub Jelinek <jakub@redhat.com>
2076
2077 * config.table: Use mh-sparcpic for sparc*-*-*.
2078
209bbe34
NC
20792000-05-08 Nick Clifton <nickc@cygnus.com>
2080
2081 * Makefile.in (CFILES): Add strncmp.c.
2082 (NEEDED): Add strncmp.
2083
a85a47fb
KG
20842000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2085
2086 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
2087 Cast the arguments to `islower' to `unsigned char'.
2088 (print_demangler_list): Prototype.
2089
4aef973c
PDM
2090Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
2091
2092 * sort.c (UCHAR_MAX): Provide fallback definition.
2093
3b94497c
AO
20942000-04-29 Alexandre Oliva <aoliva@cygnus.com>
2095
2096 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
2097 SUBDIRS.
2098
24eaa47a
KB
20992000-04-28 Kenneth Block <block@zk3.dec.com>
2100 Jason Merrill <jason@casey.cygnus.com>
2101
d1209685
ZW
2102 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
2103 (cplus_demangle_set_style): New function for setting style.
2104 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 2105
a9266bfa
KG
21062000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2107
2108 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
2109
2110 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
2111 (libiberty_AC_FUNC_STRNCMP): Invoke.
2112
2113 * strncmp.c: New file.
2114
8e02c4d0
JH
2115Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
2116
2117 * hashtab.c (htab_expand): Add prototype.
2118 (find_empty_slot_for_expand): Likewise.
2119
4feeaae3
KG
21202000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2121
2122 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
2123 match prototype.
2124 (htab_expand): Cast the return value of xcalloc.
2125
18a94a2f
MM
21262000-04-24 Mark Mitchell <mark@codesourcery.com>
2127
2128 * hashtab.c (hash_pointer): New function.
2129 (eq_pointer): Likewise.
2130 (htab_hash_pointer): New variable.
2131 (htab_eq_pointer): Likewise.
2132
eeb0656f
MM
21332000-04-23 Mark Mitchell <mark@codesourcery.com>
2134
b51024fc
MM
2135 * sort.c (sort_pointers): Fix endianness bugs.
2136
eeb0656f
MM
2137 * sort.c: New file.
2138 * Makefile.in (CFILES): Add sort.c
2139 (REQUIRED_OFILES): Add sort.o.
2140 (sort.o): New target.
2141
7277f72d
MS
21422000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2143
2144 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
2145 4.3BSD systems.
2146
e38992e8
RK
2147Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2148
2149 * hashtab.c: Various minor cleanups.
2150 (htab_find_slot_with_hash): INSERT is now enum insert_option.
2151 (htab_find_slot): Likewise.
2152
498e1ab1
DP
21532000-04-16 Dave Pitts <dpitts@cozx.com>
2154
2155 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 2156
dc17cc7b
RH
21572000-04-05 Richard Henderson <rth@cygnus.com>
2158
2159 * splay-tree.c (splay_tree_remove): New.
2160
b13eb66b
MM
21612000-03-30 Mark Mitchell <mark@codesourcery.com>
2162
2163 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
2164 codes.
2165 (htab_find_with_hash): Likewise.
2166 (htab_find_slot_with_hash): Likewise.
d1209685 2167
0194e877
ZW
21682000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2169
2170 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
2171 unless it will be used. Rearrange loop for better
2172 optimization.
2173 (higher_prime_number): Add static prototype.
2174
abc61fd4
JL
2175Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
2176
2177 * Makefile.in (partition.o): Depend on config.h
2178
8c5d513f
BS
21792000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
2180
2181 * hashtab.c (find_empty_slot_for_expand): New function.
2182 (htab_expand): Use it instead of htab_find_slot.
2183 (htab_find_with_hash): Renamed from htab_find; now accepts extra
2184 argument HASH.
2185 (htab_find_slot_with_hash): Likewise for htab_find_slot.
2186 (htab_find): New wrapper function.
2187 (htab_find_slot): Likewise.
2188 (htab_traverse): Pass slot, not entry, to called function.
2189
d9d4fb43
AS
21902000-03-09 Alex Samuel <samuel@codesourcery.com>
2191
2192 * Makefile.in (CFILES): Add partition.c.
2193 (REQUIRED_OFILES): Add partition.o.
2194 (partition.o): New rule.
2195 * partition.c: New file.
d1209685 2196
5dc9cffd
ZW
21972000-03-09 Zack Weinberg <zack@wolery.cumb.org>
2198
2199 * hashtab.c (htab_create): Set del_f.
2200 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
2201 Use it.
2202
5194cf08
ZW
22032000-03-08 Zack Weinberg <zack@wolery.cumb.org>
2204
2205 * hashtab.c: Remove debugging variables (all_searches,
2206 all_collisions, all_expansions). Delete
2207 all_hash_table_collisions.
2208 (create_hash_table, delete_hash_table, empty_hash_table,
2209 find_hash_table_entry, remove_element_from_hash_table_entry,
2210 clear_hash_table_slot, traverse_hash_table, hash_table_size,
2211 hash_table_elements_number, hash_table_collisions): Rename to:
2212 htab_create, htab_delete, htab_empty, htab_find_slot,
2213 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
2214 htab_elements, htab_collisions.
2215 (htab_find): New function, handles common case where you don't
2216 plan to add or delete an entry.
2217 (htab_expand): Don't create a whole new table, just a new
2218 entry vector.
2219 (htab_find_slot): Simplify logic.
2220
5ad5a984
ILT
22211999-08-03 Ian Lance Taylor <ian@zembu.com>
2222
2223 * floatformat.c: Add casts to avoid signed/unsigned warnings.
2224 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
2225
2226 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
2227 $(TARGETLIB)n so it works on MSDOS.
2228 (install_to_tooldir): Likewise.
2229
22301999-07-21 Ian Lance Taylor <ian@zembu.com>
2231
2232 From Mark Elbrecht:
2233 * makefile.dos: Remove; obsolete.
2234 * configure.bat: Remove; obsolete.
2235
22361999-07-11 Ian Lance Taylor <ian@zembu.com>
2237
2238 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2239 warning.
2240
aeecce42
MK
22412000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2242
2243 * pexecute.c: Conditionally include string.h.
5194cf08 2244 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 2245
1eaf7d9c
KG
22462000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2247
2248 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
2249 we're using gcc.
2250
2251 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
2252
0fadedb2
GK
22531999-12-27 Geoff Keating <geoffk@cygnus.com>
2254
2255 * vasprintf.c (int_vasprintf): Don't re-read the format character
2256 as this mishandles strings like '%%s'.
2257
08230f26
MM
22581999-12-05 Mark Mitchell <mark@codesourcery.com>
2259
2260 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
2261 rather than struct splay_tree_node.
2262 (splay_tree_insert): Use struct splay_tree_s rather than struct
2263 splay_tree.
2264
6de9b8ff
PDM
2265Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
2266
2267 * hashtab.c (sys/types.h): File included.
2268
f3636679
JM
22691999-11-22 Jason Merrill <jason@casey.cygnus.com>
2270
2271 * strtoul.c, strtol.c, random.c: Remove advertising clause from
2272 BSD license, pursuant with
2273
2274 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
2275
36dd3a44
JL
2276Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
2277
2278 * hashtab.c: Include stdio.h.
2279
6e300472
JL
2280Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
2281
2282 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
2283
df548dfc
PDM
2284Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
2285
2286 * xstrdup (sys/types.h): Include this file.
2287
2c375143
NS
22881999-10-28 Nathan Sidwell <nathan@acm.org>
2289
2290 * Makefile.in (SUBDIRS): New macro.
2291 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
2292 avoid multiple subdirectory cleaning.
2293 (*-subdir): Use SUBDIRS.
2294
a82cecda
JK
22951999-10-25 Jim Kingdon <http://developer.redhat.com/>
2296
2297 * cplus-dem.c: Move declarations of standard_symbol_characters and
2298 hp_symbol_characters inside #ifdef MAIN to avoid compiler
2299 warnings.
2300
ed38f5d5
ZW
23011999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
2302
2303 * hashtab.c (find_hash_table_entry): When returning a
2304 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
2305 (clear_hash_table_slot): New function which deletes an entry
2306 by its position in the table, not its value.
2307 (traverse_hash_table): New function which calls a hook
2308 function for every live entry in the table.
2309
b60fe4a7
MM
23101999-10-19 Mark Mitchell <mark@codesourcery.com>
2311
2312 * cplus-dem.c (INTBUF_SIZE): New macro.
2313 (string_append_template_idx): New function.
2314 (demangle_expression): Likewise.
2315 (demangle_integral_value): Use it.
2316 (demangle_real_value): New function, split out from ...
2317 (demangle_template_value_parm): ... here. Use
2318 string_append_template_idx. Use demangle_real_value.
2319 (demangle_template): Use string_append_template_idx.
2320 (demangle_qualified): Use consume_count_with_underscores.
2321 (get_count): Tweak formatting.
2322 (do_type): Use string_append_template_idx.
5194cf08 2323
3da5522a
KG
23241999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2325
2326 * calloc.c: Add a public domain notice.
2327
d7d36ea8
PDM
2328Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
2329
2330 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
2331
a2f945c6
VM
2332Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
2333
2334 * Makefile.in (CFILES): Add hashtab.c
2335 (REQUIRED_OFILES): Add hashtab.o
2336 (hashtab.o): Add dependencies.
2337 * hashtab.c: New file
2338
7f22ec2e
MK
2339Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
2340
2341 * basename.c (DIR_SEPARATOR): New macro.
2342 (DIR_SEPARATOR_2): Likewise.
2343 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
2344 (IS_DIR_SEPARATOR): Likewise.
2345 (main): Handle MSDOS style pathname.
2346
7c56a6ce
MM
23471999-10-11 Mark Mitchell <mark@codesourcery.com>
2348
2349 * cplus-dem.c (do_type): Handle pointer to member types whose
2350 enclosing classes have namespace scope.
2351
cd32188b
ME
2352Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
2353
2354 * config.table: Provide a backup shell for executing move-if-change.
2355
fc232f7a
MM
23561999-10-02 Mark Mitchell <mark@codesourcery.com>
2357
2358 * xmalloc.c (xmalloc): Fix spelling error.
2359 (xcalloc, xrealloc): Likewise.
2360
2a138827
KG
23611999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2362
2363 * cplus-dem.c (fancy_abort, demangle_integral_value,
2364 demangle_arm_hp_template, recursively_demangle,
2365 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
2366 (program_name, program_version, fatal): Constify a char*.
2367 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
2368 (main): Call return, not exit.
2369
5a657fc3
KG
23701999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2371
2372 * choose-temp.c: Remove obsolete comment about gcc.
2373 (make_temp_file): Constify a char*.
2374
33c5ddcd
KG
2375Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2376
2377 * xmemdup.c: Include sys/types.h.
2378
b10647f1
JG
23791999-09-07 Jeff Garzik <jgarzik@pobox.com>
2380
2381 * xmemdup.c: New xmemdup function.
2382 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
2383
3dd6c3af
LV
2384Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
2385
5194cf08 2386 * config.table: Add openedition target.
3dd6c3af
LV
2387 * config/mh-openedition: New file.
2388
19e28e2a
ME
2389Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
2390
2391 * pexecute.c (pexecute): Fill in temp_base when needed.
2392
4dfeccf9
RH
23931999-08-31 Richard Henderson <rth@cygnus.com>
2394
2395 * getpwd.c: Check HAVE_GETCWD before defining it away.
2396
4ac3cb83
KG
23971999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2398
2399 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
2400 (REQUIRED_OFILES): Add getpwd.o.
2401 (getpwd.o): Add target.
2402
2403 * configure.in (AC_PREREQ): Bump to 2.13.
2404 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
2405
2406 * getpwd.c: New file, moved here from gcc.
2407
e797ff70
KG
24081999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2409
2410 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
2411 comparing against a signed quantity.
2412 (arm_special): Likewise.
2413 (demangle_fund_type): Likewise.
2414 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 2415 ATTRIBUTE_UNUSED.
e797ff70
KG
2416 (main): Constify variable `valid_symbols'.
2417
55247fce
PDM
2418Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
2419
2420 * strtoul.c (strtoul): Add parentheses around && within ||.
2421
76632dd0
DJ
2422Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2423
2424 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2425 libdir, libsubdir and tooldir.
2426
d080bbfa
MM
24271999-08-01 Mark Mitchell <mark@codesourcery.com>
2428
2429 * splay-tree.c (splay_tree_insert): Return the new node.
2430
a81c752a
RH
24311999-07-14 Richard Henderson <rth@cygnus.com>
2432
5194cf08 2433 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
2434 prototyping directly.
2435 * choose-temp.c: Conditionally include string.h.
2436
8f1824d9
JM
24371999-07-12 Jason Merrill <jason@yorick.cygnus.com>
2438
2439 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
2440
652374d3
ILT
24411999-07-11 Ian Lance Taylor <ian@zembu.com>
2442
2443 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2444 warning.
2445
a4494286
JM
24461999-07-07 Jason Merrill <jason@yorick.cygnus.com>
2447
2448 * Makefile.in (needed-list): Only include stuff we actually need
2449 for libstdc++.
2450
90e72e20
AS
24511999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2452
2453 * configure.in (checkfuncs): Add gettimeofday.
2454 * config.in, configure: Regenerated.
2455
b569200e
MK
2456Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
2457
2458 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
2459 the test fails.
2460 * configure: Regenerate.
2461
73919448
MS
24621999-06-10 Mike Stump <mrs@wrs.com>
2463
2464 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
2465 parallel builds.
2466
fee9125c
KG
24671999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2468
2469 * putenv.c: Include ansidecl.h to define `const'.
2470 * setenv.c: Likewise.
2471
71cce721
MN
2472Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
2473
a7c9637f
JL
2474 * Makefile.in (CFILES): Add putenv.c and setenv.c.
2475 * configure.in (funcs): Add putenv and setenv.
2476 (AC_CHECK_FUNCS): Check for putenv and setenv.
2477 * configure: Rebuilt.
2478 * putenv.c setenv.c: New files.
2479
71cce721
MN
2480 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2481 bytes of space using malloc.
2482
53504016
SG
2483Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2484
2485 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2486 the *mangled pointer beyond the end of the string. Clean up code to
2487 match prevailing coding style.
2488
34842539
MH
24891999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2490
2491 * tmpnam.c (L_tmpnam): Fix typo.
2492
3a08531d
ME
2493Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2494
2495 * cplus-dem.c (standard_symbol_characters): Renamed from
2496 standard_symbol_alphabet. No longer modify TABLE.
2497 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2498 modify TABLE.
2499 (main): Corresponding changes. Use strchr to determine if a
2500 character is valid.
2501
8db9d08b
JB
25021999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2503
2504 * cplus-dem.c (main): Use table lookup to distinguish identifier
2505 characters from non-identifier characters.
2506 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2507
6a071f4a
FF
2508Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2509
2510 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2511 * getruntime.c: Only attempt to include sys/resource.h and
2512 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2513 are defined.
2514
7dd88617
DT
2515Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2516
2517 * configure.in (alloca detection): Handle alloca directly for interix.
2518 * configure: Rebuilt.
2519
7a1528bc
MK
2520Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2521
2522 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2523
76409268
JB
25241999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2525
2526 Fix from Dale Hawkins:
5194cf08 2527 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
2528 reallocated properly if we use it again.
2529
2530 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2531 stricter about syntax. Always null-terminate string.
2532
acbbd80a
MK
2533Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2534
2535 * configure.in (checkfuncs): Check for sbrk.
2536 * config.in: Rebuilt.
2537 * configure: Likewise.
2538 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2539
92523551
JB
25401999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2541
2542 Fix from Marcus Daniels:
2543 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2544 identifier looking for another underscore.
2545
36eb4217
MK
2546Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2547
2548 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2549 * xmalloc.c: Likewise.
2550 (xcalloc): UWIN has sbrk.
2551 (xrealloc): Fix guard macro.
2552
2c45d1a0
RH
25531999-04-11 Richard Henderson <rth@cygnus.com>
2554
2555 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2556 or <alloca.h>.
2557 * clock.c (GNU_HZ): New definition.
2558 (clock): Use it.
2559 * getruntime.c: Likewise.
2560
2561 * config.table: Use mh-beos.
2562 * config/mh-beos: New file.
2563
391cdef0
MM
25641999-04-11 Mark Mitchell <mark@codesourcery.com>
2565
2566 * cplus-dem.c (demangle_template_value_parm): Handle
2567 pointers-to-members.
2568 (do_type): Handle template parameters as qualifiers.
2569
9d229989
JB
25701999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2571
2572 * cplus-dem.c: Attempt to handle overflows in counts with some
2573 semblance of grace.
2574 (consume_count): Detect overflows. Return -1 to indicate errors,
2575 instead of zero.
2576 (demangle_template_value_parm, demangle_template): Handle change
2577 to consume_count's return convention.
2578
7c72138a
TT
25791999-04-05 Tom Tromey <tromey@cygnus.com>
2580
2581 * testsuite/regress-demangle: New file.
2582 * testsuite/demangle-expected: New file.
2583
2584 * Makefile.in (all, check, installcheck, info, install-info,
2585 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2586 distclean, maintainer-clean, realclean): Depend on corresponding
2587 `-subdir' target.
2588 (all-subdir check-subdir installcheck-subdir info-subdir
2589 install-info-subdir clean-info-subdir dvi-subdir
2590 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2591 distclean-subdir maintainer-clean-subdir): New target.
2592 * testsuite/Makefile.in: New file.
2593 * configure: Rebuilt.
2594 * configure.in: Create testsuite/Makefile.
2595
ae7f7270
MM
25961999-04-02 Mark Mitchell <mark@codesourcery.com>
2597
2598 * splay-tree.h (splay_tree_compare_pointers): Define.
2599
30f72379
MM
26001999-03-30 Mark Mitchell <mark@codesourcery.com>
2601
2602 * splay-tree.c (splay_tree_compare_ints): Define.
2603
4cc48683
TT
26041999-03-30 Tom Tromey <tromey@cygnus.com>
2605
2606 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2607 don't advance input pointer.
2608 (demangle_class_name): If consume_count didn't find a count, do
2609 nothing. Don't bother with `strlen' sanity check; consume_count
2610 does it for us.
2611
3510075c
JL
26121999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2613
2614 From Art Haas <ahaas@neosoft.com>:
2615 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2616 when doing arm or hp style.
2617 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 2618
89f602a7
MK
2619Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2620
2621 * pexecute.c (__CYGWIN32__): Rename to
2622 (__CYGWIN__): this.
2623 * xmalloc.c: Likewise.
2624
2625 Changes to support i386-pc-uwin.
2626 * configure.in (*-*-uwin*): Workaround for vfork bug.
2627 * configure: Regenerate.
2628 * pexecute.c (pexecute): Be like standard Unix.
2629 (pwait): Likewise.
2630 * xmalloc.c (first_break): Define.
2631 (xmalloc_set_program_name): Use.
2632 (xmalloc): Use.
2633
9346c824
FS
2634Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2635
2636 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2637
3510075c
JL
2638Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2639
2640 * config.table: Check cygwin*, not cygwin32*.
2641
8ec65f13
DB
2642Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2643
2644 * Makefile.in: Change mkstemp -> mkstemps.
2645
687361c8
ME
2646Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2647
2648 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2649 * configure.in (funcs): Check for and conditionally add mkstemps to
2650 the list of functions libiberty will provide.
2651 * configure: Rebuilt.
5194cf08 2652
b207e09c
MK
2653Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2654
5194cf08 2655 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
2656 platforms that don't have HZ.
2657 * getruntime.c (HZ): Likewise.
2658
16b4c15e
RH
2659Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2660
2661 * Makefile.in (xstrdup.o): Depend on config.h.
2662
38beb75c
UD
2663Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2664
2665 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2666 freeing it.
2667
7e4311a3
KG
2668Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2669
2670 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2671
3510075c
JL
2672Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2673
2674 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2675 splay-tree.o.
2676
26771999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2678
2679 * configure.in: Require autoconf 2.12.1 or higher.
2680
fb9939b8
MM
26811998-12-30 Michael Meissner <meissner@cygnus.com>
2682
2683 * random.c (NULL): Don't redefine NULL if it is already defined.
2684
087aa398
KG
2685Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2686
2687 * argv.c (buildargv): Cast the result of alloca in assignment.
2688
2689 * choose-temp.c: Include stdlib.h.
38beb75c 2690
087aa398 2691 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
2692 (snarf_numeric_literal): Constify first parameter.
2693 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2694 int, not a char.
087aa398
KG
2695 (demangle_qualifier): Likewise.
2696 (demangle_signature): Cast the argument of a ctype function to
2697 unsigned char.
2698 (arm_pt): Add parens around assignment used as truth value.
2699 (demangle_arm_hp_template): Constify variable `args'.
2700 (do_hpacc_template_const_value): Cast the argument of a ctype
2701 function to unsigned char.
2702 (do_hpacc_template_literal): Remove unused variable `i'.
2703 (snarf_numeric_literal): Constify parameter `args'.
2704 Cast the argument of a ctype function to unsigned char.
2705
2706 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 2707 avoid ambiguous `else'.
38beb75c 2708
087aa398 2709 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
2710 `cstart' and `cend' to unsigned char. Cast the argument of macro
2711 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
2712
2713 * objalloc.c (free): Add prototype.
2714
21f2174d
HPN
2715Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2716
2717 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2718
3510075c
JL
2719Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2720
2721 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 2722 doesn't exist.
3510075c 2723 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 2724
e8fc8222
AM
2725Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2726
2727 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2728 bumping the pointer we read from. Also prepend these codes,
2729 as we do in other places.
2730
3510075c
JL
27311998-12-18 Nick Clifton <nickc@cygnus.com>
2732
2733 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2734 'const char *' in order to match its usage when calling siblings.
2735 (snarf_numeric_literal): Make first arg 'const char **' in order
2736 to match usage.
11a0bb74 2737
f4f30aa1
JL
2738Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2739
11a0bb74
KG
2740 * choose-temp.c: Don't check IN_GCC anymore.
2741
2742 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2743 * memchr.c (memchr): Likewise.
2744 * memcpy.c (memcpy): Likewise.
2745 * memmove.c (memmove): Likewise.
38beb75c 2746
11a0bb74
KG
2747 * mkstemp.c: Don't check IN_GCC anymore.
2748 * pexecute.c: Likewise.
2749 * splay-tree.c: Likewise.
38beb75c 2750
11a0bb74
KG
2751 * strchr.c (strchr): Use `const', not `CONST'.
2752 * strrchr.c (strrchr): Likewise.
2753 * strtol.c (strtol): Likewise.
2754 * strtoul.c (strtoul): Likewise.
2755
70d5ccef
DT
2756Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2757 Elena Zannoni <ezannoni@cygnus.com>
2758 Stan Shebs <shebs@cygnus.com>
2759 Edith Epstein <eepstein@cygnus.com>
2760 Andres MacLeod <amacleod@cygnus.com>
2761 Satish Pai <pai@apollo.hp.com>
2762
2763 * HP aCC demangling support.
2764 * cplus-dem.c
2765 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
2766 demangling correctly when -edg specified; set the demangling style
2767 when user specifies 'edg'. Set strip_underscore to
2768 prepends_underscore, if not HPUXHPPA. Set
2769 current_demangling_style to hp_demangling if HPUXHPPA. Set
2770 current demangling style correctly if the switch is hp. Read
2771 label correctly also in the HP style case.
70d5ccef 2772 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 2773 function.
70d5ccef 2774 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 2775 style for this case is the same as ARM.
70d5ccef
DT
2776 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2777 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
2778 demangle_arm_pt.); check and set value of temp_start field in
2779 multiple places. Also, when ceching for end of template args,
2780 check to see if at end of static member of template class.
70d5ccef 2781 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 2782 include template args in string defining class.
70d5ccef
DT
2783 (demangle_class_name): use demangel_arm_hp_template.
2784 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
2785 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2786 Handle EDG_DEMANGLING style. Handle constructor and destructor
2787 ops for HP style.
70d5ccef 2788 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
2789 styles. global destructor and constructor for HP style are same
2790 as for ARM style. Same for local variables.
70d5ccef
DT
2791 (demangle_qualified): handle EDG_DEMANGLING style.
2792 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
2793 cases '1' - '9' : initialize the temp_start field to -1 and handle
2794 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2795 and AUTO_DEMANGLING styles. If expecting a function and managed
2796 to demangle the funct args, then handle the LUCID_DEMANGLING,
2797 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2798 class name after "Lnnn_ in HP style case. HP style too needs to
2799 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 2800 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 2801 value param for HP/aCC.
70d5ccef 2802 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 2803 literal parameter for HP aCC.
70d5ccef
DT
2804 (recursively_demangle): new function
2805 (snarf_numeric_literal): new function.
2806 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 2807 to message.
70d5ccef 2808
8d525fa8
CF
2809Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2810
2811 * pexecute.c: Remove obsolete ifdefed cygwin code.
2812
9b1a92d8
KG
2813Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2814
2815 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2816 * cplus-dem.c: Likewise. Conform to libiberty.h.
2817 * pexecute.c: Likewise.
2818 * splay-tree.c: Likewise.
2819
c85c3232
MS
28201998-11-25 Mike Stump <mrs@wrs.com>
2821
2822 * Makefile.in (splay-tree.o): Add config.h dependency.
2823
35a6cd99
KG
2824Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2825
2826 * configure.in: Use AC_PREREQ(2.12.1).
2827
6e6e34b7
BK
28281998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2829
5194cf08 2830 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 2831
59b67c11
JL
2832Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2833
2834 * mpw.c (mpw_access): Add missing parens.
2835
a6458d1d
KG
2836Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2837
2838 * configure.in: Call AC_HEADER_SYS_WAIT.
2839
2840 * pexecute.c: Include sys/wait.h when !IN_GCC.
2841
3510075c
JL
2842Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2843
2844 * pexecute.c: revert back to checking old Cygwin
2845 preprocessor symbol until some time has passed.
2846
2847Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2848
2849 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2850 since it will now support similar constructs.
2851
a9acf741
KG
2852Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2853
2854 * configure.in: Check for calloc.
2855
2856 * calloc.c: New file.
2857
2858 * xmalloc.c (xcalloc): New function.
2859
a49fb37a
AM
2860Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2861
2862 *cplus-dem.c (demangle_prefix): Use the last "__"
2863 in the mangled name when looking for the signature. This allows
2864 template names to begin with "__".
2865
0e714131
MM
28661998-11-08 Mark Mitchell <mark@markmitchell.com>
2867
ec2288ff
MM
2868 * cplus-dem.c (type_kind_t): Add tk_reference.
2869 (demangle_template_value_parm): Handle it.
2870 (do_type): Use it for references, instead of tk_pointer.
2871
0e714131
MM
2872 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2873 not internal_cplus_demangle.
2874
2931b6d4
KG
2875Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2876
2877 * choose-temp.c: Don't include gansidecl.h.
2878 * mkstemp.c: Likewise.
2879 * pexecute.c: Likewise.
2880
dd8f3ed5
GN
2881Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2882
5194cf08
ZW
2883 * configure.in: detect cygwin* instead of cygwin32*
2884 * configure: regenerate
dd8f3ed5 2885
c5f7c445
KG
2886Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2887
2888 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
2889 whether to include config.h. Possibly include unistd.h in the
2890 !IN_GCC case. Define VFORK_STRING as a printable function call
2891 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2892 defined, include vfork.h. If VMS is defined, define vfork()
2893 appropriately. Remove vfork check on USG, we're using autoconf.
2894 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2895 locally what string to use.
c5f7c445 2896
ad3ef78e
MM
28971998-10-26 Mark Mitchell <mark@markmitchell.com>
2898
2899 * splay-tree.c: Tweak include directives to make sure declarations of
2900 xmalloc and free are available.
2901
224301c1
MM
29021998-10-25 Mark Mitchell <mark@markmitchell.com>
2903
2904 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2905 anonymous namespaces.
38beb75c 2906
d9db46fd
MM
29071998-10-23 Mark Mitchell <mark@markmitchell.com>
2908
2909 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2910 with type_quals.
2911 (TYPE_UNQUALIFIED): New macro.
2912 (TYPE_QUAL_CONST): Likewise.
2913 (TYPE_QUAL_VOLATILE): Likewise.
2914 (TYPE_QUAL_RESTRICT): Likewise.
2915 (code_for_qualifier): New function.
2916 (qualifier_string): Likewise.
2917 (demangle_qualifier): Likewise.
2918 (internal_cplus_demangle): Use them.
2919 (demangle_signature): Likewise.
2920 (demangle_template_value_parm): Likewise.
2921 (do_type): Likewise.
2922 (demangle_fund_type)): Likewise.
224301c1 2923
b056ad1c
KG
2924Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2925
2926 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2927 to match prototype.
2928
ed87f9c8
MM
29291998-10-21 Mark Mitchell <mark@markmitchell.com>
2930
2931 * splay-tree.c: New file.
2932 * Makefile.in (CFILES): Add it.
2933 (REQUIRED_OFILES): Likewise.
2934 (splay-tree.o): Add dependencies.
2935
e0c13971
AS
2936Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2937
2938 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2939 range of 'K' index.
2940
91e0f659
KG
2941Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2942
2943 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2944
2945 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2946 `unsigned char'.
2947 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2948 comparing against one.
2949 (cplus_mangle_opname): Likewise.
2950 (demangle_integral_value): Cast argument of ctype macro to
2951 `unsigned char'.
2952 (demangle_template_value_parm): Likewise.
2953 (demangle_template): Initialize variable `bindex'. Cast the
2954 result of `strlen' to (int) when comparing against one. Remove
2955 unused variable `start_of_value_parm'.
2956 (demangle_class_name): Cast the result of `strlen' to (int) when
2957 comparing against one.
2958 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2959 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2960 when comparing against one.
2961 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2962 (get_count): Likewise.
2963 (do_type): Likewise. Cast the result of `strlen' to (int) when
2964 comparing against one.
2965 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2966 (demangle_function_name): Cast the result of `strlen' to (int)
2967 when comparing against one.
2968
2969 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2970 comparing against one.
2971
73aeb2ff
JL
2972Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2973
5194cf08
ZW
2974 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2975 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2976 * config.in, configure: Rebuilt.
ae76f1be 2977
73aeb2ff
JL
2978 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2979 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2980 * config.in, configure: Rebuilt.
2981
dd8f3ed5
GN
2982Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2983
5194cf08 2984 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 2985
f77d8413
MT
2986Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2987
2988 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2989
ca6b370d
JL
2990Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2991
2992 * Merge egcs & devo libiberty.
2993
ab4856b1
ML
2994