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