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