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