* dwarf2.c (struct attribute): Delete "unsnd", "snd" and "addr".
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
eec65ede
JB
12003-10-20 J. Brobecker <brobecker@gnat.com>
2
3 * cplus-dem.c (demangle_template): Register a new Btype only
4 when needed.
5 * testsuite/demangle-expected: Add a new test.
6
cd275bff
L
72003-10-16 H.J. Lu <hongjiu.lu@intel.com>
8
9 * testsuite/demangle-expected: Update the expected output of
10 _GLOBAL__I__Z2fnv.
11
e3b1168e
DJ
122003-10-02 Daniel Jacobowitz <drow@mvista.com>
13
14 * strerror.c: Revert last change. Declare static sys_nerr
15 and sys_errlist using different names.
16
efb150d5
DJ
172003-10-01 Daniel Jacobowitz <drow@mvista.com>
18
19 * strerror.c: Don't provide or reference sys_errlist if
20 strerror is available.
21
b7ca9213
L
222003-10-01 H.J. Lu <hongjiu.lu@intel.com>
23
24 * configure.in: Check if $MAKEINFO is missing.
25 * configure: Regenerated.
26
8ddbb593
DJ
272003-09-24 Daniel Jacobowitz <drow@mvista.com>
28
29 * configure.in: Use AC_PROG_CPP_WERROR.
30 * configure: Regenerated.
31
5324d185
AC
322003-09-22 Andrew Cagney <cagney@redhat.com>
33
34 * floatformat.c (floatformat_i387_ext_is_valid): New function.
35 (floatformat_always_valid): New function.
36 (floatformat_i387_ext): Initialize new "is_valid" field to
37 "floatformat_i387_ext_is_valid".
38 (floatformat_ieee_single_little): Initialize "is_valid" field to
39 floatformat_always_valid.
40 (floatformat_ieee_double_big): Ditto.
41 (floatformat_ieee_double_little): Ditto.
42 (floatformat_ieee_double_little): Ditto.
43 (floatformat_ieee_double_littlebyte_bigword): Ditto.
44 (floatformat_i960_ext): Ditto.
45 (floatformat_m88110_ext): Ditto.
46 (floatformat_m88110_harris_ext): Ditto.
47 (floatformat_arm_ext_big): Ditto.
48 (floatformat_arm_ext_littlebyte_bigword): Ditto.
49 (floatformat_ia64_spill_big): Ditto.
50 (floatformat_ia64_spill_little): Ditto.
51 (floatformat_ia64_quad_big): Ditto.
52 (floatformat_ia64_quad_little): Ditto.
53 (floatformat_ia64_quad_little): Ditto.
54 (floatformat_is_valid): Call "is_valid".
55
34f4a113
AC
562003-09-15 Andrew Cagney <cagney@redhat.com>
57
58 * floatformat.c (get_field): Make "data" constant.
59 (floatformat_is_valid, floatformat_to_double): Make "from"
60 constant, fix casts.
61 (floatformat_from_double): Make "from" constant.
62
3f2aacaf
DJ
632003-09-15 Daniel Jacobowitz <drow@mvista.com>
64
65 * floatformat.c (floatformat_is_valid): New function.
66 (get_field, put_field): Correct comments.
67
aae66b9f
DD
682003-09-06 Josef Zlomek <zlomekj@suse.cz>
69
70 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
71 FIBHEAPKEY_T.
72
60b04ee8
DD
732003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
74
75 PR bootstrap/12100
76 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
77 * configure: Rebuilt.
78
2299a76d
DJ
792003-08-27 Daniel Jacobowitz <drow@mvista.com>
80
81 * aclocal.m4: Include acx.m4 and no-executables.m4.
82 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
83 (LIB_AC_PROG_CC): Remove.
84 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
85 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
86 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
87 performing link tests.
88 * configure: Regenerated.
89
9ad1aa29
DD
902003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
91
92 * cp-demangle.c: Clarify what package(s) this is part of.
93
dbb9d0f3
DD
942003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
95
96 * pex-win32.c (pexecute): Mark parameters this_pname and
97 temp_base as unused. Remove unused variables retries,
98 sleep_interval. Initialize org_stdin, org_stdout.
99 (pwait): Mark parameter flags as unused.
100
1012003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
ab8c7bb1
DD
102
103 * pex-win32.c (fix_argv): Ensure that the executable pathname
104 uses Win32 backslashes.
105 (pexecute): Cast away constness when assigning *errmsg_arg.
106
78c5b0a5
L
1072003-06-26 H.J. Lu <hongjiu.lu@intel.com>
108
109 * testsuite/demangle-expected: Add more GNU V3 testcases.
110
70ecf948
DD
1112003-06-22 Zack Weinberg <zack@codesourcery.com>
112
113 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
114 not HC_ASCII and HC_EBCDIC.
115 Add documentation in form expected by gather-docs.
116 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
117 * Makefile.in, functions.texi: Regenerate.
118
cbc0188b
DD
1192003-06-21 Zack Weinberg <zack@codesourcery.com>
120
121 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
122 for charset determination.
123
5f73c378
DD
1242003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
125
126 * configure.in: Add check for malloc.h needed by
127 m68k for function free().
128 * configure: Regenerated.
129 * config.in: Add HAVE_MALLOC_H.
130 * hashtab.c: include malloc.h were available for
131 free().
132
e69f6c8c 1332003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
cbc0188b 134
e69f6c8c
DD
135 PR bootstrap/10974
136 * physmem.c: Update comment.
137 * configure.in: Modify test for _system_configuration for older
138 AIX systems.
139
140 * config.in, configure: Regenerated.
cbc0188b 141
54c60684
DD
1422003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
143
144 PR other/10810
145 * test-demangle.c (getline): Fix fence-post error.
146
5a4e47bd
NC
1472003-06-03 Nick Clifton <nickc@redhat.com>
148
149 * asprintf.c: Change comment to note that -1 is returned upon
150 error.
151 * vasprintf.c: Likewise.
152 (vasprintf): Return -1 upon error.
153 * functions.texi: Document changes to asprintf and vasprintf.
154
916f5d13
DD
1552003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
156
157 * config.table: Accept i[345867]86 variant.
158
e4f79046
JB
1592003-05-15 Jim Blandy <jimb@redhat.com>
160
161 * hex.c (_hex_value): Make this unsigned.
162 (hex_value): Update documentation for new return type. hex_value
163 now expands to an unsigned int expression, to avoid unexpected
164 sign extension when we store it in a bfd_vma, which is larger than
165 int on some platforms.
166 * functions.texi: Regenerated.
167
0f3538e7
DD
1682003-05-07 Josef Zlomek <zlomekj@suse.cz>
169
170 * splay-tree.c (splay_tree_predecessor): Fix comment.
171 (splay_tree_successor): Fix comment.
172
7108c5dc
JM
1732003-05-07 Jason Merrill <jason@redhat.com>
174
eafaf5eb 175 * hashtab.c (iterative_hash): New fn.
7108c5dc
JM
176 * configure.in: Add AC_C_BIGENDIAN_CROSS.
177 * aclocal.m4: Include accross.m4.
178 * configure, config.in: Regenerate.
179
0b555173
DD
1802003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
181
182 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
183 * configure: Regenerate.
184
8730135a
DD
1852003-05-03 Carlo Wood <carlo@alinoe.com>
186
187 * cp-demangle.c: Fix typo in "char_traints" string-literal.
188
341eccbc
DD
1892003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
190
191 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
192 (main): Test that we don't write too much data.
193
2ed1e5cc
DD
1942003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
195
196 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
197 vsnprintf.
198 * snprintf.c, vsnprintf.c: New files.
199 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
200 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
201 Regenerate dependencies.
202
203 * functions.texi, configure, config.in: Regenerated.
204
10b57b38
DD
2052003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
206
207 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
208 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
209 and stpncpy.
210 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
211 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
212 Regenerate dependencies.
213
214 * functions.texi, configure, config.in: Regenerated.
215
ff773b85
DD
2162003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
217
218 * argv.c: Fix comments.
219 * calloc.c: Don't unnecessarily include "libiberty.h".
220 (bzero): Add prototype.
221 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
222 * getcwd.c (getcwd): Use standard definition to avoid conflicts
223 with system headers.
224 * hashtab.c (htab_traverse): Delete unused variables.
225 * rename.c: Include "ansidecl.h".
226 (rename): Use standard definition to avoid conflicts with system
227 headers.
228 * strsignal.c: Rely on ANSI_PROTOTYPES.
229 * strstr.c: Check GNUC >= 2, not GNUC == 2.
230 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
231 * vprintf.c: Include "ansidecl.h" earlier, rely on
232 ANSI_PROTOTYPES.
233 * vsprintf.c: Include "ansidecl.h" earlier, rely on
234 ANSI_PROTOTYPES and possibly include <stdarg.h>.
cbc0188b 235
ff773b85
DD
236 * Makefile.in: Regenerate dependencies.
237
bb325820
DD
2382003-04-15 DJ Delorie <dj@redhat.com>
239
240 * maint-tool (deps): Scan for headers in $srcdir also.
241
258a4893
DD
2422003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
243
244 PR target/10338
245 PR bootstrap/10198
246 PR bootstrap/10140
247 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
248 __mempcpy.
249 * regex.c (regerror): Likewise.
250
ff773b85
DD
2512003-04-14 Roger Sayle <roger@eyesopen.com>
252
253 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
254 * memchr.c: Likewise.
255 * strcasecmp.c: Likewise.
256 * strncasecmp.c: Likewise.
257 * strncmp.c: Likewise.
258 * xatexit.c: Likewise.
259 * xmalloc.c: Likewise.
260
261 * copysign.c: Use traditional function declaration instead of DEFUN.
262 * sigsetmask.c: Likewise.
263
264 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
265 * memset.c: Likewise.
266
267 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
268 * memmove.c: Likewise.
269
eec539c7
DD
2702003-04-14 Roger Sayle <roger@eyesopen.com>
271
272 * strdup.c (strdup): Tweak implementation to use memcpy.
273
daf7c4ad
DD
2742003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
275
276 * configure.in (HAVE_UINTPTR_T): Always define.
277 * configure: Regenerated.
278
aa072e59
AO
2792003-03-23 Alexandre Oliva <aoliva@redhat.com>
280
281 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
282 instead of $$CC alone.
283 (install_to_tooldir): Use it.
284
f77ed96c
DD
2852003-17-03 Jan Hubicka <jh@suse.cz>
286
287 * hashtab.c (htab_traverse_noresize): Break out from ...
288 * hashtab.c (htab_traverse): ... here.
289
2336e177
DD
2902003-12-03 Jan Hubicka <jh@suse.cz>
291
292 * hashtab.c (htab_expand): Fix warning.
293
294 * hashtab.c (htab_expand): Compute the size of hashtable based
295 on the number of elements actually used.
296 (htab_traverse): Call htab_expand when table is too empty.
297
d8cbbf95
DD
2982003-03-11 Carlo Wood <carlo@gnu.org>
299
300 * cplus-dem.c (demangle_integral_value): Correction to reflect
301 patch of 2002-01-10 in order to also make negative multi-digits
302 without leading underscore work.
303
a01fefeb
DD
3042003-03-03 Mark Mitchell <mark@codesourcery.com>
305
306 * cplus-dem.c: Add license exception to copyright notice.
307
638ceb1a
DD
3082003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
309
310 * physmem.c: Formatting changes from upstream.
311
ef803806
DD
3122003-02-24 Danny Smith <dannysmith@users.source.forge.net>
313
314 * physmem.c (physmem_total): Add _WIN32 support.
315 (physmem_available): Likewise.
316
181fa229
DD
3172003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
318
319 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
320 GSI_PHYSMEM.
321 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
322
cc529274
DD
3232003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
324
325 * configure.in: Check for sys/systemcfg.h and
326 _system_configuration.
327 * physmem.c: Add support for AIX. Tweek formatting as per
328 upstream coreutils beta.
329
3302003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
331 Richard Earnshaw <rearnsha@arm.com>
332 Geoffrey Keating <geoffk@apple.com>
cbc0188b 333
cc529274
DD
334 * configure.in: Check for sys/sysctl.h and sysctl.
335 * physmem.c: Add support for *bsd and darwin.
336 * Makefile.in: Generate depedency for physmem.o.
337
192cbe66
DD
3382003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
339
340 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
341 Tru64 UNIX.
342 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
343 Tru64 UNIX.
344
345 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
346 machine/hal_sysinfo.h, sys/table.h.
347 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
348 * configure, config.in: Regenerate.
349
ff773b85
DD
3502003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
351
352 * configure.in: Check for sys/sysmp.h and sysmp.
353 * physmem.c: Pull upstream copy, add support for irix6.
354
355 * config.in, configure: Regenerated.
356
900d2082
DD
3572003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
358
359 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
360 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
361 pstat_getdynamic.
cbc0188b 362
4938384a
DD
3632003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
364
365 * Makefile.in (CFILES): Add physmem.c.
366 (REQUIRED_OFILES): Add physmem.o.
367 * configure.in: Check for sys/pstat.h.
368 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
369 * physmem.c: New file, copied from textutils.
370
371 * config.in, configure: Regenerated.
372
ba61a412
DJ
3732003-02-20 Daniel Jacobowitz <drow@mvista.com>
374
375 * Makefile.in (CFILES): Add lrealpath.c.
376 (REQUIRED_OFILES): Add lrealpath.o.
377 (lrealpath.o): Add rule.
378 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
379 * configure.in: Add realpath and canonicalize_file_name to
380 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
381 for canonicalize_file_name.
382 * lrealpath.c: New file.
383 * make-relative-prefix.c: Update documentation.
384 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
385 * config.in: Regenerated.
386 * configure: Regenerated.
387 * functions.texi: Regenerated.
388
25dfe0ac
DD
3892003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
390
391 * cplus_dem.c: Fix typo: intializes -> initializes.
392
8b90eef4
AO
3932003-02-20 Alexandre Oliva <aoliva@redhat.com>
394
395 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
396 config.status.
397 * configure: Rebuilt.
398
fcd7c7c9
DD
3992003-02-13 Daniel Jacobowitz <drow@mvista.com>
400
401 Fix PR c++/7612.
402 * cplus-dem.c (demangle_signature): Call string_delete.
403 Remove extra string_init.
404 (demangle_arm_hp_template): Call string_delete instead of
405 string_clear. Add missing string_delete call.
406 (demangle_qualified): Add missing string_delete call.
407 (do_type): Remove unused variable btype. Add missing string_delete
408 call. Call string_delete instead of string_clear.
409 (demangle_fund_type): Move variable btype inside of the switch
410 statement. Add missing string_delete call.
411 (do_arg): Call string_delete instead of string_clear. Remove extra
412 string_init.
413 (demangle_nested_args): Free work->previous_argument.
414
073c427b
DD
4152003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
416
417 * acconfig.h: New file. Add uintptr_t.
418 * config.in: Regenerated.
419
f8bd3000
DD
4202003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
421
422 * libiberty.texi: Update to GFDL 1.2.
423
85b9a938
DD
4242003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
425
426 * Makefile.in (libiberty_topdir): New subst.
427 (mkinstalldirs): Redefine in terms of the above.
428 * configure.in: AC_SUBST it.
429 * configure: Regenerate.
430
578460f2
AO
4312003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
432
433 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
434 (info-subdir, install-info-subdir, clean-info-subdir)
435 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
436 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
437 Pass $(FLAGS_TO_PASS).
438
7f285245
AO
4392003-01-27 Alexandre Oliva <aoliva@redhat.com>
440
441 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
442 /`$$CC -print-multi-os-directory`.
443
5f9624e3
DJ
4442003-01-26 Daniel Jacobowitz <drow@mvista.com>
445
446 * hashtab.c (htab_create_alloc_ex): New function.
447 (hatab_set_functions_ex): New function.
448 (htab_delete, htab_expand): Support alternate allocation functions.
449
9c2259b8
DD
4502003-01-24 Christopher Faylor <cgf@redhat.com>
451
452 * configure.in: Remove special pex-cygwin consideration.
453 * configure: Regenerate.
454 * pex-cygwin.c: Remove.
455 * Makefile.in: Remove pex-cygwin.[co] lines.
456
5a17353c
DD
4572003-01-24 Zack Weinberg <zack@codesourcery.com>
458
459 * Makefile.in (CFILES): Add pex-*.c.
460 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
461 (CONFIGURED_OFILES): Add pex-*.o.
462 (TEXIFILES): Add pexecute.txh.
463 (pexecute.o): Delete rule.
464 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
465 pex-unix.o, pex-win32.o): New rules.
466 * configure.in: Change AC_INIT argument to xmalloc.c.
467 Compute appropriate pexecute implementation and substitute it
468 as @pexecute@.
469
470 * pexecute.c: Split up into...
471 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
472 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
473 new files.
474
475 * functions.texi: Regenerate.
476 * configure: Regenerate.
477
eed2b28c
DD
4782003-01-20 Josef Zlomek <zlomekj@suse.cz>
479
480 * hashtab.c (htab_expand): Fix allocation of new entries.
481
27a39a5f
DD
4822003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
483
484 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
485
486 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
487 mkinstalldirs command.
488
b51c1553
DD
4892002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
490
491 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
492 Define for hosts with HOST_EXECUTABLE_SUFFIX.
493
756954c3
DD
4942002-11-24 Nick Clifton <nickc@redhat.com>
495
496 * make-relative-prefix.c (make_relative_prefix): Ensure return
497 string is empty before using strcat to construct it.
498
2a80c0a4
DD
4992002-11-22 Daniel Jacobowitz <drow@mvista.com>
500
501 * Makefile.in: Add make-relative-prefix.c.
502 * make-relative-prefix.c: New file.
503 * functions.texi: Rebuilt.
504
768b20d8
JJ
5052002-11-16 Jakub Jelinek <jakub@redhat.com>
506
507 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
508 used with arguments in traditional C' warnings.
509
f52d1d64
JJ
5102002-10-16 Jakub Jelinek <jakub@redhat.com>
511
512 * config.table: Use mh-s390pic for s390x too.
513
0d3deb8d
DD
5142002-10-06 Andreas Jaeger <aj@suse.de>
515
516 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
517 variable and of strict-aliasing warning.
518 (grow_vect): Use char as first parameter.
519
1b67de92
DD
5202002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
521
522 * Makefile.in (all): Fix multilib parallel build.
523
585cc78f
DD
5242002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
525
526 * cp-demangle.c (demangling_new): Cast 0 to enum.
527 (demangle_char): Cast return of strdup to char *.
528 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
529 (is_gnu_v3_mangled_dtor): Likewise.
530 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
531 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
532 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
533 * md5.c (md5_process_bytes): Cast results back to const void *.
534 (md5_process_block): Add cast to const md5_uint32 *.
535 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
536 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
537 unsigned short.
538 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
539 to void *.
540 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
541
e21b0cc1
NC
5422002-09-19 Nick Clifton <nickc@redhat.com>
543
544 * README: Update email addresses for bugs and patches.
545
a54ba43f
DD
5462002-09-10 Mike Stump <mrs@apple.com>
547
548 * splay-tree.c (splay_tree_successor): Fix comments.
549
5502002-09-11 Zack Weinberg <zack@codesourcery.com>
551
552 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
553 * testsuite/Makefile.in: Adjust for test-demangle.
554 * testsuite/regress-demangle: Deleted.
555 * testsuite/test-demangle.c: New file.
556 * testsuite/demangle-expected: Change \$ to $ throughout, now that
557 this file is not being read by a shell script.
558
01cea699
DD
5592002-09-05 Roger Sayle <roger@eyesopen.com>
560
561 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
562
a2832523
DD
5632002-08-07 DJ Delorie <dj@redhat.com>
564
565 * regex.c (re_error_msgid): Just use a simple array of strings.
566 (re_compile_pattern): Compensate.
567 (re_comp): Likewise.
568 (re_comp): Likewise.
569 (regerror): Likewise.
570
1e3f0be0
DD
5712002-07-29 Neil Booth <neil@daikokuya.co.uk>
572
573 * cplus-dem.c (PREPEND_BLANK): Remove.
574
b851d07b
DD
5752002-07-10 Jason Merrill <jason@redhat.com>
576
577 * cp-demangle.c (demangle_identifier): Support extended Unicode
578 characters.
579
2a9dffbf
DD
5802002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
581
582 * cp-demangle.c (demangle_v3_with_details): Wrap in
583 !defined IN_GLIBCPP_V3.
584
793011ca
DD
5852002-07-01 Mark Mitchell <mark@codesourcery.com>
586
587 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
588 Set it for the "st" operator.
589 (demangle_expression): Handle expressions with types as arguments.
590
b39b76b8
DD
5912002-06-30 Douglas Rupp <rupp@gnat.com>
592
593 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
594 * Makefile.in (OUTPUT_OPTION): Use.
595
4748c6d8
DD
5962002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
597
598 * Makefile.in (install_to_libdir): Add $(DESTDIR).
599 (install_to_tooldir): Likewise.
600
f9c3326a
DD
6012002-06-17 Douglas Rupp <rupp@gnat.com>
602
603 * lbasename.c: Add 2002 to copyright.
604 (IS_DIR_SEPARATOR): Remove VMS junk.
605
18893690
DD
6062002-06-05 Geoffrey Keating <geoffk@redhat.com>
607
608 * hashtab.c (htab_create): New stub function for backward
609 compatibility.
610 (htab_try_create): Likewise.
611
6122002-06-03 Geoffrey Keating <geoffk@redhat.com>
613
614 * hashtab.c (htab_create): Delete.
615 (htab_try_create): Delete.
616 (htab_create_alloc): New.
617 (htab_delete): Support user-specified memory allocation.
618 (htab_expand): Likewise.
619
6202002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
621
622 * configure.in: Fix typo in the code checking for sys_errlist.
623 * configure: Regenerated.
624
9296c8b2
DD
6252002-05-13 Andreas Schwab <schwab@suse.de>
626
627 * config.table: Use mh-x86pic also for x86-64.
628
52d98c2d
DD
6292002-05-08 Alexandre Oliva <aoliva@redhat.com>
630
631 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
632 script entry, and set LD to it when configuring multilibs.
633 * configure: Rebuilt.
634
cafa3917
DD
6352002-05-07 Mark Mitchell <mark@codesourcery.com>
636
637 * configure.in (AC_TYPE_PID_T): Use it.
638 * configure: Regenerated.
639 * getruntime.c: Include <sys/types.h>.
640 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
641
b1c933fc
RH
6422002-04-09 Richard Henderson <rth@redhat.com>
643
644 * hashtab.c (higher_prime_number): Use 7 as minimum.
645 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
646 (htab_find_slot_with_hash): Likewise.
647
0c4460bb
DD
6482002-04-01 Phil Edwards <pme@gcc.gnu.org>
649
650 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
651 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
652 not compile if IN_GLIBCPP_V3 defined.
653 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
654
f2160d2b
DD
6552002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
656
3ebf1f59 657 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
658 if it is NULL.
659
7dd4d42a
DD
6602002-03-27 DJ Delorie <dj@redhat.com>
661
662 * hex.c: Add documentation.
663 (_hex_value): Provide non-ASCII empty table.
664 (hex_init): Initialize the non-ASCII table.
665 * functions.texi: Regenerate.
666
38e57a35
DD
6672002-03-27 Mark Mitchell <mark@codesourcery.com>
668
669 * dyn-string.c: Add libgcc exception to copyright notice.
670
cfed0715
DD
6712002-03-26 H.J. Lu (hjl@gnu.org)
672
673 * config.table: Support --with-build-subdir.
674 * configure.in: Likewise.
675 * configure: Rebuild.
676
1504972f
DD
6772002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
678
679 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
680 seen.
681
35efcd67
DD
6822002-03-12 Mark Mitchell <mark@codesourcery.com>
683
684 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
685 notice.
686
dabc64ea
DD
6872002-03-11 Douglas B Rupp <rupp@gnat.com>
688
689 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
690
3ddbd84c
JB
6912002-03-06 Jim Blandy <jimb@redhat.com>
692
693 * splay-tree.c (splay_tree_xmalloc_allocate,
694 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
695 prototyped definitions. Mark `data' arguments as unused.
696
efdab807
AC
6972002-03-06 Andrew Cagney <ac131313@redhat.com>
698
699 * floatformat.c (floatformat_arm_ext_big): Delete definition.
700
50d4562d
DD
7012002-03-04 Phil Edwards <pme@gcc.gnu.org>
702
703 * configure.in: Add --enable-install-libiberty option.
704 * Makefile.in (INSTALLED_HEADERS): New variable.
705 (install_to_libdir): Possibly also copy headers.
706 * configure: Regenerated.
707
7082002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
709
710 * xmalloc.c (xmalloc_fail): Clarify error message further.
711
6e9980f5
DD
7122002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
713
714 * xmalloc.c (xmalloc_fail): Clarify error message.
715
18893690 7162002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
717
718 * splay-tree.c (splay_tree_xmalloc_allocate,
719 splay_tree_xmalloc_deallocate): New functions.
720 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
721 above functions and a dummy data pointer.
722 (splay_tree_new_with_allocator): New function.
723 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
724 splay_tree_remove): Use the splay tree's allocation and
725 deallocation functions.
726
59ea9fe7
DD
7272002-02-19 Scott Snyder <snyder@fnal.gov>
728
729 * testsuite/demangle-expected: Add test case for infinite loop in
730 demangler.
731 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
732 if do_type() doesn't make any progress --- prevents an infinite
733 loop.
734
6f848550
DD
7352002-02-18 Carlo Wood <carlo@gnu.org>
736
737 PR c++/5390
738 * cplus-dem.c (demangle_integral_value): Accept multi-digit
739 numbers that do not start with an underscore; This is needed
740 for integer template parameters. This doesn't break anything
741 because multi-digit numbers are never followed by a digit.
742 * testsuite/demangle-expected: Corrected all mangled test
743 cases with multi-digit template parameters: g++ 2.95.x does
744 not generate underscores around these parameters.
745
44354ae1
DD
7462002-02-05 Jason Merrill <jason@redhat.com>
747
748 * cplus-dem.c (flags): Add DMGL_VERBOSE
749 (cplus_demangle_v3_p): Remove.
750 (demangle_it): Add DMGL_TYPES to passed flags.
751 * cp-demangle.c (cplus_demangle_v3_all): Remove.
752 (cplus_demangle_v3_type): Remove.
753 (cplus_demangle_v3): Add options parm.
754
42da15d6
DD
7552002-02-02 H.J. Lu (hjl@gnu.org)
756
757 * cp-demangle.c (cp_demangle_type): Do not protect with
758 IN_LIBGCC2.
759 (cplus_demangle_v3_all): New.
760 (cplus_demangle_v3): Call cplus_demangle_v3_all.
761 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
762
763 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
764 Initialized to cplus_demangle_v3.
765 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
766 of cplus_demangle_v3.
767 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
768 command line symbol.
769
770 * testsuite/regress-demangle: Pass the mangled name at the
771 command line.
772
b117c158
DD
7732002-02-01 H.J. Lu <hjl@gnu.org>
774
775 * cp-demangle.c (cp_demangle_type): Call demangling_new with
776 DMGL_GNU_V3.
777
c78d91b1
DD
7782002-01-31 Phil Edwards <pme@gcc.gnu.org>
779
780 * cp-demangle.c: Revert yesterday's change.
781
bef8b55d
DD
7822002-01-31 Adam Megacz <adam@xwt.org>
783
784 * gcc/libiberty/configure.in: Treat mingw the same as cywin
785 wrt HAVE_SYS_ERRLIST.
786
2c955b8b
DD
7872002-01-30 Phil Edwards <pme@gcc.gnu.org>
788
789 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
790 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
791 cp_demangle_type.
792 * testsuite/demangle-expected: New gnu-v3 test.
793
58b1717a
RH
7942002-01-22 Momchil Velikov <velco@fadata.bg>
795
796 * configure.in (variable detection): Use arrays of unspecified
797 size instead of plain integers.
798
cc096b71
DD
7992002-01-18 DJ Delorie <dj@redhat.com>
800
801 * Makefile.in (TESTLIB): New. This library is for future
802 testsuites.
803 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
804 break down by letter.
805 (REQUIRED_OFILES): List long-to-compile files first.
806 (maint-deps): New, target for updating dependencies.
807 (dependencies): Update.
808 * maint-tool: Add dependency-generating option.
809 * configure.in: Check for _doprnt even if we're not providing it.
810 * configure: Regenerate.
811
812 * _doprnt.c: Modifications to allow compiling on any platform.
813 * copysign.c: Likewise.
814 * putenv.c: Likewise.
815 * setenv.c: Likewise.
816 * vsprintf.c: Likewise.
817
8182002-01-15 Douglas B Rupp <rupp@gnat.com>
819
820 * mkstemps.c (mkstemps): On VMS, open temp file with option
821 that causes it to be deleted when closed.
822
20d54542
DD
8232002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
824
c23795e2
DD
825 * cp-demangle.c (long_options): Const-ify.
826 * cplus-dem.c (long_options): Likewise.
827
20d54542
DD
828 * cplus-dem.c (mystrstr): Delete. All callers changed to use
829 strstr instead.
830
f348a7b1
DD
8312001-12-31 Ira Ruben <ira@apple.com>
832
833 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
834 * configure: Regenerated.
835
d86cd745
DD
8362001-12-24 Douglas B. Rupp <rupp@gnat.com>
837
838 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
839 * configure: Regenerated.
840
ae533646
DD
8412001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
842
843 PR other/2719
844 * cplus-dem.c (consume_count): Treat negative count as an error.
845 * testsuite/demangle-expected: Added testcase.
846
c0eb281b
DD
847Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
848
849 * configure.in: Hardcode that vfork works on VMS host.
850 * configure: Regenerated.
851
2da4c07f
RH
8522001-12-06 Richard Henderson <rth@redhat.com>
853
854 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
855 (cplus_demangle): Support no_demangling.
856
24acd898
DD
8572001-11-27 Zack Weinberg <zack@codesourcery.com>
858
859 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
860 in libiberty context. Fix typo in leading comment.
861 * configure.in: Fix various AC_DEFINEs so autoheader works.
862 If any of vprintf, vsprintf, vfprintf is missing from libc,
863 then AC_REPLACE_FUNCS(_doprnt).
864
fec50157 8652001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 866 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
867
868 * Makefile.in (stamp-h): Depend on Makefile for proper
869 serialization.
870 (*-subdir): Depend on config.h for proper serialization.
871
5527febf
DD
8722001-11-26 DJ Delorie <dj@redhat.com>
873
874 * configure.in: Check for alloca.h (for regex.c and putenv.c).
875 * configure: Regenerate.
876 * config.h: Add HAVE_ALLOCA_H.
877
941d74a0
DD
8782001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
879
880 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
881 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
882 is available.
883
dc579051
DD
884Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
885
886 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
887 * configure.in (HAVE_UINTPTR_T): Test for system defining
888 uintptr_t and define HAVE_UINTPTR_T appropriately.
889 * regex.c (uintptr_t): Do not provide a definition if the
890 system provided one.
891
892 * regex.c (PREFIX): Provide an alternate definition for
893 non-ANSI/ISO compilers.
894 (ARG_PREFIX): Likewise.
895
1a78a35a
DD
8962001-11-12 Jim Meyering <meyering@lucent.com>
897
898 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
899 this code would end up calling gettext even in packages built
900 with --disable-nls.
901 * getopt.c (_): Likewise.
902 * regex.c (_): Likewise.
903
4e55c4b6
DD
9042001-11-03 Alan Modra <amodra@bigpond.net.au>
905
906 * configure.in: Cope with missing makeinfo.
907 * configure: Regenerate.
908
d311a83a
DD
9092001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
910
911 * hex.c (hex_init): Provide empty stub.
912
913 * hex.c (hex_init): Delete.
914 (_hex_value): Const-ify and initialize at compile-time.
915
3bc62f91
DD
9162001-10-19 H.J. Lu <hjl@gnu.org>
917
918 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
919 necessary.
920
5d852400
DD
9212001-10-17 DJ Delorie <dj@redhat.com>
922
923 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
924 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 925 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
926 Improve manual formatting.
927 * functions.texi: Regenerate.
928
ba19b94f
DD
9292001-10-15 DJ Delorie <dj@redhat.com>
930
931 * Makefile.in (TEXIFILES): Add fnmatch.txh.
932 (maint-undoc): New.
933 maint-tool: Add "undoc" tool.
934 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
935 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
936 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
937 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
938 documentation.
939 * fnmatch.txh: New.
940 * functions.texi: Regenerate.
941
56056af5
DD
9422001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
943
944 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
945 * strtod.c: Use "ISO C" instead of "ANSI C".
946 * functions.texi: Regenerate.
947
99b58139
DD
9482001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
949
950 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
951 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
952 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
953 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
954 spelling. Give names to function arguments in documentation. Use
955 (void) prototypes in documentation.
956 * functions.texi: Regenerate.
957
e6450fe5
DD
9582001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
959
960 * argv.c (buildargv, tests, main): Const-ify.
961 * cp-demangle.c (operator_code): Likewise.
962 * cplus-dem.c (optable, libiberty_demanglers,
963 cplus_demangle_set_style, cplus_demangle_name_to_style,
964 print_demangler_list): Likewise.
965 * hashtab.c (higher_prime_number): Likewise.
966 * strcasecmp.c (charmap): Likewise.
967 * strerror.c (error_info, strerror, main): Likewise.
968 * strncasecmp.c (charmap): Likewise.
969 * strsignal.c (signal_info): Likewise.
970
da191b5b
DD
9712001-09-29 DJ Delorie <dj@redhat.com>
972
973 * configure: Regenerate.
974
916aaa12
DD
9752001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
976
977 * concat.c: Include stdlib.h.
978
fa9f0e33
DD
9792001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
980
981 * libiberty.texi: (Top level): Add syncodeindex pg. Add
982 @dircategory and @direntry directives. Add @finalout.
983 (many nodes): Lose the next,prev,up pointers on the @nide line.
984 (Using, Supplemental Functions, Replacement Functions): Fix
985 markup.
986 (Functions): Move around, to allow makeinfo to build the manual
987 without next,prev,up pointers in thye node lines.
988 (Licenses): Fix typos.
989
990 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
991 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
992 * functions.texi: Regenerate.
993
994 * copying-lib.texi: Lose the next,prev,up pointers on the @node
995 line.
996
9972001-09-27 DJ Delorie <dj@redhat.com>
998
999 * configure.in: Don't use in-tree texinfo, because libiberty must
1000 be built before it. Check for makeinfo version 4 or higher.
1001 * functions.texi: Regenerate.
1002
39423523
DD
10032001-09-20 DJ Delorie <dj@redhat.com>
1004 Phil Edwards <pedwards@disaster.jaj.com>
1005
1006 * configure.in (MAKEINFO, PERL): Detect these.
1007 (--enable-maintainer-mode): Add.
1008 * configure: Regenerate.
1009 * Makefile.in (MAKEINFO, PERL): Define.
1010 (libiberty.info, libiberty.dvi, libiberty.html): New.
1011 (CFILES): Add bsearch.c.
1012 (CONFIGURED_OFILES): New, list of objects configure might add.
1013 (maint-missing, maint-buildall): New, for maintainers only.
1014 (clean, mostlyclean): Add info/dvi/html files.
1015 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
1016 * gather-docs: New, for maintainers.
1017 * maint-tool: New, for maintainers.
1018 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
1019 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
1020 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
1021 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
1022 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
1023 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
1024 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
1025 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
1026 documentation.
1027
66c94e19
DD
10282001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1029
1030 * concat.c (reconcat): Fix for traditional C.
1031
99ee3a8f
DD
10322001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1033
1034 * concat.c (reconcat): New function.
1035
54c20242
DD
10362001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1037
1038 * concat.c (vconcat_length, vconcat_copy, concat_length,
1039 concat_copy, concat_copy2): New functions.
1040 (concat): Use vconcat_length/vconcat_copy.
1041
1042 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
1043 Define.
1044
843f21be
DD
10452001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1046
1047 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
1048 VA_FIXEDARG & VA_CLOSE.
1049
1050 * vasprintf.c: Check HAVE_STRING_H when including string.h.
1051 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
1052 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
1053
8a423cb3
DD
10542001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1055
1056 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
1057
dc676635
DD
10582001-08-23 Ulrich Drepper <drepper@redhat.com>
1059
1060 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
1061
10622001-08-23 Ulrich Drepper <drepper@redhat.com>
1063
1064 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1065 instead of mbrtowc.
1066 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1067 wcslen, and __wcscoll instead of wcscoll.
1068
f080c76d
DD
10692001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1070
3ebf1f59
DD
1071 * fibheap.c (fibheap_init, fibnode_init): Remove.
1072 (fibheap_new, fibnode_new): Use xcalloc to allocate and
1073 initialize memory.
1074 (fibheap_insert): Remove check for node allocation failure.
f080c76d 1075
f01b59ed
DD
10762001-08-21 Richard Henderson <rth@redhat.com>
1077
1078 * Makefile.in (fibheap.o): Depend on config.h.
1079 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
1080 functions for inlining.
1081
1082Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
1083
1084 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
1085 hosting on cygwin.
1086 * configure: Regenerate.
1087
eb828599
AC
10882001-08-20 Andrew Cagney <ac131313@redhat.com>
1089
1090 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
1091 HARRIS_FLOAT_FORMAT.
1092 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
1093 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
1094 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
1095 (floatformat_m88110_harris_ext): New float formats.
1096
4e55c4b6
DD
10972001-08-20 Daniel Berlin <dan@cgsoftware.com>
1098
1099 * fibheap.c: New file. Fibonacci heap.
1100
1101 * Makefile.in (CFILES): Add fibheap.c.
1102 (REQUIRED_OFILES): Add fibheap.o.
1103 (fibheap.o): Add dependencies for fibheap.o.
1104
68a41de7
DD
11052001-08-17 Christopher Faylor <cgf@cygnus.com>
1106
1107 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
1108 * configure: Regenerate.
1109
8fc34799
DD
11102001-08-16 Richard Henderson <rth@redhat.com>
1111
1112 * hashtab.c (htab_hash_string): New.
1113
16bad250
AC
11142001-08-13 Andrew Cagney <ac131313@redhat.com>
1115
1116 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
1117 name.
1118
a9022147
DD
11192001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
1120
1121 * regex.c (wcs_regex_compile): Use appropriate string
1122 to compare with collating element.
1123 Fix the padding for the alignment.
1124
8aefe91a 11252001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
1126
1127 * lbasename.c (lbasename): Change function definition to return a
1128 const char pointer.
1129
e7e9b069
DD
11302001-08-07 Jason Merrill <jason_merrill@redhat.com>
1131
1132 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
1133 for".
1134
cc5144f8
DD
11352001-08-03 Richard Henderson <rth@redhat.com>
1136
1137 * Makefile.in (concat.o): Depend on config.h.
1138
8aefe91a
DD
11392001-07-30 Andreas Jaeger <aj@suse.de>
1140
1141 * concat.c: Include "config.h".
1142
86710ce2
DD
11432001-07-30 Andreas Jaeger <aj@suse.de>
1144
1145 * regex.c: Declare wcs functions only if compiling with
1146 MBS_SUPPORT.
1147 Don't use #elif for traditional C.
1148
11492001-07-23 Ulrich Drepper <drepper@redhat.com>
1150
1151 * regex.c: Revamp memory allocation for WCHAR functions to
1152 not use too much stack.
1153
11542001-07-30 Andreas Jaeger <aj@suse.de>
1155
1156 * regex.c: Declare wcs functions only if compiling with
1157 MBS_SUPPORT.
1158 Don't use #elif for traditional C.
1159
a5d8f731
DD
11602001-07-25 Daniel Jacobowitz <drow@mvista.com>
1161
1162 * Makefile.in (regex.o): Add dependency on config.h.
1163
6ad8a379
DD
11642001-07-18 Andreas Schwab <schwab@suse.de>
1165
1166 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
1167 underscore character.
1168
11692001-07-18 Ulrich Drepper <drepper@redhat.com>
1170
1171 * regex.c: Limit string length printed in debug messages to 100
1172 chars.
1173
11742001-07-18 Andreas Jaeger <aj@suse.de>
1175
1176 * regex.c: Place under LGPL version 2.1.
1177
2a6ef469
DD
11782001-07-10 Jeff Johnston <jjohnstn@redhat.com>
1179
1180 * Makefile.in: Add support for regex code.
1181 * regex.c: New file.
1182
7b78baae
DD
11832001-07-05 Mark Klein <mklein@dis.com>
1184
1185 * Makefile.in: Add ffs.c dependency.
1186 * configure.in: Add ffs.c.
1187 * ffs.c: New file.
1188
926150e2
DD
11892001-06-18 Richard Henderson <rth@redhat.com>
1190
1191 * concat.c: Include <sys/types.h>.
1192
11f6f21d
DD
11932001-06-11 Loren J. Rittle <ljrittle@acm.org>
1194
1195 bootstrap/3106
1196 * strerror.c (sys_nerr): Hide the OS header version.
1197 * strsignal.c (sys_nsig): Likewise.
1198
d42dae6c
DD
11992001-06-10 Richard Henderson <rth@redhat.com>
1200
1201 * concat.c: Include string.h. Fix int vs size_t usage.
1202 Simplify the iteration loops. Use memcpy.
1203
e05c6d27
DD
12042001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1205
1206 * partition.c: Fix misspelling of `implementation'.
1207
b50c4073
DD
12082001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1209
1210 * md5.c (md5_init_ctx): Declare constants as unsigned.
1211 (md5_process_block): Likewise.
1212
457161bf
DD
12132001-05-07 Zack Weinberg <zackw@stanford.edu>
1214
1215 * cp-demangle.c (demangle_v3_with_details,
1216 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
1217 function definition.
1218 * ternary.c: Use K+R style function definitions. Use PTR, not
1219 void *. Make arguments constant where possible.
1220
e00bc6a7
DD
12212001-05-07 Mark Mitchell <mark@codesourcery.com>
1222
1223 * splay-tree.h (splay_tree_max): New function.
1224 (splay_tree_min): Likewise.
1225
400ee7e1
DB
12262001-04-15 Daniel Berlin <dan@cgsoftware.com>
1227
1228 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
1229
1230 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 1231
d9697354
DD
12322001-04-03 Zack Weinberg <zackw@stanford.edu>
1233
1234 * make-temp-file.c (try): Inline.
1235
a7bf099b
DD
12362001-02-28 Richard Henderson <rth@redhat.com>
1237
1238 * Makefile.in (make-temp-file.o): Depend on config.h.
1239
30a1def2
DD
12402001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1241
1242 * memchr.c (memchr): Adjust condition to avoid infinite loop.
1243
079c672a
DD
12442001-03-23 Jakub Jelinek <jakub@redhat.com>
1245
1246 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
1247 `_' not followed by a digit is invalid.
1248
a88e356a
JB
12492001-03-22 Jim Blandy <jimb@redhat.com>
1250
1251 * cp-demangle.c (string_list_delete): Use dyn_string_delete
1252 instead of free, to free the contents as well as the string
1253 structure.
1254
1dffcc66
DD
12552001-03-21 Zack Weinberg <zackw@stanford.edu>
1256
1257 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
1258 Don't default P_tmpdir to anything. Try /var/tmp before
1259 /usr/tmp.
1260
12612001-03-20 Zack Weinberg <zackw@stanford.edu>
1262
1263 * choose-temp.c: Split off make_temp_file, and the code
1264 duplicated between it and choose_temp_base, into...
1265 * make-temp-file.c: ... here; new file.
1266
1267 * Makefile.in (CFILES): Add make-temp-file.c.
1268 (REQUIRED_OFILES): Add make-temp-file.o.
1269
e61231f1
JB
12702001-03-20 Jim Blandy <jimb@redhat.com>
1271
1272 * cp-demangle.c (struct demangling_def): New fields:
1273 is_constructor and is_destructor.
1274 (demangling_new): Initialize them.
1275 (demangle_ctor_dtor_name): Set them, if we detect a constructor
1276 or destructor.
1277 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
1278 is_gnu_v3_mangled_dtor): New functions.
1279
a9cbbe6d
DD
12802001-03-20 Jason Merrill <jason@redhat.com>
1281
1282 * cplus-dem.c (main): Skip initial $.
1283
b1e51b3c
DD
12842001-03-15 Michael Meissner <meissner@redhat.com>
1285
1286 * hashtab.c (higher_prime_number): Silence warning that 4294967291
1287 might be a signed integer under pre-ISO C systems.
1288
8aa30e60 12892001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 1290 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 1291
8aa30e60
DD
1292 * libiberty/lbasename.c: New file.
1293 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 1294
30673bf5
DD
12952001-03-06 Zack Weinberg <zackw@stanford.edu>
1296
1297 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
1298 * configure.in: Replace all alloca logic with a simple use of
1299 the above new macro.
1300 * config.table: Kill *-*-beos* entry.
1301 * config/mh-beos: Delete.
1302 * configure, config.in: Regenerate.
fa03f0a7 1303
30673bf5
DD
1304 * Makefile.in (ALLOCA, HFILES): Kill.
1305 (REQUIRED_OFILES): Add alloca.o.
1306 (alloca.o): Depend on libiberty.h.
1307 (argv.o): Don't depend on alloca-conf.h.
1308 * alloca-conf.h: Delete.
1309 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
1310 blocks. Provide the C alloca unconditionally. Use PTR where
1311 appropriate. Make i00afunc static.
1312 * argv.c: Don't include alloca-conf.h.
fa03f0a7 1313
5810f394
DD
13142001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1315
1316 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 1317
a9db032a
DD
13182001-02-16 Loren J. Rittle <ljrittle@acm.org>
1319
1320 * cplus-dem.c (main): Initialize style.
fa03f0a7 1321
8aefe91a
DD
13222001-02-02 Phil Edwards <pme@sources.redhat.com>
1323
1324 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
1325
bc9bf259
DD
13262001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
1327
1328 Add support for Java demangling under the v3 ABI:
1329 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
1330 (struct demangling_def): Add `style' field.
1331 (demangling_new): New parameter `style'. Set it in demangling_t.
1332 (demangle_prefix): Use NAMESPACE_SEPARATOR.
1333 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
1334 (cp_demangle): New parameter `style'. Pass it to demangling_new().
1335 (main): Call cp_demangle with extra parameter.
1336 (java_demangle_v3): New function.
1337 (java_builtin_type_names): New. Table of primitive type names used
1338 for Java demangling.
1339 (demangle_builtin_type): Look up in java_builtin_type_names if doing
1340 Java output.
1341 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
1342 demangling.
1343 (long_options): Remove obsolete `java' option.
1344 (main): Remove explicit handling of `java' option. Instead, pass style
1345 parameter in cplus_demangle flags as gdb does.
1346 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 1347
f6528837
DD
13482000-12-29 DJ Delorie <dj@redhat.com>
1349
1350 * fnmatch.c: Make the note about the origins of this file more
1351 accurate, at least until we can sync with glibc.
1352 * getopt.c: Ditto.
1353 * getopt1.c: Ditto.
1354 * md5.c: Ditto.
1355 * obstack.c: Ditto.
9d969b59 1356
c6da642e
DD
13572000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1358
1359 * bsearch.c: New file.
1360 * configure.in (funcs): Add bsearch.
1361 (AC_CHECK_FUNCS): Likewise.
1362 * configure, config.in: Regenerate.
1363
ae7d06ad 13642000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
1365
1366 * safe-ctype.c: #include "ansidecl.h".
1367 * strtod.c: Likewise.
1368
ae7d06ad 13692000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
1370
1371 * strtoul.c: Include safe-ctype.h, not ctype.h.
1372
ac424eb3
DD
13732000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1374
1375 * safe-ctype.c: New file.
1376 * Makefile.in (CFILES): Add safe-ctype.c.
1377 (REQUIRED_OFILES): Add safe-ctype.o.
1378
1379 * argv.c: Define ISBLANK and use it, not isspace.
1380 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
1381 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
1382 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
1383 before calling TOLOWER(c)/TOUPPER(c).
1384
4415a860
DD
13852000-12-07 Mike Stump <mrs@wrs.com>
1386
1387 * Makefile.in (distclean): When cleaning, remove testsuite.
1388
849ee224
DD
13892000-12-05 Jason Merrill <jason@redhat.com>
1390
1391 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1392 name before allocating the dyn_string.
1393
ae7d06ad 13942000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
1395
1396 * cp-demangle.c: s/new_abi/v3/.
1397 * cplus-dem.c: Likewise.
1398 (current_demangling_style): Now auto_demangling.
1399 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 1400 (main): Use standard symbol chars for auto_demangling.
e49a569c 1401
ae7d06ad 14022000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
1403
1404 * hashtab.c (higher_prime_number): Use a table, rather than a
1405 seive, to find the next prime.
ae7d06ad
NC
1406
14072000-11-22 H.J. Lu <hjl@gnu.org>
1408
1409 * cplus-dem.c (main): Handle gnat_demangling.
1410
14112000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
1412
1413 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1414 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1415 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1416 argument form of AC_DEFINE in dummy definitions block. Use
1417 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1418 in dummy block. Preload cache variables instead of bypassing
1419 tests, where possible.
1420 * acconfig.h: Removed.
ae7d06ad 1421
2ea7befd
DD
1422 * xmalloc.c (xmalloc_failed): New function, does error
1423 reporting on failed allocation.
1424 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 1425
f1775526
HPN
14262000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1427
1428 * cplus-dem.c (cplus_demangle): Fix formatting.
1429 (grow_vect): Ditto.
1430 (ada_demangle): Ditto.
1431 (internal_cplus_demangle): Ditto.
1432 (mop_up): Ditto.
1433
14342000-11-21 H.J. Lu <hjl@gnu.org>
1435
1436 * cplus-dem.c (main): Handle java_demangling.
1437
ae7d06ad 14382000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
1439
1440 * cplus-dem.c (grow_vect): Prototype.
1441 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1442
5dd42ef4
HPN
14432000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1444
1445 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1446 parameter `option'.
1447
296731c1
DD
14482000-11-15 Kenneth Block <kenneth.block@compaq.com>
1449
8944fb9d 1450 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
1451 be used in GCC.
1452
6e53a714 14532000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 1454
5dd42ef4 1455 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
1456 list.
1457
99a4c1bd
HPN
14582000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1459
1460 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
1461 xcalloc depending on htab->return_allocation_failure. Return zero
1462 if calloc fails.
99a4c1bd
HPN
1463 (htab_create): Update comment to cover memory allocation.
1464 (htab_try_create): New.
1465 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 1466 Update comment to cover this.
99a4c1bd 1467
e0f3df8f
HPN
14682000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1469
1470 * hashtab.c: Change void * to PTR where necessary.
1471 (htab_create, htab_expand): Correct formatting of comment before
1472 function.
1473
ae7d06ad 14742000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
1475
1476 * cp-demangle.c (string_list_def): Add caret_position and comments.
1477 (result_caret_pos): New macro.
1478 (result_append_string): Rename to...
1479 (result_add_string): ... this, and insert at caret position.
ae7d06ad 1480 Rename throughout.
59666b35
DD
1481 (result_append): Rename to...
1482 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 1483 throughout.
59666b35
DD
1484 (result_append_char): Rename to...
1485 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 1486 throughout.
59666b35
DD
1487 (result_append_space): Remove.
1488 (string_list_new): Initialize caret position.
1489 (result_add_separated_char): Use caret position.
1490 (result_get_caret): New funtion.
1491 (result_set_caret): Likewise.
1492 (result_shift_caret): Likewise.
1493 (result_previous_char_is_space): Likewise.
1494 (substitution_start): Use caret position.
1495 (substitution_add): Likewise.
1496 (demangling_new): Initialize caret position.
1497 (demangle_encoding): Use caret position.
ae7d06ad 1498 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
1499 (demangle_type_ptr): Use switch statement. Handle pointers to
1500 arrays. Don't use result_append_space. Use caret position.
1501 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
1502 call to demangle_array_type.
1503 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 1504
ae7d06ad 15052000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1506
1507 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
1508
15092000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1510
1511 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
1512
15132000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1514
1515 * splay-tree.c: #include <stdio.h>.
1516
15172000-09-14 Hans-Peter Nilsson <hp@axis.com>
1518
1519 * testsuite/demangle-expected: Add two tests for anonymous
1520 namespaces.
1521 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1522
15232000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1524
1525 * splay-tree.c (splay_tree_predecessor): New function.
1526 (splay_tree_successor): Likewise.
ae7d06ad
NC
1527
15282000-09-10 Hans-Peter Nilsson <hp@axis.com>
1529
1530 * testsuite/demangle-expected: Add four tests for type_info
1531 mangling.
1532 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1533 for a non-template non-qualified type_info function or node.
1534
15352000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1536
1537 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
1538
15392000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1540
1541 * md5.c: #include "ansidecl.h".
1542
15432000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1544
1545 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1546 (demangle_type): Handle substitution candidates correctly in the
1547 face of special substitutions.
ae7d06ad
NC
1548
15492000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1550
1551 * cp-demangle.c (demangle_encoding): Rename variable.
1552 (demangle_name): Rename parameter. Handle return type
1553 suppression.
1554 (demangle_nested_name): Rename parameter.
1555 (demangle_prefix): Likewise. Change return type suppression.
1556 (demangle_unqualified_name): Add parameter. Flag constructors and
1557 conversion operators.
1558 (demangle_special_name): Fix comment.
1559 (demangle_type): Rename variable.
1560 (demangle_bare_function_type): Check for missing return type and
1561 parameter.
1562 (demangle_class_enum_type): Rename parameter.
1563 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
1564
15652000-08-31 DJ Delorie <dj@redhat.com>
1566
1567 * configure.in (Cygwin): special case cygwin only when we're
1568 building cygwin, not when we're hosting cygwin.
1569
15702000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1571
1572 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
1573 <expression>.
ae7d06ad
NC
1574
15752000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1576
1577 * cp-demangle.c (demangle_type_ptr): Increment position past
1578 pointer and reference characters.
ae7d06ad
NC
1579
15802000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1581
1582 * cp-demangle.c (demangle_nv_offset): New function.
1583 (demangle_v_offset): Likewise.
1584 (demangle_call_offset): Likewise.
1585 (demangle_special_name): Update thunk demangling to comply with
1586 ABI changes.
ae7d06ad
NC
1587
15882000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1589
1590 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1591 (substitution_def): Remove template_parm_number.
1592 (NOT_TEMPLATE_PARM): Remove.
1593 (result_insert_string): New macro.
1594 (result_insert): Likewise.
1595 (result_insert_char): Likewise.
1596 (substitution_add): Remove last parameter. Don't store template
1597 parm number.
1598 (BFT_NO_RETURN_TYPE): Define as NULL.
1599 (demangle_encoding): Adjust call to demangle_bare_function_type.
1600 (demangle_name): Adjust substitution. Adjust call to
1601 substitution_add.
1602 (demangle_prefix): Adjust call to substitution_add.
1603 (demangle_identifier): Handle anonymous namespaces.
1604 (demangle_operator_name): Change demangling of vendor-extended
1605 operator to match ABI changes.
1606 (demangle_type_ptr): Change parameters. Make recursive. Handle
1607 substitutions here.
1608 (demangle_type): Adjust calls to demangle_template_param,
1609 substitution_add, and demangle_type_ptr. Fix substitution of
1610 templated types.
1611 (demangle_function_type): Change parameter to a pointer.
1612 (demangle_bare_function_type): Likewise. Adjust insertion point.
1613 (demangle_template_param): Remove last parameter.
1614 (demangle_expr_primary): Remove unused variable. Adjust call to
1615 demangle_template_param.
1616 (is_mangled_char): Accept `$' and `.'.
1617 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1618 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
1619
16202000-08-31 Hans-Peter Nilsson <hp@axis.com>
1621
1622 * testsuite/demangle-expected: Add nine tests for
1623 underscore-after-number followed by five tests for name-signature
1624 delimiter.
1625
16262000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
1627
1628 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
1629
16302000-08-28 Jason Merrill <jason@redhat.com>
1631
1632 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1633 (CFILES): Add md5.c.
1634 * md5.c: New file.
1635
16362000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1637
1638 * cp-demangle.c (demangle_name): Initialize template_p in local
1639 name case. Don't re-add substitutions as candidates.
1640 (demangle_nested_name): Use <unqualified-name>.
1641 (demangle_prefix): Likewise. Don't add template names as
1642 substitution candidates twice, or re-add a substitution or the
1643 last prefix component.
1644 (demangle_local_name): Adjust output format.
ae7d06ad
NC
1645
16462000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1647
1648 * cp-demangle.c (result_add_separated_char): Change parameter to
1649 int.
1650 (substitution_add): Don't check for duplicates. Check if
1651 previously allocated size is zero.
1652 (demangle_name): Remove duplicate check for std substitution.
1653 Clear template flag appropriately.
1654 (demangle_prefix): Remove argument to demangle_substitution.
1655 Don't check that template flag is already set.
1656 (demangle_operator_name): Add pt operator.
1657 (demangle_type): Don't treat r as built-in type. Remove argument
1658 to demangle_substitution. Fix substitution candidate mechanics.
1659 Handle <template-template-parm>s. Improve comments.
1660 (demangle_template_param): Don't handle template arg lists here.
1661 (demangle_substitution): Remove parameter.
1662 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
1663
16642000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1665
1666 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
1667
16682000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1669
1670 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1671 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1672 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
1673
16742000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1675
1676 * cp-demangle.c (result_close_template_list): Remove function.
1677 (result_add_separated_char): New function.
1678 (result_open_template_list): New macro.
1679 (result_close_template_list): Likewise.
1680 (demangle_prefix): Don't set template_p if the
1681 prefix ends with a ctor name.
1682 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1683 (demangle_type): Check for template args after substitution.
1684 (demangle_template_args): Use result_open_template_list.
d3e85005 1685
ae7d06ad 16862000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 1687
ae7d06ad 1688 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 1689
ae7d06ad 16902000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
1691
1692 * config/mh-openedition.h: Added -DLE370 definition.
1693
a9f34fb6
JL
16942000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1695
1696 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1697 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1698 Cast program to 'char *' in errmsg_arg assignment.
1699 (PWAIT_ERROR): Define.
1700 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
1701 to DJGPP's WIF* macros.
1702
90aaccd1 17032000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 1704 Jeff Law <law@cygnus.com>
90aaccd1 1705
ae7d06ad 1706 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 1707
90aaccd1 1708 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
1709 * rename.c: Include config.h, unistd.h
1710 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 1711
6ef554e3
HPN
17122000-07-24 Hans-Peter Nilsson <hp@axis.com>
1713
1714 * cplus-dem.c (work_stuff_copy_to_from): New.
1715 (delete_non_B_K_work_stuff): New.
1716 (delete_work_stuff): New.
1717 (mop_up): Break out work_stuff partly destruction to
1718 delete_non_B_K_work_stuff.
1719 (iterate_demangle_function): New.
1720 (demangle_prefix): Call iterate_demangle_function instead of
1721 demangle_function_name. Leave handling of name-signature
1722 __-delimiters to iterate_demangle_function.
1723 (demangle_integral_value): Strip an optional
1724 following underscore cautiously. Handle negative numbers.
1725
ae7d06ad 17262000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 1727
ae7d06ad 1728 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
1729 if (AUTO_DEMANGLING || GNU_DEMANGLING)
1730
ae7d06ad
NC
17312000-07-21 Alex Samuel <samuel@codesourcery.com>
1732
1733 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
1734 allocating ctor mangling.
1735 (demangle_array_type): Handle empty and non-constant array length.
1736
b1233257 17372000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
1738 Jeff Law <law@cygnus.com>
1739
1740 * configure.in (AC_CHECK_HEADERS): Add time.h.
1741 (AC_HEADER_TIME): Add check.
1742 * configure, config.in: Regenerate.
1743 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
1744
1745 * configure.in (AC_CHECK_HEADERS): Add limits.h.
1746 * configure, config.in: Regenerate.
1747 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
1748 * strtol.c, strtoul.c: #include "config.h". Portably #include
1749 <limits.h> and/or <sys/param.h>.
1750 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 1751
7d3ffcaf
JL
1752 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
1753 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
1754 * configure, config.in: Regenerate.
1755 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
1756
b1233257
JL
1757 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
1758
ae7d06ad
NC
17592000-07-21 Mike Stump <mrs@wrs.com>
1760
1761 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
1762 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
1763
17642000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1765
1766 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
1767
1768 * setenv.c (setenv): Initialize variable `ep'.
1769
1770 * sigsetmask.c (abort): Prototype.
1771
1772 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
1773 __STDC__ for stdarg.h include.
1774 (int_vasprintf): Prototype.
1775 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
1776 definition. Cast `global_total_width' in comparison.
1777 (main): Prototype. Return a value.
1778
1779 * vfork.c (fork): Prototype.
1780
1781 * xexit.c: Include config.h.
1782
9adf30b2
JL
17832000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
1784
1785 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
1786 and print it with %u.
1787
2ed78d1b
HPN
17882000-07-17 Hans-Peter Nilsson <hp@axis.com>
1789
1790 * testsuite/regress-demangle (failed test): Show result and
1791 expected output.
1792
0473bdf7
AH
17932000-07-07 Andrew Haley <aph@cygnus.com>
1794
1795 * cplus-dem.c (main): fflush() after emitting last char before
1796 waiting for input.
1797
03d5f569
JM
17982000-06-28 Alex Samuel <samuel@codesourcery.com>
1799
1800 * cp-demangle.c (demangle_encoding): Accept no substitutions.
1801 (demangle_name): Handle <substitution> followed by
1802 <unqualified-template-name>.
1803 (demangle_type): Follow special substitutions with
1804 <class-enum-type>
1805 (demangle_subtitution): Set template_p for special substitutions.
1806 (main): Fix typos.
ae7d06ad 1807
03d5f569
JM
18082000-06-27 Alex Samuel <samuel@codesourcery.com>
1809
1810 * cp-demangle.c (demangle_special_name): Swap base and derived
1811 class when demangling construction vtables.
1812
18132000-06-21 Alex Samuel <samuel@codesourcery.com>
1814
1815 * cp-demangle.c: Don't include ctype.h.
1816 (IS_DIGIT): New macro.
1817 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
1818 instead of isdigit and isalpanum.
1819 (demangling_def): Make name and next const pointers.
1820 (STATUS_ALLOCATION_FAILED): New status code.
1821 (dyn_string_append_space): Handle failure in
1822 dyn_string_append_char.
1823 (int_to_dyn_string): Likewise. Change return value to status_t.
1824 (string_list_new): Handle failure of dyn_string_init.
1825 (result_close_template_list): Change return type to status_t.
1826 Handle failure in dyn_string_append.
1827 (result_push): Change return value to status_t. Handle failure in
1828 string_list_new. Handle failure of result_push throughout.
1829 (substitution_add): Change return value to status_t. Handle
1830 dyn_string failures. Handle failure of substitution_add
1831 throughout.
1832 (template_arg_list_new): Return NULL on allocation failure.
1833 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
1834 Handle error result throughout.
1835 (result_append): Likewise.
1836 (result_append_char): Likewise.
1837 (result_append_space): Likewise.
1838 (demangling_new): Make argument a const pointer. Handle
1839 allocation failures.
1840 (demangle_template_args): Handle failure in template_arg_list_new
1841 and result_close_template_list.
1842 (demangle_discriminator): Return if int_to_dyn_string fails.
1843 (cp_demangle): Likewise.
1844 (cp_demangle_type): New function.
1845 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
1846 memory allocation failure.
1847 (main): Likewise.
1848 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
1849 IN_LIBGCC2.
1850 (dyn_string_init): Change return value to int. Handle
1851 RETURN_ON_ALLOCATION_FAILURE case.
1852 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
1853 (dyn_string_release): Delete the dyn_string.
1854 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
1855 (dyn_string_copy): Change return type to int.
1856 (dyn_string_copy_cstr): Likewise.
1857 (dyn_string_prepend): Likewise.
1858 (dyn_string_prepend_cstr): Likewise.
1859 (dyn_string_insert): Likewise.
1860 (dyn_string_insert_cstr): Likewise.
1861 (dyn_string_append): Likewise.
1862 (dyn_string_append_cstr): Likewise.
1863 (dyn_string_append_char): Likewise.
1864 (dyn_string_substring): Likewise.
ae7d06ad 1865
eb383413 18662000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 1867
eb383413
L
1868 * cp-demangle.c (demangle_operator_name): Add spaces before
1869 names beginning with a letter: delete, delete[], new, new[],
1870 sizeof.
1871 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 1872
eb383413
L
1873Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1874
1875 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1876
1877Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1878
1879 * cp-demangle.c (stdio.h): File included unconditionaly.
1880 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1881 * dyn-string.c (stdio.h): File included.
1882 * partition.c (partition_print): No `&' needed to take the address of
1883 a function.
1884
18852000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1886
1887 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 1888
eb383413
L
1889 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1890
1891 * cp-demangle.c (demangle_char): Change parameter from char to int.
1892 (demangle_expression, demangle_expr_primary): Remove extra
1893 semi-colon in prototype.
1894
1895 * dyn-string.c (dyn_string_append_char): Change parameter from
1896 char to int.
1897
1898 * memcmp.c (memcmp): Constify.
1899
1900 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1901 __extension__.
1902
1903 * partition.c (elem_compare): Prototype. Don't cast away
1904 const-ness.
1905
1906 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 1907
eb383413
L
19082000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1909
1910 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1911
1912 * cp-demangle.c: Include demangle.h.
1913 (template_arg_list_new): DeANSIfy.
1914 (cp_demangle): Make static and add prototype.
1915 (operator_code, operators): Constify.
1916 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1917
19182000-06-05 Alex Samuel <samuel@codesourcery.com>
1919
1920 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1921 unsigned char.
1922 (demangle_unqualified_name): Likewise.
1923 (demangle_number_literally): Likewise.
1924 (demangle_type): Likewise.
1925 (demangle_substitution): Likewise.
1926 (is_mangled_char): Likewise, for isalnum.
1927
19282000-06-04 Alex Samuel <samuel@codesourcery.com>
1929
1930 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1931 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1932 (cp-demangle.o): New dependency.
1933 (dyn-string.o): Likewise.
1934
1935 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1936
1937 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1938 demangler.
1939 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1940 demangling mode.
1941 (gnu_new_abi_symbol_characters): New function.
1942 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1943 file.
1944 * cp-demangle.c: New file.
ae7d06ad 1945
f03aa80d
AC
1946Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1947
1948 * floatformat.c: Add name to each floatformat field.
1949
77bfb694
JL
1950Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1951
1952 * Makefile.in (objalloc.o): Depend on config.h
1953
5c82d20a
ZW
19542000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1955
eb383413 1956 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
1957 if HAVE_STRING_H.
1958 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1959 * objalloc.c: Include config.h. Include stdlib.h and don't
1960 declare malloc or free if HAVE_STDLIB_H.
1961 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1962 else declare malloc without prototype. Include string.h if
1963 HAVE_STRING_H, else declare memset without prototype. Don't
1964 include stddef.h.
1965
eb383413
L
19662000-05-23 Mike Stump <mrs@wrs.com>
1967
1968 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 1969 -j3.
eb383413
L
1970
19712000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1972
1973 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1974
19752000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1976
ae7d06ad 1977 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
1978 probably zero, also eliminate a warning on alpha.
1979
19802000-05-15 David Edelsohn <edelsohn@gnu.org>
1981
1982 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
1983 on $(enable_shared).
1984
19852000-05-10 Jakub Jelinek <jakub@redhat.com>
1986
1987 * config.table: Use mh-sparcpic for sparc*-*-*.
1988
19892000-05-08 Nick Clifton <nickc@cygnus.com>
1990
1991 * Makefile.in (CFILES): Add strncmp.c.
1992 (NEEDED): Add strncmp.
1993
19942000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 1995
eb383413
L
1996 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1997 Cast the arguments to `islower' to `unsigned char'.
1998 (print_demangler_list): Prototype.
1999
2000Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
2001
2002 * sort.c (UCHAR_MAX): Provide fallback definition.
2003
20042000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
2005
2006 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
2007 SUBDIRS.
2008
eb383413
L
20092000-04-28 Kenneth Block <block@zk3.dec.com>
2010 Jason Merrill <jason@casey.cygnus.com>
2011
ae7d06ad
NC
2012 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
2013 (cplus_demangle_set_style): New function for setting style.
2014 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
2015
20162000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2017
2018 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
2019
2020 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
2021 (libiberty_AC_FUNC_STRNCMP): Invoke.
2022
2023 * strncmp.c: New file.
2024
2025Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
2026
2027 * hashtab.c (htab_expand): Add prototype.
2028 (find_empty_slot_for_expand): Likewise.
2029
20302000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2031
2032 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
2033 match prototype.
2034 (htab_expand): Cast the return value of xcalloc.
2035
20362000-04-24 Mark Mitchell <mark@codesourcery.com>
2037
2038 * hashtab.c (hash_pointer): New function.
2039 (eq_pointer): Likewise.
2040 (htab_hash_pointer): New variable.
2041 (htab_eq_pointer): Likewise.
2042
20432000-04-23 Mark Mitchell <mark@codesourcery.com>
2044
2045 * sort.c (sort_pointers): Fix endianness bugs.
2046
2047 * sort.c: New file.
2048 * Makefile.in (CFILES): Add sort.c
2049 (REQUIRED_OFILES): Add sort.o.
2050 (sort.o): New target.
2051
19be4303
JL
20522000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2053
2054 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
2055 4.3BSD systems.
2056
eb383413
L
2057Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2058
2059 * hashtab.c: Various minor cleanups.
2060 (htab_find_slot_with_hash): INSERT is now enum insert_option.
2061 (htab_find_slot): Likewise.
2062
20632000-04-16 Dave Pitts <dpitts@cozx.com>
2064
2065 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 2066
afe36a78
RH
20672000-04-05 Richard Henderson <rth@cygnus.com>
2068
2069 * splay-tree.c (splay_tree_remove): New.
2070
eb383413
L
20712000-03-30 Mark Mitchell <mark@codesourcery.com>
2072
2073 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
2074 codes.
2075 (htab_find_with_hash): Likewise.
2076 (htab_find_slot_with_hash): Likewise.
ae7d06ad 2077
eb383413
L
20782000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2079
2080 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
2081 unless it will be used. Rearrange loop for better
2082 optimization.
2083 (higher_prime_number): Add static prototype.
2084
b4fe2683
JM
2085Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
2086
2087 * Makefile.in (partition.o): Depend on config.h
2088
20892000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
2090
2091 * hashtab.c (find_empty_slot_for_expand): New function.
2092 (htab_expand): Use it instead of htab_find_slot.
2093 (htab_find_with_hash): Renamed from htab_find; now accepts extra
2094 argument HASH.
2095 (htab_find_slot_with_hash): Likewise for htab_find_slot.
2096 (htab_find): New wrapper function.
2097 (htab_find_slot): Likewise.
2098 (htab_traverse): Pass slot, not entry, to called function.
2099
21002000-03-09 Alex Samuel <samuel@codesourcery.com>
2101
2102 * Makefile.in (CFILES): Add partition.c.
2103 (REQUIRED_OFILES): Add partition.o.
2104 (partition.o): New rule.
2105 * partition.c: New file.
ae7d06ad 2106
b4fe2683
JM
21072000-03-09 Zack Weinberg <zack@wolery.cumb.org>
2108
2109 * hashtab.c (htab_create): Set del_f.
2110 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
2111 Use it.
2112
21132000-03-08 Zack Weinberg <zack@wolery.cumb.org>
2114
2115 * hashtab.c: Remove debugging variables (all_searches,
2116 all_collisions, all_expansions). Delete
2117 all_hash_table_collisions.
2118 (create_hash_table, delete_hash_table, empty_hash_table,
2119 find_hash_table_entry, remove_element_from_hash_table_entry,
2120 clear_hash_table_slot, traverse_hash_table, hash_table_size,
2121 hash_table_elements_number, hash_table_collisions): Rename to:
2122 htab_create, htab_delete, htab_empty, htab_find_slot,
2123 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
2124 htab_elements, htab_collisions.
2125 (htab_find): New function, handles common case where you don't
2126 plan to add or delete an entry.
2127 (htab_expand): Don't create a whole new table, just a new
2128 entry vector.
2129 (htab_find_slot): Simplify logic.
2130
08372f14
ILT
21311999-08-03 Ian Lance Taylor <ian@zembu.com>
2132
2133 * floatformat.c: Add casts to avoid signed/unsigned warnings.
2134 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
2135
2136 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
2137 $(TARGETLIB)n so it works on MSDOS.
2138 (install_to_tooldir): Likewise.
2139
9c8ac5a9
ILT
21401999-07-21 Ian Lance Taylor <ian@zembu.com>
2141
2142 From Mark Elbrecht:
2143 * makefile.dos: Remove; obsolete.
8f36e47c 2144 * configure.bat: Remove; obsolete.
9c8ac5a9 2145
0c0a36a4
ILT
21461999-07-11 Ian Lance Taylor <ian@zembu.com>
2147
2148 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2149 warning.
2150
21512000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2152
2153 * pexecute.c: Conditionally include string.h.
b4fe2683 2154 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
2155
21562000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2157
2158 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
2159 we're using gcc.
2160
2161 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
2162
21631999-12-27 Geoff Keating <geoffk@cygnus.com>
2164
2165 * vasprintf.c (int_vasprintf): Don't re-read the format character
2166 as this mishandles strings like '%%s'.
2167
21681999-12-05 Mark Mitchell <mark@codesourcery.com>
2169
2170 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
2171 rather than struct splay_tree_node.
2172 (splay_tree_insert): Use struct splay_tree_s rather than struct
2173 splay_tree.
2174
2175Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
2176
2177 * hashtab.c (sys/types.h): File included.
2178
21791999-11-22 Jason Merrill <jason@casey.cygnus.com>
2180
2181 * strtoul.c, strtol.c, random.c: Remove advertising clause from
2182 BSD license, pursuant with
2183
2184 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
2185
2186Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
2187
2188 * hashtab.c: Include stdio.h.
2189
2190Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
2191
2192 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
2193
2194Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
2195
2196 * xstrdup (sys/types.h): Include this file.
2197
21981999-10-28 Nathan Sidwell <nathan@acm.org>
2199
2200 * Makefile.in (SUBDIRS): New macro.
2201 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
2202 avoid multiple subdirectory cleaning.
2203 (*-subdir): Use SUBDIRS.
2204
22051999-10-25 Jim Kingdon <http://developer.redhat.com/>
2206
2207 * cplus-dem.c: Move declarations of standard_symbol_characters and
2208 hp_symbol_characters inside #ifdef MAIN to avoid compiler
2209 warnings.
2210
22111999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
2212
2213 * hashtab.c (find_hash_table_entry): When returning a
2214 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
2215 (clear_hash_table_slot): New function which deletes an entry
2216 by its position in the table, not its value.
2217 (traverse_hash_table): New function which calls a hook
2218 function for every live entry in the table.
2219
22201999-10-19 Mark Mitchell <mark@codesourcery.com>
2221
2222 * cplus-dem.c (INTBUF_SIZE): New macro.
2223 (string_append_template_idx): New function.
2224 (demangle_expression): Likewise.
2225 (demangle_integral_value): Use it.
2226 (demangle_real_value): New function, split out from ...
2227 (demangle_template_value_parm): ... here. Use
2228 string_append_template_idx. Use demangle_real_value.
2229 (demangle_template): Use string_append_template_idx.
2230 (demangle_qualified): Use consume_count_with_underscores.
2231 (get_count): Tweak formatting.
2232 (do_type): Use string_append_template_idx.
b4fe2683 2233
0c0a36a4
ILT
22341999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2235
2236 * calloc.c: Add a public domain notice.
2237
2238Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
2239
2240 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
2241
2242Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
2243
2244 * Makefile.in (CFILES): Add hashtab.c
2245 (REQUIRED_OFILES): Add hashtab.o
2246 (hashtab.o): Add dependencies.
2247 * hashtab.c: New file
2248
2249Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
2250
2251 * basename.c (DIR_SEPARATOR): New macro.
2252 (DIR_SEPARATOR_2): Likewise.
2253 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
2254 (IS_DIR_SEPARATOR): Likewise.
2255 (main): Handle MSDOS style pathname.
2256
22571999-10-11 Mark Mitchell <mark@codesourcery.com>
2258
2259 * cplus-dem.c (do_type): Handle pointer to member types whose
2260 enclosing classes have namespace scope.
2261
2262Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
2263
2264 * config.table: Provide a backup shell for executing move-if-change.
2265
22661999-10-02 Mark Mitchell <mark@codesourcery.com>
2267
2268 * xmalloc.c (xmalloc): Fix spelling error.
2269 (xcalloc, xrealloc): Likewise.
2270
22711999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2272
2273 * cplus-dem.c (fancy_abort, demangle_integral_value,
2274 demangle_arm_hp_template, recursively_demangle,
2275 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
2276 (program_name, program_version, fatal): Constify a char*.
2277 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
2278 (main): Call return, not exit.
2279
22801999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2281
2282 * choose-temp.c: Remove obsolete comment about gcc.
2283 (make_temp_file): Constify a char*.
2284
2285Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2286
2287 * xmemdup.c: Include sys/types.h.
2288
22891999-09-07 Jeff Garzik <jgarzik@pobox.com>
2290
2291 * xmemdup.c: New xmemdup function.
2292 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
2293
2294Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
2295
b4fe2683 2296 * config.table: Add openedition target.
0c0a36a4
ILT
2297 * config/mh-openedition: New file.
2298
2299Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
2300
2301 * pexecute.c (pexecute): Fill in temp_base when needed.
2302
23031999-08-31 Richard Henderson <rth@cygnus.com>
2304
2305 * getpwd.c: Check HAVE_GETCWD before defining it away.
2306
23071999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2308
2309 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
2310 (REQUIRED_OFILES): Add getpwd.o.
2311 (getpwd.o): Add target.
2312
2313 * configure.in (AC_PREREQ): Bump to 2.13.
2314 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
2315
2316 * getpwd.c: New file, moved here from gcc.
2317
23181999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2319
2320 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
2321 comparing against a signed quantity.
2322 (arm_special): Likewise.
2323 (demangle_fund_type): Likewise.
2324 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 2325 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
2326 (main): Constify variable `valid_symbols'.
2327
2328Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
2329
2330 * strtoul.c (strtoul): Add parentheses around && within ||.
2331
2332Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2333
2334 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2335 libdir, libsubdir and tooldir.
2336
23371999-08-01 Mark Mitchell <mark@codesourcery.com>
2338
2339 * splay-tree.c (splay_tree_insert): Return the new node.
2340
35ca97ea
RH
23411999-07-14 Richard Henderson <rth@cygnus.com>
2342
b4fe2683 2343 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
2344 prototyping directly.
2345 * choose-temp.c: Conditionally include string.h.
2346
0c0a36a4
ILT
23471999-07-12 Jason Merrill <jason@yorick.cygnus.com>
2348
2349 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
2350
af32ff69
ILT
23511999-07-11 Ian Lance Taylor <ian@zembu.com>
2352
2353 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2354 warning.
2355
0c0a36a4
ILT
23561999-07-07 Jason Merrill <jason@yorick.cygnus.com>
2357
2358 * Makefile.in (needed-list): Only include stuff we actually need
2359 for libstdc++.
2360
23611999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2362
2363 * configure.in (checkfuncs): Add gettimeofday.
2364 * config.in, configure: Regenerated.
2365
2366Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
2367
2368 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
2369 the test fails.
2370 * configure: Regenerate.
2371
23721999-06-10 Mike Stump <mrs@wrs.com>
2373
2374 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
2375 parallel builds.
2376
23771999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2378
2379 * putenv.c: Include ansidecl.h to define `const'.
2380 * setenv.c: Likewise.
2381
2382Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
2383
2384 * Makefile.in (CFILES): Add putenv.c and setenv.c.
2385 * configure.in (funcs): Add putenv and setenv.
2386 (AC_CHECK_FUNCS): Check for putenv and setenv.
2387 * configure: Rebuilt.
2388 * putenv.c setenv.c: New files.
2389
2390 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2391 bytes of space using malloc.
2392
2393Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2394
2395 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2396 the *mangled pointer beyond the end of the string. Clean up code to
2397 match prevailing coding style.
2398
23991999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2400
2401 * tmpnam.c (L_tmpnam): Fix typo.
2402
2403Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2404
2405 * cplus-dem.c (standard_symbol_characters): Renamed from
2406 standard_symbol_alphabet. No longer modify TABLE.
2407 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2408 modify TABLE.
2409 (main): Corresponding changes. Use strchr to determine if a
2410 character is valid.
2411
e9868447
JB
24121999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2413
2414 * cplus-dem.c (main): Use table lookup to distinguish identifier
2415 characters from non-identifier characters.
2416 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2417
33fbbfbc
RH
2418Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2419
2420 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2421 * getruntime.c: Only attempt to include sys/resource.h and
2422 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2423 are defined.
2424
0c0a36a4
ILT
2425Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2426
2427 * configure.in (alloca detection): Handle alloca directly for interix.
2428 * configure: Rebuilt.
2429
2430Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2431
2432 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2433
252b5132
RH
24341999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2435
2436 Fix from Dale Hawkins:
b4fe2683 2437 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
2438 reallocated properly if we use it again.
2439
2440 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2441 stricter about syntax. Always null-terminate string.
2442
c1687039
ILT
2443Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2444
2445 * configure.in (checkfuncs): Check for sbrk.
2446 * config.in: Rebuilt.
2447 * configure: Likewise.
2448 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2449
0c0a36a4
ILT
24501999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2451
2452 Fix from Marcus Daniels:
2453 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2454 identifier looking for another underscore.
2455
2456Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2457
2458 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2459 * xmalloc.c: Likewise.
2460 (xcalloc): UWIN has sbrk.
2461 (xrealloc): Fix guard macro.
2462
252b5132
RH
24631999-04-11 Richard Henderson <rth@cygnus.com>
2464
2465 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2466 or <alloca.h>.
2467 * clock.c (GNU_HZ): New definition.
2468 (clock): Use it.
2469 * getruntime.c: Likewise.
2470
2471 * config.table: Use mh-beos.
2472 * config/mh-beos: New file.
2473
0c0a36a4
ILT
24741999-04-11 Mark Mitchell <mark@codesourcery.com>
2475
2476 * cplus-dem.c (demangle_template_value_parm): Handle
2477 pointers-to-members.
2478 (do_type): Handle template parameters as qualifiers.
2479
252b5132
RH
24801999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2481
2482 * cplus-dem.c: Attempt to handle overflows in counts with some
2483 semblance of grace.
2484 (consume_count): Detect overflows. Return -1 to indicate errors,
2485 instead of zero.
2486 (demangle_template_value_parm, demangle_template): Handle change
2487 to consume_count's return convention.
2488
0c0a36a4
ILT
24891999-04-05 Tom Tromey <tromey@cygnus.com>
2490
2491 * testsuite/regress-demangle: New file.
2492 * testsuite/demangle-expected: New file.
252b5132 2493
0c0a36a4
ILT
2494 * Makefile.in (all, check, installcheck, info, install-info,
2495 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2496 distclean, maintainer-clean, realclean): Depend on corresponding
2497 `-subdir' target.
2498 (all-subdir check-subdir installcheck-subdir info-subdir
2499 install-info-subdir clean-info-subdir dvi-subdir
2500 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2501 distclean-subdir maintainer-clean-subdir): New target.
2502 * testsuite/Makefile.in: New file.
2503 * configure: Rebuilt.
2504 * configure.in: Create testsuite/Makefile.
252b5132
RH
2505
25061999-04-02 Mark Mitchell <mark@codesourcery.com>
2507
2508 * splay-tree.h (splay_tree_compare_pointers): Define.
2509
25101999-03-30 Mark Mitchell <mark@codesourcery.com>
2511
2512 * splay-tree.c (splay_tree_compare_ints): Define.
2513
25141999-03-30 Tom Tromey <tromey@cygnus.com>
2515
2516 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2517 don't advance input pointer.
2518 (demangle_class_name): If consume_count didn't find a count, do
2519 nothing. Don't bother with `strlen' sanity check; consume_count
2520 does it for us.
2521
25221999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2523
2524 From Art Haas <ahaas@neosoft.com>:
2525 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2526 when doing arm or hp style.
2527 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 2528
252b5132
RH
2529Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2530
2531 * pexecute.c (__CYGWIN32__): Rename to
2532 (__CYGWIN__): this.
2533 * xmalloc.c: Likewise.
2534
2535 Changes to support i386-pc-uwin.
2536 * configure.in (*-*-uwin*): Workaround for vfork bug.
2537 * configure: Regenerate.
2538 * pexecute.c (pexecute): Be like standard Unix.
2539 (pwait): Likewise.
2540 * xmalloc.c (first_break): Define.
2541 (xmalloc_set_program_name): Use.
2542 (xmalloc): Use.
2543
2544Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2545
2546 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2547
2548Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2549
2550 * config.table: Check cygwin*, not cygwin32*.
2551
2552Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2553
2554 * Makefile.in: Change mkstemp -> mkstemps.
2555
2556Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2557
2558 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2559 * configure.in (funcs): Check for and conditionally add mkstemps to
2560 the list of functions libiberty will provide.
2561 * configure: Rebuilt.
b4fe2683 2562
252b5132
RH
2563Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2564
b4fe2683 2565 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
2566 platforms that don't have HZ.
2567 * getruntime.c (HZ): Likewise.
2568
2569Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2570
2571 * Makefile.in (xstrdup.o): Depend on config.h.
2572
2573Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2574
2575 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2576 freeing it.
2577
2578Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2579
2580 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2581
2582Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2583
2584 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2585 splay-tree.o.
2586
25871999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2588
2589 * configure.in: Require autoconf 2.12.1 or higher.
2590
25911998-12-30 Michael Meissner <meissner@cygnus.com>
2592
2593 * random.c (NULL): Don't redefine NULL if it is already defined.
2594
2595Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2596
2597 * argv.c (buildargv): Cast the result of alloca in assignment.
2598
2599 * choose-temp.c: Include stdlib.h.
2600
2601 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
2602 (snarf_numeric_literal): Constify first parameter.
2603 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2604 int, not a char.
252b5132
RH
2605 (demangle_qualifier): Likewise.
2606 (demangle_signature): Cast the argument of a ctype function to
2607 unsigned char.
2608 (arm_pt): Add parens around assignment used as truth value.
2609 (demangle_arm_hp_template): Constify variable `args'.
2610 (do_hpacc_template_const_value): Cast the argument of a ctype
2611 function to unsigned char.
2612 (do_hpacc_template_literal): Remove unused variable `i'.
2613 (snarf_numeric_literal): Constify parameter `args'.
2614 Cast the argument of a ctype function to unsigned char.
2615
2616 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 2617 avoid ambiguous `else'.
252b5132
RH
2618
2619 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
2620 `cstart' and `cend' to unsigned char. Cast the argument of macro
2621 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
2622
2623 * objalloc.c (free): Add prototype.
2624
2625Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2626
2627 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2628
2629Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2630
2631 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 2632 doesn't exist.
252b5132 2633 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 2634
252b5132
RH
2635Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2636
2637 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2638 bumping the pointer we read from. Also prepend these codes,
2639 as we do in other places.
2640
26411998-12-18 Nick Clifton <nickc@cygnus.com>
2642
2643 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2644 'const char *' in order to match its usage when calling siblings.
2645 (snarf_numeric_literal): Make first arg 'const char **' in order
2646 to match usage.
2647
2648Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2649
2650 * choose-temp.c: Don't check IN_GCC anymore.
2651
2652 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2653 * memchr.c (memchr): Likewise.
2654 * memcpy.c (memcpy): Likewise.
2655 * memmove.c (memmove): Likewise.
2656
2657 * mkstemp.c: Don't check IN_GCC anymore.
2658 * pexecute.c: Likewise.
2659 * splay-tree.c: Likewise.
2660
2661 * strchr.c (strchr): Use `const', not `CONST'.
2662 * strrchr.c (strrchr): Likewise.
2663 * strtol.c (strtol): Likewise.
2664 * strtoul.c (strtoul): Likewise.
2665
2666Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2667 Elena Zannoni <ezannoni@cygnus.com>
2668 Stan Shebs <shebs@cygnus.com>
2669 Edith Epstein <eepstein@cygnus.com>
2670 Andres MacLeod <amacleod@cygnus.com>
2671 Satish Pai <pai@apollo.hp.com>
2672
2673 * HP aCC demangling support.
2674 * cplus-dem.c
2675 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
2676 demangling correctly when -edg specified; set the demangling style
2677 when user specifies 'edg'. Set strip_underscore to
2678 prepends_underscore, if not HPUXHPPA. Set
2679 current_demangling_style to hp_demangling if HPUXHPPA. Set
2680 current demangling style correctly if the switch is hp. Read
2681 label correctly also in the HP style case.
252b5132 2682 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 2683 function.
252b5132 2684 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 2685 style for this case is the same as ARM.
252b5132
RH
2686 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2687 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
2688 demangle_arm_pt.); check and set value of temp_start field in
2689 multiple places. Also, when ceching for end of template args,
2690 check to see if at end of static member of template class.
252b5132 2691 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 2692 include template args in string defining class.
252b5132
RH
2693 (demangle_class_name): use demangel_arm_hp_template.
2694 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
2695 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2696 Handle EDG_DEMANGLING style. Handle constructor and destructor
2697 ops for HP style.
252b5132 2698 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
2699 styles. global destructor and constructor for HP style are same
2700 as for ARM style. Same for local variables.
252b5132
RH
2701 (demangle_qualified): handle EDG_DEMANGLING style.
2702 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
2703 cases '1' - '9' : initialize the temp_start field to -1 and handle
2704 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
2705 and AUTO_DEMANGLING styles. If expecting a function and managed
2706 to demangle the funct args, then handle the LUCID_DEMANGLING,
2707 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
2708 class name after "Lnnn_ in HP style case. HP style too needs to
2709 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 2710 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 2711 value param for HP/aCC.
252b5132 2712 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 2713 literal parameter for HP aCC.
252b5132
RH
2714 (recursively_demangle): new function
2715 (snarf_numeric_literal): new function.
2716 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 2717 to message.
252b5132
RH
2718
2719Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
2720
2721 * pexecute.c: Remove obsolete ifdefed cygwin code.
2722
2723Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2724
2725 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
2726 * cplus-dem.c: Likewise. Conform to libiberty.h.
2727 * pexecute.c: Likewise.
2728 * splay-tree.c: Likewise.
2729
27301998-11-25 Mike Stump <mrs@wrs.com>
2731
2732 * Makefile.in (splay-tree.o): Add config.h dependency.
2733
2734Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2735
2736 * configure.in: Use AC_PREREQ(2.12.1).
2737
27381998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
2739
b4fe2683 2740 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
2741
2742Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
2743
2744 * mpw.c (mpw_access): Add missing parens.
2745
2746Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2747
2748 * configure.in: Call AC_HEADER_SYS_WAIT.
2749
2750 * pexecute.c: Include sys/wait.h when !IN_GCC.
2751
2752Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
2753
2754 * pexecute.c: revert back to checking old Cygwin
2755 preprocessor symbol until some time has passed.
2756
2757Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
2758
2759 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
2760 since it will now support similar constructs.
2761
2762Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2763
2764 * configure.in: Check for calloc.
2765
2766 * calloc.c: New file.
2767
2768 * xmalloc.c (xcalloc): New function.
2769
2770Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2771
2772 *cplus-dem.c (demangle_prefix): Use the last "__"
2773 in the mangled name when looking for the signature. This allows
2774 template names to begin with "__".
2775
27761998-11-08 Mark Mitchell <mark@markmitchell.com>
2777
2778 * cplus-dem.c (type_kind_t): Add tk_reference.
2779 (demangle_template_value_parm): Handle it.
2780 (do_type): Use it for references, instead of tk_pointer.
2781
2782 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
2783 not internal_cplus_demangle.
2784
2785Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2786
2787 * choose-temp.c: Don't include gansidecl.h.
2788 * mkstemp.c: Likewise.
2789 * pexecute.c: Likewise.
2790
2791Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
2792
b4fe2683
JM
2793 * configure.in: detect cygwin* instead of cygwin32*
2794 * configure: regenerate
252b5132
RH
2795
2796Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2797
2798 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
2799 whether to include config.h. Possibly include unistd.h in the
2800 !IN_GCC case. Define VFORK_STRING as a printable function call
2801 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2802 defined, include vfork.h. If VMS is defined, define vfork()
2803 appropriately. Remove vfork check on USG, we're using autoconf.
2804 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
2805 locally what string to use.
252b5132
RH
2806
28071998-10-26 Mark Mitchell <mark@markmitchell.com>
2808
2809 * splay-tree.c: Tweak include directives to make sure declarations of
2810 xmalloc and free are available.
2811
28121998-10-25 Mark Mitchell <mark@markmitchell.com>
2813
2814 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
2815 anonymous namespaces.
2816
28171998-10-23 Mark Mitchell <mark@markmitchell.com>
2818
2819 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
2820 with type_quals.
2821 (TYPE_UNQUALIFIED): New macro.
2822 (TYPE_QUAL_CONST): Likewise.
2823 (TYPE_QUAL_VOLATILE): Likewise.
2824 (TYPE_QUAL_RESTRICT): Likewise.
2825 (code_for_qualifier): New function.
2826 (qualifier_string): Likewise.
2827 (demangle_qualifier): Likewise.
2828 (internal_cplus_demangle): Use them.
2829 (demangle_signature): Likewise.
2830 (demangle_template_value_parm): Likewise.
2831 (do_type): Likewise.
2832 (demangle_fund_type)): Likewise.
2833
2834Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2835
2836 * splay-tree.c (splay_tree_foreach_helper): Make definition static
2837 to match prototype.
2838
28391998-10-21 Mark Mitchell <mark@markmitchell.com>
2840
2841 * splay-tree.c: New file.
2842 * Makefile.in (CFILES): Add it.
2843 (REQUIRED_OFILES): Likewise.
2844 (splay-tree.o): Add dependencies.
2845
2846Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2847
2848 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
2849 range of 'K' index.
2850
2851Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2852
2853 * choose-temp.c: Prototype mkstemps() when IN_GCC.
2854
2855 * cplus-dem.c (consume_count): Cast argument of ctype macro to
2856 `unsigned char'.
2857 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
2858 comparing against one.
2859 (cplus_mangle_opname): Likewise.
2860 (demangle_integral_value): Cast argument of ctype macro to
2861 `unsigned char'.
2862 (demangle_template_value_parm): Likewise.
2863 (demangle_template): Initialize variable `bindex'. Cast the
2864 result of `strlen' to (int) when comparing against one. Remove
2865 unused variable `start_of_value_parm'.
2866 (demangle_class_name): Cast the result of `strlen' to (int) when
2867 comparing against one.
2868 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
2869 (gnu_special): Likewise. Cast the result of `strlen' to (int)
2870 when comparing against one.
2871 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2872 (get_count): Likewise.
2873 (do_type): Likewise. Cast the result of `strlen' to (int) when
2874 comparing against one.
2875 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2876 (demangle_function_name): Cast the result of `strlen' to (int)
2877 when comparing against one.
2878
2879 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2880 comparing against one.
2881
2882Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2883
b4fe2683
JM
2884 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2885 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2886 * config.in, configure: Rebuilt.
252b5132
RH
2887
2888 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2889 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2890 * config.in, configure: Rebuilt.
2891
2892Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2893
b4fe2683 2894 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
2895
2896Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2897
2898 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2899
2900Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2901
2902 * Merge egcs & devo libiberty.
2903