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